/* BAT NAILS for Clover: đúng bộ nhận diện (Manrope, hồng #FDA6C4, berry #B8336A, mực #2E2226). */
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-vi.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: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope.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: 'Manrope'; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pink: #FDA6C4; --berry: #B8336A; --ink: #2E2226; --tint: #FFE6EF; --ink-line: #F9CADB;
  --g1: #F3F4F1; --g2: #E8EAE4; --g3: #DADDD5; --g4: #868B95; --g5: #575C66;
  --r: 12px; --tap: 52px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #FFFFFF; color: var(--ink); font: 600 16px/1.35 Manrope, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--g5); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { height: 100%; display: flex; flex-direction: column; }
header.top { flex: none; height: 68px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 2px solid var(--g3); }
header.top img { height: 40px; width: auto; }
header.top h1 { margin: 0; flex: 1; font-size: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { flex: none; white-space: nowrap; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; background: var(--g1); font-size: 15px; font-weight: 800; color: var(--g5); border: 0; }
.chip .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--g4); }
.chip.on .dot { background: var(--berry); }
.btn { min-height: var(--tap); padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--g4); border-radius: var(--r); background: #FFFFFF; font-size: 16px; font-weight: 800; }
.btn.dash { border-style: dashed; }
.btn.sel, .opt[aria-pressed="true"] { border: 3px solid var(--berry); background: var(--tint); }

main.board { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 360px; gap: 16px; padding: 16px; overflow: auto; }
@media (max-width: 860px) { main.board { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--g5); }
.tag { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--pink); color: var(--ink); font-size: 15px; font-weight: 800; }
.tag.grey { background: var(--g1); color: var(--g5); }
.tag.tint { background: var(--tint); }
.count { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 17px; background: var(--ink); color: #FFFFFF; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
@media (min-width: 1600px) { main.board { grid-template-columns: 1fr 440px; } .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .tech { min-height: 92px; } .tech b { font-size: 20px; } .tech small { font-size: 15px; } }
@media (max-width: 520px) { header.top { gap: 8px; padding: 8px 12px; } header.top img { height: 30px; } header.top h1 { font-size: 18px; } .chip .lbl { display: none; } .chip { padding: 0 12px; } }

.tech { position: relative; min-height: 76px; padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--g3); border-radius: var(--r); background: #FFFFFF; text-align: left; overflow: hidden; }
.tech.up { border: 3px solid var(--berry); background: var(--tint); }
.tech.busy { background: var(--g1); border-color: var(--g1); }
.tech .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pink); }
.tech.busy .stripe { background: var(--g4); }
.tech b { display: block; font-size: 18px; font-weight: 800; }
.tech small { display: block; font-size: 14px; font-weight: 600; color: var(--g5); }
.face { flex: none; width: 40px; height: 48px; padding-top: 9px; display: grid; place-items: center; border-radius: 50% 50% 44% 44% / 62% 62% 30% 30%; background: var(--tint); font-size: 16px; font-weight: 800; }
.tech.up .face { background: var(--pink); }

.list { border: 2px solid var(--g3); border-radius: var(--r); overflow: hidden; }
.row { min-height: 56px; padding: 8px 16px; display: flex; align-items: center; gap: 12px; border: 0; border-top: 2px solid var(--g2); width: 100%; background: #FFFFFF; text-align: left; }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row b { font-size: 16px; font-weight: 800; }
.row small { font-size: 14px; color: var(--g5); }
.row .amt { flex: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row.head { background: var(--g1); min-height: 0; padding: 10px 16px; font-size: 15px; font-weight: 800; color: var(--g5); }
.empty { padding: 18px 16px; color: var(--g5); font-size: 15px; }

footer.next { flex: none; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--g2); }
.why { margin: 0; display: flex; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--g5); }
.why svg { flex: none; margin-top: 1px; }
.primary { min-height: 76px; padding: 12px 16px 12px 20px; display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #FFFFFF; text-align: left; width: 100%; }
.primary .t { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.primary .en { font-size: 22px; font-weight: 800; }
.primary .vi { font-size: 16px; font-weight: 600; color: var(--ink-line); }
.primary.outline { background: #FFFFFF; color: var(--ink); border-color: var(--g4); }
.primary.outline .vi { color: var(--g5); }
.primary[disabled] { opacity: .45; cursor: default; }

dialog.sheet { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 12px 40px rgba(46, 34, 38, .25); }
dialog.sheet::backdrop { background: rgba(46, 34, 38, .45); }
.sheet .in { max-height: calc(100dvh - 24px); padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.sheet .hd { display: flex; align-items: flex-start; gap: 12px; }
.sheet .hd > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sheet h2 { margin: 0; font-size: 24px; font-weight: 800; }
.sheet .sub { margin: 0; font-size: 16px; color: var(--g5); }
.x { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--g4); border-radius: var(--r); background: #FFFFFF; }
.sheet .ft { position: sticky; bottom: -20px; margin: 4px -20px -20px; padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--g2); background: #FFFFFF; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: var(--tap); padding: 0 16px; border: 2px solid var(--g4); border-radius: var(--r); background: #FFFFFF; font-size: 16px; font-weight: 800; }
.big { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: var(--r); background: var(--g1); }
.big b { font-size: 48px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.box { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r); background: var(--g1); font-size: 15px; font-weight: 700; line-height: 1.4; }
.box.sel { border: 3px solid var(--berry); background: var(--tint); }
.ok { display: flex; gap: 10px; align-items: flex-start; }
input.field { width: 100%; min-height: var(--tap); padding: 0 14px; border: 2px solid var(--g4); border-radius: var(--r); font: 700 18px Manrope, system-ui, sans-serif; color: var(--ink); }
.steps { padding: 4px 16px; border: 2px solid var(--g3); border-radius: var(--r); }
.step { min-height: 52px; display: flex; align-items: center; gap: 12px; }
.step i { flex: none; width: 18px; height: 18px; border: 2px solid var(--g4); border-radius: 9px; }
.step.now i { border: 3px solid var(--berry); background: var(--tint); }
.step.done i { border: 0; background: var(--berry); }
.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #FFFFFF; font-weight: 700; z-index: 10; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise .2s ease-out; } @keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } } }
