/* ============================================================
   WineIQ — desktop app shell + workspace/editorial components
   WS-6B(2). Tokens and component anatomy are taken verbatim from
   the approved design handoff (desktop-shared.jsx /
   desktop-workspace.jsx / desktop-combined.jsx). Loaded only by
   base_app.html, AFTER site.css.
   ============================================================ */

:root {
  /* palette (desktop-shared.jsx:7-27) */
  --ws-red:    #722F37;
  --ws-dark:   #4A1942;
  --ws-deep:   #3A1018;
  --ws-ink:    #2A0B12;
  --ws-bg-gray:#F5F3EE;
  --ws-bg-app: #EFEBE4;
  --ws-bg-rail:#F9F6EF;
  --ws-paper:  #FBFAF7;
  --ws-card:   #FFFFFF;
  --ws-border: #E5E0D7;
  --ws-hair:   #EFEAE0;
  --ws-hair-2: #E6DFD2;
  --ws-text-1: #1A1A1A;
  --ws-text-2: #5A5550;
  --ws-text-3: #8F857A;
  --ws-text-4: #B9AE9F;
  --ws-gold:   #B8956A;
  --ws-cream:  #F8EFD9;
  --ws-cream-2:#E8D2A4;

  /* readiness contract (desktop-shared.jsx:40-48 — matches
     analytics/services/reports.py READINESS colors) */
  --ws-r-aging: #1E5479;
  --ws-r-ready: #2A6049;
  --ws-r-past:  #8B2535;
  --ws-r-unknown: #9A8B83;

  /* wine-type contract (desktop-shared.jsx:29-38 — matches
     analytics/services/reports.py WINE_TYPE_COLORS) */
  --ws-t-red:       #8B2535;
  --ws-t-white:     #D4AE6A;
  --ws-t-rose:      #E08080;
  --ws-t-sparkling: #A0C8E0;
  --ws-t-orange:    #D4864A;
  --ws-t-dessert:   #C89040;
  --ws-t-fortified: #7A4A2A;
  --ws-t-other:     #9A8B83;

  /* fonts (desktop-shared.jsx:51-53) */
  --ws-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ws-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ws-sans:  -apple-system, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

/* ── Shell layout ──────────────────────────────────────────── */
body.ws-body {
  padding-top: 0;             /* site.css pads for the old fixed navbar */
  background: var(--ws-bg-app);
  font-family: var(--ws-sans);
  color: var(--ws-text-1);
}

.ws-shell { display: flex; min-height: 100vh; }

.ws-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

.ws-scroll { flex: 1; min-width: 0; padding: 0 24px 32px 28px; }

/* ── Sidebar (WS_Sidebar, desktop-workspace.jsx:24-121) ────── */
.ws-sidebar {
  width: 224px; flex-shrink: 0;
  background: var(--ws-bg-rail);
  border-right: 1px solid var(--ws-border);
  display: flex; flex-direction: column;
  padding: 20px 12px 14px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}

.ws-wordmark {
  padding: 4px 8px 22px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.ws-wordmark:hover { text-decoration: none; }
.ws-wordmark-tile {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--ws-red); color: var(--ws-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ws-serif); font-size: 15px; font-style: italic;
  font-weight: 600; padding-top: 1px;
}
.ws-wordmark-name {
  font-family: var(--ws-serif); font-size: 19px; color: var(--ws-ink);
  letter-spacing: -.2px; font-weight: 500;
}
.ws-wordmark-name em { font-style: italic; color: var(--ws-red); }

.ws-side-eyebrow {
  padding: 6px 10px 8px;
  font-family: var(--ws-mono); font-size: 10.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--ws-text-4); font-weight: 600;
}

.ws-nav { display: flex; flex-direction: column; gap: 1px; }
.ws-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--ws-text-2); font-weight: 500; font-size: 13.5px;
  text-decoration: none;
}
.ws-nav-item:hover { background: rgba(255,255,255,.6); color: var(--ws-text-1); text-decoration: none; }
.ws-nav-item.active {
  background: #fff; box-shadow: inset 0 0 0 1px var(--ws-border);
  color: var(--ws-red); font-weight: 600;
}
.ws-nav-item svg { flex-shrink: 0; }

.ws-side-divider { height: 1px; background: var(--ws-hair); margin: 20px 4px 14px; }
.ws-side-spacer { flex: 1; }

.ws-side-legal {
  padding: 10px 10px 12px;
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ws-text-4);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ws-side-legal a { color: var(--ws-text-4); text-decoration: none; }
.ws-side-legal a:hover { color: var(--ws-text-2); text-decoration: none; }

