/* Falbo Stock styles. Built by tools/build.py from app/css/. */
/* Falbo Stock styles. Built by tools/build.py. */

/* Layout: responsive phone-to-tablet app. Sticky header, one scrolling column, fixed bottom tabs.
   Count: areas -> area screen. Duties: per-list daily checkoffs. Restock/Order: read-outs of the latest counts. */
:root {
  --bg: #eef1f3;
  --surface: #ffffff;
  --ink: #14202a;
  --muted: #5b6b78;
  --line: #d3dbe1;
  --accent: #1c5d99;
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --low: #b3541a;
  --out: #b3261e;
  --tint: #e3edf6;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171e; --surface: #17222b; --ink: #e8eef2; --muted: #93a3b0; --line: #2b3a46;
    --accent: #6aa7e0; --accent-ink: #0b1620; --ok: #55c38b; --low: #f0a060; --out: #ff8a80; --tint: #1b2c3b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f171e; --surface: #17222b; --ink: #e8eef2; --muted: #93a3b0; --line: #2b3a46;
  --accent: #6aa7e0; --accent-ink: #0b1620; --ok: #55c38b; --low: #f0a060; --out: #ff8a80; --tint: #1b2c3b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { 
  background: var(--bg); 
  color: var(--ink); 
  margin: 0;
  overflow-x: hidden;
}
body { 
  font-family: var(--font-body); 
  font-size: 16px; 
  line-height: 1.35; 
  padding-inline: 16px; 
  padding-block: 0 calc(90px + env(safe-area-inset-bottom, 0px)); 
  max-width: 860px; 
  margin-inline: auto; 
  -webkit-text-size-adjust: 100%; 
  -webkit-tap-highlight-color: transparent; 
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }

header.top { 
  position: sticky; 
  top: 0; 
  z-index: 5; 
  background: var(--bg); 
  padding-block: calc(12px + env(safe-area-inset-top, 0px)) 8px; 
  display: flex; 
  align-items: baseline; 
  justify-content: space-between; 
  gap: 12px; 
  border-bottom: 1px solid var(--line); 
  margin-inline: -16px; 
  padding-inline: 16px; 
}
header.top h1 { font-size: clamp(24px, 5vw, 30px); }
header.top .meta { color: var(--muted); font-size: 14px; text-align: right; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; padding-block: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Responsive Summary Metrics */
.summary { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
  gap: 8px; 
}
.summary .panel { padding: 10px 12px; }
.summary b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.summary span { font-size: 13px; color: var(--muted); }

.group-title { font-size: 20px; margin-top: 10px; }
.area-btn { 
  width: 100%; 
  text-align: left; 
  padding: 14px 16px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: 10px; 
  min-height: 48px;
}
.area-btn:active { background: var(--tint); }
.area-btn .name { font-weight: 600; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--ok); }
.chev { color: var(--muted); font-size: 20px; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.chip.low { color: var(--low); } .chip.out { color: var(--out); } .chip.ok { color: var(--ok); } .chip.stale { color: var(--muted); }

/* --- Sub-Tabs and Segmented Buttons --- */
.seg { 
  display: flex; 
  gap: 8px; 
  flex-wrap: nowrap; 
  overflow-x: auto; 
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
  padding-block: 4px 6px;
  scroll-snap-type: x mandatory;
}
.seg::-webkit-scrollbar { display: none; }
.seg button { 
  flex: 0 0 auto; 
  scroll-snap-align: start;
  white-space: nowrap; 
  padding: 8px 16px; 
  min-height: 40px;
  border-radius: 999px; 
  border: 1px solid var(--line); 
  background: var(--surface); 
  font-weight: 600; 
  font-size: 14px;
}
.seg button[aria-pressed="true"] { 
  background: var(--accent); 
  color: var(--accent-ink); 
  border-color: var(--accent); 
}

.back { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 10px 0; text-align: left; min-height: 44px; }
.item { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.item .top { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.item .nm { font-weight: 600; word-break: break-word; }
.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper button { width: 52px; min-height: 46px; font-size: 24px; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; }
.stepper input { width: 84px; min-height: 46px; text-align: center; font-size: 22px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 8px 4px; }
.stepper .same { width: auto; min-height: 46px; padding-inline: 14px; font-size: 14px; font-weight: 600; color: var(--accent); background: transparent; }
.item.done { border-color: var(--ok); }

.savebar { 
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: calc(60px + env(safe-area-inset-bottom, 0px)); 
  padding: 10px 16px; 
  background: var(--bg); 
  border-top: 1px solid var(--line); 
  display: flex; 
  justify-content: center; 
  z-index: 6; 
}
.savebar button { width: 100%; max-width: 828px; }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: 17px; min-height: 46px; }
.btn.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; min-height: 36px; }
.btn[disabled] { opacity: .5; }

/* Bottom Nav Tabs */
nav.tabs { 
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  z-index: 7; 
  background: var(--surface); 
  border-top: 1px solid var(--line); 
  padding-bottom: env(safe-area-inset-bottom, 0px); 
  display: flex; 
  justify-content: center;
}
nav.tabs button { 
  flex: 1; 
  max-width: 180px; 
  background: none; 
  border: 0; 
  padding: 10px 4px 12px; 
  font-family: var(--font-display); 
  font-size: 17px; 
  font-weight: 700; 
  letter-spacing: .02em; 
  color: var(--muted); 
  position: relative; 
  min-width: 0; 
  min-height: 48px;
}
nav.tabs button[aria-current="page"] { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
nav.tabs .badge { position: absolute; top: 4px; right: calc(50% - 28px); font-family: var(--font-body); font-size: 11px; min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--out); color: #fff; }

.supplier { padding: 12px; }
.supplier h3 { font-size: 22px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); align-items: center; }
.line:first-of-type { border-top: 0; }
.line .qty { font-family: var(--font-display); font-size: 22px; white-space: nowrap; }
.line label { display: flex; gap: 12px; align-items: center; min-width: 0; cursor: pointer; flex: 1; }
.line input[type=checkbox] { width: 26px; height: 26px; flex: none; accent-color: var(--accent); }
.line.ticked .t { text-decoration: line-through; color: var(--muted); }
.line.sub { padding-left: 28px; }
.phase { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: var(--tint); padding: 6px 12px; border-radius: 6px; font-family: var(--font-display); font-weight: 700; margin-top: 4px; }
.rule { background: #fff2cc; color: #3b2f00; font-weight: 600; padding: 8px 12px; border-radius: 6px; margin-block: 4px; font-size: 14px; }
:root[data-theme="dark"] .rule { background: #4a3d10; color: #ffe9a6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rule { background: #4a3d10; color: #ffe9a6; } }

.field { display: flex; flex-direction: column; gap: 4px; }
.field input, .field select, .field textarea,
.edit > input:not([type=checkbox]):not([type=file]), .edit .row > .grow > input, .edit .stack > input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); width: 100%; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.edit { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.itemrow { width: 100%; text-align: left; background: none; border: 0; padding: 12px; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.empty { padding: 24px 16px; text-align: center; color: var(--muted); }
.notice { padding: 10px 12px; background: var(--tint); border-radius: 8px; font-size: 14px; }
.notice.error { background: var(--out); color: #fff; }
.search { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--surface); }

/* Day Switcher */
.days { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: 1; min-width: 36px; min-height: 38px; padding: 6px 0; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; }
.days button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.tool { display: flex; gap: 6px; }
.tool button { min-width: 40px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; }

.hello { font-size: clamp(26px, 4vw, 32px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.tile { text-align: left; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 88px; color: inherit; }
.tile b { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.tile span { font-size: 13px; color: var(--muted); }
.tile:not([disabled]):active { background: var(--tint); }
.tile.good b { color: var(--ok); } .tile.warn b { color: var(--low); } .tile.bad b { color: var(--out); }
.tile.bad { border-color: var(--out); }
.linebtn { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; align-items: center; cursor: pointer; padding: 12px; }
.panel h3 + .linebtn { border-top: 0; }

.sched { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--bg); border-radius: 8px; }
.chip.date { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); padding: 3px 4px 3px 10px; }
.chip.date.past { color: var(--muted); text-decoration: line-through; }
.chip .x { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; padding: 0 6px; min-height: 28px; }

.install { border: 2px solid var(--accent); }
.steps { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.net-banner { position: sticky; top: 0; z-index: 9; background: var(--out); color: #fff; padding: 10px 16px; margin-inline: -16px; font-weight: 600; text-align: center; }

/* Sign-in screen */
body.is-login { padding-block: 24px 40px; }
.login { max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand h1 { font-size: 34px; }
.login-card { padding: 16px; }
.login .stack { padding-block: 6px; }
.login input[type=text], .login input[type=password] { font-size: 20px; padding: 12px; }
.btn.big { font-size: 20px; padding: 14px 16px; width: 100%; min-height: 52px; }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.who { padding: 14px 10px; font-size: 18px; font-weight: 600; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.who.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.who.other { font-weight: 500; color: var(--muted); }

/* Setup page */
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.checks li.ok b { color: var(--ok); } .checks li.bad b { color: var(--out); } .checks li.bad { color: var(--out); }

/* ==========================================================================
   Duties Header, Toolbar & Status Card Layout
   ========================================================================== */

/* 1. Category Switcher Strip (BOH, FOH, Bathroom...) */
.duty-nav-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.duty-nav-strip::-webkit-scrollbar {
  display: none;
}
.duty-nav-strip button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
}
.duty-nav-strip button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* 2. Structured Two-Sided Toolbar */
.duties-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 4px 6px;
}

/* Step Segmented Switch (1. Plan / 2. To-do) */
.duty-step-pills {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.duty-step-pills button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.duty-step-pills button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Right-Side Action Cluster (Print, Start over, Edit) */
.duty-actions-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.duty-actions-cluster button {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* 3. Consolidated Status Card (Progress + Everyone/Just Mine) */
.duty-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-block: 4px 10px;
}
.duty-status-card .status-left {
  flex: 1;
  min-width: 220px;
}
.duty-status-card .count-text {
  font-size: 15px;
  font-weight: 700;
}

/* Segmented Scope Toggle (Everyone's duties / Just mine) */
.duty-scope-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.duty-scope-toggle button {
  padding: 5px 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.duty-scope-toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustment for phones */
@media (max-width: 540px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stepper button { width: 44px; }
  .stepper input { width: 70px; }
  .duties-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .duty-actions-cluster {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .duty-status-card {
    flex-direction: column;
    align-items: stretch;
  }
  .duty-scope-toggle {
    width: 100%;
  }
  .duty-scope-toggle button {
    flex: 1;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .summary { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: no-preference) { .bar > i { transition: width .25s; } }
@media print { nav.tabs, header.top, .net-banner { display: none; } }
/* ==========================================================================
   Duties screen (web). Big targets, one clear next step, tools tucked away.
   ========================================================================== */
.duties { gap: 12px; }

/* Which list: scrollable chips with a count of what's left */
.list-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.list-chips::-webkit-scrollbar { display: none; }
.list-chips button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.list-chips button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.list-chips .chip-count { font-family: var(--font-body); font-size: 13px; font-weight: 700; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--accent); }
.list-chips button[aria-selected="true"] .chip-count { background: var(--accent-ink); color: var(--accent); }
.list-chips button.has-missed .chip-count { background: var(--out); color: #fff; }
.list-chips .chip-done { color: var(--ok); font-size: 16px; }
.list-chips button[aria-selected="true"] .chip-done { color: var(--accent-ink); }
.list-chips .chip-gap { flex: 0 0 1px; align-self: stretch; margin: 8px 4px; background: var(--line); }

/* Where the list stands */
.list-status { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.list-status h2 { font-size: 26px; }
.big-count { font-size: 18px; color: var(--muted); }
.big-count b { font-family: var(--font-display); font-size: 34px; color: var(--ink); line-height: 1; margin-right: 2px; }
.list-status .bar { height: 10px; border-radius: 5px; margin-top: 0; }

/* Check off | Plan the list, and Everyone | Mine, Today | Tomorrow */
.mode-switch, .scope { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.mode-switch { margin-top: 4px; }
.mode-switch button, .scope button { min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 16px; }
.mode-switch button[aria-selected="true"], .scope button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.scope { background: var(--surface); }

/* Task rows */
.tasklist { padding: 4px 14px 10px; }
.tasklist .phase { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.tasklist .phase:first-child { margin-top: 8px; }
.phase-count { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 600; }
.task-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.line.task { padding-block: 12px; }
.line.task label { align-items: flex-start; }
.line.task input[type=checkbox] { width: 30px; height: 30px; margin-top: -2px; }
.line.task.ticked .task-name { text-decoration: line-through; color: var(--muted); }
.assignee { color: var(--accent); font-weight: 600; }
.tasklist .rule { margin-block: 8px 2px; }

/* Plan rows: name, then two big answers */
.plan-help { font-size: 15px; padding-inline: 2px; }
.plan-help b { color: var(--ink); }
.plan-help span { color: var(--muted); }
.line.plan-row { flex-direction: column; align-items: stretch; gap: 8px; padding-block: 12px; }
.line.plan-row.unanswered { box-shadow: inset 4px 0 0 var(--low); padding-left: 12px; margin-left: -14px; padding-right: 0; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yesno button { min-height: 46px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; }
.yesno .yes[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.yesno .no[aria-pressed="true"] { background: var(--muted); border-color: var(--muted); color: #fff; }
select.assign { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); font-size: 15px; }

/* Finish card at the bottom of a list */
.finish { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.finish .grid2 { grid-template-columns: 1fr 1fr; }
.btn.big[disabled] { background: var(--line); color: var(--muted); opacity: 1; }

/* List tools (managers), folded by default */
.tools { padding: 0; overflow: hidden; }
.tools-head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; background: none; border: 0; color: var(--ink); font-weight: 700; font-size: 16px; text-align: left; }
.tools-head .muted { font-weight: 500; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.tools-grid .btn { font-size: 15px; }
.tools > .notice, .tools > .panel { margin: 0 14px 14px; }
.btn.danger { color: var(--out); border-color: var(--out); }

@media (max-width: 380px) {
  .tools-grid, .finish .grid2 { grid-template-columns: 1fr; }
  .list-chips button { font-size: 17px; padding: 0 14px; }
}

/* Left over from earlier days */
.leftover { border: 2px solid var(--out); }
.leftover h3 { color: var(--out); font-size: 20px; }
.leftover .line { align-items: center; padding-block: 10px; }
.leftover .task-name { font-size: 16px; }

/* Count home */
.notice.warn-line { background: transparent; border: 1px solid var(--low); color: var(--low); font-weight: 600; }
.pick-title { font-size: 24px; margin-top: 4px; }
.count-tools { padding: 0; }

/* Count card */
.fracs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fracs button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 17px; }
.fracs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.count-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count-foot .now { font-weight: 700; font-size: 16px; color: var(--muted); }
.count-foot .skip { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }

/* ==========================================================================
   Screen sizes: phone (one column) → tablet → laptop and widescreen
   ========================================================================== */
@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
  .tools-grid .btn[style*="grid-column"] { grid-column: auto !important; }
  .yesno { max-width: 420px; }
  .plan-row .assign { max-width: 420px; }
}
@media (min-width: 1024px) {
  body { max-width: 1240px; padding-inline: 28px; }
  header.top { margin-inline: -28px; padding-inline: 28px; }
  .list-chips { margin-inline: 0; padding-inline: 0; }
  nav.tabs button { max-width: 200px; }

  /* Home: greeting and tiles across the top, cards in two columns */
  .home { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .home > * { grid-column: 1 / -1; }
  .home > .panel.supplier { grid-column: auto; }
  .home .tiles { grid-template-columns: repeat(6, 1fr); }

  /* Duties: list status and tools on the left, the checklist on the right */
  .duties { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-auto-flow: row dense; column-gap: 20px; row-gap: 12px; align-items: start; }
  .duties > * { grid-column: 1 / -1; }
  .duties > .list-status, .duties > .leftover, .duties > .tools { grid-column: 1; }
  .duties > .duty-main { grid-column: 2; grid-row: 2 / span 6; }
  .duties > .list-status { position: sticky; top: 96px; }

  /* Count: areas and count cards side by side */
  .stack:has(> .area-btn) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .stack:has(> .area-btn) > :not(.area-btn) { grid-column: 1 / -1; }
  .stack:has(> .panel.item) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-items: start; }
  .stack:has(> .panel.item) > :not(.panel.item) { grid-column: 1 / -1; }
  .savebar button { max-width: 520px; }
}
@media (min-width: 1440px) {
  body { max-width: 1360px; }
  .stack:has(> .area-btn), .stack:has(> .panel.item) { grid-template-columns: repeat(3, 1fr); }
}

/* Assign on each duty (managers) */
select.assign-inline { display: block; margin-top: 6px; min-height: 38px; padding: 4px 10px; font-size: 14px; width: 240px; max-width: 100%; color: var(--muted); }
select.assign-inline.set { color: var(--accent); font-weight: 600; border-color: var(--accent); }

/* Home quick actions */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; min-height: 88px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; }
.quick-btn .ico { font-size: 24px; line-height: 1.1; }
.quick-btn .small { font-weight: 500; color: var(--muted); }
.quick-btn.due { border-color: var(--low); }
.quick-btn.due .small { color: var(--low); font-weight: 700; }

/* Waste log */
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reason { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; text-align: left; }
.reason .ico { font-size: 22px; }
.reason[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.pick[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Temperatures */
.temps { padding: 4px 14px 10px; }
.temp-row { flex-wrap: wrap; padding-block: 12px; }
.temp-row.ok { box-shadow: inset 4px 0 0 var(--ok); padding-left: 12px; margin-left: -14px; }
.temp-row.bad { box-shadow: inset 4px 0 0 var(--out); padding-left: 12px; margin-left: -14px; }
.temp-in { display: flex; align-items: center; gap: 6px; }
.temp-in input { width: 84px; min-height: 46px; text-align: center; font-size: 20px; font-weight: 700; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.temp-note { flex-basis: 100%; }
.temp-note input { width: 100%; min-height: 44px; border: 2px solid var(--out); border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.unit-edit { display: grid; grid-template-columns: 1fr 64px 64px auto auto; gap: 6px; align-items: center; }
.unit-edit input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg); min-width: 0; }

/* Dough prep */
.prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-block: 8px; }
.prep-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.prep-cell b { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.prep-cell span { font-size: 13px; color: var(--muted); }

/* Settings */
.codebox { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; }

@media (max-width: 380px) { .unit-edit { grid-template-columns: 1fr 56px 56px; } .unit-edit .btn { grid-column: span 1; } }
@media (min-width: 1024px) { .home .quick { grid-template-columns: repeat(3, 1fr); } }

/* Manager Home: waiting for your OK */
.appr-card { border: 2px solid var(--low); }
.appr-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.area-btn.due { border: 2px solid var(--ok); }
.order-day { border: 2px solid var(--ok); }

/* ==========================================================================
   Schedule
   ========================================================================== */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav .btn { min-width: 48px; font-size: 22px; padding: 6px 12px; }
.wk-label { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wk-label b { font-size: 17px; }
.sched-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.day-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-chips button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; min-height: 64px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; }
.day-chips button b { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.day-chips button .small { font-size: 10px; color: var(--muted); font-weight: 500; }
.day-chips button.is-today { border-color: var(--accent); }
.day-chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day-chips button[aria-pressed="true"] .small { color: var(--accent-ink); }
.shift-card { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 5px solid var(--accent); background: var(--bg); color: var(--ink); }
.shift-card .sc-who { font-weight: 700; font-size: 17px; }
.shift-card.open { border-left-color: var(--low); }
.shift-card.open .sc-who { color: var(--low); }
.shift-card.draft { border-style: dashed; border-left-style: solid; }
.shift-edit { border: 2px solid var(--accent); border-radius: 12px; }
.shift-edit input[type=time], .shift-edit select, .shift-edit input[type=text] { min-height: 44px; }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk-grid { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
.wk-grid th, .wk-grid td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: left; }
.wk-grid thead th { position: sticky; top: 0; background: var(--surface); font-family: var(--font-display); font-size: 15px; }
.wk-grid thead th.is-today { color: var(--accent); }
.wk-grid th.wg-who { white-space: nowrap; font-weight: 700; }
.wk-grid td.off { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--tint) 6px 12px); }
.wk-grid td.over { color: var(--out); font-weight: 700; }
.wk-grid .totals th, .wk-grid .totals td { font-weight: 700; border-top: 2px solid var(--line); }
.cell-shift { display: block; width: 100%; margin-bottom: 4px; padding: 4px 6px; border-radius: 6px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; text-align: left; white-space: nowrap; }
.cell-shift.draft { background: transparent; color: var(--accent); outline: 2px dashed var(--accent); outline-offset: -2px; }
.cell-shift.warn { background: var(--out); color: #fff; }
.cell-add { width: 100%; min-height: 28px; border: 1px dashed var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.mhead { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.mday { min-height: 70px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-align: left; min-width: 0; overflow: hidden; }
.mday b { font-size: 15px; }
.mday .small { font-size: 11px; color: var(--muted); }
.mday.other { opacity: .45; }
.mday.is-today { border-color: var(--accent); border-width: 2px; }
.dot { font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 6px; white-space: nowrap; }
.dot.open { background: var(--low); color: #fff; }
.dot.draft { border: 1px dashed var(--accent); color: var(--accent); }
.tpl-edit { display: grid; grid-template-columns: 1fr 96px 96px 1fr auto auto; gap: 6px; align-items: center; }
.tpl-edit input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg); min-width: 0; }
.next-shift { padding: 16px; border: 2px solid var(--accent); display: flex; flex-direction: column; gap: 4px; }
.next-shift .big { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.next-shift .time { font-size: 20px; font-weight: 700; color: var(--accent); }
.line.mine { background: var(--tint); border-radius: 8px; padding-inline: 8px; }
.panel.is-today { border-color: var(--accent); }
.swap-pick { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 600px) {
  .tpl-edit { grid-template-columns: 1fr 1fr; }
  .tpl-edit input:first-child { grid-column: 1 / -1; }
  .mday { min-height: 56px; padding: 4px; }
  .mday .dot.draft { display: none; }
}

.wk-grid th.wg-who { position: sticky; left: 0; z-index: 1; background: var(--surface); }

/* Staff: tap days off on a calendar */
.off-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.off-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.off-day { min-height: 54px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 6px 2px; font: inherit; cursor: pointer; }
.off-day .n { font-weight: 700; }
.off-day .tag { font-size: 10px; line-height: 1.1; padding: 1px 4px; border-radius: 6px; background: var(--surface); }
.off-day .tag.work, .off-key.work { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.off-day.pending, .off-key.pending { background: color-mix(in srgb, var(--low) 22%, transparent); }
.off-day.approved, .off-key.approved { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.off-day.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.off-day.today { border: 2px solid var(--accent); }
.off-day.past, .off-day:disabled { opacity: .45; cursor: default; }
.off-day.pending:disabled, .off-day.approved:disabled { opacity: 1; }
.off-key { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; }

/* ==========================================================================
   Chat
   ========================================================================== */
.ch-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); text-align: left; min-height: 64px; }
.ch-row.unread .ch-name, .ch-row.unread .ch-last { font-weight: 700; color: var(--ink); }
.ch-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-name { font-weight: 600; font-size: 16px; }
.ch-last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.badge-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--out); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; background: var(--tint); color: var(--accent); }
.avatar.ann { background: var(--low); color: #fff; }
.avatar.team { background: var(--accent); color: var(--accent-ink); }
.chat-conv { padding-bottom: 96px; }
.conv-head { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 4; background: var(--bg); padding-block: 6px; }
.conv-head h2 { font-size: 22px; }
.msgs { display: flex; flex-direction: column; gap: 2px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 0 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; margin-top: 8px; }
.msg.grouped { margin-top: 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.ann { max-width: 100%; align-self: stretch; }
.msg-name { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 10px 2px; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 8px 12px; font-size: 16px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 16px 16px 6px 16px; }
.msg.ann .bubble { border-radius: 12px; border-left: 4px solid var(--low); width: 100%; }
.bubble img { display: block; max-width: 240px; max-height: 320px; border-radius: 10px; margin-bottom: 4px; }
.msg-meta { font-size: 11px; color: var(--muted); padding: 2px 8px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; }
.readers { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.msg-actions { margin-top: 4px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 6; display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--line); max-width: 860px; margin-inline: auto; }
.composer-input { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; border: 1px solid var(--line); border-radius: 22px; padding: 10px 14px; background: var(--bg); font-size: 16px; line-height: 1.3; }
.composer .btn { min-height: 44px; border-radius: 22px; }
.photo-btn { width: 44px; padding: 0; font-size: 20px; flex: none; }
@media (min-width: 1024px) { .composer { max-width: 1240px; } .msg { max-width: 60%; } }
.msg-text .msg-link { display: inline-flex; margin-top: 6px; }
.msg-text a { color: inherit; text-decoration: underline; word-break: break-all; }

/* Hold to select (Android Messages style) */
.ch-row, .bubble { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ch-row.picked { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.avatar.checked { background: var(--accent); color: var(--accent-ink); }
.msg.picked .bubble { outline: 3px solid var(--accent); outline-offset: 2px; }
.sel-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--accent); }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 20px; cursor: pointer; }
.icon-btn.danger { color: var(--out); }
.icon-btn:disabled { opacity: .4; }
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.sheet { width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.sheet h3 { margin: 0; }
.sheet-btns { display: grid; gap: 8px; margin-top: 4px; }
.sheet-btns .btn { min-height: 48px; }
.btn.danger:not(.alt) { background: var(--out); border-color: var(--out); color: var(--bg); }

/* Email: account-menu choices, Settings → Email, login "forgot" link */
.email-checks { display: grid; gap: 4px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-radius: 8px; cursor: pointer; }
.check-row:hover { background: var(--bg); }
.check-row input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.check-row span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
details.smtp { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
details.smtp[open] { display: grid; gap: 10px; padding-bottom: 12px; }
details.smtp summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.login-forgot { text-align: center; margin: 4px 0 0; }
.login-forgot a, .is-login .back, .is-login p a { color: var(--accent); }
.login-forgot a { display: inline-block; padding: 10px 6px; font-weight: 600; }

/* PIN sign-in */
.pin-login { align-items: stretch; }
.pin-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pin-dots { display: flex; justify-content: center; gap: 14px; min-height: 22px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; width: 100%; margin-inline: auto; }
.pin-pad button { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 28px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.pin-pad button:active { background: var(--accent); color: var(--accent-ink); }
.pin-pad .pin-fn { font-size: 16px; color: var(--muted); }
.login-links { display: grid; gap: 4px; margin-top: 12px; }
.linkish { background: none; border: 0; padding: 10px 6px; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
/* Voice: header mic, listening panel, review lines */
header.top { align-items: center; }
.top-right { display: flex; align-items: center; gap: 10px; }
.mic-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.mic-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mic-btn span[aria-hidden] { font-size: 18px; line-height: 1; }
@media (max-width: 420px) { .top-right .meta { display: none; } }
.voice { gap: 12px; }
.voice textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); font-size: 16px; resize: vertical; }
.mic-big { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 76px; border-radius: 16px; border: 2px dashed var(--accent); background: transparent; font-size: 20px; font-weight: 700; cursor: pointer; }
.mic-big .mic-ico { font-size: 30px; }
.mic-big.on { border-style: solid; background: var(--accent); color: var(--accent-ink); animation: mic-pulse 1.4s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mic-big.on { animation: none; } }
.voice-review { gap: 8px; }
.v-line { align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.v-line .stack { gap: 6px; }
.v-line select, .v-line input[type=text], .v-line input[type=time] { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); font-size: 16px; max-width: 100%; min-width: 0; }
.v-line input[type=text] { width: 100%; }
.v-line .x { min-width: 36px; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 20px; cursor: pointer; }
.v-ask { border-color: var(--low); background: color-mix(in srgb, var(--low) 8%, transparent); }
.v-guess { border-color: color-mix(in srgb, var(--low) 60%, var(--line)); }
.chip.note { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.v-notes h3 { margin: 0 0 4px; }
/* Facebook posts */
.soc-compose { gap: 10px; }
.soc-photo { width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.soc-empty { display: grid; place-items: center; gap: 4px; min-height: 160px; border: 2px dashed var(--line); border-radius: 12px; }
.soc-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); font-size: 16px; resize: vertical; }
.soc-idea { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; white-space: pre-wrap; }
.soc-idea:hover { border-color: var(--accent); }
.soc-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.soc-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.soc-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.soc-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
