/*
 * SolarSignal AI: the ONE shared stylesheet. Every layout loads it.
 * Sections: 1 fonts, 2 tokens, 3 base, 4 forms, buttons and alerts, 5 shell
 * (menu, top bar, content), 6 components (.rs-*), 7 Solar Clock zones,
 * 8 dashboard cards, 9 search pieces and toasts, 10 please-wait card and
 * DFY Vault pop-up, 11 illustrations, 12 public pages, 13 portal, 14 sign-in,
 * 15 the new look (body.look-v2: yellow, charcoal, stone, cream).
 * A page may load its own small CSS file after this one, only for its own parts.
 * Colours live in the tokens: use the variables, never a colour in a view.
 */

/* ---------- 1. Fonts: Barlow and Barlow Semi Condensed (@fontsource, OFL) ---------- */
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Plus Jakarta Sans for the new look (section 15): one variable font per character set covers every weight
   (light titles and numbers 300-400, text 400-600; tabular numbers), @fontsource-variable, OFL.
   A browser only downloads a face a page really uses, so pages in the old look never load it. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 2. Tokens: the sunny light theme ---------- */
:root {
  color-scheme: light;

  /* Brand: main sun orange, deep orange (text and buttons), soft tint, sun yellow highlight */
  --sun-main: #ea7a0b;
  --sun-deep: #c2570c;
  --sun-deeper: #a3480a;
  --sun-tint: #fff8e6;
  --sun-yellow: #facc15;
  --sun-yellow-soft: #fef5c8;
  --sun-grey: #3d464e;

  --rs-bg: var(--sun-tint);
  --rs-bg-2: #ffffff;
  --rs-bg-3: #fffbf2;
  --rs-bg-4: #fcefd6;
  --rs-bg-5: #f8e2b8;
  --rs-line: #f0e1c3;
  --rs-line-2: #e4cfa6;
  --rs-line-3: #d2bb90;
  --rs-txt: #1f262c;
  --rs-txt-2: var(--sun-grey);
  --rs-txt-3: #5b656e;
  --rs-txt-4: #939ba2;
  --rs-amber: var(--sun-main);
  --rs-amber-2: var(--sun-deep);
  --rs-amber-ink: #ffffff;
  --rs-amber-soft: #fff0d8;
  --rs-amber-line: rgba(234, 122, 11, 0.26);
  --rs-orchid: var(--sun-yellow);
  --rs-sun: var(--sun-yellow);
  --rs-sun-soft: var(--sun-yellow-soft);
  --rs-live: #1d7a46;
  --rs-live-soft: #e6f5ec;
  --rs-live-line: #bfe3cd;
  --rs-dead: #5a6470;
  --rs-dead-soft: #eef0f3;
  --rs-red: #c0322a;
  --rs-red-soft: #fdecea;
  --rs-red-line: #f5c8c3;
  --rs-blue: #1f6aa8;
  --rs-blue-soft: #e8f2fb;
  --rs-blue-line: #c5dcf0;
  --rs-warn: #9a5a00;
  --rs-warn-soft: #fff3dc;
  --rs-warn-line: #f3d79f;

  /* The Solar Clock: Reset green, Settled teal, Watch yellow, Cliff orange-red.
     -*: text and lines (AA on the soft colour), -soft: badge fill, -dot: the bright mark. */
  --rs-zone-reset: #2b7a47;
  --rs-zone-reset-soft: #e3f4e8;
  --rs-zone-reset-dot: #3aa862;
  --rs-zone-settled: #0e7377;
  --rs-zone-settled-soft: #dcf2f1;
  --rs-zone-settled-dot: #14a3a8;
  --rs-zone-watch: #8a5d00;
  --rs-zone-watch-soft: #fdf3c4;
  --rs-zone-watch-dot: var(--sun-yellow);
  --rs-zone-cliff: #c4321a;
  --rs-zone-cliff-soft: #fde3dc;
  --rs-zone-cliff-dot: #ef4a23;

  --rs-scrim-strong: rgba(31, 22, 10, 0.45);
  --rs-sheen: rgba(255, 255, 255, 0.5);
  --rs-paper: #fff4dd;
  --rs-paper-2: #ffe7bd;
  --rs-ink: var(--sun-deep);
  --rs-ink-2: var(--sun-grey);
  --rs-ink-hover: var(--sun-deeper);
  --rs-on-ink: #ffffff;
  --rs-on-ink-2: rgba(255, 255, 255, 0.8);
  --rs-dark: #24201b;
  --rs-hover: rgba(234, 122, 11, 0.07);
  --rs-hover-2: rgba(234, 122, 11, 0.13);
  --rs-scrim: rgba(31, 22, 10, 0.38);
  --rs-ring: rgba(234, 122, 11, 0.2);
  --rs-shadow-sm: 0 1px 2px rgba(60, 36, 6, 0.05);
  --rs-shadow-md: 0 1px 2px rgba(60, 36, 6, 0.05), 0 12px 32px -18px rgba(120, 70, 10, 0.22);
  --rs-shadow-lg: 0 24px 60px -24px rgba(120, 70, 10, 0.32);
  --rs-shadow-btn: 0 10px 22px -14px rgba(163, 72, 10, 0.7);
  --rs-font-ui: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rs-font-display: "Barlow Semi Condensed", "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rs-font-mono: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rs-font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rs-grad-accent: linear-gradient(135deg, var(--sun-main) 0%, var(--sun-deep) 100%);
  --rs-grad-strong: linear-gradient(135deg, #cc5e0b 0%, var(--sun-deeper) 100%);
  --rs-grad-accent-hover: linear-gradient(135deg, var(--sun-deep) 0%, #8f3f08 100%);
  --rs-grad-sun: linear-gradient(135deg, var(--sun-yellow) 0%, var(--sun-main) 100%);
  --rs-grad-wash: radial-gradient(60% 140% at 0% 100%, var(--rs-paper-2) 0%, transparent 62%), radial-gradient(38% 110% at 100% 0%, color-mix(in srgb, var(--sun-yellow) 16%, transparent) 0%, transparent 70%), linear-gradient(180deg, var(--rs-bg-2) 0%, var(--rs-paper) 100%);

  /* Illustration colours (.rs-illo drawings in copied views) */
  --rs-il-shadow: rgba(120, 70, 10, 0.16);
  --rs-il-lot: #fff3dc;
  --rs-il-edge: rgba(163, 72, 10, 0.14);
  --rs-il-lot-l: #f7e4c0;
  --rs-il-lot-r: #ebd2a3;
  --rs-il-wall: #fbecd2;
  --rs-il-violet-t: #f39a3c;
  --rs-il-violet-d: #8f3f08;
  --rs-il-violet-e: #6e3006;
  --rs-il-violet-top: var(--sun-main);
  --rs-il-peach-t: #fde7d4;
  --rs-il-peach-l: #f9d3b4;
  --rs-il-peach-r: #f1bd96;
  --rs-il-red-t: #f08a72;
  --rs-il-red-r: #8f2410;
  --rs-il-red-e: #6f1c0c;
  --rs-il-amber-t: #fde68a;
  --rs-il-amber: var(--sun-yellow);
  --rs-il-green: #4ea474;
  --rs-il-leaf-t: #e3f4e9;
  --rs-il-leaf: #c5e6d1;
  --rs-il-leaf-r: #a9d6ba;
  --rs-il-trunk: #d6c3b4;
  --rs-il-trunk-d: #9c7c66;
  --rs-il-ink-t: #2d3740;
  --rs-il-ink-r: #1d272f;
  --rs-il-map: #fff1d6;
  --rs-il-glass: #cfe3f1;
  --rs-il-shingle: rgba(255, 255, 255, 0.24);
  --rs-il-line: #616d78;
  --rs-il-lens: rgba(207, 227, 241, 0.55);
  --rs-il-slate: #6f9e9f;
  --rs-il-slate-t: #bfe0df;
  --rs-il-panel: #1f3b5c;
  --rs-il-panel-2: #2d5b88;

  /* Older pp-* names used by copied views, mapped onto the tokens above */
  --pp-navy: var(--rs-ink);
  --pp-blue: var(--rs-amber-2);
  --pp-blue-dark: var(--sun-deeper);
  --pp-orange: var(--rs-amber);
  --pp-ink: var(--rs-ink);
  --pp-dark: var(--rs-ink);
  --pp-yellow: var(--rs-amber-2);
  --pp-yellow-hover: var(--rs-ink-hover);
  --pp-yellow-ink: var(--rs-amber-2);
  --pp-sky: var(--rs-amber);
  --pp-tan: var(--rs-paper);
  --pp-tan-border: var(--rs-amber-line);
  --pp-canvas: var(--rs-bg);
  --pp-bg: var(--pp-canvas);
  --pp-surface: var(--rs-bg-2);
  --pp-border: var(--rs-line);
  --pp-border-strong: var(--rs-line-2);
  --pp-text: var(--rs-txt);
  --pp-text-muted: var(--rs-txt-3);
  --pp-row-hover: var(--rs-bg-3);
  --pp-on-navy: var(--rs-on-ink);
  --pp-on-navy-muted: var(--rs-on-ink-2);
  --pp-success: var(--rs-live);
  --pp-success-bg: var(--rs-live-soft);
  --pp-success-border: var(--rs-live-line);
  --pp-info: var(--rs-blue);
  --pp-info-bg: var(--rs-blue-soft);
  --pp-info-border: var(--rs-blue-line);
  --pp-warn: var(--rs-warn);
  --pp-warn-bg: var(--rs-warn-soft);
  --pp-warn-border: var(--rs-warn-line);
  --pp-danger: var(--rs-red);
  --pp-danger-bg: var(--rs-red-soft);
  --pp-danger-border: var(--rs-red-line);
  --pp-neutral: var(--rs-txt-3);
  --pp-neutral-bg: var(--rs-bg-4);
  --pp-neutral-border: var(--rs-line);
  --pp-green: var(--pp-success);
  --pp-red: var(--pp-danger);

  --pp-s1: 4px;
  --pp-s2: 8px;
  --pp-s3: 12px;
  --pp-s4: 16px;
  --pp-s5: 24px;
  --pp-s6: 32px;
  --pp-s7: 48px;
  --pp-radius: 12px;
  --pp-radius-card: 18px;
  --pp-radius-card-sm: 14px;
  --pp-radius-pill: 999px;
  --pp-ctl-h: 40px;
  --pp-ctl-h-sm: 36px;
  --pp-ctl-h-xs: 28px;
  --pp-sidebar-w: 268px;
  --pp-sidebar-w-rail: 76px;
  --pp-sidebar-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sh-topbar-h: 64px;
  --sh-content-max: 1320px;
  --pp-shadow-card: var(--rs-shadow-sm);
  --pp-shadow-pop: var(--rs-shadow-lg);
  --pp-font: var(--rs-font-ui);
  --pp-font-display: var(--rs-font-display);
  --pp-font-mono: var(--rs-font-code);
  --pp-fs-title: 30px;   --pp-lh-title: 36px;
  --pp-fs-section: 16px; --pp-lh-section: 22px;
  --pp-fs-body: 14px;    --pp-lh-body: 21px;
  --pp-fs-meta: 12px;    --pp-lh-meta: 16px;
}

/* ---------- 3. Base ---------- */
* { box-sizing: border-box; }
html { font-size: 87.5%; }
body {
  margin: 0;
  font-family: var(--pp-font);
  font-size: var(--pp-fs-body);
  background: var(--pp-canvas);
  color: var(--pp-text);
  line-height: calc(var(--pp-lh-body) / var(--pp-fs-body));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
a { color: var(--pp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video, iframe { max-width: 100%; }
code, pre, kbd { font-family: var(--pp-font-mono); }
h1 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.022em; }
h2 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -0.011em; }
h1, h2, .rs-panel-h h2, .db-card-h h2 { font-family: var(--rs-font-display); letter-spacing: 0; }
.pp-main h1 { font-family: var(--rs-font-display); font-weight: 600; letter-spacing: -0.03em; }
.pp-main h2, .pp-main h3 { letter-spacing: -0.015em; }
.pp-main h1 em { font-family: var(--rs-font-display); font-style: normal; color: var(--rs-amber-2); font-size: 1em; letter-spacing: 0; }
.num, td.num, .pp-num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--rs-amber-2); outline-offset: 2px; }
::selection { background: var(--rs-amber-soft); color: var(--rs-amber-2); }
[hidden] { display: none !important; }
.muted { color: var(--pp-text-muted); }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Forms, buttons, alerts, badges, tables, cards ---------- */
label { display: block; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: -0.006em; color: var(--pp-text); }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { font-size: var(--pp-fs-body); line-height: var(--pp-lh-body); font-weight: 400; color: var(--pp-text); }
input, select, textarea { color-scheme: light; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], input[type=tel], select, textarea {
  width: 100%;
  height: var(--pp-ctl-h);
  padding: 0 var(--pp-s3);
  border: 1px solid var(--pp-border-strong);
  border-radius: var(--pp-radius);
  font-family: inherit;
  font-size: var(--pp-fs-body);
  color: var(--pp-text);
  background: var(--rs-bg-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
textarea { height: auto; min-height: 88px; padding: var(--pp-s2) var(--pp-s3); line-height: calc(var(--pp-lh-body) / var(--pp-fs-body)); }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=number]:hover, input[type=date]:hover, input[type=url]:hover, input[type=search]:hover, input[type=tel]:hover, select:hover, textarea:hover { border-color: var(--rs-line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rs-amber); background: var(--rs-bg-2); box-shadow: 0 0 0 4px var(--rs-ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--pp-neutral-bg); color: var(--pp-text-muted); cursor: not-allowed; box-shadow: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--rs-amber-2); }
.field-help { font-size: var(--pp-fs-meta); line-height: var(--pp-lh-meta); color: var(--pp-text-muted); margin: var(--pp-s1) 0 0; }
.field-error { font-size: var(--pp-fs-meta); line-height: var(--pp-lh-meta); color: var(--pp-danger); margin: var(--pp-s1) 0 0; }
.field-row { display: flex; gap: var(--pp-s4); flex-wrap: wrap; }
.field-row > * { flex: 1 1 130px; min-width: 0; }
.field-row > .grow-2 { flex: 2 1 180px; }
form[style*="display:flex"] > select, form[style*="display: flex"] > select { width: auto; flex: 1 1 180px; max-width: 280px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--pp-ctl-h);
  padding: 0 calc(var(--pp-s4) + var(--pp-s1));
  border-radius: var(--pp-radius-pill);
  border: 1px solid transparent;
  background: var(--rs-ink);
  color: var(--rs-on-ink) !important;
  font-family: inherit;
  font-size: var(--pp-fs-body);
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--rs-shadow-btn);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--rs-ink-hover); text-decoration: none; }
.btn.secondary { background: var(--rs-bg-2); border-color: var(--rs-line-2); color: var(--rs-txt) !important; box-shadow: var(--rs-shadow-sm); }
.btn.secondary:hover { background: var(--rs-bg-3); border-color: var(--rs-line-3); }
.btn.danger { background: var(--pp-danger); color: var(--rs-on-ink) !important; }
.btn.danger:hover { background: var(--rs-red); filter: brightness(0.92); }
.btn.subtle { background: transparent; color: var(--pp-blue) !important; border-color: transparent; box-shadow: none; }
.btn.subtle:hover { background: var(--rs-hover); }
.btn.compact { min-height: var(--pp-ctl-h-sm); padding: 0 var(--pp-s4); }
.btn.large { min-height: var(--pp-s7); padding: 0 var(--pp-s6); font-size: 15px; }
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--pp-s3);
  padding: var(--pp-s3) var(--pp-s4);
  border: 1px solid var(--pp-neutral-border);
  border-radius: var(--pp-radius);
  margin-bottom: var(--pp-s4);
  font-size: var(--pp-fs-body);
  line-height: var(--pp-lh-body);
  background: var(--pp-neutral-bg);
  color: var(--pp-text);
}
.alert::before {
  content: "i";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--pp-neutral);
  color: var(--rs-on-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.alert.error { background: var(--pp-danger-bg); border-color: var(--pp-danger-border); color: var(--pp-danger); }
.alert.error::before { content: "!"; background: var(--pp-danger); }
.alert.success { background: var(--pp-success-bg); border-color: var(--pp-success-border); color: var(--pp-success); }
.alert.success::before { content: "\2713"; background: var(--pp-success); }
.alert.info { background: var(--pp-info-bg); border-color: var(--pp-info-border); color: var(--pp-info); }
.alert.info::before { content: "i"; background: var(--pp-info); }
.alert.warn { background: var(--pp-warn-bg); border-color: var(--pp-warn-border); color: var(--pp-warn); }
.alert.warn::before { content: "!"; background: var(--pp-warn); }
.flash-narrow { max-width: 640px; margin: var(--pp-s4) auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px var(--pp-s2);
  border-radius: 999px;
  font-size: var(--pp-fs-meta);
  line-height: var(--pp-lh-meta);
  font-weight: 600;
  background: var(--pp-neutral-bg);
  color: var(--pp-neutral);
  white-space: nowrap;
}
.badge::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.gray { background: var(--pp-neutral-bg); color: var(--pp-neutral); }
.badge.blue { background: var(--pp-info-bg); color: var(--pp-info); }
.badge.green { background: var(--pp-success-bg); color: var(--pp-success); }
.badge.orange { background: var(--pp-warn-bg); color: var(--pp-warn); }
.badge.red { background: var(--pp-danger-bg); color: var(--pp-danger); }

.card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  padding: var(--pp-s5);
  margin-bottom: var(--pp-s5);
  box-shadow: var(--rs-shadow-md);
}
.card h2, .card h3 { margin-top: 0; }
.card-alert { border-width: 1px; border-style: solid; }
.card-alert-danger { border-color: var(--pp-danger-border); background: var(--pp-danger-bg); }
.card-alert-warn { border-color: var(--pp-warn-border); background: var(--pp-warn-bg); }
.card-alert-info { border-color: var(--pp-info-border); background: var(--pp-info-bg); }
.card-alert-success { border-color: var(--pp-success-border); background: var(--pp-success-bg); }
.plan-featured, .card.plan-featured { background: var(--pp-tan); border-color: var(--pp-tan-border); }