.ws-user-pod {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--ws-border);
  border-radius: 10px; background: #fff;
  text-decoration: none;
}
.ws-user-pod:hover { text-decoration: none; border-color: var(--ws-text-4); }
.ws-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--ws-red); color: var(--ws-cream);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.ws-user-meta { flex: 1; min-width: 0; }
.ws-user-name {
  font-size: 12.5px; color: var(--ws-text-1); font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-user-email {
  font-size: 10.5px; color: var(--ws-text-3);
  font-family: var(--ws-mono); letter-spacing: .4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-signout-form { margin: 6px 0 0; }
.ws-signout-btn {
  width: 100%; border: none; background: transparent;
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ws-text-3);
  padding: 6px 10px; border-radius: 8px; cursor: pointer; text-align: left;
}
.ws-signout-btn:hover { color: var(--ws-red); background: rgba(114,47,55,.05); }

/* ── Top bar (WS_TopBar, desktop-workspace.jsx:123-179) ────── */
.ws-topbar {
  height: 56px; flex-shrink: 0; background: #fff;
  border-bottom: 1px solid var(--ws-border);
  display: flex; align-items: center;
  padding: 0 22px; gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.ws-crumbs {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 13.5px; color: var(--ws-text-3); font-weight: 500;
}
.ws-crumbs a { color: var(--ws-text-3); text-decoration: none; white-space: nowrap; }
.ws-crumbs a:hover { color: var(--ws-text-1); text-decoration: none; }
.ws-crumb-current {
  color: var(--ws-text-1); font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ws-crumb-sep { color: var(--ws-text-4); }

.ws-search {
  flex: 1; max-width: 420px; height: 36px;
  background: var(--ws-bg-gray); border-radius: 10px;
  border: 1px solid var(--ws-border);
  display: flex; align-items: center;
  padding: 0 12px; gap: 10px; color: var(--ws-text-3);
  margin: 0 auto;
}
.ws-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--ws-text-1);
}
.ws-search input::placeholder { color: var(--ws-text-3); }

.ws-topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ── Buttons (SegBtn / topbar button) ──────────────────────── */
.ws-btn {
  height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--ws-border); background: #fff; color: var(--ws-text-2);
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; white-space: nowrap;
}
.ws-btn:hover { color: var(--ws-text-1); border-color: var(--ws-text-4); text-decoration: none; }
.ws-btn-primary {
  border: none; background: var(--ws-red); color: var(--ws-cream);
}
.ws-btn-primary:hover { background: var(--ws-deep); color: var(--ws-cream); }

/* ── Type utilities ────────────────────────────────────────── */
.ws-eyebrow {
  font-family: var(--ws-mono); font-size: 10.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--ws-text-3); font-weight: 600;
}
.ws-eyebrow--red { color: var(--ws-red); }
.ws-serif { font-family: var(--ws-serif); font-weight: 500; color: var(--ws-text-1); }
.ws-mono {
  font-family: var(--ws-mono); font-size: 10.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ws-text-3); font-weight: 600;
}

