/* original native-consistency-v1640.css */
/* Lịch Việt v16.40 — public native UI contract.
 * Loaded LAST on both the main app shell and the 21 standalone routes.
 * Scope: presentation only; no route, data, account, editor or calendar changes.
 * Preserve the user's 680px/single-column desktop/mobile geometry. */
:root,html[data-theme="light"]{
  --lv40-surface:#fbfefb;--lv40-ink:#153e34;--lv40-muted:#496d60;
  --lv40-border:#cddfd4;--lv40-primary:#08735a;--lv40-on-primary:#ffffff;
  --lv40-soft:#e4f2e9;--lv40-soft-ink:#105d4b;--lv40-focus:#006f59;
  --lv40-warm:#f7f0dc;--lv40-card-shadow:0 8px 22px rgba(7,59,45,.055);
}
html[data-theme="dark"]{
  --lv40-surface:#113d34;--lv40-ink:#f6f1de;--lv40-muted:#c2d9cc;
  --lv40-border:#3e7361;--lv40-primary:#b5dfbc;--lv40-on-primary:#093c30;
  --lv40-soft:#205343;--lv40-soft-ink:#e2efdd;--lv40-focus:#f3d38b;
  --lv40-warm:#3b503b;--lv40-card-shadow:0 9px 25px rgba(0,15,12,.16);
}
/* Geometry: same width for phone, desktop and standalone views. Parent padding
 * belongs to the page; child containers never add a second artificial gutter. */
body .app-shell,body :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell,.fc-shell,.fe-shell,.pv-shell,.si-shell){
  box-sizing:border-box!important;width:100%!important;max-width:680px!important;
  margin-inline:auto!important;min-width:0!important;
}
body .app-shell{padding-inline:clamp(8px,2.4vw,16px)!important;}
body .app-shell > *{min-width:0;max-width:100%;}
body :is(.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell) :is(.row,.grid,.form-row,.form-grid){min-width:0;}
body :is(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell) :is(img,video,canvas,iframe){max-inline-size:100%;}
/* One header and breadcrumb alignment axis, while preserving the real header
 * back/menu/theme buttons and the user's configured brand. */
body:not(.lvg-admin) .lvg-app-header.site-header{
  box-sizing:border-box!important;max-width:100%!important;
  width:100%!important;margin-inline:auto!important;
}
body:not(.lvg-admin) .lvg-breadcrumb-v139{
  box-sizing:border-box!important;max-width:100%!important;
  width:100%!important;margin-inline:auto!important;min-height:var(--lvui-touch-size,44px)!important;
}
body:not(.lvg-admin) .lvg-breadcrumb-v139 .lvg-screen-back-title{
  font-size:14px!important;color:var(--lv40-muted)!important;
}
/* Typography only for textual UI metadata. Calendar solar/lunar figures, SVG
 * compositions and decorative micro-typography retain independent sizing. */
body{font-family:var(--lvui-font,'Bai Jamjuree',system-ui,sans-serif);}
body :is(button,input,select,textarea){font-family:inherit;}
body :is(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell,.fc-shell,.fe-shell,.pv-shell,.si-shell) :is(label,legend){
  line-height:1.45;font-weight:650;
}
body :is(.app-shell,.shell,.mt-shell,.us-shell,.ak-shell,.sync-shell,.saved-shell,.lr-wrap,.wrap,.plans-wrap,.growth-shell,.fc-shell,.fe-shell,.pv-shell,.si-shell) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),select,textarea){
  box-sizing:border-box;min-width:0;max-width:100%;min-height:var(--lvui-touch-size,44px);
  font-size:16px;line-height:1.45;
}
body :is(.daily-footnote,.daily-notice,.native-tools-note,.native-tool-body small,.v120-action small,.pv-muted,.pv-card p,.fc-note,.fc-hero p,.fe-hint,.fe-prefs p,.si-hint,.us-hint,.mt-footnote,.auth18-muted,.lvg-page-context-title){
  font-size:13px!important;line-height:1.55!important;
}
body :is(.daily-footnote,.native-tools-note,.fc-note,.fe-hint,.us-hint,.mt-footnote){color:var(--lv40-muted)!important;}
body :is(.native-tools-section,.native-tools-hero,.v120-home-actions,.daily-main-grid,.daily-main-stack,.finder-main,.studio-layout),
body :is(.native-tools-grid,.native-tool-card,.native-tool-body,.daily-stat-grid,.daily-quote-card,.v120-home-actions) > *{min-width:0;}
/* Unified buttons on the established semantic action classes only — never
 * calendar day cells, decorative icon buttons, or inline text links. */