.stat-row { display: flex; gap: var(--pp-s4); flex-wrap: wrap; margin-bottom: var(--pp-s5); }
.stat { flex: 1; min-width: 160px; background: var(--pp-surface); border: 1px solid var(--pp-border); border-radius: var(--pp-radius-card-sm); padding: var(--pp-s4); box-shadow: var(--rs-shadow-md); }
.stat .label { font-size: var(--pp-fs-meta); line-height: var(--pp-lh-meta); font-weight: 500; color: var(--pp-text-muted); }
.stat .value { font-size: var(--pp-fs-title); line-height: var(--pp-lh-title); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { width: 100%; }
table.pp-table, table.table { width: 100%; border-collapse: collapse; background: var(--pp-surface); }
.pp-table th, .pp-table td, .table th, .table td { padding: var(--pp-s3); text-align: left; font-size: var(--pp-fs-body); line-height: var(--pp-lh-body); }
.pp-table td, .table td { border-bottom: 1px solid var(--pp-border); }
.pp-table th, .table th { position: sticky; top: 0; z-index: 2; background: var(--rs-bg-3); font-size: var(--pp-fs-meta); line-height: var(--pp-lh-meta); font-weight: 500; color: var(--pp-text-muted); box-shadow: inset 0 -1px 0 var(--pp-border); }
.pp-table tbody tr:hover td, .table tbody tr:hover td { background: var(--pp-row-hover); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

.empty-state { padding: var(--pp-s6) var(--pp-s4) var(--pp-s5); text-align: center; color: var(--pp-text-muted); }
.empty-state::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto var(--pp-s3);
  border: 1px dashed var(--pp-border-strong);
  border-radius: var(--pp-radius-card-sm);
  background:
    linear-gradient(var(--pp-border-strong), var(--pp-border-strong)) 10px 13px / 22px 2px no-repeat,
    linear-gradient(var(--pp-border-strong), var(--pp-border-strong)) 10px 20px / 16px 2px no-repeat,
    linear-gradient(var(--pp-border-strong), var(--pp-border-strong)) 10px 27px / 19px 2px no-repeat;
}
.empty-state p { margin: 0 auto; max-width: 46ch; }
.empty-state .btn { margin-top: var(--pp-s4); }

.explorer-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--pp-s2); margin-top: var(--pp-s4); padding-top: var(--pp-s3); border-top: 1px solid var(--pp-border); }
.pager-status { color: var(--pp-text-muted); font-size: var(--pp-fs-meta); }
.pager-btns { display: inline-flex; align-items: center; gap: var(--pp-s1); flex-wrap: wrap; }
.pager-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--pp-ctl-h-xs); min-height: var(--pp-ctl-h-xs); padding: 0 var(--pp-s2); border: 1px solid var(--pp-border-strong); border-radius: var(--pp-radius-pill); background: var(--pp-surface); font-size: var(--pp-fs-meta); font-weight: 500; text-decoration: none; color: inherit; }
a.pager-btn:hover { border-color: var(--pp-ink); text-decoration: none; }
.pager-btn.is-current { background: var(--rs-ink); border-color: var(--rs-ink); color: var(--rs-on-ink); font-weight: 700; }
.pager-btn.is-disabled { opacity: 0.45; }
.pager-gap { color: var(--pp-text-muted); padding: 0 var(--pp-s1); }

.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--pp-s2) var(--pp-s4); margin-bottom: var(--pp-s5); }
.page-head h1 { margin: 0; }
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pp-s2); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pp-s4); align-items: start; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--pp-s3); align-items: start; }
@media (max-width: 991.98px) { .split-2 { grid-template-columns: 1fr; } }

/* ---------- 5. Shell: folding left menu, phone drawer, top bar, content ---------- */
.pp-shell { display: flex; min-height: 100vh; }
.pp-backdrop { display: none; position: fixed; inset: 0; background: var(--rs-scrim); z-index: 90; border: 0; padding: 0; }

.pp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--pp-sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  padding: 16px 14px 14px;
  background:
    radial-gradient(120% 38% at 0% 100%, var(--rs-paper-2) 0%, transparent 70%),
    radial-gradient(90% 30% at 100% 0%, color-mix(in srgb, var(--sun-yellow) 16%, transparent) 0%, transparent 72%),
    radial-gradient(110% 34% at 100% 62%, color-mix(in srgb, var(--sun-yellow) 9%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--rs-bg-2) 0%, var(--rs-paper) 100%);
  border-right: 1px solid var(--rs-amber-line);
  transition: width 0.22s var(--pp-sidebar-ease);
}
.sidebar-head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 4px 0; }
.sidebar-head .brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: var(--rs-txt); }
.sidebar-head .brand:hover { text-decoration: none; }
.sidebar-head .brand-logo { display: block; height: 28px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.sidebar-head .brand-logo.is-custom { height: 38px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--rs-ink); color: var(--rs-on-ink); font-size: 19px; line-height: 1; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark.is-icon { background: none; border-radius: 9px; }
.brand-mark.is-rail { display: none; }
.brand-word { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.035em; overflow: hidden; }
.brand-word span { color: var(--rs-amber-2); }

.pp-sidebar .icon-btn { display: grid; place-items: center; position: relative; width: 34px; height: 34px; flex-shrink: 0; padding: 0; background: transparent; border: 0; border-radius: 10px; color: var(--rs-txt-3); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.pp-sidebar .icon-btn:hover { background: var(--rs-bg-4); color: var(--rs-txt); text-decoration: none; }
.pp-sidebar .icon-btn:focus-visible { outline: 2px solid var(--rs-amber-2); outline-offset: 2px; }
.sidebar-collapse .nav-icon { font-size: 19px; }
.pp-sidebar .sidebar-close { display: none; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px 6px; }
.sidebar-nav.is-scrollable { -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent); }
.sidebar-nav.is-scrollable.at-end { -webkit-mask-image: none; mask-image: none; }
.sidebar-nav::-webkit-scrollbar, .pp-sidebar::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track, .pp-sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb, .pp-sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: var(--pp-radius-pill); }
.pp-sidebar:hover .sidebar-nav::-webkit-scrollbar-thumb, .pp-sidebar:hover::-webkit-scrollbar-thumb { background: var(--rs-line-2); }
@supports (-moz-appearance: none) {
  .sidebar-nav, .pp-sidebar { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .pp-sidebar:hover .sidebar-nav, .pp-sidebar:hover { scrollbar-color: var(--rs-line-3) transparent; }
}
.nav-section { padding: 16px 10px 6px; font-size: 11.5px; line-height: 1.2; font-weight: 600; color: var(--rs-txt-3); }
.nav-section:first-child { padding-top: 4px; }
.pp-sidebar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 11px;
  color: var(--rs-txt-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.pp-sidebar button.nav-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.pp-sidebar .nav-item .nav-icon { color: var(--rs-txt-3); transition: color 0.15s ease; }
.pp-sidebar .nav-item:hover { background: color-mix(in srgb, var(--rs-bg-2) 70%, transparent); color: var(--rs-txt); text-decoration: none; }
.pp-sidebar .nav-item:hover .nav-icon { color: var(--rs-amber-2); }
.pp-sidebar .nav-item.active { background: var(--rs-grad-strong); color: var(--rs-on-ink); font-weight: 600; box-shadow: 0 8px 18px -10px var(--rs-amber); }
.pp-sidebar .nav-item.active .nav-icon { color: var(--rs-on-ink); }
.pp-sidebar .nav-item.active .nav-tag { background: rgba(255, 255, 255, 0.22); color: var(--rs-on-ink); }
.pp-sidebar .nav-item:focus-visible { outline: 2px solid var(--rs-amber-2); outline-offset: -2px; }
.pp-sidebar .nav-item.is-off { color: var(--rs-txt-4); cursor: default; }
.pp-sidebar .nav-item.is-off .nav-icon { color: var(--rs-txt-4); }
.pp-sidebar .nav-item.is-off:hover { background: none; color: var(--rs-txt-4); }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; font-size: 19px; line-height: 1; }
.nav-label { min-width: 0; overflow: hidden; line-height: 1.5; text-overflow: ellipsis; }
.nav-tag { margin-left: auto; padding: 3px 7px; border-radius: 99px; background: var(--rs-bg-4); color: var(--rs-txt-2); font: 600 11px/1 var(--rs-font-ui); }
.nav-tag.hot { background: var(--rs-ink); color: var(--rs-on-ink); }

.sb-usage { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--rs-grad-strong); color: var(--rs-on-ink); text-decoration: none; box-shadow: var(--rs-shadow-btn); transition: background 0.15s ease; }
a.sb-usage:hover { background: var(--rs-grad-accent-hover); text-decoration: none; }
.sb-usage-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--rs-grad-sun); color: var(--rs-dark); font-size: 18px; }
.sb-usage-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.sb-usage-text small { font-size: 11.5px; color: var(--rs-on-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-usage-text strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sb-usage-text strong span + span { font-size: 12.5px; font-weight: 500; color: var(--rs-on-ink-2); letter-spacing: 0; }
.sb-usage-go { font-size: 16px; color: var(--rs-on-ink-2); }

.sidebar-foot { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--rs-amber-line); }
.sb-me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: 12px; color: var(--rs-txt); text-decoration: none; }
a.sb-me:hover { background: color-mix(in srgb, var(--rs-bg-2) 70%, transparent); text-decoration: none; }
.sb-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--rs-grad-strong); color: var(--rs-on-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.sb-me-text { display: grid; min-width: 0; }
.sb-me-text strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-me-text small { font-size: 11.5px; color: var(--rs-txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 768px) {
  .sidebar-collapsed .pp-sidebar { width: var(--pp-sidebar-w-rail); }
  .sidebar-collapsed .sidebar-head { flex-direction: column; gap: 10px; padding-inline: 0; }
  .sidebar-collapsed .sidebar-head .brand { margin-right: 0; }
  .sidebar-collapsed .sidebar-head .brand-logo { display: none; }
  .sidebar-collapsed .brand-mark.is-rail { display: grid; }
  .sidebar-collapsed .brand-word,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .nav-tag,
  .sidebar-collapsed .nav-section span,
  .sidebar-collapsed .sb-usage-text,
  .sidebar-collapsed .sb-usage-go,
  .sidebar-collapsed .sb-me-text { display: none; }
  .sidebar-collapsed .pp-sidebar .nav-item { justify-content: center; gap: 0; padding-inline: 0; }
  .sidebar-collapsed .nav-section { height: 1px; padding: 0; margin: var(--pp-s3); background: var(--rs-line); }
  .sidebar-collapsed .sb-usage { justify-content: center; padding: 8px; }
  .sidebar-collapsed .sidebar-foot { flex-direction: column; }
  .sidebar-collapsed .sb-me { flex: none; padding: 4px; }
}

.rail-tip { position: fixed; left: 0; top: 0; z-index: 120; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: var(--rs-dark); color: var(--rs-on-ink); font-size: var(--pp-fs-meta); font-weight: 500; line-height: 1; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; box-shadow: var(--rs-shadow-md); transition: opacity 0.12s ease; }
.rail-tip.visible { opacity: 1; visibility: visible; }

.pp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; max-width: none; padding: 0; }
.pp-topbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px; height: var(--sh-topbar-h); padding: 0 32px; background: color-mix(in srgb, var(--rs-bg) 84%, transparent); border-bottom: 1px solid var(--rs-line); backdrop-filter: saturate(1.4) blur(12px); }
.tb-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--rs-txt-2); }
.tb-crumb i { font-size: 12px; color: var(--rs-txt-4); }
.tb-crumb strong { font-weight: 600; color: var(--rs-txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-credits { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--rs-line); border-radius: 999px; background: var(--rs-bg-2); color: var(--rs-txt-2); font-size: 13px; text-decoration: none; box-shadow: var(--rs-shadow-sm); }
.tb-credits i { font-size: 17px; color: var(--rs-amber); }
.tb-credits b { color: var(--rs-txt); font-weight: 600; font-variant-numeric: tabular-nums; }
a.tb-credits:hover { border-color: var(--rs-amber-line); text-decoration: none; }
.tb-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rs-line); border-radius: 12px; background: var(--rs-bg-2); color: var(--rs-txt-2); font-size: 18px; text-decoration: none; box-shadow: var(--rs-shadow-sm); }
a.tb-icon:hover { color: var(--rs-txt); border-color: var(--rs-line-3); text-decoration: none; }
.tb-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid var(--rs-bg); background: var(--rs-ink); color: var(--rs-on-ink); font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; }
.tb-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--rs-grad-strong); color: var(--rs-on-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
a.tb-avatar:hover { text-decoration: none; filter: brightness(1.06); }

.pp-content { width: 100%; max-width: var(--sh-content-max); margin: 0 auto; padding: 28px 32px 40px; }
.pp-content > .alert { margin-bottom: 18px; }
.pp-content .rs-top h1, .pp-content .page-head h1 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.pp-main-credit { margin-top: auto; padding: 20px 32px 28px; }
.pp-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--pp-s2); margin: 0; color: var(--pp-text-muted); font-size: var(--pp-fs-meta); line-height: var(--pp-lh-meta); }
.pp-credit-sep { color: var(--pp-border-strong); }
.pp-credit-made { display: inline-flex; align-items: center; gap: 4px; }
.pp-credit-heart { color: var(--rs-red); font-size: 13px; line-height: 1; }

.nav-toggle { display: none; position: static; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex-shrink: 0; min-width: 40px; min-height: 40px; padding: 0; background: var(--rs-bg-2); border: 1px solid var(--rs-line); border-radius: 12px; box-shadow: var(--rs-shadow-sm); cursor: pointer; }
.nav-toggle .nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--rs-txt); border-radius: 2px; }
.nav-toggle:focus-visible { outline: 2px solid var(--rs-amber-2); outline-offset: 2px; }