/* ── Status pills (StatusPill, desktop-shared.jsx:133-156) ─── */
.ws-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  white-space: nowrap;
}
.ws-pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.ws-pill--md { padding: 3px 9px; font-size: 10.5px; }
.ws-pill--lg { padding: 5px 12px; font-size: 11.5px; }
.ws-pill--ready    { background: #E8F0E5; color: var(--ws-r-ready); }
.ws-pill--aging    { background: #E1ECF3; color: var(--ws-r-aging); }
.ws-pill--past     { background: #F4E2E2; color: var(--ws-r-past); }
.ws-pill--unknown  { background: #EFEDE9; color: var(--ws-text-3); }
.ws-pill--consumed { background: #EFEDE9; color: var(--ws-text-3); }

.ws-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; background: var(--ws-text-3);
}
.ws-dot--ready { background: var(--ws-r-ready); }
.ws-dot--aging { background: var(--ws-r-aging); }
.ws-dot--past { background: var(--ws-r-past); }
.ws-dot--unknown { background: var(--ws-r-unknown); }
.ws-dot--consumed { background: var(--ws-text-4); }

/* wine-type color swatches/bars */
.ws-typebar { display: inline-block; width: 3px; height: 30px; border-radius: 2px; flex-shrink: 0; background: var(--ws-t-other); }
.ws-typesq  { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; background: var(--ws-t-other); }
.ws-type--red       { background: var(--ws-t-red); }
.ws-type--white     { background: var(--ws-t-white); }
.ws-type--rose      { background: var(--ws-t-rose); }
.ws-type--sparkling { background: var(--ws-t-sparkling); }
.ws-type--orange    { background: var(--ws-t-orange); }
.ws-type--dessert   { background: var(--ws-t-dessert); }
.ws-type--fortified { background: var(--ws-t-fortified); }
.ws-type--other     { background: var(--ws-t-other); }

/* ── Cards ─────────────────────────────────────────────────── */
.ws-card {
  background: var(--ws-card); border: 1px solid var(--ws-border);
  border-radius: 14px; padding: 18px;
}
.ws-card--gold { background: #FFF8EE; border-color: #EBDBB7; }

/* ── Cellar page: title row + glance strip ─────────────────── */
.ws-titlerow {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 24px 0 18px; flex-wrap: wrap;
}
.ws-titlerow-stats { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.ws-titlerow-stats .ws-stat-n { font-family: var(--ws-serif); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.5px; }
.ws-titlerow-stats .ws-stat-l { font-family: var(--ws-serif); font-size: 24px; font-style: italic; color: var(--ws-text-3); font-weight: 500; }
.ws-titlerow-stats .ws-stat-mid { font-family: var(--ws-serif); font-size: 24px; color: var(--ws-text-2); font-weight: 500; }
.ws-titlerow-stats .ws-stat-mid em { font-style: italic; }
.ws-vdiv { width: 1px; height: 22px; background: var(--ws-hair-2); }
.ws-titlerow-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ws-glance {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--ws-border);
  border-radius: 14px; margin-bottom: 18px; overflow: hidden;
}
.ws-glance-cell { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ws-glance-cell + .ws-glance-cell { border-left: 1px solid var(--ws-hair); }
.ws-glance-l { font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ws-text-3); font-weight: 600; }
.ws-glance-n { font-family: var(--ws-serif); font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: -.4px; }

/* ── Quick filter pills row ────────────────────────────────── */
.ws-qpills { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ws-qpill {
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--ws-border); background: #fff; color: var(--ws-text-2);
  font-size: 11.5px; font-weight: 600;
  font-family: var(--ws-mono); text-transform: uppercase; letter-spacing: .3px;
  text-decoration: none;
}
.ws-qpill:hover { border-color: var(--ws-text-4); color: var(--ws-text-1); text-decoration: none; }
.ws-qpill.active { border-color: var(--ws-red); background: var(--ws-red); color: var(--ws-cream); }

/* ── Workspace table (CellarTableHead/Group/Row) ───────────── */
.ws-table-card {
  background: #fff; border: 1px solid var(--ws-border); border-radius: 14px;
  overflow: hidden; margin-bottom: 16px;
}
.ws-thead {
  display: flex; padding: 12px 18px; background: #FAF8F3;
  border-bottom: 1px solid var(--ws-border);
}
.ws-th {
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ws-text-3); font-weight: 600;
  text-align: left;
}
.ws-th a { color: inherit; text-decoration: none; }
.ws-th a:hover { color: var(--ws-red); text-decoration: none; }

/* column contract (desktop-workspace.jsx:344-354), minus 10% ceded
   to the actions column the mock didn't carry */
.ws-col-wine   { width: 28%; min-width: 0; }
.ws-col-vint   { width: 7%; }
.ws-col-region { width: 14%; min-width: 0; }
.ws-col-type   { width: 8%; }
.ws-col-qty    { width: 5%; }
.ws-col-status { width: 10%; }
.ws-col-peak   { width: 7%; }
.ws-col-rating { width: 11%; }
.ws-col-actions{ width: 10%; text-align: right; }

.ws-group-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: #FBF9F4; border-bottom: 1px solid var(--ws-hair);
}
.ws-group-label {
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 1.7px;
  text-transform: uppercase; font-weight: 600;
}
.ws-group-hair { flex: 1; height: 1px; background: var(--ws-hair); }
.ws-group-count { font-family: var(--ws-mono); font-size: 10px; color: var(--ws-text-3); }

.ws-row {
  display: flex; align-items: center; padding: 11px 18px;
  border-bottom: 1px solid var(--ws-hair); background: #fff;
}
.ws-row:last-child { border-bottom: none; }
.ws-row:hover { background: rgba(114,47,55,.025); }

.ws-row-wine { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-row-producer {
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ws-text-3); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-row-name {
  font-family: var(--ws-serif); font-size: 15.5px; color: var(--ws-text-1);
  font-weight: 500; margin-top: 1px; letter-spacing: -.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-row-name a { color: inherit; text-decoration: none; }
.ws-row-name a:hover { color: var(--ws-red); text-decoration: none; }
.ws-row-vint { font-family: var(--ws-serif); font-size: 17px; font-style: italic; color: var(--ws-text-2); font-weight: 500; }
.ws-row-region-1 { font-size: 12.5px; color: var(--ws-text-1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-row-region-2 { font-size: 10.5px; color: var(--ws-text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-row-type { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ws-text-2); }
.ws-row-qty { font-family: var(--ws-mono); font-size: 12px; color: var(--ws-text-1); font-weight: 600; }
.ws-row-qty.ws-qty-zero { color: var(--ws-text-4); }
.ws-row-peak { font-family: var(--ws-mono); font-size: 12px; color: var(--ws-text-1); font-weight: 600; }
.ws-row-rating { display: flex; align-items: center; gap: 6px; }
.ws-row-rating-n { font-family: var(--ws-serif); font-size: 16px; color: var(--ws-red); font-style: italic; font-weight: 500; }
.ws-row-unrated { font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ws-text-4); font-weight: 600; }
.ws-stars { display: inline-flex; gap: 1px; }

.ws-row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.ws-row-action {
  border: 1px solid transparent; background: transparent; border-radius: 7px;
  width: 28px; height: 28px; cursor: pointer; color: var(--ws-text-3);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 0;
}
.ws-row-action:hover { color: var(--ws-red); border-color: var(--ws-border); background: #fff; text-decoration: none; }

/* ── Cellar layout: main + right rail ──────────────────────── */
.ws-cellar-layout { display: flex; gap: 22px; align-items: flex-start; }
.ws-cellar-main { flex: 1; min-width: 0; }
.ws-rail {
  width: 304px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 24px;
}
.ws-rail .ws-card { padding: 16px; }
.ws-rail-title { font-family: var(--ws-serif); font-size: 20px; font-weight: 500; margin: 4px 0 12px; line-height: 1.2; }
.ws-rail-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px dashed var(--ws-hair);
}
.ws-rail-item:first-of-type { border-top: none; }
.ws-rail-item-bar { width: 3px; height: 34px; border-radius: 2px; flex-shrink: 0; background: var(--ws-t-other); }
.ws-rail-item-name {
  font-family: var(--ws-serif); font-size: 14px; color: var(--ws-text-1); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-rail-item-name a { color: inherit; text-decoration: none; }
.ws-rail-item-name a:hover { color: var(--ws-red); }
.ws-rail-item-name em { font-style: italic; color: var(--ws-text-3); }
.ws-rail-item-sub {
  font-family: var(--ws-mono); font-size: 9.5px; color: var(--ws-text-3);
  letter-spacing: .5px; margin-top: 2px; text-transform: uppercase;
}
.ws-rail-more { text-align: right; margin-top: 8px; font-size: 11.5px; font-weight: 600; }
.ws-rail-more a { color: var(--ws-red); text-decoration: none; }
.ws-rail-more a:hover { text-decoration: underline; }

/* activity timeline */
.ws-timeline { margin-top: 12px; position: relative; padding-left: 16px; }
.ws-timeline::before {
  content: ''; position: absolute; left: 5px; top: 4px; bottom: 8px;
  width: 1.5px; background: var(--ws-hair);
}
.ws-tl-item { padding: 6px 0 8px; position: relative; }
.ws-tl-dot {
  position: absolute; left: -16px; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--ws-text-3); box-shadow: 0 0 0 2px #fff;
}
.ws-tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ws-tl-label { font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }
.ws-tl-date { font-family: var(--ws-mono); font-size: 9.5px; color: var(--ws-text-3); }
.ws-tl-sub { font-size: 12px; color: var(--ws-text-1); margin-top: 2px; line-height: 1.4; }

/* gold suggestion card */
.ws-gold-eyebrow { color: #8C6D2F; }
.ws-gold-title { font-family: var(--ws-serif); font-size: 17px; color: #5A4019; margin-top: 4px; line-height: 1.3; }
.ws-gold-title em { font-style: italic; }
.ws-gold-body { font-size: 12px; color: var(--ws-text-2); margin-top: 6px; line-height: 1.5; }
.ws-gold-btn {
  display: inline-block; margin-top: 12px; padding: 7px 12px;
  background: var(--ws-gold); color: #fff; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ws-gold-btn:hover { color: #fff; background: #A07F54; text-decoration: none; }

/* ── Editorial detail hero (Screen_Combined_Detail) ────────── */
.ed-hero {
  background: linear-gradient(135deg, var(--ws-red) 0%, var(--ws-deep) 100%);
  color: var(--ws-cream); position: relative; overflow: hidden;
  margin: 0 -24px 0 -28px;   /* full bleed inside .ws-scroll padding */
}
.ed-hero::before {
  content: ''; position: absolute; top: -260px; right: -120px;
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,190,146,.18), transparent 60%);
  pointer-events: none;
}
.ed-hero::after {
  content: ''; position: absolute; bottom: -160px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,16,24,.5), transparent 65%);
  pointer-events: none;
}
.ed-hero-top {
  padding: 20px 44px 0; display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1; flex-wrap: wrap;
}
.ed-back-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(244,230,207,.2);
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(244,230,207,.75); font-weight: 600;
  text-decoration: none;
}
.ed-back-pill:hover { color: var(--ws-cream); background: rgba(255,255,255,.14); text-decoration: none; }
.ed-hero-action {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(244,230,207,.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ws-cream-2); text-decoration: none;
}
.ed-hero-action:hover { background: rgba(255,255,255,.14); color: var(--ws-cream); text-decoration: none; }

.ed-hero-grid {
  display: grid; grid-template-columns: 260px 1fr 288px;
  padding: 22px 44px 38px; gap: 40px; position: relative; z-index: 1;
  align-items: flex-start;
}

.ed-label-col img.ed-label-img {
  width: 260px; max-height: 336px; object-fit: contain;
  border-radius: 10px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(217,190,146,.45);
}
.ed-label-slot {
  width: 260px; height: 336px; border-radius: 10px; position: relative; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(217,190,146,.45);
  display: flex; align-items: center; justify-content: center;
}
.ed-label-slot::before {
  content: ''; position: absolute; inset: 0; opacity: .9;
  background-image: repeating-linear-gradient(135deg, rgba(217,190,146,.14) 0 6px, transparent 6px 14px);
}
.ed-label-slot-caption {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: rgba(244,230,207,.55);
}
.ed-label-actions { margin-top: 14px; display: flex; gap: 8px; }
.ed-btn-cream {
  flex: 1; padding: 11px 14px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--ws-cream); color: var(--ws-deep); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.ed-btn-cream:hover { background: #fff; color: var(--ws-deep); text-decoration: none; }
.ed-btn-cream:disabled, .ed-btn-cream.disabled { opacity: .45; pointer-events: none; }
.ed-btn-outline {
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--ws-cream); font-size: 13px; font-weight: 600;
  border: 1px solid rgba(244,230,207,.5);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.ed-btn-outline:hover { background: rgba(255,255,255,.08); color: var(--ws-cream); text-decoration: none; }

.ed-title-col { min-width: 0; padding-top: 10px; }
.ed-hero-producer {
  font-family: var(--ws-mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(244,230,207,.65); font-weight: 600;
}
.ed-hero-title {
  margin-top: 12px; font-family: var(--ws-serif); font-size: 56px;
  font-weight: 500; color: var(--ws-cream); letter-spacing: -.8px; line-height: .98;
  overflow-wrap: break-word;
}
.ed-hero-title .ed-vintage { font-style: italic; color: var(--ws-cream-2); }
.ed-hero-chips { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-chip {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: var(--ws-cream);
  border: 1px solid rgba(244,230,207,.25);
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 6px;
}

.ed-statplate {
  background: rgba(255,255,255,.05); border: 1px solid rgba(244,230,207,.22);
  border-radius: 14px; padding: 20px 22px;
}
.ed-statplate-eyebrow {
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 1.6px;
  text-transform: uppercase; color: rgba(244,230,207,.65); font-weight: 600;
}
.ed-statgrid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.ed-stat-n { font-family: var(--ws-serif); font-size: 30px; color: var(--ws-cream); line-height: 1; font-weight: 500; letter-spacing: -.3px; }
.ed-stat-l {
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: rgba(244,230,207,.55); margin-top: 6px; font-weight: 600;
}
.ed-statplate-hair { height: 1px; background: rgba(244,230,207,.18); margin: 18px 0; }
.ed-sources { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ed-sources li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(244,230,207,.85); min-width: 0; }
.ed-sources li a { color: rgba(244,230,207,.85); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-sources li a:hover { color: var(--ws-cream); text-decoration: underline; }
.ed-source-num {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
  background: rgba(244,230,207,.12); color: var(--ws-cream);
  font-family: var(--ws-mono); font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Editorial body sections (EdSection) ───────────────────── */
.ed-body {
  padding: 34px 0 0; display: grid;
  grid-template-columns: 1.3fr 1fr; gap: 30px 48px; align-items: start;
}
.ed-col { display: flex; flex-direction: column; gap: 30px; min-width: 0; }

.ed-section-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--ws-hair-2);
}
.ed-num {
  font-family: var(--ws-serif); font-size: 32px; font-style: italic;
  color: var(--ws-red); font-weight: 500; line-height: 1;
  min-width: 38px; padding-top: 2px;
}
.ed-sec-title {
  font-family: var(--ws-serif); font-size: 30px; font-weight: 500;
  color: var(--ws-text-1); margin-top: 4px; line-height: 1.12; letter-spacing: -.3px;
}
.ed-sec-title em, .ed-sec-title i { color: var(--ws-red); }
.ed-note {
  font-size: 12px; color: var(--ws-text-3); margin-top: 6px;
  font-family: var(--ws-mono); letter-spacing: .5px;
}
.ed-prose { margin: 0; font-size: 14.5px; color: var(--ws-text-2); line-height: 1.7; }
.ed-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; }
.ed-fact-l {
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ws-text-3); font-weight: 600; padding-top: 2px;
}
.ed-fact-v { color: var(--ws-text-1); min-width: 0; overflow-wrap: break-word; }

.ed-list-item {
  padding: 10px 0; border-bottom: 1px dashed var(--ws-hair);
  display: flex; align-items: flex-start; gap: 14px;
}
.ed-list-item:last-child { border-bottom: none; }
.ed-list-num {
  font-family: var(--ws-serif); font-size: 18px; color: var(--ws-red);
  font-style: italic; width: 22px; margin-top: 1px; flex-shrink: 0;
}
.ed-list-title { font-family: var(--ws-serif); font-size: 17px; color: var(--ws-text-1); font-weight: 500; letter-spacing: -.1px; }

/* drink window bar */
.ed-window { position: relative; height: 60px; margin: 6px 0 14px; }
.ed-window-track {
  position: absolute; left: 0; right: 0; top: 24px; height: 10px;
  border-radius: 5px; overflow: hidden; background: var(--ws-hair);
}
.ed-window-seg { position: absolute; top: 0; bottom: 0; }
.ed-window-seg--aging { left: 0; width: 20%; background: var(--ws-r-aging); opacity: .85; }
.ed-window-seg--ready { left: 20%; width: 50%; background: var(--ws-r-ready); opacity: .9; }
.ed-window-seg--past  { left: 70%; width: 30%; background: var(--ws-r-past); opacity: .85; }
.ed-window-now { position: absolute; top: 12px; transform: translateX(-50%); }
.ed-window-now-line { width: 2px; height: 30px; background: var(--ws-red); margin: 0 auto; }
.ed-window-now-tag {
  margin-top: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--ws-red); color: var(--ws-cream);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  font-family: var(--ws-mono); white-space: nowrap;
  transform: translateX(-50%); margin-left: 50%;
}
.ed-window-year { position: absolute; top: 0; font-family: var(--ws-mono); font-size: 10.5px; color: var(--ws-text-3); }
.ed-window-year--start { left: 0; }
.ed-window-year--end { right: 0; }

/* evidence-basis badge */
.ed-evidence {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--ws-mono); font-size: 9.5px; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 600;
}
.ed-evidence--grounded { background: rgba(42,96,73,.12); color: var(--ws-r-ready); }
.ed-evidence--style { background: rgba(184,149,106,.16); color: #8C6D2F; }

/* ── Profile page ──────────────────────────────────────────── */
.ws-profile-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px;
  align-items: start; margin-top: 24px;
}
.ws-profile-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ws-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; margin-top: 12px; }
.ws-kv .ed-fact-v { overflow-wrap: anywhere; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ws-rail { display: none; }
  .ed-hero-grid { grid-template-columns: 200px 1fr; }
  .ed-hero-grid .ed-statplate { grid-column: 1 / -1; }
  .ed-label-col img.ed-label-img, .ed-label-slot { width: 200px; height: 260px; max-height: 260px; }
  .ed-body { grid-template-columns: 1fr; }
  .ws-profile-grid { grid-template-columns: 1fr; }
}

/* ── WS-6B(2) QA follow-up ──────────────────────────────────────
   site.css declares `.desktop-only { display: block !important; }`
   (and `display: none !important` at ≤768px), which clobbers the
   grid/flex display of ws-/ed- elements that also carry the
   desktop-only class. Re-assert the intended display at desktop
   widths only; the ≤768px `none` keeps winning, so phone behavior
   (these blocks hidden) is unchanged. */
@media (min-width: 769px) {
  .ws-glance.desktop-only { display: grid !important; }
  .ws-qpills.desktop-only { display: flex !important; }
  .ws-rail.desktop-only { display: flex !important; }
  .ed-hero-top .desktop-only { display: inline-flex !important; }
}

@media (max-width: 768px) {
  .ws-sidebar { display: none; }
  .ws-topbar { padding: 0 14px; gap: 10px; }
  .ws-search { display: none; }
  .ws-scroll { padding: 0 14px 90px; }   /* room for the tab bar */

  /* Topbar: crumbs yield, the primary action never clips off-screen. */
  .ws-crumbs { flex: 1 1 auto; }
  .ws-topbar-actions { flex-shrink: 0; margin-left: 0; }
  .ws-topbar-actions .ws-btn { padding: 0 10px; font-size: 12px; }
  .ws-main { overflow-x: hidden; }

  /* The Filters toggle opens the desktop-only panel, which is
     display:none !important at this width — hide the no-op control;
     phones use the filter bottom sheet instead. */
  #wsFilterToggle { display: none; }

  /* Legacy mobile-list status badges ("Ready to Drink") crop at
     390px; clamp with an ellipsis on the redesigned chrome only. */
  .ws-body .wine-row-right .badge {
    max-width: 96px; overflow: hidden; text-overflow: ellipsis;
  }
  .ed-hero { margin: 0 -14px; }
  .ed-hero-top, .ed-hero-grid { padding-left: 16px; padding-right: 16px; }
  .ed-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .ed-hero-title { font-size: 38px; }
  .ed-label-col img.ed-label-img, .ed-label-slot { width: 160px; height: 200px; max-height: 200px; }
  .ws-titlerow-stats .ws-stat-n { font-size: 32px; }
  .ws-glance { grid-template-columns: repeat(2, 1fr); }
  .ws-glance-cell + .ws-glance-cell { border-left: none; }
  .ws-glance-cell:nth-child(even) { border-left: 1px solid var(--ws-hair); }
  .ws-glance-cell:nth-child(n+3) { border-top: 1px solid var(--ws-hair); }
}

/* ════════════════════════════════════════════════════════════
   WS-6C — finishing pass: bring the remaining web surfaces into
   the WS-6B language. Auth/public shell, dashboard-in-shell,
   reports-in-shell overrides, and shared form-in-shell styling.
   ════════════════════════════════════════════════════════════ */

/* ── Auth / public shell (base_auth.html) ──────────────────── */
.ws-auth-body {
  background: var(--ws-bg-app); font-family: var(--ws-sans); color: var(--ws-text-1);
  min-height: 100vh; display: flex; flex-direction: column; padding-top: 0;
}
.ws-auth-header { display: flex; align-items: center; justify-content: center; padding: 26px 16px 4px; }
.ws-auth-header .ws-wordmark { padding: 0; }
.ws-auth-header .ws-wordmark-name { font-size: 22px; }
.ws-auth-main {
  flex: 1; width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; padding: 16px 16px 40px;
}

.ws-auth-card {
  width: 100%; max-width: 432px; margin: 28px auto 0;
  background: var(--ws-card); border: 1px solid var(--ws-border);
  border-radius: 16px; padding: 30px 28px 28px;
  box-shadow: 0 24px 60px -34px rgba(58,16,24,.4);
}
.ws-auth-head { text-align: center; margin-bottom: 22px; }
.ws-auth-eyebrow {
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ws-red); font-weight: 600;
}
.ws-auth-title { font-family: var(--ws-serif); font-size: 30px; font-weight: 600; color: var(--ws-ink); line-height: 1.1; margin: 6px 0 0; }
.ws-auth-sub { font-size: 13px; color: var(--ws-text-3); margin: 8px 0 0; line-height: 1.5; }

.ws-auth-field { margin-bottom: 16px; }
.ws-auth-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ws-text-2); margin-bottom: 5px; }
.ws-auth-card input[type="text"],
.ws-auth-card input[type="email"],
.ws-auth-card input[type="password"],
.ws-auth-card input[type="number"],
.ws-auth-card input:not([type]),
.ws-auth-card .form-control,
.ws-auth-card select,
.ws-auth-card textarea {
  width: 100%; border: 1px solid var(--ws-border); border-radius: 10px;
  background: #fff; color: var(--ws-text-1); font-size: 14px; padding: 9px 12px;
}
.ws-auth-card input:focus,
.ws-auth-card .form-control:focus,
.ws-auth-card select:focus,
.ws-auth-card textarea:focus {
  border-color: var(--ws-red); box-shadow: 0 0 0 3px rgba(114,47,55,.12); outline: none;
}
.ws-auth-card .form-text, .ws-auth-card .helptext, .ws-auth-card small { color: var(--ws-text-3); font-size: 11.5px; }
.ws-auth-card ul.errorlist { list-style: none; margin: 6px 0 0; padding: 0; }
.ws-auth-card a { color: var(--ws-red); font-weight: 600; text-decoration: none; }
.ws-auth-card a:hover { text-decoration: underline; }
.ws-auth-alt { text-align: center; font-size: 13px; color: var(--ws-text-3); margin: 18px 0 0; }
.ws-auth-links { text-align: center; font-size: 12.5px; margin: 14px 0 0; }