body :is(.primary-button,.secondary-button,.daily-subtle-button,.native-hero-link,.fc-primary,.v120-action,.motion-primary,.motion-light){
  font-family:var(--lvui-font,'Bai Jamjuree',system-ui,sans-serif)!important;
  font-weight:700!important;line-height:1.35!important;
  min-height:var(--lvui-touch-size,44px);box-sizing:border-box;touch-action:manipulation;
}
body :is(.primary-button,.fc-primary){
  background:var(--lv40-primary)!important;color:var(--lv40-on-primary)!important;
  border-radius:var(--lvui-radius-md,12px)!important;border:1px solid transparent!important;
}
body :is(.secondary-button,.daily-subtle-button){
  background:var(--lv40-soft)!important;color:var(--lv40-soft-ink)!important;
  border:1px solid var(--lv40-border)!important;border-radius:var(--lvui-radius-md,12px)!important;
}
body :is(.native-hero-link,.daily-secondary-link){font-weight:700!important;line-height:1.45;}
body :is(.native-tool-card,.v120-action){min-height:54px;}
body :is(.native-tool-body strong,.v120-action strong){font-size:14px;line-height:1.4;}
body :is(.native-tool-body small,.daily-quote-footer span){font-size:13px;line-height:1.45;}
/* Correct the over-small legacy calendar lunar date without changing the
 * seven-column day grid or selected-day logic. */
body .calendar-cell .cell-lunar{font-size:11px!important;line-height:1.25!important;}
/* Consistent accordions: native details preserve their JS hooks/state.
 * Do not generate an additional chevron or secondary border. */
body :is(.v120-disclosure,.pv-disclosure,.fe-disclosure) > summary{
  min-height:var(--lvui-touch-size,44px);cursor:pointer;touch-action:manipulation;
}
body :is(.v120-disclosure,.pv-disclosure,.fe-disclosure) > summary::marker{font-size:0;}
/* Navigation: same 680px frame, real iOS safe-area and readable 12px labels. */
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav{
  box-sizing:border-box!important;width:100%!important;max-width:680px!important;
  padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))!important;
}
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav > a,
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav > a span{
  font:700 12px/1.2 var(--lvui-font,'Bai Jamjuree',system-ui,sans-serif)!important;
}
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav > a{
  min-width:0!important;min-height:54px!important;touch-action:manipulation;
}
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav > a[aria-current],
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav > a.is-active{
  color:var(--lv40-soft-ink)!important;background:var(--lv40-soft)!important;
}
body :is(button,a,summary,input,select,textarea):focus-visible{
  outline:3px solid var(--lv40-focus)!important;outline-offset:2px!important;
}
body :is(button,input,select,textarea):disabled{cursor:not-allowed;}
/* Content scroll clearance is applied once on BODY by ios-pwa-layout-v140.
 * An extra large bottom margin on individual content blocks is not needed. */
body:not(.lvg-admin) .app-shell{padding-bottom:0!important;}
@media(max-width:390px){
  body .app-shell{padding-inline:8px!important;}
  body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav>a{padding-inline:1px!important;}
  body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav>a span{font-size:12px!important;}
}
@media(prefers-reduced-motion:reduce){
  body :is(.primary-button,.secondary-button,.daily-subtle-button,.native-tool-card){transition:none!important;transform:none!important;}
}