@media (max-width: 767.98px) {
  .nav-toggle { display: flex; }
  .pp-shell { display: block; min-height: 0; }
  .pp-sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); z-index: 100; padding: 16px 14px; transform: translateX(-105%); transition: transform 0.2s ease; overflow-y: auto; box-shadow: var(--rs-shadow-lg); }
  body.nav-open .pp-sidebar { transform: translateX(0); }
  body.nav-open .pp-backdrop { display: block; }
  body.nav-open { overflow: hidden; }
  .pp-sidebar .sidebar-collapse { display: none; }
  .pp-sidebar .sidebar-close { display: grid; }
  .pp-sidebar .nav-item { min-height: 44px; }
  .pp-topbar { padding: 0 16px; gap: 12px; }
  .tb-credits span { display: none; }
  .tb-credits { padding: 0 10px; }
  .tb-crumb > span, .tb-crumb > i { display: none; }
  .pp-content { padding: 20px 16px 28px; }
  .pp-main-credit { padding: 16px; }
  .card { padding: var(--pp-s4); }
  .stat-row { gap: var(--pp-s3); }
  .stat { min-width: 100%; }
  .btn { min-height: 44px; }
  h1, .page-head h1 { font-size: 21px; line-height: 27px; }
  table.pp-table, table.table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll > table.pp-table, .table-scroll > table.table { display: table; overflow-x: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-sidebar, .rail-tip, .sidebar-collapse .nav-icon, .app-wait-bar span { transition: none; }
}

/* ---------- 6. Components (.rs-*) ---------- */
.rs-page { display: grid; gap: 20px; min-width: 0; }
.rs-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-bottom: 4px; }
.rs-top > div:first-child { min-width: 0; flex: 1 1 420px; }
.rs-top h1 { margin: 0; font: 600 clamp(26px, 3vw, 34px)/1.1 var(--rs-font-display); letter-spacing: -0.03em; text-wrap: balance; }
.rs-top h1 em { font-style: normal; color: var(--rs-amber-2); }
.rs-eyebrow { margin: 0 0 8px; font: 600 12.5px/1 var(--rs-font-ui); color: var(--rs-amber-2); }
.rs-sub { margin: 6px 0 0; color: var(--rs-txt-2); max-width: none; }
.rs-top .rs-sub { font-size: 14.5px; line-height: 1.55; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rs-actions .rs-select, .rs-actions .rs-input, .rs-actions select, .rs-actions input:not([type=checkbox]):not([type=radio]) { width: auto; min-width: 180px; }
.rs-sample { font: 600 12px/1 var(--rs-font-ui); color: var(--rs-txt-3); border: 1px dashed var(--rs-line-2); border-radius: 99px; padding: 6px 10px; }

.rs-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rs-amber-line); background: var(--rs-bg-2); color: var(--rs-amber-2); border-radius: 99px; padding: 9px 16px; font: 600 13px/1.2 var(--rs-font-ui); cursor: pointer; text-decoration: none; box-shadow: var(--rs-shadow-sm); transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.rs-btn:hover { border-color: var(--rs-amber); background: var(--rs-amber-soft); color: var(--sun-deeper); text-decoration: none; }
.rs-btn i { font-size: 15px; }
.rs-btn.pri { background: var(--rs-grad-strong); border-color: transparent; color: var(--rs-on-ink); box-shadow: var(--rs-shadow-btn); }
.rs-btn.pri:hover { background: var(--rs-grad-accent-hover); border-color: transparent; color: var(--rs-on-ink); }
.rs-btn.ghost { background: transparent; border-color: transparent; color: var(--rs-txt-2); box-shadow: none; }
.rs-btn.ghost:hover { background: var(--rs-hover); color: var(--rs-txt); }
.rs-btn.sm { padding: 6px 12px; font-size: 12.5px; }
.rs-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.rs-link { background: none; border: 0; padding: 0; color: var(--rs-txt); font-weight: 700; text-align: left; cursor: pointer; }
.rs-link:hover { color: var(--rs-amber-2); }
.rs-link i { font-size: 13px; vertical-align: -1px; }
.rs-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--rs-line); border-radius: 10px; background: var(--rs-bg-2); color: var(--rs-txt-3); font-size: 16px; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.rs-icon-btn:hover { color: var(--rs-red); border-color: var(--rs-red-line); background: var(--rs-red-soft); }

.rs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.rs-kpi { background: var(--rs-bg-2); border: 1px solid var(--rs-line); border-radius: 16px; padding: 16px 18px; min-width: 0; box-shadow: var(--rs-shadow-sm); }
.rs-kpi small { display: block; font: 500 12.5px/1.2 var(--rs-font-ui); color: var(--rs-txt-3); }
.rs-kpi b { display: block; font: 600 30px/1.15 var(--rs-font-display); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.rs-kpi span { font-size: 12px; color: var(--rs-txt-2); }
.rs-kpi.hl { border-color: var(--rs-amber-line); background: linear-gradient(180deg, var(--rs-amber-soft), var(--rs-bg-2)); }
.rs-kpi.hl b { color: var(--rs-amber-2); }

.rs-panel { background: linear-gradient(180deg, var(--rs-bg-3) 0%, var(--rs-bg-2) 96px); border: 1px solid var(--rs-line); border-radius: 18px; min-width: 0; box-shadow: var(--rs-shadow-md); }
.rs-panel-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rs-line); border-radius: 17px 17px 0 0; background: linear-gradient(90deg, var(--rs-paper) 0%, var(--rs-bg-3) 100%); }
.rs-panel-h h2 { margin: 0; font: 600 17px/1.3 var(--rs-font-display); }
.rs-panel-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--rs-txt-3); }
.rs-panel-b { padding: 18px 20px; }
.rs-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rs-grid { display: grid; gap: 14px; }
.rs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .rs-two { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .rs-layout { grid-template-columns: minmax(0, 1fr); } }

.rs-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--rs-font-ui); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.rs-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rs-pill.dead { color: var(--rs-red); background: var(--rs-red-soft); }
.rs-pill.live { color: var(--rs-live); background: var(--rs-live-soft); }
.rs-pill.veto { color: var(--rs-dead); background: var(--rs-dead-soft); }
.rs-pill.susp { color: var(--rs-amber-2); background: var(--rs-amber-soft); }
.rs-pill.info { color: var(--rs-blue); background: var(--rs-blue-soft); }
.rs-chip { display: inline-block; font: 500 12px/1 var(--rs-font-ui); padding: 5px 8px; border-radius: 8px; background: var(--rs-amber-soft); color: var(--sun-deeper); margin: 0 4px 4px 0; white-space: nowrap; border: 0; }
.rs-chip.a { background: var(--rs-ink); color: var(--rs-on-ink); }
.rs-chip.sun { background: var(--rs-sun-soft); color: var(--rs-zone-watch); }
button.rs-chip { cursor: pointer; }
button.rs-chip:hover { color: var(--rs-txt); }

.rs-table-wrap { overflow-x: auto; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rs-table th { font: 600 12px/1.2 var(--rs-font-ui); color: var(--sun-deeper); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rs-line); white-space: nowrap; background: var(--rs-amber-soft); position: static; box-shadow: none; }
.rs-table td { padding: 13px 12px; border-bottom: 1px solid var(--rs-line); vertical-align: top; }
.rs-table tr:last-child td { border-bottom: 0; }
.rs-table tbody tr:hover td { background: var(--rs-bg-3); }
.rs-table .r { text-align: right; }
.rs-mono { font-family: var(--rs-font-mono); }
.rs-num { font-variant-numeric: tabular-nums; }
.rs-muted { color: var(--rs-txt-3); }
.rs-small { font-size: 12px; }

.rs-note { display: flex; gap: 10px; align-items: flex-start; background: var(--rs-bg-3); border: 1px solid var(--rs-line); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; color: var(--rs-txt-2); }
.rs-note b { color: var(--rs-txt); }
.rs-note.warn { border-color: var(--rs-warn-line); background: var(--rs-warn-soft); }
.rs-note.sun { border-color: color-mix(in srgb, var(--sun-yellow) 55%, transparent); background: var(--rs-sun-soft); }

.rs-rec { background: var(--rs-paper); color: var(--rs-txt); border: 1px solid var(--rs-amber-line); border-radius: 18px; padding: 20px; }
.rs-rec h3 { margin: 0; font: 600 24px/1.1 var(--rs-font-display); letter-spacing: -0.02em; color: var(--rs-txt); }
.rs-rec .rs-eyebrow { color: var(--rs-ink-2); }
.rs-rec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 14px 0 0; }
.rs-rec dt { font: 600 12px/1.2 var(--rs-font-ui); color: var(--rs-ink-2); }
.rs-rec dd { margin: 4px 0 0; font-weight: 600; }

.rs-steps { counter-reset: s; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rs-steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13px; color: var(--rs-txt-2); }
.rs-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--rs-bg-4); display: grid; place-items: center; font: 600 11px var(--rs-font-ui); color: var(--rs-txt); }
.rs-progress { height: 6px; border-radius: 3px; background: var(--rs-bg-4); overflow: hidden; }
.rs-progress i { display: block; height: 100%; width: var(--w, 0); background: var(--rs-grad-sun); transition: width 0.3s; }
.rs-bars { display: grid; gap: 8px; }
.rs-bars .b { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.rs-bars .b i { height: 8px; border-radius: 4px; background: var(--rs-bg-4); position: relative; overflow: hidden; }
.rs-bars .b i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c, var(--rs-amber)); }
.rs-meter { width: 130px; display: grid; gap: 4px; justify-items: end; text-align: right; }
.rs-meter b { font: 600 18px/1 var(--rs-font-ui); font-variant-numeric: tabular-nums; }
.rs-meter i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--rs-bg-4); position: relative; overflow: hidden; }
.rs-meter i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c, var(--rs-amber)); }

.rs-field { display: grid; gap: 6px; }
.rs-field label, .rs-legend { font: 600 12.5px/1.2 var(--rs-font-ui); color: var(--rs-txt-2); }
.rs-input, .rs-select { background: var(--rs-bg-3); border: 1px solid var(--rs-line-2); border-radius: 12px; color: var(--rs-txt); font: 14px var(--rs-font-ui); padding: 10px 12px; min-width: 0; height: auto; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.rs-input:focus, .rs-select:focus { outline: none; border-color: var(--rs-amber); background: var(--rs-bg-2); box-shadow: 0 0 0 4px var(--rs-ring); }
.rs-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--rs-txt-2); cursor: pointer; }
.rs-check input { accent-color: var(--rs-amber-2); margin-top: 3px; }

.rs-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 44px 20px; color: var(--rs-txt-3); }
.rs-empty h3 { color: var(--rs-txt); font: 600 20px/1.2 var(--rs-font-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.rs-empty p { margin: 0 auto; max-width: 52ch; color: var(--rs-txt-3); font-size: 14px; line-height: 1.55; }
.rs-empty .rs-btn { margin-top: 10px; }
.rs-empty-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px; background: linear-gradient(150deg, var(--rs-amber-soft), var(--rs-paper-2)); color: var(--rs-amber-2); font-size: 26px; box-shadow: inset 0 0 0 1px var(--rs-amber-line); }

.tr-list { margin: 0; padding: 8px 12px; list-style: none; }
.tr-item { display: flex; align-items: center; gap: 14px; padding: 12px; }
.tr-item + .tr-item { border-top: 1px solid var(--rs-line); }
.tr-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--rs-amber-soft); color: var(--rs-amber-2); font-size: 19px; }
.tr-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tr-text b { font-size: 14.5px; font-weight: 600; }
.tr-text small { font-size: 12.5px; color: var(--rs-txt-3); }

/* ---------- 7. The Solar Clock zones ---------- */
.z-reset { --zc: var(--rs-zone-reset); --zs: var(--rs-zone-reset-soft); --zd: var(--rs-zone-reset-dot); }
.z-settled { --zc: var(--rs-zone-settled); --zs: var(--rs-zone-settled-soft); --zd: var(--rs-zone-settled-dot); }
.z-watch { --zc: var(--rs-zone-watch); --zs: var(--rs-zone-watch-soft); --zd: var(--rs-zone-watch-dot); }
.z-cliff { --zc: var(--rs-zone-cliff); --zs: var(--rs-zone-cliff-soft); --zd: var(--rs-zone-cliff-dot); }
/* Zone badge: <span class="rs-zone z-cliff">Cliff</span> */
.rs-zone { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--zs, var(--rs-bg-4)); color: var(--zc, var(--rs-txt-2)); font: 600 12px/1.2 var(--rs-font-ui); white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc, var(--rs-line-2)) 16%, transparent); }
.rs-zone::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--zd, currentColor); box-shadow: 0 0 0 2px color-mix(in srgb, var(--zd, currentColor) 25%, transparent); }
.rs-zone small { font-weight: 500; opacity: 0.85; }
.rs-zone.lg { padding: 6px 14px 6px 10px; font-size: 13.5px; }
/* The clock track: four bars sized to the zone years (0-3, 4-9, 10-12, 13+) */
.rs-clock { display: grid; grid-template-columns: 4fr 6fr 3fr 4fr; gap: 3px; }
.rs-clock > span { height: 8px; border-radius: 3px; background: var(--zs); }
.rs-clock > span.is-on { background: var(--zd); }
.whome-zone { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.whome-zone.is-cliff { background: var(--rs-zone-cliff-soft); color: var(--rs-zone-cliff); }
.whome-zone.is-watch { background: var(--rs-zone-watch-soft); color: var(--rs-zone-watch); }
.whome-zone.is-settled { background: var(--rs-zone-settled-soft); color: var(--rs-zone-settled); }
.whome-zone.is-reset { background: var(--rs-zone-reset-soft); color: var(--rs-zone-reset); }

/* ---------- 8. Dashboard cards and zone tiles ---------- */
.db-card { min-width: 0; border: 1px solid var(--rs-line); border-radius: 22px; background: linear-gradient(180deg, var(--rs-bg-3) 0%, var(--rs-bg-2) 96px); box-shadow: var(--rs-shadow-md); }
.db-card-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; padding: 20px 22px 0; }
.db-card-h h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--rs-txt); }
.db-card-h p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--rs-txt-3); }
.db-card-b { padding: 16px 22px 22px; }
.db-zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.db-zone { display: grid; gap: 2px; padding: 14px 14px 12px; border-radius: 14px; background: var(--zs); color: var(--rs-txt); text-decoration: none; border: 1px solid color-mix(in srgb, var(--zc) 18%, transparent); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
a.db-zone:hover { border-color: color-mix(in srgb, var(--zc) 45%, transparent); box-shadow: var(--rs-shadow-sm); text-decoration: none; }
.db-zone-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.db-zone-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--zc); }
.db-zone-name::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--zd, var(--zc)); }
.db-zone-pct { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--zc) 80%, var(--rs-txt-3)); }
.db-zone b { margin-top: 6px; font: 600 28px/1.05 var(--rs-font-display); letter-spacing: -0.03em; color: var(--rs-txt); font-variant-numeric: tabular-nums; }
.db-zone small { font-size: 12px; color: var(--rs-txt-3); }
.db-zone.is-zero b { color: var(--rs-txt-4); }
.db-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--rs-zone-cliff-soft); color: var(--rs-zone-cliff); font-size: 13.5px; }
.db-callout a { font-weight: 600; color: var(--rs-zone-cliff); text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .db-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .db-card-h { padding: 18px 16px 0; } .db-card-b { padding: 14px 16px 18px; } }

/* ---------- 9. Search pieces: age choice (.sr-age) and toasts (.sr-toast) ---------- */
.sr-ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: var(--rs-bg-4); }
.sr-age { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--rs-txt-2); font: inherit; text-align: left; cursor: pointer; transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
.sr-age:hover { background: var(--rs-hover); color: var(--rs-txt); }
.sr-age[aria-checked="true"] { background: var(--rs-bg-2); color: var(--rs-txt); box-shadow: var(--rs-shadow-sm), inset 0 0 0 1px var(--rs-line); }
.sr-age:focus-visible { outline: 2px solid var(--rs-amber-2); outline-offset: 1px; }
.sr-age-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.sr-age--cliff .sr-age-dot { color: var(--rs-zone-cliff-dot); }
.sr-age--watch .sr-age-dot { color: var(--rs-zone-watch-dot); }
.sr-age--reset .sr-age-dot { color: var(--rs-zone-reset-dot); }
.sr-age--settled .sr-age-dot { color: var(--rs-zone-settled-dot); }
.sr-age-text { display: grid; min-width: 0; }
.sr-age-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-age-text small { font-size: 11.5px; color: var(--rs-txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .sr-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sr-ages { grid-template-columns: minmax(0, 1fr); } }

.sr-toast { position: fixed; right: 16px; bottom: 16px; z-index: 950; max-width: min(360px, calc(100vw - 32px)); background: var(--rs-dark); border: 1px solid var(--rs-dark); border-left: 4px solid var(--sun-yellow); color: var(--rs-on-ink); border-radius: 14px; padding: 12px 14px; font-size: 13px; box-shadow: var(--rs-shadow-lg); animation: sr-toast-in 0.2s ease; }
.sr-toast.bad { border-left-color: var(--rs-zone-cliff-dot); }
.sr-toast a { color: var(--sun-yellow); }
@keyframes sr-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sr-toast { animation: none; } }

