/* M3 redesign lane file: pages 00, 01, 02, 09, 10, 15, 16, 17 and admin-setup-errors. Created empty by M3A (Matt 17 Nov 2026
   8:10 PM MT via Lead); owned by a later M3 batch. Rules here use the m3-roles.css roles only. ASCII only. */

/* ======================= M3G (Matt 17 Nov 2026 8:10 PM MT via Lead, M3 redesign batch 7) =======================
   Auth (00 / 01 / 02), New Project (10), Cost Chart (16), Results (15), My Projects (09) leftovers. CSS only on the
   app's real selectors; ids, handlers, labels, gating and Turnstile (#ts, its script, its size) are unchanged. Overrides of
   shared files (ui-polish.css / preview.css / plan3-b3.css) live here, page-scoped, for M3I to fold. */

/* ---------------- M3G rec 25 + rec 21: auth cards (gate, code, turnstile) ---------------- */
/* M3G rec 25: background role, flat outlined card (12px corner, no drop shadow), the logo is the only brand mark */
:root body:is([data-page="gate"],[data-page="code"],[data-page="turnstile"]){background:var(--md-background);color:var(--md-on-surface)}
:root body:is([data-page="gate"],[data-page="code"],[data-page="turnstile"]) > main > .card{border:1px solid var(--md-outline-variant);border-radius:var(--md-shape-md);background:var(--md-surface);box-shadow:var(--md-elev-0)}
:root body:is([data-page="gate"],[data-page="code"],[data-page="turnstile"]) > main > .card .muted{color:var(--md-on-surface-variant);font-size:var(--md-body-medium-size);line-height:var(--md-body-medium-line)}
/* M3G rec 21: the field label is body-small on-surface-variant above the field (the old ui-polish.css gray / weight 400
   !important lock was deleted by M3I, so these win on specificity). */
:root body[data-page="gate"] .emailrow label{margin:0 0 4px;font-size:var(--md-body-small-size);line-height:var(--md-body-small-line);font-weight:var(--md-label-medium-weight);color:var(--md-on-surface-variant)} /* M3I rec 21: no !important (the ui-polish.css lock is deleted) */
/* M3G rec 21: the Email field = the shared 40px outlined field (m3.css .cd-field): 4px corner, outline stroke, 2px primary
   outline on focus (ui-polish.css's light-blue glow is dropped here) */
:root body[data-page="gate"] .emailrow input.cd-field{height:40px;line-height:var(--md-body-medium-line);border-radius:var(--md-shape-xs)}
:root body[data-page="gate"] .emailrow input.cd-field:focus{outline:var(--md-focus-ring-width) solid var(--md-primary);outline-offset:-1px;border-color:var(--md-primary);box-shadow:none}
/* M3G rec 5 + rec 21: Send Code / Continue = the one 40px filled button (M3I folded the #send 40px into preview.css) */
:root body[data-page="turnstile"] #tsgo.btn{height:40px;min-height:40px}
/* M3G rec 21: the terms consent line (code page dialog) reads as body-medium on-surface (the old ui-polish.css lock is deleted by M3I;
   the checkbox, its label and the Confirm gating are unchanged) */
:root body[data-page="code"] .tosline,:root body[data-page="code"] .tosline label{font-size:var(--md-body-medium-size);line-height:var(--md-body-medium-line);font-weight:var(--md-body-medium-weight);color:var(--md-on-surface)} /* M3I rec 21: no !important (the ui-polish.css lock is deleted) */
:root body[data-page="code"] .tosline .req{font-weight:var(--md-body-medium-weight);color:var(--md-on-surface-variant)} /* M3I rec 21: no !important (the ui-polish.css lock is deleted) */

