:root {
  --nen: #fbf7f6; --the: #ffffff; --chu: #2a2124; --phu: #5e5156; --vien: #ecdfe2; --mem: #f8eaee;
  --chinh: #a63d63; --chinh-dam: #85304f; --tren-chinh: #ffffff; --vang: #b07a12; --vang-mem: #fbf1dc;
  --do: #b3261e; --xanh: #2b7a4b; --bong: 0 1px 3px rgba(20,40,40,.08);
  --cau-a: #a63d63; --cau-b: #6a4c93; --vung: rgba(166,61,99,.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nen: #1a1517; --the: #251d20; --chu: #f6eef0; --phu: #c9b8bd; --vien: #3d3034; --mem: #33262b;
    --chinh: #f29bbb; --chinh-dam: #f8bfd3; --tren-chinh: #3a0f20; --vang: #e8b75a; --vang-mem: #3a2f19;
    --do: #ff8a80; --xanh: #7fd3a1; --bong: none; --cau-a: #6e2843; --cau-b: #3f2d5c; --vung: rgba(242,155,187,.18);
  }
}
:root[data-theme="dark"] {
  --nen: #1a1517; --the: #251d20; --chu: #f6eef0; --phu: #c9b8bd; --vien: #3d3034; --mem: #33262b;
  --chinh: #f29bbb; --chinh-dam: #f8bfd3; --tren-chinh: #3a0f20; --vang: #e8b75a; --vang-mem: #3a2f19;
  --do: #ff8a80; --xanh: #7fd3a1; --bong: none; --cau-a: #6e2843; --cau-b: #3f2d5c; --vung: rgba(242,155,187,.18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--nen); color: var(--chu); }
body { font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(72px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
a { color: var(--chinh-dam); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.dau { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: color-mix(in srgb, var(--nen) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--vien); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--chu); letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.dau-phai { display: flex; gap: 4px; align-items: center; }
.nut-tron { position: relative; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; font-size: 1.15rem; cursor: pointer; }
.nut-tron:hover { background: var(--mem); }
.cham-do { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--do); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; }
.nut-nn { border: 1px solid var(--vien); background: var(--the); border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; cursor: pointer; }

main { max-width: 600px; margin: 0 auto; padding: 14px 14px 24px; }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 6px 0 12px; }
h2 { font-size: 1.1rem; margin: 22px 0 10px; }
.phu { color: var(--phu); }
.nho { font-size: .86rem; }

.the { background: var(--the); border: 1px solid var(--vien); border-radius: 16px; padding: 16px; box-shadow: var(--bong); margin-bottom: 12px; }
.hang { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gian { justify-content: space-between; }
.cot2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cot3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 12px;
  border: 1px solid var(--vien); background: var(--the); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--chu); }
.nut:hover { border-color: var(--chinh); }
.nut.chinh { background: var(--chinh); border-color: var(--chinh); color: var(--tren-chinh); }
.nut.chinh:hover { background: var(--chinh-dam); }
.nut.nhe { border-color: transparent; background: var(--mem); }
.nut.do { color: var(--do); }
.nut.rong { width: 100%; }
.nut.nho { min-height: 34px; padding: 4px 10px; font-size: .85rem; border-radius: 10px; }
.nut:disabled { opacity: .5; cursor: default; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--vien); border-radius: 12px; background: var(--the); }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--chinh); outline-offset: 1px; }
.o-tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.o-tick input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.bao-loi { color: var(--do); font-weight: 600; min-height: 1.2em; margin: 8px 0; }

/* Thanh dưới */
.thanh-duoi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--the); border-top: 1px solid var(--vien); padding-bottom: env(safe-area-inset-bottom); }
.thanh-duoi a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 7px; text-decoration: none; color: var(--phu); font-size: .72rem; font-weight: 600; }
.thanh-duoi a span:first-child { font-size: 1.3rem; line-height: 1.2; }
.thanh-duoi a.dang { color: var(--chinh); }

