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


/* original prayers-v114.css */
.prayer-page{max-width:1180px;margin:28px auto 60px;color:var(--ink,#233b4b)}
.prayer-page .glass{border:1px solid rgba(108,153,158,.16)}
.prayer-hero{padding:clamp(24px,4vw,46px);border-radius:26px;background:linear-gradient(120deg,rgba(255,255,255,.86),rgba(211,237,231,.68));overflow:hidden}
.prayer-eyebrow,.prayer-section-eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;color:#25899a;text-transform:uppercase}
.prayer-hero-layout{display:flex;align-items:center;justify-content:space-between;gap:28px}
.prayer-hero h1{font-size:clamp(32px,4.1vw,55px);letter-spacing:-.05em;line-height:1.14;margin:14px 0 14px}
.prayer-hero h1 em{font-family:'Noto Serif',Georgia,serif;color:#2f8996;font-style:italic;font-weight:500}
.prayer-hero p{color:var(--muted,#617988);max-width:695px;font-size:14px;line-height:1.8;margin:0}
.prayer-hero-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.prayer-hero-chips span{border:1px solid rgba(51,134,137,.18);border-radius:50px;padding:8px 12px;font-size:11px;background:rgba(255,255,255,.44)}
.prayer-hero-mark{width:150px;height:150px;flex:none;border:2px solid #97c5c2;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 0 0 8px rgba(49,137,150,.06);color:#258190}
.prayer-hero-mark span{font-family:serif;font-size:60px;line-height:1.15}.prayer-hero-mark small{font-size:10px;letter-spacing:.06em}
.prayer-panel{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:18px;align-items:start;margin-top:18px}
.prayer-library,.prayer-settings,.prayer-preview{border-radius:20px;padding:22px;background:rgba(255,255,255,.75)}
.prayer-library{position:sticky;top:102px;max-height:calc(100vh - 118px);display:flex;flex-direction:column}
.prayer-library h2,.prayer-settings h2{font-size:21px;margin:5px 0 15px;letter-spacing:-.03em}
.prayer-search-label{display:block;font-size:12px;font-weight:700;margin:0 0 7px}
.prayer-library input,.prayer-settings input{width:100%;background:rgba(249,252,252,.93);border:1px solid #d7e4e6;border-radius:11px;padding:11px 12px;font:inherit;color:var(--ink,#213b4c);min-height:44px}
.prayer-library input:focus-visible,.prayer-settings input:focus-visible,.prayer-page button:focus-visible,.prayer-page a:focus-visible{outline:3px solid #4299a8;outline-offset:2px}
.prayer-filter{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}
.prayer-filter button{border:1px solid #d2e5e5;border-radius:30px;padding:7px 10px;background:rgba(245,250,250,.9);font-size:10px;color:#456577;min-height:34px;cursor:pointer}
.prayer-filter button.is-current{color:#fff;background:#377f90;border-color:#377f90}
.prayer-list{overflow:auto;overscroll-behavior:contain;padding-right:4px}
.prayer-list-row{display:flex;align-items:center;border-radius:13px;margin-bottom:5px;gap:1px}
.prayer-list-row[hidden]{display:none!important}
.prayer-list-link{display:flex;min-width:0;flex:1;align-items:center;gap:10px;text-decoration:none!important;color:inherit!important;border-radius:12px;padding:10px 6px 10px 10px;transition:background .2s}
.prayer-list-link>span:first-child{display:flex;background:#e8f3f0;border-radius:11px;width:35px;height:35px;align-items:center;justify-content:center;flex:none}
.prayer-list-link>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}.prayer-list-link strong{font-size:12px;line-height:1.35}.prayer-list-link small{font-size:10px;color:var(--muted,#72909b)}
.prayer-list-link.is-current{background:rgba(56,137,147,.12)}
.prayer-list-link:hover{background:rgba(56,137,147,.09)}
.prayer-favorite{flex:none;color:#477684;font-size:19px;background:transparent;border:0;padding:8px;cursor:pointer;min-width:36px;min-height:40px}
.prayer-favorite[aria-pressed=true]{color:#b3646c}
.prayer-empty,.prayer-subnote{color:#6c838c;font-size:11px;line-height:1.6}
.prayer-workspace{display:grid;gap:18px;min-width:0}
.prayer-title-row{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px}
.prayer-privacy{font-size:10px;color:#467c77;background:#e6f4ee;padding:8px 10px;border-radius:40px}
.prayer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.prayer-form-grid label{font-size:11px;color:var(--ink,#34525b);font-weight:700;display:flex;flex-direction:column;gap:7px;min-width:0}
.prayer-date-result{background:#e7f4f0;border-radius:12px;min-height:67px;padding:12px 14px;display:flex;justify-content:center;flex-direction:column;gap:4px}
.prayer-date-result small{font-size:9px;letter-spacing:.12em;color:#547d83}.prayer-date-result strong{font-size:13px;line-height:1.55}
.prayer-preview{padding:clamp(16px,3vw,28px)}
.prayer-preview-top{display:flex;justify-content:space-between;align-items:center;gap:18px}.prayer-preview h2{font-size:clamp(22px,2.6vw,32px);letter-spacing:-.03em;line-height:1.3;margin:7px 0 6px}.prayer-preview-top p{margin:0;color:#6a8592;font-size:12px;line-height:1.65}
.prayer-petal{color:#9ac5c6;font-size:50px}
.prayer-preparation{margin:19px 0;padding:12px 15px;border-radius:13px;background:rgba(227,242,237,.74);font-size:12px;line-height:1.5}.prayer-preparation strong{color:#297f84}.prayer-preparation p{margin:3px 0 0;color:#58757f}
.prayer-reading-sheet{background:#fcfbf6;border:1px solid #ebe5d7;border-radius:16px;padding:clamp(19px,4vw,42px);color:#3d413d;box-shadow:0 8px 30px rgba(90,99,66,.04)}
.prayer-text{font-family:'Noto Serif',Georgia,serif;font-size:var(--prayer-font,20px);line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere}
.prayer-sheet-ornament{color:#a6ac8b;text-align:center;margin:8px 0 16px;letter-spacing:.6em}
.prayer-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.prayer-actions button,.prayer-reader-toolbar button{border-radius:10px;padding:11px 14px;min-height:44px;border:1px solid #ccdde0;background:#f2f7f6;font-size:12px;font-weight:700;color:#346776;cursor:pointer}
.prayer-actions button:hover,.prayer-reader-toolbar button:hover{filter:brightness(.96)}
.prayer-actions .prayer-primary{background:#2d8391;border-color:#2d8391;color:white}
#prayer-save[aria-pressed=true]{color:#a64f62;border-color:#dcb3bc}
.prayer-notice{min-height:16px;font-size:12px;color:#2d8179}
.prayer-source-note{font-size:11px;line-height:1.8;color:#6e858b;border-top:1px solid #e1ebeb;padding-top:14px;margin-top:12px}
.prayer-reader{border:0;padding:0;width:min(900px,calc(100vw - 16px));max-width:900px;max-height:calc(100dvh - 20px);height:calc(100dvh - 20px);border-radius:20px;background:#fcfaf5;color:#303b39;box-shadow:0 30px 80px rgba(0,0,0,.22)}
.prayer-reader::backdrop{background:rgba(19,36,43,.7);backdrop-filter:blur(4px)}
.prayer-reader-inner{height:100%;display:flex;flex-direction:column;padding:clamp(12px,3vw,26px)}
.prayer-reader-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 6px 12px;border-bottom:1px solid #e7e1d4}
.prayer-reader-head small{font-size:10px;letter-spacing:.12em;color:#598a87}.prayer-reader-head h2{font-size:clamp(18px,2vw,25px);margin:6px 0}.prayer-reader-head p{font-size:12px;margin:0;color:#6e7e75}
#prayer-close{align-self:flex-start;min-height:44px;min-width:44px;border:1px solid #dce6df;border-radius:10px;background:#f2f6f1;font-size:18px;cursor:pointer}
.prayer-reader-toolbar{display:flex;gap:9px;align-items:center;padding:11px 4px}.prayer-reader-toolbar span{min-width:42px;text-align:center;font-size:12px}.prayer-reader-toolbar button:last-child{margin-left:auto}
.prayer-reader-body{white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;flex:1;padding:clamp(18px,4vw,35px);font-size:var(--reader-font,24px);font-family:'Noto Serif',Georgia,serif;line-height:2.1;background:#fffefa;border:1px solid #f0e8d8;border-radius:10px}
.prayer-reader-footer{text-align:center;font-size:10px;color:#84958d;padding:10px}
[data-theme=dark] .prayer-hero,[data-theme=dark] .prayer-library,[data-theme=dark] .prayer-settings,[data-theme=dark] .prayer-preview{background:rgba(28,49,59,.86)}
[data-theme=dark] .prayer-date-result,[data-theme=dark] .prayer-preparation{background:#274849}
[data-theme=dark] .prayer-privacy{color:#a5d6c5;background:#234443}
[data-theme=dark] .prayer-library input,[data-theme=dark] .prayer-settings input{background:#203944;color:#e9f2f0;border-color:#4e6b72}
[data-theme=dark] .prayer-filter button{background:#25424b;color:#d5e8e8;border-color:#487078}
[data-theme=dark] .prayer-filter button.is-current{background:#378695;color:#fff}
[data-theme=dark] .prayer-list-link.is-current{background:#29565d}
[data-theme=dark] .prayer-preview-top p,[data-theme=dark] .prayer-source-note,[data-theme=dark] .prayer-preparation p{color:#a8c4c5}
@media(max-width:980px){.prayer-panel{grid-template-columns:1fr}.prayer-library{position:static;max-height:none}.prayer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:340px;overflow:auto}}
@media(max-width:620px){.prayer-page{margin:14px auto 40px}.prayer-hero-mark{display:none}.prayer-hero{padding:23px;border-radius:20px}.prayer-panel{gap:12px;margin-top:12px}.prayer-library,.prayer-settings,.prayer-preview{padding:16px;border-radius:17px}.prayer-list{grid-template-columns:1fr;max-height:276px}.prayer-form-grid{grid-template-columns:1fr}.prayer-date-result{min-height:56px}.prayer-reading-sheet{padding:18px}.prayer-text{font-size:18px;line-height:1.9}.prayer-reader{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.prayer-reader-inner{padding:12px}.prayer-reader-body{padding:16px}.prayer-reader-toolbar{flex-wrap:wrap}.prayer-hero-chips{gap:7px}.prayer-hero-chips span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.prayer-list-link{transition:none}}
@media print{body{background:#fff!important}.prayer-page>*:not(.prayer-reader),.site-header,.mobile-bottom-nav,.mobile-more-panel,.site-footer,.mobile-quick-actions,.ambient,.pwa-status{display:none!important}.prayer-page{margin:0!important}.prayer-reader{position:static!important;display:block!important;max-height:none!important;height:auto!important;width:100%!important;max-width:none!important;box-shadow:none!important;border:0!important;color:#111!important;background:#fff!important}.prayer-reader::backdrop{display:none!important}.prayer-reader-inner{height:auto!important;padding:0!important}.prayer-reader-head{padding-bottom:16px!important}.prayer-reader-head small{color:#333!important}.prayer-reader-toolbar,#prayer-close,.prayer-reader-footer{display:none!important}.prayer-reader-body{overflow:visible!important;height:auto!important;font-size:17pt!important;line-height:1.8!important;padding:12px!important;border:0!important;white-space:pre-wrap!important;break-inside:auto!important}.prayer-reader-head h2{color:#111!important}@page{margin:16mm}}

