/* boring team. design round three: calm, apple style, dark only.
   one font (inter). soft cards that lift with a faint inner edge, no hard
   borders. pill buttons, a sliding switch, short spring motion, one thin
   mint ring that turns for every wait. no blur, no filters, no
   color-mix, so old small android phones keep up.
   yellow only for warnings and safety, red only for blocked.
   every text colour passes 4.5:1 on the surface it sits on. */

:root{
  color-scheme:dark;

  --bg:#0a0a0b;
  --surface:#141417;      /* cards, a very light step up from the page */
  --surface-2:#1c1c20;    /* hover */
  --surface-3:#2a2a30;    /* the switch thumb */
  --fill:rgba(255,255,255,.06);   /* quiet buttons and pills */
  --fill-hover:rgba(255,255,255,.10);
  --well:rgba(0,0,0,.30);         /* the text field and the link, sunk into the card */
  --edge:rgba(255,255,255,.06);   /* the faint inner edge */
  --edge-top:rgba(255,255,255,.05);
  --hair:rgba(255,255,255,.07);   /* lines between rows */
  --text:#f5f5f7;
  --dim:#9a9aa2;          /* second lines, 6:1 on the card */
  --hint:#6c6c74;         /* sample text in a field: clearly dimmer than typed text, still readable */

  --mint:#9fe8b0;
  --mint-hover:#8fd19e;
  --mint-press:#82be90;
  --mint-ink:#0a0a0b;
  --mint-soft:rgba(159,232,176,.12);

  --warn:#f2c14e;
  --warn-soft:rgba(242,193,78,.12);
  --red:#e5484d;
  --red-text:#f2777a;
  --red-soft:rgba(229,72,77,.12);

  --r-input:14px;
  --r-card:20px;
  --r-pill:999px;

  --lift:inset 0 0 0 1px var(--edge),inset 0 1px 0 var(--edge-top),0 12px 32px rgba(0,0,0,.28);

  --sans:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,monospace;

  --ease:cubic-bezier(.22,1,.36,1);      /* soft settle */
  --spring:cubic-bezier(.34,1.32,.64,1); /* a small, calm overshoot */
  --exit:cubic-bezier(.4,0,1,1);
}

*{box-sizing:border-box}
html{background:var(--bg)}
html,body{margin:0;padding:0;min-height:100%}
body{
  background:var(--bg);color:var(--text);
  font:400 16px/1.5 var(--sans);
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
  overflow-x:hidden;
}
[hidden]{display:none !important}
button{cursor:pointer}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:var(--r-input)}
p{margin:0}

/* ---- type: one font. titles big and tight, body 16, nothing important under 14 ---- */
.t-h1,h1{margin:0;font:600 28px/1.15 var(--sans);letter-spacing:-.025em}
.t-stat{font-size:32px;line-height:1.1;font-weight:600}
.label{font-size:14px;line-height:1.4;font-weight:500;color:var(--dim)}
.note{font-size:14px;line-height:1.45;color:var(--dim)}
.dim{color:var(--dim)}
@media (min-width:768px){
  .t-h1,h1{font-size:34px}
  .t-stat{font-size:40px}
}

/* ---- top bar ---- */
.top{position:sticky;top:0;z-index:30;background:var(--bg);box-shadow:0 1px 0 var(--hair)}
.top-in{display:flex;align-items:center;gap:10px;height:56px;max-width:1100px;margin:0 auto;padding:0 16px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}
.brand .mascot{width:26px;height:26px}
.brand b{font-size:17px;font-weight:600;letter-spacing:-.02em}
.mark{
  display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:var(--r-pill);
  background:var(--fill);color:var(--text);font-size:13px;font-weight:500;
}

/* ---- the mascot ---- */
.mascot{display:block;width:64px;height:auto}
.m-face{fill:var(--text)}
.m-eye{fill:var(--bg)}

/* ---- page and spacing: lots of air ---- */
.page{max-width:1100px;margin:0 auto;padding:24px 16px 80px}
@media (min-width:768px){.page{padding-top:48px}}
.stack{display:flex;flex-direction:column;gap:24px;min-width:0}
.stack-8{display:flex;flex-direction:column;gap:12px;min-width:0}

/* the card: no border, a light lift, a faint inner edge */
.card{position:relative;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--lift);padding:24px;min-width:0}
@media (min-width:768px){.card{padding:32px}}

