/* Casa Lumare — noite de serviço.
   A moldura é o céu da casa. O trabalho é papel de farinha.
   O fogo só aparece no que pede clique. */

:root {
  --font-display: "Instrument Serif", "Iowan Old Style", Palatino, serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --night: #12141c;
  --night-2: #1b2130;
  --night-line: #2c3344;
  --moon: #f3ead7;
  --moon-2: #e7dcc4;
  --flame: #c43212;
  --flame-2: #9d270e;
  --flour: #f3efe6;
  --ink: #1a1714;
  --muted: #5e584f;
  --faint: #8a8176;
  --bg: var(--flour);
  --bg-2: #e7e0d4;
  --surface: #fffdf8;
  --surface-2: #f7f1e6;
  --line: #e4dccf;
  --line-strong: #d3c8b6;
  --accent: var(--flame);
  --accent-hover: var(--flame-2);
  --accent-soft: #fde8e1;
  --accent-ink: #fffaf6;
  --gold: #c9893a;
  --gold-soft: #f6e7c8;
  --ok: #1c6b45;
  --ok-soft: #e5f4eb;
  --warn: #8a5a10;
  --warn-soft: #fbf0d6;
  --bad: #9b2c2c;
  --bad-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 16px 40px rgba(18, 20, 28, 0.06);
  --shadow-lg: 0 24px 70px rgba(8, 10, 16, 0.35);
  --ring: 0 0 0 3px rgba(196, 50, 18, 0.35);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --top-h: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  background: var(--flour);
}
button, input, select, textarea { font-family: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: #f6c7b8; color: var(--ink); }
h1, h2, .h-sec, .kds-ticket header b, .metrics b, .money-figures b, .rider-card b, .fin-sale header b, .kpi b, .ops-time, .ops-id {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.brand-copy strong { font-family: "Instrument Serif", Palatino, serif; font-weight: 400; font-size: 1.2rem; letter-spacing: -0.02em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 80;
  background: var(--moon); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
.top :focus-visible, .jobs :focus-visible { outline-color: var(--moon); }

.top {
  position: sticky; top: 0; z-index: 25;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--top-h); padding: 0 22px;
  background: #0e1016; color: var(--moon);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; justify-self: start; }
.logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.brand-copy strong {
  display: block; font-family: var(--font-body); font-weight: 560; font-size: 14px; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap;
}
.brand-copy span { display: block; margin-top: 2px; color: #9c958b; font-size: 11px; letter-spacing: 0.01em; }
.omnibox, .pulse { font-family: var(--font-body); }
.omnibox {
  display: inline-flex; align-items: center; gap: 8px;
  width: min(340px, 36vw); height: 34px; padding: 0 8px 0 12px;
  border-radius: 9px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: #a39c92; font-size: 13px; cursor: pointer;
}
.omnibox svg { width: 15px; height: 15px; flex: 0 0 auto; }
.omnibox kbd {
  margin-left: auto; font-family: var(--font-body); font-size: 10px; letter-spacing: 0.04em;
  color: #8a847b; border: 1px solid rgba(255,255,255,0.1); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px;
}
.omnibox:hover { background: rgba(255,255,255,0.07); color: var(--moon); }
.pulse {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08); background: transparent; color: #e6dfd3;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.pulse:hover { background: rgba(255,255,255,0.05); }
.pulse i { width: 7px; height: 7px; border-radius: 50%; background: #6f7b6e; }
.pulse i.hot { background: #ff5a36; box-shadow: 0 0 0 4px rgba(255,90,54,0.16); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.dock {
  justify-self: center;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.dock .nav {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0;
  height: 42px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: #b7b0a6; cursor: pointer;
}
.dock .nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
.dock .nav .dock-label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--font-body); font-size: 13px; font-weight: 560;
}
.dock .nav.is-job { background: var(--moon); color: #14161c; gap: 8px; padding: 0 14px 0 12px; }
.dock .nav.is-job .dock-label { max-width: 92px; opacity: 1; }
.dock .nav:hover:not(.is-job) { color: white; background: rgba(255,255,255,0.06); }
.dock .nav:active { transform: scale(0.96); }
.kds-badge[hidden], .kds-badge:empty { display: none !important; }
.kds-badge {
  display: none; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--flame); color: white; font-family: var(--font-body); font-size: 10px; font-weight: 650;
  align-items: center; justify-content: center;
}
.dock .nav:not(.is-job) .kds-badge { position: absolute; top: 4px; right: 2px; }

.casa-rail {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 22px 0 0; padding: 0; background: transparent; border: 0;
}
.casa-rail[hidden] { display: none; }
.rail-label { display: none; }
.casa-rail .nav {
  min-height: 0; padding: 0 0 5px; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  background: transparent; color: var(--muted); font-family: var(--font-body);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
}
.casa-rail .nav:hover { color: var(--ink); }
.casa-rail .nav.on { background: transparent; color: var(--ink); border-bottom-color: var(--flame); font-weight: 600; }
body.is-service .casa-rail .nav { color: #b7b0a6; }
body.is-service .casa-rail .nav.on { color: var(--moon); }

.main { width: min(1120px, 100%); margin: 0 auto; padding: 48px 32px 64px; }
body.is-service { background: var(--night); color: var(--moon); }
body.is-service .main { width: min(1440px, 100%); }
.page { display: none; }
.page.on { display: block; }
.head { margin-bottom: 18px; }
.eyebrow, .agora-when {
  margin: 0 0 10px; color: var(--flame); font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.head h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15; }
.head p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
body.is-service .head p, body.is-service .agora-lead { color: #d5cbbd; }
.h-sec, .card > h1 { margin: 0 0 12px; font-size: 1.15rem; letter-spacing: -0.02em; }
.int-head .h-sec { margin: 0; }

.agora-when { margin-bottom: 10px; }
#agoraRoot h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15; max-width: none; }
.ops-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.ops-head time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.kpi { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kpi-cell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 72px; }
.kpi-cell span { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.kpi-cell b { font-size: 1.35rem; letter-spacing: -0.03em; }
.kpi-cell.hot { box-shadow: inset 3px 0 0 #c9893a; }
.kpi-cell.ready { box-shadow: inset 3px 0 0 var(--ok); }
.kpi-cell.late { box-shadow: inset 3px 0 0 var(--bad); background: #fff6f5; }
.ops-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr); gap: 12px; align-items: start; }
.ops-board { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 4px; }
.ops-board > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px 10px; }
.ops-board h2 { margin: 0; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ops-row { display: grid; grid-template-columns: 76px 88px minmax(0, 1fr) 72px auto auto; gap: 8px; align-items: center; min-height: 58px; padding: 8px; border-radius: 10px; }
.ops-row + .ops-row { margin-top: 4px; }
.ops-row.pace-late { background: #fdecea; }
.ops-row.pace-warn, .ops-row.pace-queue { background: #fff6e4; }
.ops-row.pace-ok { background: #f3faf6; }
.ops-row.pace-ready { background: #e8f6ee; }
.ops-id { font-size: 1.05rem; }
.ops-main { min-width: 0; }
.ops-main strong, .ops-main span { display: block; }
.ops-main span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-time { font-size: 1.05rem; text-align: right; }
.ops-act { min-height: 44px; min-width: 104px; margin: 0; padding: 0 14px; }
.ops-side { display: flex; flex-direction: column; gap: 12px; }
.ops-alert, .ops-count, .ops-ok { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px; font-size: 14px; }
.ops-alert b, .ops-count { font-variant-numeric: tabular-nums; }
.ops-alert.zero b { color: var(--bad); }
.ops-alert.baixo b { color: var(--warn); }
.ops-ok, .ops-count { color: var(--muted); margin: 0; }
.seal { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 750; letter-spacing: 0.01em; }
.seal-ifood { background: #ea1d2c; color: white; }
.seal-keeta { background: #111; color: #ffe14a; }
.seal-food99 { background: #ffcf00; color: #1a1714; }
.seal-balcao { background: #ece7de; color: #1a1714; }
.ops-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.ops-tools p { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ops-filter { width: min(280px, 100%); margin: 0; min-height: 42px; }
.tag.queue { background: var(--warn-soft); color: var(--warn); }
.agora-actions { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; margin-top: 36px; }
.agora-go {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px;
  min-height: 156px; padding: 18px 18px 16px; text-align: left;
  border: 1px solid rgba(26, 23, 20, 0.08); border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 28px rgba(18, 20, 28, 0.04);
  cursor: pointer;
}
.agora-go span { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.agora-go strong { font-size: clamp(1.7rem, 2vw, 2.15rem); letter-spacing: -0.03em; line-height: 1; }
.agora-go.hot { background: var(--flame); border-color: transparent; color: white; box-shadow: 0 16px 36px rgba(196, 50, 18, 0.22); }
.agora-go.hot span { color: rgba(255,255,255,0.72); }
.agora-go:hover { transform: translateY(-2px); }
.agora-go:active { transform: translateY(0) scale(0.985); }
.kds-toolbar { display: flex; align-items: center; gap: 10px; position: relative; overflow: visible; }
.kds-more { margin: 0 0 0 auto; }
.kds-pop {
  display: none; position: absolute; z-index: 12; top: calc(100% - 8px); right: 18px;
  min-width: 232px; padding: 6px; border-radius: 14px;
  background: #171c27; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35);
}
.kds-toolbar.is-open .kds-pop { display: flex; flex-direction: column; }
.kds-pop .btn {
  width: 100%; justify-content: flex-start; margin: 0; min-height: 38px; border: 0; border-radius: 9px;
  background: transparent; color: #f4efe6; box-shadow: none; font-weight: 500;
}
.kds-pop .btn:hover { background: rgba(255,255,255,0.06); }
.kds-pop .btn.on-view { background: var(--moon); color: #14161c; }
.kds-pop .btn.danger, .kds-pop .btn.ghost.danger { color: #ffb4a8; background: transparent; }
#kdsSearch { order: 1; flex: 1 1 180px; margin: 0; }
.kds-more { order: 2; }
#kdsMsg { order: 3; flex: 1 1 100%; margin: 0; }
.agora-money {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px; align-items: end;
  margin-top: 22px; padding: 18px; border-radius: 20px;
  background: var(--night); color: var(--moon);
}
.agora-money h2 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.03em; }
.agora-money p { margin: 0; color: #d5cbbd; }
.money-figures { display: flex; gap: 22px; }
.money-figures span { display: block; color: #d5cbbd; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.money-figures b { font-size: 1.7rem; letter-spacing: -0.04em; }
.text-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: #9d270e; font-weight: 650;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.text-link:hover { color: #6e1608; background: #fde8e1; }
.text-link:focus-visible { outline: 2px solid #9d270e; outline-offset: 2px; }

.service-switch { display: flex; gap: 8px; margin: 12px 0 4px; }
.service-switch .nav {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--night-line); background: transparent; color: var(--moon); font-weight: 700;
}
.service-switch .nav.on { background: var(--moon); color: var(--night); border-color: var(--moon); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
label { display: block; margin: 2px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 46px; margin-bottom: 14px; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--flame); background: white; box-shadow: var(--ring); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 150px 44px; gap: 8px; align-items: start; margin-bottom: 8px; }
.line input, .line select { margin: 0; }
.icon-btn {
  width: 44px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--bad); font-size: 18px; cursor: pointer;
}
.icon-btn:hover { background: var(--bad-soft); }
.check { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--flame); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--flame); color: white; font-weight: 750; cursor: pointer; text-decoration: none;
  margin: 0 8px 8px 0;
}
.btn:hover { background: var(--flame-2); }
.btn.ghost { background: var(--surface); color: var(--flame); border-color: #efcfc4; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger, .btn.ghost.danger { color: var(--bad); border-color: #efc8c4; background: var(--surface); }
.btn.ghost.danger:hover { background: var(--bad-soft); }
.btn.on-view { background: var(--night); color: var(--moon); border-color: var(--night); }
label.btn { cursor: pointer; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr:hover td { background: #fbf7f1; }
tr.low td { background: #fdf1ee; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
table input, table select { width: auto; min-width: 72px; min-height: 40px; margin: 0 4px 0 0; display: inline-block; }
td, .metrics b, .money-figures b { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 750;
  padding: 4px 8px; border-radius: 999px; margin-right: 6px;
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.miss { background: #efe8df; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.metrics div, .fin-metrics div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.metrics span, .fin-metrics span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.metrics b, .fin-metrics b { font-size: 1.45rem; letter-spacing: -0.03em; }
.pizza { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.pizza:last-child { border-bottom: 0; }
.pizza > b { font-size: 1.25rem; }
.hint, .pizza span { color: var(--muted); font-size: 13px; }
.empty, .kds-empty {
  margin: 8px 0; padding: 22px 16px; text-align: center; color: var(--muted);
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 16px;
}
p.err, p.ok { font-size: 14px; font-weight: 700; }
p.err:not(:empty), p.ok:not(:empty) { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; }
p.err:not(:empty) { color: var(--bad); background: var(--bad-soft); }
p.ok:not(:empty) { color: var(--ok); background: var(--ok-soft); }
.cover { width: 100%; height: 180px; object-fit: cover; border-radius: 18px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.preview { max-width: 180px; max-height: 80px; display: block; margin: 0 0 14px; border-radius: 12px; }
.int-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.int-help { color: var(--muted); margin: 0 0 14px; }
.int-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.int-actions .btn { margin: 0; }
.file-field { position: relative; margin-bottom: 8px; }
.file-field input[type="file"] {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.file-field:focus-within .btn { box-shadow: var(--ring); }

.cmd { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.cmd[hidden] { display: none; }
.cmd-backdrop { position: absolute; inset: 0; border: 0; background: rgba(12, 14, 20, 0.62); cursor: pointer; }
.cmd-card {
  position: relative; width: min(560px, 100%); padding: 12px;
  border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.cmd-card input { margin: 0 0 8px; background: var(--flour); }
.cmd-list { list-style: none; margin: 0; padding: 0; max-height: min(50vh, 420px); overflow: auto; }
.cmd-item {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 52px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: transparent; text-align: left; cursor: pointer;
}
.cmd-item b { font-family: var(--font-display); font-size: 1.05rem; }
.cmd-item span { color: var(--muted); font-size: 13px; }
.cmd-item.on, .cmd-item:hover { background: var(--accent-soft); }
.cmd-empty { padding: 16px 12px; color: var(--muted); }

body.is-busy::before {
  content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 36%; z-index: 90;
  background: linear-gradient(90deg, var(--gold), var(--flame));
  animation: load 0.9s ease infinite;
}
@media (prefers-reduced-motion: no-preference) {
  .agora-go, .btn, .dock .nav, .dock .nav .dock-label, .casa-rail .nav, .omnibox, .pulse {
    transition: transform .16s ease, background .2s ease, color .2s ease, max-width .24s ease, opacity .2s ease, box-shadow .2s ease;
  }
  .page.on { animation: rise .32s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes load { from { transform: translateX(-40%); } to { transform: translateX(280%); } }

@media (max-width: 900px) {
  .agora-actions, .agora-money, .row, .metrics, .kpi, .ops-grid { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .ops-row { display: flex; flex-wrap: wrap; align-items: center; }
  .ops-main { flex: 1 1 100%; }
  .ops-act { margin-left: auto; }
  .ops-time, .ops-id { text-align: left; }
  .agora-money { align-items: start; }
  .omnibox { width: min(220px, 30vw); }
}
@media (max-width: 720px) {
  .dock {
    position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%); justify-self: auto;
    background: rgba(14, 16, 22, 0.9);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
  }
  .main { padding-bottom: 108px; }
  .casa-rail { flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding-bottom: 2px; }
}
@media (max-width: 800px) {
  .agora-go { min-height: 112px; gap: 16px; }
  #agoraRoot h1, .head h1 { font-size: 1.45rem; }
  .top { padding: 0 14px; gap: 8px; }
  .omnibox span, .omnibox kbd, .brand-copy span { display: none; }
  .omnibox { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .dock { bottom: max(12px, env(safe-area-inset-bottom)); }
  .casa-rail { flex-wrap: nowrap; overflow-x: auto; gap: 16px; }
  .line { grid-template-columns: minmax(0, 1fr) 96px 44px; }
}
@media (max-width: 720px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
  .table-wrap td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 0; padding: 6px 0; text-align: right; white-space: normal;
  }
  .table-wrap td::before {
    content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 750;
    letter-spacing: 0.05em; text-transform: uppercase;
  }
  .table-wrap td:last-child { justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .btn { width: 100%; margin-right: 0; }
  .agora-go, .dock .nav, .casa-rail .nav, .omnibox, .pulse, .cmd-item, .kds-more,
  .menu-actions .btn, .kds-ticket .btn, td .btn, .int-actions .btn, .file-field .btn { width: auto; }
  .kds-pop .btn { width: 100%; }
}
