/* The sign-in screens.
 *
 * Phone first, because a worker meets this page on a phone in a field
 * before anybody meets it on a laptop: one column, 48 px targets, and
 * type big enough to read in sun. Light and dark both, following the
 * phone's own setting, because nobody wants to configure a theme on the
 * way to clocking in.
 *
 * Hand written and small. A sign-in page is the single thing on the
 * platform that has to work when everything else does not, so it has no
 * build step, no framework and no JavaScript. */

:root {
  /* The AcerTek palette, shared by every app. This service is Admin in
     the suite, and its color is slate; `--blaze` keeps its old name
     but is that slate now. */
  --bg: 243 244 241;
  --panel: 255 255 255;
  --raised: 236 238 234;
  --ink: 27 31 29;
  --muted: 95 103 99;
  --line: 220 223 216;
  --blaze: 75 86 117;
  --blaze-ink: 255 255 255;
  --bad: 178 40 32;
  --good: 32 112 58;
  --radius: 12px;
  --touch: 48px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: 15 19 18;
    --panel: 23 28 26;
    --raised: 33 40 37;
    --ink: 242 245 243;
    --muted: 154 166 160;
    --line: 44 52 48;
    --blaze: 141 155 194;
    --blaze-ink: 12 16 26;
    --bad: 240 128 120;
    --good: 122 200 146;
  }
}

/* Chosen by hand on the profile (kept on this device): dark even when
   the device is light. Light-by-hand is the :not() above. */
:root[data-theme="dark"] {
  --bg: 15 19 18;
  --panel: 23 28 26;
  --raised: 33 40 37;
  --ink: 242 245 243;
  --muted: 154 166 160;
  --line: 44 52 48;
  --blaze: 141 155 194;
  --blaze-ink: 12 16 26;
  --bad: 240 128 120;
  --good: 122 200 146;
}

/* Manrope, the suite's typeface, served from here: no other host. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/manrope.woff2") format("woff2");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font: 16px/1.5 "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.card {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}
@media (min-width: 30rem) {
  .card {
    margin: 3rem auto;
    padding: 2rem;
    background: rgb(var(--panel));
    border: 1px solid rgb(var(--line));
    border-radius: var(--radius);
  }
}

/* ------------------------------------------------------------- brand */

.brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.75rem; }
.brand .mark {
  width: 1.5rem; height: 1.5rem; border-radius: 5px;
  background: rgb(var(--blaze));
  /* A field, ploughed. Not a logo, a placeholder with some character. */
  background-image: repeating-linear-gradient(
    115deg, rgb(0 0 0 / .18) 0 2px, transparent 2px 5px);
}
.brand .name { font-weight: 650; letter-spacing: -.01em; }

h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .35rem; letter-spacing: -.02em; }
.sub { color: rgb(var(--muted)); margin: 0 0 1.5rem; }

/* -------------------------------------------------------------- forms */

label { display: block; margin-bottom: 1rem; }
label > span { display: block; font-size: .875rem; font-weight: 550; margin-bottom: .35rem; }
label > .hint { font-weight: 400; color: rgb(var(--muted)); margin: .3rem 0 0; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], select {
  width: 100%;
  min-height: var(--touch);
  padding: .6rem .75rem;
  font-size: 1rem;                    /* 16px: smaller zooms iOS on focus */
  color: rgb(var(--ink));
  background: rgb(var(--raised));
  border: 1px solid rgb(var(--line));
  border-radius: 10px;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid rgb(var(--blaze));
  outline-offset: 2px;
}

/* A PIN and an authenticator code are digits read one at a time. */
input.digits {
  font: 550 1.4rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .3em;
  text-align: center;
}

button, .button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: var(--touch);
  padding: .7rem 1rem;
  font: inherit; font-weight: 600;
  color: rgb(var(--blaze-ink));
  background: rgb(var(--blaze));
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}
button.quiet, .button.quiet {
  color: rgb(var(--ink));
  background: rgb(var(--raised));
  border-color: rgb(var(--line));
}
button.plain {
  width: auto; min-height: 0; padding: .35rem 0;
  font-weight: 500; font-size: .875rem;
  color: rgb(var(--muted)); background: none; border: none;
  text-decoration: underline; text-underline-offset: 2px;
}

/* --------------------------------------------------------- the switch */

.tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.tabs a {
  flex: 1; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9375rem; font-weight: 550; text-decoration: none;
  color: rgb(var(--muted));
  background: rgb(var(--raised));
  border: 1px solid rgb(var(--line));
  border-radius: 10px;
}
.tabs a[aria-current="page"] {
  color: rgb(var(--blaze));
  border-color: rgb(var(--blaze));
  background: rgb(var(--blaze) / .1);
}

/* --------------------------------------------------------- the picker */

.apps { display: grid; gap: .75rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.apps a {
  display: flex; align-items: center; gap: .9rem;
  min-height: 72px; padding: .9rem 1rem;
  text-decoration: none; color: rgb(var(--ink));
  background: rgb(var(--raised));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
}
.apps .label { min-width: 0; flex: 1; }
.apps .label strong { display: block; font-size: 1.0625rem; }
.apps .label span { display: block; font-size: .875rem; color: rgb(var(--muted)); }
.apps .where { display: block; font-size: .8125rem; color: rgb(var(--muted)); margin-top: .15rem; }
.apps .chev { color: rgb(var(--muted)); }

/* --------------------------------------------------------- the notices
 *
 * Every one is a sentence saying what happened and what to do. No
 * tracebacks, ever: those go to the log. */

.notice {
  display: flex; gap: .6rem;
  margin: 0 0 1.25rem; padding: .75rem .85rem;
  font-size: .9375rem;
  border: 1px solid rgb(var(--line));
  border-left: 3px solid rgb(var(--muted));
  border-radius: 8px;
  background: rgb(var(--raised));
}
.notice.bad { border-left-color: rgb(var(--bad)); color: rgb(var(--bad)); }
.notice.good { border-left-color: rgb(var(--good)); color: rgb(var(--good)); }

/* ------------------------------------------------------------- footer */

.foot { margin-top: 2rem; }
.foot .help { font-size: .8125rem; color: rgb(var(--muted)); margin: 0 0 .5rem; }
.lang { margin: 0; }

.qr { display: block; margin: 0 auto 1rem; background: #fff; padding: .6rem;
      border-radius: 8px; width: min(15rem, 100%); height: auto; }
.secret {
  display: block; margin: 0 0 1.25rem; padding: .6rem .7rem;
  font: 500 .9375rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  background: rgb(var(--raised));
  border: 1px solid rgb(var(--line)); border-radius: 8px;
}

/* ------------------------------------------------------ the admin screens
 *
 * Wider than the sign-in card, because a list of people with a role per
 * app does not fit a phone column without becoming a scroll. Still one
 * column on a phone: the roles stack. */

.card.wide { max-width: 44rem; }

h2.section {
  margin: 2.25rem 0 .75rem;
  font-size: .8125rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .06em;
  color: rgb(var(--muted));
}

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.row {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  align-items: flex-start; justify-content: space-between;
  padding: .85rem;
  background: rgb(var(--raised));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
}
.row.gone { opacity: .55; }
.row .who { min-width: 12rem; flex: 1; }
.row .who strong { display: block; }
.row .who > span { display: block; font-size: .875rem; color: rgb(var(--muted)); }
.row .acts { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.row .acts form { margin: 0; }
.row .acts button { width: auto; min-height: 40px; padding: .4rem .7rem;
                    font-size: .875rem; }

.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.tag {
  display: inline-block; padding: .1rem .45rem;
  font-size: .75rem; border-radius: 999px;
  color: rgb(var(--muted));
  background: rgb(var(--panel));
  border: 1px solid rgb(var(--line));
}
.tag.warn { color: rgb(var(--bad)); border-color: rgb(var(--bad) / .5); }

label.inline { display: flex; align-items: center; gap: .4rem; margin: 0; }
label.inline > span { margin: 0; font-size: .8125rem; color: rgb(var(--muted)); }
label.inline select { width: auto; min-height: 40px; padding: .35rem .5rem;
                      font-size: .875rem; }

fieldset {
  margin: 0 0 1rem; padding: .75rem .85rem;
  border: 1px solid rgb(var(--line)); border-radius: 10px;
}
legend { padding: 0 .35rem; font-size: .875rem; font-weight: 550; }
label.check {
  display: flex; align-items: center; gap: .6rem;
  min-height: var(--touch); margin: 0;
}
label.check > span { margin: 0; font-weight: 400; }
label.check input { width: 1.15rem; height: 1.15rem; accent-color: rgb(var(--blaze)); }

.notice code.secret { margin: .5rem 0; }
.notice p { margin: 0 0 .35rem; }
.notice p:last-child { margin-bottom: 0; }

a { color: rgb(var(--blaze)); }

/* The farm's home: an app not open yet is a tile, never a link. */
.apps .soon {
  display: flex; align-items: center; gap: .9rem; min-height: 72px;
  padding: .9rem 1rem; border: 1px dashed rgb(var(--line));
  border-radius: var(--radius); opacity: .7;
}
/* People, Billing, Profile: thumb-sized, one row that wraps. */
.places { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.places a, .button-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem;
  border: 1px solid rgb(var(--line)); border-radius: 10px; font-weight: 600;
  color: inherit; text-decoration: none;
}
button.danger { background: rgb(var(--bad)); color: #fff; }
details > summary { cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; }


/* =================================================== the signed-on look
 * Aaron, 2026-10-08: make it attractive, and give the apps icons. One
 * colour per app, used only on its icon tile, so the page stays calm and
 * the apps are told apart at a glance. */

:root {
  /* Each app's color, the same in every app's switcher. */
  --plot: 47 125 79; --cast: 31 111 178; --crew: 194 86 42; --yield: 183 121 31; --auth: 75 86 117;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plot: 79 179 122; --cast: 74 163 232; --crew: 238 129 82; --yield: 224 164 58; --auth: 141 155 194;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .35);
  }
}
:root[data-theme="dark"] {
  --plot: 79 179 122; --cast: 74 163 232; --crew: 238 129 82; --yield: 224 164 58; --auth: 141 155 194;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .35);
}

