:root {
  /* Ngôi Nhà Của Cám: nền kem, xanh xô thơm (tên app, chọn lọc), cam đất = nút hành động chính.
     Màu trạng thái 5S, mỗi màu 1 nghĩa: đỏ quá giờ · cam vàng sắp đến giờ · xanh dương chờ bố mẹ xem · xanh lá xong · xám chưa tới giờ. */
  --brand: #2F6B4F; --brand-d: #24553e; --brand-soft: #e3f4e8;
  --pri: #C4501B; --pri-soft: #fce6d2; --sage: #8ED1A5; --sage-soft: #e3f4e8; --hero: #fce6d2; --hill: #bfe3c6; --leaf: #5fb27a;
  --bg: #fbf7f0; --card: #ffffff; --raise: #f6f1e8; --ink: #1F3A2E; --muted: #5f6f66; --line: #e8e2d6; --grey: #6C6E72;
  --red: #c62828; --red-soft: #fde8e8; --orange: #b45309; --orange-soft: #fef3c7;
  --blue: #1d5fa8; --blue-soft: #e3eefb; --ok: #1f7a46; --ok-soft: #e1f3e8; --gray-soft: #f1ede6;
  --sun-soft: #fdf1c9; --sky-soft: #e3eefb; --peach-soft: #fde3d8;
  --warn: var(--orange); --warn-soft: var(--orange-soft); --bad: var(--red); --bad-soft: var(--red-soft);
  --zone: #2F6B4F; --login-bg: linear-gradient(160deg,#fbf7f0,#e3f4e8 60%,#8ED1A5 140%);
  --radius: 16px; --shadow: 0 1px 3px rgba(31,58,46,.06);
  --sans: "Be Vietnam Pro", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-skin]) {
  --brand: #9fd6b2; --pri: #E8955F; --pri-soft: #4a3326; --sage: #5f9e78; --sage-soft: #243a2e; --hero: #4a3326; --hill: #3e5a44; --leaf: #6fae84;
  --bg: #241d18; --card: #30271f; --raise: #3a3027; --ink: #f3e7d8; --muted: #c2ad98; --line: #4a3d33; --gray-soft: #3a3027;
  --red: #f08a80; --red-soft: #4a2622; --orange: #f5b25c; --orange-soft: #4a3519; --blue: #8dbcef; --blue-soft: #1f3247;
  --ok: #8fcf9f; --ok-soft: #233a2b; --sun-soft: #4a3b1f; --sky-soft: #1f3247; --peach-soft: #4a3326; --zone: #3e5a44;
  --login-bg: linear-gradient(155deg,#1d1713,#3b2b22 55%,#3e5a44 130%); color-scheme: dark;
} }
:root[data-theme="dark"], :root[data-skin="toi"] {
  --brand: #9fd6b2; --pri: #E8955F; --pri-soft: #4a3326; --sage: #5f9e78; --sage-soft: #243a2e; --hero: #4a3326; --hill: #3e5a44; --leaf: #6fae84;
  --bg: #241d18; --card: #30271f; --raise: #3a3027; --ink: #f3e7d8; --muted: #c2ad98; --line: #4a3d33; --gray-soft: #3a3027;
  --red: #f08a80; --red-soft: #4a2622; --orange: #f5b25c; --orange-soft: #4a3519; --blue: #8dbcef; --blue-soft: #1f3247;
  --ok: #8fcf9f; --ok-soft: #233a2b; --sun-soft: #4a3b1f; --sky-soft: #1f3247; --peach-soft: #4a3326; --zone: #3e5a44;
  --login-bg: linear-gradient(155deg,#1d1713,#3b2b22 55%,#3e5a44 130%); color-scheme: dark;
}
/* Giao diện cũ kiểu Kods (đỏ) để so sánh */
:root[data-skin="kods"] {
  --brand: #BE202F; --pri: #BE202F; --pri-soft: #f7e3e5; --bg: #eceae6; --card: #fff; --raise: #f6f4f1; --ink: #1f1d1b; --muted: #6c655e; --line: #e2ddd6;
  --orange: #c2410c; --orange-soft: #ffedd5; --zone: #BE202F; --hero: #f7e3e5; --radius: 12px;
  --login-bg: linear-gradient(155deg,#241412,#5a1620 50%,#BE202F 125%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* khung */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 0 8px 18px; }
.brand img { width: 32px; height: 32px; }
.nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; margin-bottom: 2px; }
.nav a.on { background: var(--pri-soft); color: var(--pri); font-weight: 600; }
.nav a:hover:not(.on) { background: var(--bg); }
.who { margin-top: 24px; padding: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.main { padding: 24px 28px 96px; max-width: 980px; width: 100%; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.bottom { display: none; }
@media (max-width: 760px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 16px 16px 96px; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; justify-content: space-around; }
  .bottom { overflow-x: auto; justify-content: flex-start !important; }
  .bottom a { flex: 1 0 64px; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; padding: 4px 2px; border-radius: 10px; }
  .bottom a span { display: block; font-size: 20px; line-height: 1.2; }
  .bottom a.on { color: var(--pri); font-weight: 600; }
  .topbar { display: flex !important; }
}
.topbar { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* thẻ và danh sách */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card > h2 { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item .t { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 54px; color: var(--pri); }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item.done .title { text-decoration: line-through; color: var(--muted); }
.item.now { background: var(--orange-soft); margin: 0 -16px; padding: 12px 16px; border-radius: 10px; }
.tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); cursor: pointer; flex: none; display: grid; place-items: center; font-size: 16px; color: transparent; }
.tick.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tick.conf { background: var(--ok); border-color: var(--ok); color: #fff; }
.tick:disabled { cursor: default; opacity: .7; }

.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); margin-right: 4px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.pri { background: var(--pri-soft); color: var(--pri); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--pri); border-radius: 99px; }
.big { font-size: clamp(22px, 6vw, 28px); font-weight: 700; font-variant-numeric: tabular-nums; }

/* nút, form */
.btn { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: #cfccc3; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 14px; }
.btn.link { border: 0; background: none; padding: 4px 6px; color: var(--pri); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label.f { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 16px; }
label.f textarea { min-height: 70px; resize: vertical; }
.days { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.days label { display: inline-flex; }
.days input { display: none; }
.days span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink); background: var(--card); }
.days input:checked + span { background: var(--pri); border-color: var(--pri); color: #fff; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--pri); color: #fff; }

/* hộp thoại */
.modal { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .box { background: var(--card); border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; padding: 20px; }
.modal h2 { margin-bottom: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; background: #1f1d1b; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: 90vw; }
.alarm { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); background: var(--card); border: 2px solid var(--warn); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 70; }
.alarm .title { font-weight: 700; font-size: 18px; margin: 4px 0 10px; }

/* đăng nhập */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--login-bg, linear-gradient(155deg,#241412,#5a1620 50%,#BE202F 125%)); position: relative; }
.login::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); -webkit-mask: linear-gradient(90deg,#000,transparent 70%); mask: linear-gradient(90deg,#000,transparent 70%); pointer-events: none; }
.login .box { position: relative; }
.login .box { width: 100%; max-width: 360px; }
.login .brand { justify-content: center; font-size: 24px; padding-bottom: 8px; }
.err { color: var(--bad); font-size: 14px; margin: 4px 0 10px; min-height: 20px; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 500; border-top: 0; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week .d { text-align: center; font-size: 12px; }
.week .cell { height: 36px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 20px 0; }
.tip { background: var(--pri-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

#scanTable input, #scanTable select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; width: 100%; min-width: 64px; background: var(--card); }

/* ---- Khuôn 5S · Kaizen ---- */
.zone { display: flex; align-items: center; gap: 10px; background: var(--zone, #BE202F); color: #fff; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; }
.zone b { font-size: 17px; } .zone .sp { flex: 1; } .zone .btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 10px 12px; border-top: 4px solid var(--grey); cursor: pointer; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; }
.kpi .n { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi.red { border-top-color: var(--red); } .kpi.red .n { color: var(--red); }
.kpi.orange { border-top-color: var(--orange); } .kpi.orange .n { color: var(--orange); }
.kpi.blue { border-top-color: var(--blue); } .kpi.blue .n { color: var(--blue); }
.kpi.green { border-top-color: var(--ok); } .kpi.green .n { color: var(--ok); }
.kpi.on { outline: 2px solid var(--ink); }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.andon { border-left: 5px solid var(--red); background: var(--card); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.andon h3 { color: var(--red); font-size: 15px; margin-bottom: 4px; }
.andon div { font-size: 14px; padding: 3px 0; }
.kz { background: var(--card); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 8px; border-left: 5px solid #127A77; font-size: 14px; }
.kz b { color: #127A77; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.st { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.st.red { background: var(--red-soft); color: var(--red); } .st.orange { background: var(--orange-soft); color: var(--orange); }
.st.blue { background: var(--blue-soft); color: var(--blue); } .st.green { background: var(--ok-soft); color: var(--ok); } .st.gray { background: var(--gray-soft); color: var(--grey); }
.item.s-red { border-left: 4px solid var(--red); padding-left: 10px; }
.item.s-orange { border-left: 4px solid var(--orange); padding-left: 10px; }
.item.s-blue { border-left: 4px solid var(--blue); padding-left: 10px; }
.item.s-green { border-left: 4px solid var(--ok); padding-left: 10px; }
.item.s-gray { border-left: 4px solid var(--line); padding-left: 10px; }
.bar > i { background: var(--ok); }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.zone .btn.pri { background: #fff; color: var(--zone, #BE202F); border-color: #fff; font-weight: 600; }
.zone select.btn option { color: #1f1d1b; }
.zone .btn.link { color: #fff; }
input[type=checkbox] { accent-color: var(--brand); }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.stats3 .small { line-height: 1.3; }
.brand img { border-radius: 22%; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.login-brand { flex-direction: column; text-align: center; gap: 8px !important; }
.topbar { gap: 8px; }
.topbar .brand { font-size: 16px; line-height: 1.2; min-width: 0; }
.topbar .row { flex-wrap: nowrap; gap: 6px; }
.login-brand img { width: 84px !important; height: 84px !important; }
.chatbox { padding: 10px; }
.chatlist { height: min(60vh, 560px); overflow-y: auto; padding: 4px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; } .msg.mine { justify-content: flex-end; }
.bub { max-width: 80%; background: var(--raise); border-radius: 14px; padding: 7px 11px; border-bottom-left-radius: 4px; }
.msg.mine .bub { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.bub.me { background: var(--brand-soft); }
.bub.chk { background: var(--ok-soft); } .bub.sos { background: var(--red-soft); border: 1px solid var(--red); }
.bub .who { font-size: 12px; font-weight: 700; color: var(--brand); }
.bub .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.bub img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; margin: 4px 0; }
.bub .tm { font-size: 11px; color: var(--muted); margin-top: 2px; }
.chatform { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.chatform input#chatText { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 16px; }
.ckgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.btn.ck { min-height: 56px; font-size: 16px; font-weight: 600; white-space: normal; }
.btn.ck.sos { width: 100%; margin-top: 4px; background: var(--red); border-color: var(--red); color: #fff; }
table.menu td { min-width: 110px; } table.menu tr.today td { background: var(--orange-soft); }


/* ===== Mẫu "Ngôi Nhà Của Cám" ===== */
.topbar .brand { color: var(--brand); font-size: 19px; font-weight: 700; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 18px; cursor: pointer; }
.hello { margin: 4px 0 12px; }
.hello h1 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.hello .date { color: var(--ink); font-size: 17px; }
.hello .row { align-items: center; } .sp { flex: 1; }
.btn.ghost { background: transparent; border-color: var(--line); }
.chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; }
.chip { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--sage); border-color: var(--sage); color: #12301f; font-weight: 600; }
.hero { position: relative; overflow: hidden; background: var(--hero); border-radius: 20px; padding: 16px 16px 16px; margin-bottom: 12px; }
.hero .scene { position: absolute; right: 0; top: 8px; width: 150px; height: 104px; pointer-events: none; }
.hero .tag { position: relative; display: inline-block; background: rgba(255,255,255,.75); color: var(--orange); font-weight: 700; padding: 5px 12px; border-radius: 999px; font-size: 15px; }
.hero .ht { position: relative; font-size: 26px; font-weight: 800; line-height: 1.2; margin: 10px 0 4px; max-width: 72%; color: var(--ink); }
.hero .hs { position: relative; font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.hero .row { position: relative; gap: 8px; flex-wrap: nowrap; }
.hero .btn.big { flex: 1; min-height: 52px; font-size: 18px; font-weight: 700; border-radius: 14px; justify-content: center; }
.hero .btn.big:not(.pri):not(.blue) { flex: 0 0 auto; background: rgba(255,255,255,.7); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero.h-red { background: var(--red-soft); box-shadow: inset 5px 0 0 var(--red); } .hero.h-red .tag { color: var(--red); }
.hero.h-blue { background: var(--blue-soft); } .hero.h-blue .tag { color: var(--blue); }
.hero.h-gray { background: var(--sage-soft); } .hero.h-gray .tag { color: var(--brand); }
.hero.h-green { background: var(--ok-soft); } .hero.h-green .tag { color: var(--ok); }
:root[data-skin="toi"] .hero .tag, :root[data-skin="toi"] .hero .btn.big:not(.pri):not(.blue) { background: rgba(0,0,0,.25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-skin]) .hero .tag, :root:not([data-theme="light"]):not([data-skin]) .hero .btn.big:not(.pri):not(.blue) { background: rgba(0,0,0,.25); } }
.mks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin-bottom: 14px; }
.mk { background: var(--card); border: 0; border-top: 3px solid var(--line); border-radius: 12px; padding: 6px 4px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; text-align: center; }
.mk b { display: block; font-size: 20px; line-height: 1.2; color: var(--ink); }
.mk.red { border-top-color: var(--red); } .mk.red b { color: var(--red); }
.mk.orange { border-top-color: var(--orange); } .mk.orange b { color: var(--orange); }
.mk.blue { border-top-color: var(--blue); } .mk.blue b { color: var(--blue); }
.mk.green { border-top-color: var(--ok); } .mk.green b { color: var(--ok); }
.mk.on { outline: 2px solid var(--ink); }
h2.sec { font-size: 24px; font-weight: 800; margin: 6px 0 10px; }
.tlist { background: var(--card); border-radius: 18px; padding: 4px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.trow { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow .body { flex: 1; min-width: 0; }
.trow .title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.trow .sub { font-size: 15px; color: var(--ink); opacity: .85; margin: 1px 0 3px; }
.trow.s-red .title { color: var(--red); }
.trow.s-red .ico { box-shadow: inset 0 0 0 2px var(--red); } .trow.s-orange .ico { box-shadow: inset 0 0 0 2px var(--orange); } .trow.s-blue .ico { box-shadow: inset 0 0 0 2px var(--blue); }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: none; }
.ico.sage { background: var(--sage-soft); } .ico.sun { background: var(--sun-soft); } .ico.sky { background: var(--sky-soft); } .ico.peach { background: var(--peach-soft); } .ico.gray { background: var(--gray-soft); }
.rc { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--ink); background: transparent; color: transparent; cursor: pointer; flex: none; font-size: 17px; font-weight: 700; display: grid; place-items: center; }
.rc.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rc.conf { background: var(--ok); border-color: var(--ok); color: #fff; }
.rc:disabled { opacity: .8; cursor: default; }
.donebox { background: var(--ok-soft); border-radius: 16px; margin-bottom: 12px; }
.donebox summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; font-size: 18px; cursor: pointer; }
.donebox summary::-webkit-details-marker { display: none; }
.donebox .okdot { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 16px; }
.donebox[open] .chev { transform: rotate(180deg); }
.donebox .tlist { margin: 0 8px 8px; }
.donebox .trow .title { text-decoration: line-through; opacity: .7; }
.card.soft { background: var(--raise); box-shadow: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-height: 92px; }
.tile span { font-size: 28px; }
.sheet { max-width: 460px; }
.sheetbtn { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.sheetbtn .ico { width: 44px; height: 44px; font-size: 22px; }
/* thanh dưới 4 nút, nút Thêm việc ở giữa */
@media (max-width: 760px) {
  .bottom { justify-content: space-around !important; overflow: visible; padding-top: 8px; }
  .bottom a { flex: 1 1 0; font-size: 13px; color: var(--ink); }
  .bottom a span { font-size: 24px; }
  .bottom a.on { color: var(--pri); font-weight: 700; }
  .bottom a.add span { width: 40px; height: 40px; margin: 0 auto 2px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; line-height: 1; }
  .topbar { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
}
/* tiêu đề trang khác: chữ lớn trên nền kem thay cho thanh màu */
:root:not([data-skin="kods"]) .zone { background: transparent; color: var(--ink); padding: 2px 0; }
:root:not([data-skin="kods"]) .zone b { font-size: 24px; font-weight: 800; }
:root:not([data-skin="kods"]) .zone .btn { background: var(--card); border-color: var(--line); color: var(--ink); }
:root:not([data-skin="kods"]) .zone .btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
:root:not([data-skin="kods"]) .zone .btn.link { color: var(--pri); background: none; border: 0; }
:root:not([data-skin="kods"]) .zone select { background: var(--card); color: var(--ink); }
.kz { border-left-color: var(--brand); }
.btn.link.muted { color: var(--muted); font-weight: 400; }
h2.sec.sm { font-size: 17px; color: var(--muted); font-weight: 700; margin: 10px 0 6px; }
a.trow.link { text-decoration: none; color: var(--ink); }
a.trow.link .ico { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
a.trow.link .chev, .chev { color: var(--muted); font-size: 20px; }
.donebox.later { background: var(--raise); }
.donebox.later .okdot { background: var(--muted); }
.donebox.later .trow .title { text-decoration: none; opacity: 1; }
.btn.danger-soft { background: var(--red-soft); border-color: var(--red-soft); color: var(--red); }
code { background: var(--raise); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
