/* Brenton Bastin Construction dashboard. Provisional heritage tokens (lime, stone, oak, slate):
   to be replaced by design-system/brenton/MASTER.md once James picks a palette in phase 2. */
:root {
  /* Tokens from design-system/brenton/MASTER.md (shared with the website). */
  --lime: #ECECE6;      /* lime putty ground */
  --paper: #F7F7F3;     /* raised surface */
  --stone: #CFD0C7;     /* coursing lines, borders */
  --stone-2: #E2E2DB;   /* quiet fills */
  --slate: #22262A;     /* ink */
  --slate-2: #5D625F;   /* muted text, 5.1:1 on lime */
  --oak: #B08A55;       /* sand: decoration only, never text */
  --oak-dark: #55663A;  /* lichen: buttons and links, 6.3:1 with white */
  --moss: #3E6B4F;      /* ok */
  --ochre: #7A5200;     /* warn text */
  --ochre-bg: #FFF4D6;  /* note */
  --brick: #A3301F;     /* bad */
  --brick-bg: #FBE6E1;
  --sky: #1F5B7A;       /* info */
  --sky-bg: #E3EFF5;
  --moss-bg: #E2EEE4;
  --r: 6px;
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tab-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--slate); background: var(--lime); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font-size: 1.25rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; margin: 14px 0 6px; }
p { margin: 0 0 8px; } a { color: var(--oak-dark); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.i.tiny { width: 14px; height: 14px; vertical-align: -2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Layout */
.app { min-height: 100dvh; }
.main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--slate); color: #fff; }
.top h1 { flex: 1; color: #fff; }
.back { color: #fff; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px 0 -8px -10px; border-radius: 50%; }
[hidden] { display: none !important; }
.demochip { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #ffffff66; border-radius: 99px; padding: 2px 8px; }
.view { padding: 14px 16px; max-width: 1040px; margin: 0 auto; }
.side { display: none; }
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--stone); padding-bottom: env(safe-area-inset-bottom); }
.tabbtn { position: relative; display: grid; justify-items: center; gap: 2px; padding: 9px 2px 8px; min-height: var(--tab-h); font-size: .72rem; color: var(--slate-2); text-decoration: none; }
.tabbtn.on { color: var(--oak-dark); font-weight: 700; box-shadow: inset 0 3px 0 var(--oak); }
.tabbtn b, .sidebtn b { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--brick); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 250px 1fr; }
  .tabbar { display: none; } .main { padding-bottom: 32px; min-width: 0; }
  .side { display: block; position: sticky; top: 0; height: 100dvh; overflow: auto; background: var(--slate); color: #fff; padding: 18px 12px; }
  .brand { font: 600 1.25rem/1.15 var(--serif); padding: 0 10px 14px; border-bottom: 1px solid #ffffff22; margin-bottom: 10px; } .brand span { display: block; font: 400 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #D9C7AE; }
  .sidebtn { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #E9E6DE; text-decoration: none; font-size: .95rem; }
  .sidebtn:hover { background: #ffffff14; } .sidebtn.on { background: var(--oak-dark); color: #fff; font-weight: 600; }
  .sidebtn b { position: static; margin-left: auto; }
  .demo { font-size: .78rem; color: #C9C5BA; padding: 14px 10px 0; }
  .top { background: var(--lime); color: var(--slate); border-bottom: 1px solid var(--stone); } .top h1 { color: var(--slate); font-size: 1.5rem; } .back { color: var(--slate); } [hidden] { display: none !important; }
.demochip { border-color: var(--slate-2); }
  .view { padding: 20px 28px; }
}

/* Building blocks */
.card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r); padding: 14px; margin: 0 0 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.count { font: 700 .8rem var(--sans); background: var(--slate); color: #fff; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.lead { font: 400 1.3rem var(--serif); margin-bottom: 12px; }
.sub { display: block; color: var(--slate-2); font-size: .875rem; } p.sub { margin: 4px 0; }
.foot { color: var(--slate-2); font-size: .82rem; margin-top: 10px; } .empty { color: var(--slate-2); font-style: italic; margin: 4px 0; }
.list, .plain, .checks { list-style: none; margin: 0; padding: 0; } .plain li { padding: 3px 0; } .plain .sub { display: inline; margin-right: 6px; }
.list > li + li { border-top: 1px solid var(--stone-2); }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 2px; min-height: 48px; color: inherit; text-decoration: none; flex-wrap: wrap; }
a.row:hover { background: var(--stone-2); } .row > .i { color: var(--slate-2); }
.row-main { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; } .row-main strong { font-weight: 600; }
.row-time { font-size: .82rem; color: var(--slate-2); min-width: 46px; text-align: center; } .row-amt { font-weight: 700; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.chip { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--stone-2); color: var(--slate-2); white-space: nowrap; }
.chip.ok { background: var(--moss-bg); color: #1F4E35; } .chip.warn { background: var(--ochre-bg); color: #6B4700; } .chip.bad { background: var(--brick-bg); color: #86251A; } .chip.info { background: var(--sky-bg); color: #174A63; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 9px 16px; border-radius: 8px; border: 1.5px solid var(--slate); background: var(--paper); color: var(--slate); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--oak-dark); border-color: var(--oak-dark); color: #fff; } .btn.ok { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn.ghost { border-color: var(--stone); } .btn.danger { color: var(--brick); } .btn.small { min-height: 44px; padding: 6px 12px; font-size: .86rem; } .btn.tiny, .tiny.btn { min-height: 44px; padding: 2px 9px; font-size: .78rem; border-width: 1px; margin-left: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; } .btn:active { transform: scale(.98); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; } .acts.sticky { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); background: var(--lime); padding: 8px 0; z-index: 5; }
@media (min-width: 900px) { .acts.sticky { bottom: 0; } }
.note { display: block; border-radius: var(--r); padding: 10px 12px; margin: 0 0 12px; border: 1px solid; font-size: .93rem; }
.note.info { background: var(--sky-bg); border-color: #B7D3E0; } .note.warn { background: var(--ochre-bg); border-color: #E8D19A; } .note.bad { background: var(--brick-bg); border-color: #EDB8AE; }
.kv { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 4px 12px; margin: 6px 0; } .kv dt { color: var(--slate-2); font-size: .875rem; } .kv dd { margin: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scrollbar-width: none; }
.tab { flex: none; min-height: 44px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--stone); background: var(--paper); font: 600 .86rem var(--sans); color: var(--slate-2); cursor: pointer; } .tab.on { background: var(--slate); border-color: var(--slate); color: #fff; } .tab span { opacity: .75; margin-left: 2px; }
.bar { height: 8px; background: var(--stone); border-radius: 99px; overflow: hidden; margin: 6px 0; } .bar i { display: block; height: 100%; background: var(--moss); } .bar.bad i { background: var(--brick); }
.prog { display: block; height: 5px; background: var(--stone); border-radius: 99px; overflow: hidden; margin-top: 4px; } .prog i { display: block; height: 100%; background: var(--oak); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r); padding: 12px; display: grid; gap: 2px; } .stat span { font-size: .8rem; color: var(--slate-2); } .stat strong { font: 400 1.45rem var(--serif); } .stat small { color: var(--slate-2); } .stat.bad { border-color: var(--brick); }
input, textarea, select { font: inherit; color: inherit; background: #fff; border: 1.5px solid #8B8F86; border-radius: 8px; padding: 9px 10px; min-height: 44px; max-width: 100%; }
textarea { width: 100%; resize: vertical; } textarea.big { min-height: 110px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .inline input:not([type=number]) { flex: 1 1 180px; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; } .field { display: grid; gap: 3px; font-size: .875rem; color: var(--slate-2); } .field input { width: 100%; color: var(--slate); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; } .check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--oak-dark); flex: none; }
.rate { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; } .rate input { width: 104px; text-align: right; }
.draft { background: var(--stone-2); border-left: 3px solid var(--oak); padding: 8px 10px; border-radius: 4px; margin: 6px 0 0; font-size: .93rem; }

/* Today */
.need .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; } .need.warn .dot { background: #C98A00; } .need.bad .dot { background: var(--brick); }
.wx { font-size: .82rem; color: var(--slate-2); } .wx.warn { color: var(--ochre); font-weight: 600; } .wx.bad { color: var(--brick); font-weight: 600; } .people { font-size: .875rem; }

/* Inbox and thread */
.ch { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--stone-2); color: var(--slate); flex: none; }
.ch-wa { background: #DDF1E2; color: #1F6B3A; } .ch-vm { background: #EADFF3; color: #5B3A82; } .ch-em { background: var(--sky-bg); color: var(--sky); } .ch-web { background: var(--ochre-bg); color: var(--ochre); } .ch-sms { background: #E6E9EE; color: #3A4658; }
.thread.unread strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--oak); margin-right: 6px; } .gist { font-size: .93rem; }
.thead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .thead > div:first-of-type, .thead > .ch + div { flex: 1 1 200px; } .thead h2 { font-size: 1.3rem; } .thead-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.score { display: grid; gap: 2px; font-size: .875rem; margin: 8px 0; } .why { font-style: italic; color: var(--slate-2); }
.slots { background: var(--stone-2); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; } .btn.slot { justify-content: flex-start; background: var(--moss); border-color: var(--moss); color: #fff; } .slot small { font-weight: 400; opacity: .9; margin-left: 6px; }
.msgs { display: grid; gap: 8px; margin: 14px 0; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--stone); } .msg p { margin: 0; white-space: pre-wrap; } .msg .by { display: block; font-size: .74rem; color: var(--slate-2); margin-bottom: 2px; }
.msg.bot { justify-self: end; background: #EEF3E9; border-color: #CFDCC4; } .msg.out { justify-self: end; background: #F3E7D8; border-color: #E2CDB1; } .msg.draft { justify-self: end; border-style: dashed; background: transparent; border-left: 1px dashed var(--stone); }
.msg-ph { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .msg-ph span { font-size: .8rem; background: var(--stone-2); border-radius: 6px; padding: 4px 8px; }
.sys { text-align: center; font-size: .8rem; color: var(--slate-2); margin: 2px 0; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r); padding: 10px; } .quick { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.q { flex: none; min-height: 44px; border-radius: 99px; border: 1px solid var(--stone); background: var(--stone-2); padding: 4px 12px; font: inherit; font-size: .84rem; cursor: pointer; }

/* Quotes */
.qstage { border-bottom: 2px solid var(--stone); padding-bottom: 4px; } .qt { width: 100%; border-collapse: collapse; } .qt td { padding: 8px 0; border-bottom: 1px solid var(--stone-2); vertical-align: top; } .qt .num { text-align: right; white-space: nowrap; }
.qtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; font-size: 1.05rem; } .qtotal strong { font: 400 1.5rem var(--serif); }
.pdf { background: #fff; border: 1px solid var(--stone); padding: 28px 24px; max-width: 760px; margin: 0 auto 14px; box-shadow: 0 2px 12px #0001; } .pdf header { border-bottom: 3px double var(--oak); padding-bottom: 10px; margin-bottom: 16px; } .pdf header h2 { font-size: 1.5rem; }

/* Projects */
.tl { overflow-x: auto; } .tl-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center; min-width: 520px; padding: 3px 0; } .tl-name { font-size: .82rem; }
.tl-track { display: grid; grid-template-columns: repeat(var(--n), minmax(26px, 1fr)); gap: 2px; background: repeating-linear-gradient(90deg, var(--stone-2) 0 1px, transparent 1px calc(100% / var(--n))); min-height: 18px; }
.tl-head span { font-size: .68rem; color: var(--slate-2); } .tl-head .now { color: var(--oak-dark); font-weight: 700; }
.tl-bar { height: 16px; border-radius: 4px; background: var(--stone); } .tl-bar.done { background: #9DB8A6; } .tl-bar.active { background: var(--oak); } .tl-bar.next { background: #D3B48B; } .tl-bar.todo { background: #CFCABB; }
.stage.active { background: #FBF6EE; } .mat { display: block; font-size: .86rem; margin-top: 4px; }
.consent + .consent { border-top: 1px solid var(--stone-2); margin-top: 10px; padding-top: 10px; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .ph { margin: 0; background: var(--paper); border: 1px solid var(--stone); border-radius: 8px; overflow: hidden; }
.ph-img { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 4px; background: repeating-linear-gradient(135deg, #E9E3D5 0 10px, #E2DBCB 10px 20px); color: var(--slate-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; } .ph-during .ph-img { background: repeating-linear-gradient(135deg, #E6DCCB 0 10px, #DDD0BA 10px 20px); } .ph-after .ph-img { background: repeating-linear-gradient(135deg, #DFE8DD 0 10px, #D3DFD0 10px 20px); }
.ph figcaption { padding: 8px; font-size: .84rem; display: grid; gap: 6px; } .phh { text-transform: capitalize; }
.tog { min-height: 44px; border-radius: 6px; border: 1px solid var(--stone); background: var(--paper); font: 600 .78rem var(--sans); cursor: pointer; color: var(--slate-2); } .tog.on { background: var(--moss); border-color: var(--moss); color: #fff; }
.code { background: var(--slate); color: #E9E6DE; padding: 12px; border-radius: 8px; overflow: auto; max-height: 260px; font-size: .78rem; }

/* Diary */
.dhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; } .dhead .acts { margin: 0; } .dhead .tabs { margin: 0; padding: 0; }
.week { display: grid; gap: 10px; } .dcol { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r); padding: 10px; min-height: 70px; } .dcol.today { border-color: var(--oak); box-shadow: inset 0 3px 0 var(--oak); } .dcol h3 { margin: 0 0 6px; font-size: .95rem; }
.ev { display: grid; gap: 1px; padding: 7px 9px; border-radius: 8px; background: var(--stone-2); border-left: 4px solid var(--slate-2); margin-bottom: 6px; font-size: .86rem; cursor: grab; } .ev strong { font-weight: 600; } .ev-t { font-size: .74rem; color: var(--slate-2); }
.ev.site { border-left-color: var(--oak); } .ev.survey { border-left-color: var(--moss); background: var(--moss-bg); } .ev.visit { border-left-color: var(--sky); background: var(--sky-bg); } .ev.delivery { border-left-color: #C98A00; background: var(--ochre-bg); }
.ev.clash { outline: 2px solid var(--brick); } .ev.moving { outline: 3px dashed var(--sky); } .ev .btn { justify-self: start; margin: 4px 0 0; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .dcol { padding: 8px 6px; min-height: 320px; } .ev { font-size: .78rem; padding: 6px; } }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; } .month > span { font-size: .72rem; color: var(--slate-2); text-align: center; } .mtitle { margin-top: 0; }
.mcell { background: var(--paper); border: 1px solid var(--stone); border-radius: 6px; min-height: 62px; padding: 4px; display: grid; align-content: start; gap: 2px; font-size: .68rem; } .mcell.out { opacity: .45; } .mcell.today { border-color: var(--oak); border-width: 2px; } .mcell.clash { background: var(--brick-bg); } .mday { font-weight: 700; font-size: .8rem; } .mtag { background: var(--sky-bg); border-radius: 4px; padding: 0 3px; } .mtag.site { background: #F0E3D1; }

/* Misc */
.upd + .upd { border-top: 1px solid var(--stone-2); margin-top: 14px; padding-top: 14px; }
.offline { margin: 0; padding: 8px 16px; background: var(--ochre-bg); font-size: .875rem; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); z-index: 60; background: var(--slate); color: #fff; padding: 10px 16px; border-radius: 10px; max-width: min(92vw, 520px); font-size: .93rem; box-shadow: 0 6px 20px #0004; margin: 0; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--slate); color: #fff; transition: opacity .3s; } .splash.gone { opacity: 0; pointer-events: none; } .splash p { font: 600 1.4rem var(--serif); text-align: center; margin: 0; } .splash span { display: block; font: 400 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #D9C7AE; } .splash img { border-radius: 20px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .side, .tabbar, .top, .noprint, .toast { display: none !important; } body { background: #fff; } .pdf { border: 0; box-shadow: none; } .app { display: block; } }

/* v0.1.1: plain-language pass, grouped Today, sheets, undo, 44px targets */
.demobar { margin: 0; padding: 5px 16px; background: var(--stone); color: var(--slate); font-size: .8rem; text-align: center; }
.card-h a, .row-main > a, .kv a, .plain a, p > a:not(.btn), .consent a { display: inline-flex; align-items: center; min-height: 44px; }
.btn.big { min-height: 52px; font-size: 1.02rem; flex: 1 1 200px; } .btn.wide { width: 100%; justify-content: center; }
.primary-row { align-items: stretch; } .primary-row .btn.ghost { flex: 0 0 auto; min-height: 52px; }
.need-g .card-h { flex-wrap: wrap; } .need-g.none { padding: 10px 14px; } .need-g.none .card-h { margin: 0; } .need-g.none .empty { display: none; }
.g-urgent:not(.none) { border-color: var(--brick); box-shadow: inset 4px 0 0 var(--brick); } .g-urgent:not(.none) .count { background: var(--brick); }
.need-g .btn.wide { margin-top: 8px; }
.inl { font: 400 .875rem var(--sans); color: var(--slate-2); margin-left: 6px; }
.clashcard { border-color: var(--brick); background: var(--brick-bg); } .clashcard p { margin: 0 0 4px; } .clashcard .acts { margin-bottom: 0; }
.who .row { align-items: flex-start; flex-wrap: nowrap; } .who-n { flex: 0 0 104px; display: grid; } .who-n .sub { font-size: .78rem; }
.who-job { display: grid; min-height: 44px; align-content: center; padding: 4px 8px; border-radius: 8px; background: var(--stone-2); border-left: 4px solid var(--oak); color: inherit; text-decoration: none; } .who-job + .who-job { margin-top: 6px; } .who-job.clash { outline: 2px solid var(--brick); }
.ev .btn { min-height: 44px; }
.sheet-back { position: fixed; inset: 0; z-index: 70; background: #0007; }
.sheet { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow: auto; background: var(--paper); border-radius: 16px 16px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px #0004; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .sheet-acts { display: grid; gap: 8px; margin-top: 10px; }
.check.rev { align-items: flex-start; padding: 8px 0; } .check.rev > span { display: grid; gap: 4px; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); border-radius: 16px; } }
.toast { display: flex; align-items: center; gap: 12px; } .toast .btn { flex: none; background: transparent; border-color: #fff; color: #fff; }
.rate input { min-height: 44px; } .msg-ph span { min-height: 0; }
.toast { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; }
@media (min-width: 900px) { .toast { left: auto; right: 24px; max-width: 440px; } }

/* v0.2.0: sticky top block with Feedback, the tour strip, brand tokens */
.topwrap { position: sticky; top: 0; z-index: 20; } .top { position: static; }
.fbbtn { min-height: 44px; padding: 4px 12px; border-radius: 99px; border: 1px solid #ffffff88; background: transparent; color: #fff; font: 600 .82rem var(--sans); cursor: pointer; }
.tour { background: var(--ochre-bg); color: #4A3800; border-bottom: 1px solid #E8D19A; } .tour-in { max-width: 1040px; margin: 0 auto; padding: 8px 16px 10px; }
.tour p { margin: 0 0 8px; font-size: .93rem; } .tour-n { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.tour-btns { display: flex; gap: 8px; flex-wrap: wrap; } .tour .btn { background: var(--paper); } .tour .btn.primary { background: var(--oak-dark); }
.sheet textarea { min-height: 120px; }
@media (min-width: 900px) { .fbbtn { border-color: var(--slate-2); color: var(--slate); } .demobar { text-align: left; padding-left: 28px; } .tour-in { padding: 10px 28px; } }