.icon { flex: none; display: block; }

/* ------------------------------------------------------- page heading */
.page-head { margin: 0 0 1.75rem; }
.page-head h1 { font-size: 1.75rem; margin: 0 0 .25rem; }
.page-head .sub { margin: 0; }
.eyebrow {
  margin: 0 0 .35rem; font-size: .8125rem; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--blaze));
}

/* --------------------------------------------------------- the panels */
.panel {
  background: rgb(var(--panel));
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.35rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
}
.panel > h2 {
  margin: 0 0 1rem; font-size: 1.0625rem; letter-spacing: -.01em;
}
.panel form:last-child, .panel label:last-child { margin-bottom: 0; }
.panel .rows { margin: 0; }
.panel-pair { display: grid; gap: 0 1.25rem; }
@media (min-width: 64rem) { .panel-pair { grid-template-columns: 1fr 1fr; } }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .two { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.status-line { margin: 0 0 .75rem; font-weight: 600; }
.status-line.good { color: rgb(var(--good)); }
.status-line.warn { color: rgb(var(--bad)); }
.label-small { margin: 0 0 .5rem; font-size: .875rem; font-weight: 600; }
.muted { color: rgb(var(--muted)); font-size: .875rem; }
textarea {
  width: 100%; padding: .6rem .75rem; font: inherit; font-size: 1rem;
  color: rgb(var(--ink)); background: rgb(var(--raised));
  border: 1px solid rgb(var(--line)); border-radius: 10px; resize: vertical;
}
input[type="file"] { display: block; width: 100%; margin: 0 0 .75rem; font-size: .9375rem; }

/* ------------------------------------------------ the application picker */
.app-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .app-grid { grid-template-columns: 1fr 1fr; } }
.app-tile {
  display: flex; align-items: center; gap: 1rem;
  min-height: 96px; padding: 1.1rem 1.1rem 1.1rem 1rem;
  background: rgb(var(--panel)); color: rgb(var(--ink));
  border: 1px solid rgb(var(--line)); border-radius: 16px;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
a.app-tile:hover { transform: translateY(-1px); border-color: rgb(var(--blaze) / .5); }
a.app-tile:focus-visible { outline: 2px solid rgb(var(--blaze)); outline-offset: 2px; }
.app-tile .app-text { flex: 1; min-width: 0; }
.app-tile .app-text strong { display: block; font-size: 1.125rem; letter-spacing: -.01em; }
.app-tile .app-text span { display: block; font-size: .875rem; color: rgb(var(--muted)); line-height: 1.4; margin-top: .1rem; }
.app-tile .app-go { color: rgb(var(--muted)); }
.app-tile.is-soon { box-shadow: none; border-style: dashed; background: transparent; }
.app-tile.is-soon .app-icon { opacity: .55; }
.badge {
  flex: none; font-size: .75rem; font-weight: 650; padding: .2rem .55rem;
  border-radius: 999px; border: 1px solid rgb(var(--line)); color: rgb(var(--muted));
}

.app-icon {
  flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  color: rgb(var(--blaze)); background: rgb(var(--blaze) / .12);
}
.app-icon.small { width: 40px; height: 40px; border-radius: 11px; margin-right: .25rem; }
.app-plot .app-icon, .app-icon.app-plot { color: #fff; background: rgb(var(--plot)); }
.app-cast .app-icon, .app-icon.app-cast { color: #fff; background: rgb(var(--cast)); }
.app-crew .app-icon, .app-icon.app-crew { color: #fff; background: rgb(var(--crew)); }
.app-yield .app-icon, .app-icon.app-yield { color: #fff; background: rgb(var(--yield)); }
.app-auth .app-icon, .app-icon.app-auth { color: #fff; background: rgb(var(--auth)); }
.rows .row { align-items: center; }

/* --------------------------------------------- the farm in the side nav */
.farm-initial {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  font-weight: 750; font-size: 1.125rem; color: rgb(var(--blaze-ink));
  background: rgb(var(--blaze));
}
.farm-initial.big { width: 56px; height: 56px; border-radius: 14px; font-size: 1.5rem; }
.farm-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.farm-logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .farm-logo.on-light { display: none; }
  :root:not([data-theme="light"]) .farm-logo.on-dark { display: block; }
}
:root[data-theme="dark"] .farm-logo.on-light { display: none; }
:root[data-theme="dark"] .farm-logo.on-dark { display: block; }

/* ------------------------------------------------------ the logo slots */
.logo-pair { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .logo-pair { grid-template-columns: 1fr 1fr; } }
.logo-slot { padding: 1rem; border: 1px solid rgb(var(--line)); border-radius: 12px; }
.logo-preview {
  display: grid; place-items: center; height: 96px; margin: 0 0 .9rem;
  border-radius: 10px;
}
.logo-light .logo-preview { background: #fff; border: 1px solid rgb(var(--line)); }
.logo-dark .logo-preview { background: #1c1b18; }
.logo-preview img { max-height: 72px; max-width: 80%; object-fit: contain; }

/* ====================================================== the AcerTek frame
 * The same frame as every AcerTek app (Yield YL-27): an expandable
 * sidebar on a computer, folded to icons by the chevron on its edge (a
 * form, remembered in a cookie); a top bar and a drawer on a phone (a
 * checkbox, so no JavaScript, AU-1). The app switcher and the person's
 * menu open as <details>. */

body.with-nav { min-height: 100vh; --side: 16rem; }
body.with-nav.folded { --side: 68px; }

.side {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 18rem; max-width: 85vw;
  display: flex; flex-direction: column; gap: .5rem;
  padding: .65rem .65rem .75rem; background: rgb(var(--panel));
  border-right: 1px solid rgb(var(--line));
  transform: translateX(-100%); transition: transform .2s ease;
}
.drawer-toggle { position: absolute; opacity: 0; pointer-events: none; }
.drawer-toggle:checked ~ .side { transform: none; box-shadow: var(--shadow); }
.drawer-shade { display: none; }
.drawer-toggle:checked ~ .drawer-shade {
  display: block; position: fixed; inset: 0; z-index: 25; background: rgb(0 0 0 / .45);
}

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem;
  height: 3.5rem; padding: 0 .75rem; background: rgb(var(--panel) / .95);
  border-bottom: 1px solid rgb(var(--line));
}
.topbar .burger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
}
.topbar .burger:hover { background: rgb(var(--raised)); }
.topbar .farm { flex: 1; text-align: right; font-size: .875rem; color: rgb(var(--muted));
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-top { display: flex; align-items: center; gap: .5rem; height: 44px; }
.app-mark { display: flex; align-items: center; gap: .5rem; min-width: 0; white-space: nowrap; }
.app-mark .sq { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
                color: #fff; background: rgb(var(--auth)); flex: none; }
.app-mark .name { font-weight: 800; font-size: .9375rem; letter-spacing: -.01em; }
.app-mark .by { font-size: .75rem; color: rgb(var(--muted)); font-weight: 500; }

.pop { position: relative; }
.pop > summary { list-style: none; min-height: 0; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-panel {
  position: absolute; z-index: 40; width: 18rem; padding: .5rem;
  background: rgb(var(--panel)); border: 1px solid rgb(var(--line)); border-radius: 16px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.pop-title { margin: .25rem .5rem .5rem; font-size: .6875rem; font-weight: 700;
             letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--muted)); }

.switch > summary {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: rgb(var(--muted));
}
.switch > summary:hover, .switch[open] > summary { background: rgb(var(--raised)); color: rgb(var(--ink)); }
.switch .pop-panel { top: 3rem; left: 0; }
.switch .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.switch .tile {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .75rem .25rem;
  border-radius: 12px; font-size: .75rem; font-weight: 600; color: rgb(var(--ink)); text-decoration: none;
}
.switch a.tile:hover, .switch .tile.here { background: rgb(var(--raised)); }
.switch .sq { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; }
.sq.app-plot { background: rgb(var(--plot)); } .sq.app-cast { background: rgb(var(--cast)); }
.sq.app-crew { background: rgb(var(--crew)); } .sq.app-yield { background: rgb(var(--yield)); }
.sq.app-auth { background: rgb(var(--auth)); }

.side .farm-card {
  display: flex; align-items: center; gap: .6rem; margin: 0 .1rem .25rem; padding: .55rem;
  background: rgb(var(--raised)); border: 1px solid rgb(var(--line)); border-radius: 14px;
}
.side .farm-text { min-width: 0; }
.side .farm-text strong { display: block; line-height: 1.25; font-size: .875rem; }
.side .farm-text a { font-size: .75rem; color: rgb(var(--muted)); }

.side .items { display: flex; flex-direction: column; gap: .15rem; flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.side .items a {
  display: flex; align-items: center; gap: .75rem; height: 40px; padding: 0 .75rem;
  border-radius: 12px; font-size: .875rem; font-weight: 550; color: rgb(var(--muted));
  text-decoration: none; white-space: nowrap;
}
.side .items a .icon { width: 20px; height: 20px; }
.side .items a:hover { background: rgb(var(--raised)); color: rgb(var(--ink)); }
.side .items a[aria-current="page"] { background: rgb(var(--blaze) / .15); color: rgb(var(--ink)); font-weight: 700; }
.side .items a[aria-current="page"] .icon { color: rgb(var(--blaze)); }

.person > summary {
  display: flex; align-items: center; gap: .6rem; padding: .35rem; border-radius: 12px;
}
.person > summary:hover, .person[open] > summary { background: rgb(var(--raised)); }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: rgb(var(--blaze)); color: rgb(var(--blaze-ink)); font-size: .75rem; font-weight: 700;
}
.person .who { min-width: 0; line-height: 1.2; }
.person .who strong { display: block; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who span { font-size: .75rem; color: rgb(var(--muted)); }
.person .pop-panel { bottom: 3rem; left: 0; width: 16rem; }
.person .menu-row, .person .menu-row button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px;
  padding: 0 .6rem; border-radius: 8px; font-size: .875rem; font-weight: 500;
  color: rgb(var(--ink)); background: none; border: 0; text-decoration: none; text-align: left; cursor: pointer;
}
.person .menu-row:hover, .person .menu-row button:hover { background: rgb(var(--raised)); }
.person form { margin: 0; }
.person .menu-row[aria-current="page"] { font-weight: 700; }
.person .sep { height: 1px; margin: .35rem .4rem; background: rgb(var(--line)); }

.fold { display: none; margin: 0; }
.content { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

@media (min-width: 64rem) {
  .topbar, .drawer-shade, .drawer-toggle { display: none !important; }
  .side { width: var(--side); max-width: none; transform: none; transition: width .2s ease; }
  .content { margin-left: var(--side); padding: 2.5rem 2rem 3rem; max-width: calc(46rem + var(--side)); padding-left: calc(var(--side) + 2rem); margin-left: 0; }
  .fold { display: block; position: absolute; top: 4rem; right: -14px; }
  .fold button {
    display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0;
    border-radius: 50%; color: rgb(var(--muted)); background: rgb(var(--panel));
    border: 1px solid rgb(var(--line)); box-shadow: var(--shadow);
  }
  .fold button:hover { color: rgb(var(--ink)); border-color: rgb(var(--blaze)); }
  body.folded .fold .icon { transform: rotate(180deg); }
  body.folded .side .wide-only, body.folded .side .items a span,
  body.folded .side .farm-card, body.folded .person .who { display: none; }
  body.folded .side .items a { justify-content: center; padding: 0; }
}
@media (pointer: fine) { :root { --touch: 40px; } }
