/* TeamHub interface components — the shared vocabulary for every section.
   Tokens come from app.css (:root); this file holds the parts built on them:
   tabs, filter chips, the order list, checkboxes, the route of an order, the order
   page, the bulk bar, skeletons and empty states. */

:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --brand-wash: #FFF4EC;
  --open-row: #EEEEF3;
  --act-text: var(--act);
}
:root[data-theme="dark"] {
  --brand-wash: rgba(240, 106, 28, .12);
  --open-row: #2A2A2E;
}

/* keycap */
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--panel);
  box-shadow: inset 0 -1px 0 var(--line-2), 0 0 0 1px var(--line); font: 500 11px/1 var(--font); color: var(--muted); }
.search .kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search { position: relative; }
.search:focus-within .kbd { opacity: 0; }

/* tabs under the page title: the views of a list */
.vtabs { flex: none; display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtab { position: relative; flex: none; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 400; white-space: nowrap; transition: color .15s ease; }
.vtab:hover { color: var(--ink); }
.vtab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .22s var(--ease-out); }
.vtab.on { color: var(--ink); font-weight: 500; }
.vtab.on::after { transform: scaleX(1); }
.vtab .c { color: var(--muted); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }

/* filter chips: a value to pick from a menu, or a set filter with a cross */
.otools { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 24px; flex-wrap: wrap; }
.fchip { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 13px; white-space: nowrap; transition: box-shadow .15s ease, background-color .15s ease; }
.fchip:hover { box-shadow: 0 0 0 1px var(--line-2); color: var(--ink); }
.fchip b { font-weight: 500; color: var(--ink); }
.fchip.on { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.fchip.on b { color: var(--sel-ink); }
.fchip .x { width: 18px; height: 18px; margin-right: -6px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .fchip { background: var(--field); box-shadow: none; }

/* checkbox */
.cb { width: 18px; height: 18px; flex: none; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; color: transparent; background: var(--panel);
  transition: background-color .12s ease, box-shadow .12s ease, transform .16s var(--ease-out); }
.cb:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.cb:active { transform: scale(.88); }
.cb.on { background: var(--act); box-shadow: none; color: #fff; }
.cb .ico svg { stroke-width: 2.6; }

/* numbers people read: a tag with one tight corner, like a chat bubble */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 9px 9px 9px 3px; background: var(--tag); color: var(--tag-ink);
  font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; letter-spacing: .005em; white-space: nowrap; }
.tag.lg { height: 32px; margin: 0; padding: 0 12px; font-size: 18px; border-radius: 12px 12px 12px 4px; }

/* the route of an order: payment, photos, label, handed over */
.route { display: inline-flex; align-items: center; flex: none; }
.route i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; transition: background-color .3s ease, box-shadow .3s ease; }
.route b { width: 9px; height: 2px; background: var(--line-2); transition: background-color .3s ease; }
.route i.d, .route b.d { background: var(--ink-2); }
.route i.n { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.route i.x { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.rbig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stop { position: relative; display: flex; flex-direction: column; gap: 1px; padding-top: 18px; font-size: 13px; min-width: 0; }
.stop::before { content: ""; position: absolute; top: 4px; left: 12px; right: -2px; height: 2px; background: var(--line-2); transition: background-color .4s ease; }
.stop:last-child::before { display: none; }
.stop i { position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background-color .3s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.stop.d::before, .stop.d i { background: var(--ink-2); }
.stop.n i { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); transform: scale(1.15); }
.stop.x i { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.stop b { font-weight: 500; }
.stop.n b { color: var(--act-text); }
.stop.x b { color: var(--red); }
.stop span { color: var(--muted); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }

/* skeletons, empty and failed states */
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--field) 0%, var(--panel-2) 40%, var(--field) 80%) 0 0 / 300% 100%; animation: sk-move 1.4s linear infinite; }
.sk.pic { width: 48px; height: 48px; border-radius: 10px; }
@keyframes sk-move { to { background-position: -300% 0; } }
.empty-box { padding: 64px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.empty-box .ring { width: 56px; height: 56px; border-radius: 50%; background: var(--field); display: grid; place-items: center; color: var(--muted); margin-bottom: 8px; }
.empty-box h3 { margin: 0; font-size: 16px; font-weight: 600; }
.empty-box p { margin: 0 0 10px; color: var(--muted); max-width: 380px; }
.banner { display: flex; align-items: center; gap: 12px; margin: 0 24px 12px; padding: 10px 12px 10px 14px; border-radius: 12px; }
.banner p { margin: 0; flex: 1; color: var(--ink); }
.banner.err { background: var(--red-soft); color: var(--red); }

/* floating bar for what is selected */
.bulk { position: absolute; left: 50%; bottom: 24px; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 16px;
  background: #1C1C1E; color: #fff; box-shadow: 0 16px 40px rgba(20, 20, 24, .22), 0 2px 6px rgba(20, 20, 24, .1); white-space: nowrap;
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .26s var(--ease-out), opacity .2s ease, visibility 0s linear .26s; }
.bulk.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .26s var(--ease-out), opacity .2s ease; }
.bulk .n { margin-right: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bulk .btn { color: #fff; background: transparent; }
.bulk .btn:hover { background: rgba(255, 255, 255, .12); }
.bulk .icon-btn { color: #fff; }
.bulk .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.bulk .sepv { width: 1px; height: 20px; background: rgba(255, 255, 255, .16); margin: 0 4px; }
:root[data-theme="dark"] .bulk { background: #F2F2F7; color: #1C1C1E; }
:root[data-theme="dark"] .bulk .btn, :root[data-theme="dark"] .bulk .icon-btn { color: #1C1C1E; }
:root[data-theme="dark"] .bulk .btn:hover, :root[data-theme="dark"] .bulk .icon-btn:hover { background: rgba(0, 0, 0, .08); }
:root[data-theme="dark"] .bulk .sepv { background: rgba(0, 0, 0, .14); }

/* ===== orders: the queue, and the order on its own page ===== */
.orders-page { position: relative; overflow: hidden; }
.orders-page .page-head { padding-bottom: 10px; }
.page-head .orders-search { flex: 0 1 400px; min-width: 220px; }
.orders-search input { padding-right: 36px; }
.olist-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 120px; scrollbar-width: thin; }
.orx-list { max-width: none; margin: 0; display: block; background: var(--panel); border-radius: var(--r-group); overflow: hidden; }
.olist.orx-list > * { border-bottom: 0; }
.orx { position: relative; display: grid; grid-template-columns: 18px 48px 84px minmax(180px, 1.6fr) minmax(130px, 1fr) 120px 206px 92px 64px; gap: 14px; align-items: center;
  padding: 10px 16px; min-height: 68px; transition: background-color .15s ease; }
.orx + .orx::before { content: ""; position: absolute; left: 64px; right: 0; top: 0; border-top: 1px solid var(--line); }
.orx:not(.orx-head):hover { background: var(--panel-2); }
.orx.sel, .orx.sel:not(.orx-head):hover { background: var(--brand-wash); }
.orx.open { background: var(--open-row); }
.orx.open .tag { background: var(--ink); color: var(--panel); }
.orx.cancelled { opacity: .6; }
.orx-head { min-height: 40px; padding-top: 0; padding-bottom: 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.orx-head + .orx::before { display: none; }
.orx .othumb { width: 48px; height: 48px; border-radius: 10px; }
.orx .r { justify-self: end; text-align: right; }
.orx .sub, .orx .t1 { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orx .sub { font-size: 12.5px; line-height: 16px; color: var(--muted); margin-top: 2px; }
.orx .num { font-variant-numeric: tabular-nums; }
.oitem-cell, .c-cust, .onum { min-width: 0; }
.rowlink { display: block; width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); cursor: pointer; }
.rowlink::after { content: ""; position: absolute; inset: 0; }
.rowlink:focus-visible { outline: none; }
.orx:has(.rowlink:focus-visible) { box-shadow: inset 0 0 0 2px var(--brand); }
.orx .cb, .orx .ostage-flags > * { position: relative; z-index: 1; }
.oship-cell { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oship-cell.fast { color: var(--red); font-weight: 500; }
.oship-cell.quick { color: var(--warn); font-weight: 500; }
.ostage { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ostage-main { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.ostage-main > span { overflow: hidden; text-overflow: ellipsis; }
.ostage-main.red { color: var(--red); font-weight: 500; }
.ostage-main.amber { color: var(--warn); font-weight: 500; }
.ostage-main.muted { color: var(--muted); }
.ostage-flags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.ostage-flags:empty { display: none; }
.ostage-flags .auth-chip, .ostage-flags .orisk { font-size: 12px; }
.owait { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.owait.late { color: var(--red); font-weight: 500; }
.m-only { display: none; }
.d-only { display: inline-grid; }
.olist-more { padding: 14px; display: flex; justify-content: center; }

/* the open order takes the whole page; the list waits behind it and keeps its place */
.oview { display: none; }
.orders-page.viewing-order > :not(.oview) { display: none; }
.orders-page.viewing-order > .oview { display: flex; flex: 1; min-height: 0; flex-direction: column; background: var(--bg); }
.oview > .order-page { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; margin: 0; }
.order-page.enter .op-wrap { animation: op-in .32s var(--ease-out) both; }
.order-page.enter .op-head > * { animation: op-fade .22s ease both; }
@keyframes op-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes op-fade { from { opacity: 0; } }
.op-head { flex: none; padding: 10px 24px 16px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.op-head > * { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; }
.op-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.op-back { margin-left: -10px; padding: 0 12px 0 8px; color: var(--ink-2); font-weight: 500; }
.op-back:hover { color: var(--ink); }
.op-status { display: inline-flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-left: 4px; min-width: 0; }
.op-when { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.op-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.op-flow .rbig { flex: 1 1 440px; max-width: 640px; }
.op-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.oview .onav { display: inline-flex; gap: 2px; }
.oview .onav-btn { width: 36px; height: 36px; padding: 0; border-radius: 999px; background: transparent; border: 0; box-shadow: none; }
.oview .onav-btn:hover:not(:disabled) { background: var(--field); }
.oview .onav-btn:disabled { opacity: .35; }
.op-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 56px; scrollbar-width: thin; }
.op-body.swipe-left { animation: swipe-l .26s var(--ease-out); }
.op-body.swipe-right { animation: swipe-r .26s var(--ease-out); }
.op-wrap { max-width: 1240px; margin: 0 auto; }
.op-wrap > .olimited { margin-bottom: 14px; }
.op-body > .empty-box { margin-top: 40px; }
.oview .ocol .sk { border-radius: var(--r-group); }
/* one main button lives in the header; the same actions inside the cards stay quiet */
.oview .op-body .btn.primary:not(.cam-done) { background: var(--field); color: var(--ink); }
.oview .op-body .btn.primary:not(.cam-done):hover:not(:disabled) { background: color-mix(in srgb, var(--field) 82%, var(--ink) 8%); }
.oview .ocomment .btn.primary:not(:disabled) { background: var(--act); color: var(--act-ink); }
.oview .ostate:not(.ok):not(.warn) { background: var(--field); color: var(--ink-2); }
.oview .ocard-head h3 { font-size: 15px; }
.ogroup { display: grid; background: var(--panel); border-radius: var(--r-group); overflow: hidden; }
.ogroup > .ocard { border-radius: 0; }
.ogroup > .ocard + .ocard { border-top: 1px solid var(--line); }
.op-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 2px; }
.op-ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--field); display: grid; place-items: center; cursor: zoom-in; transition: transform .16s var(--ease-out); }
.op-ph:active { transform: scale(.97); }
.op-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-ph.add { cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; display: flex; flex-direction: column; gap: 6px; padding: 8px; font-size: 12.5px; color: var(--ink-2); text-align: center; }
.op-ph.add:hover { background: var(--panel-2); }
.op-ph.add:only-child { grid-column: 1 / -1; aspect-ratio: auto; height: 72px; flex-direction: row; justify-content: center; gap: 10px; font-size: 14px; }

/* narrower screens: one column, cards in the order the warehouse needs them */
@media (max-width: 1100px) {
  .oview .ogrid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .oview .ogrid > .ocol { display: contents; }
  .oview .o-payagain { order: 0; } .oview .o-photos { order: 1; } .oview .o-items { order: 2; } .oview .o-who { order: 3; }
  .oview .o-note { order: 5; } .oview .o-pay { order: 6; } .oview .o-chan { order: 7; } .oview .o-risk { order: 9; }
  .oview .o-buys { order: 10; } .oview .o-tags { order: 11; } .oview .o-tl { order: 12; }
}

/* middle widths: fewer columns, the order lies over the list */
@media (max-width: 1360px) {
  .orx { grid-template-columns: 18px 48px 84px minmax(170px, 1.5fr) minmax(120px, 1fr) 196px 88px 60px; }
  .orx .c-ship { display: none; }
}
@media (max-width: 1179px) and (min-width: 761px) {
  .orx { grid-template-columns: 18px 48px 84px minmax(160px, 1fr) 190px 88px 60px; }
  .orx .c-cust { display: none; }
}

/* ===== dialogs: a soft blurred backdrop, the window rises into place ===== */
.modal-back { background: rgba(14, 16, 22, .38); backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); animation: back-in .2s ease both; }
.modal { animation: modal-in .26s var(--ease-out) both; }
@keyframes back-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
:root[data-theme="dark"] .modal-back { background: rgba(0, 0, 0, .52); }

/* a question before an action: a mark for the kind of step, the question, what it means, the details */
.modal.ask { position: relative; width: min(440px, 100%); padding: 28px 24px 22px; }
.ask-x { position: absolute; top: 12px; right: 12px; color: var(--muted); }
.ask-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 8px; }
.ask-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; position: relative; }
.ask-ic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid currentColor; opacity: .18; animation: ask-ring 1.6s var(--ease-out) .15s both; }
@keyframes ask-ring { from { transform: scale(.8); opacity: 0; } 40% { opacity: .3; } }
.tone-danger .ask-ic { background: var(--red-soft); color: var(--red); }
.tone-ok .ask-ic { background: var(--green-soft); color: var(--green); }
.tone-calm .ask-ic { background: var(--brand-wash); color: var(--act-text); }
.modal.ask .ask-head h2 { margin: 0; display: block; font-size: 19px; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.ask-head p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; max-width: 360px; }
.modal.ask .body { margin-top: 18px; }
.ask-sum { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--field); text-align: left; }
.ask-sum .othumb { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.ask-rows { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ask-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.4; }
.ask-row span { color: var(--muted); }
.ask-row b { font-weight: 500; overflow-wrap: anywhere; }
.modal.ask .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.modal.ask .actions .btn { height: 44px; justify-content: center; font-size: 15px; }
.modal.ask .actions .ask-no { background: var(--field); color: var(--ink); }
.modal.ask .actions .ask-no:hover { background: color-mix(in srgb, var(--field) 84%, var(--ink) 8%); }
.btn.primary.danger-fill, .btn.primary.danger-fill:hover:not(:disabled) { background: var(--red); color: #fff; }
.btn.primary.danger-fill:hover:not(:disabled) { filter: brightness(.94); }
.btn.primary.ok-fill, .btn.primary.ok-fill:hover:not(:disabled) { background: var(--green); color: #fff; }
.btn.primary.ok-fill:hover:not(:disabled) { filter: brightness(.94); }

/* hints: a dark pill with a pointer, after a short pause */
.tip { position: fixed; z-index: 140; max-width: 280px; padding: 7px 11px; border-radius: 10px; background: #1C1C1E; color: #F5F5F7; font-size: 12.5px; line-height: 1.4;
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .18s var(--ease-out); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.tip.below { transform: translateY(-4px); }
.tip.on { opacity: 1; transform: none; }
.tip::after { content: ""; position: absolute; left: calc(var(--ax) - 5px); width: 10px; height: 10px; background: inherit; border-radius: 2px; transform: rotate(45deg); }
.tip.above::after { bottom: -4px; }
.tip.below::after { top: -4px; }
:root[data-theme="dark"] .tip { background: #F2F2F7; color: #1C1C1E; }
[data-tip] { cursor: help; }
button[data-tip], a[data-tip], .vtab[data-tip], .sup-tab[data-tip] { cursor: pointer; }

/* guided tours: the page dims except the place being explained; a card tells what it is */
.tour { position: fixed; inset: 0; z-index: 130; opacity: 0; transition: opacity .2s ease; }
.tour.on { opacity: 1; }
.tour-shield { position: absolute; inset: 0; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(14, 16, 22, .55), 0 0 0 2px var(--brand) inset; pointer-events: none;
  transition: left .35s var(--ease-out), top .35s var(--ease-out), width .35s var(--ease-out), height .35s var(--ease-out); }
.tour-card { position: fixed; width: 340px; max-width: calc(100vw - 24px); background: var(--panel); color: var(--ink); border-radius: 18px; padding: 16px 18px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04); transition: left .35s var(--ease-out), top .35s var(--ease-out); }
.tour-card.in { animation: tour-in .3s var(--ease-out) both; }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } }
.tour-card::before { content: ""; position: absolute; left: calc(var(--ax, 50%) - 7px); width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.tour-card.below::before { top: -6px; }
.tour-card.above::before { bottom: -6px; }
.tour-card.sheet { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
.tour-card.sheet::before { display: none; }
.tour-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tour-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); color: var(--act-text); flex: none; }
.tour-ic.big { width: 40px; height: 40px; }
.tour-n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour-dots { margin-left: auto; display: inline-flex; gap: 4px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .25s var(--ease-out), background-color .25s ease; }
.tour-dots i.done { background: var(--ink-2); }
.tour-dots i.on { width: 16px; background: var(--brand); }
.tour-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.tour-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.tour-acts { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.tour-acts .btn { height: 36px; }
.tour-skip { color: var(--muted); padding: 0 8px; margin-left: -8px; }
:root[data-theme="dark"] .tour-hole { box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .66), 0 0 0 2px var(--brand) inset; }

/* the first visit: an offer in the corner, never in the way */
.tour-invite { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 360px; max-width: calc(100vw - 24px); display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 12px 14px 14px; border-radius: 18px; background: var(--panel); box-shadow: 0 18px 44px rgba(0, 0, 0, .18), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .22s ease, transform .3s var(--ease-out); }
.tour-invite.on { opacity: 1; transform: none; }
.tour-invite b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.tour-invite p { margin: 2px 0 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.tour-invite .inline { gap: 6px; }
.tour-invite .btn { height: 34px; }
.help-btn { color: var(--muted); }
.help-btn:hover { color: var(--ink); }

/* ===== company look: ready sets, the button colour and a preview that follows them ===== */
.look-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.look-set { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border-radius: 12px; background: var(--field); color: var(--ink-2); font-size: 13px; text-align: left; transition: box-shadow .15s ease, background-color .15s ease; }
.look-set:hover { color: var(--ink); }
.look-set.on { background: var(--panel); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 2px var(--ink); }
.look-set > span:last-child { padding: 0 4px; }
.ls-art { position: relative; display: block; height: 48px; border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.ls-art i { position: absolute; display: block; }
.ls-rail { left: 0; top: 0; bottom: 0; width: 16px; }
.ls-btn { right: 8px; bottom: 8px; width: 34px; height: 12px; border-radius: 6px; }
.ls-line { left: 24px; top: 12px; width: 26px; height: 3px; border-radius: 2px; }
.lp-btn { background: var(--act); color: var(--act-ink); border-radius: 999px; }
.lp-tabs { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 4px; align-self: stretch; }
.lp-tabs span { padding-bottom: 3px; }
.lp-tabs .on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--brand); }
.lp-route { display: flex; align-items: center; align-self: flex-start; margin-top: 6px; }
.lp-route i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.lp-route b { width: 12px; height: 2px; background: var(--line-2); }
.lp-route .d { background: var(--ink-2); }
.lp-route i.n { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ===== the same tabs, rows and pages in purchases, returns and requests ===== */
.sup-tabs, .req-main > .sup-tabs { background: var(--panel); gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.req-main > .sup-tabs { background: none; padding: 0; margin-bottom: 12px; }
.sup-tab, :root[data-theme="dark"] .sup-tab { position: relative; height: 42px; padding: 0 10px; border-radius: 0; background: none; box-shadow: none; color: var(--ink-2); font-weight: 400; gap: 6px; transition: color .15s ease; }
.sup-tab:hover, :root[data-theme="dark"] .sup-tab:hover { background: none; box-shadow: none; color: var(--ink); }
.sup-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .22s var(--ease-out); }
.sup-tab.on, .sup-tab.on:hover, :root[data-theme="dark"] .sup-tab.on, :root[data-theme="dark"] .sup-tab.on:hover { background: none; box-shadow: none; color: var(--ink); font-weight: 500; }
.sup-tab.on::after { transform: scaleX(1); }
.sup-tab .sup-n, .sup-tab.on .sup-n { background: none; color: var(--muted); opacity: 1; padding: 0; min-width: 0; height: auto; font-size: 13px; font-weight: 400; }
.sup-tab .sup-n.red, .sup-tab.on .sup-n.red { background: var(--red); color: #fff; padding: 0 6px; min-width: 20px; height: 18px; border-radius: 9px; font-size: 12px; font-weight: 500; }
.sup-tab.hot, .sup-tab.hot.on { color: var(--red); }

/* purchases: photo, part, title, the order it is for, the route, the tracking */
.orx.sxr { grid-template-columns: 48px 150px minmax(200px, 1.6fr) minmax(110px, .7fr) 210px 150px; }
.sxr .sx-part { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.sxr .sx-part .sup-part { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sxr .sx-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; }
.sxr .sx-meta > * { flex: none; }
.sxr .sx-meta > .cond { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sxr .sx-for { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.sxr .sx-for a, .orx .ostage a, .orx .ostage button { position: relative; z-index: 1; }
.sxr .sx-track { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; min-width: 0; }
.sxr .sx-track .ico { color: var(--muted); flex: none; }
.sx-flag { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.sx-flag.red { color: var(--red); }
.ostage-main.act { color: var(--act-text); font-weight: 500; }
.ostage-main .opill { font-size: 13px; }
.sup-list { max-width: none; margin: 0 0 16px; }
.page:not(.viewing-order) > .sup-body { padding-top: 16px; }
.sup-body > .sup-alert, .sup-body > .empty-note, .sup-body > .sup-empty, .sup-body > .sup-table-wrap { max-width: none; }
@media (max-width: 1279px) {
  .orx.sxr { grid-template-columns: 48px 140px minmax(180px, 1fr) minmax(100px, .6fr) 200px; }
  .sxr .sx-track { display: none; }
}

/* customer returns: the item, the number, who returns it, the route, when it last moved */
.orx.rxr { grid-template-columns: 48px 120px minmax(220px, 1.6fr) minmax(150px, 1fr) 230px 96px; }
.rxr .rx-no { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rxr .rx-cust { min-width: 0; }
.rxr .rx-cust .t1, .rxr .rx-cust .sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rxr .rx-cust .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rma-list { max-width: none; margin: 16px 0; }
@media (max-width: 1179px) { .orx.rxr { grid-template-columns: 48px 110px minmax(200px, 1fr) 220px 90px; } .rxr .rx-cust { display: none; } }

/* product requests: one grouped list like the others; the kind keeps its colour only in the icon */
.req-list { display: block; background: var(--panel); border-radius: var(--r-group); overflow: hidden; }
.req-list > .req-card { border: 0; border-radius: 0; box-shadow: none; background: none; margin: 0; }
.req-list > .req-card::before { display: none; }
.req-list > .req-card + .req-card::before { display: block; content: ""; position: absolute; left: 82px; right: 0; top: 0; bottom: auto; width: auto; height: 0; border-radius: 0; border-top: 1px solid var(--line); background: none; }
.req-list > .req-card:hover { background: var(--panel-2); box-shadow: none; }
.req-list > .req-card.urgent { box-shadow: inset 3px 0 0 var(--red); }
.req-side { border: 0; border-radius: var(--r-group); }

/* tasks: whose tasks in the tabs, priorities as chips, the clocks for deadlines quiet at the side */
.task-body { padding-top: 0; }
.task-tools { padding: 12px 0; }
.pchips { display: flex; gap: 8px; flex-wrap: wrap; }
.pchip .pdot { width: 8px; height: 8px; }
.pchip b { font-variant-numeric: tabular-nums; }
.pchip .pover { color: var(--red); font-weight: 500; }
.pchip.on .pover { color: inherit; opacity: .8; }
.task-tools .tz-bar { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; font-size: 13px; color: var(--muted); gap: 8px; }
.task-tools .tz-bar > .ico { color: var(--muted); }
.task-tools .tzb-note { font-weight: 400; }
.task-tools .tzb-clock { background: none; padding: 0; }
.task-body > .empty-box { margin-top: 24px; background: var(--panel); border-radius: var(--r-group); }

/* team: who in the tabs; departments as chips like the other filters */
.vtab .c.warn { color: var(--red); font-weight: 500; }
.dept-row { margin: 0 0 14px; }
.dept-chip, :root[data-theme="dark"] .dept-chip { height: 32px; border: 0; background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-weight: 400; font-size: 13px; color: var(--ink-2); }
:root[data-theme="dark"] .dept-chip { background: var(--field); box-shadow: none; }
.dept-chip .dot { width: 8px; height: 8px; }
.dept-chip.on, :root[data-theme="dark"] .dept-chip.on { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.dept-chip.on small { color: inherit; opacity: .7; }
.page-body > .empty-box { background: var(--panel); border-radius: var(--r-group); }

/* files, disposal and rating: the same grouped lists — one white block, hairlines between rows */
.drive-list { max-width: none; border: 0; border-radius: var(--r-group); }
.drive-row { border-bottom: 0; position: relative; padding: 10px 16px; }
.drive-row + .drive-row::before { content: ""; position: absolute; left: 60px; right: 0; top: 0; border-top: 1px solid var(--line); }
.disp-list { display: block !important; background: var(--panel); border-radius: var(--r-group); overflow: hidden; max-width: none; }
.disp-list > .disp-card, .disp-list > .disp-card:hover { border: 0; border-radius: 0; background: none; box-shadow: none; position: relative; padding: 12px 16px; }
.disp-list > .disp-card:hover { background: var(--panel-2); }
.disp-list > .disp-card + .disp-card { box-shadow: inset 0 1px 0 var(--line); }
.disp-list > .disp-card::before { top: 16px; bottom: 16px; }
.disp-summary { display: flex !important; gap: 0 !important; background: var(--panel); border-radius: var(--r-group); overflow: hidden; max-width: none; }
.disp-summary > .disp-stat { flex: 1; border: 0; border-radius: 0; background: none; padding: 12px 16px; }
.disp-summary > .disp-stat + .disp-stat { box-shadow: inset 1px 0 0 var(--line); }
.rate-list { display: block; background: var(--panel); border-radius: var(--r-group); overflow: hidden; }
.rate-list > .rate-row { border: 0; border-radius: 0; background: none; }
.rate-list > .rate-row + .rate-row { box-shadow: inset 0 1px 0 var(--line); }
.rate-list > .rate-row.me { background: var(--brand-wash); }
.rate-list > .rate-row.open { box-shadow: inset 0 1px 0 var(--line); background: var(--panel-2); }

/* a purchase or a return opens on its own page, like an order: the header stays, the cards scroll under it */
.page.viewing-order > .sup-body, .page.viewing-order > .rma-body { padding: 0; }
.order-page.xpage { max-width: none; margin: 0; }
.xpage > .op-head { position: sticky; top: 0; z-index: 4; }
.xpage > .op-wrap { padding: 20px 24px 56px; }
.sup-dpart { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; padding: 2px 12px; border-radius: 12px 12px 12px 4px; background: var(--tag); white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.sup-dpart.none { background: none; padding: 0; color: var(--muted); font-style: italic; font-size: 18px; }
.op-title { font-size: 15px; color: var(--ink-2); margin-top: -6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-page .sup-nav-count { font-size: 13px; color: var(--muted); padding: 0 4px; }
.sup-page .onav { display: inline-flex; align-items: center; gap: 2px; }
.sup-page .onav-btn { width: 36px; height: 36px; padding: 0; border-radius: 999px; background: transparent; border: 0; box-shadow: none; }
.sup-page .onav-btn:hover:not(:disabled) { background: var(--field); }
.sup-page .onav-btn:disabled { opacity: .35; }
.op-row .omore { width: 40px; padding: 0; justify-content: center; }
.op-wrap .ogrid { grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.op-wrap .ocol { gap: 12px; align-content: start; }
.ocard.flash { animation: card-flash 1.2s ease; }
@keyframes card-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--brand); } 100% { box-shadow: 0 0 0 2px transparent; } }
@media (max-width: 1100px) {
  .sup-page .ogrid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .sup-page .ogrid > .ocol { display: contents; }
  .sup-page .s-ret { order: 0; } .sup-page .s-ph { order: 1; } .sup-page .s-part, .sup-page .s-for { order: 2; } .sup-page .s-acc, .sup-page .s-auth { order: 3; }
  .sup-page .s-ship { order: 4; } .sup-page .s-info { order: 5; } .sup-page .s-same { order: 6; } .sup-page .s-det { order: 7; } .sup-page .s-tl { order: 8; }
}

/* phone: rows of two lines; the order page fills the screen */
@media (max-width: 760px) {
  .page-head .orders-search { flex: 1 1 100%; min-width: 0; }
  .search .kbd { display: none; }
  .vtabs { padding: 0 8px; }
  .otools { padding: 10px 12px; }
  .olist-scroll { padding: 0 8px 100px; }
  .orx-head { display: none; }
  .orx { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "pic num wait" "pic item item" "pic stage sum"; gap: 4px 12px; padding: 12px; align-items: start; }
  .orx + .orx::before { left: 12px; }
  .orx .cb, .orx .c-cust, .orx .c-ship { display: none; }
  .orx .othumb { grid-area: pic; width: 56px; height: 56px; border-radius: 12px; }
  .orx .onum { grid-area: num; display: flex; align-items: center; gap: 8px; }
  .orx .onum .m-only { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .orx .oitem-cell { grid-area: item; }
  .orx .oitem-cell .sub { display: none; }
  .orx .ostage { grid-area: stage; }
  .orx .c-sum { grid-area: sum; display: block; font-size: 13px; color: var(--ink-2); align-self: center; }
  .orx .owait { grid-area: wait; align-self: center; }
  .m-only { display: inline-grid; }
  .d-only { display: none; }
  .op-head { padding: max(8px, env(safe-area-inset-top)) 12px 12px; gap: 10px; }
  .op-row { flex-wrap: wrap; row-gap: 4px; }
  .oview .op-row .onav, .op-back .lbl { display: none; }
  .sup-page .sup-nav .onav-btn { display: none; }
  .op-back { margin-left: -6px; padding: 0 6px; }
  .op-when { order: 5; width: 100%; font-size: 12.5px; }
  .op-row > .grow { display: none; }
  .op-flow { gap: 12px; }
  .op-flow .rbig { flex-basis: 100%; }
  .op-acts { width: 100%; margin-left: 0; }
  .op-acts .op-next { flex: 1 1 100%; }
  .op-body { padding: 12px 8px calc(96px + env(safe-area-inset-bottom)); }
  .rbig .stop span { font-size: 11.5px; }
  .op-acts .btn { flex: 1 1 auto; }
  .op-acts .omore { flex: none; margin-left: 0; }
  .op-acts .omore .lbl { display: none; }
  .bulk { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .modal-back:has(.modal.ask) { align-items: end; padding: 0; }
  .modal.ask { width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); animation: sheet-in .32s var(--ease-drawer) both; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .tour-invite { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .op-row .help-btn { display: none; }
  .sup-tabs { padding: 0 8px; }
  .orx.sxr { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "pic part for" "pic item item" "pic stage stage"; }
  .sxr > .othumb { grid-area: pic; }
  .sxr .sx-part { grid-area: part; flex-direction: row; align-items: center; gap: 8px; }
  .sxr .sx-for { grid-area: for; justify-content: flex-end; }
  .sxr .oitem-cell { grid-area: item; }
  .sxr .ostage { grid-area: stage; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .sxr .sx-track, .sxr .sx-none { display: none; }
  .xpage > .op-wrap { padding: 12px 8px calc(96px + env(safe-area-inset-bottom)); }
  .orx.rxr { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "pic no wait" "pic item item" "pic stage stage"; }
  .rxr > .othumb { grid-area: pic; }
  .rxr .rx-no { grid-area: no; flex-direction: row; align-items: center; gap: 8px; }
  .rxr .rx-cust { display: none; }
  .rxr .ostage { grid-area: stage; }
  .req-list > .req-card + .req-card::before { left: 12px; }
  .task-tools .tzb-note, .task-tools .tzb-clock small { display: none; }
  .page-head .seg { flex-wrap: nowrap; flex: none; }
  .page-head .seg button { white-space: nowrap; }
  .page-head > .push { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
  .page-head .dept-select { min-width: 0; flex: 1 1 0; width: auto; max-width: none; }
  .dept-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 14px; }
  .dept-row::-webkit-scrollbar { display: none; }
  .dept-row > * { flex: none; }
  .pchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pchips > * { flex: none; }
  .sup-dpart { font-size: 18px; max-width: 60vw; }
  .op-title { margin-top: -2px; font-size: 14px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .bulk, .vtab::after, .sup-tab::after, .ocard.flash, .modal-back, .modal, .ask-ic::after, .tip, .tour, .tour-hole, .tour-card, .tour-dots i, .tour-invite, .route i, .route b, .stop i, .stop::before, .sk, .order-page.enter .op-wrap, .order-page.enter .op-head > *, .op-body.swipe-left, .op-body.swipe-right { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------- 2.8.0: the parcel coming back, the decision, the papers, the warehouse sheet ---------- */
.rma-track .rma-tno { display: grid; gap: 2px; }
.rma-track .rma-tno a, .rma-track .rma-tno b { font: 600 15px/1.3 "IBM Plex Mono", Consolas, monospace; letter-spacing: .02em; word-break: break-all; color: var(--ink); }
.rma-track .rma-tno a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.rma-tstate { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--field); font-size: 13px; font-weight: 500; }
.rma-tstate.ok { background: var(--green-soft); color: var(--green); }
.rma-tstate.bad { background: var(--red-soft); color: var(--red); }
.rma-tstate.muted { background: transparent; padding: 0; color: var(--muted); font-weight: 400; }
.rma-track.back { box-shadow: inset 0 0 0 1.5px var(--brand); }
.rma-track-btns, .rma-prints, .sup-done-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rma-prints { padding-top: 12px; border-top: 1px solid var(--line); }
.rma-prints .btn { flex: 1 1 auto; justify-content: center; }
.rma-q { display: grid; gap: 8px; }
.rma-q > b { font-size: 14px; }
.sup-reason.pick.on { background: var(--act); color: var(--act-ink); }
.rma-big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rma-big { display: grid; justify-items: start; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--panel);
  box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); transition: box-shadow .15s var(--ease-out), background-color .15s var(--ease-out); }
.rma-big svg { color: var(--ink-2); margin-bottom: 4px; }
.rma-big b { font-size: 16px; font-weight: 600; }
.rma-big small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.rma-big:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rma-big.on { background: var(--brand-wash); box-shadow: inset 0 0 0 2px var(--act); }
.rma-big.on svg { color: var(--act); }
.rma-more > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; padding: 2px 0; }
.rma-more[open] > summary { margin-bottom: 8px; }
.rma-extra:empty { display: none; }
.rma-sum .rma-sum-hint { font-size: 13px; font-weight: 400; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.rma-sum .rma-sum-hint svg { flex: none; margin-top: 2px; }
.cs-stock { display: grid; gap: 14px; min-width: 0; }
.cs-stock > * { min-width: 0; }
.cs-stock .cs-section { margin-top: 6px; }
.stock-setup { display: grid; gap: 12px; min-width: 0; }
.stock-code { display: grid; gap: 6px; min-width: 0; }
.stock-code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stock-code pre { margin: 0; max-width: 100%; max-height: 190px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--field); font: 500 11.5px/1.5 "IBM Plex Mono", Consolas, monospace; color: var(--ink-2); white-space: pre; }
.stock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; }
.stock-col { display: grid; gap: 1px; }
.stock-col b { font-weight: 500; }
.stock-col.none b { color: var(--muted); font-weight: 400; }
.stock-relink > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.stock-relink[open] > summary { margin-bottom: 10px; }
@media (max-width: 640px) {
  .rma-big2, .stock-cols { grid-template-columns: 1fr; }
}

/* ---------- 2.8.1: connections — the list and the step-by-step windows ---------- */
.conn-list { display: grid; gap: 8px; }
.conn-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.conn-row b { font-weight: 600; font-size: 14.5px; }
.conn-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--field); color: var(--ink-2); }
.conn-row.on .conn-ic { background: var(--green-soft); color: var(--green); }
.news-hint { margin: 0 0 12px; }
.rma-access { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--field); }
.rma-access b { font-weight: 600; font-size: 14px; }
.rma-access p { margin: 3px 0 0; line-height: 1.45; }
.rma-access-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); }
.rma-access .btn { grid-column: 2; justify-self: start; margin-top: 10px; }
.news-row { grid-template-columns: auto 1fr auto; align-items: start; }
.news-row p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
.news-row .btn { align-self: center; }
.conn-steps { justify-self: start; }
.wiz { display: grid; gap: 12px; min-width: 0; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wiz-dots { display: flex; gap: 6px; }
.wiz-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-2); }
.wiz-dots i.d { background: var(--green); }
.wiz-dots i.n { background: var(--act); }
.wiz-title { margin: 2px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.wiz-lines { display: grid; gap: 6px; }
.wiz-lines p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.wiz-link { justify-self: start; }
.wiz-copy { display: grid; gap: 6px; min-width: 0; }
.wiz-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wiz-copy code, .wiz-copy pre { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--field); font: 500 12.5px/1.45 "IBM Plex Mono", Consolas, monospace; color: var(--ink); word-break: break-all; }
.wiz-copy pre { max-height: 180px; overflow: auto; white-space: pre; word-break: normal; font-size: 11.5px; color: var(--ink-2); }
.wiz-done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 0 8px; }
.wiz-done h3 { margin: 4px 0 0; font-size: 19px; }
.wiz-done p { margin: 0; max-width: 46ch; }
.wiz-done-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
@media (max-width: 640px) {
  .conn-row { grid-template-columns: auto 1fr; }
  .conn-row .opill { justify-self: start; }
  .conn-row .btn { grid-column: 1 / -1; justify-content: center; }
}
