:root {
  --bg: #f4f5f7; --panel: #ffffff; --side: #e9edf1; --line: #e2e5ea; --line2: #d5d9df;
  --ink: #16181d; --ink2: #5c6370; --ink3: #8b919c;
  --accent: #2479e8; --accent-soft: #e4effd;
  --ok: #1f9d55; --ok-soft: #dcf3e5; --warn: #d97706; --warn-soft: #fdf0dc; --bad: #d64545; --bad-soft: #fbe3e3;
  --chip: #eef0f3; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316; --panel: #1b1d21; --side: #16181b; --line: #2a2d33; --line2: #343840;
    --ink: #eceef2; --ink2: #a9afb9; --ink3: #7c838e;
    --accent: #5aa0ff; --accent-soft: #1d2c44;
    --ok: #3ccb7f; --ok-soft: #173426; --warn: #f0a33a; --warn-soft: #3a2a12; --bad: #f06a6a; --bad-soft: #3d1c1c;
    --chip: #262930; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--ink2); }
.dim { color: var(--ink3); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* nút chung */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--chip); font-weight: 560; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--chip); }
.icon-btn.on { background: var(--accent-soft); color: var(--accent); }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 650; flex: none; letter-spacing: .02em; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; background: var(--chip); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.cho { background: var(--warn-soft); color: var(--warn); }
.pill.sua { background: var(--bad-soft); color: var(--bad); }
.pill.duyet { background: var(--ok-soft); color: var(--ok); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--ink2); }
.tag.cho { background: var(--warn-soft); color: var(--warn); }
.tag.sua { background: var(--bad-soft); color: var(--bad); }
.tag.duyet { background: var(--ok-soft); color: var(--ok); }

/* menu thả */
.dd { position: relative; display: inline-block; }
.dd > .menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; }
.dd.right > .menu { left: auto; right: 0; }
.dd.up > .menu { top: auto; bottom: calc(100% + 6px); }
.dd.open > .menu { display: block; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 8px; }
.menu button:hover { background: var(--chip); }
.menu button.sel { font-weight: 650; }
.menu button small { display: block; color: var(--ink3); font-size: 12.5px; font-weight: 400; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu .danger { color: var(--bad); }

/* đăng nhập */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 400px; background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 28px 24px; }
.login h1 { font-size: 22px; margin: 0 0 4px; }
.login .who { display: grid; gap: 8px; margin: 20px 0 14px; }
.login .who button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); text-align: left; font-weight: 600; }
.login .who button.sel { border-color: var(--accent); background: var(--accent-soft); }
.field { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--panel); padding: 0 14px; font-size: 16px; }
.field:focus { outline: none; border-color: var(--accent); }
.login .err { color: var(--bad); min-height: 22px; font-size: 14px; margin: 8px 0; }

