/* the manager board, bento style. small rounded tiles on a grid, 20px
   corners, soft depth, a faint light edge on top of each tile, one clear
   thing per tile. big numbers, small grey labels, ring counters, round icon
   buttons. mint only for the main action and ok, yellow only for warnings.
   phone first: one column. desktop: a bento grid. */

/* ---- the page ---- */
.boss .page{max-width:1180px;padding-top:16px}
@media (min-width:900px){.boss .page{padding-top:32px}}

/* ---- a tile: one clear thing ---- */
.tile{
  position:relative;min-width:0;
  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 1px 2px rgba(0,0,0,.4),0 14px 34px rgba(0,0,0,.30);
  padding:20px;
}
@media (min-width:900px){.tile{padding:24px}}
.tile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;margin-bottom:14px}
.tile-meta{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--dim);white-space:nowrap}
.tiny{font-size:13px}
/* a tile inside a card: a faint well */
.tile-in{background:rgba(255,255,255,.025);border-radius:16px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);padding:6px 16px}
.tile-in.stack-8{padding:16px}
.tile-in > .label{padding:12px 0 2px}

/* tiles press down a little */
.press{transition:transform 320ms var(--spring),background-color 200ms var(--ease)}
.press:active{transform:scale(.97)}

/* ---- the setup card ---- */
.setup{max-width:460px;margin:24px auto 0;padding:24px}
@media (min-width:768px){.setup{margin-top:56px;padding:32px}}
/* the data line: small, close under Start, one row on desktop, may wrap on a phone */
.setup > .note-center{font-size:12px;margin-top:-16px;overflow-wrap:anywhere}
@media (min-width:768px){.setup > .note-center{white-space:nowrap}}