/* ---------------- M3G rec 11 + rec 21: New Project form (page 10) ---------------- */
:root body[data-page="empty"]{background:var(--md-background)}
:root body[data-page="empty"] .frcard{border:1px solid var(--md-outline-variant);border-radius:var(--md-shape-md);background:var(--md-surface);box-shadow:var(--md-elev-0)}
/* M3G rec 8: the form title is headline-small on-surface */
:root body[data-page="empty"] .frbrand h1{font-family:var(--md-font);font-size:var(--md-headline-small-size);line-height:var(--md-headline-small-line);font-weight:var(--md-headline-small-weight);color:var(--md-on-surface)}
/* M3G rec 11: Project Info / Lender Info are the shared underline (primary) tabs: on-surface-variant labels, primary label +
   3px primary indicator on the active one, 8% / 10% state layer. Same buttons, ids, roles and handlers (the .on class). */
:root body[data-page="empty"] .tabbar.cptabs{display:flex;gap:0;margin:8px 0 8px;border-bottom:1px solid var(--md-outline-variant)}
:root body[data-page="empty"] .cptabs > .tab{position:relative;isolation:isolate;box-sizing:border-box;min-height:48px;margin:0 0 -1px;padding:0 16px;border:0;border-bottom:var(--md-tab-primary-indicator) solid transparent;border-radius:0;background:none;color:var(--md-on-surface-variant);font-family:var(--md-font);font-size:var(--md-title-small-size);line-height:var(--md-title-small-line);font-weight:var(--md-title-small-weight);cursor:pointer}
:root body[data-page="empty"] .cptabs > .tab:is(.on,[aria-selected="true"]){background:none;color:var(--md-primary);border-color:transparent;border-bottom-color:var(--md-primary)}
:root body[data-page="empty"] .cptabs > .tab::after{content:"";position:absolute;inset:0;background:currentColor;opacity:0;pointer-events:none;z-index:-1}
:root body[data-page="empty"] .cptabs > .tab:hover::after{opacity:var(--md-hover)}
:root body[data-page="empty"] .cptabs > .tab:focus-visible::after{opacity:var(--md-focus)}
:root body[data-page="empty"] .cptabs > .tab:active::after{opacity:var(--md-pressed)}
/* M3G rec 21: labels in body-small on-surface-variant above the field; the existing required "*" in the error role */
:root body[data-page="empty"] .frcard form label{display:block;margin:12px 0 4px;font-family:var(--md-font);font-size:var(--md-body-small-size);line-height:var(--md-body-small-line);font-weight:var(--md-label-medium-weight);color:var(--md-on-surface-variant)}
:root body[data-page="empty"] .frcard .req{color:var(--md-error)}
/* M3G rec 21: fields = the shared 40px outlined spec (full width by class, no inline style), 4px corner, outline stroke,
   2px primary outline on focus (ui-polish.css's 38px / 6px corner / light-blue offset ring are overridden here) */
:root body[data-page="empty"] .frcard :is(input,select).cd-field{width:100%;height:40px;min-height:40px;padding:0 12px;border:1px solid var(--md-outline);border-radius:var(--md-shape-xs);background-color:var(--md-surface);color:var(--md-on-surface);font-family:var(--md-font);font-size:var(--md-body-medium-size);line-height:var(--md-body-medium-line)}
:root body[data-page="empty"] .frcard :is(input,select).cd-field:hover{border-color:var(--md-on-surface-variant)}
:root body[data-page="empty"] .frcard :is(input,select).cd-field:focus{outline:var(--md-focus-ring-width) solid var(--md-primary);outline-offset:-1px;border-color:var(--md-primary)}
:root body[data-page="empty"] .frcard :is(input,select).cd-field::placeholder{color:var(--md-on-surface-variant)}
/* M3G rec 21: the existing "* Required" line is body-small helper text */
:root body[data-page="empty"] #cpPanProj > p.muted{margin:8px 0 0;font-size:var(--md-body-small-size);line-height:var(--md-body-small-line);color:var(--md-on-surface-variant)}

