/* DVE Project Management — giao diện A2 (sáng / tối) */
:root {
  --bg: #FFFFFF; --surface: #F4F4F2; --surface2: #ECECE9; --ink: #111211; --ink2: #3A3B37;
  --muted: #74756F; --muted2: #55564F; --faint: #9A9B96; --line: #E7E7E4;
  --inv: #111211; --inv2: #242523; --invLine: #3A3B38; --onInv: #FFFFFF; --onInvMuted: #C9CAC4;
  --sel: #111211; --onSel: #FFFFFF; --iconOff: #D4D4CF; --warn: #C2410C;
  --scBg: #E6F7F6; --scRing: #9EDDDA; --scText: #0B7C7B; --scSub: #3E5F5E;
  --lime: #C8F031; --onLime: #111211; --limeSub: #3F4810; --mvFill: #F9B8DA; --relFill: #A9D2FF; --confFill: #CDB8FF;
  --logoFilter: none; --danger: #B42318;
  --radius: 16px; --shadow: 0 10px 30px rgba(17,18,17,0.12);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0A0B; --surface: #161715; --surface2: #1E1F1D; --ink: #F2F2EE; --ink2: #C9CAC4;
  --muted: #8E8F89; --muted2: #B4B5AE; --faint: #6E6F69; --line: #262724;
  --inv: #242522; --inv2: #33342F; --invLine: #43443F; --onInv: #F2F2EE; --onInvMuted: #A9AAA4;
  --sel: #F2F2EE; --onSel: #111211; --iconOff: #3A3B38; --warn: #FF8A4C;
  --scBg: #0E2625; --scRing: #1E5251; --scText: #5FD3D1; --scSub: #8DB3B1;
  --logoFilter: invert(1); --danger: #F87171; --shadow: 0 10px 30px rgba(0,0,0,0.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0A0A0B; --surface: #161715; --surface2: #1E1F1D; --ink: #F2F2EE; --ink2: #C9CAC4;
    --muted: #8E8F89; --muted2: #B4B5AE; --faint: #6E6F69; --line: #262724;
    --inv: #242522; --inv2: #33342F; --invLine: #43443F; --onInv: #F2F2EE; --onInvMuted: #A9AAA4;
    --sel: #F2F2EE; --onSel: #111211; --iconOff: #3A3B38; --warn: #FF8A4C;
    --scBg: #0E2625; --scRing: #1E5251; --scText: #5FD3D1; --scSub: #8DB3B1;
    --logoFilter: invert(1); --danger: #F87171; --shadow: 0 10px 30px rgba(0,0,0,0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- khung ứng dụng ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.page { max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 0 0; }
.page.wide { max-width: 560px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 18px 6px; }
.logo { height: 24px; width: auto; filter: var(--logoFilter); }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; stroke: var(--ink); }
.userpill { height: 40px; padding: 0 12px 0 6px; border-radius: 20px; border: 0; background: var(--surface); display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.userpill .av { width: 28px; height: 28px; border-radius: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.userpill svg { width: 12px; height: 12px; stroke: var(--muted); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: flex-end;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; background: none; border: 0; }
.tab svg { width: 22px; height: 22px; stroke: var(--muted); }
.tab.on { color: var(--ink); font-weight: 800; }
.tab.on svg { stroke: var(--ink); }
.fab { width: 56px; height: 56px; border-radius: 28px; border: 0; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; margin-top: -28px; box-shadow: 0 8px 22px rgba(160,200,30,0.4); }
.fab svg { width: 24px; height: 24px; stroke: var(--onLime); }

@media (min-width: 1000px) {
  .tabs { display: none; }
  .main { padding-bottom: 40px; }
  .side { display: flex; flex-direction: column; gap: 4px; width: 248px; flex: none; position: sticky; top: 0; height: 100vh;
    padding: 24px 14px; border-right: 1px solid var(--line); background: var(--bg); }
  .side .logo { height: 30px; width: auto; align-self: flex-start; margin: 0 10px 26px; }
  .side a, .side button.navbtn { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink2); background: none; border: 0; text-align: left; }
  .side a svg, .side button.navbtn svg { width: 20px; height: 20px; stroke: currentColor; }
  .side a.on { background: var(--surface); color: var(--ink); font-weight: 800; }
  .side .grow { flex: 1; }
  .side .newbtn { margin-top: 8px; height: 46px; border-radius: 23px; border: 0; background: var(--lime); color: var(--onLime); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .page { max-width: 1120px; padding: 26px 32px 0; }
  .page .topbar .logo { display: none; }
  .topbar .userpill { margin-left: auto; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .form-page { max-width: 760px; }
}

/* ---------- chữ ---------- */
.h-month { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.cap { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.cap.muted { color: var(--muted); font-weight: 700; letter-spacing: 0.14em; font-size: 10.5px; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 24px 22px 8px; }
.sechead a, .sechead button.link { font-size: 12.5px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; }
.warn { color: var(--warn); }

/* ---------- lịch ---------- */
.monthbar { display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 20px 12px; }
.monthbar .navs { display: flex; gap: 6px; }
.monthbar .iconbtn { width: 40px; height: 40px; }
.cal { margin: 0 14px; padding: 14px 10px 12px; border-radius: 24px; background: var(--surface); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; justify-items: center; }
.cal-dow { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); height: 22px; display: flex; align-items: center; }
.day { width: 42px; height: 42px; border-radius: 21px; border: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; background: transparent; color: var(--ink); position: relative; }
.day.show { background: var(--lime); color: var(--onLime); font-weight: 800; }
.day.show.t-mv { background: var(--mvFill); color: #111211; }
.day.show.t-release { background: var(--relFill); color: #111211; }
.day.show.t-conf { background: var(--confFill); color: #111211; }
.day.pending { box-shadow: inset 0 0 0 2px var(--lime); font-weight: 800; }
.day.past { background: var(--iconOff); color: var(--ink); font-weight: 700; }
.day.today { background: var(--sel); color: var(--onSel); font-weight: 800; }
.day.today.show { background: var(--lime); color: var(--onLime); box-shadow: inset 0 0 0 3px var(--sel); }
.day.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.day.today.show.sel { box-shadow: inset 0 0 0 3px var(--sel), 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.day .n2 { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--inv); color: var(--onInv); font-size: 9.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.legend { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 5px; display: inline-block; }

/* ---------- thẻ show tối (header) ---------- */
.hero { display: block; margin: 0 14px; padding: 18px 18px 16px; border-radius: 26px; background: var(--inv); color: var(--onInv); }
.hero .row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero .typecap { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--onInvMuted); text-transform: uppercase; }
.pill-lime { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; background: var(--lime); color: var(--onLime); white-space: nowrap; }
.pill-dark { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--inv2); color: var(--onInv); white-space: nowrap; }
.datecity { margin-top: 14px; }
.datecity .d, .datecity .c { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; }
.datecity .d { color: var(--lime); }
.datecity.row { display: flex; align-items: baseline; gap: 12px; }
.datecity.row .bar { width: 2px; align-self: center; background: var(--invLine); }
.datecity.col { display: flex; flex-direction: column; gap: 4px; }
.hero .sub2 { font-size: 13px; color: var(--onInvMuted); margin-top: 8px; }
.hero h1, .hero .title { margin: 12px 0 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.hero .addr { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.hero .addr .t { flex: 1; min-width: 0; font-size: 13px; color: var(--onInvMuted); line-height: 1.45; }
.btn-map { flex: none; height: 36px; padding: 0 13px; border-radius: 18px; background: var(--inv2); color: var(--onInv); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn-map svg { width: 14px; height: 14px; stroke: var(--onInv); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-sc { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: #0EA5A4; color: #fff; }
.hero .progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--invLine); }
.hero .progress .track { flex: 1; height: 6px; border-radius: 3px; background: var(--inv2); overflow: hidden; }
.hero .progress .fill { height: 6px; border-radius: 3px; background: var(--lime); }
.status-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--invLine); color: var(--onInvMuted); }

/* ---------- soundcheck + ô nhỏ ---------- */
.sccard { margin: 12px 14px 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: var(--scBg); box-shadow: inset 0 0 0 1.5px var(--scRing); }
.sccard .ic { flex: none; width: 46px; height: 46px; border-radius: 23px; background: #0EA5A4; display: flex; align-items: center; justify-content: center; }
.sccard .ic svg { width: 20px; height: 20px; stroke: #fff; }
.sccard .lab { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--scText); }
.sccard .val { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.sccard .big { font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.sccard .note { font-size: 13px; font-weight: 600; color: var(--scSub); }
.sccard.empty .big { font-size: 18px; color: var(--warn); }
.tiles { margin: 8px 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 12px 12px 11px; border-radius: 18px; background: var(--surface); min-width: 0; }
.tile .k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); display: flex; align-items: center; gap: 5px; text-transform: uppercase; }
.tile .v { font-size: 18px; font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v.sm { font-size: 14px; white-space: normal; line-height: 1.25; margin-top: 6px; }
.den { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--lime); color: var(--onLime); letter-spacing: 0.01em; text-transform: none; }

.block { margin: 18px 20px 0; }
.block p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted2); white-space: pre-line; }

.card { margin: 14px 14px 0; border-radius: 18px; background: var(--surface); padding: 4px 14px 6px; }
.card-head { width: 100%; min-height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.card-head b { font-size: 14.5px; }
.card-head .m { color: var(--muted); font-weight: 600; }
.chev { display: inline-flex; transition: transform .2s; }
.chev svg { width: 14px; height: 14px; stroke: var(--ink); }
.open > .card-head .chev, .chev.up { transform: rotate(180deg); }
.lurow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.lurow:first-child { border-top: 0; }
.lurow .n { width: 18px; flex: none; font-size: 12px; font-weight: 700; color: var(--faint); }
.lurow .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.lurow .mt { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.lurow.dve { background: var(--lime); border-radius: 12px; margin: 2px -10px; padding: 9px 10px; border-top: 0; }
.lurow.dve + .lurow { border-top: 0; }
.lurow.dve .n, .lurow.dve .mt { color: var(--limeSub); }
.lurow.dve .nm { color: var(--onLime); font-weight: 800; }

/* ---------- nút Lịch trình + timeline ---------- */
.schedbtn { margin: 16px 14px 0; width: calc(100% - 28px); min-height: 64px; border: 0; border-radius: 22px; background: var(--lime); color: var(--onLime); display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; }
.schedbtn .ic { flex: none; width: 42px; height: 42px; border-radius: 21px; background: #111211; display: flex; align-items: center; justify-content: center; }
.schedbtn .ic svg { width: 19px; height: 19px; stroke: var(--lime); }
.schedbtn .t { flex: 1; min-width: 0; }
.schedbtn .t b { display: block; font-size: 16px; font-weight: 800; }
.schedbtn .t span { display: block; font-size: 12.5px; font-weight: 600; color: var(--limeSub); margin-top: 1px; }
.schedbtn .cv { flex: none; width: 32px; height: 32px; border-radius: 16px; background: rgba(17,18,17,0.1); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.schedbtn .cv svg { width: 16px; height: 16px; stroke: #111211; }
.schedbtn.open .cv { transform: rotate(180deg); }

.tl { margin: 10px 14px 0; }
.tl-row { display: flex; gap: 10px; }
.tl-time { width: 42px; flex: none; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--ink2); padding-top: 19px; }
.tl-axis { width: 30px; flex: none; display: flex; flex-direction: column; align-items: center; }
.tl-axis .ln { width: 2px; background: var(--line); }
.tl-axis .ln.top { height: 14px; }
.tl-axis .ln.bot { flex: 1; }
.tl-axis .ln.off { background: transparent; }
.tl-ic { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.tl-ic svg { width: 15px; height: 15px; stroke: #fff; }
.tl-card { flex: 1; min-width: 0; margin: 4px 0; padding: 11px 12px 11px 14px; border-radius: 14px; background: var(--surface); display: flex; gap: 8px; align-items: flex-start; }
.tl-card .body { flex: 1; min-width: 0; }
.tl-card .tt { font-size: 14px; font-weight: 700; }
.tl-card .nt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tl-card.dim { opacity: 0.55; }
.who { display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.who .sep { color: var(--faint); padding: 0 5px; }
.who .tm { font-weight: 700; color: var(--ink2); }
.who .gu { border-bottom: 1px dashed var(--faint); }
.me-pill { flex: none; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--inv); color: var(--lime); }
.tl-day { display: flex; gap: 10px; }
.tl-day .lab { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.tl-day .lab span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; white-space: nowrap; }
.tl-day .lab i { flex: 1; height: 1px; background: var(--line); }
.tl-day.first .lab { padding-top: 2px; }
.tl-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 52px; min-height: 36px; border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; }
.switch { width: 38px; height: 22px; border-radius: 11px; background: var(--iconOff); position: relative; flex: none; }
.switch i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9px; background: #fff; transition: left .15s; }
.switch.on { background: #1F8F7C; }
.switch.on i { left: 18px; }

/* ---------- rail thông tin show ---------- */
.rail { padding: 0 14px 0 12px; }
.rail-item { display: flex; gap: 12px; }
.rail-axis { width: 32px; flex: none; display: flex; flex-direction: column; align-items: center; }
.rail-axis .ln { width: 2px; background: var(--line); }
.rail-axis .ln.top { height: 14px; }
.rail-axis .ln.bot { flex: 1; }
.rail-axis .ln.off { background: transparent; }
.rail-ic { width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.rail-ic svg { width: 16px; height: 16px; stroke: #fff; }
.rail-ic.off { background: var(--iconOff); }
.rail-card { flex: 1; min-width: 0; margin: 5px 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); display: block; }
.rail-card.dim { opacity: 0.55; }
.rail-card .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rail-card .hd b { font-size: 14.5px; }
.rail-card .hd span { font-size: 12px; color: var(--muted); }
.rail-card .st { font-size: 12px; font-weight: 600; margin-top: 2px; color: var(--muted); }
.rail-card .st.warn { color: var(--warn); }
.rail-card.link { display: flex; align-items: center; gap: 10px; }
.rail-card.link .x { flex: 1; min-width: 0; }
.rail-card .go { font-size: 12.5px; font-weight: 700; }
.rows { margin-top: 8px; }
.r3 { display: flex; gap: 10px; padding: 4px 0; font-size: 12.5px; align-items: baseline; }
.r3 .a { width: 112px; flex: none; font-weight: 600; }
.r3 .b { flex: 1; min-width: 0; color: var(--muted2); display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; }
.r3 .c { flex: none; color: var(--muted); width: 18px; text-align: right; }
.r3.zero { opacity: 0.45; }
.r3 .sep { color: var(--faint); padding: 0 5px; }
.song { display: flex; gap: 10px; padding: 4px 0; font-size: 12.5px; }
.song .n { width: 16px; flex: none; color: var(--faint); font-weight: 700; }
.foot-link { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.doc { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; }
.doc .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-btc { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 6px; background: var(--surface2); color: var(--muted2); }
.tag-admin { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.doc .go { color: var(--muted); font-weight: 700; }

/* ---------- contact ---------- */
.contact { margin: 22px 14px 0; background: var(--inv); color: var(--onInv); border-radius: 24px; padding: 18px; }
.contact .row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.contact .nm { font-size: 17px; font-weight: 700; }
.contact .ph { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: 0.01em; }
.contact .call { flex: none; width: 54px; height: 54px; border-radius: 27px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.contact .call svg { width: 22px; height: 22px; stroke: #111211; }
.contact .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.contact .two a, .contact .two button { height: 44px; border-radius: 22px; background: var(--inv2); color: var(--onInv); border: 0; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- checklist (admin) ---------- */
.ck-group { margin: 10px 14px 0; border-radius: 18px; background: var(--surface); padding: 8px 6px 4px; }
.ck-group .gh { display: flex; justify-content: space-between; padding: 4px 10px 6px; font-size: 13px; font-weight: 800; }
.ck-group .gh span { color: var(--muted); font-weight: 600; }
.ck { width: 100%; min-height: 46px; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 7px 10px; text-align: left; border-radius: 12px; }
.ck .box { flex: none; width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--iconOff); display: flex; align-items: center; justify-content: center; }
.ck .box svg { width: 13px; height: 13px; stroke: #fff; opacity: 0; }
.ck.done .box { background: #1F8F7C; border-color: #1F8F7C; }
.ck.done .box svg { opacity: 1; }
.ck .lb { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.ck.done .lb { color: var(--faint); text-decoration: line-through; font-weight: 400; }
.ck .by { font-size: 11px; color: var(--faint); }

.adminbar { margin: 18px 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.adminbar .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- danh sách "tiếp theo" ---------- */
.nx { padding: 0 14px 0 8px; }
.nx-row { display: flex; gap: 10px; }
.nx-date { width: 44px; flex: none; text-align: right; padding-top: 16px; }
.nx-date b { display: block; font-size: 13px; font-weight: 800; }
.nx-date span { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.nx-card { flex: 1; min-width: 0; margin: 4px 0; padding: 11px 14px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; gap: 8px; }
.nx-card .x { flex: 1; min-width: 0; }
.nx-card .x b { display: block; font-size: 14px; font-weight: 700; }
.nx-card .x span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nx-card .c { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.empty { margin: 8px 14px 0; padding: 22px 18px; border-radius: 18px; background: var(--surface); text-align: center; color: var(--muted); font-size: 13.5px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- nút chung ---------- */
.btn { height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; }
.btn.dark { background: var(--sel); color: var(--onSel); }
.btn.lime { background: var(--lime); color: var(--onLime); font-weight: 800; }
.btn.danger { color: var(--danger); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- form (admin) ---------- */
.form-page { padding: 0 16px 40px; }
.fsec { margin-top: 22px; }
.fsec > .cap { display: block; margin: 0 4px 10px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fgrid .full { grid-column: 1 / -1; }
.f label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 5px 2px; }
.f input, .f select, .f textarea, .inp { width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 10px 13px; font-size: 15px; }
.f textarea { min-height: 84px; resize: vertical; }
.f .hint { font-size: 11.5px; color: var(--faint); margin: 4px 2px 0; }
.seg { display: inline-flex; background: var(--surface); border-radius: 14px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { height: 38px; padding: 0 14px; border-radius: 11px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted2); }
.seg button.on { background: var(--sel); color: var(--onSel); }
.listed { border-radius: 16px; background: var(--surface); padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.lrow { display: grid; gap: 6px; background: var(--bg); border-radius: 12px; padding: 8px; }
.lrow .inp { min-height: 40px; border-radius: 10px; font-size: 14px; padding: 8px 10px; }
.lrow .line { display: flex; gap: 6px; align-items: center; }
.lrow .line > * { min-width: 0; }
.lrow .x { flex: none; width: 36px; height: 36px; border-radius: 18px; border: 0; background: var(--surface); color: var(--danger); font-size: 18px; line-height: 1; }
.lrow .chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.add { height: 40px; border: 1px dashed var(--faint); border-radius: 12px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted2); }
.tokens { display: flex; flex-wrap: wrap; gap: 5px; }
.tok { height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.tok.on { background: var(--sel); color: var(--onSel); border-color: var(--sel); }
.tok.den.on { background: var(--lime); color: var(--onLime); border-color: var(--lime); }
.tok.guest { border-style: dashed; }
.savebar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin-top: 24px; display: flex; gap: 8px; padding: 10px; border-radius: 22px; background: var(--bg); box-shadow: var(--shadow); z-index: 5; }
.savebar .btn { flex: 1; }
@media (min-width: 1000px) { .savebar { bottom: 16px; } }
.err { color: var(--danger); font-size: 13px; font-weight: 600; margin: 8px 4px 0; }

/* ---------- admin: nhân sự ---------- */
.pp-group { margin: 12px 14px 0; border-radius: 18px; background: var(--surface); padding: 6px 14px; }
.pp-group .gh { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); padding: 8px 0 4px; text-transform: uppercase; }
.pp { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pp:first-of-type { border-top: 0; }
.pp .x { flex: 1; min-width: 0; }
.pp .x b { font-size: 14px; }
.pp .x span { display: block; font-size: 12px; color: var(--muted); }
.pp .ok { font-size: 11px; font-weight: 700; color: #1F8F7C; }
.pp .no { font-size: 11px; font-weight: 700; color: var(--faint); }

/* ---------- menu, hộp thoại, thông báo ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } }
.sheet { width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { border-radius: 24px; } }
.sheet h3 { margin: 0 0 12px; font-size: 18px; }
.sheet .menu { display: flex; flex-direction: column; gap: 4px; }
.sheet .menu button, .sheet .menu a { min-height: 48px; border: 0; background: var(--surface); border-radius: 14px; padding: 0 14px; text-align: left; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet .acts { display: flex; gap: 8px; margin-top: 14px; }
.sheet .acts .btn { flex: 1; }
.pwbox { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; text-align: center; padding: 16px; border-radius: 16px; background: var(--surface); margin: 10px 0; user-select: all; word-break: break-all; }
#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(10px); z-index: 60; background: var(--sel); color: var(--onSel); padding: 10px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90%; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- đăng nhập ---------- */
.login { position: fixed; inset: 0; background: #070708; color: #F2F2EE; display: flex; flex-direction: column; align-items: center; overflow: auto; color-scheme: dark; }
.login .in { width: 100%; max-width: 400px; min-height: 100%; display: flex; flex-direction: column; padding: 0 24px calc(24px + env(safe-area-inset-bottom)); }
.login .top { flex: 1; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 40px; }
.login .lg { width: 230px; height: auto; filter: invert(1); animation: dveRise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.login .eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 26px; }
.login .eq span { display: block; width: 4px; border-radius: 2px; background: #3A3B38; transform-origin: bottom; animation: dveBar 1.2s ease-in-out infinite; }
.login .eq span.hi { background: #C8F031; }
.login .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; color: #8E8F89; margin-top: 18px; }
.login form { display: flex; flex-direction: column; gap: 10px; }
.login label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #8E8F89; }
.login input { height: 52px; border-radius: 16px; border: 1px solid #262724; background: #121311; color: #F2F2EE; padding: 0 16px; font-size: 16px; font-weight: 600; outline: none; }
.login input:focus { border-color: #C8F031; }
.login .go { height: 56px; margin-top: 10px; border-radius: 28px; border: 0; background: #C8F031; color: #111211; font-size: 16px; font-weight: 800; }
.login .go:disabled { opacity: 0.6; }
.login .note { text-align: center; font-size: 12px; line-height: 1.6; color: #6E6F69; margin-top: 14px; }
.login .lerr { color: #FF8A4C; font-size: 13px; font-weight: 600; text-align: center; min-height: 18px; }
@keyframes dveBar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes dveRise { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .login .lg, .login .eq span { animation: none; } * { transition: none !important; } }

/* Quay MV / Phát hành: địa điểm, nút Maps */
.pl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.pl > span { display: inline-flex; align-items: center; gap: 4px; }
.pl > span svg { width: 13px; height: 13px; stroke: var(--muted); }
.mapbtn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; white-space: nowrap; flex: none; }
.mapbtn svg { width: 12px; height: 12px; stroke: var(--bg); }
.loc { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.loc:first-child { border-top: 0; }
.loc .n { width: 16px; flex: none; color: var(--faint); font-weight: 700; font-size: 12.5px; padding-top: 1px; }
.loc .x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--muted); }
.loc .x b { font-size: 13.5px; color: var(--ink); }
.loc .mapbtn { margin-top: 1px; }

/* Ghi chú DVE */
.dvenote { margin: 14px 16px 0; padding: 13px 16px 12px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--lime); }
.dvenote .cap { margin-bottom: 4px; }
.dvenote .ln { font-size: 13.5px; line-height: 1.55; padding: 2px 0; color: var(--ink2); }
.dvenote .ln b { color: var(--ink); }

/* Thanh báo có bản cập nhật */
.updbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 9000; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 999px; background: var(--lime); color: var(--onLime); font: 800 13px 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: var(--shadow); white-space: nowrap; }

/* Nút mở folder: nổi bật */
.fbtn { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.fbtn svg { width: 18px; height: 18px; stroke: var(--lime); flex: none; }
.fbtn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbtn b { padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--onLime); font-size: 11.5px; }
.fbtn + .rows { margin-top: 6px; }

/* Chuyến bay */
.flights { display: flex; flex-direction: column; gap: 10px; margin: 0 16px; }
.fcard { position: relative; text-align: left; border: 0; cursor: pointer; width: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit;
  border-left: 4px solid #3B82F6; }
.fcard.mine { border-left-color: var(--lime); }
.fcard .r1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fcard .rt { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.fcard .rt i, .pass .proute i { font-style: normal; color: var(--muted); margin: 0 8px; font-weight: 600; }
.fcard .dt { text-align: right; font-size: 12px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; }
.fcard .dt b { font-size: 18px; color: var(--ink); }
.fcard .r2 { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; align-items: center; font-size: 12.5px; color: var(--muted2); }
.fcard .no { padding: 3px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 800; letter-spacing: .04em; }
.fcard .pnr b { color: var(--ink); letter-spacing: .06em; }
.fcard .r3f { margin-top: 8px; font-size: 12.5px; color: var(--ink2); font-weight: 600; padding-right: 48px; }
.fcard .me-pill { position: absolute; right: 12px; bottom: 12px; }
.fline { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 12px 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
.fline svg { width: 13px; height: 13px; stroke: var(--lime); }
.frtag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; flex: 1; }
.frtag svg { width: 16px; height: 16px; stroke: #3B82F6; }
.flightrow { border-left: 3px solid #3B82F6; }
/* Thẻ bay phóng to (đưa quầy check-in xem) */
.pass { position: fixed; inset: 0; z-index: 9500; background: #FFFFFF; color: #111211; overflow-y: auto; padding: calc(24px + env(safe-area-inset-top)) 22px 32px; }
.pass .px { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #F0F0EE; font-size: 26px; cursor: pointer; color: #111211; }
.pass .pin { max-width: 560px; margin: 0 auto; }
.pass .pk { font-size: 13px; font-weight: 700; color: #74756F; text-transform: uppercase; letter-spacing: .12em; padding-right: 50px; }
.pass .proute { font-size: clamp(44px, 14vw, 72px); font-weight: 800; letter-spacing: .02em; margin: 10px 0 18px; line-height: 1; }
.pass .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 18px 0; border-top: 2px dashed #D4D4CF; border-bottom: 2px dashed #D4D4CF; }
.pass .pgrid span, .pass .ppnr span, .pass .ppax span { display: block; font-size: 12px; font-weight: 700; color: #74756F; text-transform: uppercase; letter-spacing: .1em; }
.pass .pgrid b { font-size: clamp(22px, 6.4vw, 32px); font-weight: 800; white-space: nowrap; }
.pass .ppnr { margin: 40px 0 22px; padding: 20px 18px; border-radius: 18px; background: #C8F031; }
.pass .ppnr span { color: #3F4810; }
.pass .ppnr b { font-size: clamp(40px, 13vw, 64px); font-weight: 800; letter-spacing: .12em; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.pass .ppax { margin-top: 18px; }
.pass .ppax b { display: block; font-size: 24px; font-weight: 800; padding: 4px 0; }
.pass .pnote { margin-top: 14px; font-size: 15px; color: #3A3B37; }

/* Thông báo */
.pushrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.pushrow > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.pushrow svg { width: 18px; height: 18px; stroke: var(--muted); }
.pushrow.on svg { stroke: #1F8F7C; }
.pushbanner { display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 12px 12px 12px 14px; border-radius: var(--radius); background: var(--inv); color: var(--onInv); font-size: 13px; line-height: 1.45; }
.pushbanner > span { flex: 1; display: flex; gap: 8px; align-items: flex-start; }
.pushbanner svg { width: 18px; height: 18px; stroke: var(--lime); flex: none; margin-top: 1px; }
.pushbanner .x { border: 0; background: none; color: var(--onInvMuted); font-size: 20px; cursor: pointer; padding: 0 4px; }

.fl2 { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fl2 > span { font-size: 11px; font-weight: 700; color: var(--muted); padding-left: 2px; }
.fl2 > .inp { width: 100%; }
