/* Lady Liberty app styles. Tokens match the design canvas (docs/design/ui-ux/). Light theme only (owner). */
@import url("fonts.css");

:root {
  --bg: #F2F5FA; --surface: #FFFFFF; --surface-2: #F7F9FC; --ink: #0F1E36; --muted: #5A6A81; --line: #DAE1EC;
  --navy: #0A2756; --navy-2: #1A3F7D; --navy-soft: #E7EDF7; --navy-text: #C9D6EC;
  --red: #C8102E; --red-dark: #A00D25; --red-soft: #FDE9EC;
  --ok: #17804A; --ok-dark: #136B3D; --ok-soft: #E2F4E9;
  --warn: #A86200; --warn-dark: #8A4F00; --warn-soft: #FFF2D9;
  --c-b: #2563EB; --c-q: #7C3AED; --c-nyc: #D97706; --c-bx: #0D9488; --c-si: #DB2777;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 1px 2px rgba(10,39,86,.07), 0 3px 10px rgba(10,39,86,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--f-body); }
h1, h2 { font-family: var(--f-display); color: var(--navy); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
p { margin: 0; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; }
.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.spacer { flex: 1 1 auto; }

/* Brand bar */
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 24px;
  background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.brand-name { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  font: 700 24px/1 var(--f-display); letter-spacing: .04em; }
.brand-name:hover { color: #fff; }
/* The Lady Liberty logo (Statue of Liberty with the pipe wrench), on a white tile so its navy shows on the navy bar. */
.logo { height: 44px; width: auto; flex: none; display: block; background: #fff; border-radius: 8px; padding: 3px 6px;
  box-sizing: content-box; }
.signin-logo { height: 112px; width: auto; display: block; margin-bottom: 20px; background: #fff; border-radius: 14px;
  padding: 10px 14px; box-sizing: content-box; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px;
  color: var(--navy-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.tabs a:hover { color: #fff; background: rgba(255,255,255,.08); }
.tabs a[aria-current="page"] { background: #fff; color: var(--navy); }
.who { display: flex; align-items: center; gap: 10px; color: var(--navy-text); font-size: 14px; }
.who form { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #1E3D73; color: #fff; display: inline-grid;
  place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.btn-link { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; text-decoration: underline;
  cursor: pointer; min-height: 40px; padding: 0 4px; }
a.btn-link { display: inline-flex; align-items: center; }   /* a link sits on the same line as the button */
a.btn-link:hover { color: #fff; }

/* Page */
.page { max-width: 80rem; margin: 0 auto; padding: 28px 24px 48px; display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  box-shadow: var(--shadow); display: grid; gap: 14px; }
.card.narrow { max-width: 30rem; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

/* Buttons */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); color: #fff; }
.btn.big { min-height: 52px; font-size: 17px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* Forms */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.field { display: grid; gap: 5px; }
.field label, legend { font-size: 14px; font-weight: 700; color: var(--navy); }
input[type="text"], input[type="email"], input:not([type]) { min-height: 44px; border: 1px solid #C7D0DD;
  border-radius: 8px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink); width: 100%; }
fieldset.roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; }
.check input { width: 18px; height: 18px; }

/* Messages */
.alert { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.alert.ok { background: var(--ok-soft); color: var(--ok-dark); }
.alert.bad { background: var(--red-soft); color: var(--red-dark); }
.alert.warn { background: var(--warn-soft); color: var(--warn-dark); }
.pill { font: 600 12px var(--f-mono); padding: 3px 8px; border-radius: 99px; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--line); margin-right: 8px; }
.pill.ok { background: var(--ok-soft); color: var(--ok-dark); border-color: #BFE3CD; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; }
td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
td form { margin: 0; }
tr.off td { color: var(--muted); background: var(--surface-2); }

/* Sign-in screen */
.signin { min-height: 100vh; display: flex; flex-wrap: wrap; }
.signin-brand { flex: 1 1 420px; background: var(--navy); color: #fff; padding: 56px; display: flex;
  flex-direction: column; justify-content: space-between; gap: 40px; border-right: 4px solid var(--red); }
.signin-name { font: 700 44px/1 var(--f-display); letter-spacing: .04em; }
.signin-sub { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-text); margin-top: 8px; }
.signin-lede { font: 600 32px/1.15 var(--f-display); max-width: 28rem; }
.signin-data { margin-top: 16px; max-width: 28rem; font-size: 18px; line-height: 1.45; color: var(--navy-text);
  padding-left: 14px; border-left: 3px solid var(--red); }
.boro-stripes { display: flex; gap: 8px; }
.boro-stripes i { width: 40px; height: 6px; border-radius: 3px; }
.boro-stripes .b { background: var(--c-b); } .boro-stripes .q { background: var(--c-q); }
.boro-stripes .nyc { background: var(--c-nyc); } .boro-stripes .bx { background: var(--c-bx); }
.boro-stripes .si { background: var(--c-si); }
.signin-panel { flex: 1 1 480px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 48px 24px; max-width: 34rem; margin: 0 auto; }
.testlogin { border: 1.5px dashed var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 16px 18px;
  display: grid; gap: 10px; color: #5C3A00; }
.testlogin-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn-dark); }
.testlogin form { margin: 0; }

/* The two doors: Crew and Office (owner, 2026-11-06) */
.signin-title { font-size: 34px; }
.door { gap: 12px; }
.door-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.door-h h2 { font-size: 26px; text-transform: uppercase; }
.door-crew { border-top: 5px solid var(--red); }
.door .btn.big { width: 100%; }
.door input { font-size: 18px; min-height: 52px; }

@media (max-width: 640px) {
  .page { padding: 20px 16px 40px; }
  .signin-brand { padding: 14px 16px; border-right: 0; border-bottom: 4px solid var(--red); flex-basis: 100%;
    flex-direction: row; align-items: center; gap: 12px; }
  .signin-brand > div:first-child { display: flex; align-items: center; gap: 12px; }
  .signin-brand .signin-logo { height: 44px; margin: 0; padding: 3px 6px; border-radius: 8px; }
  .signin-brand .signin-name { font-size: 26px; }
  .signin-brand .signin-sub, .signin-pitch, .boro-stripes { display: none; }
  .signin-panel { padding: 18px 16px 40px; gap: 16px; }
  .brand { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Crew tab (office): the crew list and the message log */
.pill.warn { background: var(--warn-soft); color: var(--warn-dark); border-color: #E8D3AE; }
.pill.bad { background: var(--red-soft); color: var(--red-dark); border-color: #F2B8C2; }
td.mono, .mono { font-family: var(--f-mono); font-size: 13.5px; white-space: nowrap; }
.crew-name { font-weight: 700; text-decoration: none; }
tr.off td { color: var(--muted); }
.msg-table td:nth-child(3) { min-width: 18rem; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 var(--f-mono); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
details summary { cursor: pointer; color: var(--navy); }
.phone-in { max-width: 11rem; font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Proposals tab (2026-11-09): quotes given, no answer yet ----------
   Colour = state, the same everywhere on the tab: red = call today (deeper when overdue), blue = waiting,
   grey = gone quiet, green = said yes, rose = said no. The page stays light; the rows carry the colour. */
:root {
  --p-due: #C8102E; --p-due-bg: #FFF0F2; --p-due-line: #F4C3CC; --p-over: #8F0B21; --p-over-bg: #FCDDE2;
  --p-wait: #1A3F7D; --p-wait-bg: #EDF2FA; --p-wait-line: #C9D6EC;
  --p-quiet: #5A6A81; --p-quiet-bg: #EEF0F4; --p-quiet-line: #D5DAE3;
  --p-yes: #17804A; --p-yes-bg: #E9F6EE; --p-yes-line: #BFE3CD;
  --p-no-bg: #FFF3F5;
}
.tab-badge { margin-left: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red);
  color: #fff; font: 700 12px/20px var(--f-body); text-align: center; }
.seg-links { display: flex; gap: 4px; flex-wrap: wrap; }
.seg-links a { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: 14px; }
.seg-links a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* the summary: one coloured tile per state, each jumps to its group */
.p-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; color: var(--ink); }
.stat b { font: 700 30px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat b.mono { font: 600 22px/1.25 var(--f-mono); }
.stat b i { font: 600 15px var(--f-body); font-style: normal; }
.stat span { font-size: 13px; font-weight: 600; }
.stat.due { background: var(--p-due-bg); border-color: var(--p-due-line); }
.stat.due b { color: var(--p-due); }
.stat.wait { background: var(--p-wait-bg); border-color: var(--p-wait-line); }
.stat.wait b { color: var(--p-wait); }
.stat.quiet { background: var(--p-quiet-bg); border-color: var(--p-quiet-line); }
.stat.quiet b { color: var(--p-quiet); }
.stat.money { background: var(--navy); color: #fff; }
.stat.money span { color: var(--navy-text); }
.stat.won { background: var(--p-yes-bg); border-color: var(--p-yes-line); }
.stat.won b { color: var(--p-yes); }
a.stat:hover { filter: brightness(.97); color: var(--ink); }

.p-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 18px; align-items: start; }
@media (max-width: 960px) { .p-body { grid-template-columns: minmax(0, 1fr); } }
.p-list { display: grid; gap: 22px; min-width: 0; }
.p-group { display: grid; gap: 8px; scroll-margin-top: 12px; }
.p-group-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.p-group-h h2 { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.p-group-h .count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; color: #fff;
  font: 700 14px/26px var(--f-body); text-align: center; }
.p-group-h .hint { margin-left: auto; font-size: 13px; color: var(--muted); }
.g-due h2 { color: var(--p-due); }       .g-due .count { background: var(--p-due); }
.g-wait h2 { color: var(--p-wait); }     .g-wait .count { background: var(--p-wait); }
.g-quiet h2 { color: var(--p-quiet); }   .g-quiet .count { background: var(--p-quiet); }
.g-answered h2 { color: var(--navy); }   .g-answered .count { background: var(--navy); }

/* one proposal: the whole row is tinted by its state */
.prow { --c: var(--p-wait); --bg: var(--p-wait-bg); --ln: var(--p-wait-line);
  display: grid; grid-template-columns: 42px minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 0 14px; align-items: center;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--ln); border-left: 6px solid var(--c);
  border-radius: 12px; color: var(--ink); text-decoration: none; transition: box-shadow .12s, transform .12s; }
.prow.due { --c: var(--p-due); --bg: var(--p-due-bg); --ln: var(--p-due-line); }
.prow.due.overdue { --c: var(--p-over); --bg: var(--p-over-bg); --ln: #EFA3B0; }
.prow.quiet { --c: var(--p-quiet); --bg: var(--p-quiet-bg); --ln: var(--p-quiet-line); }
.prow:hover { color: var(--ink); box-shadow: 0 2px 10px rgba(10,39,86,.12); transform: translateY(-1px); }
.prow.sel { box-shadow: 0 0 0 3px var(--navy), 0 4px 14px rgba(10,39,86,.18); }
@media (prefers-reduced-motion: reduce) { .prow { transition: none; } .prow:hover { transform: none; } }
.ini { width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid;
  place-items: center; font: 700 16px/1 var(--f-display); letter-spacing: .04em; }
.prow .p-who, .prow .p-when { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.prow .p-who b { overflow-wrap: anywhere; color: var(--ink); font-size: 16px; }
.prow small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.prow small.last { color: var(--ink); }
.prow.quiet .p-who b, .prow.quiet small.last { color: #3E4A5C; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 700 13px/1.4 var(--f-body);
  background: #fff; color: var(--c); border: 1.5px solid var(--c); white-space: nowrap; }
.prow.due .tag { background: var(--p-due); color: #fff; }
.prow.due.overdue .tag { background: var(--p-over); border-color: var(--p-over); }
.prow.quiet .tag { background: #DDE2EA; border-color: #DDE2EA; color: #3E4A5C; }
.prow .price, .arow .price { font-weight: 700; font-size: 15px; background: #fff; border: 1px solid var(--ln, var(--line));
  border-radius: 8px; padding: 6px 10px; text-align: right; }
@media (max-width: 560px) {
  .prow { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .prow .p-when { grid-column: 2 / 4; grid-row: 2; padding-top: 8px; }
  .prow .price { grid-column: 3; grid-row: 1; }
  .prow .ini { grid-row: 1 / 3; align-self: start; }
}

/* the Answered list: green for yes, rose for no */
.arow { --c: var(--p-yes); --bg: var(--p-yes-bg); --ln: var(--p-yes-line);
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 0 14px; align-items: center;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--ln); border-left: 6px solid var(--c);
  border-radius: 12px; color: var(--ink); text-decoration: none; }
.arow.no { --c: var(--p-due); --bg: var(--p-no-bg); --ln: var(--p-due-line); }
.arow:hover { color: var(--ink); box-shadow: 0 2px 10px rgba(10,39,86,.12); }
.arow .ans { background: var(--c); color: #fff; border-radius: 99px; text-align: center; padding: 4px 0;
  font: 700 13px var(--f-body); }
.arow .p-who { display: grid; min-width: 0; }
.arow .p-who small { color: var(--muted); font-size: 13px; }
.arow .why { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .arow { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .arow .why { grid-column: 2 / 4; padding-top: 6px; }
}
.p-empty { background: var(--p-wait-bg); border: 1px dashed var(--p-wait-line); border-radius: 12px; padding: 18px; }

/* the chosen proposal: coloured bands, like the Job Board ticket */
.p-pick { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  scroll-margin-top: 12px; box-shadow: var(--shadow); }
.p-pick:focus { outline: none; }
@media (min-width: 961px) { .p-pick { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; } }
.p-pick-h { background: var(--navy); color: #fff; padding: 16px 18px 14px; display: grid; gap: 2px; }
.p-pick-h h2 { color: #fff; font-size: 26px; overflow-wrap: anywhere; }
.p-pick-h span { color: var(--navy-text); font-size: 14px; }
.p-pick-h .big-price { font: 600 26px/1.2 var(--f-mono); margin-top: 6px; }
.p-state { padding: 9px 18px; font-weight: 700; font-size: 15px; color: #fff; }
.p-state.s-due { background: var(--p-due); }
.p-state.s-due.overdue { background: var(--p-over); }
.p-state.s-wait { background: var(--p-wait); }
.p-state.s-quiet { background: var(--p-quiet); }
.p-state.s-yes { background: var(--p-yes); }
.p-state.s-no { background: var(--red-dark); }
.p-sec { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.p-state + .p-sec { border-top: 0; }
.p-sec h3 { margin: 0; font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-sec.tone-log { background: var(--p-wait-bg); border-top-color: var(--p-wait-line); }
.p-sec.tone-log h3 { color: var(--p-wait); }
.p-sec.tone-yes { background: var(--p-yes-bg); border-top-color: var(--p-yes-line); }
.p-sec.tone-yes h3 { color: var(--p-yes); }
.p-sec.tone-no { background: var(--p-no-bg); border-top-color: var(--p-due-line); }
.p-sec.tone-no h3 { color: var(--red-dark); }
.p-sec.tone-hist { background: var(--surface-2); }
.p-sec label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); width: 100%; }
.p-sec select, .p-sec input[type="text"], .p-sec input[type="date"] { font: 15px var(--f-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 40px; padding: 0 10px; width: 100%; }
.p-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 8px; width: 100%; }
.p-kv { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 15px; width: 100%; }
.p-kv dt { color: var(--muted); }
.p-kv dd { margin: 0; overflow-wrap: anywhere; }
.p-kv .tel { display: inline-block; font-size: 16px; font-weight: 600; padding: 4px 10px; border-radius: 8px;
  background: var(--p-yes-bg); border: 1px solid var(--p-yes-line); color: var(--p-yes); text-decoration: none; }
.p-hint { margin: 0; color: var(--muted); }
.p-hello { background: var(--p-wait-bg); }
.btn.good { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.good:hover { background: var(--ok-dark); color: #fff; }
.btn.danger-outline { background: #fff; border: 2px solid var(--red); color: var(--red-dark); }
.p-hist { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 12px; width: 100%; }
.p-hist li { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 10px; font-size: 14px;
  padding-left: 16px; }
.p-hist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--p-wait); }
.p-hist li:not(:last-child)::after { content: ""; position: absolute; left: 3.5px; top: 16px; bottom: -10px; width: 1px;
  background: var(--line); }
.p-hist li.given::before { background: var(--p-yes); }
.p-hist small { display: block; color: var(--muted); }
.p-hist .mono { color: var(--muted); }
@media (max-width: 560px) {
  .p-sum { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .p-sum .stat { grid-column: span 2; }
  .p-sum .stat.money, .p-sum .stat.won { grid-column: span 3; }
}

/* ---------- Feedback (2026-11-09): amber = new, waiting for us; green = dealt with ---------- */
.fb-sum { display: flex; gap: 10px; }
.fb-sum .stat { min-width: 8.5rem; }
.stat.fb-new { background: var(--warn-soft); border-color: #F2D49B; }
.stat.fb-new b { color: var(--warn-dark); }
.stat.fb-done { background: var(--ok-soft); border-color: #BFE3CD; }
.stat.fb-done b { color: var(--ok-dark); }
.fb-form { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: 12px;
  background: var(--navy-soft); border: 1px solid var(--navy-text); }
.fb-form textarea { width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid #C7D0DD; border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink); resize: vertical; }
.fb-list { display: grid; gap: 10px; margin-top: 24px; }
.fb-item { --c: var(--warn-dark); --bg: var(--warn-soft); --ln: #F2D49B;
  padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--ln); border-left: 6px solid var(--c); }
.fb-item.done { --c: var(--ok); --bg: var(--ok-soft); --ln: #BFE3CD; }
.fb-item header { gap: 6px 10px; }
.fb-item header form { margin: 0; }
.fb-item .tag { background: var(--c); color: #fff; }
.fb-text { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .fb-sum { width: 100%; }
  .fb-sum .stat { flex: 1 1 0; min-width: 0; }
}