/* ---------------- M3G rec 25 + rec 8: Cumulative Cost Chart (page 16) ---------------- */
/* M3G rec 8: the page title is headline-small (the inline 20px h1 style is removed from the page) */
:root body[data-page="costchart"] .cccard > h1{margin:0;font-family:var(--md-font);font-size:var(--md-headline-small-size);line-height:var(--md-headline-small-line);font-weight:var(--md-headline-small-weight);color:var(--md-on-surface)}
:root body[data-page="costchart"] .cccard{border:1px solid var(--md-outline-variant);border-radius:var(--md-shape-md);box-shadow:var(--md-elev-0)}
:root body[data-page="costchart"] #ccSub,:root body[data-page="costchart"] .ccnote{color:var(--md-on-surface-variant);font-size:var(--md-body-medium-size);line-height:var(--md-body-medium-line)}
/* M3G rec 25: legend in body-small on-surface-variant; swatches = chart series 1 + the accessible amber (M3C rec 13), never green */
:root body[data-page="costchart"] .chartlegend .lg{font-size:var(--md-body-small-size);line-height:var(--md-body-small-line);color:var(--md-on-surface-variant)}
:root body[data-page="costchart"] .chartlegend .lg1::before{background:var(--cd-chart-1)}
:root body[data-page="costchart"] .chartlegend .lg2::before{background:var(--cd-chart-amber)}
/* M3G rec 25: axes in label-small on-surface-variant, grid in the chart-grid role, the line in chart series 1, the
   over-budget label in the error role (plan3-b3.css / preview.css are shared with page 12: overridden here, page 16 only) */
:root body[data-page="costchart"] .ccplot .ax,:root body[data-page="costchart"] .ccplot .ax-pct{fill:var(--md-on-surface-variant);font-family:var(--md-font);font-size:var(--md-label-small-size);font-weight:var(--md-label-small-weight)}
:root body[data-page="costchart"] .ccplot .grid{stroke:var(--cd-chart-grid)}
:root body[data-page="costchart"] .chartbox .s1{stroke:var(--cd-chart-1)}
:root body[data-page="costchart"] .chartbox .s2{stroke:var(--cd-chart-amber)}
:root body[data-page="costchart"] .ccplot text.bsover{fill:var(--md-error);font-family:var(--md-font)}

/* ---------------- M3G rec 25: Results (page 15) on the shared chrome ---------------- */
:root body[data-page="results"] > main > .card{border:1px solid var(--md-outline-variant);border-radius:var(--md-shape-md);box-shadow:var(--md-elev-0)}
:root body[data-page="results"] #rsT{font-family:var(--md-font);font-size:var(--md-headline-small-size);line-height:var(--md-headline-small-line);font-weight:var(--md-headline-small-weight);color:var(--md-on-surface)}
:root body[data-page="results"] #rsBody{color:var(--md-on-surface);font-size:var(--md-body-medium-size);line-height:var(--md-body-medium-line)}

/* ---------------- M3G rec 21 + quick win: My Projects (page 09) leftover ----------------
   The search field is the shared 40px outlined field (was 38px), so it matches the 40px navy Create Project button;
   4px corner, outline stroke, 2px primary outline on focus. Same input, same filter handler. */
:root body[data-page="projects"] #psearch{box-sizing:border-box;height:40px;min-height:40px;padding:0 12px;border:1px solid var(--md-outline);border-radius:var(--md-shape-xs);background-color:var(--md-surface);color:var(--md-on-surface);font-family:var(--md-font);font-size:var(--md-body-medium-size);line-height:var(--md-body-medium-line)}
:root body[data-page="projects"] #psearch:hover{border-color:var(--md-on-surface-variant)}
:root body[data-page="projects"] #psearch:focus{outline:var(--md-focus-ring-width) solid var(--md-primary);outline-offset:-1px;border-color:var(--md-primary)}
:root body[data-page="projects"] #psearch::placeholder{color:var(--md-on-surface-variant);opacity:1}