/* original native-accessibility-v1641.css */
:root{--lv41-focus:#006d56;--lv41-error:#9d3232}
html[data-theme="dark"]{--lv41-focus:#f3d58a;--lv41-error:#ffd0bb}
html{scroll-padding-top:calc(74px + env(safe-area-inset-top,0px));scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
body{font-family:var(--lvui-font,'Bai Jamjuree',system-ui,sans-serif)}
body .lvg-skip-link{position:fixed!important;z-index:100000!important;top:calc(7px + env(safe-area-inset-top,0px));left:max(8px,env(safe-area-inset-left,0px));transform:translateY(-170%)!important;opacity:0!important;pointer-events:none;background:#103f34!important;color:#fff!important;border:2px solid #f4dc97;border-radius:11px;padding:12px 15px;font:700 15px/1.4 'Bai Jamjuree',sans-serif;box-shadow:0 6px 20px rgba(0,0,0,.3)}
body .lvg-skip-link:focus-visible{transform:none!important;opacity:1!important;pointer-events:auto!important;outline:3px solid #f4dc97!important;outline-offset:2px}
body :is(main,[role="main"],.app-shell,.shell)[tabindex="-1"]:focus{outline:none}
body :is(button,a[href],summary,input,select,textarea,[role="button"],[role="tab"]):focus-visible{outline:3px solid var(--lv41-focus)!important;outline-offset:3px!important}
body :is(button,a[href],summary,input,select,textarea):focus:not(:focus-visible){outline-offset:0}
body :is(input,select,textarea)[aria-invalid="true"]{border-color:var(--lv41-error)!important;outline-color:var(--lv41-error)!important}
body .lvg-field-error{display:block;color:var(--lv41-error);font:650 13px/1.55 'Bai Jamjuree',sans-serif;margin:5px 0 7px;max-width:100%;overflow-wrap:anywhere}
body :is(.lvg-app-header,.site-header) :is(button,.round-icon,a[aria-label]),
body :is(.native-sheet-heading,.native-sheet-links,.lvg-sheet-footer) :is(button,a),
body :is(.lvg-breadcrumb-v139,.lvg-page-context-v136) :is(button,a),
body :is(.studio-v124-preview-actions,.motion-video-actions,.motion-library-actions) :is(button,a),
body :is(.lvg-consent-actions,.lvg-install-guide__body) button{min-height:var(--lvui-touch-size,44px);touch-action:manipulation}
body :is(.native-sheet-links,.lvg-pinned-links,.lvg-sheet-settings) a{line-height:1.4}
body :is(.native-sheet-links,.lvg-pinned-links,.lvg-sheet-settings) small{font-size:12px!important;line-height:1.45}
body :is(.native-sheet-links,.lvg-pinned-links,.lvg-sheet-settings) :is(a,button){overflow-wrap:anywhere}
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav>a{min-height:52px!important;align-content:center}
body:not(.lvg-admin) nav.mobile-bottom-nav.lvg-bottom-nav>a span{line-height:1.35!important;overflow-wrap:normal}
body .native-quick-sheet[hidden],body .native-sheet-overlay[hidden]{display:none!important}
body .native-quick-sheet .lvg-sheet-scroll{overscroll-behavior:contain}
body :is(.app-shell,.shell,.wrap,.plans-wrap,.us-shell,.mt-shell,.sync-shell) :is(input[type="date"],input[type="datetime-local"],select,textarea){max-inline-size:100%;min-inline-size:0;scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
body :is(.app-shell,.shell,.wrap,.plans-wrap,.us-shell,.mt-shell,.sync-shell) :is(input[type="date"],input[type="datetime-local"]){font-size:16px!important}
@media(max-width:390px){body .native-quick-sheet .lvg-sheet-scroll{max-width:100%}body .lvg-field-error{font-size:13px}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}body .lvg-skip-link{transition:none!important}body :is(.native-quick-sheet,.native-sheet-overlay,.lvg-app-header,.mobile-bottom-nav){transition-duration:0.01ms!important;animation-duration:0.01ms!important}}
@media(forced-colors:active){body :is(button,a,summary,input,select,textarea):focus-visible{outline:3px solid Highlight!important}body .lvg-field-error{color:Mark!important}body .lvg-skip-link{forced-color-adjust:auto}}

body:not(.lvg-admin) #native-quick-sheet .native-sheet-eyebrow{font-size:12px!important;letter-spacing:.06em!important;line-height:1.5!important}