/* danh sách */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.top h1 { font-size: 20px; margin: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.top h1 img { width: 28px; height: 28px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px 16px 60px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 560; white-space: nowrap; }
.filters button.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button .n { opacity: .6; margin-left: 4px; font-weight: 500; }
.proj { margin: 22px 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vcard { background: var(--panel); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: inherit; transition: transform .12s; }
.vcard:hover { transform: translateY(-2px); }
.vcard .thumb { aspect-ratio: 16/9; background: #000 center/cover no-repeat; position: relative; }
.vcard .thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.vcard .thumb .ver { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; }
.vcard .body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.vcard .title { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); flex-wrap: wrap; }
.vcard .meta .sp { flex: 1; }
.empty { text-align: center; padding: 60px 16px; color: var(--ink2); }
.empty code { background: var(--chip); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* trang xem video */
.view { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100vh; height: 100dvh; }
.left { overflow-y: auto; background: var(--panel); padding: 18px 28px 40px; }
.side { background: var(--side); display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.head .back { margin-left: -8px; }
.head .t { flex: 1; min-width: 0; }
.head h2 { font-size: 19px; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.crumb { font-size: 13.5px; color: var(--ink3); margin-top: 2px; }

.player { position: relative; background: #000; border-radius: 16px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.player .stage { position: relative; margin: 0 auto; max-height: 62vh; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.player canvas.draw { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; pointer-events: none; }
.player.drawing canvas.draw { pointer-events: auto; cursor: crosshair; }
.player .bigplay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player .bigplay span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; transition: opacity .2s; }
.player.playing .bigplay span { opacity: 0; }
.player .bigplay svg { width: 28px; height: 28px; fill: #fff; stroke: none; margin-left: 4px; }
.player .badge-draw { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: none; }
.player.show-draw .badge-draw { display: block; }
.drawbar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: none; gap: 4px; background: rgba(20,20,22,.88); border-radius: 999px; padding: 5px; color: #fff; }
.player.drawing .drawbar { display: flex; }
.drawbar button { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.drawbar button.on { background: rgba(255,255,255,.2); }
.drawbar .sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.drawbar .sep { width: 1px; background: rgba(255,255,255,.2); margin: 6px 3px; }
.player:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.player:fullscreen .stage { max-height: none; height: 100%; width: auto !important; aspect-ratio: auto !important; }

.timeline { position: relative; margin: 14px 4px 0; padding: 10px 0 26px; touch-action: none; cursor: pointer; }
.timeline .bar { position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.timeline .buf { position: absolute; inset: 0 auto 0 0; background: var(--line2); border-radius: 999px; }
.timeline .prog { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px; }
.timeline .knob { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.timeline .tick { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--ink3); opacity: .55; border-radius: 1px; }
.timeline .mk { position: absolute; top: 20px; margin-left: -11px; transition: transform .1s; }
.timeline .mk:hover { transform: scale(1.2); z-index: 2; }
.timeline .mk.res { opacity: .45; }
.timeline .range { position: absolute; top: 0; height: 6px; background: var(--warn); opacity: .55; border-radius: 999px; }
.scrub { position: absolute; bottom: 44px; transform: translateX(-50%); pointer-events: none; display: none; text-align: center; z-index: 5; }
.scrub .im { width: 160px; height: 90px; border-radius: 8px; border: 2px solid #fff; box-shadow: var(--shadow); background-color: #000; background-repeat: no-repeat; }
.scrub .tt { display: inline-block; margin-top: 4px; background: #111; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.timeline:hover .scrub, .timeline.drag .scrub { display: block; }

.controls { display: flex; align-items: center; gap: 6px; margin: 2px 0 14px; }
.controls .time { font-variant-numeric: tabular-nums; margin: 0 8px; font-size: 16px; white-space: nowrap; }
.controls .sp { flex: 1; }
.chipbtn { height: 38px; min-width: 46px; padding: 0 12px; border-radius: 999px; background: var(--chip); font-weight: 650; font-variant-numeric: tabular-nums; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.info { margin-top: 18px; border-top: 1px solid var(--line); }
.info .r { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.info .r > :first-child { color: var(--ink2); }
.note { background: var(--chip); border-radius: 12px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; margin-top: 12px; }
.keys { font-size: 12.5px; color: var(--ink3); margin-top: 14px; line-height: 1.8; }
kbd { font: 600 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--chip); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }

/* cột góp ý */
.ch { display: flex; align-items: center; gap: 10px; padding: 18px 20px 10px; }
.ch h3 { margin: 0; font-size: 21px; flex: 1; }
.ch h3 .n { color: var(--ink3); font-weight: 500; margin-left: 4px; }
.ch .dd > button { height: 36px; padding: 0 12px; border-radius: 999px; background: var(--panel); display: inline-flex; align-items: center; gap: 6px; font-weight: 560; font-size: 14px; }
.banner { margin: 4px 16px 6px; background: var(--panel); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.banner b { font-weight: 650; }
.clist { flex: 1; overflow-y: auto; padding: 4px 16px 16px; min-height: 0; }
.cm { padding: 12px 4px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; border-radius: 10px; transition: background .2s; }
.cm.active { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.cm.flash { background: var(--accent-soft); }
.cm .top-r { display: flex; align-items: center; gap: 6px; }
.cm .nm { font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm .sub { font-size: 12.5px; color: var(--ink3); }
.cm .tx { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm .tx .ts { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border-radius: 7px; padding: 1px 8px; font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; margin-right: 8px; vertical-align: 1px; color: var(--ink); }
.cm .tx .ts:hover { background: var(--accent-soft); color: var(--accent); }
.cm .tx .ts svg { width: 13px; height: 13px; }
.cm .vtag { font-size: 11.5px; font-weight: 700; color: var(--ink3); border: 1px solid var(--line2); border-radius: 6px; padding: 0 5px; margin-right: 6px; }
.cm.res .tx { color: var(--ink2); }
.cm .acts { display: flex; gap: 14px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.cm .acts button:hover { color: var(--accent); }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; color: transparent; flex: none; }
.check:hover { border-color: var(--ok); color: var(--ok); }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.check svg { width: 15px; height: 15px; stroke-width: 3; }
.att { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.att a { display: block; width: 88px; height: 60px; border-radius: 8px; background: #000 center/cover; border: 1px solid var(--line); }
.replies { margin-top: 8px; border-left: 2px solid var(--line2); padding-left: 10px; display: grid; gap: 8px; }
.reply .nm { font-weight: 650; font-size: 14px; }
.reply .tx { margin-top: 2px; font-size: 14.5px; }
.rbox { margin-top: 8px; display: flex; gap: 6px; }
.rbox textarea { flex: 1; min-height: 38px; max-height: 140px; resize: none; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--panel); padding: 8px 12px; }
.rbox textarea:focus { outline: none; border-color: var(--accent); }

.composer { margin: 0 14px 14px; margin-bottom: max(14px, env(safe-area-inset-bottom)); background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 8px 8px 8px 10px; border: 1.5px solid transparent; }
.composer:focus-within { border-color: var(--accent); }
.composer .pre { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 6px; }
.composer .pre:empty { display: none; }
.composer .pre .thumb { position: relative; width: 64px; height: 44px; border-radius: 7px; background: #000 center/cover; }
.composer .pre .thumb button { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 20px; }
.composer .line { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; padding: 9px 4px; min-height: 40px; max-height: 160px; font-size: 15.5px; }
.composer textarea:focus { outline: none; }
.tchip { height: 30px; padding: 0 9px; margin-bottom: 5px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; flex: none; }
.tchip.off { background: var(--chip); color: var(--ink3); text-decoration: line-through; }
.tchip svg { width: 14px; height: 14px; }
.sendbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.sendbtn:disabled { background: var(--chip); color: var(--ink3); }
.composer .icon-btn { width: 36px; height: 36px; margin-bottom: 2px; color: var(--ink2); }
.composer .icon-btn.on { color: var(--accent); }

/* so sánh */
.cmp { min-height: 100vh; background: #0d0e10; color: #eee; display: flex; flex-direction: column; }
.cmp .bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.cmp .bar h2 { flex: 1; font-size: 16px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp .icon-btn { color: #eee; }
.cmp .btn { background: #22252a; color: #fff; }
.cmp .icon-btn:hover { background: rgba(255,255,255,.1); }
.cmp .panes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; align-content: center; }
.cmp .pane { display: grid; gap: 8px; }
.cmp .pane .lab { display: flex; align-items: center; gap: 8px; }
.cmp .pane .lab select { background: #22252a; color: #fff; border: 0; border-radius: 999px; height: 34px; padding: 0 12px; font-weight: 650; }
.cmp .pane .lab button { height: 34px; padding: 0 12px; border-radius: 999px; background: #22252a; color: #aaa; font-size: 13px; font-weight: 600; }
.cmp .pane .lab button.on { background: #fff; color: #000; }
.cmp video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; display: block; }
.cmp .ctl { padding: 10px 16px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); max-width: 1100px; width: 100%; margin: 0 auto; }
.cmp .timeline .bar { background: #333; }
.cmp .timeline .buf { background: #444; }
.cmp .controls .time { color: #ddd; }
.cmp .chipbtn { background: #22252a; color: #fff; }
.cmp .controls .icon-btn svg { stroke: #eee; }
.cmp .wipe { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; grid-column: 1 / -1; max-height: 70vh; margin: 0 auto; width: 100%; }
.cmp .wipe video { position: absolute; inset: 0; height: 100%; border-radius: 0; aspect-ratio: auto; }
.cmp .wipe .b { clip-path: inset(0 0 0 50%); }
.cmp .wipe .handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 50%; cursor: ew-resize; }
.cmp .wipe .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: 700; }
.cmp .wipe .la, .cmp .wipe .lb { position: absolute; top: 10px; background: rgba(0,0,0,.6); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.cmp .wipe .la { left: 10px; } .cmp .wipe .lb { right: 10px; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 560; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* điện thoại / máy tính bảng dọc */
@media (max-width: 960px) {
  /* điện thoại: đầu trang → video → nút → góp ý → thông tin bản */
  .view { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .left { display: contents; }
  .head { order: 1; margin: 10px 16px 10px; }
  .player { order: 2; position: sticky; top: 0; z-index: 15; border-radius: 0; margin: 0; }
  .timeline { order: 3; margin: 10px 20px 0; }
  .controls { order: 4; margin: 0 12px 4px; }
  .side { order: 5; }
  #meta { order: 6; background: var(--panel); padding: 14px 16px 30px; }
  #mu { display: none; }
  .player .stage { max-height: 42vh; }
  .side { border-left: 0; min-height: 50vh; }
  .clist { overflow: visible; }
  .composer { position: sticky; bottom: 0; z-index: 14; }
  .info .r { grid-template-columns: 110px 1fr; }
  .keys { display: none; }
  .cmp .panes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .controls .time { font-size: 14px; margin: 0 4px; }
  .controls { gap: 2px; }
  .chipbtn { min-width: 40px; padding: 0 9px; }
  .head h2 { font-size: 17px; }
  .pill, .btn { height: 36px; }
}
.player.drawing .bigplay, .player.drawing .badge-draw { display: none; }
.menu.speed { min-width: 150px; }
.menu.speed button { justify-content: space-between; font-variant-numeric: tabular-nums; }
.menu.speed button.sel { background: var(--accent-soft); color: var(--accent); }
.cmp .menu { color: var(--ink); }
@media (max-width: 520px) {
  .drawbar { gap: 0; padding: 3px; max-width: calc(100% - 12px); top: 8px; }
  .drawbar button { width: 31px; height: 31px; }
  .drawbar button svg { width: 18px; height: 18px; }
  .drawbar .sw { width: 15px; height: 15px; }
  .drawbar .sep { margin: 5px 1px; }
}
