/* original public-core-a-v142.css */
/* v14.2 prebuilt CSS bundle; keep original order. */

/* START polish-v106-r2.css */
/* Lịch Việt Glass · v10.6 UI Polish
   Presentation-only enhancement. No new dependencies, persistence or API calls.
   Loaded last so legacy modules and existing routes remain functional. */
:root {
  --ink: #253b47;
  --title: #172e3a;
  --muted: #607784;
  --primary: #177d86;
  --primary-hover: #126974;
  --body: #ebf3f1;
  --glass: rgba(255,255,255,.82);
  --glass-strong: rgba(255,255,255,.94);
  --surface: rgba(255,255,255,.79);
  --outline: rgba(255,255,255,.92);
  --border: rgba(52,105,114,.14);
  --accent-light: #e0f1ee;
  --shadow: 0 14px 40px rgba(39,83,99,.07), 0 3px 12px rgba(39,83,99,.035);
  --polish-ring: rgba(23,125,134,.18);
}
:root[data-theme="dark"] {
  --ink: #e0edf0;
  --title: #f6fcfc;
  --muted: #b5c9d2;
  --primary: #80d7d4;
  --primary-hover: #b1efeb;
  --body: #111e2a;
  --glass: rgba(29,46,58,.88);
  --glass-strong: rgba(35,55,67,.96);
  --surface: rgba(59,80,91,.68);
  --outline: rgba(183,218,220,.15);
  --border: rgba(179,211,222,.13);
  --accent-light: #264953;
  --shadow: 0 14px 42px rgba(0,10,20,.25);
  --polish-ring: rgba(128,215,212,.2);
}
body { font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.app-shell { width: min(1340px, calc(100% - 64px)); }
.glass { border-color: var(--outline); box-shadow: var(--shadow); }
.ambient-one { background:rgba(243,208,153,.32); }
.ambient-two { background:rgba(147,195,223,.35); }
.ambient-three { background:rgba(168,213,198,.32); }
:root[data-theme="dark"] .ambient-one { background:rgba(94,56,132,.24); }
:root[data-theme="dark"] .ambient-two { background:rgba(16,112,131,.21); }
:root[data-theme="dark"] .ambient-three { background:rgba(55,80,153,.19); }

/* Header: fewer visible destinations and a genuinely usable overflow menu. */
.site-header {
  position:relative; z-index:30; overflow:visible;
  margin:22px 0 40px; padding:12px 16px;
  min-height:76px; border-radius:22px; gap:20px;
}
.brand { flex:none; gap:11px; font-size:16px; letter-spacing:-.6px; }
.brand-icon { width:44px; height:44px; border-radius:14px; }
.brand small { font-size:8px; margin-top:6px; letter-spacing:1.6px; }
.site-header .nav-links {
  flex:1 1 auto; min-width:0; width:auto; order:0; display:flex;
  align-items:center; justify-content:center; gap:3px;
  border:0; padding:0;
}
.nav-links > .nav-item, .nav-more > summary {
  display:inline-flex; min-height:43px; align-items:center; justify-content:center;
  border-radius:12px; padding:10px 12px;
  color:var(--muted); font-weight:700; font-size:11.5px;
  white-space:nowrap; transition: background .18s ease, color .18s ease;
}
.nav-links > .nav-item:hover, .nav-links > .nav-item.active,
.nav-more[open] > summary, .nav-more > summary:hover {
  background:var(--accent-light); color:var(--title);
}
.nav-links > .nav-item.active { color:var(--primary); box-shadow:inset 0 -2px 0 var(--primary); }
.nav-more { position:relative; flex:none; }
.nav-more > summary { list-style:none; cursor:pointer; gap:6px; user-select:none; }
.nav-more > summary::-webkit-details-marker { display:none; }
.nav-more > summary svg { transition:transform .18s ease; }
.nav-more[open] > summary svg { transform:rotate(90deg); }
.nav-dropdown {
  position:absolute; z-index:60; right:0; top:calc(100% + 13px);
  width:min(430px, 90vw); display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px; padding:17px; border:1px solid var(--border); border-radius:18px;
  background:var(--glass-strong); box-shadow:0 22px 55px rgba(29,70,80,.18);
}
.nav-dropdown-label { grid-column:1/-1; margin:0 7px 7px; font-size:10px; letter-spacing:1.3px; font-weight:850; color:var(--primary); }
.nav-dropdown a {
  display:flex; align-items:center; min-height:40px; padding:10px 12px;
  color:var(--ink); border-radius:10px; font-size:12px; font-weight:650;
  white-space:normal; line-height:1.4;
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background:var(--accent-light); color:var(--primary); }
.nav-dropdown-tablet { display:none!important; }
.header-actions { flex:none; gap:8px; }
.round-icon { width:42px; height:42px; border:1px solid var(--border); background:var(--surface); }
.header-cta, .primary-button { border-radius:12px; background:linear-gradient(135deg,#208e96,#206d83); box-shadow:0 9px 20px rgba(26,105,116,.16); }
:root[data-theme="dark"] .header-cta, :root[data-theme="dark"] .primary-button { color:#fff!important; }

/* Intro and top-level rhythm */
.intro-row { margin-bottom:27px; gap:18px; }
.eyebrow, .section-kicker { font-size:10px; letter-spacing:1.65px; font-weight:800; }
.intro-row h1, .page-lead h1 {
  font-size:clamp(34px,3.7vw,51px); line-height:1.22;
  letter-spacing:-2.15px; margin:10px 0 12px;
}
.intro-row p, .page-lead p { font-size:13px; color:var(--muted); line-height:1.8; }
.intro-date { padding:10px 15px; font-size:11px; color:var(--ink); margin-bottom:4px; }

/* Calendar: more whitespace, legible secondary dates, visible selected state. */
.dashboard-grid {
  display:grid; grid-template-columns:minmax(0,1.47fr) minmax(340px,.93fr);
  align-items:start; gap:20px;
}
.calendar-panel { border-radius:25px; padding:29px 26px 25px; min-width:0; }
.panel-heading { align-items:center; margin-bottom:26px; }
.panel-heading h2 { font-size:25px; margin:7px 0 5px; letter-spacing:-1.05px; }
.panel-heading p { font-size:11px; }
.month-actions { gap:7px; }
.month-actions button {
  width:38px; height:38px; min-width:38px; border:1px solid var(--border);
  border-radius:11px; background:var(--glass-strong);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.month-actions button:hover { border-color:var(--primary); background:var(--accent-light); transform:translateY(-1px); }
.month-actions .today-pill { width:auto; min-width:67px; padding:0 11px; font-size:11px; }
.week-labels, .calendar-grid { gap:7px; }
.week-labels { margin-bottom:8px; }
.week-labels span { font-size:11px; padding:6px 0 8px; }
.calendar-cell {
  min-height:86px; padding:12px 11px 10px;
  border-radius:13px; border:1px solid var(--border);
  background:rgba(255,255,255,.49);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
/* A selected calendar cell must never inherit the light hover background: its white text would disappear. */
.calendar-cell:not(.selected):hover:not(:disabled) { background:var(--glass-strong); border-color:var(--primary); transform:translateY(-2px); }
.calendar-cell.selected:hover:not(:disabled) {
  background:linear-gradient(145deg,#177d86,#386d8e);
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 25px rgba(23,109,126,.24);
  transform:translateY(-1px);
}
.calendar-cell.outside { opacity:.55; }
.calendar-cell.selected { background:linear-gradient(145deg,#177d86,#386d8e); border-color:transparent; box-shadow:0 10px 22px rgba(23,109,126,.2); }
.calendar-cell.current:not(.selected) { border:2px solid var(--primary); padding:11px 10px 9px; }
.cell-solar { font-size:19px; letter-spacing:-.4px; }
.cell-lunar { font-size:10.5px; color:var(--muted); }
.calendar-cell.sunday:not(.selected) .cell-solar { color:#b94e49; }
:root[data-theme="dark"] .calendar-cell:not(.selected) { background:rgba(255,255,255,.045); }
:root[data-theme="dark"] .calendar-cell.sunday:not(.selected) .cell-solar { color:#ffa99b; }
.calendar-legend { margin-top:24px; padding-top:15px; font-size:11px; justify-content:flex-start; gap:12px 24px; }

/* Daily insights: keep the summary beside the month, move long time grid below. */
.dashboard-sidebar { display:flex; flex-direction:column; gap:16px; min-width:0; }
.today-card, .quote-panel, .hours-panel { border-radius:23px; }
.today-card { padding:26px 25px; }
.day-top .section-kicker { font-size:10px; }
.day-sun { width:40px; height:40px; border-radius:13px; }
.solar-display { margin:6px 0 16px; gap:19px; }
.solar-display strong { font-size:78px; letter-spacing:-4.5px; }
.solar-display span { font-size:14px; }
.solar-display b { font-size:18px; }
.lunar-highlight { padding:13px 14px; border-radius:13px; }
.lunar-highlight small { font-size:10px; letter-spacing:.3px; }
.lunar-highlight strong { font-size:13px; }
.day-facts { margin-top:13px; }
.day-facts > div { font-size:12px; padding:10px 0; }
.day-facts strong,
.day-card-footer a { font-size:12px; }
.quote-panel { padding:23px 25px; }
.quote-panel blockquote { margin:13px 0; font-size:18px; line-height:1.8; }
.quote-bottom span, .quote-bottom .mini-action { font-size:11px; }
.hours-panel-wide {
  grid-column:1/-1; padding:24px 26px 26px; margin:0;
}
.hours-panel-wide .hours-title { gap:12px; flex-wrap:wrap; }
.hours-panel-wide .hours-title > span { display:flex; gap:9px; align-items:center; font-size:15px; color:var(--title); }
.hours-panel-wide .hours-title small { color:var(--muted); font-size:11px; }
.hours-panel-wide .hours-intro { margin:6px 0 18px; font-size:12px; max-width:900px; }
.hours-panel-wide .hours-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.hours-panel-wide .hours-grid > .hour-card {
  min-width:0; min-height:115px; justify-content:center;
  border:1px solid var(--border); border-radius:13px;
  gap:4px; padding:12px 7px;
}
.hours-panel-wide .hour-card.is-good { border-color:rgba(23,125,134,.25); background:rgba(23,125,134,.065); }
.hours-panel-wide .hour-card-top strong { font-size:12px; }
.hours-panel-wide .hour-status { font-size:9px; padding:2px 7px; }
.hours-panel-wide .hour-time { font-size:11px; }
.hours-panel-wide .hour-canchi, .hours-panel-wide .hour-deity { font-size:10px; line-height:1.5; }
:root[data-theme="dark"] .hours-panel-wide .hour-card.is-good { background:rgba(84,190,187,.11); }

/* Traditional information: compact but readable, consistent cards. */
.traditional-section { margin-top:47px; }
.traditional-heading { margin:0 2px 18px; gap:15px; }
.traditional-heading h2 { font-size:24px; margin:6px 0; }
.traditional-heading p { font-size:12px; }
.rule-version { font-size:10px; padding:9px 12px; }
.traditional-grid { gap:15px; }
.traditional-card { padding:24px; border-radius:20px; }
.traditional-card h3 { font-size:18px; margin:7px 0 9px; }
.traditional-card p { font-size:12px; line-height:1.8; }
.traditional-card small { font-size:11px; line-height:1.75; }
.traditional-card-kicker { font-size:10px; margin-bottom:12px; }
.traditional-list-item strong, .direction-row strong { font-size:12px; }
.traditional-emphasis { font-size:14px; }
.traditional-detail,
.traditional-detail b { font-size:11px; }
.assessment-badge { font-size:10px; padding:5px 10px; }
.assessment-card p,
.direction-row b { font-size:12px; }
.direction-row p,
.empty-note { font-size:11px; }
.rule-details { margin-top:16px; }
.rule-details summary,
.rule-details-body { font-size:12px; }
.lower-banner { margin-top:20px; }
.site-footer { margin-top:29px; }
.site-footer p, .site-footer > span { font-size:11px; line-height:1.7; }

/* Shared controls: clear keyboard focus / reduced motion / touch comfort. */
:where(button, a, summary, input, select, textarea):focus-visible {
  outline:3px solid var(--primary); outline-offset:3px;
}
:where(.utility-card,.studio-tools,.traditional-card,.lower-banner) { border-color:var(--outline); }

@media (max-width:1250px) {
  .app-shell { width:min(100% - 42px,1220px); }
  .site-header { gap:12px; }
  .nav-links > .nav-item, .nav-more > summary { padding:10px 9px; font-size:11px; }
  .dashboard-grid { grid-template-columns:minmax(0,1.38fr) minmax(310px,.9fr); gap:16px; }
}
@media (max-width:1060px) {
  .site-header { flex-wrap:nowrap; }
  .nav-links > .nav-secondary { display:none; }
  .nav-dropdown .nav-dropdown-tablet { display:flex!important; }
  .dashboard-grid { grid-template-columns:minmax(0,1.33fr) minmax(295px,.88fr); }
  .calendar-panel { padding:22px 18px; }
  .calendar-cell { min-height:73px; padding:9px 8px; }
  .hours-panel-wide .hours-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:840px) {
  .app-shell { width:calc(100% - 32px); }
  .site-header { margin:16px 0 29px; flex-wrap:wrap; }
  .site-header .nav-links { order:3; flex:1 0 100%; justify-content:center; padding-top:10px; border-top:1px solid var(--border); }
  .dashboard-grid { grid-template-columns:minmax(0,1fr); gap:15px; }
  .dashboard-sidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
  .dashboard-sidebar .today-card, .dashboard-sidebar .quote-panel { grid-row:auto; }
  .hours-panel-wide { grid-column:1/-1; }
  .calendar-panel { padding:23px 20px; }
  .calendar-cell { min-height:86px; }
  .traditional-section { margin-top:35px; }
}
@media (max-width:740px) {
  .app-shell { width:calc(100% - 26px); }
  .site-header { margin:12px 0 22px; padding:11px 13px; flex-wrap:nowrap; min-height:64px; }
  .site-header .nav-links { display:none; }
  .brand { font-size:15px; }
  .brand-icon { width:40px; height:40px; }
  .header-actions { margin-left:auto; }
  .header-cta { padding:10px 12px; font-size:11px; }
  .mobile-bottom-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .mobile-bottom-nav > a, .mobile-bottom-nav > button { font-size:10px; min-height:58px; }
  .mobile-more-panel { bottom:calc(78px + env(safe-area-inset-bottom,0px)); }
  .mobile-quick-actions { gap:8px; }
  .mobile-quick-actions > a { background:var(--glass-strong); border-color:var(--outline); }
  .intro-row h1 { font-size:clamp(29px,7.5vw,41px); letter-spacing:-1.65px; }
  .intro-row { margin-bottom:21px; }
  .intro-row p { font-size:12px; }
  .calendar-panel { padding:19px 12px!important; border-radius:21px; }
  .panel-heading { margin-bottom:14px!important; }
  .panel-heading h2 { font-size:clamp(19px,4.9vw,24px); }
  .week-labels, .calendar-grid { gap:4px!important; }
  .calendar-cell { min-height:clamp(57px,14vw,76px); border-radius:10px; padding:8px 6px; }
  .calendar-cell.current:not(.selected) { padding:7px 5px; }
  .cell-solar { font-size:clamp(14px,3.8vw,18px); }
  .cell-lunar { font-size:9px; }
  .calendar-legend { gap:8px 15px; font-size:10px; margin-top:15px; }
  .dashboard-sidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .today-card, .quote-panel { padding:19px; }
  .solar-display strong { font-size:65px; }
  .quote-panel blockquote { font-size:16px; }
  .hours-panel-wide { padding:20px 16px; }
  .hours-panel-wide .hours-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .hours-panel-wide .hours-grid > .hour-card { padding:9px 4px; min-height:104px; }
  .hours-panel-wide .hour-card-top strong { font-size:10px; }
  .hours-panel-wide .hour-time { font-size:10px; }
  .hours-panel-wide .hour-canchi, .hours-panel-wide .hour-deity { font-size:9px; }
  .traditional-grid { gap:11px; }
  .traditional-card { padding:19px; }
  .traditional-card p { font-size:12px; }
}
@media (max-width:610px) {
  .dashboard-grid { display:flex; flex-direction:column; gap:13px; }
  .dashboard-sidebar { display:contents; }
  .dashboard-grid > .calendar-panel { order:0; width:100%; }
  .dashboard-sidebar > .today-card { order:1; width:100%; }
  .dashboard-sidebar > .quote-panel { order:2; width:100%; }
  .dashboard-grid > .hours-panel-wide { order:3; width:100%; }
  .today-card { padding:22px; }
  .solar-display strong { font-size:74px; }
  .quote-panel { padding:21px 23px; }
  .traditional-section { margin-top:33px; }
  .traditional-heading h2 { font-size:22px; }
  .traditional-heading p { font-size:12px; }
}
@media (max-width:390px) {
  .app-shell { width:calc(100% - 18px); }
  .brand { font-size:13px; }
  .header-cta span { display:none; }
  .intro-row h1 { font-size:29px; }
  .month-actions { gap:3px; }
  .month-actions button { min-width:31px; width:31px; height:36px; }
  .month-actions .today-pill { min-width:52px; font-size:10px; padding:0 6px; }
  .calendar-cell { min-height:55px; padding:7px 4px; }
  .calendar-cell.current:not(.selected) { padding:6px 3px; }
  .hours-panel-wide .hour-card-top strong { font-size:9px; }
  .hours-panel-wide .hour-status { font-size:8px; }
  .hours-panel-wide .hour-time { font-size:9px; }
  .hours-panel-wide .hour-canchi, .hours-panel-wide .hour-deity { font-size:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .nav-more > summary svg, .month-actions button { transition:none; }
}

/* Hover-only motion must not stay stuck after touching a date on mobile. */
@media (hover:none) {
  .calendar-cell:not(.selected):hover:not(:disabled) { transform:none; box-shadow:none; border-color:var(--border); }
  .calendar-cell.selected:hover:not(:disabled) { transform:none; }
}


/* START mobile-performance-v111.css */
/* Lich Viet Glass v11.1 — mobile paint + input responsiveness. Loaded after UI Polish R2. */
/* Stable intrinsic boxes reduce late shifts when offline/PWA install actions appear. */
.calendar-grid { contain:layout style; }
.calendar-cell { -webkit-tap-highlight-color:transparent; }
/* Never virtualize traditional information cards: full-page capture, scroll and
   screen-reader exploration must not encounter reserved empty placeholders. */
/* Preserve visible focus and contrast on touch, keyboard and selected dates. */
.calendar-cell:focus-visible { outline:3px solid var(--primary); outline-offset:2px; z-index:1; }
@media (max-width:740px) {
  /* Fixed backdrop blurs require expensive recompositing on low-memory devices.
     Use solid theme-aware surfaces while keeping the Glass colors and borders. */
  .mobile-bottom-nav { background:var(--body); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .mobile-more-panel { background:var(--body); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .pwa-status { background:var(--body); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .site-header.glass { backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--body); }
  .calendar-cell:not(.selected) { box-shadow:none; }
  /* Never shrink date text/buttons smaller than usable accessible hit targets. */
  .month-actions button { min-height:44px; height:44px; }
  .month-actions .today-pill { min-height:44px; }
  .mobile-bottom-nav>a,.mobile-bottom-nav>button { min-height:56px; touch-action:manipulation; }
  .mobile-quick-actions a,.mobile-quick-actions button { touch-action:manipulation; }
}
@media (max-width:390px) {
  /* Calendar navigation previously dropped to 31×36px on narrow devices. */
  .month-actions button { min-width:40px; width:40px; height:44px; }
  .month-actions .today-pill { min-width:48px; width:auto; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { scroll-behavior:auto!important; animation-duration:0.01ms!important;
    animation-iteration-count:1!important; transition-duration:0.01ms!important; }
}
@media (hover:none), (pointer:coarse) {
  /* Hover transforms can stick after tapping and trigger needless repaint. */
  .calendar-cell:not(.selected):hover:not(:disabled), .calendar-cell.selected:hover:not(:disabled) { transform:none; }
  .month-actions button:hover { transform:none; }
}


/* START emerald-native-v117.css */
/* Lịch Việt Glass v11.7 — Emerald Gold / Native-first adaptive design system.
   A single set of tokens and routes; different navigation placements by width.
   Loaded after legacy/polish styles, so older components remain functional. */
:root {
  color-scheme:light;
  --jade-950:#083c35; --jade-900:#0b4940; --jade-800:#126558;
  --jade-700:#117968; --jade-300:#8bc7b1;
  --gold-500:#c4a254; --gold-300:#e4cc8d; --ivory:#f8f1dd;
  --ink:#193c36; --title:#103d35; --muted:#53716b;
  --primary:#126d5d; --primary-hover:#0a594c;
  --body:#eaf3ec; --surface:rgba(255,255,255,.78);
  --glass:rgba(251,255,251,.73); --glass-strong:rgba(251,255,251,.92);
  --outline:rgba(68,131,106,.20); --border:rgba(37,111,86,.18);
  --soft:#d8eee0; --accent-light:rgba(27,130,93,.11);
  --marker:#c49a45; --shadow:0 20px 50px rgba(12,70,51,.095);
  --native-border-radius:22px;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --ink:#e5f2eb; --title:#fbf3dc; --muted:#b1cec0;
  --primary:#e7cf90; --primary-hover:#f5e2af;
  --body:#052c29; --surface:rgba(16,74,64,.86);
  --glass:rgba(12,65,57,.78); --glass-strong:rgba(12,69,60,.97);
  --outline:rgba(213,231,198,.20); --border:rgba(208,232,200,.15);
  --soft:#0d5a4c; --accent-light:rgba(218,180,94,.16);
  --marker:#e9c576; --shadow:0 23px 56px rgba(0,17,15,.29);
}
html {scroll-padding-top:24px; -webkit-text-size-adjust:100%}
body {background:radial-gradient(ellipse 70% 48% at 8% 0%,rgba(41,142,109,.13),transparent 73%),radial-gradient(ellipse 65% 62% at 99% 3%,rgba(214,173,80,.11),transparent 76%),var(--body); min-height:100dvh; accent-color:var(--jade-700)}
:root[data-theme=dark] body {background:radial-gradient(ellipse 70% 53% at 11% -8%,rgba(7,158,120,.33),transparent 75%),radial-gradient(ellipse 53% 48% at 98% 4%,rgba(177,135,54,.12),transparent 76%),linear-gradient(145deg,#052c29 0%,#063a33 46%,#042c28 100%);background-attachment:fixed}
body .ambient {pointer-events:none;filter:blur(65px);opacity:.38}
:root[data-theme=dark] .ambient-one {background:rgba(12,138,96,.33)}
:root[data-theme=dark] .ambient-two {background:rgba(180,144,61,.16)}
:root[data-theme=dark] .ambient-three {background:rgba(23,155,120,.22)}
body,button,input,select,textarea {font-family:'Be Vietnam Pro',system-ui,sans-serif}
button,input,textarea,select {min-width:0}
:where(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--gold-500)!important;outline-offset:3px}
:where(.glass,.native-tool-card,.native-tools-hero) {border:1px solid var(--outline);box-shadow:var(--shadow)}
:root[data-theme=dark] .glass {background-color:var(--glass)}
/* Shared brand treatment; use gold for deliberate accents, not all body text. */
.site-header {background:var(--glass-strong);border-color:var(--outline);min-height:72px}
.brand-icon {background:linear-gradient(145deg,#126e60,#074036)!important;color:var(--gold-300);border:1px solid rgba(217,184,99,.35);box-shadow:0 7px 18px rgba(4,52,42,.26)}
:root[data-theme=dark] .brand {color:var(--ivory)}
.site-header .nav-links {gap:6px}
.nav-links > .nav-item {gap:7px;min-height:48px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.nav-links > .nav-item.active {color:var(--primary);background:var(--accent-light);box-shadow:inset 0 -2px 0 var(--gold-500)}
.nav-links > .nav-item svg {color:var(--gold-500)}
:root[data-theme=dark] .nav-links > .nav-item.active svg {color:var(--gold-300)}
.nav-links > .nav-item:hover {color:var(--title)}
.header-actions .round-icon {width:46px;height:46px;background:var(--surface);border:1px solid var(--outline);color:var(--title)}
.header-cta,.primary-button,.native-hero-link {background:linear-gradient(135deg,#dfc37b,#b18c44)!important;color:#17382c!important;box-shadow:0 9px 22px rgba(97,73,28,.17);font-weight:800}
.header-cta:hover,.primary-button:hover {filter:brightness(1.06)}
:root[data-theme=dark] .header-cta,:root[data-theme=dark] .primary-button {color:#17382c!important}
.section-kicker,.eyebrow {color:var(--primary)}
.intro-row h1 span,.page-lead h1 span,.native-tools-hero h1 em {color:var(--gold-500);font-family:'Noto Serif',Georgia,serif;font-weight:600}
:root[data-theme=dark] .intro-row h1 span,:root[data-theme=dark] .page-lead h1 span {color:var(--gold-300)}
.intro-date,.rule-version {background:var(--surface);border:1px solid var(--outline)}
/* Calendar: no white-on-white regression when selected and hovered. */
.calendar-panel,.today-card,.quote-panel,.hours-panel,.utility-card,.traditional-card {border-radius:var(--native-border-radius)}
.calendar-cell {background:var(--surface);border:1px solid var(--border);color:var(--ink)}
:root[data-theme=dark] .calendar-cell:not(.selected) {background:rgba(18,82,69,.66)}
.calendar-cell:not(.selected):hover:not(:disabled) {background:var(--accent-light);border-color:var(--gold-500)}
.calendar-cell.current:not(.selected) {border:2px solid var(--gold-500);background:var(--accent-light)}
.calendar-cell.selected,.calendar-cell.selected:hover:not(:disabled),
:root[data-theme=dark] .calendar-cell.selected,:root[data-theme=dark] .calendar-cell.selected:hover:not(:disabled) {
  background:linear-gradient(145deg,#187866,#0d514a)!important;
  border:1px solid var(--gold-500)!important;color:#fff9e9!important;
  box-shadow:0 8px 21px rgba(5,48,41,.26);opacity:1;
}
.calendar-cell.selected .cell-solar,.calendar-cell.selected:hover .cell-solar {color:#fff9e9!important}
.calendar-cell.selected .cell-lunar,.calendar-cell.selected:hover .cell-lunar {color:#dfefdb!important}
.calendar-cell.outside:not(.selected) {opacity:.49}
.calendar-legend .legend-dot {background:var(--jade-700)}
.calendar-legend .legend-dot.festival {background:var(--gold-500)}
.day-sun,.banner-icon,.utility-icon {color:var(--gold-500);background:var(--accent-light)}
.solar-display strong {color:var(--primary)}
:root[data-theme=dark] .solar-display strong {color:var(--gold-300)}
.lunar-highlight {background:var(--accent-light)}
.day-card-footer a,.mini-action {color:var(--primary)}
.quote-panel {background:var(--glass)}
:root[data-theme=dark] .quote-panel {background:linear-gradient(135deg,rgba(16,77,62,.97),rgba(13,63,55,.8))}
.hours-panel-wide .hour-card {background:var(--surface);border-color:var(--border)}
.hours-panel-wide .hour-card.is-good {border-color:rgba(204,172,92,.48);background:var(--accent-light)}
/* Unified tool directory */
.native-tools-hub {display:grid;gap:32px;padding-bottom:12px}
.native-tools-hero {position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:18px;min-height:255px;padding:32px 40px;border-radius:28px;background:linear-gradient(122deg,rgba(11,91,73,.95),rgba(4,50,44,.98));color:#f6f4e8}
.native-tools-hero .section-kicker {color:var(--gold-300)}
.native-tools-hero h1 {font-size:clamp(30px,4.5vw,54px);letter-spacing:-1.9px;line-height:1.18;margin:10px 0 9px;color:#fff8e8}
.native-tools-hero h1 em {font-style:italic;color:var(--gold-300)}
.native-tools-hero p {font-size:13px;color:#d5e9dc;line-height:1.85;max-width:640px;margin:0 0 22px}
.native-hero-link {display:inline-flex;align-items:center;gap:10px;border-radius:13px;min-height:48px;padding:11px 17px;font-size:12px}
.native-tools-hero-art {position:relative;display:grid;place-items:center;width:202px;height:202px;margin:auto;border-radius:50%;border:1px solid rgba(234,207,135,.42);background:radial-gradient(circle at 45% 36%,rgba(235,206,110,.24),transparent 39%),radial-gradient(circle,rgba(6,65,48,.9),rgba(3,44,40,.8));box-shadow:inset 0 0 0 11px rgba(229,190,102,.07),0 15px 35px rgba(2,40,30,.2)}
.native-hero-rings {display:grid;place-items:center;width:146px;height:146px;border:1px dashed rgba(235,203,132,.6);border-radius:50%;color:var(--gold-300);font-size:72px}
.native-hero-sigil {position:absolute;bottom:12px;right:19px;color:var(--gold-300);font-size:28px}
.native-section-header {margin-bottom:15px}.native-section-header h2 {color:var(--title);font-size:clamp(20px,2.7vw,27px);margin:5px 0 0;letter-spacing:-.65px}
.native-tools-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.native-tool-card {display:flex;align-items:flex-start;gap:15px;min-height:126px;border-radius:19px;padding:21px 17px;background:var(--glass);transition:transform .18s ease,border-color .18s ease}
.native-tool-card:hover {transform:translateY(-2px);border-color:rgba(211,171,78,.65)}
.native-tool-icon {width:46px;height:46px;flex:none;display:grid;place-items:center;border:1px solid rgba(193,156,77,.35);border-radius:14px;background:var(--accent-light);color:var(--primary)}
.native-tool-body {display:grid;gap:6px;min-width:0}.native-tool-body strong {font-size:14px;color:var(--title)}.native-tool-body small {font-size:11px;color:var(--muted);line-height:1.65}
.native-tool-arrow {align-self:center;margin-left:auto;color:var(--gold-500)}
.native-tools-note {font-size:11px;color:var(--muted);line-height:1.8;margin:0}
/* Native bottom sheet: only purposeful blur on an overlay, not fixed navigation. */
.native-sheet-overlay:not([hidden]) {position:fixed;inset:0;z-index:80;background:rgba(0,22,19,.62)}
.native-quick-sheet:not([hidden]) {position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:81;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 30px);overflow:auto;padding:18px 23px 23px;background:var(--glass-strong);color:var(--title);border:1px solid var(--outline);border-radius:26px;box-shadow:0 28px 70px rgba(0,17,13,.38)}
.native-sheet-grip {width:40px;height:5px;background:var(--border);border-radius:99px;margin:0 auto 15px}
.native-sheet-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.native-sheet-heading h2 {font-size:21px;margin:0}
.native-sheet-heading button {font-size:22px;line-height:1}
.native-sheet-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.native-sheet-links a {display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);min-height:58px;padding:12px;border-radius:13px;font-size:12px;font-weight:750}
.native-sheet-links a svg {color:var(--primary);flex:none}
.native-sheet-all {display:flex;align-items:center;justify-content:space-between;color:var(--primary);font-weight:750;font-size:13px;margin-top:18px;padding:9px 2px}
body.native-sheet-visible {overflow:hidden}
.skip-link {position:fixed;left:12px;top:-100px;z-index:100;padding:11px 15px;border-radius:12px;background:var(--gold-300);color:#153e34;font-weight:700}
.skip-link:focus {top:10px}
/* Tablet/desktop: keep same five destinations, arranged according to space. */
@media(min-width:1160px) {
  .app-shell {width:min(1450px,calc(100% - 156px));margin:0 26px 0 auto}
  .site-header {margin:20px 0 34px;min-height:72px}
  .site-header .nav-links {position:fixed;left:14px;top:50%;transform:translateY(-50%);width:100px;max-height:calc(100dvh - 22px);overflow:auto;z-index:50;display:flex;flex-direction:column;gap:9px;padding:12px 8px;border:1px solid var(--outline);border-radius:25px;background:var(--glass-strong);box-shadow:var(--shadow);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .nav-links > .nav-item {width:100%;min-height:65px;flex-direction:column;gap:4px;padding:10px 4px;font-size:10px;line-height:1.2;text-align:center}
  .nav-links > .nav-item svg {width:21px;height:21px}
  .nav-links > .nav-item.active {box-shadow:inset 3px 0 0 var(--gold-500)}
}
@media(max-width:1159px) {
  .site-header .nav-links {display:flex;gap:1px;order:0;border:0;padding:0;flex:1;justify-content:center}
  .nav-links > .nav-item {padding:8px 9px;font-size:11px}
  .nav-links > .nav-item svg {width:17px;height:17px}
}
@media(max-width:960px) {
  .site-header {gap:8px;padding:10px 12px}
  .site-header .nav-links {display:none}
  .mobile-bottom-nav {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:50;background:var(--glass-strong);border-top:1px solid var(--outline);padding:7px max(8px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));box-shadow:0 -10px 24px rgba(0,32,25,.16);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .mobile-bottom-nav > a {min-width:0;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:12px;padding:5px 2px;color:var(--muted);font-size:10px;line-height:1.35;font-weight:750;text-align:center}
  .mobile-bottom-nav > a svg {width:21px;height:21px}
  .mobile-bottom-nav > a.is-active {color:var(--primary);background:var(--accent-light)}
  body {padding-bottom:calc(85px + env(safe-area-inset-bottom,0px))}
  .pwa-status {bottom:calc(85px + env(safe-area-inset-bottom,0px));background:var(--glass-strong);backdrop-filter:none}
  .native-quick-sheet:not([hidden]) {top:auto;bottom:0;left:0;right:0;transform:none;width:100%;max-height:min(82dvh,720px);border-radius:27px 27px 0 0;padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}
  .native-tools-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:740px) {
  .app-shell {width:calc(100% - 28px)}
  .site-header {margin:12px 0 18px;min-height:66px;background:var(--glass-strong)!important;border-radius:20px}
  .brand {font-size:14px}.brand small {display:block;font-size:7px;letter-spacing:1.1px}
  .brand-icon {width:42px;height:42px}
  .header-actions {gap:5px}.header-actions .round-icon {width:42px;height:42px}
  .header-cta {display:none}
  .mobile-quick-actions {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .mobile-quick-actions a {min-height:62px;background:var(--glass)!important}
  .native-tools-hero {grid-template-columns:1fr;min-height:0;padding:28px 21px;border-radius:23px}
  .native-tools-hero h1 {font-size:clamp(29px,8vw,39px)}
  .native-tools-hero p {font-size:12px}.native-tools-hero-art {display:none}
  .native-tools-grid {grid-template-columns:1fr;gap:9px}.native-tool-card {min-height:93px;padding:15px;gap:12px}
  .native-tool-icon {width:44px;height:44px}
  .native-tools-hub {gap:28px}
  .native-tool-body strong {font-size:13px}
  .calendar-panel {padding:18px 11px!important}
  .calendar-cell {min-height:clamp(56px,14.5vw,72px);padding:7px 4px;transition:background .16s,border-color .16s}
  .calendar-cell.selected:hover {transform:none!important}
  .calendar-cell.current:not(.selected) {padding:6px 3px}
  .hours-panel-wide .hours-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .day-sun {flex:none}
}
@media(max-width:360px) {
  .brand {font-size:12px}.brand small {font-size:6px}.header-actions .round-icon {width:39px;height:39px}
  .native-sheet-links {gap:7px}.native-sheet-links a {padding:9px;font-size:11px}
  .mobile-bottom-nav > a {font-size:9px}
}
@media(hover:none),(pointer:coarse) {
  .native-tool-card:hover {transform:none}
  .calendar-cell:not(.selected):hover:not(:disabled) {transform:none}
}
@media(prefers-reduced-motion:reduce) {
  .native-tool-card,.calendar-cell,.native-quick-sheet {transition:none!important}
}


/* START centered-app-v118.css */
/* Lịch Việt Glass v11.8 — Unified Centered App Layout.
   One public app shell (desktop/tablet/mobile), same navigation and route hierarchy.
   Kept last in the cascade to adapt v11.7 without changing PHP business logic.
   All widths are border-box; avoid horizontal scrolling at 320px. */
:root { --lvg-app-max:680px; --lvg-safe-bottom:env(safe-area-inset-bottom,0px); }
html {scroll-padding-bottom:108px}
body {margin:0;min-width:0;overflow-x:clip}
body .app-shell {
  box-sizing:border-box!important;width:100%!important;max-width:var(--lvg-app-max)!important;
  margin-inline:auto!important;margin-block:0!important;
  padding-inline:clamp(12px,2.9vw,20px)!important;
  padding-bottom:calc(104px + var(--lvg-safe-bottom))!important;
  min-width:0;
}
body .app-shell > * {min-width:0;max-width:100%}
/* No rail or duplicate desktop menu: five destinations remain in the footer tabs. */
body .site-header {
  box-sizing:border-box!important;position:relative!important;display:flex!important;
  flex-wrap:nowrap!important;align-items:center;min-height:66px!important;
  width:100%;max-width:100%;margin:13px 0 18px!important;
  padding:10px 12px!important;gap:8px!important;border-radius:19px!important;
  background:var(--glass-strong)!important;
}
body .site-header .nav-links {display:none!important}
body .site-header .brand {min-width:0;max-width:calc(100% - 108px);white-space:normal;font-size:clamp(13px,2.5vw,17px)}
body .site-header .brand > span:last-child {overflow-wrap:anywhere}
body .site-header .brand-icon {flex:none;width:40px;height:40px}
body .site-header .brand small {font-size:7px;letter-spacing:1px}
body .site-header .header-actions {margin-left:auto;flex:none;gap:6px}
body .site-header .header-cta {display:none!important}
body .site-header .header-actions .round-icon {height:43px;width:43px;touch-action:manipulation}
/* Bottom tab is limited to the same 680px as content on every viewport. */
body .mobile-bottom-nav {
  box-sizing:border-box!important;position:fixed!important;z-index:65!important;
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  inset:auto auto 0 50%!important;left:50%!important;right:auto!important;
  width:100%!important;max-width:var(--lvg-app-max)!important;
  margin:0!important;transform:translateX(-50%)!important;
  gap:0!important;align-items:stretch!important;
  padding:7px max(8px,env(safe-area-inset-right,0px)) calc(8px + var(--lvg-safe-bottom)) max(8px,env(safe-area-inset-left,0px))!important;
  border:1px solid var(--outline);border-bottom:0;border-radius:19px 19px 0 0;
  background:var(--glass-strong)!important;
  box-shadow:0 -10px 26px rgba(0,25,21,.2);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
body .mobile-bottom-nav>a {
  min-width:0!important;min-height:56px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:3px!important;
  padding:4px 2px!important;border-radius:12px!important;
  font-size:10px!important;font-weight:700!important;line-height:1.25!important;
  color:var(--muted)!important;text-align:center!important;touch-action:manipulation;
}
body .mobile-bottom-nav>a svg {width:21px;height:21px}
body .mobile-bottom-nav>a.is-active,
body .mobile-bottom-nav>a[aria-current=page] {color:var(--primary)!important;background:var(--accent-light)!important}
body .pwa-status {bottom:calc(90px + var(--lvg-safe-bottom))!important;max-width:calc(100% - 24px)}
/* Legacy quick links duplicate the five-tab app navigation. Install uses its own card in v12.1.5. */
body .mobile-quick-actions,
body .mobile-quick-actions>a {display:none!important}
/* Real one-column public flow, using the same existing DOM and IDs (JS remains intact).
   The selected-day summary comes first, matching the user's calendar-app reference. */
body .dashboard-grid {display:flex!important;flex-direction:column!important;gap:14px!important;align-items:stretch!important}
body .dashboard-grid>.dashboard-sidebar {display:contents!important}
body .dashboard-grid .today-card {order:0!important}
body .dashboard-grid .calendar-panel {order:1!important}
body .dashboard-grid .hours-panel-wide {order:2!important}
body .dashboard-grid .quote-panel {order:3!important}
body .dashboard-grid > *,body .dashboard-grid>.dashboard-sidebar>* {width:100%;min-width:0;max-width:100%}
body .calendar-panel {padding:clamp(12px,2.9vw,22px)!important}
body .calendar-grid,body .week-labels {grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(3px,1vw,7px)}
body .calendar-cell {min-width:0!important;min-height:clamp(58px,12.4vw,82px)!important;padding:clamp(5px,1.2vw,10px)!important}
body .calendar-cell .cell-solar {font-size:clamp(14px,2.9vw,18px)}
body .calendar-cell .cell-lunar {font-size:clamp(9px,1.7vw,11px)}
body .calendar-cell.selected,body .calendar-cell.selected:hover:not(:disabled) {background:linear-gradient(145deg,#187866,#0d514a)!important;color:#fff9e9!important;border-color:var(--gold-500)!important}
body .calendar-cell.selected .cell-lunar,body .calendar-cell.selected:hover .cell-lunar {color:#dfefdb!important}
body .intro-row {display:flex!important;align-items:start!important;flex-wrap:wrap!important;gap:9px!important;margin-bottom:17px!important}
body .intro-row h1 {font-size:clamp(25px,5vw,35px);letter-spacing:-1.2px;margin:6px 0 7px}
body .intro-date {padding:7px 10px;border-radius:12px;font-size:10px}
body .today-card {padding:clamp(15px,3vw,23px)!important}
body .today-card .solar-display strong {font-size:clamp(65px,14vw,92px)}
body .calendar-legend {gap:8px;justify-content:flex-start!important}
body .hours-panel-wide .hours-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important}
body .traditional-grid,body .utility-layout,body .studio-layout,
body .daily-hero,body .daily-grid,body .daily-layout,
body .finder-layout,body .comparison-layout {grid-template-columns:minmax(0,1fr)!important}
body .traditional-grid>* ,body .utility-layout>*,body .studio-layout>* {min-width:0;max-width:100%}
body .studio-layout .preview-area {position:static!important;width:100%}
body .studio-layout .preview-frame {max-width:100%!important}
body .lower-banner {flex-wrap:wrap;gap:12px}
body .lower-banner .primary-button {max-width:100%}
body .native-tools-hero {grid-template-columns:minmax(0,1fr)!important;min-height:0;padding:25px 20px!important}
body .native-tools-hero-art {display:none!important}
body .native-tools-hero h1 {font-size:clamp(30px,6vw,40px)}
body .native-tools-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
body .native-tool-card {padding:14px!important;min-width:0;min-height:100px;gap:10px}
body .native-tool-icon {width:40px;height:40px}
body .native-tool-body strong {font-size:12px}
body .native-tools-hub {gap:24px}
body .page-lead h1 {font-size:clamp(28px,5.5vw,39px);letter-spacing:-1.2px}
body .site-footer {padding:24px 4px 6px;flex-wrap:wrap;gap:5px}
body .site-footer>span {text-align:left}
/* Keep dialogs and sheets inside the centered app, including at desktop widths. */
body .native-quick-sheet:not([hidden]) {
  box-sizing:border-box;position:fixed;z-index:82;
  top:auto!important;bottom:0!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;width:100%!important;
  max-width:var(--lvg-app-max)!important;max-height:min(83dvh,740px);
  overflow-y:auto;overscroll-behavior:contain;
  padding:17px 20px calc(28px + var(--lvg-safe-bottom))!important;
  border-radius:24px 24px 0 0!important;
}
body .native-sheet-overlay:not([hidden]) {z-index:81}
/* Do not confine the user-facing print pages to a narrow screen. */
@media print {
  body .mobile-bottom-nav,body .site-header .header-actions {display:none!important}
  body .app-shell {max-width:none!important;width:100%!important;padding:0!important}
  body .dashboard-grid {display:block!important}
}
@media(max-width:480px) {
  body .native-tools-grid {grid-template-columns:minmax(0,1fr)!important}
  body .calendar-panel .panel-heading {flex-wrap:wrap;gap:9px;margin-bottom:14px}
  body .calendar-panel .month-actions {margin-left:auto}
  body .calendar-panel .month-actions button {width:40px;height:44px}
  body .calendar-panel .month-actions .today-pill {width:auto;min-width:65px}
  body .calendar-cell {min-height:clamp(53px,14vw,70px)!important;padding:5px 4px!important}
  body .calendar-cell .cell-solar {font-size:clamp(13px,4vw,17px)}
  body .calendar-legend {font-size:9px}
  body .native-sheet-links {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body .site-header .brand {font-size:13px}
  body .site-header .brand small {display:none}
}
@media(max-width:355px) {
  body .app-shell {padding-inline:10px!important}
  body .site-header {padding:8px!important}
  body .site-header .brand-icon {width:36px;height:36px}
  body .site-header .header-actions .round-icon {width:40px;height:40px}
  body .hours-panel-wide .hours-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .mobile-bottom-nav>a {font-size:9px!important}
}
@media(prefers-reduced-motion:reduce) {
  body .calendar-cell,body .mobile-bottom-nav,body .native-quick-sheet {transition:none!important;scroll-behavior:auto!important}
}


/* START home-polish-v119.css */
/* Lịch Việt Glass v11.9 — Home UI Polish & Layout Stability.
   Scoped, late-loaded patch for the public home only. No new app logic or DB.
   Root cause fixed: v11.8 collapsed traditional-grid to one track but left the
   legacy .assessment-card {grid-column:span 2} media rule, generating a narrow
   implicit second track and massively tall stretched grid rows. */
:root { --lvg-home-gap:12px; }
body .home-dashboard {
  align-items:stretch!important;
  gap:var(--lvg-home-gap)!important;
  width:100%;min-width:0;
}
body .home-dashboard .today-card,
body .home-dashboard .calendar-panel,
body .home-dashboard .hours-panel-wide,
body .home-dashboard .quote-panel {
  box-sizing:border-box;min-width:0;max-width:100%;width:100%;
  height:auto!important;min-height:0!important;align-self:start;
  box-shadow:0 10px 28px rgba(17,80,64,.08);
}
body .home-dashboard .today-card {order:0!important}
body .home-dashboard .calendar-panel {order:1!important}
body .home-dashboard .hours-panel-wide {order:2!important}
body .home-dashboard .quote-panel {order:3!important}
body .home-dashboard .calendar-panel {padding:clamp(14px,3vw,20px)!important}
body .home-dashboard .calendar-cell {transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s}
body .home-dashboard .calendar-cell.selected,
body .home-dashboard .calendar-cell.selected:hover:not(:disabled),
body .home-dashboard .calendar-cell.selected:focus-visible {
  background:linear-gradient(145deg,#177966,#095146)!important;
  color:#fff9e9!important;border-color:#c4a254!important;
}
body .home-dashboard .calendar-cell.selected .cell-solar,
body .home-dashboard .calendar-cell.selected .cell-lunar,
body .home-dashboard .calendar-cell.selected:hover .cell-solar,
body .home-dashboard .calendar-cell.selected:hover .cell-lunar {color:#fff8e5!important}
body .home-dashboard .day-facts > div {min-width:0}
body .home-dashboard .day-facts span {font-size:clamp(12px,2.4vw,13px)}
body .home-dashboard .day-facts strong {font-size:clamp(12px,2.3vw,14px)}
body .home-dashboard .today-card .day-card-footer {flex-wrap:wrap;gap:9px}
body .home-dashboard .today-card .day-card-footer a {min-height:40px;display:inline-flex;align-items:center}
body .home-dashboard .hours-panel-wide {padding:0!important;overflow:hidden}
body .home-hours-details {display:block;min-width:0}
body .home-hours-summary {display:block;list-style:none;cursor:pointer;padding:16px 18px 15px;touch-action:manipulation}
body .home-hours-summary::-webkit-details-marker,body .traditional-summary::-webkit-details-marker {display:none}
body .home-hours-summary::marker,body .traditional-summary::marker {content:''}
body .home-hours-summary-top {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
body .home-hours-title {display:flex;align-items:center;gap:8px;color:var(--title);font-size:15px}
body .home-hours-title svg {color:var(--primary)}
body .home-disclosure-action {display:inline-flex;align-items:center;gap:4px;color:var(--primary);font-size:12px;font-weight:750}
body .home-disclosure-action svg {transition:transform .16s ease}
body .home-hours-details[open] .home-disclosure-action svg {transform:rotate(90deg)}
body .home-hours-preview {margin-top:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .home-hour-chip {display:flex;flex-direction:column;gap:3px;min-width:0;padding:10px 8px;border:1px solid var(--border);border-radius:11px;background:var(--accent-light);text-align:center}
body .home-hour-chip strong {color:var(--title);font-size:12px;line-height:1.3}
body .home-hour-chip small {font-size:11px;line-height:1.45;color:var(--muted)}
body .home-hour-offline {display:none;color:var(--muted);font-size:12px;margin-top:9px}
body.lvg-basic-offline .home-hours-preview {display:none}
body.lvg-basic-offline .home-hour-offline {display:block}
body .home-hours-expanded {border-top:1px solid var(--outline);padding:16px 18px 19px}
body .home-hours-expanded .hours-intro {margin:8px 0 12px;font-size:13px;line-height:1.65;color:var(--muted)}
body .home-hours-expanded .hours-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
body .home-hours-expanded .hour-card {min-width:0;min-height:104px;padding:10px!important;overflow-wrap:break-word}
body .home-hours-expanded .hour-card-top {display:flex;gap:6px;flex-wrap:wrap}
body .home-hours-expanded .hour-card-top strong,
body .home-hours-expanded .hour-time {font-size:12px}
body .home-hours-expanded .hour-canchi,
body .home-hours-expanded .hour-deity {font-size:11px;line-height:1.5}
/* Traditional information: no implicit tracks or grid spans on any breakpoint. */
body .traditional-section {
  display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;
  margin-top:17px!important;padding:0;border:1px solid var(--outline);
  border-radius:20px;background:var(--glass-strong);box-shadow:0 12px 27px rgba(12,70,51,.06);
}
body .traditional-summary {list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 17px 16px;cursor:pointer;touch-action:manipulation}
body .traditional-summary-text {min-width:0;display:flex;flex-direction:column;gap:5px}
body .traditional-summary .section-kicker {font-size:10px;letter-spacing:.7px}
body .traditional-summary-title {font-weight:800;font-size:18px;line-height:1.35;letter-spacing:-.3px;color:var(--title)}
body .traditional-summary-subtitle {font-size:12px;line-height:1.65;color:var(--muted);overflow-wrap:break-word}
body .traditional-summary-side {display:flex;flex-direction:column;align-items:center;gap:8px;flex:none;color:var(--primary)}
body .traditional-summary-side svg {transition:transform .16s ease}
body .traditional-section[open] .traditional-summary-side svg {transform:rotate(90deg)}
body .traditional-summary .rule-version {font-size:9px;max-width:110px;padding:6px 8px;overflow-wrap:anywhere;text-align:center}
body .traditional-content {border-top:1px solid var(--outline);padding:12px}
body .traditional-grid {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:none!important;grid-auto-columns:minmax(0,1fr)!important;
  grid-auto-rows:max-content!important;grid-auto-flow:row!important;
  justify-items:stretch!important;align-items:start!important;
  gap:10px!important;width:100%!important;max-width:100%;min-width:0;
}
body .traditional-grid > *,body .traditional-grid > .assessment-card {
  box-sizing:border-box!important;grid-column:1 / -1!important;
  grid-row:auto!important;min-width:0!important;max-width:100%!important;
  width:100%!important;height:auto!important;min-height:0!important;
  align-self:start!important;justify-self:stretch!important;
}
body .traditional-grid .traditional-card {padding:17px!important;border-radius:16px!important;overflow-wrap:break-word}
body .traditional-grid .traditional-card h3 {font-size:17px;line-height:1.35}
body .traditional-grid .traditional-card p {font-size:13px;line-height:1.7;margin:9px 0}
body .traditional-grid .traditional-card small {font-size:12px;line-height:1.6;overflow-wrap:break-word}
body .traditional-grid .traditional-card-kicker {font-size:10px}
body .traditional-grid .traditional-detail {display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;line-height:1.55}
body .traditional-grid .traditional-detail > * {min-width:0;overflow-wrap:anywhere}
body .traditional-grid .direction-row {display:flex;gap:10px;align-items:flex-start}
body .traditional-grid .direction-row > div {min-width:0;flex:1;overflow-wrap:break-word}
body .traditional-grid .traditional-list {min-width:0}
body .traditional-grid .traditional-list-item {min-width:0;overflow-wrap:break-word}
body .traditional-grid .traditional-list-item > div {min-width:0;flex-wrap:wrap;gap:5px}
body .traditional-content .rule-details {min-width:0;margin:12px 0 0}
body .traditional-content .rule-details-body {overflow-wrap:anywhere;line-height:1.7}
body .traditional-content .rule-details-body a {overflow-wrap:anywhere}
body .lower-banner {margin-top:13px;min-height:0!important;align-items:center}
body .site-footer {margin-top:17px}
:root[data-theme="dark"] body .traditional-section {background:var(--glass-strong)}
@media(max-width:480px) {
  body .home-hours-summary,body .traditional-summary {padding:15px 13px}
  body .home-hours-preview {gap:5px}
  body .home-hour-chip {padding:9px 4px}
  body .home-hours-expanded {padding:14px 12px}
  body .home-hours-expanded .hours-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .traditional-content {padding:9px}
  body .traditional-grid .traditional-card {padding:14px!important}
  body .traditional-summary .rule-version {max-width:78px;font-size:8px}
}
@media(max-width:355px) {
  body .home-hours-preview {grid-template-columns:repeat(3,minmax(0,1fr))}
  body .home-hour-chip strong {font-size:11px}
  body .home-hour-chip small {font-size:10px}
}
@media(prefers-reduced-motion:reduce) {
  body .home-hours-details *,body .traditional-section * {transition:none!important}
}
@media print {
  body .home-hours-details,body .traditional-section {break-inside:auto}
  body .home-hours-preview {display:none!important}
  body .home-hours-expanded,body .traditional-content {display:block!important}
}
/* Distinct native-like tap targets, avoiding merged text links on narrow phones. */
body .home-dashboard .today-card .day-card-footer {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
}
body .home-dashboard .today-card .day-card-footer a {
  display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;
  min-height:44px;padding:8px 6px;border-radius:10px;border:1px solid var(--outline);
  background:var(--accent-light);font-size:11px;line-height:1.4;overflow-wrap:break-word;
}
@media(max-width:355px) {
  body .home-dashboard .today-card .day-card-footer {grid-template-columns:minmax(0,1fr)!important}
}


/* START ui-consistency-v1191.css */
/* Lịch Việt Glass v11.9.1 — One centered public app, one theme, one five-tab bar.
   Loaded after all legacy styles on both routed and standalone user-facing pages.
   Admin is intentionally excluded. No changes to JS hooks or source content. */
:root {
  --lvg-app-max:680px;
  --lvg-page:#eaf3ec;--lvg-card:rgba(251,255,251,.94);
  --lvg-text:#193c36;--lvg-subtle:#527168;--lvg-line:rgba(35,110,85,.21);
  --lvg-control:#f5faf5;--lvg-accent:#0e7462;--lvg-accent-tint:rgba(24,125,99,.13);
  --lvg-nav:#f7fcf7;--lvg-shadow:0 12px 30px rgba(15,74,52,.10);
  color-scheme:light;
}
:root[data-theme="dark"] {
  --lvg-page:#052c29;--lvg-card:rgba(13,67,57,.96);
  --lvg-text:#f4f0dc;--lvg-subtle:#bed6c8;--lvg-line:rgba(208,228,201,.21);
  --lvg-control:#174b40;--lvg-accent:#eed28d;--lvg-accent-tint:rgba(217,179,87,.16);
  --lvg-nav:#0b4138;--lvg-shadow:0 13px 36px rgba(0,19,15,.28);
  color-scheme:dark;
}
/* Legacy standalone pages use hard-coded light tokens; map their semantic variables too. */
:root[data-theme="dark"] {
  --ink:#f4f0dc;--title:#f4f0dc;--muted:#bed6c8;--accent:#eed28d;
  --edge:rgba(208,228,201,.21);--line:rgba(208,228,201,.21);
  --teal:#eed28d;--text-primary:#f4f0dc;--text-secondary:#bed6c8;
  --primary:#eed28d;--body:#052c29;--surface:rgba(13,67,57,.96);
  --glass:rgba(13,67,57,.90);--glass-strong:rgba(13,67,57,.97);
  --outline:rgba(208,228,201,.21);--border:rgba(208,228,201,.21);
}
html {scroll-padding-bottom:110px}
html,body {min-width:0;max-width:100%;overflow-x:clip}
body {background-color:var(--lvg-page)!important; color:var(--lvg-text);}
/* Public App Shell; standalone pages use the containers below. */
body .app-shell,body :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell) {
  box-sizing:border-box!important;width:100%!important;max-width:var(--lvg-app-max)!important;
  margin-inline:auto!important;min-width:0!important;
  padding-inline:clamp(12px,3vw,20px)!important;
}
body :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell) > * {
  min-width:0;max-width:100%;
}
/* Do not allow 2-column desktop compositions within the single-column app shell.
   Small internal 2- or 3-field form rows and seven-day calendar grids are intentionally retained. */
body :is(.dashboard-grid,.traditional-grid,.utility-layout,.studio-layout,.daily-layout,
  .daily-grid,.daily-hero,.finder-layout,.comparison-layout,.comparison-grid,
  .prayer-panel,.iching-layout,.bt-layout,.bt-note-grid,.native-tools-grid,
  .mt-hero,.mt-week-grid,.mt-grid,.us-grid,.us-layout,.grid2,.layout,.ak-columns,
  .sync-grid,.plans-layout,.plan-grid,.task-layout,.growth-layout,
  .lvg-library,.prayer-library-grid) {
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-columns:minmax(0,1fr)!important;
  align-items:start;
}
body :is(.prayer-panel,.iching-layout,.bt-layout,.finder-layout,.comparison-grid,.traditional-grid) > *,
body :is(.mt-hero,.mt-grid,.us-grid,.layout,.grid2,.ak-columns,.sync-grid) > * {
  min-width:0;max-width:100%;grid-column:1/-1!important;grid-row:auto!important;
  height:auto;min-height:0;align-self:start;
}
body .prayer-library {position:static!important;top:auto!important;max-height:none!important}
body .prayer-list {max-height:340px;overflow:auto}
body .bt-compass-panel {order:0}
body .lvg-library {gap:14px}
body .native-tools-grid {gap:10px}
body .studio-layout .preview-area,body .studio-layout .studio-tools {width:100%;min-width:0}
body .traditional-grid>.assessment-card {grid-column:1 / -1!important}
/* All five tabs are the exact same markup and colors, both in public and private pages. */
body nav.lvg-bottom-nav {
  box-sizing:border-box!important;position:fixed!important;
  inset:auto auto 0 50%!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  width:100%!important;max-width:var(--lvg-app-max)!important;
  align-items:stretch!important;gap:0!important;
  padding:7px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))!important;
  margin:0!important;border:1px solid var(--lvg-line)!important;border-bottom:0!important;
  border-radius:19px 19px 0 0!important;
  background:var(--lvg-nav)!important;color:var(--lvg-text)!important;
  box-shadow:0 -10px 24px rgba(4,45,34,.16)!important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:100!important;
}
body nav.lvg-bottom-nav > a,
body nav.lvg-bottom-nav > a:visited {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-direction:column!important;gap:3px!important;text-align:center!important;
  min-height:56px!important;min-width:0!important;padding:5px 2px!important;
  color:var(--lvg-subtle)!important;background:transparent!important;
  text-decoration:none!important;border:0!important;border-radius:12px!important;
  font:700 10px/1.25 'Be Vietnam Pro',system-ui,sans-serif!important;
}
body nav.lvg-bottom-nav > a svg {height:21px!important;width:21px!important;flex:none;stroke:currentColor!important}
body nav.lvg-bottom-nav > a span {font:inherit!important;color:inherit!important}
body nav.lvg-bottom-nav > a[aria-current="page"],
body nav.lvg-bottom-nav > a.is-active {
  background:var(--lvg-accent-tint)!important;color:var(--lvg-accent)!important;
}
body nav.lvg-bottom-nav > a:focus-visible {outline:3px solid #cfb162!important;outline-offset:1px}
body :is(.mt-bottom,.us-bottom,.ak-bottom,.mobile-quick-actions) {display:none!important}
body {padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
/* Standalone inherited hard-coded LIGHT theme. Normalize surfaces to emerald tokens. */
body:not([data-page]) {
  background:radial-gradient(ellipse at 10% 0%,rgba(46,152,112,.13),transparent 56%),var(--lvg-page)!important;
  color:var(--lvg-text)!important;
}
:root[data-theme="dark"] body:not([data-page]) {
  background:radial-gradient(ellipse at 10% 0%,rgba(7,138,106,.22),transparent 56%),var(--lvg-page)!important;
}
body:not([data-page]) :is(.mt-aurora,.us-aurora,.orb) {opacity:.09!important;pointer-events:none}
body:not([data-page]) :is(.glass,.panel,.card,.mt-panel,.mt-daycard,.mt-week-card,.mt-smart,.us-panel,
  .us-group,.us-status,.us-card,.ak-card,.ak-collection,.ak-status,.sync-card,.lr-card,
  .plan-card,.task-form,.mt-header,.us-top,.top,.login,.hero,.saved-card) {
  background:var(--lvg-card)!important;color:var(--lvg-text)!important;
  border-color:var(--lvg-line)!important;
  box-shadow:var(--lvg-shadow);
}
body:not([data-page]) :is(.mt-brand,.mt-hero h1,.us-brand,.us-hero h1,.ak-hero h1,
  .intro h1,.hero h1,.panel h2,.glass h2,.us-panel h2,.ak-card h2,.mt-panel h2,.card h2,
  h1,h2,h3,strong,legend) {color:var(--lvg-text)}
body:not([data-page]) :is(.muted,.mt-muted,.us-hint,.us-empty,.ak-help,.ak-empty,
  .mt-hero p,.us-hero p,.ak-hero p,.intro p,.footnote,footer,small) {color:var(--lvg-subtle)}
body:not([data-page]) :is(.us-group,.ak-collection,.mt-smart,.mt-week-card,.ak-muted,.us-quick-links a,
  .us-priv,.us-secondary,.us-status,.task-form) {background:var(--lvg-control)!important;border-color:var(--lvg-line)!important}
body:not([data-page]) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:var(--lvg-control)!important;color:var(--lvg-text)!important;
  border:1px solid var(--lvg-line)!important;color-scheme:inherit;
}
body:not([data-page]) input::placeholder,body:not([data-page]) textarea::placeholder {color:var(--lvg-subtle);opacity:.85}
body:not([data-page]) a:not(.lvg-bottom-nav a) {color:var(--lvg-accent)}
body:not([data-page]) :is(.mt-kicker,.us-kicker,.ak-eyebrow,.eyebrow) {color:var(--lvg-accent)!important}
body:not([data-page]) :is(.mt-daycard,.mt-smart,.us-panel,.ak-card,.panel,.glass) {min-width:0}
body:not([data-page]) :is(.mt-header>nav,.us-top>nav,.top>nav,.ak-nav,.shell>.header .nav) {display:none!important}
/* Standalone toggle floats ABOVE layout; never part of the five-tab nav. */
body .lvg-standalone-theme-toggle {
  position:fixed;top:12px;right:max(12px,calc((100vw - 680px) / 2 + 12px));
  z-index:72;min-height:42px;min-width:42px;display:flex;align-items:center;justify-content:center;
  gap:7px;padding:8px 10px;border:1px solid var(--lvg-line)!important;
  background:var(--lvg-nav)!important;color:var(--lvg-accent)!important;
  border-radius:13px;box-shadow:var(--lvg-shadow);
  font:700 11px/1.2 system-ui,sans-serif;
}
body .lvg-standalone-theme-toggle span:first-child {font-size:21px}
body:not([data-page]) :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap) {padding-top:62px!important}
/* Transparent panel previews are intentional, and high-contrast reading sheets remain ivory. */
:root[data-theme="dark"] body .prayer-reading-sheet,
:root[data-theme="dark"] body .prayer-reader {color:#343e35}
@media(max-width:480px){
  body nav.lvg-bottom-nav > a {font-size:9px!important}
  body .lvg-standalone-theme-toggle {right:12px;top:9px}
  body :is(.prayer-form-grid,.us-two,.ak-pair) {grid-template-columns:minmax(0,1fr)!important}
  body .prayer-list {grid-template-columns:minmax(0,1fr)!important}
}
@media print {
  body nav.lvg-bottom-nav,body .lvg-standalone-theme-toggle {display:none!important}
  body {padding-bottom:0!important}
  body :is(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap) {max-width:none!important}
}
@media(prefers-reduced-motion:reduce){body nav.lvg-bottom-nav{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Remaining legacy text and fields on authenticated pages. */
:root[data-theme="dark"] body:not([data-page]) :is(.mt-hero-copy,.us-hero,.ak-hero,.intro,.hero,
 .event-row,.ak-entry,.us-result,.mt-panel,.us-panel,.ak-card,.panel,.card) {color:var(--lvg-text)!important}
:root[data-theme="dark"] body:not([data-page]) :is(label,.muted,.fine,.lead,.ak-help,.mt-hero-copy>p,.us-group p) {color:var(--lvg-subtle)!important}
:root[data-theme="dark"] body:not([data-page]) :is(.event-row,.tag,.pill,.mt-actions a,.us-quick-links a,.ak-results,.ak-collection) {
  background:var(--lvg-control)!important;color:var(--lvg-text)!important;border-color:var(--lvg-line)!important
}
:root[data-theme="dark"] body:not([data-page]) :is(button:not(.lvg-standalone-theme-toggle),.btn,.us-primary,.ak-btn) {color-scheme:dark}
/* Hero artwork is decoration, never a second layout column in centered mode. */
body .prayer-hero-layout,body:not([data-page]) :is(.hero,.intro) {
  flex-direction:column!important;align-items:stretch!important;
}
body .prayer-hero-mark {display:none!important}
body:not([data-page]) :is(.hero-date,.stamp) {flex:auto!important;max-width:100%!important}


/* START native-tabbar-v1192.css */
/* Lịch Việt Glass v11.9.2 — Shared native bottom navigation.
   Last UI stylesheet; applies to all public/user pages, never admin.
   Single 680px app bar, one safe-area inset, consistent Light/Night tokens. */
:root {
  --lvg-tab-height:68px;
  --lvg-tab-bg:rgba(248,252,248,.97);
  --lvg-tab-border:rgba(22,95,75,.20);
  --lvg-tab-idle:#56766b;
  --lvg-tab-current:#0b614f;
  --lvg-tab-current-bg:rgba(22,118,83,.115);
  --lvg-tab-shadow:0 -8px 24px rgba(10,63,46,.10);
}
:root[data-theme="dark"] {
  --lvg-tab-bg:rgba(8,59,50,.96);
  --lvg-tab-border:rgba(188,212,181,.22);
  --lvg-tab-idle:#bed3c8;
  --lvg-tab-current:#f0d18a;
  --lvg-tab-current-bg:rgba(178,179,109,.15);
  --lvg-tab-shadow:0 -8px 28px rgba(0,24,20,.26);
}
/* Single safe inset is owned by the navigation. Do not multiply it in wrappers. */
body nav.mobile-bottom-nav.lvg-bottom-nav {
  position:fixed!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  left:50%!important;right:auto!important;top:auto!important;bottom:0!important;
  transform:translateX(-50%)!important;
  width:100%!important;max-width:680px!important;
  margin:0!important;
  gap:0!important;
  padding:6px max(8px,env(safe-area-inset-right,0px))
    calc(6px + env(safe-area-inset-bottom,0px))
    max(8px,env(safe-area-inset-left,0px))!important;
  border:1px solid var(--lvg-tab-border)!important;border-bottom:0!important;
  border-radius:18px 18px 0 0!important;
  background:var(--lvg-tab-bg)!important;
  box-shadow:var(--lvg-tab-shadow)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  z-index:100!important;
  isolation:isolate;
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a,
body nav.mobile-bottom-nav.lvg-bottom-nav>a:visited {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:0!important;
  width:100%!important;max-width:100px!important;justify-self:center!important;
  height:56px!important;min-height:56px!important;
  margin:0!important;padding:5px 1px!important;
  border:0!important;border-radius:13px!important;
  background:transparent!important;
  color:var(--lvg-tab-idle)!important;
  font:500 11px/1.18 'Be Vietnam Pro',system-ui,sans-serif!important;
  text-align:center!important;text-decoration:none!important;
  white-space:nowrap!important;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:background-color .16s ease,color .16s ease!important;
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a svg {
  width:23px!important;height:23px!important;
  min-width:23px!important;flex:none!important;
  stroke:currentColor!important;stroke-width:1.85!important;
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a span {
  display:block!important;font:inherit!important;color:inherit!important;
  white-space:nowrap!important;line-height:1.18!important;
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a[aria-current="page"],
body nav.mobile-bottom-nav.lvg-bottom-nav>a.is-active {
  background:var(--lvg-tab-current-bg)!important;
  color:var(--lvg-tab-current)!important;
  font-weight:700!important;
}
@media(hover:hover) and (pointer:fine) {
  body nav.mobile-bottom-nav.lvg-bottom-nav>a:not([aria-current="page"]):hover {
    background:var(--lvg-tab-current-bg)!important;
    color:var(--lvg-tab-current)!important;
  }
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a:focus-visible {
  outline:2px solid var(--lvg-tab-current)!important;outline-offset:-2px!important;
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a:active {transform:scale(.975)}
/* The bottom navigation is *not* followed by an extra body-level safe area. */
body,
body .app-shell {padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
html {scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
body .pwa-status {bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
/* No small-font override from old mobile CSS; labels must remain readable. */
@media(max-width:355px) {
  body nav.mobile-bottom-nav.lvg-bottom-nav>a,
  body nav.mobile-bottom-nav.lvg-bottom-nav>a span {
    font-size:10px!important;letter-spacing:-.2px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body nav.mobile-bottom-nav.lvg-bottom-nav>a {transition:none!important}
  body nav.mobile-bottom-nav.lvg-bottom-nav {backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media print {
  body nav.mobile-bottom-nav.lvg-bottom-nav {display:none!important}
  body,body .app-shell {padding-bottom:0!important}
}


/* START native-app-v120.css */
/* Lịch Việt Glass v12.0 — Native App Experience.
   Progressive enhancement over v11.9.2. Single 680px app model; no admin impact.
   Important: never conceal private data with CSS for access control. */
:root {
  --v120-radius:20px; --v120-space:12px;
  --v120-surface:rgba(255,255,255,.96); --v120-bg:#eaf3ec;
  --v120-ink:#163e34;--v120-secondary:#526e63;
  --v120-line:rgba(13,95,73,.16);--v120-accent:#0b715b;
  --v120-hl:#dfefe5;--v120-nav:rgba(250,254,250,.95);
  --v120-elevation:0 8px 30px rgba(9,57,39,.075);
}
:root[data-theme="dark"] {
  --v120-surface:rgba(12,65,54,.98);--v120-bg:#062b26;
  --v120-ink:#f7f0db;--v120-secondary:#bdd4c8;
  --v120-line:rgba(215,231,207,.17);--v120-accent:#e5c981;
  --v120-hl:#205847;--v120-nav:rgba(8,51,44,.97);
  --v120-elevation:0 9px 26px rgba(0,20,15,.23);
}
html {scroll-padding-top:72px; scroll-padding-bottom:calc(85px + env(safe-area-inset-bottom,0px));}
html,body {overscroll-behavior-x:none}
body {background-color:var(--v120-bg)!important;color:var(--v120-ink);}
body .app-shell, body :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell) {
  width:100%!important;max-width:680px!important;margin-inline:auto!important;min-width:0;
}
/* Treat app as a full-screen surface, not a web document with an oversized footer. */
body [data-legacy-web-footer], body:not([data-page]) footer:not(.prayer-reader-footer) {display:none!important}
body .site-header {min-height:60px!important;margin:6px 0 12px!important;border-radius:15px!important;padding:8px 11px!important;box-shadow:none!important}
body .site-header .brand-icon {height:34px!important;width:34px!important}
body .site-header .brand small {font-size:8px;letter-spacing:.04em}
body .site-header .header-actions .round-icon {width:44px;height:44px}
body .intro-row {margin-bottom:10px!important}
body .intro-row h1 {font-size:clamp(22px,4.8vw,30px)!important;margin:3px 0!important;letter-spacing:-.7px}
body .intro-row p {font-size:12px;margin:3px 0 0}
body .intro-date {display:none}
/* Shared tab bar: one inset, same tokenized surface on all standalone and public screens. */
body nav.mobile-bottom-nav.lvg-bottom-nav {background:var(--v120-nav)!important;border-color:var(--v120-line)!important;border-radius:17px 17px 0 0!important;box-shadow:0 -5px 23px rgba(0,34,26,.14)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;}
body nav.mobile-bottom-nav.lvg-bottom-nav > a {min-height:55px!important;height:55px!important;font-size:11px!important;gap:3px!important;font-weight:500!important}
body nav.mobile-bottom-nav.lvg-bottom-nav > a[aria-current="page"] {font-weight:750!important}
body nav.mobile-bottom-nav.lvg-bottom-nav>a svg {height:23px!important;width:23px!important}
body .app-shell {padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
/* Cards have real, readable surfaces; blur only on the chrome, not every data card. */
body .app-shell :is(.calendar-panel,.today-card,.hours-panel-wide,.quote-panel,.native-tool-card,.native-tools-hero),
body:not([data-page]) :is(.shell .panel,.shell .glass,.mt-panel,.us-panel,.ak-card) {
  border:1px solid var(--v120-line)!important;border-radius:var(--v120-radius)!important;
  box-shadow:var(--v120-elevation)!important;
}
/* Native Home tab: date -> actions -> compact contextual content. */
body[data-page="daily"] .daily-hero {display:flex!important;flex-direction:column!important;gap:0!important;margin-bottom:12px!important}
body[data-page="daily"] .daily-intro {padding:4px 2px 8px!important}
body[data-page="daily"] .daily-intro h1 {margin:3px 0 4px!important;font-size:clamp(23px,5vw,32px)!important;letter-spacing:-.75px!important}
body[data-page="daily"] .daily-intro p {display:none}
body[data-page="daily"] .daily-chips {margin-top:7px!important;gap:6px!important}
body[data-page="daily"] .daily-chips span {padding:5px 9px!important;font-size:10px!important}
body[data-page="daily"] .daily-date-tile {min-height:0!important;padding:19px 22px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;text-align:left!important;align-items:center;justify-content:stretch;background:linear-gradient(145deg,#115d4d,#083d34)!important;border:1px solid rgba(226,204,138,.29)!important;border-radius:22px!important}
body[data-page="daily"] .daily-date-tile>.eyebrow {grid-column:1/-1;color:#e8d49c!important;font-size:10px}
body[data-page="daily"] .daily-date-tile .daily-number {font-size:clamp(78px,17vw,112px)!important;line-height:.96!important;letter-spacing:-5px!important;color:#f5df9d!important;grid-row:2 / 4}
body[data-page="daily"] .daily-date-tile h2 {font-size:clamp(15px,3.6vw,23px)!important;letter-spacing:0!important;color:#f9f3e5!important;margin:4px 0 0!important;text-align:right!important}
body[data-page="daily"] .daily-date-tile .daily-lunar {padding:5px 8px!important;background:rgba(235,222,159,.12)!important;color:#f4e5b2!important;text-align:right!important;font-size:11px!important}
body[data-page="daily"] .daily-main-grid {display:flex!important;flex-direction:column!important;gap:12px!important}
body[data-page="daily"] .daily-main-grid>.daily-main-stack {display:contents!important}
body[data-page="daily"] .daily-main-grid :is(.daily-facts,.daily-quote-card,.daily-special) {padding:17px!important;border-radius:18px!important;background:var(--v120-surface)!important;box-shadow:var(--v120-elevation)!important;border:1px solid var(--v120-line)!important;color:var(--v120-ink)!important;}
body[data-page="daily"] .daily-facts {order:1!important}
body[data-page="daily"] .daily-quote-card {order:2!important}
body[data-page="daily"] .daily-special {order:3!important}
body[data-page="daily"] .v120-widget-disclosure {order:5!important}
body[data-page="daily"] .v120-poster-disclosure {order:4!important}
body[data-page="daily"] .daily-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important}
body[data-page="daily"] .daily-stat-grid>div {padding:10px!important;background:var(--v120-hl)!important;border-radius:11px!important;border-color:var(--v120-line)!important}
body[data-page="daily"] .daily-stat-grid strong {font-size:14px!important;color:var(--v120-ink)!important}
body[data-page="daily"] .daily-quote-mark {display:none}
body[data-page="daily"] .daily-quote-card blockquote {font-size:17px!important;min-height:0!important;line-height:1.55!important;margin:9px 0!important}
body[data-page="daily"] .daily-special h3 {font-size:17px!important;margin:8px 0!important}
body[data-page="daily"] .daily-special p {font-size:12px!important;margin:8px 0!important}
.v120-home-actions {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 15px}
.v120-action {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:81px;padding:9px 2px;border:1px solid var(--v120-line);border-radius:16px;background:var(--v120-surface);text-decoration:none;color:var(--v120-ink)!important;touch-action:manipulation;box-shadow:var(--v120-elevation)}
.v120-action>span {font-size:23px;color:var(--v120-accent);line-height:1}
.v120-action strong {font-size:11px!important;text-align:center;font-weight:650;color:inherit!important}
.v120-action:focus-visible,.v120-action:hover {outline:2px solid var(--v120-accent);outline-offset:1px}
.v120-section-label {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 9px}
.v120-section-label h2 {font-size:16px;margin:0;color:var(--v120-ink)}
.v120-section-label a {color:var(--v120-accent);font-size:12px;font-weight:700}
.v120-disclosure {display:block;width:100%;min-width:0;background:var(--v120-surface);border:1px solid var(--v120-line);border-radius:16px;overflow:hidden;box-shadow:var(--v120-elevation)}
.v120-disclosure>summary {min-height:52px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;color:var(--v120-ink);font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.v120-disclosure>summary::-webkit-details-marker {display:none}
.v120-disclosure[open]>summary {border-bottom:1px solid var(--v120-line)}
.v120-disclosure>article {padding:16px!important;margin:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important}
.v120-disclosure:not([open]) iframe {visibility:hidden}
/* Calendar stays 7 columns. selected always readable, no hover overwrites. */
body[data-page="home"] .home-dashboard .calendar-cell.selected,
body[data-page="home"] .home-dashboard .calendar-cell.selected:hover,
body[data-page="home"] .home-dashboard .calendar-cell.selected:focus-visible {background:#0c6957!important;color:#fffaf0!important}
body[data-page="home"] .home-dashboard .calendar-cell.selected :is(.cell-solar,.cell-lunar) {color:#fffaf0!important}
body[data-page="home"] .calendar-panel {padding:15px!important}
body[data-page="home"] .today-card {padding:16px!important}
body[data-page="home"] .calendar-legend {display:none}
body[data-page="home"] .traditional-summary {min-height:58px}
/* Tools hub: one tappable row per utility; no two-column dashboard relics. */
body[data-page="tools"] .native-tools-hub {gap:var(--lvui-space-3)!important}
body[data-page="tools"] .native-tools-hero {padding:var(--lvui-space-4)!important;min-height:0!important}
body[data-page="tools"] .native-tools-hero h1 {font-size:var(--lvui-font-title)!important;overflow-wrap:anywhere}
body[data-page="tools"] .native-tools-hero p {font-size:var(--lvui-font-sm);line-height:1.6;margin:6px 0}
body[data-page="tools"] .native-tools-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
body[data-page="tools"] .native-tool-card {display:flex!important;min-height:66px!important;padding:11px 13px!important;align-items:center!important;gap:11px!important}
body[data-page="tools"] .native-tool-body strong {font-size:14px!important}
body[data-page="tools"] .native-tool-body small {font-size:11px!important;line-height:1.45}
body[data-page="tools"] .native-tools-section {margin:0!important}
/* Profile: visible native-style single flow; JS upgrades sign-in/register/recover. */
body:not([data-page]) .shell>.top {margin-bottom:14px!important;padding:12px 14px!important}
body:not([data-page]) .shell>.top .brand {font-weight:750}
body:not([data-page]) .intro {padding:12px 0 16px!important;min-height:0!important}
body:not([data-page]) .intro h1 {font-size:clamp(26px,6vw,34px)!important;line-height:1.2!important;margin:3px 0 8px!important}
body:not([data-page]) .intro p {font-size:13px!important;line-height:1.65!important}
body:not([data-page]) .intro .stamp {display:none!important}
body:not([data-page]) .shell .panel {padding:18px!important;margin-bottom:10px;border-radius:18px!important}
body:not([data-page]) .shell .panel :is(input,select,button) {min-height:44px;max-width:100%}
body:not([data-page]) .shell .panel label {font-size:13px}
body:not([data-page]) .shell #signed {display:grid;grid-template-columns:minmax(0,1fr)!important}
/* hidden class owned by account.js must always dominate the layout overrides. */
body:not([data-page]) .hidden {display:none!important}
.v120-auth-switch {display:flex;gap:5px;padding:5px;background:var(--v120-hl);border:1px solid var(--v120-line);border-radius:15px;margin:0 0 12px}
.v120-auth-switch>button {flex:1;min-width:0;min-height:43px;line-height:1.2;padding:7px 3px;border:0;border-radius:11px;background:transparent;color:var(--v120-secondary);font:600 12px/1.25 system-ui,sans-serif;cursor:pointer}
.v120-auth-switch>button[aria-pressed="true"] {background:var(--v120-surface);color:var(--v120-accent);box-shadow:var(--v120-elevation)}
body.v120-auth-ready #guest [data-auth-panel] {display:none!important}
body.v120-auth-ready #guest [data-auth-panel].v120-auth-visible {display:block!important}
/* Hide inactive auth panels and tabs while editing. */
body.v120-auth-ready #guest [data-auth-panel].hidden,
body.v120-keyboard-open:not(.lvg-admin) nav.lvg-bottom-nav {display:none!important}
body.v120-keyboard-open {padding-bottom:14px!important}
/* Small device readability; dark/light both use same CSS/structure. */
@media(max-width:355px) {
  .v120-home-actions {gap:5px}
  .v120-action {min-height:72px;padding:7px 1px}
  .v120-action strong {font-size:10px!important}
  body nav.mobile-bottom-nav.lvg-bottom-nav>a {font-size:10px!important}
}
@media (hover:none) { .v120-action:active {background:var(--v120-hl)} }
@media (prefers-reduced-motion:no-preference) {
  @supports (view-transition-name:root) { @view-transition {navigation:auto} }
  .v120-action {transition:transform .15s ease,background-color .15s ease}
  .v120-action:active {transform:scale(.98)}
}
@media (prefers-reduced-motion:reduce) { .v120-action {transition:none!important} }
@media print {
  body .site-header,body nav.lvg-bottom-nav,.v120-home-actions,.v120-auth-switch {display:none!important}
  body .app-shell {max-width:none!important}
}

/* Keep the auth segment out of signed-in profile screens. */
body:has(#guest.hidden) .v120-auth-switch {display:none!important}
/* Legibility fix: inherited v11 card copy colors were not theme-aware in Daily. */
body[data-page="daily"] .daily-quote-card blockquote,
body[data-page="daily"] .daily-quote-card .daily-quote-footer,
body[data-page="daily"] .daily-quote-card select,
body[data-page="daily"] .daily-special :is(h3,p) {color:var(--v120-ink)!important}
body[data-page="daily"] .daily-quote-card .daily-quote-footer span,
body[data-page="daily"] .daily-footnote {color:var(--v120-secondary)!important}
/* Clear light-mode action surfaces; no legacy translucent overlay. */
body[data-page="daily"] .v120-action {background:var(--v120-surface)!important;border-color:var(--v120-line)!important;color:var(--v120-ink)!important}


/* START native-polish-v1201.css */
/* Lịch Việt Glass v12.0.1 — UI refinement / typography / icon system
   UI only. No mutation to app state, schema or private data. */
:root {
  --lvg-font-ui: 'Bai Jamjuree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lvg-font-quote: 'Playfair Display', Georgia, serif;
  --lvg-focus-ring: #0b7865;
  --lvg-card-radius: 18px;
}
:root[data-theme="dark"] { --lvg-focus-ring: #e5cb88; }
html,body,
body,body button,body input,body select,body textarea,
body :is(h1,h2,h3,h4,h5,h6,nav,summary,label,small) {font-family:var(--lvg-font-ui)!important;}
/* Literary UI only. Keep long-form prayer reader's dedicated typography. */
body :is(.daily-quote-card blockquote,.quote-panel blockquote,.lvg-library-quote,
 .daily-poster-art>div,.daily-poster-art>p,#quote-text,#daily-quote,.quote-copy,.quote-content),
body[data-page="daily"] .daily-quote-card blockquote {
  font-family:var(--lvg-font-quote)!important;
  font-weight:500!important;
  letter-spacing: -.015em;
}
body :is(.daily-intro h1 span,.intro-row h1 span,.page-lead h1 span,.native-tools-hero h1 em) {
  font-family:var(--lvg-font-ui)!important;
  font-style:normal!important;
  font-weight:600!important;
}
body :is(.daily-quote-mark,.quote-decoration) {font-family:var(--lvg-font-quote)!important;}
body :is(.v120-auth-switch>button,nav.lvg-bottom-nav>a,nav.lvg-bottom-nav>a span,
 .lvg-standalone-theme-toggle,.v120-disclosure>summary) {font-family:var(--lvg-font-ui)!important;}
/* Consistent aligned card composition across the 680px centered shell. */
body[data-page="daily"] .app-shell,
body[data-page="daily"] main {min-width:0!important;}
body[data-page="daily"] .daily-hero,
body[data-page="daily"] .daily-date-tile,
body[data-page="daily"] .v120-home-actions,
body[data-page="daily"] .v120-section-label,
body[data-page="daily"] .daily-main-grid,
body[data-page="daily"] .daily-main-grid :is(.daily-facts,.daily-quote-card,.daily-special,.v120-disclosure) {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body[data-page="daily"] .daily-hero {display:flex!important;flex-direction:column!important;gap:12px!important;}
body[data-page="daily"] .daily-date-tile {
  display:grid!important;grid-template-columns:minmax(100px, 1fr) minmax(0, 1.25fr)!important;
  grid-template-rows:auto auto auto!important;
  align-items:center;gap:3px 12px!important;
  padding:18px 22px!important;
  border-radius:20px!important;
}
body[data-page="daily"] .daily-date-tile>.eyebrow {grid-column:1/-1!important;grid-row:1!important;letter-spacing:.12em;}
body[data-page="daily"] .daily-date-tile>.daily-number {grid-column:1!important;grid-row:2/4!important;justify-self:start!important;
  font-size:clamp(68px,15vw,110px)!important;line-height:1!important;letter-spacing:-.05em!important;}
body[data-page="daily"] .daily-date-tile h2 {grid-column:2!important;grid-row:2!important;text-align:left!important;
  font-size:clamp(16px,3vw,22px)!important;line-height:1.25;white-space:normal;}
body[data-page="daily"] .daily-date-tile .daily-lunar {grid-column:2!important;grid-row:3!important;text-align:left!important;
  width:max-content;max-width:100%;}
body[data-page="daily"] .daily-main-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important;}
body[data-page="daily"] .daily-main-grid>.daily-main-stack {display:contents!important;}
body[data-page="daily"] .daily-main-grid :is(.daily-facts,.daily-quote-card,.daily-special,.v120-disclosure) {
  grid-column:1/-1!important;grid-row:auto!important;align-self:start!important;height:auto!important;min-height:0!important;
}
body[data-page="daily"] .daily-main-grid .daily-facts {order:1!important;}
body[data-page="daily"] .daily-main-grid .daily-quote-card {order:2!important;}
body[data-page="daily"] .daily-main-grid .daily-special {order:3!important;}
body[data-page="daily"] .daily-main-grid .v120-poster-disclosure {order:4!important;}
body[data-page="daily"] .daily-main-grid .v120-widget-disclosure {order:5!important;}
body[data-page="daily"] .daily-quote-card blockquote {font-size:clamp(18px,2.7vw,22px)!important;line-height:1.65!important;}
/* Unified icon language: SVG outline, no font-glyph faux icons. */
.v120-action {min-width:0;gap:8px!important;padding:13px 7px!important;min-height:90px!important;
  border-radius:16px!important;transition:transform .15s ease,border-color .15s ease!important;}
.v120-action .v120-action-icon {display:grid;place-items:center;width:35px;height:35px;
  border-radius:11px;background:var(--v120-hl);color:var(--v120-accent);line-height:1!important;}
.v120-action .v120-action-icon svg {display:block;width:21px;height:21px;stroke-width:1.9;}
.v120-action strong {font-size:12px!important;font-weight:600!important;line-height:1.25!important;}
body :is(.native-tool-icon,.native-tool-arrow) svg {stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
body nav.lvg-bottom-nav>a svg {stroke-width:1.9!important;}
body nav.lvg-bottom-nav>a {font-weight:500!important;}
body nav.lvg-bottom-nav>a[aria-current="page"] {font-weight:700!important;}
/* Disclosure rows: explicit shared icon and chevron, no hanging tiny symbol. */
body[data-page="daily"] .v120-disclosure {border-radius:16px!important;overflow:hidden;}
body[data-page="daily"] .v120-disclosure>summary {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;min-height:58px!important;padding:12px 16px!important;
  font-size:13px!important;font-weight:600!important;line-height:1.35!important;
}
.v120-summary-copy {display:inline-flex;align-items:center;gap:10px;min-width:0;}
.v120-summary-copy svg {width:19px;height:19px;stroke-width:1.9;color:var(--v120-accent);flex-shrink:0;}
.v120-summary-chevron {width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;
  color:var(--v120-secondary);border-radius:10px;background:var(--v120-hl);
  transition:transform .18s ease;}
.v120-summary-chevron svg {width:18px;height:18px;stroke-width:2;}
.v120-disclosure[open] .v120-summary-chevron {transform:rotate(180deg);}
.v120-disclosure>summary:focus-visible {outline:2px solid var(--lvg-focus-ring);outline-offset:-3px;}
.v120-disclosure>summary:hover {background:var(--v120-hl);}
/* Tool rows: same spacing, decorative icon container, clear labels. */
body[data-page="tools"] .native-tool-card {border-radius:16px!important;min-height:76px!important;padding:12px 14px!important;}
body[data-page="tools"] .native-tool-icon {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;
  border-radius:13px;background:var(--v120-hl)!important;color:var(--v120-accent)!important;}
body[data-page="tools"] .native-tool-icon svg {width:22px;height:22px;}
body[data-page="tools"] .native-tool-body strong {font-size:14px!important;font-weight:700!important;}
body[data-page="tools"] .native-tool-body small {font-size:12px!important;line-height:1.5!important;}
/* Lower glare; maintain tap contrast and selected states for both themes. */
body[data-page="daily"] :is(.daily-facts,.daily-quote-card,.daily-special,.v120-disclosure) {
  border-color:var(--v120-line)!important;
  box-shadow:var(--v120-elevation)!important;
}
@media (max-width:360px) {
  .v120-action {padding-inline:3px!important;min-height:82px!important;}
  .v120-action strong {font-size:10.5px!important;}
  body[data-page="daily"] .daily-date-tile {padding:15px 16px!important;}
}
@media (prefers-reduced-motion:reduce){.v120-summary-chevron,.v120-action{transition:none!important}}



/* original public-core-b-v142.css */
/* v14.2 prebuilt CSS bundle; keep original order. */

/* START app-header-v1211.css */
/* v12.1.2: One visual header contract across main tabs and nested screens. */
:root,html[data-theme="light"]{
  --ah-bg:rgba(252,255,251,.94);--ah-ink:#143d33;--ah-sub:#58796b;
  --ah-border:#d1e1d7;--ah-brand:#075e4f;--ah-icon:#154a3e;
  --ah-shadow:0 8px 22px rgba(2,43,33,.065);
  --ah-sheet-bg:#f8fdf9;
}
html[data-theme="dark"]{
  --ah-bg:rgba(11,56,47,.95);--ah-ink:#f5edd9;--ah-sub:#bdd1c5;
  --ah-border:#376b5b;--ah-brand:#0b5246;--ah-icon:#e9d38d;
  --ah-shadow:0 8px 25px rgba(0,19,15,.19);
  --ah-sheet-bg:#113d33;
}
/* On all routes, header has SAME geometry. Disable legacy floating rail. */
body .lvg-app-header.site-header{
  box-sizing:border-box!important;position:relative!important;z-index:45!important;
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:space-between!important;gap:10px!important;
  width:100%!important;max-width:680px!important;min-width:0!important;
  min-height:58px!important;height:58px!important;margin:8px auto 14px!important;
  padding:7px 9px!important;border:1px solid var(--ah-border)!important;
  border-radius:17px!important;background:var(--ah-bg)!important;
  box-shadow:var(--ah-shadow)!important;color:var(--ah-ink)!important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  font-family:'Bai Jamjuree',system-ui,sans-serif!important
}
body .lvg-app-header .nav-links,
body .lvg-app-header .header-cta{display:none!important}
body .lvg-app-header .lvg-header-brand{
  box-sizing:border-box!important;position:static!important;display:flex!important;
  align-items:center!important;justify-content:flex-start!important;gap:9px!important;
  flex:1 1 auto!important;width:auto!important;min-width:0!important;
  padding:0!important;margin:0!important;background:transparent!important;
  border:none!important;box-shadow:none!important;text-decoration:none!important;color:var(--ah-ink)!important;
  font-family:'Bai Jamjuree',system-ui,sans-serif!important
}
body .lvg-app-header .lvg-header-mark{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  flex:none!important;width:34px!important;height:34px!important;
  background:var(--ah-brand)!important;color:#efd48b!important;
  border-radius:11px!important;box-shadow:none!important;padding:0!important
}
body .lvg-app-header .lvg-header-mark svg{display:block;width:22px;height:22px;stroke:currentColor}
body .lvg-app-header .lvg-header-brand-text{display:grid!important;align-items:center;gap:1px;min-width:0;line-height:1.2}
body .lvg-app-header .lvg-header-brand-text strong{
  font:700 14px/1.22 'Bai Jamjuree',system-ui,sans-serif!important;
  letter-spacing:-.035em!important;color:var(--ah-ink)!important;white-space:nowrap
}
body .lvg-app-header .lvg-header-brand-text small{
  display:block!important;margin:0!important;font:600 8px/1.25 'Bai Jamjuree',system-ui,sans-serif!important;
  letter-spacing:.075em!important;color:var(--ah-sub)!important;white-space:nowrap;
  text-transform:uppercase!important
}
body .lvg-app-header .lvg-header-actions{display:flex!important;gap:7px!important;align-items:center!important;flex:none!important;margin:0!important}
body .lvg-app-header .lvg-header-actions .round-icon{
  display:grid!important;place-items:center!important;box-sizing:border-box!important;
  position:static!important;flex:none!important;width:40px!important;height:40px!important;
  min-width:40px!important;min-height:40px!important;padding:0!important;margin:0!important;
  border:1px solid var(--ah-border)!important;border-radius:12px!important;
  background:transparent!important;color:var(--ah-icon)!important;
  box-shadow:none!important;transform:none!important;cursor:pointer!important
}
body .lvg-app-header .lvg-header-actions svg{
  display:block!important;width:19px!important;height:19px!important;fill:none!important;
  stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important
}
body .lvg-app-header :is(a,button):focus-visible,.lvg-screen-back a:focus-visible{
  outline:3px solid var(--ah-icon)!important;outline-offset:2px!important
}
body>.lvg-app-header.site-header{width:min(calc(100% - 24px),640px)!important;max-width:640px!important}
body:has(.lvg-app-header) .lvg-standalone-theme-toggle{display:none!important}
/* Back navigation belongs to context beneath the app header, not inside brand/navigation chrome. */
body .lvg-screen-back{box-sizing:border-box;max-width:680px;width:min(calc(100% - 24px),680px);margin:0 auto 14px;display:flex;align-items:center;gap:9px;font:600 13px/1.4 'Bai Jamjuree',system-ui,sans-serif;color:var(--ah-ink)}
body .lvg-screen-back .lvg-header-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 9px;border:1px solid var(--ah-border);border-radius:12px;background:var(--ah-bg);color:var(--ah-ink);text-decoration:none}
body .lvg-screen-back svg{width:17px;height:17px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
body .lvg-screen-back-title{color:var(--ah-sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Shared quick sheet for legacy independent/private pages. */
body .lvg-unified-quick-sheet:not([hidden]){
  box-sizing:border-box;position:fixed;left:50%;bottom:max(8px,env(safe-area-inset-bottom));
  transform:translateX(-50%);z-index:1002;width:min(calc(100% - 24px),520px);
  max-height:min(80dvh,670px);overflow-y:auto;padding:18px;
  border-radius:22px;background:var(--ah-sheet-bg);border:1px solid var(--ah-border);
  color:var(--ah-ink);box-shadow:0 25px 80px rgba(0,0,0,.3)
}
body .native-sheet-overlay:not([hidden]){position:fixed;inset:0;z-index:1001;background:rgba(0,23,19,.6)}
body .lvg-unified-quick-sheet .native-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
body .lvg-unified-quick-sheet h2{font:700 18px/1.3 'Bai Jamjuree',system-ui,sans-serif;margin:0;color:var(--ah-ink)}
body .lvg-unified-quick-sheet .native-sheet-heading button{min-width:44px;min-height:44px;background:transparent;border:1px solid var(--ah-border);border-radius:11px;color:var(--ah-ink);font:600 24px/1 sans-serif}
body .lvg-unified-quick-sheet .native-sheet-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body .lvg-unified-quick-sheet .native-sheet-links a{display:flex;justify-content:space-between;align-items:center;min-height:49px;padding:11px;border:1px solid var(--ah-border);border-radius:12px;background:var(--ah-bg);color:var(--ah-ink);text-decoration:none;font:600 13px/1.4 'Bai Jamjuree',system-ui,sans-serif}
body .lvg-unified-quick-sheet .native-sheet-all{display:block;text-align:center;padding:14px;color:var(--ah-ink);font-weight:700;text-decoration:none}
body.native-sheet-visible{overflow:hidden}
@media(max-width:420px){body .lvg-app-header.site-header{gap:7px!important}body .lvg-app-header .lvg-header-actions{gap:5px!important}body .lvg-app-header .lvg-header-brand-text strong{font-size:13px!important}}
@media(max-width:350px){body .lvg-unified-quick-sheet .native-sheet-links{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-transparency:reduce){body .lvg-app-header.site-header{backdrop-filter:none;-webkit-backdrop-filter:none}}


/* START readability-v1213.css */
/* Lịch Việt Glass v12.1.3 — user-facing readability & plain-language design tokens.
   The admin interface, backend, APIs, calendar math and source formatting are unchanged. */
:root,html[data-theme="light"]{
  --read-text:#173f34;--read-muted:#496b5e;--read-label:#245549;
  --read-focus:#0b765f;--read-field:#f9fcf9;
}
html[data-theme="dark"]{
  --read-text:#f3efdf;--read-muted:#c4d9cc;--read-label:#d8e6d9;
  --read-focus:#e2c77f;--read-field:#153f35;
}
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:'Bai Jamjuree',system-ui,sans-serif!important;font-size:16px;line-height:1.6}
/* Text hierarchy: readable labels instead of the scattered 8-11px legacy tokens. */
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.native-tools-hub,.finder-main,.v1211-personal) :is(p,li){line-height:1.65}
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.native-tools-hub,.finder-main,.v1211-personal) :is(.muted,.fine,.field-helper,.field-hint,.studio-status,.studio-footnote,.rule-disclaimer,.sync-hint,.mt-footnote,.us-help,.us-muted,.finder-help,.native-tools-note,.v121-dashboard-empty p){font-size:14px!important;line-height:1.65!important;color:var(--read-muted)!important}
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.finder-main,.v1211-personal) :is(label,.field>label,.field-heading>label){font-size:15px!important;line-height:1.45!important;font-weight:600;color:var(--read-label)}
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.finder-main,.v1211-personal) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){font-family:inherit!important;font-size:16px!important;line-height:1.5!important;min-height:46px;max-width:100%}
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.finder-main,.v1211-personal) :is(button,.primary-button,.secondary-button,.sync-btn,.v121-settings-menu a,.v121-settings-menu button){font-family:inherit!important;font-size:15px;line-height:1.4;}
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.finder-main,.v1211-personal) :is(h1){font-size:clamp(26px,5vw,30px);line-height:1.2}
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.finder-main,.v1211-personal) :is(h2){line-height:1.3}
/* Very small all-caps and secondary copy must never be the only way to understand a control. */
body :is(.shell,.app-shell,.mt-shell,.us-shell,.sync-wrap,.lr-wrap,.saved-shell,.finder-main,.v1211-personal) :is(.eyebrow,.section-kicker,.mt-kicker,.traditional-card-kicker,.v1211-eyebrow,.rule-version,.daily-stat-label,.field-hint,.field-helper,.studio-status,.hours-intro,.traditional-card small,.traditional-card p){font-size:13px!important;line-height:1.55!important;letter-spacing:.045em}
/* Header logo tagline was only 8px. Keep the header 58px tall and avoid overflow. */
body .lvg-app-header .lvg-header-brand-text small{font-size:11px!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important}
body .lvg-app-header .lvg-header-brand-text strong{font-size:15px!important;letter-spacing:-.02em!important}
body nav.mobile-bottom-nav.lvg-bottom-nav>a,body nav.mobile-bottom-nav.lvg-bottom-nav>a span{font-size:12px!important;line-height:1.25!important;letter-spacing:0!important}
body nav.mobile-bottom-nav.lvg-bottom-nav>a{min-height:58px!important;height:auto!important;gap:4px!important}
body nav.mobile-bottom-nav.lvg-bottom-nav>a svg{width:23px!important;height:23px!important}
/* Compact quick-action cards: preserve 4 columns but increase labels. */
body .v120-action strong,body .native-tool-body small{font-size:13px!important;line-height:1.4!important}
body .native-tool-body strong{font-size:16px!important;line-height:1.4!important}
body .native-tools-hero p,body .v121-dashboard-intro span,body .v121-finder-toolbar span{font-size:14px!important;line-height:1.6!important}
body .daily-special p,body .traditional-heading p{font-size:14px!important;line-height:1.65!important}
body .traditional-card p,body .traditional-card small{letter-spacing:0!important}
/* Calendar needs a dedicated tight scale because all seven weekday columns must fit at 320px. */
body .calendar-cell .cell-solar{font-size:clamp(13px,3.7vw,16px)!important}
body .calendar-cell .cell-lunar{font-size:clamp(10px,2.9vw,12px)!important;line-height:1.3!important}
body .hour-card :is(.hour-time,.hour-status,.hour-canchi,.hour-deity){font-size:12px!important;line-height:1.4!important}
/* Only true quote content uses Playfair Display. */
body :is(.daily-quote-card blockquote,.quote-panel blockquote,.daily-quote-body,.quote-content,.quote-text){font-family:'Playfair Display',Georgia,serif!important}
/* Plain controls & iOS zoom safety. */
body :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--read-focus)!important;outline-offset:2px}
body :is(p,.muted,.fine,small,.field-hint){overflow-wrap:break-word}
@media(max-width:390px){
 body .lvg-app-header .lvg-header-brand-text strong{font-size:14px!important}
 body .lvg-app-header .lvg-header-brand-text small{font-size:10px!important}
 body nav.mobile-bottom-nav.lvg-bottom-nav>a,body nav.mobile-bottom-nav.lvg-bottom-nav>a span{font-size:11.5px!important}
 body .v120-action strong{font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){body :is(button,a,input,select){scroll-behavior:auto}}


/* START typography-native-v1214.css */
/* v12.1.4 — consolidated public typography and anniversary screen (never Admin).
   Font CSS is loaded from the common <head>, not late @import or per-page font choice. */
:root {
  --lvg-font-ui:'Bai Jamjuree',Arial,sans-serif;
  --lvg-font-quote:'Playfair Display',Georgia,serif;
  --lvg-ui-body:16px;--lvg-ui-caption:14px;--lvg-ui-label:15px;
}
html,body {font-family:var(--lvg-font-ui)!important;font-synthesis:none}
body :is(button,input,select,textarea,optgroup,option,label,summary,nav) {font-family:var(--lvg-font-ui)!important}
body nav.mobile-bottom-nav.lvg-bottom-nav>a,
body nav.mobile-bottom-nav.lvg-bottom-nav>a span {
  font-family:var(--lvg-font-ui)!important;
  font-size:12px!important;font-weight:600!important;line-height:1.25!important;
  letter-spacing:0!important;
}
body nav.mobile-bottom-nav.lvg-bottom-nav>a svg {width:23px!important;height:23px!important}
/* Quotes get a separate literary face; everyday headings don't. */
body :is(.quote-text,.quote-content,.daily-quote-body,.daily-quote-card blockquote,.quote-panel blockquote,#quote-text,#daily-quote) {
  font-family:var(--lvg-font-quote)!important;
}
@media (max-width:355px) {
 body nav.mobile-bottom-nav.lvg-bottom-nav>a,
 body nav.mobile-bottom-nav.lvg-bottom-nav>a span {font-size:11px!important}
}
/* Anniversary native screen: scoped rules override the original v10.5 form page. */
body.lvg-anniversary-page {
  --ak-bg:#eaf3ed;--ak-card:#fbfdfb;--ak-card-edge:#d4e4da;
  --ak-text:#193f34;--ak-muted:#4f7062;--ak-primary:#0b6651;
  --ak-primary-text:#fffdf7;--ak-soft:#e0f1e7;--ak-soft-text:#0b5946;
  --ak-shadow:0 12px 32px rgba(19,76,49,.075);
  background:radial-gradient(ellipse at 15% 0%,rgba(174,217,197,.48),transparent 44%),var(--ak-bg)!important;
  color:var(--ak-text)!important;
}
html[data-theme="dark"] body.lvg-anniversary-page {
  --ak-bg:#082f28;--ak-card:#12473b;--ak-card-edge:#397462;
  --ak-text:#f3efdc;--ak-muted:#c3d9cd;--ak-primary:#e9ce8a;
  --ak-primary-text:#153b31;--ak-soft:#24584b;--ak-soft-text:#efddae;
  --ak-shadow:0 12px 30px rgba(0,24,16,.22);
  background:radial-gradient(ellipse at 0% 0%,rgba(28,112,86,.2),transparent 45%),var(--ak-bg)!important;
}
body.lvg-anniversary-page .ak-shell {
  width:100%!important;max-width:680px!important;margin:0 auto!important;
  padding:16px clamp(12px,3vw,20px) calc(95px + env(safe-area-inset-bottom,0px))!important;
}
body.lvg-anniversary-page .ak-hero {padding:0 2px 16px!important}
body.lvg-anniversary-page .ak-hero h1 {
  font:700 clamp(26px,5.5vw,30px)/1.22 var(--lvg-font-ui)!important;
  margin:5px 0 9px!important;letter-spacing:-.035em;color:var(--ak-text)!important;
}
body.lvg-anniversary-page .ak-hero p {
  font:400 15px/1.65 var(--lvg-font-ui)!important;
  margin:0!important;max-width:40ch;color:var(--ak-muted)!important;
}
body.lvg-anniversary-page .ak-eyebrow {
  font:700 12px/1.35 var(--lvg-font-ui)!important;
  color:var(--ak-soft-text)!important;letter-spacing:.065em!important;
}
body.lvg-anniversary-page .ak-card,
body.lvg-anniversary-page .ak-more {
  background:var(--ak-card)!important;border:1px solid var(--ak-card-edge)!important;
  color:var(--ak-text)!important;border-radius:19px!important;
  box-shadow:var(--ak-shadow)!important;
}
body.lvg-anniversary-page .ak-card {padding:clamp(18px,4vw,24px)!important}
body.lvg-anniversary-page .ak-card h2 {font:700 19px/1.35 var(--lvg-font-ui)!important;color:var(--ak-text)!important;margin:5px 0 12px!important}
body.lvg-anniversary-page .ak-card p,
body.lvg-anniversary-page .ak-more p {font:400 15px/1.65 var(--lvg-font-ui)!important;color:var(--ak-muted)!important}
body.lvg-anniversary-page :is(.ak-empty,.ak-guest-note) {font-size:14px!important;color:var(--ak-muted)!important}
body.lvg-anniversary-page .ak-status {
  padding:12px 14px!important;margin:0 0 12px!important;
  background:var(--ak-soft)!important;border:1px solid var(--ak-card-edge)!important;
  color:var(--ak-text)!important;font-size:14px!important;
}
body.lvg-anniversary-page .ak-guest {
  margin-top:4px!important;padding:clamp(24px,5vw,36px)!important;
  text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;
}
body.lvg-anniversary-page .ak-guest[hidden] {display:none!important}
body.lvg-anniversary-page .ak-guest h2 {margin:8px 0 0!important;font-size:21px!important;line-height:1.34!important}
body.lvg-anniversary-page .ak-guest p {margin:0!important;max-width:37ch}
body.lvg-anniversary-page .ak-guest-mark {
  display:grid;place-items:center;width:64px;height:64px;border-radius:20px;
  background:var(--ak-soft);color:var(--ak-soft-text);
}
body.lvg-anniversary-page .ak-guest-mark svg {width:34px;height:34px}
body.lvg-anniversary-page .ak-btn {
  font:600 15px/1.3 var(--lvg-font-ui)!important;min-height:48px!important;
  border-radius:13px!important;background:var(--ak-primary)!important;
  color:var(--ak-primary-text)!important;border:1px solid var(--ak-primary)!important;
  text-decoration:none!important;gap:7px;
}
body.lvg-anniversary-page .ak-btn svg {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
body.lvg-anniversary-page .ak-primary-cta {width:100%;max-width:320px;margin:15px 0 8px;justify-content:center}
body.lvg-anniversary-page .ak-btn.ak-muted {
  background:var(--ak-soft)!important;color:var(--ak-soft-text)!important;
  border-color:var(--ak-card-edge)!important;
}
body.lvg-anniversary-page .ak-btn.ak-danger {
  background:transparent!important;color:#a04b38!important;border-color:#e1ada1!important;
}
html[data-theme="dark"] body.lvg-anniversary-page .ak-btn.ak-danger {color:#ffc9bd!important;border-color:#9d6c5b!important}
body.lvg-anniversary-page :is(.ak-btn,.ak-icon-button,.ak-more summary):focus-visible {
  outline:3px solid var(--ak-primary)!important;outline-offset:3px;
}
body.lvg-anniversary-page .ak-results {margin:0!important}
body.lvg-anniversary-page .ak-primary-actions {display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 18px}
body.lvg-anniversary-page .ak-primary-actions .ak-btn {flex:1 1 185px;white-space:normal}
body.lvg-anniversary-page .ak-section-head {align-items:center!important}
body.lvg-anniversary-page .ak-section-head h2 {margin:4px 0!important}
body.lvg-anniversary-page .ak-section-head h2 span {font-size:14px;color:var(--ak-muted)}
body.lvg-anniversary-page .ak-icon-button {
  display:grid;place-items:center;width:44px;height:44px;min-width:44px;
  padding:0;background:var(--ak-soft);border:1px solid var(--ak-card-edge);
  border-radius:12px;color:var(--ak-soft-text);cursor:pointer;
}
body.lvg-anniversary-page .ak-icon-button svg,
body.lvg-anniversary-page .ak-more svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.lvg-anniversary-page .ak-collection {
  background:var(--ak-soft)!important;border-color:var(--ak-card-edge)!important;padding:16px!important;
}
body.lvg-anniversary-page .ak-collection h3 {font-size:18px!important;color:var(--ak-text)!important}
body.lvg-anniversary-page .ak-collection p,
body.lvg-anniversary-page .ak-entry small {font-size:14px!important;color:var(--ak-muted)!important}
body.lvg-anniversary-page .ak-entry {border-color:var(--ak-card-edge)!important}
body.lvg-anniversary-page .ak-entry strong {font-size:15px}
body.lvg-anniversary-page .ak-entry-actions .ak-btn {font-size:13px!important;min-height:44px!important}
body.lvg-anniversary-page .ak-more {margin-top:12px;overflow:hidden}
body.lvg-anniversary-page .ak-more summary {
  cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:16px 18px;list-style:none;
  font-size:15px;font-weight:600;color:var(--ak-text);
}
body.lvg-anniversary-page .ak-more summary::-webkit-details-marker {display:none}
body.lvg-anniversary-page .ak-more[open] svg {transform:rotate(180deg)}
body.lvg-anniversary-page .ak-more>div {padding:0 18px 16px}
body.lvg-anniversary-page .ak-more a {color:var(--ak-soft-text);font-weight:600}
/* Native dialogs: modal on desktop, bottom sheet on small screens. */
body.lvg-anniversary-page .ak-dialog {
  box-sizing:border-box;width:min(600px,calc(100% - 24px));max-width:600px;
  max-height:min(88dvh,850px);overflow:auto;overscroll-behavior:contain;
  padding:0;margin:auto;background:var(--ak-card);color:var(--ak-text);
  border:1px solid var(--ak-card-edge);border-radius:22px;
  box-shadow:0 20px 70px rgba(0,22,15,.25);
}
body.lvg-anniversary-page .ak-dialog:not([open]) {display:none!important}
body.lvg-anniversary-page .ak-dialog::backdrop {background:rgba(0,28,23,.56);backdrop-filter:blur(3px)}
body.lvg-anniversary-page .ak-dialog-head {
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;
  padding:17px 20px;background:var(--ak-card);border-bottom:1px solid var(--ak-card-edge);
}
body.lvg-anniversary-page .ak-dialog-head h2 {font-size:19px;line-height:1.4;margin:4px 0 0}
body.lvg-anniversary-page .ak-dialog-body {padding:0 20px 22px}
body.lvg-anniversary-page .ak-form-wrapper label {
  display:block;font-size:15px!important;font-weight:600!important;
  color:var(--ak-text)!important;line-height:1.5!important;margin:13px 0 6px!important;
}
body.lvg-anniversary-page .ak-form-wrapper :is(input:not([type="hidden"]),select,textarea) {
  width:100%;max-width:100%;min-height:48px;background:var(--ak-card)!important;
  border:1px solid var(--ak-card-edge)!important;color:var(--ak-text)!important;
  border-radius:12px;font:400 16px/1.5 var(--lvg-font-ui)!important;
}
body.lvg-anniversary-page .ak-form-wrapper :is(input,select,textarea):focus-visible {outline:3px solid var(--ak-primary)!important;outline-offset:2px}
body.lvg-anniversary-page .ak-form-wrapper .ak-help {font-size:14px!important;color:var(--ak-muted)!important}
body.lvg-anniversary-page .ak-dialog :is(.ak-buttons,.ak-pair) {gap:10px}
body.lvg-anniversary-page .ak-noscript {max-width:680px;margin:0 auto;padding:20px;font-size:15px}
@media(max-width:640px) {
 body.lvg-anniversary-page .ak-dialog[open] {margin:auto 0 0;width:100%;max-width:none;max-height:calc(94dvh - env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom,0px)}
 body.lvg-anniversary-page .ak-dialog-body {padding:0 16px 24px}
 body.lvg-anniversary-page .ak-hero {padding-bottom:14px!important}
 body.lvg-anniversary-page .ak-pair {grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){body.lvg-anniversary-page *{scroll-behavior:auto!important;transition:none!important}}


/* START install-native-v1215.css */
/* v12.1.5 — install card, native Emerald Glass. Only shown when install is supported. */
/* Keep installation independent of legacy mobile-quick-actions & old CSS selectors. */
body .lvg-install-promo[hidden],
body #pwa-install[hidden] { display:none!important; }
body[data-page="home"] .lvg-install-promo {
  box-sizing:border-box; width:100%; max-width:100%; min-width:0;
  margin:0 0 14px; padding:0;
}
body[data-page="home"] .lvg-install-card {
  -webkit-appearance:none; appearance:none;
  box-sizing:border-box; width:100%; min-height:68px;
  padding:12px 15px; margin:0; border-radius:18px;
  display:flex; align-items:center; gap:13px;
  border:1px solid rgba(21,95,77,.19);
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(238,248,242,.90));
  box-shadow:0 8px 25px rgba(18,69,54,.07), inset 0 1px rgba(255,255,255,.9);
  color:#153e34; text-align:left;
  font:600 15px/1.4 "Bai Jamjuree", sans-serif;
  cursor:pointer; touch-action:manipulation;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body[data-page="home"] .lvg-install-card__icon,
body[data-page="home"] .lvg-install-card__arrow {
  display:grid; place-items:center; flex-shrink:0;
}
body[data-page="home"] .lvg-install-card__icon {
  width:44px; height:44px; border-radius:14px;
  background:#e0eee5; color:#0f725e;
}
body[data-page="home"] .lvg-install-card__icon svg { width:22px;height:22px; }
body[data-page="home"] .lvg-install-card__copy { display:flex;flex-direction:column;gap:2px;min-width:0;flex:1; }
body[data-page="home"] .lvg-install-card__copy strong {
  color:inherit; font:700 16px/1.35 "Bai Jamjuree",sans-serif;
}
body[data-page="home"] .lvg-install-card__copy small {
  color:#52786b; font:500 14px/1.45 "Bai Jamjuree",sans-serif;
}
body[data-page="home"] .lvg-install-card__arrow {
  color:#217461; width:30px; height:30px;
}
body[data-page="home"] .lvg-install-card:is(:hover,:focus-visible) {
  border-color:rgba(24,112,90,.38); box-shadow:0 10px 26px rgba(18,69,54,.12);
}
body[data-page="home"] .lvg-install-card:focus-visible {
  outline:3px solid #b78e39; outline-offset:3px;
}
body[data-page="home"] .lvg-install-card:active { transform:scale(.992); }
:root[data-theme="dark"] body[data-page="home"] .lvg-install-card {
  background:linear-gradient(135deg,rgba(19,79,65,.97),rgba(11,61,52,.97));
  border-color:rgba(229,199,119,.28); color:#f7efdf;
  box-shadow:0 10px 27px rgba(0,20,16,.2), inset 0 1px rgba(255,255,255,.07);
}
:root[data-theme="dark"] body[data-page="home"] .lvg-install-card__icon { background:rgba(229,199,119,.13); color:#ebd28b; }
:root[data-theme="dark"] body[data-page="home"] .lvg-install-card__copy small {color:#c2d9ce;}
:root[data-theme="dark"] body[data-page="home"] .lvg-install-card__arrow {color:#ebd28b;}
:root[data-theme="dark"] body[data-page="home"] .lvg-install-card:is(:hover,:focus-visible) {border-color:rgba(229,199,119,.56);}
/* Safari iOS install instructions: never suggest automatic install where no prompt exists. */
body .lvg-install-guide {
  box-sizing:border-box; width:min(420px,calc(100% - 32px)); max-width:420px;
  margin:auto; padding:0; border:1px solid #d5e4d9; border-radius:22px;
  color:#163f34; background:#f7fcf8;
  box-shadow:0 20px 60px rgba(0,28,23,.22);
  font-family:"Bai Jamjuree",sans-serif;
}
body .lvg-install-guide::backdrop {background:rgba(6,30,25,.58);backdrop-filter:blur(3px)}
body .lvg-install-guide__body {padding:24px;display:flex;flex-direction:column;gap:12px;}
body .lvg-install-guide__icon {display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e0eee5;color:#0f725e;}
body .lvg-install-guide h2 {font:700 20px/1.35 "Bai Jamjuree",sans-serif;color:inherit;margin:0;}
body .lvg-install-guide p {font:500 15px/1.65 "Bai Jamjuree",sans-serif;margin:0;color:#486b60;}
body .lvg-install-guide__close {
  min-height:46px;border:0;border-radius:13px;background:#0e7059;color:#fff;
  font:700 15px/1.3 "Bai Jamjuree",sans-serif;cursor:pointer;
}
body .lvg-install-guide__close:focus-visible{outline:3px solid #c5a35b;outline-offset:3px}
:root[data-theme="dark"] body .lvg-install-guide{color:#f4ead9;background:#103f35;border-color:#496f60;}
:root[data-theme="dark"] body .lvg-install-guide__icon{color:#edd28c;background:#245343;}
:root[data-theme="dark"] body .lvg-install-guide p{color:#c5dbd0;}
@media(max-width:360px){
 body[data-page="home"] .lvg-install-card{padding:10px 12px;gap:10px;}
 body[data-page="home"] .lvg-install-card__copy strong{font-size:15px;}
}
@media(prefers-reduced-motion:reduce){body[data-page="home"] .lvg-install-card{transition:none!important;}}


/* START mobile-fullwidth-v1217.css */
/* LVG v12.1.7 — Native Full-Width & Flat Surfaces
   Loaded LAST on user-facing routes; never applied to Admin. Preserves component IDs, APIs and controls. */
:root {
  --lvg-mobile-gutter: 10px;
  --lvg-native-radius: 17px;
  --lvg-studio-ink: #183f35;
  --lvg-studio-line: rgba(25,101,80,.13);
  --lvg-studio-soft: rgba(16,110,81,.055);
  --lvg-studio-card: #fafffa;
}
html[data-theme="dark"] {
  --lvg-studio-ink: #f1eddf;
  --lvg-studio-line: rgba(206,225,206,.18);
  --lvg-studio-soft: rgba(212,232,215,.06);
  --lvg-studio-card: #10483d;
}
/* Unified desktop container, a SINGLE mobile outside gutter. */
body:not(.lvg-admin) :where(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.plans-shell) {
  min-width:0;
  box-sizing:border-box;
}
body:not(.lvg-admin) :where(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.plans-shell) :where(.studio-layout,.studio-tools,.preview-area,.studio-control-grid,.us-grid,.mt-grid,.panel,.glass,.card,.finder-card) {min-width:0;}
/* Form defaults, including older controls in Studio. */
body:not(.lvg-admin) :where(input,select,textarea,button) {font-family:"Bai Jamjuree",system-ui,sans-serif;}
body:not(.lvg-admin) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) {
  max-width:100%; min-width:0; font-size:16px;
}
body:not(.lvg-admin) :where(.lvg-native-bottom,.lvg-native-bottom a,.lvg-native-bottom small) {
  font-family:"Bai Jamjuree",system-ui,sans-serif!important;
}
/* Design: outer card is the visual surface. Inner functional sections get separators, not more glass cards. */
body :is(.studio-tools,.us-panel,.ak-card,.mt-panel,.finder-card,.lr-card,.sync-card,.traditional-card) > :is(.studio-drafts,.studio-v95-mode,.studio-feature-disclosure,.v121-studio-advanced,.field.studio-v95-mode) {
  box-shadow:none!important;
}
/* Standalone public views: flatten nested action/field panels only, leave separate siblings intact. */
body :is(.us-panel,.ak-card,.mt-panel,.lr-card,.sync-card,.saved-panel) > :is(.panel,.card,.glass,.form-card):not([role="dialog"]) {
  border:0!important;box-shadow:none!important;background:transparent!important;
  border-radius:0!important;padding-inline:0!important;
}
body :is(.us-panel,.ak-card,.mt-panel,.lr-card,.sync-card) > :is(.panel,.card,.glass,.form-card) + :is(.panel,.card,.glass,.form-card) {
  border-top:1px solid var(--lvg-studio-line)!important;padding-top:14px!important;
}
/* Studio has one background surface and a readable vertical structure. */
body[data-page="poster"] .poster-lead {margin-block:15px 13px!important;}
body[data-page="poster"] .poster-lead h1 {font-family:"Bai Jamjuree",system-ui,sans-serif!important;font-size:clamp(24px,5vw,32px)!important;line-height:1.2!important;letter-spacing:-.025em!important;}
body[data-page="poster"] .poster-lead h1 span {font-family:inherit!important;font-style:normal!important;}
body[data-page="poster"] .poster-lead p {font-size:14px;line-height:1.55;max-width:540px;}
body[data-page="poster"] .studio-layout[data-v121-studio] {
  width:100%!important;max-width:none!important;min-width:0!important;
  grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
  padding:0!important;margin:0!important;
}
body[data-page="poster"] .studio-layout .studio-tools {
  width:100%!important;max-width:none!important;margin:0!important;
  padding:clamp(14px,3.2vw,23px)!important;
  background:var(--lvg-studio-card)!important;border:1px solid var(--lvg-studio-line)!important;
  border-radius:var(--lvg-native-radius)!important;
}
body[data-page="poster"] .studio-layout .tools-title {gap:8px;align-items:center;margin-bottom:14px;}
body[data-page="poster"] .studio-layout .tools-title h2 {font-size:18px;line-height:1.3;}
body[data-page="poster"] .studio-layout .studio-status {font-size:12px;}
body[data-page="poster"] .studio-layout :is(.studio-tools,.preview-area,.studio-layout>*) {min-width:0;max-width:100%;}
body[data-page="poster"] .studio-layout .studio-tools .field {min-width:0;margin-bottom:16px;}
body[data-page="poster"] .studio-layout .studio-tools .field label,
body[data-page="poster"] .studio-layout .studio-tools .field-heading label {font-size:14px;line-height:1.45;font-weight:650;}
body[data-page="poster"] .studio-layout .studio-tools :is(input:not([type="checkbox"]):not([type="range"]),select,textarea) {font-size:16px!important;line-height:1.45;min-height:46px;}
body[data-page="poster"] .studio-tools :is(.field-hint,.field-helper,.studio-drafts p,.preview-note) {font-size:13px!important;line-height:1.55;}
body[data-page="poster"] .studio-layout .studio-v95-mode {
  border:0!important;border-bottom:1px solid var(--lvg-studio-line)!important;
  background:none!important;border-radius:0!important;padding:0 0 12px!important;box-shadow:none!important;
}
body[data-page="poster"] .studio-layout .v121-studio-advanced {
  border:0!important;border-top:1px solid var(--lvg-studio-line)!important;
  background:transparent!important;border-radius:0!important;padding:0!important;
  margin:12px 0!important;box-shadow:none!important;
}
body[data-page="poster"] .studio-layout .v121-studio-advanced>summary {font-size:15px;min-height:50px;padding:14px 2px;}
body[data-page="poster"] .studio-layout .v121-advanced-body {padding:2px 0 10px!important;}
/* Drafts + sharing are now independent, collapsed disclosures without their own card surface. */
body[data-page="poster"] .studio-layout .studio-disclosure {
  display:block!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-top:1px solid var(--lvg-studio-line)!important;
  border-radius:0!important;box-shadow:none!important;
}
body[data-page="poster"] .studio-layout .studio-disclosure>summary {
  list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;
  padding:15px 2px;min-height:52px;color:var(--lvg-studio-ink);font-size:15px;font-weight:700;
}
body[data-page="poster"] .studio-layout .studio-disclosure>summary::-webkit-details-marker {display:none;}
body[data-page="poster"] .studio-layout .studio-disclosure>summary::after {content:"⌄";font-size:20px;}
body[data-page="poster"] .studio-layout .studio-disclosure[open]>summary::after {transform:rotate(180deg);}
body[data-page="poster"] .studio-layout .studio-disclosure__body {padding:4px 0 14px;display:grid;gap:8px;min-width:0;}
body[data-page="poster"] .studio-layout .studio-disclosure__body :is(input,select,textarea) {width:100%;}
body[data-page="poster"] .studio-layout .studio-draft-buttons {display:flex;flex-wrap:wrap;gap:8px;}
body[data-page="poster"] .studio-layout .studio-draft-buttons button {min-height:44px;}
body[data-page="poster"] .studio-layout .studio-actions {
  position:static!important;z-index:auto!important;transform:none!important;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;margin:10px 0 5px!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
}
body[data-page="poster"] .studio-layout .studio-actions button {min-width:0!important;min-height:48px!important;font-size:14px!important;border-radius:13px!important;}
body[data-page="poster"] .studio-layout .studio-copy {display:inline-flex;min-height:42px;align-items:center;font-size:13px!important;}
body[data-page="poster"] .studio-layout .preview-area {width:100%;padding:0!important;position:static!important;}
body[data-page="poster"] .studio-layout .preview-frame {
  width:100%!important;max-width:none!important;padding:clamp(7px,2vw,12px)!important;
  background:var(--lvg-studio-soft)!important;border:1px solid var(--lvg-studio-line)!important;
  box-shadow:none!important;border-radius:16px!important;
}
body[data-page="poster"] .studio-layout .preview-frame canvas {width:100%!important;max-width:100%!important;height:auto!important;}
body[data-page="poster"] .studio-layout .preview-heading {margin:6px 0 12px;align-items:center;}
body[data-page="poster"] .studio-layout .v121-preview-actions {gap:8px;}
body[data-page="poster"] .studio-layout .v121-preview-actions button {font-size:14px;}
body[data-page="poster"] .studio-layout .v121-studio-tabs {width:100%;max-width:100%;margin:0;}
body[data-page="poster"] .studio-layout .v121-studio-tabs button {font-size:15px;min-height:48px;}
/* Maximize mobile viewport usage; ONE outside gutter, no nested responsive width constraints. */
@media(max-width:680px) {
  :root {--lvg-mobile-gutter:10px;}
  body:not(.lvg-admin) :is(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.plans-shell) {
    width:calc(100% - 2 * var(--lvg-mobile-gutter))!important;
    max-width:none!important;padding-inline:0!important;margin-inline:auto!important;
  }
  body:not(.lvg-admin) .app-shell :is(.page-lead,.studio-layout,.dashboard-grid,.utility-layout,.traditional-section,.lower-banner) {max-width:none!important;width:100%!important;min-width:0!important;}
  body:not(.lvg-admin) :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap) :is(.panel,.card,.mt-panel,.us-panel,.ak-card,.lr-card,.sync-card,.finder-card) {
    max-width:100%;min-width:0;
  }
  body:not(.lvg-admin) :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap) :is(.panel,.card,.mt-panel,.us-panel,.ak-card,.lr-card,.sync-card,.finder-card):not(:has(> .panel)) {padding-inline:clamp(12px,3.5vw,16px);}
  body[data-page="poster"] .studio-layout .studio-tools {padding:12px!important;border-radius:16px!important;}
  body[data-page="poster"] .studio-layout .template-buttons {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px;max-height:none!important;}
  body[data-page="poster"] .studio-layout .template-btn {min-width:0;}
  body[data-page="poster"] .studio-layout .studio-control-grid {grid-template-columns:minmax(0,1fr)!important;}
  body[data-page="poster"] .studio-layout .studio-actions {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body[data-page="poster"] .studio-layout .studio-tools .field :where(.studio-draft-buttons)>* {max-width:100%;}
}
@media(max-width:350px) {
  :root {--lvg-mobile-gutter:8px;}
  body[data-page="poster"] .studio-layout .studio-actions button {font-size:13px!important;padding-inline:4px!important;}
}
@media(prefers-reduced-motion:reduce) {
  body[data-page="poster"] .studio-layout .studio-disclosure>summary::after {transition:none!important;}
}
@media print {
  body[data-page="poster"] .studio-layout .studio-actions,body[data-page="poster"] .studio-layout .v121-studio-tabs {display:none!important;}
}
/* Audit exception: two I Ching hexagrams sat inside a card with two extra card surfaces.
   Keep the necessary two-column comparison but remove the nested card styling. */
.iching-result .iching-hex-card {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:10px 5px!important;}
.iching-result .iching-hex-card + .iching-hex-card {border-left:1px solid var(--lvg-studio-line)!important;}
.iching-result .iching-reading {background:transparent!important;border-top:1px solid var(--lvg-studio-line);padding:13px 0!important;border-radius:0!important;}
/* Studio template swatches are selectable tiles, not extra cards in the main editor. */
body[data-page="poster"] .studio-layout .template-btn {
  background:transparent!important;border:1px solid transparent!important;
  box-shadow:none!important;border-radius:10px!important;padding:4px!important;
}
body[data-page="poster"] .studio-layout .template-btn[aria-pressed="true"],
body[data-page="poster"] .studio-layout .template-btn.is-active,
body[data-page="poster"] .studio-layout .template-btn.selected {
  border-color:#198170!important;box-shadow:inset 0 0 0 1px #198170!important;
}
body[data-page="poster"] .studio-layout .template-btn strong,
body[data-page="poster"] .studio-layout .studio-seasonal small {font-size:12px!important;line-height:1.3;}
body[data-page="poster"] .studio-layout .swatch {border-radius:10px;}


