/* Owner portal U10 — the portal's one stylesheet, served as /static/main.css
   (decided 2026-10-05, docs/plans/2026-10-05-1536-feat-owner-portal-plan.md).
   The Almanac look of groundskeeper.co (src/styles/global.css there), ported
   from prototype direction A ("your site comes first", R31) with its
   adjustments: the dashboard-style health panel and the two-colour inverted
   flag. Brand colours are evergreen and cream; everything else is a derived
   shade, used only where legibility needs it (R30, docs/BRAND.md).
   The CSP allows style from 'self' only: there are no inline styles anywhere,
   so every state is a class here. Fonts are self-hosted under /static/fonts/. */

@font-face{font-family:"Fraunces";font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/fraunces-latin-opsz-normal.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:italic;font-display:swap;font-weight:100 900;src:url(fonts/fraunces-latin-opsz-italic.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-display:swap;font-weight:400 700;src:url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2")}
@font-face{font-family:"Spline Sans Mono";font-style:normal;font-display:swap;font-weight:300 700;src:url(fonts/spline-sans-mono-latin-wght-normal.woff2) format("woff2")}

:root{
  --ground:#F7F5EC; --panel:#EFEBDD; --line:#DED7C4; --ink:#1C2B23; --muted:#5C6B60;
  --ever:#164B3B; --ever-dk:#0F3A2D; --mint:#9BD0BB; --plate-text:#DCE8E1;
  --tint:rgba(22,75,59,.05); --tint2:rgba(22,75,59,.09);
  --display:"Fraunces",Georgia,serif; --body:"Instrument Sans","Helvetica Neue",Arial,sans-serif; --mono:"Spline Sans Mono",ui-monospace,Menlo,monospace;
  --ruled:repeating-linear-gradient(to bottom,transparent 0 33px,rgba(22,75,59,.045) 33px 34px);
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
/* The owner app runs edge to edge (routes.ts SHELL, viewport-fit=cover): the
   masthead, the phone sheet and the composer pad themselves by the safe area. */
body{padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left);background:var(--ground);color:var(--ink);font:400 16.5px/1.55 var(--body);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
#app{min-height:100vh;display:flex;flex-direction:column}
.page{display:flex;flex-direction:column;min-height:100vh}
h1,h2,h3{font-family:var(--display);font-optical-sizing:auto;margin:0;color:var(--ink)}
h1 em,h2 em{font-style:italic;font-weight:420;color:var(--ever)}
a{color:var(--ever)}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ever);outline-offset:3px}
.mono{font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;font-weight:500}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* buttons and links */
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--ever);color:var(--ground);border:0;border-radius:2px;padding:12px 20px;font-size:15.5px;font-weight:500;text-decoration:none;cursor:pointer;transition:transform .16s ease,background .16s ease;white-space:nowrap}
.btn:hover{background:var(--ever-dk);transform:translateY(-1px)}
.btn:disabled{opacity:.6;cursor:default;transform:none}
.btn.ghost{background:transparent;color:var(--ever);box-shadow:inset 0 0 0 1.5px var(--line)}
.btn.ghost:hover{background:var(--tint);box-shadow:inset 0 0 0 1.5px var(--ever)}
.btn.small{padding:8px 13px;font-size:14px}
.btn.quiet{background:transparent;color:var(--muted);box-shadow:none;padding-left:6px;padding-right:6px}
.btn.quiet:hover{color:var(--ever);background:transparent}
.link{background:none;border:0;padding:0;color:var(--ever);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;cursor:pointer;font-size:inherit}
.link:hover{text-decoration-color:var(--ever)}
.link:disabled{color:var(--muted);cursor:default;text-decoration:none}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ever);flex:none}
.dot.hollow{background:transparent;box-shadow:inset 0 0 0 1.5px var(--ever)}