/* ---------- 10. Please-wait card (forms with data-wait) and the DFY Vault pop-up ---------- */
body.app-wait-open { overflow: hidden; }
.app-wait { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: var(--rs-scrim-strong); backdrop-filter: blur(4px); }
.app-wait-card { display: grid; gap: 12px; width: min(520px, 100%); padding: 24px 26px 20px; border: 1px solid var(--rs-line); border-radius: 20px; background: var(--rs-bg-2); box-shadow: var(--rs-shadow-lg); outline: none; }
.app-wait-card h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--rs-txt); }
.app-wait-card p { margin: -6px 0 0; font-size: 14px; line-height: 1.45; color: var(--rs-txt-2); }
.app-wait-card p:empty { display: none; }
.app-wait-bar { height: 8px; overflow: hidden; border-radius: 8px; background: var(--rs-bg-4); }
.app-wait-bar span { display: block; width: 2%; height: 100%; border-radius: 8px; background: var(--rs-grad-sun); transition: width 0.5s ease; }
.app-wait-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--rs-txt-3); }
.app-wait-foot small { font-size: 12.5px; }
.app-wait-time { flex: none; font-variant-numeric: tabular-nums; }

.vault-dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--rs-line); border-radius: 20px; background: var(--rs-bg-2); color: var(--rs-txt); box-shadow: var(--rs-shadow-lg); }
.vault-dlg::backdrop { background: var(--rs-scrim-strong); }
.vault-dlg-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px 20px; border-bottom: 1px solid var(--rs-line); }
.vault-dlg-head > div { flex: 1 1 auto; min-width: 0; }
.vault-dlg-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.vault-dlg-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--rs-txt-3); }
.vault-dlg-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--rs-amber-soft); color: var(--rs-amber-2); font-size: 20px; }
.vault-dlg-close { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0; border: 1px solid var(--rs-line); border-radius: 10px; background: var(--rs-bg-2); color: var(--rs-txt-3); font-size: 17px; line-height: 1; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.vault-dlg-close:hover { background: var(--rs-bg-4); color: var(--rs-txt); }
.vault-dlg-close:focus-visible { outline: 2px solid var(--rs-amber-2); outline-offset: 2px; }
.vault-dlg-list { display: grid; gap: 6px; margin: 0; padding: 12px; list-style: none; overflow-y: auto; }
.vault-dlg-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--rs-line); border-radius: 14px; color: var(--rs-txt); text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.vault-dlg-list a:hover, .vault-dlg-list a:focus-visible { border-color: var(--rs-amber-line); background: var(--rs-amber-soft); text-decoration: none; }
.vault-dlg-tile { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--rs-bg-4); color: var(--rs-amber-2); font-size: 17px; }
.vault-dlg-text { flex: 1 1 auto; min-width: 0; }
.vault-dlg-text b { display: block; font-size: 14px; font-weight: 600; }
.vault-dlg-text small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--rs-txt-3); }
.vault-dlg-go { flex-shrink: 0; color: var(--rs-txt-3); font-size: 16px; }

