/* =====================================================================================================
   PolicyBook design system (cut 24)
   Identity: the agency's book of trust. Deep peacock for the brand, a saffron-gold seal for what matters most,
   and the fine guilloché engraving of a policy bond behind the two moments people see first (sign-in, Today).
   One family, Archivo: set wide and heavy for titles and money, at normal width for everything else.
   Every colour is a token; dark mode only redefines tokens.
   ===================================================================================================== */
@font-face { font-family: "Archivo PB"; src: url("/fonts/Archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Archivo PB"; src: url("/fonts/Archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* surfaces */
  --paper: #F1F5F5; --card: #FFFFFF; --raised: #FFFFFF; --sunk: #E8EEEE;
  /* text */
  --ink: #0E1C22; --ink-2: #33464D; --muted: #57686E;
  /* lines */
  --line: #DCE4E3; --line-2: #C3CFCE;
  /* brand: peacock, and its deep shade for the sidebar and the engraved band */
  --brand: #0B5566; --brand-hover: #08485A; --brand-deep: #07303B; --brand-bg: #E1EDEF; --brand-text: #0B5566; --brand-ink: #FFFFFF;
  /* the seal: saffron-gold, used sparingly for the one action that matters and for "you are here" */
  --seal: #E8A23A; --seal-ink: #2B1B00; --seal-text: #8A5300; --seal-bg: #FBEFD9;
  /* status */
  --good: #12764F; --good-bg: #E0F1E8; --warn: #8F5D00; --warn-bg: #FAEFD3; --bad: #B8322A; --bad-bg: #FBE3E0;
  /* sidebar */
  --side: #07303B; --side-ink: #E3EEF0; --side-mute: #93B4BB; --marigold: var(--seal);
  /* names kept for screens that set colours inline */
  --bg: var(--paper); --chip: var(--sunk); --chip-strong: #D3DCDC; --accent: var(--seal);
  /* type */
  --font: "Archivo PB", -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", sans-serif;
  --display: var(--font);
  /* shape and depth: large surfaces 16, controls 10, status tags 6, filters are pills */
  --radius: 16px; --r-ctl: 10px; --r-tag: 6px;
  --lift-1: 0 1px 2px rgba(7, 48, 59, .06);
  --lift-2: 0 12px 32px -8px rgba(7, 48, 59, .22), 0 2px 6px rgba(7, 48, 59, .08);
  --lift-3: 0 28px 70px -12px rgba(4, 24, 30, .42);
  --tab-h: 64px; --side-w: 264px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --guilloche: url("/icons/guilloche-waves.svg");
  --rosette: url("/icons/guilloche-rosette.svg");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #091316; --card: #0F1C20; --raised: #142529; --sunk: #172A2E; --ink: #E6EFF0; --ink-2: #C2D0D2; --muted: #93A7AC;
  --line: #1E3236; --line-2: #2B4348; --brand: #1B7587; --brand-hover: #1F8396; --brand-deep: #0B2C35; --brand-bg: #12343B; --brand-text: #7CC9D8;
  --seal: #F0AE4A; --seal-ink: #2B1B00; --seal-text: #F3C276; --seal-bg: #3A2B12;
  --good: #4CC28E; --good-bg: #12352A; --warn: #E7B04D; --warn-bg: #3A2D10; --bad: #F2796D; --bad-bg: #43201D;
  --side: #061A20; --side-ink: #DCE8EB; --side-mute: #7E9CA4; --chip-strong: #2C4146;
  --lift-1: 0 1px 2px rgba(0, 0, 0, .3); --lift-2: 0 14px 34px -8px rgba(0, 0, 0, .6); --lift-3: 0 28px 70px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #091316; --card: #0F1C20; --raised: #142529; --sunk: #172A2E; --ink: #E6EFF0; --ink-2: #C2D0D2; --muted: #93A7AC;
  --line: #1E3236; --line-2: #2B4348; --brand: #1B7587; --brand-hover: #1F8396; --brand-deep: #0B2C35; --brand-bg: #12343B; --brand-text: #7CC9D8;
  --seal: #F0AE4A; --seal-ink: #2B1B00; --seal-text: #F3C276; --seal-bg: #3A2B12;
  --good: #4CC28E; --good-bg: #12352A; --warn: #E7B04D; --warn-bg: #3A2D10; --bad: #F2796D; --bad-bg: #43201D;
  --side: #061A20; --side-ink: #DCE8EB; --side-mute: #7E9CA4; --chip-strong: #2C4146;
  --lift-1: 0 1px 2px rgba(0, 0, 0, .3); --lift-2: 0 14px 34px -8px rgba(0, 0, 0, .6); --lift-3: 0 28px 70px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
} }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* the space kept for the iPhone home indicator. Some iOS versions already end a home-screen app's page above the
   indicator; theme-boot.js measures that and sets --sab to 0 there, so the bottom menu never floats with a gap */
:root { --sab: env(safe-area-inset-bottom, 0px); }
html { background: var(--card); }
body { background: var(--paper); min-height: 100vh; min-height: 100dvh; }   /* (html above:) any strip iOS leaves below the page matches the bottom menu; the page itself always fills the screen */
body.noauth { background: var(--paper); }
html, body { margin: 0; padding: 0; color: var(--ink); font: 400 15px/1.45 var(--font); font-stretch: 100%; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { padding-bottom: calc(var(--tab-h) + var(--sab)); }
a { color: var(--brand-text); text-underline-offset: 2px; }
b, strong { font-weight: 620; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--seal) 40%, transparent); }
h1 { font-size: 24px; margin: 0; font-weight: 760; font-stretch: 115%; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 18px; margin: 0 0 8px; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 2px 0 10px; color: var(--ink); font-weight: 650; letter-spacing: -.005em; }
.card.tight > h3:first-child, .card > h3:first-child { padding-top: 4px; }

/* titles and money: wide and heavy */
.topbar h1, .big, .kpi .v, .stage .n, .side-brand, .drop .drop-t, .hero-figure, .login-brand { font-family: var(--display); font-weight: 760; font-stretch: 118%; letter-spacing: -.02em; }
.money, .mono, .kpi .v, .stage .n, .hero-figure, table.t td.num { font-variant-numeric: tabular-nums lining-nums; }