/* masthead */
.mast{display:flex;align-items:center;gap:18px;padding:calc(14px + env(safe-area-inset-top)) 28px 14px;border-bottom:1px solid var(--line);background:var(--ground)}
.lockup{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ever)}
.lockup svg{width:26px;height:26px}
.lockup span{font-family:var(--mono);font-size:12px;letter-spacing:.24em;color:var(--muted);font-weight:500}
.mast-site{display:flex;flex-direction:column;line-height:1.2;margin-left:8px;padding-left:18px;border-left:1px solid var(--line);min-width:0}
.mast-name{font:500 15.5px var(--body);color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mast-site small{font:500 11px var(--mono);letter-spacing:.06em;color:var(--muted)}
.mast nav{margin-left:auto;display:flex;gap:22px;align-items:center;font-size:15px}
.mast nav a{color:var(--ink);text-decoration:none;border-bottom:1px solid transparent;white-space:nowrap}
.mast nav a:hover,.mast nav a.on{border-color:var(--ever)}

/* team banner */
.teamnote{margin:0;padding:9px 28px;border-bottom:1px solid var(--line);background:var(--panel);font-size:14px;display:flex;gap:10px;align-items:flex-start}
/* The dot sits on the first line: centred on a wrapped note it read as a stray bullet (2026-10-25). */
.teamnote .dot{margin-top:7px}
.teamnote b{font-weight:600;color:var(--ever)}

/* HOME */
.home{display:grid;grid-template-columns:minmax(0,1fr) 384px;flex:1}
.stage{position:relative;padding:40px 44px 36px;border-right:1px solid var(--line);background:var(--ruled)}
.frames{position:relative;max-width:860px;margin:0 auto}
.browser{border:1px solid var(--line);border-radius:3px;background:#fff;overflow:hidden}
.browser .chrome{display:flex;align-items:center;gap:6px;padding:7px 10px;border-bottom:1px solid var(--line);background:var(--panel)}
.browser .chrome i{width:7px;height:7px;border-radius:50%;background:var(--line)}
.browser .chrome b{font:500 11px var(--mono);letter-spacing:.06em;color:var(--muted);margin-left:8px}
.phoneframe{border:7px solid var(--ink);border-radius:26px;overflow:hidden;background:#fff}
.frames .phoneframe{position:absolute;right:-22px;bottom:-26px;width:150px;height:300px}

/* A frame renders the site at a real device width and is scaled to fit (LiveStage.tsx sets --s). */
.scaled{position:relative;overflow:hidden;--s:.5}
.scaled iframe{position:absolute;top:0;left:0;border:0;transform:scale(var(--s));transform-origin:0 0;height:calc(100% / var(--s));background:#fff}
.scaled.laptop{height:min(56vh,520px)}
.scaled.laptop iframe{width:1280px}
.scaled.phone{height:100%}
.scaled.phone iframe{width:390px}

.caption{max-width:860px;margin:52px auto 0;display:flex;align-items:flex-end;gap:24px;flex-wrap:wrap}
.caption.bare{margin-top:8px}
.caption h1{font-size:clamp(30px,3.2vw,40px);font-weight:470;letter-spacing:-.02em;line-height:1.05}
.caption p{margin:6px 0 0;color:var(--muted);font-size:15.5px;max-width:52ch}
.caption .acts{margin-left:auto;display:flex;gap:10px}

.notes{padding:30px 28px 80px;display:flex;flex-direction:column;gap:30px;background:var(--ground)}
.notes h2{font-size:19px;font-weight:520;margin-bottom:10px}

/* the evergreen "waiting for you" plate */
.plate{background:var(--ever);color:var(--plate-text);border-radius:3px;padding:20px 20px 22px}
.plate .mono{color:var(--mint)}
.plate h3{color:var(--ground);font-size:21px;font-weight:500;line-height:1.2;margin:8px 0 6px}
.plate p{margin:0 0 16px;font-size:15px;line-height:1.5}
.plate p.latest{border-left:2px solid var(--mint);padding-left:10px;white-space:pre-line}
.plate .btn{background:var(--ground);color:var(--ever)}
.plate .btn:hover{background:#fff}
.plate :focus-visible{outline-color:var(--ground)}
.latest-quiet{margin:0;padding:10px 12px;border-left:3px solid var(--ever);background:#fff;font-size:15px;white-space:pre-line}

/* "Looked after": the dashboard panel */
.health{border:1px solid var(--line);border-radius:3px;background:#fff}
.hhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.hhead h2{margin:0}
.overall{display:inline-flex;gap:7px;align-items:center;font:600 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ever);white-space:nowrap}
.overall svg{width:17px;height:17px}
.overall.unknown{color:var(--muted)}
.knock{stroke:var(--ground);fill:none}
.checks{list-style:none;margin:0;padding:0}
.checks li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 14px;border-top:1px solid var(--line)}
.checks li:first-child{border-top:0}
.checks .ic{width:20px;height:20px;color:var(--ever)}
.checks li.unknown .ic{color:var(--muted)}
.checks b{font-weight:600;font-size:15px;display:block;line-height:1.25}
.checks small{display:block;font-size:12.5px;color:var(--muted);line-height:1.35}
.checks .v{text-align:right;font-size:14.5px;font-weight:500;white-space:nowrap}
.checks .v small{font:500 10px var(--mono);letter-spacing:.1em;text-transform:uppercase}
.checks li.problem b,.checks li.problem .v{color:var(--ever)}
/* the flag: the row inverts to the evergreen plate, two colours and no third */
.checks li.warn{background:var(--ever);color:var(--plate-text)}
.checks li.warn b,.checks li.warn .v{color:var(--ground)}
.checks li.warn small{color:var(--mint)}
.checks li.warn .ic{color:var(--ground)}
.checks li.warn .ic .knock{stroke:var(--ever)}
.checks li.warn:last-child{border-radius:0 0 2px 2px}
.unwatched{margin:0;padding:12px 14px;font-size:14.5px;color:var(--muted)}

/* "Visitors": the traffic panel (portal traffic plan U5). Same box as "Looked
   after". Trend bars are <rect>s styled here, never inline: a day with visits
   is a solid evergreen bar, a counted day with none a darker baseline tick, and
   a day before counting began a faint empty column, so the three never read
   alike (R5). Long page paths wrap rather than widen the column (R9). */
.traffic{border:1px solid var(--line);border-radius:3px;background:#fff}
.tstatus{font:600 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.tbody{padding:12px 14px 14px;display:flex;flex-direction:column;gap:12px}
.tsay{margin:0;font-size:14.5px;line-height:1.45}
.totals{display:flex;gap:28px;flex-wrap:wrap;margin:0}
.totals div{display:flex;flex-direction:column-reverse}
.totals dt{font:500 10.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.totals dd{margin:0;font:470 30px/1.1 var(--display);font-optical-sizing:auto;color:var(--ink);letter-spacing:-.01em}
.trend{margin:0}
.trend svg{display:block;width:100%;height:56px;border-bottom:1px solid var(--line)}
.tday{fill:var(--ever)}
.tday.zero{fill:var(--ever-dk)}
.tday.off{fill:var(--tint)}
.trend figcaption{display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin-top:6px;font:500 10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tnote{margin:0;font-size:12.5px;color:var(--muted);line-height:1.4}
.tnote .updated{display:block;margin-top:2px;color:var(--ink);font-weight:500}
.toppages{border-top:1px solid var(--line);padding:10px 14px 12px}
.toppages h3{font:600 14px var(--body);margin:0 0 4px}
.toppages ol{list-style:none;margin:0;padding:0}
.toppages li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:baseline;padding:5px 0;border-top:1px solid var(--line);font-size:14px}
.toppages li:first-child{border-top:0}
.tpage{display:flex;flex-direction:column;min-width:0}
.tname{font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.tpath{font-family:var(--mono);font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.tviews{font-size:13px;color:var(--muted);white-space:nowrap}

/* recent changes and history */
.changes{list-style:none;margin:0;padding:0}
.changes li{padding:11px 0;border-top:1px solid var(--line)}
.changes li:last-child{border-bottom:1px solid var(--line)}
.changes .t{display:flex;gap:10px;align-items:baseline;justify-content:space-between}
.changes .what{font-size:15.5px;color:var(--ink)}
.changes a.what{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.changes a.what:hover{text-decoration-color:var(--ever)}
.changes .meta{font:500 10.5px var(--mono);letter-spacing:.12em;color:var(--muted);text-transform:uppercase;margin-top:3px}
.changes .undone .what{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line)}
.changes .why{margin:6px 0 0;font-size:13.5px;color:var(--muted)}
.confirm{margin-top:9px;padding:10px 12px;background:var(--panel);border-radius:2px;font-size:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.confirm p{margin:0 0 4px;width:100%}
.confirm p.said{margin:4px 0 0}
.more{margin:10px 0 0}
.empty{color:var(--muted);font-size:15px}
.foot{font-size:14px;color:var(--muted);display:flex;flex-direction:column;gap:12px}
.foot .billing{display:flex;flex-direction:column;gap:2px}
.foot .billing small{font-size:12.5px}
.foot .footrow{display:flex;gap:16px;flex-wrap:wrap}

/* single-column pages: history, a past change, account, sites */
.sheetpage{width:100%;max-width:720px;margin:0 auto;padding:34px 28px 90px}
.sheetpage h1{font-size:clamp(28px,3vw,36px);font-weight:470;letter-spacing:-.02em;line-height:1.1}
.sheetpage .intro{margin:6px 0 22px}
.back{margin:0 0 14px;font-size:14.5px}
.pagestate{padding:40px 28px;max-width:720px;margin:0 auto;color:var(--muted)}
.pagestate h1{font-size:28px;font-weight:470;margin-bottom:8px}

/* a past conversation, read-only */
.log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.logitem{display:flex;flex-direction:column;gap:12px}
.day{text-align:center;font:500 10.5px var(--mono);letter-spacing:.16em;color:var(--muted);text-transform:uppercase;margin-top:6px}
.m{max-width:88%}
.m .who{font:500 10.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.m .b{font-size:15.5px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.m.me{align-self:flex-end}
.m.me .who{text-align:right}
.m.me .b{background:var(--tint2);padding:9px 13px;border-radius:3px}
.photo-note{display:block;margin-top:6px;font:500 11px var(--mono);letter-spacing:.08em;color:var(--muted);text-transform:uppercase}

/* account */
.acct{padding:18px 0;border-top:1px solid var(--line)}
.account h1{margin-bottom:14px}
.acct h2{font-size:19px;font-weight:520;margin-bottom:6px}
.acct p{margin:6px 0 0;font-size:15px}
.acct .value{font-size:17px;font-weight:500;color:var(--ink)}
.inline{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
input[type=email],input[type=search]{flex:1;min-width:0;border:1.5px solid var(--line);border-radius:2px;background:#fff;padding:9px 11px;font-size:15.5px}
input[type=email]:focus,input[type=search]:focus{border-color:var(--ever);outline:none}
.check{display:flex;gap:10px;align-items:flex-start;margin-top:12px;font-size:15px;cursor:pointer}
.check input{margin-top:4px;accent-color:var(--ever);width:16px;height:16px;flex:none}
.stopnote{padding:10px 12px;background:var(--panel);border-radius:2px}
.said{font-size:14.5px;color:var(--ever);font-weight:500}

/* site picker */
.search{margin:16px 0 8px;display:flex}
.sites{list-style:none;margin:16px 0 0;padding:0}
.sites li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--line)}
.sites li:last-child{border-bottom:1px solid var(--line)}
.sites a{font-size:17px;color:var(--ink);text-decoration:none}
.sites a:hover{color:var(--ever);text-decoration:underline;text-underline-offset:3px}

/* WORKSPACE (U11): a slim chat column beside the preview on the ruled stage */
.workpage{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.work{flex:1;min-height:0;display:grid;grid-template-columns:400px minmax(0,1fr)}
.chat{position:relative;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:var(--ground)}
.chat .head{padding:14px 20px 12px;border-bottom:1px solid var(--line)}
.backlink{font-size:14px;color:var(--muted);text-decoration:none}
.backlink:hover{color:var(--ever);text-decoration:underline;text-underline-offset:3px}
.chat .head h1{font-size:20px;font-weight:500;line-height:1.2;margin-top:6px}
.conn{margin:6px 0 0;display:flex;gap:7px;align-items:center;font-size:12.5px;color:var(--muted)}
.conn .dot{width:6px;height:6px}
.work .log{flex:1;min-height:0;overflow:auto;padding:18px 20px 12px;gap:16px}
.work .log:focus-visible{outline-offset:-3px}
.work .m{max-width:92%}
.m .who{display:flex;gap:6px;align-items:center}
.m.me .who{justify-content:flex-end}
.m .who svg{width:13px;height:13px;color:var(--ever);flex:none}
.m .b.ready{border:1px solid var(--line);border-left:3px solid var(--ever);padding:12px 14px;border-radius:2px;background:#fff}
.m .photos{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.thumb{width:132px;height:88px;object-fit:cover;border-radius:2px;display:block;border:1px solid var(--line);background:var(--panel)}
.gone{display:none!important}
/* Owner app, 2026-10-24: the demo's switched-off actions (ui/demo.tsx). */
.demo-acts{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 8px}
.sendstate{margin:4px 0 0;font:500 10.5px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);text-align:right}
.sendstate.failed,.sendstate.refused{color:var(--ever);text-transform:none;letter-spacing:0;font:500 13.5px var(--body)}
.choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.choice{border:1.5px solid var(--line);background:var(--ground);border-radius:2px;padding:8px 12px;font-size:15px;cursor:pointer;text-align:left;color:var(--ink);line-height:1.35}
.choice:hover:not(:disabled){border-color:var(--ever);background:var(--tint)}
.choice b{font:600 12px var(--mono);color:var(--ever);margin-right:8px}
.choice.picked{border-color:var(--ever);background:var(--tint2)}
.choice:disabled{cursor:default}
.choice:disabled:not(.picked){opacity:.5}
.onlyphone{display:block;margin-top:10px}
.notice{margin:0;padding:9px 20px;border-top:1px solid var(--line);background:var(--panel);font-size:14px}
.connbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 20px;border-top:1px solid var(--line);background:var(--panel);font-size:14px}
.connbar span{flex:1;min-width:12ch}
.connbar.signed_out,.connbar.send_failed{background:var(--ever);color:var(--plate-text)}
.connbar.signed_out .btn,.connbar.send_failed .btn{background:var(--ground);color:var(--ever)}
.connbar.signed_out :focus-visible,.connbar.send_failed :focus-visible{outline-color:var(--ground)}
.actions{padding:12px 20px;border-top:1px solid var(--line);display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--ground)}
.actions > .choices{margin:0 0 4px;width:100%}
.actions .note{width:100%;font-size:13.5px;color:var(--muted)}
.actions .confirm{width:100%;margin:0}
.actnote{margin:0;padding:12px 20px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
/* The action bar takes focus when the phone sheet closes itself (2026-10-09 live-site plan, R10): its ring sits inside the column */
.actbar:focus-visible{outline-offset:-3px}
.livebar{padding:12px 20px;border-top:1px solid var(--line);background:var(--ever);color:var(--plate-text);font-size:15px;display:flex;gap:10px;align-items:center}
.livebar b{color:var(--ground)}
.livebar .dot{background:var(--mint)}
.livebar.quiet{background:var(--panel);color:var(--ink)}
.livebar.quiet b{color:var(--ink)}
.livebar.quiet .dot{background:var(--muted)}
.compose{padding:12px 20px 16px}
.composer{border:1.5px solid var(--line);border-radius:3px;background:#fff;display:flex;align-items:flex-end;gap:6px;padding:6px}
.composer:focus-within{border-color:var(--ever)}
.composer textarea{flex:1;min-width:0;border:0;resize:none;font:inherit;font-size:15.5px;line-height:1.45;padding:7px;outline:none;background:transparent;min-height:38px;max-height:160px;color:var(--ink)}
.iconbtn{width:36px;height:36px;flex:none;border:0;background:none;border-radius:2px;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.iconbtn:hover{background:var(--tint);color:var(--ever)}
.iconbtn.send{background:var(--ever);color:var(--ground)}
.iconbtn.send:hover{background:var(--ever-dk)}
.iconbtn.send:disabled{opacity:.4;cursor:default;background:var(--ever)}
.hint{margin:6px 2px 0;font-size:13px;color:var(--muted)}
.tray{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ph{width:88px;display:flex;flex-direction:column;gap:4px}
.ph.refused{width:100%;flex-direction:row;align-items:flex-start;gap:10px}
.phbox{position:relative;width:88px;height:66px;flex:none;border:1px solid var(--line);border-radius:2px;overflow:hidden;background:var(--panel)}
.phbox img{width:100%;height:100%;object-fit:cover;display:block}
.ph.uploading img{opacity:.6}
.ph.refused img{opacity:.45}
.phdoc{display:block;height:100%;padding:6px 26px 6px 7px;overflow:hidden;overflow-wrap:anywhere;font:500 10.5px/1.35 var(--mono);color:var(--muted)}
.phdoc b{display:block;font-weight:600;letter-spacing:.08em;color:var(--ink)}
.ph.uploading .phdoc{opacity:.6}
.ph.refused .phdoc{opacity:.45}
.phbox .x{position:absolute;top:3px;right:3px;width:22px;height:22px;border:0;border-radius:50%;background:var(--ink);color:var(--ground);font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ph progress{width:100%;height:4px;appearance:none;-webkit-appearance:none;border:0;background:var(--line);border-radius:2px;accent-color:var(--ever)}
.ph progress::-webkit-progress-bar{background:var(--line);border-radius:2px}
.ph progress::-webkit-progress-value{background:var(--ever);border-radius:2px}
.ph progress::-moz-progress-bar{background:var(--ever)}
.refusal{margin:0;font-size:13.5px;line-height:1.4;color:var(--ink)}
.dropzone{position:absolute;inset:8px;border:2px dashed var(--ever);border-radius:4px;background:rgba(247,245,236,.94);display:flex;align-items:center;justify-content:center;font:500 15px var(--body);color:var(--ever);pointer-events:none;z-index:5}

/* the preview pane */
.pv{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--ruled)}
.pvbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid var(--line);background:var(--ground);font-size:14px}
.pvbar .tag{font:500 10.5px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ever);display:flex;gap:7px;align-items:center}
.pagepick select{font:inherit;font-size:14px;border:1px solid var(--line);background:#fff;border-radius:2px;padding:5px 8px;color:var(--ink)}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:2px;overflow:hidden}
.seg button{border:0;background:#fff;padding:5px 11px;font-size:13.5px;cursor:pointer;color:var(--muted)}
.seg button.on{background:var(--ever);color:var(--ground)}
.seg button:focus-visible{outline-offset:-3px}
.pvbar .newtab{margin-left:auto;color:var(--muted)}
.pvnote{margin:0;padding:9px 20px;background:var(--panel);border-bottom:1px solid var(--line);font-size:14px}
.pvstage{flex:1;min-height:0;overflow:auto;padding:28px;display:flex;justify-content:center;align-items:flex-start}
.pvstage.desktop{align-items:stretch}
.pvbrowser{width:100%;max-width:1100px;display:flex;flex-direction:column;min-height:420px}
.scaled.pvdesk{flex:1}
.scaled.pvdesk iframe{width:1280px}
.pvphone{width:300px;height:min(640px,100%);min-height:480px;flex:none}
.pvstate{max-width:44ch;margin-top:12vh;text-align:center}
.pvstate h2{font-size:24px;font-weight:470;letter-spacing:-.01em;margin-bottom:8px}
.pvstate p{margin:0;color:var(--muted);font-size:15.5px}
.pvstate.failed h2,.pvstate.blocked h2{color:var(--ever)}
.pvstate .visit{margin-top:18px}
.pvinline{margin:0;padding:10px 20px;border-top:1px solid var(--line);background:var(--panel);font-size:14px}
.pvinline b{font-weight:600}
.working{display:block;width:120px;height:3px;margin:18px auto 0;background:linear-gradient(90deg,transparent,var(--ever),transparent) 0 0/60px 100% no-repeat,var(--line);animation:work 1.4s ease-in-out infinite}
@keyframes work{from{background-position:-60px 0,0 0}to{background-position:120px 0,0 0}}
.sheet{display:none}
.mono.ever{color:var(--ever)}

@media (max-width:760px){
  .work{grid-template-columns:1fr}
  .chat{border:0}
  .chat .head{padding:12px 16px 10px}
  .work .log{padding:14px 16px 10px}
  .work .m{max-width:94%}
  .notice,.connbar,.actions,.actnote,.livebar{padding-left:16px;padding-right:16px}
  .actions .btn{flex:1 1 auto;justify-content:center;padding:10px 14px}
  .actions .btn.quiet{flex:0 0 auto}
  .actions .note{font-size:13px}
  .pvinline{padding:10px 16px}
  .compose{padding:10px 16px calc(14px + env(safe-area-inset-bottom))}
  .sheet{display:flex;position:fixed;inset:0;z-index:50;background:var(--ground);flex-direction:column;animation:rise .28s ease}
  .sheet .sh{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;border-bottom:1px solid var(--line)}
  .sheet .sh .mono{font-size:10.5px;letter-spacing:.14em}
  .sheet .sh button{margin-left:auto}
  .sheet .pvnote{padding:9px 16px}
  .sheet .sb{flex:1;min-height:0;overflow:auto;padding:16px;display:flex;justify-content:center;background:var(--panel)}
  .sheet .sb .pvphone{width:100%;max-width:330px;height:100%;min-height:0;border-width:5px}
  .sheet .sb .pvstate{margin-top:8vh}
  .sheet .sf{padding:12px 16px calc(22px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;gap:8px}
  .sheet .sf .btn{flex:1;justify-content:center}
}
@media (min-width:761px){.onlyphone{display:none!important}}
@keyframes rise{from{transform:translateY(100%)}to{transform:none}}

/* Loading: the G draws itself over a pale G (owner app, 2026-10-25). It fades in
   after .3s, so a quick load shows no flash of spinner. */
.spin{display:flex;justify-content:center;padding-top:72px}
.gspin{width:44px;height:44px;color:var(--ever);opacity:0;animation:gs-in .2s ease .3s forwards}
.gspin .t{stroke:var(--line)}
.gspin .d{stroke-dasharray:1 1;stroke-dashoffset:1;animation:gs-draw 1.6s cubic-bezier(.65,0,.35,1) infinite}
@keyframes gs-in{to{opacity:1}}
@keyframes gs-draw{0%{stroke-dashoffset:1}50%{stroke-dashoffset:0}100%{stroke-dashoffset:-1}}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Held still: the whole G, shown at once. */
@media (prefers-reduced-motion:reduce){.gspin{opacity:1}.gspin .d{stroke-dashoffset:0}}

/* PHONE (R27): one column, the phone frame leads */
@media (max-width:760px){
  .mast{padding:calc(12px + env(safe-area-inset-top)) 16px 12px;gap:10px}
  .lockup span{display:none}
  .mast-site{border:0;padding:0;margin:0}
  .mast nav{gap:14px;font-size:14.5px}
  .mast nav .hide-phone{display:none}
  .teamnote{padding:9px 16px}
  .home{grid-template-columns:1fr}
  .stage{padding:20px 16px 8px;border:0}
  .frames .browser{display:none}
  .frames .phoneframe{position:relative;right:auto;bottom:auto;width:220px;height:380px;margin:0 auto}
  .caption{margin-top:20px;flex-direction:column;align-items:stretch;gap:14px}
  .caption h1{font-size:28px}
  .caption .acts{margin:0}
  .caption .acts .btn{flex:1;justify-content:center}
  .notes{padding:20px 16px 90px;gap:26px}
  .sheetpage{padding:24px 16px 80px}
  .pagestate{padding:28px 16px}
  .m{max-width:94%}
}

/* Undo: a real button beside the change, and its confirm as a modal (2026-10-06). */
.changes .t .undo{flex:none;align-self:flex-start}
.modal{border:0;padding:0;border-radius:3px;background:var(--ground);color:var(--ink);max-width:min(440px,calc(100vw - 32px));width:100%;box-shadow:0 0 0 1px var(--line)}
.modal::backdrop{background:rgba(28,43,35,.45)}
.modal-box{padding:22px 22px 18px}
.modal h2{margin:0 0 10px;font-size:22px}
.modal p{margin:0 0 12px;font-size:15px;line-height:1.5}
.modal .modal-what{padding:10px 12px;background:var(--panel);border-radius:2px;font-weight:500}
.modal .said{color:var(--muted)}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px;flex-wrap:wrap}
@media (max-width:480px){.modal-actions .btn{flex:1;justify-content:center}}
.pvstate p.progress{margin-top:10px;font-size:14px}

/* Owner app U10 (2026-10-24, docs/plans/2026-10-24-1143-feat-owner-app-plan.md):
   the notifications explainer (a .modal), the account card, and the store
   pointer a phone browser sees on home (R1, R24). */
.explain h2{font-size:23px;line-height:1.2}
.explain .mono{margin:0 0 8px}
.explain-list{margin:0 0 12px;padding-left:20px;font-size:15px;line-height:1.5}
.explain-list li{margin:3px 0}
.explain p.muted{font-size:14px}
.acct.notify .btn{margin-top:12px}
.acct.notify .stopnote{margin-top:12px}
.getapp{padding:16px 18px 18px;background:var(--panel);border-radius:3px}
.getapp h2{margin-bottom:6px}
.getapp p{margin:0 0 12px;font-size:15px;line-height:1.5}
@media (max-width:480px){.getapp .btn{width:100%;justify-content:center}}

/* Owner app U7 (2026-10-24, docs/plans/2026-10-24-1143-feat-owner-app-plan.md):
   the Inquiries entry on home, the Leads list and one lead (R14, R15). */
.leadsentry h2{margin-bottom:6px}
.leadsentry p{margin:0 0 8px;font-size:15px;line-height:1.5;color:var(--muted)}
.leadlist{list-style:none;margin:0;padding:0}
.leadlist li{border-top:1px solid var(--line)}
.leadlist li:last-child{border-bottom:1px solid var(--line)}
.leadrow{display:block;padding:12px 0;color:var(--ink);text-decoration:none}
.leadrow:hover .who{text-decoration:underline;text-decoration-color:var(--ever);text-underline-offset:3px}
.leadrow .t{display:flex;gap:10px;align-items:baseline;justify-content:space-between}
.leadrow .who{font-size:15.5px;font-weight:500;min-width:0;overflow-wrap:anywhere}
.leadrow .meta,.lead .meta{font:500 10.5px var(--mono);letter-spacing:.12em;color:var(--muted);text-transform:uppercase;flex:none}
.leadrow .topic{display:block;margin-top:3px;font-size:13.5px;color:var(--ever)}
.leadrow .excerpt{display:block;margin-top:3px;font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leads .more{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.leads-morefail{font-size:14px;color:var(--muted)}
.leads-retry p{margin:0 0 12px;font-size:15px}
.lead h1{overflow-wrap:anywhere}
.lead .meta{margin:4px 0 16px}
.lead-message{margin:0 0 20px;padding:14px 16px;background:var(--panel);border-radius:3px;font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.lead-acts{display:flex;gap:10px;flex-wrap:wrap}
.lead-acts .btn{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.lead-raw{margin:18px 0 0;font-size:14px}
.lead-raw dt{color:var(--muted);margin-top:8px}
.lead-raw dd{margin:2px 0 0;overflow-wrap:anywhere}
@media (max-width:480px){.lead-acts .btn{flex:1 1 100%;justify-content:center}}
/* Record kinds (2026-11-18): a record's number, set before its title in the list. */
.leadrow .recno{font:500 13px var(--mono);color:var(--muted)}

/* Owner app U6 (2026-10-24; R17, KTD12) — a team post in the chat, set apart
   from the agent's messages, and the team member's composer with its line on
   whether the owner will be pushed it. */
.m.team .b{background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--ever-dk);padding:10px 14px;border-radius:2px}
.m.team .who{color:var(--ever-dk)}
.teamtag{font:500 9.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ground);background:var(--ever-dk);padding:2px 6px;border-radius:2px}
.teampost .composer{align-items:flex-end}
.teampost .composer .btn{flex:none}
.teampost .reach{margin:0 2px 8px;font-size:13.5px;color:var(--muted)}
.teampost .reach.push{color:var(--ever)}
.teampost .refusal{margin:6px 2px 0;font-size:13px;color:var(--ink)}

/* Owner app U11 (R21): the site chooser for a photo shared into the app. With
   many sites only the list scrolls; the question and Not now stay in view
   (Ezra, 2026-10-27). The box stays inside the dialog's own limit and clear of
   the notch and home bar. */
.sharepick .modal-box{display:flex;flex-direction:column;max-height:calc(100vh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.sharepick-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.sharepick-list li{flex:none}
.sharepick-list .btn:focus-visible{outline-offset:-3px}
.sharepick-list .btn{width:100%;justify-content:flex-start;white-space:normal;text-align:left}
