/* ABA — phần bên trong (tìm kiếm, chi tiết căn, đặt phòng, tài khoản, dashboard)
 * theo hệ thiết kế kiểu Airbnb: nền trắng, chữ #222, viền #ddd, một màu nhấn hồng san hô,
 * một họ chữ sans, ảnh bo 14px. Trang chủ / đối tác / đăng nhập giữ nguyên app.css.
 */
body.inner {
  --ink: #222222;
  --ink-2: #3f3f3f;
  --muted: #6a6a6a;          /* 5.4:1 trên trắng */
  --faint: #929292;
  --line: #dddddd;
  --line-soft: #ebebeb;
  --line-strong: #b0b0b0;
  --paper: #f7f7f7;
  --surface: #ffffff;
  --brand: #ff385c;          /* logo, chữ lớn ≥ 18px */
  --accent: #e00b41;         /* nền nút có chữ trắng: 4.8:1 */
  --accent-hover: #c80a3a;
  --accent-soft: #fff0f3;
  --success: #006b04;
  --success-soft: #ebf7ec;
  --warning: #8a5300;
  --warning-soft: #fff4e0;
  --danger: #c13515;
  --danger-soft: #fdeeea;
  --focus: #222222;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Roboto, sans-serif;
  --font-body: var(--font-display);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-1: rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.04) 0 2px 6px 0, rgba(0,0,0,.1) 0 4px 8px 0;
  --shadow-2: rgba(0,0,0,.04) 0 0 0 1px, rgba(0,0,0,.12) 0 8px 28px 0;
  --tab-h: 64px;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--ink);
}
body.inner :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- type ---------- */
.inner .display, .inner .unit-title, .inner .page-title, .inner .results-head h1, .inner .card-name,
.inner .unit-main h2, .inner .panel h2, .inner .dlg-head h2, .inner .state h3, .inner .summary-card h3,
.inner .trip-body h3, .inner .review-summary .big, .inner .fact strong, .inner .book-price strong,
.inner .countdown .clock, .inner .voucher-dates .od-stat strong, .inner .step-num { font-family: var(--font-display); letter-spacing: -0.01em; }
.inner .unit-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.2; max-width: none; }
.inner .page-title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); font-weight: 700; line-height: 1.2; }
.inner .results-head h1 { font-size: 1.375rem; font-weight: 600; }
.inner .unit-main h2, .inner .panel h2 { font-size: 1.375rem; font-weight: 600; }
.inner .dlg-head h2 { font-size: 1.125rem; font-weight: 700; }
.inner .state h3 { font-size: 1.25rem; font-weight: 600; }
.inner .eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.inner .muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.neg { color: var(--danger); }