#app { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; overflow-wrap: break-word; }   /* a long name with no spaces wraps instead of widening the phone screen */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.topbar h1 { font-size: 23px; }
/* long titles wrap to two lines on a phone instead of being cut off */
.topbar h1.ellipsis { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; hyphens: manual; }
@media (max-width: 420px) { .topbar h1 { font-size: 21px; font-stretch: 104%; } }
/* Gujarati and Devanagari glyphs read smaller than Latin at the same size */
:root:lang(gu) body, :root:lang(hi) body { font-size: 15.5px; line-height: 1.5; }
:root:lang(gu) .small, :root:lang(hi) .small { font-size: 13.5px; }
.topbar .back { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: -6px; border-radius: 12px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.topbar .back:hover { background: var(--sunk); }
.topbar .grow { flex: 1; }
#offline { position: fixed; left: 0; right: 0; top: 0; z-index: 30; background: var(--seal); color: var(--seal-ink); font-size: 13px; font-weight: 650; text-align: center; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; }
#offline[hidden] { display: none; }
body.is-offline { padding-top: 30px; }
body.is-offline .topbar { top: 30px; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: none; border: 0; color: var(--ink); cursor: pointer; line-height: 1; }
.bell:hover { background: var(--sunk); }
.bell .badge { position: absolute; top: 4px; right: 3px; background: #C6362C; color: #fff; font-size: 10px; font-weight: 750; border-radius: 999px; min-width: 17px; height: 17px; padding: 0 4px; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--lift-1); }
.card.tight { padding: 10px 16px; }
.card[data-nav], .card.tight[data-nav] { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card[data-nav]:hover { border-color: var(--line-2); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.between > div:first-child { min-width: 0; }   /* a header block gives way (and wraps) instead of pushing the screen wider */
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .big { font-size: 22px; } .mono { font-variant-numeric: tabular-nums; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow > .ellipsis { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-weight: 620; font-size: 15px; letter-spacing: -.003em; text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); background: color-mix(in srgb, var(--brand) 4%, var(--card)); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(7, 48, 59, .25); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
/* the seal button: one per screen at most (start calls, the main next step) */
.btn.accent { background: var(--seal); border-color: color-mix(in srgb, var(--seal) 80%, #000); color: var(--seal-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(80, 50, 0, .25); }
.btn.accent:hover { background: color-mix(in srgb, var(--seal) 88%, #fff); }
.btn.good { background: #13764F; border-color: #13764F; color: #fff; }
.btn.good:hover { background: #0F6643; border-color: #0F6643; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand-text); }
.btn.ghost:hover { background: var(--brand-bg); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary, .btn.good, .chips .chip.on { color: #fff !important; }
.btn.accent, .fab { color: var(--seal-ink) !important; }
.icon-btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px; background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + 18px + var(--sab)); width: 58px; height: 58px; border-radius: 18px; background: var(--seal); border: 0; font-size: 30px; font-weight: 400; line-height: 1;
  box-shadow: 0 10px 24px -6px rgba(138, 83, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .4); z-index: 6; cursor: pointer; }

/* ---------- tags and filters: status tags are square-cornered, filters are pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-tag); background: var(--sunk); color: var(--ink-2); font-size: 12px; font-weight: 620; line-height: 1.5; white-space: nowrap; max-width: 100%; }
.chip.mono { white-space: normal; overflow-wrap: anywhere; }   /* a long policy number wraps inside its tag */
.chip.good { background: var(--good-bg); color: var(--good); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.brand { background: var(--brand-bg); color: var(--brand-text); }
.chip.on { background: var(--brand); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 560; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; }
.chips .chip:hover { border-color: var(--brand); }
.chips .chip.on { background: var(--brand-deep); border-color: var(--brand-deep); }

/* ---------- lists ---------- */
.list .item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.list .item:first-child { border-top: 0; }
.list .item b { font-weight: 620; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-bg); color: var(--brand-text); display: grid; place-items: center; font-weight: 720; font-stretch: 112%; font-size: 14px; letter-spacing: .01em; flex: none; }
.pi-name { display: block; }
.pi-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.pi-meta .chip { flex: none; }

/* ---------- figures ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px; box-shadow: var(--lift-1); }
.kpi .v { font-size: 23px; line-height: 1.15; }
.kpi .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .l .up, .kpi .l .down { font-size: 11px; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 560; color: var(--ink-2); margin: 12px 0 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--card); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { line-height: 1.45; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2357686E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
/* iPhone Safari draws date and time fields with their own size: wider than the column and taller than other fields.
   Same box as every other field, the value on the left. */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%;
  height: 48px; min-height: 48px; line-height: 22px; text-align: left; box-sizing: border-box; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value { text-align: left; min-height: 22px; margin: 0; }
input::-webkit-datetime-edit { padding: 0; line-height: 22px; }
input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--brand); margin: 2px 10px 0 0; box-shadow: none; }
label.item:has(> input[type="checkbox"]) { display: flex; gap: 0; align-items: flex-start; }
label.item:has(> input[type="checkbox"]) > .grow { min-width: 0; }
label.item:has(> input[type="checkbox"]) .small { word-break: break-word; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.grid2 > *, .grid2 input, .grid2 select, .grid2 textarea { min-width: 0; max-width: 100%; }
/* side-by-side fields line up by their boxes: a label that wraps to two lines pushes only its own text up */
.grid2 > div:has(> label + input, > label + select, > label + textarea), .grid2c > div:has(> label + input, > label + select, > label + textarea) { display: flex; flex-direction: column; justify-content: flex-end; }
.field { padding: 10px 0; border-top: 1px solid var(--line); }
.field:first-child { border-top: 0; }
.field .k { font-size: 12.5px; color: var(--muted); } .field .v { font-size: 15.5px; font-weight: 600; word-break: break-word; margin-top: 1px; }
.conf { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.conf.high { background: var(--good); } .conf.medium { background: var(--seal); } .conf.low { background: var(--bad); }
.progress { height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); transition: width .4s; }
.actions .btn:not(.primary):not(.good):not(.accent) { background: var(--sunk); border-color: transparent; }
.actions .btn:not(.primary):not(.good):not(.accent):hover { background: var(--brand-bg); color: var(--brand-text); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.search { position: relative; }
.search input { padding-left: 40px; }
.search:before { content: ""; position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357686E' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center; }
.evidence { font-size: 12px; color: var(--muted); background: var(--sunk); padding: 6px 8px; border-radius: 8px; margin-top: 4px; white-space: pre-wrap; }

/* ---------- tables and tabs ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabs2 { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--sunk); border-radius: 12px; }
.tabs2 button { flex: 1; min-height: 38px; background: none; border: 0; border-radius: 9px; padding: 8px 10px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs2 button.on { background: var(--card); color: var(--ink); box-shadow: var(--lift-1), 0 0 0 1px var(--line); }
.menu .item { padding: 14px 0; font-size: 15.5px; }
.menu .item .ic { width: 28px; text-align: center; color: var(--brand-text); display: grid; place-items: center; }

/* ---------- bottom tabs (phone) ---------- */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--sab)); padding: 0 6px var(--sab); display: flex; z-index: 7;
  background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
#tabs button { flex: 1; position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#tabs button .ic { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; font-size: 20px; line-height: 1; transition: background-color .2s var(--ease), color .2s; }
#tabs button.on { color: var(--brand-text); }
#tabs button.on .ic { background: var(--brand-bg); color: var(--brand-text); }
#tabs #tabs-search { display: none; }

/* ---------- overlays ---------- */
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 24px + var(--sab)); background: var(--brand-deep); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 20; max-width: 90vw; font-size: 14px; font-weight: 520; box-shadow: var(--lift-2); }
#toast.err { background: var(--bad); color: #fff; }
:root[data-theme="dark"] #toast:not(.err) { background: #E6EFF0; color: #0E1C22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #toast:not(.err) { background: #E6EFF0; color: #0E1C22; } }
#sheet { position: fixed; inset: 0; background: rgba(4, 22, 28, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 15; display: flex; align-items: flex-end; }
.sheet-card { background: var(--card); width: 100%; max-width: 720px; margin: 0 auto; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--sab)); max-height: 88vh; overflow: auto; box-shadow: var(--lift-3); }
.sheet-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 2px auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-head strong { font-size: 18px; font-weight: 720; font-stretch: 110%; letter-spacing: -.01em; }

/* ---------- the engraved band: sign-in and Today ---------- */
.engraved { position: relative; isolation: isolate; overflow: hidden; color: #fff; background-color: var(--brand-deep);
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(232, 162, 58, .16), transparent 55%), linear-gradient(160deg, #0A4250 0%, var(--brand-deep) 62%); }
.engraved::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--guilloche) repeat-x 0 70% / 360px 160px; opacity: .11; }
.engraved::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -170px; top: -190px; background: var(--rosette) no-repeat center / contain; opacity: .09; }
:root[data-theme="dark"] .engraved { background-image: radial-gradient(120% 90% at 100% 0%, rgba(240, 174, 74, .12), transparent 55%), linear-gradient(160deg, #0E3B46 0%, #0A2830 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .engraved { background-image: radial-gradient(120% 90% at 100% 0%, rgba(240, 174, 74, .12), transparent 55%), linear-gradient(160deg, #0E3B46 0%, #0A2830 70%); } }

/* Today hero */
.hero { margin: 4px 0 14px; padding: 18px 18px 16px; border-radius: 20px; box-shadow: var(--lift-2); }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hero-date { font-size: 13px; color: rgba(255, 255, 255, .72); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero .greet { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.hero .greet b { color: #fff; font-weight: 650; }
.hero-figure { font-size: 38px; line-height: 1.05; margin: 14px 0 2px; color: #fff; }
.hero-label { font-size: 13px; color: rgba(255, 255, 255, .72); }
.hero-note { margin-top: 10px; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 3px rgba(232, 162, 58, .25); flex: none; }
.hero-note.calm::before { background: #6FD3A6; box-shadow: 0 0 0 3px rgba(111, 211, 166, .2); }
.hero .kpis { grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero .kpi { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 10px; color: #fff; }
.hero .kpi + .kpi { border-left: 1px solid rgba(255, 255, 255, .14); }
.hero .kpi:first-child { padding-left: 0; }
.hero .kpi .v { font-size: 22px; color: #fff; }
.hero .kpi .l { color: rgba(255, 255, 255, .72); }
.hero .kpi.alert .v { color: #FFC56B; }
.hero .kpi[data-nav] { cursor: pointer; }
.hero + .btn.accent, .hero ~ .btn.accent.block { margin-top: 0 !important; }
.greet { font-size: 15px; margin: 0 0 8px; }

/* sign-in */
body.noauth { padding-bottom: 0; background: var(--paper); }
.login { max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-band { margin: 0 -16px; min-height: 52vh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(36px + env(safe-area-inset-top)) 24px 76px; }
.login-mark { width: 60px; height: 60px; border-radius: 16px; background: var(--brand-deep) url("/icons/icon.svg") center / cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 26px -8px rgba(0, 0, 0, .5); }
.login-brand { font-size: 32px; margin: 18px 0 6px; color: #fff; }
.login-tag { font-size: 15px; color: rgba(255, 255, 255, .78); max-width: 30ch; }
.login > .card { margin: -48px 0 0; padding: 20px; border-radius: 20px; box-shadow: var(--lift-2); position: relative; z-index: 1; }
.login > .card label:first-child { margin-top: 0; }
.login-foot { margin-top: auto; padding: 18px 0 calc(18px + var(--sab)); }
.login-trust { font-size: 13px; color: var(--muted); text-align: center; margin: 18px 8px 14px; text-wrap: balance; }
.login-trust svg { color: var(--good); vertical-align: -3px; margin-right: 6px; }
.login .lang { display: flex; justify-content: center; gap: 6px; }
.login .lang .chip { cursor: pointer; padding: 7px 14px; border-radius: 999px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.login .lang .chip.on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-deep) url("/icons/icon.svg") center / cover; color: transparent; font-size: 0; }

/* ---------- side menu (drawer on a phone, fixed on a computer) ---------- */
#side { position: fixed; z-index: 12; top: 0; bottom: 0; left: 0; width: var(--side-w); background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 12px calc(10px + var(--sab)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.side-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 4px 10px 16px; }
.side-head::before { grid-row: 1 / span 2; content: ""; width: 38px; height: 38px; border-radius: 11px; background: url("/icons/icon.svg") center / cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.side-brand { font-size: 19px; color: #fff; line-height: 1.1; }
.side-agency { font-size: 12.5px; color: var(--side-mute); margin-top: 1px; grid-column: 2; }
.side-brand { grid-column: 2; }
.side-search { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: var(--side-mute); font-size: 14px; cursor: text; text-align: left; }
.side-search:hover { border-color: rgba(255, 255, 255, .28); color: var(--side-ink); }
.side-search span { flex: 1; }
.side-search kbd { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--side-mute); }
.side-group { padding: 6px 0; }
.side-group + .side-group { border-top: 1px solid rgba(255, 255, 255, .08); }
.side-title { font-size: 12px; font-weight: 600; color: var(--side-mute); padding: 10px 12px 4px; }
.side-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-size: 14.5px; line-height: 1.25; }
.side-item svg { flex: none; opacity: .75; }
.side-item:hover { background: rgba(255, 255, 255, .07); }
.side-item.on { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 620; }
.side-item.on svg { opacity: 1; color: var(--seal); }
.side-item.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--seal); }
.side-lock { font-size: 11px; font-weight: 620; color: var(--seal); border: 1px solid rgba(232, 162, 58, .45); border-radius: 999px; padding: 0 6px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--side-ink); text-decoration: none; min-width: 0; }
.side-user .grow { display: flex; flex-direction: column; min-width: 0; }
.side-user .avatar { width: 34px; height: 34px; font-size: 13px; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 10px; }
.side-user .muted { color: var(--side-mute); }
#side :focus-visible { outline-color: var(--seal); }
#side-scrim { position: fixed; inset: 0; z-index: 11; background: rgba(4, 22, 28, .5); }
@media (max-width: 899px) {
  #side { width: min(86vw, 320px); transform: translateX(-102%); transition: transform .24s var(--ease); box-shadow: var(--lift-3); }
  body.drawer-open #side { transform: none; }
  body.drawer-open { overflow: hidden; }
}

/* ---------- upload ---------- */
.drop { border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, var(--line-2)); border-radius: 18px; background: color-mix(in srgb, var(--brand) 3%, var(--card)); padding: 26px 16px; text-align: center; transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--card)); }
.drop .drop-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--brand-deep) var(--guilloche) repeat-x 0 60% / 180px 80px; box-shadow: var(--lift-2); }
.drop .drop-t { font-size: 19px; }
.drop .drop-s { font-size: 13.5px; color: var(--muted); margin: 6px auto 16px; max-width: 46ch; }
.drop .actions { max-width: 460px; margin: 0 auto; grid-template-columns: 1fr 1fr; }
.u-extra { margin-top: 12px; }
.u-extra summary { cursor: pointer; font-weight: 600; color: var(--brand-text); }
.bell svg, .searchbar svg, .pal-in svg { flex: none; color: var(--muted); vertical-align: middle; }
.profile-nudge { cursor: pointer; border-color: color-mix(in srgb, var(--seal) 55%, var(--line)); background: var(--seal-bg); }
.profile-nudge .pn-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--seal); color: var(--seal-ink); flex: none; }
.profile-nudge .muted { color: var(--ink-2); }

/* search entry on Today */
.searchbar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 14px; margin: 2px 0 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font-size: 15px; text-align: left; cursor: text; box-shadow: var(--lift-1); transition: border-color .15s, box-shadow .15s; }
.searchbar:hover { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.searchbar span.grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- charts (web/js/charts.js) ---------- */
.grid2c { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .grid2c { grid-template-columns: 1fr 1fr; gap: 0 12px; } }
.hbars { display: grid; gap: 10px; }
.hbars > *, .hb, .hb-l { min-width: 0; }
.hb-l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hb-l .ellipsis { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.hb-f { height: 100%; border-radius: 999px; transition: width .5s var(--ease); }
.hb-s { margin-top: 2px; }
.up { color: var(--good); font-weight: 620; } .down { color: var(--bad); font-weight: 620; }
.donut { display: flex; align-items: center; gap: 16px; }
.legend { display: grid; gap: 5px; font-size: 13px; min-width: 0; flex: 1; }
.legend.row { display: flex; }
.lg { display: flex; align-items: center; gap: 6px; min-width: 0; } .lg i { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; } .lg b { margin-left: auto; }
.legend.row .lg b { margin-left: 4px; }
.sharebar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--sunk); margin: 6px 0 8px; } .sharebar i { display: block; height: 100%; }
.columns text { font-family: inherit; }
.ygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ym { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; cursor: pointer; } .ym.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.ym-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ym-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ym-g i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--sunk); }
.ym-g i.pad { background: transparent; }
.ym-g i.l1 { background: #9FD3E2; } .ym-g i.l2 { background: #2A7D93; } .ym-g i.l3 { background: var(--seal); }
.ym-g i.done { background: var(--good); } .ym-g i.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.stage-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; } .stage-row::-webkit-scrollbar { display: none; }
.stage { flex: none; min-width: 96px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; } .stage.on { border-color: var(--brand); background: var(--brand-bg); }
.stage .n { font-size: 19px; } .stage .k { font-size: 11.5px; color: var(--muted); }
.quiz-opt { display: block; width: 100%; text-align: left; margin: 6px 0; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 15px; cursor: pointer; }
.quiz-opt.right { border-color: var(--good); background: var(--good-bg); color: var(--good); } .quiz-opt.wrong { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.timer { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin: 8px 0 12px; } .timer i { display: block; height: 100%; background: var(--seal); transition: width 1s linear; }
.week { display: flex; gap: 6px; } .week i { flex: 1; height: 26px; border-radius: 8px; background: var(--sunk); display: grid; place-items: center; font-size: 10px; color: var(--muted); font-style: normal; } .week i.ok { background: var(--good); color: #fff; } .week i.no { background: var(--bad); color: #fff; }
.finding { border-left: 3px solid var(--brand); padding: 10px 12px; border-radius: 4px 10px 10px 4px; background: var(--sunk); margin: 8px 0; } .finding.growth { border-color: var(--good); } .finding.risk { border-color: var(--bad); } .finding.concentration { border-color: var(--seal); } .finding.action { border-color: var(--seal); } .finding.money { border-color: #7B6CF0; }
.finding .k { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.lgd { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.cmp { overflow-x: auto; } .cmp table { border-collapse: collapse; width: 100%; font-size: 13px; } .cmp th, .cmp td { padding: 8px 9px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; } .cmp th { font-size: 13.5px; } .cmp th.on, .cmp td.on { background: var(--brand-bg); } .cmp td:first-child { color: var(--muted); min-width: 160px; } .cmp td.muted { color: var(--muted); }
.meter { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--good); }
.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--sunk); } .split i { display: block; height: 100%; }
@media (min-width: 900px) { .ygrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) { .ygrid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- interaction layer (ux.js): palette, skeletons, transitions, pull-to-refresh ---------- */
kbd { font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--card); color: var(--muted); }
#palette { position: fixed; inset: 0; z-index: 60; background: rgba(4, 22, 28, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: calc(10vh + env(safe-area-inset-top)) 12px 12px; animation: fadeIn .14s ease-out; }
.pal-card { width: 100%; max-width: 640px; background: var(--card); border-radius: 18px; box-shadow: var(--lift-3); overflow: hidden; animation: popIn .18s var(--ease); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.pal-in input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 0; min-height: 0; box-shadow: none; }
#pal-list { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; }
.pal-group { font-size: 12px; font-weight: 650; color: var(--muted); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 11px; cursor: pointer; }
.pal-item.on { background: var(--brand-bg); }
.pal-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); color: var(--brand-text); flex: 0 0 32px; }
.pal-item.on .pal-ic { background: var(--brand); color: #fff; }
.pal-status, .pal-understood { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.pal-understood { padding: 8px 12px 0; font-size: 12px; }
.pal-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .pal-foot { display: none; } #palette { padding-top: calc(8px + env(safe-area-inset-top)); } .pal-in kbd { display: none; } .searchbar kbd { display: none; } }
body.pal-open { overflow: hidden; }
.skel { padding-top: calc(16px + env(safe-area-inset-top)); }
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--sunk) 0%, color-mix(in srgb, var(--sunk) 50%, var(--card)) 50%, var(--sunk) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk-title { height: 26px; width: 42%; margin-bottom: 16px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.sk-tile { height: 64px; }
.sk-line { height: 52px; margin-bottom: 10px; }
@media (max-width: 600px) { .sk-row { grid-template-columns: repeat(2, 1fr); } }
/* one orchestrated entrance per screen: the content settles in together */
#app.enter > * { animation: riseIn .24s var(--ease) both; }
#ptr { position: fixed; top: calc(env(safe-area-inset-top)); left: 50%; margin-left: -20px; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: var(--lift-2); z-index: 40; opacity: 0; transform: translateY(-50px); display: grid; place-items: center; transition: opacity .15s; pointer-events: none; }
#ptr span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); transition: transform .2s; }
#ptr.ready span { transform: rotate(180deg); border-top-color: var(--good); }
#ptr.spin span { animation: spin .7s linear infinite; }
.btn, .chip, .item, #tabs button { transition: transform .08s ease, background-color .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn:active, .chip:active, #tabs button:active, .fab:active { transform: scale(.97); }
.list .item:active { background: var(--sunk); }
@media (hover: hover) and (min-width: 900px) {
  .list .item:hover { background: var(--sunk); }
  .card.tight:has(.item[data-nav]):hover { box-shadow: var(--lift-2); }
}
:focus-visible { outline: 2.5px solid color-mix(in srgb, var(--brand) 70%, var(--seal)); outline-offset: 2px; border-radius: 8px; }
.shortcuts .row { padding: 8px 0; border-bottom: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetUp { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
#sheet:not([hidden]) .sheet-card { animation: sheetUp .24s var(--ease); }
#toast:not([hidden]) { animation: popIn .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- computer: fixed sidebar, wide two-column screens, centred sheets ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 24px; }
  #tabs { display: none !important; }
  #side-scrim { display: none !important; }
  #app { margin-left: var(--side-w); max-width: none; padding: 8px 36px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-content: start; }
  #app > * { grid-column: 1 / -1; min-width: 0; }
  #app > .card:has(.field):not(:has(.list)):not(:has(.grid2)):not(:has(table)):not(:has(svg)) { grid-column: auto; }
  #app[data-view="today"] > .card.tight:has(h3) { grid-column: auto; }
  #app[data-view="more"] > .card.tight.menu { max-width: 720px; }
  body.noauth #app { margin-left: 0; display: block; padding: 0; }
  .topbar { margin: 0 -36px; padding: 24px 36px 14px; }
  .topbar h1 { font-size: 28px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 26px 28px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; align-items: end; }
  .hero > .hero-top, .hero > .hero-figure, .hero > .hero-label, .hero > .hero-note { grid-column: 1; }
  .hero > .kpis { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin: 0; padding: 0 0 4px; border-top: 0; }
  .hero-figure { font-size: 46px; }
  .hero + .btn.accent.block { width: auto; justify-self: start; padding: 10px 28px; }
  .hero .kpi .v { font-size: 28px; }
  .fab { right: 36px; bottom: 36px; }
  #sheet { align-items: center; justify-content: center; }
  .sheet-card { width: 580px; border-radius: 20px; max-height: 86vh; padding-top: 16px; }
  .sheet-card::before { display: none; }
  #toast { bottom: 32px; }
  .list .item { padding: 12px 8px; margin: 0 -8px; border-radius: 10px; }
  #app > .chips { overflow: visible; flex-wrap: wrap; }
  .actions { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); }
  .actions .btn { white-space: nowrap; padding-left: 18px; padding-right: 18px; }
  .drop { padding: 40px 24px; }
  /* single forms read better at a comfortable width than stretched across a wide screen */
  #app[data-view$="-detail"] > .card:has(> .grid2), #app[data-view$="-detail"] > .btn.block:last-child { max-width: 920px; }
  /* sign-in on a computer: the engraved band fills the left half */
  body.noauth #app { max-width: none; }
  .login { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .login-band { flex: 1 1 50%; margin: 0; min-height: 100vh; padding: 12vh 7vw; display: flex; flex-direction: column; justify-content: center; }
  .login-brand { font-size: 52px; }
  .login-tag { font-size: 18px; }
  .login > .card { flex: 0 0 440px; align-self: center; margin: 0 7vw; }
  .login-foot { position: fixed; right: 0; bottom: 0; width: calc(440px + 14vw); padding-bottom: 24px; }
}
@media (min-width: 1400px) { #app { padding: 8px 56px 56px; max-width: 1340px; margin-left: calc(var(--side-w) + max(0px, (100vw - var(--side-w) - 1340px) / 2)); } .topbar { margin: 0 -56px; padding-left: 56px; padding-right: 56px; } }

/* ---------- print ---------- */
#print-area { display: none; }
@media print {
  body { background: #fff; padding: 0; } #app, #tabs, #toast, #sheet, .fab, #side { display: none !important; }
  #print-area { display: block; font: 12px/1.4 Georgia, serif; color: #000; }
  .doc-head { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
  table.rpt { width: 100%; border-collapse: collapse; } table.rpt th, table.rpt td { border: 1px solid #000; padding: 4px 6px; font-size: 11px; } table.rpt th { background: #E9E5DB; }
  @page { size: A4 portrait; margin: 12mm; }
}

/* cover check rows: the advice keeps its full width on a phone; the have / need figures sit underneath */
.cc-row { flex-wrap: wrap; }
.cc-fig { text-align: right; min-width: 110px; }
@media (max-width: 560px) { .cc-row > .grow { flex-basis: 100%; } .cc-fig { text-align: left; min-width: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } }
/* claim clocks: the rule text keeps the width; the status chip goes on its own line under it (it can be a sentence) */
.clock-row { margin: 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.clock-row .chip { white-space: normal; text-align: left; }
/* a screen title is never cut to "Commissi…": when it and its buttons do not fit on one line, the buttons move to a
   second line under the title */
.topbar { flex-wrap: wrap; row-gap: 8px; }
.topbar h1.grow { flex: 1 0 auto; max-width: 100%; min-width: 0; }
.tb-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: nowrap; }

/* festival ribbon on the login screen, and the festival card on Today */
.fest-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 auto; max-width: 420px; padding: 12px 16px; position: relative; z-index: 1;
  border-radius: 16px; background: linear-gradient(120deg, #3A1A00 0%, #7C3A0A 55%, #B45309 100%); color: #FFF7ED; box-shadow: 0 10px 28px -10px rgba(124,58,10,.6);
  border: 1px solid rgba(232,162,58,.5); }
.fest-banner .fest-art { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.08); }
.fest-banner .fest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fest-banner b { font-size: 17px; font-weight: 720; letter-spacing: -.01em; color: #FDE68A; }
.fest-banner span { font-size: 13.5px; line-height: 1.35; color: rgba(255,247,237,.88); }
.fest-banner.fest-colours { background: linear-gradient(120deg, #831843, #6D28D9 55%, #0E7490); }
.fest-banner.fest-star, .fest-banner.fest-sparkle { background: linear-gradient(120deg, #0B2C35, #134E4A 60%, #7C2D12); }
.fest-banner.fest-crescent { background: linear-gradient(120deg, #064E3B, #065F46 60%, #0B5566); }
.fest-banner.fest-flag { background: linear-gradient(120deg, #9A3412, #0B5566 60%, #166534); }
.fest-banner.fest-kite, .fest-banner.fest-harvest, .fest-banner.fest-pot { background: linear-gradient(120deg, #0B5566, #0E7490 55%, #B45309); }
@media (prefers-reduced-motion: no-preference) { .fest-banner .fest-art svg { animation: fest-glow 3.2s ease-in-out infinite; } }
@keyframes fest-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(253,230,138,0)); } 50% { filter: drop-shadow(0 0 8px rgba(253,230,138,.7)); } }
.fest-card { border-color: color-mix(in srgb, var(--seal) 55%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--seal) 14%, var(--card)), var(--card) 70%); }
.fest-art-sm { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-deep); }
.login-band .fest-banner + .login-mark { margin-top: 28px; }

/* festival sky: absolutely placed pieces animated with transform / opacity only (the cheapest work for a phone) */
.login-band { position: relative; }
.fest-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.login-band > :not(.fest-sky) { position: relative; z-index: 1; }
.fest-sky i { position: absolute; left: var(--x); top: var(--y); will-change: transform, opacity; animation-delay: var(--d); }
.sky-spark { width: 5px; height: 5px; border-radius: 50%; background: var(--c, #FDE68A); box-shadow: 0 0 10px 2px rgba(253,230,138,.55); animation: sky-rise var(--t) linear infinite; }
.sky-twinkle { width: 4px; height: 4px; border-radius: 50%; background: #FFF7D6; box-shadow: 0 0 8px 2px rgba(255,247,214,.6); animation: sky-twinkle calc(var(--t) / 2) ease-in-out infinite; }
.sky-puff { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 70%); opacity: .35; animation: sky-drift var(--t) ease-in-out infinite alternate; }
.sky-kite { animation: sky-sway var(--t) ease-in-out infinite alternate; transform-origin: 50% 120%; opacity: .9; }
.sky-petal { width: 9px; height: 13px; border-radius: 60% 0; background: var(--c, #F59E0B); opacity: .75; animation: sky-fall var(--t) linear infinite; }
.sky-petal:nth-child(3n) { --c: #F97316; } .sky-petal:nth-child(3n+1) { --c: #FACC15; } .sky-petal:nth-child(3n+2) { --c: #EF4444; }
@keyframes sky-rise { 0% { transform: translateY(40px) scale(var(--z)); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-220px) translateX(14px) scale(var(--z)); opacity: 0; } }
@keyframes sky-twinkle { 0%, 100% { transform: scale(var(--z)); opacity: .25; } 50% { transform: scale(calc(var(--z) * 1.6)); opacity: 1; } }
@keyframes sky-drift { from { transform: translate(-12px, 6px) scale(var(--z)); } to { transform: translate(18px, -14px) scale(calc(var(--z) * 1.25)); } }
@keyframes sky-sway { from { transform: rotate(-9deg) translateY(0) scale(var(--z)); } to { transform: rotate(9deg) translateY(-18px) scale(var(--z)); } }
@keyframes sky-fall { 0% { transform: translateY(-60px) rotate(0) scale(var(--z)); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(260px) rotate(320deg) scale(var(--z)); opacity: 0; } }
/* the tap: everything quickens and brightens for a moment, and the motif glows */
.fest-sky.burst i { animation-duration: calc(var(--t) / 4); filter: brightness(1.5); }
.fest-banner { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.fest-banner:focus-visible { outline: 3px solid #FDE68A; outline-offset: 3px; }
.fest-banner.lit .fest-art { animation: fest-pop .9s ease-out; }
@keyframes fest-pop { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253,230,138,.7); } 40% { transform: scale(1.18); box-shadow: 0 0 0 14px rgba(253,230,138,0); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fest-sky { display: none; } .fest-banner.lit .fest-art { animation: none; } }

/* ---- cut 48: gestures, Ask, timeline, live upload, direction-aware screens ---- */
/* screens: deeper slides in from the right, back from the left */
#app.enter.deeper > * { animation-name: slideFromR; }
#app.enter.shallower > * { animation-name: slideFromL; }
@keyframes slideFromR { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes slideFromL { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* swipe rows on Today */
.list.swipe .item { position: relative; touch-action: pan-y; overflow: hidden; -webkit-user-select: none; user-select: none; }
.list.swipe .item > :not(.sw-label) { position: relative; z-index: 1; will-change: transform; }
.sw-label { position: absolute; top: 0; bottom: 0; width: var(--swa, 0); display: none; align-items: center; overflow: hidden; white-space: nowrap; font-size: 13.5px; font-weight: 650; color: #fff; border-radius: 10px; z-index: 0; }
.sw-label-r { left: 0; padding-left: 14px; background: var(--good); }
.sw-label-l { right: 0; justify-content: flex-end; padding-right: 14px; background: var(--brand); }
.item.sw-r .sw-label-r, .item.sw-l .sw-label-l { display: flex; }
.item.sw-r:not(.sw-armed) .sw-label-r, .item.sw-l:not(.sw-armed) .sw-label-l { opacity: .55; }
.swipe-hint { margin: 2px 0 2px; }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }

/* press and hold */
.list .item[data-nav^="policies/"] { -webkit-touch-callout: none; }
.list .item.holding { background: var(--sunk); border-radius: 10px; transition: background .4s; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.qa svg { color: var(--brand-text); }
.qa:active { background: var(--sunk); }
.qa.off { opacity: .5; cursor: default; }

/* undo bar */
#undo { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 20px + var(--sab)); z-index: 21; display: flex; align-items: center; gap: 14px; max-width: min(92vw, 460px); padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--brand-deep); color: #fff; box-shadow: var(--lift-2); overflow: hidden; font-size: 14px; font-weight: 520; }
#undo .u-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#undo .u-b { flex: none; font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
#undo .u-clock { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.55); transform-origin: left; animation: undoClock linear forwards; }
#undo:not([hidden]) { animation: popIn .18s ease-out; }
@keyframes undoClock { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 900px) { #undo { bottom: 32px; } }

/* Ask */
.ask-row { display: flex; gap: 8px; align-items: stretch; margin: 2px 0 12px; }
.ask-row .searchbar { margin: 0; flex: 1; min-width: 0; }
.ask-open { display: inline-flex; align-items: center; gap: 6px; }
.ask-row .ask-open { flex: none; padding: 0 16px; border-radius: 14px; border: 1px solid var(--brand); background: var(--brand-bg); color: var(--brand-text); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.ask-app .aa-box { display: flex; gap: 8px; }
.ask-app .aa-box input { flex: 1; min-width: 0; font-size: 16px; }
.aa-mic { flex: none; width: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--brand-text); cursor: pointer; display: grid; place-items: center; }
.aa-mic.on { background: var(--bad); border-color: var(--bad); color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(184,50,42,.45); } 50% { box-shadow: 0 0 0 8px rgba(184,50,42,0); } }
.aa-ex { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.aa-ex .chip { cursor: pointer; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; padding: 5px 10px; }
.aa-und { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 4px; }
.aa-und .chip { background: var(--brand-bg); color: var(--brand-text); }
.aa-head { margin: 8px 0 2px; font-size: 16px; }
#aa-out { min-height: 60px; transition: opacity .15s; }
#aa-out.aa-busy { opacity: .55; }

/* customer timeline */
.tl { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; }
.tl li[data-nav] { cursor: pointer; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line-2); color: var(--muted); position: relative; z-index: 1; }
.tl-payment .tl-dot { border-color: var(--good); color: var(--good); }
.tl-claim .tl-dot { border-color: var(--warn); color: var(--warn); }
.tl-call .tl-dot, .tl-reminder .tl-dot, .tl-whatsapp .tl-dot { border-color: var(--brand); color: var(--brand-text); }
.tl-body b { font-weight: 620; }
.tl time { white-space: nowrap; padding-top: 3px; }

/* upload: watching a PDF being read */
.live-up { display: grid; gap: 12px; }
.lu { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--raised); }
.lu.fin { border-color: var(--good); }
.lu.bad { border-color: var(--bad); }
.lu-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lu-file { font-weight: 620; min-width: 0; }
.lu-steps { list-style: none; display: flex; gap: 4px; margin: 10px 0 2px; padding: 0; }
.lu-steps li { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--sunk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .3s, color .3s; }
.lu-steps li.ok { border-top-color: var(--good); color: var(--ink-2); }
.lu-steps li.now { border-top-color: var(--brand); color: var(--ink); font-weight: 600; animation: stepGlow 1.4s ease-in-out infinite; }
@keyframes stepGlow { 50% { border-top-color: var(--brand-bg); } }
.lu-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 14px; margin: 12px 0 8px; }
.lu-fields dt { font-size: 12px; color: var(--muted); }
.lu-fields dd { margin: 0; font-weight: 620; overflow-wrap: anywhere; }
.lu-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 420px) { .lu-steps li { font-size: 0; } .lu-steps li.now { font-size: 11.5px; flex: 3; } }
@media (prefers-reduced-motion: reduce) { .lu-steps li.now, .aa-mic.on { animation: none; } }
body:has(#undo:not([hidden])) .fab { visibility: hidden; pointer-events: none; }   /* the Undo bar sits where the + button is (visibility: the entry animation holds opacity) */

/* ---- cut 50: groups, sub-agents, WhatsApp send ---- */
.kpis.plain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis.plain .kpi { background: var(--sunk); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpis.plain .v { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.kpis.plain .l { font-size: 12px; color: var(--muted); }
.chip.link { cursor: pointer; border: 1px solid var(--line-2); background: var(--card); }
.chip.link:hover { border-color: var(--brand); }
.wa-send .wa-to { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 16px; }
.wa-send textarea { width: 100%; font-size: 14.5px; line-height: 1.45; }
.wa-send .actions { margin-top: 10px; }
.wa-send #ws-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.wa-send .wa-file { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raised); }
.wa-send .wa-file .pdf { flex: none; font-size: 11px; font-weight: 800; color: #fff; background: var(--bad); border-radius: 6px; padding: 6px 7px; }
.wa-send .wa-file .grow { display: flex; flex-direction: column; min-width: 0; }
.wa-send #ws-share { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: 15.5px; }
.wa-send .ws-link { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.wa-send .ws-link summary { cursor: pointer; color: var(--brand-text); font-weight: 600; font-size: 14px; }

/* =====================================================================================================
   The look (cut 51): forest to peacock, lit with gold. This layer sits over the system above and redefines its
   tokens and components. Type is DM Sans (Gujarati and Hindi in Noto Sans). A band of the gradient runs across the
   top of every screen; the ground is warm stone; blocks are raised (light top edge, soft shadow); the gradient returns
   on the Today block, a policy head and the main buttons; gold marks figures, fine edges and anything that needs action.
   Dark mode redefines tokens only. Generated from the design rounds with duplicate and overridden rules removed.
   ===================================================================================================== */
@keyframes pb-shine {
  0% {
    background-position:
      -160%0,
      0 0;
  }
  to {
    background-position:
      260%0,
      0 0;
  }
}
@font-face {
  font-family: "DM Sans PB";
  src: url(/fonts/DMSans-latin.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  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: "DM Sans PB";
  src: url(/fonts/DMSans-latin-ext.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root,
:root[data-theme="dark"] {
  --seal: #ffc83a;
  --seal-ink: #15201b;
  --side-ink: #eef3ef;
}
:root {
  --paper: #ffffff;
  --card: #f1f4f2;
  --sunk: #e3e9e5;
  --ink: #15201b;
  --ink-2: #34423b;
  --muted: #56635c;
  --line: #dce3de;
  --line-2: #b9c4bd;
  --brand: #0f5b3e;
  --brand-hover: #0a4a32;
  --brand-deep: #15201b;
  --brand-bg: #ddefe5;
  --brand-text: #0f5b3e;
  --seal-text: #7a5200;
  --seal-bg: #fff0c2;
  --good: #0f6b45;
  --good-bg: #ddefe5;
  --warn-bg: #ffe9a8;
  --bad-bg: #ffdad4;
  --side: #15201b;
  --side-mute: #a9b8af;
  --chip-strong: #cbd4ce;
  --block-ink: #15201b;
  --block-mute: #2e3b35;
  --lob-motor: #bfd9ff;
  --lob-health: #ffc9ba;
  --lob-life: #dccbff;
  --attn: #ffc83a;
  --hero: #0f5b3e;
  --hero-2: #1c7350;
  --hero-mute: #cfe6da;
  --tabs-bg: #15201b;
  --tabs-ink: #cfe6da;
  --font: "DM Sans PB", -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", sans-serif;
  --display: "DM Sans PB", -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", sans-serif;
  --radius: 24px;
  --r-ctl: 16px;
  --r-tag: 10px;
  --lift-1: none;
  --lift-2: 0 14px 34px -12px rgba(21, 32, 27, 0.28);
  --lift-3: 0 28px 70px -12px rgba(21, 32, 27, 0.45);
  --tab-h: 84px;
}
:root[data-theme="dark"] {
  --paper: #0d1411;
  --card: #18221d;
  --raised: #1e2a24;
  --sunk: #243129;
  --field: #0d1411;
  --ink: #eef3ef;
  --ink-2: #c9d4cd;
  --line: #26332c;
  --line-2: #3a4a41;
  --brand: #1c7350;
  --brand-hover: #218660;
  --brand-deep: #2a3a32;
  --brand-bg: #16382a;
  --brand-text: #7fd4a8;
  --seal-text: #ffd76a;
  --seal-bg: #3b2f0c;
  --good: #5fcb98;
  --good-bg: #16382a;
  --warn: #ffd76a;
  --warn-bg: #3b2f0c;
  --bad: #ff8a80;
  --bad-bg: #4a1f1b;
  --side: #0a0f0d;
  --side-mute: #9dada3;
  --chip-strong: #34443b;
  --tabs-bg: #1e2a24;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1411;
    --card: #18221d;
    --raised: #1e2a24;
    --sunk: #243129;
    --field: #0d1411;
    --ink: #eef3ef;
    --ink-2: #c9d4cd;
    --muted: #9dada3;
    --line: #26332c;
    --line-2: #3a4a41;
    --brand: #1c7350;
    --brand-hover: #218660;
    --brand-deep: #2a3a32;
    --brand-bg: #16382a;
    --brand-text: #7fd4a8;
    --seal: #ffc83a;
    --seal-ink: #15201b;
    --seal-text: #ffd76a;
    --seal-bg: #3b2f0c;
    --good: #5fcb98;
    --good-bg: #16382a;
    --warn: #ffd76a;
    --warn-bg: #3b2f0c;
    --bad: #ff8a80;
    --bad-bg: #4a1f1b;
    --side: #0a0f0d;
    --side-ink: #eef3ef;
    --side-mute: #9dada3;
    --chip-strong: #34443b;
    --tabs-bg: #1e2a24;
    --lift-1: none;
    --lift-2: 0 14px 34px -8px rgba(0, 0, 0, 0.6);
    --lift-3: 0 28px 70px -12px rgba(0, 0, 0, 0.7);
  }
}
html {
  background: var(--paper);
  background: var(--card);
}
.big,
.drop .drop-t,
.hero-figure,
.kpi .v,
.login-brand,
.sheet-head strong,
.side-brand,
.stage .n,
h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 100%;
}
@media (max-width: 420px) {
  .topbar h1 {
    font-size: 26px;
    font-stretch: 100%;
  }
}
h2,
h3 {
  font-weight: 700;
  font-size: 18px;
}
h3 {
  font-size: 15.5px;
}
:root:lang(gu) .topbar h1,
:root:lang(hi) .topbar h1 {
  font-weight: 700;
}
.card {
  border: 0;
  box-shadow: none;
}
.card .card,
.sheet-card,
.sheet-card .card .card {
  background: var(--field);
}
.kpi {
  border: 0;
  box-shadow: none;
}
.kpis > .kpi:nth-child(4n + 1) {
  background: var(--lob-motor);
}
.kpis > .kpi:nth-child(4n + 2) {
  background: var(--attn);
}
.kpis > .kpi:nth-child(4n + 3) {
  background: var(--lob-health);
}
.kpis > .kpi:nth-child(4n) {
  background: var(--lob-life);
}
.kpis > .kpi .up {
  color: #0b5234;
}
.kpis > .kpi .down {
  color: #8c1d18;
}
.avatar {
  background: var(--lob-life);
}
.profile-nudge {
  background: var(--seal-bg);
}
.btn {
  background: var(--field);
  font-weight: 600;
}
.btn:hover {
  background: var(--card);
}
.btn.accent,
.btn.primary {
  box-shadow: none;
}
.btn.accent {
  border-color: var(--seal);
}
.btn.accent:hover {
  background: color-mix(in srgb, var(--seal) 86%, #fff);
}
.btn.good,
.btn.good:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.btn.ghost {
  border-color: transparent;
  background: 0 0;
}
.btn.small {
  min-height: 38px;
}
.actions .btn.wide {
  grid-column: 1/-1;
}
.fab {
  box-shadow: var(--lift-2);
}
.topbar .back {
  background: var(--card);
  width: 44px;
  height: 44px;
  margin-left: 0;
}
.chip {
  padding: 3px 9px;
  font-weight: 600;
}
.chips .chip {
  border: 0;
  background: var(--card);
  font-weight: 600;
}
.chips .chip.on {
  background: var(--brand-deep);
}
.chip.link {
  cursor: pointer;
}
input,
select,
textarea {
  background-color: var(--field);
  border-width: 1px;
  box-shadow: inset 0 1px 2px rgba(12, 23, 48, 0.07);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: #b98f45;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.3);
}
#toast,
#undo {
  border-radius: 18px;
}
.tabs2 button.on {
  background: var(--field);
  box-shadow: none;
}
.searchbar {
  border: 0;
  background: var(--card);
}
.ask-row .ask-open {
  border: 0;
  background: var(--seal);
}
.drop .drop-ic,
.side-item.on svg {
  color: var(--seal-ink);
}
.drop {
  border: 2px dashed var(--ink);
  background: var(--field);
}
.drop .drop-ic {
  background: var(--seal);
  box-shadow: none;
}
.engraved {
  background-color: var(--hero) !important;
  background-image: none !important;
}
.engraved::after,
.engraved::before,
.side-item.on::before {
  display: none;
}
.hero {
  margin: 4px 0 10px;
  background: var(--hero);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.hero .greet {
  font-weight: 600;
  color: #fff;
}
.hero-amt span,
.hero-date,
.wd.zero {
  color: var(--hero-mute);
}
.hero-count,
.hero-main {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.hero-main {
  justify-content: space-between;
}
.hero-count {
  min-width: 0;
}
.hero-n {
  font-variant-numeric: lining-nums;
}
.hero-nl {
  line-height: 1.15;
  padding-bottom: 4px;
}
.hero-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex: none;
}
.hero-amt b {
  white-space: nowrap;
}
.hero-amt span {
  font-size: 13px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.wd {
  background: var(--hero-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.hero-amt b,
.wd b {
  font-weight: 700;
}
.wd span {
  font-size: 12px;
}
.wd.zero {
  background: 0 0;
  border: 1px solid var(--hero-2);
}
.wd.on {
  background: var(--attn);
  border: 0;
}
.wd.on span {
  font-weight: 600;
}
.hero .btn.hero-go {
  margin: 0 !important;
  border: 0;
  background: #fff;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.tile {
  text-align: left;
  border: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  min-width: 0;
}
.tile b {
  line-height: 1;
}
.tile b.sm {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tile span {
  line-height: 1.2;
}
.tile.inkb {
  background: #15201b;
  color: #fff;
}
.tile.sky {
  background: var(--lob-motor);
}
:root[data-theme="dark"] .tile.inkb {
  background: var(--sunk);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile.inkb {
    background: var(--sunk);
  }
}
.card:has(> .list > .item.pb) {
  background: 0 0;
  padding-left: 0;
  padding-right: 0;
}
.card:has(> .list > .item.pb) > .small,
.card:has(> .list > .item.pb) > .swipe-hint,
.card:has(> .list > .item.pb) > h3 {
  padding-left: 4px;
  padding-right: 4px;
}
.list .item.pb {
  border: 0;
  margin: 0 0 8px;
  background: var(--card);
  color: var(--ink);
  align-items: center;
}
.list .item.pb:last-child {
  margin-bottom: 0;
}
.item.pb.lob-motor {
  background: var(--lob-motor);
}
.item.pb.lob-health {
  background: var(--lob-health);
}
.item.pb.lob-life {
  background: var(--lob-life);
}
.item.pb.lob-health,
.item.pb.lob-life,
.item.pb.lob-motor {
  color: var(--block-ink);
}
.item.pb.lob-health .muted,
.item.pb.lob-life .muted,
.item.pb.lob-motor .muted,
.pol-head.lob-health .muted,
.pol-head.lob-life .muted,
.pol-head.lob-motor .muted {
  color: var(--block-mute);
}
.item.pb.lob-health .chip,
.item.pb.lob-life .chip,
.item.pb.lob-motor .chip {
  background: rgba(255, 255, 255, 0.62);
}
.item.pb .chip.warn {
  background: var(--attn);
}
.item.pb .chip.bad {
  background: #8c1d18;
  color: #fff;
}
.item.pb .chip.good {
  background: #0f5b3e;
  color: #fff;
}
.dtile {
  flex: none;
  background: #fff;
  color: #15201b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dtile span {
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}
.dtile.late {
  background: var(--attn);
}
.item.pb:not(.lob-motor):not(.lob-health):not(.lob-life) .dtile:not(.late) {
  background: var(--sunk);
}
.pol-head:not(.lob-motor):not(.lob-health):not(.lob-life) .chip:not(.inkc):not(.warn),
.pol-head:not(.lob-motor):not(.lob-health):not(.lob-life) .ph-due:not(.late) {
  background: var(--sunk);
  color: var(--ink);
}
.pb-amt {
  text-align: right;
  flex: none;
}
.pb-amt b {
  font-weight: 700;
}
.pb-amt .lobl {
  font-size: 12px;
  font-weight: 600;
}
.pol-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pol-head.lob-motor {
  background: var(--lob-motor);
}
.pol-head.lob-health {
  background: var(--lob-health);
}
.pol-head.lob-life {
  background: var(--lob-life);
}
.pol-head.lob-health,
.pol-head.lob-life,
.pol-head.lob-motor {
  color: var(--block-ink);
}
.pol-head .chip {
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
}
.pol-head .chip.inkc {
  background: #15201b;
  padding: 5px 12px;
}
.ph-due.late {
  color: var(--block-ink);
}
.ph-due.late,
.pol-head .chip.warn {
  background: var(--attn);
}
.ph-title {
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.ph-due {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  white-space: nowrap;
}
.ph-due b {
  font-weight: 800;
  line-height: 1;
}
.ph-amt {
  text-align: right;
}
.ph-amt .big {
  line-height: 1.1;
}
.side-item {
  border-radius: 14px;
}
.side-item.on {
  background: var(--seal);
  color: var(--seal-ink);
}
@media (max-width: 899px) {
  #tabs {
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--sab));
    height: 68px;
    padding: 0 4px;
    border: 0;
    border-radius: 26px;
    background: var(--tabs-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
  }
  #tabs button {
    color: var(--tabs-ink);
    font-size: 11.5px;
    gap: 1px;
  }
  #tabs button .ic {
    width: 44px;
    height: 28px;
    background: 0 0;
  }
  #tabs button.on {
    color: var(--seal);
  }
  #tabs button.on .ic {
    background: 0 0;
    color: var(--seal);
  }
  #tabs button[data-tab="upload"] .ic,
  #tabs button[data-tab="upload"].on .ic {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--seal);
    color: var(--seal-ink);
  }
  #tabs button[data-tab="upload"] > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .fab[data-nav="upload"] {
    display: none;
  }
}
.hero {
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 32px;
    align-items: end;
    padding: 26px 28px;
  }
  .hero > .hero-go,
  .hero > .hero-top {
    grid-column: 1/-1;
  }
  .hero > .hero-main {
    grid-column: 1;
  }
  .hero > .week {
    grid-column: 2;
  }
  .hero .btn.hero-go {
    width: auto;
    justify-self: start;
    padding: 10px 36px;
  }
  .wd {
    height: 64px;
  }
  .tile {
    min-height: 104px;
    padding: 16px;
  }
}
:root {
  --paper: #d3e9dc;
  --sunk: #e7f1eb;
  --line: #d5e2da;
  --line-2: #afc2b6;
  --muted: #4c5a52;
  --band: #15201b;
  --band-h: 132px;
}
:root[data-theme="dark"] {
  --paper: #0a1611;
  --card: #16241d;
  --raised: #1c2d25;
  --sunk: #223329;
  --field: #0a1611;
  --line: #24362c;
  --line-2: #3a4e43;
  --muted: #9dada3;
  --band: #1e2a24;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1611;
    --card: #16241d;
    --raised: #1c2d25;
    --sunk: #223329;
    --field: #0a1611;
    --line: #24362c;
    --line-2: #3a4e43;
    --muted: #9dada3;
    --band: #1e2a24;
  }
}
body:not(.noauth) {
  background: linear-gradient(var(--band) 0, var(--band) var(--band-h), var(--paper) var(--band-h)) no-repeat var(--paper);
}
body:not(.noauth) .topbar {
  background: var(--band);
  color: var(--band-ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(217, 182, 107, 0.3);
}
body:not(.noauth) .topbar .bell,
body:not(.noauth) .topbar .bell svg,
body:not(.noauth) .topbar h1,
body:not(.noauth) .topbar > .muted {
  color: var(--band-ink);
}
body:not(.noauth) .topbar .bell:hover {
  background: rgba(255, 255, 255, 0.14);
}
body:not(.noauth) .topbar .btn {
  border-color: transparent;
}
.topbar .back {
  background: #fff;
  color: #15201b;
}
.card .card,
.sheet-card .card .card {
  background: var(--sunk);
}
.hero {
  box-shadow: none;
}
:root,
:root[data-theme="dark"] {
  --band-2: #085140;
  --side-mute: #98a4b8;
}
:root {
  --grad: linear-gradient(135deg, #03261c 0%, #0a5f4c 55%, #0b7482 100%);
  --ground: linear-gradient(180deg, #eef1f5 0%, #eef1f5 100%);
  --band: #03261c;
  --band-ink: #ffffff;
  --band-h: 190px;
  --paper: #eef1f5;
  --card: #ffffff;
  --raised: #ffffff;
  --sunk: #f1f4f8;
  --field: #ffffff;
  --card-line: rgba(11, 27, 58, 0.09);
  --ink: #0e1726;
  --ink-2: #2b3648;
  --muted: #5b6779;
  --line: #e3e7ed;
  --line-2: #c3cad5;
  --brand-hover: #085141;
  --brand-deep: #03261c;
  --brand-bg: #edebe6;
  --brand-text: #0a5f4c;
  --brand-ink: #ffffff;
  --seal: #edebe6;
  --seal-ink: #03261c;
  --seal-text: #0a5f4c;
  --seal-bg: #f3f5f9;
  --good: #17764f;
  --good-bg: #e1f3ea;
  --warn: #7a5200;
  --warn-bg: #fff0c9;
  --bad: #b3261e;
  --bad-bg: #fde3e0;
  --side: #0e1726;
  --side-ink: #edf1f7;
  --chip-strong: #d5dbe5;
  --block-ink: var(--ink);
  --block-mute: var(--muted);
  --lob-motor: var(--card);
  --lob-health: var(--card);
  --lob-life: var(--card);
  --attn: #03261c;
  --hero: #085140;
  --hero-2: rgba(255, 255, 255, 0.15);
  --hero-mute: #cfcbc0;
  --tabs-bg: #03261c;
  --tabs-ink: #aebbd1;
  --lift-1: 0 1px 2px rgba(11, 27, 58, 0.06), 0 10px 26px -14px rgba(11, 27, 58, 0.28);
  --lift-2: 0 16px 36px -12px rgba(11, 27, 58, 0.38);
  --lift-3: 0 28px 70px -12px rgba(11, 27, 58, 0.5);
}
:root[data-theme="dark"] {
  --ground: linear-gradient(180deg, #0a0f1a 0%, #0d1422 100%);
  --paper: #0a0f1a;
  --card: #131b2b;
  --raised: #1a2437;
  --sunk: #212d43;
  --field: #0a0f1a;
  --card-line: rgba(255, 255, 255, 0.08);
  --ink: #edf1f7;
  --ink-2: #c8d0de;
  --muted: #98a4b8;
  --line: #222d42;
  --line-2: #3a4860;
  --brand: #3b82f6;
  --brand-hover: #5b97f8;
  --brand-deep: #243756;
  --brand-bg: #1a2942;
  --brand-text: #9dbbf0;
  --seal: #1f2c45;
  --seal-ink: #e2eaf7;
  --seal-text: #9dbbf0;
  --seal-bg: #1a2437;
  --good: #6fd3a6;
  --good-bg: #173a30;
  --warn: #f3c969;
  --warn-bg: #3a3013;
  --bad: #ff8f8f;
  --bad-bg: #4a1f2a;
  --side: #070b13;
  --chip-strong: #34435e;
  --attn: #3b82f6;
  --tabs-bg: #1a2437;
  --lift-2: 0 14px 34px -8px rgba(0, 0, 0, 0.6);
  --lift-3: 0 28px 70px -12px rgba(0, 0, 0, 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: linear-gradient(180deg, #0a0f1a 0%, #0d1422 100%);
    --band: #03261c;
    --band-2: #085140;
    --paper: #0a0f1a;
    --card: #131b2b;
    --raised: #1a2437;
    --sunk: #212d43;
    --field: #0a0f1a;
    --card-line: rgba(255, 255, 255, 0.08);
    --ink: #edf1f7;
    --ink-2: #c8d0de;
    --muted: #98a4b8;
    --line: #222d42;
    --line-2: #3a4860;
    --brand: #3b82f6;
    --brand-hover: #5b97f8;
    --brand-deep: #243756;
    --brand-bg: #1a2942;
    --brand-text: #9dbbf0;
    --seal: #1f2c45;
    --seal-ink: #e2eaf7;
    --seal-text: #9dbbf0;
    --seal-bg: #1a2437;
    --good: #6fd3a6;
    --good-bg: #173a30;
    --warn: #f3c969;
    --warn-bg: #3a3013;
    --bad: #ff8f8f;
    --bad-bg: #4a1f2a;
    --side: #070b13;
    --side-mute: #98a4b8;
    --chip-strong: #34435e;
    --attn: #3b82f6;
    --tabs-bg: #1a2437;
    --lift-1: none;
    --lift-2: 0 14px 34px -8px rgba(0, 0, 0, 0.6);
    --lift-3: 0 28px 70px -12px rgba(0, 0, 0, 0.7);
  }
}
body.noauth {
  background: var(--ground);
}
.card,
.chips .chip,
.kpi,
.list .item.pb,
.searchbar,
.tile {
  border: 1px solid var(--card-line);
}
.card:has(> .list > .item.pb) {
  border: 0;
}
.card .card,
.sheet-card .card {
  box-shadow: none;
}
.chips .chip.on {
  border-color: transparent;
}
.kpis:not(.hero .kpis) > .kpi {
  color: var(--ink);
  background: var(--card);
}
.kpis > .kpi .l {
  color: var(--muted);
}
.kpis:not(.hero .kpis) > .kpi .v {
  color: var(--brand-text);
}
.kpis > .kpi .up {
  color: var(--good);
}
.kpis > .kpi .down {
  color: var(--bad);
}
.avatar {
  background: var(--brand-bg);
  color: var(--brand-text);
}
.btn {
  border-color: var(--line-2);
}
.btn:hover {
  border-color: var(--brand);
}
.btn.accent,
.btn.primary,
.btn.primary:hover {
  border-color: transparent;
}
.btn.accent {
  background: var(--seal);
  color: var(--seal-ink);
}
.fab svg {
  color: #f6e3a8;
}
.ask-row .ask-open {
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--lift-1);
}
.ask-row .ask-open,
.ask-row .ask-open svg {
  color: var(--brand-text);
}
.drop {
  border-color: var(--brand);
}
.drop .drop-ic,
.hero {
  background: var(--grad);
}
.wd.zero {
  border-color: rgba(255, 255, 255, 0.26);
}
.tile.attn {
  background: var(--attn);
  color: #fff;
  border-color: transparent;
}
.tile.inkb,
.tile.sky {
  background: var(--card);
  color: var(--ink);
}
.item.pb.lob-health .chip,
.item.pb.lob-life .chip,
.item.pb.lob-motor .chip {
  background: var(--sunk);
  color: var(--ink);
}
.item.pb .chip.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.item.pb .chip.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.item.pb .chip.good {
  background: var(--good-bg);
  color: var(--good);
}
.dtile,
.item.pb:not(.lob-motor):not(.lob-health):not(.lob-life) .dtile:not(.late) {
  background: var(--brand-bg);
  color: var(--brand-text);
}
.dtile.late {
  background: var(--grad);
  color: #fff;
}
.pb-amt b {
  color: var(--ink);
}
.pol-head,
.pol-head.lob-health,
.pol-head.lob-life,
.pol-head.lob-motor {
  background: var(--grad);
  color: #fff;
  --ink: #ffffff;
  --muted: #cfcbc0;
}
.pol-head.lob-health,
.pol-head.lob-life,
.pol-head.lob-motor {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--lift-2);
}
.pol-head .muted,
.pol-head.lob-health .muted,
.pol-head.lob-life .muted,
.pol-head.lob-motor .muted {
  color: #cfcbc0;
}
.pol-head .chip,
.pol-head .ph-due,
.pol-head:not(.lob-motor):not(.lob-health):not(.lob-life) .chip:not(.inkc):not(.warn),
.pol-head:not(.lob-motor):not(.lob-health):not(.lob-life) .ph-due:not(.late) {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}
.pol-head .chip.inkc {
  background: rgba(7, 11, 19, 0.38);
  color: #fff;
}
.pol-head .chip.bad,
.pol-head .chip.warn,
.pol-head .ph-due.late {
  background: #fff;
  color: #03261c;
}
.pol-head .big,
.side-item.on svg {
  color: #fff;
}
.side-item.on {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
@media (max-width: 899px) {
  #tabs {
    background: linear-gradient(135deg, #03261c, #085140);
  }
  #tabs button.on,
  #tabs button.on .ic {
    color: #fff;
  }
  #tabs button[data-tab="upload"] .ic,
  #tabs button[data-tab="upload"].on .ic {
    background: #fff;
    color: #03261c;
  }
}
:root {
  --gold: #c6a15b;
  --gold-ink: #231a05;
  --attn: var(--gold);
  --radius: 16px;
  --r-ctl: 12px;
  --r-tag: 8px;
  --tab-h: 64px;
  --band-h: 168px;
  --grad: linear-gradient(135deg, #03261c 0%, #0a5f4c 52%, #0b7482 100%);
  --lift-1: 0 1px 2px rgba(11, 27, 58, 0.05), 0 6px 16px -10px rgba(11, 27, 58, 0.22);
}
:root[data-theme="dark"] {
  --lift-1: none;
  --attn: var(--gold);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lift-1: none;
    --attn: var(--gold);
  }
}
.topbar h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (max-width: 420px) {
  .topbar h1 {
    font-size: 20px;
  }
}
.big,
.kpi .v {
  font-size: 24px;
  font-weight: 700;
}
.kpi .v {
  font-size: 22px;
}
.card {
  border-radius: 16px;
}
.kpi {
  border-radius: 14px;
}
.avatar,
.bell,
.btn.small,
.icon-btn,
.topbar .back {
  border-radius: 10px;
}
.btn {
  border-radius: 12px;
  min-height: 46px;
  border-width: 1px;
}
.actions .btn {
  border-radius: 12px;
  min-height: 48px;
}
.actions .btn.wide {
  border-radius: 12px;
  min-height: 52px;
  font-size: 16px;
}
.chips .chip {
  padding: 8px 14px;
  border-radius: 10px;
}
.ask-row .ask-open,
.searchbar {
  border-radius: 12px;
  min-height: 48px;
}
.sheet-card {
  border-radius: 20px 20px 0 0;
}
.drop {
  border-radius: 16px;
  border-width: 1.5px;
}
.drop .drop-ic {
  border-radius: 14px;
}
.tabs2 {
  border-radius: 12px;
}
.tabs2 button {
  border-radius: 9px;
}
.fab {
  border-radius: 14px;
  bottom: calc(var(--tab-h) + 14px + var(--sab));
}
.login-band {
  border-radius: 0 0 24px 24px;
}
.login-brand {
  font-size: 34px;
  font-weight: 700;
}
.hero {
  border-radius: 18px;
  padding: 18px;
  gap: 14px;
  border: 1px solid rgba(198, 161, 91, 0.38);
  box-shadow: var(--lift-1);
}
.hero .greet {
  font-size: 15px;
}
.hero-n {
  font-family: var(--font);
  font-size: 64px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.hero-n.long {
  font-size: 48px;
}
.hero-nl,
.tile span {
  font-size: 15px;
  font-weight: 500;
}
.hero-amt b,
.wd b {
  font-family: var(--font);
  font-size: 20px;
}
.wd {
  height: 48px;
  border-radius: 10px;
}
.wd b {
  font-size: 16px;
}
.wd.on {
  background: var(--gold);
}
.hero .btn.hero-go {
  border-radius: 12px;
  min-height: 46px;
  font-size: 15px;
}
.tile {
  border-radius: 14px;
  min-height: 78px;
}
.tile b {
  font-size: 26px;
  font-weight: 700;
}
.tile b.sm {
  font-size: 17px;
}
.tile span {
  font-size: 13px;
  color: var(--muted);
}
.tile.attn {
  background: var(--card);
  border-color: var(--card-line);
}
.tile.attn,
.tile.attn b,
.tile.inkb b,
.tile.sky b {
  color: var(--ink);
}
.list .item.pb {
  border-radius: 14px;
  padding: 12px;
}
.dtile {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.dtile b,
.pb-amt b,
.tile b {
  font-family: var(--font);
}
.dtile b {
  font-size: 18px;
  font-weight: 700;
}
.dtile.late,
.pol-head .chip.bad,
.pol-head .chip.warn,
.pol-head .ph-due.late {
  background: var(--gold);
}
.pb-amt b {
  font-size: 15.5px;
}
.sw-label {
  border-radius: 14px;
}
.pol-head {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(198, 161, 91, 0.38);
  box-shadow: var(--lift-1);
}
.ph-due b,
.ph-title {
  font-family: var(--font);
}
.ph-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ph-due {
  border-radius: 10px;
  padding: 7px 12px;
}
.ph-due b {
  font-size: 20px;
}
.ph-amt .big {
  font-size: 24px;
}
.pol-head .chip.inkc {
  border-radius: 8px;
}
@media (max-width: 899px) {
  #tabs {
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--tab-h) + var(--sab));
    padding: 0 6px var(--sab);
    border-radius: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: none;
  }
  #tabs button {
    color: var(--muted);
    font-size: 11px;
  }
  #tabs button.on,
  #tabs button.on .ic {
    color: var(--brand-text);
  }
  #tabs button[data-tab="upload"] .ic,
  #tabs button[data-tab="upload"].on .ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--gold-ink);
  }
}
@media (min-width: 900px) {
  .wd {
    height: 54px;
  }
  .tile {
    min-height: 84px;
  }
}
:root {
  --gold-grad: linear-gradient(180deg, #f0d48a 0%, #d4ae62 55%, #b98f45 100%);
  --ground:
    radial-gradient(900px 420px at 100% 12%, rgba(198, 161, 91, 0.13), transparent 62%), radial-gradient(700px 420px at 0% 55%, rgba(198, 161, 91, 0.09), transparent 60%),
    linear-gradient(180deg, #eceae5 0%, #f2f0ec 100%);
  --paper: #eeece7;
  --ink: #101114;
  --ink-2: #33353b;
  --muted: #5e6068;
  --line: #e2e0da;
  --line-2: #c4c2bb;
  --sunk: #f2f0ec;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --lift-1: var(--edge), 0 1px 2px rgba(12, 23, 48, 0.06), 0 14px 28px -16px rgba(3, 38, 28, 0.38);
  --lift-2: 0 22px 40px -16px rgba(3, 38, 28, 0.55);
  --glow: radial-gradient(120% 95% at 88% -12%, rgba(255, 255, 255, 0.3), transparent 56%);
}
:root[data-theme="dark"] {
  --ground: radial-gradient(900px 420px at 100% 10%, rgba(198, 161, 91, 0.16), transparent 62%), linear-gradient(180deg, #070d1f 0%, #0a1226 100%);
  --paper: #070d1f;
  --card: #101a33;
  --raised: #16223f;
  --sunk: #1b2848;
  --field: #0a1226;
  --line: #1f2d4e;
  --line-2: #35466e;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --lift-1: var(--edge), 0 14px 28px -14px rgba(0, 0, 0, 0.7);
  --lift-2: 0 22px 40px -14px rgba(0, 0, 0, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: radial-gradient(900px 420px at 100% 10%, rgba(198, 161, 91, 0.16), transparent 62%), linear-gradient(180deg, #070d1f 0%, #0a1226 100%);
    --paper: #070d1f;
    --card: #101a33;
    --raised: #16223f;
    --sunk: #1b2848;
    --field: #0a1226;
    --line: #1f2d4e;
    --line-2: #35466e;
    --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --lift-1: var(--edge), 0 14px 28px -14px rgba(0, 0, 0, 0.7);
    --lift-2: 0 22px 40px -14px rgba(0, 0, 0, 0.8);
  }
}
body:not(.noauth) {
  background:
    linear-gradient(180deg, var(--band) 0, var(--band) calc(70px + env(safe-area-inset-top)), var(--band-2) var(--band-h)) top/100% var(--band-h) no-repeat,
    var(--ground);
  background-attachment: scroll, fixed;
}
.chips .chip {
  box-shadow: var(--lift-1);
}
.card .card,
.sheet-card .card {
  box-shadow: var(--edge);
}
.hero,
.pol-head,
.pol-head.lob-health,
.pol-head.lob-life,
.pol-head.lob-motor {
  background: var(--glow), var(--grad);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0-22px 34px -22px rgba(3, 12, 40, 0.55),
    var(--lift-2);
}
.wd {
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 10px -8px rgba(3, 12, 40, 0.6);
}
.wd.zero {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
.wd.on {
  background: var(--gold-grad);
  color: var(--gold-ink);
}
.dtile.late,
.pol-head .chip.bad,
.pol-head .chip.warn,
.pol-head .ph-due.late {
  background: var(--gold-grad);
  color: var(--gold-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 14px -8px rgba(60, 40, 0, 0.7);
}
.pol-head .chip,
.pol-head .ph-due {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hero .btn.hero-go {
  background: linear-gradient(180deg, #fff, #efe9da);
}
.dtile {
  background: linear-gradient(180deg, #f4f2ec, #e6e2d8);
  box-shadow:
    inset 0 1px 0#fff,
    0 4px 8px -6px rgba(3, 38, 28, 0.5);
}
:root[data-theme="dark"] .dtile:not(.late) {
  background: linear-gradient(180deg, #22325a, #1a2848);
  box-shadow: var(--edge);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dtile:not(.late) {
    background: linear-gradient(180deg, #22325a, #1a2848);
    box-shadow: var(--edge);
  }
}
.tile.attn {
  box-shadow:
    inset 0 3px 0#d4ae62,
    var(--lift-1);
}
.btn {
  box-shadow:
    var(--edge),
    0 1px 2px rgba(12, 23, 48, 0.1),
    0 6px 12px -10px rgba(3, 38, 28, 0.5);
  transition:
    transform 0.08s ease,
    box-shadow 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(12, 23, 48, 0.18);
}
.btn.ghost {
  box-shadow: none;
}
.btn.primary,
.btn.primary:hover,
.fab {
  background: var(--grad);
}
.btn.good,
.btn.good:hover {
  background: linear-gradient(180deg, #063d2f, #03261c);
}
.btn.accent {
  box-shadow:
    var(--edge),
    0 6px 12px -10px rgba(3, 38, 28, 0.5);
}
.actions .btn:not(.primary):not(.good):not(.accent):not(.danger) {
  background: linear-gradient(180deg, var(--card), var(--sunk));
  border-color: var(--line);
}
.chips .chip.on {
  background: linear-gradient(180deg, #063d2f, #03261c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 14px -10px rgba(3, 38, 28, 0.9);
}
.avatar {
  background: linear-gradient(180deg, #f4f2ec, #e6e2d8);
  box-shadow: inset 0 1px 0#fff;
}
:root[data-theme="dark"] .avatar {
  background: #1b2848;
  box-shadow: var(--edge);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar {
    background: #1b2848;
    box-shadow: var(--edge);
  }
}
.drop .drop-ic {
  background: var(--glow), var(--grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 20px -12px rgba(198, 161, 91, 0.9);
}
.sheet-card {
  box-shadow: 0-24px 60px -20px rgba(3, 12, 40, 0.55);
}
@media (max-width: 899px) {
  #tabs {
    box-shadow:
      var(--edge),
      0-14px 30px -20px rgba(3, 38, 28, 0.55);
  }
  #tabs button[data-tab="upload"] .ic,
  #tabs button[data-tab="upload"].on .ic {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    margin-top: -18px;
    background: var(--gold-grad);
    color: var(--gold-ink);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      inset 0-2px 0 rgba(90, 60, 0, 0.3),
      0 12px 18px -8px rgba(90, 60, 0, 0.6);
  }
}
:root {
  --grad: linear-gradient(135deg, #021c15 0%, #0a5f4c 55%, #0b7482 100%);
  --glow: radial-gradient(120% 95% at 88% -12%, rgba(240, 212, 138, 0.26), transparent 56%);
  --gold-text: linear-gradient(180deg, #f6e3a8 0%, #d9b66b 60%, #b98f45 100%);
  --brand: #0a5f4c;
  --brand-text: #7a5a1e;
  --brand-bg: #f3ebd8;
  --seal: #f3ebd8;
  --seal-ink: #4a3608;
  --seal-text: #7a5a1e;
  --seal-bg: #f8f3e6;
  --hero-mute: #d8d2c2;
  --card-line: rgba(3, 38, 28, 0.09);
}
:root[data-theme="dark"] {
  --ground: radial-gradient(900px 420px at 100% 8%, rgba(198, 161, 91, 0.12), transparent 62%), linear-gradient(180deg, #070708 0%, #0c0c0e 100%);
  --paper: #070708;
  --card: #141518;
  --raised: #1b1c20;
  --sunk: #222429;
  --field: #0b0b0d;
  --line: #26282e;
  --line-2: #3f424a;
  --ink: #f2f0ea;
  --ink-2: #d2cfc6;
  --muted: #a29f96;
  --band-2: #17181c;
  --brand: #c6a15b;
  --brand-hover: #d9b66b;
  --brand-deep: #074839;
  --brand-bg: #2a2416;
  --brand-text: #e3c987;
  --brand-ink: #1a1304;
  --seal: #2a2416;
  --seal-ink: #f0d48a;
  --seal-text: #e3c987;
  --seal-bg: #1e1a10;
  --chip-strong: #3a3c44;
  --side: #050506;
  --card-line: rgba(240, 212, 138, 0.1);
  --grad: linear-gradient(135deg, #17181c 0%, #26272d 55%, #0b7482 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: radial-gradient(900px 420px at 100% 8%, rgba(198, 161, 91, 0.12), transparent 62%), linear-gradient(180deg, #070708 0%, #0c0c0e 100%);
    --paper: #070708;
    --card: #141518;
    --raised: #1b1c20;
    --sunk: #222429;
    --field: #0b0b0d;
    --line: #26282e;
    --line-2: #3f424a;
    --ink: #f2f0ea;
    --ink-2: #d2cfc6;
    --muted: #a29f96;
    --band: #03261c;
    --band-2: #17181c;
    --brand: #c6a15b;
    --brand-hover: #d9b66b;
    --brand-deep: #074839;
    --brand-bg: #2a2416;
    --brand-text: #e3c987;
    --brand-ink: #1a1304;
    --seal: #2a2416;
    --seal-ink: #f0d48a;
    --seal-text: #e3c987;
    --seal-bg: #1e1a10;
    --chip-strong: #3a3c44;
    --side: #050506;
    --card-line: rgba(240, 212, 138, 0.1);
    --grad: linear-gradient(135deg, #17181c 0%, #26272d 55%, #0b7482 100%);
  }
}
.hero,
.pol-head,
.pol-head.lob-health,
.pol-head.lob-life,
.pol-head.lob-motor {
  box-shadow:
    inset 0 0 0 1px rgba(217, 182, 107, 0.42),
    inset 0 1px 0 rgba(255, 244, 214, 0.35),
    inset 0-22px 34px -22px rgba(0, 0, 0, 0.7),
    0 22px 40px -16px rgba(3, 38, 28, 0.6);
}
.hero-amt b,
.hero-n,
.pol-head .ph-amt .big {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d9b66b;
}
.hero-n {
  padding-right: 4px;
}
.btn.primary,
.btn.primary:hover,
.fab {
  color: #f6e3a8;
  box-shadow:
    inset 0 0 0 1px rgba(217, 182, 107, 0.45),
    inset 0 1px 0 rgba(255, 244, 214, 0.3),
    0 12px 20px -12px rgba(3, 38, 28, 0.9);
}
.btn.good,
.btn.good:hover,
.chips .chip.on {
  background: linear-gradient(180deg, #074839, #03261c);
}
.btn.good,
.btn.good:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0-2px 0 rgba(0, 0, 0, 0.4),
    0 10px 18px -12px rgba(3, 38, 28, 0.9);
}
.chips .chip.on {
  color: #f6e3a8;
}
.hero .btn.hero-go {
  background: var(--gold-grad);
  color: #231a05 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0-2px 0 rgba(90, 60, 0, 0.28),
    0 10px 18px -10px rgba(0, 0, 0, 0.8);
}
.wd.on {
  background: #fff;
  color: #101114;
  box-shadow:
    inset 0 1px 0#fff,
    0 8px 14px -8px rgba(0, 0, 0, 0.7);
}
.dtile:not(.late) {
  color: #4a3608;
}
.avatar {
  color: #4a3608;
}
.drop .drop-ic {
  color: #f6e3a8;
}
:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .dtile:not(.late) {
  background: #222429;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar,
  :root:not([data-theme="light"]) .dtile:not(.late) {
    background: #222429;
    color: #e3c987;
  }
}
@media (max-width: 899px) {
  #tabs button.on,
  #tabs button.on .ic {
    color: var(--seal-text);
  }
}
:root {
  --card-sheen: linear-gradient(180deg, #ffffff, #fbf8f1);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%);
  --ground:
    radial-gradient(900px 420px at 100% 10%, rgba(15, 143, 160, 0.12), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(198, 161, 91, 0.1), transparent 60%), linear-gradient(180deg, #eceae5 0%, #f2f0ec 100%);
  --lift-1: inset 0 1px 0 #fff, 0 2px 4px rgba(3, 38, 28, 0.07), 0 20px 34px -20px rgba(3, 38, 28, 0.55);
}
:root[data-theme="dark"] {
  --card-sheen: none;
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px -14px rgba(0, 0, 0, 0.75);
  --ground:
    radial-gradient(900px 420px at 100% 8%, rgba(15, 143, 160, 0.2), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(198, 161, 91, 0.07), transparent 60%), linear-gradient(180deg, #03110d 0%, #051a14 100%);
  --paper: #03110d;
  --card: #0b2019;
  --raised: #102a22;
  --sunk: #16352b;
  --field: #05160f;
  --line: #193a2f;
  --line-2: #2f5648;
  --ink: #eef5f1;
  --ink-2: #cbdad3;
  --muted: #9db3a9;
  --band: #03261c;
  --band-2: #0a4a3c;
  --brand-deep: #14463a;
  --side: #020c08;
  --chip-strong: #2a4d41;
  --grad: linear-gradient(135deg, #052e22 0%, #0a5f4c 55%, #0b7482 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --card-sheen: none;
    --lift-1: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px -14px rgba(0, 0, 0, 0.75);
    --ground:
      radial-gradient(900px 420px at 100% 8%, rgba(15, 143, 160, 0.2), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(198, 161, 91, 0.07), transparent 60%),
      linear-gradient(180deg, #03110d 0%, #051a14 100%);
    --paper: #03110d;
    --card: #0b2019;
    --raised: #102a22;
    --sunk: #16352b;
    --field: #05160f;
    --line: #193a2f;
    --line-2: #2f5648;
    --ink: #eef5f1;
    --ink-2: #cbdad3;
    --muted: #9db3a9;
    --band: #03261c;
    --band-2: #0a4a3c;
    --brand-deep: #14463a;
    --side: #020c08;
    --chip-strong: #2a4d41;
    --grad: linear-gradient(135deg, #052e22 0%, #0a5f4c 55%, #0b7482 100%);
  }
}
.hero,
.pol-head,
.pol-head.lob-health,
.pol-head.lob-life,
.pol-head.lob-motor {
  background: var(--sheen), var(--glow), var(--grad);
}
.engraved {
  background-image: var(--sheen), var(--glow), var(--grad) !important;
}
.card,
.kpi,
.list .item.pb,
.searchbar,
.tile {
  background-image: var(--card-sheen);
  box-shadow: var(--lift-1);
}
.card:has(> .list > .item.pb) {
  background-image: none;
  box-shadow: none;
}
.card .card,
.sheet-card .card {
  background-image: none;
}
.btn.primary,
.btn.primary:hover {
  background: var(--sheen), var(--grad);
}
.btn.good,
.btn.good:hover,
.chips .chip.on {
  background: linear-gradient(180deg, #0a5f4c, #03261c);
}
:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .dtile:not(.late) {
  background: #16352b;
  color: #e3c987;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar,
  :root:not([data-theme="light"]) .dtile:not(.late) {
    background: #16352b;
    color: #e3c987;
  }
}
:root {
  --side: #03201a;
  --side-ink: #eef5f1;
  --side-mute: #9db3a9;
  --font: "DM Sans PB", "Noto Gujarati PB", "Noto Devanagari PB", -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", sans-serif;
  --display: var(--font);
}
#side {
  background: linear-gradient(180deg, #03261c 0, #041a14 100%);
}
@font-face {
  font-family: "Noto Gujarati PB";
  src: url(/fonts/NotoSansGujarati.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0A80-0AFF, U+0951-0952, U+0964-0965, U+200C-200D, U+25CC, U+A830-A839;
}
@font-face {
  font-family: "Noto Devanagari PB";
  src: url(/fonts/NotoSansDevanagari.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .btn.hero-go {
    background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 62%), var(--gold-grad);
    background-size:
      60% 100%,
      100% 100%;
    background-repeat: no-repeat;
    background-position:
      -160%0,
      0 0;
    animation: pb-shine 1.6s 0.5s ease-out 1;
  }
}

/* ---- No white: a sage ground with ivory blocks. Light mode only; dark mode keeps its deep green. ---- */
:root { --paper: #DCE7DF; --card: #FAF6EA; --raised: #FFFCF3; --sunk: #ECE6D5; --field: #FFFDF6; --line: #DDD6C2; --line-2: #BCB49B; --muted: #585A52; --ink-2: #33352E;
  --card-sheen: linear-gradient(180deg, #FFFCF3 0%, #F4EEDD 100%); --brand-bg: #EFE4C6; --seal: #EFE4C6; --seal-bg: #F5EDD6; --chip-strong: #D3CBB2; --ivory: #FFFCF3;
  --ground: radial-gradient(900px 420px at 100% 10%, rgba(15, 143, 160, .14), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(198, 161, 91, .14), transparent 60%), linear-gradient(180deg, #D7E4DB 0%, #E3E8DA 100%);
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .85), 0 2px 4px rgba(3, 38, 28, .08), 0 20px 34px -20px rgba(3, 38, 28, .6); }
:root[data-theme="dark"] { --paper: #03110D; --card: #0B2019; --raised: #102A22; --sunk: #16352B; --field: #05160F; --line: #193A2F; --line-2: #2F5648; --muted: #9DB3A9; --ink-2: #CBDAD3;
  --card-sheen: none; --brand-bg: #2A2416; --seal: #2A2416; --seal-bg: #1E1A10; --chip-strong: #2A4D41; --ivory: #F4EEDD;
  --ground: radial-gradient(900px 420px at 100% 8%, rgba(15, 143, 160, .20), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(198, 161, 91, .07), transparent 60%), linear-gradient(180deg, #03110D 0%, #051A14 100%);
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 30px -14px rgba(0, 0, 0, .75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #03110D; --card: #0B2019; --raised: #102A22; --sunk: #16352B; --field: #05160F; --line: #193A2F; --line-2: #2F5648; --muted: #9DB3A9; --ink-2: #CBDAD3;
  --card-sheen: none; --brand-bg: #2A2416; --seal: #2A2416; --seal-bg: #1E1A10; --chip-strong: #2A4D41; --ivory: #F4EEDD;
  --ground: radial-gradient(900px 420px at 100% 8%, rgba(15, 143, 160, .20), transparent 62%), radial-gradient(700px 420px at 0% 60%, rgba(198, 161, 91, .07), transparent 60%), linear-gradient(180deg, #03110D 0%, #051A14 100%);
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 30px -14px rgba(0, 0, 0, .75); } }
.topbar .back, .wd.on { background: var(--ivory); }
.sheet-card { background: var(--card); }
.dtile:not(.late), .avatar { background: linear-gradient(180deg, #F3E9CC, #E4D6AE); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 8px -6px rgba(3, 38, 28, .5); }
:root[data-theme="dark"] .dtile:not(.late), :root[data-theme="dark"] .avatar { background: #16352B; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dtile:not(.late), :root:not([data-theme="light"]) .avatar { background: #16352B; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); } }
.actions .btn:not(.primary):not(.good):not(.accent):not(.danger) { background: linear-gradient(180deg, var(--raised), var(--sunk)); }
.btn { background-color: var(--raised); }

/* ---- Today: who this book belongs to. The agency's logo and the advisor's details, services and digital card. ---- */
.idcard { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 12px; padding: 16px; color: #FFFFFF; border-radius: 18px;
  background: var(--sheen), var(--glow), var(--grad); box-shadow: inset 0 0 0 1px rgba(217, 182, 107, .42), inset 0 1px 0 rgba(255, 244, 214, .35), inset 0 -22px 34px -22px rgba(0, 0, 0, .7), 0 22px 40px -16px rgba(3, 38, 28, .6); }
.id-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.id-logo { flex: none; width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: #FFFCF3; box-shadow: 0 0 0 2px #D4AE62, 0 10px 16px -8px rgba(0, 0, 0, .75); }
.id-logo img { max-width: 100%; max-height: 100%; display: block; }
.id-logo b { font-size: 24px; font-weight: 700; color: #03261C; letter-spacing: -.02em; }
.id-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.id-name { font-size: 20px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; background: linear-gradient(180deg, #F6E3A8 0%, #D9B66B 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #E3C987; }
.id-line { font-size: 13px; color: #D6E4DC; overflow-wrap: anywhere; }
.id-tag { font-size: 14.5px; font-weight: 500; color: #FFFFFF; overflow-wrap: anywhere; }
.id-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.id-chips span { padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: #FFFFFF; background: rgba(255, 255, 255, .15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.id-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.id-btn { flex: 1 1 140px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: #FFFFFF; background: rgba(255, 255, 255, .15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 14px -10px rgba(0, 0, 0, .8); }
.id-btn.gold { color: #231A05; background: var(--gold-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 60, 0, .28), 0 10px 18px -10px rgba(0, 0, 0, .8); }
.id-btn:active { transform: translateY(1px); }
@media (min-width: 900px) { .idcard { flex-direction: row; align-items: center; flex-wrap: wrap; } .id-main { flex: 1 1 300px; } .id-tag, .id-chips { flex: 1 1 100%; order: 3; } .id-acts { flex: 0 0 auto; } .id-btn { flex: 0 0 auto; padding: 0 16px; } }
/* the digital business card screen */
.bcard-wrap { margin: 4px 0 14px; border-radius: 16px; box-shadow: 0 26px 44px -20px rgba(3, 38, 28, .7); }
.bcard { display: block; width: 100%; height: auto; aspect-ratio: 1050 / 600; border-radius: 16px; background: var(--grad); }

/* ---- audit fixes (cut 51) ---- */
button.fab, .fab { color: #F6E3A8 !important; }             /* the + on the round add button was dark on dark */
.card.pol-head, .card.pol-head.lob-motor, .card.pol-head.lob-health, .card.pol-head.lob-life { background: var(--sheen), var(--glow), var(--grad); }   /* a policy of any other line (SME, travel) lost its dark head to the ivory card finish, leaving white text on ivory */
.fab[data-nav="upload"] { display: none; }             /* Upload is in the bottom menu on a phone and in the side menu on a computer; the round button sat on top of content */
.topbar h1.grow { flex: 1 1 140px; }                   /* a long title takes two lines beside its button instead of pushing the button onto a line of its own */
.topbar .tb-actions { flex: none; }
.idcard .id-main { align-items: flex-start; }
.idcard .id-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idcard .id-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .idcard { padding: 14px; } .id-logo { width: 56px; height: 56px; border-radius: 14px; } .id-name { font-size: 17px; } }
.actions .btn { white-space: normal; text-align: center; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 900px) { .actions { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .drop .actions { grid-template-columns: 1fr 1fr; } .actions .btn { white-space: normal; padding-left: 14px; padding-right: 14px; } }
.bcard-wrap { max-width: 560px; }
#cd-type, select { min-height: 44px; }
.card > .row > .grow > .big { overflow-wrap: break-word; }
@media (max-width: 380px) { .card > .row > .grow > .big { font-size: 20px; line-height: 1.2; } }
.aa-ex .chip { min-height: 40px; padding: 8px 14px; }   /* the example questions in Ask were 32px tall: too small to tap */

/* ---- computer layout, made symmetrical (cut 51 audit). Every screen is one centred column of the same width, so a
   narrow card never sits beside empty space above a full-width one, and a form's Save button lines up with its cards. ---- */
@media (min-width: 900px) {
  #app { --gut: max(36px, calc((100vw - var(--side-w) - 1120px) / 2)); grid-template-columns: minmax(0, 1fr); padding: 8px var(--gut) 40px; }
  body.noauth #app { padding: 0; }
  #app > .card:has(.field):not(:has(.list)):not(:has(.grid2)):not(:has(table)):not(:has(svg)), #app[data-view="today"] > .card.tight:has(h3) { grid-column: 1 / -1; }
  #app[data-view="more"] > .card.tight.menu, #app[data-view$="-detail"] > .card:has(> .grid2), #app[data-view$="-detail"] > .btn.block:last-child { max-width: none; }
  .topbar { margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); }
}
/* forms: a long text box takes the whole row, and a field left alone on a row stretches across it */
.grid2 > div:has(> textarea) { grid-column: 1 / -1; }
.grid2 > div:nth-child(odd):has(> label):has(+ div > textarea), .grid2 > div:last-child:nth-child(odd):has(> label) { grid-column: 1 / -1; }
@media (min-width: 1400px) { #app { max-width: none; margin-left: var(--side-w); padding: 8px var(--gut) 56px; } .topbar { margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); } }
@media (min-width: 900px) { .actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .drop .actions { grid-template-columns: 1fr 1fr; } }

/* ---- legibility on the gradient blocks (cut 51 audit): the teal end is deeper, and the small light text and gold figures on it are brighter ---- */
:root { --hero-mute: #E6F0EB; --gold-text: linear-gradient(180deg, #F8E9B8 0%, #E3C57E 100%); }
.pol-head .muted, .pol-head.lob-motor .muted, .pol-head.lob-health .muted, .pol-head.lob-life .muted, .hero-date, .hero-amt span, .idcard .id-line { color: #E6F0EB; }
.wd.zero { color: #E6F0EB; }
#cd-type { min-height: 44px !important; height: auto !important; }

/* =====================================================================================================
   Cut 52: less green, more richness. Green is now only the dark jewel on the band, the big blocks and the main
   button, and it is near-black emerald. The ground is warm champagne (no sage), blocks are warm white with a fine
   gold edge and a deeper shadow, and gold does more of the talking (edges, section marks, the current menu item).
   ===================================================================================================== */
:root {
  --paper: #EFE9DD; --card: #FFFDF8; --raised: #FFFFFF; --sunk: #F1EADB; --field: #FFFEFB; --ivory: #FFFDF8;
  --line: #E4DAC4; --line-2: #C9BC9C; --card-line: rgba(185, 143, 69, .32); --muted: #5C584C; --ink: #14130F; --ink-2: #353229;
  --card-sheen: linear-gradient(180deg, #FFFFFF 0%, #FAF5EA 100%);
  --ground: radial-gradient(900px 440px at 100% 6%, rgba(212, 174, 98, .26), transparent 60%), radial-gradient(760px 460px at 0% 62%, rgba(212, 174, 98, .14), transparent 60%), linear-gradient(180deg, #EDE6D7 0%, #F5F0E5 100%);
  --grad: linear-gradient(135deg, #010B08 0%, #052E25 46%, #0A5F58 100%); --band: #010F0C; --band-2: #052E25;
  --glow: radial-gradient(120% 95% at 88% -12%, rgba(240, 212, 138, .34), transparent 56%);
  --brand: #052E25; --brand-hover: #0A4A3C; --brand-deep: #010F0C; --brand-bg: #F1E6C8; --brand-text: #7A5A1E; --seal: #F1E6C8; --seal-bg: #F8F1DD; --chip-strong: #D8CDB0;
  --side: #010C09; --side-mute: #A9A690;
  --lift-1: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(60, 40, 0, .08), 0 20px 36px -20px rgba(40, 28, 0, .5);
  --lift-2: 0 26px 46px -18px rgba(1, 15, 12, .62);
}
:root[data-theme="dark"] {
  --paper: #080907; --card: #141612; --raised: #1A1D18; --sunk: #21251E; --field: #0C0D0B; --ivory: #F4EEDD; --line: #2A2E26; --line-2: #474C40; --card-line: rgba(217, 182, 107, .20); --muted: #A8A493; --ink: #F3F0E8; --ink-2: #D3CFC2;
  --card-sheen: none; --ground: radial-gradient(900px 440px at 100% 6%, rgba(212, 174, 98, .14), transparent 60%), linear-gradient(180deg, #070806 0%, #0C0D0A 100%);
  --grad: linear-gradient(135deg, #03130F 0%, #07382D 46%, #0B6A62 100%); --band: #030B09; --band-2: #06241D;
  --brand: #C6A15B; --brand-hover: #D9B66B; --brand-deep: #20241D; --brand-bg: #2A2416; --brand-text: #E3C987; --seal: #2A2416; --seal-bg: #1E1A10; --chip-strong: #3A3F34; --side: #030504; --side-mute: #A8A493;
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 32px -14px rgba(0, 0, 0, .8); --lift-2: 0 24px 44px -14px rgba(0, 0, 0, .85);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #080907; --card: #141612; --raised: #1A1D18; --sunk: #21251E; --field: #0C0D0B; --ivory: #F4EEDD; --line: #2A2E26; --line-2: #474C40; --card-line: rgba(217, 182, 107, .20); --muted: #A8A493; --ink: #F3F0E8; --ink-2: #D3CFC2;
  --card-sheen: none; --ground: radial-gradient(900px 440px at 100% 6%, rgba(212, 174, 98, .14), transparent 60%), linear-gradient(180deg, #070806 0%, #0C0D0A 100%);
  --grad: linear-gradient(135deg, #03130F 0%, #07382D 46%, #0B6A62 100%); --band: #030B09; --band-2: #06241D;
  --brand: #C6A15B; --brand-hover: #D9B66B; --brand-deep: #20241D; --brand-bg: #2A2416; --brand-text: #E3C987; --seal: #2A2416; --seal-bg: #1E1A10; --chip-strong: #3A3F34; --side: #030504; --side-mute: #A8A493;
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 32px -14px rgba(0, 0, 0, .8); --lift-2: 0 24px 44px -14px rgba(0, 0, 0, .85);
} }
.card, .kpi, .tile, .searchbar, .list .item.pb { box-shadow: var(--lift-1); }
.card:has(> .list > .item.pb) { box-shadow: none; }
/* a small gold mark under each section title */
.card > h3::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 6px; border-radius: 2px; background: var(--gold-grad); }
.pol-head > h3::after, .idcard h3::after { display: none; }
/* the main button: jewel ground, gold lettering and edge */
.btn.primary, .btn.primary:hover { color: #F6E3A8 !important; box-shadow: inset 0 0 0 1px rgba(217, 182, 107, .55), inset 0 1px 0 rgba(255, 244, 214, .30), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 14px 22px -12px rgba(1, 15, 12, .9); }
.btn.good, .btn.good:hover, .chips .chip.on { background: linear-gradient(180deg, #14201C 0%, #010B08 100%); color: #F6E3A8 !important; box-shadow: inset 0 0 0 1px rgba(217, 182, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 18px -12px rgba(1, 15, 12, .9); }
.btn.accent { background: var(--gold-grad); color: #231A05; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 60, 0, .26), 0 10px 18px -12px rgba(90, 60, 0, .7); }
.btn.accent:hover { background: var(--gold-grad); filter: brightness(1.04); }
.hero, .idcard, .card.pol-head, .card.pol-head.lob-motor, .card.pol-head.lob-health, .card.pol-head.lob-life { box-shadow: inset 0 0 0 1px rgba(217, 182, 107, .55), inset 0 1px 0 rgba(255, 244, 214, .38), inset 0 -24px 36px -22px rgba(0, 0, 0, .75), var(--lift-2); }
/* side menu and bottom menu */
#side { background: linear-gradient(180deg, #010F0C 0%, #010806 100%); box-shadow: inset -1px 0 0 rgba(217, 182, 107, .28); }
.side-item.on { background: var(--gold-grad); color: #231A05; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 14px -10px rgba(0, 0, 0, .8); }
.side-item.on svg { color: #231A05; }
body:not(.noauth) .topbar { border-bottom: 1px solid rgba(217, 182, 107, .45); }
@media (max-width: 899px) { #tabs { border-top: 1px solid var(--card-line); } #tabs button.on, #tabs button.on .ic { color: var(--seal-text); } }
.avatar, .dtile:not(.late) { background: linear-gradient(180deg, #F6ECCF, #E6D7AB); color: #4A3608; }
:root[data-theme="dark"] .dtile:not(.late), :root[data-theme="dark"] .avatar { background: #21251E; color: #E3C987; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dtile:not(.late), :root:not([data-theme="light"]) .avatar { background: #21251E; color: #E3C987; } }
.drop { border-color: #B98F45; }
.btn.accent, .btn.accent:hover { color: #231A05 !important; }
.topbar .tb-actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }   /* four buttons in a title bar wrap on the smallest phone instead of running off the edge */

/* =====================================================================================================
   Cut 53: peacock, parchment and antique gold. Presentation only: every rule below restyles markup the app
   already has. Deep peacock headers with a fine gold rule, a jade-to-champagne ground, parchment blocks, serif
   display titles, engraved arcs on the big panels. Forms and tables stay plain. Status colours are untouched.
   ===================================================================================================== */
:root {
  --peacock: #073D37; --gold-accent: #E7C67B; --serif: Georgia, 'Times New Roman', 'Noto Sans Gujarati', 'Noto Sans Devanagari', serif;
  --jade-ground: #D6E5DA; --champagne: #F1E2C3; --vellum: #F5EBD6;
  --paper: #E7E8D6; --card: #F2EAD8; --raised: #F7EED9; --field: #F9F2E2; --sunk: #DFE9DB; --ivory: #FFF8F0;
  --ink: #153933; --ink-2: #3E5148; --muted: #4D5E55; --line: #C1CBB7; --line-2: #A1B29E; --card-line: #C1CBB7;
  --brand: #116052; --brand-hover: #11463E; --brand-deep: #073D37; --brand-bg: #E2EEE6; --brand-text: #0B5749;
  --seal: #E7C67B; --seal-text: #6B4E18; --seal-ink: #2B250E; --seal-bg: #F6EBCA; --chip-strong: #C9D6C6;
  --band: #073D37; --band-2: #15564A; --side: #082F2C; --side-mute: #AFC7B9;
  --desk-ground: linear-gradient(118deg, var(--jade-ground), var(--paper) 53%, var(--champagne));
  --desk-panel: linear-gradient(116deg, var(--vellum), var(--card) 66%, var(--sunk));
  --foil-lines: repeating-radial-gradient(ellipse at 118% -32%, transparent 0 18px, rgb(230 202 135 / .12) 19px, transparent 20px 31px);
  --grad: linear-gradient(118deg, #063A34, #135346 62%, #326953);
  --ground: var(--desk-ground); --card-sheen: var(--desk-panel); --glow: linear-gradient(transparent, transparent); --sheen: linear-gradient(transparent, transparent);
  --gold-grad: linear-gradient(105deg, #F2DD9B, #D7AE56); --gold-text: linear-gradient(#F4E3B0, #DDBC71);
  --lift-1: 0 2px 6px rgb(22 38 64 / 5%); --lift-2: 0 6px 18px -8px rgb(7 61 55 / 35%);
}
:root[data-theme="dark"] {
  --jade-ground: #0C2924; --champagne: #292B20; --vellum: #1D352C;
  --paper: #0C201D; --card: #142D28; --raised: #1E3831; --field: #112621; --sunk: #1D382F; --ivory: #F4EEDD;
  --ink: #F4F2ED; --ink-2: #D1D9D4; --muted: #B3C5BC; --line: #324B42; --line-2: #576E62; --card-line: #324B42;
  --brand: #A4D9C5; --brand-hover: #BDE6D5; --brand-deep: #073D37; --brand-bg: #234A40; --brand-text: #B0DFCD;
  --seal-text: #F0D38D; --seal-bg: #413820; --chip-strong: #33503F; --band: #062E29; --band-2: #0F4439; --side: #071F1C; --side-mute: #AFC7B9;
  --grad: linear-gradient(118deg, #052B26, #0F4439 62%, #24523F);
  --lift-1: 0 2px 6px rgb(0 0 0 / 25%); --lift-2: 0 8px 20px -8px rgb(0 0 0 / 60%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --jade-ground: #0C2924; --champagne: #292B20; --vellum: #1D352C;
  --paper: #0C201D; --card: #142D28; --raised: #1E3831; --field: #112621; --sunk: #1D382F; --ivory: #F4EEDD;
  --ink: #F4F2ED; --ink-2: #D1D9D4; --muted: #B3C5BC; --line: #324B42; --line-2: #576E62; --card-line: #324B42;
  --brand: #A4D9C5; --brand-hover: #BDE6D5; --brand-deep: #073D37; --brand-bg: #234A40; --brand-text: #B0DFCD;
  --seal-text: #F0D38D; --seal-bg: #413820; --chip-strong: #33503F; --band: #062E29; --band-2: #0F4439; --side: #071F1C; --side-mute: #AFC7B9;
  --grad: linear-gradient(118deg, #052B26, #0F4439 62%, #24523F);
  --lift-1: 0 2px 6px rgb(0 0 0 / 25%); --lift-2: 0 8px 20px -8px rgb(0 0 0 / 60%);
} }

/* ground and header */
body:not(.noauth), body.noauth { background: var(--desk-ground); background-attachment: fixed; }
body:not(.noauth) .topbar { --band-ink: #FFF4D9; background: linear-gradient(110deg, #063C35, #15564A); border-bottom: 2px solid #AE9154; box-shadow: none; }
body:not(.noauth) .topbar h1 { font: 400 clamp(23px, 3vw, 34px)/1.14 var(--serif); letter-spacing: -.035em; color: #FFF4D9; }
body:not(.noauth) .topbar .back, #app .topbar .back { color: #EAD296; background: #245D50; border: 0; box-shadow: none; }
:focus-visible { outline-color: #A77D30; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .chip:focus-visible, .item:focus-visible, .tile:focus-visible { outline: 3px solid #A77D30; outline-offset: 2px; }

/* side menu and bottom menu */
#side { background: linear-gradient(168deg, #083F38, #0F493C 46%, #072C27); box-shadow: inset -1px 0 0 rgb(174 145 84 / .35); }
.side-brand, .login-brand { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.side-item.on { color: #FFFFFF; background: #1C554A; box-shadow: none; }
.side-item.on svg { color: var(--gold-accent); }
@media (max-width: 899px) { #tabs { background: var(--card); border-top: 1px solid var(--line-2); box-shadow: none; } #tabs button.on, #tabs button.on .ic { color: var(--seal-text); } }

/* blocks */
#app .card:not(.pol-head), .sheet-card, .searchbar, .kpi { background-color: var(--card); background-image: var(--desk-panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift-1); }
.card > h3::after { display: none; }
#app .card h3, .sheet-head strong { font: 400 23px/1.18 var(--serif); letter-spacing: -.03em; color: var(--ink); }
#app .card.tight { padding: clamp(13px, 1.5vw, 22px); }
#app .kpi .v { font-family: var(--serif); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }
#app table { font-variant-numeric: tabular-nums; }
#app th { background: var(--sunk); color: var(--ink-2); }
#app .avatar, .sheet-card .avatar { background: var(--brand-bg); color: var(--brand-text); box-shadow: none; }
body[data-room] .drop { background: var(--card); border: 1.5px dashed var(--line-2); border-radius: 12px; }
body[data-room] .drop .drop-ic { background: var(--brand-bg); color: var(--brand-text); box-shadow: none; }
#app .hb-t { background: var(--sunk); border-radius: 3px; }

/* the big panels: engraved arcs over deep peacock */
.hero, .idcard, #app .card.pol-head, #app .card.pol-head.lob-motor, #app .card.pol-head.lob-health, #app .card.pol-head.lob-life {
  background: var(--foil-lines), var(--grad); border: 0; border-radius: 14px; box-shadow: var(--lift-2); }
#app .card.pol-head, .idcard { border-top: 3px solid #BB934D; }
.hero .greet { font: 400 clamp(20px, 2.1vw, 30px)/1.12 var(--serif); letter-spacing: -.03em; }
.hero .hero-n { font-family: var(--serif); font-weight: 400; }
.hero .wd { border: 0; background: #FFFFFF0D; color: #EDF5E9; box-shadow: none; }
.hero .wd.on { background: #FFFFFF1C; color: var(--gold-accent); }
.hero .wd.on b, .hero .wd.on span { color: var(--gold-accent); -webkit-text-fill-color: currentColor; }
.hero .btn.hero-go, .hero .btn.hero-go:hover { background: linear-gradient(110deg, #ECD59A, #DDBA69); color: #2B250E !important; border: 0; border-radius: 7px; box-shadow: none; }
.tiles .tile { background: var(--desk-panel); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid #659181; border-radius: 8px; box-shadow: none; }
.tiles .tile.attn { border-left-color: #B25A3C; }
.tiles .tile.inkb { border-left-color: #A88340; }
.tiles .tile b { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; font-family: var(--serif); font-weight: 400; }
.tiles .tile span { color: var(--muted); }

/* rows */
#app .list .item.pb { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
#app .list .item.pb:first-child { border-top: 0; }
#app .card:has(> #p-list) { padding: 0; background: transparent; border: 0; box-shadow: none; }
#app #p-list .item.pb { background-color: var(--card); background-image: var(--desk-panel); border: 1px solid var(--line); border-inline-start: 3px solid #678E7F; border-radius: 8px; margin: 0 0 8px; }
#app .dtile:not(.late) { background: var(--brand-bg); color: var(--brand-text); box-shadow: none; }
#app .dtile.late { background: var(--bad-bg); color: var(--bad); box-shadow: none; }

/* controls */
#app .card input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), #app select, #app .card textarea, .sheet-card input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .sheet-card select, .sheet-card textarea, #app .search input {
  background: var(--field); color: var(--ink); border: 1px solid var(--line-2); border-radius: 7px; box-shadow: none; }
#app .search input::placeholder { color: var(--muted); }
#app .btn:not(.fab), .sheet-card .btn { border-radius: 7px; box-shadow: none; }
#app .btn:not(.primary):not(.good):not(.accent):not(.danger):not(.hero-go):not(.fab), .sheet-card .btn:not(.primary):not(.good):not(.accent):not(.danger) { background: var(--raised); color: var(--ink); border: 1px solid var(--line-2); }
.btn.primary, .btn.primary:hover { background: #0C5648; color: #FFFFFF !important; border-color: #0C5648; box-shadow: none; }
.btn.primary:hover { background: #11463E; }
.btn.good, .btn.good:hover { background: linear-gradient(180deg, #0F4A40, #063229); color: #FFFFFF !important; border-color: transparent; box-shadow: none; }
.btn.accent, .btn.accent:hover { background: var(--gold-grad); color: #2B250E !important; border-color: transparent; box-shadow: none; }
#app .chip.on, .sheet-card .chip.on, .chips .chip.on { background: var(--peacock); color: #FFFFFF !important; border-color: var(--peacock); box-shadow: none; }
#app .chips .chip:not(.on):not(.good):not(.warn):not(.bad) { background: var(--raised); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
#app .grid2 label, .sheet-card label { color: var(--ink-2); }
#app .card:has(> h3 + .grid2), #app .card:has(> .row + .grid2) { border-top: 2px solid #B28B42; }
#sheet .sheet-card { box-shadow: 0 -8px 40px #15233C26; }
#sheet .sheet-head { border-bottom: 1px solid var(--line); }
#sheet .sheet-head button { background: var(--sunk); border: 0; box-shadow: none; color: var(--ink); }
.fab, button.fab { background: var(--gold-grad); color: #2B250E !important; box-shadow: 0 6px 14px -6px rgb(60 40 0 / .55); }

/* sign-in */
.login-band.engraved { background: linear-gradient(0deg, #072F2BE8, #123E3344), url('/home/img/architecture.webp') center/cover, #073D37 !important; }
@media (min-width: 900px) { body:not(.noauth) #app { padding-top: 0; } }   /* the header sits flush with the top now that the ground behind it is light */
#app .topbar .btn:not(.primary):not(.accent):not(.good) { background: var(--raised); color: var(--ink); border: 1px solid #AE9154; }
#app .topbar .btn.primary, #app .topbar .btn.primary:hover { background: var(--gold-grad); color: #2B250E !important; border-color: transparent; }   /* the main button in a header is gold, so it shows on the peacock band */
/* Reports: the monthly pack is the cover panel */
#app .card:has(#mis-m) { background: var(--foil-lines), var(--grad); border: 0; border-radius: 12px; box-shadow: var(--lift-2); }
#app .card:has(#mis-m) > h3 { color: #F8F5ED; font-size: 28px; }
#app .card:has(#mis-m) .muted { color: #D7E3DB; }
#app .card:has(#mis-m) .btn.primary, #app .card:has(#mis-m) .btn.primary:hover { background: var(--gold-accent); color: #2B250E !important; border-color: transparent; }
#app .card:has(#mis-m) .btn:disabled { opacity: .68; }
