/* Bản xem nhanh 3 phương án giao diện Sổ tay cưới (Sếp yêu cầu 17/11/2026) — dữ liệu mẫu, chưa nối dữ liệu thật */

/* ===== Phương án A · Sổ tay xanh lá (mặc định) ===== */
:root {
  --bg: #f4f5ef; --card: #ffffff; --ink: #2d3a2e; --muted: #5c6a5b; --line: #d6dccf;
  --accent: #4f6f50; --on-accent: #ffffff; --soft: #dfe7d8; --soft2: #f3e6c3; --soft3: #e9eee4;
  --tag: #8a6416; --tag-bg: #f6ebcf;
  --font: 'Be Vietnam Pro', system-ui, sans-serif; --head: 'Be Vietnam Pro', system-ui, sans-serif;
  --r: 14px; --r-btn: 10px; --r-chip: 22px; --shadow: 0 1px 2px rgba(45,58,46,.05), 0 6px 18px rgba(45,58,46,.07);
}
/* ===== Phương án B · Tối giản ===== */
:root[data-k="b"] {
  --bg: #ffffff; --card: #ffffff; --ink: #121212; --muted: #5f5f5f; --line: #e6e6e6;
  --accent: #121212; --on-accent: #ffffff; --soft: #f2f2f2; --soft2: #f2f2f2; --soft3: #f7f7f7;
  --tag: #c23a26; --tag-bg: #fdeeeb; --coral: #e8503a;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif; --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --r: 12px; --r-btn: 10px; --r-chip: 10px; --shadow: none;
}
/* ===== Phương án C · Pastel ===== */
:root[data-k="c"] {
  --bg: #fff6f1; --card: #ffffff; --ink: #3a2d4a; --muted: #6e6079; --line: #f1e2da;
  --accent: #3a2d4a; --on-accent: #ffffff; --soft: #bdebd9; --soft2: #e4dcff; --soft3: #fff0e8;
  --tag: #3a2d4a; --tag-bg: #ffcfb8; --peach: #ffcfb8;
  --font: 'Quicksand', system-ui, sans-serif; --head: 'Baloo 2', system-ui, sans-serif;
  --r: 26px; --r-btn: 26px; --r-chip: 22px; --shadow: 0 14px 30px -22px rgba(58,45,74,.5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #e9e9e6; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0 auto; max-width: 440px; min-height: 100vh; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--font); position: relative; }
:root[data-k="a"] body, :root:not([data-k]) body { font-weight: 400; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2 { font-family: var(--head); margin: 0; line-height: 1.1; text-wrap: balance; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* thanh đổi phương án (chỉ có ở bản demo) */
.demo-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #2b2b2b; color: #fff; font: 600 12px/1 system-ui, sans-serif; }
.demo-bar span { flex: 1; min-width: 0; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar a { text-decoration: none; padding: 7px 11px; border-radius: 6px; background: #444; color: #fff; }
.demo-bar a[aria-current="true"] { background: #fff; color: #111; }

.wrap { padding: 20px 18px 110px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
:root[data-k="c"] .card { border: 0; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--accent); }
:root[data-k="c"] .btn { font-family: var(--head); font-size: 18px; }
:root[data-k="b"] .btn .arrow { display: inline; }
.btn .arrow { display: none; color: var(--coral, currentColor); }

.lbl { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.in { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--card); font: inherit; font-size: 17px; color: var(--ink); }
.in:focus { outline: none; border-color: var(--accent); }
:root[data-k="c"] .in { border: 0; background: var(--soft3); padding: 0 18px; font-weight: 600; }
.field + .field { margin-top: 14px; }

/* chip chọn */
.chips { display: flex; gap: 8px; }
.chip { flex: 1; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-chip); background: var(--card); font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
:root[data-k="b"] .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
:root[data-k="c"] .chip { border: 0; background: var(--soft3); }
:root[data-k="c"] .chip[aria-pressed="true"] { background: var(--peach); box-shadow: inset 0 0 0 2px var(--ink); }

/* ===== Đăng nhập ===== */
.login { min-height: 100vh; padding: 40px 22px 28px; display: flex; flex-direction: column; gap: 26px; }
.brand { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.login h1 { font-size: 46px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.login .sub { margin: 10px 0 0; font-size: 16px; color: var(--muted); max-width: 320px; }
.login .hero { display: flex; flex-direction: column; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft3); border-radius: var(--r-btn); padding: 4px; margin-bottom: 18px; }
.seg button { min-height: 42px; border: 0; border-radius: calc(var(--r-btn) - 3px); background: transparent; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.forgot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.login .note { margin-top: auto; font-size: 13px; color: var(--muted); }
/* A: đầu trang giấy kẻ ô */
:root:not([data-k="b"]):not([data-k="c"]):not([data-k="d"]) .login .hero { margin: -40px -22px 0; padding: 40px 22px 26px; background-color: var(--soft3); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
:root:not([data-k="b"]):not([data-k="c"]):not([data-k="d"]) .login h1 { color: var(--accent); }
/* B: chữ rất lớn, có dấu chấm san hô */
:root[data-k="b"] .login h1 { font-size: 66px; letter-spacing: -.045em; line-height: .95; }
:root[data-k="b"] .login h1::after { content: "."; color: var(--coral); }
:root[data-k="b"] .login .card { border: 0; padding: 0; }
:root[data-k="b"] .in { border-color: #cfcfcf; }
/* C: căn giữa, có biểu tượng tim và bong bóng màu */
:root[data-k="c"] .login { overflow: hidden; position: relative; }
:root[data-k="c"] .login .hero { align-items: center; text-align: center; padding-top: 30px; position: relative; }
:root[data-k="c"] .login .sub { margin-inline: auto; }
:root[data-k="c"] .login h1 { font-size: 48px; }
:root[data-k="c"] .login::before, :root[data-k="c"] .login::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
:root[data-k="c"] .login::before { width: 260px; height: 260px; background: var(--peach); top: -110px; right: -90px; }
:root[data-k="c"] .login::after { width: 150px; height: 150px; background: var(--soft); top: 170px; left: -70px; }
:root[data-k="c"] .login > * { position: relative; z-index: 1; }
.heart { display: none; width: 72px; height: 72px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); align-items: center; justify-content: center; margin-bottom: 8px; }
:root[data-k="c"] .heart { display: flex; }
:root[data-k="c"] .brand { display: none; }

/* ===== Trang chủ ===== */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hello small { display: block; font-size: 13px; color: var(--muted); }
.hello h1 { font-size: 26px; font-weight: 800; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 800; color: var(--accent); flex: none; }
:root[data-k="b"] .avatar { background: var(--ink); color: #fff; }
:root[data-k="c"] .avatar { border-radius: 18px; background: var(--soft2); color: var(--ink); font-family: var(--head); }

.count { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; overflow: hidden; }
.count .big { font-family: var(--head); font-size: 56px; font-weight: 800; line-height: .95; color: var(--accent); letter-spacing: -.02em; }
.count .big small { font-size: 22px; letter-spacing: 0; }
.count .date { font-size: 14px; margin-top: 6px; }
.prog { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); }
.prog b { font-size: 20px; color: var(--ink); }
.bar { width: 90px; height: 7px; border-radius: 4px; background: var(--soft3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
:root[data-k="b"] .count { border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 4px 0 18px; }
:root[data-k="b"] .count .big { font-size: 104px; letter-spacing: -.06em; line-height: .8; color: var(--ink); }
:root[data-k="b"] .count .big small { display: block; font-size: 15px; letter-spacing: 0; margin-top: 8px; }
:root[data-k="c"] .count { background: var(--peach); }
:root[data-k="c"] .count::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #ffbfa3; right: -40px; top: -50px; }
:root[data-k="c"] .count > * { position: relative; }
:root[data-k="c"] .count .big { color: var(--ink); }
:root[data-k="c"] .bar { background: rgba(255,255,255,.7); }
:root[data-k="c"] .bar i { background: var(--ink); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 128px; padding: 16px; border-radius: var(--r); background: var(--soft); text-decoration: none; }
.tile:nth-child(2) { background: var(--soft2); }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.75); display: grid; place-items: center; }
.tile .t { display: flex; flex-direction: column; gap: 4px; }
.tile b { font-family: var(--head); font-size: 18px; line-height: 1.15; }
.tile span { font-size: 13px; color: var(--muted); }
:root[data-k="c"] .tile span { color: var(--ink); }
:root[data-k="b"] .tiles { grid-template-columns: 1fr; gap: 0; }
:root[data-k="b"] .tile { flex-direction: row; align-items: center; min-height: 72px; padding: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
:root[data-k="b"] .tile .ic { background: var(--soft); }
:root[data-k="b"] .tile .t { flex: 1; display: flex; flex-direction: column; }

.call h2 { font-size: 19px; font-weight: 800; }
.call p { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.call .btn { margin-top: 12px; }
:root[data-k="b"] .call { background: var(--ink); color: #fff; border: 0; }
:root[data-k="b"] .call p { color: #c9c9c9; }
:root[data-k="b"] .call .chip { background: transparent; border-color: #4a4a4a; color: #fff; }
:root[data-k="b"] .call .chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #121212; }
:root[data-k="b"] .call .btn { background: #fff; color: #121212; }
:root:not([data-k="b"]):not([data-k="c"]):not([data-k="d"]) .call { border: 1.5px dashed var(--accent); }

.done-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-btn); background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.done-msg.on { display: block; }
:root[data-k="b"] .done-msg { background: #2a2a2a; color: #fff; }

/* thanh dưới */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 20; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 18px; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 800; }
:root[data-k="c"] .nav { bottom: 14px; width: calc(100% - 32px); max-width: 408px; border: 0; border-radius: 30px; background: var(--ink); padding: 6px; }
:root[data-k="c"] .nav a { color: #fff; }
:root[data-k="c"] .nav a[aria-current="page"] { background: var(--peach); color: var(--ink); }

/* ===== Trang con ===== */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg); }
.top h1 { font-size: 22px; font-weight: 800; flex: 1; }
.ib { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); display: grid; place-items: center; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.08); flex: none; }
:root[data-k="b"] .ib { box-shadow: none; }
:root[data-k="c"] .ib { border-radius: 16px; }

/* Kế hoạch */
.sum { display: flex; align-items: center; gap: 14px; }
.ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--accent) var(--p, 29%), var(--soft3) 0); }
.ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.sum b { font-family: var(--head); font-size: 18px; display: block; }
:root[data-k="c"] .sum { background: var(--soft); }
:root[data-k="c"] .ring { background: conic-gradient(var(--ink) var(--p, 29%), #fff 0); }
:root[data-k="c"] .ring span { background: var(--soft); }
:root[data-k="b"] .sum { border: 0; padding: 0; }

.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; min-height: 40px; padding: 0 15px; border: 1.5px solid var(--line); border-radius: var(--r-chip); background: var(--card); font-size: 13px; font-weight: 600; }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
:root[data-k="b"] .tabs { gap: 20px; border-bottom: 1px solid var(--line); }
:root[data-k="b"] .tabs button { border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--muted); }
:root[data-k="b"] .tabs button[aria-pressed="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--coral); }
:root[data-k="c"] .tabs button { border: 0; }

.tasks { display: flex; flex-direction: column; padding: 4px 16px; }
.task-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; border: 0; background: none; text-align: left; padding: 8px 0; }
.box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--accent); display: grid; place-items: center; flex: none; }
.box svg { opacity: 0; color: var(--on-accent); }
.task[aria-pressed="true"] .box { background: var(--accent); }
.task[aria-pressed="true"] .box svg { opacity: 1; }
.task[aria-pressed="true"] .t b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task .t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.task .t b { font-size: 15px; font-weight: 600; }
.task .t small { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--tag); background: var(--tag-bg); padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
:root[data-k="b"] .tasks { padding: 0; border: 0; }
:root[data-k="b"] .box { border-radius: 50%; }
:root[data-k="c"] .tasks { background: transparent; padding: 0; gap: 10px; box-shadow: none; }
:root[data-k="c"] .task-row { background: #fff; border: 0; border-radius: 20px; padding: 0 12px 0 14px; }
:root[data-k="c"] .task { min-height: 58px; }
:root[data-k="c"] .box { border-radius: 10px; width: 28px; height: 28px; }
:root[data-k="c"] .task[aria-pressed="true"] .box { background: var(--soft); border-color: var(--soft); }
:root[data-k="c"] .task[aria-pressed="true"] .box svg { stroke: var(--ink); }
.add { min-height: 50px; border: 1.5px dashed var(--accent); border-radius: var(--r-btn); background: transparent; font-weight: 700; width: 100%; }
:root[data-k="c"] .add { font-family: var(--head); font-size: 17px; }

.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money .card { padding: 14px; }
.money small { display: block; font-size: 12px; color: var(--muted); }
.money b { font-size: 18px; font-weight: 800; }
:root:not([data-k="b"]):not([data-k="c"]):not([data-k="d"]) .money .card { background: var(--ink); color: #f4f5ef; border: 0; }
:root:not([data-k="b"]):not([data-k="c"]):not([data-k="d"]) .money small { color: #c9d3c1; }

/* Thiệp */
.inv { align-self: center; width: 100%; max-width: 310px; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 30px 22px; position: relative; overflow: hidden; background: #fbfcf8; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 34px -22px rgba(0,0,0,.45); }
.inv::before { content: ""; position: absolute; inset: 12px; border: 1px solid #a9b89f; pointer-events: none; }
.inv .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.inv .names { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.inv .names b { font-family: var(--head); font-size: 38px; font-weight: 800; line-height: 1; }
.inv .names i { font-style: normal; font-size: 22px; color: var(--accent); }
.inv .when b { display: block; font-size: 14px; }
.inv .when span { font-size: 13px; color: var(--muted); }
.inv.m2 { background: #fbf3dd; }
.inv.m3 { background: #efe3d1; }
:root[data-k="b"] .inv { align-items: flex-start; text-align: left; border: 0; border-radius: 0; background: #fff; box-shadow: 0 24px 40px -24px rgba(0,0,0,.4); padding: 34px 28px; }
:root[data-k="b"] .inv::before { display: none; }
:root[data-k="b"] .inv .names { align-items: flex-start; }
:root[data-k="b"] .inv .names b { font-size: 46px; letter-spacing: -.04em; }
:root[data-k="b"] .inv .names i { width: 36px; height: 3px; background: var(--coral); font-size: 0; margin: 6px 0; }
:root[data-k="b"] .inv .when { width: 100%; border-top: 1.5px solid var(--ink); padding-top: 14px; }
:root[data-k="b"] .inv.m2 { background: #121212; color: #fff; }
:root[data-k="b"] .inv.m2 .when { border-color: #fff; }
:root[data-k="b"] .inv.m3 { background: #fdeeeb; }
:root[data-k="c"] .inv { border: 0; border-radius: 32px; background: #ffe3d6; }
:root[data-k="c"] .inv::before { inset: auto auto -60px -60px; width: 160px; height: 160px; border: 0; border-radius: 50%; background: var(--soft); }
:root[data-k="c"] .inv::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--soft2); right: -36px; top: -30px; }
:root[data-k="c"] .inv > * { position: relative; z-index: 1; }
:root[data-k="c"] .inv .k { letter-spacing: .06em; text-transform: none; font-size: 13px; font-weight: 700; color: var(--ink); }
:root[data-k="c"] .inv .names i { color: #ff8f70; }
:root[data-k="c"] .inv .when { background: #fff; border-radius: 20px; padding: 10px 18px; }
:root[data-k="c"] .inv.m2 { background: #d7f3e8; }
:root[data-k="c"] .inv.m3 { background: #ece6ff; }

.mau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mau button { min-height: 58px; border: 1.5px solid var(--line); border-radius: var(--r-btn); font-size: 13px; font-weight: 700; }
.mau button[aria-pressed="true"] { border: 2.5px solid var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* trang chọn phương án */
.pick { padding: 22px 18px 40px; display: flex; flex-direction: column; gap: 14px; font-family: 'Be Vietnam Pro', system-ui, sans-serif; }
.pick h1 { font-family: inherit; font-size: 22px; }
.opt { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e2e2dd; text-decoration: none; }
.opt .sw { display: flex; gap: 6px; }
.opt .sw i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); }
.opt b { font-size: 17px; }
.opt p { margin: 0; font-size: 14px; color: #555; }
.opt .go { display: flex; flex-wrap: wrap; gap: 8px; }
.opt .go a { padding: 8px 12px; border-radius: 8px; background: #f1f1ee; text-decoration: none; font-size: 13px; font-weight: 600; }

/* ===== A · chi tiết cưới nhỏ (nhẫn, cành lá, dấu song hỷ) ===== */
.a-only { display: none !important; }
:root[data-k="a"] .a-only { display: block !important; }
:root[data-k="a"] .login .hero { position: relative; }
.a-rings { position: absolute; top: 14px; right: 16px; width: 72px; height: 55px; color: var(--accent); }
.a-mini { display: inline-flex !important; align-items: center; gap: 6px; }
.a-mini svg { color: var(--accent); }
:root:not([data-k="a"]) .a-mini svg { display: none; }
.a-sprig { width: 100%; height: 20px; color: var(--accent); opacity: .7; }
/* A1 · các trang trong có nền dòng kẻ như giấy sổ */
:root[data-k="a"][data-v="1"] body:has(.wrap) { background-image: repeating-linear-gradient(180deg, transparent 0 31px, #d9e0d0 31px 32px); background-position: 0 6px; }
:root[data-k="a"][data-v="1"] body:has(.wrap) .top { background: rgba(244,245,239,.92); backdrop-filter: blur(4px); }
.a-ring-sm { width: 44px; height: 30px; color: var(--accent); margin: 0 auto -8px; position: relative; }

/* ===== A2 · Vở ô li mực xanh (chữ có chân Lora, lề đỏ như vở học trò) ===== */
:root[data-k="a"][data-v="2"] {
  --bg: #f4f7fb; --card: #ffffff; --ink: #1f2d44; --muted: #56627a; --line: #d3dbe8;
  --accent: #2f4f86; --soft: #dde6f5; --soft2: #f6e3e3; --soft3: #eaf0f8;
  --tag: #8a3a3a; --tag-bg: #f6e3e3;
  --head: 'Lora', Georgia, serif;
}
:root[data-k="a"][data-v="2"] h1, :root[data-k="a"][data-v="2"] h2, :root[data-k="a"][data-v="2"] .tile b, :root[data-k="a"][data-v="2"] .count .big { font-weight: 600; letter-spacing: 0; }
:root[data-k="a"][data-v="2"] .login .hero { background-image: linear-gradient(90deg, transparent 30px, #e3a3a3 30px 31px, transparent 31px), linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px) !important; background-size: auto, 24px 24px, 24px 24px !important; padding-left: 46px !important; }
:root[data-k="a"][data-v="2"] .wrap { background-image: linear-gradient(90deg, transparent 8px, rgba(227,163,163,.55) 8px 9px, transparent 9px); }
:root[data-k="a"][data-v="2"] .task .t b { font-family: var(--head); font-weight: 500; }

/* ===== A3 · Bullet journal (lưới chấm, xám than + vàng mù tạt, chữ Nunito bo tròn) ===== */
:root[data-k="a"][data-v="3"] {
  --bg: #f7f6f2; --card: #ffffff; --ink: #2b2b2b; --muted: #625f58; --line: #e0ddd4;
  --accent: #2b2b2b; --on-accent: #ffffff; --soft: #f3e5c2; --soft2: #dfe9e4; --soft3: #f0eee8;
  --tag: #7a5512; --tag-bg: #f3e5c2; --hl: #f0cf72;
  --font: 'Nunito', system-ui, sans-serif; --head: 'Nunito', system-ui, sans-serif;
  --r: 18px; --r-btn: 14px; --r-chip: 14px;
}
:root[data-k="a"][data-v="3"] body { font-weight: 500; }
:root[data-k="a"][data-v="3"] .login .hero { background-color: var(--bg) !important; background-image: radial-gradient(#c9c4b6 1.2px, transparent 1.4px) !important; background-size: 18px 18px !important; }
:root[data-k="a"][data-v="3"] main.wrap { background-image: radial-gradient(#dcd8cc 1px, transparent 1.2px); background-size: 18px 18px; }
:root[data-k="a"][data-v="3"] .login h1, :root[data-k="a"][data-v="3"] .hello h1, :root[data-k="a"][data-v="3"] .top h1 { color: var(--ink) !important; font-weight: 900; background: linear-gradient(transparent 62%, var(--hl) 62% 92%, transparent 92%); width: fit-content; flex: none; }
:root[data-k="a"][data-v="3"] .count .big { color: var(--ink); font-weight: 900; }
:root[data-k="a"][data-v="3"] .a-rings, :root[data-k="a"][data-v="3"] .a-sprig, :root[data-k="a"][data-v="3"] .a-mini svg, :root[data-k="a"][data-v="3"] .a-ring-sm { color: #b7862b; }
:root[data-k="a"][data-v="3"] .call { border-color: #b7862b; }
:root[data-k="a"][data-v="3"] .chip[aria-pressed="true"] { background: var(--hl); border-color: var(--ink); }
:root[data-k="a"][data-v="3"] .tabs button[aria-pressed="true"] { background: var(--ink); }
:root[data-k="a"][data-v="3"] .bar i { background: #b7862b; }
:root[data-k="a"][data-v="3"] .ring { background: conic-gradient(#b7862b var(--p, 29%), var(--soft3) 0); }
:root[data-k="a"] .sum { position: relative; }
:root[data-k="a"] .sum .a-rings { top: 50%; right: 14px; width: 56px; height: 42px; margin-top: -21px; opacity: .55; }

/* ===== Phương án D · Thiệp cưới (ảnh đen trắng, khung vòm, chữ ký, giấy ngà, xanh ô liu) ===== */
:root[data-k="d"] {
  --bg: #f3efe7; --card: #fbf9f4; --ink: #22231f; --muted: #66655b; --line: #d9d2c3;
  --accent: #4d5a3a; --on-accent: #ffffff; --soft: #e4e6d8; --soft2: #ebe4d4; --soft3: #efeae0;
  --tag: #4d5a3a; --tag-bg: #e4e6d8;
  --font: 'Be Vietnam Pro', system-ui, sans-serif; --head: 'Playfair Display', Georgia, serif; --script: 'Great Vibes', cursive;
  --r: 4px; --r-btn: 2px; --r-chip: 2px; --shadow: none;
}
.d-only { display: none !important; }
:root[data-k="d"] .d-only { display: block !important; }
:root[data-k="d"] .d-hide { display: none !important; }
:root[data-k="d"] body { font-weight: 400; }
:root[data-k="d"] h1, :root[data-k="d"] h2 { font-weight: 500; }
:root[data-k="d"] .btn { font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; min-height: 52px; }
:root[data-k="d"] .in { border: 0; border-bottom: 1px solid #b9b19f; border-radius: 0; background: transparent; padding: 0 2px; }
:root[data-k="d"] .lbl { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
:root[data-k="d"] .chip { font-weight: 400; letter-spacing: .04em; }
:root[data-k="d"] .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.d-photo { width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; background: #ccc url(anh/cap-doi-1.jpg) center 70% / cover; filter: grayscale(1) contrast(1.05); }
.d-script { font-family: var(--script, cursive); font-weight: 400; }

/* D · đăng nhập */
:root[data-k="d"] .login { padding-top: 22px; gap: 20px; }
:root[data-k="d"] .login .hero { align-items: center; text-align: center; }
:root[data-k="d"] .login .d-photo { width: 62%; margin-bottom: 18px; outline: 1px solid var(--line); outline-offset: 7px; }
:root[data-k="d"] .login h1 { font-family: var(--script); font-weight: 400; font-size: 64px; letter-spacing: 0; line-height: 1; color: var(--ink); margin-top: 4px; }
:root[data-k="d"] .login .brand { font-family: var(--head); letter-spacing: .3em; font-weight: 500; color: var(--accent); }
:root[data-k="d"] .login .sub { margin: 6px auto 0; font-family: var(--head); font-style: italic; font-size: 15px; }
:root[data-k="d"] .login .card { background: transparent; border: 0; padding: 0; }
:root[data-k="d"] .seg { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
:root[data-k="d"] .seg button { border-radius: 0; font-family: var(--head); font-weight: 400; font-size: 15px; }
:root[data-k="d"] .seg button[aria-pressed="true"] { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
:root[data-k="d"] .forgot, :root[data-k="d"] .login .note { text-align: center; }

/* D · trang chủ */
.d-hero { position: relative; margin: -20px -18px 0; height: 420px; background: #555 url(anh/cap-doi-2.jpg) center 30% / cover; filter: grayscale(1); }
.d-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.d-hero-txt { display: none; position: relative; margin: -150px 0 0; text-align: center; color: #fff; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
:root[data-k="d"] .d-hero-txt { display: flex !important; }
.d-hero-txt .d-script { font-size: 54px; line-height: 1; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.d-hero-txt small { font-family: var(--head); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
:root[data-k="d"] .count { margin-top: 26px; flex-direction: column; align-items: center; text-align: center; background: var(--card); padding: 22px 18px; }
:root[data-k="d"] .count .big { font-family: var(--head); font-weight: 400; color: var(--ink); font-size: 60px; }
:root[data-k="d"] .count .big small { font-family: var(--head); font-style: italic; font-size: 20px; }
:root[data-k="d"] .count .date { font-family: var(--head); font-style: italic; }
:root[data-k="d"] .prog { align-items: center; width: 100%; }
:root[data-k="d"] .prog .bar { width: 100%; height: 2px; }
:root[data-k="d"] .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); align-items: center; text-align: center; }
:root[data-k="d"] .tile .ic { background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
:root[data-k="d"] .tile b { font-weight: 500; }
:root[data-k="d"] .call { text-align: center; background: var(--accent); color: #fff; border: 0; }
:root[data-k="d"] .call h2 { font-family: var(--head); font-style: italic; font-weight: 400; font-size: 26px; }
:root[data-k="d"] .call p { color: #dfe3d3; }
:root[data-k="d"] .call .chip { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
:root[data-k="d"] .call .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--accent); }
:root[data-k="d"] .call .btn { background: #fff; color: var(--accent); }
:root[data-k="d"] .done-msg { background: rgba(255,255,255,.15); color: #fff; }
:root[data-k="d"] .nav a { font-weight: 400; letter-spacing: .04em; }
:root[data-k="d"] .nav a[aria-current="page"] { font-weight: 600; }

/* D · trang con */
:root[data-k="d"] .top h1 { font-family: var(--script); font-weight: 400; font-size: 40px; text-align: center; margin-right: 44px; }
:root[data-k="d"] .ib { border-radius: 50%; box-shadow: none; border: 1px solid var(--line); background: transparent; }
:root[data-k="d"] .ring { background: conic-gradient(var(--accent) var(--p, 29%), var(--line) 0); }
:root[data-k="d"] .sum b { font-weight: 500; }
:root[data-k="d"] .tabs button { font-weight: 400; }
:root[data-k="d"] .tasks { background: transparent; border: 0; padding: 0 0 0 8px; position: relative; }
:root[data-k="d"] .tasks::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
:root[data-k="d"] .task-row { border-bottom: 0; }
:root[data-k="d"] .task { min-height: 56px; }
:root[data-k="d"] .box { border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); position: relative; }
:root[data-k="d"] .task[aria-pressed="true"] .box { background: var(--accent); }
:root[data-k="d"] .task .t b { font-family: var(--head); font-weight: 500; font-size: 16px; }
:root[data-k="d"] .money .card { text-align: center; }
:root[data-k="d"] .money b { font-family: var(--head); font-weight: 500; }
:root[data-k="d"] .inv { background: var(--card); border: 1px solid var(--line); border-radius: 0; aspect-ratio: auto; gap: 12px; padding: 26px 26px 24px; }
:root[data-k="d"] .inv::before { border-color: var(--line); inset: 10px; }
:root[data-k="d"] .inv .d-photo { width: 64%; margin: 4px auto; }
:root[data-k="d"] .inv .k { font-family: var(--head); letter-spacing: .3em; color: var(--accent); }
:root[data-k="d"] .inv .names { flex-direction: row; gap: 10px; align-items: baseline; }
:root[data-k="d"] .inv .names b { font-family: var(--script); font-weight: 400; font-size: 40px; }
:root[data-k="d"] .inv .names i { font-family: var(--head); font-style: italic; font-size: 20px; color: var(--accent); }
:root[data-k="d"] .inv .when b { font-family: var(--head); font-weight: 500; letter-spacing: .12em; }
:root[data-k="d"] .inv.m2 { background: #f1ede3; }
:root[data-k="d"] .inv.m3 { background: #26271f; color: #f3efe7; }
:root[data-k="d"] .inv.m3 .when span, :root[data-k="d"] .inv.m3 .k { color: #cfd3bf; }
:root[data-k="d"] .mau button { font-weight: 400; }

/* =====================================================================
   Thành phần mới (17/11): mẹo JEJU, ý tưởng, phiếu quà, hộp nhờ gọi
   ===================================================================== */
:root { --love: #d4574a; }
body.khoa { overflow: hidden; }
.tabs small { font-size: 11px; font-weight: 600; opacity: .7; margin-left: 2px; }
.tabs button[aria-pressed="true"] small { opacity: .85; }

/* Mẹo trong từng việc */
.tip-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 11px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); font-size: 12px; font-weight: 700; color: var(--ink); flex: none; }
.tip-btn[aria-expanded="true"] { background: var(--tag-bg); border-color: var(--tag-bg); }
.tip { flex-basis: 100%; margin: 0 0 12px 36px; padding: 12px 14px; border-radius: var(--r-btn); background: var(--soft3); border-left: 3px solid var(--tag-bg); }
.tip p { margin: 0; font-size: 14px; line-height: 1.55; }
.tip-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tip-from { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.btn-sm.line { background: var(--card); color: var(--ink); border: 1.5px solid var(--accent); }
.btn-sm.done { background: transparent; color: var(--muted); padding: 0; font-weight: 600; }

/* Thẻ ở trang chủ */
.tile { position: relative; }
.huy { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--love); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.tile:nth-child(3) { background: var(--soft3); }
.tile:nth-child(4) { background: var(--tag-bg); }
:root[data-k="b"] .tile:nth-child(n) { background: transparent; }
:root[data-k="b"] .huy { position: static; }

/* Trang ý tưởng */
.intro { margin: 0; font-size: 14px; color: var(--muted); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--soft3); }
.seg2 button { min-height: 42px; border: 0; border-radius: calc(var(--r-btn) - 3px); background: transparent; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg2 button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chips.scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.chips.scroll .chip { flex: none; padding: 0 16px; }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea { position: relative; margin: 0; }
.idea-img { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--soft3); aspect-ratio: 3 / 4; }
.idea-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.idea figcaption { margin-top: 6px; font-size: 13px; font-weight: 700; }
.heart { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #555; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.heart[aria-pressed="true"] { color: var(--love); }
.heart[aria-pressed="true"] svg, [data-vw-luu][aria-pressed="true"] svg { fill: currentColor; }
.empty { text-align: center; padding: 30px 18px; }
.empty p { margin: 0 0 14px; color: var(--muted); }
.gui-bang { text-align: center; }
.gui-bang p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* Hộp xem ảnh lớn + hộp nhờ gọi */
.sheet-bg, .viewer-bg { position: fixed; inset: 0; z-index: 50; background: rgba(20,20,20,.5); display: flex; align-items: flex-end; justify-content: center; animation: hien .18s ease-out; }
.sheet { width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); animation: len .22s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; }
.sheet-ve { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.sheet-ve b { color: var(--ink); }
.sheet-act { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sheet-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.in.ta { min-height: 64px; padding: 10px 14px; resize: vertical; font-size: 15px; line-height: 1.45; }
.ib.sm { width: 40px; height: 40px; }
.viewer { position: relative; width: 100%; max-width: 440px; max-height: 94vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; animation: len .22s ease-out; }
.viewer img { display: block; width: 100%; max-height: 58vh; object-fit: cover; object-position: center 30%; }
.vw-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.vw-body { padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.vw-body h2 { font-size: 22px; font-weight: 800; }
.vw-body p { margin: 0; font-size: 14px; color: var(--muted); }
.vw-nhom { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tag); }
.vw-body .row2 { margin-top: 6px; }
.vw-body .btn { font-size: 14px; }
.vw-note { font-size: 12px !important; text-align: center; }
.done-btn { background: var(--soft3) !important; color: var(--muted) !important; }
@keyframes hien { from { opacity: 0; } to { opacity: 1; } }
@keyframes len { from { transform: translateY(40px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet-bg, .viewer-bg, .sheet, .viewer { animation: none; } }

/* Thông báo nhỏ */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: calc(100% - 32px); max-width: 408px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #262626; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { flex: none; color: #ffd66b; font-weight: 800; text-decoration: none; padding: 8px 4px; }

/* Phiếu quà */
.demo-note { margin: 0; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: var(--r-btn); font-size: 13px; color: var(--muted); }
.coupons { display: flex; flex-direction: column; gap: 14px; }
.coupon { position: relative; display: flex; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.cp-stub { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--tag-bg); color: var(--tag); font-size: 11px; font-weight: 800; text-align: center; border-right: 2px dashed var(--card); }
.cp-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.cp-body h2 { font-size: 17px; font-weight: 800; }
.cp-uu { margin: 0; font-size: 14px; font-weight: 600; }
.cp-ma { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cp-ma b { font-size: 16px; color: var(--ink); letter-spacing: .06em; padding: 2px 8px; border: 1.5px dashed var(--ink); border-radius: 6px; margin-left: 4px; }
.cp-dk { margin: 0; font-size: 12px; color: var(--muted); }
.cp-tien { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.cp-tien .bar { flex: 1; width: auto; }
.coupon.khoa-qua .cp-stub { background: var(--soft3); color: var(--muted); }
.coupon.khoa-qua .cp-uu { color: var(--muted); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 75px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.coupon::before { top: -10px; }
.coupon::after { bottom: -10px; }

/* A3 · tinh chỉnh cho thành phần mới */
:root[data-k="a"][data-v="3"] .tip { border-left-color: #f0cf72; background: #fbf6e6; }
:root[data-k="a"][data-v="3"] .tip-btn[aria-expanded="true"] { background: #f0cf72; border-color: #f0cf72; }
:root[data-k="a"][data-v="3"] .cp-stub { background: #f0cf72; color: #2b2b2b; }
:root[data-k="a"][data-v="3"] .coupon.khoa-qua .cp-stub { background: var(--soft3); color: var(--muted); }
:root[data-k="a"][data-v="3"] .tile:nth-child(3) { background: #ece7f5; }
:root[data-k="a"][data-v="3"] .tile:nth-child(4) { background: #f9e1dc; }

/* =====================================================================
   Trang bắt đầu (lần đầu mở cổng) + ô ngày cưới / ngày chụp (17/11)
   ===================================================================== */
.ob { min-height: 100vh; padding: 28px 22px 32px; display: flex; flex-direction: column; gap: 16px; }
.ob h1 { font-size: 30px; font-weight: 800; outline: none; }
.ob-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 18px 24px; margin: -28px -22px 4px; background-color: var(--soft3); border-bottom: 1px solid var(--line); }
.ob h1.ob-tieude { display: flex; flex-direction: column; align-items: center; gap: 4px; width: auto !important; background: none !important; }
.ob-nho { font-size: 18px; font-weight: 700; color: var(--muted); }
.ob-ten { display: inline-block; white-space: nowrap; font-size: 32px; font-weight: 900; line-height: 1.2; padding: 0 6px; }
:root[data-k="a"][data-v="3"] .ob-ten { background: linear-gradient(transparent 58%, var(--hl) 58% 90%, transparent 90%); }
.login .hero { position: relative; }
.login .note { text-align: center; }
.ob.login { padding-top: 40px; gap: 18px; }
.ob.login h1 { font-size: 46px; }
/* 3 câu hỏi trên cùng 1 màn */
.ob-q { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ob-qt { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.ob-qt span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; }
.ob-q .field + .field { margin-top: 2px; }
.ob-q .ob-opt { min-height: 54px; padding: 9px 14px; }
.ob-sau { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ob-sau input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.in:disabled { opacity: .5; }
.ob-free { padding: 10px 14px; border-radius: var(--r-btn); background: var(--tag-bg); }
:root[data-k="a"][data-v="3"] .ob-free { background: #fbf6e6; border-left: 3px solid #f0cf72; }
:root[data-k="a"][data-v="3"] .ob-qt span { background: #f0cf72; color: #2b2b2b; }
.login-logo { position: absolute; top: 2px; right: 0; width: 78px; height: auto; filter: invert(1); opacity: .9; }
:root[data-k="a"]:not([data-v="2"]):not([data-v="3"]) .login-logo, :root[data-k="a"] .login-logo { top: 30px; right: 20px; }
:root[data-k="c"] .login-logo, :root[data-k="d"] .login-logo { position: static; align-self: center; margin-bottom: 6px; }
.ob-logo { display: block; width: 150px; height: auto; filter: invert(1); opacity: .92; }
.ob-tag { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.ob-tag::before, .ob-tag::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.ob-rings { width: 76px; height: 58px; color: var(--accent); }
.ob-p { margin: 0; font-size: 16px; line-height: 1.6; }
.ob-act { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; }
.ob-small { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.ob-hint { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.ob-back { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.ob-prog { display: flex; align-items: center; gap: 6px; }
.ob-prog span { flex: 1; height: 6px; border-radius: 3px; background: var(--soft3); }
.ob-prog span.on { background: var(--accent); }
.ob-prog b { font-size: 12px; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.ob-opts { display: flex; flex-direction: column; gap: 10px; }
.ob-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--card); text-align: left; }
.ob-opt b { font-size: 16px; }
.ob-opt span { font-size: 13px; color: var(--muted); }
.ob-opt[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--soft); }
.ob-yen { margin: 0; padding: 12px 14px; border-radius: var(--r-btn); background: var(--tag-bg); font-size: 14px; font-weight: 600; line-height: 1.5; }
.ob-done { display: flex; flex-direction: column; gap: 16px; flex: 1; text-align: center; align-items: center; padding-top: 30px; }
.ob-ok { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.ob-gift { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: var(--r); background: var(--tag-bg); color: var(--ink); width: 100%; }
.ob-gift svg { flex: none; color: var(--tag); }
.ob-gift b { display: block; font-size: 15px; }
.ob-gift span { font-size: 13px; color: var(--ink); opacity: .8; }
.ob-done .ob-act { width: 100%; }
.loi { margin: 0; min-height: 0; font-size: 13px; font-weight: 700; color: #b42318; }
.loi:empty { display: none; }
:root[data-k="a"][data-v="3"] .ob-hero { background-color: var(--bg); background-image: radial-gradient(#c9c4b6 1.2px, transparent 1.4px); background-size: 18px 18px; }
:root[data-k="a"][data-v="3"] .ob h1 { width: fit-content; line-height: 1.2; background: linear-gradient(transparent 58%, var(--hl) 58% 88%, transparent 88%) 0 0 / 100% 1.2em repeat-y; }
:root[data-k="a"][data-v="3"] .ob-rings { color: #b7862b; }
:root[data-k="a"][data-v="3"] .ob-prog span.on { background: #b7862b; }
:root[data-k="a"][data-v="3"] .ob-opt[aria-pressed="true"] { background: #fbf6e6; border-color: var(--ink); }
:root[data-k="a"][data-v="3"] .ob-yen { background: #fbf6e6; border-left: 3px solid #f0cf72; }
:root[data-k="a"][data-v="3"] .ob-gift { background: #fbf6e6; }
:root[data-k="a"][data-v="3"] .ob-gift svg { color: #b7862b; }

/* thẻ đếm ngược: ô điền ngày */
.count { flex-wrap: wrap; row-gap: 14px; }
.dn-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dn-row { display: flex; gap: 8px; }
.dn-row .in { flex: 1; min-width: 0; }
.dn-row .btn-sm { min-height: 50px; padding: 0 18px; }
.link-sm { border: 0; background: none; padding: 6px 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: underline; }
.chup-row { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.chup-row .lbl { display: flex; align-items: center; gap: 6px; }
.chup-row.da { gap: 2px; font-size: 13px; }
.chup-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chup-top > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.chup-top svg { flex: none; }
.chup-con { font-size: 12px; color: var(--muted); padding-left: 22px; }
.chup-goi { margin: 0; font-size: 12px; color: var(--muted); }
.chup-canh { flex-basis: 100%; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: #6b4300; font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.chup-canh p { margin: 0; }
.chup-canh .btn-sm { align-self: flex-start; background: #6b4300; color: #fff; }
.chup-da { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; }
:root[data-k="b"] .chup-row { border-color: #cfcfcf; }
:root[data-k="d"] .dn-form, :root[data-k="d"] .chup-row { text-align: left; width: 100%; }

/* phiếu: hạn dùng */
.cp-han { margin: 0; font-size: 12px; font-weight: 800; color: #b42318; }
.qua-luat { margin: 0; padding: 12px 14px; border-radius: var(--r-btn); background: var(--soft3); font-size: 12px; line-height: 1.6; color: var(--muted); }
.qua-luat b { color: var(--ink); }
.task[disabled] { cursor: default; opacity: 1; }

/* =====================================================================
   Thiệp cưới online tặng miễn phí (18/11)
   ===================================================================== */
.tp-qua { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--tag-bg); }
.tp-qua svg { flex: none; color: var(--tag); }
.tp-qua b { display: block; font-size: 15px; }
.tp-qua span { font-size: 13px; color: var(--ink); opacity: .8; }
.tp-xem { padding: 0; overflow: hidden; }
.tp-bia { position: relative; height: 210px; }
.tp-bia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: blur(1.5px); transform: scale(1.04); }
.tp-bia::after { content: ""; position: absolute; inset: 0; background: rgba(251,248,244,.55); }
.tp-bia > div { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 16px; color: #3b2f29; }
.tp-ten { font: 400 40px/1.15 'Great Vibes', cursive; white-space: nowrap; }
.tp-nho { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; font-weight: 600; }
.tp-tt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; }
.tp-tt .tp-chip { margin-right: auto; }
.tp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; background: var(--soft3); font-size: 12px; font-weight: 700; color: var(--muted); }
.tp-chip.ok { background: #e3f4ea; color: #1f6b41; }
.tp-phan { display: flex; flex-direction: column; gap: 8px; }
.tp-phan h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.tp-phan .field + .field { margin-top: 4px; }
.tp-goi { margin: 0; font-size: 12px; color: var(--muted); }
.tp-album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tp-anh { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--soft3); border: 1.5px solid var(--line); }
.tp-anh.trong { border-style: dashed; display: grid; place-items: center; }
.tp-anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-bia-o .tp-anh { aspect-ratio: 4 / 3; }
.tp-chon { position: absolute; left: 8px; right: 8px; bottom: 8px; min-height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 700; color: #2b2b2b; cursor: pointer; }
.tp-anh.trong .tp-chon { position: static; background: transparent; color: var(--ink); }
.tp-chon:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-xoa { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.tp-gio { display: flex; align-items: center; gap: 8px; }
.tp-gio .in { width: 96px; }
.tp-qr { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px dashed var(--line); }
.tp-qr b { font-size: 15px; }
.tp-qr .lbl { margin: 4px 0 0; }
select.in { appearance: auto; }
.tp-them h2 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.tp-them p { margin: 0; font-size: 14px; line-height: 1.6; }
.tp-link { display: flex; gap: 8px; }
.tp-link .in { flex: 1; min-width: 0; font-size: 14px; }
.tp-link .btn-sm { min-height: 50px; }
:root[data-k="a"][data-v="3"] .tp-qua { background: #fbf6e6; border-left: 3px solid #f0cf72; }
:root[data-k="a"][data-v="3"] .tp-qua svg { color: #b7862b; }

/* =====================================================================
   Mốc theo lễ · hạn việc · thẻ Bắt đầu · 3 sổ (18/11)
   ===================================================================== */
/* hạn việc */
.han { font-weight: 700; color: var(--muted); }
.han.gan { color: #8a5a00; }
.han.qua { color: #b42318; }
.tabs .tab-qua { border-color: #f3c7c2 !important; color: #b42318 !important; background: #fdeceb !important; }
.tabs .tab-qua[aria-pressed="true"] { background: #b42318 !important; color: #fff !important; border-color: #b42318 !important; }
/* dải mốc */
.ml-dau { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.ml-dau a { font-size: 13px; font-weight: 700; color: var(--muted); }
.moc-le { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ml { position: relative; display: flex; gap: 12px; padding: 0 0 14px 0; }
.ml:last-child { padding-bottom: 0; }
.ml::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.ml:last-child::before { display: none; }
.ml-cham { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--accent); position: relative; z-index: 1; }
.ml.nay .ml-cham { background: var(--card); border: 3px solid var(--accent); }
.ml.trong .ml-cham { background: var(--card); border: 2px dashed var(--line); }
.ml > div { display: flex; flex-direction: column; }
.ml b { font-size: 15px; }
.ml-ngay { font-size: 13px; color: var(--muted); }
.ml-viec { font-size: 12px; color: var(--muted); }
.ml-viec em { font-style: normal; font-weight: 700; color: #b42318; }
:root[data-k="a"][data-v="3"] .ml-cham { background: #b7862b; }
:root[data-k="a"][data-v="3"] .ml.nay .ml-cham { border-color: #b7862b; background: var(--card); }
.kh-tien { display: flex; justify-content: space-between; align-items: center; text-decoration: none; font-size: 14px; }
/* trang chủ */
.ah-nut { display: flex; gap: 12px; }
.them-ah { align-self: flex-start; padding-left: 0; }
.bat-dau { display: flex; flex-direction: column; gap: 6px; }
.bd-dau { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.bat-dau ul { list-style: none; margin: 0; padding: 0; }
.bat-dau li > a, .bat-dau li > button, .bat-dau li.xong { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.bat-dau li > a > span:nth-child(2), .bat-dau li > button > span:nth-child(2) { flex: 1; }
.bat-dau li.xong { color: var(--muted); text-decoration: line-through; }
.bd-o { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; }
.bat-dau li.xong .bd-o { background: var(--accent); color: var(--on-accent); }
.can-chu-y { display: flex; align-items: center; gap: 12px; text-decoration: none; background: #fdeceb !important; border-color: #f3c7c2 !important; }
.can-chu-y > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.can-chu-y b { color: #b42318; font-size: 15px; }
.can-chu-y small { font-size: 12px; color: var(--ink); }
.ccy-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #b42318; color: #fff; display: grid; place-items: center; font-weight: 900; }
.tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile3 { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; min-height: 104px; }
.tile3 .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--soft3); display: grid; place-items: center; margin-bottom: 2px; }
.tile3 b { font-family: var(--head); font-size: 15px; }
.tile3 span:last-child { font-size: 12px; color: var(--muted); line-height: 1.35; }
/* sổ chung */
.rieng { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-btn); background: var(--soft3); font-size: 13px; color: var(--muted); }
.rieng svg { flex: none; }
.cp-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cp-so div { display: flex; flex-direction: column; min-width: 0; }
.cp-so small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cp-so b { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cp-so b.am { color: #b42318; }
.km-tt .cp-so { margin-top: 0; }
.cp-vuot { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: #b42318; }
.in.tien { font-variant-numeric: tabular-nums; }
.cp-ds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-dong { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.cp-ten { display: flex; gap: 6px; align-items: center; }
.cp-ten .in { flex: 1; min-width: 0; min-height: 44px; font-weight: 700; }
.cp-tien { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cp-tien label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-tien small { font-size: 11px; color: var(--muted); font-weight: 700; }
.cp-tien .in { min-height: 44px; }
.cp-dong .btn-sm { align-self: flex-start; }
.km-ds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.km-ds li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.km-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.km-ten b { font-size: 15px; overflow-wrap: anywhere; }
.km-ten small { font-size: 12px; color: var(--muted); }
.km-ben { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font: inherit; font-size: 12px; max-width: 84px; }
.km-ds .btn-sm { min-height: 36px; padding: 0 10px; font-size: 12px; flex: none; }
.km-ds .btn-sm.done { padding: 0 4px; }
.km-rong { color: var(--muted); font-size: 14px; justify-content: center; }
.km-xem { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--soft3); font-size: 13px; }
.km-xem:empty { display: none; }
.km-xem ul { margin: 6px 0 0; padding-left: 18px; }
.tm-form h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.tm-nhanh { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tm-nhanh .chip { flex: none; min-height: 36px; padding: 0 12px; font-size: 13px; }
.tm-so { font-variant-numeric: tabular-nums; font-size: 14px; flex: none; }