/* ---------- 11. Illustrations (.rs-illo), kept from the reference so copied drawings work ---------- */
.rs-illo { display: block; width: 100%; height: auto; overflow: visible; }
.rs-illo path[class$="-t"], .rs-illo path[class$="-l"], .rs-illo path[class$="-r"], .rs-illo .il-glass, .rs-illo .il-door { stroke: var(--rs-il-edge); stroke-width: 1; stroke-linejoin: round; }
.rs-illo .il-ground { fill: var(--rs-il-shadow); filter: blur(5px); }
.rs-illo .il-slab-t { fill: var(--rs-il-lot); }
.rs-illo .il-slab-l { fill: var(--rs-il-lot-l); }
.rs-illo .il-slab-r { fill: var(--rs-il-lot-r); }
.rs-illo .il-n-t, .rs-illo .il-n-l { fill: var(--rs-bg-2); }
.rs-illo .il-n-r { fill: var(--rs-il-wall); }
.rs-illo .il-a-t { fill: var(--rs-il-violet-t); }
.rs-illo .il-a-l { fill: var(--rs-amber); }
.rs-illo .il-a-r { fill: var(--rs-amber-2); }
.rs-illo .il-a-d { fill: var(--rs-il-violet-d); }
.rs-illo .il-a-e { fill: var(--rs-il-violet-e); }
.rs-illo .il-p-t { fill: var(--rs-il-peach-t); }
.rs-illo .il-p-l { fill: var(--rs-il-peach-l); }
.rs-illo .il-p-r, .rs-illo .il-p-d { fill: var(--rs-il-peach-r); }
.rs-illo .il-r-t, .rs-illo .il-r-l { fill: var(--rs-zone-cliff); }
.rs-illo .il-r-r { fill: var(--rs-il-red-r); }
.rs-illo .il-g-t { fill: var(--rs-il-leaf-t); }
.rs-illo .il-g-l { fill: var(--rs-il-leaf); }
.rs-illo .il-g-r { fill: var(--rs-il-leaf-r); }
.rs-illo .il-trunk-t, .rs-illo .il-trunk-l, .rs-illo .il-trunk-r { fill: var(--rs-il-trunk); }
.rs-illo .il-ink-t { fill: var(--rs-il-ink-t); }
.rs-illo .il-ink-l { fill: var(--rs-ink); }
.rs-illo .il-ink-r { fill: var(--rs-il-ink-r); }
.rs-illo .il-pole-t, .rs-illo .il-pole-l, .rs-illo .il-pole-r { fill: var(--rs-line-3); }
.rs-illo .il-zc-t { fill: var(--rs-il-red-t); }
.rs-illo .il-zc-l, .rs-illo .il-zc-top { fill: var(--rs-zone-cliff-dot); }
.rs-illo .il-zc-r, .rs-illo .il-zc-d { fill: var(--rs-il-red-r); }
.rs-illo .il-zc-e { fill: var(--rs-il-red-e); }
.rs-illo .il-zw-t { fill: var(--rs-il-amber-t); }
.rs-illo .il-zw-l, .rs-illo .il-zw-top { fill: var(--rs-il-amber); }
.rs-illo .il-zw-r, .rs-illo .il-zw-d, .rs-illo .il-zw-e { fill: var(--rs-zone-watch); }
.rs-illo .il-zr-t { fill: var(--rs-il-leaf-t); }
.rs-illo .il-zr-l, .rs-illo .il-zr-top { fill: var(--rs-il-green); }
.rs-illo .il-zr-r, .rs-illo .il-zr-d, .rs-illo .il-zr-e { fill: var(--rs-zone-reset); }
.rs-illo .il-zs-t { fill: var(--rs-il-slate-t); }
.rs-illo .il-zs-l, .rs-illo .il-zs-top { fill: var(--rs-il-slate); }
.rs-illo .il-zs-r, .rs-illo .il-zs-d, .rs-illo .il-zs-e { fill: var(--rs-zone-settled); }
.rs-illo .il-map-t { fill: var(--rs-il-map); }
.rs-illo .il-map-l { fill: var(--rs-il-lot-l); }
.rs-illo .il-map-r, .rs-illo .il-cavity, .rs-illo .il-cav-t, .rs-illo .il-cav-l, .rs-illo .il-cav-r, .rs-illo .il-road-fill, .rs-illo .il-cal-day, .rs-illo .il-pad-r { fill: var(--rs-il-lot-r); }
.rs-illo .il-park { fill: var(--rs-il-leaf-t); }
.rs-illo .il-door { fill: var(--rs-amber-2); }
.rs-illo .il-glass, .rs-illo .il-cap { fill: var(--rs-il-glass); }
.rs-illo .il-screen, .rs-illo .il-pad-t { fill: var(--rs-bg-2); }
.rs-illo .il-pad-l { fill: var(--rs-il-wall); }
.rs-illo .il-panel { fill: var(--rs-il-panel); }
.rs-illo .il-panel-2 { fill: var(--rs-il-panel-2); }
.rs-illo .il-sun { fill: var(--sun-yellow); }
.rs-illo .il-shingle { stroke: var(--rs-il-shingle); stroke-width: 1; }
.rs-illo .il-road { stroke: var(--rs-bg-2); stroke-width: 4; stroke-linecap: round; }
.rs-illo .il-road-dash { stroke: var(--rs-bg-2); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }
.rs-illo .il-ink-line { stroke: var(--rs-il-line); stroke-width: 2; stroke-linecap: round; }
.rs-illo .il-soft-line { stroke: var(--rs-line-2); stroke-width: 2; stroke-linecap: round; }
.rs-illo .il-lens-ring { fill: var(--rs-ink); }
.rs-illo .il-lens { fill: var(--rs-il-lens); }
.rs-illo .il-lens-shine { fill: none; stroke: var(--rs-bg-2); stroke-width: 2.5; stroke-linecap: round; opacity: 0.85; }
.rs-illo .il-handle { stroke: var(--rs-ink); stroke-width: 7; stroke-linecap: round; }
.rs-illo .il-check, .rs-illo .il-white-line { fill: none; stroke: var(--rs-bg-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-illo .il-rail { stroke: var(--rs-il-trunk-d); stroke-width: 3; stroke-linecap: round; }
.rs-illo .il-rung { stroke: var(--rs-il-trunk-d); stroke-width: 2; stroke-linecap: round; }
.rs-illo .il-dash { stroke: var(--rs-amber); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; opacity: 0.7; }
.rs-illo .il-route { stroke: var(--rs-amber); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.rs-illo .il-lanyard { stroke: var(--rs-amber); stroke-width: 3; stroke-linecap: round; }
.rs-illo .il-handle, .rs-illo .il-soft-line, .rs-illo .il-ink-line, .rs-illo .il-route, .rs-illo .il-lanyard, .rs-illo .il-rail, .rs-illo .il-rung, .rs-illo .il-road { fill: none; }
.rs-illo .il-frame { fill: var(--rs-il-lot-l); }
.rs-illo .il-dot { fill: var(--rs-amber); }
.rs-illo .il-star { fill: var(--rs-il-amber); }
.rs-illo .il-star-off { fill: var(--rs-line-2); }
.rs-illo .il-pulse { fill: none; stroke: var(--rs-il-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-illo .il-crack { fill: none; stroke: var(--rs-il-red-e); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rs-illo .il-gauge-arc { fill: none; stroke: var(--rs-il-amber); stroke-width: 2.6; stroke-linecap: round; }
.rs-illo .il-stop-a { stop-color: var(--rs-il-violet-top); }
.rs-illo .il-stop-b { stop-color: var(--sun-yellow); }
.rs-illo-slot, .rs-top-art { flex: 0 0 168px; width: 168px; align-self: center; margin: -8px 0 -12px; }
.rs-illo-slot:empty { display: none; }
.rs-empty .rs-illo { width: 150px; margin: 0 auto 6px; }
@media (max-width: 760px) { .rs-illo-slot, .rs-top-art { flex-basis: 120px; width: 120px; margin: 0; } }
@media (max-width: 520px) { .rs-top .rs-illo-slot, .rs-top .rs-top-art { display: none; } }

/* ---------- New look parts for sections 9 to 11 ----------
   Only under .look-v2 ("sunlit glass", tokens from section 15); the rules above stay the first look.
   Frosted surfaces, faint warm wells, thin bars with the sun gradient, and no circular animation. */

/* 9. The age picker: a warm well holding pills; the picked one is a frosted chip */
.look-v2 .sr-ages { gap: 4px; padding: 4px; border-radius: 16px; background: var(--v2-well); }
.look-v2 .sr-age { padding: 10px 12px; border-radius: 12px; color: var(--v2-charcoal-3); }
.look-v2 .sr-age:hover { background: var(--v2-surface); color: var(--v2-text); }
.look-v2 .sr-age[aria-checked="true"] { background: var(--v2-surface-strong); color: var(--v2-text); box-shadow: var(--v2-shadow-card); }
.look-v2 .sr-age:focus-visible { outline: 2.5px solid var(--v2-charcoal); outline-offset: 2px; }
.look-v2 .sr-age-dot { border-radius: 50%; }
.look-v2 .sr-age-text b { font-weight: 600; }
.look-v2 .sr-age-text small { color: var(--v2-muted); }
/* 9. The toast: a frosted note (a soft coral note when something went wrong) */
.look-v2 .sr-toast { border: var(--v2-glass-border); border-radius: var(--v2-r-card); padding: 13px 16px 13px 18px; background: var(--v2-surface-strong); color: var(--v2-text); font: 500 13.5px/1.45 var(--v2-font); box-shadow: var(--v2-shadow-pop); -webkit-backdrop-filter: var(--v2-blur); backdrop-filter: var(--v2-blur); }
.look-v2 .sr-toast.bad { border-color: var(--v2-coral-soft); background: var(--v2-coral-soft); color: var(--v2-coral-ink); }
.look-v2 .sr-toast a { color: var(--v2-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 10. The please-wait card: a frosted card over a soft scrim, a thin sun bar that fills (no spinner) */
.look-v2 .app-wait { background: var(--rs-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.look-v2 .app-wait-card { gap: 14px; padding: 26px 28px 22px; border: var(--v2-glass-border); border-radius: var(--v2-r-panel); background: var(--v2-surface-strong); box-shadow: var(--v2-shadow-pop); -webkit-backdrop-filter: var(--v2-blur); backdrop-filter: var(--v2-blur); }
.look-v2 .app-wait-card h2 { font: 600 21px/1.25 var(--v2-font-display); letter-spacing: -0.02em; color: var(--v2-text); }
.look-v2 .app-wait-card p { color: var(--v2-muted); }
.look-v2 .app-wait-bar { height: 6px; border-radius: 99px; background: var(--v2-track); }
.look-v2 .app-wait-bar span { border-radius: 99px; background: var(--v2-grad-sun); }
.look-v2 .app-wait-foot { color: var(--v2-muted); }
/* 10. The DFY Vault dialog (its frame, radius and shadow are set in section 15) */
.look-v2 .vault-dlg { background: var(--v2-surface-strong); color: var(--v2-text); -webkit-backdrop-filter: var(--v2-blur); backdrop-filter: var(--v2-blur); }
.look-v2 .vault-dlg::backdrop { background: var(--rs-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.look-v2 .vault-dlg-head { padding: 20px 18px 16px 22px; border-bottom: var(--v2-divider); }
.look-v2 .vault-dlg-head h2 { font: 600 18px/1.3 var(--v2-font-display); letter-spacing: -0.012em; color: var(--v2-text); }
.look-v2 .vault-dlg-head p { color: var(--v2-muted); }
.look-v2 .vault-dlg-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--v2-grad-sun); color: var(--v2-charcoal); }
.look-v2 .vault-dlg-close { width: 36px; height: 36px; border: var(--v2-border); border-radius: 50%; background: transparent; color: var(--v2-charcoal-3); }
.look-v2 .vault-dlg-close:hover { background: var(--v2-well); color: var(--v2-text); }
.look-v2 .vault-dlg-close:focus-visible { outline: 2.5px solid var(--v2-charcoal); outline-offset: 2px; }
.look-v2 .vault-dlg-list { gap: 4px; padding: 10px; }
.look-v2 .vault-dlg-list a { padding: 10px 12px; border: 1px solid transparent; border-radius: var(--v2-r-card); color: var(--v2-text); }
.look-v2 .vault-dlg-list a:hover, .look-v2 .vault-dlg-list a:focus-visible { border-color: transparent; background: var(--v2-well); }
.look-v2 .vault-dlg-list a:focus-visible { outline: 2.5px solid var(--v2-charcoal); outline-offset: 1px; }
.look-v2 .vault-dlg-tile { width: 36px; height: 36px; border-radius: 11px; background: var(--v2-badge-bg); color: var(--v2-badge-ink); }
.look-v2 .vault-dlg-text small { color: var(--v2-muted); }
.look-v2 .vault-dlg-go { color: var(--v2-faint); }
.look-v2 .vault-dlg-list a:hover .vault-dlg-go { color: var(--v2-text); }

/* 11. The drawings in the sunlit palette: warm cream lots, lavender panels, mint trees, coral and amber accents.
   Only solid tokens are used for fills, never the translucent glass ones. */
.look-v2 {
  --rs-il-shadow: color-mix(in srgb, var(--v2-amber-ink) 18%, transparent);
  --rs-il-edge: color-mix(in srgb, var(--v2-amber-ink) 16%, transparent);
  --rs-il-lot: var(--v2-cream);
  --rs-il-lot-l: color-mix(in srgb, var(--v2-yellow-soft) 55%, var(--v2-line));
  --rs-il-lot-r: var(--v2-line-2);
  --rs-il-wall: color-mix(in srgb, var(--v2-cream) 60%, var(--v2-line));
  --rs-il-map: var(--v2-cream);
  --rs-il-violet-t: var(--v2-yellow);
  --rs-il-violet-d: var(--v2-amber-ink);
  --rs-il-violet-e: color-mix(in srgb, var(--v2-amber-ink) 75%, var(--v2-charcoal));
  --rs-il-violet-top: var(--v2-amber);
  --rs-il-peach-t: var(--v2-coral-soft);
  --rs-il-peach-l: color-mix(in srgb, var(--v2-coral) 35%, var(--v2-coral-soft));
  --rs-il-peach-r: color-mix(in srgb, var(--v2-coral) 65%, var(--v2-coral-soft));
  --rs-il-red-t: var(--v2-coral);
  --rs-il-red-r: var(--v2-coral-ink);
  --rs-il-red-e: color-mix(in srgb, var(--v2-coral-ink) 80%, var(--v2-charcoal));
  --rs-il-amber-t: var(--v2-yellow-soft);
  --rs-il-amber: var(--v2-yellow);
  --rs-il-green: var(--v2-mint);
  --rs-il-leaf-t: var(--v2-mint-soft);
  --rs-il-leaf: color-mix(in srgb, var(--v2-mint) 45%, var(--v2-mint-soft));
  --rs-il-leaf-r: var(--v2-mint);
  --rs-il-trunk: color-mix(in srgb, var(--v2-amber-ink) 35%, var(--v2-stone));
  --rs-il-trunk-d: var(--v2-amber-ink);
  --rs-il-ink-t: var(--v2-charcoal-3);
  --rs-il-ink-r: var(--v2-charcoal);
  --rs-il-glass: var(--v2-lav-soft);
  --rs-il-lens: color-mix(in srgb, var(--v2-lav-soft) 55%, transparent);
  --rs-il-shingle: color-mix(in srgb, var(--v2-white) 24%, transparent);
  --rs-il-line: var(--v2-muted);
  --rs-il-slate: var(--v2-lav);
  --rs-il-slate-t: var(--v2-lav-soft);
  --rs-il-panel: var(--v2-lav-ink);
  --rs-il-panel-2: var(--v2-lav);
}
/* The parts drawn with the first look's amber, ink and sun colours, not with an --rs-il-* token */
.look-v2 .rs-illo .il-a-l, .look-v2 .rs-illo .il-dot { fill: var(--v2-amber); }
.look-v2 .rs-illo .il-a-r, .look-v2 .rs-illo .il-door { fill: var(--v2-amber-ink); }
.look-v2 .rs-illo .il-dash, .look-v2 .rs-illo .il-route, .look-v2 .rs-illo .il-lanyard { stroke: var(--v2-amber); }
.look-v2 .rs-illo .il-ink-l, .look-v2 .rs-illo .il-lens-ring { fill: var(--v2-charcoal-2); }
.look-v2 .rs-illo .il-handle { stroke: var(--v2-charcoal-2); }
.look-v2 .rs-illo .il-sun { fill: var(--v2-yellow); }
.look-v2 .rs-illo .il-stop-b { stop-color: var(--v2-yellow); }
.look-v2 .rs-illo .il-n-t, .look-v2 .rs-illo .il-n-l, .look-v2 .rs-illo .il-screen, .look-v2 .rs-illo .il-pad-t { fill: var(--v2-white); }
.look-v2 .rs-illo .il-road, .look-v2 .rs-illo .il-road-dash, .look-v2 .rs-illo .il-lens-shine { stroke: var(--v2-white); }
.look-v2 .rs-illo .il-check, .look-v2 .rs-illo .il-white-line { stroke: var(--v2-white); }
.look-v2 .rs-illo .il-pole-t, .look-v2 .rs-illo .il-pole-l, .look-v2 .rs-illo .il-pole-r, .look-v2 .rs-illo .il-star-off { fill: var(--v2-line-2); }
.look-v2 .rs-illo .il-soft-line { stroke: var(--v2-line-2); }

/* ---------- 12. Public pages (pitch and homeowner pages) ----------
   The layout's own parts (top bar, messages, footer) always carry the class look-v2 on themselves, so they
   wear the new look while the page design between them keeps its own: a pitch or homeowner design inherits
   the body's font and has its own form fields, so the body only gets look-v2 on a plain app card page.
   Sunlit glass: section 15 paints every .look-v2 element with the page light, so the top bar, the messages
   and the footer each set their own background here (a frosted pill bar, nothing, a quiet strip). */
.pp-nav, .pp-nav.look-v2 { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 8px 8px 8px 22px; background: var(--v2-surface-strong, var(--v2-white)); color: var(--v2-text); border: var(--v2-glass-border, var(--v2-border)); box-shadow: var(--v2-shadow-card, none); -webkit-backdrop-filter: var(--v2-blur, none); backdrop-filter: var(--v2-blur, none); }
.pp-nav a { color: var(--v2-text); text-decoration: none; }
.pp-nav .links > a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; color: var(--v2-muted); transition: background 0.15s ease, color 0.15s ease; }
.pp-nav .links > a:not(.btn):hover { background: var(--v2-well); color: var(--v2-text); }
.pp-nav .brand { display: inline-flex; align-items: center; min-height: 40px; font-family: var(--v2-font-display); font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--v2-text); }
.pp-nav .links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pp-nav .links .btn { min-height: 40px; }
.marketing-nav { position: relative; z-index: 5; max-width: 1120px; margin: 16px auto; border-radius: 999px; }
.marketing-nav .brand-logo { display: block; height: 28px; width: auto; }
.pb-flash.look-v2 { background: transparent; }
.pb-flash .flash-narrow { max-width: 1120px; margin: 16px auto; }
.hero { text-align: center; padding: 5rem 1.5rem 4rem; background: var(--rs-bg); color: var(--rs-txt); }
.hero h1 { font-family: var(--rs-font-display); font-size: clamp(1.9rem, 4.5vw + 0.7rem, 3.1rem); line-height: 1.12; margin: 0 auto 1.2rem; max-width: 21ch; font-weight: 600; letter-spacing: -0.032em; overflow-wrap: break-word; color: var(--rs-txt); }
.hero h1 .hero-accent, .hero h1 em { font-style: normal; font-weight: 600; color: var(--rs-amber-2); }
.hero p { font-size: 1.2rem; color: var(--rs-txt-2); max-width: 640px; margin: 0 auto 2rem; }
.hero a:not(.btn) { color: var(--rs-txt-2); text-decoration: underline; }
.look-v2 .hero { background: transparent; color: var(--v2-text); }
.look-v2 .hero h1 { font-family: var(--v2-font-display); font-weight: 300; letter-spacing: -0.035em; color: var(--v2-text); }
.look-v2 .hero h1 .hero-accent, .look-v2 .hero h1 em { font-weight: 400; color: inherit; padding: 0 0.06em; background: linear-gradient(transparent 58%, var(--v2-yellow-soft) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.look-v2 .hero p { color: var(--v2-muted); }
.look-v2 .hero a:not(.btn) { color: var(--v2-text); text-underline-offset: 3px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--pp-s5); padding: var(--pp-s7) var(--pp-s6); max-width: 1100px; margin: 0 auto; }
footer.pp-footer { max-width: 1120px; margin: 40px auto 0; padding: 22px 24px 30px; border-top: var(--v2-divider, var(--v2-border)); background: transparent; color: var(--v2-muted); font-size: 13px; line-height: 1.5; text-align: center; }
footer.pp-footer div { margin-top: 8px; }
@media (max-width: 767.98px) {
  .pp-nav { padding: 6px 6px 6px 16px; gap: 6px 12px; }
  .pp-nav .links { flex-wrap: nowrap; gap: 2px; }
  .pp-nav .links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; white-space: nowrap; }
  .pp-nav .links a:not(.btn) { padding: 0 10px; }
  .pp-nav .links .btn { min-height: 44px; padding: 0 16px; }
  .marketing-nav .brand-logo { height: 24px; }
  .marketing-nav { margin: 12px 16px 0; }
  footer.pp-footer { margin: 32px 16px 0; padding: 20px 8px 28px; }
  .hero { padding: var(--pp-s7) var(--pp-s4) var(--pp-s6); }
  .features { padding: var(--pp-s6) var(--pp-s4); gap: var(--pp-s4); }
}

/* ---------- 13. Solar company portal (layouts/portal) ----------
   In the new look, "sunlit glass" (the layout gives the body "pt-body look-v2", whose warm gradient is
   the page): a floating frosted top bar with a charcoal pill for the page you are on, frosted panels,
   rounded-square icon badges. The one bold accent of a page is the sun gradient (portal.css). Colours
   only from the --v2-* tokens; the --pt-* glass tokens fall back to the plain look until they exist. */
.pt-body {
  --pt-bar-h: 64px;
  /* Sunlit glass, from section 15; each falls back to the plain look until the token exists */
  --pt-glass: var(--v2-surface, var(--v2-white));
  --pt-glass-border: var(--v2-glass-border, var(--v2-border));
  --pt-glass-shadow: var(--v2-shadow-card, none);
  --pt-blur: var(--v2-blur, none);
  --pt-well: var(--v2-well, var(--v2-stone-2));
  --pt-divider: var(--v2-divider, 1px solid var(--v2-line));
  --pt-track: var(--v2-track, var(--v2-stone));
  --pt-sun: var(--v2-grad-sun, var(--v2-hero));
  --pt-badge-bg: var(--v2-badge-bg, var(--v2-stone-2));
  --pt-badge-ink: var(--v2-badge-ink, var(--v2-text));
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin: 0; color: var(--v2-text); font-family: var(--v2-font);
}
/* The top bar, as in the app: in the page flow on desktop (it scrolls away with the page); on phones a
   solid full-width bar that stays at the top, with a soft fade under it */
.pt-top { position: relative; z-index: 40; padding: 8px 16px 0; }
.pt-top-inner { position: relative; display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1240px; height: var(--pt-bar-h); margin: 0 auto; padding: 0 12px; }
.pt-body .pt-mark { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; color: var(--v2-text); text-decoration: none; }
.pt-mark:hover { text-decoration: none; }
.pt-mark > img { display: block; max-height: 34px; max-width: 190px; }
.pt-mark-badge { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--v2-charcoal); overflow: hidden; }
.pt-mark-badge img { display: block; width: 100%; height: 100%; }
.pt-mark-text { font-family: var(--v2-font-display); font-size: 19px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--v2-text); white-space: nowrap; }
.pt-burger { display: none; place-items: center; width: 42px; height: 42px; margin-left: auto; padding: 0; border: var(--v2-border); border-radius: 50%; background: transparent; color: var(--v2-text); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color 0.15s ease; }
.pt-burger:hover { border-color: var(--v2-charcoal); }
.pt-burger .ph-x { display: none; }
.pt-burger[aria-expanded="true"] .ph-x { display: block; }
.pt-burger[aria-expanded="true"] .ph-list { display: none; }
.pt-menu { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; min-width: 0; }
.pt-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; padding: 4px; }
.pt-body .pt-nav a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--v2-charcoal-3); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.pt-body .pt-nav a:hover { background: var(--v2-stone-2); color: var(--v2-text); text-decoration: none; }
.pt-body .pt-nav a.is-on { background: var(--v2-charcoal); color: var(--v2-on-dark); }
.pt-nav a i { font-size: 17px; }
.pt-nav a.is-on i { color: var(--v2-yellow); }
.pt-who { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: auto; }
.pt-who-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-who-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--pt-badge-bg); color: var(--pt-badge-ink); font-size: 18px; }
.pt-who-text { min-width: 0; }
.pt-who-text strong { display: block; max-width: 20ch; overflow: hidden; color: var(--v2-text); font-size: 13.5px; font-weight: 600; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.pt-who-text span { display: block; color: var(--v2-muted); font-size: 12px; line-height: 16px; }
.pt-main { flex: 1 1 auto; width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 28px 56px; }
.pt-main [id] { scroll-margin-top: calc(var(--pt-bar-h) + 16px); }
.pt-main > .alert { margin-bottom: 18px; }
.pt-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 28px; }
.pt-head-main { flex: 1 1 420px; min-width: 0; }
.pt-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-eyebrow { margin: 0 0 10px; font: 600 13px/1.2 var(--v2-font); color: var(--v2-muted); }
.pt-body .pt-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--v2-muted); font: 600 13px/1.2 var(--v2-font); text-decoration: none; }
.pt-body .pt-back:hover { color: var(--v2-text); text-decoration: none; }
.pt-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-body .pt-head h1 { margin: 0; font-family: var(--v2-font-display); font-size: 38px; line-height: 44px; font-weight: 400; letter-spacing: -0.03em; color: var(--v2-title, var(--v2-text)); overflow-wrap: anywhere; }
.pt-head h1 em { font-family: inherit; font-style: normal; font-weight: 600; padding: 0 0.06em; background: linear-gradient(transparent 58%, var(--v2-yellow-soft) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pt-lede { margin: 10px 0 0; color: var(--v2-muted); font-size: 15px; line-height: 1.55; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.pt-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.pt-card { min-width: 0; border: var(--pt-glass-border); border-radius: var(--v2-r-panel); background: var(--pt-glass); box-shadow: var(--pt-glass-shadow); -webkit-backdrop-filter: var(--pt-blur); backdrop-filter: var(--pt-blur); }
.pt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 22px 16px; border-bottom: var(--pt-divider); }
.pt-card-head h2 { margin: 0; font-family: var(--v2-font-display); font-size: 17.5px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--v2-text); }
.pt-card-head p { margin: 3px 0 0; color: var(--v2-muted); font-size: 13px; line-height: 18px; }
.pt-card-body { padding: 22px; }
.pt-tile { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--pt-badge-bg); color: var(--pt-badge-ink); font-size: 18px; line-height: 1; }
.pt-tile.is-key { background: var(--pt-sun); color: var(--v2-on-dark); }
.pt-tile.is-info { background: var(--v2-lav-soft); color: var(--v2-lav-ink); }
.pt-tile.is-warn { background: var(--v2-yellow-soft); color: var(--v2-yellow-ink); }
.pt-tile.is-success { background: var(--v2-mint-soft); color: var(--v2-mint-ink); }
.pt-tile.is-neutral { background: var(--v2-stone); color: var(--v2-charcoal-3); }
.pt-empty { padding: 52px 24px; text-align: center; }
.pt-empty .pt-tile { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 15px; font-size: 24px; }
.pt-empty h3 { margin: 0 0 6px; font-family: var(--v2-font-display); font-size: 17px; line-height: 22px; font-weight: 700; color: var(--v2-text); }
.pt-empty p { max-width: 44ch; margin: 0 auto; color: var(--v2-muted); font-size: 13.5px; line-height: 1.55; }
.pt-empty .btn { margin-top: 18px; }
.pt-dl { margin: 0; }
.pt-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: var(--pt-divider); }
.pt-dl > div:first-child { padding-top: 0; }
.pt-dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.pt-dl dt { flex-shrink: 0; color: var(--v2-muted); font-size: 13px; line-height: 18px; font-weight: 500; }
.pt-dl dd { min-width: 0; margin: 0; color: var(--v2-text); font-size: 13.5px; line-height: 18px; font-weight: 600; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pt-rows { list-style: none; margin: 0; padding: 0; }
.pt-rows > li + li { border-top: var(--pt-divider); }
.pt-body .pt-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; color: inherit; text-decoration: none; transition: background 0.15s ease; }
.pt-rows > li:last-child .pt-row { border-radius: 0 0 var(--v2-r-panel) var(--v2-r-panel); }
.pt-body .pt-row:hover { background: var(--pt-well); text-decoration: none; }
.pt-row-main { flex: 1 1 auto; min-width: 0; }
.pt-row-main strong { display: block; overflow: hidden; color: var(--v2-text); font-size: 14.5px; line-height: 20px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pt-row-main span { display: block; margin-top: 2px; overflow: hidden; color: var(--v2-muted); font-size: 13px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.pt-row-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pt-row-when { color: var(--v2-muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-row-go { color: var(--v2-faint); font-size: 16px; }
.pt-row:hover .pt-row-go { color: var(--v2-text); }
.pt-tip { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: var(--pt-glass-border); border-radius: var(--v2-r-card); background: var(--pt-glass); box-shadow: var(--pt-glass-shadow); -webkit-backdrop-filter: var(--pt-blur); backdrop-filter: var(--pt-blur); }
.pt-tip i { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--v2-yellow-soft); color: var(--v2-yellow-ink); font-size: 18px; }
.pt-card .pt-tip { border: 0; background: var(--pt-well); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pt-tip p { margin: 0; color: var(--v2-charcoal-3); font-size: 13.5px; line-height: 1.55; }
.pt-foot { padding: 18px 28px 24px; background: transparent; text-align: center; }
.pt-foot .pp-credit { margin: 0; }
@media (max-width: 1100px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-top-inner { padding: 0 12px; }
  .pt-burger { display: grid; }
  .pt-menu { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100dvh - var(--pt-bar-h) - 32px); overflow-y: auto; padding: 12px 16px 18px; border: var(--pt-glass-border); border-radius: var(--v2-r-panel); background: var(--pt-glass); box-shadow: var(--pt-glass-shadow); -webkit-backdrop-filter: var(--pt-blur); backdrop-filter: var(--pt-blur); }
  .pt-menu.is-open { display: flex; }
  .pt-nav { flex-direction: column; align-items: stretch; gap: 4px; padding: 0; }
  .pt-body .pt-nav a { height: 46px; padding: 0 16px; font-size: 15px; }
  .pt-who { justify-content: space-between; gap: 12px; margin-left: 0; padding-top: 14px; border-top: var(--v2-border); }
  .pt-who-text strong { max-width: 28ch; }
}
@media (max-width: 767.98px) {
  .pt-body { --pt-bar-h: 62px; }
  .pt-top { position: sticky; top: 0; padding: 0; background: var(--v2-white); }
  .pt-top::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 16px; background: linear-gradient(to bottom, color-mix(in srgb, var(--v2-white) 85%, transparent), transparent); pointer-events: none; }
  .pt-top-inner { padding: 0 16px; }
  .pt-menu { right: 8px; left: 8px; }
  .pt-main { padding: 24px 16px 40px; }
  .pt-head { margin-bottom: 22px; }
  .pt-body .pt-head h1 { font-size: 28px; line-height: 34px; }
  .pt-head-actions { width: 100%; }
  .pt-head-actions .btn { flex: 1 1 auto; }
  .pt-grid, .pt-col { gap: 16px; }
  .pt-card-head { padding: 16px 18px; }
  .pt-card-body { padding: 18px; }
  .pt-row { padding: 14px 18px; gap: 12px; }
  .pt-row-when { display: none; }
  .pt-foot { padding: 16px; }
}

/* ---------- 14. Sign-in pages (layouts/auth and layouts/portal_auth) ----------
   SolarSignal's own sign-in layout: no top bar; on the left a full-height picture (layouts/_auth_scene: a
   street of solar homes at sunset, drawn inline, the headline on the light sky, one frosted card in the
   corner); on the right the form in a full-height white column, first in the page, with the logo at its top
   and the other sign-in and the credit at its foot. Phones: the form first, the picture below. Colours only
   from the --v2-* tokens of section 15 (the body is look-v2). */
html:has(.auth-body) { color-scheme: light; }
.auth-body {
  --a-ink: var(--v2-text);
  --a-ink-2: var(--v2-charcoal-3);
  --a-ink-3: var(--v2-muted);
  --a-ink-4: var(--v2-faint);
  --a-line-2: var(--v2-line-2);
  --a-line-3: var(--v2-faint);
  --a-field: var(--v2-white);
  --a-glass: var(--v2-surface, var(--v2-white));
  --a-glass-border: var(--v2-glass-border, var(--v2-border));
  --a-glass-shadow: var(--v2-shadow-card, none);
  --a-blur: var(--v2-blur, none);
  --a-well: var(--v2-well, var(--v2-stone-2));
  --a-divider: var(--v2-divider, 1px solid var(--v2-line));
  --a-track: var(--v2-track, var(--v2-stone));
  --a-sun: var(--v2-grad-sun, var(--v2-hero));
  --a-hero-fill: var(--v2-hero-fill, var(--a-sun));
  --a-hero-ink: var(--v2-hero-ink);
  --a-badge-bg: var(--v2-badge-bg, var(--v2-stone-2));
  --a-badge-ink: var(--v2-badge-ink, var(--v2-text));
  --a-autofill: var(--v2-well, var(--v2-stone-2));
  --a-mark: var(--v2-yellow-soft);
  --a-dark: var(--v2-charcoal);
  --a-on-dark: var(--v2-on-dark);
  --a-display: var(--v2-font-display);
  --a-font: var(--v2-font);

  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--a-ink);
  font-family: var(--a-font);
}

/* The two parts: the picture on the left, the form column on the right (the form is first in the page) */
.au-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 500px); min-height: 100vh; min-height: 100dvh; }

