/* Digitory Service Desk — built on the Digitory brand kit (v9.3):
   Navy #223345 header/footer bars with an orange #FF5A10 stripe, Poppins, Light BG #F5F7FA, Gray #556677 captions. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format('woff2'); }
:root {
  --navy: #223345;
  --navy-2: #2E4560;       /* light navy: sub-rows, configuration */
  --orange: #FF5A10;
  --orange-ink: #C2410C;   /* orange text on white (readable) */
  --orange-soft: #FFF1EA;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --ink: #223345;
  --muted: #556677;
  --faint: #AABCCC;
  --line: #DDE3EA;
  --tint: #EEF4FA;         /* brand role-column blue tint */
  --urgent: #D92D20;
  --urgent-ink: #B42318;
  --urgent-soft: #FDECEA;
  --ok: #1E7A3E;
  --ok-soft: #E7F5EC;
  --risk: #9A5B00;
  --risk-soft: #FFF4E0;
  --note: #FFF8E6;
  --note-line: #F2DDA4;
  --sans: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.boot { padding: 40px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo .icon, .logo img { display: block; }

/* ---------- header bar (brand: navy bar + 4px orange stripe) ---------- */
.shell, .login { min-height: 100vh; display: flex; flex-direction: column; }
.hdr { background: var(--navy); border-bottom: 4px solid var(--orange); color: #fff; position: sticky; top: 0; z-index: 10; }
.hdr-in { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.home { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.product { font-weight: 600; font-size: 13px; color: var(--orange); padding-left: 14px; border-left: 1px solid rgba(170,188,204,.35); line-height: 22px; white-space: nowrap; }
.nav { display: flex; align-items: stretch; gap: 4px; height: 100%; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #D6DEE6; text-decoration: none; font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -4px; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: #fff; }
.nav .count { font-weight: 600; font-size: 11.5px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; line-height: 20px; font-variant-numeric: tabular-nums; }
.nav .count.hot { background: var(--orange); color: #fff; }
.me { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.me .who { display: grid; text-align: right; line-height: 1.25; }
.me .who b { color: #fff; font-weight: 600; }
.me .who small { color: var(--faint); font-size: 11.5px; text-transform: capitalize; }
.me button { background: none; border: 1px solid rgba(170,188,204,.4); color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.me button:hover { border-color: #fff; }
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 30px 28px 56px; min-width: 0; }

/* ---------- footer bar (brand: navy + 2px orange stripe) ---------- */
.ftr { background: var(--navy); border-top: 2px solid var(--orange); color: var(--faint); font-size: 12px; }
.ftr-in { max-width: 1280px; margin: 0 auto; padding: 10px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ftr b { color: #fff; font-weight: 600; margin-right: 10px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hdr-in { height: auto; flex-wrap: wrap; padding: 12px 16px 0; gap: 10px 16px; }
  .home { flex: 1; }
  .product { display: none; }
  .me .who { display: none; }
  .nav { order: 3; flex-basis: 100%; height: 44px; overflow-x: auto; gap: 0; margin: 0 -16px; padding: 0 8px; scrollbar-width: none; }
  .nav a { padding: 0 10px; white-space: nowrap; }
  main { padding: 18px 16px 48px; }
  .ftr-in { padding: 10px 16px; }
  .ftr .ctx { display: none; }
}

/* ---------- common ---------- */
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
h2 { font-size: 16px; line-height: 1.35; margin: 0 0 10px; font-weight: 600; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 72ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #C9D3DD; background: var(--card); padding: 8px 15px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--navy); line-height: 1.4; }
.btn:hover { border-color: var(--navy); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: #E84E0A; border-color: #E84E0A; }
.btn.danger { color: var(--urgent-ink); }
.btn.danger:hover { border-color: var(--urgent); }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13px; color: var(--navy); }
.field .hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; border: 1px solid #C9D3DD; background: #fff; border-radius: 8px; padding: 9px 11px; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
input::placeholder, textarea::placeholder { color: #8A99A8; }
textarea { min-height: 84px; resize: vertical; }
.err { background: var(--urgent-soft); color: var(--urgent-ink); border-left: 4px solid var(--urgent); padding: 9px 12px; border-radius: 0 8px 8px 0; margin: 0 0 14px; font-size: 14px; }
.ok-msg { background: var(--ok-soft); color: var(--ok); border-left: 4px solid var(--ok); padding: 9px 12px; border-radius: 0 8px 8px 0; margin: 0 0 14px; font-size: 14px; }
.alert { background: var(--orange-soft); border-left: 4px solid var(--orange); color: var(--navy); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 20px; font-size: 14px; }
.alert code { font: 600 13px var(--sans); background: #fff; padding: 1px 6px; border-radius: 4px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- login ---------- */
.login .hdr { position: static; }
.login-wrap { flex: 1; display: grid; place-items: start center; padding: 9vh 16px 40px; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border-top: 3px solid var(--orange); border-radius: 0 0 12px 12px; padding: 28px 28px 24px; box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(34,51,69,.08); }
.login-card h1 { font-size: 22px; }
.login-card .sub { margin-bottom: 20px; font-size: 13.5px; }
.code-input { font-weight: 600; font-size: 26px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.linkish { background: none; border: 0; color: var(--orange-ink); padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---------- queue ---------- */
.queue-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.queue-head .sub { margin-bottom: 0; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 9px 12px 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--navy); }
.tabs button.on { color: var(--navy); font-weight: 600; border-color: var(--orange); }
.tabs .n { font-size: 12px; color: var(--muted); margin-left: 5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input { max-width: 340px; }
.filters select { width: auto; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: 4px 150px 1fr auto; gap: 0 16px; align-items: center; padding: 13px 18px 13px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }

.row:hover { background: var(--tint); }
.stripe { align-self: stretch; }
.k-urgent .stripe { background: var(--urgent); } .k-not_working .stripe { background: var(--orange); } .k-configuration .stripe { background: var(--navy-2); }
.tno { font-weight: 600; font-size: 14.5px; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tno small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.row .what { min-width: 0; }
.row .what b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.row .what span { color: var(--muted); font-size: 12.5px; }
.row .side { display: grid; justify-items: end; gap: 4px; text-align: right; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.vip { border-color: var(--navy); color: #fff; background: var(--navy); }
.tag.mood { border-color: #F3B8B2; color: var(--urgent-ink); background: var(--urgent-soft); }
.st { font-size: 12px; font-weight: 500; color: var(--muted); }
.st-new, .st-reopened { color: var(--urgent-ink); font-weight: 600; }
.st-waiting { color: var(--navy-2); }
.st-resolved, .st-closed { color: var(--ok); }
.clock { font-weight: 600; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock.risk { background: var(--risk-soft); color: var(--risk); }
.clock.late { background: var(--urgent); color: #fff; }
.clock.paused { background: var(--tint); color: var(--navy-2); }
@media (max-width: 640px) {
  .row { grid-template-columns: 4px 1fr; padding: 12px 14px 12px 0; gap: 2px 12px; }
  .row .tno { grid-column: 2; display: flex; gap: 8px; align-items: baseline; }
  .row .tno small { display: inline; }
  .row .what, .row .side { grid-column: 2; }
  .row .side { justify-items: start; display: flex; flex-wrap: wrap; gap: 6px; text-align: left; }
  .row .stripe { grid-row: 1 / span 3; }
}

/* ---------- ticket ---------- */
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.back:hover { color: var(--navy); }
.t-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-bottom: 4px; }
.t-head .tno { font-size: 28px; color: var(--orange); }
.t-head h1 { flex: 1 1 320px; font-size: 20px; font-weight: 600; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; align-items: center; }
.k-pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 6px; }
.k-pill.urgent { background: var(--urgent-soft); color: var(--urgent-ink); }
.k-pill.not_working { background: var(--orange-soft); color: var(--orange-ink); }
.k-pill.configuration { background: var(--tint); color: var(--navy-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .t-grid { grid-template-columns: 1fr; } .details { order: -1; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
/* Details panel: brand section header (navy bar, orange line below). */
.details { padding: 0; overflow: hidden; }
.details::before { content: 'Ticket details'; display: block; background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 16px; border-bottom: 2px solid var(--orange); }
.details dl { margin: 0; padding: 16px; display: grid; grid-template-columns: 104px 1fr; gap: 10px 12px; font-size: 13.5px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--navy); }
.details select { padding: 6px 8px; }
.convo { display: grid; gap: 10px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid var(--line); }
.msg.team { justify-self: end; background: var(--tint); border-color: #D3E0EE; border-radius: 12px 12px 4px 12px; }
.msg.linked { box-shadow: inset 3px 0 0 var(--orange); }
.msg .who { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; gap: 10px; justify-content: space-between; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.ev { justify-self: center; font-size: 12px; color: var(--muted); background: #E9EEF3; padding: 3px 10px; border-radius: 999px; text-align: center; }
.ev.hot { background: var(--urgent-soft); color: var(--urgent-ink); }
.note { background: var(--note); border: 1px solid var(--note-line); border-radius: 10px; padding: 9px 13px; }
.note .who { font-size: 12px; font-weight: 600; color: #7A5A00; }
.composer { margin-top: 18px; }
.composer .row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.toggle-ctx { margin-bottom: 10px; font-size: 13px; color: var(--muted); }

/* ---------- admin & tables (brand: navy header row, orange line above) ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: #fff; background: var(--navy); padding: 10px 12px; border-top: 2px solid var(--orange); }
.table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
.table tbody tr:nth-child(even) td { background: #FAFBFD; }
.table tbody tr:first-child td { border-top: 0; }
.table select, .table input { padding: 6px 8px; }
.table input[type=checkbox] { accent-color: var(--orange); width: 16px; height: 16px; }
input[type=checkbox] { accent-color: var(--orange); }
.scroll-x { overflow-x: auto; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: start; }
.matrix td input { width: 90px; }
.section { margin-bottom: 34px; }
.section > h2 { padding-left: 10px; border-left: 3px solid var(--orange); }
.inline { display: flex; gap: 8px; align-items: center; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; border-left: 4px solid var(--orange); font-size: 14px; z-index: 20; box-shadow: 0 8px 24px rgba(34,51,69,.25); }

/* People table becomes one card per person on phones. */
@media (max-width: 640px) {
  .table.people thead { display: none; }
  .table.people, .table.people tbody, .table.people tr { display: block; }
  .table.people tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px; border-top: 1px solid var(--line); }
  .table.people tr:first-child { border-top: 0; }
  .table.people td { border: 0; padding: 0; background: none !important; }
  .table.people td[data-l] { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 13px; }
  .table.people td[data-l] select { align-self: stretch; width: 100%; }
  .table.people td[data-l]::before { content: attr(data-l); font-size: 12px; font-weight: 600; color: var(--muted); }
}
.btn { white-space: nowrap; }
@media (max-width: 900px) { .login .hdr-in { padding-bottom: 12px; } }

.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: -6px 0 22px; }
.roles div { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; padding: 8px 12px; }
.roles dt { font-weight: 600; font-size: 13px; color: var(--navy); }
.roles dd { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Day headings in the ticket list */
.list .day { padding: 7px 18px; font-size: 12px; font-weight: 600; color: var(--navy-2); background: var(--tint); border-top: 1px solid var(--line); letter-spacing: .01em; }
.list .day:first-child { border-top: 0; }
.list .day + .row { border-top: 0; }
.hint-line { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
@media (max-width: 640px) { .filters input { max-width: none; } .filters select { flex: 1; } }

/* ================= Phones: app-style layout ================= */
.tabbar, .details-toggle { display: none; }
@media (max-width: 900px) {
  /* Slim header: logo + sign out. Navigation moves to the bottom tab bar. */
  .hdr-in { height: 54px; padding: 0 14px; flex-wrap: nowrap; gap: 10px; }
  .hdr .nav { display: none; }
  .home { flex: 1; }
  .me button { padding: 5px 10px; font-size: 12.5px; }
  main { padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); }
  .ftr { display: none; }
  .desk-only { display: none !important; }

  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--navy); border-top: 2px solid var(--orange); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: #AABCCC; text-decoration: none; font-size: 11px; font-weight: 500; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on svg { color: var(--orange); }
  .tabbar i { position: absolute; top: 0; left: calc(50% + 6px); font-style: normal; font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 0 6px; line-height: 17px; }
  .tabbar i.hot { background: var(--orange); }

  /* Text inputs at 16px so iPhone doesn't zoom in on tap. */
  input[type=text], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea { font-size: 16px; }

  h1 { font-size: 21px; }
  .queue-head { margin-bottom: 10px; }
  /* Tabs: one swipeable row instead of wrapping onto 3 lines. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 10px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex: none; padding: 10px 10px 11px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters input { grid-column: 1 / -1; max-width: none; }
  .filters select { width: 100%; }
  .list { border-radius: 10px; }
  .row { padding: 12px 12px 12px 0; }
  .row:active { background: var(--tint); }

  /* Ticket page */
  .t-head .tno { font-size: 24px; }
  .t-head h1 { font-size: 18px; flex-basis: 100%; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; }
  .actions .btn { width: 100%; padding: 11px 10px; white-space: normal; text-align: center; line-height: 1.25; }
  .details { margin-bottom: 4px; }
  .details::before { display: none; }
  .details-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: var(--navy); color: #fff; border: 0; border-bottom: 2px solid var(--orange); padding: 11px 14px; cursor: pointer; }
  .details-toggle b { display: block; font-weight: 600; font-size: 14px; }
  .details-toggle small { display: block; color: #AABCCC; font-size: 12px; }
  .details-toggle .chev { font-size: 16px; }
  .details:not(.open) dl { display: none; }
  .details dl { grid-template-columns: 96px 1fr; }
  .msg { max-width: 92%; }
  .composer .row2 { flex-direction: column; align-items: stretch; }
  .composer .row2 .btn { width: 100%; }

  /* Admin */
  .matrix td input { width: 58px; }
  .table th, .table td { padding: 8px 8px; }
  .section { margin-bottom: 26px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); }
  .alert { font-size: 13px; }
}
.hdr { padding-top: env(safe-area-inset-top); }
@media (max-width: 900px) {
  .matrix th, .matrix td { padding: 7px 4px; }
  .matrix th:first-child, .matrix td:first-child { padding-left: 10px; }
  .matrix td input { width: 48px; padding: 6px 5px; }
  .matrix td b { font-size: 12.5px; }
}

/* ================= Dashboard ================= */
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 18px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.dash-filters select, .dash-filters input[type=date] { width: auto; min-width: 140px; padding: 8px 10px; }
.dash-filters .vipchk { font-size: 14px; color: var(--navy); padding: 0 6px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; padding: 12px 14px; min-width: 0; }
.kpi.warn { border-left-color: var(--urgent); }
.kpi-l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-v { font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.25; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12px; color: var(--muted); }
.delta { font-size: 12px; color: var(--muted); }
.delta.better { color: var(--ok); }
.delta.worse { color: var(--urgent-ink); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.dash-card { padding: 16px 18px; min-width: 0; }
.dash-card.wide { grid-column: span 1; }
.dash-card h2 { margin-bottom: 6px; }
.dash-card h3 { font-size: 13px; font-weight: 600; color: var(--navy); margin: 16px 0 8px; }
.cap { font-size: 12.5px; color: var(--muted); margin: -2px 0 10px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #E6EBF0; } .chart .axis { stroke: #C5D0DA; } .chart .cross { stroke: #AABCCC; stroke-dasharray: 3 3; }
.chart .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: 130px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.hb.pick { cursor: pointer; } .hb.pick:hover .hb-l { color: var(--orange-ink); }
.hb-l { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 14px; background: #EEF2F6; border-radius: 0 4px 4px 0; overflow: hidden; }
.hb-b { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.hb-v { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.hb-v small { font-weight: 400; color: var(--muted); }
.sec-h { margin: 26px 0 6px; padding-left: 10px; border-left: 3px solid var(--orange); }
.dash-table th.num, .dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table tr.pick { cursor: pointer; } .dash-table tr.pick:hover td { background: var(--tint); }
.th-sort { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; white-space: nowrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.bad { color: var(--urgent-ink); font-weight: 600; }
.more { margin-top: 8px; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--navy); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; box-shadow: 0 8px 24px rgba(34,51,69,.25); white-space: pre; }
.tip .tip-h { font-weight: 600; margin-bottom: 2px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 12px; } .kpi-v { font-size: 22px; }
  .dash-filters { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; }
  .dash-filters select, .dash-filters input[type=date] { min-width: 0; width: 100%; }
  .hb { grid-template-columns: 104px 1fr 56px; }
}
.dash-table td:first-child { min-width: 150px; }
/* Issue-type colours match the dashboard (validated palette): crimson P0, brand orange not working, blue configuration. */
.k-urgent .stripe { background: #C2185B; } .k-configuration .stripe { background: #2A78D6; }

/* Reply to client / internal note */
.seg { display: inline-flex; background: #E9EEF3; border-radius: 9px; padding: 3px; margin-bottom: 8px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-weight: 500; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(34,51,69,.12); }
.composer.is-reply textarea { border-color: #F3B595; background: #FFFBF8; }
.composer.is-note textarea { background: var(--note); border-color: var(--note-line); }
.composer .row2 span { max-width: 60ch; }
@media (max-width: 900px) { .seg { display: flex; } .seg button { flex: 1; } }

.tag.email { border-color: #B9CDE8; color: #1F5FA8; background: #EEF4FB; }

/* Ticket list: Ticket | Client | Issue | Status columns */
.row, .list-head { grid-template-columns: 4px 150px minmax(140px, 230px) minmax(0, 1fr) auto; }
.list-head { display: grid; gap: 0 16px; padding: 9px 18px 9px 0; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; border-bottom: 2px solid var(--orange); }
.list-head span:last-child { text-align: right; }
.row .client { font-weight: 600; color: var(--navy); font-size: 13.5px; line-height: 1.35; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .row, .list-head { grid-template-columns: 4px 120px minmax(110px, 170px) minmax(0, 1fr) auto; } }
@media (max-width: 640px) {
  .list-head { display: none; }
  .row { grid-template-columns: 4px 1fr; }
  .row .client { grid-column: 2; font-size: 13px; -webkit-line-clamp: 1; }
  .row .stripe { grid-row: 1 / span 4; }
}

/* Reason it isn't fixed */
.tag.need { border-color: var(--orange); color: var(--orange-ink); background: var(--orange-soft); }
.reason-box { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 0 0 16px; }
.reason-box p { margin: 2px 0 2px; font-size: 14.5px; }
.reason-box small { color: var(--muted); font-size: 12.5px; }
.reason-box.need { border-left-color: var(--orange); background: var(--orange-soft); }
.reason-box.edit { display: block; }
.reason-box.edit textarea { width: 100%; margin-top: 8px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.reason-box .picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reason-box .chip { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.reason-box .chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.reason-box .row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 640px) { .reason-box { flex-direction: column; } }

/* Admin → Routing */
.grid-form:has(textarea) { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-form textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.field label.inline { display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* ---------- operating model (12 Oct 2026): My queue, Board, Waiting ---------- */
.st-hold { color: var(--risk); font-weight: 600; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; }
.sec-h .n, .dash-card h2 .n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 1px 8px; }
.myq .sec-h:first-of-type { margin-top: 8px; }
.list.tasks .task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); border-left: 4px solid var(--line); }
.list.tasks .task:first-child { border-top: 0; }
.list.tasks .task.late { border-left-color: var(--urgent); }
.task-main b { display: block; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }
.task-main span { color: var(--muted); font-size: 12.5px; }
.task-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.task-act select { width: auto; padding: 7px 10px; }
.task-act code { font: 600 12px var(--sans); background: var(--tint); padding: 1px 6px; border-radius: 4px; }
.reason-box.hold-client { border-left-color: var(--ok); background: var(--ok-soft); }
.reason-box.hold-internal { border-left-color: var(--risk); background: var(--risk-soft); }
.reason-box.suggest { border-left-color: var(--navy-2); background: var(--tint); }
.board .blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board .blist li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.board .blist li:last-child { border-bottom: 0; padding-bottom: 0; }
.board .blist a { color: var(--navy); text-decoration: none; font-size: 14px; }
.board .blist a b { color: var(--orange-ink); }
.board .blist span { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .blist small { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .list.tasks .task { grid-template-columns: 1fr; padding: 12px 14px; }
  .task-act { justify-content: flex-start; }
  .task-act .btn { flex: 1 1 auto; }
}
.job-ctl .task-act { justify-content: flex-start; }
.job-ctl .task-act select { max-width: 100%; }

/* Ticket actions (12 Oct 2026): Reply / Take · Waiting on client · Fixed · More — fixed above the tab bar on phones. */
.actbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.actbar .btn.on, .more-menu .btn.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.more-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.t-page-pad { height: 0; }
@media (max-width: 900px) {
  .actbar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 29; margin: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 8px 10px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(20,34,52,.08); }
  .actbar .btn { width: 100%; justify-content: center; padding: 11px 6px; font-size: 13.5px; white-space: normal; line-height: 1.2; text-align: center; }
  .actbar .btn.more-btn { max-width: 76px; }
  .more-menu { display: grid; grid-template-columns: 1fr 1fr; }
  .more-menu .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; padding: 11px 8px; }
  .t-page { padding-bottom: 64px; }
}
.more-menu, .reason-box.edit { scroll-margin-top: 70px; }

/* People page: WhatsApp names, edit / delete, suggestions (13 Oct 2026) */
.wa-name { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 400; }
.wa-name .linkish { font-size: 12.5px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.row-act, .edit-act { display: flex; gap: 6px; justify-content: flex-end; }
.edit-act { justify-content: flex-start; }
.edit-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr); gap: 8px; align-items: center; }
.edit-row .wa-name { grid-column: 1 / -1; }
.people tr.editing td { background: var(--tint); }
.sugg { margin-bottom: 16px; padding: 0; }
.details-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; padding: 14px 16px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.details-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sugg-list { border-top: 1px solid var(--line); max-height: 420px; overflow-y: auto; }
.sugg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sugg-row small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .edit-row { grid-template-columns: 1fr; } .row-act { justify-content: flex-start; } }

/* Dev / DevOps job on the ticket page (13 Oct 2026) */
.job-panel { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.job-panel.late { border-left-color: var(--urgent); }
.jp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.jp-owner { margin: 6px 0 2px; }
.jp-sub { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.jp-hist { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.jp-hist li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.jp-hist li span { color: var(--muted); }
.jp-hist li.hot { color: var(--urgent-ink); }
.job-panel .task-act { justify-content: flex-start; }
.with-team { color: var(--navy); font-weight: 600; }

/* Files on email tickets (13 Oct 2026) */
.attach-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; }
.attach-btn { font-weight: 500; padding: 6px 12px; }
.attach-btn:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; background: #F1F4F7; border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px 4px 10px; font-size: 13px; max-width: 100%; }
.file-chip small, .file-link small { color: var(--muted); }
.file-chip button { border: 0; background: none; font-size: 18px; line-height: 1; padding: 2px 8px; cursor: pointer; color: var(--muted); border-radius: 4px; }
.file-chip button:hover { background: #E2E8EE; color: var(--navy); }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 13px; color: var(--navy); text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.file-link:hover { border-color: #C9D3DD; background: #F7F9FB; }
.file-thumb { display: flex; flex-direction: column; gap: 4px; width: 132px; font-size: 12px; color: var(--muted); text-decoration: none; }
.file-thumb img { width: 132px; height: 96px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #F1F4F7; }
.file-thumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tickets page: open tickets by age + raised period (13 Oct 2026) */
.agebar-wrap { margin: 4px 0 14px; }
.agebar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.agebar-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.agebar-head h2 span { color: var(--muted); font-weight: 500; }
.agebar-total { font-size: 13px; color: var(--muted); }
.agebar-total b { color: var(--navy); font-size: 15px; }
.agebar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; border-radius: 10px; overflow: hidden; }
.agebar.skeleton { height: 64px; background: #E9EEF3; }
.age { --c: #2F9E62; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 10px 10px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--navy); text-align: left; font: inherit; border-top: 5px solid var(--c); min-height: 64px; }
.age b { font-size: 22px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.age span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.age:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 22%, #fff); }
.age:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.age.on { background: var(--c); color: #fff; }
.age.on span { color: rgba(255,255,255,.9); }
.age.zero { cursor: default; }
.age.zero b { color: #A8B4C0; }
.age.a0 { --c: #2F9E62; } .age.a1 { --c: #7AA83A; } .age.a2 { --c: #C29A12; } .age.a3 { --c: #E8801E; }
.age.a4 { --c: #FF5A10; } .age.a5 { --c: #D2361C; } .age.a6 { --c: #8E1B17; }
.periods { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.periods-label { font-size: 13px; color: var(--muted); padding-top: 7px; }
.period-row { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.periods .chip { font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.periods .chip:hover { border-color: #C9D3DD; }
.periods .chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.periods .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.periods .chip .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.periods .chip.on .n { color: rgba(255,255,255,.8); }
.date-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; width: 100%; padding-left: 52px; }
.date-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.date-pick input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--orange); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) {
  .agebar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .age { padding: 10px 8px 8px; }
  .age b { font-size: 18px; }
  .age span { font-size: 11px; }
  .period-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .periods-label { display: none; }
  .date-pick { padding-left: 0; }
}

/* ===== Agent workspace (13 Oct 2026): tabs · list · chat · details on one screen; phone ticket view ===== */
.k-urgent .wt-k, .k-urgent.chip::before { background: #C2185B; } .k-not_working .wt-k, .k-not_working.chip::before { background: var(--orange); } .k-configuration .wt-k, .k-configuration.chip::before { background: #2A78D6; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; vertical-align: middle; box-shadow: 0 0 0 2px rgba(255,90,16,.18); }
kbd { font: 600 11px/1 var(--sans); padding: 2px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--navy); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
select.sm { padding: 5px 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.muted { color: var(--muted); }
.phone-only { display: none; }

/* header: search + alerts */
.me .search-btn, .me .alerts-btn { display: inline-flex; align-items: center; gap: 7px; }
.me .search-btn kbd { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #D6DEE6; }
.me .alerts-btn.on { border-color: var(--orange); color: #FFB894; }

/* laptop workspace */
.shell.ws-mode { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.shell.ws-mode main { flex: 1; min-height: 0; max-width: none; padding: 0; display: flex; flex-direction: column; }
.shell.ws-mode main > .alert { margin: 8px 12px; }
.ws { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tabsbar { display: flex; align-items: flex-end; gap: 10px; background: #E7ECF1; padding: 6px 10px 0; border-bottom: 1px solid var(--line); min-height: 42px; }
.tabsbar > .btn { margin: 0 0 6px auto; flex: none; }
.tabsbar.empty { align-items: center; padding-bottom: 6px; }
.tb-hint { font-size: 12.5px; color: var(--muted); }
.tb-tabs { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: thin; min-width: 0; flex: 1; }
.wtab { display: inline-flex; align-items: center; gap: 7px; max-width: 230px; flex: none; padding: 7px 6px 7px 10px; border-radius: 8px 8px 0 0; background: #D6DEE6; color: var(--navy); text-decoration: none; font-size: 12.5px; white-space: nowrap; position: relative; }
.wtab:hover { background: #E2E8EE; }
.wtab.on { background: #fff; box-shadow: inset 0 3px 0 var(--orange); font-weight: 500; }
.wtab.closed { opacity: .62; }
.wt-k { width: 4px; height: 16px; border-radius: 2px; flex: none; background: var(--navy-2); }
.wt-t { overflow: hidden; text-overflow: ellipsis; }
.wt-t b { font-weight: 600; }
.wt-x { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 5px; border-radius: 4px; cursor: pointer; }
.wt-x:hover { background: #C9D3DD; color: var(--navy); }
.ws-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.ws-list { min-height: 0; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.ws-main { min-width: 0; min-height: 0; display: flex; }
.ws-main > * { flex: 1; min-width: 0; }
.ws-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--muted); padding: 24px; }
.ws-empty svg { color: #B8C5D2; margin-bottom: 6px; }
.ws-empty h2 { margin: 0; color: var(--navy); font-size: 18px; }
.ws-empty p { margin: 0 0 10px; }
.ws-keys { margin-top: 18px !important; font-size: 12.5px; }

/* narrow list */
.qc { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.qc-top { display: flex; gap: 6px; padding: 10px 10px 6px; }
.qc-search { flex: 1; }
.qc-search input { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.qc-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 0 10px 8px; }
.qc-filters select { min-width: 0; padding: 6px 6px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mini-age { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 0 10px 8px; }
.mini-age.skeleton { height: 40px; margin: 0 10px 8px; background: #EEF1F4; border-radius: 6px; padding: 0; }
.mini-age .age { min-height: 0; padding: 5px 4px 4px; border-top-width: 3px; align-items: center; text-align: center; }
.mini-age .age b { font-size: 14px; }
.mini-age .age span { font-size: 10px; }
.qc .filter-line { padding: 0 12px; margin: 0 0 6px; font-size: 12.5px; }
.qc-list { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 4px auto minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px 9px 0; border-bottom: 1px solid #EEF1F4; color: var(--navy); text-decoration: none; align-items: start; }
.crow .stripe { align-self: stretch; border-radius: 0 2px 2px 0; }
.crow:hover { background: #F7F9FB; }
.crow.on { background: var(--orange-soft); }
.crow.sel { background: var(--tint); }
.cr-check { opacity: 0; padding-top: 1px; cursor: pointer; }
.cr-check input { margin: 0; cursor: pointer; }
.crow:hover .cr-check, .crow.sel .cr-check, .qc-list:has(.crow.sel) .cr-check, .cr-check:focus-within { opacity: 1; }
.cr-main { min-width: 0; display: grid; gap: 1px; }
.cr-top { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.cr-top b { font-weight: 600; }
.cr-client { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cr-sub { font-size: 12.5px; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cr-sub i { font-style: normal; color: var(--orange-ink); }
.cr-meta { font-size: 11.5px; color: var(--muted); }
.cr-side { display: grid; justify-items: end; gap: 3px; }
.cr-side .clock { font-size: 11px; padding: 1px 6px; }
.cr-side small { font-size: 11px; color: var(--muted); }
.empty.sm { padding: 28px 16px; font-size: 13px; }
.empty.sm b { font-size: 14px; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 10px 8px; padding: 8px 10px; background: var(--navy); color: #fff; border-radius: 10px; font-size: 13px; }
.bulkbar .btn { background: #fff; }
.bulkbar .linkbtn { color: #FFB894; margin-left: auto; }
.q-page .bulkbar { margin: 0 0 12px; }

/* ticket: laptop */
.tp.desk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; height: 100%; }
.tp.desk.no-det { grid-template-columns: minmax(0, 1fr); }
.tp-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #F7F8FA; }
.tp.desk .tp-head { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 10px; }
.tp-h1 { display: flex; align-items: baseline; gap: 10px; }
.tp-h1 .tno { color: var(--orange); font-weight: 600; font-size: 19px; flex: none; }
.tp-h1 h1 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.det-btn { flex: none; align-self: center; }
.tp.desk .t-meta { margin: 6px 0 10px; }
.tp.desk .actbar { margin: 0; align-items: center; }
.tp.desk .actbar .next-sm { margin-left: auto; }
.more-wrap { position: relative; }
.more-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 15; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(34,51,69,.18); padding: 6px; display: grid; }
.more-pop button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 13.5px; color: var(--navy); }
.more-pop button:hover, .more-pop button:focus-visible { background: var(--tint); }
.more-pop button.danger { color: var(--urgent-ink); }
.tp-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 10px; overscroll-behavior: contain; }
.tp-scroll > .reason-box, .tp-scroll > .job-panel { margin-bottom: 12px; }
.viewers { margin: 8px 0 0; padding: 6px 10px; background: var(--risk-soft); color: var(--risk); border-radius: 8px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.viewers .typing b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 2px 1px 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ai-sum { background: #FFFBEF; border: 1px solid #F2DDA4; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 13.5px; }
.ai-sum summary { cursor: pointer; font-weight: 600; color: #7A5A00; font-size: 12.5px; }
.ai-sum p { margin: 4px 0 0; }
.tp-comp { background: #fff; border-top: 1px solid var(--line); padding: 8px 20px 10px; }
.tp-comp.is-reply textarea { border-color: #F3B595; background: #FFFBF8; }
.tp-comp.is-note textarea { background: var(--note); border-color: var(--note-line); }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.quick::-webkit-scrollbar { display: none; }
.qr { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--navy); white-space: nowrap; }
.qr:hover { border-color: var(--orange); }
.qr.edit { color: var(--muted); border-style: dashed; }
.comp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tp-comp .seg { margin: 0; }
.ai-btn { color: #7A5A00; border-color: #F2DDA4; background: #FFFBEF; }
.comp-row { display: flex; gap: 8px; align-items: flex-end; }
.comp-row textarea { flex: 1; min-width: 0; min-height: 66px; max-height: 40vh; resize: vertical; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; line-height: 1.45; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; color: var(--navy); }
.icon-btn:hover { border-color: #C9D3DD; background: #F7F9FB; }
.icon-btn:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.comp-row .send { flex: none; min-height: 38px; }
.comp-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.tp-comp .attach-row { margin: 0 0 6px; }
.tp-det { border-left: 1px solid var(--line); background: #fff; overflow-y: auto; min-height: 0; }
.tp-det dl { padding: 14px 16px; }
.tp-det h3, .sheet-det h3 { margin: 14px 16px 8px; font-size: 13px; }
.tp-det .det-p, .sheet-det .det-p { margin: 0 16px 10px; font-size: 13px; }
.others { list-style: none; margin: 0 16px 12px; padding: 0; display: grid; gap: 6px; }
.others a { display: block; font-size: 13px; text-decoration: none; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); border-left-width: 4px; }
.others a:hover { background: var(--tint); }
.others a.k-urgent { border-left-color: #C2185B; } .others a.k-not_working { border-left-color: var(--orange); } .others a.k-configuration { border-left-color: #2A78D6; }
@media (max-width: 1250px) { .tp.desk { grid-template-columns: minmax(0, 1fr) 260px; } .ws-grid { grid-template-columns: 300px minmax(0, 1fr); } }

/* ticket: phone (full screen, reply bar fixed at the bottom like WhatsApp) */
body.tp-open .tabbar { display: none !important; }
.shell.tp-mode .hdr, .shell.tp-mode .ftr { display: none; }
.shell.tp-mode main { padding: 0; }
.tp.phone { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: #F3F5F8; padding-top: env(safe-area-inset-top); }
.tp-bar { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 8px 10px; border-bottom: 3px solid var(--orange); }
.tp-back { color: #fff; text-decoration: none; font-size: 22px; padding: 2px 8px 2px 2px; line-height: 1; }
.tp-title { flex: 1; min-width: 0; display: grid; text-align: left; background: none; border: 0; color: #fff; padding: 0; cursor: pointer; line-height: 1.25; }
.tp-title b { color: #FFB894; font-size: 13px; }
.tp-title span { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bar .btn { padding: 7px 12px; font-size: 13.5px; }
.tp-bar .btn:not(.primary) { background: #fff; }
.tp-bar .icon-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; font-size: 20px; }
.tp-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 7px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.tp-strip::-webkit-scrollbar { display: none; }
.tp-strip .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--navy); background: #fff; }
.tp-strip .chip::before { content: ''; width: 3px; height: 13px; border-radius: 2px; }
.tp-strip .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.tp.phone .tp-scroll { padding: 12px 12px 8px; }
.tp.phone .tp-head h1 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.tp.phone .t-meta { margin: 0 0 10px; }
.tp.phone .msg { max-width: 88%; }
.tp.phone .tp-comp { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.tp.phone .comp-top { margin-bottom: 6px; }
.tp.phone .seg button { padding: 4px 8px; font-size: 12.5px; }
.tp.phone .comp-row textarea { min-height: 40px; max-height: 140px; resize: none; border-radius: 20px; padding: 9px 14px; }
.tp.phone .comp-row .send { width: 40px; height: 40px; min-height: 0; border-radius: 50%; padding: 0; justify-content: center; font-size: 16px; }
.tp-err { padding: 16px; }

/* bottom sheet + modal */
.sheet-dim, .modal-dim, .cmdk-dim { position: fixed; inset: 0; z-index: 60; background: rgba(20,30,42,.45); display: flex; }
.sheet-dim { align-items: flex-end; }
.sheet { width: 100%; max-height: 85vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.2); animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #C9D3DD; margin: 4px auto 10px; }
.sheet h3 { margin: 0 4px 6px; font-size: 14px; color: var(--muted); }
.sheet-list { display: grid; }
.sheet-list button { text-align: left; border: 0; border-bottom: 1px solid #EEF1F4; background: none; padding: 14px 6px; font-size: 15px; color: var(--navy); cursor: pointer; }
.sheet-list button:last-child { border-bottom: 0; }
.sheet-list button.danger { color: var(--urgent-ink); }
.sheet-det dl { padding: 4px; }
.sheet-det::before { display: none !important; }
@media (min-width: 701px) { .sheet-dim { align-items: center; justify-content: center; } .sheet { width: min(480px, 92vw); border-radius: 16px; } }
.modal-dim { align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(560px, 100%); background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 4px; font-size: 17px; }
.modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; line-height: 1.5; }

/* Ctrl+K */
.cmdk-dim { align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.cmdk { width: min(620px, 100%); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.cmdk input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; font-size: 16px; outline: none; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.cmdk li { padding: 9px 12px; border-radius: 8px; cursor: pointer; display: grid; }
.cmdk li.on { background: var(--orange-soft); }
.cmdk li b { font-weight: 500; font-size: 14px; }
.cmdk li small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk li.none { color: var(--muted); cursor: default; }
.cmdk-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* phone list: swipe, select, Next ticket button */
.swipe { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.swipe .row { border-bottom: 0; }
.swipe-top { position: relative; background: #fff; transition: transform .15s ease-out; touch-action: pan-y; }
.swipe-under { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font-weight: 600; color: #fff; }
.swipe-under.r { background: #3B7DD8; } .swipe-under.l { background: var(--ok); }
.swipe-under.r span:last-child, .swipe-under.l span:first-child { visibility: hidden; }
.swipe-under.go { filter: brightness(1.1); }
.row.sel { background: var(--tint); }
.row-check { margin: 0 6px 0 0; vertical-align: middle; }
.toast-undo { margin-left: 10px; background: none; border: 1px solid rgba(255,255,255,.5); color: #FFB894; border-radius: 6px; padding: 2px 10px; font-weight: 600; cursor: pointer; }
.fab { position: fixed; right: 18px; bottom: 26px; z-index: 28; background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 20px rgba(255,90,16,.38); cursor: pointer; }
@media (min-width: 1000px) { .fab { display: none; } }
@media (max-width: 900px) {
  .phone-only { display: block; }
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .me .search-btn span, .me .search-btn kbd, .me .alerts-btn span { display: none; }
  .me .search-btn, .me .alerts-btn { padding: 6px 8px; }
  .q-page .filters .btn { flex: none; }
}
@media (max-width: 1100px) { .me .search-btn kbd { display: none; } }
.sheet-det.details dl { display: grid !important; }
.nav a { white-space: nowrap; }
@media (max-width: 1500px) { .shell .me .who { display: none; } .me .search-btn span { display: none; } }
@media (max-width: 1250px) { .me .alerts-btn span { display: none; } }
.me button, .me kbd { white-space: nowrap; }
.shell.ws-mode .hdr-in { max-width: none; }
@media (max-width: 900px) {
  .q-page .filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
  .q-page .filters input { grid-column: 1 / -1; }
  .q-page .filters .btn { width: auto; }
}
.tp.phone .seg { display: inline-flex; }
.file-media { display: grid; gap: 4px; max-width: 320px; font-size: 12.5px; }
.file-media audio { width: 280px; max-width: 100%; height: 40px; }
.file-media video { width: 300px; max-width: 100%; max-height: 260px; border-radius: 8px; background: #000; }
.file-media a { color: var(--navy); text-decoration: none; }
.file-thumb img { cursor: zoom-in; }
.msg .file-thumb { width: 220px; }
.msg .file-thumb img { width: 220px; height: 165px; }
@media (max-width: 700px) { .msg .file-thumb, .msg .file-thumb img { width: 180px; } .msg .file-thumb img { height: 135px; } }

/* ===================== New desk (14 Oct 2026): Today · conversation · Pulse · Me ===================== */
.shell.nd-mode main { flex-direction: row; }
.nd-today.wide { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.nd-today.wide .nd-list { border-right: 1px solid var(--line); background: #fff; min-height: 0; display: flex; flex-direction: column; }
.nd-today.wide .nd-rows { flex: 1; min-height: 0; overflow-y: auto; }
.nd-main { min-width: 0; min-height: 0; display: flex; }
.nd-main > * { flex: 1; min-width: 0; }
.nd-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; background: var(--navy); color: #fff; padding: 14px 16px 12px; }
.nd-hello small { display: block; color: #B9C7D6; font-size: 12.5px; }
.nd-hello b { font-size: 19px; font-weight: 600; line-height: 1.25; display: block; }
.nd-hello em { font-style: normal; color: #FFB894; }
.nd-scope { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 9px; padding: 3px; flex: none; }
.nd-scope button { border: 0; background: none; color: #D6DEE6; font-size: 12px; padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.nd-scope button.on { background: #fff; color: var(--navy); font-weight: 600; }
.nd-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.nd-lanes button { border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 7px 4px 6px; cursor: pointer; color: var(--navy); }
.nd-lanes button b { display: block; font-size: 21px; line-height: 1.15; font-weight: 600; }
.nd-lanes button span { display: block; font-size: 11.5px; color: var(--muted); }
.nd-lanes button.on { border-color: var(--navy-2); background: var(--tint); }
.nd-lanes button.on.hot { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-ink); }
.nd-age { padding: 8px 12px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.nd-age-t { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.nd-age-t:empty { display: none; }
.nd-age-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.nd-age-row button { border: 0; border-top: 4px solid; border-radius: 6px; padding: 5px 1px 4px; background: #F3F5F8; color: var(--navy); cursor: pointer; text-align: center; }
.nd-age-row button:disabled { color: #A3B0BD; cursor: default; }
.nd-age-row b { display: block; font-size: 15px; line-height: 1.1; font-weight: 600; }
.nd-age-row span { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.nd-filter { margin: 0; padding: 6px 14px; font-size: 12.5px; color: var(--orange-ink); background: #FFF8F3; display: flex; justify-content: space-between; }
.nd-row { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid #EEF1F4; color: var(--navy); text-decoration: none; background: #fff; }
.nd-row:hover { background: #F8FAFC; }
.nd-row.on { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.nd-ring { position: relative; flex: none; display: inline-block; }
.nd-ring svg { position: absolute; inset: 0; }
.nd-av { position: absolute; inset: 6px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.nd-av.big { position: static; width: 46px; height: 46px; flex: none; font-size: 15px; }
.nd-rm { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nd-rn { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nd-rn b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-rn small { font-size: 11.5px; color: #7A8B9C; flex: none; }
.nd-rp { font-size: 12.5px; color: #4A5D70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-ra { font-size: 12px; font-weight: 600; margin-top: 1px; }
.nd-ra.red { color: #C62B1E; } .nd-ra.amber { color: var(--orange-ink); } .nd-ra.green { color: #1E6B39; } .nd-ra.grey { color: #5A6B7C; font-weight: 500; }
.nd-ro { font-size: 11px; color: #7A8B9C; }
.nd-clear { margin: 16px 14px; padding: 18px; border-radius: 16px; background: #E7F5EC; color: #1E6B39; text-align: center; display: grid; gap: 2px; }
.nd-clear b { font-size: 15px; }
.nd-clear span { font-size: 13px; }
.nd-all { display: block; padding: 10px 14px; font-size: 12.5px; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line); background: #fff; }
.nd-all:hover { color: var(--navy); }

/* conversation */
.nd-convo.desk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; height: 100%; }
.nd-cmain { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #F3F5F8; }
.nd-top { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.nd-title { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: var(--navy); cursor: default; display: grid; line-height: 1.3; }
.nd-title b { font-size: 16px; font-weight: 600; }
.nd-title small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-due { font-size: 13px; font-weight: 600; color: var(--orange-ink); white-space: nowrap; }
.nd-due.late, .nd-trackhint b.late { color: #C62B1E; }
.nd-ib { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: #EEF1F4; color: var(--navy); display: inline-grid; place-items: center; cursor: pointer; font-size: 18px; }
.nd-ib:hover { background: #E2E8EE; }
.nd-ib.on { background: var(--navy); color: #fff; }
.nd-ib:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.more-pop.right { left: auto; right: 0; }
.nd-trackrow { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 14px 8px; }
.nd-track { display: flex; align-items: flex-start; max-width: 560px; }
.nd-bar { flex: 1; height: 2px; background: #CBD5DF; margin-top: 12px; }
.nd-bar.done { background: #1E7A3E; }
.nd-step { width: 66px; flex: none; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: #7A8B9C; font-size: 11.5px; }
.nd-step:disabled { cursor: default; }
.nd-dot { width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2px solid #CBD5DF; background: #fff; display: grid; place-items: center; }
.nd-step.done { color: #1E6B39; } .nd-step.done .nd-dot { background: #1E7A3E; border-color: #1E7A3E; }
.nd-step.cur { color: var(--orange-ink); font-weight: 600; } .nd-step.cur .nd-dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px #FFE2D3; }
.nd-step.next { color: var(--navy); font-weight: 500; } .nd-step.next .nd-dot { border: 2px dashed var(--orange); }
.nd-step.next:hover .nd-dot { background: #FFF1EA; }
.nd-trackhint { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; gap: 10px; }
.nd-trackhint b { color: var(--orange-ink); }
.nd-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.nd-next { background: var(--navy); color: #fff; border-radius: 16px; padding: 11px 14px; }
.nd-next-h { display: flex; align-items: center; gap: 6px; color: #FFB894; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nd-next p { margin: 4px 0 9px; font-size: 14px; line-height: 1.45; }
.nd-next-b { display: flex; gap: 8px; flex-wrap: wrap; }
.nd-next .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.nd-wait { font-size: 12.5px; background: var(--risk-soft); color: var(--risk); border-radius: 10px; padding: 7px 11px; }
.nd-wait.client { background: var(--tint); color: var(--navy-2); }
.nd-chat { display: flex; flex-direction: column; gap: 7px; }
.nd-b { max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid #E3E8EE; border-radius: 16px 16px 16px 4px; padding: 7px 11px; font-size: 14px; line-height: 1.45; }
.nd-b.me { align-self: flex-end; background: #DCF5E3; border-color: #C2E8CE; border-radius: 16px 16px 4px 16px; }
.nd-b.other { opacity: .62; }
.nd-bw { font-size: 11px; font-weight: 600; color: #6A7B8C; }
.nd-bt { white-space: pre-wrap; overflow-wrap: anywhere; }
.nd-note { align-self: stretch; background: var(--note); border: 1px solid var(--note-line); border-radius: 12px; padding: 7px 11px; font-size: 13.5px; }
.nd-ev { align-self: center; font-size: 11.5px; color: #4A5D70; background: #E6EBF0; border-radius: 999px; padding: 3px 12px; text-align: center; max-width: 92%; }
.nd-ev.hot { background: #FDE2DD; color: #B42318; }
.nd-comp { background: #fff; border-top: 1px solid var(--line); padding: 8px 12px 10px; }
.nd-comp .quick { flex-wrap: wrap; padding-bottom: 8px; }
.nd-notebar { font-size: 12.5px; background: var(--note); border: 1px solid var(--note-line); border-radius: 8px; padding: 5px 10px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.nd-cr { display: flex; gap: 8px; align-items: flex-end; }
.nd-cr textarea { flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 160px; border: 1px solid #D5DDE5; border-radius: 21px; padding: 10px 15px; line-height: 1.4; font-size: 14.5px; }
.nd-comp.reply textarea { border-color: #F3B595; }
.nd-comp.note textarea { background: var(--note); border-color: var(--note-line); }
.nd-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nd-send:disabled { background: #F9B99A; cursor: default; }
.nd-side { border-left: 1px solid var(--line); background: #fff; overflow-y: auto; min-height: 0; }
.nd-card { padding: 16px; font-size: 13px; }
.nd-card-h { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.nd-card-h b { display: block; font-size: 15px; }
.nd-card-h small { color: var(--muted); }
.nd-card dl { display: grid; grid-template-columns: 82px 1fr; gap: 8px; margin: 0 0 14px; }
.nd-card dt { color: var(--muted); }
.nd-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nd-card dd.hot { color: #C62B1E; font-weight: 600; }
.nd-card select { width: 100%; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; }
.nd-card h3 { font-size: 13px; margin: 14px 0 8px; }
.pill { display: inline-block; background: var(--tint); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; margin: 0 4px 4px 0; }
.nd-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.nd-recent a { display: grid; padding: 7px 9px; border-radius: 8px; background: #F6F7F9; text-decoration: none; font-size: 12.5px; }
.nd-recent a:hover { background: var(--tint); }
.nd-recent small { color: var(--muted); }
.nd-month { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* phone: conversation full screen */
.nd-convo.phone { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: #F3F5F8; padding-top: env(safe-area-inset-top); }
.nd-convo.phone .nd-top { background: var(--navy); color: #fff; border-bottom: 3px solid var(--orange); padding: 8px 10px; }
.nd-convo.phone .nd-title { color: #fff; cursor: pointer; }
.nd-convo.phone .nd-title small { color: #B9C7D6; }
.nd-back { color: #fff; padding: 4px; display: grid; place-items: center; }
.nd-ib.dark, .nd-convo.phone .nd-top .nd-ib { background: rgba(255,255,255,.12); color: #fff; }
.nd-convo.desk .nd-top .nd-ib.dark { background: #EEF1F4; color: var(--navy); }
.nd-convo.phone .nd-track { max-width: none; }
.nd-convo.phone .nd-step { width: 58px; font-size: 10.5px; }
.nd-convo.phone .nd-scroll { padding: 10px; }
.nd-convo.phone .nd-b { max-width: 86%; }
.nd-convo.phone .nd-comp { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.nd-convo.phone .nd-ib { width: 40px; height: 40px; }
.sheet .nd-card { padding: 4px 4px 8px; }

/* phone: Today list */
.shell.nd-phone main { padding: 0 0 calc(70px + env(safe-area-inset-bottom)); max-width: none; }
.nd-today.phone .nd-list { background: #fff; min-height: 60vh; }
@media (min-width: 901px) { .shell.nd-phone main { padding: 24px 28px 56px; max-width: 1280px; } }

/* Pulse */
.nd-pulse { flex: 1; min-height: 0; display: block; }
.nd-pulse.wide { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.nd-pmain { min-height: 0; overflow-y: auto; padding: 18px 22px 30px; }
.nd-pulse:not(.wide) .nd-pmain { padding: 14px 14px 20px; }
.nd-phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.nd-phead h1 { margin: 0; font-size: 22px; }
.nd-phead small { color: var(--muted); font-size: 13px; }
.nd-psearch { flex: 0 1 340px; min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.nd-incident { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #FDE2DD; border: 1.5px solid #D92D20; border-radius: 12px; padding: 10px 14px; }
.nd-incident b { color: #B42318; }
.nd-incident span { flex: 1 1 260px; font-size: 13px; }
.nd-tiles-h { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; margin: 18px 0 10px; flex-wrap: wrap; }
.nd-tiles-h b { font-size: 16px; }
.nd-tiles-h small { color: var(--muted); font-size: 12.5px; }
.nd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.nd-pulse:not(.wide) .nd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nd-tile { text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; min-height: 86px; cursor: pointer; color: var(--navy); background: #E3F3E9; display: grid; align-content: start; gap: 5px; }
.nd-tile.red { background: #FDE2DD; box-shadow: inset 0 0 0 2px #D92D20; }
.nd-tile.amber { background: #FFF1D6; }
.nd-tile.confirm { background: #EEF2F6; }
.nd-tile.ok { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nd-tile.sel { outline: 3px solid var(--navy); outline-offset: 2px; }
.nd-tile .tn { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.nd-tile .tn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-tile .tn small { font-size: 11px; color: var(--muted); flex: none; }
.nd-tile .tc { display: flex; flex-wrap: wrap; gap: 4px; }
.nd-tile .tc span { font-size: 10.5px; font-weight: 600; color: #fff; border-radius: 999px; padding: 1px 7px; }
.chip-red { background: #D92D20; } .chip-amber { background: #C2650A; } .chip-green { background: #2F7A4D; } .chip-confirm { background: #6A7B8C; }
.nd-tile .ti { font-size: 12px; color: #33475B; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nd-ok { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.nd-ok .sq { width: 12px; height: 12px; border-radius: 3px; background: #2F9E62; flex: none; }
.nd-ok > span:nth-child(2) { flex: 1 1 240px; }
.nd-dir { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.nd-dir button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 10px; cursor: pointer; display: grid; font-size: 13px; color: var(--navy); }
.nd-dir button span { font-size: 11.5px; color: var(--muted); }
.nd-pside { background: #fff; border-left: 1px solid var(--line); min-height: 0; overflow-y: auto; padding: 16px 18px; }
.nd-pulse:not(.wide) .nd-pside { border: 0; border-top: 1px solid var(--line); }
.nd-pside h3 { font-size: 14px; margin: 16px 0 8px; }
.nd-pside h3:first-child { margin-top: 0; }
.nd-pside .nd-age { padding: 0; border: 0; }
.nd-bars { display: grid; gap: 5px; }
.nd-barrow { display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 8px; padding: 4px 6px; cursor: pointer; color: var(--navy); }
.nd-barrow.on { background: var(--tint); }
.nd-barrow.hot { background: #FFF4F2; }
.nd-barrow .nm { width: 110px; flex: none; text-align: left; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-barrow .tr { flex: 1; height: 11px; border-radius: 6px; background: #EEF1F4; overflow: hidden; display: flex; }
.nd-barrow .tr i { display: block; height: 100%; }
.nd-barrow .ct { width: 78px; flex: none; text-align: right; font-size: 11.5px; color: #33475B; }
.nd-barrow .ct b { color: #C62B1E; }
.nd-team { display: grid; gap: 7px; }
.nd-team > div { display: grid; gap: 4px; font-size: 13px; }
.nd-team span { display: flex; justify-content: space-between; }
.nd-team small { color: var(--muted); }
.nd-team i { display: block; height: 6px; border-radius: 3px; background: #EEF1F4; overflow: hidden; }
.nd-team em { display: block; height: 100%; }
.nd-pdetail { display: grid; gap: 7px; }
.nd-pulse:not(.wide) .nd-pdetail { margin-top: 12px; background: #fff; border-radius: 12px; padding: 12px; }
.nd-pd-h { display: flex; justify-content: space-between; align-items: center; }
.nd-pd-h b { font-size: 16px; display: block; }
.nd-pd-h small { color: var(--muted); }
.nd-out { border-radius: 10px; padding: 8px 10px; background: #F3F5F8; display: grid; gap: 4px; font-size: 13px; }
.nd-out.red { background: #FDE2DD; } .nd-out.amber { background: #FFF1D6; } .nd-out.green { background: #E3F3E9; }
.nd-out a { display: grid; text-decoration: none; color: var(--navy); }
.nd-out a:hover span { text-decoration: underline; }
.nd-out small { color: #4A5D70; font-size: 11.5px; }

/* Me */
.nd-me { max-width: 560px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; }
.nd-me-h { display: flex; gap: 12px; align-items: center; }
.nd-me-h b { font-size: 18px; display: block; }
.nd-me-h small { color: var(--muted); text-transform: capitalize; }
.nd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nd-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.nd-stats b { display: block; font-size: 21px; }
.nd-stats span { font-size: 11.5px; color: var(--muted); }
.nd-me-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.nd-me-row b { display: block; }
.nd-me-row small { color: var(--muted); font-size: 12px; }
.nd-me-row .alerts-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 12px; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.nd-me-row .alerts-btn.on { border-color: #1E7A3E; color: #1E7A3E; }
.nd-links { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.nd-links a { display: flex; justify-content: space-between; padding: 13px 14px; text-decoration: none; border-bottom: 1px solid #EEF1F4; }
.nd-links a:last-child { border-bottom: 0; }
.nd-links a:hover { background: var(--tint); }
@media (max-width: 1250px) { .nd-today.wide { grid-template-columns: 320px minmax(0, 1fr); } .nd-convo.desk { grid-template-columns: minmax(0, 1fr) 260px; } .nd-pulse.wide { grid-template-columns: minmax(0, 1fr) 330px; } }
.nd-hello b { font-size: 17.5px; }
.cell-in { width: 130px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; } .cell-in::placeholder { color: #9AA6B2; }
.nd-lanes button.hot:not(.on) { border-color: #FFC7AD; } .nd-lanes button.hot b { color: var(--orange-ink); }

/* ---------- QC fixes: approve suggested changes sheet by sheet ---------- */
.qf { max-width: 1120px; margin: 0 auto; padding: 22px 28px 120px; }
.qf h1 { font-size: 22px; font-weight: 600; margin: 0; line-height: 1.25; }
.qf .sub { color: var(--muted); }
.qf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.qf-head p { margin: 4px 0 0; }
.qf-search { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-width: 220px; background: #fff; }
.qf-runs { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qf-runs li + li { border-top: 1px solid var(--line); }
.qf-runs a { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 170px; gap: 14px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.qf-runs a:hover { background: var(--bg); }
.qf-run-id { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.qf-run-main { min-width: 0; display: grid; }
.qf-run-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-run-fix { text-align: right; font-size: 13.5px; }
.qf-st { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--navy); white-space: nowrap; }
.qf-st.s-rejected { background: var(--urgent-soft); color: var(--urgent-ink); }
.qf-st.s-review { background: var(--risk-soft); color: var(--risk); }
.qf-st.s-clean, .qf-st.s-approved { background: var(--ok-soft); color: var(--ok); }
.qf-st.s-running { background: var(--note); color: var(--risk); }
.qf-back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 13.5px; margin-bottom: 10px; }
.qf-back:hover { color: var(--navy); }
.qf-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.qf-title p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.qf-title p b { color: var(--ink); }
.qf-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.qf-dl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.qf-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--tint); font-size: 13.5px; }
.qf-note.on { background: var(--note); border: 1px solid var(--note-line); }
.qf-done { margin: 14px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--ok-soft); border: 1px solid #BFE3CB; }
.qf-done p { margin: 4px 0 10px; }
.qf-wait { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qf-wait p { margin: 2px 0 0; color: var(--muted); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: qfspin .9s linear infinite; flex: none; }
@keyframes qfspin { to { transform: rotate(360deg); } }

/* sheet tabs: one per workbook sheet, with how much of it is approved */
.qf-sheets { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 12px; scrollbar-width: thin; }
.qf-sheet { position: relative; flex: none; text-align: left; display: grid; gap: 1px; padding: 9px 14px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; min-width: 150px; }
.qf-sheet b { font-size: 14px; font-weight: 600; }
.qf-sheet span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qf-sheet i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--ok); transition: width .25s; }
.qf-sheet:hover { border-color: #C9D3DD; }
.qf-sheet.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }

.qf-pane { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qf-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 68px; background: #fff; z-index: 3; border-radius: 12px 12px 0 0; }
.qf-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.qf-checks .chip { font: inherit; font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.qf-checks .chip .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.qf-checks .chip.sev-BLOCK { border-left: 3px solid var(--urgent); }
.qf-checks .chip.sev-REVIEW { border-left: 3px solid #E8A33D; }
.qf-checks .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.qf-checks .chip.on .n { color: rgba(255,255,255,.8); }
.qf-bulk { display: flex; gap: 8px; }

.qf-rows { list-style: none; margin: 0; padding: 0; }
.qf-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 14px; border-top: 1px solid #EEF1F5; border-left: 3px solid transparent; }
.qf-row:first-child { border-top: 0; }
.qf-row.st-ok { border-left-color: var(--ok); background: #F6FBF8; }
.qf-row.st-no .qf-line { opacity: .55; }
.qf-tick { position: relative; display: block; width: 22px; height: 22px; margin-top: 1px; cursor: pointer; }
.qf-tick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qf-tick span { position: absolute; inset: 0; border: 2px solid #B7C3CF; border-radius: 6px; background: #fff; }
.qf-tick input:checked + span { background: var(--ok); border-color: var(--ok); }
.qf-tick input:checked + span::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.qf-tick input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.qf-tick input:disabled + span { opacity: .5; }
.qf-main { min-width: 0; }
.qf-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.qf-r { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; }
.qf-col { font-size: 12px; color: var(--muted); }
.qf-from { color: var(--urgent-ink); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.qf-arrow { color: var(--faint); }
.qf-to { color: var(--ok); font-weight: 600; overflow-wrap: anywhere; }
.qf-tag { font-size: 11.5px; background: var(--tint); padding: 0 7px; border-radius: 999px; color: var(--navy); }
.qf-x { font-size: 13px; color: var(--muted); }
.qf-x b { color: var(--ok); }
.qf-x s { color: var(--urgent-ink); }
.qf-edit input { font: inherit; font-weight: 600; border: 1px solid var(--navy); border-radius: 6px; padding: 2px 8px; min-width: 240px; }
.qf-why { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.qf-why.wrong { color: var(--urgent-ink); }
.qf-also { color: var(--navy); }
.qf-acts { display: flex; gap: 6px; }
.qf-more { margin: 10px 14px 14px; }

.qf-manual { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.qf-manual summary { cursor: pointer; padding: 12px 0; }
.qf-manual ul { list-style: none; margin: 0; padding: 0 0 8px; }
.qf-manual li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #EEF1F5; }
.qf-manual li p { margin: 3px 0 0; font-size: 13px; color: var(--ink); }
.qf-sev { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; height: fit-content; text-align: center; }
.qf-sev.sev-BLOCK { background: var(--urgent-soft); color: var(--urgent-ink); }
.qf-sev.sev-REVIEW { background: var(--risk-soft); color: var(--risk); }
.qf-sev.sev-INFO { background: var(--tint); color: var(--navy); }

/* the one action: always in reach at the bottom */
.qf-go { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 20; width: min(1064px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--navy); color: #fff; padding: 12px 14px 12px 18px; border-radius: 12px; box-shadow: 0 10px 28px rgba(34,51,69,.28); }
.qf-go div { display: grid; }
.qf-go span { color: #B9C7D6; font-size: 12.5px; }

@media (max-width: 760px) {
  .qf { padding: 14px 16px 150px; }
  .qf-head, .qf-top { flex-direction: column; align-items: stretch; }
  .qf-dl { justify-content: flex-start; }
  .qf-search { min-width: 0; width: 100%; }
  .qf-runs a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .qf-run-id { grid-column: 1; font-size: 12.5px; }
  .qf-run-main { grid-column: 1 / -1; grid-row: 2; }
  .qf-run-fix { grid-column: 1 / -1; text-align: left; }
  .qf-bar { top: 0; }
  .qf-bulk { width: 100%; }
  .qf-bulk .btn.primary { flex: 1; }
  .qf-row { grid-template-columns: 30px minmax(0, 1fr); }
  .qf-acts { grid-column: 2; }
  .qf-edit input { min-width: 0; width: 100%; }
  .qf-go { bottom: calc(72px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 14px; gap: 10px; }
  .qf-go span { display: none; }
  .qf-go .btn { padding: 8px 12px; font-size: 13.5px; }
  .qf-checks { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .qf-checks .chip { flex: none; }
}
@media (max-width: 760px) { .qf-go .qf-long { display: none; } }
.qf-fill { font-size: 12px; background: #FFF2B3; color: #6B5300; padding: 1px 8px; border-radius: 4px; }

/* fix by typing (QC fixes page) */
.qf-note.ok { background: var(--ok-soft); border: 1px solid #BFE3CB; }
.qf-manual { margin-top: 18px; background: none; border: 0; padding: 0; }
.qf-manual h2 { font-size: 16px; font-weight: 600; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.qf-manual h2 .sub { font-size: 13px; font-weight: 400; }
.qf-mg { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.qf-mg-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.qf-mg-h b { font-weight: 600; }
.qf-mg-h .sub { font-size: 13px; }
.qf-mg-h i { margin-left: auto; font-style: normal; color: var(--muted); font-size: 18px; width: 18px; text-align: center; }
.qf-mrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qf-manual .qf-mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(240px, 340px); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid #EEF1F5; border-left: 3px solid transparent; }
.qf-manual .qf-mrow:first-child { border-top: 0; }
.qf-mrow.typed { border-left-color: var(--ok); background: #F6FBF8; }
.qf-msg { margin: 0; font-size: 13.5px; }
.qf-type { display: flex; align-items: flex-end; gap: 8px; }
.qf-type label { display: grid; gap: 3px; flex: 1; min-width: 0; }
.qf-type .qf-col s { color: var(--urgent-ink); }
.qf-type input { font: inherit; font-size: 14px; border: 1px solid #C9D3DD; border-radius: 7px; padding: 7px 10px; width: 100%; background: #fff; }
.qf-type input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.qf-mrow.typed .qf-type input { border-color: var(--ok); font-weight: 600; }
.qf-saved { font-size: 12px; color: var(--ok); white-space: nowrap; padding-bottom: 9px; }
.qf-wb { font-size: 12.5px; color: var(--muted); justify-self: end; }
@media (max-width: 760px) {
  .qf-manual .qf-mrow { grid-template-columns: 44px minmax(0, 1fr); }
  .qf-type, .qf-wb { grid-column: 1 / -1; justify-self: stretch; }
}
@media (max-width: 760px) {
  .qf-mg-h { flex-wrap: wrap; row-gap: 4px; }
  .qf-mg-h b { flex: 1 1 60%; }
  .qf-mg-h .sub { order: 3; flex-basis: 100%; }
}
.qf-hint { margin: 0; padding: 10px 14px; background: var(--tint); font-size: 13px; border-top: 1px solid var(--line); }
.qf-rm { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; }
.qf-rm-on { font-size: 13px; color: var(--urgent-ink); font-weight: 600; }
.qf-rm-no { font-size: 12.5px; color: var(--muted); }
.qf-manual .qf-mrow.removing { border-left-color: var(--urgent); background: #FFF7F6; }
.qf-bulkline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.qf-rm { flex-direction: column; align-items: stretch; }
.qf-rm-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qf-rm-who { display: grid; min-width: 0; font-size: 13px; }
.qf-rm-who b { font-weight: 600; }
.qf-rm-who span { color: var(--muted); font-size: 12.5px; }
.qf-rm-opt .btn, .qf-rm-opt .qf-rm-no { flex: none; max-width: 45%; }
@media (max-width: 760px) { .qf-rm-opt { flex-direction: column; align-items: stretch; } .qf-rm-opt .btn, .qf-rm-opt .qf-rm-no { max-width: none; } }
.qf-rm-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; max-width: 50%; }
.qf-rm-acts .qf-rm-no { max-width: 260px; }
.qf-keep { align-self: flex-start; }
@media (max-width: 760px) { .qf-rm-acts { max-width: none; justify-content: flex-start; } }

/* ---------- chat position: ticket markers, jump bar, Latest (19 Oct 2026) ---------- */
.msg.tk, .nd-b.tk { border-left: 4px solid var(--tc); }
.msg.linked.tk { box-shadow: none; }
.tk-no { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--tc); vertical-align: 1px; }
.nd-b.other { opacity: .55; }
.nd-b.other:hover { opacity: .9; }
.msg.flash, .nd-b.flash { animation: tkflash 2.6s ease-out; }
@keyframes tkflash { 0%, 35% { box-shadow: 0 0 0 4px rgba(255, 90, 16, .45); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 16, 0); } }
@media (prefers-reduced-motion: reduce) { .msg.flash, .nd-b.flash { animation: none; outline: 3px solid rgba(255, 90, 16, .6); } }
.jumpbar { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 10px; margin-bottom: 6px;
  background: rgba(255,255,255,.96); border: 1px solid #E3E8EE; border-radius: 12px; box-shadow: 0 2px 6px rgba(16,24,40,.06); font-size: 12px; color: var(--muted, #5B6B7B); }
.jumpbar > span { font-weight: 600; margin-right: 2px; }
.jumpbar button { border: 1px solid var(--tc); color: var(--tc); background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.jumpbar button.on { background: var(--tc); color: #fff; }
.jumpbar button:focus-visible { outline: 2px solid var(--tc); outline-offset: 2px; }
.latest-btn { position: sticky; bottom: 10px; display: block; margin: 8px 0 0 auto; z-index: 3; border: 0; border-radius: 999px; padding: 7px 14px; background: #1F3864; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.gap { text-align: center; font-style: italic; }
.takeover { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #FFF4E5; border-top: 1px solid #F5D9B8; font-size: 13px; color: #7A4A00; }
.takeover .btn { flex: none; }
.nd-main > .tabsbar { border-bottom: 1px solid #E3E8EE; }
.nd-main { flex-direction: column; }
.nd-main > .tabsbar { flex: none; }
.nd-main > .nd-convo, .nd-main > .ws-empty { flex: 1; min-height: 0; }

/* ---------- Dev jobs (19 Oct 2026) ---------- */
.devjobs { max-width: 1320px; }
.dj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dj-head h1 { margin: 0 0 4px; }
.dj-head .sub { max-width: 760px; margin: 0; }
.seg { display: inline-flex; border: 1px solid #D5DDE6; border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; color: #334; }
.seg button + button { border-left: 1px solid #D5DDE6; }
.seg button.on { background: #1F3864; color: #fff; }
.dj-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.dj-chips button { --c: #1F3864; display: flex; flex-direction: column; align-items: flex-start; min-width: 130px; padding: 8px 12px; border-radius: 10px; border: 1px solid #E3E8EE; border-top: 4px solid var(--c); background: #fff; cursor: pointer; font: inherit; text-align: left; }
.dj-chips button b { font-size: 20px; line-height: 1.1; }
.dj-chips button span { font-size: 12px; color: #5B6B7B; }
.dj-chips button.on { background: var(--c); border-color: var(--c); color: #fff; }
.dj-chips button.on span { color: #fff; }
.dj-grid { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.dj-people { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 12px; position: sticky; top: 12px; }
.dj-people h3 { margin: 0 0 8px; font-size: 13px; color: #5B6B7B; font-weight: 600; }
.dj-p { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 8px; background: #F6F8FA; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.dj-p.wait .nm { color: #C2185B; }
.dj-p .ct { color: #5B6B7B; white-space: nowrap; }
.dj-p .ct b { color: #D92D20; }
.dj-p.on { border-color: #1F3864; background: #E8EEF6; }
.dj-week { font-size: 12px; color: #5B6B7B; margin: 10px 0 0; }
.dj-list { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; overflow-x: auto; }
.dj-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dj-table th { text-align: left; font-weight: 600; color: #5B6B7B; font-size: 12px; padding: 10px; border-bottom: 1px solid #E3E8EE; background: #F6F8FA; white-space: nowrap; }
.dj-table td { padding: 10px; border-bottom: 1px solid #EEF1F4; vertical-align: top; }
.dj-table td small { display: block; color: #6B7A89; font-size: 11.5px; margin-top: 2px; }
.dj-table td.wr { max-width: 280px; }
.dj-table tr { cursor: pointer; }
.dj-table tbody tr:hover, .dj-table tbody tr:focus-visible { background: #F3F7FC; outline: none; }
.dj-table td.late { color: #D92D20; font-weight: 600; }
.dj-table td.none { color: #8A5A00; font-weight: 600; }
.dj-table tr.st-overdue td:first-child { box-shadow: inset 4px 0 0 #D92D20; }
.dj-wait { color: #C2185B; font-weight: 600; }
.dj-st { --c: #888; display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
@media (max-width: 900px) {
  .dj-grid { grid-template-columns: 1fr; }
  .dj-people { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .dj-people h3, .dj-week { width: 100%; }
  .dj-p { width: auto; margin: 0; }
  .dj-chips button { min-width: 0; flex: 1 1 40%; }
  .dj-table thead { display: none; }
  .dj-table, .dj-table tbody, .dj-table tr, .dj-table td { display: block; width: auto; }
  .dj-table tr { padding: 10px 12px; border-bottom: 1px solid #E3E8EE; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .dj-table td { border: 0; padding: 0; }
  .dj-table td:nth-child(3) { grid-column: 1 / -1; }
  .dj-table td:nth-child(4), .dj-table td:nth-child(7) { display: none; }
  .dj-table td.wr { max-width: none; }
}

/* ---------- Team report (19 Oct 2026) ---------- */
.teamrep { max-width: 1400px; }
.teamrep.has-drawer { padding-right: min(420px, 40vw); }
.tr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tr-head h1 { margin: 0 0 4px; }
.tr-head .sub { margin: 0; max-width: 820px; }
.tr-period { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; align-items: center; }
.tr-period button { border: 1px solid #D5DDE6; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.tr-period button.on { background: #1F3864; border-color: #1F3864; color: #fff; }
.tr-sum { color: #5B6B7B; font-size: 13px; margin: 6px 0 14px; }
.tr-level { margin-bottom: 22px; }
.tr-level h2 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: #334; font-weight: 600; }
.lv { display: inline-block; min-width: 34px; text-align: center; padding: 2px 10px; border-radius: 8px; color: #fff; font-weight: 700; background: #1F3864; }
.lv-L1 { background: #2A6FC4; } .lv-L2 { background: #1B8C77; } .lv-L3 { background: #6B4FC8; } .lv-L4 { background: #9C4221; } .lv-L5 { background: #C2185B; } .lv-Dev { background: #FF5A10; } .lv-Other { background: #6B7A89; }
.tr-wrap { overflow-x: auto; background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; }
.tr-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.tr-table th { text-align: right; font-weight: 600; color: #5B6B7B; font-size: 12px; padding: 9px 10px; background: #F6F8FA; border-bottom: 1px solid #E3E8EE; white-space: nowrap; cursor: help; }
.tr-table td { text-align: right; padding: 9px 10px; border-bottom: 1px solid #EEF1F4; white-space: nowrap; }
.tr-table th.sk, .tr-table td.sk { position: sticky; left: 0; z-index: 1; width: 30px; text-align: center; background: inherit; }
.tr-table th.sk2, .tr-table td.sk2 { position: sticky; left: 40px; z-index: 1; text-align: left; min-width: 130px; background: inherit; box-shadow: 1px 0 0 #EEF1F4; }
.tr-table tbody tr { background: #fff; cursor: pointer; }
.tr-table thead tr { background: #F6F8FA; }
.tr-table tbody tr:hover, .tr-table tbody tr:focus-visible { background: #F3F7FC; outline: none; }
.tr-table tbody tr.on { background: #E8EEF6; }
.tr-table td.sk2 small { display: block; color: #6B7A89; font-size: 11px; }
.tr-table td.sc { text-align: left; min-width: 150px; }
.tr-table td.sc b { margin: 0 6px 0 8px; }
.tr-table td.sc small { font-size: 11px; color: #6B7A89; }
.tr-table td.sc small.up { color: #1E7A3E; } .tr-table td.sc small.down { color: #D92D20; }
.tr-bar { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: #EEF1F4; vertical-align: middle; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: #FF5A10; border-radius: 4px; }
.tr-table td.bad { color: #D92D20; font-weight: 600; }
.tr-table td.good { color: #1E7A3E; font-weight: 600; }
.tr-drawer { position: fixed; top: 66px; right: 0; bottom: 0; width: min(420px, 40vw); background: #fff; border-left: 1px solid #E3E8EE; box-shadow: -6px 0 18px rgba(16,24,40,.08); overflow-y: auto; padding: 14px 16px; z-index: 20; }
.tr-dh { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.tr-dh b { font-size: 17px; display: block; } .tr-dh small { color: #6B7A89; }
.tr-drawer h3 { font-size: 13px; color: #5B6B7B; margin: 14px 0 6px; }
.tr-tk { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-tk li { border: 1px solid #E3E8EE; border-radius: 8px; font-size: 13px; }
.tr-tk li.late { border-left: 4px solid #D92D20; }
.tr-tk li > b, .tr-tk li > small { padding: 0 10px; }
.tr-tk li:not(:has(a)) { padding: 8px 0; }
.tr-tk a { display: block; padding: 8px 10px; text-decoration: none; color: inherit; }
.tr-tk a:hover { background: #F3F7FC; }
.tr-tk span { display: block; color: #334; }
.tr-tk small { display: block; color: #6B7A89; font-size: 11.5px; margin-top: 2px; }
@media (max-width: 900px) {
  .teamrep.has-drawer { padding-right: 0; }
  .tr-drawer { top: auto; left: 0; width: auto; height: 70vh; border-left: 0; border-top: 1px solid #E3E8EE; border-radius: 16px 16px 0 0; bottom: 0; }
}

/* ---------- Pulse: clickable team load, ticket beside Pulse (19 Oct 2026) ---------- */
.nd-tm { display: grid; gap: 4px; width: 100%; padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: inherit; }
.nd-tm:hover, .nd-tm:focus-visible { background: #F3F7FC; outline: none; }
.nd-tm span { display: flex; align-items: center; gap: 6px; }
.nd-tm span b { flex: none; }
.nd-tm span small { margin-left: auto; color: var(--muted, #5B6B7B); }
.nd-tm .late { color: #D92D20; }
.nd-tm .lv { font-style: normal; font-size: 10.5px; padding: 1px 6px; min-width: 0; border-radius: 6px; }
.nd-team > .nd-tm em { display: block; height: 100%; }
.nd-pside h3 small { font-weight: 400; color: var(--muted, #5B6B7B); }
.pulse-chat { position: fixed; top: 66px; right: 0; bottom: 0; width: min(1100px, 78vw); background: #fff; z-index: 30; box-shadow: -10px 0 30px rgba(16,24,40,.18); display: flex; flex-direction: column; }
.pulse-chat > .nd-convo { flex: 1; min-height: 0; }
.pulse-close { flex: none; align-self: flex-start; margin: 8px 12px; border: 1px solid #D5DDE6; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 900px) { .dj-table tr.st-overdue { box-shadow: inset 4px 0 0 #D92D20; } .dj-table tr.st-overdue td:first-child { box-shadow: none; } }

/* ---------- ownership line, channel tags (19 Oct 2026) ---------- */
small.own { display: block; margin-top: 3px; color: #4A5868; font-size: 11.5px; }
small.own .late { color: #D92D20; font-weight: 600; }
.chan { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.chan.wa { background: #DCF5E3; color: #146C3A; }
.chan.email { background: #E3ECFB; color: #1F4E9C; }
.nd-chan { display: flex; gap: 6px; padding: 6px 12px 8px; flex-wrap: wrap; }
.nd-pside .nd-chan { padding: 0 0 6px; }
.nd-chan button { border: 1px solid #D5DDE6; background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.nd-chan button small { color: #6B7A89; }
.nd-chan button.on { background: #1F3864; border-color: #1F3864; color: #fff; }
.nd-chan button.on small { color: #DCE4EE; }
.nd-chan { display: flex; gap: 6px; padding: 6px 12px 8px; flex-wrap: wrap; }
.nd-pside .nd-chan { padding: 0 0 6px; }
.nd-chan button { border: 1px solid #D5DDE6; background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.nd-chan button small { color: #6B7A89; }
.nd-chan button.on { background: #1F3864; border-color: #1F3864; color: #fff; }
.nd-chan button.on small { color: #DCE4EE; }

/* ---------- RCA (19 Oct 2026) ---------- */
.rca-card { border: 1px solid #D5DDE6; border-left: 4px solid #2A6FC4; background: #F5F8FD; border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.rca-card.done { border-left-color: #1E7A3E; background: #F1FAF4; }
.rca-card p { margin: 4px 0 0; white-space: pre-wrap; }
.rca-card a { color: inherit; }
.rca-flag label { display: block; }
.rf-opt { display: flex !important; gap: 8px; align-items: center; font-weight: 600; margin: 12px 0 6px; }
.rf-body { display: grid; gap: 8px; padding-left: 24px; }
.rf-body label { font-size: 12.5px; color: #5B6B7B; display: grid; gap: 4px; }
.rf-body input, .rf-body select { width: 100%; padding: 8px 10px; border: 1px solid #D5DDE6; border-radius: 8px; font: inherit; font-size: 14px; color: #1F2A37; }
.rf-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.rca-prod { margin-left: auto; align-self: center; padding: 8px 10px; border: 1px solid #D5DDE6; border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.rcap .nd-psearch, .rcad { max-width: 1240px; }
.rcap .dj-head .nd-psearch { width: min(420px, 100%); }
.rca-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 8px 0 12px; }
.rca-h > div:first-child { flex: 1; min-width: 260px; }
.rca-h small { color: #6B7A89; }
.rca-title { display: block; width: 100%; font: inherit; font-size: 22px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin-left: -7px; background: transparent; }
.rca-title:hover, .rca-title:focus { border-color: #D5DDE6; background: #fff; outline: none; }
.rca-act { display: flex; gap: 8px; }
.rca-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.rca-meta label { display: grid; gap: 4px; font-size: 12px; color: #5B6B7B; }
.rca-meta select, .rca-meta input { padding: 6px 8px; border: 1px solid #D5DDE6; border-radius: 8px; font: inherit; font-size: 13.5px; color: #1F2A37; background: #fff; }
.rca-meta b.late { color: #D92D20; }
.rca-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.rca-text { display: grid; gap: 12px; }
.rca-f { display: grid; gap: 5px; }
.rca-f > span { font-weight: 700; font-size: 13px; color: #334; }
.rca-f textarea { width: 100%; border: 1px solid #D5DDE6; border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; background: #fff; }
.rca-f p { margin: 0; white-space: pre-wrap; background: #fff; border: 1px solid #E3E8EE; border-radius: 10px; padding: 10px; }
.rca-save { display: flex; gap: 8px; align-items: center; }
.rca-save small { color: #8A5A00; }
.rca-tk { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 12px; position: sticky; top: 12px; }
.rca-tk h3 { margin: 0 0 8px; font-size: 13px; color: #5B6B7B; }
.rca-tk li { position: relative; }
.rca-un { position: absolute; top: 6px; right: 8px; font-size: 12px; }
@media (max-width: 900px) { .rca-grid { grid-template-columns: 1fr; } .rca-tk { position: static; } }
@media print {
  .hdr, .tabbar, footer, .rca-act, .rca-save, .rca-un, .back, .rca-tk .sub { display: none !important; }
  .rca-grid { grid-template-columns: 1fr; }
  .rca-f textarea, .rca-meta select, .rca-meta input, .rca-title { border: 0; resize: none; }
  body, .page { background: #fff; }
}
.tr-tk span.chan, .nd-out span.chan { display: inline-block; }
.side-rca { padding: 0 16px; }
.dj-chips select.rca-prod { width: auto; flex: none; }

/* ---------- Broadcast (20 Oct 2026) ---------- */
.bc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; margin-top: 12px; }
.bc-comp, .bc-groups, .bc-detail, .bc-run { background: #fff; border: 1px solid #E3E8EE; border-radius: 12px; padding: 14px; }
.bc-comp { display: grid; gap: 12px; }
.bc-in { width: 100%; padding: 8px 10px; border: 1px solid #D5DDE6; border-radius: 8px; font: inherit; font-size: 14px; }
.bc-img { display: flex; gap: 10px; align-items: center; }
.bc-img img { max-height: 120px; border-radius: 8px; border: 1px solid #E3E8EE; }
.bc-preview { background: #ECE5DD; border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
.bc-preview small { color: #5B6B7B; }
.bc-preview .nd-b { max-width: 340px; align-self: flex-end; justify-self: end; }
.bc-preview .nd-b img { width: 100%; border-radius: 8px; display: block; margin-bottom: 6px; }
.bc-preview .nd-bt { white-space: pre-wrap; }
.bc-groups ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 520px; overflow-y: auto; }
.bc-groups li label { display: flex; gap: 8px; align-items: center; padding: 5px 2px; font-size: 13.5px; cursor: pointer; }
.bc-gh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bc-run { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-left: 4px solid #FF5A10; margin-top: 12px; }
.bc-run > div:first-child { flex: 1; }
.bc-btns { display: flex; gap: 8px; align-items: center; }
.bc-prog { height: 8px; background: #EEF1F4; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; }
.bc-prog i { display: block; height: 100%; background: #1E7A3E; }
.bc-nums { margin: 0; font-size: 12.5px; color: #4A5868; }
.bc-nums b.bad { color: #D92D20; }
.bc-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bc-h { text-align: left; background: #fff; border: 1px solid #E3E8EE; border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; }
.bc-h.on { border-color: #1F3864; }
.bc-h small { display: block; color: #6B7A89; }
.bc-detail { margin-top: 12px; }
.bc-dh { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-preview { display: block; }
.bc-bubble { margin: 6px 0 0 auto; width: min(320px, 100%); background: #DCF8C6; border-radius: 10px 10px 2px 10px; padding: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.bc-bubble img { width: 100%; display: block; border-radius: 7px; }
.bc-bt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; padding: 6px 4px 2px; }
/* ---------- Group admins (20 Oct 2026) ---------- */
.ga-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.ga-bar label { display: grid; gap: 4px; font-size: 12.5px; color: #5B6B7B; }
.ga-bar .bc-in { width: 220px; }
.ga-grid { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.ga-list { list-style: none; margin: 0 0 6px 10px; padding: 0; font-size: 12.5px; color: #334; }
.ga-list li { padding: 2px 0; }
.ga-staff { font-weight: 700; color: #1F3864; }
.ga-th { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #E3E8EE; }
.ga-th .bc-in { width: 240px; }
@media (max-width: 900px) { .ga-grid { grid-template-columns: 1fr; } }

/* ---------- Inventory desk (phase 1, 23 Oct 2026) ---------- */
.alert.stg { background: #EEF4FA; border-left-color: #2E4560; }
.inv { --s-sure: #DDEBF7; --s-sure-ink: #1F4E8C; --s-guess: #FCE4D6; --s-guess-ink: #8A3B12; --s-internet: #E4DFEC; --s-internet-ink: #4B2E83; --s-input: #FFF2CC; --s-input-ink: #6B5200; }
.inv h1 { margin: 0 0 4px; }
.inv-nav { margin-bottom: 18px; }
.inv .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.inv-card h2 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-card h2 .sub { font-weight: 400; font-size: 13px; }
.inv-hero, .inv-ch { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.inv-ch .back { display: inline-block; margin-bottom: 4px; }
.inv-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inv-open { position: relative; min-width: min(100%, 340px); }
.inv-open input, .inv-mp input[type=search], .inv-stool input[type=search] { width: 100%; box-sizing: border-box; border: 1px solid #C5D0DA; border-radius: 8px; padding: 9px 12px; font: inherit; background: #fff; }
.inv-hits { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(34,51,69,.14); }
.inv-hits a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--navy); font-weight: 500; }
.inv-hits a:hover, .inv-hits a:focus { background: var(--tint); }
.inv-hits small { color: var(--muted); font-weight: 400; }
.inv-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 16px; }
.inv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEF1F5; text-decoration: none; color: var(--navy); }
.inv-row:last-child { border-bottom: 0; }
.inv-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.inv-st { --c: #556677; display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; }
.inv-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--tint); color: var(--navy-2); }
.inv-pill.or { background: var(--orange-soft); color: var(--orange-ink); }
.inv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inv-tiles a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.inv-tiles a b { font-size: 22px; line-height: 1.1; }
.inv-tiles a span { font-size: 12.5px; color: var(--muted); }
.inv-tiles a.hot { border-top: 3px solid var(--orange); }
.inv-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 4px; }
.inv-counts a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; }
.inv-counts b { font-size: 24px; }
.inv-counts span { font-size: 13px; color: var(--muted); }
.inv-row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inv-act { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.inv-act li { padding: 6px 0; border-bottom: 1px solid #EEF1F5; }
.inv-act small { display: block; color: var(--muted); font-size: 12px; }
.inv-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.inv-form { margin-bottom: 16px; }
.inv-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px 14px; }
.inv-fgrid label, .inv-full { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.inv-fgrid input, .inv-fgrid select, .inv-full textarea { font: inherit; color: var(--navy); border: 1px solid #C5D0DA; border-radius: 8px; padding: 8px 10px; background: #fff; }
.inv-scroll, .dj-list { overflow-x: auto; }
/* masters */
.inv-csbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--orange-soft); border: 1px solid #FFD2BC; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.inv-csbar.ro { background: var(--tint); border-color: #D3E1EF; }
.inv-csbar small { display: block; color: var(--muted); font-size: 12.5px; }
.inv-mwrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.inv-sheets { flex: 1 1 200px; max-width: 230px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.inv-sheets button { display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--navy); cursor: pointer; }
.inv-sheets button.on { background: var(--tint); font-weight: 600; }
.inv-sheets i { font-style: normal; font-size: 12px; color: var(--muted); }
.inv-sheets i.ch { background: var(--orange-soft); color: var(--orange-ink); font-weight: 600; padding: 0 7px; border-radius: 999px; }
.inv-sheet { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.inv-stool { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inv-stool input[type=search] { width: 220px; flex: 0 1 220px; }
.inv-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.inv-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.inv-src { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 4px; white-space: nowrap; }
.inv-src.s-sure { background: var(--s-sure); color: var(--s-sure-ink); } .inv-src.s-guess { background: var(--s-guess); color: var(--s-guess-ink); }
.inv-src.s-internet { background: var(--s-internet); color: var(--s-internet-ink); } .inv-src.s-input { background: var(--s-input); color: var(--s-input-ink); }
.inv-tbl { overflow: auto; max-height: 64vh; }
.inv-tbl table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.inv-tbl th { position: sticky; top: 0; z-index: 1; background: #F7F9FB; text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv-tbl td { padding: 7px 10px; border-bottom: 1px solid #EEF1F5; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.inv-tbl .rn { color: var(--muted); font-variant-numeric: tabular-nums; position: sticky; left: 0; background: #fff; }
.inv-tbl thead .rn { background: #F7F9FB; z-index: 2; }
.inv-tbl tr.click { cursor: pointer; }
.inv-tbl tr.click:hover td { background: #F5F8FB; }
.inv-tbl tr.op-add td, .inv-tbl tr.op-edit td.chg { background: var(--s-sure); }
.inv-tbl tr.s-guess.op-add td, .inv-tbl tr.s-guess td.chg { background: var(--s-guess); }
.inv-tbl tr.s-internet.op-add td, .inv-tbl tr.s-internet td.chg { background: var(--s-internet); }
.inv-tbl tr.s-input.op-add td, .inv-tbl tr.s-input td.chg { background: var(--s-input); }
.inv-tbl tr.op-delete td { text-decoration: line-through; color: #8592A0; background: #FDF1F0; }
.inv-tbl td.chg { font-weight: 600; }
.inv-pg { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px; font-size: 13px; }
/* row editor */
.inv-ed { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.inv-edh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inv-edh h2 { margin: 0; font-size: 18px; }
.inv-edf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px 14px; margin: 14px 0; }
.inv-edf label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.inv-edf label.chg span { color: var(--orange-ink); font-weight: 600; }
.inv-edf input, .inv-edf select { font: inherit; font-size: 14px; color: var(--navy); border: 1px solid #C5D0DA; border-radius: 8px; padding: 7px 9px; background: #fff; min-height: 38px; box-sizing: border-box; }
.inv-edf label.chg input, .inv-edf label.chg select { border-color: var(--orange); }
.inv-srcs { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.inv-srcs legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.inv-srcs label { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px; }
.inv-srcs label input { grid-row: span 2; margin-top: 3px; }
.inv-srcs label small { color: var(--muted); font-size: 12px; }
.inv-srcs label.on.s-sure { background: var(--s-sure); border-color: var(--s-sure-ink); } .inv-srcs label.on.s-guess { background: var(--s-guess); border-color: var(--s-guess-ink); }
.inv-srcs label.on.s-internet { background: var(--s-internet); border-color: var(--s-internet-ink); } .inv-srcs label.on.s-input { background: var(--s-input); border-color: var(--s-input-ink); }
/* change set */
.inv-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: 13px; }
.inv-steps li { padding: 4px 12px; border-radius: 999px; background: #EEF1F5; color: var(--muted); }
.inv-steps li.done { background: var(--ok-soft); color: var(--ok); }
.inv-steps li.now { background: var(--navy); color: #fff; }
.inv-csgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.inv-chs h3 { font-size: 13px; margin: 12px 0 4px; color: var(--muted); font-weight: 600; }
.inv-chs h3 small { font-weight: 400; }
.inv-chs ul { list-style: none; margin: 0; padding: 0; }
.inv-chs li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid #EEF1F5; font-size: 13.5px; }
.inv-chs li > div { grid-column: 1 / -1; }
.inv-chs .op { font-weight: 600; font-size: 12.5px; }
.inv-chs li.op-add .op { color: var(--ok); } .inv-chs li.op-delete .op { color: var(--urgent-ink); }
.inv-chs .kv { display: block; }
.inv-chs .kv i { font-style: normal; color: var(--muted); }
.inv-chs s, .inv-iss s { color: #8592A0; }
.inv-chs small { display: block; color: var(--muted); font-size: 12px; }
.inv-chs small.inv-cnote { color: var(--navy-2); font-style: italic; }
.inv-qst { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.inv-qst.q-CLEAN { background: var(--ok-soft); color: var(--ok); } .inv-qst.q-REVIEW { background: var(--risk-soft); color: var(--risk); } .inv-qst.q-REJECTED { background: var(--urgent-soft); color: var(--urgent-ink); }
.inv-warn { color: var(--risk); font-weight: 600; font-size: 13px; }
.inv-qcounts { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; font-size: 13.5px; }
.inv-qcounts b { font-size: 20px; margin-right: 3px; }
.inv-qcounts .b b { color: var(--urgent-ink); } .inv-qcounts .r b { color: var(--risk); }
.inv-isl { list-style: none; margin: 8px 0 0; padding: 0; }
.inv-iss { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF1F5; font-size: 13.5px; }
.inv-iss .sev { flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; height: fit-content; background: #EEF1F5; color: var(--muted); }
.inv-iss.sev-BLOCK .sev { background: var(--urgent-ink); color: #fff; } .inv-iss.sev-REVIEW .sev { background: #FFE7B8; color: #6B3E00; }
.inv-iss .body { flex: 1; min-width: 0; }
.inv-iss small { display: block; color: var(--muted); font-size: 12px; }
.inv-iss p { margin: 4px 0 0; }
.inv-iss .sugg { background: #F5F7FA; border-radius: 6px; padding: 6px 8px; }
.inv-iss .ok { color: var(--ok); font-weight: 600; font-size: 12.5px; }
.inv-iss.st-fixed, .inv-iss.st-ok { opacity: .75; }
.inv-type { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.inv-type input { font: inherit; border: 1px solid #C5D0DA; border-radius: 8px; padding: 5px 9px; min-width: 200px; }
.inv-else { margin-top: 12px; font-size: 13.5px; }
.inv-else summary { cursor: pointer; color: var(--muted); }
.inv-send { margin-bottom: 16px; }
.inv-send.ok { border-color: #BFE3CB; background: #F4FBF6; }
.inv-note { background: var(--note); border: 1px solid var(--note-line); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.inv-dec { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 8px; }
.inv-back { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-back input { font: inherit; border: 1px solid #C5D0DA; border-radius: 8px; padding: 7px 10px; min-width: min(100%, 280px); }
.inv-full textarea { width: 100%; box-sizing: border-box; }
/* tickets */
.inv-tk { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.inv-tl { flex: 1 1 260px; max-width: 320px; padding: 10px !important; display: flex; flex-direction: column; gap: 2px; }
.inv-tq { display: block; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--navy); font-size: 13.5px; }
.inv-tq small { display: block; color: var(--muted); font-size: 12.5px; }
.inv-tq.on { background: var(--tint); box-shadow: inset 3px 0 0 var(--orange); }
.inv-tv { flex: 999 1 420px; min-width: 0; }
.inv-tv h1 { font-size: 19px; margin: 2px 0; }
.inv-msgs { display: flex; flex-direction: column; gap: 8px; background: #F5F7FA; border-radius: 10px; padding: 12px; margin: 10px 0; }
.inv-msg { max-width: 80%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; white-space: pre-wrap; }
.inv-msg.us { align-self: flex-end; background: var(--tint); }
.inv-msg small { display: block; color: var(--muted); font-size: 11.5px; }
.inv-mp { flex: 1 1 300px; max-width: 400px; }
.inv-mph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.inv-mph h2 { margin: 0; }
.inv-hits2 { list-style: none; margin: 8px 0; padding: 0; }
.inv-hits2 a { display: block; padding: 7px 0; border-bottom: 1px solid #EEF1F5; text-decoration: none; color: var(--navy); font-size: 13.5px; }
.inv-hits2 small, .inv-else2 small { display: block; color: var(--muted); font-size: 12px; }
.inv-miss { background: var(--note); border: 1px dashed #F2A93B; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.inv-else2 { font-size: 13.5px; margin: 8px 0; }
.inv-else2 ul { list-style: none; margin: 4px 0 0; padding: 0; }
.inv-else2 li { padding: 5px 0; border-bottom: 1px solid #EEF1F5; }
.inv-fix { width: 100%; margin-top: 8px; }
/* staging outbox */
.inv-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inv-out li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.inv-out .h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv-out .h small { color: var(--muted); margin-left: auto; }
.inv-out pre { white-space: pre-wrap; font: inherit; font-size: 13.5px; margin: 8px 0 0; }
.inv-roles .dj-table select { font: inherit; border: 1px solid #C5D0DA; border-radius: 8px; padding: 5px 8px; }
.inv-roles .dj-table small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .inv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inv-sheets { max-width: none; flex-direction: row; overflow-x: auto; } .inv-sheets button { white-space: nowrap; } .inv-tl, .inv-mp { max-width: none; } }
.inv-tl .seg { display: flex; } .inv-tl .seg button { flex: 1; white-space: nowrap; padding: 6px 8px; }
.inv-chs h3 small { display: inline; margin-left: 4px; }
.inv-card h2 .sub { margin: 0; display: inline; font-weight: 400; }
.inv-stool .sub { margin: 0; }
.inv-type input { min-width: 0; flex: 1 1 200px; max-width: 100%; box-sizing: border-box; }
.inv-type { width: 100%; }
.stg-bar { background: #2E4560; color: #fff; font-size: 13px; }
.stg-bar > div { max-width: 1280px; margin: 0 auto; padding: 6px 28px; }
.stg-bar a { color: #FFD2BC; font-weight: 600; margin-left: 6px; }
