/* Sự kiện — phần chung lấy từ Avata (cùng bộ nhận diện), ưu tiên điện thoại trước rồi mở rộng cho máy tính */
:root {
  --bg: #f7f4f0; --card: #ffffff; --fg: #1f1a17; --muted: #6f655d; --line: #e6dfd7; --chip: #f1ece6;
  --pri: #C8102E; --pri-d: #a50d26; --pri-ink: #ffffff; --ok: #1f8a4c; --ok-bg: #e5f5ec; --bad: #b42318; --bad-bg: #fdecea;
  --radius: 14px; --shadow: 0 6px 24px rgba(40, 24, 12, .08);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 16px 40px; }
a { color: var(--pri); }
h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.2; margin: 8px 0 12px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.req { color: var(--pri); }
code { background: var(--chip); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* thanh trên cùng */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand svg, .brand img { width: 34px; height: 34px; display: block; }
.top nav { display: flex; align-items: center; gap: 14px; }
.top nav a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
@media (max-width: 420px) { .top nav a:not(.btn) { display: none; } }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot a { color: inherit; font-weight: 600; }

/* nút, ô nhập */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg); font: 600 14.5px var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: #cfc5ba; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.btn.pri:hover { background: var(--pri-d); }
.btn.danger { color: var(--bad); border-color: #f1c6c1; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { min-height: 34px; padding: 5px 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { min-height: 50px; padding: 12px 22px; font-size: 16px; border-radius: 13px; }
.btn.wide { width: 100%; }
.linkbtn { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px 0; }
:is(a, button, input, select, textarea, label):focus-visible { outline: 3px solid rgba(200, 16, 46, .35); outline-offset: 2px; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
input:not([type]), input[type=text], input[type=password], textarea, select, .search {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--fg); font: 15px var(--font); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pri); flex: none; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; font-size: 14px; background: var(--chip); }
.copyrow.big input { font-size: 15px; font-weight: 600; }
.actions { margin: 22px 0 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 > * { flex: 1; }
.row-end { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.err { color: var(--bad); background: var(--bad-bg); border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.ok { color: var(--ok); font-weight: 600; }
.narrow { max-width: 680px; margin: 0 auto; }
.center { text-align: center; padding-top: 40px; }

/* trang chủ */
.hero { text-align: center; padding: 20px 0 8px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); max-width: 760px; margin: 10px auto 12px; }
.hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.hero-act { margin: 22px 0 18px; }
.steps3 { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.steps3 b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 12px; margin-right: 7px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.proj { display: block; color: inherit; text-decoration: none; transition: transform .15s; }
.proj:hover { transform: translateY(-2px); }
.proj img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--chip); }
.proj-body { padding: 10px 12px 12px; }
.proj h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; margin: 0; }
.stats span { display: inline-flex; align-items: center; gap: 4px; }
.stats svg, .fmeta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty { text-align: center; padding: 30px 0; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.mine { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 12px; margin: 18px 0; }
.mine h2 { margin-top: 14px; font-size: 16px; }
.mine-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mine-row a:first-child { font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tạo khung: danh sách khung */
.frames { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0; }
@media (min-width: 560px) { .frames { grid-template-columns: 1fr 1fr; } }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fcard.needs { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.fcard.loading { padding: 40px 16px; text-align: center; color: var(--muted); }
.checker { background: repeating-conic-gradient(#e4ddd5 0 25%, #fff 0 50%) 0 0 / 22px 22px; }
.checker img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.fmeta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.fmeta > span:first-child:not(.badge) { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); }
.badge { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-weight: 600; font-size: 12.5px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.fbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed #d4c9bd; border-radius: var(--radius);
  background: var(--card); text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.drop strong { color: var(--pri); font-size: 16px; }
.drop.over, .drop:hover { border-color: var(--pri); background: #fff7f8; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* mật khẩu quản lý: thanh độ mạnh + danh sách quy tắc */
.pwrow { display: flex; gap: 8px; }
.pwrow input { flex: 1; min-width: 0; }
.meter { height: 6px; border-radius: 99px; background: var(--chip); margin: 8px 0 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .2s, background .2s; background: var(--bad); }
.meter i.s2 { background: #e8a33a; } .meter i.s3 { background: #7fb24a; } .meter i.s4 { background: var(--ok); }
.pwrules { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.pwrules li::before { content: "○"; display: inline-block; width: 18px; color: #c4b9ad; }
.pwrules li.pass { color: var(--ok); }
.pwrules li.pass::before { content: "✓"; color: var(--ok); font-weight: 700; }
input.invalid { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.lockform { margin: 10px 0 0; }
.secret-box {background: #fff8e6; border: 1px solid #f0d58c; border-radius: var(--radius); padding: 4px 16px 14px; margin: 22px 0; }
.secret-box h2 { margin-top: 14px; }
.secret { background: #fff8e6; border: 1px solid #f0d58c; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }

/* hộp thoại */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 8, .55); display: grid; place-items: center; padding: 12px; }
.dialog { background: var(--card); border-radius: 18px; padding: 18px; width: 100%; max-width: 460px; max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dialog.wide { max-width: 640px; }
.dialog h2 { margin: 0 0 6px; }
.dialog img { max-width: 100%; display: block; margin: 10px auto 0; border-radius: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--chip); padding: 4px; border-radius: 12px; margin: 10px 0; }
.seg button { border: 0; background: transparent; padding: 8px 4px; border-radius: 9px; font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.shape-stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; overflow: hidden; border-radius: 10px; touch-action: none; user-select: none; }
.shape-stage img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; pointer-events: none; }
.shape-box { position: absolute; border: 2px dashed #fff; outline: 2px solid rgba(200, 16, 46, .9); background: rgba(200, 16, 46, .18); cursor: move; touch-action: none; }
.shape-box.circle { border-radius: 50%; }
.shape-box.round { border-radius: 12%; }
.shape-box .h { position: absolute; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: #fff; border: 3px solid var(--pri); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.shape-box .h[data-h="nw"] { left: 0; top: 0; cursor: nwse-resize; } .shape-box .h[data-h="ne"] { right: 0; top: 0; margin-right: -13px; cursor: nesw-resize; }
.shape-box .h[data-h="sw"] { left: 0; bottom: 0; margin-bottom: -13px; cursor: nesw-resize; } .shape-box .h[data-h="se"] { right: 0; bottom: 0; margin: 0 -13px -13px 0; cursor: nwse-resize; }

/* trang ghép ảnh */
.use-head { text-align: center; }
.use-head p { color: var(--muted); max-width: 640px; margin: 0 auto 6px; }
.use-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 10px; }
@media (min-width: 860px) { .use-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 28px; align-items: start; } .canvas-col { position: sticky; top: 76px; } }
.canvas-box { position: relative; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--chip); }
#cv { display: block; width: 100%; height: auto; aspect-ratio: 1; }
#cv.active { touch-action: none; cursor: grab; }
#cv.active:active { cursor: grabbing; }
.pick-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px;
  border: 0; background: transparent; cursor: pointer; font: inherit; }
.pick-overlay small { font-size: 12px; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 10px; border-radius: 99px; }
.hint { text-align: center; font-size: 13px; margin: 8px 0 0; }
.ctrl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.ctrl h2 { margin: 0; font-size: 15px; }
.frame-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.frame-pick button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--chip); cursor: pointer; }
.frame-pick button[aria-pressed="true"] { border-color: var(--pri); box-shadow: 0 0 0 2px rgba(200, 16, 46, .25); }
.frame-pick img { width: 100%; height: 100%; display: block; }
.slider { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.slider input { width: 100%; accent-color: var(--pri); height: 28px; }
.share .stats { margin-top: 2px; }

/* quản lý / quản trị */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.kpis.five { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .kpis.five { grid-template-columns: repeat(5, 1fr); } }
.kpis > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.kpis > div.warn { border-color: var(--bad); }
.kpis b { display: block; font-size: 24px; line-height: 1.2; }
.kpis span { color: var(--muted); font-size: 12.5px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.chart i { flex: 1; display: block; min-height: 0; border-radius: 3px 3px 0 0; }
.chart .bv { background: #f4a3b0; } .chart .bt { background: var(--pri); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin: 6px 0 16px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .lv::before { background: #f4a3b0; } .legend .lt::before { background: var(--pri); } .legend .muted::before { display: none; }
.danger-h { color: var(--bad); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-head form { margin: 0; }
.tbl-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { background: var(--chip); font-size: 12.5px; color: var(--muted); }
.tbl tr.done { opacity: .55; }
.tbl .mini { width: 44px; height: 44px; border-radius: 8px; display: block; }
.tbl .acts { white-space: nowrap; }
.tbl.gon { min-width: 0; }   /* bảng ít cột (tab Ẩn dự án): co theo khung, không cuộn ngang */
.tbl.gon .check { margin: 0; align-items: center; white-space: nowrap; }
.tbl.gon td:first-child { word-break: break-word; }
.tbl .acts .btn + .btn { margin-left: 6px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--chip); font-size: 12px; font-weight: 600; }
.tag.green { background: var(--ok-bg); color: var(--ok); } .tag.red { background: var(--bad-bg); color: var(--bad); }
.search { margin: 0 0 10px; }
.login { padding-top: 30px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: #1f1a17; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ===================== Sự kiện ===================== */
.kpis.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .kpis.four { grid-template-columns: repeat(4, 1fr); } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--pri); margin: 0; }
.feat { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 26px 0; }
@media (min-width: 720px) { .feat { grid-template-columns: repeat(4, 1fr); } }
.feat > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.feat h3 { margin: 0 0 6px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
input[type=search], input[type=number], input[type=datetime-local] { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--fg); font: 15px var(--font); }

/* ---------- trang quản lý ---------- */
.wide-wrap { max-width: 1040px; margin: 0 auto; }
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.m-head h1 { margin: 2px 0 0; }
.m-nav { position: sticky; top: 59px; z-index: 10; display: flex; gap: 4px; overflow-x: auto; background: rgba(247, 244, 240, .95); padding: 8px 0; margin: 18px 0 6px;
  border-bottom: 1px solid var(--line); scrollbar-width: none; }
.m-nav a { flex: none; padding: 7px 12px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.m-nav a.on { background: var(--pri); color: #fff; }
.m-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 18px 18px; margin: 16px 0; scroll-margin-top: 120px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 6px 26px; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1.1fr 1fr; } }
.lbl { font-weight: 600; margin: 14px 0 6px; }
.bg-prev { aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #7a0b1d, #C8102E 55%, #e8603c) center / cover no-repeat; }
.bg-prev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%); }
.bg-txt { position: absolute; z-index: 1; left: 0; right: 0; top: 9%; text-align: center; color: #fff; padding: 0 8%; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.bg-txt small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bg-txt b { display: block; font-size: clamp(14px, 2.4vw, 22px); line-height: 1.2; }
label.btn input[type=file] { display: none; }
.docs { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
@media (min-width: 640px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.doc img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--chip); flex: none; }
.doc b { display: block; line-height: 1.3; }
.doc small { display: block; color: var(--muted); margin: 2px 0 8px; }
.upbox { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 4px; }
.prog { position: relative; height: 30px; border-radius: 99px; background: var(--chip); overflow: hidden; margin: 10px 0; }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #f08a9b, var(--pri)); transition: width .2s; }
.prog span { position: relative; display: block; text-align: center; line-height: 30px; font-size: 13px; font-weight: 600; }
#frames .frames { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
#frames .fcard { padding-bottom: 8px; align-items: center; gap: 8px; }
.row2.wrap { align-items: center; margin-top: 8px; }
.row2.wrap > * { flex: none; }
.g-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; align-items: center; }
.g-tools input { flex: 1 1 200px; width: auto; min-height: 38px; padding: 7px 12px; }
.g-tools select { width: auto; flex: none; padding: 7px 10px; }
#gTable { min-width: 640px; }
#gTable td { padding: 5px 6px; }
#gTable .gi { border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 8px; font-size: 14px; min-width: 0; }
#gTable .gi:hover, #gTable .gi:focus { border-color: var(--line); background: #fff; }
#gTable .gi.t { width: 90px; }
#gTable .check { margin: 0; align-items: center; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { border: 1px dashed #d4c9bd; background: var(--chip); border-radius: 99px; padding: 5px 11px; font: 600 13px var(--font); cursor: pointer; color: var(--fg); }
.chips button:hover { border-color: var(--pri); color: var(--pri); }
.greet-demo { background: #1d1416; color: #fff; border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.greet-demo .muted { color: #c9b9b4; margin: 0 0 6px; }
.greet-demo select { background: #2c2023; color: #fff; border-color: #4a3a3d; padding: 7px 10px; }
.greet-demo .demo { font-size: 19px; font-weight: 700; margin: 10px 0 0; line-height: 1.4; }

/* ---------- màn hình sự kiện (TV / máy tính tại quầy) ---------- */
body.screen { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: #160b0e; color: #fff; }
.screen main { position: fixed; inset: 0; max-width: none; padding: 0; container-type: size; }
/* khung màn hình: vùng tiêu đề (cao --hz % màn hình) · nội dung · thanh chọn. Dùng chung cho màn hình thật và khung xem trước
   trong trang quản lý: mọi kích thước tiêu đề tính theo khung (cqh, cqw) nên hai nơi hiện giống hệt nhau. */
.sc-stage { position: absolute; inset: 0; display: grid; grid-template-rows: calc(var(--hz, 21) * 1cqh) minmax(0, 1fr) auto; overflow: hidden; color: #fff; }
.sc-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 90% at 20% 0%, #d0263f 0%, #8c0c22 38%, #3a0710 75%, #160b0e 100%); background-size: cover; background-position: center; }
.sc-bg.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 32%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .7) 100%); }
.sc-stage > :not(.sc-bg) { position: relative; z-index: 1; }
.sc-titles { min-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-clock { position: absolute; right: 2cqw; top: 1.6cqh; font-size: 2.4cqh; font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .sc-clock { display: none; } }

/* một dòng tiêu đề: tâm đặt tại (left, top) trong vùng tiêu đề; --s cỡ chữ (% chiều cao màn hình), --w độ rộng tối đa (% bề ngang) */
.ti { position: absolute; transform: translate(var(--tx, -50%), -50%); width: max-content; max-width: calc(var(--w, 90) * 1cqw); white-space: pre-line;
  line-height: 1.14; font-size: min(calc(var(--s) * 1cqh), calc(var(--s) * .62cqw)); color: var(--c, #fff); overflow-wrap: anywhere; }
.ti.al-c { --tx: -50%; text-align: center; } .ti.al-l { --tx: 0%; text-align: left; } .ti.al-r { --tx: -100%; text-align: right; }
.ti.up { text-transform: uppercase; letter-spacing: .07em; }
.ti.an { display: none; }

/* hiệu ứng chữ có sẵn (danh sách: lib/giaodien.mjs EFFECTS) */
.fx-thuong, .fx-hien { text-shadow: 0 .06em .35em rgba(0, 0, 0, .55); }
.fx-vang, .fx-bac, .fx-lua, .fx-lap-lanh { -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .05em .22em rgba(0, 0, 0, .55)); }
.fx-vang { background-image: linear-gradient(180deg, #fff 20%, #ffe39a 55%, #e8a93a 100%); }
.fx-bac { background-image: linear-gradient(180deg, #fff 0%, #dfe4ea 38%, #98a2ad 55%, #f4f6f8 85%); }
.fx-lua { background-image: linear-gradient(180deg, #fff6c2 0%, #ffbf47 38%, #ff6a3a 72%, #e0102e 100%); }
.fx-lap-lanh { background-image: linear-gradient(110deg, #e8a93a 0%, #fff 16%, #ffd36b 32%, #fff7d6 48%, #e8a93a 64%, #fff 80%, #e8a93a 100%); background-size: 220% 100%; animation: fxShine 4.5s linear infinite; }
@keyframes fxShine { to { background-position: -220% 0; } }
.fx-sang { color: #fff; text-shadow: 0 0 .06em #fff, 0 0 .22em var(--c), 0 0 .55em var(--c), 0 0 1.1em var(--c); }
.fx-vien { color: transparent; -webkit-text-stroke: .035em var(--c); filter: drop-shadow(0 .04em .3em rgba(0, 0, 0, .65)); }
.fx-noi { text-shadow: 0 .03em 0 color-mix(in srgb, var(--c) 78%, #000), 0 .06em 0 color-mix(in srgb, var(--c) 62%, #000), 0 .09em 0 color-mix(in srgb, var(--c) 48%, #000),
  0 .12em 0 color-mix(in srgb, var(--c) 36%, #000), 0 .22em .3em rgba(0, 0, 0, .55); }
.fx-nhip { text-shadow: 0 0 .3em color-mix(in srgb, var(--c) 55%, transparent); animation: fxBreath 3.2s ease-in-out infinite; }
@keyframes fxBreath { 50% { transform: translate(var(--tx, -50%), -50%) scale(1.045); text-shadow: 0 0 .9em color-mix(in srgb, var(--c) 85%, transparent); } }
.fx-hien { animation: fxIn 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fxIn { from { opacity: 0; transform: translate(var(--tx, -50%), -20%); filter: blur(6px); } }

.sc-main { position: relative; min-height: 0; padding: 6px clamp(10px, 2vw, 34px) 8px; }
.sc-view { height: 100%; display: flex; flex-direction: column; min-height: 0; animation: scIn .35s ease; }
@keyframes scIn { from { opacity: 0; transform: translateY(8px); } }
.sc-qr { flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); background: #0e1a12; }
.sc-qr iframe, #docsFrame, #camFrame { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.sc-cap { margin: 10px 0 0; text-align: center; font-weight: 700; font-size: clamp(14px, 2.4vh, 26px); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
#vDocs, .ci-cam { background: #f7f4f0; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.sc-empty { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 20px; padding: 20px; text-align: center; }
.sc-tabs { display: flex; justify-content: center; align-items: center; gap: clamp(6px, 1vw, 14px); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); position: relative; }
.sc-tabs [data-v] { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: #fff;
  font: 700 clamp(14px, 2.2vh, 22px) var(--font); padding: clamp(8px, 1.3vh, 14px) clamp(14px, 2.2vw, 30px); border-radius: 99px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, transform .1s; }
.sc-tabs [data-v] small { background: rgba(255, 255, 255, .22); border-radius: 99px; padding: 0 8px; font-size: .75em; }
.sc-tabs [data-v][aria-pressed="true"] { background: #fff; color: var(--pri); border-color: #fff; }
.sc-tabs [data-v]:active { transform: scale(.97); }
.sc-tools { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.sc-tools button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); color: #fff; font-size: 17px; cursor: pointer; opacity: .55; }
.sc-tools button:hover { opacity: 1; }
@media (max-width: 760px) { .sc-tabs { gap: 6px; padding-left: 8px; padding-right: 8px; } .sc-tabs [data-v] { white-space: nowrap; padding: 8px 12px; font-size: 14px; gap: 5px; } .sc-tabs [data-v] span { display: none; }
  .sc-tools { position: static; transform: none; } .sc-tools button { width: 34px; height: 34px; font-size: 15px; } .sc-mark { display: none; } }
.sc-mark { position: fixed; left: 12px; bottom: 8px; font-size: 11px; opacity: .5; pointer-events: none; }

/* quầy check-in: chọn tên */
#vCheckin { min-height: 0; }
.ci-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; background: rgba(255, 255, 255, .96); color: var(--fg); border-radius: 20px; padding: clamp(10px, 2vh, 22px); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.ci-top { display: flex; gap: 14px; align-items: center; }
.ci-top input { flex: 1; font-size: clamp(17px, 2.6vh, 26px); padding: .55em .8em; border-radius: 14px; border: 2px solid var(--line); }
.ci-top input:focus { border-color: var(--pri); outline: 0; }
.ci-stat { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: clamp(13px, 2vh, 19px); }
.ci-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-content: start; gap: 10px; padding: 14px 2px; }
.gst { position: relative; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 40px 12px 14px; cursor: pointer; font: inherit; color: var(--fg);
  box-shadow: 0 2px 6px rgba(40, 24, 12, .05); transition: border-color .15s, transform .08s; min-height: 64px; }
.gst:hover { border-color: var(--pri); }
.gst:active { transform: scale(.98); }
.gst-n { display: block; font-weight: 700; font-size: clamp(15px, 2.2vh, 20px); line-height: 1.25; }
.gst-o { display: block; color: var(--muted); font-size: clamp(12px, 1.7vh, 15px); margin-top: 2px; }
.gst.done { background: #f2fbf5; border-color: #bfe3cc; }
.gst-ok { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.ci-more, .ci-none { grid-column: 1 / -1; text-align: center; color: var(--muted); margin: 10px 0; font-size: 16px; }
.ci-foot { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-top: 8px; border-top: 1px solid var(--line); }
.ci-cam { flex: 1; position: relative; }
.ci-done { position: absolute; left: 16px; bottom: 16px; z-index: 2; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* lời chào mừng */
.greet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(12, 4, 6, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.greet-card { position: relative; width: min(1100px, 100%); text-align: center; padding: clamp(24px, 5vh, 60px) clamp(18px, 4vw, 60px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #e2304b 0%, #a10c25 45%, #4a0814 100%); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 220, 160, .35); }
.greet-burst { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(255, 220, 150, .12) 0 8deg, transparent 8deg 22deg); opacity: 0; }
.greet.play .greet-burst { animation: burst 9s linear infinite, fadeIn .6s ease forwards; }
@keyframes burst { to { transform: rotate(360deg); } }
@keyframes fadeIn { to { opacity: 1; } }
.greet-card > :not(.greet-burst) { position: relative; }
.greet-hi { margin: 0; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; color: #ffe2a8; font-size: clamp(14px, 2.6vh, 26px); }
.greet-name { margin: .2em 0 .1em; font-size: clamp(32px, 9vh, 104px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 35%, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.greet-org { margin: 0 0 .6em; font-size: clamp(15px, 2.8vh, 30px); font-weight: 600; color: #ffd9de; }
.greet-text { margin: .4em auto 0; max-width: 900px; font-size: clamp(17px, 3.4vh, 36px); line-height: 1.35; font-weight: 600; }
.greet-again { color: #ffe2a8; font-weight: 600; margin: .8em 0 0; font-size: clamp(13px, 2vh, 20px); }
.greet-act { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: clamp(18px, 4vh, 40px); }
.greet-act .btn { font-size: clamp(15px, 2.3vh, 22px); min-height: 54px; padding: 12px 26px; }
.greet-act .btn:not(.pri) { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.greet-act .btn.pri { background: #fff; color: var(--pri); border-color: #fff; }
.greet.play .greet-hi { animation: up .5s .05s both; } .greet.play .greet-name { animation: pop .7s .15s both cubic-bezier(.2, 1.4, .4, 1); }
.greet.play .greet-org { animation: up .5s .35s both; } .greet.play .greet-text { animation: up .6s .5s both; } .greet.play .greet-act { animation: up .5s .8s both; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .greet.play * { animation: none !important; } }
.screen .modal { color: var(--fg); }

/* ---------- trang quản trị chung ---------- */
body.hub { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.hub main { flex: 1; min-height: 0; max-width: none; padding: 0; display: flex; flex-direction: column; }
.hub-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.hub-title { font-weight: 800; font-size: 17px; color: var(--fg); text-decoration: none; flex: none; }
.hub-crumb { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-crumb b { color: var(--fg); }
.hub-menu { display: none; }
/* thanh bên: tab xếp theo nhóm */
.hub-main { flex: 1; min-height: 0; display: flex; position: relative; }
.hub-side { flex: none; width: 214px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 6px 8px 16px; }
.hub-tabs { display: flex; flex-direction: column; gap: 2px; }
.hub-group { margin: 14px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hub-tabs button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; font: 600 14.5px var(--font); color: var(--fg); cursor: pointer; }
.hub-tabs button:hover { background: var(--chip); }
.hub-tabs button[aria-selected="true"] { background: #fdeef0; color: var(--pri); }
.hub-tabs img { display: block; flex: none; }
.zl { width: 22px; height: 22px; border-radius: 6px; background: #0068ff; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.zl.ico { background: #fbefc4; font-size: 14px; }   /* tab có biểu tượng chữ (Trứng) */
.hub-act { display: flex; gap: 6px; align-items: center; }
.hub-act form { margin: 0; }
.hub-body { flex: 1; min-height: 0; position: relative; }
.hub-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
/* điện thoại / máy tính bảng dọc: thanh bên thành ngăn kéo, mở bằng nút ☰ */
@media (max-width: 860px) {
  .hub-menu { display: inline-flex; }
  .hub-side { position: absolute; z-index: 5; inset: 0 auto 0 0; width: min(260px, 82vw); box-shadow: 8px 0 30px rgba(40, 24, 12, .18); transform: translateX(-105%); transition: transform .2s; visibility: hidden; }
  .hub-side.open { transform: none; visibility: visible; }
  .hub-main::after { content: ""; position: absolute; inset: 0; z-index: 4; background: rgba(20, 12, 6, .3); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hub-main.side-open::after { opacity: 1; pointer-events: auto; }
}
@media (max-width: 480px) { .hub-title, .hub-crumb .grp { display: none; } }
@media (prefers-reduced-motion: reduce) { .hub-side, .hub-main::after { transition: none; } }
.hub-brand { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 4px; }
@media (max-width: 480px) { .hub-brand img { width: 30px; height: 30px; } }
.hub-login h1 { text-align: center; }
.hub-login .login > p { text-align: center; }
body.admin main { padding-top: 12px; }

/* ---------- trình chỉnh bố cục màn hình (trang quản lý) ---------- */
.lk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.lk-ratio { grid-template-columns: repeat(3, auto); margin: 0; }
.lk-prev { position: relative; aspect-ratio: 16 / 9; container-type: size; border-radius: 14px; overflow: hidden; background: #160b0e; outline: none;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35); user-select: none; -webkit-user-select: none; }
.lk-prev.doc { max-width: 340px; margin-inline: auto; }
.lk-prev:focus-visible { box-shadow: 0 0 0 3px var(--pri), 0 10px 34px rgba(0, 0, 0, .35); }
.lk-prev .sc-titles { touch-action: none; }
.lk-prev .ti { cursor: grab; border-radius: 6px; }
.lk-prev .ti:hover { outline: 1px dashed rgba(255, 255, 255, .55); outline-offset: .2em; }
.lk-prev .ti.sel { outline: 2px dashed #ffd36b; outline-offset: .2em; }
.lk-prev .ti.an { display: block; opacity: .28; }   /* dòng bị ẩn vẫn thấy mờ để chọn lại */
.lk-guide { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed #ffd36b; pointer-events: none; }
.lk-zone { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 2px dashed rgba(255, 211, 107, .7); cursor: ns-resize; z-index: 2; touch-action: none; }
.lk-zone span { position: absolute; right: 8px; top: 0; transform: translateY(-50%); background: #ffd36b; color: #3a2400; font: 700 11px var(--font); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.lk-zone::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 20px; }
.lk-main { padding: .6cqh 2cqw 1cqh; min-height: 0; }
.lk-panel { height: 100%; border-radius: 2.4cqh; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .35); display: grid; place-items: center;
  color: rgba(255, 255, 255, .75); font: 600 2.4cqh var(--font); text-align: center; padding: 1cqh; }
.lk-tabs { display: flex; gap: 1.2cqw; justify-content: center; padding: 1cqh 0 2cqh; }
.lk-tabs span { font: 700 2.1cqh var(--font); padding: 1cqh 2.4cqw; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.lk-tabs span.on { background: #fff; color: var(--pri); }
.lk-help { margin: 8px 0 4px; }
.lk-grid { margin-top: 6px; }
.lk-tools .slider { grid-template-columns: 96px 1fr 48px; margin: 10px 0; }
.lk-tools output { font-size: 13px; color: var(--muted); text-align: right; }
.lk-items { grid-template-columns: repeat(3, 1fr); }
.lk-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.lk-row select { flex: 1 1 160px; width: auto; }
.lk-al { grid-template-columns: repeat(3, auto); margin: 0; }
.lk-color { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.lk-color input { width: 38px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.lk-checks .check { margin: 0 6px 0 0; }
.lk-fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.lk-fx button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 10px; border: 1px solid var(--line);
  background: #1d1416; color: #fff; cursor: pointer; font: 600 11.5px var(--font); }
.lk-fx button[aria-pressed="true"] { border-color: #ffd36b; box-shadow: 0 0 0 2px #ffd36b; }
.ti-demo { display: block; font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--c, #fff); }
.lk-fx button span { color: #e8dcd8; }
.lk-h3 { margin: 26px 0 4px; font-size: 16px; }
.lk-fx .fx-nhip, .lk-fx .fx-hien { animation: none; }   /* ô mẫu: không dịch chuyển */
.lk-grid > * { min-width: 0; }
.lk-tools .slider { grid-template-columns: 84px minmax(0, 1fr) 44px; }
.lk-row .lk-color { flex: none; }
@media (max-width: 819px) {
  .lk-tools { order: -1; }                                  /* điện thoại: bảng chỉnh ngay dưới khung xem trước */
  .lk-prev { position: sticky; top: 64px; z-index: 6; }     /* khung xem trước ghim trên cùng khi cuộn để thấy kết quả */
}

/* tab EggPhone */
.ep-card { margin-bottom: 18px; }
.ep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.ep-head h2 { margin: 0; }
.ep-map { display: block; width: 100%; height: 340px; border: 0; border-radius: 14px; margin: 8px 0 10px; background: rgba(128,128,128,.12); }
.ep-hist summary { cursor: pointer; font-weight: 700; margin: 6px 0; }
.ep-wait:empty { display: none; }
.ep-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ep-code b { font-size: 34px; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
#epTen, .ep-card select { padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(128,128,128,.4); font: inherit; background: transparent; color: inherit; }
.ep-card select option { color: #111; }
@media (max-width: 600px) { .ep-map { height: 260px; } }

/* ---------- tab con trong trang Classroom Pro (quản trị) ---------- */
.tag.amber { background: #fff4e0; color: #a35c00; }
.cp-tabs { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; margin: 0 0 4px; padding: 6px 0;
  background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tabs button { flex: none; border: 0; background: transparent; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font: 600 14px var(--font); color: var(--muted); white-space: nowrap; }
.cp-tabs button:hover { background: var(--chip); color: var(--fg); }
.cp-tabs button[aria-selected="true"] { background: var(--card); color: var(--pri); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.cp-tabs button.phu { font-weight: 500; font-size: 13px; }
.cp-tabs button:focus-visible { outline: 2px solid var(--pri); outline-offset: 1px; }
.cp-tabs-sep { flex: 1 0 12px; }
.cp-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--chip);
  font-size: 11.5px; line-height: 18px; text-align: center; color: var(--muted); }
.cp-tabs button[aria-selected="true"] .cp-n { background: #fdecef; color: var(--pri); }
.cp-pane > section:first-child h2 { margin-top: 16px; }
.cp-h3 { font-size: 14px; margin: 18px 0 -12px; color: var(--muted); }