/* ---- the text field ---- */
textarea{
  display:block;width:100%;min-height:180px;resize:vertical;
  font:inherit;font-size:17px;line-height:1.5;color:var(--text);
  background:var(--well);border:0;border-radius:var(--r-input);
  box-shadow:inset 0 0 0 1px var(--edge);
  padding:16px 18px;
  transition:box-shadow 240ms var(--ease);
}
textarea:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--mint),0 0 0 4px var(--mint-soft)}
textarea::placeholder{color:var(--hint);opacity:1}

/* ---- one line field: the team name, the first name ---- */
.field{
  display:block;width:100%;height:56px;
  font:inherit;font-size:17px;color:var(--text);
  background:var(--well);border:0;border-radius:var(--r-input);
  box-shadow:inset 0 0 0 1px var(--edge);
  padding:0 18px;
  transition:box-shadow 240ms var(--ease);
}
.field:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--mint),0 0 0 4px var(--mint-soft)}
.field::placeholder{color:var(--hint);opacity:1}

/* ---- buttons: full round pills, a soft spring on press ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:48px;padding:0 24px;border-radius:var(--r-pill);
  border:0;background:var(--fill);color:var(--text);
  font:inherit;font-size:16px;font-weight:500;white-space:nowrap;
  transition:background-color 200ms var(--ease),opacity 200ms var(--ease),transform 320ms var(--spring);
  -webkit-tap-highlight-color:transparent;
}
.btn:hover:not(:disabled){background:var(--fill-hover)}
.btn:active:not(:disabled){transform:scale(.97)}
.btn:disabled{opacity:.45;cursor:default}
.btn-primary{background:var(--mint);color:var(--mint-ink);font-weight:600}
.btn-primary:hover:not(:disabled){background:var(--mint-hover)}
.btn-primary:active:not(:disabled){background:var(--mint-press)}
.btn-primary:disabled{opacity:.7}
.btn-big{height:56px;font-size:17px}
.btn-wide{width:100%}
.btns{display:flex;gap:12px}
.btns .btn{flex:1 1 0}

/* ---- the sliding switch: normal or safety ---- */
.seg{
  position:relative;display:flex;padding:4px;border-radius:var(--r-pill);
  background:var(--well);box-shadow:inset 0 0 0 1px var(--edge);
}
.seg-btn{
  position:relative;z-index:1;flex:1 1 0;height:44px;border:0;border-radius:var(--r-pill);
  background:transparent;color:var(--dim);font:inherit;font-size:16px;font-weight:500;
  transition:color 240ms var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.seg-btn:hover{color:var(--text)}
.seg-btn[aria-pressed=true]{color:var(--text)}
#k-safety[aria-pressed=true]{color:var(--mint-ink);font-weight:600}
.seg-thumb{
  position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);
  border-radius:var(--r-pill);background:var(--surface-3);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
  transition:transform 420ms var(--spring),background-color 240ms var(--ease);
}
#k-safety[aria-pressed=true] ~ .seg-thumb{transform:translateX(100%);background:var(--warn)}

/* the small no / en switch, top bar right */
.top-lang{margin-left:auto}
.seg-s{padding:3px}
.seg-s .seg-btn{flex:0 0 auto;width:48px;height:40px;font-size:13px;font-weight:600;letter-spacing:.02em}
.seg-s .seg-thumb{top:3px;bottom:3px;left:3px;width:48px}
#bl-en[aria-pressed=true] ~ .seg-thumb{transform:translateX(100%)}