.ws-btn--block { width: 100%; justify-content: center; height: 44px; font-size: 13.5px; }
.ws-btn--danger { border: none; background: var(--ws-r-past); color: #fff; }
.ws-btn--danger:hover { background: #6f1d2a; color: #fff; }

.ws-auth-prose {
  width: 100%; max-width: 768px; margin: 8px auto 0;
  background: var(--ws-card); border: 1px solid var(--ws-border);
  border-radius: 16px; padding: 34px 38px;
}
.ws-auth-prose h1 { font-family: var(--ws-serif); font-size: 34px; font-weight: 600; color: var(--ws-ink); margin: 0 0 4px; }
.ws-auth-prose h2 { font-family: var(--ws-serif); font-size: 22px; font-weight: 600; color: var(--ws-text-1); margin: 26px 0 8px; }
.ws-auth-prose p, .ws-auth-prose li { font-size: 14.5px; color: var(--ws-text-2); line-height: 1.7; }
.ws-auth-prose code { font-family: var(--ws-mono); font-size: 12.5px; }
.ws-auth-prose a { color: var(--ws-red); font-weight: 600; }

.ws-auth-foot { text-align: center; padding: 18px 16px 26px; }
.ws-auth-foot-links { display: flex; gap: 16px; justify-content: center; }
.ws-auth-foot-links a {
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ws-text-4); text-decoration: none;
}
.ws-auth-foot-links a:hover { color: var(--ws-text-2); }
.ws-auth-foot-copy { font-size: 11.5px; color: var(--ws-text-4); margin: 10px 0 0; }

@media (max-width: 768px) {
  .ws-auth-card, .ws-auth-prose { box-shadow: none; }
  .ws-auth-prose { padding: 24px 20px; }
}

/* ── Dashboard in the app shell (dashboard.html) ───────────── */
.ws-dash-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
  align-items: start; margin-bottom: 24px;
}
.ws-dspan-12 { grid-column: span 12; }
.ws-dspan-8  { grid-column: span 8; }
.ws-dspan-6  { grid-column: span 6; }
.ws-dspan-4  { grid-column: span 4; }
.ws-dash-card { display: flex; flex-direction: column; }
.ws-dash-card--accent {
  background: linear-gradient(135deg, var(--ws-red) 0%, var(--ws-deep) 100%);
  border: none; color: var(--ws-cream);
}
.ws-dash-card--accent .ws-eyebrow, .ws-dash-card--accent .ws-eyebrow--red { color: rgba(244,230,207,.72); }
.ws-dash-big { font-family: var(--ws-serif); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -.5px; margin-top: 8px; }
.ws-dash-big small { font-size: 15px; color: var(--ws-text-2); font-weight: 500; font-family: var(--ws-sans); }
.ws-dash-card--accent .ws-dash-big { color: var(--ws-cream); }
.ws-dash-card--accent .ws-dash-big small { color: rgba(244,230,207,.82); }
.ws-dash-title { font-family: var(--ws-serif); font-size: 20px; font-weight: 500; margin-top: 4px; line-height: 1.25; color: var(--ws-text-1); }
.ws-dash-caption { font-size: 12.5px; color: var(--ws-text-2); margin-top: 6px; line-height: 1.5; }
.ws-dash-splits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.ws-dash-split { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.08); text-decoration: none; }
.ws-dash-split:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.ws-dash-split-n { font-family: var(--ws-serif); font-size: 26px; line-height: 1; font-weight: 600; color: var(--ws-cream); }
.ws-dash-split-l { font-family: var(--ws-mono); font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(244,230,207,.72); font-weight: 600; }
.ws-dash-foot { margin-top: auto; padding-top: 14px; }
.ws-dash-link { font-size: 12px; font-weight: 600; color: var(--ws-red); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ws-dash-link:hover { text-decoration: underline; color: var(--ws-red); }
.ws-dash-card--accent .ws-dash-link { color: var(--ws-cream-2); }
.ws-dash-card--accent .ws-dash-link:hover { color: var(--ws-cream); }
.ws-dash-comp { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.ws-dash-comp-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--ws-text-1); }
.ws-dash-comp-row:hover { color: var(--ws-red); text-decoration: none; }
.ws-dash-comp-sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ws-dash-comp-label { flex: 1; font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-dash-comp-n { font-family: var(--ws-mono); font-size: 11.5px; color: var(--ws-text-2); font-weight: 600; }
.ws-dash-comp-pct { font-family: var(--ws-mono); font-size: 10.5px; color: var(--ws-text-4); min-width: 38px; text-align: right; }
.ws-dash-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ws-dash-tag {
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--ws-bg-gray);
  color: var(--ws-text-2); font-weight: 600;
}
.ws-dash-ringrow { display: flex; align-items: center; gap: 14px; margin-top: 6px; }

