/* 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}}