/* ---- the picker button: the current choice and a small arrow ---- */
.picker-btn{
  display:inline-flex;align-items:center;gap:8px;max-width:100%;
  height:48px;padding:0 16px 0 18px;border-radius:var(--r-pill);
  border:0;background:var(--fill);color:var(--text);
  font:inherit;font-size:15px;font-weight:500;white-space:nowrap;
  transition:background-color 200ms var(--ease),transform 320ms var(--spring);
  -webkit-tap-highlight-color:transparent;
}
.picker-btn:hover{background:var(--fill-hover)}
.picker-btn:active{transform:scale(.96)}
.picker-btn span{overflow:hidden;text-overflow:ellipsis}
.picker-btn svg{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:var(--dim);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.picker-btn-s{height:44px;padding:0 14px 0 16px;font-size:15px}

/* ---- the dropdown menu (boss page): right under its button, attached,
   no overlay. inside the screen, max height, scrolls inside ---- */
.menu{
  position:fixed;z-index:60;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding:6px;border-radius:16px;background:#1d1d22;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 var(--edge-top),0 14px 40px rgba(0,0,0,.5);
  opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top center;
  transition:opacity 160ms var(--ease),transform 280ms var(--spring);
}
.menu.is-open{opacity:1;transform:none}
.menu-item{
  display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 12px;
  border:0;border-radius:10px;background:transparent;color:var(--text);
  font:inherit;font-size:16px;font-weight:500;text-align:left;
  transition:background-color 140ms var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.menu-item:hover,.menu-item:focus-visible{background:var(--fill-hover);outline:none}
.menu-name{flex:1 1 auto;min-width:0;padding:6px 0}
.menu-sub{display:block;font-size:13px;font-weight:400;color:var(--dim);line-height:1.3}
.menu-tick{flex:0 0 auto;width:20px;height:20px;fill:none;stroke:var(--mint);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.menu-item.is-on .menu-tick{opacity:1}
.menu-box{flex:0 0 auto;width:22px;height:22px;border-radius:7px;background:var(--well);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;transition:background-color 160ms var(--ease),box-shadow 160ms var(--ease)}
.menu-box-tick{width:15px;height:15px;fill:none;stroke:var(--mint-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.6);transition:opacity 140ms var(--ease),transform 260ms var(--spring)}
.menu-item.is-on .menu-box{background:var(--mint);box-shadow:none}
.menu-item.is-on .menu-box-tick{opacity:1;transform:none}
.menu-item.is-off{color:var(--dim);cursor:default}
.menu-item.is-off:hover{background:transparent}
.menu-item.is-off .menu-name{opacity:.55}
.menu-off{flex:0 0 auto;font-size:14px;font-weight:400;color:var(--dim)}
.menu-note{padding:8px 12px 6px;font-size:14px;color:var(--warn)}

/* ---- the language sheet: up from the bottom on phones, centred on desktop ---- */
.sheet-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
.sheet-shade{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity 280ms var(--ease)}
.sheet{
  position:relative;width:100%;max-height:86vh;display:flex;flex-direction:column;
  background:#17171b;border-radius:24px 24px 0 0;
  box-shadow:inset 0 1px 0 var(--edge-top),inset 0 0 0 1px var(--edge),0 -16px 48px rgba(0,0,0,.45);
  transform:translateY(100%);transition:transform 420ms var(--ease);
  padding-bottom:env(safe-area-inset-bottom);outline:none;
}
.is-open .sheet-shade{opacity:1}
.is-open .sheet{transform:none}
.sheet-in{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;width:100%;max-width:560px;margin:0 auto;padding:8px 16px 16px}
.sheet-grab{display:block;width:40px;height:5px;border-radius:var(--r-pill);background:rgba(255,255,255,.18);margin:0 auto 8px}
.sheet-head{display:flex;align-items:center;gap:12px;min-height:44px;margin-bottom:4px}
.sheet-title{flex:1 1 auto;font-size:20px;font-weight:600;letter-spacing:-.02em}
.sheet-x{flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:0;background:var(--fill);color:var(--text);display:flex;align-items:center;justify-content:center;transition:background-color 200ms var(--ease)}
.sheet-x:hover{background:var(--fill-hover)}
.sheet-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.sheet-list{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin:0 -8px;padding:0 8px}
.sheet-item{
  display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:0 14px;
  border:0;border-radius:var(--r-input);background:transparent;color:var(--text);
  font:inherit;font-size:18px;font-weight:500;text-align:start;
  transition:background-color 160ms var(--ease);
  -webkit-tap-highlight-color:transparent;
}
.sheet-item:hover{background:var(--fill)}
.sheet-item:active{background:var(--fill-hover)}
.sheet-name{flex:1 1 auto;min-width:0;text-align:left}
.sheet[dir=rtl] .sheet-name{text-align:right}
.sheet-tick{flex:0 0 auto;width:22px;height:22px;fill:none;stroke:var(--mint);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.6);transition:opacity 200ms var(--ease),transform 320ms var(--spring)}
.sheet-item.is-on .sheet-tick{opacity:1;transform:none}
/* not sent: greyed, cannot be picked, a short note on the other side */
.sheet-item.is-off{color:var(--dim);cursor:default}
.sheet-item.is-off:hover,.sheet-item.is-off:active{background:transparent}
.sheet-item.is-off .sheet-name{opacity:.55}
.sheet-off{flex:0 0 auto;font-size:14px;font-weight:400;color:var(--dim)}
.sheet-box{flex:0 0 auto;width:24px;height:24px;border-radius:8px;background:var(--well);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;transition:background-color 200ms var(--ease),box-shadow 200ms var(--ease)}
.sheet-box svg{width:16px;height:16px;fill:none;stroke:var(--mint-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.6);transition:opacity 160ms var(--ease),transform 320ms var(--spring)}
.sheet-item.is-on .sheet-box{background:var(--mint);box-shadow:none}
.sheet-item.is-on .sheet-box svg{opacity:1;transform:none}
.sheet-foot{display:flex;flex-direction:column;gap:10px;padding-top:12px}
.sheet-note{font-size:14px;color:var(--warn);text-align:center}
@media (min-width:768px){
  .sheet-wrap{align-items:center;padding:24px}
  .sheet{width:440px;max-height:min(680px,86vh);border-radius:24px;opacity:0;transform:translateY(12px) scale(.97);transition:transform 380ms var(--spring),opacity 240ms var(--ease)}
  .is-open .sheet{opacity:1;transform:none}
  .sheet-grab{display:none}
  .sheet-in{padding:20px 20px 20px}
}
/* full mode: the worker's first visit. the whole screen, no way out but a choice.
   a globe on top, the title small under it. one column on a phone, two when wide. */
.sheet-full .sheet-shade{background:var(--bg)}
.sheet-full .sheet,.sheet-full.is-open .sheet{
  width:100%;height:100%;max-height:none;border-radius:0;background:var(--bg);box-shadow:none;
  transform:none;opacity:0;transition:opacity 320ms var(--ease);
}
.sheet-full.is-open .sheet{opacity:1}
.sheet-full .sheet-in{padding-top:24px;max-width:720px}
.sheet-full .sheet-head{flex-direction:column;justify-content:center;gap:12px;margin:8px 0 20px}
.sheet-globe{width:72px;height:72px;border-radius:50%;background:var(--mint-soft);display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 1.5px rgba(159,232,176,.35)}
.sheet-globe svg{width:34px;height:34px;fill:none;stroke:var(--mint);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sheet-full .sheet-title{flex:0 1 auto;font-size:16px;font-weight:500;color:var(--dim);text-align:center;letter-spacing:0}
.sheet-full .sheet-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-content:start;padding-bottom:16px}
@media (min-width:600px){.sheet-full .sheet-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sheet-full .sheet-item{
  min-height:64px;font-size:19px;border-radius:var(--r-card);padding:0 20px;margin:0;
  background:linear-gradient(180deg,#17171b 0,var(--surface) 60%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.045),0 8px 22px rgba(0,0,0,.28);
  transition:transform 320ms var(--spring),background-color 200ms var(--ease);
}
.sheet-full .sheet-item:hover{background:var(--surface-2)}
.sheet-full .sheet-item:active{transform:scale(.97)}
@media (min-width:768px){
  .sheet-full{padding:0}
  .sheet-full .sheet{width:100%;height:100%;max-height:none;border-radius:0}
  .sheet-full .sheet-in{padding-top:56px}
}

/* ---- state chips ---- */
.chip{
  display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:var(--r-pill);
  font-size:14px;font-weight:500;white-space:nowrap;
  background:var(--fill);color:var(--dim);
}
.chip-ok{background:var(--mint-soft);color:var(--mint)}
.chip-warn{background:var(--warn-soft);color:var(--warn)}
.chip-bad{background:var(--red-soft);color:var(--red-text)}

/* ---- notes ---- */
.note-warn{color:var(--warn)}
.note-bad{
  background:var(--red-soft);color:var(--red-text);border-radius:var(--r-input);
  box-shadow:inset 0 0 0 1px rgba(229,72,77,.45);padding:14px 16px;font-size:16px;
}
.note-center{text-align:center}
.team-row{display:flex;justify-content:center}
/* the clear check card: one small question above the send step */
.clarify{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:16px;background:var(--well);box-shadow:inset 0 0 0 1px rgba(159,232,176,.28)}
.clarify-quote{font-size:14px;color:var(--dim);overflow-wrap:anywhere}
.clarify-q{font-size:17px;font-weight:600;line-height:1.35}
.clarify-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.btn-choice{flex:1 1 120px;height:48px}

/* ---- rows: a hairline between, no boxes ---- */
.rows{border-top:1px solid var(--hair)}
.row{border-bottom:1px solid var(--hair)}
.rows-head{display:none}

/* the language rows on the check screen */
.lang-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:6px;padding:16px 4px;align-items:start}
.lang-row .name{grid-row:1;grid-column:1;font-size:16px;font-weight:600}
.lang-row .state{grid-row:1;grid-column:2;justify-self:end}
.lang-row .body{grid-row:2;grid-column:1 / -1;min-width:0}
.lang-row .tx{font-size:16px;line-height:1.5;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.lang-row .bk{margin-top:6px;font-size:14px;line-height:1.45;color:var(--dim);white-space:pre-wrap;overflow-wrap:anywhere}
.lang-row ul{margin:8px 0 0;padding-left:18px;font-size:14px;line-height:1.45;color:var(--warn)}
@media (min-width:768px){
  .rows-head{display:grid;height:36px;align-items:center;padding:0 4px}
  .lang-row,.rows-head{grid-template-columns:140px minmax(0,1fr) 100px}
  .lang-row .name,.lang-row .state,.lang-row .body{grid-row:auto;grid-column:auto}
  .lang-row .state,.rows-head .state{justify-self:end}
}

/* ---- boss page: two columns on desktop ---- */
.split{display:flex;flex-direction:column;gap:48px}
@media (min-width:900px){
  .split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:56px;align-items:start}
  .preview{position:sticky;top:96px}
}
.preview{display:flex;flex-direction:column;align-items:center;gap:16px;min-width:0}


/* the phone: round corners, thin frame, a small island, a soft glow under it */
.phone-stage{position:relative;z-index:0;width:300px;max-width:100%;margin-bottom:24px}
.phone-stage::before{
  content:"";position:absolute;z-index:-1;left:-10%;right:-10%;bottom:-48px;height:140px;
  background:radial-gradient(closest-side,rgba(159,232,176,.16),rgba(159,232,176,.05) 55%,rgba(159,232,176,0));
  pointer-events:none;
}
.phone{
  border-radius:48px;padding:6px;
  background:linear-gradient(180deg,#2a2a30,#17171a);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10),0 24px 60px rgba(0,0,0,.45);
}
.phone-screen{
  border-radius:42px;background:var(--bg);
  min-height:540px;padding:14px 16px 22px;
  display:flex;flex-direction:column;gap:14px;overflow:hidden;
}
.phone-island{flex:0 0 auto;width:92px;height:26px;border-radius:var(--r-pill);background:#000;margin:0 auto 10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.phone .msg-card{padding:16px;border-radius:18px}
.phone .msg{font-size:17px;line-height:1.45}
.phone .orig p{font-size:12px}
.phone .label{font-size:12px}
.phone .listen{font-size:14px}
.phone .listen-dot{width:44px;height:44px}
.phone .dock{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:16px}
.phone .understood{height:52px;font-size:17px}
.phone .notsig{font-size:12px}
.phone .safety{font-size:14px;padding:10px 12px}
.phone .empty{color:var(--dim);font-size:15px;text-align:center;padding:56px 0}
/* right to left languages: the screen flips, the original keeps its own way */
.phone-screen[dir=rtl] .listen{align-self:flex-start}
.orig p[dir=auto]{text-align:start}
/* the message itself finds its own direction: arabic reads right to left, the boss's own latin words before the check keep left to right */
.msg[dir=auto]{text-align:start}

/* ---- sent ---- */
.sent-wrap{max-width:640px;margin:0 auto}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.tile{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--lift);padding:16px;min-width:0}
@media (min-width:768px){.tile{padding:20px 24px}}
.tile dt{margin:0}
.tile dd{margin:6px 0 0}
.tile .t-stat{display:block;color:var(--text)}
.count-row{display:grid;grid-template-columns:minmax(0,1fr) 88px 112px;column-gap:12px;padding:14px 4px;font-size:16px}
.count-row .n{text-align:right}
.count-row > span:first-child{text-align:left}
.count-row.head{padding:0 4px;height:36px;align-items:center;font-size:14px}
.pad-note{padding:16px 4px 0}
.link{font-family:var(--mono);font-size:14px;color:var(--text);overflow-wrap:anywhere;user-select:all;
  background:var(--well);box-shadow:inset 0 0 0 1px var(--edge);border-radius:var(--r-input);padding:14px 16px}
.qr{background:#fff;border-radius:16px;padding:16px;width:240px;max-width:100%;margin:0 auto}
.qr svg{display:block;width:100%;height:auto}

/* ---- motion: short, calm, soft settle ---- */
@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.enter{animation:enter 360ms var(--ease) both}

/* ---- every wait: one thin mint ring that turns slowly, like the count ring ---- */
.loading{
  position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:inherit;
  background:var(--surface);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;
}
.loading p{font-size:17px;font-weight:500;color:var(--text)}
.spin{display:inline-block;flex:0 0 auto;width:40px;height:40px}
.spin svg{display:block;width:100%;height:100%;animation:spin 1.8s linear infinite}
.spin-bg{fill:none;stroke:rgba(255,255,255,.08);stroke-width:3}
.spin-fg{fill:none;stroke:var(--mint);stroke-width:3;stroke-linecap:round;stroke-dasharray:28 101}
@keyframes spin{to{transform:rotate(360deg)}}
.spin-l{width:56px;height:56px}
.spin-l .spin-bg,.spin-l .spin-fg{stroke-width:2.6}
.spin-m{width:36px;height:36px}
.spin-xs{width:18px;height:18px}
.spin-xs .spin-bg,.spin-xs .spin-fg{stroke-width:4}
.btn-primary .spin-fg{stroke:var(--mint-ink)}
.btn-primary .spin-bg{stroke:rgba(10,10,11,.18)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .spin svg{animation-duration:6s !important;animation-iteration-count:infinite !important}
  .btn:active,.picker-btn:active,.listen:active .listen-dot{transform:none !important}
}

/* ================================================================
   the worker view. shared by the worker page and the boss preview.
   ================================================================ */
.safety{
  display:flex;align-items:center;gap:10px;
  background:var(--warn-soft);color:var(--warn);box-shadow:inset 0 0 0 1px rgba(242,193,78,.45);
  border-radius:var(--r-input);padding:12px 16px;font-weight:600;font-size:16px;
}
.safety svg{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msg-card{background:linear-gradient(180deg,#17171b 0,var(--surface) 60%);border-radius:var(--r-card);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.045),0 14px 34px rgba(0,0,0,.30);padding:24px}
.msg{margin:0;font-size:28px;line-height:1.35;font-weight:500;color:var(--text);white-space:pre-wrap;overflow-wrap:break-word;word-wrap:break-word}
.orig{margin-top:20px;padding-top:16px;border-top:1px solid var(--hair)}
.orig p{margin-top:4px;color:var(--dim);font-size:15px;white-space:pre-wrap;overflow-wrap:break-word;word-wrap:break-word}

.listen{
  display:flex;align-items:center;gap:12px;align-self:flex-start;
  background:none;border:0;padding:0;color:var(--text);font:inherit;font-size:16px;font-weight:500;
  -webkit-tap-highlight-color:transparent;
}
.listen-dot{
  width:56px;height:56px;border-radius:50%;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  background:var(--fill);
  transition:background-color 200ms var(--ease),transform 320ms var(--spring);
}
.listen:hover .listen-dot{background:var(--fill-hover)}
.listen:active .listen-dot{transform:scale(.94)}
.listen svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.understood{width:100%;height:60px;font-size:20px}
.notsig{font-size:14px;line-height:1.4;color:var(--dim);text-align:center}

.done{
  display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;
  background:var(--surface);border-radius:var(--r-card);box-shadow:var(--lift);
  padding:28px 24px;font-size:18px;font-weight:500;color:var(--text);
}
.tick{
  width:64px;height:64px;border-radius:50%;background:var(--mint-soft);
  display:flex;align-items:center;justify-content:center;
}
.tick svg{width:30px;height:30px;fill:none;stroke:var(--mint);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* ---- fix round: the card footer. listen on the start side, ask on the end side ---- */
.card-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:18px;padding-top:12px;border-top:1px solid var(--hair)}
.card-foot .listen{min-height:48px;align-self:auto}
.card-foot .listen span:last-child{white-space:normal}
.card-ask.is-off{opacity:.4}
.card-ask .listen-dot svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.phone .card-foot{margin-top:12px;padding-top:8px;gap:6px 10px}
.phone .card-foot .listen{min-height:0}
.phone .card-foot .listen-dot{width:36px;height:36px}