@media (max-width: 980px) {
  .ws-dspan-8, .ws-dspan-6, .ws-dspan-4 { grid-column: span 12; }
}
@media (max-width: 768px) {
  .ws-dash-grid { grid-template-columns: 1fr; }
  .ws-dspan-12, .ws-dspan-8, .ws-dspan-6, .ws-dspan-4 { grid-column: span 1; }
  .ws-dash-splits { grid-template-columns: repeat(2, 1fr); }
  .ws-dash-big { font-size: 34px; }
}

/* ── Reports in the app shell (reports.html) ───────────────── */
/* Keep all report-* markup + charts.js hooks; re-skin surfaces to WS-6B. */
.ws-scroll .reports-header { display: none; }          /* replaced by .ws-titlerow */
.ws-scroll .reports-tabs { margin: 0 0 18px; }
.ws-scroll .reports-tab.active { color: var(--ws-red); }
.ws-scroll .reports-pane.active { gap: 16px; }
.ws-scroll .report-card { border-color: var(--ws-border); border-radius: 14px; box-shadow: none; }
.ws-scroll .report-card-title { font-family: var(--ws-serif); font-weight: 500; color: var(--ws-text-1); font-size: 1.3rem; }
.ws-scroll .report-card-title i { color: var(--ws-red); }
.ws-scroll .report-card-sub { color: var(--ws-text-3); }
.ws-scroll .report-section-title { color: var(--ws-text-2); }

