:root{--ink:#1f2a24;--muted:#5c6b62;--line:#d6ddd8;--accent:#2f6b4f;--bg:#f7f9f7}
*{box-sizing:border-box}
body{margin:0;font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:10px 20px;background:#fff;border-bottom:1px solid var(--line)}
.brand{font-weight:700;color:var(--ink);text-decoration:none}
.topbar .account{margin-left:auto}
/* Sidebar (Owner, 2026-11-12): navigation beside the page; on a phone a Menu above it that opens in the page flow. */
.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.side{display:flex;flex-direction:column;gap:18px;padding:20px 14px;background:#f2f5f3;border-right:1px solid var(--line);position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto}
.shell>main{margin:0;min-width:0;overflow-x:auto}
.side .brand{font-size:1.05rem;padding:0 8px}
.side-nav{display:flex;flex-direction:column;gap:2px}
.side-nav a,.side .account a,.phone-nav .account a{display:block;padding:8px;border-radius:6px;color:var(--ink);text-decoration:none}
.side-nav a:hover,.nav-menu>summary:hover,.side .account a:hover{background:#e5ece7}
.side-nav a.current,.account a.current{background:#dcece2;color:#20563d;font-weight:650;box-shadow:inset 3px 0 var(--accent)}
.nav-menu>summary{cursor:pointer;padding:8px;font-weight:650;border-radius:6px}
.nav-sub>summary{cursor:pointer;padding:6px 8px;border-radius:6px}
.side-nav summary:focus-visible,.side-nav a:focus-visible,.account a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nav-items{display:flex;flex-direction:column;gap:2px;margin:2px 0 8px 12px;padding-left:10px;border-left:1px solid var(--line)}
.nav-sub a{margin-left:10px}
.nav-label{color:var(--muted);font-size:.85rem}
.side-nav details+.nav-top{margin-top:10px;border-top:1px solid var(--line);border-radius:0 0 6px 6px}
.side .account{margin-top:auto;flex-direction:column;align-items:stretch;gap:2px;padding-top:12px;border-top:1px solid var(--line)}
.account [data-account]{padding:0 8px 6px;font-size:.85rem;overflow-wrap:anywhere}
.side .account button,.phone-nav .account button{width:100%;text-align:left}
.phone-nav{display:none;margin:0 0 18px;padding:12px 14px;background:#f2f5f3;border:1px solid var(--line);border-radius:8px}
.phone-nav>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:700}
.phone-nav .side-nav{padding-top:10px}
.phone-nav .account{flex-direction:column;align-items:stretch;gap:2px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
@media (max-width:760px){.shell{grid-template-columns:minmax(0,1fr)}.side{display:none}.phone-nav{display:block}}
.clone-line{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 8px}
.clone-line select,.clone-line input{height:40px;font-size:1rem;padding:0 8px;box-sizing:border-box}
.clone-line select{min-width:190px;max-width:100%}
.clone-line input[type=number]{width:80px}
.clone-line .line-other{height:40px;font-size:1rem;padding:0 8px;min-width:220px}
@supports selector(:has(*)){.clone-line:not(:has(option[value="other"]:checked)) .line-other{display:none}}
/* Clone Cut lines (Owner, 2026-11-12: "this has to be all one line. don't split to the second line"): each line keeps
   Variety | Quantity | Source | Strain badge | Other description on one line. The lines use the page width, not the
   narrow form width, and scroll inside their own box when the screen is narrower: never wrapped, clipped or widening
   the page. */
.form[data-clone-cut-form]{max-width:none}
.form[data-clone-cut-form]>*{min-width:0}
[data-clone-cut-form] fieldset[data-counts]{min-width:0;overflow-x:auto}
[data-clone-cut-form] .clone-line{flex-wrap:nowrap;width:max-content}
[data-clone-cut-form] .clone-line>*{flex:none}
[data-clone-cut-form] .clone-line select{max-width:none}
.strain-badge{white-space:nowrap}
.strain-badge{display:none;align-items:center;height:32px;padding:0 14px;border-radius:999px;border:1px solid rgba(0,0,0,.2);font-weight:700;letter-spacing:.02em}
.icon-button{min-width:40px;min-height:40px;font-size:1.3rem;line-height:1;padding:4px 10px}
.event-links a{margin-right:14px}
.account{display:flex;align-items:center;gap:10px;color:var(--muted)}
.account form{margin:0}
.account a{color:var(--accent);text-decoration:none}
main{max-width:1100px;margin:0 auto;padding:20px}
h1{font-size:1.6rem;margin:.2em 0 .6em}
h2{font-size:1.2rem}
.tabs{display:flex;gap:6px;margin:0 0 14px}
.tabs a{padding:6px 12px;border:1px solid var(--line);border-radius:6px;color:var(--ink);text-decoration:none;background:#fff}
.tabs a[aria-current="page"]{background:var(--accent);border-color:var(--accent);color:#fff}
.heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.batch-name{font-size:1.25rem;text-align:right}
/* The Trim Card like the paper card (owner-trim-card-layout-2026-11-13): stats, blank rows, note popover, pencil. */
.card-stats{display:flex;flex-wrap:wrap;gap:8px 24px;margin:8px 0 14px}
.card-stats dt{font-size:.8rem;color:var(--muted)}
.card-stats dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
table.paper-card td,table.paper-card th{font-variant-numeric:tabular-nums}
table.paper-card tr.paper-blank th,table.paper-card tr.paper-blank td{height:1.6rem}
table.paper-card .row-actions{white-space:nowrap;text-align:right}
.pencil{text-decoration:none;font-size:1.1rem;padding:2px 6px}
.card-note-box{max-width:22rem;padding:12px;background:#fffef5;border:1px solid var(--line);border-radius:6px}
.card-note-box p{margin:0 0 8px}
.candidates{margin-top:18px}
.card-steps{display:flex;flex-wrap:wrap;gap:6px 20px;margin:8px 0 14px;padding-left:1.4rem}
table.records{width:100%;border-collapse:collapse;background:#fff}
table.records th,table.records td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.form{display:grid;gap:12px;max-width:560px}
.form label{display:grid;gap:4px}
.form input,.form select,.form textarea{font:inherit;padding:8px;border:1px solid var(--line);border-radius:6px}
/* An inline form (a small form inside a table row: a category's rename and retire, a task's Done) takes the same field
   styling as the main forms (Astra's installed look at 8fb7de29: the rename fields were 21px tall at 13.3px). */
.inline-form :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){font:inherit;padding:8px;border:1px solid var(--line);border-radius:6px}
button,.button{font:inherit;padding:8px 14px;border-radius:6px;border:1px solid var(--accent);background:var(--accent);color:#fff;text-decoration:none;cursor:pointer;display:inline-block}
button.quiet,.button.quiet{background:#fff;color:var(--accent)}
.actions{display:flex;gap:10px}
.muted,.empty{color:var(--muted)}
.notice{padding:8px 12px;background:#eef5f0;border:1px solid var(--line);border-radius:6px}
.error,.errorlist{color:#9b1c1c}
.messages{list-style:none;padding:8px 12px;background:#eef5f0;border:1px solid var(--line);border-radius:6px}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 18px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#fff}
.choice-grid legend{padding:0 4px;font-weight:600}
.form label.choice{display:flex;align-items:center;gap:8px;padding:4px 0;cursor:pointer}
.form label.choice input{width:auto;margin:0;padding:0}
/* Every checkbox on its own label's line, the box first (Owner, owner-qc-and-admin-2026-11-13: a box above its role read
   as the next role's), and a list of boxes in at least two columns, one on a phone. It covers Django's own form
   rendering: a box inside its label in a list (Responsibilities, room groups' rooms), and a single box beside its label
   (Retired). The hand-written label.choice and choice-grid above already work this way. No markup change, no script. */
.form label:has(>input[type=checkbox]),.form label:has(>input[type=radio]){display:flex;align-items:center;gap:8px}
.form>div:has(>input[type=checkbox]){display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.form>div:has(>input[type=checkbox])>input[type=checkbox]{order:-1}
.form label:has(>input[type=checkbox])>input[type=checkbox],.form label:has(>input[type=radio])>input[type=radio],
.form>div:has(>input[type=checkbox])>input[type=checkbox]{width:22px;height:22px;margin:0;padding:0;flex:none}
.form fieldset>div[id]:has(>div>label>input[type=checkbox]){display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:4px 18px}
/* Screen-reader labels (Astra's 390px look at 5539a544): an absolutely positioned label sits at its static place unless
   told otherwise, and its containing block was the page, so labels far right in a scrolling row table escaped the
   table's clipping and widened the page. The label now sits at the top left of its containing block, and every
   scrolling box is positioned so it is that block. The labels stay; page overflow is never hidden globally. */
.sr-only{position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
table.records,.rows-box,.grid-wrap,[data-clone-cut-form] fieldset[data-counts],.list-box{position:relative}
/* A Strain pill always shown (the tag table's Strain column), unlike the Clone Cut line badge, which CSS shows only
   for the Variety selected. */
.strain-badge.strain-pill{display:inline-flex}
/* My cards (Slice 4 part 3, phone-first): one block per card or batch instead of a wide table. */
.card-list{list-style:none;margin:0;padding:0}
.card-list>li{padding:12px 0;border-bottom:1px solid var(--line)}
/* Weigh-ins grid (owner-weighin-grid-2026-11-12): a laptop-and-keyboard screen, compact cells like a spreadsheet; on a
   narrow screen the grid scrolls inside its own box. */
.grid-wrap{overflow-x:auto;max-width:100%}
table.grid{min-width:1000px}
table.grid td,table.grid th{padding:2px 4px;vertical-align:middle}
table.grid input,table.grid select{width:100%;font:inherit;padding:4px 6px;border:1px solid var(--line);border-radius:4px}
table.grid input[type=number]{min-width:7ch;text-align:right}
table.grid :focus{outline:2px solid var(--accent);outline-offset:-1px}
.grid-number{text-align:right;white-space:nowrap}
table.grid .grid-lookup{white-space:nowrap}
table.grid .grid-lookup input{width:5ch;text-transform:uppercase}
table.grid tr[data-grid-problem] td,table.grid tr[data-grid-refused] td{background:#fdf1f1}
table.grid tr[data-grid-saved]:not([data-grid-refused]):not([data-grid-problem]) [data-grid-status]{color:var(--accent)}
/* Owner walk of the real grid (2026-11-12): a green check for a saved row, the reason in red for a row not saved, and
   the note as an icon with a small comment box anchored to it (filled when the row has a note). */
table.grid .grid-saved{color:#1f7a3f;font-weight:700;font-size:1.15rem}
table.grid tr[data-grid-problem] [data-grid-status],table.grid tr[data-grid-refused] [data-grid-status]{color:#9b1c1c}
table.grid .grid-note{position:relative;text-align:center}
.grid-note-button{background:#fff;color:var(--muted);border:1px solid var(--line);padding:4px 6px;line-height:0}
.grid-note-button svg{fill:none;stroke:currentColor;stroke-width:1.5}
.grid-note-button[data-grid-has-note]{color:var(--accent);border-color:var(--accent)}
.grid-note-button[data-grid-has-note] svg{fill:currentColor}
.grid-note-box{position:absolute;right:0;top:100%;z-index:2;width:18rem;padding:8px;background:#fffef5;
  border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,.15);text-align:left}
.grid-note-box textarea{width:100%;font:inherit}
.grid-note-box button{margin-top:6px}
/* Owner walk of the mock (2026-11-12): typed cells with no spinner arrows; the Trimmer cell never shrinks (its width is
   set from the longest name and the grid scrolls sideways first); Trimmer and Room are plain typed cells; the Variety
   shows a Strain colour dot with a thin outline (so a white Strain shows) and the Variety name. */
table.grid input[type=number]{-moz-appearance:textfield;appearance:textfield}
table.grid input[type=number]::-webkit-outer-spin-button,
table.grid input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
table.grid .grid-trimmer{white-space:nowrap}
table.grid .grid-trimmer input{max-width:none}
table.grid .grid-room input{min-width:10ch}
table.grid .strain-pill{height:24px;padding:0 10px}
.strain-dot{display:inline-block;width:.8em;height:.8em;border-radius:50%;border:1px solid var(--muted);
  vertical-align:middle;margin-right:2px}
.form.filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:none}
/* Tasks (Owner, owner-tasks-layout-2026-11-13, the approved mockup; on the standard list, owner-standard-list-2026-11-13):
   status tabs with counts, a search and an assignee filter, rows grouped by status, one line per task on a desktop (a
   long title or group ends in an ellipsis; the full values are in the popup), and the selected task in the standard
   popup (dialog.task-popup), not beside the list. On a phone the row is the compact two-line row. */
.tab-count{font-size:.8rem;opacity:.75}
.form.filters input[type=search]{flex:1 1 14rem;min-width:0}
.form.filters select{max-width:100%}
.tasks-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.task-group{display:flex;align-items:center;gap:8px;font-size:.9rem;margin:18px 0 6px}
.status-label{padding:2px 8px;border-radius:4px;font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.status-open{background:#e8eefb;color:#2a4d8f}
.status-done{background:#e3f1e7;color:#1f6b3f}
.status-cancelled{background:#eef0ef;color:var(--muted)}
.task-rows{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px}
.task-row{display:grid;grid-template-columns:28px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.2fr) 7.5rem 2.75rem;
  grid-template-areas:"check title who where due menu";align-items:center;gap:4px 12px;padding:8px 10px;
  border-bottom:1px solid var(--line)}
.task-row:last-child{border-bottom:0}
.task-row.chosen{background:#eef5f0;box-shadow:inset 3px 0 var(--accent)}
.task-head{padding-top:6px;padding-bottom:6px;font-size:.8rem;color:var(--muted)}
.task-head .task-title,.task-head .task-where{font-weight:400;color:var(--muted)}
.task-check{grid-area:check}
.task-title{grid-area:title;color:var(--ink);font-weight:550;text-decoration:none;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.task-title:hover{text-decoration:underline}
.task-meta{display:contents}
.task-who{grid-area:who;display:flex;align-items:center;gap:6px;min-width:0;font-size:.9rem;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.task-where{grid-area:where;font-size:.85rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task-due{grid-area:due;font-size:.9rem;white-space:nowrap}
.task-state{display:block;font-size:.8rem}
.late{color:#9b1c1c}
.check{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:1.5px solid var(--muted);
  border-radius:50%;background:#fff;color:#1f6b3f;font-size:.95rem;line-height:1}
button.check:hover,button.check:focus-visible{border-color:var(--accent);background:#eef5f0}
.check.checked{border-color:#1f6b3f}
.check.crossed{border-style:dashed;color:var(--muted)}
/* Task statuses (the Owner, owner-walk-batch-2026-11-13): Open, In progress, Complete. The smaller circle is the control:
   a native details element whose menu sets the status (no script); the row's "…" menu (the standard list) holds
   Details, Edit and Cancel with its reason. On a phone the circle keeps a 44px touch target (below). */
.status-in_progress{background:#fff4d9;color:#8a5a00}
.task-menu{grid-area:menu;text-align:right}
.status-menu,.task-menu .row-menu{position:relative}
.status-menu>summary{list-style:none;cursor:pointer}
.status-menu>summary::-webkit-details-marker{display:none}
.task-row .check{width:18px;height:18px}
.check.status-open{background:#fff}
.check.status-in_progress{border-color:#c08a00;background:radial-gradient(circle,#e0a100 38%,#fff 44%)}
.status-menu .menu-pop,.task-menu .menu-pop{position:absolute;top:100%;z-index:5;display:grid;gap:4px;padding:6px;
  background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 14px #0002}
.status-menu .menu-pop{left:0;min-width:10rem}
.task-menu .menu-pop{right:0;min-width:18rem;text-align:left}
.status-menu .menu-pop form,.task-menu .menu-pop form{display:flex;gap:6px;align-items:center;margin:0}
.status-menu .menu-pop button{width:100%;text-align:left}
.status-menu .current-status{display:flex;align-items:center;padding:8px 14px;color:var(--muted);font-weight:600}
.task-menu .menu-pop a{display:block;padding:6px 10px;border-radius:5px;text-decoration:none;color:var(--ink)}
.dot{display:inline-block;width:10px;height:10px;margin-right:8px;border:1.5px solid var(--muted);border-radius:50%;
  background:#fff;vertical-align:-1px}
.dot.status-in_progress{border-color:#c08a00;background:#e0a100}
.dot.status-done{border-color:#1f6b3f;background:#1f6b3f}
.avatar{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e3efe8;
  color:#20563d;font-size:.7rem;font-weight:700}
.task-popup h2{margin:0;font-size:1.25rem;overflow-wrap:anywhere}
.task-popup .form{max-width:100%}
.task-facts{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:8px 12px;margin:14px 0}
.task-facts dt{color:var(--muted)}
.task-facts dd{margin:0;overflow-wrap:anywhere}
/* Row forms (the opening forms; Astra's 390px look at 36979d7e): a fieldset of row tables is a grid item whose
   min-content width (the table of selects) widened the whole form and the page. min-width:0 keeps every field at the
   form's width; the row tables scroll inside their own fieldset. The page never scrolls sideways. */
.form.rows-form{max-width:60rem}
.form.rows-form>*{min-width:0}
.form.rows-form fieldset.rows-box{min-width:0;max-width:100%;overflow-x:auto}
/* A-OPEN-FORM-1: the date and, at Dry or Trim, the Dry room (and Trim's next batch) side by side; one column on a phone. */
.opening-when{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:12px}
.opening-when>*{min-width:0}
/* The Opening page (owner-opening-page-2026-11-13): the groups ready to open, as a wrapping row of buttons. */
.opening-next{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px}
/* Recipes (recipe engine part 2; the approved library and editor v4 mocks, desktop). The library's category list sits
   beside the recipe, above it on a phone. The editor is a desktop screen; on a phone its rows table scrolls inside its
   own box (min-width:0 on the form's items, as the row forms), so the page never scrolls sideways. The "…" menu is a
   native details element and the task popup a dialog the server renders open: no script. */
/* Compare two versions as the approved picture c: the selectors inline beside the title; one table, each row marked
   Changed, Added or Removed in the picture's tints; a changed cell's old value struck through, the new one bold. */
.compare-heading .inline-compare{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.compare-heading .inline-compare label{display:inline}
/* The selectors and their button take the page's type and grow with it (Astra, PR 1025; the full-width rule). */
.compare-heading .inline-compare select,.compare-heading .inline-compare button{font:inherit;padding:.5rem .625rem;border-radius:6px}
.compare-heading .inline-compare select{border:1px solid var(--line);background:#fff;min-width:9rem}
/* The padding only, at (0,4,2), above the shared .inline-form field rule's (0,4,1) (Astra, PR 1025); that rule's phone
   44 px minimum and 16 px text stay. */
.compare-heading form.inline-form.inline-compare select[name]{padding:.5rem .625rem}
.compare-table tr.chg td{background:#fff7e0}.compare-table tr.add td{background:#e8f6ec}
.compare-table tr.rem td{background:#fbeaea;color:#7a4141;text-decoration:line-through}
.compare-table b.was{color:#8a5a5a;font-weight:400;text-decoration:line-through}
/* The calculated columns stay grey as pictured, header and every row (Astra, PR 1025); the row's mark and tint stay on
   its other cells. */
table.compare-table th.calc,table.compare-table tr td.calc{background:#f1f1f1;color:#55635a}
.compare-table td.num,.compare-table th.num{text-align:right}.compare-table th small{display:block;font-weight:400;color:var(--muted)}
.recipe-layout{display:grid;grid-template-columns:13rem minmax(0,1fr);gap:18px;align-items:start}
.recipe-categories{display:grid;gap:2px;padding:12px;background:#edf2ee;border-radius:8px}
.recipe-categories h2{font-size:1rem;margin:0 0 6px}
.recipe-categories a{display:block;padding:7px 9px;border-radius:5px;color:var(--ink);text-decoration:none}
.recipe-categories a[aria-current="page"]{background:#fff;font-weight:700}
.recipe-categories small{display:block;color:var(--muted);font-weight:400}
.recipe-content{min-width:0}
table.records tr.opened td{background:#eef6f0}  /* the versions list's opened version, shown below it (picture b) */
.pill{display:inline-block;padding:2px 9px;border-radius:20px;background:#dfede2;font-size:.85rem}
.pill.draft{background:#fff4d9}
.form.recipe-editor{max-width:none}
.form.recipe-editor>*{min-width:0}
.recipe-rows input[type=text]{width:100%;min-width:14rem}
.recipe-rows input[type=number]{width:5.5rem}
.row-menu{position:relative}
.row-menu>summary{list-style:none;cursor:pointer;padding:4px 10px;border:1px solid var(--line);border-radius:6px;text-align:center}
.row-menu>summary::-webkit-details-marker{display:none}
.row-menu .menu-pop{position:absolute;right:0;top:100%;z-index:5;display:grid;gap:4px;min-width:8rem;padding:6px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 14px #0002}
.danger{color:#9b1c1c}
dialog.task-popup{position:fixed;top:6vh;left:50%;transform:translateX(-50%);z-index:30;width:min(40rem,94vw);max-height:88vh;overflow:auto;margin:0;padding:18px;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 40px #0003;background:#fff}
/* The recipe editor's step popup as the approved picture d: wide; the title and the instructions each in three language
   boxes side by side (English, Español, Հայերեն); anchor and day, action, role and the settings recipe in the lower
   section; Cancel and Save step at the end. On a phone the boxes stack. */
dialog.task-popup[data-task-popup]{width:min(72rem,94vw)}
[data-task-popup] form.form{max-width:none}
[data-task-popup] .field-label{font-weight:700;margin-top:6px}
[data-task-popup] .lang-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
[data-task-popup] .lang-grid label{min-width:0}
[data-task-popup] .lang-grid input,[data-task-popup] .lang-grid textarea{width:100%;box-sizing:border-box}
[data-task-popup] .step-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:12px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
[data-task-popup] .step-actions{justify-content:flex-end}
/* The lower fields stay inside their grid tracks, a long settings recipe name included (Astra, PR 1026). */
[data-task-popup] .step-facts label{min-width:0}
[data-task-popup] .step-facts select,[data-task-popup] .step-facts input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
@media (max-width:760px){[data-task-popup] .lang-grid{grid-template-columns:minmax(0,1fr)}}
/* The standard list (owner-standard-list-2026-11-13; copied from recipe editor v4): one line per item on a desktop
   (cells never wrap; a long value ends in an ellipsis, the menu cell excepted so its menu is not clipped), the "…" menu
   at the row's right, a plus icon to add, and a popup (dialog.task-popup) for an item's details and history. At 390px
   the table scrolls inside its own box (table.records below), so the page never scrolls sideways. */
.standard-list th,.standard-list td{white-space:nowrap}
.standard-list td:not(.menu-cell){max-width:22rem;overflow:hidden;text-overflow:ellipsis}
.standard-list td.menu-cell{width:1%;text-align:right}
.standard-list td.input-cell{max-width:none;overflow:visible}  /* a cell holding a field (Keep or Adjust's chosen date) */
/* A preview row's task (Astra, PR 907): its title stays on one line, ending in an ellipsis; opening the native details
   element in the cell shows the full title and the task's identity, read only, in the row's flow (no navigation, so
   typed dates and the reason stay); on a phone the table still scrolls inside its own box. */
.standard-list td.detail-cell{max-width:none;overflow:visible}
.row-detail>summary{cursor:pointer;max-width:22rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-detail-body{max-width:28rem;margin-top:6px;white-space:normal;overflow-wrap:anywhere}
.row-detail-body .task-facts{margin:6px 0}
/* The existing-group update preview (part 5; the approved update-preview v1 mock): one box per group, a native details
   element; each replaced task's fields before and after in a standard-list table (values never clipped). */
.group-update{margin:12px 0;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:8px}
.group-update>summary{cursor:pointer}
.update-task{margin:10px 0}
/* Its before and after comparison: fixed columns, every value in full and wrapped (whitespace kept), never one
   unbounded line (Astra, PR 912 R2); the same at 390px, inside the table's own box. */
table.compare{table-layout:fixed;width:100%}
table.compare th:first-child,table.compare td:first-child{width:8.5rem}
table.compare td{white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}
.standard-list tr.retired td{color:var(--muted)}
.row-menu .menu-pop a{display:block;padding:6px 10px;border-radius:5px;text-decoration:none;color:var(--ink);white-space:nowrap}
.row-menu .menu-pop a:hover{background:#edf2ee}
.button.plus{font-size:1.4rem;line-height:1;padding:4px 14px}
@media (min-width:1100px){.tasks-layout.with-panel{grid-template-columns:minmax(0,1fr) minmax(300px,380px)}.task-panel{order:2;position:sticky;top:12px;align-self:start;max-height:calc(100vh - 24px);overflow-y:auto}}
/* Phone width (Owner, owner-review-five-2026-11-12; checked at 390px). The accepted list, form and detail patterns stay
   as they are on a desktop; on a phone: the document never scrolls sideways (a wide table or the Clone Cut lines
   scroll inside their own box), every control is reachable and at least 44px high, form fields take the full width,
   and text stays at 16px. No JavaScript; this one stylesheet. */
@media (max-width:760px){
  main{padding:12px;overflow-wrap:break-word}
  h1{font-size:1.35rem}
  .heading-row{flex-wrap:wrap;align-items:flex-start}
  .heading-row>span,.actions,.tabs,.event-links{display:flex;flex-wrap:wrap;gap:8px}
  .event-links a{margin-right:0}
  table.records{display:block;max-width:100%;overflow-x:auto}
  /* The standard list's "…" menu opens in the row's flow on a phone, so an open menu grows its row instead of floating
     outside the table's scroll box, where it would be clipped (Astra, PR 903). One rule for every row menu. */
  .row-menu .menu-pop{position:static;min-width:0;margin-top:6px;box-shadow:none}
  table.records th,table.records td{padding:10px 8px}
  .form,.form.wide{max-width:100%}
  .form>div>:is(input,select,textarea),.form label>:is(input,select,textarea){width:100%;max-width:100%}
  .form input:not([type=checkbox]):not([type=radio]),.form select,.form textarea,.clone-line select,.clone-line input,
  .clone-line .line-other{min-height:44px;font-size:16px}
  button,.button,.icon-button{min-height:44px;padding:10px 16px;line-height:22px}
  .actions>*{flex:1 1 auto;text-align:center}
  .side-nav a,.phone-nav .account a,.nav-menu>summary,.nav-sub>summary,.phone-nav>summary{min-height:44px;padding:11px 8px}
  .phone-nav .account button{min-height:44px}
  .form label.choice{min-height:44px}
  .form label.choice input{width:22px;height:22px}
  .choice-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .messages,.notice,.error{overflow-wrap:anywhere}
  .tag-slot{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
  .task-row{grid-template-columns:44px minmax(0,1fr) auto 44px;grid-template-areas:"check title due menu" "check meta meta meta"}
  .task-title,.task-who,.task-where{white-space:normal;overflow-wrap:anywhere}
  /* Open "…" menus fit the phone (Astra, PR 905, the three list PRs' styles combined): a menu that opens in its row's
     flow (the shared row-menu rule) drops the desktop .wide minimum; a task row's menu sits in a 44px cell, so it
     floats from the row's right edge, no wider than the screen, and the main column never scrolls sideways. No
     overflow is hidden. */
  details.row-menu .menu-pop.wide{min-width:0;max-width:100%}
  .task-menu details.row-menu .menu-pop{position:absolute;right:0;left:auto;min-width:0;width:min(18rem,calc(100vw - 48px));
    max-width:none;margin-top:0;box-shadow:0 4px 14px #0002}
  .task-meta{grid-area:meta;display:flex;flex-wrap:wrap;gap:2px 14px}
  .task-head{display:none}
  .task-row .check{width:44px;height:44px;min-height:44px;padding:0}
  .task-facts{grid-template-columns:6.5rem minmax(0,1fr)}
  .recipe-layout{grid-template-columns:minmax(0,1fr)}
  .inline-form :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){min-height:44px;font-size:16px}
}
/* Recipe categories on the standard list (owner-standard-list-2026-11-13): one line per category; the "…" menu holds the
   Details, the rename form and Retire; the plus icon opens the add form below it; Details opens the popup
   (dialog.task-popup). Both menus are native details elements, no script. On a phone the menu opens in the row's flow
   by the one shared row-menu rule (PR 903, installed with this one), so it never leaves the table's scroll box. */
.category-list td{white-space:nowrap}
.category-list .menu-pop a{display:block;padding:6px 10px;border-radius:5px;text-decoration:none;color:var(--ink)}
.category-list td.menu-cell{width:1%;text-align:right}
.category-list tr.retired td{color:var(--muted)}
.row-menu .menu-pop.wide{min-width:20rem}
.row-menu .menu-pop form{display:flex;gap:6px;align-items:center;margin:0}
.add-menu>summary{list-style:none;font-size:1.4rem;line-height:1;padding:4px 14px}
.add-menu>summary::-webkit-details-marker{display:none}
.add-menu[open] .form{margin-top:10px}
@media (max-width:760px){
  .row-menu .menu-pop form{flex-wrap:wrap}
}
/* Slice 6: the Clock page's one large button, green to clock in and red to clock out (the Owner, Frappe time.html). */
.clock-card{max-width:440px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:20px}
.clock-card form{display:grid;gap:12px}
.clock-card label{display:grid;gap:4px}
.clock-card input[name=code]{font-size:1.8rem;letter-spacing:.25em;text-align:center;padding:8px;border:1px solid var(--line);border-radius:6px}
.clock-state{font-size:1.2rem;font-weight:700;margin:0 0 12px}
.clock-button{width:100%;min-height:88px;font-size:1.5rem}
.clock-in{background:#246249;border-color:#246249}
.clock-out{background:#aa2929;border-color:#aa2929}
/* The page header on every signed-in page (Astra, PRs 937 and 938): the Language menu and Report a problem or idea, at
   the top right on a desktop and below the Menu bar on a phone, never inside the collapsed Menu. The Language menu is a
   native details element holding one small POST form; its three languages open in a small box below it. On the
   sign-in page the same form shows in one row. The current language is marked. No script. */
.page-top{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.language-menu{position:relative}
.language-menu>summary{padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);cursor:pointer;font-size:.9rem}
.page-top .language-menu .language-form{position:absolute;right:0;top:calc(100% + 4px);z-index:20;min-width:10rem;padding:6px;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 18px #0002}
.page-top .language-form button{width:100%;text-align:left}
.language-form{display:flex;flex-direction:column;gap:2px}
.language-form button[aria-current]{font-weight:650}
.language-choice{margin:0 0 12px}
.language-choice .language-form{flex-direction:row;flex-wrap:wrap;gap:8px}
@media (max-width:760px){.language-menu>summary{min-height:44px;padding:11px 12px}}
.report-link{display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--accent);text-decoration:none;font-size:.9rem}
@media (max-width:760px){.report-link{min-height:44px;padding:11px 12px}}
/* The clock code display (Slice 6; the picture the Owner approved, 2026-11-14): one screen inside the facility, the
   code large in the middle, when it changes, one instruction line; the no-code state in amber. No sidebar, no menu. */
.code-display-page{margin:0;background:#fff}
.code-display{max-width:none;min-height:100vh;margin:0;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center}
.code-display p{margin:0}
.code-label{font-size:clamp(18px,3vw,28px);color:#4c6655}
.code-digits{font:700 clamp(84px,22vw,220px)/1 ui-monospace,Menlo,monospace;letter-spacing:.18em;color:#1f4a33}
.code-until{font-size:clamp(18px,3vw,30px);color:#386148}
.code-hint{font-size:clamp(15px,2.2vw,22px);color:#65776b;max-width:40rem}
.code-display.no-code{background:#fff7e8}.code-display.no-code .code-digits{color:#b9c6bd}
.code-warn{font-size:clamp(18px,3vw,30px);color:#7a5418;font-weight:650}
/* The watering settings grid, as the approved picture has it (docs/scope/reference/recipe-settings-history-v1.html),
   a desktop screen: two header rows (the column groups, then each column with its unit), every title whole and centred
   over its column, Start time and the three System check values each in their own grey column, each listed day on one
   line, a row's inputs in place. The Owner's walk 9: no stacked values and no title broken inside a word; the grid
   takes the full width of the page (in the library it sits below the category list). Astra, PR 1020 R1 (the whole
   grid on a 1,440 and a 1,920 desktop): no wasted width: tight padding, each input sized to its numbers (5ch for
   seconds, minutes and shots, 6ch for times, 4ch for the day), a title's second-tier explanation may wrap between
   whole words, the open row's Save row and Cancel may sit one above the other; the text stays .9rem. Phones keep the
   shared table rules. */
.settings-grid{width:100%;font-size:.9rem}
table.settings-grid th,table.settings-grid td{padding:4px 5px;white-space:nowrap}
table.settings-grid th{text-align:center;vertical-align:bottom}
table.settings-grid td[colspan]{white-space:normal}  /* a row's error line */
.settings-grid thead tr.group th{border-left:1px solid var(--line);font-size:.8rem}
.settings-grid th small{display:block;font-weight:400;color:var(--muted);white-space:normal}  /* whole-word wraps only */
.settings-grid td.num{text-align:right}
.settings-grid .calc{background:#f1f1f1;color:#55635a}
.settings-grid tr.editing td{background:#f3faf5}
.settings-grid tr.editing td.calc{background:#f1f1f1}
.settings-grid tr.row-actions-line td.row-actions{text-align:left;padding-top:2px}  /* under the open row, full width */
.settings-grid input,.settings-grid select{font:inherit;padding:3px 4px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:right}
.settings-grid input[data-kind=seconds],.settings-grid input[data-kind=minutes],.settings-grid input[data-kind=count]{width:5ch}
.settings-grid input[data-kind=clock],.settings-grid input[data-kind=duration]{width:6ch}
.settings-grid input[name=day]{width:4ch}
.settings-grid select{text-align:left;width:auto}
/* The picture's compact titles (view b) below 2,200 px, where the full titles would push the grid past the page
   (Astra's measures of PR 1022: 2,560 and 3,840 fit, 1,920 and 1,440 did not): the compact title shows, the full one
   stays for screen readers and as the tooltip. Same columns, one line per day, the text the same size. */
.settings-grid .head-compact{display:none}
@media (max-width:2199px){
  .settings-grid .head-compact{display:inline}
  .settings-grid .head-full{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
  table.settings-grid th,table.settings-grid td{padding:3px 4px}
}
.settings-wide{margin-top:1.25rem}

/* ===== Block: pilot item 8, sign in (PRs for parts a to d). Each open PR appends its own block at the END of this
   file, in the order the PRs open, so two PRs never edit the same lines. ===== */
/* A one-time sign-in code, shown to the Admin once (pilot item 8, part a). */
.code-once{font:700 2.4rem/1.2 ui-monospace,Menlo,monospace;letter-spacing:.2em;margin:12px 0}

/* ===== Block: the people schedule (the trim schedule PRs). Appended at the END of this file; a PR opened later
   appends its own block after it, so two PRs never edit the same lines. ===== */
/* The trim schedule (people schedule, first slice; the approved Candidate 1, trim-schedule-week-v2): a vertical week of
   day cards, each a native details element that expands to who is expected; no horizontal scrolling, phone first. */
.schedule-facts{display:flex;gap:8px 24px;flex-wrap:wrap;margin:8px 0 12px}.schedule-facts span{color:var(--muted)}
.week-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.week-list{display:grid;gap:9px;margin-top:12px}
.day-card{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}
.day-card summary{cursor:pointer;list-style:none;padding:14px;display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center}
.day-card summary::-webkit-details-marker{display:none}
.day-card .chevron:before{content:"▸";color:#62796a}.day-card[open] .chevron:before{content:"▾"}
.day-card[open] summary{background:#edf5ef}
.day-title strong{display:block;font-size:15px}.day-title small{display:block;color:var(--muted);font-size:.8rem;margin-top:3px}
.day-counts{text-align:right;font-size:.85rem;line-height:1.7}.day-counts b{color:#2a6442}
.day-detail{padding:0 16px 16px;border-top:1px solid #e5ece7}
.group-title{color:#5e7565;font-size:.75rem;text-transform:uppercase;letter-spacing:.7px;margin:17px 0 4px;font-weight:700}
.person-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:9px 0;border-bottom:1px solid #edf1ee}
.person-row:last-child{border-bottom:0}.person-row .when{text-align:right;color:#496552;font-size:.85rem}
.day-card.off-day{padding:14px;color:var(--muted)}
/* Part 2, absences (the approved Candidates 1 and 3): the partial-day flag and each absence's note under its hours. */
.day-counts .partial-note{display:block;color:#8a641e;font-size:.75rem}
.person-row .when small{display:block;color:#8a641e;font-size:.75rem;margin-top:3px}
.person-row .when form{margin-top:4px}
@media (max-width:430px){.day-card summary{padding:12px 10px;grid-template-columns:16px 1fr auto;gap:6px}.day-detail{padding:0 12px 12px}}

/* ===== Block: the crew schedule's month (appended at the END; later PRs append after). The approved month mock: a
   seven-column calendar, each day with who works and their start time, the day editor beside it. Desktop-only by the
   Owner's exception for this one planning screen. ===== */
.crew-month{display:grid;grid-template-columns:1fr;gap:16px}.crew-month.with-editor{grid-template-columns:minmax(0,1fr) 320px}
.crew-month .calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.crew-month .weekday{font-size:.75rem;font-weight:700;color:#5e7565;text-align:center}
.cal-day{display:flex;flex-direction:column;gap:2px;min-height:96px;padding:6px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);text-decoration:none;font-size:.78rem}
.cal-day.blank{background:#f4f6f4;border-style:dashed}.cal-day.chosen{border-color:var(--accent);box-shadow:0 0 0 2px #31694f33;background:#eef6f0}
/* The crew month as the approved picture (cultivation-schedule-month-v2): the neighbouring months' dates greyed with
   their month; the manager's name bold; the heading's subtitle under the title; the legend under the calendar. */
.cal-day.other-month{background:#eef1ef;color:var(--muted)}.cal-day.other-month .num{font-weight:600}
.cal-day.other-month small{font-weight:400}
.cal-day .start.manager b{font-weight:700}
.crew-subtitle{margin:2px 0 0}.crew-legend .legend-chosen{color:var(--accent);font-weight:700}
/* The picture's calendar is one ruled grid: an upper-case weekday band, days sharing their borders (the crew month
   only; the trim month keeps its own look). */
.crew-month:not(.trim-month) .calendar{gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.crew-month:not(.trim-month) .weekday{text-align:left;text-transform:uppercase;padding:6px;background:#eef1ef;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.crew-month:not(.trim-month) .cal-day{border-width:0 1px 1px 0;border-radius:0}
.crew-month:not(.trim-month) .cal-day.chosen{box-shadow:inset 0 0 0 2px var(--accent)}
.cal-day .daytop{display:flex;justify-content:space-between}.cal-day .num{font-weight:700}.cal-day .count{color:#2a6442}
.cal-day .start{display:flex;justify-content:space-between;gap:4px}.cal-day .off{color:var(--muted);margin-top:auto}
.day-editor{border:1px solid var(--line);border-radius:9px;padding:12px;background:#fff}
/* Each person's row as the picture: the name on its own line, then the Working or Off control and the start time side
   by side, both inside the panel (they never reach past its right edge). */
.day-editor .editrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 8px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1ee}
.day-editor .editrow>strong{grid-column:1/-1}
.day-editor .editrow>label{min-width:0}
.day-editor .editrow select,.day-editor .editrow input[type=time]{width:100%;min-width:0;box-sizing:border-box;padding:6px}

/* ===== Block: a crew member's own schedule (appended at the END; later PRs append after). The approved phone
   pictures crew-schedule-own-week-v1 and -month-v1: the week list, the Week / Month switch, the seven-column month and
   the read-only day popup; usable at 390px. ===== */
.own-schedule{max-width:430px}.own-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.own-views{display:flex;margin-top:12px;border:1px solid #cbd9ce;border-radius:8px;overflow:hidden;background:#fff}
.own-views a{flex:1;text-align:center;padding:9px 0;font-size:.85rem;color:#316c50;text-decoration:none}
.own-views a[aria-current]{background:#316c50;color:#fff;font-weight:650}
.own-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 0 8px}
.own-nav a{font-size:.85rem;color:#316c50;text-decoration:none;border:1px solid #cbd9ce;border-radius:7px;padding:8px 10px;background:#fff;white-space:nowrap}
.own-period{font-weight:650;font-size:.85rem;color:#3f5a47}
.own-day{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 0;border-bottom:1px solid #dfe7e1}
.own-status{text-align:right}.own-status.working{color:#386148}.own-status.working b{font-weight:650}.own-status.off{color:#7a8a7f}
.own-note{display:block;font-size:.75rem;color:#795b24;background:#fff2d7;border-radius:6px;padding:3px 8px;margin-top:5px}
.own-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.own-cal .dow{font-size:.7rem;font-weight:650;color:#657b6b;text-align:center;padding:2px 0 4px}
.own-cal .cell{display:block;min-height:50px;border-radius:7px;background:#fff;border:1px solid #dfe7e1;padding:4px 2px;text-align:center;text-decoration:none;color:inherit}
.own-cal .cell .n{display:block;font-size:.8rem;font-weight:650}.own-cal .cell .s{display:block;font-size:.75rem;margin-top:2px;color:#386148;font-weight:600}
.own-cal .cell.off{background:#f1f4f2}.own-cal .cell.off .s{color:#7a8a7f;font-weight:500}
.own-cal .cell.late{background:#fff8e8;border-color:#ecd9a8}.own-cal .cell.late .s{color:#795b24}
.own-cal .cell.out{background:transparent;border-color:transparent}.own-cal .cell.out .n{color:#b5c2b9;font-weight:500}
.own-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:.75rem;color:#5a7262}.own-legend span{display:inline-flex;align-items:center;gap:5px}
.own-legend .sw{width:12px;height:12px;border-radius:3px;border:1px solid #dfe7e1;background:#fff}.own-legend .sw.off{background:#f1f4f2}.own-legend .sw.late{background:#fff8e8;border-color:#ecd9a8}
.own-support{margin-top:14px;background:#edf3ef;padding:12px;border-radius:8px;color:#5a7262;font-size:.75rem}
/* My trim schedule (the trimmer's own Week / Month): the crew own view with the combined trim month's lettered, tinted
   entry per own trim (tm-0 to tm-5): in a week row each entry on its own line with its full range(s); in a month cell
   the letter and each range on its own line, the cell growing; never a total, never a second trim clipped. */
.own-entries{display:grid;gap:4px;justify-items:end;text-align:right}
.own-entry{display:block;padding:3px 7px;border-radius:6px;border-left:3px solid;color:var(--ink)}
.own-entry b{margin-right:4px}.own-entry .own-range{display:inline-block;margin-left:4px}
.own-entry small{display:block;color:var(--muted)}.own-entry .own-off{color:#7a8a7f}
.own-trim-cal .cell{min-height:50px;height:auto}
.own-trim-cal .cell-entry{display:block;margin-top:3px;padding:1px 2px;border-radius:4px;border-left:3px solid;font-size:.68rem;line-height:1.25;color:var(--ink);overflow-wrap:normal}
.own-trim-cal .cell-entry b{display:block}.own-trim-cal .cell-entry span{display:block}
.own-trim-legend{margin-top:12px}

/* ===== Block: item 5 part 3, the watering task's day settings (appended at the END; later PRs append after). A
   two-column list that fits a 390px phone: the setting, then its value; the four calculated values in grey. ===== */
.settings-list{margin:8px 0;display:grid;gap:2px}
.settings-list .setting{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #edf1ee}
.settings-list dt{margin:0;color:#4c6655}.settings-list dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.settings-list .calc{background:#f1f1f1;color:#55635a;padding:6px 8px}

/* ===== Block: the crew generator, part 2 (appended at the END; later PRs append after). Generate draft beside
   Publish schedule, and the draft's flags as the trim schedule shows its conflicts: short amber notes. ===== */
.crew-actions form{display:inline-block;margin-left:6px}  /* the crew month's heading only (Astra, PR 990) */
.crew-flags{margin:10px 0}.crew-flags p{margin:0}.crew-flags ul{margin:6px 0 0;padding-left:18px}
.cal-day .flag{color:#8a641e;font-size:.7rem;line-height:1.2}
.day-editor .flag{grid-column:1/-1;color:#8a641e;font-size:.75rem}

/* ===== Block: People, one list (slice (a) of the approved people-v1 pictures; appended at the END; later PRs append
   after). The desktop list fits the page's content width (fixed columns; the whole phone shows; a long name or role list
   ends in an ellipsis; the "…" column and its open menu stay visible); on a phone each row stacks name, phone, roles,
   then Status and Sign-in, with the "…" at the right. The popup's sections are native details elements. ===== */
table.people-list{width:100%;table-layout:fixed}
.people-list col.c-name{width:28%}.people-list col.c-phone{width:19%}.people-list col.c-roles{width:23%}
.people-list col.c-status{width:11%}.people-list col.c-signin{width:13%}.people-list col.c-menu{width:6%}
.people-list td:not(.menu-cell){max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.people-list td.menu-cell{width:auto;overflow:visible}
.people-list td.phone{font-variant-numeric:tabular-nums}
.people-list .cell-label{display:none}.people-list .no-profile{color:var(--muted)}
.pill.off{background:#eceeed;color:var(--muted)}.pill.warn{background:#fff4d9;color:#7a5418}
.popup-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.popup-head p{margin:2px 0 0}
.popup-section{border-top:1px solid var(--line);padding:4px 0 10px}
.popup-section>summary{cursor:pointer;font-weight:650;padding:8px 0}
.popup-section h4{margin:10px 0 2px;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
/* The approved people-v1 picture's Sign-in switch: a 44 x 24 control beside its whole label, scoped above the shared
   form rules. It only says what is wanted; Review change shows the change, and only Save change saves it. */
label.switch{display:inline-flex;flex-direction:row;align-items:center;gap:10px}
/* Every dimension in rem, so the track and the thumb scale together with the page type (44 x 24 with an 18 px thumb at
   a 16 px root); the popup-scoped selector outranks the desktop checkbox rule (Astra, PR 1028). */
label.switch>input[type=checkbox],[data-person-popup] .form label.switch>input[type=checkbox]{appearance:none;
  -webkit-appearance:none;box-sizing:border-box;flex:none;width:2.75rem;min-width:2.75rem;max-width:2.75rem;
  height:1.5rem;min-height:1.5rem;max-height:1.5rem;padding:0;border:0;border-radius:.75rem;background:#c9d3cc;
  position:relative;margin:0;cursor:pointer}
label.switch>input[type=checkbox]::after,[data-person-popup] .form label.switch>input[type=checkbox]::after{content:"";
  position:absolute;top:.1875rem;left:.1875rem;width:1.125rem;height:1.125rem;border-radius:50%;background:#fff;
  transition:left .1s}
label.switch>input[type=checkbox]:checked,[data-person-popup] .form label.switch>input[type=checkbox]:checked{background:var(--accent)}
label.switch>input[type=checkbox]:checked::after,[data-person-popup] .form label.switch>input[type=checkbox]:checked::after{left:1.4375rem}
label.switch>input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
label.switch>span{white-space:nowrap}
.history-tag{display:inline-block;min-width:4.5rem;font-size:.75rem;color:var(--muted);text-transform:uppercase}
@media (max-width:760px){
  table.records.people-list{display:block;overflow:visible}
  .people-list colgroup,.people-list thead{display:none}
  .people-list tbody{display:block}
  .people-list tr{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:2px 10px;padding:10px 4px;border-bottom:1px solid var(--line)}
  .people-list td,.people-list td:not(.menu-cell){display:block;border:0;padding:0;max-width:none;white-space:normal;overflow:visible}
  .people-list td.name{grid-column:1/4;grid-row:1;font-weight:650}
  .people-list td.phone{grid-column:1/4;grid-row:2}
  .people-list td.roles{grid-column:1/5;grid-row:3;color:var(--muted);overflow-wrap:anywhere}
  .people-list td.status{grid-column:1;grid-row:4}.people-list td.signin{grid-column:2;grid-row:4}
  .people-list td.menu-cell{grid-column:4;grid-row:1/3;width:auto}
  .people-list .cell-label{display:inline;color:var(--muted);font-size:.8rem;margin-right:4px}
  .people-list .row-menu>summary{min-width:44px;min-height:44px;line-height:34px}
}

/* ===== Block: every desktop screen uses the whole window and grows with it (Owner finding, 2026-11-14: "I need to take
   advantage of the entire screen. make it easy on my eyes. If I stretch these screens ma these objects bigger."). Appended
   at the END; later PRs append after. One change for every screen, no script:
   - the type scale is fluid above 1,440 px: 16 px up to 1,440 (a laptop is unchanged), about 18.6 px at 1,920, 22 px at
     2,560 and 28 px (the cap) from about 3,640; every size already in rem or em (text, headings, table rows, buttons,
     inputs, popups, the calendar's text) grows with it;
   - on a desktop the page fills the window beside the sidebar: no 1,100 px cap; lists, calendars and grids, which are
     100% wide, stretch their cells; forms keep a readable width; popups keep min(40rem, 94vw);
   - the few fixed desktop widths that must grow are in rem: the sidebar, the crew day editor, forms, the calendar day
     height, the role boxes, the tasks panel; borders stay 1 px.
   Phones (760 px and below) keep every rule they have. ===== */
body{font-size:1rem}
@media (min-width:1441px){html{font-size:clamp(16px,calc(.55vw + 8px),28px)}}
@media (min-width:761px){
  main{max-width:none;padding:1.25rem 1.5rem}
  .shell{grid-template-columns:14.5rem minmax(0,1fr)}
  .form{max-width:35rem}
  .cal-day{min-height:6rem}
  .choice-grid{grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr))}
  .clock-card{max-width:27.5rem}
  /* The remaining fixed text and control sizes, in rem (the same size as before at the laptop root; Astra, PR 1003 R1). */
  .day-title strong{font-size:.9375rem}
  .day-card summary{grid-template-columns:1.5rem 1fr auto}
  .task-row{grid-template-columns:1.75rem minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.2fr) 7.5rem 2.75rem}
  .task-row .check{width:1.125rem;height:1.125rem}
  .form label:has(>input[type=checkbox])>input[type=checkbox],.form label:has(>input[type=radio])>input[type=radio],
  .form>div:has(>input[type=checkbox])>input[type=checkbox]{width:1.375rem;height:1.375rem}
  .clone-line select,.clone-line input,.clone-line .line-other{height:2.5rem}
  .clone-line select{min-width:11.875rem}.clone-line input[type=number]{width:5rem}.clone-line .line-other{min-width:13.75rem}
  .strain-badge{height:2rem}
  .icon-button{min-width:2.5rem;min-height:2.5rem}
  table.grid{min-width:62.5rem}
  table.grid .strain-pill{height:1.5rem}
  .clock-button{min-height:5.5rem}
  .own-schedule{max-width:26.875rem}
  .own-cal .cell{min-height:3.125rem}
  .own-legend .sw{width:.75rem;height:.75rem}
  /* The crew day editor fits its panel at every width (Astra, PR 1003 R2): the name on its own line, then the Working
     or Off control and the start time in two equal columns, as the approved picture (PR 1021); both shrink to the
     panel; the notes and actions wrap inside it. */
  .crew-month.with-editor{grid-template-columns:minmax(0,1fr) 22rem}
  .day-editor{min-width:0;overflow-wrap:anywhere}
  .day-editor .form{max-width:100%}
  .day-editor .editrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .day-editor .editrow>strong{grid-column:1/-1}
  .day-editor .editrow select,.day-editor .editrow input[type=time]{width:100%;min-width:0}
  .day-editor .actions{flex-wrap:wrap}
  /* A calendar day's name and start: the name wraps inside the cell, the start time never shrinks (Astra, PR 1003). */
  .cal-day .start>span{min-width:0;overflow-wrap:anywhere}
  .cal-day .start>time{flex:none}
}
@media (min-width:1100px){.tasks-layout.with-panel{grid-template-columns:minmax(0,1fr) minmax(19rem,24rem)}}

/* ===== Block: the trim schedule's month, every trim combined (the Owner approved the picture 2026-11-14;
   docs/scope/reference/trim-month-combined-v1.html; appended at the END; later PRs append after). One labelled line
   per trim in a day, a subtle tint per trim (schedule colours only, never strain or catalog colours), a legend with
   the full names; on a phone the short form "A 8" with the legend, seven compact columns, no sideways scrolling. ===== */
.tm-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.4rem 0 .75rem;font-size:.85rem}
.tm-legend>span{display:inline-flex;align-items:center;gap:.4rem}
.tm-swatch{width:.875rem;height:.875rem;border-radius:3px;border:1px solid #0002}
.tm-line{display:block;padding:2px 5px;border-radius:4px;border-left:3px solid;font-size:.75rem;line-height:1.3;color:var(--ink)}
.tm-short{display:none}
.tm-note{display:block;color:#8a641e;font-size:.7rem;line-height:1.2}
.tm-0{background:#e8f1fb;border-color:#5b8ec9}.tm-1{background:#fdf0e2;border-color:#d08a3c}
.tm-2{background:#efe9f8;border-color:#8a6cc0}.tm-3{background:#e3f4f1;border-color:#3f9a8f}
.tm-4{background:#fbe8ee;border-color:#c45f7d}.tm-5{background:#f3f5e1;border-color:#8f9a3c}
.trim-section{border-left-width:4px;border-left-style:solid;padding:4px 0 8px 10px;margin:12px 0;background:none}
.trim-section h3{margin:0 0 4px;font-size:1rem}
.pill.draft{background:#fff4d9}
@media (max-width:760px){
  .tm-full{display:none}.tm-short{display:inline}
  .trim-month .calendar{gap:2px}
  .trim-month .cal-day{min-height:58px;padding:4px 3px;font-size:.68rem;overflow-wrap:anywhere}
  .tm-line{padding:1px 3px;font-size:.68rem}
}

/* Owner-approved navigation shell: af643e81, D1-D4/W1-W2/P1-P5 (spec 0126). Existing page content stays in place. */
.side{overflow:visible}
.side>.side-nav{overflow-y:auto;min-height:0}
.page-top{flex-wrap:nowrap}
.page-top>.phone-nav{padding:0;border:0;border-radius:0;background:transparent}
.language-menu>summary,.report-link{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-width:2.75rem;min-height:2.75rem;padding:.5rem;border:1px solid var(--line);border-radius:.375rem;background:#fff;color:var(--ink);font-size:1rem;text-decoration:none}
.language-menu>summary{list-style:none}
.language-menu>summary::-webkit-details-marker,.account-trigger::-webkit-details-marker{display:none}
.chevron{font-size:.8rem}
.report-link svg{width:1.3rem;height:1.3rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.shell-flag{display:inline-block;position:relative;flex:none;width:1.65rem;height:1.1rem;border:1px solid #0003;overflow:hidden;vertical-align:middle;border-radius:.1rem}
.flag-en{background:repeating-linear-gradient(to bottom,#b22234 0,#b22234 7.692%,#fff 7.692%,#fff 15.384%)}
.flag-en:before{content:"";position:absolute;left:0;top:0;width:44%;height:54%;background:#3c3b6e}
.flag-en:after{content:"✦";position:absolute;left:.09rem;top:-.12rem;color:#fff;font-size:.6rem}
.flag-es{background:linear-gradient(to right,#006847 0 33.33%,#fff 33.33% 66.66%,#ce1126 66.66%)}
.flag-es:after{content:"";position:absolute;left:44%;top:35%;width:12%;height:32%;background:#87652e;border-radius:45%}
.flag-hy{background:linear-gradient(to bottom,#d90012 0 33.33%,#0033a0 33.33% 66.66%,#f2a800 66.66%)}
.page-top .language-menu .language-form{z-index:40;min-width:13rem;max-width:calc(100vw - 2rem);padding:.375rem;border-radius:.5rem;box-shadow:0 .4rem 1.2rem #0002}
.page-top .language-form button,.shell-settings .language-form button{display:flex;align-items:center;gap:.75rem;min-height:2.75rem;padding:.5rem .625rem;border:0;border-radius:.375rem;background:#fff;color:var(--ink);text-align:left;white-space:normal;overflow-wrap:normal;word-break:normal}
.page-top .language-form button:hover,.shell-settings .language-form button:hover,.page-top .language-form button[aria-current="true"],.shell-settings .language-form button[aria-current="true"]{background:#e5ece7}
.language-selected{margin-left:auto;color:var(--accent);font-weight:700}
.side .account,.phone-panel .account{padding-top:0;border-top:0}
.account-menu{position:relative;width:100%;padding-top:.75rem;border-top:1px solid var(--line);color:var(--ink)}
.account-trigger{display:flex;align-items:center;justify-content:center;list-style:none;border:1px solid #b8c8bd;background:#fff;border-radius:50%;width:2.75rem;height:2.75rem;cursor:pointer;color:var(--ink)}
.account-trigger svg{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.phone-account-label{display:none}
.account-pop{position:absolute;bottom:calc(100% + .5rem);left:0;width:14rem;max-width:calc(100vw - 2.5rem);padding:.375rem;border:1px solid var(--line);border-radius:.625rem;background:#fff;box-shadow:0 .4rem 1.2rem #0002;z-index:35}
.account-pop .identity{padding:.625rem .625rem .75rem;border-bottom:1px solid var(--line);margin-bottom:.25rem;overflow-wrap:anywhere}
.account-pop [data-account]{display:block;padding:0;font-size:1rem;font-weight:700}
.side .account-pop a,.phone-nav .account-pop a,.account-pop button.quiet{display:flex;align-items:center;min-height:2.75rem;padding:.5rem .625rem;border:0;border-radius:.375rem;color:var(--ink);background:#fff;text-decoration:none;font-size:1rem;overflow-wrap:anywhere}
.account-pop form{margin-top:.25rem;border-top:1px solid var(--line)}
.account-pop button.quiet{width:100%;text-align:left}
.account-pop a:hover,.account-pop button.quiet:hover{background:#e5ece7}
.account-pop a.current{background:#dcece2;color:#20563d;font-weight:650;box-shadow:inset 3px 0 var(--accent)}
.account-trigger:focus-visible,.language-menu>summary:focus-visible,.report-link:focus-visible,.shell-settings a:focus-visible,.language-form button:focus-visible,.account-pop button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.list-box{overflow-x:auto;max-width:100%}
.shell-settings{position:fixed;inset:0;z-index:100;width:min(calc(100% - 2.5rem),35rem);max-height:calc(100dvh - 2.5rem);margin:auto;overflow-y:auto;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:.625rem;box-shadow:0 .75rem 3rem #0004;padding:1.5rem}
.shell-settings::backdrop,dialog[data-report-popup]::backdrop{background:#18251fc0}
.shell-settings .heading-row{align-items:flex-start}
.shell-settings h2{font-size:1.2rem;margin:0 0 1rem}
.shell-settings [data-close-settings]{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .5rem;color:var(--accent)}
.shell-settings fieldset{border:0;padding:0;margin:0}
.shell-settings legend{font-weight:650;margin-bottom:.75rem}
.shell-settings .language-form{margin:0;border:1px solid var(--line);border-radius:.5rem;padding:.25rem;gap:2px}
@media (max-width:760px){
  .page-top{position:relative;justify-content:flex-end;gap:.5rem;align-items:flex-start}
  .page-top>.phone-nav{margin:0 auto 0 0}
  .phone-nav>summary{display:inline-flex;width:max-content;justify-content:center;gap:.4rem;min-height:2.75rem;padding:.5rem;border:1px solid var(--line);border-radius:.375rem;background:#fff;list-style:none}
  .phone-nav>summary::-webkit-details-marker{display:none}
  .phone-nav[open]~.language-menu,.phone-nav[open]~.report-link{position:absolute;top:0}
  .phone-nav[open]~.language-menu{right:3.25rem}
  .phone-nav[open]~.report-link{right:0}
  .phone-panel{width:calc(100vw - 2.5rem);padding:.75rem;margin-top:.75rem;background:#f2f5f3;border:1px solid var(--line);border-radius:.5rem}
  .phone-panel .side-nav{padding-top:0}
  .phone-panel .account{margin-top:1rem}
  .phone-panel .account-trigger{width:auto;border-radius:1.5rem;justify-content:flex-start;gap:.625rem;padding:0 .75rem}
  .phone-account-label{display:inline}
  .phone-panel .account-pop{width:100%;max-width:none}
  .shell-settings{width:calc(100% - 2rem);max-height:calc(100dvh - 2rem);padding:1.25rem}
}