/* The form column: logo at the top, the form in the middle, the other sign-in and the credit at the foot */
.au-side { grid-column: 2; grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: clamp(24px, 5vh, 44px) clamp(24px, 4vw, 56px) 22px; background: var(--v2-white); box-shadow: var(--a-glass-shadow); }
.auth-mark { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-width: 0; color: var(--a-ink); text-decoration: none; }
.auth-mark:hover { text-decoration: none; }
.auth-mark img { display: block; height: 28px; width: auto; max-width: 200px; }
.auth-mark-badge { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--a-dark); color: var(--a-on-dark); overflow: hidden; }
.auth-mark-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-mark-badge:has(img) { background: none; }
.auth-mark-text { font-family: var(--a-display); font-size: 19px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.auth-card { width: 100%; max-width: 400px; margin-block: auto; padding: clamp(8px, 2vh, 24px) 0; }
.au-side-foot { display: grid; gap: 6px; }
.auth-body .au-switch { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; min-height: 44px; margin-left: -12px; padding: 0 12px; border-radius: 999px; color: var(--a-ink-3); font-size: 13.5px; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.auth-body .au-switch b { font-weight: 600; color: var(--a-ink); }
.auth-body .au-switch:hover { background: var(--a-well); color: var(--a-ink); text-decoration: none; }
.auth-legal .pp-credit { justify-content: flex-start; margin: 0; color: var(--a-ink-3); font-size: 12px; text-align: left; }

/* The form */
.auth-eyebrow { margin: 0 0 10px; font-size: 13px; line-height: 1.2; font-weight: 600; color: var(--a-ink-3); }
.auth-title { margin: 0; font-family: var(--a-display); font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; color: var(--v2-title, var(--a-ink)); }
.auth-title em { font-style: normal; font-weight: 600; padding: 0 0.06em; background: linear-gradient(transparent 58%, var(--a-mark) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.auth-lede { margin: 10px 0 clamp(20px, 3.4vh, 28px); font-size: 14.5px; line-height: 1.55; color: var(--a-ink-3); }
.auth-card .alert { margin-bottom: 20px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin: 0 0 7px; font-size: 13.5px; line-height: 18px; font-weight: 600; color: var(--a-ink); }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 7px; }
.auth-label-row label { margin: 0; }
.auth-body .auth-label-row a { font-size: 13px; font-weight: 600; color: var(--a-ink); text-decoration: underline; text-decoration-color: var(--a-line-2); text-underline-offset: 3px; }
.auth-body .auth-label-row a:hover { text-decoration-color: var(--a-ink); }
.auth-input { position: relative; display: block; }
.auth-body.look-v2 .auth-input input { width: 100%; height: 50px; margin: 0; padding: 0 14px 0 46px; border: 1.5px solid var(--a-line-2); border-radius: var(--v2-r-well); background: var(--a-field); color: var(--a-ink); font: 500 15px/1 var(--a-font); box-shadow: none; transition: border-color 0.15s ease; }
.auth-body .auth-input input::placeholder { color: var(--a-ink-4); }
.auth-body .auth-input input:hover:not(:focus) { border-color: var(--a-line-3); }
.auth-body .auth-input input:focus { border-color: var(--a-dark); }
.auth-input input:-webkit-autofill, .auth-input input:-webkit-autofill:hover, .auth-input input:-webkit-autofill:focus { -webkit-text-fill-color: var(--a-ink); -webkit-box-shadow: 0 0 0 1000px var(--a-autofill) inset; caret-color: var(--a-ink); }
.auth-input > i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); font-size: 18px; line-height: 1; color: var(--a-ink-4); pointer-events: none; transition: color 0.15s ease; }
.auth-input input:focus ~ i { color: var(--a-ink); }
.auth-body .auth-input.has-peek input { padding-right: 50px; }
.auth-peek { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--a-ink-3); font-size: 18px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.auth-peek:hover { background: var(--a-well); color: var(--a-ink); }
.auth-hint { margin: 7px 0 0; font-size: 12.5px; line-height: 16px; color: var(--a-ink-3); }
.auth-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 2px; font-size: 13.5px; color: var(--a-ink-2); cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--a-dark); }
.auth-body .btn.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 20px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--a-hero-fill); color: var(--a-hero-ink) !important; font: 600 15px/1 var(--a-font); cursor: pointer; box-shadow: var(--v2-glow, none); transition: box-shadow 0.15s ease, filter 0.15s ease; }
.auth-body .btn.auth-submit:hover { background: var(--a-hero-fill); filter: saturate(1.08); box-shadow: inset 0 0 0 1.5px var(--a-dark); }
.auth-body .btn.auth-submit:focus-visible { outline: 2.5px solid var(--a-dark); outline-offset: 2px; }
.auth-submit i { font-size: 17px; }
.auth-alt { margin: 18px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--a-ink-3); }
.auth-body .auth-alt a { font-weight: 600; color: var(--a-ink); text-decoration: underline; text-decoration-color: var(--a-line-2); text-underline-offset: 3px; }
.auth-body .auth-alt a:hover { text-decoration-color: var(--a-ink); }

/* The picture: a street of solar homes at sunset (layouts/_auth_scene), full height, the line on the light sky
   at the top, one frosted card in the lower corner */
.au-scene { grid-column: 1; grid-row: 1; position: relative; min-width: 0; min-height: 100%; overflow: hidden; }
.au-sc { position: absolute; inset: 0; }
.au-sc-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.au-sc-sky { fill: url(#auScSky); }
.au-sc-sky-a { stop-color: var(--v2-white); }
.au-sc-sky-b { stop-color: var(--v2-yellow-soft); }
.au-sc-sky-c { stop-color: var(--v2-coral-soft); }
.au-sc-glow { fill: url(#auScGlow); }
.au-sc-glow-a { stop-color: var(--v2-yellow); stop-opacity: 0.55; }
.au-sc-glow-b { stop-color: var(--v2-yellow-soft); stop-opacity: 0; }
.au-sc-sun { fill: var(--v2-yellow); }
.au-sc-hill-far { fill: var(--v2-lav-soft); }
.au-sc-cloud ellipse { fill: var(--v2-white); opacity: 0.75; }
.au-sc-far { opacity: 0.55; }
.au-sc-hill { fill: var(--v2-stone); }
.au-sc-wall { fill: var(--v2-white); }
.au-sc-wall-d { fill: var(--v2-well, var(--v2-stone-2)); }
.au-sc-roof { fill: var(--v2-charcoal-3); }
.au-sc-fascia, .au-sc-chimney { fill: var(--v2-charcoal); }
.au-sc-panel { fill: var(--v2-charcoal); stroke: color-mix(in srgb, var(--v2-white) 30%, transparent); stroke-width: 1; }
.au-sc-cell { fill: none; stroke: color-mix(in srgb, var(--v2-white) 16%, transparent); stroke-width: 0.8; }
.au-sc-glint { fill: none; stroke: color-mix(in srgb, var(--v2-white) 55%, transparent); stroke-width: 2; stroke-linecap: round; }
.au-sc-win { fill: var(--v2-yellow-soft); stroke: var(--v2-line-2); stroke-width: 1.5; }
.au-sc-door { fill: var(--v2-coral); }
.au-sc-battery { fill: var(--v2-white); stroke: var(--v2-line-2); stroke-width: 1.5; }
.au-sc-tree circle { fill: var(--v2-mint); }
.au-sc-tree .au-sc-tree-d { fill: var(--v2-mint-ink); opacity: 0.35; }
.au-sc-trunk { fill: var(--v2-charcoal-3); }
.au-sc-ground { fill: var(--v2-white); }
.au-sc-walk { fill: var(--v2-stone); }
.au-sc-street { fill: var(--v2-line); }
.au-sc-dash { fill: none; stroke: var(--v2-white); stroke-width: 3; stroke-dasharray: 22 18; }

.au-sc-head { position: absolute; top: 0; right: 0; left: 0; display: grid; gap: 12px; padding: clamp(32px, 7vh, 72px) clamp(28px, 5vw, 72px) 40px; }
.au-sc-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--a-ink-3); }
.au-sc-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a-sun); }
.au-sc-line { max-width: 15em; margin: 0; font: 400 clamp(30px, 3.2vw, 46px)/1.1 var(--a-display); letter-spacing: -0.03em; color: var(--v2-title, var(--a-ink)); text-wrap: balance; }

.au-sc-card { position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(24px, 6vh, 56px); display: flex; align-items: flex-start; gap: 14px; width: min(320px, calc(100% - 40px)); padding: 16px 18px; border: var(--a-glass-border); border-radius: var(--v2-r-card); background: var(--a-glass); box-shadow: var(--v2-shadow-pop, var(--a-glass-shadow)); -webkit-backdrop-filter: var(--a-blur); backdrop-filter: var(--a-blur); }
.au-sc-card-ico { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--a-sun); color: var(--v2-white); font-size: 19px; }
.au-sc-card-main { display: grid; gap: 2px; min-width: 0; }
.au-sc-card-main small { font-size: 12px; color: var(--a-ink-3); }
.au-sc-card-main b { overflow: hidden; font-size: 14px; font-weight: 600; color: var(--a-ink); text-overflow: ellipsis; white-space: nowrap; }
.au-sc-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.au-sc-card-big { font: 400 26px/1 var(--a-display); letter-spacing: -0.02em; color: var(--v2-title, var(--a-ink)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-sc-card-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--a-ink-3); }

@media (max-height: 760px) and (min-width: 901px) {
  .auth-field { margin-bottom: 12px; }
  .auth-body.look-v2 .auth-input input { height: 46px; }
  .auth-body .btn.auth-submit { min-height: 48px; margin-top: 16px; }
}
@media (max-width: 900px) {
  .au-split { grid-template-columns: minmax(0, 1fr); }
  .au-side { grid-column: 1; grid-row: 1; gap: 18px; padding: 22px 20px 18px; border-bottom: var(--a-divider); }
  .au-scene { grid-row: 2; min-height: 460px; }
  .auth-card { max-width: 480px; margin-block: 8px; padding: 0; }
}
@media (max-width: 560px) {
  .auth-title { font-size: 28px; }
  .au-scene { min-height: 400px; }
  .au-sc-head { padding: 28px 20px; }
  .au-sc-line { font-size: 26px; }
  .au-sc-card { display: none; }
}

