:root {
  color-scheme: dark;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  background: #10151d;
  color: #f3f5f8;
  --page: #10151d;
  --panel: #171e29;
  --ink: #f3f5f8;
  --muted: #a4afbb;
  --blue: #91b7ff;
  --blue-ink: #0d1a2d;
  --lime: #d4ee72;
  --error: #ffb6a9;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--page); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.hidden { display: none !important; }
.topbar { height: 76px; padding: 0 max(32px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #26313d; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 760; letter-spacing: .11em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--lime); color: #111821; font-size: 19px; font-weight: 850; letter-spacing: -.06em; clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%); }
.brand-light { color: #aebaca; font-weight: 520; }
.topbar-right { display: flex; align-items: center; gap: 24px; color: #d6dce2; font-size: 13px; }
.secure-label { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.page-shell { max-width: 1320px; margin: auto; padding: 66px 32px 24px; }
.auth-layout { min-height: calc(100vh - 166px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: clamp(54px, 8vw, 120px); padding-bottom: 44px; }
.section-label { margin: 0 0 15px; color: #b4c4d8; font-size: 11px; font-weight: 780; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(42px, 5.1vw, 68px); line-height: 1.03; letter-spacing: -.055em; font-weight: 680; }
h2 { margin-bottom: 10px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: 18px; margin-bottom: 7px; }
.intro-copy { max-width: 50ch; margin-bottom: 34px; color: #bbc5d0; font-size: 17px; line-height: 1.65; }
.quiet-note { max-width: 60ch; color: #8896a4; font-size: 12px; line-height: 1.55; }
.download-link { display: inline-flex; align-items: center; min-height: 48px; margin: 2px 0 20px; color: var(--blue); font-size: 14px; font-weight: 720; text-underline-offset: 4px; }
.download-link:hover { color: #c3d7ff; }
.pairing-illustration { width: min(420px, 100%); margin: 6px 0 32px; display: flex; flex-direction: column; align-items: center; }
.screen-outline { width: 100%; height: 94px; border: 2px solid #66798b; display: flex; align-items: center; justify-content: center; position: relative; color: #c8d1da; font-size: 12px; font-weight: 760; letter-spacing: .19em; }
.screen-outline::after { content: ""; width: 54px; height: 9px; border-bottom: 2px solid #66798b; position: absolute; bottom: -11px; }
.screen-indicator { position: absolute; right: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.pair-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #8493a2; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.pair-line span { width: 72px; height: 1px; background: #43505d; }
.phone-outline { width: 68px; height: 81px; border: 2px solid #66798b; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.phone-outline b { color: var(--lime); font-size: 15px; letter-spacing: .2em; }
.phone-speaker { width: 19px; height: 2px; background: #66798b; border-radius: 2px; }
.auth-panel, .workspace-panel { background: var(--panel); border: 1px solid #2c3743; padding: clamp(26px, 3vw, 38px); }
.auth-panel { max-width: 450px; width: 100%; justify-self: end; }
.panel-heading { margin-bottom: 26px; }
.muted { color: var(--muted); line-height: 1.55; }
.panel-heading .muted { margin-bottom: 0; font-size: 14px; }
form { display: flex; flex-direction: column; gap: 10px; }
label { margin-top: 7px; color: #d5dce4; font-size: 13px; font-weight: 630; }
input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #485765; border-radius: 3px; background: #111822; color: var(--ink); }
input[type="file"] { padding: 10px; color: #b7c2cd; font-size: 12px; }
input::placeholder { color: #8794a2; opacity: 1; }
.button { min-height: 46px; padding: 0 17px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 13px; font-weight: 740; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { background: var(--blue); color: var(--blue-ink); }
.button-primary:hover:not(:disabled) { background: #b0ccff; }
.button-wide { width: 100%; margin-top: 17px; }
.button-outline { border-color: #596777; background: transparent; color: var(--ink); }
.button-outline:hover { background: #26313d; }
.button-text { border: 0; background: transparent; color: #c6d1dc; }
.button-text:hover { color: white; }
.text-link { padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.message { margin: 14px 0; padding: 12px 14px; border: 1px solid #52606c; color: var(--ink); font-size: 13px; line-height: 1.5; }
.message.error { border-color: #9d655e; color: var(--error); }
.message.success { border-color: #718b55; color: var(--lime); }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.account-head h1 { margin-bottom: 10px; font-size: clamp(38px, 4.8vw, 60px); }
.account-head .muted { margin-bottom: 0; font-size: 14px; }
.account-pair { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 6px; font-weight: 720; font-size: 14px; line-height: 1.35; }
.account-pair small { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 450; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; align-items: start; }
.workspace-panel { min-width: 0; padding: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-head .section-label { margin-bottom: 9px; }
.section-head h2 { margin-bottom: 0; }
.count-label { color: #a9b7c6; font-size: 10px; font-weight: 740; letter-spacing: .12em; white-space: nowrap; }
.playlist-list { margin-top: 20px; }
.playlist-row { display: flex; align-items: center; gap: 14px; min-height: 72px; border-top: 1px solid #313d49; }
.playlist-icon { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; background: #253344; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.playlist-info { flex: 1; min-width: 0; }
.playlist-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.playlist-info span { display: block; margin-top: 4px; color: #a4afbb; font-size: 11px; }
.delete-button { min-width: 48px; min-height: 44px; border: 1px solid #56616e; background: transparent; color: #d8e0e7; cursor: pointer; font-size: 11px; }
.delete-button:hover { border-color: var(--error); color: var(--error); }
.empty-state { padding: 48px 18px; border-top: 1px solid #313d49; text-align: center; }
.empty-state h3 { margin-top: 15px; }
.empty-state p { max-width: 40ch; margin: auto; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin: auto; border: 1px solid #596777; color: var(--lime); font-size: 24px; }
.add-panel h2 { margin-bottom: 20px; }
.format-tabs { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid #35414d; }
.format-tab { min-height: 42px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #b0bbc6; cursor: pointer; font-size: 12px; font-weight: 680; }
.format-tab.selected { border-bottom-color: var(--lime); color: var(--ink); }
.format-tab:hover { color: white; }
.security-note { display: flex; gap: 9px; margin: 20px 0 0; color: #aab6c2; font-size: 11px; line-height: 1.55; }
.security-note span { color: var(--lime); font-size: 9px; }
.pair-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; padding: 20px 24px; border: 1px solid #657747; background: #1b2419; }
.pair-notice > div { flex: 1 1 300px; }
.pair-notice h2 { font-size: 21px; }
.pair-notice .section-label { color: var(--lime); }
.pair-notice .muted { margin-bottom: 0; font-size: 13px; }
.devices-section { margin-top: 52px; }
.devices-section > .muted { margin: 14px 0 0; font-size: 13px; }
.device-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 14px; border-top: 1px solid #303b47; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; border-bottom: 1px solid #303b47; }
.device-row strong { display: block; font-size: 13px; }
.device-row small { display: block; margin-top: 4px; color: #9fabb7; font-size: 11px; }
.members-table-wrap { overflow-x: auto; border: 1px solid #2c3743; background: var(--panel); }
.members-table { width: 100%; border-collapse: collapse; text-align: left; }
.members-table th, .members-table td { padding: 15px 18px; border-bottom: 1px solid #303b47; vertical-align: middle; }
.members-table th { color: #b4c4d8; font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.members-table td { color: #e4e9ee; font-size: 13px; }
.members-table tr:last-child td { border-bottom: 0; }
.member-email { font-weight: 700; overflow-wrap: anywhere; }
.member-role { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.member-install-id { max-width: 220px; overflow-wrap: anywhere; color: #d4ee72; font-family: Consolas, ui-monospace, monospace; font-size: 14px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.member-state { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid #596777; color: #dbe3ea; font-size: 11px; white-space: nowrap; }
.member-state.active { border-color: #718b55; color: var(--lime); }
.member-state.pending { border-color: #8b7848; color: #f0d486; }
.member-state.disabled { border-color: #875c56; color: var(--error); }
.member-action { min-height: 40px; padding: 0 12px; border: 1px solid #596777; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; white-space: nowrap; }
.member-action:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.member-action:disabled { cursor: wait; opacity: .6; }
.member-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.member-action.danger:hover:not(:disabled) { border-color: #e5484d; color: #ff8a8e; }
.auth-extra { margin: 14px 0 0; text-align: center; }
.mail-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; color: #dde3e9; }
.mail-script { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #0c1118; color: #cfe3a3; border: 1px solid #2c3743; padding: 10px; margin-bottom: 12px; }
.member-action.warning { border-color: #f5a524; color: #ffc861; font-weight: 700; }
.settings-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid #2c3743; background: var(--panel); }
.settings-form input { width: 110px; }
.settings-form #idle-video, .settings-form #app-payment { width: min(100%, 520px); }
.wide-form input { width: min(100%, 320px); }
.resellers-section { margin-top: 34px; }
#reseller-view .members-table-wrap { margin-top: 12px; }
.settings-form textarea { width: 100%; min-height: 76px; background: #111822; color: var(--ink); border: 2px solid #2c3743; border-radius: 3px; padding: 10px 12px; font: inherit; font-size: 14px; }
.settings-form small { flex-basis: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 0; border-top: 1px solid #26313d; color: #93a0ad; font-size: 11px; }

@media (max-width: 800px) {
  .page-shell { padding: 40px 24px 22px; }
  .auth-layout { grid-template-columns: 1fr; gap: 34px; max-width: 540px; margin: auto; }
  .auth-panel { justify-self: stretch; max-width: none; }
  .pairing-illustration { max-width: 380px; }
  .account-grid { grid-template-columns: 1fr; }
  .add-panel { grid-row: 1; }
  .account-head { align-items: flex-start; }
}
@media (max-width: 520px) {
  .topbar { height: 64px; padding: 0 18px; }
  .topbar-right { gap: 8px; font-size: 11px; }
  .page-shell { padding: 31px 18px 18px; }
  .auth-layout { gap: 24px; padding-bottom: 32px; }
  h1 { font-size: 43px; }
  .intro-copy { font-size: 15px; }
  .screen-outline { height: 74px; }
  .auth-panel, .workspace-panel { padding: 22px 19px; }
  .account-head { flex-direction: column; gap: 18px; }
  .account-pair { align-self: flex-start; }
  .pair-notice { padding: 17px; }
  .pair-notice .button { flex: 1; }
  .device-list { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 8px; }
  .members-table-wrap { overflow: visible; }
  .members-table, .members-table tbody, .members-table tr, .members-table td { display: block; width: 100%; }
  .members-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .members-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 16px; border-bottom: 1px solid #303b47; }
  .members-table tr:last-child { border-bottom: 0; }
  .members-table td { padding: 0; border: 0; }
  .members-table td::before { display: block; margin-bottom: 5px; color: #b4c4d8; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; content: attr(data-label); }
  .members-table td:nth-child(1), .members-table td:nth-child(2), .members-table td:nth-child(3), .members-table td:nth-child(6) { grid-column: 1 / -1; }
  .members-table td:nth-child(5) { align-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 8px max(32px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid #26313d; background: #131a24; font-size: 14px; }
.app-bar-label { color: #93a0ad; font-size: 11px; font-weight: 780; letter-spacing: 0.15em; }
.app-bar a { color: var(--blue); font-weight: 700; text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; }
.app-bar a:hover { color: #c3d7ff; }
@media (max-width: 760px) { .app-bar { padding: 8px 24px; gap: 4px 16px; } }

/* Category editor under a list */
.playlist-row .delete-button + .delete-button { margin-left: -6px; }
.cat-editor { padding: 14px 0 20px; border-top: 1px dashed #313d49; font-size: 13px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cat-tab { min-height: 38px; padding: 0 12px; border: 1px solid #56616e; background: transparent; color: #d8e0e7; cursor: pointer; font-size: 12px; }
.cat-tab.active { border-color: var(--lime); color: var(--lime); }
.cat-hint { margin: 6px 0 10px; font-size: 12px; }
.cat-adult { margin-bottom: 10px; white-space: normal; align-items: flex-start; }
.cat-list { max-height: 460px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 1px solid #313d49; }
.cat-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto auto; grid-template-areas: "drag name hide lock moves"; align-items: center; gap: 8px 10px; padding: 6px 8px; border-top: 1px solid #263140; }
.cat-row .cat-drag { grid-area: drag; }
.cat-row .cat-name { grid-area: name; }
.cat-row .cat-hide { grid-area: hide; }
.cat-row .cat-lock { grid-area: lock; }
.cat-moves { grid-area: moves; display: inline-flex; gap: 6px; }
.cat-row:first-child { border-top: 0; }
.cat-drag { width: 28px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #8d9aa8; font-size: 20px; cursor: grab; touch-action: none; user-select: none; border-radius: 4px; }
.cat-drag:hover { color: var(--ink); background: #202b38; }
.cat-dragging { background: #202b38; outline: 2px solid #d4ee72; position: relative; z-index: 1; }
.cat-dragging .cat-drag { cursor: grabbing; }
.cat-drag-active, .cat-drag-active * { cursor: grabbing !important; user-select: none; }
.cat-drag-active { touch-action: none; }
.cat-hidden .cat-name { color: #6f7b88; text-decoration: line-through; }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-move { width: 34px; height: 34px; border: 1px solid #485765; background: transparent; color: var(--ink); cursor: pointer; }
.cat-check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #c6d1dc; cursor: pointer; }
.cat-check input { width: 18px; min-height: 18px; height: 18px; padding: 0; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pin-form { margin-top: 24px; padding-top: 18px; border-top: 1px solid #313d49; }
.pin-row { display: flex; gap: 10px; }
.pin-row input { flex: 1; }
.cat-check.cat-adult { white-space: normal; display: flex; gap: 8px; line-height: 1.4; }
.cat-check.cat-adult input { flex: 0 0 18px; margin-top: 1px; }
.playlist-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) {
  /* Phone: each list is a card — name on top, its four buttons below in a 2×2 grid. */
  .playlist-row { display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 10px 12px; padding: 14px 0; align-items: center; }
  .playlist-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .playlist-actions .delete-button { width: 100%; min-height: 46px; font-size: 14px; }
  .playlist-row .delete-button + .delete-button { margin-left: 0; }
  .cat-editor { font-size: 15px; }
  .cat-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cat-tabs .cat-tab { min-height: 44px; padding: 0 6px; font-size: 14px; }
  .cat-actions .cat-tab, .cat-actions .button { flex: 1 1 100%; min-height: 46px; }
  .cat-hint { font-size: 14px; line-height: 1.5; }
  .cat-list { max-height: 62vh; }
  /* Category: drag handle and name with ▲▼ on the first line, Hide and Lock as two big toggles below. */
  .cat-tabs > :nth-child(n + 4) { grid-column: 1 / -1; }
  .cat-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: none; padding: 10px 10px; gap: 8px; }
  .cat-row .cat-drag { grid-row: 1 / 3; grid-column: 1; }
  .cat-row .cat-name { grid-row: 1; grid-column: 2 / 4; padding-right: 92px; align-self: center; }
  .cat-row .cat-moves { grid-row: 1; grid-column: 2 / 4; justify-self: end; }
  .cat-row .cat-hide { grid-row: 2; grid-column: 2; }
  .cat-row .cat-lock { grid-row: 2; grid-column: 3; }
  .cat-name { font-size: 15px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
  .cat-drag { height: 100%; min-height: 44px; font-size: 22px; }
  .cat-move { width: 40px; height: 40px; }
  .cat-hide, .cat-lock { justify-content: center; min-height: 40px; padding: 0 10px; border: 1px solid #364453; border-radius: 8px; font-size: 14px; }
  .cat-hide input, .cat-lock input { width: 20px; height: 20px; min-height: 20px; }
  .pin-row { flex-direction: column; }
  .pin-row .button { min-height: 46px; }
}
.epg-area { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid #485765; border-radius: 3px; background: #111822; color: var(--ink); font: inherit; font-size: 13px; resize: vertical; }

/* Public pages: device check and legal pages */
.doc-page { max-width: 980px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc-page .site-footer { grid-column: 1 / -1; }
.doc-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 20px; }
.doc-nav a { padding: 10px 12px; border-left: 2px solid #2c3743; color: #c6d1dc; text-decoration: none; font-size: 14px; }
.doc-nav a:hover { color: white; border-color: #596777; }
.doc-nav a[aria-current="page"] { border-color: var(--lime); color: var(--lime); font-weight: 700; }
.doc { min-width: 0; max-width: 70ch; color: #dde3e9; font-size: 15px; line-height: 1.65; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); }
.doc h2 { margin-top: 28px; font-size: 19px; letter-spacing: -.01em; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--blue); }
.doc-small { margin-top: 18px; font-size: 13px; }
.check-form { margin: 18px 0; }
.check-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.check-result { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid #2c3743; background: var(--panel); }
.check-result strong { font-size: 18px; }
.check-result.good { border-color: var(--lime); }
.check-result.good strong { color: var(--lime); }
.check-result.bad { border-color: var(--error); }
.check-result.bad strong { color: var(--error); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 760px) {
  .doc-page { grid-template-columns: 1fr; gap: 18px; padding: 32px 16px 24px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-nav a { border-left: 0; border-bottom: 2px solid #2c3743; padding: 8px 10px; }
  .doc-nav a[aria-current="page"] { border-color: var(--lime); }
}

/* Device problem reports (owner and reseller panels) */
.reports-row td { background: #111822; padding: 12px 16px; }
.broken-box { display: grid; gap: 8px; margin: 0 0 14px; }
.broken-box:empty { display: none; }
.broken-title { margin: 0; font-weight: 700; color: var(--ink); }
.broken-area { width: 100%; box-sizing: border-box; font-family: Consolas, ui-monospace, monospace; font-size: 13px; padding: 10px; background: var(--panel); color: var(--ink); border: 1px solid #485765; border-radius: 6px; resize: vertical; }
.broken-box .button { justify-self: start; }
.report-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.report-list li { position: relative; display: grid; gap: 3px; padding: 8px 44px 8px 10px; border-left: 3px solid var(--error); background: var(--panel); }
.report-delete { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 1px solid #485765; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.report-delete:hover { color: #fff; border-color: var(--error); background: rgba(255, 107, 107, .15); }
.report-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.report-list strong { font-size: 13px; }
.report-list span { color: #dde3e9; font-size: 13px; }
.report-list small { color: var(--muted); font-size: 11px; word-break: break-all; }

/* Test builds page */
.apk-page { grid-template-columns: 1fr; max-width: 820px; }
.apk-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.apk-list li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #2c3743; background: var(--panel); }
.apk-list li.latest { border-color: var(--lime); }
.apk-list a { color: var(--ink); text-decoration: none; font-size: 17px; }
.apk-list a:hover { color: var(--lime); }
.apk-list span { color: #c6d1dc; font-size: 13px; }
.apk-list small { color: var(--muted); font-size: 11px; word-break: break-all; }

/* ---------- Consoles (owner / reseller), 2026 refresh ---------- */
:root { --radius: 12px; --radius-sm: 8px; --line: #2a3542; --panel-2: #1c2531; --good: #9ad66b; --warn: #f5c451; --bad: #ff8f80; }
input, select, textarea { border-radius: var(--radius-sm); }
input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(145, 183, 255, .18); }
.button { border-radius: var(--radius-sm); }
.auth-panel, .workspace-panel, .members-table-wrap, .message { border-radius: var(--radius); }
.console { display: grid; gap: 18px; margin-bottom: 40px; }
.console-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.console-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.console-head .muted { margin: 6px 0 0; font-size: 14px; }
.console-head-side { display: grid; justify-items: end; gap: 10px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { min-width: 96px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 2px; }
.stat strong { font-size: 24px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; }
.stat.good strong { color: var(--good); }
.stat.warn strong { color: var(--warn); }
.stat.bad { border-color: #6b3b36; }
.stat.bad strong { color: var(--bad); }
.console-tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); scrollbar-width: none; }
.console-tabs::-webkit-scrollbar { display: none; }
.console-tab { flex: 0 0 auto; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #b8c3cf; cursor: pointer; font-size: 14px; font-weight: 700; }
.console-tab:hover { color: white; background: #222c39; }
.console-tab.active { background: var(--lime); color: #111821; }
.tab-panel { display: grid; gap: 18px; }
.card { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.card h2 { margin-bottom: 6px; font-size: 21px; letter-spacing: -.02em; }
.card > .muted { margin: 0 0 16px; font-size: 14px; }
.card .members-table-wrap { border: 0; border-radius: 0; background: transparent; margin: 0 calc(-1 * clamp(18px, 2.4vw, 26px)) calc(-1 * clamp(18px, 2.4vw, 26px)); border-top: 1px solid var(--line); }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.card-head .muted { margin: 0; font-size: 14px; }
.search-input { width: min(100%, 300px); min-height: 42px; }
.settings-stack { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 18px; align-items: start; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { margin: 0; display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field-action { align-self: end; }
.field-action .button { width: 100%; }
.hint { color: #8d9aa8; font-size: 12px; line-height: 1.45; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-footer { display: flex; justify-content: flex-end; }
.form-footer .button { min-width: 200px; }
.provider-editor { display: grid; gap: 12px; }
.provider-editor > .button { justify-self: start; }
.provider-rows { display: grid; gap: 12px; }
.provider-row { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr) 40px; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.icon-button { width: 40px; height: 40px; margin-top: 26px; border: 1px solid #4a5868; border-radius: var(--radius-sm); background: transparent; color: #d8e0e7; cursor: pointer; }
.icon-button:hover { border-color: var(--bad); color: var(--bad); }
.empty-note { margin: 0; font-size: 13px; }
.add-device-card .muted { max-width: 70ch; }
.add-device-form { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.add-device-form input { flex: 1 1 220px; max-width: 320px; min-height: 52px; font-size: 22px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.add-device-form .button { min-height: 52px; padding: 0 24px; }
.member-action { border-radius: var(--radius-sm); }
.member-action.primary-action { border-color: var(--lime); color: var(--lime); font-weight: 700; }
.member-state { border-radius: 999px; }
.members-table tbody tr:hover td { background: #1a2230; }
.lines-row td, .reports-row td { background: #111822; padding: 16px 18px; }
.line-list { display: grid; gap: 8px; margin-bottom: 14px; }
.line-list > .muted { margin: 0; font-size: 13px; }
.line-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.line-item strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.line-kind { display: grid; place-items: center; width: 36px; height: 28px; border-radius: 6px; background: #253344; color: var(--blue); font-size: 11px; font-weight: 800; }
.line-form { gap: 12px; padding: 14px; border: 1px dashed #3a4756; border-radius: var(--radius); }
.line-form-title { margin: 0; font-weight: 800; font-size: 14px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); width: max-content; max-width: 100%; }
.segment { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #b8c3cf; cursor: pointer; font-weight: 700; font-size: 13px; }
.segment.active { background: var(--blue); color: var(--blue-ink); }
.mail-script { border-radius: var(--radius-sm); }
@media (max-width: 900px) {
  .provider-row { grid-template-columns: 1fr 40px; }
  .provider-row .field { grid-column: 1; }
  .provider-row .icon-button { grid-column: 2; grid-row: 1; margin-top: 26px; }
}
@media (max-width: 760px) {
  .console-head { align-items: flex-start; }
  .console-head-side { justify-items: start; }
  .stat { min-width: 0; flex: 1 1 40%; }
  .form-footer .button { width: 100%; }
  .card .members-table-wrap { overflow: visible; }
  .members-table, .members-table tbody, .members-table tr, .members-table td { display: block; width: 100%; }
  .members-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .members-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 16px; border-bottom: 1px solid var(--line); }
  .members-table td { padding: 0; border: 0; }
  .members-table td::before { display: block; margin-bottom: 4px; color: #b4c4d8; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; content: attr(data-label); }
  .members-table td:first-child, .members-table td.member-actions, .members-table tr.lines-row td, .members-table tr.reports-row td { grid-column: 1 / -1; }
  .members-table td.member-actions::before { display: none; }
  .members-table tr.lines-row, .members-table tr.reports-row { display: block; padding: 0; }
  .members-table tr.lines-row td::before, .members-table tr.reports-row td::before { display: none; }
  .member-actions .member-action { flex: 1 1 auto; min-height: 44px; }
  .add-device-form input { max-width: none; }
  .add-device-form .button { flex: 1 1 100%; }
  /* All tabs visible on phones: wrap into rows instead of a hidden sideways strip. */
  .console-tabs { flex-wrap: wrap; overflow: visible; border-radius: 18px; }
  .console-tab { flex: 1 1 auto; padding: 0 12px; }
}

/* App bar (downloads) and footer, 2026 refresh */
.app-bar { gap: 10px 18px; padding: 10px max(32px, calc((100vw - 1320px) / 2)); background: linear-gradient(180deg, #131a24, #111821); }
.app-bar-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.app-bar a.app-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 10px; border: 1px solid var(--line, #2a3542); border-radius: 12px; background: #161e2a; color: var(--ink); text-decoration: none; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.app-bar a.app-chip:hover { border-color: var(--lime); background: #1b2533; color: var(--ink); transform: translateY(-1px); }
.app-chip svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.app-chip span { display: grid; line-height: 1.2; }
.app-chip strong { font-size: 14px; }
.app-chip small { color: var(--muted); font-size: 11px; font-weight: 500; }
.site-footer-main { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 28px; margin-top: 48px; padding: 28px 0 8px; border-top: 1px solid #26313d; font-size: 13px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { flex: 0 0 34px; }
.footer-brand div { display: grid; gap: 4px; }
.footer-brand strong { color: var(--ink); letter-spacing: .1em; font-size: 14px; }
.footer-brand span { color: var(--muted); line-height: 1.5; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px 24px; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols p { margin: 0 0 2px; color: #b4c4d8; font-size: 11px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.footer-cols a { color: #c6d1dc; text-decoration: none; width: max-content; max-width: 100%; }
.footer-cols a:hover { color: var(--lime); }
.line-form.editing { border-style: solid; border-color: var(--blue); }
.line-item .member-action { min-height: 36px; }
@media (max-width: 760px) {
  .app-bar { padding: 10px 16px; }
  .app-chips { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .site-footer-main { grid-template-columns: 1fr; }
}

/* Messages to TVs */
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.message-image { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.message-file { cursor: pointer; }
.message-preview { max-width: 240px; max-height: 135px; border-radius: 6px; border: 1px solid #485765; object-fit: contain; background: #000; }
.message-targets { margin-top: 10px; display: grid; gap: 8px; }
.message-targets-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.message-targets-head .search-input { flex: 1 1 220px; }
.message-device-list { max-height: 280px; overflow-y: auto; display: grid; gap: 2px; padding: 6px; border: 1px solid #2c3743; border-radius: 6px; background: var(--panel); }
.message-device { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.message-device:hover { background: #202b38; }
.message-device input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.message-form select, .message-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #485765; background: #111822; color: var(--ink); font: inherit; font-size: 15px; }
.message-form textarea { resize: vertical; min-height: 110px; }
.message-form textarea:focus, .message-form select:focus { border-color: var(--blue); outline: none; }
.sent-messages { display: grid; gap: 10px; }
.sent-message { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #2c3743; border-left: 3px solid #d4ee72; border-radius: 6px; background: var(--panel); }
.sent-message.expired { opacity: .6; border-left-color: #485765; }
.sent-message img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; background: #000; }
.sent-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sent-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sent-body .text-link { overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 640px) {
  .sent-message { flex-wrap: wrap; }
  .sent-message img { width: 100%; height: auto; max-height: 160px; object-fit: contain; }
}

/* Payments: owner's tab */
.message.warning { border-color: #8a7a3d; color: #f2d14b; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: 2px; flex: none; accent-color: #d4ee72; }
.switch-row span { display: grid; gap: 2px; }
.plan-rows, .link-rows { display: grid; gap: 10px; margin: 10px 0 14px; }
.plan-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #2c3743; border-radius: 6px; background: var(--panel); }
.plan-row.link-row { grid-template-columns: 1fr 2fr auto; }
.plan-row .field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.plan-row .member-action { min-height: 48px; }
.pay-state { padding: 6px 12px; border-radius: 999px; border: 1px solid #485765; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pay-state.on { border-color: #718b55; color: var(--lime); }
.pay-state.warn { border-color: #8a7a3d; color: #f2d14b; }
.pay-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #202b38; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }
.pay-badge.live { background: #3a2120; color: var(--error); }
.pay-soon { opacity: .75; }
.pay-note-field { margin-top: 14px; }
.pay-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #485765; background: #111822; color: var(--ink); font: inherit; font-size: 15px; }
.pay-note-field textarea { width: 100%; min-height: 80px; padding: 12px 14px; border: 1px solid #485765; background: #111822; color: var(--ink); font: inherit; }
.form-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pay-paid td:nth-child(5) { color: var(--lime); }
@media (max-width: 640px) {
  .plan-row, .plan-row.link-row { grid-template-columns: 1fr 1fr; }
  .plan-row .field:first-child { grid-column: 1 / -1; }
}

/* Payments: public pay page */
.pay-page h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 8px; }
.pay-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #111821; font-size: 15px; font-weight: 850; }
.pay-step { margin: 26px 0; padding: 22px; border: 1px solid #2c3743; border-radius: 10px; background: var(--panel); }
.pay-step .check-result { margin-top: 14px; }
.pay-step .check-result .button { margin-top: 10px; justify-self: start; }
.pay-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pay-plan { display: grid; gap: 4px; padding: 18px; text-align: left; border: 2px solid #2c3743; border-radius: 10px; background: #111822; color: var(--ink); cursor: pointer; font: inherit; }
.pay-plan:hover { border-color: var(--blue); }
.pay-plan.active { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212, 238, 114, .15); }
.pay-plan strong { font-size: 16px; }
.pay-price { font-size: 28px; font-weight: 850; color: var(--lime); }
.pay-plan small { color: var(--muted); min-height: 1em; }
.pay-paypal { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 8px; width: 100%; max-width: 420px; min-height: 58px; padding: 10px 18px; border: 0; border-radius: 30px; background: #ffc439; color: #111; cursor: pointer; font: inherit; font-size: 17px; }
.pay-paypal strong { font-size: 20px; font-style: italic; font-weight: 900; color: #003087; }
.pay-paypal small { grid-column: 1 / -1; font-size: 12px; color: #333; }
.pay-paypal:hover { filter: brightness(.96); }
.pay-paypal:disabled { opacity: .6; cursor: wait; }
.pay-links { margin-top: 22px; }
.pay-link-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.pay-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--blue); background: #111822; white-space: pre-wrap; }
.pay-result { display: grid; gap: 6px; margin: 18px 0; padding: 18px; border: 1px solid #485765; border-radius: 10px; background: var(--panel); }
.pay-result.good { border-color: #718b55; }
.pay-result.good strong { color: var(--lime); font-size: 20px; }
.pay-result.bad { border-color: #9d655e; color: var(--error); }
.pay-sandbox { display: inline-block; padding: 6px 12px; border-radius: 6px; background: #3a3420; color: #f2d14b; font-size: 13px; font-weight: 700; }

.pay-buttons { max-width: 420px; margin-top: 6px; padding: 14px; border-radius: 12px; background: #fff; }
.pay-card-hint { margin: 0 0 10px; color: var(--muted); }
.pay-or { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: #2c3743; }
.pay-or.hidden { display: none; }
.pay-card { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 8px; width: 100%; max-width: 420px; min-height: 58px; padding: 10px 18px; border: 0; border-radius: 30px; background: #2c2e2f; color: #fff; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; }
.pay-card small { grid-column: 1 / -1; font-size: 12px; font-weight: 400; color: #c9ced3; }
.pay-card:hover { background: #3a3d3f; }
.pay-card:disabled { opacity: .6; cursor: wait; }

/* Online TVs */
.online-dot { display: inline-flex; align-items: center; gap: 7px; color: #8fe39b; font-weight: 700; }
.online-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: online-pulse 2s infinite; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .online-dot::before { animation: none; } }
.offline-time { color: var(--muted); }
.stat.online strong { color: #8fe39b; }

.offline-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 700; }
.offline-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #6b7785; box-sizing: border-box; }
.offline-time { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.app-version { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.app-version.current { color: #8fe39b; }
.app-version.outdated { color: #f2d14b; }
.app-version.unknown { font-weight: 400; font-style: italic; }

/* Country of a TV: flag + name. Flags come from a small self-hosted font (Twemoji, CC BY 4.0),
   because Windows shows only letters for flag emoji. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("/static/fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  font-display: swap;
}
.device-country { display: inline-flex; align-items: center; gap: 5px; margin: 4px 0 0 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.device-country .flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 15px; line-height: 1; }

.view-note { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--lime); background: var(--panel); color: var(--ink); font-size: 14px; }

/* Language picker (i18n.js) */
html.i18n-wait body { visibility: hidden; }
.lang-picker { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.lang-flag { display: inline-grid; place-items: center; width: 34px; height: 28px; padding: 3px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.lang-flag svg { display: block; width: 26px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lang-flag:hover, .lang-flag:focus-visible { opacity: 1; }
.lang-flag.active { opacity: 1; border-color: var(--lime, #d4ee72); }
@media (max-width: 520px) { .lang-flag { width: 30px; height: 26px; } .lang-flag svg { width: 22px; } .lang-picker { margin-right: 4px; gap: 2px; } }
@media (max-width: 520px) {
  .brand { white-space: nowrap; gap: 8px; font-size: 15px; letter-spacing: .08em; }
  .brand-mark { width: 30px; height: 30px; font-size: 17px; }
  .topbar-right .secure-label { display: none; }
  .topbar { gap: 8px; }
}
