/* Song Hỷ: giao diện đã duyệt trong đề xuất 23/11. Nền hồng loang nhẹ, thẻ trắng bo 20 px đổ bóng ánh đỏ,
   thẻ chính chuyển sắc đỏ son + nhũ, thanh thẻ kính mờ nổi. Chữ Be Vietnam Pro (tự chứa, không tải từ ngoài). */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bvp-vi-400.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bvp-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/bvp-vi-500.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/bvp-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/bvp-vi-600.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/bvp-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bvp-vi-700.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bvp-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/bvp-vi-800.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/bvp-latin-800.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --bg: #FFF7F8; --paper: #FFFFFF; --ink: #2A1418; --mu: #78616A; --line: #F1E2E6; --soft: #FBEFF2;
  --son: #A3162B; --son2: #6E0F1E; --son-bg: #FDEAED; --nhu: #E8C477; --nhut: #86601C;
  --ok: #237A4B; --ok-bg: #E2F3E9; --warn: #B0501C; --warn-bg: #FDEBDC;
  --shadow: 0 12px 26px -18px rgba(163, 22, 43, .42), 0 0 0 1px rgba(163, 22, 43, .05);
  --r: 22px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
/* Màu nhãn tổ: 8 màu đã kiểm bằng bộ soát màu (dataviz), luôn đi kèm tên tổ */
.c0 { --c: #2a78d6; } .c1 { --c: #eb6834; } .c2 { --c: #1baf7a; } .c3 { --c: #eda100; }
.c4 { --c: #e87ba4; } .c5 { --c: #008300; } .c6 { --c: #6250d6; } .c7 { --c: #e34948; } .cx { --c: #8a7276; }
.k-an-hoi { --k: #C08A2A; --k2: #8a5e12; } .k-tiec-vui { --k: #D6457A; --k2: #9b1d4a; } .k-cuoi { --k: #B51D36; --k2: #6E0F1E; }
.k-lai-mat { --k: #1b9a6c; --k2: #0d5e40; } .k-khac { --k: #2a78d6; --k2: #164a8c; }

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.45 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
  background: radial-gradient(120% 420px at 0 0, #FFDFE7 0, rgba(255, 223, 231, 0) 70%) no-repeat,
    radial-gradient(110% 380px at 100% 0, #FFF0D3 0, rgba(255, 240, 211, 0) 65%) no-repeat, var(--bg);
  min-height: 100vh; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #d9a23a; outline-offset: 2px; border-radius: 10px; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.mu { color: var(--mu); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t) + 12px) 14px calc(var(--safe-b) + 112px); }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 6px 4px 12px; }
.view-head small { display: block; color: var(--mu); font-size: 13px; font-weight: 500; }
.view-title { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; outline: none; }
.head-actions { display: flex; gap: 8px; }
.ib { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper); color: var(--son); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; }
.ib .dot-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d92a44; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--son); font-weight: 600; padding: 6px 2px; }

.card { background: var(--paper); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card > h2, .sec-title { margin: 2px 0 2px; font-size: 14px; font-weight: 700; color: var(--mu); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sec-title { margin: 18px 6px 8px; }
.card-note { font-size: 14px; color: var(--mu); margin: 6px 0 4px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; width: 100%; border: 0; background: none; text-align: left; }
.row + .row, .row-wrap + .row-wrap { border-top: 1px solid var(--line); }
.row-main { display: block; }
.row-main b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.row.done .row-main b { color: var(--mu); text-decoration: line-through; text-decoration-color: rgba(120, 97, 106, .5); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--mu); margin-top: 2px; line-height: 1.35; }
.meta .w { color: var(--warn); font-weight: 600; }
.meta .late { color: #c0262f; font-weight: 600; }
.meta i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--c)); margin-right: 5px; vertical-align: 1px; }
.row-wrap { position: relative; overflow: hidden; }
.swipe-bg { position: absolute; inset: 0; background: var(--ok); color: #fff; display: flex; align-items: center; padding-left: 18px; font-weight: 700; font-size: 14px; border-radius: 12px; opacity: 0; }
.row-wrap.swiping .swipe-bg { opacity: 1; }
.row-wrap .row { position: relative; background: var(--paper); transition: transform .18s ease; }
.row-wrap.swiping .row { transition: none; }

.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d9c1c6; background: #fff; display: grid; place-items: center; color: #fff; padding: 0; flex: none; }
.check.on { background: var(--ok); border-color: var(--ok); }
.check.half { border-color: #c46a2a; background: linear-gradient(90deg, #c46a2a 50%, #fff 50%); }
.check.big { width: 34px; height: 34px; }
.warn-ico { width: 32px; height: 32px; border-radius: 11px; background: var(--warn-bg); color: var(--warn); display: grid; place-items: center; flex: none; }
.ok-ico { width: 32px; height: 32px; border-radius: 11px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; }
.ask-ico { width: 32px; height: 32px; border-radius: 11px; background: #FFF4D9; color: var(--nhut); display: grid; place-items: center; flex: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid #EFDADF; background: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; color: var(--ink); }
.chip i.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--k)); }
.chip.on { background: var(--son); border-color: var(--son); color: #fff; }
.chip.on i.dot { box-shadow: 0 0 0 2px #fff; }
.chip.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.chip.add { border-style: dashed; color: var(--mu); }
.chip .x { margin-left: 2px; opacity: .7; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.tag i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--k)); }

.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
  background: color-mix(in srgb, var(--c, #8a7276) 20%, #fff); color: color-mix(in srgb, var(--c, #8a7276) 72%, #000); box-shadow: 0 0 0 2px #fff; }
.av.none { background: var(--warn-bg); color: var(--warn); }
.avs { display: flex; }
.avs .av + .av { margin-left: -8px; }
.avs .more { margin-left: 4px; font-size: 12px; color: var(--mu); align-self: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 15px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-primary { background: linear-gradient(160deg, #c3263f, #8b1226); color: #fff; box-shadow: 0 12px 22px -12px rgba(163, 22, 43, .8); }
.btn-primary:disabled { opacity: .55; }
.btn-gold { background: linear-gradient(160deg, #f6dc9a, #d9ae55); color: #4a0a14; }
.btn-quiet { background: var(--son-bg); color: var(--son); }
.btn-plain { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.btn-danger { background: #fff; color: #b3261e; border: 1.5px solid #f1c7c3; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.mini { display: inline-flex; align-items: center; gap: 5px; border: 0; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--son-bg); color: var(--son); white-space: nowrap; text-decoration: none; }
.mini.ok { background: var(--ok-bg); color: var(--ok); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-btn { border: 0; background: none; color: var(--son); font-weight: 600; padding: 8px 2px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* đếm ngược */
.cdown { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: center; padding: 16px 18px; border-radius: 24px; color: #fff; margin-bottom: 12px;
  background: radial-gradient(90% 130% at 92% 0, rgba(229, 80, 104, .9) 0, rgba(229, 80, 104, 0) 60%), linear-gradient(150deg, #b51d36, #6E0F1E); box-shadow: 0 18px 30px -18px rgba(163, 22, 43, .9); }
.cdown small { font-size: 13px; color: #f8d6a0; font-weight: 600; }
.cdown strong { display: block; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 3px 0; }
.cdown em { font-style: normal; font-size: 13px; color: #fbe2e0; display: block; }
.cdown svg { width: 84px; height: 84px; }
.cdown .btn { margin-top: 10px; min-height: 40px; font-size: 14px; }

/* thẻ lễ */
.ev-card { border-radius: 24px; padding: 16px 18px; color: #fff; margin-bottom: 12px; background: radial-gradient(80% 110% at 100% 0, color-mix(in srgb, var(--k) 55%, #fff) 0, transparent 60%), linear-gradient(150deg, var(--k), var(--k2)); box-shadow: 0 18px 30px -20px var(--k2); }
.ev-card small { font-size: 13px; font-weight: 600; opacity: .92; }
.ev-card h2 { margin: 2px 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.ev-card p { margin: 2px 0; font-size: 14px; opacity: .95; }
.ev-card .btn-row a, .ev-card .btn-row button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }

.hang { list-style: none; margin: 4px 0 0; padding: 0; }
.hang li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; }
.hang li + li { border-top: 1px solid var(--line); }
.hang time { font-weight: 800; color: var(--son); font-variant-numeric: tabular-nums; }
.hang .done { color: var(--mu); text-decoration: line-through; }

/* tiền */
.big-money { font-size: 32px; font-weight: 800; color: var(--son); letter-spacing: -.02em; line-height: 1.1; margin: 2px 0; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.kv div { background: var(--soft); border-radius: 14px; padding: 8px 12px; }
.kv b { display: block; font-size: 16px; }
.kv span { font-size: 12.5px; color: var(--mu); }
.bar { height: 10px; border-radius: 0 5px 5px 0; background: #F2C6CD; display: flex; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--son); border-right: 2px solid #fff; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.amt small { display: block; font-weight: 500; font-size: 12px; color: var(--mu); }

/* thanh thẻ + nút nổi */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 10px); width: min(532px, calc(100% - 20px)); height: 64px; border-radius: 32px; z-index: 30;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 28px -10px rgba(110, 15, 30, .35), inset 0 0 0 1px rgba(255, 255, 255, .9); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.tab { display: grid; justify-items: center; gap: 1px; color: #8d7579; font-size: 11.5px; font-weight: 600; text-decoration: none; position: relative; padding: 6px 0; }
.tab.is-on { color: var(--son); }
.tab .dot-n { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d92a44; color: #fff; font-size: 10.5px; line-height: 17px; }
.fab { position: fixed; right: max(18px, calc(50% - 262px)); bottom: calc(var(--safe-b) + 88px); width: 58px; height: 58px; border-radius: 50%; border: 0; z-index: 31;
  background: linear-gradient(160deg, #cf2c46, #8b1226); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 24px -10px rgba(163, 22, 43, .8); }

/* tấm trượt */
.sheet-back { position: fixed; inset: 0; background: rgba(42, 20, 24, .42); z-index: 50; opacity: 0; transition: opacity .2s; }
.sheet-back.show { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 102%); width: min(560px, 100%); max-height: calc(100dvh - var(--safe-t) - 18px); background: #FFF9FA; border-radius: 26px 26px 0 0; z-index: 51;
  display: flex; flex-direction: column; transition: transform .26s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 40px -20px rgba(42, 20, 24, .4); }
.sheet.show { transform: translate(-50%, 0); }
.sheet-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 8px 10px 4px; }
.sheet-head h2 { margin: 0; text-align: center; font-size: 17px; font-weight: 700; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #e2cdd1; margin: 8px auto 0; }
.sheet-body { overflow-y: auto; padding: 6px 16px calc(var(--safe-b) + 20px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-back, .row-wrap .row { transition: none; } }

/* ô nhập */
.field { display: grid; gap: 5px; margin: 12px 0 0; }
.field > span, .lbl { font-size: 13px; font-weight: 600; color: var(--mu); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 14px; border: 1.5px solid #EAD6DA; background: #fff; font-size: 16px; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3162B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; }
.input:focus { outline: none; border-color: var(--son); box-shadow: 0 0 0 3px rgba(163, 22, 43, .14); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick { font-weight: 600; }
.hint { font-size: 13px; color: var(--mu); margin: 6px 2px 0; }
.form-error { color: #b3261e; background: #fdecea; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #F5E5E9; border-radius: 14px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 11px; min-height: 40px; font-weight: 600; font-size: 14px; color: var(--mu); padding: 0 6px; }
.seg button.on { background: #fff; color: var(--son); box-shadow: 0 2px 8px rgba(110, 15, 30, .12); }
.subs { list-style: none; margin: 6px 0 0; padding: 0; }
.subs li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.subs li + li { border-top: 1px solid var(--line); }
.subs .t.done { text-decoration: line-through; color: var(--mu); }
.x-btn { border: 0; background: none; color: var(--mu); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.ask-box { background: #FFF6DD; border: 1px solid #F1DFA6; border-radius: 14px; padding: 10px 12px; margin-top: 10px; font-size: 14px; }
.parse { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.picker { max-height: 320px; overflow-y: auto; border: 1.5px solid #EAD6DA; border-radius: 14px; background: #fff; margin-top: 8px; }
.picker label { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; min-height: 48px; }
.picker label + label { border-top: 1px solid var(--line); }
.picker input { width: 20px; height: 20px; accent-color: var(--son); }
.sheet-foot { display: grid; gap: 8px; margin-top: 18px; }

/* bản đồ nhỏ */
.map { position: relative; height: 140px; border-radius: 14px; overflow: hidden; background: #eef0e6; margin-top: 8px; }
.map .tiles { position: absolute; }
.map .tiles img { position: absolute; width: 256px; height: 256px; display: block; }
.map .pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 40px; transform: translate(-50%, -100%); color: var(--son); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.map .attr { position: absolute; right: 6px; bottom: 4px; font-size: 10px; background: rgba(255, 255, 255, .8); padding: 0 4px; border-radius: 4px; color: #555; }

/* trống */
.empty { text-align: center; padding: 26px 18px; }
.empty h2 { margin: 6px 0; font-size: 20px; }
.empty p { color: var(--mu); margin: 0 0 14px; }
.start { display: grid; gap: 10px; }
.start .btn { justify-content: flex-start; }

/* gợi ý */
.sg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 0; }
.sg + .sg { border-top: 1px solid var(--line); }
.sg b { display: block; font-size: 15.5px; }
.sg p { margin: 2px 0; font-size: 14px; color: var(--mu); }
.sg .btn-row { margin-top: 6px; }
.mk { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9b3b8; margin-top: 4px; }
.mk.co { background: var(--ok); border-color: var(--ok); }
.mk.do { border-color: var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.ben { font-size: 12.5px; font-weight: 600; color: var(--nhut); margin-left: 6px; }

/* ngày D */
.dday { position: fixed; inset: 0; z-index: 40; overflow-y: auto; color: #fff3ee; background: radial-gradient(120% 55% at 50% 0, #7c1528 0, #2b0710 72%); padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 30px); }
.dday-in { max-width: 560px; margin: 0 auto; }
.dday header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dday header small { color: #f2cd7b; font-weight: 600; font-size: 13px; }
.dday header h1 { margin: 2px 0; font-size: 30px; line-height: 1.1; }
.dday header p { margin: 0; color: #f3d3d3; font-size: 14px; }
.dday .exit { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; padding: 9px 14px; font-weight: 600; }
.now { margin-top: 16px; border-radius: 26px; padding: 18px; background: linear-gradient(160deg, #fff6e2, #f5dca6); color: #3a1a0c; box-shadow: 0 0 0 2px #f2cd7b, 0 18px 34px -16px rgba(0, 0, 0, .6); }
.now small { font-size: 14px; font-weight: 700; color: #9a5b12; }
.now time { display: block; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; margin: 6px 0 4px; color: #7d0f22; }
.now h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.now p { margin: 4px 0 0; font-size: 15px; color: #6b4a2a; }
.now .btn-row .btn { flex: 1; min-height: 54px; font-size: 17px; }
.btn-call { background: #7d0f22; color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.next { list-style: none; margin: 16px 0 0; padding: 4px 16px; border-radius: 22px; background: rgba(255, 255, 255, .08); }
.next li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; font-size: 17px; align-items: center; }
.next li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.next time { font-weight: 800; color: #f2cd7b; font-variant-numeric: tabular-nums; }
.next li.done span { text-decoration: line-through; opacity: .6; }
.next button { border: 0; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 600; }
.off { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #f3d3d3; margin-top: 14px; }

/* màn khoá, thiết lập */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 18px calc(var(--safe-b) + 20px); }
.gate-inner { width: min(420px, 100%); text-align: center; }
.gate-logo { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 18px 30px -16px rgba(110, 15, 30, .8); }
.gate h1 { font-size: 30px; margin: 14px 0 4px; letter-spacing: -.02em; }
.gate .lead { color: var(--mu); margin: 0 0 18px; }
.gate form { text-align: left; display: grid; gap: 10px; }
.gate .btn-big { min-height: 56px; font-size: 17px; }

.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 12px); transform: translateX(-50%); z-index: 80; max-width: min(520px, calc(100% - 24px)); background: #2a1418; color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 14.5px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.banner-note { display: flex; gap: 10px; align-items: center; background: #FFF4D9; border: 1px solid #F1DFA6; color: #5c4210; border-radius: 16px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.helper-head { display: flex; align-items: center; gap: 12px; padding: 6px 2px 14px; }
.helper-head img { width: 52px; height: 52px; border-radius: 14px; }
.helper-head h1 { margin: 0; font-size: 24px; line-height: 1.15; }
.helper-head p { margin: 0; color: var(--mu); font-size: 14px; }
@media (min-width: 900px) { .app { padding-top: 28px; } }
