/* original library-v97.css */
/* Lich Viet Glass v9.7 — public template previews without external images */
.lvg-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:20px;margin:28px 0}
.lvg-library-card{padding:12px;border-radius:23px;overflow:hidden}
.lvg-library-poster{color:var(--lvg-ink);background:linear-gradient(145deg,var(--lvg-p1),var(--lvg-p2));border-radius:16px;aspect-ratio:4/5;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:24px 14px 28px;position:relative;box-shadow:inset 0 0 0 1px #ffffff6b;text-align:center}
.lvg-library-poster:after{content:"";position:absolute;inset:16px;border-radius:12px;border:1px solid var(--lvg-accent);opacity:.38;pointer-events:none}
.lvg-library-top{font-size:10px;font-weight:800;letter-spacing:1px;width:100%;display:flex;justify-content:space-around;align-items:center}
.lvg-library-date{display:grid;place-items:center;gap:10px;line-height:1}
.lvg-library-date span{font-size:clamp(64px,7vw,94px);font-weight:800;letter-spacing:-7px}
.lvg-library-date strong{font-size:14px;letter-spacing:1px}
.lvg-library-date small{font-size:11px;padding:9px 12px;border-radius:99px;border:1px solid var(--lvg-accent)}
.lvg-library-quote{max-width:220px;font-family:Georgia,serif;font-style:italic;font-weight:600;font-size:15px;line-height:1.55}
.lvg-library-info{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;align-items:center;padding:13px 5px 2px}
.lvg-library-info h2{font-size:16px;font-weight:800;margin:0 0 4px}.lvg-library-info small{color:var(--text-muted,#64748b);font-size:11px}
.lvg-library-info a{font-size:12px;white-space:nowrap;padding:10px 12px}
.lvg-library-note{padding:22px;margin:15px 0 35px}.lvg-library-note p{line-height:1.7;max-width:800px}
@media(max-width:550px){.lvg-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lvg-library-card{padding:7px}.lvg-library-poster{padding:14px 5px;min-height:235px}.lvg-library-date span{font-size:58px}.lvg-library-date strong{font-size:10px}.lvg-library-date small{font-size:8px}.lvg-library-top{font-size:7px}.lvg-library-quote{font-size:11px}.lvg-library-info{display:block}.lvg-library-info a{display:inline-block;margin-top:9px}.lvg-library-info h2{font-size:13px}}


/* original native-system-v121.css */
/* Lịch Việt Glass v12.1 — single Native UI system for core screens */
:root, html[data-theme="light"] {
  --n121-bg:#eaf3ed; --n121-surface:#fbfefb; --n121-ink:#153f35;
  --n121-muted:#547467; --n121-border:#cfdfd5; --n121-primary:#0e705b;
  --n121-soft:#e0eee5; --n121-accent:#96702f; --n121-shadow:0 12px 30px rgba(11,57,46,.075);
}
html[data-theme="dark"] {
  --n121-bg:#082f28; --n121-surface:#123f36; --n121-ink:#f6efdc;
  --n121-muted:#b8d0c3; --n121-border:#376b5b; --n121-primary:#e2c77f;
  --n121-soft:#1c5043; --n121-accent:#e2c77f; --n121-shadow:0 12px 30px rgba(0,0,0,.15);
}
body:not([class*="admin"]) { -webkit-tap-highlight-color:transparent; }
body :is(button,input,select,textarea) {font-family:'Bai Jamjuree',system-ui,sans-serif;}
body :is(button,a,input,select,textarea):focus-visible {outline:3px solid var(--n121-primary);outline-offset:3px;}
body :is(button, a) {touch-action:manipulation;}
[hidden] {display:none!important;}
/* Shared rhythm and surfaces */
:where(.us-shell,.mt-shell,.shell,.app-shell) {min-width:0;}
:where(.us-shell,.mt-shell,.shell,.app-shell) :is(h1,h2,h3,p) {overflow-wrap:break-word;}
:where(.us-shell,.mt-shell,.shell,.app-shell) :is(input,select,textarea) {max-width:100%;min-height:44px;}
:where(.us-shell,.mt-shell,.shell,.app-shell) :is(button,.primary-button,.secondary-button) {min-height:44px;}
.v121-screen-toolbar,.v121-finder-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px;min-width:0;}
.v121-screen-toolbar span,.v121-finder-toolbar strong {color:var(--n121-ink);font-weight:700;font-size:15px;}
.v121-finder-toolbar div {display:grid;gap:3px;min-width:0;}
.v121-finder-toolbar span {color:var(--n121-muted);font-size:12px;line-height:1.5;}
.v121-screen-toolbar button,.v121-finder-toolbar button,.v121-dashboard-expand {border:1px solid var(--n121-border);border-radius:13px;padding:10px 14px;background:var(--n121-surface);color:var(--n121-ink);font-weight:650;white-space:nowrap;cursor:pointer;}
/* Preserve the 680px centered app frame and bottom bar on all five pages. */
body:has(.v121-screen-toolbar) .us-shell,
body:has(.v121-settings-menu) .shell,
body:has(.v121-dashboard-intro) .mt-shell {width:min(100%,680px);margin-inline:auto;}
.lvg-bottom-nav {width:min(100%,680px);left:50%;right:auto;transform:translateX(-50%);}
/* Search: one search-first surface; create event becomes a bounded app sheet when JS works. */
.us-hero.v121-screen-head {padding:16px 2px 12px;min-height:0;}
.us-hero.v121-screen-head h1 {font-family:'Bai Jamjuree',system-ui,sans-serif;font-style:normal;font-size:clamp(24px,5vw,32px);line-height:1.2;letter-spacing:-.035em;margin:7px 0;}
.us-hero.v121-screen-head>p:not(.us-kicker) {margin:0 0 10px;color:var(--n121-muted);font-size:14px;}
.us-hero.v121-screen-head .us-quick-links {display:flex;gap:9px;flex-wrap:wrap;}
.us-shell #us-workspace,.us-shell #tim-kiem,.us-shell #tao-su-kien {min-width:0;}
.us-shell .us-panel {height:auto;min-height:0;padding:clamp(16px,3vw,22px);border-radius:18px;box-shadow:var(--n121-shadow);}
.us-shell .us-search-bar {display:flex;gap:8px;min-width:0;}
.us-shell .us-search-bar input {min-width:0;flex:1;}
.us-shell .us-search-bar button {white-space:nowrap;}
.v121-create-panel {position:relative;}
.v121-sheet-close {position:absolute;right:14px;top:14px;border:1px solid var(--n121-border);border-radius:12px;background:var(--n121-soft);color:var(--n121-ink);font-size:23px;line-height:1;width:44px;height:44px;display:none;cursor:pointer;}
.v121-sheet-handle {width:38px;height:5px;border-radius:30px;background:var(--n121-border);margin:2px auto 14px;display:none;}
body.v121-search-ready #tao-su-kien:not(.v121-create-open) {display:none;}
body.v121-search-ready #tao-su-kien.v121-create-open {display:block;position:fixed;inset:auto 0 var(--lv-keyboard-bottom,0px);margin-inline:auto;box-sizing:border-box;width:var(--lv-page-width,min(100%,680px));max-height:calc(var(--lv-keyboard-height,100dvh) - env(safe-area-inset-top,0px) - 14px);overflow-y:auto;overscroll-behavior:contain;z-index:1300;border-radius:22px 22px 0 0;padding:26px 18px calc(28px + env(safe-area-inset-bottom,0px));background:var(--n121-surface);color:var(--n121-ink);}
body.v121-search-ready #tao-su-kien .v121-sheet-close,body.v121-search-ready #tao-su-kien .v121-sheet-handle {display:block;}
body.v121-modal-open {overflow:hidden;}
html:has(body.v121-modal-open) {overflow:hidden;}
.v121-overlay {position:fixed;inset:0;background:rgba(0,22,17,.56);z-index:1290;}
/* Profile: signed-in landing is a settings list, not four forms in a continuous page. */
.v121-settings-menu {display:grid;gap:4px;margin:18px 0 16px;padding:7px;border:1px solid var(--n121-border);border-radius:16px;background:var(--n121-surface);}
.v121-settings-menu :is(a,button) {width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 12px;background:none;border:0;border-bottom:1px solid var(--n121-border);color:var(--n121-ink);font-size:14px;font-weight:650;text-align:left;text-decoration:none;cursor:pointer;}
.v121-settings-menu :is(a,button):last-child {border-bottom:0;}
.v121-settings-menu span {font-size:22px;color:var(--n121-muted);}
.v121-settings-back {padding:10px 12px;border:1px solid var(--n121-border);border-radius:11px;background:var(--n121-soft);color:var(--n121-ink);margin-bottom:12px;cursor:pointer;}
body.v121-account-ready #signed [data-v121-settings-panel],
body.v121-account-ready #push-panel[data-v121-settings-panel],
body.v121-account-ready #delete-panel[data-v121-settings-panel] {display:none!important;}
body.v121-account-ready #signed [data-v121-settings-panel].v121-settings-active:not(.hidden),
body.v121-account-ready #push-panel.v121-settings-active:not(.hidden),
body.v121-account-ready #delete-panel.v121-settings-active:not(.hidden) {display:block!important;}
body.v121-account-ready #signed>div:first-child>p:has(>a.text-link) {display:none;}
body.v121-account-ready #signed {grid-template-columns:minmax(0,1fr);}
body.v121-account-ready #signed>div:first-child {grid-column:1;}
body.v121-account-ready .intro {min-height:0;padding-block:12px;}
body.v121-account-ready .intro h1 {font-size:clamp(24px,6vw,34px);line-height:1.2;}
/* Good day: toolbar and collapsible reasons. On JS enhancement use bottom sheet filters. */
.finder-main,.finder-layout,.finder-results,.finder-card {min-width:0;}
.finder-layout {display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;}
.finder-results {display:grid;gap:12px;}
.finder-hero {padding:clamp(16px,3vw,24px)!important;}
.finder-hero h1 {font-size:clamp(23px,5vw,31px);line-height:1.2;}
.finder-card {padding:clamp(14px,2.6vw,20px);height:auto!important;min-height:0;}
.finder-card-top {display:flex;flex-wrap:wrap;gap:10px;align-items:start;}
.finder-card .finder-card-facts {margin:10px 0;}
.v121-finder-reasons {margin:9px 0;border:1px solid var(--n121-border);border-radius:12px;padding:0 12px;background:var(--n121-soft);}
.v121-finder-reasons summary {display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;min-height:46px;color:var(--n121-ink);font-size:13px;font-weight:650;}
.v121-finder-reasons summary::-webkit-details-marker {display:none;}
.v121-finder-reasons[open] summary svg {transform:rotate(180deg);}
.v121-finder-reasons .finder-reason-list {margin:0 0 11px;}
.v121-filter-heading {display:none;justify-content:space-between;align-items:center;}
.v121-filter-heading button {width:44px;height:44px;font-size:24px;border:1px solid var(--n121-border);background:var(--n121-soft);border-radius:12px;color:var(--n121-ink);}
body.v121-finder-ready .finder-filter:not(.v121-filter-open) {display:none!important;}
body.v121-finder-ready .finder-filter.v121-filter-open {display:block!important;position:fixed!important;z-index:1300;left:50%;bottom:var(--lv-keyboard-bottom,0px);transform:translateX(-50%);box-sizing:border-box;width:var(--lv-page-width,min(100%,680px));max-height:calc(var(--lv-keyboard-height,100dvh) - 16px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;border-radius:22px 22px 0 0;background:var(--n121-surface);color:var(--n121-ink);padding:15px 18px calc(22px + env(safe-area-inset-bottom,0px));}
body.v121-finder-ready .v121-filter-heading {display:flex;}
/* Dashboard: hide redundant empty panels only after real API has delivered a view. */
.v121-dashboard-intro {display:grid;gap:4px;margin:10px 0 14px;}
.v121-dashboard-intro strong {font-size:18px;color:var(--n121-ink);}
.v121-dashboard-intro span {font-size:13px;color:var(--n121-muted);}
.v121-dashboard-empty {padding:20px;border:1px solid var(--n121-border);border-radius:18px;background:var(--n121-surface);margin:12px 0;display:grid;gap:8px;}
.v121-dashboard-empty strong {color:var(--n121-ink);font-size:17px;}
.v121-dashboard-empty p {margin:0;color:var(--n121-muted);font-size:13px;}
.v121-dashboard-empty a {display:inline-flex;justify-content:center;align-items:center;min-height:44px;border-radius:12px;padding:9px 14px;text-decoration:none;background:var(--n121-primary);color:var(--n121-bg);font-weight:700;max-width:max-content;}
.v121-dashboard-expand {width:100%;margin:8px 0 12px;}
.mt-grid {grid-template-columns:minmax(0,1fr)!important;align-items:start!important;}
.mt-grid>.mt-panel {grid-column:auto!important;height:auto!important;min-height:0!important;}
body.v121-dashboard-ready .mt-panel.v121-empty-panel {display:none;}
body.v121-dashboard-ready.v121-show-all .mt-panel.v121-empty-panel {display:block;}
body.v121-dashboard-ready .mt-stats {display:none;}
.mt-smart .mt-week-grid {grid-template-columns:minmax(0,1fr);}
.mt-smart .mt-countdowns {grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));}
/* Studio: one view at a time, preserve original canvas and every control for existing scripts. */
.studio-layout[data-v121-studio] {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;max-width:680px;margin-inline:auto;}
.v121-studio-tabs {display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;background:var(--n121-soft);border:1px solid var(--n121-border);border-radius:15px;}
.v121-studio-tabs button {border:0;background:transparent;color:var(--n121-muted);font:650 14px 'Bai Jamjuree',sans-serif;border-radius:11px;min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;}
.v121-studio-tabs button[aria-pressed="true"] {background:var(--n121-surface);color:var(--n121-ink);box-shadow:var(--n121-shadow);}
.studio-layout.v121-studio-ready[data-v121-mode="edit"]>.preview-area,
.studio-layout.v121-studio-ready[data-v121-mode="preview"]>.studio-tools {display:none;}
.studio-layout .studio-tools,.studio-layout .preview-area {min-width:0;max-width:100%;}
.studio-layout .preview-frame {max-width:100%;overflow:hidden;}
.studio-layout .preview-frame canvas {display:block;max-width:100%;height:auto;margin-inline:auto;}
.studio-layout .studio-actions {position:sticky;bottom:calc(74px + env(safe-area-inset-bottom,0px));z-index:4;padding:10px;background:var(--n121-surface);border:1px solid var(--n121-border);border-radius:14px;}
.v121-studio-advanced {border:1px solid var(--n121-border);border-radius:15px;margin:15px 0;background:var(--n121-soft);padding:0 13px;}
.v121-studio-advanced>summary {padding:14px 4px;cursor:pointer;color:var(--n121-ink);font-weight:700;font-size:14px;}
.v121-studio-advanced[open] .v121-advanced-body {padding-bottom:16px;}
/* Give the same reading rhythm to light and dark throughout the five screens. */
:where(.us-shell,.mt-shell,.shell,.finder-main,.studio-layout) :is(h1,h2,h3,strong,label) {font-family:'Bai Jamjuree',system-ui,sans-serif;}
html[data-theme="dark"] :is(.us-shell .us-panel,.shell .panel,.mt-panel,.mt-smart,.finder-card,.finder-filter,.finder-summary,.studio-layout .studio-tools,.studio-layout .preview-area) {background:var(--n121-surface);border-color:var(--n121-border);color:var(--n121-ink);}
html[data-theme="dark"] :is(.us-shell,.shell,.mt-shell) :is(p,.muted,.us-hint,.mt-footnote) {color:var(--n121-muted);}
html[data-theme="dark"] .v121-screen-toolbar :is(strong,span),html[data-theme="dark"] .v121-finder-toolbar :is(strong,span) {color:var(--n121-ink);}
@media(max-width:560px) {
 .v121-finder-toolbar {align-items:flex-end;}
 .v121-finder-toolbar span {font-size:11px;}
 .finder-card .finder-card-foot {display:flex;flex-wrap:wrap;gap:8px;}
 .v121-screen-toolbar button {font-size:12px;padding:9px;}
 .us-shell .us-search-bar button {padding-inline:12px;font-size:12px;}
 .mt-smart .mt-countdowns {grid-template-columns:minmax(0,1fr)!important;}
}
@media(prefers-reduced-motion:reduce) {.v121-create-panel,.finder-filter {scroll-behavior:auto;transition:none!important;}}
.v121-preview-actions {display:flex;gap:9px;justify-content:space-between;margin-bottom:13px;}
.v121-preview-actions button {min-height:44px;padding:10px 14px;border-radius:12px;border:1px solid var(--n121-border);background:var(--n121-surface);color:var(--n121-ink);font:650 13px 'Bai Jamjuree',sans-serif;display:flex;align-items:center;gap:7px;cursor:pointer;}
.v121-preview-actions button:last-child {background:var(--n121-primary);color:var(--n121-bg);}
body.v121-dashboard-ready.v121-no-upcoming .mt-smart {display:none;}

body.v121-account-ready #signed [data-v121-settings="legacy"][hidden] {display:none!important;}

/* Finder compare list lives behind an explicit, discoverable disclosure. */
.v121-shortlist {border:1px solid var(--n121-border);border-radius:16px;background:var(--n121-surface);box-shadow:var(--n121-shadow);overflow:hidden;}
.v121-shortlist>summary {cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:15px 17px;font-size:14px;font-weight:700;color:var(--n121-ink);}
.v121-shortlist>summary::-webkit-details-marker {display:none;}
.v121-shortlist>summary span {font-size:23px;color:var(--n121-muted);transform:rotate(90deg);transition:transform .15s;}
.v121-shortlist[open]>summary span {transform:rotate(-90deg);}
.v121-shortlist .finder-shortlist {margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
.finder-hero .finder-feature-tags {margin-top:10px;gap:6px;}
.finder-hero p {font-size:13px;line-height:1.65;}
/* Native-sized daily hero and a compact day card. */
.mt-hero {grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:clamp(15px,3vw,22px)!important;min-height:0!important;}
.mt-hero h1 {font-family:'Bai Jamjuree',system-ui,sans-serif;font-size:clamp(26px,5.5vw,35px)!important;line-height:1.14!important;letter-spacing:-.03em!important;margin:4px 0!important;}
.mt-hero h1 br {display:none;}
.mt-hero h1 em {font-family:'Bai Jamjuree',system-ui,sans-serif;font-style:normal;}
.mt-hero-copy>p:not(.mt-kicker) {font-size:13px!important;line-height:1.55;max-width:460px;margin:5px 0 9px;}
.mt-hero .mt-kicker {font-size:10px;}
.mt-hero .mt-date-label {font-size:12px;}
.mt-daycard {display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:4px 12px!important;align-items:center!important;padding:14px!important;min-height:0!important;}
.mt-daycard strong {grid-column:1;grid-row:1/4;font-size:44px!important;line-height:1!important;}
.mt-daycard small:first-child {grid-column:2;grid-row:1;}
.mt-daycard>span {grid-column:2;grid-row:2;}
.mt-daycard hr,
.mt-daycard small:not(:first-child),.mt-daycard b,.mt-daycard a {grid-column:1/-1;grid-row:auto;}
.mt-actions {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
.mt-actions a {display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;}
.mt-actions a svg {flex:none;}
@media(max-width:420px) {.finder-hero .finder-feature-tags {display:none;}.mt-daycard {grid-template-columns:78px minmax(0,1fr)!important;}}

