/* ============================================================
   Chicago Deck Expert — Project Dashboard
   Warm, premium, logo-matched (espresso + tan). Modern app shell
   with a HERO band, KPI stat tiles, distinct action tiles, and
   varied section treatments — so pages feel designed, not a stack
   of identical cards.

   Shared class names (.btn, .card, .field, .check-row, .chip,
   .page-head, .list, .muted…) stay stable so all views recolor.
   ============================================================ */

:root {
  /* Warm neutrals (from the brand cream/paper) */
  --page:    #f4efe7;      /* warm cream canvas */
  --panel:   #ffffff;
  --panel-2: #f4ece0;      /* cream inset */
  --ink:     #2a1c12;      /* warm near-black */
  --ink-2:   #3a2818;
  --muted:   #8c7a66;      /* warm grey-brown */
  --line:    #e8dccb;      /* warm hairline */

  /* Logo/brand browns */
  --espresso:  #34200f;    /* darkest — hero / dark panels */
  --espresso-2:#4e3021;    /* logo brown */
  --walnut:    #6b4430;    /* primary action */
  --walnut-dk: #553522;
  --tan:       #a97c50;    /* accent (logo tan, enriched) */
  --tan-2:     #957054;    /* logo tan */
  --tan-soft:  #e3ccac;
  --tan-tint:  #f2e5d2;    /* soft accent fill */
  --gold:      #c49a6c;

  --success: #3f7d54; --success-bg:#e7efe6; --success-bd:#c2d8c4;
  --danger:  #b23b2e; --danger-bg:#f7e6e2;  --danger-bd:#e6c3ba;

  /* Back-compat aliases so existing view markup recolors cleanly */
  --accent: var(--walnut);
  --accent-dk: var(--walnut-dk);
  --accent-tint: var(--tan-tint);
  --oak: var(--tan);
  --oak-soft: var(--tan-soft);
  --card-white: var(--panel);
  --body-text: var(--ink);

  --r:16px; --r-sm:11px; --r-lg:22px; --r-pill:999px;
  --shadow:    0 1px 2px rgba(52,32,15,.05), 0 12px 32px rgba(52,32,15,.09);
  --shadow-sm: 0 1px 3px rgba(52,32,15,.08);
  --nav-h: 62px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", "Georgia", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--espresso); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--walnut); text-decoration: none; }
a:hover { color: var(--walnut-dk); }

/* ── Shell: sticky top nav + centered content ───────────────── */
.app { min-height: 100vh; }
.topnav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); flex-shrink: 0; margin-right: 12px; }
.nav-brand img { height: 27px; width: auto; display: block; }
.nav-brand .b-name { font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; font-size: 14px; transition: background .14s, color .14s; }
.nav-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-link:hover { background: var(--panel-2); color: var(--ink); }
.nav-link.active { background: var(--tan-tint); color: var(--walnut-dk); }
.nav-link.active svg { stroke: var(--walnut); }
.nav-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-user .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(150deg, var(--walnut), var(--espresso-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--font-head); }
.nav-user .u-meta { display: flex; flex-direction: column; line-height: 1.12; }
.nav-user .u-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.nav-user .u-role { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.nav-user form { margin: 0; }
.logout-btn { background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); padding: 7px 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.logout-btn:hover { background: var(--panel-2); border-color: var(--tan-soft); }
main { width: 100%; max-width: 960px; margin: 0 auto; padding: 28px 22px 96px; }
.tabbar { display: none; }

/* ── HERO band (dashboard + page headers can use it) ────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(169,124,80,.35), transparent 55%),
    linear-gradient(135deg, #3a2418 0%, var(--espresso) 60%, #241206 100%);
  color: #f3e7da; border-radius: var(--r-lg);
  padding: 30px 30px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero::after { /* faint deck-plank lines */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 74px);
}
.hero h1 { color: #fff; font-size: 30px; margin: 0 0 6px; letter-spacing: -.02em; }
.hero p { margin: 0; color: #e6cfb3; font-size: 15px; max-width: 60ch; }
.hero .hero-cta { position: relative; margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-outline:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

/* ── KPI stat tiles ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; }
.stat .stat-num { font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1; color: var(--espresso); }
.stat .stat-lab { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat .stat-ic { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--tan-tint); color: var(--walnut); display: flex; align-items: center; justify-content: center; }
.stat .stat-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Distinct action tiles ──────────────────────────────────── */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.action-tile { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .15s, border-color .15s; }
.action-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--tan-soft); color: var(--ink); }
.action-tile .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; background: var(--tan-tint); color: var(--walnut); display: flex; align-items: center; justify-content: center; }
.action-tile.primary { background: linear-gradient(150deg, var(--walnut), var(--espresso-2)); border-color: transparent; color: #fff; }
.action-tile.primary .ic { background: rgba(255,255,255,.16); color: #fff; }
.action-tile .ic svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; }
.action-tile > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.action-tile .t-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.action-tile .t-sub { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.action-tile.primary .t-sub { color: rgba(255,255,255,.8); }

/* ── Section header (varied, with accent rule + optional right slot) ── */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.sec-head h2 { font-size: 19px; margin: 0; }
.sec-head .count { background: var(--tan-tint); color: var(--walnut-dk); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); }
.sec-head .spacer { flex: 1; }
.sec-head .rule { height: 1px; background: var(--line); flex: 1; }

/* ── Page heading ───────────────────────────────────────────── */
.page-head { margin: 4px 0 22px; }
.page-head h1 { font-size: 27px; margin: 0 0 5px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--walnut); color: #fff; border: none; padding: 11px 21px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(107,68,48,.25); transition: transform .06s, background .14s, box-shadow .14s; }
.btn:hover { background: var(--walnut-dk); color: #fff; box-shadow: 0 5px 16px rgba(107,68,48,.28); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-outline:hover { background: var(--panel-2); border-color: var(--tan-soft); }
.btn-ghost { background: transparent; color: var(--walnut); box-shadow: none; }
.btn-danger { background: var(--danger); box-shadow: 0 1px 2px rgba(178,59,46,.25); }
.btn-danger:hover { background: #972f24; }
.btn-outline.btn-danger { background: var(--panel); color: var(--danger); border-color: var(--danger-bd); }
.btn-outline.btn-danger:hover { background: var(--danger-bg); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.card h2::before { content: ""; width: 4px; height: 17px; background: var(--tan); border-radius: 2px; }
.card-accent { border-top: 2px solid var(--tan); }
.card-dark { background: linear-gradient(150deg, #3a2418, var(--espresso)); color: #f0e2d3; border-color: transparent; }
.card-dark h2 { color: #fff; }
.callout { background: var(--tan-tint); border: 1px solid var(--tan-soft); border-radius: var(--r); padding: 16px 18px; }

/* ── Forms ──────────────────────────────────────────────────── */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
input, select, textarea { width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); transition: border-color .14s, box-shadow .14s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--walnut); box-shadow: 0 0 0 3px rgba(169,124,80,.22); }
textarea { line-height: 1.55; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row > div { display: flex; flex-direction: column; }
.field { margin-bottom: 18px; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.muted { color: var(--muted); font-size: 13.5px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { background: var(--danger-bg); color: #7f271b; border: 1px solid var(--danger-bd); padding: 13px 15px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 14px; }
.alert-success { background: var(--success-bg); color: #235c37; border-color: var(--success-bd); }

/* ── Checkbox tiles ─────────────────────────────────────────── */
.check-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14.5px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.check-row:hover { border-color: var(--tan-soft); }
.check-row.is-checked { border-color: var(--tan); background: var(--tan-tint); box-shadow: 0 0 0 1px var(--tan) inset; }
.check-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--walnut); cursor: pointer; flex-shrink: 0; }
.check-row.has-count, .check-row.has-text, .check-row.has-subs { flex-wrap: wrap; }
.check-row .count-input, .check-row .text-input { flex-basis: 100%; display: none; margin-top: 8px; padding-left: 32px; }
.check-row .count-input input { width: 130px; padding: 8px 10px; font-size: 14px; }
.check-row .text-input input { width: 100%; padding: 8px 10px; font-size: 14px; }
.check-row.is-checked .count-input, .check-row.is-checked .text-input { display: block; }
.check-row.has-subs { display: flex; flex-direction: column; align-items: stretch; cursor: default; }
.check-row.has-subs .check-row-main { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.check-row.has-subs .sub-grid { display: none; flex-direction: column; gap: 6px; margin-top: 10px; padding-left: 32px; }
.check-row.has-subs.is-checked .sub-grid { display: flex; }
.sub-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; padding: 4px 0; }
.sub-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--walnut); }
.sub-field { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 4px 0 8px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.sub-field label { margin: 0; }
.sub-field select { width: auto; padding: 6px 10px; font-size: 14px; }

/* ── Photo previews ─────────────────────────────────────────── */
.photo-preview { margin-top: 10px; }
.photo-preview img { display: block; width: 100%; max-width: 260px; height: 170px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); }
.photo-preview .heic-note { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--tan-tint); border: 1px solid var(--tan-soft); color: var(--walnut-dk); border-radius: var(--r-sm); font-size: 13px; line-height: 1.5; max-width: 340px; }
.photo-preview .existing-tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ── Lists / chips ──────────────────────────────────────────── */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.list li:last-child { border: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.chip-published { background: var(--success-bg); color: #235c37; }
.chip-draft     { background: var(--tan-tint); color: var(--walnut-dk); }
.chip-muted     { background: var(--panel-2); color: var(--muted); }

/* ── Mobile: top links → bottom tab bar ─────────────────────── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-user .u-meta { display: none; }
  main { padding: 20px 16px 96px; }
  .hero { padding: 24px 22px; }
  .hero h1 { font-size: 25px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; padding: 6px 2px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 600; }
  .tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; }
  .tab.active { color: var(--walnut); }
}
@media (min-width: 821px) { .tabbar { display: none; } }
#nav-toggle { display: none; }

/* ── Extra "designed" patterns for distinct per-page layouts ─── */

/* Numbered step headers (guided forms) */
.step-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(150deg, var(--walnut), var(--espresso-2)); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-head h2 { margin: 0; font-size: 18px; }
.step-head h2::before { content: none; }        /* no tick when a step number is present */
.step-head .step-sub { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 1px; }
.step-card { position: relative; }

/* Two-column split (content + sticky aside) */
.split { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 20px; align-items: start; }
.split-aside { position: sticky; top: calc(var(--nav-h) + 14px); }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } .split-aside { position: static; } }

/* Member cards (team) */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.member-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .08s; }
.member-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.member-top { display: flex; align-items: center; gap: 13px; }
.member-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(150deg, var(--walnut), var(--espresso-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 20px; flex-shrink: 0; overflow: hidden; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-weight: 700; font-size: 15.5px; }
.member-role { font-size: 12px; color: var(--muted); text-transform: capitalize; }

/* Pricing / tier table */
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tier-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 14px 12px; font-weight: 700; }
.tier-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tier-table tr:hover td { background: var(--panel-2); }
.tier-price { font-family: var(--font-head); font-weight: 600; color: var(--walnut); font-size: 17px; }

/* QR / device frame */
.qr-frame { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.qr-frame .qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: inline-block; }

/* Small summary stat used inside asides */
.mini-stat { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-stat:last-child { border: none; }
.mini-stat .n { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--espresso); }
.mini-stat .l { font-size: 13px; color: var(--muted); }

/* ── Multi-step wizard (new-project form) ───────────────────── */
.wiz-steps { display: flex; align-items: flex-start; margin-bottom: 26px; }
.wiz-dot { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
.wiz-dot:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--line); }
.wiz-dot.done:not(:last-child)::after { background: var(--tan); }
.wiz-dot .n { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; transition: all .16s; }
.wiz-dot.active .n { background: var(--walnut); border-color: var(--walnut); color: #fff; box-shadow: 0 0 0 4px rgba(169,124,80,.18); }
.wiz-dot.done .n { background: var(--tan); border-color: var(--tan); color: #fff; }
.wiz-dot .t { font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; }
.wiz-dot.active .t, .wiz-dot.done .t { color: var(--espresso); }
.wiz-panel { display: none; }
.wiz-panel.is-active { display: block; animation: wizIn .25s ease; }
@keyframes wizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.wiz-count { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .wiz-dot .t { display: none; } .wiz-dot:not(:last-child)::after { left: calc(50% + 20px); right: calc(-50% + 20px); } }

/* ── Styled file-upload buttons ─────────────────────────────── */
input[type="file"] { padding: 7px 8px; cursor: pointer; color: var(--muted); font-size: 14px; }
input[type="file"]::file-selector-button {
  background: var(--walnut); color: #fff; border: none;
  padding: 9px 16px; border-radius: 9px; font-family: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; margin-right: 14px; transition: background .14s;
}
input[type="file"]::file-selector-button:hover { background: var(--walnut-dk); }
input[type="file"]::-webkit-file-upload-button {
  background: var(--walnut); color: #fff; border: none;
  padding: 9px 16px; border-radius: 9px; font-family: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; margin-right: 14px;
}

/* ── Custom dropdown (replaces native <select> open list) ────── */
select.enhanced-hidden { display: none !important; }
.sel { position: relative; }
.sel-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font-family: inherit; font-size: 15px;
  cursor: pointer; text-align: left; transition: border-color .14s, box-shadow .14s;
}
.sel-btn:hover { border-color: var(--tan-soft); }
.sel.open .sel-btn { border-color: var(--walnut); box-shadow: 0 0 0 3px rgba(169,124,80,.18); }
.sel.invalid .sel-btn { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(178,59,46,.15); }
.sel-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .chev { flex-shrink: 0; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.sel.open .sel-btn .chev { transform: rotate(180deg); }
.sel-list {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: 6px; max-height: 300px; overflow: auto; display: none;
}
.sel.open .sel-list { display: block; animation: wizIn .14s ease; }
.sel-opt { padding: 9px 11px; border-radius: 8px; font-size: 14.5px; cursor: pointer; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-opt:hover { background: var(--panel-2); }
.sel-opt.active { background: var(--tan-tint); color: var(--walnut-dk); font-weight: 600; }
