/* LEVELZERO.GG admin — same visual language as the storefront (chunky pressable
   buttons and cards, travel blue, navy, brand green for success, Archivo, no mascot),
   tuned for an operator: more on screen, calmer motion. */

@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #082236;
  --muted: #5b6b80;
  --soft: #f4f7fb;
  --line: #dde5ee;
  --edge: #c7d3e0;
  --blue: #0a6fe8;
  --blue-deep: #0854b3;
  --blue-wash: #e8f2ff;
  --blue-edge: #7db6ff;
  --green: #53fc18;
  --green-deep: #2fb800;
  --green-text: #1b7a00;
  --green-wash: #ecffe2;
  --amber: #e39b00;
  --amber-text: #8a5a00;
  --amber-wash: #fff5dc;
  --red: #d93025;
  --red-text: #b3261e;
  --red-wash: #ffe9e7;
  --r: 16px;
  --spring: cubic-bezier(.2, 1.5, .4, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 400 15px/1.5 Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid rgba(10, 111, 232, .45); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.pos { color: var(--green-text); }
.neg { color: var(--red-text); }

/* ---------- Shell: sidebar on desktop, tab bar on phones ---------- */

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 22px 14px 16px; border-right: 2px solid var(--line); background: #fff; }
.side .logo { display: block; padding: 4px 10px 22px; }
.side .logo img, .mtop img { display: block; height: 16px; width: auto; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 2px solid transparent; border-radius: 14px; color: var(--muted); font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { border-color: var(--blue-edge); background: var(--blue-wash); color: var(--blue-deep); }
.nav svg { flex: none; width: 22px; height: 22px; }
.nav .count { display: grid; place-items: center; min-width: 24px; height: 24px; margin-left: auto; padding: 0 7px; border-radius: 12px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.side .foot { margin-top: auto; padding: 0 10px; color: var(--muted); font-size: 13px; }
.mtop { display: none; }
.main { width: 100%; max-width: 1060px; padding: 30px 34px 72px; }

@media (max-width: 899px) {
  .shell { display: block; }
  .side { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 10; height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); border-right: 0; }
  .side .logo, .side .foot { display: none; }
  .nav { grid-template-columns: repeat(4, 1fr); }
  .nav a { position: relative; flex-direction: column; gap: 2px; padding: 7px 2px; font-size: 12px; }
  .nav .count { position: absolute; top: 2px; left: 54%; margin: 0; min-width: 20px; height: 20px; font-size: 12px; }
  .mtop { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; color: var(--muted); font-size: 13px; }
  .main { padding: 4px 16px 104px; }
}

.linkish { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- Type ---------- */

h1 { margin: 0; font-size: clamp(26px, 5vw, 32px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h2 { margin: 30px 0 12px; font-size: 18px; line-height: 1.2; font-weight: 700; }
.h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.h-row h2 { margin: 0; }
.h-row a, .h-row span { font-size: 14px; font-weight: 700; }
.fine { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Building blocks ---------- */

.box { padding: 18px; border: 2px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 3px 0 var(--line); }
.box--flush { padding: 0; overflow: hidden; }
.stack { display: grid; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 3px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--blue); box-shadow: 0 3px 0 var(--blue-deep); color: #fff; font: 700 14px/1 Archivo, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .07s, box-shadow .07s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--blue-deep); }
.btn:disabled { background: #e3e9f0; box-shadow: none; color: #9aa7b6; cursor: not-allowed; transform: none; filter: none; }
.btn--ghost { background: #fff; box-shadow: 0 3px 0 var(--line), inset 0 0 0 2px var(--line); color: var(--blue); }
.btn--ghost:active { box-shadow: 0 0 0 var(--line), inset 0 0 0 2px var(--line); }
.btn--danger { background: #fff; box-shadow: 0 3px 0 #f3c4c0, inset 0 0 0 2px #f3c4c0; color: var(--red-text); }
.btn--danger:active { box-shadow: 0 0 0 #f3c4c0, inset 0 0 0 2px #f3c4c0; }
.btn--small { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: 12px; }

.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--edge); }
.dot.ok { background: var(--green); box-shadow: inset 0 0 0 2px var(--green-deep); }
.dot.run { background: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; } }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }

/* Chunky switch */
.sw { position: relative; flex: none; width: 56px; height: 32px; padding: 0; border: 0; border-radius: 16px; background: #cdd7e2; box-shadow: inset 0 -3px 0 rgba(8, 34, 54, .12); cursor: pointer; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(8, 34, 54, .18); transition: transform .25s var(--spring); }
.sw[aria-checked='true'] { background: var(--blue); }
.sw[aria-checked='true']::after { transform: translateX(24px); }

.input { width: 100%; height: 46px; padding: 0 14px; border: 2px solid var(--line); border-radius: 13px; background: #fff; color: inherit; font: inherit; }
.input:focus { outline: none; border-color: var(--blue-edge); }

/* Segmented filter */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--line); color: var(--muted); font: 700 14px/1 Archivo, system-ui, sans-serif; cursor: pointer; }
.seg button:active { transform: translateY(2px); box-shadow: none; }
.seg button[aria-pressed='true'] { border-color: var(--blue-edge); background: var(--blue-wash); box-shadow: 0 2px 0 var(--blue-edge); color: var(--blue-deep); }
.seg b { margin-left: 6px; font-weight: 700; opacity: .7; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.tools .input { flex: 1; min-width: 180px; max-width: 320px; }

/* ---------- Today ---------- */

.pilot { display: flex; align-items: center; gap: 16px; }
.pilot .txt { flex: 1; min-width: 0; }
.pilot strong { display: block; font-size: 17px; }
.pilot .txt span { color: var(--muted); }
.pilot.off { border-color: #f1d08a; background: var(--amber-wash); box-shadow: 0 3px 0 #f1d08a; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 899px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 16px; }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat b { display: block; margin-top: 4px; font-size: 27px; line-height: 1.1; font-weight: 700; }

.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; transition: opacity .3s, transform .3s; }
.task.gone { opacity: 0; transform: translateX(24px); }
.task .mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--red-wash); color: var(--red-text); font-size: 22px; font-weight: 700; }
.task.warn .mark { background: var(--amber-wash); color: var(--amber-text); }
.task strong { display: block; font-size: 16px; line-height: 1.3; }
.task .meta { display: block; color: var(--muted); font-size: 13px; }
.task .why { display: block; margin-top: 4px; font-size: 14px; }
.task .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 640px) { .task { grid-template-columns: auto minmax(0, 1fr); } .task .acts { grid-column: 1 / -1; justify-content: flex-start; } }

.clear { display: flex; align-items: center; gap: 14px; border-color: #b9ef9b; background: var(--green-wash); box-shadow: 0 3px 0 #b9ef9b; animation: pop .4s var(--spring); }
.clear .mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green); box-shadow: 0 3px 0 var(--green-deep); }
.clear .mark svg { width: 24px; height: 24px; }
.clear strong { display: block; font-size: 16px; }
@keyframes pop { 0% { transform: scale(.96); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; }
@media (max-width: 899px) { .two { grid-template-columns: minmax(0, 1fr); } }

.wallet + .wallet { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--soft); }
.wallet .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wallet strong { font-size: 16px; }
.wallet b { font-size: 18px; }
.meter { height: 12px; margin: 10px 0 6px; border-radius: 6px; background: #e7ecf2; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--blue); transition: width .8s var(--spring); }
.meter.low i { background: var(--amber); }

.feed { margin: 0; padding: 0; list-style: none; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 2px solid var(--soft); }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed .what { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feed time { flex: none; color: var(--muted); font-size: 13px; }

/* ---------- Lists (orders, products) ---------- */

.list-head, .row { display: grid; gap: 12px; align-items: center; padding: 12px 18px; }
.list-head { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.row { border-top: 2px solid var(--soft); color: inherit; text-decoration: none; }
a.row:hover, .row.tap:hover { background: var(--soft); }
.row .id { font-weight: 700; }
.row small { display: block; color: var(--muted); font-size: 13px; }
.right { text-align: right; }

.orders .list-head, .orders .row { grid-template-columns: 1.1fr 1.8fr 1.3fr .8fr .8fr; }
@media (max-width: 899px) {
  .list-head { display: none; }
  .orders .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'id state' 'plan profit'; gap: 2px 12px; }
  .orders .c-id { grid-area: id; } .orders .c-plan { grid-area: plan; } .orders .c-state { grid-area: state; } .orders .c-profit { grid-area: profit; } .orders .c-age { display: none; }
}
.empty { padding: 28px 18px; color: var(--muted); text-align: center; }

/* ---------- Order detail ---------- */

.back { display: inline-block; margin-bottom: 12px; font-weight: 700; text-decoration: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 899px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.box h2 { margin: 0 0 12px; font-size: 16px; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 2px solid var(--soft); }
.kv div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kv .sum dt, .kv .sum dd { color: var(--ink); font-size: 17px; font-weight: 700; }

.line { margin: 0; padding: 0; list-style: none; }
.line li { position: relative; padding: 0 0 18px 30px; }
.line li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--edge); }
.line li::after { content: ''; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.line li:last-child { padding-bottom: 0; }
.line li:last-child::after { display: none; }
.line .done::before { background: var(--green); box-shadow: inset 0 0 0 3px var(--green-deep); }
.line .now::before { box-shadow: inset 0 0 0 3px var(--blue); }
.line .bad::before { background: var(--red-wash); box-shadow: inset 0 0 0 3px var(--red); }
.line .warn::before { background: var(--amber-wash); box-shadow: inset 0 0 0 3px var(--amber); }
.line strong { display: block; line-height: 1.3; }
.line li > span:not(.tile) { color: var(--muted); font-size: 13px; }
.line .todo strong { color: var(--muted); font-weight: 500; }

.alert { margin-bottom: 16px; border-color: #f3c4c0; background: var(--red-wash); box-shadow: 0 3px 0 #f3c4c0; }
.alert.warn { border-color: #f1d08a; background: var(--amber-wash); box-shadow: 0 3px 0 #f1d08a; }
.alert strong { display: block; font-size: 17px; }
.alert p { margin: 4px 0 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 30; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; transform: translateX(-50%); animation: toast .3s var(--spring); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }
.confetti { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }

/* ================= v2: icons everywhere, tidier structure ================= */

.ic { flex: none; width: 20px; height: 20px; }
.flag { display: block; flex: none; width: 30px; height: auto; border-radius: 3px; }
.detail-top .flag { width: 44px; }
.tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-wash); color: var(--blue); }
.tile.big { width: 52px; height: 52px; border-radius: 16px; }
.tile.big .ic { width: 26px; height: 26px; }
.tile.small { width: 32px; height: 32px; border-radius: 10px; }
.tile.small .ic { width: 18px; height: 18px; }
.tile.ok { background: var(--green-wash); color: var(--green-text); }
.tile.warn { background: var(--amber-wash); color: var(--amber-text); }
.tile.bad { background: var(--red-wash); color: var(--red-text); }
.tile.off { background: #eef1f5; color: var(--muted); }

/* Page, section and card titles: always icon + words */
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-bottom: 22px; }
.ph-text { flex: 1; min-width: 200px; }
.ph p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.sh { display: flex; align-items: center; gap: 10px; margin: 32px 0 12px; scroll-margin-top: 20px; }
.sh .ic { color: var(--blue); }
.sh h2 { margin: 0; }
.sh-right { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 700; }
.sh-right a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.sh-right .ic { width: 16px; height: 16px; color: inherit; }
.bh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bh .ic { color: var(--blue); }
.bh h2 { margin: 0; font-size: 16px; }

.facts { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.fact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fact .ic { width: 15px; height: 15px; }
.fact .flag { width: 19px; height: auto; border-radius: 2px; }

/* Sidebar groups and icons */
.nav-group { margin: 16px 12px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-group:first-child { margin-top: 0; }
.nav .ic { width: 22px; height: 22px; }
.side .foot { display: grid; gap: 6px; }
.linkish { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.linkish .ic { width: 14px; height: 14px; }
@media (max-width: 899px) { .nav-group, .side .foot { display: none; } }

.btn .ic { width: 18px; height: 18px; margin-right: 7px; }
.btn--small .ic { width: 15px; height: 15px; margin-right: 6px; }
.iconbtn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-bottom: 3px; border-radius: 11px; background: #fff; box-shadow: 0 3px 0 var(--line), inset 0 0 0 2px var(--line); color: var(--blue); }
.iconbtn:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line); }
.iconbtn .ic { width: 18px; height: 18px; }

.seg button { display: inline-flex; align-items: center; gap: 7px; }
.seg .ic { width: 16px; height: 16px; }
.search { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.search .ic { position: absolute; top: 50%; left: 13px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search .input { padding-left: 40px; }
.toast { display: flex; align-items: center; gap: 10px; }
.toast .ic { color: var(--green); }

/* Today */
.pilot { gap: 12px; padding: 10px 14px; border-radius: 16px; }
.pilot strong { font-size: 15px; line-height: 1.2; }
.pilot .txt span { font-size: 13px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.stat small { font-size: 13px; }
.stat b { margin-top: 1px; font-size: 24px; }
.task { padding: 14px 16px; }
.task .why { margin-top: 6px; }
.task .acts { align-items: center; }
.clear .tile { border-radius: 50%; background: var(--green); color: var(--ink); box-shadow: 0 3px 0 var(--green-deep); }
.wallet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; }
.wallet .meter, .wallet .muted { grid-column: 2; }
.wallet .tile { grid-row: span 3; align-self: start; }
.feed li { gap: 12px; padding: 9px 0; }
.feed .what b { font-weight: 700; }
.feed .what a { color: inherit; text-decoration: none; }
.feed .what a:hover { color: var(--blue); }
.feed .state { font-size: 13px; }
@media (max-width: 640px) { .feed .state { display: none; } }
@media (max-width: 640px) {
  .stat { gap: 10px; padding: 12px; }
  .stat .tile { width: 32px; height: 32px; border-radius: 10px; }
  .stat .tile .ic { width: 18px; height: 18px; }
  .stat b { font-size: 20px; }
  .stat small { white-space: nowrap; }
  .sh-right { font-size: 13px; }
}

/* Lists: one line per cell, cut with an ellipsis rather than wrapping */
.cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell > div { min-width: 0; }
.cell .l1, .cell small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell .l1 { font-weight: 700; }
.cell .flag { width: 30px; height: auto; flex: none; border-radius: 3px; }
.orders .list-head, .orders .row { grid-template-columns: 1.2fr 1.7fr 1.2fr .8fr .8fr 20px; }
.orders .go { color: var(--edge); }
a.row:hover .go { color: var(--blue); }
@media (max-width: 899px) {
  .orders .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'id state' 'plan profit'; gap: 8px 12px; }
  .orders .go, .orders .c-plan .flag { display: none; }
}

/* Products: a price grid per plan family, with a detail panel */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend .ic { width: 15px; height: 15px; }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.prod-side { position: sticky; top: 24px; }
@media (max-width: 1099px) { .prod { grid-template-columns: minmax(0, 1fr); } .prod-side { position: static; } }
.box-note { margin: 0 0 8px; font-size: 14px; }
.matrix-wrap { overflow-x: auto; margin: 0 -6px; }
.matrix { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 6px; }
.matrix th { padding: 0 0 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.matrix th.rowh { position: sticky; left: 0; z-index: 1; padding-right: 10px; background: #fff; color: var(--ink); font-size: 15px; letter-spacing: 0; text-align: left; text-transform: none; white-space: nowrap; }
.matrix th.rowh small { color: var(--muted); font-size: 12px; font-weight: 500; }
.matrix td { padding: 0; }
.pcell { display: block; width: 100%; margin-bottom: 2px; padding: 8px 4px 7px; border: 2px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--line); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.pcell:active { transform: translateY(2px); box-shadow: none; }
.pcell b { display: block; font-size: 15px; line-height: 1.25; }
.pcell > span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.pcell .dot { width: 8px; height: 8px; }
.pcell .ic { width: 12px; height: 12px; }
.pcell.low { border-color: #f1d08a; background: var(--amber-wash); box-shadow: 0 2px 0 #f1d08a; }
.pcell.loss { border-color: #f3c4c0; background: var(--red-wash); box-shadow: 0 2px 0 #f3c4c0; }
.pcell.paused { border-color: var(--line); background: #f2f4f7; box-shadow: 0 2px 0 var(--line); color: var(--muted); }
.pcell[aria-pressed='true'] { border-color: var(--blue); box-shadow: 0 2px 0 var(--blue), 0 0 0 3px rgba(10, 111, 232, .18); }
.nocell { color: var(--edge); text-align: center; }
.detail-top { display: flex; align-items: center; gap: 12px; }
.detail-top strong { display: block; font-size: 17px; line-height: 1.25; }
.detail-top small { color: var(--muted); }
.try { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 6px; }
.try b { font-size: 22px; }
.try .btn { min-width: 44px; padding: 0 10px; }
.try .btn .ic { margin: 0; }
.result { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding: 12px 14px; border-radius: 13px; background: var(--soft); }
.result b { font-size: 22px; }
.onsale { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--soft); font-weight: 700; }
.hint { display: flex; align-items: center; gap: 12px; color: var(--muted); }

/* Order page */
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 700; text-decoration: none; }
.crumb .ic { width: 18px; height: 18px; }
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; }
.alert .tile { grid-row: span 3; background: #fff; }
.alert p { margin: 3px 0 12px; }
.line li { min-height: 46px; padding: 4px 0 16px 46px; }
.line li::before { display: none; }
.line li::after { top: 36px; left: 15px; }
.line .tile { position: absolute; top: 0; left: 0; }
.kv dt { display: inline-flex; align-items: center; gap: 8px; }
.kv dt .ic { width: 16px; height: 16px; }

/* Connections: one section per kind of connection */
.ready { display: flex; align-items: center; gap: 16px; }
.ready .txt { flex: 1; min-width: 0; }
.ready strong { display: block; font-size: 17px; }
.ready .meter { margin: 8px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--line); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.jump a:active { transform: translateY(2px); box-shadow: none; }
.jump .ic { width: 18px; height: 18px; color: var(--blue); }
.jump b { color: var(--muted); font-weight: 700; }
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 899px) { .conn-grid { grid-template-columns: minmax(0, 1fr); } }
.conn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-content: start; }
.conn .tile { grid-row: span 2; }
.conn .name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.conn .state { font-size: 14px; }
.conn p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); }
.conn .figure { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.conn .figure b { font-size: 20px; }
.conn .next { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.conn .next .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