/* ---------- buttons ---------- */
.inner .btn { border-radius: var(--radius); font-weight: 600; }
.inner .btn-accent { background: var(--accent); color: #fff; }
.inner .btn-primary { background: var(--ink); color: #fff; }
.inner .btn-ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.inner .btn-danger { color: var(--danger); border-color: var(--danger); background: #fff; }
.inner .btn-danger-solid { background: var(--danger); color: #fff; }
@media (hover: hover) {
  .inner .btn-accent:hover:not(:disabled) { background: var(--accent-hover); }
  .inner .btn-primary:hover:not(:disabled) { background: #000; }
  .inner .btn-ghost:hover:not(:disabled) { background: var(--paper); }
  .inner .btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
}
.inner .btn:active:not(:disabled) { transform: scale(.96); }
.inner .icon-btn { border-color: var(--line); }
.icon-btn.sm { width: 40px; height: 40px; --od-icon-size: 18px; }
.icon-btn.danger { color: var(--danger); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 767px) { .icon-btn.sm { width: 44px; height: 44px; } }

/* ---------- header / footer ---------- */
.inner .site-header { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; height: 72px; }
.inner .brand-mark { font-family: var(--font-display); color: var(--brand); font-weight: 800; letter-spacing: -0.03em; font-size: 1.75rem; }
.inner .brand-sub { display: none; }
.inner .nav-link { font-weight: 500; border-radius: 999px; padding: 0 var(--s-4); }
.inner .nav-link[aria-current="page"] { text-decoration: none; background: var(--paper); }
.inner .nav-user { border: 1px solid var(--line); padding: 0 6px; }
.inner .avatar { background: var(--ink); }
.inner .site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); margin-top: var(--s-9); }
.inner .site-footer p, .inner .site-footer li, .inner .site-footer button { color: var(--muted); }
.inner .site-footer .brand-mark { color: var(--brand); }
.inner .site-footer .legal { border-color: var(--line); }
@media (hover: hover) { .inner .site-footer button:hover { color: var(--ink); text-decoration: underline; } }
body.is-dash .site-footer { display: none; }

/* ---------- bottom tab bar (mobile, phần trong) ---------- */
.tabbar { display: none; }
@media (max-width: 767px) {
  body.inner .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 36;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  }
  body.inner .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; min-height: 44px; --od-icon-size: 24px; }
  body.inner .tabbar a span { display: block; }
  body.inner .tabbar a[aria-current="page"] { color: var(--accent); }
  body.inner { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  body.inner.has-mobile-book .tabbar { display: none; }
  body.inner.has-mobile-book { padding-bottom: 88px; }
  body.inner .toast-region { bottom: calc(var(--tab-h) + 16px); }
  body.inner .site-header .nav { display: none; }
  body.inner .site-footer { display: none; }
}

/* ---------- search bar → pill ---------- */
.inner .searchbar { border-radius: 40px; border-color: var(--line); box-shadow: rgba(0,0,0,.04) 0 2px 6px 0, rgba(0,0,0,.06) 0 1px 2px 0; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; align-items: center; }
.inner .searchbar .seg { border: 0 !important; padding: 10px 24px; min-height: 64px; position: relative; border-radius: 40px; }
.inner .searchbar .seg + .seg::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; border-left: 1px solid var(--line); }
.inner .searchbar .seg:focus-within { background: var(--paper); }
.inner .searchbar .seg:focus-within::before, .inner .searchbar .seg:focus-within + .seg::before { opacity: 0; }
.inner .searchbar .seg-label { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.inner .searchbar .seg-input { font-size: 14px; font-weight: 500; color: var(--ink); }
.inner .searchbar .stepper button { width: 32px; height: 32px; }
.inner .searchbar.compact .seg { min-height: 60px; padding-block: 8px; }
.inner .searchbar .submit { background: var(--accent); color: #fff; border-radius: 999px; margin: 8px; min-height: 48px; }
@media (min-width: 1024px) {
  .inner .searchbar .submit { width: 48px; height: 48px; padding: 0; }
  .inner .searchbar .submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1023px) {
  .inner .searchbar { border-radius: var(--radius-lg); grid-template-columns: 1fr 1fr; }
  .inner .searchbar .seg { border-radius: var(--radius); }
  .inner .searchbar .seg + .seg::before { display: none; }
  .inner .searchbar .seg:nth-child(2), .inner .searchbar .seg:nth-child(3) { border-top: 1px solid var(--line) !important; }
  .inner .searchbar .submit { grid-column: 1 / -1; }
}
.m-search-pill { display: none; }
@media (max-width: 767px) {
  .inner .search-top [data-sb] { display: none; }
  .inner .m-search-pill {
    display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; box-shadow: rgba(0,0,0,.08) 0 2px 10px; text-align: left; --od-icon-size: 20px;
  }
  .inner .m-search-pill strong { font-size: 14px; font-weight: 600; display: block; }
  .inner .m-search-pill span span { font-size: 12px; color: var(--muted); display: block; }
}
dialog.dlg-search .searchbar { grid-template-columns: 1fr; border-radius: var(--radius-lg); box-shadow: none; }
dialog.dlg-search .searchbar .seg { border-top: 1px solid var(--line) !important; border-radius: 0; }
dialog.dlg-search .searchbar .seg:first-child { border-top: 0 !important; }
dialog.dlg-search .searchbar .seg::before { display: none; }
dialog.dlg-search .searchbar .submit { grid-column: auto; width: auto; height: auto; padding: 0 24px; }
dialog.dlg-search .searchbar .submit span { position: static; width: auto; height: auto; clip: auto; }
@media (max-width: 767px) { dialog.dlg-search { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; } }

/* ---------- search results ---------- */
.inner .search-top { background: #fff; border-bottom: 1px solid var(--line); padding-block: var(--s-4); top: 72px; }
.inner .search-layout { grid-template-columns: 1fr; padding-top: var(--s-6); }
.inner .filters-aside { display: none; }
.inner .filter-toggle { display: inline-flex; border-radius: 999px; border-color: var(--line); }
.inner .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
@media (min-width: 1440px) { .inner .results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .inner .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .inner .results-grid { grid-template-columns: 1fr; } }
.inner .sort-select { border-radius: 999px; }
.inner .chip { border-color: var(--line); }

/* ---------- listing card ---------- */
.inner .card { gap: var(--s-3); }
.inner .card-media { border-radius: var(--radius-lg); }
.inner .card-body { gap: 2px; }
.inner .card-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.inner .card-meta { font-size: 0.875rem; }
.inner .card-price { margin-top: var(--s-1); }
.inner .card-price .from { font-size: 0.9375rem; }
.inner .card-price .from strong { font-size: 1rem; font-weight: 600; }
.inner .card-price .total { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.inner .card-badge { border-radius: 999px; box-shadow: var(--shadow-1); font-weight: 700; }
@media (hover: hover) { .inner .card:hover .card-name { text-decoration: none; } .inner .card:hover .card-media img { transform: scale(1.02); } }

/* ---------- unit detail ---------- */
.inner .unit-head { padding-top: var(--s-5); gap: var(--s-2); }
.inner .unit-head .eyebrow { order: 3; }
.inner .unit-sub { color: var(--ink); font-weight: 500; }
.inner .unit-sub .btn-link { color: var(--ink); }
.inner .gallery { border-radius: var(--radius-lg); gap: var(--s-2); margin-top: var(--s-5); }
.inner .gallery .all { border-radius: var(--radius); border-color: var(--ink); box-shadow: var(--shadow-1); }
.inner .gallery-rail button { border-radius: var(--radius-lg); }
.inner .unit-layout { gap: clamp(32px, 6vw, 96px); grid-template-columns: minmax(0, 1fr) 372px; margin-top: var(--s-7); }
.inner .unit-main { gap: 0; }
.inner .unit-main > section { padding-block: var(--s-6); border-top: 1px solid var(--line); gap: var(--s-4); }
.inner .unit-main > section:first-child { padding-top: 0; }
.inner .facts { display: flex; flex-wrap: wrap; gap: var(--s-2) 0; }
.inner .fact { display: flex; align-items: baseline; gap: 6px; padding: 0; border: 0; border-radius: 0; font-size: 1.0625rem; }
.inner .fact + .fact::before { content: "·"; margin: 0 10px; color: var(--muted); }
.inner .fact strong { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.inner .fact span { font-size: 1.0625rem; color: var(--ink); }
.inner .desc { font-size: 1rem; line-height: 1.6; }
.inner .amen-grid li { min-height: 40px; }
.inner .amen-grid li .od-icon { color: var(--ink); --od-icon-size: 24px; }
.inner .filter-sub { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.9375rem; font-weight: 600; }
.inner .avail-cal { border-radius: var(--radius-lg); }
.inner .rules-list li { font-size: 0.9375rem; }
.inner .review-summary { flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding-block: var(--s-4); }
.inner .review-summary .big { font-size: clamp(3rem, 2.4rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; }
.inner .review-summary .od-stat { justify-items: center; }
.inner .stars { color: var(--ink); }
.inner .review-reply { background: var(--paper); border-radius: var(--radius); }
.inner .book-panel { border-radius: var(--radius-lg); box-shadow: var(--shadow-1); border-color: var(--line); padding: var(--s-5); top: calc(72px + var(--s-6)); }
.inner .book-price strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; }
.inner .book-fields { border-color: var(--line-strong); border-radius: var(--radius); }
.inner .book-fields > button:first-child { border-right-color: var(--line-strong); }
.inner .book-fields .guests { border-top-color: var(--line-strong); }
.inner .book-fields .k { color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.inner .book-fields .v { font-size: 0.875rem; color: var(--muted); }
.inner .breakdown .row span:first-child { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.inner .breakdown .total span:first-child { text-decoration: none; }
.inner .breakdown .row span:first-child .od-nowrap { text-decoration: none; color: var(--muted); }
.inner .notice { border-radius: var(--radius); }
.inner .live::before { background: #008a05; box-shadow: 0 0 0 3px #e3f4e4; }
.inner .mobile-book { border-top-color: var(--line); }
.inner .mobile-book .od-stat strong { text-decoration: underline; }
@media (max-width: 1023px) { .inner .unit-layout { grid-template-columns: 1fr; } }

/* calendar */
.inner .cal-month h4 { font-weight: 600; }
.inner .cal-day { font-weight: 600; }
.inner .cal-day.in-range { background: var(--paper); }
.inner .cal-day.is-start, .inner .cal-day.is-end { background: var(--ink); }
.inner .popover { border-radius: var(--radius-xl); box-shadow: var(--shadow-2); }

/* ---------- booking / voucher / account ---------- */
.inner .panel { border-radius: var(--radius-lg); border-color: var(--line); padding: var(--s-5); }
.inner .countdown { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.inner .countdown .label, .inner .countdown .note { color: var(--muted); }
.inner .countdown .clock { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); }
.inner .countdown.is-urgent .clock { color: var(--danger); }
.inner .countdown.is-urgent .label::after { content: " · sắp hết giờ"; font-weight: 600; color: var(--danger); }
.inner .summary-card { box-shadow: var(--shadow-1); }
.inner .summary-card h3 { font-size: 1.125rem; font-weight: 600; }
.inner .summary-card .thumb { border-radius: var(--radius); }
.inner .kv-row .v.code { font-size: 1rem; }
.inner .voucher { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.inner .voucher-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.inner .voucher-head .brand-mark { color: var(--brand); }
.inner .voucher-head .od-stat span:first-child { color: var(--muted); letter-spacing: 0; text-transform: none; }
.inner .voucher-dates { background: var(--paper); border-radius: var(--radius); }
.inner .voucher-dates .od-stat strong { font-size: 1.5rem; font-weight: 700; }
.inner .voucher-grid .od-stat span:first-child { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.inner .account-nav button { border-radius: var(--radius); }
.inner .account-nav button[aria-current="page"] { background: var(--paper); }
.inner .trip { border-radius: var(--radius-lg); border-color: var(--line); }
.inner .trip-thumb { border-radius: var(--radius); }
.inner .trip-body h3 { font-size: 1.125rem; font-weight: 600; }
.inner .trip-body h3 a { color: var(--ink); }
.inner .tabs button[aria-selected="true"] { border-bottom-color: var(--ink); }
.inner .state { border-style: solid; border-color: var(--line); border-radius: var(--radius-lg); }
.inner .status { font-weight: 600; }
.inner .stars-input label.on { color: var(--ink); }
.inner .input, .inner .select, .inner .textarea { border-color: var(--line-strong); border-radius: var(--radius); }
.inner .input:focus, .inner .select:focus, .inner .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.inner dialog.dlg { border-radius: var(--radius-lg); }
.inner .dlg-head { justify-content: space-between; }
.inner .skel { border-radius: var(--radius); }

/* ---------- shared small components ---------- */
.seg-tabs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: #fff; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs button { flex: none; min-height: 36px; padding: 0 var(--s-4); border-radius: 999px; border: 0; background: none; font-size: 0.875rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.seg-tabs button[aria-selected="true"], .seg-tabs button[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .seg-tabs button:not([aria-selected="true"]):hover { background: var(--paper); color: var(--ink); } }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-ok { background: #ebf7ec; color: #006b04; }
.pill-warn { background: #fff4e0; color: #7a4a00; }
.pill-bad { background: #fdeeea; color: #a82d10; }
.pill-info { background: #eef3ff; color: #1f4fbf; }
.pill-neutral { background: #f0f0f0; color: #3f3f3f; }
.pill-neutral .pill-dot { background: transparent; border: 1.5px solid currentColor; }

/* ================================================================
 * DASHBOARD
 * ============================================================== */
.dash { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.dash-side { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; border-right: 1px solid var(--line); padding: var(--s-5) var(--s-3); display: flex; flex-direction: column; gap: var(--s-4); background: #fff; }
.dash-who { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
.dash-who strong { display: block; font-size: 0.9375rem; }
.dash-who span:not(.avatar) { display: block; font-size: 0.8125rem; color: var(--muted); }
.dnav { display: grid; gap: 2px; }
.dnav-link { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; --od-icon-size: 20px; transition: background-color var(--dur-1) var(--ease-out); }
.dnav-link .od-icon { color: var(--muted); }
.dnav-link[aria-current="page"] { background: var(--paper); font-weight: 700; }
.dnav-link[aria-current="page"] .od-icon { color: var(--ink); }
@media (hover: hover) { .dnav-link:hover { background: var(--paper); } }
.dash-side-foot { margin-top: auto; display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-2) 0; border-top: 1px solid var(--line); }
.dash-main { min-width: 0; }
.dash-mbar { display: none; }
.dash-content { padding: var(--s-6) clamp(16px, 3vw, 40px) var(--s-8); max-width: 1320px; }
@media (max-width: 1023px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-mbar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); position: sticky; top: 72px; background: #fff; z-index: 20; }
  .dash-mbar-title { font-weight: 700; }
  .dash-content { padding: var(--s-5) var(--s-4) var(--s-7); }
}
dialog.dlg-drawer { margin: 0 auto 0 0; height: 100dvh; max-height: 100dvh; width: min(320px, 86vw); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
dialog.dlg-drawer[open] { animation: drawer-in var(--dur-2) var(--ease-out); }
dialog.dlg-drawer.is-closing { animation: drawer-out 170ms var(--ease-in) forwards; }
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-out { to { transform: translateX(-16px); opacity: 0; } }
dialog.dlg-drawer .dlg-body { gap: 2px; }

.dhead { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.dhead .back-link { min-height: 36px; }
.dhead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.dhead h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.dhead p { max-width: 72ch; }
.dsec { font-size: 1.0625rem; font-weight: 700; margin: var(--s-6) 0 var(--s-3); }
.dsec:first-child { margin-top: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.sel-sm { min-height: 40px; width: auto; font-size: 0.875rem; padding-block: 0; }
.search-in { position: relative; width: min(360px, 100%); --od-icon-size: 18px; }
.search-in .od-icon { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search-in .input { padding-left: 42px; min-height: 44px; border-radius: 999px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-4); }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { display: grid; gap: 4px; align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--ink); text-decoration: none; }
.kpi-label { font-size: 0.875rem; color: var(--muted); font-weight: 500; display: block; }
.kpi-value { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }
.kpi-sub { font-size: 0.8125rem; color: var(--muted); display: block; }
.kpi-bad .kpi-value { color: var(--danger); }
.kpi-link { transition: border-color var(--dur-1) var(--ease-out); }
@media (hover: hover) { .kpi-link:hover { border-color: var(--ink); } }
@media (max-width: 1199px) { .kpis, .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .kpis-3 { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .kpis, .kpis-5 { grid-template-columns: 1fr; } }

.dcard { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; margin-bottom: var(--s-4); min-width: 0; }
.dcard h2 { font-size: 1.125rem; font-weight: 700; }
.dcard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.dgrid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.dgrid-2 > .dcard, .dgrid-2 > div > .dcard:last-child { margin-bottom: 0; }
@media (max-width: 1023px) { .dgrid-2 { grid-template-columns: 1fr; } }

/* table → card list on mobile */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.dcard .tbl-wrap { border: 0; border-radius: 0; margin-inline: calc(var(--s-5) * -1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tbl th { text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; }
.tbl tbody th { color: var(--ink); font-size: 0.9375rem; white-space: normal; }
.tbl td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-soft, #ebebeb); vertical-align: middle; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl tr[data-href] { cursor: pointer; }
@media (hover: hover) { .tbl tr[data-href]:hover td { background: var(--paper); } }
.tbl-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.tbl-link:focus-visible { outline-offset: 4px; }
.tbl-compact td, .tbl-compact th { padding: var(--s-2) var(--s-3); font-size: 0.875rem; }
.price.hl { font-weight: 700; }
@media (max-width: 767px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td, .tbl tbody th { display: block; width: 100%; }
  .tbl tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td, .tbl tbody th { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding: 4px 0; border: 0; text-align: right; }
  .tbl td::before, .tbl tbody th::before { content: attr(data-label); color: var(--muted); font-size: 0.8125rem; font-weight: 500; text-align: left; flex: none; max-width: 45%; }
  .tbl td:first-child { font-size: 1rem; }
  .tbl td > * { min-width: 0; }
  .tbl .num { text-align: right; }
  .dcard .tbl-wrap { margin-inline: calc(var(--s-5) * -1); }
}

.rows { list-style: none; padding: 0; margin: 0; display: grid; }
.rows > li + li { border-top: 1px solid var(--line-soft, #ebebeb); }
.row-link { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .row-link:hover strong { text-decoration: underline; } }
.date-chip { display: grid; justify-items: center; align-content: center; width: 52px; height: 56px; border: 1px solid var(--line); border-radius: var(--radius); flex: none; }
.date-chip strong { font-size: 1.125rem; line-height: 1; display: block; }
.date-chip span { font-size: 0.75rem; color: var(--muted); display: block; }
.feed { list-style: none; padding: 0; margin: 0; display: grid; max-height: 360px; overflow-y: auto; }
.feed li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft, #ebebeb); animation: view-in var(--dur-2) var(--ease-out); }
.feed li:last-child { border-bottom: 0; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.feed .feed-empty { color: var(--muted); font-size: 0.875rem; border: 0; display: block; }
.todo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.todo-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; --od-icon-size: 20px; transition: border-color var(--dur-1) var(--ease-out); }
.todo-item strong { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.todo-item span { flex: 1; font-weight: 500; }
@media (hover: hover) { .todo-item:hover { border-color: var(--ink); } }
@media (max-width: 767px) { .todo { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin: 0; }
.dl-1 { grid-template-columns: 1fr; }
.dl > div { display: grid; gap: 2px; min-width: 0; }
.dl dt { font-size: 0.8125rem; color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.dl .span-2 { grid-column: 1 / -1; }
.dl dd.pre { white-space: pre-line; font-weight: 400; }
@media (max-width: 479px) { .dl { grid-template-columns: 1fr; } }
.hold-strip { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border-radius: var(--radius-lg); background: var(--warning-soft); color: #5e3d00; --od-icon-size: 24px; }
.hold-strip strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; display: block; color: var(--ink); }
.hold-strip .muted { color: #5e3d00; }
.ucards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-6) var(--s-5); }
.ucard { display: grid; gap: var(--s-3); color: var(--ink); text-decoration: none; align-content: start; }
.ucard-media, .q-media, .ph-media { border-radius: var(--radius-lg); overflow: hidden; background: #f0f0f0; position: relative; }
.ucard-media img, .q-media img, .ph-media img, .ph-rail img { --od-ratio: 4 / 3; }
.ucard-media .no-photo, .q-media .no-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: var(--s-2); color: var(--muted); font-size: 0.875rem; --od-icon-size: 28px; }
.ucard-body { display: grid; gap: 4px; }
.ucard-body .card-top { display: flex; justify-content: space-between; gap: var(--s-2); align-items: center; }
.reject-note { display: flex; gap: 6px; color: var(--danger); font-size: 0.8125rem; --od-icon-size: 16px; }
.reject-note .od-icon { margin-top: 2px; }
@media (hover: hover) { .ucard:hover strong { text-decoration: underline; } }

/* wizard & forms */
.wizard { display: grid; gap: var(--s-5); max-width: 760px; }
.steps-bar { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.steps-bar li { display: flex; align-items: center; gap: var(--s-2); padding: 6px var(--s-3) 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--muted); white-space: nowrap; flex: none; }
.steps-bar .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f0f0f0; font-size: 0.75rem; font-weight: 700; --od-icon-size: 14px; }
.steps-bar li.cur { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.steps-bar li.cur .n { background: var(--ink); color: #fff; }
.steps-bar li.done { color: var(--ink); }
.steps-bar li.done .n { background: #006b04; color: #fff; }
.wizard-foot { display: flex; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.fgrid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.fgrid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 639px) { .fgrid-2, .fgrid-3 { grid-template-columns: 1fr; } }
.form-sec { display: grid; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.form-sec h3 { font-size: 1rem; font-weight: 700; }
.amen-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
@media (max-width: 479px) { .amen-checks { grid-template-columns: 1fr; } }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.up-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.up-list:empty { display: none; }
.up { display: flex; align-items: center; gap: var(--s-3); font-size: 0.875rem; }
.up progress { width: 120px; accent-color: var(--ink); flex: none; }
.up-st { flex: none; min-width: 64px; }
.up.is-bad { color: var(--danger); }
.ph-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-4); }
.ph { display: grid; gap: var(--s-2); }
.ph-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ph-actions .btn-link { min-height: 40px; }
.ph-rail { --od-gap: var(--s-2); --od-rail-pad: 0px; margin-bottom: var(--s-4); }
.ph-rail img { width: 280px; border-radius: var(--radius-lg); }
.rule { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); margin: 0 0 var(--s-4); display: grid; gap: var(--s-4); min-width: 0; }
.rule legend { font-weight: 700; padding: 0 var(--s-2); }
.rule-rm { align-content: end; }
.wd-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.wd { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.wd input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.wd:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.copy-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.copy-row .input { flex: 1 1 240px; font-size: 0.875rem; }
.qr-card { justify-items: center; text-align: center; }
.qr { display: grid; place-items: center; }
.qr svg { width: 200px; height: 200px; display: block; }
.qr-fallback { display: grid; justify-items: center; gap: var(--s-2); max-width: 28ch; color: var(--muted); font-size: 0.875rem; --od-icon-size: 40px; }
.feeds { list-style: none; padding: 0; margin: 0; display: grid; }
.feed-item { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft, #ebebeb); flex-wrap: wrap; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .notice { margin-top: var(--s-2); }
.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.q-item { grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); margin: 0; }
.q-title { font-size: 1.125rem; font-weight: 700; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .q-title:hover { text-decoration: underline; } }
.q-actions { display: grid; gap: var(--s-2); }
@media (max-width: 767px) { .q-item { grid-template-columns: 1fr; } .q-actions { grid-auto-flow: column; justify-content: start; } }
.rows-card { gap: var(--s-3); }
.rows-card > li + li { border-top: 0; }
.elig { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.elig .price { font-size: 1.25rem; font-weight: 700; }
.elig-msg { flex-basis: 100%; }
.elig-msg:empty { display: none; }
.warn-text { color: var(--warning); display: inline-flex; gap: 6px; align-items: center; --od-icon-size: 16px; }
.settings { display: grid; gap: var(--s-3); max-width: 900px; }
.setting { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0; }
.setting-ctl { display: flex; align-items: center; gap: var(--s-2); }
.input-unit { display: flex; align-items: center; gap: var(--s-2); }
.input-unit .input { width: 128px; }
.input-unit span { color: var(--muted); font-size: 0.875rem; min-width: 32px; }
@media (max-width: 639px) { .setting { grid-template-columns: 1fr; } }
.diff summary { cursor: pointer; font-size: 0.8125rem; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.diff-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.diff pre { margin: 4px 0 0; font-size: 0.75rem; background: var(--paper); padding: var(--s-2); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 280px; text-align: left; }
.rv-list { display: grid; gap: var(--s-4); }
.rv { margin: 0; }
.rv .review-head .pill { margin-left: auto; }
.bullets { margin: var(--s-2) 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.chips a.chip { text-decoration: none; color: var(--ink); }

/* timeline calendar (B2 / C2) */
.tl-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: 0.8125rem; margin-bottom: var(--s-3); color: var(--ink); }
.tl-legend > span { display: inline-flex; align-items: center; gap: var(--s-2); }
.lg { width: 22px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.tl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); max-height: 72vh; background: #fff; overscroll-behavior: contain; }
.tl { --name-w: 208px; --cell-w: 44px; display: grid; min-width: max-content; }
.tl-row { display: grid; grid-template-columns: var(--name-w) repeat(var(--days), var(--cell-w)); grid-template-rows: 56px; border-bottom: 1px solid var(--line-soft, #ebebeb); }
.tl-row:last-child { border-bottom: 0; }
.tl-row > * { grid-row: 1; }
.tl-name { grid-column: 1; position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid var(--line); padding: 6px var(--s-3); display: grid; align-content: center; gap: 0; min-width: 0; }
.tl-name strong { font-size: 0.875rem; }
.tl-name span { font-size: 0.75rem; color: var(--muted); }
.tl-head { position: sticky; top: 0; z-index: 4; background: #fff; grid-template-rows: 52px; }
.tl-head .tl-name { z-index: 5; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.tl-day { display: grid; justify-items: center; align-content: center; font-size: 0.6875rem; color: var(--muted); border-left: 1px solid #f3f3f3; position: relative; }
.tl-day strong { font-size: 0.875rem; color: var(--ink); line-height: 1.2; }
.tl-day em { font-style: normal; font-size: 0.625rem; font-weight: 700; color: var(--ink); }
.tl-day.is-we { background: #fafafa; }
.tl-day.is-today { box-shadow: inset 0 -3px 0 var(--accent); }
.tl-day.is-today strong { color: var(--accent); }
.tl-cell { border: 0; border-left: 1px solid #f3f3f3; background: none; padding: 0; min-width: 0; }
.tl-cell.is-we { background: #fafafa; }
.tl-cell.is-today { background: #fff6f8; }
.tl-cell.is-past { background: repeating-linear-gradient(135deg, #fafafa 0 4px, #f2f2f2 4px 5px); }
.tl-cell.is-free { cursor: cell; touch-action: pan-x pan-y; }
@media (hover: hover) { .tl-cell.is-free:hover { background: var(--paper); } }
.tl-cell.sel { background: #fde2e8; box-shadow: inset 0 0 0 2px var(--accent); }
.tl-bar { z-index: 2; margin: 9px 2px; border-radius: var(--radius); display: flex; align-items: center; min-width: 0; padding: 0 var(--s-2); font-size: 0.75rem; font-weight: 600; text-align: left; border: 0; line-height: 1.2; overflow: hidden; }
button.tl-bar { cursor: pointer; }
.bar-book, .lg-book { background: var(--ink); color: #fff; }
.bar-hold, .lg-hold { background: #fff4e0; color: #6b4500; box-shadow: inset 0 0 0 1.5px #c47700; }
.bar-done { background: #e9e9e9; color: #3f3f3f; }
.bar-block, .lg-block { background: repeating-linear-gradient(45deg, #efefef 0 6px, #dedede 6px 12px); color: var(--ink); }
.bar-ical, .lg-ical { background: #fff; color: #3f3f3f; box-shadow: inset 0 0 0 1.5px #6a6a6a; border: 0; }
.lg-ical { background: repeating-linear-gradient(90deg, #fff 0 4px, #f0f0f0 4px 8px); }
@media (hover: hover) { button.tl-bar:hover { filter: brightness(.92); } }
@media (max-width: 767px) { .tl { --name-w: 132px; --cell-w: 40px; } }

/* chart */
.chart { margin: 0; display: grid; gap: var(--s-2); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--ink); }
.chart .ax { font-size: 12px; fill: var(--muted); font-family: var(--font-body); }
.chart .vl { font-size: 11px; fill: var(--ink); font-weight: 600; font-family: var(--font-body); }
.chart .base { stroke: var(--line); }

/* header manage link */
.nav-manage { border: 1px solid var(--line); }
@media (max-width: 767px) { .nav .nav-manage { display: none; } }

@media (prefers-reduced-motion: reduce) { .feed li { animation: none; } }

/* ================================================================
 * Lịch tháng theo căn (dash-month.js)
 * ============================================================== */
.seg-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-4); border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; --od-icon-size: 16px; }
.seg-tabs a[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .seg-tabs a:not([aria-selected="true"]):hover { background: var(--paper); color: var(--ink); } }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.mc-unit { max-width: min(360px, 100%); }
.mc-nav { display: flex; align-items: center; gap: var(--s-2); }
.mc-nav h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; min-width: 9.5ch; text-align: center; white-space: nowrap; }
.mc-kpis { margin-bottom: var(--s-5); }
.mc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
.mc-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); padding-bottom: var(--s-2); margin-bottom: var(--s-2); border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); text-align: center; font-weight: 500; }
.mc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 40px 28px minmax(36px, auto); gap: 0 var(--s-2); margin-bottom: var(--s-2); }
.mc-week > * { min-width: 0; }
.mc-day { grid-row: 1 / 4; display: grid; grid-template-rows: auto 1fr auto; align-items: start; justify-items: start; min-height: 112px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--ink); text-align: left; font: inherit; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
button.mc-day { cursor: pointer; }
.mc-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin: -4px 0 0 -6px; padding: 0 4px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.mc-price { grid-row: 3; align-self: end; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-day.is-diff .mc-price { color: var(--ink); font-weight: 700; }
.mc-day.is-today .mc-num { background: var(--accent); color: #fff; }
.mc-day.is-past, .mc-day.is-blocked { background: var(--paper); }
.mc-day.is-past .mc-num, .mc-day.is-blocked .mc-num { text-decoration: line-through; color: var(--muted); }
.mc-day.is-past.is-today .mc-num { text-decoration: none; }
.mc-day.is-blocked .mc-price { color: var(--ink); font-weight: 600; }
.mc-day.is-booked .mc-price, .mc-day.is-ical .mc-price { color: var(--faint); }
.mc-day.is-out { background: transparent; border-color: transparent; color: #c1c1c1; }
.mc-day.is-sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
@media (hover: hover) { button.mc-day:not(.is-sel):hover { border-color: var(--ink); } }
.mc-bar { grid-row: 2; z-index: 2; align-self: center; height: 26px; display: flex; align-items: center; min-width: 0; padding: 0 var(--s-2); margin: 0 -9px; border: 0; border-radius: 0; font: inherit; font-size: 0.75rem; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; }
.mc-bar.is-start { margin-left: 8px; border-top-left-radius: 999px; border-bottom-left-radius: 999px; padding-left: var(--s-3); }
.mc-bar.is-end { margin-right: 8px; border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
@media (hover: hover) { .mc-bar:hover { filter: brightness(.9); } }
.mc-legend { margin-top: var(--s-3); }
.lg-free { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lg-diff { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.lg-blocked { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); background-image: linear-gradient(transparent 6px, var(--muted) 6px, var(--muted) 7.5px, transparent 7.5px); }
.mc-skel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); }
.mc-skel .skel { height: 112px; border-radius: var(--radius-lg); }
.mc-panel { position: sticky; top: calc(72px + var(--s-5)); display: grid; gap: var(--s-4); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-1); max-height: calc(100vh - 120px); overflow-y: auto; }
.mc-p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.mc-p-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.mc-p-head h2:focus { outline: none; }
.mc-sec { display: grid; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.mc-sec h3 { font-size: 0.9375rem; font-weight: 700; }
.mc-toggle { width: 100%; }
.mc-toggle button { flex: 1; }
.mc-hint { display: grid; gap: var(--s-2); justify-items: start; color: var(--muted); font-size: 0.9375rem; --od-icon-size: 28px; }
.mc-hint strong { color: var(--ink); font-size: 1rem; }
.mc-base { margin-top: var(--s-3); width: 100%; border-top: 1px solid var(--line); padding-top: var(--s-3); }
.btn-block { width: 100%; }
@media (max-width: 1199px) { .mc-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 1023px) {
  .mc-layout { grid-template-columns: 1fr; }
  .mc-panel { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 78vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-2); }
  .mc-panel.is-open { display: grid; animation: mc-sheet var(--dur-2) var(--ease-out); }
  @keyframes mc-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 767px) {
  .mc-nav { width: 100%; justify-content: space-between; }
  .mc-nav h2 { min-width: 0; font-size: 1.25rem; }
  .mc-head { gap: 4px; font-size: 0.75rem; }
  .mc-week { gap: 0 4px; grid-template-rows: 30px 22px minmax(22px, auto); margin-bottom: 4px; }
  .mc-day { min-height: 74px; padding: 6px 6px 6px 8px; border-radius: 10px; }
  .mc-num { font-size: 0.8125rem; min-width: 24px; height: 24px; margin: -2px 0 0 -4px; }
  .mc-price { font-size: 0.6875rem; }
  .mc-bar { height: 20px; font-size: 0.6875rem; margin: 0 -5px; }
  .mc-bar.is-start { margin-left: 4px; padding-left: 6px; }
  .mc-bar.is-end { margin-right: 4px; }
  .mc-skel .skel { height: 74px; }
}

/* ================================================================
 * Khung dashboard kiểu host: thanh trên + menu phải
 * ============================================================== */
body.is-dash .site-header, body.is-dash .tabbar { display: none !important; }
body.is-dash { padding-bottom: 0 !important; }
body.is-dash .toast-region { bottom: var(--s-6); }
.host { min-height: 100vh; }
.host-bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.host-bar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); height: 72px; padding: 0 clamp(16px, 3vw, 48px); }
.host-bar .brand { gap: var(--s-2); align-items: center; }
.host-badge { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.host-tabs { display: flex; gap: var(--s-1); justify-self: center; }
.host-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.host-tabs a[aria-current="page"] { color: var(--ink); }
.host-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 2px; border-radius: 2px; background: var(--ink); }
@media (hover: hover) { .host-tabs a:not([aria-current="page"]):hover { background: var(--paper); color: var(--ink); } }
.host-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.host-switch { font-weight: 600; font-size: 0.875rem; color: var(--ink); text-decoration: none; padding: 0 var(--s-3); min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; }
@media (hover: hover) { .host-switch:hover { background: var(--paper); } }
.host-avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.host-avatar .avatar { width: 36px; height: 36px; }
.host-menu { background: var(--paper); border-color: transparent; }
@media (max-width: 1023px) { .host-switch { display: none; } }
@media (max-width: 767px) {
  .host-bar-in { grid-template-columns: 1fr auto; height: auto; padding: var(--s-2) var(--s-4) 0; row-gap: 0; }
  .host-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-2); }
  .host-tabs::-webkit-scrollbar { display: none; }
  .host-badge { display: none; }
}
.dash-content { max-width: 1440px; margin: 0 auto; padding: var(--s-6) clamp(16px, 3vw, 48px) var(--s-8); }
dialog.dlg-drawer-r { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
dialog.dlg-drawer-r[open] { animation: drawer-in-r var(--dur-2) var(--ease-out); }
dialog.dlg-drawer-r.is-closing { animation: drawer-out-r 170ms var(--ease-in) forwards; }
@keyframes drawer-in-r { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-out-r { to { transform: translateX(16px); opacity: 0; } }
@media (max-width: 639px) { dialog.dlg-drawer-r { width: 100vw; border-radius: 0; } }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) var(--s-5) 0; }
.menu-body { padding: var(--s-4) var(--s-5) var(--s-6); overflow-y: auto; display: grid; gap: var(--s-4); align-content: start; }
.menu-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s-2); }
.menu-body .dnav-link { min-height: 52px; font-size: 1rem; background: none; border: 0; width: 100%; text-align: left; }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: var(--s-2) 0; }
.menu-feature { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); text-decoration: none; --od-icon-size: 24px; }
.menu-feature strong { font-size: 1rem; display: block; }
.menu-feature span span { font-size: 0.875rem; color: var(--muted); display: block; }
@media (hover: hover) { .menu-feature:hover { background: #efefef; } }

/* thẻ nhắc việc */
.remind-band { background: var(--paper); margin: calc(var(--s-6) * -1) calc(clamp(16px, 3vw, 48px) * -1) var(--s-6); padding: var(--s-5) clamp(16px, 3vw, 48px); }
.remind-row { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }
.remind { display: flex; gap: var(--s-4); align-items: center; width: min(400px, 100%); padding: var(--s-4); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-1) var(--ease-out); }
@media (hover: hover) { .remind:hover { box-shadow: var(--shadow-2); } }
.remind-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; flex: none; --od-icon-size: 24px; }
.remind-k, .remind-s { font-size: 0.8125rem; color: var(--muted); display: block; }
.remind strong { font-size: 1rem; display: block; }

/* ================================================================
 * Lịch cuộn liên tục + cột phải thẻ tối
 * ============================================================== */
body.is-cal .dash-content { padding-top: var(--s-4); }
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-2); }
.cal-top-l, .cal-top-r { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.mc-jump { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23222' stroke-width='2.2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; padding: 4px 36px 4px 0; font: inherit; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.mc-jump:focus-visible { outline: 2px solid var(--ink); }
.cal-settings-btn { display: none; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.cal-main { min-width: 0; position: relative; }
.mc-dow { position: sticky; top: 72px; z-index: 5; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); background: #fff; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); text-align: center; font-weight: 500; }
.mc-month { padding-top: var(--s-5); scroll-margin-top: 130px; }
.mc-month + .mc-month { padding-top: var(--s-7); }
.mc-month-h { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s-4); }
.mc-month:first-child .mc-month-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mc-day.is-blank { background: transparent; border-color: transparent; }
.mc-day.is-preview .mc-price { color: var(--accent); font-weight: 700; }
.mc-day .mc-price { text-decoration: underline; text-decoration-color: transparent; }
.mc-day.is-free:not(.is-past) .mc-price, .mc-day.is-diff .mc-price { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.mc-day.is-sel { background: #fff; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.mc-bar.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.cal-fab-wrap { position: sticky; bottom: var(--s-6); display: flex; justify-content: flex-end; pointer-events: none; margin-top: calc(-56px - var(--s-6)); height: 56px; }
.cal-fab { pointer-events: auto; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-2); display: grid; place-items: center; --od-icon-size: 22px; transform: translateX(26px); }
@media (hover: hover) { .cal-fab:hover { border-color: var(--ink); } }
@media (max-width: 1279px) { .cal-fab { transform: none; } }

.cal-side { position: sticky; top: calc(72px + var(--s-4)); display: grid; gap: var(--s-2); align-content: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: var(--s-4); scrollbar-width: thin; }
.side-intro { color: var(--muted); font-size: 0.9375rem; padding: var(--s-2) 0 var(--s-2); }
.side-chips { display: flex; justify-content: flex-end; gap: var(--s-2); margin-bottom: var(--s-2); }
.side-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.side-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; --od-icon-size: 18px; }
@media (hover: hover) { .side-x:hover { background: #000; } }
.side-range { font-weight: 600; font-size: 0.9375rem; padding: 0 var(--s-1) var(--s-1); }
.dk-card { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--radius-xl); background: #222; color: #fff; text-decoration: none; align-content: start; }
.dk-card.dk-light { background: var(--paper); color: var(--ink); }
.dk-card.dk-light .dk-k, .dk-card.dk-light .dk-s { color: var(--muted); }
.dk-k { font-size: 0.875rem; color: #c8c8c8; font-weight: 500; display: block; }
.dk-s { font-size: 0.8125rem; color: #c8c8c8; display: block; }
.dk-s b { color: #fff; }
.dk-h { font-size: 1.125rem; font-weight: 700; display: block; }
.dk-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.dk-avail-l { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.dk-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dk-dot.is-free { background: #3ddc84; }
.dk-dot.is-blocked { background: #ff6b6b; }
.dk-dot.is-mixed { background: #ffc857; }
.dk-dot.is-booked { background: #9aa0ff; }
.dk-toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: #3a3a3a; }
.dk-toggle button { width: 44px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; --od-icon-size: 16px; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.dk-toggle button[aria-checked="true"] { background: #fff; color: #222; }
.dk-toggle button:disabled { opacity: .5; }
@media (hover: hover) { .dk-toggle button:not([aria-checked="true"]):hover { background: #4a4a4a; } }
.dk-price-btn { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; --od-icon-size: 18px; }
.dk-price-btn.is-static { cursor: default; }
.dk-price { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.dk-price-btn.is-static .dk-price, .dk-card:not(:has(.dk-price-btn)) .dk-price { text-decoration: none; }
.dk-pen { width: 36px; height: 36px; border-radius: 50%; background: #3a3a3a; display: grid; place-items: center; flex: none; }
@media (hover: hover) { .dk-price-btn:hover .dk-pen { background: #fff; color: #222; } }
.dk-was { color: #b5b5b5; text-decoration: line-through; font-weight: 600; }
.dk-edit { display: grid; gap: var(--s-2); }
.dk-input { display: flex; align-items: baseline; gap: var(--s-2); border-bottom: 2px solid #fff; padding-bottom: 4px; }
.dk-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; padding: 0; -moz-appearance: textfield; }
.dk-input input::-webkit-outer-spin-button, .dk-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dk-input input:focus { outline: none; }
.dk-input:focus-within { border-bottom-color: #ff8fa3; }
.dk-input span { font-weight: 700; color: #c8c8c8; }
.dk-err { color: #ffb4a6; font-size: 0.8125rem; font-weight: 600; }
.dk-actions { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-1); }
.dk-btn { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--radius); border: 1px solid #5a5a5a; background: transparent; color: #fff; font-weight: 600; font-size: 0.875rem; justify-self: start; }
.dk-btn-primary { background: #fff; color: #222; border-color: #fff; }
.dk-btn:disabled { opacity: .6; }
@media (hover: hover) { .dk-btn:not(.dk-btn-primary):hover { border-color: #fff; } .dk-btn-primary:hover { background: #e9e9e9; } }
.dk-btn .spinner { border-color: currentColor; border-right-color: transparent; }
.dk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-weight: 600; font-size: 0.9375rem; }
.dk-link-inline { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 0.875rem; font-weight: 600; --od-icon-size: 16px; min-height: 32px; }
.dk-link { grid-template-columns: 1fr auto; align-items: center; --od-icon-size: 20px; }
.dk-link strong { display: block; }
@media (hover: hover) { a.dk-card:hover { background: #000; } }
.dk-card :focus-visible, .side-chips :focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #222; }
.dk-card .pill { background: #3a3a3a; color: #fff; }

@media (max-width: 1023px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-settings-btn { display: inline-flex; }
  .cal-side { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 45; max-height: 82vh; padding: var(--s-4) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); background: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.2); }
  .cal-side.is-open { display: grid; animation: mc-sheet var(--dur-2) var(--ease-out); }
  .cal-fab-wrap { display: none; }
  .mc-dow { top: 104px; }
}
@media (max-width: 767px) { .mc-dow { top: 108px; } .mc-month { scroll-margin-top: 150px; } }

/* ===== Bổ sung của dự án (không có trong bản open-design gốc) ===== */
/* Mã VietQR ở trang giữ chỗ */
.pay-qr { display: flex; justify-content: center; padding: var(--s-4) 0 var(--s-2); }
.pay-qr img { width: 240px; height: 240px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ===== Bổ sung của dự án sau audit (2026-11-24) ===== */
/* Phông: các trang bên trong dùng Be Vietnam Pro của dự án thay vì phông hệ thống (trên Linux/Windows phông hệ thống hiển thị không đồng nhất) */
body.inner { --font-display: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
/* Thẻ và hàng không được nở rộng hơn cột lưới (tên căn dài, mã booking) */
.ucard, .dcard, .dgrid-2 > *, .rows, .row-link, .row-link > * { min-width: 0; }
.ucard, .rows, .ucard-body { grid-template-columns: minmax(0, 1fr); }
.ucard > *, .rows > li { min-width: 0; }
.row-link .mono { flex: none; }
/* Biểu đồ đọc được trên màn hình hẹp: giữ cỡ chữ, cho cuộn ngang trong khung */
.chart { overflow-x: auto; }
.chart svg { min-width: 560px; }

/* Ô ngày: hiện dd/mm/yyyy bất kể ngôn ngữ của trình duyệt (xem assets/js/extras.js) */
input[type="date"][data-vn] { position: relative; }
input[type="date"][data-vn]::-webkit-datetime-edit { color: transparent; }
input[type="date"][data-vn]::before { content: attr(data-vn); position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding-left: inherit; padding-inline-start: 12px; color: var(--ink); pointer-events: none; font-variant-numeric: tabular-nums; }
input[type="date"][data-vn].is-empty::before { color: var(--faint); }
/* Bảng dài: nút xem thêm */
.tbl-more { display: flex; align-items: center; justify-content: center; gap: var(--s-4); padding: var(--s-4); border-top: 1px solid var(--line-soft, #ebebeb); }
/* Lịch căn trên di động: tấm trượt thấp lại để còn chạm tiếp được ngày thứ hai trên lưới */
@media (max-width: 1023px) {
  .cal-side.is-open { max-height: 46vh; overflow-y: auto; }
  body.cal-sheet-open .mc-months, body.cal-sheet-open [data-months] { padding-bottom: 50vh; }
}
/* Không gạch chân tiêu đề, giá, mã, tên căn, liên kết điều hướng (yêu cầu của chủ dự án).
 * Liên kết dạng chữ (.btn-link) dùng độ đậm; thẻ và hàng khi trỏ vào đổi nền/khung thay cho gạch chân. */
.inner .card-price .total, .inner .breakdown .row span:first-child, .inner .mobile-book .od-stat strong,
.mc-day .mc-price, .dk-price, .tbl-link, .tbl-link .mono, .back-link span { text-decoration: none !important; }
.btn-link, .nav-link[aria-current="page"] { text-decoration: none; }
.nav-link[aria-current="page"] { font-weight: 600; }
@media (hover: hover) {
  .inner .site-footer button:hover, .row-link:hover strong, .ucard:hover strong, .q-title:hover, .btn-link:hover { text-decoration: none; }
  .row-link:hover { background: var(--paper); }
  .ucard:hover .ucard-media { box-shadow: 0 0 0 2px var(--ink); }
  .btn-link:hover { color: var(--accent); }
}
.ucard-media { transition: box-shadow var(--dur-2) var(--ease-out); border-radius: var(--radius-lg); }
.tbl a.mono, .dcard a.mono { text-decoration: none; font-weight: 600; }

/* Một phông cho toàn bộ trang: không dùng độ đậm 800 vì phông cục bộ chỉ có tới 700 */
.inner .brand-mark { font-weight: 700; }

/* Trang căn: cột đặt phòng dính theo khi cuộn (thẻ aside trước đây chỉ cao bằng khung nên khung không trượt được) */
@media (min-width: 1024px) {
  .unit-layout > aside { position: sticky; top: calc(72px + var(--s-5)); align-self: start; }
  .unit-layout > aside .book-panel { position: static; }
}

/* Hạn chế màu đen (2026-11-24): nút chính dùng màu nhấn; thẻ bên lịch, nhãn chọn chuyển sang nền sáng */
.inner .btn-primary { background: var(--accent); }
@media (hover: hover) { .inner .btn-primary:hover:not(:disabled) { background: var(--accent-hover); } }
.side-chip { background: var(--accent-soft); color: var(--accent); }
.side-x { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
@media (hover: hover) { .side-x:hover { background: var(--line-soft); } }
.dk-card { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.dk-k, .dk-s, .dk-input span { color: var(--muted); }
.dk-s b { color: var(--ink); }
.dk-toggle { background: var(--paper); }
.dk-toggle button { color: var(--ink); }
.dk-toggle button[aria-checked="true"] { background: var(--accent); color: #fff; }
@media (hover: hover) { .dk-toggle button:not([aria-checked="true"]):hover { background: var(--line-soft); } }
.dk-pen { background: var(--paper); }
@media (hover: hover) { .dk-price-btn:hover .dk-pen { background: var(--accent); color: #fff; } }
.dk-was { color: var(--muted); }
.dk-input { border-bottom-color: var(--line-strong); }
.dk-input input { color: var(--ink); }
.dk-input:focus-within { border-bottom-color: var(--accent); }
.dk-err { color: var(--danger); }
.dk-btn { border-color: var(--line-strong); color: var(--ink); display: inline-flex; align-items: center; gap: var(--s-2); --od-icon-size: 16px; }
.dk-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (hover: hover) { .dk-btn:not(.dk-btn-primary):hover { border-color: var(--ink); } .dk-btn-primary:hover { background: var(--accent-hover); } a.dk-card:hover { background: var(--paper); } }
.dk-link-inline { color: var(--ink); }
.dk-dot.is-free { background: #008a05; } .dk-dot.is-blocked { background: var(--danger); } .dk-dot.is-mixed { background: #b07100; } .dk-dot.is-booked { background: #4b54d6; }
.seg-tabs button[aria-selected="true"], .seg-tabs button[aria-checked="true"], .seg-tabs a[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.bar-book, .lg-book { background: var(--accent); color: #fff; }
.inner .avatar { background: var(--accent-soft); color: var(--accent); }
.steps-bar li.cur .n { background: var(--accent); }
.inner .cal-day.is-start, .inner .cal-day.is-end, .inner .pager button[aria-current="page"], .inner .lg-sel { background: var(--accent); color: #fff; }
.dk-input input:focus-visible { outline: none; }

/* Một bảng màu cho toàn bộ trang (2026-11-24): khu bên trong dùng lại đúng màu của trang công khai (app.css :root),
 * thay bảng hồng san hô riêng ở đầu tệp. Nút cùng một kiểu ở mọi trang. */
body.inner {
  --ink: #111316; --ink-2: #2A2E33; --muted: #565C63; --faint: #8A9097; --line: #E2E3E0; --line-strong: #C9CBC7;
  --paper: #F5F5F3; --brand: #CFA033; --accent: #CFA033; --accent-hover: #BC8E24; --accent-soft: #FAF3DF;
  --success: #1F6B4A; --success-soft: #E6F1EB; --warning: #8A5A00; --warning-soft: #FBF1DE;
  --danger: #A8322A; --danger-soft: #FBEAE8; --focus: #1F5FBF;
}
.inner .btn-ghost { border-color: var(--line-strong); }
@media (hover: hover) { .inner .btn-ghost:hover:not(:disabled) { border-color: var(--ink); } }
.inner .btn:active:not(:disabled) { transform: scale(.98); }
.inner .stars { color: #E8A317; }

/* Một màu thương hiệu ở mọi nơi (2026-11-24): gỡ các màu viết cứng còn sót của bảng hồng/đen cũ; màu trạng thái dùng biến chung */
.inner .live::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.pill-ok { background: var(--success-soft); color: var(--success); }
.pill-neutral { background: var(--paper); color: var(--ink-2); }
.hold-strip, .hold-strip .muted { color: var(--warning); }
.steps-bar li.done .n { background: var(--success); }
.tl-cell.is-today { background: var(--accent-soft); }
.tl-cell.sel { background: #F1E1B0; }
.bar-hold, .lg-hold { background: var(--warning-soft); color: var(--warning); box-shadow: inset 0 0 0 1.5px var(--warning); }
.bar-done { background: var(--paper); color: var(--ink-2); }
.bar-ical, .lg-ical { color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--muted); }
.dk-dot.is-free { background: var(--success); } .dk-dot.is-mixed { background: var(--warning); } .dk-dot.is-booked { background: var(--accent); }

/* Đầu trang căn: tên căn bên trái, điểm đánh giá và địa chỉ dàn sang phải (trước dồn hết một cột bên trái) */
.inner .unit-head .eyebrow { order: 0; }
@media (min-width: 768px) {
  .inner .unit-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s-7); }
  .inner .unit-head .back-link, .inner .unit-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .inner .unit-sub { flex-direction: column; align-items: flex-end; gap: var(--s-1); text-align: right; padding-bottom: 4px; }
}
/* Khu vực đã có trong địa chỉ ngay bên cạnh: không in lặp */
.inner .unit-head .eyebrow { display: none; }
:root, body.inner { --focus: #111316; }
/* main nhận focus bằng mã khi chuyển trang: không vẽ khung quanh cả trang (đường kẻ đen ngang trên chân trang) */
body.inner main:focus, body.inner main:focus-visible { outline: none; }

/* Video nhúng ở trang căn: đứng trước ảnh, bấm mới tải trình phát */
.unit-videos { display: flex; gap: var(--s-3); overflow-x: auto; margin-top: var(--s-4); padding-bottom: var(--s-1); scroll-snap-type: x proximity; }
.unit-videos .uv { position: relative; flex: none; height: clamp(220px, 34vw, 420px); aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); color: #fff; cursor: pointer; scroll-snap-align: start; }
.unit-videos .uv.is-tall { aspect-ratio: 9 / 16; }
.unit-videos .uv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uv-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; --od-icon-size: 28px; box-shadow: var(--shadow-2); transition: transform var(--dur-1) var(--ease-out); }
.uv-src { position: absolute; left: var(--s-3); bottom: var(--s-3); padding: 2px var(--s-2); border-radius: 999px; background: rgba(17, 19, 22, .7); font-size: 0.75rem; font-weight: 600; }
@media (hover: hover) { .unit-videos button.uv:hover .uv-play { transform: scale(1.08); } }
.unit-videos .uv { --uv-h: clamp(220px, 34vw, 420px); height: var(--uv-h); width: calc(var(--uv-h) * 16 / 9); max-width: 100%; aspect-ratio: auto; }
.unit-videos .uv.is-tall { width: calc(var(--uv-h) * 9 / 16); aspect-ratio: auto; }

/* Màu nhấn vàng gold (2026-11-24). Nền gold dùng chữ tối (chữ trắng trên gold không đủ tương phản);
 * chữ màu nhấn trên nền trắng dùng tông gold đậm --accent-ink (5.4:1). */
:root, body.inner { --accent-ink: #8A6400; --brand: #B8860B; }
.btn-accent, .btn-primary, .inner .btn-accent, .inner .btn-primary, .band .btn, .inner .searchbar .submit, .dk-btn-primary,
.dk-toggle button[aria-checked="true"], .bar-book, .lg-book, .steps-bar li.cur .n, .uv-play, .mc-day.is-today .mc-num,
.cal-day.is-start, .cal-day.is-end, .pager button[aria-current="page"],
.inner .cal-day.is-start, .inner .cal-day.is-end, .inner .pager button[aria-current="page"] { color: var(--ink); }
@media (hover: hover) { .dk-price-btn:hover .dk-pen { color: var(--ink); } }
.eyebrow, .band .eyebrow, .step-num, .card-area, .amen-grid li .od-icon, .partner-points li .od-icon, .avatar, .inner .avatar,
body.inner .tabbar a[aria-current="page"], .tl-day.is-today strong, .mc-day.is-preview .mc-price, .side-chip,
.seg-tabs button[aria-selected="true"], .seg-tabs button[aria-checked="true"], .seg-tabs a[aria-selected="true"] { color: var(--accent-ink); }
@media (hover: hover) { .btn-link:hover { color: var(--accent-ink); } }
.hero .eyebrow { color: var(--accent-on-night); }
.btn-accent .spinner, .btn-primary .spinner { border-color: var(--ink); border-right-color: transparent; }

/* Sửa theo rà UX/UI (2026-11-24) */
/* 1. Nút vô hiệu phải trông vô hiệu ở mọi trang */
.inner .btn:disabled, .inner .btn[aria-disabled="true"], .btn:disabled, .btn[aria-disabled="true"] { background: #E7E8E5; color: #6B7076; border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none; }
/* 2. Nhãn trạng thái trong thẻ bên lịch dùng màu nhãn chung, không nền xám đen */
.dk-card .pill { background: var(--paper); color: var(--ink-2); }
.dk-card .pill-ok { background: var(--success-soft); color: var(--success); }
.dk-card .pill-warn { background: var(--warning-soft); color: var(--warning); }
.dk-card .pill-bad { background: var(--danger-soft); color: var(--danger); }
/* 3. Lịch tháng ở 390px không tràn ngang */
.cal-top-l, .cal-top-l .od-cluster { min-width: 0; max-width: 100%; }
.cal-top-l .mc-unit { max-width: 100%; min-width: 0; }
.cal-top-l .od-cluster > .sr-only { position: absolute; }
/* 5, 7. Nút chính cùng độ đậm và cùng bóng ở mọi nơi */
.inner .btn-accent, .inner .btn-primary, .band .btn { font-weight: 700; }
.dk-btn-primary, .band .btn { box-shadow: 0 1px 2px rgba(190, 138, 6, .28), 0 8px 18px -8px rgba(190, 138, 6, .6); }
@media (hover: hover) { .band .btn:hover { background: var(--accent-hover); } .btn-danger-solid:hover:not(:disabled), .inner .btn-danger-solid:hover:not(:disabled) { background: #8E2922; } }
/* 6. Ô tìm kiếm có vòng focus rõ */
.searchbar .seg:focus-within { box-shadow: inset 0 0 0 2px var(--focus); border-radius: var(--radius); }
/* 9. Dấu chọn trên lịch căn dùng màu nhấn thay viền đen */
.mc-day.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.mc-bar.is-active { outline-color: var(--accent-ink); }
.dk-card :focus-visible, .side-chips :focus-visible { outline: 2px solid var(--focus); box-shadow: none; }
.inner .gallery .all { border-color: var(--line-strong); }
/* 10. Nhãn trạng thái dùng biến chung; nhãn thông tin không còn xanh dương */
.pill-warn { background: var(--warning-soft); color: var(--warning); }
.pill-bad { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--accent-soft); color: var(--accent-ink); }
/* 11. Giá ở ngày đã có khách đủ tương phản */
.mc-day.is-booked .mc-price, .mc-day.is-ical .mc-price { color: var(--muted); }
/* 12. Liên kết điều hướng đầu trang cùng bo góc */
.nav-link, .inner .nav-link { border-radius: 999px; }
/* 13. Thẻ video ở trang sửa căn: khung cùng tỉ lệ kể cả khi chưa có ảnh */
[data-videos] .ph-media { aspect-ratio: 4 / 3; background: var(--paper); border-radius: var(--radius); overflow: hidden; position: relative; }

/* Nút chính làm lại theo skill design-taste (2026-11-24): gold trầm hơn (bão hòa ~61%), phẳng, không bóng màu, không nhấc khi trỏ.
 * Trỏ vào chỉ đậm màu; nhấn xuống lún nhẹ; mép dưới đậm 1px để nút có khối mà không cần bóng. */
.btn-accent, .btn-primary, .inner .btn-accent, .inner .btn-primary, .band .btn, .dk-btn-primary { box-shadow: inset 0 -1px 0 rgba(17, 19, 22, .18); transition: background-color 140ms var(--ease-out), transform 100ms var(--ease-out); }
@media (hover: hover) {
  .btn-accent:hover:not(:disabled), .btn-primary:hover:not(:disabled), .inner .btn-accent:hover:not(:disabled), .inner .btn-primary:hover:not(:disabled), .band .btn:hover, .dk-btn-primary:hover { background: var(--accent-hover); transform: none; box-shadow: inset 0 -1px 0 rgba(17, 19, 22, .22); }
}
.btn-accent:active:not(:disabled), .btn-primary:active:not(:disabled), .inner .btn-accent:active:not(:disabled), .inner .btn-primary:active:not(:disabled), .band .btn:active, .dk-btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled, .inner .btn:disabled { box-shadow: none; }
.site-header.is-overlay .btn-login { box-shadow: none; }
.back-link, .back-link span { text-decoration: none !important; }

/* bổ sung của dự án: T88 áp dụng kiểu trang trong cho mọi trang */
.site-footer h3 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.card-area { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* bổ sung của dự án: T97B */
.trip-layout { margin-top: 8px; }
@media (min-width: 1024px) {
  .trip-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* bổ sung của dự án: T99 */
.paged-list > [data-next] { margin-top: 16px; }
.state .not-found-title { font-family: var(--font-display); font-size: var(--fs-xl); }
body:not(.inner) .state .not-found-title { font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.inner .state .not-found-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

/* bổ sung của dự án: dấu chấm ngăn thông số căn đứng cuối mục, không rơi xuống đầu dòng khi xuống dòng */
.inner .fact + .fact::before { content: none; }
.inner .fact:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--muted); }

/* bổ sung của dự án: T101 */
.legal-page { max-width: 70ch; margin: 0 auto; padding-block: 2rem; overflow-wrap: anywhere; }
.legal-page :is(h1, h2, p, ul, .legal-table) { margin-block-end: 1rem; }
.legal-page ul { padding-inline-start: 1.5rem; }
.legal-page h2 { margin-block-start: 1.5rem; scroll-margin-top: 6rem; }
.legal-table { overflow-x: auto; }
.legal-table table { border-collapse: collapse; min-width: 32rem; }
.legal-table :is(th, td) { text-align: start; vertical-align: top; padding: .6rem; border: 1px solid var(--line); }
.google-button svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 1024px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr 1fr; } }
