/* Treppan, the maker, on Acme's workspace (docs/workspace/brand/, feel/situation.md "Client-facing apps"): the type,
   the first-paint loader, the one waiting mark, the sign-in page, the maker's line, the full-page states and print.
   The workspace's own colours stay Acme's; the Treppan tokens come from brand/treppan-tokens.css (linked first).
   Motion: the guidelines' curve and tokens only (Micro 120, Transition 240, Reveal 720); one movement, no bounce. */
@font-face{font-family:Inter;src:url(brand/inter.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(brand/jetbrains-mono.woff2) format("woff2");font-weight:100 800;font-style:normal;font-display:swap}
:root{
  --display:var(--treppan-font-sans);--body:var(--treppan-font-sans);--mono:var(--treppan-font-mono);
  --tr-ease:cubic-bezier(.2,.8,.2,1);--tr-micro:120ms;--tr-transition:240ms;--tr-reveal:720ms;
  --tr-mark:var(--treppan-ink);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--tr-mark:var(--treppan-white)}}
:root[data-theme="dark"]{--tr-mark:var(--treppan-white)}
body{font-feature-settings:"cv11","ss03"}

/* ===== the waiting mark: the symbol's three forms brighten in the order of ascent ===== */
.tr-wait{display:inline-flex;align-items:center;gap:var(--s2);vertical-align:middle;color:inherit}
.tr-wait svg{width:16px;height:auto;flex:none;display:block;fill:currentColor;overflow:visible}
.tr-wait path{opacity:.25;animation:tw 1440ms var(--tr-ease) infinite}
.tr-wait path:nth-child(2){animation-delay:240ms} .tr-wait path:nth-child(3){animation-delay:480ms}
@keyframes tw{0%,100%{opacity:.25}25%,50%{opacity:1}}
.tr-wait.lg svg{width:24px} .tr-wait-t{color:var(--muted);font-size:12px}
.tr-wait-block{display:flex;justify-content:center;align-items:center;padding:var(--s5) var(--s4);color:var(--muted)}
/* busy buttons keep their size: the label hides behind the mark */
[data-busy]{position:relative;pointer-events:none}
[data-busy]>*:not(.tr-wait-over){visibility:hidden}
[data-busy]:not(:has(>*:not(.tr-wait-over))){color:transparent}
.tr-wait-over{position:absolute;inset:0;display:grid;place-items:center;color:var(--ink)}
.btn.primary .tr-wait-over{color:var(--on-act,#fff)}
@media (prefers-reduced-motion:reduce){.tr-wait path{animation:none;opacity:1}.tr-wait path:nth-child(2){opacity:.6}.tr-wait path:nth-child(1){opacity:.35}}

/* ===== first paint: the loader until the boot data is in ===== */
.boot{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:var(--bg);color:var(--ink);transition:opacity var(--tr-transition) var(--tr-ease)}
.boot.out{opacity:0;pointer-events:none}
.boot-in{display:flex;flex-direction:column;align-items:center;gap:var(--s5);padding:var(--s4)}
.boot-sym{width:56px;height:auto;display:block;fill:var(--tr-mark);overflow:visible}
.boot-sym path{animation:tr-rise var(--tr-reveal) var(--tr-ease) both}
.boot-sym path:nth-child(2){animation-delay:120ms} .boot-sym path:nth-child(3){animation-delay:240ms}
.boot-t{margin:0;text-align:center;font:600 var(--treppan-small-size)/1.4 var(--body);color:var(--ink);animation:tr-fade 360ms var(--tr-ease) 360ms both}
.boot-t small{display:block;font-weight:400;color:var(--muted)}
.boot-slow{margin:0;font-size:12px;color:var(--muted);text-align:center;max-width:32ch}
.boot-slow[hidden]{display:none}
/* the guidelines' reveal: each form fades in while rising 12 px (120 user units at this size), settled by 720 ms */
@keyframes tr-rise{from{opacity:0;transform:translateY(120px)}to{opacity:1;transform:none}}
@keyframes tr-fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .boot-sym path{animation-name:tr-fade}
  .boot{transition-property:opacity}
}

/* ===== sign-in ===== */
.login{background:var(--bg);padding:var(--s4);overflow-y:auto;place-items:safe center}
.login-wrap{width:min(400px,100%);display:flex;flex-direction:column;gap:var(--s5);padding:var(--s5) 0}
.login-card{width:100%;gap:var(--s4);border-radius:var(--r3);padding:var(--s6) var(--s5);box-shadow:var(--shadow-1)}
.login-brand{gap:var(--s3)}
.login-brand .logo{width:36px;height:36px}
/* the company's own logo (login-mark.js), never recoloured: on the dark look its dark letters sit on a quiet light plate */
.login-logo{flex:none;display:block;border-radius:var(--r2)}
.login-logo img{display:block;width:99px;height:80px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .login-logo{background:#f4f2ec;padding:6px 8px}}
:root[data-theme="dark"] .login-logo{background:#f4f2ec;padding:6px 8px}
/* the sales team's line of the day: a quote in the page's own type, in the flow above the form (it never covers a field) */
.login-line{margin:0;padding:0 0 0 var(--s3);border-left:3px solid #d2232a}
.login-line p{margin:0;font:600 19px/1.35 var(--display);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
@media (max-width:760px){.login-logo img{width:80px;height:64px}.login-line p{font-size:18px}}
.login-brand b{display:block;font:600 var(--treppan-small-size)/1.3 var(--body);color:var(--ink)}
.login-brand small{font-size:12px}
.login-card h1{font:600 22px/1.3 var(--display);letter-spacing:-.01em;margin:var(--s2) 0 0}
.login-card .lede{margin:0;color:var(--muted)}
.login-card .field{display:flex;flex-direction:column;gap:6px}
.login-card .field label{font-weight:600;font-size:12px;color:var(--ink-2)}
.login-card input{height:44px;font-size:16px}
.login-card .btn{height:44px;font-size:14px}
.login-msg{display:flex;gap:var(--s2);align-items:flex-start;margin:0;padding:var(--s3);border-radius:var(--r1);background:var(--bad-bg);color:var(--bad);font-size:13px;line-height:1.45}
.login-msg.locked{background:var(--warn-bg);color:var(--warn)}
.login-msg.info{background:var(--soft);color:var(--ink-2)}
.login-help{margin:0;font-size:12px;color:var(--muted)}
.login-help .linklike{background:none;border:0;padding:4px 0;min-height:32px;font:inherit;font-size:13px;color:var(--ink);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
/* a phone (decision 25): "Forgot your password?", "Back to sign in", "Send a new code" a thumb can hit: 44 px, 15 px */
@media (max-width:760px){.login-help .linklike{min-height:44px;font-size:15px;padding:8px 0}
.login-by{min-height:44px}}
.login-by{display:flex;align-items:center;justify-content:center;gap:var(--s2);color:var(--muted);font-size:12px;text-decoration:none;border-radius:var(--r1);padding:var(--s1)}
.login-by img{height:14px;width:auto;display:block}
.login-by:hover{color:var(--ink)}
.tr-dark-only{display:none!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tr-light-only{display:none!important}:root:not([data-theme="light"]) .tr-dark-only{display:block!important}}
:root[data-theme="dark"] .tr-light-only{display:none!important} :root[data-theme="dark"] .tr-dark-only{display:block!important}

/* ===== the maker's line, sidebar foot ===== */
.made-by{display:flex;align-items:center;gap:6px;padding:2px var(--s1);font-size:11px;color:var(--faint);text-decoration:none;border-radius:var(--r1);white-space:nowrap;overflow:hidden}
.made-by svg{width:12px;height:auto;flex:none;fill:currentColor}
.made-by:hover{color:var(--ink)}
.app.rail .made-by span{display:none}
.app.rail .made-by{justify-content:center}

/* ===== full-page states: not found, error, offline, session ended ===== */
.screen{position:fixed;inset:0;z-index:150;display:grid;place-items:safe center;background:var(--bg);padding:var(--s4);overflow-y:auto}
.screen[hidden]{display:none}
.screen-in{width:min(440px,100%);display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3)}
.screen-in .boot-sym{width:40px;animation:none;margin-bottom:var(--s3)}
.screen-in .boot-sym path{animation:none}
.screen-k{font:600 var(--treppan-label-size)/1.3 var(--body);letter-spacing:var(--treppan-label-tracking);text-transform:uppercase;color:var(--muted)}
.screen-in h1{font:600 22px/1.3 var(--display);letter-spacing:-.01em;margin:0}
.screen-in p{margin:0;color:var(--ink-2)}
.screen-acts{display:flex;gap:var(--s2);flex-wrap:wrap;margin-top:var(--s2)}
.screen .login-by{margin-top:var(--s5);padding-left:0}
.view-err{max-width:520px;margin:var(--s6) auto;padding:0 var(--s4);display:flex;flex-direction:column;gap:var(--s3);align-items:flex-start}
.view-err h2{font:600 18px/1.3 var(--display)}
.view-err p{color:var(--ink-2)}
.offline-bar{position:fixed;left:50%;bottom:calc(var(--s4) + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:140;display:flex;align-items:center;gap:var(--s2);max-width:calc(100% - 32px);padding:var(--s2) var(--s3);border-radius:var(--r2);background:var(--ink);color:var(--bg);font-size:12px;box-shadow:var(--shadow-2)}
.offline-bar[hidden]{display:none}
/* the offline and newer-version bars sit under the top bar at every width, the newer one under the offline one, and
   under the top bar's own menu (z 30). Three owners met here on 17 Nov: at the bottom the newer bar covered the reply
   box (wa-official), the lead page's action bar (lead) and the "Send it now" notice (people). At the top they meet none
   of those, and a notice keeps its place at the bottom. */
.offline-bar{bottom:auto;top:calc(56px + env(safe-area-inset-top,0px));z-index:29}
.newer-bar{bottom:auto;top:calc(56px + 48px + env(safe-area-inset-top,0px));z-index:29}
.newer-bar .btn{background:transparent;color:inherit;border-color:currentColor}
/* on a 320 px phone the words wrap and both buttons stay on the bar ("Not now" ran off it: wa-official loop 5) */
.newer-bar>span{flex:1 1 auto;min-width:0;white-space:normal}.newer-bar .btn{flex:none}
@media (max-width:760px){.offline-bar{left:16px;right:16px;transform:none;max-width:none}}
/* one line, with Reload and Not now (round C): wrapped, the bar grew to three lines over the page under it */
.newer-bar{white-space:nowrap;padding-top:4px;padding-bottom:4px}.newer-bar .btn{flex:none}
/* both bars at once: the update bar sits under the offline one, never on it (owner people, 17 Nov); notices stay at
   the bottom, so neither bar covers a "Try again" / "Send it now" */
body:has(#offline-bar:not([hidden])) #newer-bar{top:calc(56px + 44px + env(safe-area-inset-top,0px))}
body:has(#offline-bar[hidden]) .newer-bar,body:not(:has(#offline-bar)) .newer-bar{top:calc(56px + env(safe-area-inset-top,0px))}
/* a dialog or drawer open (its backdrop is z 40): the bars stay pressable above it (chrome-eyes 17 Nov, Meetings: Reload
   under a New meeting dialog's backdrop closed the dialog and never reloaded) */
body:has(.scrim) .offline-bar,body:has(.scrim) .newer-bar{z-index:47}
/* a bar showing takes its room under the top bar, so it never covers the line banner (#sysban: "cannot send") or the
   page's heading and its buttons (wa-official loop 2, 390 px: the newer bar sat on the banner's first line) */
body:has(#offline-bar:not([hidden])) .main>.top,body:has(#newer-bar:not([hidden])) .main>.top{margin-bottom:48px}
body:has(#offline-bar:not([hidden])):has(#newer-bar:not([hidden])) .main>.top{margin-bottom:96px}

/* ===== print: exports and pages print as documents ===== */
.print-head{display:none}
@media print{
  @page{margin:18mm}
  html,body{height:auto;overflow:visible;background:#fff;color:#0A1016;font-size:10.5pt}
  body>:not(.app),.side,.top,.btn,.seg,.nav,.print-hide{display:none!important}
  .app{display:block;height:auto}
  .main,.view{display:block;height:auto;overflow:visible!important;position:static}
  a{color:#0A1016;text-decoration:underline}
  .print-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid #B8BDC1;padding-bottom:6pt;margin-bottom:12pt;font-size:9pt;color:#555E65}
  .print-head b{font-size:12pt;color:#0A1016}
  .print-foot{position:fixed;bottom:0;left:0;right:0;font-size:8pt;color:#555E65}
  table{page-break-inside:auto} tr{page-break-inside:avoid}
}
.print-foot{display:none}
@media print{.print-foot{display:block}}

/* list placeholders hold the layout still while the waiting mark says what is happening: no second animation */
.skeleton,.sk-line,.sk-row,.sk-av{animation:none!important}
.sk-list .tr-wait-block{padding:var(--s3) var(--s4) var(--s2)}
/* lead, 17 Nov: on a phone the bottom of the screen holds the lead page's action bar (Log touchpoint) and the tab bar;
   the newer-version line sat on top of them and swallowed the tap. On a phone it sits under the header instead. */
/* under the top bar (z 30): its "⋯" menu (Import contacts, Export) opens over the line, not under it */
/* one slot on a phone (inbox owner): at 104 px the newer bar sat on the chat's "⋯" menu and took its taps
   (composer-browser, inbox-live-browser); the offline line, when it shows, takes the slot (no newer version can be
   fetched offline anyway) */
@media (max-width:760px){.newer-bar{top:calc(56px + env(safe-area-inset-top,0px));bottom:auto;z-index:29}body:has(#offline-bar:not([hidden])) .newer-bar{display:none}}
/* lead, 17 Nov (loop 2): wherever the newer-version line sits, it must not take the taps meant for what is under it
   (on a phone it covered the inbox's chat menu and composer controls after every deploy); only Reload takes a tap */
.newer-bar{pointer-events:none}.newer-bar .btn{pointer-events:auto}
/* the show-password eye (lead, 18 Nov 11:52): a 44 px button inside the field's right end; slashed while hidden */
.pw-wrap{position:relative;display:flex}
.pw-wrap .inp{flex:1;min-width:0;padding-right:48px}
.pw-eye{position:absolute;right:0;top:0;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;border:0;border-radius:var(--r1);color:var(--muted);cursor:pointer}
.pw-eye:hover{color:var(--ink)}
.pw-eye:focus-visible{outline:2px solid var(--ink);outline-offset:-4px}
.pw-eye[aria-pressed="true"]{color:var(--ink)}
.pw-eye[aria-pressed="true"] .pw-slash{display:none}
/* the mobile pass (lanes/OWNER.md, point 3): on a phone the card's sentences and buttons are 15 px */
@media (max-width:760px){.login-card .lede,.login-msg,.login-card .btn{font-size:15px}}