/* Câu ngày */
.cau { position: relative; border-radius: 20px; padding: 22px 20px 18px; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, var(--cau-a), var(--cau-b)); box-shadow: var(--bong); margin-bottom: 12px; }
.cau::after { content: "“"; position: absolute; right: 14px; top: -18px; font: 900 7rem/1 "Noto Serif", "Times New Roman", serif; opacity: .14; }
.cau .nhan { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.cau .en { font: 600 1.28rem/1.42 "Noto Serif", "Times New Roman", serif; margin: 10px 0 8px; }
.cau .vi { opacity: .92; }
.cau .nguon { font-size: .78rem; opacity: .7; margin-top: 8px; }
.cau .hang { margin-top: 14px; }
.cau .nut { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; min-height: 38px; padding: 6px 12px; }
.cau .nut:hover { background: rgba(255,255,255,.26); }

.so-lieu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.so-lieu div { background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 10px; text-align: center; }
.so-lieu b { display: block; font-size: 1.35rem; }
.so-lieu span { font-size: .78rem; color: var(--phu); }

/* Cộng đồng */
.tab-nhom { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.tab-nhom button { flex: none; border: 1px solid var(--vien); background: var(--the); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.tab-nhom button.dang { background: var(--chinh); border-color: var(--chinh); color: var(--tren-chinh); }
.soan textarea { min-height: 70px; border: 0; padding: 4px 0; background: transparent; }
.soan textarea:focus { outline: 0; }
.xem-truoc-anh { position: relative; margin-top: 8px; }
.xem-truoc-anh img { border-radius: 12px; max-height: 260px; }
.xem-truoc-anh button { position: absolute; top: 6px; left: 6px; }
.bai .dau-bai { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.anh-dd { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; text-decoration: none; }
.bai .ten { font-weight: 700; color: var(--chu); text-decoration: none; }
.bai .meta { font-size: .78rem; color: var(--phu); }
.bai .noi-dung { white-space: pre-wrap; overflow-wrap: anywhere; }
.bai .anh { margin-top: 10px; border-radius: 12px; width: 100%; max-height: 520px; object-fit: cover; background: var(--mem); }
.bai audio { width: 100%; margin-top: 10px; }
.ghim { color: var(--vang); font-weight: 700; font-size: .78rem; }
.nhan-nhom { display: inline-block; background: var(--mem); color: var(--chinh-dam); border-radius: 999px; padding: 0 8px; font-size: .72rem; font-weight: 700; }
.cam-xuc { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid var(--vien); padding-top: 8px; flex-wrap: wrap; }
.cam-xuc button, .cam-xuc a { border: 0; background: transparent; border-radius: 10px; padding: 6px 10px; cursor: pointer; color: var(--phu); font-weight: 600; text-decoration: none; font-size: .9rem; }
.cam-xuc button:hover, .cam-xuc a:hover { background: var(--mem); }
.cam-xuc button.chon { color: var(--chinh-dam); background: var(--mem); }
.menu-bai { margin-left: auto; position: relative; }
.binh-luan { display: flex; gap: 8px; margin-top: 12px; }
.binh-luan .bong { background: var(--mem); border-radius: 14px; padding: 8px 12px; flex: 1; }
.binh-luan .bong b { font-size: .88rem; }
.binh-luan .bong p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.anh-dd.nho { width: 32px; height: 32px; font-size: .8rem; }
.ghi-am { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dang-ghi { color: var(--do); font-weight: 700; animation: nhap 1s infinite; }
@keyframes nhap { 50% { opacity: .4; } }

.thanh-tien-do { height: 8px; border-radius: 4px; background: var(--mem); overflow: hidden; }
.thanh-tien-do i { display: block; height: 100%; background: var(--chinh); }

.bang-qt { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bang-qt td, .bang-qt th { border-bottom: 1px solid var(--vien); padding: 8px 6px; text-align: left; vertical-align: top; }
.tb { display: block; padding: 10px 0; border-bottom: 1px solid var(--vien); text-decoration: none; color: var(--chu); }
.tb.moi { font-weight: 700; }

.thong-diep { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--chu); color: var(--nen); padding: 10px 16px; border-radius: 12px; font-weight: 600; max-width: 92vw; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.trong { text-align: center; color: var(--phu); padding: 30px 10px; }
.cong-tac { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--vien); }
.trinh-phat audio { width: 100%; margin-top: 8px; }
.nut.nhe.chinh { background: var(--chinh); color: var(--tren-chinh); }

/* ===== Trang chủ: câu nói trên ảnh phong cảnh tràn màn hình ===== */
body.o-trang-chu { overflow: hidden; }
body.o-trang-chu .dau { background: linear-gradient(rgba(0,0,0,.35), transparent); border-bottom: 0; backdrop-filter: none; }
body.o-trang-chu .logo { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
body.o-trang-chu .nut-nn { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
body.o-trang-chu .nut-tron { color: #fff; }
.trang-cau { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: #3a2230; touch-action: pan-y; user-select: none; }
.lop-anh { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 8s ease-out; }
.lop-anh.hien { opacity: 1; transform: scale(1); }
.trang-cau::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 95% 42% at 50% 44%, rgba(0,0,0,.42), rgba(0,0,0,.12) 70%, rgba(0,0,0,.25)); }
/* Câu nói đứng giữa, hơi cao hơn tâm màn hình (44%) cho vừa tầm mắt khi cầm điện thoại. */
.lop-chu { position: absolute; z-index: 2; left: 0; right: 0; top: 44%; transform: translateY(-50%); margin: 0 auto; max-width: 640px;
  padding: 0 28px; border: 0; background: none; text-align: center; color: #fff; cursor: pointer; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.lop-chu .vi { display: block; font: 600 clamp(1.4rem, 5.6vw, 2.1rem)/1.42 "Noto Serif", "Times New Roman", serif; }
.lop-chu .en { display: block; margin-top: 12px; font-size: clamp(.92rem, 3.6vw, 1.08rem); line-height: 1.5; opacity: .85; font-style: italic; }
.lop-chu.vao { animation: chu-vao .55s ease both; }
@keyframes chu-vao { from { opacity: 0; transform: translate(var(--tu, 0), -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.goi-y-vuot { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); text-align: center;
  color: rgba(255,255,255,.75); font-size: .8rem; animation: nhap 2.4s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .lop-anh { transition: none; transform: none; } .lop-chu.vao { animation: none; } }

.thanh-tien-do.sang { background: rgba(255,255,255,.28); margin: 10px 0 6px; }
.thanh-tien-do.sang i { background: #fff; }

/* ===== Mẹ & Bé ===== */
.quay-lai { display: inline-block; margin-bottom: 2px; }
.mien-tru { font-size: .78rem; color: var(--phu); text-align: center; margin: 22px 8px 0; }
.chao h1 { margin-top: 0; }
.the-thai { display: block; position: relative; border-radius: 20px; padding: 18px 18px 16px; color: #fff; text-decoration: none; margin-bottom: 12px;
  background: linear-gradient(140deg, var(--cau-a), var(--cau-b)); box-shadow: var(--bong); }
.the-thai .nhan { font-size: .78rem; font-weight: 700; opacity: .9; }
.the-thai .so-to { font: 700 2.1rem/1.2 "Noto Serif", "Times New Roman", serif; margin-top: 6px; }
.the-thai .so-to small { font-size: 1.1rem; opacity: .9; }
.the-thai.tinh .so-to { font-size: 1.45rem; }
.the-thai .trai-cay { margin-top: 8px; font-size: .92rem; }
.so-to { font: 700 1.7rem/1.25 "Noto Serif", "Times New Roman", serif; }
.dong-nho { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--chu); padding: 12px 14px; }
.dong-nho .i { font-size: 1.5rem; flex: none; }
.dong-nho > span:nth-child(2) { flex: 1; min-width: 0; }
.dong-nho.canh-bao { border-color: color-mix(in srgb, var(--do) 45%, var(--vien)); }
.luoi-cc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cc { display: flex; gap: 10px; align-items: center; background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--chu); font-weight: 600; font-size: .9rem; line-height: 1.3; min-height: 60px; }
.cc .i { font-size: 1.45rem; flex: none; }
.cc:hover { border-color: var(--chinh); }
.the-be .ten-be { font-size: 1.15rem; }
.cuu-bu { margin: 10px 0; padding: 10px 12px; background: var(--mem); border-radius: 12px; font-size: .92rem; }
.the-do { background: var(--do); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 700; }
.nut-nhanh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nut-nhanh a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: var(--mem); text-decoration: none; color: var(--chu); font-size: .78rem; font-weight: 600; }
.nut-nhanh a span { font-size: 1.4rem; }
.hom-nay-be { margin-top: 10px; color: var(--phu); }
.tab-nhom a { flex: none; border: 1px solid var(--vien); background: var(--the); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--chu); }
.tab-nhom a.dang { background: var(--chinh); border-color: var(--chinh); color: var(--tren-chinh); }
.tab-nhom.nho-tab button { padding: 5px 12px; font-size: .84rem; }
.ket-qua { border-color: var(--chinh); }
.luoi-tuan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.luoi-tuan a { background: var(--the); border: 1px solid var(--vien); border-radius: 12px; padding: 8px 4px; text-align: center; text-decoration: none; color: var(--chu); font-size: .72rem; line-height: 1.25; }
.luoi-tuan b { display: block; font-size: 1.15rem; color: var(--chinh-dam); }
.nhan-tt { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--mem); color: var(--chinh-dam); white-space: nowrap; }
.moc.xong { opacity: .75; }
.moc.xong .nhan-tt { background: color-mix(in srgb, var(--xanh) 20%, transparent); color: var(--xanh); }
.moc.dang { border-color: var(--chinh); border-width: 2px; }
.moc.dang .nhan-tt { background: var(--chinh); color: var(--tren-chinh); }
.moc.qua .nhan-tt { background: var(--vang-mem); color: var(--vang); }
.dem-to { text-align: center; }
.so-khong-lo { font: 800 4.2rem/1 "Noto Serif", "Times New Roman", serif; color: var(--chinh); }
.nut-tron-lon { width: 190px; height: 190px; border-radius: 50%; border: 0; margin: 14px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--chinh) 70%, #fff), var(--chinh)); color: #fff; font-size: 3rem; cursor: pointer; box-shadow: 0 8px 24px rgba(166,61,99,.35); }
.nut-tron-lon span { font-size: .95rem; font-weight: 700; }
.nut-tron-lon:active { transform: scale(.96); }
.nut-tron-lon.dang-go { background: radial-gradient(circle at 35% 30%, #f08080, #b3261e); animation: nhap 1.6s infinite; }
.canh-bao { border-color: var(--do); border-width: 2px; background: color-mix(in srgb, var(--do) 7%, var(--the)); }
.canh-bao-nhe { background: var(--vang-mem); border-color: transparent; }
.dong-ls { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--vien); font-size: .9rem; }
.dong-ls:last-child { border-bottom: 0; }
.dong-ls.dau-bang { font-size: .78rem; color: var(--phu); font-weight: 700; }
.bieu-do { width: 100%; height: auto; display: block; }
.bieu-do text { font-size: 10px; fill: var(--phu); }
.bieu-do .luoi { stroke: var(--vien); stroke-width: 1; }
.bieu-do .vung { stroke: none; }
.bieu-do .nhan-duong { font-size: 9px; font-weight: 700; }
.bieu-do .cham-be { fill: #e8789c; stroke: #fff; stroke-width: 1.5; }
.bieu-do .duong-be { stroke: #e8789c; stroke-width: 2; }
.dong-tick { margin: 6px 0; }
.dong-tick input:checked + span { text-decoration: line-through; color: var(--phu); }
.luoi-ghi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.luoi-ghi button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--vien); background: var(--the); cursor: pointer; font-weight: 600; font-size: .85rem; }
.luoi-ghi button span { font-size: 1.6rem; }
.tong-ngay { margin-top: 8px; text-align: center; }
.tong-ngay > div { background: var(--mem); border-radius: 12px; padding: 8px 4px; }
.tong-ngay b { display: block; font-size: 1.05rem; }
.tong-ngay span { font-size: .74rem; color: var(--phu); }
.dang-do { border: 2px solid var(--chinh); }
.so-dong-ho { font: 700 1.05rem ui-monospace, Consolas, monospace; color: var(--chinh-dam); }
.dong-nk { display: grid; grid-template-columns: 52px auto 1fr; gap: 8px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--vien); background: none; padding: 10px 0; cursor: pointer; font-size: .92rem; align-items: center; }
.dong-nk:last-child { border-bottom: 0; }
.dong-nk .gio { font-weight: 700; font-variant-numeric: tabular-nums; }
.dong-nk .phu { text-align: right; font-size: .85rem; }
.chon-o { position: relative; margin: 0; font-weight: 600; text-align: center; }
.chon-o input { position: absolute; opacity: 0; }
.chon-o span { display: block; border: 1px solid var(--vien); border-radius: 12px; padding: 10px 4px; cursor: pointer; }
.chon-o input:checked + span { border: 2px solid var(--chinh); background: var(--mem); }
.chon-o input:focus-visible + span { outline: 2px solid var(--chinh); }
.dong-tiem { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--vien); }
.dong-tiem:last-child { border-bottom: 0; }
.o-tron { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--vien); background: var(--the); flex: none; cursor: pointer; font-weight: 800; color: #fff; }
.dong-tiem.xong .o-tron { background: var(--xanh); border-color: var(--xanh); }
.dong-tiem.qua { background: color-mix(in srgb, var(--vang) 8%, transparent); }
.dong-tiem.toi .o-tron { border-color: var(--chinh); }
.nhan-loai { font-size: .68rem; font-weight: 800; border-radius: 6px; padding: 0 5px; vertical-align: middle; }
.nhan-loai.tcmr { background: color-mix(in srgb, var(--xanh) 18%, transparent); color: var(--xanh); }
.nhan-loai.dich-vu { background: var(--mem); color: var(--chinh-dam); }
.moc-thang summary { cursor: pointer; }
.goi-115 { background: var(--do); border-color: var(--do); color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.dau-hieu { padding: 12px 14px; }
.dau-hieu.cap-cuu { border-left: 5px solid var(--do); }
.dau-hieu.kham-som { border-left: 5px solid var(--vang); }

/* Nhắc lịch */
.lieu { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--vien); }
.lieu:last-child { border-bottom: 0; }
.lieu .gio { font-weight: 800; font-variant-numeric: tabular-nums; width: 48px; flex: none; }
.lieu.xong > span:nth-child(2) { color: var(--phu); text-decoration: line-through; }
.lieu.tre .gio { color: var(--do); }
.nhac.tat { opacity: .55; }
.gio-nhac { font: 700 1.1rem ui-monospace, Consolas, monospace; color: var(--chinh-dam); margin: 2px 0; }
.cong-tac-nho { position: relative; width: 46px; height: 26px; flex: none; margin: 0; }
.cong-tac-nho input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.cong-tac-nho span { position: absolute; inset: 0; border-radius: 13px; background: var(--vien); transition: background .2s; }
.cong-tac-nho span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cong-tac-nho input:checked + span { background: var(--chinh); }
.cong-tac-nho input:checked + span::after { transform: translateX(20px); }
.cong-tac-nho input:focus-visible + span { outline: 2px solid var(--chinh); outline-offset: 2px; }
.chip-loai { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-loai button, .o-thu { border: 1px solid var(--vien); background: var(--the); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--chu); }
.chip-loai button.dang, .o-thu.dang { background: var(--chinh); border-color: var(--chinh); color: var(--tren-chinh); }
.o-thu { padding: 6px 10px; min-width: 44px; }
.o-gio { display: inline-flex; align-items: center; gap: 2px; }
.o-gio input { width: 142px; }
.o-gio button { border: 0; background: none; color: var(--phu); cursor: pointer; font-size: 1rem; padding: 4px; }
.cach-deu { margin-top: 8px; }
.cach-deu input, .cach-deu select { width: auto; padding: 6px 8px; }
.the-push { border-color: var(--chinh); }

/* Hộp thoại */
.nen-hop { position: fixed; inset: 0; z-index: 40; background: rgba(20,10,15,.45); display: flex; align-items: flex-end; justify-content: center; animation: mo .2s ease; }
.hop { background: var(--the); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .nen-hop { align-items: center; } .hop { border-radius: 20px; } }
@keyframes mo { from { opacity: 0; } to { opacity: 1; } }
