:root {
  --navy: #071426;
  --navy-2: #10233d;
  --blue: #1f5eff;
  --blue-2: #3c78ff;
  --ink: #142033;
  --muted: #5d6b80;
  --line: #e3e9f2;
  --bg: #f4f7fb;
  --white: #fff;
  --ok: #0f7b4c;
  --warn: #9a6700;
  --danger: #a32626;
  --shadow: 0 10px 30px rgba(15, 32, 58, .06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3, .brand { font-family: Manrope, sans-serif; }
:focus-visible { outline: 3px solid #8eb0ff; outline-offset: 2px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #071426; color: #fff; border-radius: 14px; padding: 14px 16px; max-width: 320px; box-shadow: var(--shadow); }
.toast.bad { background: #7f1d1d; }
dialog { border: 0; border-radius: 18px; padding: 20px; max-width: 420px; }
dialog::backdrop { background: rgba(7, 17, 31, .55); }
#confirm-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 28px 80px rgba(7, 17, 31, .28); }
#confirm-dialog .confirm-body { padding: 22px 22px 6px; }
#confirm-dialog .confirm-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff4d8; color: #9a6700; margin-bottom: 14px; }
#confirm-dialog h2 { margin: 0 0 14px; font-size: 1.28rem; line-height: 1.25; }
#confirm-dialog ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
#confirm-dialog li { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f4f7fb; color: var(--ink); line-height: 1.45; }
#confirm-dialog .confirm-actions { display: flex; gap: 10px; margin: 0; padding: 16px 22px 22px; }
#confirm-dialog .confirm-actions .btn { flex: 1; }
body[data-theme="dark"] { --bg: #0b1220; --ink: #e8eef8; --line: #243044; --white: #121a2b; }
body[data-theme="dark"] .card, body[data-theme="dark"] .table-wrap, body[data-theme="dark"] .topbar, body[data-theme="dark"] .filters, body[data-theme="dark"] .tool-card, body[data-theme="dark"] .toolbar, body[data-theme="dark"] .segments, body[data-theme="dark"] .profile-menu, body[data-theme="dark"] input, body[data-theme="dark"] select, body[data-theme="dark"] textarea { background: #121a2b; color: #e8eef8; }
body[data-theme="dark"] tbody tr:hover td { background: #182236; }
body[data-theme="dark"] th { background: #182236; }
.sidebar.is-collapsed { width: 84px; }
.sidebar.is-collapsed nav a, .sidebar.is-collapsed .brand span:last-child { font-size: 0; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, .brand, .guest-card h1 { font-family: Outfit, sans-serif; letter-spacing: -.03em; }
.admin-body { min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; width: 248px; min-height: 100vh; background: #070b12; color: #fff; padding: 22px 14px; flex-shrink: 0; }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.menu-close { display: none; width: 42px; height: 42px; flex: none; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.brand { display: flex; align-items: center; margin: 2px 8px 26px; }
.brand img { width: 100%; height: auto; display: block; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar a { color: #b7c3d6; padding: 11px 14px; border-radius: 12px; font-weight: 600; }
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.is-active { background: var(--blue); color: #fff; }
.theme-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; width: 100%; text-align: left; border: 0; background: transparent; color: #b7c3d6; padding: 11px 14px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.theme-menu:hover { background: rgba(255,255,255,.06); color: #fff; }
.theme-label { display: inline-flex; align-items: center; gap: 10px; }
.theme-label svg { width: 18px; height: 18px; fill: currentColor; }
.theme-label .moon { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url("/assets/moon.png") center / contain no-repeat; mask: url("/assets/moon.png") center / contain no-repeat; }
.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: #3a465c; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.theme-menu.is-on .switch { background: #1f5eff; }
.theme-menu.is-on .switch::after { transform: translateX(18px); }
.workspace { flex: 1; min-width: 0; }
.topbar { display: flex; gap: 10px; align-items: center; padding: 12px 20px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.search { flex: 1; }
.search input, .field input, .field select, .field textarea, .filters input, .filters select, .tool-row input, .tool-row select, .toolbar select { width: 100%; border: 1px solid #d7e0ec; background: #f6f8fb; border-radius: 12px; padding: 0 14px; height: 44px; font: inherit; color: var(--ink); }
.search input { border-radius: 999px; background: #f3f6fb; border-color: transparent; }
.field textarea { height: auto; padding: 12px 14px; }
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus, .tool-row input:focus, .tool-row select:focus, .toolbar select:focus { outline: none; border-color: #1f5eff; background: #fff; box-shadow: 0 0 0 4px rgba(31,94,255,.12); }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.icon-btn, .profile summary { display: inline-flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 14px; cursor: pointer; list-style: none; font: inherit; color: var(--ink); }
.icon-bell { width: 42px; padding: 0; color: #243044; }
.icon-bell svg { display: block; }
.icon-bell:hover { color: var(--blue); border-color: #b9cbef; }
.profile { position: relative; }
.profile summary.avatar { width: 42px; padding: 0; border-radius: 50%; background: #1f5eff; color: #fff; border-color: transparent; }
.profile summary.avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile summary::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--blue); }
.profile summary.avatar::before { content: none; }
.profile-menu { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 232px; box-shadow: 0 18px 44px rgba(15,32,58,.16); padding: 8px; }
.profile-menu a, .profile-menu button { display: flex; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.profile-menu a:hover, .profile-menu button:hover { background: #f4f7fb; }
.profile-menu form { margin: 0; }
.profile-menu form + form, .profile-menu a + form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.content { padding: 28px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.page-actions { display: grid; gap: 8px; }
.page-head.is-center .btn { margin-top: 12px; }
.test-result { margin-bottom: 16px; }
.test-result h2 { margin: 0 0 8px; }
.test-links { display: grid; gap: 12px; margin-top: 14px; }
.test-links div { display: grid; gap: 4px; }
.test-links span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.test-links a { overflow-wrap: anywhere; font-weight: 700; }
.page-head h1 { margin: 0; font-size: 1.85rem; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; }
.page-head .actions form { margin: 0; }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.cards .card { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 108px; }
.cards .card:hover { border-color: #c9d7f5; box-shadow: 0 12px 28px rgba(20,60,140,.08); }
.card strong { display: block; font-size: 1.65rem; font-family: Manrope, sans-serif; letter-spacing: -.03em; }
.card span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.section-title { margin: 22px 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a8ba3; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
th { color: #7a8ba3; font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; background: #f8fafc; position: sticky; top: 0; }
tbody tr:hover td { background: #f5f8ff; }
tbody td[colspan] { text-align: center; color: var(--muted); padding: 42px 16px; background: #fbfcfe; }
td .code, td a { font-weight: 700; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: -.02em; }
.card p { margin: 0 0 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 700; }
.badge.available { background: #e8eefc; color: #1d4ed8; }
.badge.reserved, .badge.configuring { background: #fff4d8; color: #8a5b00; }
.badge.active { background: #e5f6ee; color: #0d7a45; }
.badge.active::before, .badge.inactive::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.badge.active::before { background: #16a34a; animation: live-dot 1.1s ease-in-out infinite; }
.badge.inactive::before { background: #dc2626; }
.badge.paid { background: #e5f6ee; color: #0d7a45; }
.badge.inactive, .badge.lost, .badge.cancelled, .badge.refunded { background: #fde8e8; color: var(--danger); }
@keyframes live-dot {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
    70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .badge.active::before { animation: none; }
}
.badge.pending { background: #fff4d8; color: #8a5b00; }
.badge.paid, .badge.available-money { background: #e5f6ee; color: var(--ok); }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--blue); color: #fff; border-radius: 12px; padding: 0 16px; height: 44px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid #d7e0ec; }
.btn.secondary:hover { border-color: #1f5eff; color: #1f5eff; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #f0c8c8; }
.btn.small { height: 36px; padding: 0 12px; border-radius: 10px; font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters, .tool-card, .toolbar { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.filters, .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin-bottom: 14px; }
.filters > input, .filters > select { flex: 1 1 160px; min-width: 140px; width: auto; }
.filters > .btn, .tool-row > .btn, .toolbar > .btn { width: auto; flex: 0 0 auto; }
.tool-card { padding: 18px; margin-bottom: 14px; }
.tool-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.tool-card .muted { margin: 0 0 14px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-row input { width: auto; flex: 1 1 180px; min-width: 160px; }
.tool-row select, .toolbar select { width: 148px; flex: 0 0 148px; }
.segments { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
td.actions a, td.actions button { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #d7e0ec; background: #fff; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
td.actions a:hover, td.actions button:hover { border-color: #1f5eff; color: #1f5eff; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .92rem; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert.success { background: #e8f7ef; color: #0d5b38; }
.alert.error { background: #fdecec; color: #8d1d1d; }
.guest-body { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background:
  radial-gradient(820px 420px at 12% 8%, rgba(31,94,255,.38), transparent 62%),
  radial-gradient(640px 380px at 92% 100%, rgba(60,120,255,.2), transparent 58%),
  #05070c; }
.auth-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 560px; padding: 36px 34px; color: #fff; background:
  linear-gradient(165deg, rgba(31,94,255,.28), transparent 46%),
  #07111f; }
.auth-aside img { width: 168px; height: auto; display: block; }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: #d7e4ff; font-weight: 600; font-size: 1rem; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.auth-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4c86ff; flex: none; }
.auth-aside p { margin: 0 0 10px; color: #9eb4ff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.auth-aside h2 { margin: 0; max-width: 12ch; font-family: Manrope, sans-serif; font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.04em; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 42px 36px 36px; }
.auth-kicker { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-panel h1 { margin: 0 0 8px; font-size: 2rem; color: #0c1730; }
.auth-panel .muted { margin: 0 0 22px; }
.auth-panel .field input { height: 48px; border-radius: 14px; border-color: #d5deea; background: #f6f8fb; }
.auth-panel .field input:focus { outline: none; border-color: #1f5eff; background: #fff; box-shadow: 0 0 0 4px rgba(31,94,255,.14); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 18px; font-size: .92rem; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.auth-submit { width: 100%; height: 48px; border-radius: 14px; }
.auth-back { margin: 16px 0 0; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 92px; }
.peek { position: absolute; top: 6px; right: 6px; height: 36px; border: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.guest-card .brand { margin-bottom: 18px; }
.guest-card .brand img { width: 180px; height: auto; }
.guest-card { width: min(440px, calc(100% - 32px)); background: #fff; border-radius: 22px; padding: 28px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.qr-box { text-align: center; }
.qr-box img { width: min(280px, 100%); background: #fff; border-radius: 12px; }
.note { background: #f7f9fc; border-radius: 12px; padding: 12px; color: var(--muted); }
.menu-btn { display: none; }
.chart-box { height: 280px; }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); }
.pager a.is-on { background: var(--navy); color: #fff; }
.plate-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plate-actions form { margin: 0; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #f6f8fb; }
.copyline strong { word-break: break-all; font-size: .95rem; }
.field-row { display: flex; gap: 10px; align-items: flex-end; }
.field-row .field { flex: 1; margin: 0; }
.field-row .btn { margin-bottom: 0; }
.fold { padding: 16px 18px; }
.fold summary { cursor: pointer; font-weight: 700; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ""; }
details.tool-card > summary { cursor: pointer; font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.05rem; list-style: none; }
details.tool-card > summary::-webkit-details-marker { display: none; }
details.tool-card .tool-row { margin-top: 14px; }
.hits { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.hits b { color: var(--ink); }
.more { position: relative; display: inline-block; }
.more summary { list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; min-width: 168px; display: grid; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
td.actions .more .menu a, td.actions .more .menu button { width: 100%; justify-content: flex-start; border: 0; border-radius: 8px; background: transparent; height: 34px; }
td.actions .more .menu a:hover, td.actions .more .menu button:hover { background: #f4f7fb; }
@media (max-width: 720px) { .field-row { display: grid; } }
.check-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
@media (max-width: 980px) {
  .cards, .grid-2, .split { grid-template-columns: 1fr 1fr; }
  .filters, .tool-row, .toolbar { display: grid; grid-template-columns: 1fr; }
  .filters > input, .filters > select, .tool-row input, .tool-row select, .toolbar select, .filters > .btn, .tool-row > .btn, .toolbar > .btn { width: 100%; min-width: 0; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(280px, 86vw); transform: translateX(-105%); transition: .2s ease; }
  .sidebar.is-open { transform: none; }
  .menu-close { display: inline-flex; align-items: center; justify-content: center; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(5, 8, 16, .55); }
  .menu-btn { display: inline-flex; }
  .topbar form.search { display: none; }
  .content { padding: 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 0; padding: 26px 22px 22px; }
  .auth-aside h2 { max-width: none; font-size: 1.45rem; }
  .auth-panel { padding: 26px 22px 30px; }
  .auth-row { flex-wrap: wrap; gap: 8px 12px; }
}
@media (max-width: 640px) {
  .cards, .grid-2, .split { grid-template-columns: 1fr; }
}
.wizard { max-width: 680px; margin-left: auto; margin-right: auto; }
.wizard-progress { display: flex; gap: 8px; margin: 0 0 10px; }
.wizard-progress span { flex: 1; height: 8px; border-radius: 999px; background: #d5deea; }
.wizard-progress span.on { background: #1f5eff; }
.wizard-step { margin: 0 0 18px; text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1f5eff; }
.page-head.is-center, .page-head.is-center > div { width: 100%; justify-content: center; text-align: center; }
.wizard, .wizard-panel, .wizard-panel h2, .wizard-panel p, .wizard-panel .field label, .wizard-step, .plate-picks, .plate-picks h3 { text-align: center; }
.wizard .actions, .wizard-panel .actions { justify-content: center; }
.wizard .field input, .wizard .field select { text-align: center; }
.wizard-panel h2 { margin: 0 0 6px; font-weight: 700; }
.wizard-panel .actions { margin-top: 16px; }
.wizard-panel[hidden], [hidden] { display: none !important; }
.sale-summary { display: grid; gap: 8px; margin: 0; }
.sale-summary div { display: flex; justify-content: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: center; }
.sale-summary dt { color: var(--muted); }
.sale-summary dd { margin: 0; font-weight: 700; text-align: center; }
details.fold.manual > summary { display: flex; align-items: center; gap: 10px; }
details.fold.manual > summary::before { content: "+"; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #e8eef8; color: #16356d; font-weight: 700; }
details.fold.manual[open] > summary::before { content: "−"; }
.pay-options, .card-types { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.card-types[hidden] { display: none !important; }
.pay-options label, .card-types label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f6f8fb; font-weight: 700; cursor: pointer; }
.pay-options label:has(input:checked), .card-types label:has(input:checked) { border-color: #1f5eff; background: #e8eefc; color: #16356d; }
.workspace, .content, .card, .page-head, .table-wrap { max-width: 100%; }
.table-wrap { overflow-x: auto; }
.page-head h1, .page-head p, .search strong, .copyline { overflow-wrap: anywhere; }
.page-head .actions, .plate-actions { flex-wrap: wrap; }
@media (max-width: 640px) {
  .page-head { align-items: stretch; }
  .page-head .actions, .page-head .actions .btn, .page-head .page-actions, .page-head .page-actions .btn, .plate-actions .btn { width: 100%; }
  .topbar { gap: 8px; padding: 12px; }
  .topbar .search { min-width: 0; }
  .topbar .search strong { display: block; font-size: .92rem; line-height: 1.25; }
  .topbar .btn { flex: none; }
}
.wizard-center { justify-content: center; }
.plate-picks { display: grid; gap: 16px; margin: 8px 0 0; text-align: center; }
.plate-picks h3 { margin: 0 0 8px; font-size: .95rem; }
.plate-pick { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #f6f8fb; cursor: pointer; font-weight: 700; }
.plate-pick input { width: 18px; height: 18px; accent-color: #1f5eff; }
.plate-pick:has(input:checked) { border-color: #1f5eff; background: #e8eefc; color: #16356d; }
.qty-stepper { display: flex; align-items: center; justify-content: center; width: fit-content; margin: 22px auto 8px; padding: 6px; gap: 4px; background: #f3f6fb; border: 1px solid var(--line); border-radius: 999px; }
.qty-stepper input { width: 76px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; box-shadow: none; text-align: center; font-size: 1.35rem; font-weight: 700; }
.qty-stepper input:focus { border: 0; background: transparent; box-shadow: none; }
.qty-stepper .btn { width: 48px; height: 48px; padding: 0; border-radius: 999px; font-size: 1.45rem; }
.place-status { margin: 8px 0 0; color: #8d1d1d; font-weight: 600; }
.place-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.place-card img { width: 100%; height: 210px; object-fit: cover; display: block; background: #d9e3f2; }
.place-card .place-body { padding: 14px 16px 4px; }
.place-card .place-body input { font-size: 1.12rem; font-weight: 700; }
.page-preview { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #e8eefc; color: #16356d; font-weight: 700; overflow-wrap: anywhere; }
body[data-theme="dark"] .page-preview { background: #243044; color: #d7e2f2; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.pay-grid.card-types { grid-template-columns: 1fr 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
.pay-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 108px; border: 1px solid var(--line); border-radius: 16px; background: #f6f8fb; color: var(--ink); cursor: pointer; font-weight: 700; }
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card svg { width: 32px; height: 32px; }
.pay-card svg path,
.pay-card svg rect,
.pay-card svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay-card:has(input:checked) { border-color: #1f5eff; background: #e8eefc; color: #16356d; box-shadow: 0 0 0 3px rgba(31,94,255,.16); }
button.pay-card { width: 100%; font: inherit; color: inherit; }
.service-add { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.service-add h2, .service-board-head h2 { margin: 0; font-size: 1.05rem; }
.service-add .muted { margin: 4px 0 0; }
.service-add form { display: flex; gap: 10px; align-items: center; flex: 1 1 360px; max-width: 560px; }
.service-add input { flex: 1; min-width: 0; height: 44px; border: 1px solid #d7e0ec; background: #f6f8fb; border-radius: 12px; padding: 0 14px; font: inherit; color: var(--ink); }
.service-add input:focus { outline: none; border-color: #1f5eff; background: #fff; box-shadow: 0 0 0 4px rgba(31,94,255,.12); }
.service-board { padding: 18px; }
.service-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service-board-head span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.service-empty { margin: 18px 0 0; padding: 28px 16px; text-align: center; color: var(--muted); background: #f6f8fb; border-radius: 14px; }
.service-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.service-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #f6f8fb; }
.service-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e8eefc; color: #16356d; font-family: Manrope, sans-serif; font-weight: 700; }
.service-rename { display: flex; gap: 8px; align-items: center; min-width: 0; }
.service-rename input { flex: 1; min-width: 0; margin: 0; height: 40px; border: 1px solid #d7e0ec; background: #fff; border-radius: 12px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--ink); }
.service-rename input:focus { outline: none; border-color: #1f5eff; box-shadow: 0 0 0 4px rgba(31,94,255,.12); }
.service-list form { margin: 0; }
body[data-theme="dark"] .service-add input,
body[data-theme="dark"] .service-rename input { background: #1a2438; color: #f4f7fb; border-color: #3a4d6b; }
body[data-theme="dark"] .service-add input:focus,
body[data-theme="dark"] .service-rename input:focus { background: #1a2438; border-color: #6f97ef; }
body[data-theme="dark"] .service-list li,
body[data-theme="dark"] .service-empty { background: #1a2438; border-color: #3a4d6b; }
body[data-theme="dark"] .service-mark { background: #243044; color: #d7e2f2; }
@media (max-width: 800px) {
  .service-add { display: grid; }
  .service-add form { max-width: none; width: 100%; }
  .service-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .service-list li > form:last-child { grid-column: 2; justify-self: start; }
}
.notice-board h2 { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a8ba3; }
.notice-board h2 + .notice-list { margin-top: 0; }
.notice-board .notice-list + h2 { margin-top: 22px; }
.notice-empty { margin: 0; padding: 36px 16px; text-align: center; color: var(--muted); background: #f6f8fb; border-radius: 14px; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notice-list li > a, .notice-list li:not(:has(a)) { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f6f8fb; color: inherit; }
.notice-list li > a:hover { border-color: #8eb0ff; background: #f3f7ff; }
.notice-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e8eefc; color: #16356d; font-family: Manrope, sans-serif; font-weight: 700; }
.notice-list b { display: block; font-size: .98rem; }
.notice-list p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.notice-list time { color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.notice-sale .notice-mark { background: #e5f6ee; color: #0d7a45; }
.notice-money .notice-mark { background: #fff4d8; color: #8a5b00; }
.notice-plate .notice-mark { background: #e8eefc; color: #1d4ed8; }
.notice-login .notice-mark { background: #eef1f6; color: #5d6b80; }
.notice-client .notice-mark { background: #e8eefc; color: #16356d; }
.notice-seller .notice-mark { background: #f3e8ff; color: #6b21a8; }
.notice-service .notice-mark { background: #e8eefc; color: #16356d; }
body[data-theme="dark"] .notice-empty,
body[data-theme="dark"] .notice-list li > a,
body[data-theme="dark"] .notice-list li:not(:has(a)) { background: #1a2438; border-color: #3a4d6b; }
body[data-theme="dark"] .notice-list li > a:hover { background: #22304a; border-color: #6f97ef; }
body[data-theme="dark"] .notice-list p,
body[data-theme="dark"] .notice-list time,
body[data-theme="dark"] .notice-board h2 { color: #9aa0a6; }
body[data-theme="dark"] .notice-mark { background: #243044; color: #d7e2f2; }
@media (max-width: 640px) {
  .notice-list li > a, .notice-list li:not(:has(a)) { grid-template-columns: 40px minmax(0, 1fr); }
  .notice-list time { grid-column: 2; }
}
@media (max-width: 640px) { .pay-grid { grid-template-columns: 1fr; } .pay-grid.card-types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .page-head, .page-head > div { width: 100%; justify-content: center; text-align: center; }
  .sale-summary div { flex-direction: column; align-items: center; }
}
body[data-theme="dark"] { --ink: #f4f7fb; --muted: #d7e2f2; }
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] p,
body[data-theme="dark"] label,
body[data-theme="dark"] summary,
body[data-theme="dark"] dt,
body[data-theme="dark"] dd,
body[data-theme="dark"] .field label,
body[data-theme="dark"] .wizard-panel h2,
body[data-theme="dark"] .page-head h1,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .icon-btn,
body[data-theme="dark"] .profile summary { color: #f4f7fb; }
body[data-theme="dark"] .muted,
body[data-theme="dark"] .page-head p,
body[data-theme="dark"] .sale-summary dt,
body[data-theme="dark"] .card span,
body[data-theme="dark"] th { color: #d7e2f2; }
body[data-theme="dark"] .wizard-step { color: #8eb0ff; }
body[data-theme="dark"] .icon-btn,
body[data-theme="dark"] .profile summary,
body[data-theme="dark"] .icon-bell { background: #1a2438; color: #f4f7fb; border-color: #3d4f6c; }
body[data-theme="dark"] .profile summary.avatar { background: #1f5eff; color: #fff; border-color: transparent; }
body[data-theme="dark"] .profile-menu,
body[data-theme="dark"] dialog,
body[data-theme="dark"] #confirm-dialog { background: #1a2438; color: #f4f7fb; }
body[data-theme="dark"] #confirm-dialog h2,
body[data-theme="dark"] #confirm-dialog li { color: #f4f7fb; }
body[data-theme="dark"] #confirm-dialog li { background: #121a2b; }
body[data-theme="dark"] #confirm-dialog .confirm-mark { background: #4a3410; color: #ffe3a3; }
body[data-theme="dark"] .profile-menu a,
body[data-theme="dark"] .profile-menu button { color: #f4f7fb; }
body[data-theme="dark"] .profile-menu a:hover,
body[data-theme="dark"] .profile-menu button:hover { background: #243044; }
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .search input,
body[data-theme="dark"] .filters input,
body[data-theme="dark"] .filters select,
body[data-theme="dark"] .toolbar select,
body[data-theme="dark"] .tool-row input,
body[data-theme="dark"] .tool-row select,
body[data-theme="dark"] .field input:focus,
body[data-theme="dark"] .field select:focus,
body[data-theme="dark"] .field textarea:focus,
body[data-theme="dark"] .search input:focus,
body[data-theme="dark"] .filters input:focus,
body[data-theme="dark"] .filters select:focus { background: #1a2438; color: #f4f7fb; border-color: #3a4d6b; }
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder { color: #c5d2e4; }
body[data-theme="dark"] .qty-stepper { background: #121a2b; border-color: #3d4f6c; }
body[data-theme="dark"] .qty-stepper input,
body[data-theme="dark"] .qty-stepper input:focus { background: transparent; color: #f4f7fb; border: 0; box-shadow: none; }
body[data-theme="dark"] .qty-stepper .btn.secondary { background: #243044; color: #f4f7fb; border-color: transparent; }
body[data-theme="dark"] .btn.secondary,
body[data-theme="dark"] td.actions a,
body[data-theme="dark"] td.actions button,
body[data-theme="dark"] .pager a { background: #1a2438; color: #f4f7fb; border-color: #3a4d6b; }
body[data-theme="dark"] .more .menu { background: #1a2438; border-color: #3a4d6b; }
body[data-theme="dark"] td.actions .more .menu a,
body[data-theme="dark"] td.actions .more .menu button { background: transparent; color: #f4f7fb; }
body[data-theme="dark"] td.actions .more .menu a:hover,
body[data-theme="dark"] td.actions .more .menu button:hover { background: #243044; color: #fff; }
body[data-theme="dark"] .plate-pick { background: #1a2438; color: #f4f7fb; border-color: #3a4d6b; }
body[data-theme="dark"] .plate-pick:has(input:checked) { background: #1c3f86; color: #fff; border-color: #3c78ff; }
body[data-theme="dark"] .pay-card { background: #1a2438; color: #f4f7fb; border-color: #3a4d6b; }
body[data-theme="dark"] .pay-card:has(input:checked) { background: #1c3f86; color: #fff; border-color: #3c78ff; }
body[data-theme="dark"] .place-card,
body[data-theme="dark"] .note,
body[data-theme="dark"] .copyline { background: #1a2438; color: #f4f7fb; }
body[data-theme="dark"] .wizard-progress span { background: #3d4f6c; }
body[data-theme="dark"] .wizard-progress span.on { background: #4c86ff; box-shadow: 0 0 12px rgba(76, 134, 255, .45); }
body[data-theme="dark"] .topbar { background: rgba(18, 26, 43, .96); border-bottom-color: #243044; }
body[data-theme="dark"] .place-status { color: #ffb4b4; }
body[data-theme="dark"] .section-title,
body[data-theme="dark"] .hits { color: #d7e2f2; }
body[data-theme="dark"] .hits b { color: #f4f7fb; }
td.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
body[data-theme="dark"] .card span.badge,
body[data-theme="dark"] span.badge { color: inherit; }
body[data-theme="dark"] .badge.paid,
body[data-theme="dark"] .badge.active,
body[data-theme="dark"] .badge.available-money { background: #143d2c; color: #b6f3d4; }
body[data-theme="dark"] .badge.available { background: #1c3f86; color: #d6e4ff; }
body[data-theme="dark"] .badge.pending,
body[data-theme="dark"] .badge.reserved,
body[data-theme="dark"] .badge.configuring { background: #4a3410; color: #ffe3a3; }
body[data-theme="dark"] .badge.inactive,
body[data-theme="dark"] .badge.lost,
body[data-theme="dark"] .badge.cancelled,
body[data-theme="dark"] .badge.refunded { background: #4a1d1d; color: #ffc9c9; }
.profile summary.avatar { font-family: Manrope, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: -.02em; }
.profile-who { display: grid; gap: 2px; margin: 0 0 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.profile-who strong { font-size: .98rem; line-height: 1.25; white-space: nowrap; }
.profile-who span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.profile-main { display: grid; gap: 14px; }
.profile-hero { display: flex; align-items: center; gap: 14px; }
.profile-hero h2 { margin: 0 0 6px; font-size: 1.25rem; }
.profile-hero p { margin: 0; }
.profile-initials { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #1f5eff; color: #fff; font-family: Manrope, sans-serif; font-size: 1.25rem; flex: none; }
.role-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: #e8eefc; color: #16356d; font-size: .8rem; font-weight: 700; }
.profile-facts { display: grid; gap: 12px; margin: 18px 0 0; }
.profile-facts div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.profile-facts dt { color: var(--muted); font-size: .84rem; }
.profile-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.field .hint { margin: 0; color: var(--muted); font-size: .82rem; }
.profile-main .split { align-items: start; }
@media (max-width: 860px) {
  .profile-layout, .profile-main .split { grid-template-columns: 1fr; }
  .profile-facts div { flex-direction: column; align-items: flex-start; }
  .profile-facts dd { text-align: left; }
}
body[data-theme="dark"] .profile-who { border-bottom-color: #3a4d6b; }
body[data-theme="dark"] .profile-who strong { color: #f4f7fb; }
body[data-theme="dark"] .profile-who span { color: #d7e2f2; }
body[data-theme="dark"] .profile-menu a + form,
body[data-theme="dark"] .profile-menu form + form { border-top-color: #3a4d6b; }
body[data-theme="dark"] .card b.profile-initials { color: #fff; background: #1f5eff; }
body[data-theme="dark"] .role-pill { background: #1c3f86; color: #d6e4ff; }
body[data-theme="dark"] .profile-facts dd,
body[data-theme="dark"] .profile-hero h2 { color: #f4f7fb; }
body[data-theme="dark"] .profile-facts dt,
body[data-theme="dark"] .field .hint { color: #d7e2f2; }
body[data-theme="dark"] tbody td,
body[data-theme="dark"] tbody td[colspan] { background: #121a2b; color: #d7e2f2; }
body[data-theme="dark"] tbody tr:hover td { background: #182236; }
body[data-theme="dark"] .btn.danger { background: #3a1d24; color: #ffc9c9; border-color: #7a3040; }
.plaque-board { margin-top: 22px; }
.plaque-board h2 { margin: 0 0 14px; }
.plaque-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.sale-plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.sale-plaques .plaque-find { grid-column: 1 / -1; max-width: 280px; margin: 0 auto 4px; }
.sale-plaque { position: relative; display: block; cursor: pointer; color: inherit; text-decoration: none; }
.sale-plaque input { position: absolute; opacity: 0; pointer-events: none; }
.sale-plaque.is-spare { display: none; }
.sale-plaque .plaque-face { min-height: 0; padding: 16px 10px 12px; }
.sale-plaque .plaque-hole { width: 8px; height: 8px; top: 8px; }
.sale-plaque .plaque-hole.left { left: 10px; }
.sale-plaque .plaque-hole.right { right: 10px; }
.sale-plaque .plaque-brand { margin-top: 2px; font-size: .58rem; }
.sale-plaque .plaque-qr { width: 62px; height: 62px; margin: 8px 0 4px; padding: 5px; }
.sale-plaque .plaque-code { font-size: .95rem; }
.sale-plaque .plaque-face em { font-size: .75rem; color: #3d4d66; }
.sale-plaque:has(input:checked) .plaque-face { border-color: #1f5eff; box-shadow: 0 0 0 3px rgba(31,94,255,.28), 0 12px 24px rgba(15, 32, 58, .12), inset 0 1px 0 #fff; }
body[data-theme="dark"] .card .sale-plaque .plaque-brand { color: #1f5eff; }
body[data-theme="dark"] .card .sale-plaque .plaque-code { color: #142033; }
body[data-theme="dark"] .card .sale-plaque .plaque-face em { color: #243044; }
.different-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; font-weight: 700; cursor: pointer; }
.different-link input { width: 18px; height: 18px; accent-color: #1f5eff; }
.plaque { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.plaque-face { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 268px; padding: 22px 16px 16px; border-radius: 26px; background: linear-gradient(180deg, #f8fbff 0%, #e7eef8 100%); border: 1px solid #c5d2e4; box-shadow: 0 16px 30px rgba(15, 32, 58, .12), inset 0 1px 0 #fff; }
.plaque-hole { position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #f4f7fb, #9aabbf); box-shadow: inset 0 1px 2px rgba(7, 17, 31, .35); }
.plaque-hole.left { left: 16px; }
.plaque-hole.right { right: 16px; }
.plaque-brand { margin-top: 10px; font-family: Manrope, sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #1f5eff; }
.plaque-qr { width: 96px; height: 96px; margin: 12px 0 8px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px #d7e2f0; }
.plaque-qr rect { fill: #142033; }
.plaque-qr .hole { fill: #fff; }
.plaque-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .04em; color: #142033; }
.plaque-face em { margin-top: 4px; color: #5d6b80; font-style: normal; font-size: .88rem; }
.plaque-phrase { margin: 0; text-align: center; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.plaque:hover .plaque-face { transform: translateY(-2px); box-shadow: 0 20px 34px rgba(15, 32, 58, .16), inset 0 1px 0 #fff; }
body[data-theme="dark"] .plaque-phrase { color: #d7e2f2; }
body[data-theme="dark"] .plaque-board h2 { color: #f4f7fb; }
.top-logo, .top-theme, .bottom-nav { display: none; }
.top-logo img { height: 34px; width: auto; display: block; }
.top-logo .logo-light { display: none; }
body[data-theme="dark"] .top-logo .logo-dark { display: none; }
body[data-theme="dark"] .top-logo .logo-light { display: block; }
.top-theme { width: 42px; padding: 0; }
.top-theme .moon { width: 20px; height: 20px; background: currentColor; -webkit-mask: url("/assets/moon.png") center / contain no-repeat; mask: url("/assets/moon.png") center / contain no-repeat; }
.top-theme.is-on { background: #1f5eff; color: #fff; border-color: transparent; }
@media (max-width: 980px) {
  body.seller-app .sidebar { display: none; }
  body.seller-app .menu-btn { display: none; }
  body.seller-app .top-logo { display: flex; align-items: center; }
  body.seller-app .top-theme { display: inline-flex; }
  body.seller-app .bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  body.seller-app .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 12px; color: #5d6b80; font-weight: 700; font-size: .72rem; }
  body.seller-app .bottom-nav img { width: 28px; height: 28px; object-fit: contain; }
  body.seller-app .nav-home { width: 26px; height: 26px; background: currentColor; -webkit-mask: url("/assets/home.png") center / contain no-repeat; mask: url("/assets/home.png") center / contain no-repeat; }
  body.seller-app .bottom-nav a.is-active { background: #1f5eff; color: #fff; }
  body.seller-app .content { padding-bottom: 108px; }
  body.seller-app .toast { bottom: 88px; }
  body.seller-app .plaque-board h2 { text-align: center; }
  body.seller-app .plaque-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.seller-app .plaque-grid .plaque:nth-child(n+11) { display: none; }
  body.seller-app .plaque-grid .plaque-face { min-height: 0; padding: 12px 8px 10px; border-radius: 18px; }
  body.seller-app .plaque-grid .plaque-hole { width: 8px; height: 8px; top: 8px; }
  body.seller-app .plaque-grid .plaque-hole.left { left: 8px; }
  body.seller-app .plaque-grid .plaque-hole.right { right: 8px; }
  body.seller-app .plaque-grid .plaque-brand { margin-top: 2px; font-size: .52rem; }
  body.seller-app .plaque-grid .plaque-qr { width: 56px; height: 56px; margin: 6px 0 4px; padding: 4px; }
  body.seller-app .plaque-grid .plaque-code { font-size: .82rem; }
  body.seller-app .plaque-grid .plaque-face em { font-size: .68rem; }
}
.commission-list { display: grid; gap: 10px; margin-top: 16px; }
.commission-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; padding: 14px 16px; }
.commission-row > div:first-child { min-width: 0; }
.commission-row strong { display: block; font-size: 1.02rem; overflow-wrap: anywhere; }
.commission-row p { margin: 4px 0 0; }
.commission-pay { display: grid; justify-items: end; gap: 6px; flex: none; }
.commission-pay strong { font-size: 1.12rem; }
.commission-empty { text-align: center; }
.commission-empty p { margin: 0; }
body.seller-app[data-theme="dark"] .bottom-nav { background: rgba(18, 26, 43, .96); border-top-color: #243044; }
body[data-theme="dark"] .auth-panel,
body[data-theme="dark"] .auth-panel h1,
body[data-theme="dark"] .auth-panel p,
body[data-theme="dark"] .auth-panel label,
body[data-theme="dark"] .auth-panel .check { color: #142033; }
body[data-theme="dark"] .auth-panel .muted { color: #5d6b80; }
body[data-theme="dark"] .auth-panel .auth-kicker,
body[data-theme="dark"] .auth-panel a,
body[data-theme="dark"] .auth-panel .peek { color: #1f5eff; }
body[data-theme="dark"] .auth-panel .field input,
body[data-theme="dark"] .auth-panel .field input:focus { background: #f6f8fb; color: #142033; border-color: #d5deea; }
body[data-theme="dark"] .auth-panel .field input:focus { background: #fff; }
body[data-theme="dark"] .auth-aside,
body[data-theme="dark"] .auth-aside h2,
body[data-theme="dark"] .auth-aside .auth-points li { color: #f4f7fb; }
body[data-theme="dark"] .auth-aside p { color: #9eb4ff; }
body.seller-app[data-theme="dark"] .bottom-nav a { color: #b7c3d6; }
body.seller-app[data-theme="dark"] .bottom-nav a.is-active { background: #1f5eff; color: #fff; }
tbody td.collect-late { color: #9a3412; font-weight: 700; }
tbody td.collect-today { color: #1d4ed8; font-weight: 700; }
body[data-theme="dark"] tbody td.collect-late { color: #ffb4a2; }
body[data-theme="dark"] tbody td.collect-today { color: #9db7ff; }
.report-wrap { max-width: 980px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-actions form { margin: 0; }
.report-doc { display: grid; gap: 14px; max-width: 980px; }
.g-sheet { background: #fff; color: #202124; border: 1px solid #e8eaed; border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(60,64,67,.08), 0 8px 24px rgba(60,64,67,.06); }
.g-profile { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.g-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.g-rate strong { font-family: Manrope, sans-serif; font-size: 2rem; line-height: 1; letter-spacing: -.04em; color: #202124; }
.g-map { width: 100%; height: 200px; border: 0; border-radius: 12px; background: #e8eaed; }
body[data-theme="dark"] .g-map { background: #303134; }
.report-actions .btn { height: 40px; border-radius: 999px; padding: 0 16px; font-size: .9rem; }
.report-actions .btn svg { width: 16px; height: 16px; flex: none; }
.g-kicker { margin: 0 0 6px; color: #1a73e8; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.g-sheet h2 { margin: 0; color: #202124; font-size: 1.85rem; letter-spacing: -.03em; }
.g-sheet h3 { margin: 0 0 14px; color: #202124; font-size: 1.05rem; }
.g-place, .g-meta, .g-read { margin: 6px 0 0; color: #5f6368; }
.g-score { display: grid; justify-items: end; gap: 4px; min-width: 180px; text-align: right; }
.g-score strong { font-family: Manrope, sans-serif; font-size: 3rem; line-height: 1; letter-spacing: -.04em; color: #202124; }
.g-score span, .g-company em, .g-metrics em { color: #5f6368; font-style: normal; font-size: .88rem; }
.g-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.g-star { position: relative; display: inline-block; flex: none; }
.g-star svg { display: block; width: 100%; height: 100%; }
.g-star svg.on { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--fill)) 0 0); }
.g-star-base { fill: #e8eaed; }
.g-star-on { fill: #fbbc04; }
.g-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.g-metrics article { background: #f8f9fa; border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.g-metrics span { color: #5f6368; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.g-metrics strong { font-family: Manrope, sans-serif; font-size: 1.7rem; letter-spacing: -.03em; color: #202124; }
.g-metrics em { display: flex; align-items: center; gap: 6px; }
.g-metrics .is-up, .g-company-side .is-up { color: #137333; }
.g-metrics small { color: #5f6368; font-size: .78rem; line-height: 1.35; }
.g-metrics small.is-up { color: #137333; font-weight: 700; }
.g-story { margin: 14px 0 0; color: #3c4043; line-height: 1.5; }
.g-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fef7e0; color: #7a5b00; }
.g-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-letterhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.g-letterhead img { width: 168px; height: auto; display: block; }
.g-letterhead .logo-dark { display: none; }
.g-letterhead div { text-align: right; }
.g-letterhead strong { display: block; font-size: .95rem; }
.g-letterhead span { color: var(--muted); font-size: .85rem; }
.g-lead { margin: 0 0 14px; line-height: 1.5; color: #3c4043; }
.g-wins { display: grid; }
.g-wins article { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 12px; align-items: center; margin: 0; padding: 14px 0; border-top: 1px solid #e8eaed; }
.g-wins article:first-child { border-top: 0; padding-top: 0; }
.g-wins strong { font-family: Manrope, sans-serif; font-size: 1.7rem; letter-spacing: -.03em; color: #137333; }
.g-wins b { color: #202124; }
.g-wins p { margin: 0; color: #5f6368; line-height: 1.35; }
.g-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-tiles article { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: #e6f4ea; }
.g-tiles strong { font-family: Manrope, sans-serif; font-size: 1.7rem; letter-spacing: -.03em; color: #137333; }
.g-tiles span { color: #137333; font-size: .82rem; font-weight: 700; }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.g-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; margin: 0; padding: 12px 0; border-top: 1px solid #e8eaed; }
.g-steps li:first-child { border-top: 0; padding-top: 0; }
.g-steps li::before { counter-increment: step; content: counter(step); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; background: #e8f0fe; color: #1a73e8; font-weight: 700; display: grid; place-items: center; }
.g-steps b { color: #202124; }
.g-steps p { margin: 0; color: #3c4043; line-height: 1.45; }
body[data-theme="dark"] .g-letterhead .logo-paper { display: none; }
body[data-theme="dark"] .g-letterhead .logo-dark { display: block; }
body[data-theme="dark"] .g-letterhead strong { color: #e8eaed; }
body[data-theme="dark"] .g-lead,
body[data-theme="dark"] .g-story,
body[data-theme="dark"] .g-steps p { color: #e8eaed; }
body[data-theme="dark"] .g-wins b { color: #e8eaed; }
body[data-theme="dark"] .g-wins p { color: #9aa0a6; }
body[data-theme="dark"] .g-wins strong { color: #81c995; }
body[data-theme="dark"] .g-wins article { border-top-color: #3c4043; }
body[data-theme="dark"] .g-steps b { color: #e8eaed; }
body[data-theme="dark"] .g-steps li { border-top-color: #3c4043; }
body[data-theme="dark"] .g-steps li::before { background: #394457; color: #8ab4f8; }
body[data-theme="dark"] .g-tiles article { background: #1e3a2f; }
body[data-theme="dark"] .g-tiles strong,
body[data-theme="dark"] .g-tiles span { color: #81c995; }
.g-insights { display: grid; gap: 10px; }
.g-insight { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #f8f9fa; }
.g-insight.is-good { grid-template-columns: 72px 1fr; background: #e6f4ea; }
.g-insight strong { font-family: Manrope, sans-serif; font-size: 1.45rem; letter-spacing: -.03em; color: #202124; }
.g-insight b { display: block; color: #202124; }
.g-insight p { margin: 3px 0 0; color: #3c4043; line-height: 1.4; }
.g-insight.is-good { background: #e6f4ea; }
.g-insight.is-good strong, .g-insight.is-good b { color: #137333; }
.g-plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.g-plate { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #f8f9fa; color: #202124; border: 1px solid transparent; }
.g-plate:hover { border-color: #d2e3fc; }
.g-plate b { font-size: 1.15rem; color: #1a73e8; }
.g-plate-stats { display: flex; gap: 14px; color: #5f6368; font-size: .85rem; }
.g-plate-stats strong { color: #202124; font-size: 1rem; }
.g-bar { display: block; height: 6px; border-radius: 999px; background: #fbbc04; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: #1a73e8; }
.g-route { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.g-route li { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #f8f9fa; color: #3c4043; }
.g-route b { color: #202124; }
.g-list li { margin: 0; padding-left: 28px; position: relative; line-height: 1.45; color: #3c4043; }
.g-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: #fbbc04; }
.g-list.is-good li::before { background: #34a853; }
.g-plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-plates li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #f8f9fa; }
.g-plates a { font-weight: 700; color: #1a73e8; }
.g-counts { margin-left: auto; display: flex; gap: 8px; }
.g-counts span { border-radius: 999px; background: #fff; border: 1px solid #e8eaed; padding: 4px 10px; color: #3c4043; font-weight: 600; font-size: .8rem; }
.g-page { display: grid; gap: 8px; }
.g-page + .g-page { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e8eaed; }
.g-page p { margin: 0; color: #202124; }
.g-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.g-checks li { margin: 0; border-radius: 999px; padding: 6px 10px; font-size: .8rem; font-weight: 700; }
.g-checks .is-on { background: #e6f4ea; color: #137333; }
.g-checks .is-off { background: #fce8e6; color: #c5221f; }
.g-companies { display: grid; gap: 10px; }
.g-company { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; color: #202124; border: 1px solid #e8eaed; border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(60,64,67,.08); }
.g-company:hover { border-color: #d2e3fc; box-shadow: 0 8px 20px rgba(26,115,232,.08); }
.g-company strong { display: block; color: #202124; font-size: 1.05rem; }
.g-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.g-line b { color: #202124; }
.g-company-side { display: grid; justify-items: end; gap: 6px; color: #5f6368; font-size: .85rem; text-align: right; }
.g-entry { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #e8eaed; color: #202124; box-shadow: 0 1px 2px rgba(60,64,67,.08); }
.g-entry strong { display: block; font-size: 1.15rem; color: #202124; }
.g-entry em { display: block; margin-top: 4px; color: #5f6368; font-style: normal; }
.g-entry b { color: #1a73e8; }
body[data-theme="dark"] .g-sheet,
body[data-theme="dark"] .g-company,
body[data-theme="dark"] .g-entry { background: #202124; color: #e8eaed; border-color: #3c4043; box-shadow: none; }
body[data-theme="dark"] .g-sheet h2,
body[data-theme="dark"] .g-sheet h3,
body[data-theme="dark"] .g-rate strong,
body[data-theme="dark"] .g-score strong,
body[data-theme="dark"] .g-metrics strong,
body[data-theme="dark"] .g-company strong,
body[data-theme="dark"] .g-entry strong,
body[data-theme="dark"] .g-page p,
body[data-theme="dark"] .g-line b,
body[data-theme="dark"] .g-list li { color: #e8eaed; }
body[data-theme="dark"] .g-place,
body[data-theme="dark"] .g-meta,
body[data-theme="dark"] .g-read,
body[data-theme="dark"] .g-score span,
body[data-theme="dark"] .g-rate span,
body[data-theme="dark"] .g-company em,
body[data-theme="dark"] .g-metrics em,
body[data-theme="dark"] .g-metrics span,
body[data-theme="dark"] .g-company-side,
body[data-theme="dark"] .g-entry em { color: #9aa0a6; }
body[data-theme="dark"] .g-kicker,
body[data-theme="dark"] .g-plates a,
body[data-theme="dark"] .g-entry b { color: #8ab4f8; }
body[data-theme="dark"] .g-metrics article,
body[data-theme="dark"] .g-plates li { background: #303134; }
body[data-theme="dark"] .g-star-base { fill: #5f6368; }
body[data-theme="dark"] .g-counts span { background: #292a2d; border-color: #5f6368; color: #e8eaed; }
body[data-theme="dark"] .g-insight { background: #303134; }
body[data-theme="dark"] .g-insight strong,
body[data-theme="dark"] .g-insight b,
body[data-theme="dark"] .g-insight p,
body[data-theme="dark"] .g-plate,
body[data-theme="dark"] .g-plate-stats strong,
body[data-theme="dark"] .g-route b,
body[data-theme="dark"] .g-route li { color: #e8eaed; }
body[data-theme="dark"] .g-insight.is-good { background: #1e3a2f; }
body[data-theme="dark"] .g-insight.is-good strong,
body[data-theme="dark"] .g-insight.is-good b { color: #81c995; }
body[data-theme="dark"] .g-insight.is-good p { color: #e8eaed; }
body[data-theme="dark"] .g-plate,
body[data-theme="dark"] .g-route li { background: #303134; }
body[data-theme="dark"] .g-plate b { color: #8ab4f8; }
body[data-theme="dark"] .g-plate-stats,
body[data-theme="dark"] .g-route li { color: #9aa0a6; }
body[data-theme="dark"] .g-company-side .is-up,
body[data-theme="dark"] .g-metrics .is-up,
body[data-theme="dark"] .g-metrics small.is-up { color: #81c995; }
body[data-theme="dark"] .g-metrics small { color: #9aa0a6; }
body[data-theme="dark"] .g-checks .is-on { background: #1e3a2f; color: #81c995; }
body[data-theme="dark"] .g-checks .is-off { background: #3c1f1e; color: #f28b82; }
body[data-theme="dark"] .g-page + .g-page { border-top-color: #3c4043; }
body[data-theme="dark"] .report-actions .btn { background: #8ab4f8; color: #202124; }
body[data-theme="dark"] .report-actions .btn.secondary { background: #303134; color: #e8eaed; border-color: #5f6368; }
@media (max-width: 800px) {
  .g-profile, .g-company, .g-entry { display: grid; grid-template-columns: 1fr; }
  .g-split { grid-template-columns: 1fr; }
  .g-metrics { grid-template-columns: 1fr 1fr; }
  .g-score, .g-company-side { justify-items: start; text-align: left; }
  .report-wrap .page-head { align-items: stretch; }
  .report-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .report-actions form,
  .report-actions .btn { width: 100%; }
  .report-actions form .btn { width: 100%; }
  .report-actions .report-google { grid-column: 1 / -1; }
  .g-letterhead { justify-content: center; }
  .g-letterhead div { display: none; }
  .g-read { text-align: center; }
}
@page { margin: 0; size: auto; }
@media print {
  .sidebar, .topbar, .no-print, .toast { display: none !important; }
  body, .shell, .workspace, .content { display: block; padding: 0; margin: 0; max-width: none; background: #fff !important; color: #202124 !important; }
  .report-wrap { padding: 14mm 12mm; }
  .report-doc { max-width: none; }
  .g-sheet, .g-insight, .g-tiles article, .g-metrics article { background: #fff !important; color: #202124 !important; box-shadow: none; break-inside: avoid; border-color: #e8eaed !important; }
  .g-metrics article { background: #f8f9fa !important; }
  .g-tiles article { background: #e6f4ea !important; }
  .g-tiles strong, .g-tiles span { color: #137333 !important; }
  .g-sheet h2, .g-sheet h3, .g-lead, .g-story, .g-wins b, .g-steps b, .g-steps p, .g-place, .g-meta, .g-read, .g-rate strong, .g-rate span, .g-metrics strong, .g-metrics em, .g-metrics span, .g-letterhead strong, .g-letterhead span { color: #202124 !important; }
  .g-wins strong { color: #137333 !important; }
  .g-wins p { color: #5f6368 !important; }
  .g-wins article { border-top-color: #e8eaed !important; }
  .g-letterhead { justify-content: space-between !important; }
  .g-letterhead div { display: block !important; }
  .g-place, .g-meta, .g-read, .g-rate span, .g-metrics em, .g-metrics span, .g-metrics small, .g-letterhead span { color: #5f6368 !important; }
  .g-metrics small.is-up, .g-metrics .is-up { color: #137333 !important; }
  .g-steps li { border-top-color: #e8eaed !important; }
  .g-steps li::before { background: #e8f0fe !important; color: #1a73e8 !important; }
  .g-letterhead .logo-paper { display: block !important; }
  .g-letterhead .logo-dark { display: none !important; }
  .g-map { display: none; }
  .g-profile { grid-template-columns: 1fr; }
  .g-star-on { fill: #fbbc04 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.seller-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.seller-status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #e5f6ee; color: #0d7a45; font-size: .75rem; font-weight: 700; letter-spacing: 0; }
.seller-status.is-off { background: #fde8e8; color: var(--danger); }
.seller-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.seller-avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: #1f5eff; color: #fff; font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.05rem; }
.seller-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seller-stats .card { position: relative; overflow: hidden; padding-left: 22px; }
.seller-stats .card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.seller-stats .is-available::before { background: #16a34a; }
.seller-stats .is-paid::before { background: #1f5eff; }
.seller-stats .is-plates::before { background: #6d5efc; }
.seller-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.seller-panel h2 { margin-bottom: 4px; }
.seller-panel > .muted { margin: 0 0 16px; }
.money-field { position: relative; }
.money-field span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #5d6b80; font-weight: 700; pointer-events: none; }
.money-field input { padding-left: 42px; }
.seller-pay-btn { width: 100%; height: 50px; margin-top: 2px; border-radius: 14px; background: linear-gradient(180deg, #4c86ff 0%, #1f5eff 100%); box-shadow: 0 10px 22px rgba(31, 94, 255, .28); }
.seller-pay-btn:hover { filter: brightness(1.06); }
.seller-assign-btn, .seller-remove-btn { min-width: 118px; }
.pay-history { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pay-history h3 { margin: 0 0 12px; font-size: .95rem; }
.pay-empty { margin: 0; }
.pay-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pay-log li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f6f8fb; border: 1px solid var(--line); }
.pay-log strong { flex: none; font-family: Manrope, sans-serif; font-size: 1.05rem; letter-spacing: -.02em; }
.pay-log span { display: grid; justify-items: end; gap: 2px; min-width: 0; text-align: right; color: var(--muted); font-size: .82rem; }
.pay-log em { font-style: normal; color: var(--ink); font-weight: 600; }
.plate-box + .plate-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.plate-box h3 { margin: 0 0 4px; font-size: .98rem; }
.plate-box .muted { margin: 0 0 12px; }
.seller-plates { margin-top: 16px; }
.seller-plates td.actions { text-align: right; white-space: nowrap; }
.seller-plates td.actions form { margin: 0; }
.seller-plates td.actions .btn { height: 34px; }
body[data-theme="dark"] .seller-status { background: #143528; color: #8ee0b5; }
body[data-theme="dark"] .seller-status.is-off { background: #3a1d24; color: #ffc9c9; }
body[data-theme="dark"] .money-field span { color: #c5d2e4; }
body[data-theme="dark"] .pay-log li { background: #1a2438; border-color: #3a4d6b; }
body[data-theme="dark"] .pay-log em { color: #f4f7fb; }
body[data-theme="dark"] .seller-pay-btn { color: #fff; }
@media (max-width: 980px) {
  .seller-stats, .seller-layout { grid-template-columns: 1fr; }
  .seller-head, .seller-head .seller-id { width: 100%; }
}
.plate-rank { margin-top: 16px; }
.plate-rank-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plate-rank-head h2, .plate-rank-head p, .plate-rank-empty { margin: 0; }
.plate-rank-empty { margin-top: 14px; }
.plate-rank-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.plate-rank-list a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f6f8fb; border: 1px solid var(--line); color: inherit; }
.plate-rank-list a:hover { border-color: #8eb0ff; background: #f3f7ff; }
.plate-rank-pos { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #e7edf6; color: #5d6b80; font-family: Manrope, sans-serif; font-weight: 700; }
.plate-rank-list li:nth-child(1) .plate-rank-pos { background: #fff1c9; color: #8a5b00; }
.plate-rank-list li:nth-child(2) .plate-rank-pos { background: #e8eef6; color: #3d4d66; }
.plate-rank-list li:nth-child(3) .plate-rank-pos { background: #f8e6d8; color: #8a4b22; }
.plate-rank-main { min-width: 0; }
.plate-rank-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.plate-rank-title b { color: #1f5eff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: -.02em; }
.plate-rank-title b.company-rank-name { color: inherit; font-family: Manrope, Inter, sans-serif; font-size: .98rem; letter-spacing: -.02em; white-space: normal; }
.plate-rank-title em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-style: normal; font-size: .86rem; }
.plate-rank-bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: #e3e9f2; overflow: hidden; }
.plate-rank-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7aa4ff, #1f5eff); }
.plate-rank-count { text-align: right; }
.plate-rank-count strong { display: block; font-family: Manrope, sans-serif; font-size: 1.15rem; letter-spacing: -.03em; line-height: 1.1; }
.plate-rank-count small { color: var(--muted); font-size: .75rem; }
body[data-theme="dark"] .plate-rank-list a { background: #1a2438; border-color: #3a4d6b; }
body[data-theme="dark"] .plate-rank-list a:hover { background: #22304a; border-color: #6f97ef; }
body[data-theme="dark"] .plate-rank-pos { background: #243044; color: #d7e2f2; }
body[data-theme="dark"] .plate-rank-list li:nth-child(1) .plate-rank-pos { background: #4a3410; color: #ffe3a3; }
body[data-theme="dark"] .plate-rank-list li:nth-child(2) .plate-rank-pos { background: #2c3a50; color: #e8eef8; }
body[data-theme="dark"] .plate-rank-list li:nth-child(3) .plate-rank-pos { background: #3d2a22; color: #f3c7a8; }
body[data-theme="dark"] .plate-rank-title b { color: #8eb4ff; }
body[data-theme="dark"] .plate-rank-title b.company-rank-name { color: #f4f7fb; }
.client-head .page-actions { display: flex; flex-wrap: wrap; }
.client-address { margin: 6px 0 0; line-height: 1.45; }
.client-facts { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); }
.client-facts .card strong { font-size: 1.15rem; }
.client-facts a { color: #1f5eff; }
.client-plates-card { margin-top: 16px; }
.client-plates { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.client-plates a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f6f8fb; color: inherit; }
.client-plates a:hover { border-color: #8eb0ff; background: #f3f7ff; }
.client-plates b { color: #1f5eff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.client-plates span { color: var(--muted); min-width: 0; }
.client-notes { margin: 14px 0 0; color: var(--muted); }
.client-delete { margin-top: 16px; }
body[data-theme="dark"] .client-facts a,
body[data-theme="dark"] .client-plates b { color: #8eb4ff; }
body[data-theme="dark"] .client-plates a { background: #1a2438; border-color: #3a4d6b; }
body[data-theme="dark"] .client-plates a:hover { background: #22304a; border-color: #6f97ef; }
@media (max-width: 640px) {
  .client-head .page-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .client-head .page-actions .btn { width: auto; }
  .client-plates a { grid-template-columns: auto minmax(0, 1fr); }
  .client-plates em { grid-column: 2; justify-self: start; }
}
body[data-theme="dark"] .plate-rank-bar { background: #243044; }
body[data-theme="dark"] .plate-rank-count strong { color: #f4f7fb; }
@media (max-width: 640px) {
  .plate-rank-list a { grid-template-columns: 32px minmax(0, 1fr); }
  .plate-rank-count { grid-column: 2; display: flex; gap: 10px; align-items: baseline; text-align: left; }
  .plate-rank-title { flex-wrap: wrap; }
}
.cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 > .plate-rank { margin-top: 0; }
.grid-2 .plate-rank-title { flex-direction: column; align-items: flex-start; gap: 2px; }
.grid-2 .plate-rank-title em { width: 100%; }
@media (max-width: 980px) {
  .cards.cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards.cards-3 { grid-template-columns: 1fr; }
}
.page-look { margin-top: 16px; }
.page-look-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr); gap: 14px; }
.look-card { display: grid; gap: 8px; min-width: 0; cursor: pointer; }
.look-card > span:first-child { font-weight: 600; }
.look-preview { height: 148px; border-radius: 18px; border: 1px dashed #c5d0e0; background: #f4f7fb; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.look-preview img { width: 100%; height: 100%; object-fit: cover; }
.look-preview.is-logo { background: #fff; }
.look-preview.is-logo img { object-fit: contain; padding: 16px; }
.look-preview em { font-style: normal; }
.look-file { max-width: 100%; }
.look-video { display: block; width: min(320px, 100%); max-height: 180px; margin: 8px 0; border-radius: 16px; background: #05070d; }
.page-look .actions { margin-top: 12px; }
body[data-theme="dark"] .look-preview { background: #1a2438; border-color: #3a4d6b; color: #c5d2e4; }
body[data-theme="dark"] .look-preview.is-logo { background: #121a2b; }
@media (max-width: 720px) {
  .page-look-grid { grid-template-columns: 1fr; }
}
.editor-block { margin-top: 22px; }
.editor-block h3 { margin: 0 0 6px; }
.editor-block > .btn { margin-top: 10px; }
.editor-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.editor-row select { width: 168px; }
.editor-row input { min-width: 0; }
.editor-row input[name="link_url[]"] { flex: 1; min-width: 180px; }
.editor-row input[name="product_name[]"] { flex: 1; min-width: 160px; }
.editor-row input[name="product_price[]"] { width: 120px; }
.page-look .ico { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #f3f6fb; color: #16356d; }
.page-look .ico.whatsapp { background: #25d366; color: #fff; }
.page-look .ico.instagram { background: #e1306c; color: #fff; }
.page-look .ico.facebook { background: #1877f2; color: #fff; }
.page-look .ico.tiktok { background: #111; color: #fff; }
.page-look .ico.youtube { background: #ff0033; color: #fff; }
.page-look .ico.linkedin { background: #0a66c2; color: #fff; }
.page-look .ico.map, .page-look .ico.site, .page-look .ico.other { background: #16356d; color: #fff; }
.live-editor { max-width: 560px; margin: 16px auto 0; padding: 18px; }
.live-url label { display: block; margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.live-url-line { display: flex; align-items: center; gap: 0; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #f6f8fb; overflow: hidden; }
.live-url-line span { padding: 0 0 0 12px; color: var(--muted); white-space: nowrap; }
.live-url-line input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink); padding: 0 8px; box-shadow: none; }
.live-url-line a { flex: none; padding: 0 14px; height: 46px; display: grid; place-items: center; color: #1f5eff; font-weight: 700; }
.live-card {
  position: relative;
  margin-top: 16px;
  padding: 18px 16px 22px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 50% -10%, rgba(78, 132, 255, .42), transparent 62%),
    #05070d;
  overflow: hidden;
}
.live-card.has-cover {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, .28), rgba(5, 8, 14, .82)),
    var(--cover) center/cover no-repeat;
}
.live-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.live-chip, .live-quiet, .live-add, .live-x { font: inherit; cursor: pointer; }
.live-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: #fff;
}
.live-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.live-logo { position: relative; width: 170px; min-height: 108px; margin: 18px auto 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.live-logo img { display: block; width: 170px; max-width: 100%; height: auto; max-height: 170px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.live-logo span { font-family: Manrope, sans-serif; font-size: 2.4rem; font-weight: 800; }
.live-logo em { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-style: normal; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.8); white-space: nowrap; }
.live-quiet { display: block; margin: 8px auto 0; border: 0; background: transparent; color: rgba(255,255,255,.72); text-decoration: underline; }
.live-title, .live-where, .live-card input, .live-card select, .live-card textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font: inherit;
}
.live-title { display: block; margin: 14px 0 0; text-align: center; font-family: Manrope, sans-serif; font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; resize: none; }
.live-where { margin-top: 6px; text-align: center; color: rgba(255,255,255,.82); }
.live-where::placeholder, .live-btn input::placeholder { color: rgba(255,255,255,.45); }
.live-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}
.live-btn select, .live-btn input { min-width: 0; height: 36px; }
.live-btn select { width: 118px; }
.live-btn input { flex: 1; }
.live-btn .live-price { flex: 0 0 92px; text-align: right; }
.live-card .ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); }
.live-card .ico.whatsapp { background: #25d366; }
.live-card .ico.instagram { background: #e1306c; }
.live-card .ico.facebook { background: #1877f2; }
.live-card .ico.tiktok { background: #111; }
.live-card .ico.youtube { background: #ff0033; }
.live-card .ico.linkedin { background: #0a66c2; }
.live-card .ico.map, .live-card .ico.site, .live-card .ico.other { background: #16356d; }
.live-card .ico.pix { background: #32bcad; }
.live-card .ico.catalog { background: linear-gradient(180deg, #e9c46a, #c8962f); }
.live-title.is-off { opacity: .35; text-decoration: line-through; font-size: 1.1rem; }
.live-chip.live-time { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.live-card .live-time input { width: 46px; height: 26px; padding: 0 4px; border-radius: 8px; background: rgba(255,255,255,.16); text-align: center; -moz-appearance: textfield; }
.live-pix-on { display: flex; align-items: center; gap: 6px; flex: none; color: #fff; font-size: .86rem; font-weight: 600; cursor: pointer; }
.live-card .live-pix-on input { flex: none; width: 18px; height: 18px; accent-color: #32bcad; }
.live-card option { color: #142033; background: #fff; }
.live-x { width: 32px; height: 32px; flex: none; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; }
.live-add { width: 100%; margin-top: 10px; height: 44px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.4); background: transparent; color: #fff; }
.live-kicker { margin: 22px 0 0; text-align: center; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.live-by { margin: 28px 0 0; text-align: center; color: rgba(255,255,255,.72); font-size: .82rem; }
.live-by img { display: block; width: 120px; height: auto; margin: 8px auto 0; }
.live-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.live-hint { margin: 10px 8px 0; text-align: center; color: rgba(255,255,255,.72); font-size: .84rem; line-height: 1.4; }
.live-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; color: rgba(255,255,255,.82); font-size: .9rem; }
.live-switch input { width: 18px; height: 18px; accent-color: #1f5eff; }
.live-fixed { flex: 1; font-weight: 600; }
.live-btn.has-photo {
  background:
    linear-gradient(180deg, rgba(8,16,28,.28), rgba(8,16,28,.42)),
    var(--btn-bg) center/cover no-repeat;
}
.live-bg { display: flex; flex-direction: column; gap: 4px; flex: none; align-items: stretch; min-width: 108px; }
.live-bg-pick {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.45);
  background: rgba(0,0,0,.22);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.live-bg.has-image .live-bg-pick {
  background:
    linear-gradient(180deg, rgba(8,16,28,.35), rgba(8,16,28,.5)),
    var(--btn-bg) center/cover no-repeat;
  border-style: solid;
}
.live-bg-clear {
  border: 0;
  border-radius: 10px;
  height: 28px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}
.live-save { margin-top: 14px; }
.live-save .btn { width: 100%; }
.live-card input:focus, .live-card select:focus, .live-card textarea:focus, .live-url-line input:focus { outline: none; box-shadow: none; }
body[data-theme="dark"] .live-url-line,
body[data-theme="dark"] .live-url-line input { background: #1a2438; color: #f4f7fb; }
body[data-theme="dark"] .live-card input,
body[data-theme="dark"] .live-card select,
body[data-theme="dark"] .live-card textarea { background: transparent; color: #fff; border: 0; }