/* MY_PROJECTS_ROW_KEBAB_MENU (Matt 26 Nov 2026 6:03 PM MT): the Close project checkbox column is gone; the row Project actions menu is styled in plan0-rowmenu.css */
/* MY_PROJECTS_COLUMN_SPACING (Matt 26 Nov 2026 6:10 PM MT): "The Project name needs the most space but the other fields should be evenly distributed".
   Every data column after Project (Budget .. Created) asks for the same 8% share; Project (auto) takes the rest, so it is the widest.
   Figures (money, %, counts, the Created date) never break across lines (UIS FAIL 1, 27 Nov: "$1,250,000.0" / "0" read as another number),
   so the table stays in auto layout: a column whose figure is wider than the share ($1M+ at 1280) grows just enough and Project gives up
   that space. Created ends with the row "Project actions" kebab (date + 32px button, no unsortable column). 4px left / 8px right padding
   (the numeric header sort arrow hangs into the right one); names and headers wrap; money / counts keep their right alignment (m3.css). */
:root body[data-page="projects"] #projTable{table-layout:auto;width:100%}
:root body[data-page="projects"] #projTable > thead > tr > th{box-sizing:border-box;width:8%}
:root body[data-page="projects"] #projTable > thead > tr > th.pproj{width:auto}
:root body[data-page="projects"] #projTable > :is(thead,tbody) > tr > :is(th,td){padding-left:4px;padding-right:8px}
:root body[data-page="projects"] #projTable > tbody > tr > td{white-space:normal;overflow-wrap:anywhere}
:root body[data-page="projects"] #projTable > tbody > tr > td.pstat .pill{white-space:nowrap}
:root body[data-page="projects"] #projTable > tbody > tr > td:is(.bcol,.ncol,.pcreated){white-space:nowrap;overflow-wrap:normal}

/* MYPROJECTS_SHARE_POPUP (BKL-850, Matt 26 Nov 2026 9:48 AM MT: "pop up right on my projects"): My Projects shows the page 12
   Share Project dialog (#sharep) in place. m3-dialogs.css (pages 12 / 13 only) is not loaded here, so its M3F rec 14 dialog
   spec is repeated for #sharep alone: scrim, 28px corner, 24px padding, surface-container-high, level-3 elevation,
   headline-small title, end-aligned 40px action row with Cancel as a text button, 40px Close icon button. The other
   My Projects dialogs keep their own look. Look only. */
:root body[data-page="projects"] #sharep{background:var(--md-scrim)}
:root body[data-page="projects"] #sharep > .modal{box-sizing:border-box;border:0;border-radius:var(--md-shape-xl);padding:24px;background:var(--md-surface-container-high);box-shadow:var(--md-elev-3);color:var(--md-on-surface);font-family:var(--md-font)}
:root body[data-page="projects"] #sharep > .modal > h2:first-of-type{margin:0 0 16px;padding-right:48px;font-family:var(--md-font);font-size:var(--md-headline-small-size);line-height:var(--md-headline-small-line);font-weight:var(--md-headline-small-weight);white-space:normal}
:root body[data-page="projects"] #sharep > .modal .row{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;min-height:40px;margin-top:24px}
:root body[data-page="projects"] #sharep > .modal .row > .btn:not(:empty){height:40px;min-height:40px;padding:0 24px}
:root body[data-page="projects"] #sharep > .modal .row > .btn[data-close]:not(.primary,.danger,.green){background-color:transparent;border-color:transparent;color:var(--md-primary);padding:0 12px}
:root body[data-page="projects"] #sharep > .modal > .x{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;margin:0;border:0;border-radius:var(--md-shape-full);background:transparent;color:var(--md-on-surface-variant);font-size:0;line-height:0;cursor:pointer;z-index:3;position:absolute;top:12px;right:12px;left:auto}
:root body[data-page="projects"] #sharep > .modal > .x::before,
:root body[data-page="projects"] #sharep > .modal > .x::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:2px;margin:-1px 0 0 -9px;border-radius:1px;background-color:currentColor;transform:rotate(45deg)}
:root body[data-page="projects"] #sharep > .modal > .x::after{transform:rotate(-45deg)}