/* ── Forms inside the app shell (edit_wine, consume_form) ──── */
.ws-form-card { max-width: 760px; margin: 0 auto; }
.ws-form .form-section {
  background: var(--ws-card); border: 1px solid var(--ws-border);
  border-radius: 12px; box-shadow: none; margin-bottom: 16px; overflow: hidden;
}
.ws-form .form-section-header {
  background: #FAF8F3; border-bottom: 1px solid var(--ws-border);
  font-family: var(--ws-mono); font-size: 10px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ws-text-3); font-weight: 600; padding: 10px 18px;
}
.ws-form .form-section-body { padding: 16px 18px 8px; }
.ws-form label, .ws-form .form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ws-text-2); margin-bottom: 4px; }
.ws-form .form-control,
.ws-form .form-select,
.ws-form select,
.ws-form textarea,
.ws-form input[type="text"],
.ws-form input[type="number"],
.ws-form input[type="date"],
.ws-form input[type="email"] {
  border: 1px solid var(--ws-border); border-radius: 10px; background: #fff;
  color: var(--ws-text-1); font-size: 14px;
}
.ws-form .form-control:focus,
.ws-form .form-select:focus,
.ws-form select:focus,
.ws-form textarea:focus,
.ws-form input:focus {
  border-color: var(--ws-red); box-shadow: 0 0 0 3px rgba(114,47,55,.12); outline: none;
}
.ws-form .form-text { color: var(--ws-text-3); font-size: 11.5px; }
.ws-form .list-group-item.active,
.ws-form .form-check-input:checked { background-color: var(--ws-red); border-color: var(--ws-red); }
.ws-form-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Consume header card thumbnail */
.ws-consume-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ws-consume-thumb { width: 64px; height: 86px; object-fit: contain; border-radius: 8px; background: var(--ws-bg-gray); border: 1px solid var(--ws-border); flex-shrink: 0; }
.ws-consume-head-name { font-family: var(--ws-serif); font-size: 20px; font-weight: 500; color: var(--ws-text-1); line-height: 1.2; }
.ws-consume-head-sub { font-family: var(--ws-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ws-text-3); margin-top: 4px; }