/* ---------- 15. The new look (body.look-v2): yellow, charcoal, stone and cream ----------
   Shown on the Dashboard first. The layout prints the body class "look-v2" only when the page asks
   for it (view data look = v2), so every other page keeps the look above until it moves over.
   Never redefine --sun-* here: brand_style() sets them on :root for agencies, and an agency's main
   colour reaches this look through --brand-hero and --brand-hero-ink instead.
   The tokens also sit on :root when the page is in the new look, for the page background around the body. */
.look-v2, :root:has(body.look-v2) {
  /* Base */
  --v2-page: #f7f6f1;
  --v2-cream: #fffce9;
  --v2-white: #ffffff;
  --v2-stone: #e9e4d2;
  --v2-stone-2: #f3f1ea;
  --v2-line: #e6e2d6;
  --v2-line-2: #d3cdbb;
  --v2-charcoal: #232323;
  --v2-charcoal-2: #2f2f2d;
  --v2-charcoal-3: #474641;
  --v2-text: #232323;
  --v2-muted: #625e55;
  --v2-faint: #959083;
  --v2-on-dark: #fffce9;
  --v2-on-dark-2: #aeaa9f;

  /* Accents: solid, soft tint, ink (text on the tint) */
  --v2-yellow: #ffcf06;
  --v2-yellow-soft: #fff4c2;
  --v2-yellow-ink: #6e5200;
  --v2-coral: #ff8f6e;
  --v2-coral-soft: #ffe7de;
  --v2-coral-ink: #a23a1e;
  --v2-lav: #b49cf7;
  --v2-lav-soft: #efeafe;
  --v2-lav-ink: #5b40c0;
  --v2-mint: #7ed3a5;
  --v2-mint-soft: #e2f5ea;
  --v2-mint-ink: #1f6b43;

  /* The hero colour (primary buttons, credits card): an agency's main colour when it set one */
  --v2-hero: var(--brand-hero, var(--v2-yellow));
  --v2-hero-fill: var(--brand-hero, linear-gradient(135deg, #ffd84d 0%, #ffbf1f 48%, #f59e0b 100%));
  --v2-hero-ink: var(--brand-hero-ink, var(--v2-charcoal));

  --v2-r-hero: 28px;
  --v2-r-panel: 22px;
  --v2-r-card: 16px;
  --v2-r-well: 12px;
  --v2-border: 1.5px solid var(--v2-line);
  --v2-shadow-pop: 0 1px 2px rgba(35, 35, 35, 0.06), 0 22px 44px -20px rgba(35, 35, 35, 0.32);
  --v2-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --v2-font-display: var(--v2-font);

  /* The Solar Clock: Reset mint, Settled lavender, Watch coral (getting close), Cliff yellow (the money zone, the brand colour).
     -*: text (AA on the soft colour), -soft: badge fill, -dot: the solid colour. */
  --rs-zone-reset: var(--v2-mint-ink);
  --rs-zone-reset-soft: var(--v2-mint-soft);
  --rs-zone-reset-dot: var(--v2-mint);
  --rs-zone-settled: var(--v2-lav-ink);
  --rs-zone-settled-soft: var(--v2-lav-soft);
  --rs-zone-settled-dot: var(--v2-lav);
  --rs-zone-watch: var(--v2-coral-ink);
  --rs-zone-watch-soft: var(--v2-coral-soft);
  --rs-zone-watch-dot: var(--v2-coral);
  --rs-zone-cliff: var(--v2-yellow-ink);
  --rs-zone-cliff-soft: var(--v2-yellow-soft);
  --rs-zone-cliff-dot: var(--v2-yellow);

  /* The shared component tokens, so alerts, chips and links follow the new look */
  --rs-bg: var(--v2-page);
  --rs-bg-2: var(--v2-white);
  --rs-bg-3: var(--v2-stone-2);
  --rs-bg-4: var(--v2-stone);
  --rs-line: var(--v2-line);
  --rs-line-2: var(--v2-line-2);
  --rs-line-3: var(--v2-faint);
  --rs-txt: var(--v2-text);
  --rs-txt-2: var(--v2-charcoal-3);
  --rs-txt-3: var(--v2-muted);
  --rs-txt-4: var(--v2-faint);
  --rs-font-ui: var(--v2-font);
  --rs-font-display: var(--v2-font-display);
  --rs-font-mono: var(--v2-font);
  --pp-canvas: var(--v2-page);
  --pp-text: var(--v2-text);
  --pp-text-muted: var(--v2-muted);
  --pp-border: var(--v2-line);
  --pp-border-strong: var(--v2-line-2);
  --pp-font: var(--v2-font);
  --pp-font-display: var(--v2-font-display);
  --rs-scrim: rgba(35, 35, 35, 0.42);
  --rs-dark: var(--v2-charcoal);
}
:root:has(body.look-v2) { background: var(--v2-page); }
.look-v2 { background: var(--v2-page); color: var(--v2-text); font-family: var(--v2-font); font-size: 14.5px; }
.look-v2 h1, .look-v2 h2, .look-v2 h3 { font-family: var(--v2-font-display); font-weight: 700; letter-spacing: -0.015em; }
:where(.look-v2) a { color: var(--v2-text); }
.look-v2 :focus-visible { outline: 2.5px solid var(--v2-charcoal); outline-offset: 2px; }
.look-v2 ::selection { background: var(--v2-yellow-soft); color: var(--v2-charcoal); }

/* Warm glass: a peach and coral palette (from the reference board), the warm page light and the frosted
   surfaces. These values override the first token set above. */
.look-v2, :root:has(body.look-v2) {
  --v2-page: #fdf0e9;
  --v2-page-bg:
    radial-gradient(1000px 640px at -6% -10%, rgba(246, 140, 108, 0.42) 0%, transparent 62%),
    radial-gradient(1100px 680px at 104% -8%, rgba(252, 190, 160, 0.55) 0%, transparent 64%),
    radial-gradient(900px 700px at 60% 112%, rgba(255, 214, 196, 0.6) 0%, transparent 62%),
    #fdf0e9;
  --v2-text: #3f1a12;
  --v2-title: #6b2513;
  --v2-muted: #85594d;
  --v2-faint: #b6928a;
  --v2-charcoal: #3f1a12;
  --v2-charcoal-3: #5e3329;
  --v2-on-dark: #ffffff;
  --v2-white: #ffffff;
  --v2-surface: rgba(255, 255, 255, 0.96);
  --v2-surface-strong: #ffffff;
  --v2-surface-soft: rgba(255, 255, 255, 0.92);
  --v2-glass-line: rgba(255, 255, 255, 0.9);
  --v2-glass-border: 1px solid rgba(255, 255, 255, 0.92);
  --v2-shadow-card: 0 1px 2px rgba(150, 60, 35, 0.04), 0 18px 44px -28px rgba(170, 70, 40, 0.3);
  --v2-shadow-pop: 0 1px 2px rgba(150, 60, 35, 0.06), 0 26px 56px -24px rgba(170, 70, 40, 0.42);
  --v2-glow: 0 10px 22px -12px rgba(226, 69, 44, 0.75);
  --v2-blur: saturate(1.35) blur(18px);
  --v2-well: #fdf4ef;
  --v2-divider: 1px solid rgba(170, 80, 50, 0.12);
  --v2-track: rgba(200, 95, 65, 0.13);
  --v2-border: 1px solid rgba(170, 80, 50, 0.16);
  --v2-line: #f2dbd1;
  --v2-line-2: #e7c4b5;
  --v2-stone: #f6e2d8;
  --v2-stone-2: #fdf4ef;

  /* The accent: coral to orange */
  --v2-amber: #ee6a43;
  --v2-amber-ink: #b2381d;
  --v2-grad-sun: linear-gradient(135deg, #f8a27c 0%, #f0704b 52%, #e0452c 100%);
  --v2-badge-bg: rgba(240, 106, 72, 0.13);
  --v2-badge-ink: #b2381d;
  --v2-title-ink: linear-gradient(92deg, #4a160b 0%, #8a2b14 46%, #e5652f 100%);
  --v2-hero-fill: var(--brand-hero, linear-gradient(135deg, #f58a63 0%, #ec5a3b 55%, #d93c25 100%));
  --v2-hero-ink: var(--brand-hero-ink, #ffffff);

  /* Status colours, warm and in one family: solid, soft tint, ink */
  --v2-yellow: #f7a26b;
  --v2-yellow-soft: #fdeadd;
  --v2-yellow-ink: #9a461c;
  --v2-coral: #f0704b;
  --v2-coral-soft: #fde1d7;
  --v2-coral-ink: #b2331b;
  --v2-lav: #f6b99c;
  --v2-lav-soft: #fdece4;
  --v2-lav-ink: #9b4628;
  --v2-mint: #5fbf8b;
  --v2-mint-soft: #e1f3e8;
  --v2-mint-ink: #1f6b43;
  --v2-red: #dd3b28;
  --v2-red-soft: #fcdcd5;
  --v2-red-ink: #a8261a;

  /* The Solar Clock from fresh to hot: Reset green, Settled peach, Watch orange, Cliff coral-red (the money zone) */
  --rs-zone-reset: var(--v2-mint-ink);
  --rs-zone-reset-soft: var(--v2-mint-soft);
  --rs-zone-reset-dot: var(--v2-mint);
  --rs-zone-settled: var(--v2-lav-ink);
  --rs-zone-settled-soft: var(--v2-lav-soft);
  --rs-zone-settled-dot: var(--v2-lav);
  --rs-zone-watch: var(--v2-yellow-ink);
  --rs-zone-watch-soft: var(--v2-yellow-soft);
  --rs-zone-watch-dot: #f39258;
  --rs-zone-cliff: var(--v2-red-ink);
  --rs-zone-cliff-soft: var(--v2-red-soft);
  --rs-zone-cliff-dot: #e34a30;
  --v2-r-panel: 24px;
}
:root:has(body.look-v2) { background: var(--v2-page-bg); background-attachment: fixed; }
body.look-v2 { background: var(--v2-page-bg); background-attachment: fixed; }

/* Type: large, light titles; numbers light and tabular */
.look-v2 .pp-main h1, .look-v2 .rs-top h1, .look-v2 .page-head h1 {
  font: 300 clamp(30px, 3vw, 44px)/1.1 var(--v2-font-display); letter-spacing: -0.035em;
  background: var(--v2-title-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content; max-width: 100%;
}
.look-v2 .pp-main h1 em, .look-v2 .rs-top h1 em { font-family: inherit; font-style: normal; font-weight: inherit; color: inherit; }
.look-v2 .pp-main h2 { font-weight: 600; letter-spacing: -0.012em; color: var(--v2-title); }
.look-v2 .rs-eyebrow { font: 500 14px/1.3 var(--v2-font); color: var(--v2-amber-ink); }
.look-v2 .rs-sub, .look-v2 .rs-top .rs-sub { color: var(--v2-muted); font-size: 15px; }
.look-v2 .num, .look-v2 td.num, .look-v2 .rs-num { font-variant-numeric: tabular-nums; }

/* Shell: a floating frosted sidebar and a light top bar */
.look-v2 .pp-sidebar {
  top: 16px; height: calc(100vh - 32px); margin: 16px 0 16px 16px; padding: 22px 14px 14px; gap: 14px;
  border: var(--v2-glass-border); border-radius: 28px; background: var(--v2-surface-strong);
  box-shadow: var(--v2-shadow-card); backdrop-filter: var(--v2-blur);
}
.look-v2 .sidebar-head { min-height: 40px; padding: 0 8px; }
.look-v2 .pp-sidebar .icon-btn { border-radius: 12px; color: var(--v2-muted); }
.look-v2 .pp-sidebar .icon-btn:hover { background: var(--v2-well); color: var(--v2-text); }
.look-v2 .nav-section { padding: 18px 12px 6px; font: 600 12px/1.2 var(--v2-font); color: var(--v2-faint); letter-spacing: 0; }
.look-v2 .nav-section:first-child { padding-top: 10px; }
.look-v2 .pp-sidebar .nav-item { gap: 11px; min-height: 42px; padding: 0 8px; border-radius: 14px; color: var(--v2-charcoal-3); font: 500 14.5px/1.2 var(--v2-font); }
.look-v2 .pp-sidebar .nav-item .nav-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 18px; color: var(--v2-muted); }
.look-v2 .pp-sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.75); color: var(--v2-text); }
.look-v2 .pp-sidebar .nav-item:hover .nav-icon { color: var(--v2-amber-ink); }
.look-v2 .pp-sidebar .nav-item.active { color: var(--v2-amber-ink); background: linear-gradient(90deg, rgba(248, 162, 124, 0.32) 0%, rgba(248, 162, 124, 0.1) 100%); color: var(--v2-text); font-weight: 600; box-shadow: none; }
.look-v2 .pp-sidebar .nav-item.active .nav-icon { background: var(--v2-grad-sun); color: var(--v2-white); box-shadow: var(--v2-glow); }
.look-v2 .pp-sidebar .nav-item:focus-visible { outline: 2px solid var(--v2-amber-ink); outline-offset: 1px; }
.look-v2 .sb-usage { gap: 12px; padding: 12px; border-radius: 18px; background: var(--v2-well); color: var(--v2-text); box-shadow: none; }
.look-v2 a.sb-usage:hover { background: rgba(250, 236, 206, 0.7); }
.look-v2 .sb-usage-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--v2-grad-sun); color: var(--v2-white); }
.look-v2 .sb-usage-text small { font-size: 12px; color: var(--v2-muted); }
.look-v2 .sb-usage-text strong { font: 400 22px/1.1 var(--v2-font-display); letter-spacing: -0.02em; color: var(--v2-text); }
.look-v2 .sb-usage-text strong span + span { font: 500 12.5px var(--v2-font); color: var(--v2-muted); }
.look-v2 .sb-usage-go { color: var(--v2-muted); }
.look-v2 .sidebar-foot { border-top: var(--v2-divider); }
.look-v2 a.sb-me:hover { background: rgba(255, 255, 255, 0.75); }
.look-v2 .sb-avatar, .look-v2 .tb-avatar { border-radius: 50%; background: var(--v2-grad-sun); color: var(--v2-white); font: 600 13.5px/1 var(--v2-font); letter-spacing: 0.02em; }
.look-v2 .sb-me-text small { color: var(--v2-muted); }
.look-v2 .rail-tip { background: var(--v2-charcoal); color: var(--v2-on-dark); }

/* The top row sits in the page flow, as in the reference: clear, no bar, and it scrolls away with the page.
   The sidebar keeps the credits and the account in view. On a phone it is a plain app bar (below). */
.look-v2 .pp-topbar { position: relative; top: auto; height: 60px; margin: 16px 30px 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.look-v2 .tb-crumb { gap: 8px; font-size: 13.5px; color: var(--v2-muted); }
.look-v2 .tb-crumb i { font-size: 12px; color: var(--v2-faint); }
.look-v2 .tb-crumb strong { font-weight: 600; color: var(--v2-text); }
.look-v2 .tb-credits { gap: 8px; height: 42px; padding: 0 16px 0 12px; border: var(--v2-glass-border); border-radius: 999px; background: var(--v2-surface); color: var(--v2-muted); font-size: 13.5px; box-shadow: var(--v2-shadow-card); backdrop-filter: var(--v2-blur); }
.look-v2 .tb-credits i { font-size: 18px; color: var(--v2-amber-ink); }
.look-v2 .tb-credits b { font-weight: 700; color: var(--v2-text); }
.look-v2 a.tb-credits:hover { border-color: var(--v2-amber); text-decoration: none; }
.look-v2 .tb-icon { width: 42px; height: 42px; border: var(--v2-glass-border); border-radius: 50%; background: var(--v2-surface); color: var(--v2-text); font-size: 19px; box-shadow: var(--v2-shadow-card); backdrop-filter: var(--v2-blur); }
.look-v2 a.tb-icon:hover { border-color: var(--v2-amber); color: var(--v2-text); }
.look-v2 .tb-count { top: -3px; right: -3px; border-color: var(--v2-white); background: var(--v2-coral-ink); color: var(--v2-white); }
.look-v2 .tb-avatar { width: 42px; height: 42px; }
.look-v2 a.tb-avatar:hover { box-shadow: 0 0 0 3px rgba(240, 106, 72, 0.3); filter: none; }
.look-v2 .nav-toggle { border: var(--v2-glass-border); border-radius: 50%; background: var(--v2-surface); box-shadow: var(--v2-shadow-card); }
.look-v2 .nav-toggle .nav-toggle-bar { width: 18px; background: var(--v2-charcoal); }
.look-v2 .pp-content { max-width: 1320px; padding: 6px 30px 56px; }
.look-v2 .pp-main-credit { padding: 16px 30px 28px; }
.look-v2 .pp-credit { color: var(--v2-muted); }

@media (min-width: 768px) {
  .sidebar-collapsed .look-v2 .pp-sidebar { padding-inline: 10px; }
  /* In the folded rail a group title is a thin line between the icon groups */
  .sidebar-collapsed .look-v2 .nav-section, .sidebar-collapsed .look-v2 .nav-section:first-child { height: 1px; margin: 10px 12px; padding: 0; background: var(--v2-line); }
  .sidebar-collapsed .look-v2 .pp-sidebar .nav-item { padding-inline: 0; }
}
@media (max-width: 767.98px) {
  .look-v2 .pp-sidebar { top: 10px; bottom: 10px; left: 10px; height: auto; margin: 0; border-radius: 26px; background: var(--v2-white); }
  .look-v2 .pp-sidebar .sidebar-close { display: grid; }
  /* A phone keeps the menu button in reach: a solid full-width bar pinned at the top, with a hairline */
  .look-v2 .pp-topbar { position: sticky; top: 0; height: 56px; margin: 0; padding: 0 12px; background: var(--v2-page); }
  .look-v2 .pp-topbar::after { content: ""; position: absolute; inset: 100% 0 auto; height: 12px; background: linear-gradient(var(--v2-page), transparent); pointer-events: none; }
  .look-v2 .pp-topbar .tb-credits, .look-v2 .pp-topbar .tb-icon { box-shadow: none; }
  html:has(body.look-v2) { scroll-padding-top: 68px; }
  .look-v2 .tb-credits span { display: none; }
  .look-v2 .tb-credits { padding: 0 12px; }
  .look-v2 .pp-content { padding: 6px 16px 40px; }
  .look-v2 .pp-main-credit { padding: 16px; }
}

/* Buttons: a sun pill (.pri, .btn), a glass pill (.rs-btn, .btn.secondary), a quiet pill (.ghost, .subtle), and a round go button (.v2-go) */
.look-v2 .rs-btn, .look-v2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border: var(--v2-border); border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: var(--v2-text) !important; font: 600 14px/1.2 var(--v2-font); box-shadow: 0 1px 2px rgba(120, 80, 20, 0.06); text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.look-v2 .rs-btn:hover, .look-v2 .btn:hover { border-color: rgba(120, 90, 40, 0.3); background: var(--v2-white); text-decoration: none; }
.look-v2 .rs-btn i, .look-v2 .btn i { font-size: 17px; }
.look-v2 .rs-btn.pri, .look-v2 .btn { border-color: transparent; background: var(--v2-hero-fill); color: var(--v2-hero-ink) !important; box-shadow: 0 12px 26px -14px rgba(226, 69, 44, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.look-v2 .rs-btn.pri:hover, .look-v2 .btn:hover { border-color: transparent; background: var(--v2-hero-fill); box-shadow: 0 16px 30px -14px rgba(226, 69, 44, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); transform: translateY(-1px); }
.look-v2 .btn.secondary { border: var(--v2-border); background: rgba(255, 255, 255, 0.78); color: var(--v2-text) !important; box-shadow: 0 1px 2px rgba(120, 80, 20, 0.06); }
.look-v2 .btn.secondary:hover { background: var(--v2-white); transform: none; box-shadow: 0 1px 2px rgba(120, 80, 20, 0.06); }
.look-v2 .rs-btn.ghost, .look-v2 .btn.subtle { border-color: transparent; background: transparent; color: var(--v2-text) !important; box-shadow: none; }
.look-v2 .rs-btn.ghost:hover, .look-v2 .btn.subtle:hover { background: rgba(255, 255, 255, 0.7); transform: none; box-shadow: none; }
.look-v2 .btn.danger { border-color: transparent; background: var(--v2-coral-ink); color: var(--v2-white) !important; box-shadow: none; }
.look-v2 .btn.danger:hover { filter: brightness(0.94); box-shadow: none; transform: none; }
.look-v2 .rs-btn.sm, .look-v2 .btn.compact { min-height: 34px; padding: 0 14px; font-size: 13px; }
.look-v2 .btn.large { min-height: 50px; padding: 0 28px; font-size: 15px; }
.look-v2 .rs-btn[disabled], .look-v2 .btn:disabled, .look-v2 .btn[disabled], .look-v2 .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.v2-go { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: var(--v2-border); border-radius: 50%; background: rgba(255, 255, 255, 0.8); color: var(--v2-text); font-size: 17px; text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.look-v2 a.v2-go:hover { border-color: var(--v2-amber); background: var(--v2-white); color: var(--v2-amber-ink); text-decoration: none; }
.look-v2 .rs-link { color: var(--v2-text); }
.look-v2 .rs-link:hover { color: var(--v2-amber-ink); text-decoration: underline; text-underline-offset: 3px; }
.look-v2 .rs-icon-btn { border: var(--v2-border); border-radius: 50%; background: rgba(255, 255, 255, 0.8); color: var(--v2-muted); }
.look-v2 .rs-icon-btn:hover { border-color: var(--v2-coral-ink); background: var(--v2-coral-soft); color: var(--v2-coral-ink); }

/* Chips, pills, badges and zone badges */
.look-v2 .rs-chip { margin: 0 6px 6px 0; padding: 6px 12px; border-radius: 999px; background: var(--v2-badge-bg); color: var(--v2-badge-ink); font: 600 12.5px/1 var(--v2-font); }
.look-v2 .rs-chip.a { background: var(--v2-charcoal); color: var(--v2-on-dark); }
.look-v2 .rs-chip.sun { background: var(--v2-yellow-soft); color: var(--v2-yellow-ink); }
.look-v2 .badge, .look-v2 .rs-pill { padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--v2-font); }
.look-v2 .badge.gray, .look-v2 .badge { background: rgba(120, 90, 40, 0.08); color: var(--v2-charcoal-3); }
.look-v2 .badge.blue, .look-v2 .rs-pill.info { background: var(--v2-lav-soft); color: var(--v2-lav-ink); }
.look-v2 .badge.green, .look-v2 .rs-pill.live { background: var(--v2-mint-soft); color: var(--v2-mint-ink); }
.look-v2 .badge.orange, .look-v2 .rs-pill.susp { background: var(--v2-yellow-soft); color: var(--v2-yellow-ink); }
.look-v2 .badge.red, .look-v2 .rs-pill.dead { background: var(--v2-coral-soft); color: var(--v2-coral-ink); }
.look-v2 .rs-pill.veto { background: rgba(120, 90, 40, 0.08); color: var(--v2-muted); }
.look-v2 .rs-zone { padding: 4px 11px 4px 9px; font: 600 12.5px/1.2 var(--v2-font); box-shadow: none; }
.look-v2 .rs-zone::before { width: 8px; height: 8px; border-radius: 50%; box-shadow: none; }

/* Alerts and notes: a tinted glass strip with ink text. A thin border in the alert's own ink
   (currentColor) keeps it clear of the peach page, whose tint is close to the coral error fill. */
.look-v2 .alert { gap: 12px; padding: 13px 16px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 16px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, 0.72); color: var(--v2-text); box-shadow: var(--v2-shadow-card); animation: v2-alert-in 0.22s ease-out; }
.look-v2 .alert a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@keyframes v2-alert-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .look-v2 .alert { animation: none; } }
.look-v2 .alert::before { width: 20px; height: 20px; line-height: 20px; background: var(--v2-charcoal); color: var(--v2-white); }
.look-v2 .alert.error { background: var(--v2-coral-soft); color: var(--v2-coral-ink); }
.look-v2 .alert.error::before { background: var(--v2-coral-ink); }
.look-v2 .alert.success { background: var(--v2-mint-soft); color: var(--v2-mint-ink); }
.look-v2 .alert.success::before { background: var(--v2-mint-ink); }
.look-v2 .alert.info { background: var(--v2-lav-soft); color: var(--v2-lav-ink); }
.look-v2 .alert.info::before { background: var(--v2-lav-ink); }
.look-v2 .alert.warn { background: var(--v2-yellow-soft); color: var(--v2-yellow-ink); }
.look-v2 .alert.warn::before { background: var(--v2-yellow-ink); }
.look-v2 .rs-note { gap: 12px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--v2-well); color: var(--v2-charcoal-3); font-size: 13.5px; }
.look-v2 .rs-note.warn { background: var(--v2-yellow-soft); color: var(--v2-yellow-ink); }
.look-v2 .rs-note.sun { background: var(--v2-yellow-soft); color: var(--v2-text); }

/* Surfaces: frosted panels with a soft warm shadow */
.look-v2 .card, .look-v2 .rs-panel, .look-v2 .stat, .look-v2 .rs-kpi, .look-v2 .db-card {
  border: var(--v2-glass-border); border-radius: var(--v2-r-panel); background: var(--v2-surface); box-shadow: var(--v2-shadow-card); backdrop-filter: var(--v2-blur);
}
.look-v2 .rs-panel-h { padding: 20px 24px 14px; border-bottom: var(--v2-divider); border-radius: calc(var(--v2-r-panel) - 1px) calc(var(--v2-r-panel) - 1px) 0 0; background: none; }
.look-v2 .rs-panel-h h2, .look-v2 .db-card-h h2 { font: 600 17px/1.3 var(--v2-font); letter-spacing: -0.012em; }
.look-v2 .rs-panel-h p { color: var(--v2-muted); font-size: 13.5px; }
.look-v2 .rs-panel-b { padding: 20px 24px; }
.look-v2 .rs-kpi { padding: 20px 22px; }
.look-v2 .rs-kpi small, .look-v2 .stat .label { font: 500 13.5px/1.2 var(--v2-font); color: var(--v2-muted); }
.look-v2 .rs-kpi b, .look-v2 .stat .value { font: 400 34px/1.1 var(--v2-font-display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--v2-text); }
.look-v2 .rs-kpi.hl { background: var(--v2-surface-strong); }
.look-v2 .rs-kpi.hl b { color: var(--v2-amber-ink); }
.look-v2 .rs-rec { border: var(--v2-glass-border); border-radius: var(--v2-r-panel); background: var(--v2-surface); box-shadow: var(--v2-shadow-card); }
.look-v2 .rs-empty-ico { border-radius: 16px; background: var(--v2-grad-sun); color: var(--v2-white); box-shadow: var(--v2-glow); }
.look-v2 .rs-empty h3 { font: 600 19px/1.3 var(--v2-font); letter-spacing: -0.015em; }
.look-v2 .empty-state::before { border-color: var(--v2-line-2); }
.look-v2 .tr-ico { border-radius: 12px; background: var(--v2-badge-bg); color: var(--v2-badge-ink); }

/* Forms: soft white fields with a warm focus ring */
.look-v2 input[type=text], .look-v2 input[type=email], .look-v2 input[type=password], .look-v2 input[type=number], .look-v2 input[type=date], .look-v2 input[type=url], .look-v2 input[type=search], .look-v2 input[type=tel], .look-v2 select, .look-v2 textarea, .look-v2 .rs-input, .look-v2 .rs-select {
  height: 44px; padding: 0 14px; border: var(--v2-border); border-radius: 12px; background: rgba(255, 255, 255, 0.85); color: var(--v2-text); font: 500 14.5px var(--v2-font);
}
.look-v2 textarea, .look-v2 textarea.rs-input { height: auto; min-height: 96px; padding: 11px 14px; line-height: 1.5; }
.look-v2 input:hover, .look-v2 select:hover, .look-v2 textarea:hover, .look-v2 .rs-input:hover, .look-v2 .rs-select:hover { border-color: rgba(120, 90, 40, 0.28); }
.look-v2 input:focus, .look-v2 select:focus, .look-v2 textarea:focus, .look-v2 .rs-input:focus, .look-v2 .rs-select:focus { outline: none; border-color: var(--v2-amber); background: var(--v2-white); box-shadow: 0 0 0 4px rgba(240, 106, 72, 0.18); }
.look-v2 input:disabled, .look-v2 select:disabled, .look-v2 textarea:disabled { background: rgba(120, 90, 40, 0.05); color: var(--v2-muted); }
.look-v2 input[type=checkbox], .look-v2 input[type=radio], .look-v2 .rs-check input { accent-color: var(--v2-amber); }
.look-v2 label, .look-v2 .rs-field label, .look-v2 .rs-legend { font: 600 13.5px/1.3 var(--v2-font); color: var(--v2-text); }
.look-v2 .field-help { color: var(--v2-muted); font-size: 12.5px; }
.look-v2 .field-error { color: var(--v2-coral-ink); font-size: 12.5px; }

/* Tables: quiet header, roomy rows, a warm hover */
.look-v2 .rs-table th, .look-v2 .pp-table th, .look-v2 .table th { padding: 12px 14px; border-bottom: var(--v2-divider); background: transparent; color: var(--v2-muted); font: 600 12.5px/1.2 var(--v2-font); box-shadow: none; }
.look-v2 .rs-table td, .look-v2 .pp-table td, .look-v2 .table td { padding: 14px; border-bottom: var(--v2-divider); font-size: 14px; }
.look-v2 .rs-table tbody tr:hover td, .look-v2 .pp-table tbody tr:hover td, .look-v2 .table tbody tr:hover td { background: var(--v2-well); }
.look-v2 table.pp-table, .look-v2 table.table { background: transparent; }

/* A table's scroll box is the box of its screen-reader-only headers, so they never push a phone page sideways */
.look-v2 .rs-table-wrap, .look-v2 .table-scroll { position: relative; }

/* Pager */
.look-v2 .explorer-pager { border-top: var(--v2-divider); }
.look-v2 .pager-btn { min-width: 34px; min-height: 34px; padding: 0 11px; border: var(--v2-border); border-radius: 999px; background: rgba(255, 255, 255, 0.8); font: 600 13px/1 var(--v2-font); }
.look-v2 a.pager-btn:hover { border-color: var(--v2-amber); }
.look-v2 .pager-btn.is-current { border-color: transparent; background: var(--v2-grad-sun); color: var(--v2-white); }

/* Bars and meters: thin tracks, sun fills */
.look-v2 .rs-progress, .look-v2 .rs-bars .b i, .look-v2 .rs-meter i { background: var(--v2-track); }
.look-v2 .rs-progress i { background: var(--v2-grad-sun); }
.look-v2 .rs-bars .b i::after, .look-v2 .rs-meter i::after { background: var(--c, var(--v2-grad-sun)); }

/* Dialogs: the please-wait card and the DFY Vault */
.look-v2 .vault-dlg { border: var(--v2-glass-border); border-radius: 26px; box-shadow: var(--v2-shadow-pop); }

/* Phones: every small control gets a hit area of at least 44 by 44px, drawn by ::after so its look stays the same */
@media (max-width: 767.98px) {
  .look-v2 .rs-btn.sm, .look-v2 .btn.compact, .look-v2 a.rs-chip, .look-v2 button.rs-chip, .look-v2 .v2-go, .look-v2 .db-link, .look-v2 .pager-btn { position: relative; }
  .look-v2 .rs-btn.sm::after, .look-v2 .btn.compact::after, .look-v2 a.rs-chip::after, .look-v2 button.rs-chip::after, .look-v2 .v2-go::after, .look-v2 .db-link::after, .look-v2 .pager-btn::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .look-v2 *, .look-v2 *::before, .look-v2 *::after { transition: none !important; animation: none !important; }
}
