/* Control room (/admin/) and account pages (/account/). Taste Skill app sheet: framed-sheet, seed 1340527340,
   approved by Ethan through the photo manager mockup (design/mockups/photo-manager*.html, 2026-10-24).
   Face: the frame is tinted from Tucasa green; the brand green is the one hue (selected state, tab underline,
   switch). Primary button stays near-black, per the sheet's colour budget.
   Grid: sidebar 228 + sheet; the sheet is inset 8px from the window's right and bottom; content padding 24;
   one 24px gutter everywhere inside the sheet. */

:root {
  --ground: #EDF1EE;   /* the L-frame: one low-chroma step of the brand green */
  --surface: #FFFFFF;  /* the sheet */
  --raised: #F4F6F4;   /* wells, hover rows */
  --active: #DFE7E2;   /* active nav pill */
  --border: #E4E8E5;   /* sheet and card edges */
  --rule: #EEF1EF;     /* row rules */
  --control: #CDD3CF;  /* inputs, outlined buttons */
  --text: #1D2328;
  --muted: #4F555C;
  --faint: #656A6F;
  --accent: #1F5A3C;   /* Tucasa green: selected, focus, the one hue */
  --accent-tint: #E6F0EA;
  --primary: #1D2328; --primary-ink: #FFFFFF;
  --negative: #B3261E;
  --pill-positive-bg: #DCF3E4; --pill-positive-ink: #0B3B20;
  --pill-warning-bg: #FFF4D6; --pill-warning-ink: #7A4B00;
  --pill-neutral-bg: #ECEFED; --pill-neutral-ink: #3A3F44;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gap: 24px;
  --radius: 8px; --radius-control: 6px;
  --control-h: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font: 14px/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.m-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell: one tinted L (sidebar + top bar), white sheet ---------- */
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-rows: 48px 1fr; min-height: 100vh; }
.side { grid-row: 1 / 3; display: flex; flex-direction: column; padding: 12px 12px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; margin-bottom: 20px; }
.brand svg { width: 28px; height: 24px; flex: none; }
.brand b { display: block; font-size: 14px; font-weight: 600; line-height: 16px; }
.brand small { display: block; font-size: 12px; color: var(--muted); line-height: 14px; }
.nav__group { font-size: 12px; color: var(--muted); padding: 0 8px; margin: 18px 0 4px; }
.nav a { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 8px; margin-bottom: 2px; border-radius: 6px; color: var(--muted); }
.nav a:hover { background: var(--raised); color: var(--text); }
.nav a[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 600; }
.nav a span { font-size: 12px; color: var(--faint); }
.side__foot { margin-top: auto; display: grid; gap: 8px; padding: 0 8px; }
.who { display: flex; align-items: center; gap: 10px; }
.who i { width: 28px; height: 28px; border-radius: 50%; background: #D7E7DC; color: #174B33; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; }
.who b { display: block; font-weight: 600; font-size: 13px; line-height: 16px; }
.who small { display: block; color: var(--muted); font-size: 12px; line-height: 14px; }
.live-link { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.top { display: flex; align-items: center; justify-content: center; gap: 12px; padding-right: 16px; position: relative; }
.search { width: 520px; max-width: 60%; height: 32px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); padding: 0 12px 0 34px; color: var(--muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234F555C' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 11px 50%; }
.top .top__menu { display: none; }

.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin: 0 8px 8px 0; padding: 24px; min-width: 0; }

/* ---------- title row, finding, tabs, toolbar ---------- */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.title-row h1 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.crumb a { color: var(--muted); font-weight: 500; }
.crumb h1 { font-size: 16px; line-height: 24px; }
.actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: var(--control-h); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--raised); }
.btn--primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn--primary:hover { background: #343B41; }
.btn--text { border-color: transparent; background: none; padding: 0 8px; color: var(--muted); }
.btn--danger { color: var(--negative); }
.finding { margin-top: 6px; color: var(--muted); max-width: 90ch; }
.finding b { color: var(--text); font-weight: 600; }
.finding a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.tabs { display: flex; gap: 24px; margin-top: 20px; border-bottom: 1px solid var(--rule); }
.tabs a { white-space: nowrap; position: relative; padding: 0 0 10px; color: var(--muted); font-weight: 500; }
.tabs a span { color: var(--faint); margin-left: 4px; }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 8px; }
.toolbar__left, .toolbar__right { display: flex; align-items: center; gap: 8px; }
.field { height: var(--control-h); border: 1px solid var(--control); border-radius: var(--radius-control); padding: 0 10px; background: var(--surface); }
input.field[type="search"] { width: 288px; }
.count { color: var(--muted); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill--warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.pill--neutral { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.kinds { display: flex; flex-wrap: wrap; gap: 4px; }
.kind { font-size: 12px; color: var(--muted); border: 1px solid var(--control); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.kind--label { color: var(--text); border-color: var(--text); }
.kcard__clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.kinds-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.kinds-edit li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 6px; }
.kinds-edit li > .small { min-width: 9ch; text-align: right; }
.kinds-add { align-items: flex-end; }
.grow { flex: 1 1 200px; }
.btn--file { position: relative; overflow: hidden; }
.rv-ph { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
@media (max-width: 560px) { .rv-ph { grid-template-columns: 72px minmax(0, 1fr); } .rv-ph > .row { grid-column: 2; } }
@media (max-width: 560px) { .kinds-edit li { grid-template-columns: minmax(0, 1fr) auto auto auto; } .kinds-edit li > .small { display: none; } }

/* ---------- the projects table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 12px; white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover td { background: var(--raised); }
.table .r { text-align: right; }
.table .nw { white-space: nowrap; }
.proj { display: flex; align-items: center; gap: 12px; min-width: 0; }
.proj img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; background: var(--raised); }
.proj b { display: block; font-weight: 600; }
.proj small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.dash { color: var(--faint); }
.kebab { width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.kebab:hover { background: var(--active); }
.wm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wm::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.wm--off::before { background: transparent; border: 1.5px solid var(--faint); }
.wm--logo::before { background: #9FB8A9; }

/* ---------- project detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); margin-top: 24px; align-items: start; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: var(--gap); }
.card h2 { font-size: 15px; font-weight: 600; line-height: 20px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__head p { color: var(--muted); font-size: 13px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.photo__img { position: relative; aspect-ratio: 4 / 3; background: var(--raised); }
.photo__img img { width: 100%; height: 100%; object-fit: contain; }
.photo__role { position: absolute; left: 8px; top: 8px; height: 26px; border-radius: 6px; border: 0; background: rgba(29, 35, 40, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 0 6px; }
.photo__meta { padding: 10px 12px; display: grid; gap: 2px; }
.photo__meta b { font-weight: 600; font-size: 13px; }
.photo__meta small { color: var(--muted); font-size: 12px; }
.photo__acts { display: flex; gap: 4px; padding: 0 6px 8px; }
.drop { display: grid; place-items: center; text-align: center; gap: 4px; border: 1.5px dashed var(--control); border-radius: var(--radius); color: var(--muted); padding: 16px; aspect-ratio: auto; min-height: 100%; }
.drop b { color: var(--text); }
.drop a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px var(--gap); }
.form .wide { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { height: 36px; border: 1px solid var(--control); border-radius: var(--radius-control); padding: 0 10px; background: var(--surface); font-weight: 400; font-size: 14px; }
.form textarea { height: 72px; padding: 8px 10px; resize: vertical; line-height: 20px; }
.form .need { border-color: #D9A300; background: #FFFBEF; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .kind { font-size: 13px; padding: 3px 10px; }
.chips button { border: 1px dashed var(--control); background: none; border-radius: 999px; padding: 3px 10px; color: var(--muted); font-size: 13px; cursor: pointer; }

/* right rail: the card as the website will show it */
.rail { position: sticky; top: 16px; }
.seg { display: flex; border: 1px solid var(--control); border-radius: var(--radius-control); padding: 2px; gap: 2px; margin-bottom: 16px; }
.seg button { flex: 1 1 auto; white-space: nowrap; padding: 0 8px; height: 28px; border: 1px solid transparent; border-radius: 4px; background: none; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.preview { border-radius: 18px; overflow: hidden; background: #F6F4EF; padding: 14px; }
.pcard { background: #fff; border-radius: 14px; overflow: hidden; }
.pcard__media { position: relative; aspect-ratio: 1; background: #E7E3DA; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media .half { position: absolute; inset: 0; }
.pcard__tag { position: absolute; left: 10px; bottom: 10px; background: #FF4F5F; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pcard__lab { padding: 12px 14px 14px; font-size: 14px; line-height: 19px; }
.pcard__lab b { display: block; font-size: 15px; }
.pcard__lab span { color: var(--muted); }
.mode-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 100%; }
.mode-pair figure { position: relative; height: 100%; }
.mode-pair figcaption, .drag-tag { position: absolute; top: 8px; left: 8px; background: #1D2328; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mode-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 100%; }
.mode-collage img:first-child { grid-row: 1 / 3; }
.drag { position: relative; height: 100%; }
.drag .after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.drag__bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #C9F24E; }
.drag__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #C9F24E; color: #1D2328; font-size: 11px; font-weight: 800; padding: 6px 9px; border-radius: 999px; }
.drag .drag-tag.r { left: auto; right: 8px; }
/* the watermark exactly as published (overrides the card's cover-fit rule for photos) */
.pcard__media img.wmk { width: 30%; height: auto; object-fit: contain; }
/* the watermark exactly as published (scripts/watermark-photos.py): white logo, soft shadow; taste-skill-ignore */
.wmk { position: absolute; right: 7%; bottom: 7%; width: 30%; filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); opacity: .9; pointer-events: none; } /* taste-skill-ignore: matches the published watermark */
.preview.no-wm .wmk { display: none; }
.rail__note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.rows { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--rule); }
.rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows dt { font-weight: 600; font-size: 13px; }
.rows dd { color: var(--muted); font-size: 13px; text-align: right; }
.rows dd a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.switch { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.switch b { display: block; font-weight: 600; font-size: 13px; }
.switch small { display: block; color: var(--muted); font-size: 12px; line-height: 17px; margin-top: 2px; }
.switch input { appearance: none; flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--control); position: relative; cursor: pointer; transition: background .15s; margin: 2px 0 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.publish { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--raised); }
.publish small { color: var(--muted); font-size: 12px; display: block; }
.publish b { font-size: 13px; }


/* ---------- reorder ---------- */
.order-hint { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.order-hint b { color: var(--text); font-weight: 600; }
.grip-demo { display: inline-block; width: 10px; height: 16px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' fill='%23656A6F'%3E%3Ccircle cx='2' cy='2' r='1.6'/%3E%3Ccircle cx='8' cy='2' r='1.6'/%3E%3Ccircle cx='2' cy='8' r='1.6'/%3E%3Ccircle cx='8' cy='8' r='1.6'/%3E%3Ccircle cx='2' cy='14' r='1.6'/%3E%3Ccircle cx='8' cy='14' r='1.6'/%3E%3C/svg%3E") no-repeat; }
.grip { width: 28px; height: 36px; border: 0; border-radius: 6px; cursor: grab; touch-action: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' fill='%23656A6F'%3E%3Ccircle cx='2' cy='2' r='1.6'/%3E%3Ccircle cx='8' cy='2' r='1.6'/%3E%3Ccircle cx='2' cy='8' r='1.6'/%3E%3Ccircle cx='8' cy='8' r='1.6'/%3E%3Ccircle cx='2' cy='14' r='1.6'/%3E%3Ccircle cx='8' cy='14' r='1.6'/%3E%3C/svg%3E") no-repeat center; }
.grip:hover { background-color: var(--active); }
.table td.grip-cell { width: 40px; padding-right: 0; }
.table tr.is-dragging td { background: var(--accent-tint); }
.table tr.is-dragging .grip { cursor: grabbing; }
.orderbar { position: sticky; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.orderbar[hidden] { display: none; }
.orderbar small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- storage: meter (same-ramp track; fill shows state) and a bar list of the used part ---------- */
.storage { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); margin-top: 20px; }
.storage__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.storage__fig { color: var(--muted); }
.storage__fig b { color: var(--text); font-weight: 600; font-size: 18px; }
.meter { height: 12px; border-radius: 6px; background: #DCE8E0; overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.meter[data-level="warning"] { background: #F6E7C3; } .meter[data-level="warning"] .meter__fill { background: #A86A00; }
.meter[data-level="critical"] { background: #F5D5D2; } .meter[data-level="critical"] .meter__fill { background: var(--negative); }
.storage .hint { margin-top: 10px; }
.lbl { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.lbl small { font-weight: 400; color: var(--muted); }
.breakdown li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 128px; align-items: center; gap: 12px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; font-size: 13px; cursor: default; }
.breakdown li:hover, .breakdown li:focus-visible { background: var(--raised); }
.breakdown__label { color: var(--text); }
.breakdown__track { height: 8px; }
.breakdown__bar { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--accent); }
.breakdown__val { text-align: right; color: var(--muted); }
.tip { position: absolute; z-index: 5; display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; background: var(--text); color: #fff; font-size: 12px; pointer-events: none; white-space: nowrap; }
.tip[hidden] { display: none; }
.tip b { font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; line-height: 18px; }
.hint.warn, .warn { color: #7A4B00; }

/* ---------- editor page: counts, photo addresses, crop badge ---------- */
.card__count { color: var(--muted); font-weight: 500; }
.photo__role { display: inline-flex; align-items: center; }
.photo__crop { position: absolute; right: 8px; top: 8px; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 600; }
.photo__meta .warn { color: #7A4B00; }
.url { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 12px; }
.url input { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--rule); border-radius: 4px; background: var(--raised); padding: 0 6px; font-size: 12px; color: var(--muted); }

/* videos */
.vids { display: grid; gap: 8px; margin-bottom: 16px; }
.vids__empty { color: var(--muted); padding: 12px; border-radius: var(--radius); background: var(--raised); }
.vid { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.vid img { width: 120px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--raised); }
.vid__info { display: grid; gap: 4px; }
.vid__info input { width: 100%; }
.vid__info small { color: var(--muted); font-size: 12px; }
.vid-add__row { display: flex; gap: 8px; }
.vid-add__row input { flex: 1; min-width: 0; height: 36px; }
.vid-add__row .btn { height: 36px; }
.vid-add .hint { margin: 6px 0 12px; }
.drop--row { display: block; text-align: left; padding: 12px 14px; }

/* collage templates */
.collage-opts { margin-bottom: 16px; }
.collage-opts[hidden] { display: none; }
.seg--count { margin-bottom: 12px; }
.layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.layouts button { padding: 6px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; }
.layouts button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.mini { display: grid; gap: 2px; width: 100%; aspect-ratio: 1; }
.mini span { background: #B9C8BF; border-radius: 2px; }
.layouts button[aria-pressed="true"] .mini span { background: var(--accent); }
.collage { display: grid; gap: 2px; height: 100%; }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.collage .slot { display: grid; place-items: center; background: #EFEBE3; color: #6B6258; font-size: 12px; font-weight: 600; border: 1.5px dashed #C9C0B2; }

/* ---------- the photo editor dialog ---------- */
.editor { width: min(980px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--border); border-radius: 16px; color: var(--text); }
.editor::backdrop { background: rgba(29, 35, 40, .5); }
.editor__head, .editor__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.editor__head { border-bottom: 1px solid var(--rule); }
.editor__head h2 { font-size: 15px; font-weight: 600; }
.editor__foot { justify-content: flex-end; border-top: 1px solid var(--rule); }
.editor__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); padding: 20px; overflow: auto; }
.seg--inline { margin-bottom: 12px; max-width: 360px; }
.stage { position: relative; height: 380px; overflow: hidden; border-radius: var(--radius); background: #1D2328; touch-action: none; cursor: grab; user-select: none; }
.stage:active { cursor: grabbing; }
.stage img { position: absolute; max-width: none; transform-origin: center; }
.crop { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 2000px rgba(15, 20, 22, .58); pointer-events: none; } /* taste-skill-ignore: dims the photo outside the crop frame, not a decorative shadow */
.crop__handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 4px; background: #fff; border: 2px solid var(--accent); pointer-events: auto; cursor: nwse-resize; }
.crop__handle[hidden] { display: none; }
.zoom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.zoom input { flex: 1; accent-color: var(--accent); }
.zoom__btn { width: 32px; padding: 0; justify-content: center; font-size: 16px; }
.zoom__val { width: 44px; text-align: right; color: var(--muted); }
.editor .hint { margin-top: 8px; }
.fname { display: flex; align-items: center; border: 1px solid var(--control); border-radius: var(--radius-control); overflow: hidden; }
.fname input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; }
.fname span { padding: 0 10px; color: var(--muted); font-weight: 400; background: var(--raised); align-self: stretch; display: grid; place-items: center; }
.urlprev { font-size: 12px; color: var(--muted); word-break: break-all; background: var(--raised); border-radius: 4px; padding: 6px 8px; }
.editor__side { align-content: start; grid-template-columns: 1fr; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- phone: the frame goes, the sheet is the screen ---------- */
@media (max-width: 63.99em) {
  .app { grid-template-columns: 1fr; grid-template-rows: 48px 1fr; }
  .side { display: none; }
  .top { justify-content: space-between; padding: 0 16px; }
  .top .top__menu { display: inline-flex; }
  .search { display: none; }
  .sheet { margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 16px; }
  .title-row { flex-wrap: wrap; }
  .title-row .btn:not(.btn--primary) { display: none; }
  .tabs { overflow-x: auto; }
  .toolbar { flex-wrap: wrap; }
  input.field[type="search"] { width: 100%; }
  .toolbar__left { width: 100%; }
  .m-only { display: inline; }
  .table thead { display: none; }
  .table, .table tbody, .table tr { display: block; }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
  .table td { border: 0; padding: 0; }
  .table td.m-hide { display: none; }
  /* the photo manager: grip, project, position on one line; the town (or "Add a town") under the project */
  .table--projects tr { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .table td.grip-cell { grid-row: 1; grid-column: 1; width: auto; }
  .table td.proj-cell { grid-row: 1; grid-column: 2; }
  .table--projects td.pos { grid-row: 1; grid-column: 3; }
  .table--projects td.town-cell { grid-row: 2; grid-column: 2; }
  .orderbar { flex-wrap: wrap; }
  .storage { grid-template-columns: 1fr; }
  .editor { width: 100vw; max-height: 100vh; border-radius: 0; }
  .editor__body { grid-template-columns: 1fr; }
  .stage { height: 300px; }
  .vid { grid-template-columns: 96px minmax(0, 1fr); }
  .vid img { width: 96px; height: 54px; }
  .vid .btn { grid-column: 2; justify-self: start; }
  .breakdown li { grid-template-columns: minmax(0, 1fr) 60px auto; }
  .table td.m-line2 { white-space: normal; grid-column: 2 / -1; padding-left: 76px; color: var(--muted); font-size: 13px; }
  .proj small { max-width: 220px; }
  .detail { grid-template-columns: 1fr; }
  .rail { position: static; order: -1; }
  .form { grid-template-columns: 1fr; }
}

/* ================================================================ shared app pieces (2026-10-24) */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.btn--block { width: 100%; justify-content: center; height: 40px; font-size: 14px; }
.btn--small { height: 28px; padding: 0 10px; font-size: 12px; }
.version { font-size: 12px; color: var(--faint); line-height: 16px; }
.version b { font-weight: 600; color: var(--muted); }

/* messages */
.msg { padding: 10px 12px; border-radius: var(--radius); font-size: 13px; line-height: 18px; }
.msg--ok { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.msg--err { background: #FDECEA; color: #7A1F17; }
.msg--info { background: var(--raised); color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--text); color: #fff; font-size: 13px; }

/* forms (account pages and dialogs) */
.f { display: grid; gap: 14px; }
.f label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.f label small, .f .help { font-weight: 400; color: var(--muted); font-size: 12px; }
.f input:not([type="checkbox"]):not([type="radio"]), .f select, .f textarea { height: 40px; border: 1px solid var(--control); border-radius: var(--radius-control); padding: 0 12px; background: var(--surface); font-size: 15px; font-weight: 400; width: 100%; }
.f textarea { height: 96px; padding: 10px 12px; line-height: 20px; resize: vertical; }
.f .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; line-height: 18px; }
.f .check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.f .err { color: #7A1F17; font-size: 12px; font-weight: 600; }
.f [aria-invalid="true"] { border-color: #B3261E !important; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.btn--google { background: #fff; border-color: var(--control); height: 40px; justify-content: center; width: 100%; font-size: 14px; }
.btn--google svg { width: 18px; height: 18px; }

/* account pages: one card on the tinted ground */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth__card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.auth__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth__brand img { width: 30px; height: 26px; }
.auth__brand b { font-weight: 600; }
.auth h1 { font-size: 22px; line-height: 28px; font-weight: 600; margin-bottom: 6px; }
.auth__lead { color: var(--muted); margin-bottom: 18px; }
.auth__foot { margin-top: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.auth__foot a { color: var(--accent); font-weight: 600; }
.qr { display: grid; place-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.qr img { width: 180px; height: 180px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .06em; word-break: break-all; background: var(--raised); padding: 6px 8px; border-radius: 4px; }
.code-input { font-size: 22px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.meter-pw { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.meter-pw span { display: block; height: 100%; width: 0; background: #B3261E; transition: width .2s; }
.meter-pw[data-level="2"] span { background: #A86A00; }
.meter-pw[data-level="3"] span, .meter-pw[data-level="4"] span { background: var(--accent); }

/* account (customer) home */
.acct { max-width: 980px; margin: 0 auto; padding: 24px 16px 48px; }
.acct__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.acct__top .brand { margin: 0; }
.acct__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.list { display: grid; }
.list > li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); }
.list > li:first-child { border-top: 0; }
.list__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.empty { color: var(--muted); padding: 16px; border-radius: var(--radius); background: var(--raised); }
.qtable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.qtable td, .qtable th { padding: 6px 0; border-top: 1px solid var(--rule); text-align: left; }
.qtable th { color: var(--muted); font-weight: 500; }
.qtable .r { text-align: right; }
.qtable tfoot td { font-weight: 600; }

/* control room: views, panels, dialogs */
.view { display: grid; gap: 16px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 15px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); align-items: start; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset button { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chipset button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.pill--bad { background: #FDECEA; color: #7A1F17; }
.pill--info { background: #E3EEFB; color: #173A63; }
.timeline { display: grid; gap: 8px; font-size: 13px; }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; }
.timeline time { color: var(--muted); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a { display: block; width: 96px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--raised); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dlg { width: min(560px, 96vw); padding: 0; border: 1px solid var(--border); border-radius: 16px; color: var(--text); }
.dlg--wide { width: min(860px, 96vw); }
.dlg::backdrop { background: rgba(29, 35, 40, .5); }
.dlg__head, .dlg__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.dlg__head { border-bottom: 1px solid var(--rule); }
.dlg__head h2 { font-size: 15px; font-weight: 600; }
.dlg__body { padding: 20px; max-height: 70vh; overflow: auto; }
.dlg__foot { border-top: 1px solid var(--rule); justify-content: flex-end; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 4px 4px 4px 0; }
.lines td { padding: 4px 4px 4px 0; }
.lines input { width: 100%; height: 32px; border: 1px solid var(--control); border-radius: var(--radius-control); padding: 0 8px; font-size: 13px; }
.lines .qty { width: 80px; } .lines .price { width: 120px; } .lines .amt { width: 110px; text-align: right; } .lines .x { width: 32px; }
.totals { display: grid; grid-template-columns: auto auto; gap: 4px 24px; justify-content: end; font-size: 13px; margin-top: 12px; }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-size: 15px; font-weight: 600; }
.lock { display: grid; place-items: center; min-height: 60vh; text-align: center; gap: 12px; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.checklist input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }
.side__ver { padding: 0 8px; }
.stat { display: grid; gap: 2px; }
.stat b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 63.99em) {
  .acct__grid, .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app.is-menu .side { display: flex; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; background: var(--ground); height: 100vh; }
  .kv { grid-template-columns: 1fr; }
}
.mt { margin-top: 20px; }

/* collage layouts, same as css/site.css (preview card and layout picker) */

.collage { display: grid; gap: 2px; width: 100%; height: 100%; }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.collage > :nth-child(1) { grid-area: a; } .collage > :nth-child(2) { grid-area: b; } .collage > :nth-child(3) { grid-area: c; } .collage > :nth-child(4) { grid-area: d; } .collage > :nth-child(5) { grid-area: e; }
.collage--2a { grid-template: "a b" 1fr / 1fr 1fr; } .collage--2b { grid-template: "a" 1fr "b" 1fr / 1fr; } .collage--2c { grid-template: "a b" 1fr / 2fr 1fr; }
.collage--3a { grid-template: "a b" 1fr "a c" 1fr / 2fr 1fr; } .collage--3b { grid-template: "a a" 2fr "b c" 1fr / 1fr 1fr; } .collage--3c { grid-template: "a b c" 1fr / 1fr 1fr 1fr; }
.collage--4a { grid-template: "a b" 1fr "c d" 1fr / 1fr 1fr; } .collage--4b { grid-template: "a a a" 2fr "b c d" 1fr / 1fr 1fr 1fr; } .collage--4c { grid-template: "a b" 1fr "a c" 1fr "a d" 1fr / 2fr 1fr; }
.collage--5a { grid-template: "a a a b b b" 1fr "c c d d e e" 1fr / repeat(6, 1fr); } .collage--5b { grid-template: "a b c" 1fr "a d e" 1fr / 2fr 1fr 1fr; } .collage--5c { grid-template: "a a b b c c" 1fr "d d d e e e" 1fr / repeat(6, 1fr); }
.mini.collage { aspect-ratio: 1; height: auto; }
.pcard__media .collage img { width: 100%; height: 100%; object-fit: cover; }
.chips .kind { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chips .kind input { accent-color: var(--accent); }

/* password fields: an eye button to show what was typed */
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; }
.pw__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.pw__eye:hover { background: var(--raised); color: var(--text); }
.pw__eye svg { width: 20px; height: 20px; fill: currentColor; }
.pw__eye[aria-pressed="true"] { color: var(--accent); }
/* short fields (postal code) keep a sensible width instead of stretching */
.f .f__short input { max-width: 160px; text-transform: uppercase; letter-spacing: .04em; }
.acct__grid { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 63.99em) { .acct__grid { grid-template-columns: 1fr; } }

/* request board on the Overview: three columns, small cards, drag between them */
.kanban { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 160px; transition: background .15s, border-color .15s; }
.kcol--over { background: var(--accent-tint); border-color: var(--accent); }
.kcol__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.kcol__head b { font-size: 13px; font-weight: 600; }
.kcol__head span { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; }
.kcol__list { display: grid; gap: 8px; max-height: 560px; overflow: auto; padding: 1px; }
.kcol__empty { list-style: none; color: var(--faint); font-size: 13px; text-align: center; padding: 18px 0; border: 1.5px dashed var(--control); border-radius: var(--radius); }
.kcol__more { padding: 8px 4px 0; }
.kcard { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: grab; touch-action: none; user-select: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.kcard:hover { border-color: var(--control); }
.kcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.kcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.kcard__top > * { white-space: nowrap; } .kcard__top > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kcard__top .pill { height: 20px; font-size: 11px; }
.kcard__name { font-weight: 600; font-size: 14px; line-height: 18px; margin-top: 4px; }
.kcard__meta { color: var(--muted); font-size: 12px; line-height: 16px; }
.kcard--lifted { opacity: .35; }
.kcard--ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; cursor: grabbing; border-color: var(--accent); box-shadow: 0 8px 24px rgba(29, 35, 40, .18); } /* taste-skill-ignore: a lifted card while dragging is an overlay */
@media (max-width: 63.99em) { .kanban { grid-template-columns: 1fr; } .kcol__list { max-height: none; } }

/* My profile: the account summary at the top */
.me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #D7E7DC; color: #174B33; font-weight: 600; font-size: 20px; flex: none; }
.me__who { display: grid; gap: 2px; min-width: 200px; flex: 1; }
.me__who b { font-size: 17px; font-weight: 600; }
.me__who span { color: var(--muted); font-size: 13px; }
.me__facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; }
.me__facts dt { font-size: 12px; color: var(--muted); }
.me__facts dd { margin: 0; font-weight: 600; font-size: 14px; }

/* screening progress on contractor cards */
.kcard__checks { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); }
.kbar { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; min-width: 40px; }
.kbar__fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.kanban .kcol { min-width: 0; }
.seg--view { display: inline-flex; margin: 0; width: auto; }
.seg--view button { flex: none; padding: 0 14px; }
.kcard__name { word-break: break-word; }
/* the customer's work order: what was done and the warranty (account page) */
.workorder { border: 1px solid var(--border); border-left: 3px solid var(--accent, #174B33); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 4px; background: var(--raised); }
.workorder__h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Motion (approved by Ethan 2026-10-24; DESIGN.md section 11). Only occasional moments move:
   dialogs, toasts, the publish bar and a dropped kanban card. Everything else stays instant. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: m-dialog-in 180ms cubic-bezier(.23, 1, .32, 1); }
  .dlg[open]::backdrop { animation: m-fade-in 180ms ease-out; }
  .toast:not([hidden]) { animation: m-toast-in 180ms cubic-bezier(.23, 1, .32, 1); }
  .toast.is-leaving { animation: m-toast-out 120ms ease-in forwards; }
  .orderbar:not([hidden]) { animation: m-rise 220ms cubic-bezier(.23, 1, .32, 1); }
  .kcard.is-landed { animation: m-landed 700ms ease-out; }
}
@keyframes m-dialog-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes m-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes m-toast-out { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 4px); } }
@keyframes m-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes m-landed { from { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); } to { border-color: var(--border); box-shadow: 0 0 0 3px transparent; } }
/* a file the archiver moved to Ethan's computer (migration 0016) */
.archived { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); border: 1px dashed var(--control); border-radius: 6px; padding: 4px 8px; }
/* the upload square on a review that has no picture of its own (Reviews screen) */
.rv-add { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 96px; height: 72px; border: 1.5px dashed var(--control); border-radius: 6px; color: var(--muted); font-size: 12px; cursor: pointer; text-align: center; }
.rv-add:hover, .rv-add:focus-within { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.rv-add small { font-size: 10px; }

/* ---------- Dashboard (owner): charts are inline SVG; colours from the dataviz palette ---------- */
.stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat small { font-size: 12px; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.dash h2 { font-size: 15px; }
.chart { width: 100%; height: 180px; display: block; }
.chart__axis { stroke: var(--rule); stroke-width: 1; }
.chart__tick { font-size: 11px; fill: var(--muted); }
.chart__val { font-size: 11px; fill: var(--text); font-weight: 600; }
.bar rect { transition: opacity .12s; }
.bar:hover rect, .bar:focus-visible rect { opacity: .78; }
.bar:focus-visible { outline: none; }
.slice { transition: opacity .12s; } .slice:hover, .slice:focus-visible { opacity: .82; outline: none; }
.donut { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut svg { width: 140px; height: 140px; }
.donut__n { font-size: 22px; font-weight: 600; fill: var(--text); } .donut__l { font-size: 11px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend--col { flex-direction: column; gap: 4px; } .legend--col b { color: var(--text); margin-left: 4px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.hbars__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__t { height: 10px; background: var(--raised); border-radius: 3px; overflow: hidden; }
.hbars__b { display: block; height: 100%; background: #2a78d6; border-radius: 3px; }
.chart__table summary { font-size: 12px; color: var(--muted); cursor: pointer; }
@media (max-width: 1100px) { .stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .donut { grid-template-columns: 1fr; justify-items: center; } }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sw--0 { background: #2a78d6; } .sw--1 { background: #eb6834; } .sw--2 { background: #1baf7a; } .sw--3 { background: #eda100; } .sw--4 { background: #e87ba4; } .sw--5 { background: #008300; } .sw--6 { background: #6250d6; } .sw--7 { background: #e34948; }
.dash .panel { align-content: start; }

/* the preview banner (0019): the preview shares the database with tucasareno.com, so what is made there is test data */
.preview-note { margin: 0 0 4px; padding: 8px 10px; border-radius: 8px; background: var(--pill-warning-bg); color: var(--pill-warning-ink); font-size: 12px; line-height: 1.4; }
.preview-note b { display: block; font-size: 13px; }
.top .pill--warn { margin-left: auto; }

/* accept or decline a quote in the customer's account */
.qanswer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, #e3e6e8); display: grid; gap: 10px; }
.qanswer textarea { width: 100%; margin-top: 4px; }

/* the pay page (/pay/): the deposit amount up top */
.paybox { background: #C9F24E; color: #1D2328; border-radius: 16px; padding: 18px 20px; display: grid; gap: 2px; }
.paybox__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.paybox__amount { font-size: 34px; font-weight: 700; color: #174B33; line-height: 1.1; }
.panel h2 .pill { margin-left: 8px; vertical-align: middle; }