/* ---- the bento grid ---- */
.bento{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.b-req{display:flex;flex-direction:column;gap:12px}
.b-req:empty{display:none}
/* phone order: last, write, team, recent */
.t-last{order:1}.t-write{order:2}.t-team{order:3}.t-recent{order:4}
.b-req{order:0}
/* the small tiles and the questions tile: desktop only. questions are
   not built yet, so on a phone the empty tile does not show at all */
.t-small,.t-questions{display:none}
/* on a phone: right under the last message tile, only when a question is open */
.t-questions{order:1}
.t-questions.has-q{display:block}
@media (min-width:900px){
  .bento{
    grid-template-columns:minmax(0,1.35fr) minmax(0,.675fr) minmax(0,.675fr);
    grid-template-areas:
      "req req req"
      "write last last"
      "write today wait"
      "write questions questions"
      "team team team"
      "recent recent recent";
    gap:16px;align-items:stretch;
  }
  .b-req{grid-area:req}
  .t-write{grid-area:write}
  .t-last{grid-area:last}
  #t-today{grid-area:today}
  #t-wait{grid-area:wait}
  .t-team{grid-area:team}
  .t-questions{grid-area:questions;display:block}
  .t-recent{grid-area:recent}
  .t-small{display:flex}
  .bento > *{order:0}
}

/* ---- big numbers, small labels ---- */
.t-small{flex-direction:column;gap:6px;min-height:136px}
.t-small .t-stat{font-size:44px;line-height:1;letter-spacing:-.03em;margin-top:auto}
.t-small.is-warn .t-stat{color:var(--warn)}

/* ---- the rings ---- */
.ring{position:relative;display:inline-block;width:96px;height:96px;flex:0 0 auto}
.ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.ring-l{width:104px;height:104px}
.ring-bg{fill:none;stroke:rgba(255,255,255,.07);stroke-width:10}
.ring-fg{fill:none;stroke:var(--mint);stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset 900ms var(--ease)}
.ring-in{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:600;letter-spacing:-.02em}

/* ---- the last message tile ---- */
.last-body{
  display:flex;align-items:center;gap:18px;width:100%;padding:0;border:0;background:transparent;color:var(--text);
  font:inherit;text-align:start;border-radius:16px;-webkit-tap-highlight-color:transparent;
}
.last-text{display:flex;flex-direction:column;gap:6px;min-width:0}
.last-count{font-size:24px;font-weight:600;line-height:1.15;letter-spacing:-.02em}
.last-first{font-size:15px;color:var(--dim);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
@media (min-width:900px){.last-count{font-size:28px}.ring-l{width:116px;height:116px}}

/* ---- the write tile ---- */
.t-write h1{font-size:26px}
@media (min-width:900px){.t-write h1{font-size:30px}.t-write textarea{min-height:220px}}
#check:disabled{background:var(--fill);color:var(--dim);opacity:1}

/* ---- empty states: a line icon in a soft round tile, one line, one button ---- */
.empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:14px 8px 6px}
.empty p{font-size:16px;color:var(--text);max-width:300px}
.empty .btn{height:48px}
.empty-row{padding:8px 0 0}
.empty-icon{width:52px;height:52px;border-radius:16px;background:var(--mint-soft);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),inset 0 0 0 1px rgba(159,232,176,.18);display:flex;align-items:center;justify-content:center}
.empty-icon svg{width:22px;height:22px;fill:none;stroke:var(--mint);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---- avatars: the first letter in a circle ---- */
.avatar{
  position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:56px;height:56px;border-radius:50%;
  background:linear-gradient(160deg,#26262c,#1a1a1f);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.06);
  font-size:21px;font-weight:600;color:var(--text);
}
.avatar-s{width:36px;height:36px;font-size:14px}
.avatar-m{width:48px;height:48px;font-size:19px}
.avatar-l{width:72px;height:72px;font-size:28px}
.avatar-former{color:var(--dim)}
.avatar-dot{position:absolute;right:1px;bottom:1px;width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 3px var(--surface)}
.avatar-add{background:var(--mint);box-shadow:none;color:var(--mint-ink)}
.avatar-add svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.avatar-pulse{box-shadow:0 0 0 0 rgba(159,232,176,.45),inset 0 0 0 1.5px rgba(159,232,176,.6);animation:pulse 2.2s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(159,232,176,.40),inset 0 0 0 1.5px rgba(159,232,176,.6)}70%{box-shadow:0 0 0 12px rgba(159,232,176,0),inset 0 0 0 1.5px rgba(159,232,176,.6)}100%{box-shadow:0 0 0 0 rgba(159,232,176,0),inset 0 0 0 1.5px rgba(159,232,176,.6)}}

/* ---- dots: green understood or joined, yellow opened, grey not ---- */
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:0 0 auto;background:rgba(255,255,255,.24)}
.dot-ok{background:var(--mint)}
.dot-warn{background:var(--warn)}
.dot-none{background:#55555d}
.dot.dot-ok{box-shadow:0 0 0 4px var(--mint-soft)}
.dot.dot-warn{box-shadow:0 0 0 4px var(--warn-soft)}

/* ---- the team tile: one wide line. add worker pinned, the circles slide ---- */
.team-line{display:flex;align-items:flex-start;gap:4px}
.team-line > .add-c{position:relative;z-index:2}
.team-wrap{position:relative;flex:1 1 auto;min-width:0}
.team-scroll{
  display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;scrollbar-width:none;padding:0 0 4px;
}
.team-scroll::-webkit-scrollbar{display:none}
/* a soft fade at an edge, only when there is more to see that way */
.team-fade{position:absolute;top:0;bottom:4px;width:36px;pointer-events:none;opacity:0;transition:opacity 220ms var(--ease);z-index:1}
.fade-l{left:0;background:linear-gradient(90deg,#141417,rgba(20,20,23,0))}
.fade-r{right:0;background:linear-gradient(270deg,#141417,rgba(20,20,23,0))}
.more-l .fade-l,.more-r .fade-r{opacity:1}
/* desktop: small round arrows at the edges */
.team-arrow{position:absolute;top:16px;z-index:2;width:40px;height:40px;background:#232329;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 6px 16px rgba(0,0,0,.4)}
.team-arrow:hover{background:#2b2b32}
.arrow-l{left:-4px}.arrow-r{right:-4px}
@media (max-width:899px){.team-arrow{display:none !important}}
.t-team .tile-meta .chip-btn{margin-left:4px}
.t-questions .empty{padding:18px 8px 10px}
.t-questions .empty p{color:var(--dim)}

.person-c{
  flex:0 0 auto;width:84px;display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:8px 2px;border:0;border-radius:16px;background:transparent;color:var(--text);font:inherit;
  scroll-snap-align:start;-webkit-tap-highlight-color:transparent;
}
.person-c:hover{background:rgba(255,255,255,.03)}
.pc-name{max-width:100%;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-lang{max-width:100%;font-size:13px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.add-c .pc-name{color:var(--mint);white-space:normal;text-align:center;line-height:1.25}
.team-hint{align-self:center;flex:0 0 auto;max-width:180px;font-size:15px;color:var(--text);padding-left:6px}

/* ---- a join request: its own tile on top, with a soft pulse ---- */
.t-request{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1.5px rgba(159,232,176,.35),0 14px 34px rgba(0,0,0,.30)}
.t-request.pop{animation:pop 460ms var(--spring) both}
@keyframes pop{from{opacity:0;transform:translateY(-10px) scale(.97)}to{opacity:1;transform:none}}
.request-text{flex:1 1 160px;min-width:0}
.request-name{font-size:18px;font-weight:600;overflow-wrap:anywhere}
.request-btns{display:flex;gap:10px;flex:1 1 220px}
.request-btns .btn{flex:1 1 0;height:52px}
.btn-dark{background:#0e0e11;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.btn-dark:hover:not(:disabled){background:#141418}

/* ---- message rows ---- */
.rows{border-top:0}
.rows > .row:last-child{border-bottom:0}
.msg-row{
  position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 2px;
  border:0;border-bottom:1px solid var(--hair);background:transparent;color:var(--text);font:inherit;text-align:start;
  -webkit-tap-highlight-color:transparent;
}
.msg-row:hover{background:rgba(255,255,255,.02)}
/* not everyone understood: a yellow edge */
.msg-row.is-short::before{content:"";position:absolute;left:-12px;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--warn)}
.msg-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.msg-first{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.msg-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--dim)}
.msg-count{flex:0 0 auto;font-size:15px;font-weight:600;color:var(--mint);font-variant-numeric:tabular-nums}
.msg-count.is-short{color:var(--warn)}
.chip-s{height:24px;padding:0 10px;font-size:13px}
.t-recent .rows{margin:0 -2px}
.t-recent .msg-row.is-short::before{left:-14px}
@media (min-width:900px){.t-recent .msg-row.is-short::before{left:-18px}}
.chip-btn{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 10px 0 14px;border:0;border-radius:var(--r-pill);background:var(--fill);color:var(--text);font:inherit;font-size:14px;font-weight:500;transition:background-color 200ms var(--ease)}
.chip-btn:hover{background:var(--fill-hover)}
.chip-btn .ico{width:16px;height:16px}
.day-label{padding:14px 4px 8px}
.day-label:first-child{padding-top:0}

/* ---- icons ---- */
.icons{position:absolute;width:0;height:0;overflow:hidden}
.ico{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.icon-btn{
  width:48px;height:48px;flex:0 0 auto;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),transform 320ms var(--spring);
}
.icon-btn:hover{background:var(--fill-hover)}
.icon-btn:active{transform:scale(.94)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---- the card: a panel from the right on desktop, a sheet on a phone ---- */
.panel-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;display:flex;align-items:flex-end;justify-content:center}
.panel-shade{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.55);opacity:0;transition:opacity 300ms var(--ease);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.panel{
  position:relative;width:100%;max-height:90vh;display:flex;flex-direction:column;outline:none;
  background:#141418;border-radius:24px 24px 0 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 -20px 60px rgba(0,0,0,.5);
  transform:translateY(100%);transition:transform 420ms var(--ease);
  padding-bottom:env(safe-area-inset-bottom);
}
.panel-wrap.is-open .panel-shade{opacity:1}
.panel-wrap.is-open .panel{transform:none}
.panel-grab{display:block;width:40px;height:5px;border-radius:var(--r-pill);background:rgba(255,255,255,.18);margin:8px auto 0}
.panel-head{display:flex;align-items:center;gap:10px;padding:10px 16px 8px}
.panel-title{flex:1 1 auto;min-width:0;font-size:19px;font-weight:600;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.panel-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px 16px 24px;display:flex;flex-direction:column;gap:14px}
#panelcontent{display:flex;flex-direction:column;gap:14px;flex:1 1 auto}
#panelcontent[hidden]{display:none}
@media (min-width:900px){
  .panel-wrap{justify-content:flex-end;align-items:stretch}
  .panel{width:460px;max-height:none;height:100%;border-radius:24px 0 0 24px;transform:translateX(104%);
    box-shadow:inset 1px 0 0 rgba(255,255,255,.06),-24px 0 60px rgba(0,0,0,.5)}
  .panel-grab{display:none}
  .panel-head{padding:20px 20px 8px}
  .panel-body{padding:8px 20px 28px}
}
body.has-panel{overflow:hidden}

/* inside the card */
.p-person{display:flex;align-items:center;gap:16px;padding:4px 0 6px}
.p-person-text{min-width:0}
.p-name{font-size:24px;font-weight:600;letter-spacing:-.02em;overflow-wrap:anywhere}
.p-actions{display:flex;gap:10px;position:sticky;bottom:-24px;padding:12px 0 0;margin-top:auto;background:linear-gradient(180deg,rgba(20,20,24,0),#141418 18px)}
.p-actions .btn{flex:1 1 0}
.btn-bad{color:var(--red-text)}
.btn-bad:hover:not(:disabled){background:var(--red-soft)}
.p-count{display:flex;align-items:center;gap:18px;padding:4px 0}
.p-count-text{min-width:0;display:flex;flex-direction:column;gap:8px}
.p-count-big{font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.02em}
.c-orig{font-size:16px;line-height:1.5;color:var(--dim);white-space:pre-wrap;overflow-wrap:anywhere;text-align:start;padding:0 2px}
.hist-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 0;border:0;border-bottom:1px solid var(--hair);background:transparent;color:var(--text);font:inherit;text-align:start}
.person{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 0}
.person-who{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.person-name{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-name.is-former{color:var(--dim);font-weight:400}
.person-state{flex:0 0 auto;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--dim);text-align:end}
.person-state.st-understood{color:var(--mint)}
.person-state.st-opened{color:var(--warn)}
@media (max-width:420px){.person-state{max-width:130px}}

/* add worker, in the card */
.add-card{align-items:center;text-align:center}
.add-title{font-size:17px;font-weight:600}
.qr-stage{display:flex;flex-direction:column;align-items:center;gap:14px}
.add-card .qr{width:248px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.qr-timer{position:relative;width:48px;height:48px}
.qr-timer svg{width:48px;height:48px;transform:rotate(-90deg)}
.qr-timer .ring-bg,.qr-timer .ring-fg{stroke-width:3.5}
.qr-timer .ring-fg{transition:stroke-dashoffset 250ms linear}
.qr-secs{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600}
.test-link{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-height:48px;color:var(--mint);font-size:15px;font-weight:500;text-decoration:none;padding:6px 12px;border-radius:12px}
.test-link:hover span:first-child{text-decoration:underline}
.add-card .join-copy,.add-card #linkbox{width:100%}
.link-field{font-family:var(--mono);font-size:14px;height:48px}
#copyjoin.is-copied{background:var(--mint-soft);color:var(--mint)}
.add-card .link{text-align:left;width:100%}

/* ---- the check screen, with the worker view ---- */
.review-grid{display:flex;flex-direction:column;gap:16px;max-width:1100px;margin:0 auto}
.pv-open{display:inline-flex}
.pv-head{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}
/* phone: the worker view is a sheet behind See as worker. no blur. */
.pv-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:65;display:none;align-items:flex-end;justify-content:center}
.pv-wrap.is-on{display:flex}
.pv-shade{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.62);opacity:0;transition:opacity 300ms var(--ease)}
.pv-wrap .preview{position:relative;width:100%;max-height:92vh;overflow-y:auto;background:#141418;border-radius:24px 24px 0 0;
  padding:16px 16px calc(24px + env(safe-area-inset-bottom));box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transform:translateY(100%);transition:transform 420ms var(--ease)}
.pv-wrap.is-open .pv-shade{opacity:1}
.pv-wrap.is-open .preview{transform:none}
.pv-wrap .phone-stage{margin-bottom:8px}
@media (min-width:900px){
  .review-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:32px;align-items:start}
  .pv-open{display:none}
  .pv-wrap,.pv-wrap.is-on{position:sticky;top:88px;display:block;z-index:auto}
  .pv-shade,.pv-x{display:none}
  .pv-wrap .preview{position:static;max-height:none;overflow:visible;background:transparent;border-radius:0;padding:0;box-shadow:none;transform:none}
  .pv-head{justify-content:center}
}
.empty-pv{color:var(--dim);font-size:15px;text-align:center;padding:56px 0}

/* ---- socials ---- */
.top-social{display:none;gap:6px;margin-left:auto}
.top-social a{width:40px;height:40px}

.foot{display:flex;flex-direction:column;align-items:center;gap:14px;margin:48px 0 0;padding:28px 0 8px}
.wordmark{font-size:13px;font-weight:600;letter-spacing:.16em;color:var(--dim)}
.socials{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.socials a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--dim);transition:color 200ms var(--ease),background-color 200ms var(--ease)}
.socials a:hover{color:var(--text);background:var(--fill)}
.socials svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.top-social{display:none}
@media (min-width:900px){.top-social{display:flex}.foot{display:none}.top-social + .top-lang{margin-left:12px}}

@media (prefers-reduced-motion:reduce){
  .avatar-pulse,  .t-request.pop{animation:none}
  .press:active{transform:none}
  .panel,.pv-wrap .preview{transition:none}
}

/* ---- who gets the message: a small button under Send ---- */
.goes-row{display:flex;justify-content:center}
.goes-btn{gap:8px;padding:0 12px 0 14px;color:var(--text)}
.goes-btn .ico{width:18px;height:18px;stroke:var(--dim)}

/* ---- worker questions ---- */
.q-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:var(--mint);color:var(--mint-ink);font-size:13px;font-weight:600}
.q-list:empty{display:none}
.q-row{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px 2px;border:0;border-bottom:1px solid var(--hair);background:transparent;color:var(--text);font:inherit;text-align:start}
.q-row .avatar{margin-top:2px}
.q-who{font-size:14px;font-weight:600;color:var(--text)}
.q-text{font-size:16px;line-height:1.4;color:var(--text);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:start}
.q-about{font-size:13px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
/* a question mark on a worker circle, and the yellow state dot */
.q-badge{position:absolute;top:-4px;right:-4px;width:22px;height:22px;border-radius:50%;background:var(--mint);color:var(--mint-ink);
  display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px var(--surface)}
.q-badge svg{width:13px;height:13px;fill:currentColor;stroke:none}
.avatar-s .q-badge{width:17px;height:17px;top:-5px;right:-5px}
.avatar-s .q-badge svg{width:10px;height:10px}
.dot.dot-q{width:16px;height:16px;border-radius:50%;background:var(--warn);color:var(--mint-ink);font-size:11px;font-weight:700;line-height:16px;text-align:center;box-shadow:0 0 0 4px var(--warn-soft)}
.person-state.st-question{color:var(--warn)}
/* small question tiles in the message card and the worker card */
.q-box{padding:12px 16px 14px}
.q-box > .label{padding:0 0 8px}
.q-tiles{display:flex;flex-direction:column;gap:8px}
.q-small{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px 12px;border:0;border-radius:12px;background:rgba(255,255,255,.03);color:var(--text);font:inherit;text-align:start;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.q-small.is-open{box-shadow:inset 0 0 0 1px rgba(242,193,78,.35)}
.q-small-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.q-small .q-text{font-size:15px}
.q-small-answer{font-size:14px;color:var(--dim);border-left:2px solid var(--mint);padding-left:8px;overflow-wrap:anywhere}
/* the question card */
.q-card-name{font-size:20px;font-weight:600;letter-spacing:-.02em}
.q-card{padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.q-card-text{font-size:19px;line-height:1.45;font-weight:500;overflow-wrap:anywhere;white-space:pre-wrap;text-align:start}
.q-orig-label{margin-top:6px}
.q-orig{font-size:14px;color:var(--dim);overflow-wrap:anywhere;white-space:pre-wrap;text-align:start}
.q-msg{display:flex;flex-direction:column;gap:4px;width:100%;padding:12px 16px;border:0;color:var(--text);font:inherit;text-align:start}
.q-msg-text{font-size:14px;color:var(--dim);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.q-card-answer{font-size:16px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.q-answer-field{min-height:104px}
.q-under{display:flex;justify-content:flex-end}
.ask-count{font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
.ask-count.is-full{color:var(--warn)}
.q-note{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:14px;font-size:15px}
.q-note-warn{background:var(--warn-soft);box-shadow:inset 0 0 0 1px rgba(242,193,78,.35)}
.q-note-bad{background:var(--red-soft);color:var(--red-text);box-shadow:inset 0 0 0 1px rgba(229,72,77,.45)}
.q-check{font-weight:600;color:var(--warn)}
.q-tr{font-size:16px;color:var(--text);overflow-wrap:anywhere}
.q-bk{font-size:14px;color:var(--dim);overflow-wrap:anywhere}
.q-warns{margin:0;padding-left:18px;font-size:14px;color:var(--warn)}

/* ---- chat bubbles: your own text on the end side in mint, the other person on the start side in grey ---- */
.thread{display:flex;flex-direction:column;gap:6px}
.bubble{display:block;max-width:86%;padding:10px 14px;border-radius:18px;font-size:16px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;text-align:start}
.bubble-me{align-self:flex-end;background:rgba(159,232,176,.14);color:var(--text);box-shadow:inset 0 0 0 1px rgba(159,232,176,.22);border-end-end-radius:6px}
.bubble-them{align-self:flex-start;background:#25252b;color:var(--text);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);border-end-start-radius:6px}
.bubble-under{align-self:flex-start;max-width:86%;padding:0 6px;font-size:13px;color:var(--dim);overflow-wrap:anywhere;text-align:start}
.bubble-state{align-self:flex-end;padding:0 6px;font-size:13px;color:var(--dim)}
.q-small{gap:6px}
.q-small .bubble{font-size:15px;padding:8px 12px}
.bubble-big{font-size:18px}
.thread .label{padding:0 4px}
.msg-copy{padding-top:2px}
#panelcontent .is-copied{background:var(--mint-soft);color:var(--mint)}

/* ---- top bar on desktop: logo left, socials in the middle, NO and EN right ---- */
@media (min-width:900px){
  .boss .top-in{position:relative}
  .boss .top-social{position:absolute;left:50%;transform:translateX(-50%);margin:0}
  .boss .top-social + .top-lang{margin-left:auto}
}
/* ---- team tile on desktop: the circles wrap, every worker is always visible ---- */
@media (min-width:900px){
  .team-line{flex-wrap:wrap;gap:6px}
  .team-wrap,.team-scroll{display:contents}
  .team-fade,.team-arrow,#teamall{display:none !important}
}
#panelcontent .tile-in.stack-8 > .chip{align-self:flex-start}

/* ---- the check screen: the manager's own text once, green rows fold ---- */
.own-text{background:rgba(255,255,255,.03);border-radius:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);padding:12px 16px;display:flex;flex-direction:column;gap:4px}
.own-text-tx{font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;text-align:start}
.lang-row .bk{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.bk-label{font-size:13px;font-weight:500;color:var(--dim)}
.bk-text{font-size:14px;color:var(--dim);white-space:pre-wrap;overflow-wrap:anywhere}
.lang-row.is-fold{cursor:pointer;border-radius:12px;transition:background-color 200ms var(--ease)}
.lang-row.is-fold:hover{background:rgba(255,255,255,.02)}
.lang-row.is-fold .bk{display:none}
.lang-row.is-fold.is-open .bk{display:flex}
.lang-row .state{display:flex;align-items:center;gap:6px}
.fold-arrow{width:18px;height:18px;fill:none;stroke:var(--dim);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform 240ms var(--ease)}
.lang-row.is-open .fold-arrow{transform:rotate(180deg)}
/* the copy link in the message card: small and quiet, at the bottom */
.btn-quiet-s{height:48px;padding:0 18px;font-size:15px;align-self:center}
.msg-copy{align-items:center;text-align:center}

/* ---- notifications ---- */
/* the small bell in the top bar, before the NO and EN switch */
.top-bell{width:40px;height:40px;margin-left:auto;color:var(--dim)}
.top-bell + .top-lang{margin-left:0}
.top-bell[hidden] + .top-lang{margin-left:auto}
.boss .top-social + .top-bell{margin-left:auto}
.top-bell.is-on{background:var(--mint-soft);color:var(--mint)}
/* under the bell: one short line, or the iphone steps. no overlay */
.bell-box{position:fixed;top:64px;right:0;left:0;z-index:40;pointer-events:none}
.bell-box-in{pointer-events:auto;max-width:340px;margin:0 12px 0 auto;padding:14px 14px 16px 18px;display:flex;flex-direction:column;gap:10px;animation:drop 260ms var(--ease)}
@media (min-width:1124px){.bell-box-in{margin-right:calc((100vw - 1100px) / 2 + 12px)}}
.bell-box-head{display:flex;align-items:flex-start;gap:10px}
.bell-box-title{flex:1 1 auto;font-size:16px;font-weight:500;line-height:1.4;padding-top:9px}
.bell-box-x{width:40px;height:40px}
.bell-steps{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.4;color:var(--text)}
@keyframes drop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.bell-box-in{animation:none}}
/* ---- sign in ---- */
/* the account button sits next to the bell, before NO and EN */
.top-acc{width:40px;height:40px;color:var(--dim)}
.top-bell[hidden] + .top-acc{margin-left:auto}
.top-acc + .top-lang{margin-left:0}
.top-bell[hidden] + .top-acc[hidden] + .top-lang{margin-left:auto}
.top-bell:not([hidden]) + .top-acc[hidden] + .top-lang{margin-left:0}
.top-acc[aria-expanded="true"]{background:var(--fill-hover);color:var(--text)}
.btn-quiet{background:transparent;color:var(--dim)}
.btn-quiet:hover:not(:disabled){background:var(--fill);color:var(--text)}
/* the round icon on the check your mail and passkey screens */
.si-ico{width:72px;height:72px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;align-self:center;color:var(--mint)}
.si-ico .ico{width:32px;height:32px}
.si-sent{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.si-check{font-size:17px;line-height:1.45;color:var(--text)}
.si-dev{font-size:13px;color:var(--dim);text-decoration:underline;text-underline-offset:3px}
#pkoffer h1,#pkoffer > .note{text-align:center}
#pkoffer{gap:16px}
#pkoffer > .note{margin-top:-8px}
#pkoffer > #pklater{margin-top:-8px}
@media (min-width:768px){#pkoffer > .note{white-space:nowrap}}
/* the account box: his email, passkeys, sign out */
.acc-in{gap:12px}
.acc-email{flex:1 1 auto;min-width:0;font-size:16px;font-weight:500;line-height:1.4;padding-top:9px;overflow-wrap:anywhere}
.acc-keys{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.acc-key{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px 0 12px;border-radius:var(--r-input);background:var(--well);box-shadow:inset 0 0 0 1px var(--edge)}
.acc-key .ico{width:18px;height:18px;color:var(--dim);flex:none}
.acc-key-name{flex:1 1 auto;min-width:0;font-size:15px}
.acc-key-date{font-size:13px;color:var(--dim)}
.acc-key-off{min-height:36px;padding:0 12px;font-size:14px}
.acc-out{display:flex;flex-direction:column;gap:6px;padding-top:6px;border-top:1px solid var(--hair)}
/* a worker with alerts off: a small crossed bell on the start side of his circle */
.al-badge{position:absolute;left:-4px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#2a2a30;color:var(--dim);
  box-shadow:0 0 0 2.5px var(--surface);display:flex;align-items:center;justify-content:center}
.al-badge svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.avatar-s .al-badge{width:16px;height:16px;left:-5px;bottom:-4px}
.avatar-s .al-badge svg{width:10px;height:10px}
.avatar-l .al-badge{width:26px;height:26px}
.avatar-l .al-badge svg{width:15px;height:15px}
.al-label{color:var(--dim)}
/* the remind button in the message card */
.msg-remind .btn .ico{stroke:var(--mint)}
.msg-remind .btn:disabled{opacity:.55}
/* a narrow phone: the bell, the account and NO and EN fit in one row */
@media (max-width:419px){
  .boss .top-in{gap:6px}
  .boss .brand{gap:8px}
  .boss .brand b{font-size:16px;white-space:nowrap}
  .boss .top-in > .mark{display:none}
  .boss .top-bell,.boss .top-acc{width:36px;height:36px}
  .boss .top-lang .seg-btn{width:40px}
  .boss .top-lang .seg-thumb{width:40px}
}
