:root{color-scheme:light;--bg:#ffffff;--sidebar:#f7f7f8;--hover:#ececf1;--active:#e8e8ee;--text:#202123;--muted:#6b7280;--line:#e5e7eb;--bubble:#f4f4f4;--danger:#dc2626;--success:#15803d;--warn:#b45309;--shadow:0 18px 44px rgba(15,23,42,.08);--sidebar-width:280px;--composer-width:780px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Thai",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.app-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);height:100vh;height:100dvh}.sidebar{min-width:0;background:var(--sidebar);border-right:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:12px}.sidebar-head,.brand,.topbar{display:flex;align-items:center}.sidebar-head{justify-content:space-between;gap:10px}.brand{gap:10px;min-width:0}.brand img{width:34px;height:34px;border-radius:8px;object-fit:contain;border:0;background:transparent;padding:0}.brand strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-chat-btn,.session-list button,.side-footer a,.side-footer button,.icon-btn{border:0;background:transparent;color:var(--text);border-radius:10px}.new-chat-btn{margin-top:6px;min-height:44px;text-align:left;padding:0 14px;font-weight:650;background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(15,23,42,.04);display:flex;align-items:center;gap:8px}.new-chat-btn:hover{background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.08);transform:translateY(-1px)}.session-list button:hover,.side-footer a:hover,.side-footer button:hover,.icon-btn:hover{background:var(--hover)}.side-section{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px}.side-title{padding:0 8px;font-size:12px;color:var(--muted)}.session-list{display:flex;flex-direction:column;gap:8px;overflow:auto}.session-list button{width:100%;padding:10px 12px;text-align:left;display:grid;gap:3px}.session-list button.active{background:var(--active)}.session-list strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-list span{font-size:12px;color:var(--muted)}.session-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px;display:grid;gap:12px;box-shadow:0 8px 22px rgba(15,23,42,.04)}.session-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:8px}.session-card-title{font-size:14px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-card-sub{margin-top:2px;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-status{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:10.5px;font-weight:800;white-space:nowrap;line-height:1.45;flex:0 0 auto}.session-status::before{content:"";width:6px;height:6px;border-radius:999px;background:#22c55e}.session-metrics{display:grid;gap:10px}.session-metric{display:grid;gap:6px}.session-metric-row{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.session-metric-row strong{font-size:12px;color:var(--text);font-weight:750}.progress-track{height:7px;border-radius:999px;background:#eef2f7;overflow:hidden}.progress-fill{height:100%;width:0%;border-radius:inherit;background:#111827;transition:width .2s ease}.session-card-note{font-size:12px;color:var(--muted);line-height:1.5}.session-card-action{min-height:36px;border:0;border-radius:11px;background:#111827;color:#fff;font-size:13px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.45;padding:0 12px;box-shadow:0 7px 16px rgba(17,24,39,.13);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.session-card-action:hover{background:#1f2937;transform:translateY(-1px);box-shadow:0 12px 24px rgba(17,24,39,.18)}.session-card-action:active{transform:translateY(0);box-shadow:0 6px 14px rgba(17,24,39,.12)}.session-card-action span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-card-action svg{width:14px;height:14px;flex:0 0 auto}.empty-session-card{border:1px dashed #d1d5db;border-radius:16px;padding:14px;background:rgba(255,255,255,.65);display:grid;gap:4px}.empty-session-card strong{font-size:13px}.empty-session-card span{font-size:12px;color:var(--muted);line-height:1.5}
.side-footer{display:grid;gap:6px;padding-top:10px;border-top:1px solid var(--line)}.entitlement-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px;font-size:13px;line-height:1.55;display:grid;gap:8px}.package-card-label{font-size:12px;color:var(--muted)}.package-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.package-card-name{font-size:15px;font-weight:850}.package-badge{display:inline-flex;min-height:22px;align-items:center;padding:0 8px;border-radius:999px;background:#eef2f7;color:#374151;font-size:11px;font-weight:850}.package-badge.pro{background:#dcfce7;color:#166534}.package-badge.single{background:#dbeafe;color:#1d4ed8}.package-badge.none{background:#fee2e2;color:#991b1b}.package-lines{display:grid;gap:3px;color:var(--muted);font-size:12px}.package-used{padding-top:4px;border-top:1px solid #f1f5f9;color:var(--text);font-size:12px;font-weight:750}.side-footer a,.side-footer button{min-height:38px;padding:0 10px;display:flex;align-items:center;text-decoration:none;font-size:14px}.chat-main{height:100vh;height:100dvh;min-width:0;display:flex;flex-direction:column;background:#fff}.topbar{height:56px;flex:0 0 56px;justify-content:space-between;gap:14px;padding:0 18px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);position:relative;z-index:70}.topbar strong{display:block;font-size:16px}.topbar span:not(.timer-pill){display:block;margin-top:2px;font-size:12px;color:var(--muted)}.timer-pill{min-height:32px;padding:0 12px;border-radius:999px;display:inline-flex;align-items:center;border:1px solid var(--line);background:#fff;color:var(--muted);font-size:13px}.topbar-right{display:flex;align-items:center;gap:10px;position:relative}.account-menu-btn{--account-avatar-url:url("/assets/ai-sinsae-paulpooh-logo-256.webp");min-height:38px;max-width:220px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);padding:0 14px;display:inline-flex;align-items:center;gap:9px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-menu-btn::before{content:"";width:22px;height:22px;border-radius:999px;background:var(--account-avatar-url) center/cover no-repeat;box-shadow:0 0 0 1px rgba(15,23,42,.08);flex:0 0 auto}.account-menu-btn::after{content:"";width:7px;height:7px;border-right:1.5px solid #6b7280;border-bottom:1.5px solid #6b7280;transform:rotate(45deg) translateY(-2px);flex:0 0 auto}.account-menu{position:absolute;top:calc(100% + 10px);right:0;width:min(310px,calc(100vw - 24px));border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);padding:10px;display:none;gap:6px;z-index:100;pointer-events:auto}.account-menu.open{display:grid}.account-menu-head{padding:8px 10px 10px;border-bottom:1px solid var(--line);display:grid;gap:4px}.account-menu-title{font-size:14px;font-weight:800;color:#111827}.account-menu-copy{font-size:12px;color:#111827;line-height:1.55}.account-menu-action{width:100%;border:0;border-radius:14px;background:transparent;color:#111827;padding:11px 12px;display:grid;grid-template-columns:22px 1fr;gap:10px;text-align:left;align-items:start}.account-menu-action:hover{background:#f9fafb}.account-menu-action strong{display:flex;align-items:center;gap:6px;font-size:13px;line-height:1.35;color:#111827}.account-menu-action span{display:block;font-size:12px;color:#111827;line-height:1.45;margin-top:2px}.account-menu-icon{width:20px;height:20px;color:#111827;margin-top:1px}.account-menu-badge{display:inline-flex;min-height:20px;align-items:center;padding:0 7px;border-radius:999px;background:#dcfce7;color:#166534;border:1px solid #bbf7d0;font-size:11px;font-weight:900;margin-left:2px;vertical-align:middle;line-height:1}.icon-btn{width:38px;height:38px;display:grid;place-items:center;font-size:18px}.mobile-only{display:none}
.chat-view{flex:1;min-height:0;position:relative;display:flex;flex-direction:column}.messages{flex:1;min-height:0;overflow:auto;padding:26px 24px 130px}.welcome-empty{width:min(var(--composer-width),100%);min-height:calc(100vh - 260px);margin:0 auto;display:grid;align-content:center;justify-items:center;gap:14px;text-align:center}.welcome-empty img{width:64px;height:64px;border-radius:15px;object-fit:contain;background:#fff;padding:6px}.welcome-empty h1{margin:0;font-size:clamp(28px,4vw,36px);line-height:1.1;font-weight:650}.welcome-empty p{margin:0;max-width:580px;color:var(--muted);line-height:1.7}
.message-row{width:min(var(--composer-width),100%);margin:0 auto;padding:10px 0;display:grid}.message-row.user{justify-items:end}.message-content{max-width:78%;line-height:1.76;white-space:pre-wrap;overflow-wrap:anywhere}.message-row.user .message-content{background:var(--bubble);border-radius:20px;padding:10px 16px}.message-row.assistant .message-content{max-width:100%;padding:6px 0}.message-time{margin-top:4px;font-size:11px;line-height:1.2;color:var(--muted)}.message-row.user .message-time{text-align:right;padding-right:8px}.message-row.assistant .message-time{text-align:left}.composer{position:absolute;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(var(--composer-width),calc(100% - 48px));min-height:50px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:7px 8px 7px 16px;border:1px solid var(--line);border-radius:25px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.08)}.composer textarea{width:100%;min-height:30px;max-height:150px;border:0;outline:0;resize:none;padding:5px 0;background:transparent;line-height:1.45}.composer button{width:36px;height:36px;border:0;border-radius:999px;display:grid;place-items:center;background:#111827;color:#fff}.composer button:disabled{opacity:.42;cursor:default}.error-text{color:var(--danger)!important;min-height:22px}.success-text{color:var(--success);min-height:22px}.mock-page{width:min(980px,100%);margin:0 auto;padding:8px 0 130px;display:grid;gap:16px}.mock-hero,.mock-card{border:1px solid var(--line);border-radius:20px;background:#fff;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.04)}.mock-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.mock-kicker{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}.mock-title{margin:6px 0 0;font-size:28px;line-height:1.15;font-weight:750}.mock-copy{margin:8px 0 0;color:var(--muted);line-height:1.7}.mock-actions{display:flex;gap:8px;flex-wrap:wrap}.mock-btn{min-height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);padding:0 14px;font-weight:650}.mock-btn.primary{background:#111827;color:#fff;border-color:#111827}.mock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mock-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.mock-card h3{margin:0 0 8px;font-size:16px}.mock-card p,.mock-card li{color:var(--muted);line-height:1.7}.mock-value{font-size:24px;font-weight:800}.mock-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mock-form label{display:grid;gap:6px;color:var(--muted);font-size:13px}.mock-form input,.mock-form select{min-height:42px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:#fff}.mock-span{grid-column:1/-1}.modal-backdrop{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.24);overflow:auto}.modal-backdrop.open{display:flex}.modal{width:min(860px,100%);max-height:calc(100vh - 40px);border:1px solid var(--line);border-radius:26px;background:#fff;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}.modal-header{padding:22px 24px 10px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.modal-title{margin:0;font-size:24px;line-height:1.25;font-weight:800}.modal-copy{margin:8px 0 0;color:var(--muted);line-height:1.75;font-size:15px}.modal-close{width:42px;height:42px;border-radius:14px;background:#fff;color:var(--text);border:1px solid var(--line);font-weight:800}.modal-body{padding:0 24px 24px;overflow:auto}.package-status-banner{width:min(720px,100%);margin:18px auto 0;padding:16px 18px;border-radius:20px;border:1px solid var(--line);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 10px 26px rgba(15,23,42,.05);display:grid;gap:6px}.package-status-label{display:inline-flex;width:fit-content;padding:6px 10px;border-radius:999px;background:#eef2f7;color:var(--text);font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.package-status-title{font-size:17px;font-weight:800;line-height:1.4}.package-status-copy{font-size:14px;color:var(--muted);line-height:1.6}.pricing-grid{display:grid;gap:14px;width:min(720px,100%);margin:22px auto 0;grid-template-columns:repeat(2,minmax(0,1fr))}.price-card{position:relative;overflow:hidden;border-radius:18px;padding:16px;background:#f9fafb;border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:0;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.price-card:hover{transform:translateY(-4px);border-color:#cbd5e1;box-shadow:0 18px 36px rgba(15,23,42,.08)}.price-card.featured{border-color:#cbd5e1;background:linear-gradient(180deg,#fff,#f8fafc)}.price-card strong{display:block;font-size:15px;margin-bottom:8px}.price-card span,.price-meta{color:var(--muted);font-size:14px;line-height:1.65}.price-meta{font-size:13px}.price-badge{display:inline-flex;width:fit-content;align-items:center;margin-bottom:8px;padding:6px 10px;border-radius:999px;background:#eef2f7;color:var(--muted);font-size:11px;font-weight:800}.price-badge.standard{background:rgba(219,234,254,.96);color:#1d4ed8}.price-badge.pro{background:rgba(220,252,231,.98);color:#166534}.price-tag{margin:8px 0 10px;font-size:28px;font-weight:800}.price-features{margin:12px 0 16px;padding:0;list-style:none;display:grid;gap:8px;color:var(--muted);font-size:13px;line-height:1.6}.price-features li{position:relative;padding-left:16px}.price-features li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:999px;background:#cbd5e1}.price-action{width:100%;margin-top:auto;padding:12px 14px;border-radius:14px;font-weight:800;border:1px solid var(--line);background:#fff;color:var(--text)}.price-action.primary{background:linear-gradient(180deg,#1f2937 0%,#111827 100%);color:#fff;border-color:transparent}.fair-use-panel{width:min(720px,100%);margin:18px auto 0;display:grid;gap:14px;padding:18px;border-radius:20px;border:1px solid #e5e7eb;background:linear-gradient(180deg,#fff 0%,#f9fafb 100%);box-shadow:0 10px 26px rgba(15,23,42,.05)}.fair-use-title{font-size:17px;font-weight:800;line-height:1.4}.fair-use-copy{font-size:14px;line-height:1.7;color:var(--muted);margin:0}.fair-use-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.fair-use-card{border-radius:16px;border:1px solid #e5e7eb;background:#fff;padding:14px;display:grid;gap:8px}.fair-use-card.promo{border-color:#cfd5de;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 10px 24px rgba(15,23,42,.06)}.fair-use-card strong{font-size:14px;font-weight:800}.fair-use-card span,.fair-use-note{font-size:13px;line-height:1.65;color:var(--muted)}.fair-use-note{padding:12px 14px;border-radius:16px;background:#f3f4f6}.cta-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;width:min(720px,100%);margin:18px auto 0}.primary-btn,.secondary-btn{min-height:42px;border-radius:14px;padding:0 16px;font-weight:800;border:1px solid var(--line);background:#fff;color:var(--text)}.primary-btn{background:#111827;color:#fff;border-color:#111827}@media(max-width:900px){.mock-hero{display:grid}.mock-grid,.mock-grid.two,.mock-form,.pricing-grid,.fair-use-grid{grid-template-columns:1fr}.mock-title{font-size:24px}.modal-backdrop{padding:12px}.modal{max-height:calc(100vh - 24px);border-radius:22px}.modal-header,.modal-body{padding-left:16px;padding-right:16px}.modal-title{font-size:21px}}.loading-line{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.spinner{width:14px;height:14px;border:2px solid #e5e7eb;border-top-color:#111827;border-radius:999px;animation:spin .8s linear infinite;flex:0 0 auto}@keyframes spin{to{transform:rotate(360deg)}}
.chat-view.composer-hidden .messages{padding-bottom:32px}.chat-view.composer-hidden .mock-page{padding-bottom:24px}
.cooldown-backdrop{position:fixed;inset:0;z-index:160;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.28);backdrop-filter:blur(8px)}.cooldown-backdrop.open{display:flex}.cooldown-card{width:min(420px,100%);border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow);padding:22px;display:grid;gap:12px;text-align:center}.cooldown-card strong{font-size:20px}.cooldown-card p{margin:0;color:var(--muted);line-height:1.65}.cooldown-time{font-size:42px;font-weight:850;letter-spacing:.02em}.cooldown-btn{min-height:42px;border:1px solid var(--line);border-radius:14px;background:#111827;color:#fff;font-weight:800;padding:0 16px}.cooldown-btn:disabled{opacity:.5;cursor:default}.mock-toast{position:fixed;left:calc(var(--sidebar-width) + ((100vw - var(--sidebar-width))/2));top:72px;transform:translateX(-50%);z-index:150;width:max-content;max-width:min(560px,calc(100vw - var(--sidebar-width) - 48px));padding:12px 16px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#111827;color:#fff;box-shadow:0 18px 40px rgba(15,23,42,.2);font-size:13px;font-weight:650;line-height:1.45;text-align:center;white-space:normal}.mock-toast.idle-warning{background:#0f172a;border-color:rgba(251,191,36,.5);box-shadow:0 18px 44px rgba(15,23,42,.24),inset 0 0 0 1px rgba(251,191,36,.18)}
.pro-lock-scope{position:relative}.bazi-pro-section.unlocked{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.bazi-pro-section.locked{display:grid;grid-column:1/-1}.pro-lock-blur{filter:blur(7px);user-select:none;pointer-events:none}.pro-lock-panel{position:absolute;inset:14px;z-index:5;display:grid;place-items:center;text-align:center;padding:18px;border:1px solid rgba(148,163,184,.24);border-radius:24px;background:rgba(255,255,255,.74);backdrop-filter:blur(8px);box-shadow:0 18px 40px rgba(15,23,42,.08)}.pro-lock-card{width:min(420px,100%);display:grid;gap:10px;justify-items:center}.pro-lock-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:#111827;color:#fff;font-size:24px;font-weight:950}.pro-lock-card strong{font-size:20px;color:#111827}.pro-lock-card p{margin:0;color:#64748b;line-height:1.6;font-size:14px}.pro-lock-card .mock-btn{margin-top:4px}.pro-lock-inline{position:relative;margin-top:14px;padding:16px;border:1px solid rgba(148,163,184,.24);border-radius:22px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 14px 30px rgba(15,23,42,.06);display:grid;place-items:center;text-align:center}.bazi-star-slot.pro-locked,.bazi-star-panel.pro-locked{position:relative}.bazi-star-slot.pro-locked .bazi-shensha-list,.bazi-star-panel.pro-locked .bazi-star-grid{filter:blur(6px);user-select:none;pointer-events:none}.bazi-star-slot.pro-locked::after{content:"🔒 Pro";display:grid;place-items:center;min-height:28px;border-radius:999px;background:rgba(17,24,39,.92);color:#fff;font-size:11px;font-weight:900}.bazi-star-panel.pro-locked::after{content:"🔒 สำหรับแพ็กเกจ Pro เท่านั้น";position:absolute;inset:58px 18px 18px;display:grid;place-items:center;border-radius:20px;background:rgba(255,255,255,.72);backdrop-filter:blur(8px);font-weight:950;color:#111827}.bazi-preview-lock .bazi-analysis-copy,.bazi-preview-lock .bazi-analysis-hero-copy p,.bazi-preview-lock .bazi-element-chip-row,.bazi-preview-lock .bazi-balance-visual,.bazi-preview-lock .bazi-balance-note,.bazi-preview-lock .bazi-insight-tags,.bazi-preview-lock .bazi-insight-point-grid,.bazi-preview-lock .bazi-insight-note,.bazi-preview-lock .bazi-star-grid,.bazi-preview-lock .bazi-life-card p{filter:blur(6px);user-select:none;pointer-events:none}.bazi-preview-lock .bazi-star-panel.pro-locked::after{display:none}.bazi-preview-lock .bazi-pro-section.locked{display:contents}.bazi-preview-lock .bazi-pro-section.locked>.pro-lock-blur{display:contents;filter:none}
.bazi-page{display:grid;gap:16px}.bazi-page .page-card{border:1px solid var(--line);border-radius:24px;background:#fff;padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.05)}.bazi-chart-summary{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:16px}.bazi-summary-card,.bazi-note-card{border:1px solid rgba(148,163,184,.16);border-radius:24px;padding:20px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 14px 28px rgba(15,23,42,.04)}.bazi-summary-card{background:linear-gradient(180deg,#fcfbff 0%,#f7f8ff 100%);border-color:rgba(129,140,248,.16)}.bazi-summary-kicker,.bazi-analysis-kicker{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6d28d9}.bazi-summary-title{margin:6px 0 8px;font-size:30px;line-height:1.2;font-weight:900;color:#111827}.bazi-summary-copy,.bazi-note-card p,.bazi-analysis-copy,.bazi-analysis-card p{margin:0;color:#334155;line-height:1.75;font-size:14px}.bazi-summary-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.bazi-meta-chip,.bazi-element-indicator,.bazi-element-chip,.bazi-analysis-value-pill,.bazi-pillar-badge,.bazi-tengod-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;border:1px solid rgba(148,163,184,.18);background:rgba(248,250,252,.95);padding:8px 12px;font-size:12px;font-weight:850;color:#0f172a}.bazi-note-card{display:grid;align-content:start;gap:10px}.bazi-note-card strong{font-size:16px;font-weight:900}.bazi-profile-badge{display:inline-flex;width:fit-content;padding:8px 12px;border-radius:999px;background:#111827;color:#fff;font-size:12px;font-weight:850}.bazi-pillars-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bazi-pillar-card{display:grid;gap:12px;padding:18px 16px;border-radius:24px;border:1px solid rgba(15,23,42,.06);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 14px 30px rgba(15,23,42,.05);text-align:center}.bazi-pillar-card.day-master{border-color:rgba(99,102,241,.22);background:linear-gradient(180deg,#fcfbff 0%,#f3f4ff 100%)}.bazi-pillar-title{font-size:15px;font-weight:900}.bazi-stem-block,.bazi-branch-block{display:grid;justify-items:center;gap:6px}.bazi-char{font-size:40px;line-height:1;font-weight:900}.bazi-char.wood,.bazi-hidden-stem-char.wood{color:#15803d}.bazi-char.fire,.bazi-hidden-stem-char.fire{color:#dc2626}.bazi-char.earth,.bazi-hidden-stem-char.earth{color:#b45309}.bazi-char.metal,.bazi-hidden-stem-char.metal{color:#475569}.bazi-char.water,.bazi-hidden-stem-char.water{color:#1d4ed8}.bazi-label{font-size:11px;font-weight:850;color:#94a3b8;letter-spacing:.06em;text-transform:uppercase}.bazi-thai-name{font-size:14px;font-weight:750;white-space:nowrap}.bazi-divider{height:1px;background:linear-gradient(90deg,rgba(148,163,184,0),rgba(148,163,184,.45),rgba(148,163,184,0))}.bazi-hidden-stems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bazi-hidden-stem-chip{display:grid;gap:2px;padding:8px;border-radius:16px;background:rgba(248,250,252,.9);border:1px solid rgba(148,163,184,.18)}.bazi-hidden-stem-char{font-size:18px;font-weight:900}.bazi-hidden-stem-name{font-size:11px;color:#475569;font-weight:750}.bazi-analysis-shell{display:grid;gap:16px}.bazi-analysis-head{display:grid;gap:8px}.bazi-analysis-highlight{padding:18px 20px;border-radius:24px;border:1px solid rgba(129,140,248,.16);background:linear-gradient(180deg,#fcfbff 0%,#f7f8ff 100%);box-shadow:0 16px 34px rgba(15,23,42,.05)}.bazi-analysis-hero{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);gap:16px}.bazi-element-avatar{display:grid;gap:10px;align-content:start;justify-items:start;padding:18px;border-radius:22px;border:1px solid rgba(148,163,184,.14);background:rgba(255,255,255,.75)}.bazi-element-avatar-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;font-size:28px;font-weight:900}.bazi-element-avatar-icon.wood,.bazi-element-chip.wood{background:rgba(220,252,231,.92);color:#166534;border-color:rgba(34,197,94,.22)}.bazi-element-avatar-icon.fire,.bazi-element-chip.fire{background:rgba(254,226,226,.92);color:#b91c1c;border-color:rgba(239,68,68,.18)}.bazi-element-avatar-icon.earth,.bazi-element-chip.earth{background:rgba(254,243,199,.92);color:#92400e;border-color:rgba(245,158,11,.22)}.bazi-element-avatar-icon.metal,.bazi-element-chip.metal{background:rgba(226,232,240,.92);color:#334155;border-color:rgba(100,116,139,.18)}.bazi-element-avatar-icon.water,.bazi-element-chip.water{background:rgba(219,234,254,.9);color:#1d4ed8;border-color:rgba(59,130,246,.18)}.bazi-element-avatar-label{display:grid;gap:4px}.bazi-element-avatar-label span{font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#6b7280}.bazi-element-avatar-label strong{font-size:18px;font-weight:900}.bazi-analysis-hero-copy{display:grid;gap:12px;align-content:start}.bazi-analysis-hero-copy strong{font-size:16px;font-weight:900}.bazi-element-chip-row,.bazi-analysis-value-row{display:flex;flex-wrap:wrap;gap:10px}.bazi-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bazi-analysis-card{display:grid;gap:8px;padding:18px;border-radius:22px;border:1px solid rgba(148,163,184,.14);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 14px 28px rgba(15,23,42,.04)}.bazi-analysis-card.span-2{grid-column:1/-1}.bazi-analysis-card-head{display:flex;align-items:center;gap:10px}.bazi-analysis-card-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:14px;background:rgba(238,242,255,.95);color:#4338ca;font-weight:900}.bazi-analysis-card-title{display:grid;gap:2px}.bazi-analysis-card-title strong{font-size:15px;font-weight:900}.bazi-analysis-card-title small{font-size:11px;font-weight:750;color:#6b7280}.bazi-analysis-card-theme{padding:20px;border-radius:24px;overflow:hidden}.bazi-analysis-card-theme.support{background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 100%);border-color:rgba(16,185,129,.18)}.bazi-analysis-card-theme.pattern{background:linear-gradient(135deg,#faf5ff 0%,#ede9fe 100%);border-color:rgba(139,92,246,.16)}.bazi-analysis-mini-kicker{font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:rgba(15,23,42,.48)}.bazi-analysis-meter{display:grid;gap:12px}.bazi-analysis-meter-row{display:grid;grid-template-columns:minmax(0,118px) minmax(0,1fr) auto;gap:10px;align-items:center}.bazi-analysis-meter-label{display:flex;gap:8px;font-size:12px;font-weight:850}.bazi-analysis-meter-track{position:relative;overflow:hidden;height:12px;border-radius:999px;background:rgba(226,232,240,.9)}.bazi-analysis-meter-fill{position:absolute;inset:0 auto 0 0;border-radius:inherit}.bazi-analysis-meter-fill.wood{background:linear-gradient(90deg,#4ade80,#16a34a)}.bazi-analysis-meter-fill.fire{background:linear-gradient(90deg,#fb7185,#dc2626)}.bazi-analysis-meter-fill.earth{background:linear-gradient(90deg,#fbbf24,#d97706)}.bazi-analysis-meter-fill.metal{background:linear-gradient(90deg,#cbd5e1,#64748b)}.bazi-analysis-meter-fill.water{background:linear-gradient(90deg,#60a5fa,#2563eb)}.bazi-analysis-meter-value{min-width:34px;text-align:right;font-size:12px;font-weight:850;color:#334155}
.session-list .session-card-action{width:100%;min-height:38px;padding:4px 12px;display:flex!important;align-items:center;justify-content:center;gap:6px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.45}.session-list .session-card-action span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-list .session-card-action svg{width:14px;height:14px;flex:0 0 auto}.page-shell{width:min(1120px,100%);margin:0 auto;display:grid;gap:18px}.page-card{border:1px solid var(--line);border-radius:24px;background:#fff;padding:22px;box-shadow:0 14px 34px rgba(15,23,42,.05)}.page-kicker{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6d28d9}.page-title{margin:6px 0 0;font-size:30px;line-height:1.15;font-weight:900;color:#0f172a}.page-copy{margin:10px 0 0;color:#475569;font-size:15px;line-height:1.8;max-width:72ch}.section-head{margin-bottom:16px}.section-title{font-size:18px;font-weight:900;color:#0f172a}.bazi-page-shell{display:grid;gap:18px}.bazi-page-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.bazi-page-actions .secondary-btn,.bazi-page-actions .ghost-btn{min-height:40px;border-radius:14px;padding:0 14px;font-weight:800;border:1px solid var(--line);background:#fff;color:var(--text)}.bazi-page-actions .ghost-btn{background:#f8fafc}.bazi-note-card{background:linear-gradient(180deg,#131926 0%,#1f2937 100%)!important;color:#e5eefc!important}.bazi-note-card strong{color:#f8fbff!important}.bazi-note-card p{color:rgba(229,238,252,.82)!important}.bazi-profile-badge{border:1px solid #ddd6fe!important;background:linear-gradient(180deg,#f8f6ff 0%,#f2efff 100%)!important;color:#4c1d95!important}.bazi-profile-badge::before{content:"";width:9px;height:9px;border-radius:999px;background:linear-gradient(135deg,#7c3aed 0%,#2563eb 100%);box-shadow:0 0 0 4px rgba(124,58,237,.12)}.bazi-pillars-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bazi-pillar-card{gap:10px;padding:16px 10px;border-radius:20px}.bazi-pillar-title{font-size:14px}.bazi-char{font-size:36px}.bazi-thai-name{font-size:12px;white-space:normal;line-height:1.35}.bazi-label{font-size:10px}.bazi-hidden-stems,.bazi-pillar-badge{display:none!important}.bazi-detail-list{display:grid;gap:10px;grid-auto-rows:minmax(54px,auto);align-content:start}.bazi-detail-row{display:grid;gap:4px}.bazi-detail-row strong{font-size:12px;font-weight:800;color:#111827}.bazi-detail-row span{font-size:13px;line-height:1.65;color:#0f172a}.bazi-shensha-list{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%}.bazi-shensha-chip{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:7px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.18);background:rgba(248,250,252,.95);color:#0f172a;font-size:11px;font-weight:850;line-height:1.2;text-align:center;white-space:nowrap}.bazi-shensha-main{font-size:11px;font-weight:900}.bazi-shensha-chip.ss-th{background:rgba(236,253,245,.96);border-color:rgba(16,185,129,.18);color:#047857}.bazi-shensha-chip.ss-hn{background:rgba(238,242,255,.96);border-color:rgba(99,102,241,.18);color:#4338ca}.bazi-shensha-chip.ss-hg{background:rgba(250,245,255,.96);border-color:rgba(168,85,247,.18);color:#6d28d9}.bazi-shensha-chip.ss-gs{background:rgba(254,243,199,.96);border-color:rgba(245,158,11,.22);color:#92400e}
.bazi-badge-row{display:flex;justify-content:center;min-width:0}.bazi-tengod-badge{max-width:100%;padding:6px 9px;font-size:10.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bazi-tengod-badge.wood{background:rgba(220,252,231,.92);color:#166534;border-color:rgba(34,197,94,.22)}.bazi-tengod-badge.fire{background:rgba(254,226,226,.92);color:#b91c1c;border-color:rgba(239,68,68,.18)}.bazi-tengod-badge.earth{background:rgba(254,243,199,.92);color:#92400e;border-color:rgba(245,158,11,.22)}.bazi-tengod-badge.metal{background:rgba(226,232,240,.92);color:#334155;border-color:rgba(100,116,139,.18)}.bazi-tengod-badge.water{background:rgba(219,234,254,.9);color:#1d4ed8;border-color:rgba(59,130,246,.18)}.bazi-pillar-card{grid-template-rows:auto auto auto auto minmax(34px,auto);align-content:start;height:100%;min-height:278px}.bazi-stem-block,.bazi-branch-block{min-height:82px;align-content:start}.bazi-star-slot{align-self:end;display:block;min-height:34px}.bazi-star-slot:empty{visibility:hidden}.bazi-star-slot .bazi-shensha-list{align-content:start}
.bazi-birth-certificate{position:relative;overflow:hidden;display:grid;gap:18px;background:linear-gradient(135deg,#fff 0%,#f8f6ff 58%,#eef6ff 100%)}.bazi-birth-certificate::after{content:"";position:absolute;right:-42px;top:-42px;width:150px;height:150px;border-radius:999px;background:radial-gradient(circle,rgba(99,102,241,.12) 0%,rgba(99,102,241,.06) 45%,rgba(99,102,241,0) 72%);pointer-events:none}.bazi-certificate-head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.bazi-certificate-name{display:grid;gap:8px}.bazi-certificate-name small{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6d28d9}.bazi-certificate-name strong{font-size:30px;line-height:1.2;font-weight:950;color:#111827}.bazi-certificate-chip{display:inline-flex;width:fit-content;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;background:#ecfdf5;border:1px solid rgba(34,197,94,.2);color:#166534;font-size:12px;font-weight:900}.bazi-certificate-chip b{font-size:14px}.bazi-certificate-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bazi-certificate-item{display:grid;gap:5px;min-height:82px;padding:13px;border-radius:18px;border:1px solid rgba(148,163,184,.16);background:rgba(255,255,255,.74);box-shadow:0 10px 20px rgba(15,23,42,.035)}.bazi-certificate-item span{font-size:11px;font-weight:900;color:#64748b;letter-spacing:.03em}.bazi-certificate-item strong{font-size:15px;line-height:1.35;font-weight:900;color:#0f172a}.bazi-certificate-item.feature{background:linear-gradient(180deg,#ecfdf5 0%,#f0fdf4 100%);border-color:rgba(34,197,94,.18)}.bazi-certificate-item.feature strong{color:#166534}.bazi-certificate-note{position:relative;z-index:1;margin:0;color:#64748b;font-size:13px;line-height:1.65}.bazi-profile-badge{align-items:center;gap:8px;line-height:1.2}.bazi-profile-badge::before{flex:0 0 auto;align-self:center}
.bazi-support-score-card{position:relative;overflow:hidden;background:linear-gradient(180deg,#131926 0%,#1f2937 100%)!important;color:#e5eefc!important}.bazi-support-score-card strong{position:relative;z-index:1;color:#f8fbff!important}.bazi-support-score-main{position:relative;z-index:1;display:flex;align-items:end;gap:8px}.bazi-support-score-main strong{font-size:46px!important;line-height:.95}.bazi-support-score-main span{padding-bottom:5px;font-size:12px;font-weight:900;color:rgba(229,238,252,.72)}.bazi-support-score-gauge{position:relative;z-index:1;display:grid;gap:6px}.bazi-support-score-gauge-track{position:relative;height:12px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}.bazi-support-score-gauge-fill{position:relative;display:block;height:100%;width:78%;border-radius:inherit;background:linear-gradient(90deg,#34d399 0%,#60a5fa 58%,#c084fc 100%);box-shadow:0 0 18px rgba(96,165,250,.28);overflow:hidden}.bazi-support-score-gauge-fill::after{content:"";position:absolute;inset:-40% auto -40% -35%;width:38%;transform:skewX(-22deg);background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));animation:baziGaugeShine 2.4s ease-in-out infinite}.bazi-support-score-gauge-label{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:900;color:rgba(229,238,252,.72)}.bazi-support-score-card p{position:relative;z-index:1;color:rgba(229,238,252,.82)!important}.bazi-support-bars{position:relative;z-index:1;display:grid;gap:10px}.bazi-support-bar{display:grid;gap:5px}.bazi-support-bar-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:900;color:rgba(248,251,255,.92)}.bazi-support-track{height:8px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}.bazi-support-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a7f3d0,#60a5fa)}@keyframes baziGaugeShine{0%{left:-45%}45%,100%{left:118%}}@keyframes baziCardShine{0%{left:-70%}38%,100%{left:130%}}@media(prefers-reduced-motion:reduce){.bazi-support-score-gauge-fill::after,.bazi-balance-fill::after,.bazi-star-card::after,.bazi-insight-card::after{animation:none!important}}
.bazi-support-score-card::before,.bazi-support-score-card::after{display:none!important;content:none!important}.bazi-star-panel{gap:14px;background:linear-gradient(180deg,#fff 0%,#fbfbff 100%)}.bazi-star-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bazi-star-card{position:relative;overflow:hidden;display:grid;gap:8px;min-height:128px;padding:16px 14px 14px;border-radius:18px;border:1px solid rgba(148,163,184,.16);background:rgba(255,255,255,.88);box-shadow:0 14px 28px rgba(15,23,42,.06)}.bazi-star-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#111827}.bazi-star-card::after{content:"";position:absolute;inset:0 auto 0 -65%;width:46%;transform:skewX(-22deg);background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.34),rgba(255,255,255,0));animation:baziCardShine 5.6s ease-in-out infinite;pointer-events:none}.bazi-star-card:nth-child(2)::after{animation-delay:.5s}.bazi-star-card:nth-child(3)::after{animation-delay:1s}.bazi-star-card:nth-child(4)::after{animation-delay:1.5s}.bazi-star-card.support{background:linear-gradient(180deg,#ecfdf5 0%,#f8fffb 100%);border-color:rgba(16,185,129,.22)}.bazi-star-card.support::before{background:#10b981}.bazi-star-card.wisdom{background:linear-gradient(180deg,#eef2ff 0%,#fbfbff 100%);border-color:rgba(99,102,241,.22)}.bazi-star-card.wisdom::before{background:#6366f1}.bazi-star-card.skill{background:linear-gradient(180deg,#faf5ff 0%,#fff 100%);border-color:rgba(168,85,247,.22)}.bazi-star-card.skill::before{background:#a855f7}.bazi-star-card.fortune{background:linear-gradient(180deg,#fffbeb 0%,#fff 100%);border-color:rgba(245,158,11,.25)}.bazi-star-card.fortune::before{background:#f59e0b}.bazi-star-card strong,.bazi-star-card em,.bazi-star-card p{position:relative;z-index:1}.bazi-star-card strong{font-size:15px;font-weight:950;color:#0f172a}.bazi-star-card em{font-style:normal;width:fit-content;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.82);border:1px solid rgba(148,163,184,.18);font-size:11px;font-weight:850;color:#64748b}.bazi-star-card em:last-child{margin-top:auto;color:#94a3b8;background:rgba(248,250,252,.78)}.bazi-star-card p{font-size:13px!important;line-height:1.6!important;color:#334155!important}.bazi-star-note{padding:14px 16px;border-radius:18px;background:#f8fafc;border:1px dashed rgba(148,163,184,.32)}.bazi-star-note p{font-size:13px!important}
.bazi-insight-card{position:relative;overflow:hidden;gap:14px}.bazi-insight-card::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:#111827}.bazi-insight-card::after{content:"";position:absolute;left:-70%;top:0;width:42%;height:100%;transform:skewX(-22deg);background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.28),rgba(255,255,255,0));animation:baziCardShine 6.2s ease-in-out infinite;pointer-events:none}.bazi-insight-card.pattern::after{animation-delay:1.2s}.bazi-insight-card.support::before{background:linear-gradient(90deg,#2563eb,#10b981)}.bazi-insight-card.pattern::before{background:linear-gradient(90deg,#7c3aed,#f59e0b)}.bazi-insight-card>*{position:relative;z-index:1}.bazi-insight-lead{display:grid;gap:10px}.bazi-insight-tags{display:flex;flex-wrap:wrap;gap:8px}.bazi-insight-tag{display:inline-flex;align-items:center;gap:6px;width:fit-content;padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.82);border:1px solid rgba(148,163,184,.18);font-size:12px;font-weight:900;color:#0f172a}.bazi-insight-tag.water{color:#1d4ed8;background:rgba(219,234,254,.88);border-color:rgba(59,130,246,.18)}.bazi-insight-tag.wood{color:#166534;background:rgba(220,252,231,.9);border-color:rgba(34,197,94,.18)}.bazi-insight-tag.fire{color:#b91c1c;background:rgba(254,226,226,.9);border-color:rgba(239,68,68,.18)}.bazi-insight-tag.earth{color:#92400e;background:rgba(254,243,199,.92);border-color:rgba(245,158,11,.22)}.bazi-insight-tag.metal{color:#334155;background:rgba(226,232,240,.92);border-color:rgba(100,116,139,.18)}.bazi-insight-tag.dark{color:#4338ca;background:rgba(238,242,255,.9);border-color:rgba(99,102,241,.18)}.bazi-insight-point-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bazi-insight-point{display:grid;gap:5px;padding:12px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid rgba(148,163,184,.14)}.bazi-insight-point span{font-size:11px;font-weight:900;color:#64748b}.bazi-insight-point strong{font-size:14px;line-height:1.35;font-weight:950;color:#0f172a}.bazi-insight-note{padding:13px 14px;border-radius:18px;background:rgba(255,255,255,.68);border:1px dashed rgba(148,163,184,.28)}.bazi-insight-note p{font-size:13px!important;line-height:1.65!important}
.bazi-balance-card{gap:16px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.bazi-balance-visual{display:grid;gap:10px}.bazi-balance-row{display:grid;grid-template-columns:86px minmax(0,1fr) 42px;align-items:center;gap:10px}.bazi-balance-name{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:950;color:#0f172a}.bazi-balance-dot{width:10px;height:10px;border-radius:999px;background:#94a3b8}.bazi-balance-dot.wood{background:#22c55e}.bazi-balance-dot.fire{background:#ef4444}.bazi-balance-dot.earth{background:#f59e0b}.bazi-balance-dot.metal{background:#64748b}.bazi-balance-dot.water{background:#3b82f6}.bazi-balance-track{height:14px;border-radius:999px;background:#e5e7eb;overflow:hidden}.bazi-balance-fill{position:relative;display:block;height:100%;border-radius:inherit;overflow:hidden}.bazi-balance-fill::after{content:"";position:absolute;inset:-45% auto -45% -40%;width:34%;transform:skewX(-22deg);background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.5),rgba(255,255,255,0));animation:baziGaugeShine 3.6s ease-in-out infinite}.bazi-balance-fill.wood{background:linear-gradient(90deg,#86efac,#16a34a)}.bazi-balance-fill.fire{background:linear-gradient(90deg,#fca5a5,#dc2626)}.bazi-balance-fill.earth{background:linear-gradient(90deg,#fcd34d,#d97706)}.bazi-balance-fill.metal{background:linear-gradient(90deg,#cbd5e1,#64748b)}.bazi-balance-fill.water{background:linear-gradient(90deg,#93c5fd,#2563eb)}.bazi-balance-score{text-align:right;font-size:12px;font-weight:900;color:#475569}.bazi-balance-note{padding:13px 14px;border-radius:18px;background:#fff;border:1px dashed rgba(148,163,184,.3)}.bazi-balance-note p{font-size:13px!important;line-height:1.65!important}.bazi-clean-head{display:block}.bazi-clean-head .bazi-analysis-card-title strong{font-size:19px;line-height:1.25}.bazi-clean-head .bazi-analysis-card-title small{margin-top:3px;font-size:12px}
.bazi-analysis-heading{display:grid;gap:6px}.bazi-analysis-title{font-size:24px;line-height:1.2;font-weight:950;color:#0f172a}
.bazi-life-card{position:relative;overflow:hidden;align-content:start;gap:14px;padding:0;border-radius:24px;border-color:rgba(148,163,184,.16);box-shadow:0 18px 36px rgba(15,23,42,.06)}.bazi-life-card::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:#cbd5e1}.bazi-life-card.work{background:linear-gradient(180deg,#eff6ff 0%,#fff 42%)}.bazi-life-card.money{background:linear-gradient(180deg,#ecfdf5 0%,#fff 42%)}.bazi-life-card.love{background:linear-gradient(180deg,#fdf2f8 0%,#fff 42%)}.bazi-life-card.health{background:linear-gradient(180deg,#fffbeb 0%,#fff 42%)}.bazi-life-card.work::before{background:linear-gradient(90deg,#2563eb,#60a5fa)}.bazi-life-card.money::before{background:linear-gradient(90deg,#16a34a,#86efac)}.bazi-life-card.love::before{background:linear-gradient(90deg,#db2777,#f9a8d4)}.bazi-life-card.health::before{background:linear-gradient(90deg,#f59e0b,#fde68a)}.bazi-life-card .bazi-clean-head{padding:22px 22px 0;border-bottom:0}.bazi-life-card .bazi-analysis-card-title strong{font-size:22px;letter-spacing:0}.bazi-life-card .bazi-analysis-card-title small{margin-top:5px;font-size:12px;color:#64748b}.bazi-life-card p{position:relative;margin:0 18px 18px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.82);border:1px solid rgba(148,163,184,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.75);color:#334155!important;font-size:14px!important;line-height:1.9!important}.bazi-life-card p::before{content:"";position:absolute;left:18px;top:-1px;width:52px;height:3px;border-radius:999px;background:#e5e7eb}.bazi-life-card.work p::before{background:#60a5fa}.bazi-life-card.money p::before{background:#4ade80}.bazi-life-card.love p::before{background:#f472b6}.bazi-life-card.health p::before{background:#fbbf24}
.monthly-page{display:grid;gap:16px}.monthly-panel{position:relative;overflow:hidden;border:1px solid rgba(148,163,184,.16);border-radius:24px;background:#fff;padding:22px;box-shadow:0 16px 34px rgba(15,23,42,.05)}.monthly-panel::after{content:"";position:absolute;inset:0 auto auto -35%;width:45%;height:100%;background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.58) 45%,transparent 82%);transform:skewX(-18deg);animation:monthlyShine 4.8s ease-in-out infinite;pointer-events:none}.monthly-report-cover{min-height:280px;display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,.5fr);gap:18px;align-items:stretch;background:radial-gradient(circle at 12% 8%,rgba(59,130,246,.13),transparent 34%),radial-gradient(circle at 86% 14%,rgba(34,197,94,.14),transparent 32%),linear-gradient(135deg,#0f172a 0%,#1f2937 58%,#111827 100%);color:#fff}.monthly-report-cover::before{content:"";position:absolute;right:-60px;bottom:-90px;width:240px;height:240px;border-radius:999px;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 34px rgba(255,255,255,.03),0 0 0 76px rgba(255,255,255,.02)}.monthly-report-main{position:relative;z-index:1;display:grid;align-content:space-between;gap:18px}.monthly-report-date{display:flex;flex-wrap:wrap;gap:8px}.monthly-pill{display:inline-flex;min-height:30px;align-items:center;border-radius:999px;padding:0 11px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.86);font-size:12px;font-weight:850}.monthly-kicker{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6d28d9}.monthly-report-cover .monthly-kicker{color:#bfdbfe}.monthly-title{margin:6px 0 8px;font-size:26px;line-height:1.25;font-weight:950;color:#0f172a}.monthly-report-cover .monthly-title{max-width:760px;font-size:34px;color:#fff}.monthly-copy{margin:0;color:#475569;font-size:14px;line-height:1.8}.monthly-report-cover .monthly-copy{max-width:68ch;color:rgba(255,255,255,.78)}.monthly-quick-summary{position:relative;z-index:1;display:grid;gap:12px;padding:18px;border-radius:24px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(12px)}.monthly-summary-item{display:grid;gap:4px;padding:12px;border-radius:18px;background:rgba(255,255,255,.08)}.monthly-summary-item span{font-size:11px;font-weight:850;color:rgba(255,255,255,.62);letter-spacing:.03em;text-transform:uppercase}.monthly-summary-item strong{font-size:14px;line-height:1.45;color:#fff}.monthly-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.52fr);gap:16px;background:linear-gradient(135deg,#fff 0%,#f7f8ff 52%,#f0fdf4 100%)}.monthly-score{display:grid;align-content:center;gap:10px;padding:18px;border-radius:22px;background:rgba(255,255,255,.78);border:1px solid rgba(148,163,184,.16)}.monthly-score-main{display:flex;align-items:flex-end;gap:10px}.monthly-score-main strong{font-size:48px;line-height:.95;font-weight:950;color:#111827}.monthly-score-main span{padding-bottom:6px;font-size:13px;font-weight:850;color:#475569}.monthly-score-track{position:relative;height:12px;border-radius:999px;background:#e5e7eb;overflow:hidden}.monthly-score-fill{position:absolute;inset:0 auto 0 0;width:74%;border-radius:inherit;background:linear-gradient(90deg,#111827 0%,#2563eb 58%,#22c55e 100%)}.monthly-score-note{font-size:13px;line-height:1.65;color:#475569}.monthly-section-title{font-size:22px;line-height:1.25;font-weight:950;color:#0f172a;margin:0 0 14px}.monthly-brief-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:16px}.monthly-brief-card{display:grid;gap:12px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.monthly-brief-list{display:grid;gap:10px}.monthly-brief-list div{display:grid;gap:4px;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.14)}.monthly-brief-list span{font-size:12px;font-weight:850;color:#64748b}.monthly-brief-list strong{font-size:14px;line-height:1.5;color:#111827}.monthly-focus-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.monthly-focus-card{position:relative;overflow:hidden;display:grid;gap:12px;padding:18px;border-radius:22px;border:1px solid rgba(148,163,184,.16);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.monthly-focus-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#cbd5e1}.monthly-focus-card.work::before{background:linear-gradient(90deg,#2563eb,#93c5fd)}.monthly-focus-card.money::before{background:linear-gradient(90deg,#16a34a,#86efac)}.monthly-focus-card.relationship::before{background:linear-gradient(90deg,#db2777,#f9a8d4)}.monthly-focus-card.health::before{background:linear-gradient(90deg,#f59e0b,#fde68a)}.monthly-focus-card strong{font-size:17px;font-weight:950;color:#111827}.monthly-focus-card p{margin:0;color:#475569;font-size:14px;line-height:1.75}.monthly-mini-label{display:inline-flex;width:fit-content;min-height:26px;align-items:center;border-radius:999px;background:#f1f5f9;color:#475569;padding:0 10px;font-size:11px;font-weight:850}.monthly-timeline{display:grid;gap:12px}.monthly-time-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:start;padding:14px;border-radius:18px;background:#f8fafc;border:1px solid rgba(148,163,184,.14)}.monthly-time-label{font-size:13px;font-weight:950;color:#111827}.monthly-time-row p{margin:0;color:#475569;font-size:14px;line-height:1.75}.monthly-advice{display:grid;grid-template-columns:minmax(0,.48fr) minmax(0,1fr);gap:16px;align-items:stretch;background:linear-gradient(135deg,#111827 0%,#1f2937 100%);color:#fff}.monthly-advice .monthly-section-title,.monthly-advice .monthly-kicker{color:#fff}.monthly-advice p{margin:0;color:rgba(255,255,255,.82);font-size:14px;line-height:1.85}.monthly-advice-box{padding:18px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);display:grid;align-content:center;gap:10px}.monthly-advice-box strong{font-size:18px;line-height:1.45;font-weight:950}.monthly-advice-box span{color:rgba(255,255,255,.72);font-size:13px;line-height:1.65}.monthly-chat-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;border-style:dashed;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.monthly-chat-cta strong{font-size:18px;font-weight:950}.monthly-chat-cta p{margin:4px 0 0;color:#64748b;font-size:14px;line-height:1.65}.monthly-chat-actions{display:flex;flex-wrap:wrap;gap:8px}@keyframes monthlyShine{0%,58%{transform:translateX(0) skewX(-18deg);opacity:0}72%{opacity:1}100%{transform:translateX(330%) skewX(-18deg);opacity:0}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:min(86vw,320px);z-index:20;transform:translateX(-100%);transition:transform .2s ease;box-shadow:18px 0 44px rgba(0,0,0,.12)}.sidebar.open{transform:translateX(0)}.mobile-only{display:grid}.messages{padding-inline:16px}.composer{width:calc(100% - 24px);bottom:calc(12px + env(safe-area-inset-bottom,0px))}.message-content{max-width:88%}.mock-toast{left:50%;top:68px;max-width:calc(100vw - 24px);padding:11px 14px}.bazi-chart-summary,.bazi-analysis-hero,.bazi-analysis-grid,.bazi-pro-section.unlocked{grid-template-columns:1fr}.bazi-pro-section.unlocked{gap:18px}.bazi-pillars-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.bazi-page .page-card{padding:14px;border-radius:20px}.bazi-pillar-card{min-width:0;padding:12px 4px;border-radius:16px;gap:8px}.bazi-pillar-title{font-size:12px}.bazi-char{font-size:30px}.bazi-thai-name{font-size:10.5px;line-height:1.25}.bazi-label{font-size:9px}.bazi-divider{margin:0}.bazi-analysis-meter-row{grid-template-columns:1fr}.bazi-analysis-meter-value{text-align:left}.bazi-summary-title{font-size:25px}}
@media(max-width:900px){.bazi-pillars-grid,.bazi-star-grid{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 2px 12px;margin-inline:-2px}.bazi-pillars-grid::-webkit-scrollbar,.bazi-star-grid::-webkit-scrollbar{height:6px}.bazi-pillars-grid::-webkit-scrollbar-thumb,.bazi-star-grid::-webkit-scrollbar-thumb{background:rgba(148,163,184,.45);border-radius:999px}.bazi-pillar-card{flex:0 0 132px;scroll-snap-align:start}.bazi-star-card{flex:0 0 238px;scroll-snap-align:start}.bazi-star-grid{grid-template-columns:none}}
.bazi-empty-state{grid-column:1/-1;display:grid;justify-items:center;gap:10px;padding:22px;border-radius:20px;border:1px dashed rgba(148,163,184,.34);background:#f8fafc;text-align:center}.bazi-empty-state strong{font-size:18px;font-weight:950}.bazi-empty-state p{max-width:58ch;margin:0;color:#64748b;line-height:1.7;font-size:14px}@media(max-width:900px){.bazi-pillars-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important;padding:0!important;margin-inline:0!important;scroll-snap-type:none!important}.bazi-pillar-card{flex:initial!important;min-height:218px!important;padding:10px 4px!important;border-radius:14px!important;gap:7px!important;scroll-snap-align:none!important}.bazi-pillar-title{font-size:11px!important}.bazi-stem-block,.bazi-branch-block{min-height:58px!important}.bazi-char{font-size:25px!important}.bazi-thai-name{font-size:9.5px!important;line-height:1.22!important}.bazi-tengod-badge{padding:5px 4px!important;font-size:8.5px!important;letter-spacing:-.01em}.bazi-star-slot{min-height:24px!important}.bazi-shensha-chip{min-height:22px!important;padding:4px 5px!important;font-size:8.5px!important}.bazi-shensha-main{font-size:8.5px!important}}@media(max-width:380px){.bazi-pillars-grid{gap:4px!important}.bazi-pillar-card{padding:9px 3px!important}.bazi-char{font-size:23px!important}.bazi-thai-name{font-size:8.5px!important}.bazi-tengod-badge{font-size:7.8px!important}}
@media(max-width:900px){.monthly-report-cover,.monthly-hero,.monthly-brief-grid,.monthly-advice{grid-template-columns:1fr}.monthly-focus-grid{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 2px 12px;margin-inline:-2px}.monthly-focus-grid::-webkit-scrollbar{height:6px}.monthly-focus-grid::-webkit-scrollbar-thumb{background:rgba(148,163,184,.45);border-radius:999px}.monthly-focus-card{flex:0 0 252px;scroll-snap-align:start}.monthly-time-row{grid-template-columns:1fr;gap:6px}.monthly-panel{padding:18px}.monthly-title,.monthly-report-cover .monthly-title{font-size:24px}.monthly-section-title{font-size:20px}.monthly-score-main strong{font-size:44px}.monthly-chat-cta{display:grid}.monthly-chat-actions{width:100%}.monthly-chat-actions .mock-btn{flex:1}}
@media(max-width:640px){.monthly-featured-element{padding:20px!important}.monthly-featured-element::before{position:static;width:fit-content;margin-bottom:4px}.monthly-featured-element .monthly-section-title{padding-right:0;font-size:22px!important}.monthly-featured-element .monthly-element-hero{grid-template-columns:1fr;gap:14px}.monthly-featured-element .monthly-element-orb{width:96px;height:96px;border-radius:30px;font-size:36px}.monthly-featured-element .monthly-element-copy strong{font-size:25px}}
@media(max-width:640px){.monthly-page{gap:12px}.monthly-panel{border-radius:20px}.monthly-report-cover{gap:14px!important}.monthly-report-date{gap:6px}.monthly-pill{min-height:28px;padding:0 9px;font-size:11px}.monthly-report-cover .monthly-title{font-size:23px!important;line-height:1.28!important}.monthly-report-cover .monthly-copy,.monthly-copy{font-size:13.5px!important;line-height:1.68!important}.monthly-quick-summary{padding:12px!important;border-radius:18px!important;gap:8px}.monthly-summary-item{padding:10px!important;border-radius:14px!important}.monthly-summary-item strong{font-size:13px!important}.monthly-featured-element{overflow:hidden}.monthly-featured-element::after{height:5px}.monthly-element-card::before{font-size:10.5px;min-height:26px;padding:0 9px}.monthly-element-copy span{font-size:11px}.monthly-element-copy p,.monthly-element-note{font-size:13px!important;line-height:1.62!important}.monthly-brief-card{padding:16px!important;border-radius:20px!important}.monthly-brief-card .monthly-section-title{font-size:19px!important;line-height:1.32!important}.monthly-brief-card .monthly-score{padding:12px!important}.monthly-brief-card .monthly-score-main strong{font-size:34px!important}.monthly-focus-grid{padding-bottom:10px}.monthly-focus-card{flex-basis:238px!important;border-radius:20px!important}.monthly-focus-head{padding:15px 15px 10px}.monthly-focus-name{font-size:20px}.monthly-focus-body{padding:12px 15px 15px}.monthly-focus-body strong{font-size:15px!important}.monthly-focus-body p{font-size:13px!important;line-height:1.62!important}.monthly-time-row{padding:12px;border-radius:16px}.monthly-time-label{font-size:12.5px}.monthly-time-row p{font-size:13px!important;line-height:1.65!important}.monthly-advice-box{padding:14px;border-radius:16px}.monthly-advice-box strong{font-size:16px}.monthly-advice-box span{font-size:13px}.monthly-chat-actions{display:grid}.monthly-chat-actions .mock-btn{width:100%}}
@media(max-width:380px){.monthly-panel{padding:15px!important}.monthly-report-cover .monthly-title{font-size:21px!important}.monthly-featured-element .monthly-element-orb{width:84px;height:84px;border-radius:26px;font-size:32px}.monthly-featured-element .monthly-element-copy strong{font-size:22px}.monthly-focus-card{flex-basis:224px!important}.monthly-score-main{align-items:center}.monthly-score-main strong{font-size:34px!important}}
@media(max-width:640px){.bazi-certificate-head{align-items:center}.bazi-certificate-name strong{font-size:24px}.bazi-certificate-grid{grid-template-columns:1fr}.bazi-certificate-item{min-height:auto}.bazi-birth-certificate::after{right:-58px;top:-58px}.bazi-balance-row{grid-template-columns:72px minmax(0,1fr) 36px}.bazi-support-score-card{gap:12px!important}.bazi-support-score-card::after{right:10px;top:10px;font-size:42px}.bazi-support-score-main{display:grid;gap:4px;align-items:start}.bazi-support-score-main strong{font-size:42px!important}.bazi-support-score-main span{padding-bottom:0}.bazi-support-score-gauge-track{height:11px}.bazi-support-score-gauge-label{font-size:10px;gap:6px}.bazi-support-score-card p{font-size:13px!important;line-height:1.6!important}}
@media(max-width:520px){.bazi-star-card{flex-basis:236px;min-height:auto}.bazi-pillar-card{flex-basis:126px}}
.monthly-report-cover{min-height:0!important;grid-template-columns:minmax(0,1.05fr) minmax(250px,.55fr)!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 54%,#eef6ff 100%)!important;color:#0f172a!important;border-color:rgba(59,130,246,.14)!important}.monthly-report-cover::before{right:-92px!important;bottom:-102px!important;border-color:rgba(37,99,235,.1)!important;box-shadow:0 0 0 34px rgba(37,99,235,.045),0 0 0 76px rgba(34,197,94,.035)!important}.monthly-report-cover .monthly-kicker{color:#2563eb!important}.monthly-report-cover .monthly-title{color:#0f172a!important;font-size:32px!important;letter-spacing:0!important}.monthly-report-cover .monthly-copy{color:#475569!important}.monthly-report-date{position:relative;z-index:1}.monthly-pill{background:#fff!important;border-color:rgba(148,163,184,.2)!important;color:#334155!important;box-shadow:0 8px 18px rgba(15,23,42,.04)}.monthly-pill.highlight{background:#111827!important;color:#fff!important;border-color:#111827!important}.monthly-quick-summary{background:#fff!important;border-color:rgba(148,163,184,.18)!important;box-shadow:0 18px 34px rgba(15,23,42,.06)!important}.monthly-summary-item{background:#f8fafc!important;border:1px solid rgba(148,163,184,.14)}.monthly-summary-item span{color:#64748b!important}.monthly-summary-item strong{color:#0f172a!important}.monthly-brief-card,.monthly-focus-card,.monthly-time-row{background:#fff!important}.monthly-brief-list div{background:#fff!important}.monthly-score{background:#f8fafc!important}.monthly-section-title{letter-spacing:0}.monthly-advice{background:linear-gradient(135deg,#132018 0%,#1f2937 100%)!important}.monthly-chat-cta{border-style:solid!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%)!important}
.monthly-brief-card{align-content:start!important;padding:20px!important;gap:14px!important}.monthly-brief-card .monthly-kicker{margin-bottom:4px}.monthly-brief-card .monthly-section-title{margin:0 0 8px!important;font-size:21px!important;line-height:1.28!important}.monthly-brief-card .monthly-copy{font-size:14px!important;line-height:1.72!important}.monthly-brief-card .monthly-score{margin-top:2px;padding:14px 15px!important;border-radius:18px!important;gap:8px!important}.monthly-brief-card .monthly-score-main strong{font-size:38px!important}.monthly-brief-card .monthly-score-main span{font-size:12px!important;padding-bottom:4px!important}.monthly-brief-card .monthly-score-track{height:9px!important}.monthly-brief-card .monthly-score-note{font-size:12.5px!important;line-height:1.55!important}.monthly-brief-list{gap:8px!important}.monthly-brief-list div{padding:10px 12px!important;border-radius:14px!important}.monthly-brief-list span{font-size:11.5px!important}.monthly-brief-list strong{font-size:13.5px!important;line-height:1.45!important}
.monthly-overview-card{background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;border-color:rgba(37,99,235,.13)!important}.monthly-fast-card{background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%)!important}.monthly-fast-card .monthly-section-title{margin-bottom:10px!important}.monthly-fast-card .monthly-brief-list{height:100%;align-content:start}
.monthly-brief-grid .monthly-overview-card{grid-column:1/-1}
.monthly-focus-card{padding:0!important;gap:0!important}.monthly-focus-head{display:grid;gap:6px;padding:18px 18px 12px;border-bottom:1px solid rgba(148,163,184,.12)}.monthly-focus-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.monthly-focus-name{font-size:22px;line-height:1.1;font-weight:950;color:#0f172a}.monthly-focus-card .monthly-mini-label{background:transparent!important;padding:0!important;min-height:auto!important;color:#64748b!important}.monthly-focus-body{display:grid;gap:10px;padding:14px 18px 18px}.monthly-focus-body strong{font-size:16px!important;line-height:1.35}.monthly-focus-body p{font-size:13.5px!important;line-height:1.7!important}.monthly-element-card{position:relative;background:radial-gradient(circle at 88% 8%,rgba(59,130,246,.18),transparent 34%),linear-gradient(135deg,#eff6ff 0%,#ffffff 48%,#f8fafc 100%)!important;border:1px solid rgba(37,99,235,.2)!important;box-shadow:0 18px 38px rgba(37,99,235,.1)!important;display:grid!important;gap:14px!important}.monthly-element-card::before{content:"ช่องพิเศษประจำเดือน";position:absolute;right:18px;top:18px;min-height:28px;display:inline-flex;align-items:center;border-radius:999px;padding:0 11px;background:#111827;color:#fff;font-size:11px;font-weight:900;letter-spacing:.02em}.monthly-element-card .monthly-section-title{max-width:62%;margin-bottom:2px!important}.monthly-element-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;padding-top:8px}.monthly-element-orb{width:92px;height:92px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#93c5fd);color:#1d4ed8;font-size:34px;font-weight:950;box-shadow:0 20px 40px rgba(37,99,235,.2),inset 0 1px 0 rgba(255,255,255,.7)}.monthly-element-copy{display:grid;gap:7px}.monthly-element-copy span{font-size:12px;font-weight:900;color:#2563eb;letter-spacing:.04em;text-transform:uppercase}.monthly-element-copy strong{font-size:26px;line-height:1.18;font-weight:950;color:#0f172a}.monthly-element-copy p{margin:0;color:#475569;font-size:13.5px;line-height:1.65}.monthly-element-note{padding:13px 14px;border-radius:18px;background:#fff;border:1px solid rgba(37,99,235,.12);color:#334155;font-size:13.5px;line-height:1.7;box-shadow:0 10px 24px rgba(15,23,42,.04)}.monthly-element-note strong{color:#0f172a}
.monthly-featured-element{padding:26px!important;border-width:1.5px!important;box-shadow:0 24px 54px rgba(37,99,235,.16)!important}.monthly-featured-element::after{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,#1d4ed8,#60a5fa,#22c55e);animation:none!important}.monthly-featured-element .monthly-section-title{font-size:26px!important;max-width:none!important;padding-right:180px}.monthly-featured-element .monthly-element-hero{grid-template-columns:128px minmax(0,1fr);gap:22px;padding-top:4px}.monthly-featured-element .monthly-element-orb{width:128px;height:128px;border-radius:38px;font-size:46px}.monthly-featured-element .monthly-element-copy span{font-size:13px}.monthly-featured-element .monthly-element-copy strong{font-size:34px}.monthly-featured-element .monthly-element-copy p{font-size:15px;max-width:68ch}.monthly-featured-element .monthly-element-note{font-size:14px}
.monthly-advice-note{grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr)!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 58%,#f1f5f9 100%)!important;color:#0f172a!important;border-color:rgba(148,163,184,.18)!important;box-shadow:0 18px 42px rgba(15,23,42,.07)!important}.monthly-advice-note::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(180deg,#111827,#2563eb,#22c55e)}.monthly-advice-note .monthly-kicker{color:#2563eb!important}.monthly-advice-note .monthly-section-title{color:#0f172a!important;margin:4px 0 10px!important;font-size:23px!important;line-height:1.3!important;letter-spacing:0!important}.monthly-advice-note p{color:#475569!important;line-height:1.72!important}.monthly-advice-box{background:#111827!important;border:0!important;box-shadow:0 18px 34px rgba(17,24,39,.16)!important}.monthly-advice-box strong{color:#fff!important;font-size:19px!important;line-height:1.45!important}.monthly-advice-box span{color:rgba(255,255,255,.78)!important;line-height:1.75!important}.monthly-advice-signature{display:inline-flex;width:fit-content;align-items:center;margin-top:14px;padding:8px 12px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:900}
.monthly-quality-card{display:grid!important;gap:18px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important}.monthly-quality-head{display:grid;gap:8px;align-items:start}.monthly-quality-head p{max-width:64ch;margin:0;color:#64748b;font-size:14px;line-height:1.7}.monthly-quality-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.monthly-quality-title-row .monthly-section-title{margin:0!important;line-height:1.22!important}.monthly-quality-badge{display:inline-flex;min-height:28px;align-items:center;border-radius:999px;padding:0 10px;background:#f1f5f9;color:#334155;border:1px solid rgba(148,163,184,.16);font-size:11px;font-weight:900;white-space:nowrap}.monthly-quality-grid{display:grid;gap:12px}.monthly-quality-row{display:grid;grid-template-columns:92px minmax(0,1fr) 54px;gap:14px;align-items:center;padding:14px;border-radius:18px;background:#fff;border:1px solid rgba(148,163,184,.14);box-shadow:0 10px 24px rgba(15,23,42,.035)}.monthly-quality-name{display:grid;gap:2px}.monthly-quality-name strong{font-size:15px;font-weight:950;color:#0f172a}.monthly-quality-name span{font-size:11px;font-weight:800;color:#64748b}.monthly-quality-track{position:relative;height:14px;border-radius:999px;background:#e5e7eb;overflow:hidden}.monthly-quality-fill{position:absolute;inset:0 auto 0 0;border-radius:inherit}.monthly-quality-fill.work{width:78%;background:linear-gradient(90deg,#2563eb,#60a5fa)}.monthly-quality-fill.money{width:62%;background:linear-gradient(90deg,#16a34a,#86efac)}.monthly-quality-fill.love{width:69%;background:linear-gradient(90deg,#db2777,#f9a8d4)}.monthly-quality-score{font-size:18px;font-weight:950;text-align:right;color:#0f172a}.monthly-quality-note{padding:14px 16px;border-radius:18px;background:#111827;color:rgba(255,255,255,.78);font-size:13.5px;line-height:1.7}.monthly-quality-note strong{color:#fff}
.monthly-axis-chart{position:relative;min-height:330px;padding:18px 16px 14px 52px;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.14);box-shadow:0 12px 28px rgba(15,23,42,.04);overflow:hidden}.monthly-axis-y{position:absolute;left:14px;top:22px;bottom:54px;width:30px;display:grid;grid-template-rows:repeat(5,1fr);align-items:start;color:#94a3b8;font-size:11px;font-weight:800;text-align:right}.monthly-axis-y span{transform:translateY(-7px)}.monthly-axis-plot{position:relative;height:238px;border-left:2px solid #cbd5e1;border-bottom:2px solid #cbd5e1;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),rgba(148,163,184,.16) calc(25% - 1px),rgba(148,163,184,.16) 25%)}.monthly-axis-bars{position:absolute;inset:0 10px 0 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end}.monthly-axis-bar-wrap{height:100%;display:grid;align-items:end;justify-items:center;gap:8px;position:relative}.monthly-axis-bar{width:min(58px,70%);min-height:8px;border-radius:16px 16px 6px 6px;box-shadow:0 14px 26px rgba(15,23,42,.12);position:relative;transform-origin:bottom;animation:monthlyBarRise .8s cubic-bezier(.2,.8,.2,1) both}.monthly-axis-bar.work{height:78%;background:linear-gradient(180deg,#60a5fa,#2563eb)}.monthly-axis-bar.money{height:62%;background:linear-gradient(180deg,#86efac,#16a34a);animation-delay:.08s}.monthly-axis-bar.love{height:69%;background:linear-gradient(180deg,#f9a8d4,#db2777);animation-delay:.16s}.monthly-axis-score{position:absolute;bottom:calc(var(--score) + 9px);left:50%;transform:translateX(-50%);font-size:13px;font-weight:950;color:#0f172a;background:#fff;border:1px solid rgba(148,163,184,.18);border-radius:999px;padding:3px 8px;box-shadow:0 8px 18px rgba(15,23,42,.08);white-space:nowrap}.monthly-axis-x{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:10px 10px 0 18px;padding-left:2px}.monthly-axis-label{display:grid;justify-items:center;gap:2px;text-align:center}.monthly-axis-label strong{font-size:13px;font-weight:950;color:#0f172a}.monthly-axis-label span{display:none}.monthly-axis-caption{display:flex;justify-content:space-between;gap:10px;margin-top:12px;color:#94a3b8;font-size:11px;font-weight:850}.monthly-axis-caption span:last-child{text-align:right}@keyframes monthlyBarRise{from{transform:scaleY(.08);opacity:.5}to{transform:scaleY(1);opacity:1}}
.monthly-line-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.monthly-line-area{fill:url(#monthlyLineGradient);opacity:.14}.monthly-line-path{fill:none;stroke:#2563eb;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:520;stroke-dashoffset:520;filter:drop-shadow(0 5px 9px rgba(37,99,235,.12));animation:monthlyLineDraw 1.1s ease forwards}.monthly-line-point{fill:#2563eb;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 4px 7px rgba(15,23,42,.12));opacity:0;animation:monthlyPointPop .35s ease forwards}.monthly-line-point.work{animation-delay:.72s}.monthly-line-point.money{animation-delay:.86s}.monthly-line-point.love{animation-delay:1s}.monthly-line-point.health{animation-delay:1.14s}.monthly-dot-layer{position:absolute;inset:0;pointer-events:none}.monthly-dot{position:absolute;width:11px;height:11px;border-radius:999px;background:#2563eb;border:2px solid #fff;box-shadow:0 5px 12px rgba(15,23,42,.16);transform:translate(-50%,-50%);opacity:0;animation:monthlyDotPop .35s ease forwards}.monthly-dot.work{left:14%;top:22%;animation-delay:.72s}.monthly-dot.money{left:38%;top:38%;animation-delay:.86s}.monthly-dot.love{left:62%;top:31%;animation-delay:1s}.monthly-dot.health{left:86%;top:44%;animation-delay:1.14s}@keyframes monthlyLineDraw{to{stroke-dashoffset:0}}@keyframes monthlyPointPop{from{opacity:0}to{opacity:0}}@keyframes monthlyDotPop{from{opacity:0;transform:translate(-50%,-50%) scale(.7)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:900px){.monthly-report-cover{grid-template-columns:1fr!important}.monthly-brief-grid{grid-template-columns:1fr!important}.monthly-advice{grid-template-columns:1fr!important}.monthly-report-cover .monthly-title{font-size:24px!important;line-height:1.28!important}.monthly-featured-element .monthly-section-title{padding-right:0!important}.monthly-featured-element .monthly-element-hero{grid-template-columns:1fr!important}.monthly-featured-element .monthly-element-orb{width:104px!important;height:104px!important;border-radius:32px!important;font-size:38px!important}.monthly-featured-element .monthly-element-copy strong{font-size:26px!important}.monthly-focus-grid{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important}.monthly-focus-card{flex:0 0 252px!important}}
@media(max-width:640px){.monthly-page{gap:12px!important}.monthly-panel{padding:16px!important;border-radius:20px!important}.monthly-report-cover{gap:14px!important}.monthly-pill{min-height:28px!important;padding:0 9px!important;font-size:11px!important}.monthly-report-cover .monthly-title{font-size:22px!important}.monthly-report-cover .monthly-copy,.monthly-copy{font-size:13.5px!important;line-height:1.68!important}.monthly-quick-summary{padding:12px!important;border-radius:18px!important;gap:8px!important}.monthly-summary-item{padding:10px!important;border-radius:14px!important}.monthly-featured-element{padding:18px!important}.monthly-featured-element::before{position:static!important;width:fit-content!important;margin-bottom:4px!important}.monthly-featured-element .monthly-section-title{font-size:21px!important}.monthly-featured-element .monthly-element-orb{width:92px!important;height:92px!important;border-radius:28px!important;font-size:34px!important}.monthly-featured-element .monthly-element-copy strong{font-size:23px!important}.monthly-featured-element .monthly-element-copy p,.monthly-element-note{font-size:13px!important;line-height:1.62!important}.monthly-brief-card{padding:16px!important}.monthly-brief-card .monthly-section-title{font-size:19px!important}.monthly-brief-card .monthly-score{padding:12px!important}.monthly-brief-card .monthly-score-main strong{font-size:34px!important}.monthly-focus-card{flex-basis:238px!important}.monthly-focus-head{padding:15px 15px 10px!important}.monthly-focus-name{font-size:20px!important}.monthly-focus-body{padding:12px 15px 15px!important}.monthly-time-row{grid-template-columns:1fr!important;padding:12px!important}.monthly-advice-note::before{width:5px}.monthly-advice-note .monthly-section-title{font-size:20px!important;line-height:1.32!important}.monthly-advice-box{padding:15px!important;border-radius:17px!important}.monthly-advice-box strong{font-size:16px!important;line-height:1.48!important}.monthly-advice-box span{font-size:13px!important}.monthly-advice-signature{margin-top:10px}.monthly-chat-actions{display:grid!important;width:100%!important}.monthly-chat-actions .mock-btn{width:100%!important}}
@media(max-width:640px){.monthly-quality-head{display:grid!important;gap:10px!important}.monthly-quality-badge{width:fit-content}.monthly-axis-chart{min-height:300px;padding:14px 10px 12px 42px;border-radius:18px}.monthly-axis-y{left:8px;top:20px;bottom:58px;font-size:10px}.monthly-axis-plot{height:210px}.monthly-axis-bars{inset:0 6px 0 12px;gap:10px}.monthly-axis-bar{width:min(44px,72%)}.monthly-axis-score{font-size:11px;padding:2px 6px}.monthly-axis-x{gap:10px;margin-left:12px;margin-right:6px}.monthly-axis-label strong{font-size:12px}.monthly-axis-label span{font-size:10px}.monthly-axis-caption{display:grid;font-size:10px;gap:4px}.monthly-axis-caption span:last-child{text-align:left}.monthly-quality-note{font-size:13px!important;padding:13px!important}}
@media(max-width:640px){.monthly-line-path{stroke-width:2.2}.monthly-dot{width:10px;height:10px;border-width:2px}}
@media(max-width:640px){.monthly-quality-title-row{display:grid!important;gap:8px!important}.monthly-quality-title-row .monthly-section-title{font-size:19px!important;line-height:1.32!important}.monthly-quality-head p{font-size:13px!important;line-height:1.62!important}.monthly-quality-badge{width:fit-content!important}}
@media(max-width:380px){.monthly-panel{padding:14px!important}.monthly-report-cover .monthly-title{font-size:20px!important}.monthly-featured-element .monthly-element-orb{width:80px!important;height:80px!important;border-radius:24px!important;font-size:30px!important}.monthly-featured-element .monthly-element-copy strong{font-size:21px!important}.monthly-focus-card{flex-basis:220px!important}}
.monthly-page-v2{max-width:980px;margin:0 auto;gap:18px!important}.monthly-page-v2 .monthly-panel::after{display:none}.monthly-page-v2 .monthly-report-cover{display:grid!important;grid-template-columns:1fr!important;gap:20px!important;padding:26px!important;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 62%,#eef6ff 100%)!important;border:1px solid rgba(148,163,184,.2)!important;box-shadow:0 18px 42px rgba(15,23,42,.06)!important;color:#0f172a!important}.monthly-page-v2 .monthly-report-cover::before{display:none}.monthly-v2-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.monthly-v2-title{margin:10px 0 8px;font-size:32px;line-height:1.18;font-weight:950;color:#0f172a;max-width:780px}.monthly-v2-lead{margin:0;max-width:720px;color:#475569;font-size:15px;line-height:1.78}.monthly-v2-summary-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:stretch}.monthly-v2-summary-card{padding:14px 15px;border-radius:18px;background:#fff;border:1px solid rgba(148,163,184,.18);box-shadow:0 10px 24px rgba(15,23,42,.04);display:grid;gap:5px}.monthly-v2-summary-card span{font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#64748b}.monthly-v2-summary-card strong{font-size:15px;line-height:1.45;color:#0f172a}.monthly-v2-score-card{min-width:150px;align-content:center;text-align:center;background:#111827;color:#fff}.monthly-v2-score-card strong{font-size:34px;line-height:1;color:#fff}.monthly-v2-score-card span{color:rgba(255,255,255,.68)}.monthly-top-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(300px,.98fr);gap:16px}.monthly-page-v2 .monthly-overview-card{display:grid!important;align-content:start;gap:14px!important;background:#fff!important}.monthly-v2-read-list{display:grid;gap:10px}.monthly-v2-read-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:12px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.14)}.monthly-v2-read-number{width:30px;height:30px;border-radius:10px;background:#111827;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:950}.monthly-v2-read-item strong{font-size:14px;line-height:1.45;color:#0f172a}.monthly-v2-read-item p{margin:3px 0 0;color:#64748b;font-size:13px;line-height:1.62}.monthly-page-v2 .monthly-featured-element{padding:22px!important;box-shadow:0 18px 36px rgba(37,99,235,.1)!important}.monthly-page-v2 .monthly-featured-element .monthly-section-title{padding-right:120px!important;font-size:23px!important}.monthly-page-v2 .monthly-featured-element .monthly-element-hero{grid-template-columns:104px minmax(0,1fr)!important;gap:16px!important}.monthly-page-v2 .monthly-featured-element .monthly-element-orb{width:104px!important;height:104px!important;border-radius:32px!important;font-size:40px!important}.monthly-page-v2 .monthly-featured-element .monthly-element-copy strong{font-size:26px!important}.monthly-v2-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.monthly-v2-section-head .monthly-section-title{margin:0!important}.monthly-v2-section-head p{margin:0;color:#64748b;font-size:13.5px;line-height:1.6;max-width:430px}.monthly-page-v2 .monthly-focus-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;overflow:visible!important;padding:0!important;margin:0!important}.monthly-page-v2 .monthly-focus-card{flex:auto!important;border-radius:22px!important;min-height:0}.monthly-page-v2 .monthly-focus-name{font-size:21px!important}.monthly-page-v2 .monthly-quality-card{gap:16px!important}.monthly-page-v2 .monthly-axis-chart{min-height:292px}.monthly-page-v2 .monthly-axis-plot{height:205px}.monthly-page-v2 .monthly-chat-cta{border-radius:22px!important}
.monthly-v2-meta{margin-top:6px;color:#64748b;font-size:14px;font-weight:750;line-height:1.5}
.monthly-v2-source{margin-top:2px;color:#94a3b8;font-size:12.5px;font-weight:700;line-height:1.5}
.monthly-v2-summary-grid.compact{grid-template-columns:minmax(0,1fr) 150px}
.monthly-page-v2 .monthly-v2-section-head{display:block!important;margin-bottom:16px!important}.monthly-page-v2 .monthly-v2-section-head .monthly-section-title{margin:0!important;line-height:1.25!important}.monthly-page-v2 .monthly-quality-head{gap:12px!important}.monthly-page-v2 .monthly-quality-title-row{align-items:flex-start!important}.monthly-page-v2 .monthly-quality-title-row .monthly-section-title{font-size:24px!important;line-height:1.28!important}
.monthly-element-ticket{display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:18px!important;padding:22px!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 16px 34px rgba(15,23,42,.055)!important;overflow:hidden!important}.monthly-element-ticket::before,.monthly-element-ticket::after{display:none!important}.monthly-ticket-stub{position:relative;z-index:1;display:grid;place-items:center;align-content:center;gap:8px;min-height:118px;border-radius:24px;background:#f1f5f9;color:#0f172a;border:1px solid rgba(148,163,184,.18)}.monthly-ticket-stub::before{display:none}.monthly-ticket-stub::after{content:"ธาตุเสริม";font-size:12px;font-weight:950;color:#475569}.monthly-ticket-orb{width:68px;height:68px;border-radius:20px;display:grid;place-items:center;background:#fff;color:#2563eb;font-size:32px;font-weight:950;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}.monthly-ticket-body{position:relative;z-index:1;display:grid;gap:13px;padding:0!important;align-content:center}.monthly-ticket-body .monthly-section-title{padding-right:0!important;margin:0!important;font-size:22px!important;line-height:1.28!important}.monthly-ticket-main{display:grid;gap:6px;max-width:650px}.monthly-ticket-main span{font-size:12px;font-weight:950;color:#2563eb;letter-spacing:0}.monthly-ticket-main strong{font-size:24px;line-height:1.25;font-weight:950;color:#0f172a}.monthly-ticket-main p{display:none}.monthly-ticket-note{padding:0;border-radius:0;background:transparent;border:0;color:#334155;font-size:14px;line-height:1.72;box-shadow:none}.monthly-element-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.monthly-element-list div{padding:10px 11px;border-radius:14px;background:#f8fafc;border:1px solid rgba(148,163,184,.14);display:grid;gap:3px}.monthly-element-list span{font-size:11px;font-weight:900;color:#64748b}.monthly-element-list strong{font-size:13px;line-height:1.45;color:#0f172a}
@media(max-width:900px){.monthly-top-grid,.monthly-v2-summary-grid{grid-template-columns:1fr!important}.monthly-v2-score-card{text-align:left}.monthly-v2-score-card strong{font-size:30px}.monthly-page-v2 .monthly-featured-element .monthly-section-title{padding-right:0!important}.monthly-page-v2 .monthly-focus-grid{grid-template-columns:1fr!important}.monthly-v2-section-head{display:grid;gap:6px}.monthly-v2-title{font-size:27px}}
@media(max-width:640px){.monthly-page-v2{gap:12px!important}.monthly-page-v2 .monthly-report-cover{padding:18px!important;border-radius:22px!important}.monthly-v2-title{font-size:23px;line-height:1.25}.monthly-v2-lead{font-size:13.5px;line-height:1.68}.monthly-v2-summary-grid{gap:9px}.monthly-v2-summary-card{padding:12px;border-radius:16px}.monthly-v2-summary-card strong{font-size:14px}.monthly-top-grid{gap:12px}.monthly-page-v2 .monthly-featured-element .monthly-element-hero{grid-template-columns:84px minmax(0,1fr)!important}.monthly-page-v2 .monthly-featured-element .monthly-element-orb{width:84px!important;height:84px!important;border-radius:26px!important;font-size:32px!important}.monthly-page-v2 .monthly-featured-element .monthly-element-copy strong{font-size:22px!important}.monthly-v2-read-item{grid-template-columns:26px minmax(0,1fr);padding:11px}.monthly-v2-read-number{width:26px;height:26px;border-radius:9px;font-size:12px}.monthly-page-v2 .monthly-axis-chart{min-height:270px}.monthly-page-v2 .monthly-axis-plot{height:185px}}
@media(max-width:640px){.monthly-element-ticket{grid-template-columns:1fr!important;border-radius:22px!important;padding:16px!important;gap:13px!important}.monthly-ticket-stub{width:100%;min-height:86px;border-radius:18px;display:flex;justify-content:flex-start;align-items:center;padding:12px}.monthly-ticket-stub::after{font-size:12px;margin-left:10px}.monthly-ticket-orb{width:58px;height:58px;border-radius:18px;font-size:28px}.monthly-ticket-body{padding:0!important;gap:10px}.monthly-ticket-body .monthly-section-title{font-size:20px!important}.monthly-ticket-main strong{font-size:22px}.monthly-ticket-note{font-size:13px!important;line-height:1.62!important}.monthly-element-list{grid-template-columns:1fr!important}}
.monthly-analysis-tabs{display:grid;gap:14px}.monthly-tab-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:6px;border-radius:18px;background:#f8fafc;border:1px solid rgba(148,163,184,.16)}.monthly-tab-btn{min-height:42px;border:0;border-radius:13px;background:transparent;color:#64748b;font-size:13px;font-weight:950;white-space:nowrap}.monthly-tab-btn.active{background:#111827;color:#fff;box-shadow:0 10px 22px rgba(15,23,42,.14)}.monthly-tab-btn.work.active{background:#1d4ed8}.monthly-tab-btn.money.active{background:#15803d}.monthly-tab-btn.relationship.active{background:#be185d}.monthly-tab-btn.health.active{background:#b45309}.monthly-tab-panel{display:none;border-radius:22px;border:1px solid rgba(148,163,184,.16);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.045)}.monthly-tab-panel.active{display:block;animation:monthlyPanelIn .22s ease}.monthly-tab-panel.work{border-top:5px solid #3b82f6}.monthly-tab-panel.money{border-top:5px solid #22c55e}.monthly-tab-panel.relationship{border-top:5px solid #ec4899}.monthly-tab-panel.health{border-top:5px solid #f59e0b}.monthly-tab-panel .monthly-focus-body{padding:18px 20px 20px!important}.monthly-tab-panel .monthly-focus-body strong{font-size:20px!important;line-height:1.35!important}.monthly-tab-panel .monthly-focus-body p{font-size:14.5px!important;line-height:1.82!important}@keyframes monthlyPanelIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.monthly-tab-panel .monthly-focus-body{gap:9px!important}.monthly-tab-panel .monthly-mini-label{margin:0!important}.monthly-tab-panel .monthly-focus-body>strong{margin:0!important}.monthly-tab-panel .monthly-focus-body p{margin-top:2px!important;line-height:1.72!important}.monthly-tab-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.monthly-tab-score{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:5px 9px 5px 10px;border-radius:999px;background:#fff;border:1px solid rgba(148,163,184,.18);box-shadow:0 8px 18px rgba(15,23,42,.045);white-space:nowrap}.monthly-tab-score span{font-size:11px;font-weight:950;color:#64748b}.monthly-tab-score strong{font-size:13px!important;line-height:1!important;font-weight:950!important}.monthly-tab-score.work strong{color:#1d4ed8}.monthly-tab-score.money strong{color:#15803d}.monthly-tab-score.relationship strong{color:#be185d}.monthly-tab-score.health strong{color:#b45309}.monthly-score-line{position:relative;height:7px;margin:2px 0 7px;border-radius:999px;background:#e5e7eb;overflow:hidden}.monthly-score-line span{position:absolute;inset:0 auto 0 0;border-radius:inherit;animation:monthlyScoreGrow .75s cubic-bezier(.2,.8,.2,1) both}.monthly-score-line.work span{background:linear-gradient(90deg,#2563eb,#60a5fa)}.monthly-score-line.money span{background:linear-gradient(90deg,#15803d,#86efac)}.monthly-score-line.relationship span{background:linear-gradient(90deg,#be185d,#f9a8d4)}.monthly-score-line.health span{background:linear-gradient(90deg,#b45309,#fbbf24)}@keyframes monthlyScoreGrow{from{transform:scaleX(.05);transform-origin:left;opacity:.5}to{transform:scaleX(1);transform-origin:left;opacity:1}}
@media(max-width:640px){.monthly-tab-list{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:5px;border-radius:16px}.monthly-tab-btn{flex:0 0 auto;min-width:92px;min-height:40px}.monthly-tab-panel .monthly-focus-body{padding:16px!important}.monthly-tab-panel .monthly-focus-body>strong{font-size:18px!important}.monthly-tab-panel .monthly-focus-body p{font-size:13.5px!important;line-height:1.72!important}.monthly-tab-heading{align-items:flex-start}.monthly-tab-score{padding:5px 8px}.monthly-tab-score span{font-size:10.5px}.monthly-tab-score strong{font-size:12.5px!important}.monthly-score-line{height:6px}}
.account-page{display:grid;gap:14px}.account-hero-card{position:relative;overflow:hidden;border:1px solid rgba(148,163,184,.18);border-radius:24px;background:linear-gradient(135deg,#111827 0%,#1f2937 58%,#0f172a 100%);color:#fff;padding:22px;box-shadow:0 18px 42px rgba(15,23,42,.12)}.account-hero-card::after{content:"";position:absolute;right:-54px;top:-54px;width:170px;height:170px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.16),rgba(255,255,255,0) 68%)}.account-profile-row{position:relative;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center}.account-avatar{width:72px;height:72px;border-radius:22px;object-fit:cover;background:#fff;border:1px solid rgba(255,255,255,.22);box-shadow:0 14px 28px rgba(0,0,0,.18)}.account-profile-copy{display:grid;gap:6px}.account-profile-copy span{font-size:12px;font-weight:850;color:rgba(255,255,255,.64)}.account-profile-copy strong{font-size:26px;line-height:1.18;font-weight:950;color:#fff}.account-profile-copy p{margin:0;color:rgba(255,255,255,.72);font-size:13.5px;line-height:1.6}.account-status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:rgba(34,197,94,.14);border:1px solid rgba(134,239,172,.26);color:#bbf7d0;font-size:12px;font-weight:900;white-space:nowrap}.account-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.account-card-grid.single{grid-template-columns:1fr}.account-info-card{display:grid;gap:14px;border:1px solid rgba(148,163,184,.16);border-radius:22px;background:#fff;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.045)}.account-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.account-card-head div{display:grid;gap:3px}.account-card-head span{font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.account-card-head strong{font-size:18px;line-height:1.35;font-weight:950;color:#0f172a}.account-card-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#ecfdf5;color:#166534;font-size:12px;font-weight:900}.account-detail-list{display:grid;gap:9px}.account-detail-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid rgba(148,163,184,.14)}.account-detail-item:first-child{border-top:0}.account-detail-item span{font-size:12px;font-weight:850;color:#64748b}.account-detail-item strong{font-size:13.5px;line-height:1.35;text-align:right;color:#0f172a}.account-action-strip{display:flex;gap:8px;flex-wrap:wrap}.account-note{margin:0;color:#64748b;font-size:13px;line-height:1.65}.payment-history-card{grid-column:1/-1}.payment-history-list{display:grid;gap:10px}.payment-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b;font-size:13px;line-height:1.65}.payment-item{display:grid;gap:12px;padding:14px;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.payment-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.payment-item-main{display:grid;gap:5px;min-width:0}.payment-item-main strong{font-size:15px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-item-main span{font-size:12px;color:#64748b;line-height:1.5}.payment-item-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.payment-status{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:900}.payment-status.paid{background:#dcfce7;color:#166534}.payment-status.pending{background:#fef3c7;color:#92400e}.payment-status.cancelled{background:#fee2e2;color:#991b1b}.receipt-btn{min-height:36px;border:1px solid #111827;border-radius:999px;background:#111827;color:#fff;padding:0 13px;font-size:12px;font-weight:900;white-space:nowrap}.payment-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}.payment-page-copy{font-size:12px;color:#64748b;font-weight:800}.payment-page-actions{display:flex;gap:8px}.payment-page-actions button{min-height:34px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#111827;padding:0 12px;font-size:12px;font-weight:900}.payment-page-actions button:disabled{opacity:.42;cursor:default}.receipt-view{margin-top:2px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 12px 28px rgba(15,23,42,.055)}.receipt-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:18px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#111827,#1f2937);color:#fff}.receipt-brand{display:flex;gap:12px;align-items:center}.receipt-brand img{width:42px;height:42px;border-radius:12px;background:#fff;object-fit:contain}.receipt-brand span,.receipt-number span{display:block;font-size:11px;color:rgba(255,255,255,.68);font-weight:850;letter-spacing:.04em;text-transform:uppercase}.receipt-brand strong,.receipt-number strong{display:block;margin-top:2px;font-size:17px;color:#fff}.receipt-number{text-align:right}.receipt-body{display:grid;gap:14px;padding:18px}.receipt-summary{display:grid;gap:8px}.receipt-summary-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:8px 0;border-bottom:1px solid #f1f5f9}.receipt-summary-row span{font-size:12px;font-weight:900;color:#64748b}.receipt-summary-row strong{font-size:13.5px;line-height:1.45;color:#0f172a}.receipt-total{display:grid;gap:8px;padding:14px;border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb}.receipt-total-row{display:flex;justify-content:space-between;gap:12px;color:#475569;font-size:13px}.receipt-total-row.final{padding-top:10px;border-top:1px solid #e5e7eb;color:#0f172a;font-size:18px;font-weight:950}.receipt-foot{padding:14px 18px;border-top:1px solid #eef2f7;color:#64748b;font-size:12px;line-height:1.65}@media(max-width:760px){.account-profile-row{grid-template-columns:auto minmax(0,1fr)}.account-status-pill{grid-column:1/-1;width:fit-content}.account-card-grid{grid-template-columns:1fr}.account-hero-card{padding:18px;border-radius:22px}.account-avatar{width:64px;height:64px;border-radius:20px}.account-profile-copy strong{font-size:22px}.account-detail-item{align-items:flex-start}.account-detail-item strong{text-align:right}.payment-item-row{grid-template-columns:1fr}.receipt-btn{width:100%}.receipt-head{display:grid}.receipt-number{text-align:left}.receipt-summary-row{grid-template-columns:1fr;gap:3px}.receipt-total-row.final{font-size:16px}.payment-pagination{display:grid}.payment-page-actions{display:grid;grid-template-columns:1fr 1fr}}
.receipt-view{border-radius:12px!important;background:#fff!important;border:1px solid #d8dee8!important;box-shadow:0 10px 24px rgba(15,23,42,.05)!important}.receipt-head{background:#fff!important;color:#111827!important;border-bottom:2px solid #111827!important;padding:22px 24px!important}.receipt-brand img{width:46px!important;height:46px!important;border:1px solid #e5e7eb!important}.receipt-brand span,.receipt-number span{color:#64748b!important}.receipt-brand strong,.receipt-number strong{color:#111827!important}.receipt-title{font-size:24px;font-weight:950;letter-spacing:.02em}.receipt-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.receipt-info-box{border:1px solid #e5e7eb;border-radius:12px;padding:14px;background:#fafafa}.receipt-info-box span{display:block;font-size:11px;font-weight:950;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin-bottom:8px}.receipt-info-box strong{display:block;font-size:14px;line-height:1.55;color:#111827}.receipt-info-box p{margin:2px 0 0;color:#64748b;font-size:12.5px;line-height:1.55;overflow-wrap:anywhere}.receipt-line-table{width:100%;border-collapse:collapse;margin-top:2px}.receipt-line-table th{padding:12px 0;border-bottom:1px solid #111827;color:#111827;font-size:12px;text-transform:uppercase;letter-spacing:.04em;text-align:left}.receipt-line-table th:nth-child(2),.receipt-line-table th:nth-child(3),.receipt-line-table td:nth-child(2),.receipt-line-table td:nth-child(3){text-align:right}.receipt-line-table td{padding:15px 0;border-bottom:1px solid #e5e7eb;font-size:14px;vertical-align:top}.receipt-line-table small{display:block;margin-top:4px;color:#64748b;line-height:1.45}.receipt-total{width:min(330px,100%);margin-left:auto;border-radius:0!important;background:#fff!important;border:0!important;border-top:1px solid #111827!important;padding:12px 0 0!important}.receipt-total-row{color:#475569!important}.receipt-total-row.final{font-size:20px!important}.receipt-foot{background:#fafafa!important}.receipt-summary{display:none!important}@media(max-width:760px){.receipt-head{padding:18px!important}.receipt-info-grid{grid-template-columns:1fr}.receipt-line-table th:nth-child(2),.receipt-line-table td:nth-child(2){display:none}.receipt-line-table th,.receipt-line-table td{font-size:12.5px}.receipt-title{font-size:21px}.receipt-total{margin-left:0;width:100%}}
#profile-edit-form input,#profile-edit-form select{height:54px;min-height:54px;box-sizing:border-box;border-radius:16px;padding:0 16px;font-size:16px;line-height:1.2}#profile-edit-form input[type="date"],#profile-edit-form input[type="time"]{line-height:54px}#profile-edit-form input[type="date"]::-webkit-date-and-time-value,#profile-edit-form input[type="time"]::-webkit-date-and-time-value{min-height:54px;text-align:left}#profile-edit-form select{background-position:right 14px center}
.account-entitlement-card{position:relative;overflow:hidden;background:radial-gradient(circle at 92% 0%,rgba(34,197,94,.12),transparent 30%),linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.account-entitlement-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;padding:14px;border-radius:18px;background:#fff;border:1px solid rgba(148,163,184,.14)}.account-entitlement-summary div{display:grid;gap:5px}.account-entitlement-summary span{font-size:12px;font-weight:950;color:#64748b}.account-entitlement-summary strong{font-size:22px;line-height:1.25;font-weight:950;color:#0f172a}.account-entitlement-summary p{margin:0;color:#64748b;font-size:13px;line-height:1.65}.account-entitlement-summary .mock-btn{white-space:nowrap}.account-entitlement-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.account-entitlement-metrics div{display:grid;gap:5px;padding:12px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.14)}.account-entitlement-metrics span{font-size:11px;font-weight:950;color:#64748b}.account-entitlement-metrics strong{font-size:13.5px;line-height:1.35;color:#0f172a}@media(max-width:760px){.account-entitlement-summary{grid-template-columns:1fr}.account-entitlement-summary .mock-btn{width:100%}.account-entitlement-metrics{grid-template-columns:1fr}.account-entitlement-summary strong{font-size:20px}}
.promo-carousel-wrap{position:relative;width:100%;overflow:hidden}.promo-carousel{display:flex;gap:16px;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:4px 4px 18px;margin:0 auto}.promo-carousel::-webkit-scrollbar{height:8px}.promo-carousel::-webkit-scrollbar-track{background:#f1f5f9;border-radius:999px}.promo-carousel::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.promo-card{position:relative;flex:0 0 min(360px,86vw);scroll-snap-align:start;overflow:hidden;border-radius:24px;border:1px solid rgba(148,163,184,.18);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 18px 42px rgba(15,23,42,.08);padding:20px;display:grid;gap:14px;min-height:430px}.promo-card.featured{border-color:rgba(17,24,39,.24);background:radial-gradient(circle at 85% 5%,rgba(250,204,21,.26),transparent 28%),linear-gradient(180deg,#111827 0%,#1f2937 100%);color:#fff;box-shadow:0 24px 54px rgba(17,24,39,.22)}.promo-card::after{content:"";position:absolute;inset:0 auto auto -50%;width:46%;height:100%;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.38) 48%,transparent 82%);transform:skewX(-18deg);animation:promoShine 4.2s ease-in-out infinite;pointer-events:none}.promo-card.featured::after{background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.2) 48%,transparent 82%)}.promo-card-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px}.promo-pill{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:950;white-space:nowrap}.promo-card.featured .promo-pill{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.18)}.promo-save{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px;font-weight:950;white-space:nowrap}.promo-card.featured .promo-save{background:#facc15;color:#111827}.promo-title{position:relative;z-index:1;display:grid;gap:6px}.promo-title strong{font-size:22px;line-height:1.2;font-weight:950;color:#0f172a}.promo-card.featured .promo-title strong{color:#fff}.promo-title span{color:#64748b;font-size:13.5px;line-height:1.65}.promo-card.featured .promo-title span{color:rgba(255,255,255,.76)}.promo-price{position:relative;z-index:1;display:grid;gap:4px;padding:14px 0;border-top:1px solid rgba(148,163,184,.16);border-bottom:1px solid rgba(148,163,184,.16)}.promo-card.featured .promo-price{border-color:rgba(255,255,255,.14)}.promo-price-main{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.promo-price-main strong{font-size:34px;line-height:1;font-weight:950;color:#0f172a}.promo-card.featured .promo-price-main strong{color:#fff}.promo-price-main span{padding-bottom:4px;color:#64748b;font-size:13px;font-weight:850}.promo-card.featured .promo-price-main span{color:rgba(255,255,255,.68)}.promo-old-price{font-size:13px;color:#94a3b8;text-decoration:line-through;font-weight:800}.promo-card.featured .promo-old-price{color:rgba(255,255,255,.54)}.promo-features{position:relative;z-index:1;margin:0;padding:0;list-style:none;display:grid;gap:9px}.promo-features li{position:relative;padding-left:22px;color:#475569;font-size:13.5px;line-height:1.62}.promo-features li::before{content:"";position:absolute;left:0;top:8px;width:9px;height:9px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.1)}.promo-card.featured .promo-features li{color:rgba(255,255,255,.82)}.promo-card.featured .promo-features li::before{background:#facc15;box-shadow:0 0 0 4px rgba(250,204,21,.15)}.promo-action{position:relative;z-index:1;width:100%;min-height:48px;margin-top:auto;border:0;border-radius:16px;background:#111827;color:#fff;font-weight:950;padding:0 16px;box-shadow:0 14px 28px rgba(17,24,39,.16)}.promo-card.featured .promo-action{background:#fff;color:#111827}.promo-card:not(.featured) .promo-action:hover{background:#1f2937}.promo-card.featured .promo-action:hover{background:#f8fafc}.promo-hint{margin:0;color:#64748b;font-size:13px;line-height:1.65}.promo-card.featured .promo-hint{color:rgba(255,255,255,.7)}@keyframes promoShine{0%{left:-55%}36%,100%{left:132%}}@media(max-width:760px){.promo-carousel{padding-left:0;padding-right:0}.promo-card{flex-basis:84vw;min-height:420px;padding:18px;border-radius:22px}.promo-title strong{font-size:20px}.promo-price-main strong{font-size:30px}}
.pricing-grid{display:flex!important;grid-template-columns:none!important;gap:16px!important;width:min(760px,100%)!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:4px 4px 18px!important}.pricing-grid::-webkit-scrollbar{height:8px}.pricing-grid::-webkit-scrollbar-track{background:#f1f5f9;border-radius:999px}.pricing-grid::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.pricing-grid .price-card{flex:0 0 min(360px,86vw);scroll-snap-align:start;min-height:430px}.pricing-grid .price-card.featured{background:radial-gradient(circle at 88% 6%,rgba(255,255,255,.45),transparent 24%),linear-gradient(180deg,#111827 0%,#1f2937 100%);border-color:rgba(17,24,39,.26);color:#fff;box-shadow:0 22px 48px rgba(17,24,39,.18)}.pricing-grid .price-card.featured strong,.pricing-grid .price-card.featured .price-tag{color:#fff}.pricing-grid .price-card.featured span,.pricing-grid .price-card.featured .price-meta,.pricing-grid .price-card.featured .price-features{color:rgba(255,255,255,.76)}.pricing-grid .price-card.featured .price-features li::before{background:#facc15}.pricing-grid .price-card.featured .price-action.primary,.pricing-grid .price-card.featured .price-action{background:#fff;color:#111827;border-color:transparent}.pricing-grid .price-card:not(.featured){background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}.pro-value-strip{display:grid;gap:8px;margin:14px 0 2px;padding:12px;border-radius:16px;background:rgba(250,204,21,.12);border:1px solid rgba(250,204,21,.22)}.pro-value-strip strong{margin:0!important;font-size:13px!important}.pro-value-strip span{font-size:12.5px!important;line-height:1.6!important}.price-card.featured .pro-value-strip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.16)}.pro-unlock-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 2px}.pro-unlock-chip{padding:10px;border-radius:14px;background:#fff;border:1px solid rgba(148,163,184,.18);font-size:12px;line-height:1.45;color:#0f172a;font-weight:850}.price-card.featured .pro-unlock-chip{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.14);color:#fff}.pro-feature-star::before{background:#facc15!important;box-shadow:0 0 0 4px rgba(250,204,21,.16)!important}@media(max-width:760px){.pricing-grid{width:100%!important;padding-left:0!important;padding-right:0!important}.pricing-grid .price-card{flex-basis:84vw;min-height:420px}.pro-unlock-grid{grid-template-columns:1fr}}
.purchase-order{display:grid;gap:14px}.po-sheet{position:relative;overflow:hidden;border:1px solid rgba(148,163,184,.22);border-radius:24px;background:#fff;box-shadow:0 18px 42px rgba(15,23,42,.08)}.po-sheet::after{content:"";position:absolute;inset:0 auto auto -45%;width:34%;height:100%;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.78) 48%,transparent 82%);transform:skewX(-18deg);animation:promoShine 5.2s ease-in-out infinite;pointer-events:none}.po-section{position:relative;z-index:1;padding:20px 22px}.po-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;background:linear-gradient(135deg,#111827 0%,#1f2937 100%);color:#fff}.po-brand{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center}.po-brand img{width:54px;height:54px;border-radius:14px;object-fit:contain;background:#fff;padding:5px}.po-brand span{display:block;font-size:12px;color:rgba(255,255,255,.62);font-weight:850}.po-brand strong{display:block;font-size:22px;line-height:1.25;color:#fff}.po-status{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border-radius:999px;background:#fef3c7;color:#92400e;padding:0 12px;font-size:12px;font-weight:950;white-space:nowrap}.po-meta-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;border-bottom:1px solid rgba(148,163,184,.16);background:#f8fafc}.po-meta{display:grid;gap:5px}.po-meta span{font-size:12px;color:#64748b;font-weight:850}.po-meta strong{font-size:14px;line-height:1.35;color:#0f172a;overflow-wrap:anywhere}.po-table-wrap{position:relative;z-index:1;overflow:auto;padding:0 22px}.po-table{width:100%;min-width:620px;border-collapse:collapse}.po-table th{padding:14px 0;border-bottom:1px solid #e5e7eb;color:#64748b;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.03em}.po-table td{padding:18px 0;border-bottom:1px solid #e5e7eb;vertical-align:top;font-size:14px}.po-table td:nth-child(2),.po-table td:nth-child(3),.po-table th:nth-child(2),.po-table th:nth-child(3){text-align:right}.po-item-title{display:grid;gap:4px}.po-item-title strong{font-size:16px;color:#0f172a}.po-item-title span{font-size:13px;color:#64748b;line-height:1.55}.po-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:18px;align-items:start}.po-note{border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;padding:14px;display:grid;gap:6px}.po-note strong{font-size:14px}.po-note p{margin:0;color:#64748b;font-size:13.5px;line-height:1.65}.po-coupon{border:1px solid rgba(148,163,184,.18);border-radius:18px;background:#fff;padding:14px;display:grid;gap:10px}.po-coupon strong{font-size:14px}.po-coupon-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.po-coupon-control input{min-height:42px;border:1px solid #e5e7eb;border-radius:13px;padding:0 12px;outline:none;text-transform:uppercase}.po-coupon-control button{min-height:42px;border:0;border-radius:13px;background:#111827;color:#fff;padding:0 14px;font-weight:850}.po-coupon-hint{margin:0;color:#64748b;font-size:12.5px;line-height:1.55}.po-total{border-radius:18px;background:#111827;color:#fff;padding:16px;display:grid;gap:10px}.po-total-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:rgba(255,255,255,.68)}.po-total-row.discount strong{color:#86efac}.po-total-final{padding-top:10px;border-top:1px solid rgba(255,255,255,.16);display:flex;justify-content:space-between;gap:12px;align-items:end}.po-total-final span{font-size:13px;color:rgba(255,255,255,.68);font-weight:800}.po-total-final strong{font-size:28px;line-height:1;color:#fff;white-space:nowrap}.po-payment-panel{display:grid;gap:14px}.po-payment-channel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:#f8fafc;padding:16px}.po-payment-channel span{font-size:12px;font-weight:850;color:#64748b}.po-payment-channel strong{display:block;margin-top:4px;font-size:18px;color:#0f172a}.po-payment-amount{border-radius:16px;background:#111827;color:#fff;padding:14px;text-align:right}.po-payment-amount span{display:block;font-size:12px;color:rgba(255,255,255,.62);font-weight:800}.po-payment-amount strong{display:block;margin-top:5px;font-size:24px;line-height:1;color:#fff}.po-payment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid rgba(148,163,184,.16);background:#fff}.po-step{border:1px solid rgba(148,163,184,.16);border-radius:16px;padding:13px;display:grid;gap:5px;background:#fff}.po-step span{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#111827;color:#fff;font-size:12px;font-weight:950}.po-step strong{font-size:13.5px}.po-step p{margin:0;color:#64748b;font-size:12.5px;line-height:1.55}.po-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;border-top:1px solid rgba(148,163,184,.16);background:#f8fafc}.po-actions .mock-btn{min-height:42px}.po-pay-btn{min-height:44px;border:0;border-radius:14px;background:#111827;color:#fff;padding:0 18px;font-weight:950}.po-pay-btn:disabled{opacity:.55;cursor:default}@media(max-width:760px){.po-header,.po-summary,.po-payment-channel{grid-template-columns:1fr}.po-meta-grid,.po-payment{grid-template-columns:1fr}.po-section{padding:17px}.po-table-wrap{padding:0 17px}.po-table{min-width:0}.po-table thead{display:none}.po-table tr{display:grid;gap:10px}.po-table td{display:flex;justify-content:space-between;gap:14px;padding:12px 0;text-align:right!important}.po-table td::before{content:attr(data-label);font-weight:850;color:#64748b;text-align:left}.po-table td:first-child{display:block;text-align:left!important}.po-table td:first-child::before{display:none}.po-coupon-control{grid-template-columns:1fr}.po-brand strong{font-size:20px}.po-total-final strong,.po-payment-amount strong{font-size:25px}.po-status{width:fit-content}.po-actions{justify-content:stretch}.po-actions .mock-btn,.po-pay-btn{width:100%}}
.access-code-panel{position:relative;overflow:hidden;display:grid;gap:14px;border:1px solid rgba(148,163,184,.18);border-radius:22px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.045)}.access-code-panel::after{content:"";position:absolute;inset:0 auto auto -40%;width:32%;height:100%;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.72) 48%,transparent 82%);transform:skewX(-18deg);animation:promoShine 6s ease-in-out infinite;pointer-events:none}.access-code-head,.access-code-form,.access-code-status{position:relative;z-index:1}.access-code-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.access-code-head span{display:block;font-size:11px;font-weight:950;letter-spacing:.05em;text-transform:uppercase;color:#64748b}.access-code-head strong{display:block;margin-top:4px;font-size:19px;line-height:1.32;font-weight:950;color:#0f172a}.access-code-head p{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.62}.access-code-type{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:950;white-space:nowrap}.access-code-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.access-code-form input{min-height:46px;border:1px solid #e5e7eb;border-radius:15px;padding:0 14px;background:#fff;outline:none;text-transform:uppercase;font-weight:800;letter-spacing:.04em}.access-code-form button{min-height:46px;border:0;border-radius:15px;background:#111827;color:#fff;padding:0 16px;font-weight:950;white-space:nowrap}.access-code-form button:disabled{opacity:.55;cursor:default}.access-code-status{min-height:20px;margin:0;color:#64748b;font-size:12.5px;line-height:1.58}.access-code-status.success{color:#15803d;font-weight:850}.access-code-status.error{color:#dc2626;font-weight:850}@media(max-width:760px){.access-code-head{display:grid}.access-code-type{width:fit-content}.access-code-form{grid-template-columns:1fr}.access-code-form button{width:100%}}
.sidebar-backdrop{position:fixed;inset:0;z-index:18;background:rgba(15,23,42,.2);opacity:0;pointer-events:none;transition:opacity .2s ease}.sidebar-backdrop.open{opacity:1;pointer-events:auto}@media(max-width:760px){.topbar{height:62px;flex-basis:62px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;padding:0 10px}.topbar>div:not(.topbar-right){min-width:0}.topbar strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar span:not(.timer-pill){font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-menu-btn{max-width:150px;min-height:36px;padding:0 11px;font-size:14px}.account-menu-btn::before{width:18px;height:18px}.icon-btn{width:38px;height:38px}.sidebar{z-index:30}.mock-toast{left:50%;max-width:calc(100vw - 32px)}.bazi-pro-section.unlocked{grid-template-columns:1fr!important;gap:18px!important}.bazi-analysis-grid{gap:18px!important}.bazi-life-card{border-radius:22px!important}.bazi-life-card .bazi-clean-head{padding:20px 18px 0!important}.bazi-life-card p{margin:0 16px 18px!important;padding:16px!important;line-height:1.85!important}}
.mobile-tabbar{display:none}
.account-menu-action[data-account-action="viewLibrary"]{order:1}
.account-menu-action[data-account-action="managePackage"]{order:2}
.account-menu-action[data-account-action="viewPaymentHistory"]{order:3}
.account-menu-action[data-account-action="editAccount"]{order:4}
@media(max-width:760px){
  body{background:#fff;overscroll-behavior:none}
  .app-shell{height:100svh;height:100dvh;overflow:hidden}
  .chat-main{height:100svh;height:100dvh;background:linear-gradient(180deg,#fff 0%,#fbfbfc 100%)}
  .topbar{position:sticky;top:0;height:58px;flex-basis:58px;padding:0 12px 0 calc(10px + env(safe-area-inset-left,0px));border-bottom:1px solid rgba(229,231,235,.8);box-shadow:0 8px 26px rgba(15,23,42,.035)}
  .topbar strong{font-size:15px;line-height:1.22}
  .topbar span:not(.timer-pill){font-size:11.5px}
  .topbar-right{gap:6px}
  .account-menu-btn{max-width:128px;border-radius:18px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04)}
  .account-menu{position:fixed;top:72px;right:10px;left:10px;width:auto;border-radius:22px}
  .sidebar{top:0;bottom:0;width:min(84vw,318px);padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(16px + env(safe-area-inset-bottom,0px));border-right:0;border-radius:0 24px 24px 0;background:#f7f7f8;box-shadow:22px 0 48px rgba(15,23,42,.18)}
  .sidebar-head{min-height:42px}
  .new-chat-btn{margin-top:10px;border-radius:16px}
  .session-list{padding-bottom:10px}
  .messages{padding:18px 14px calc(154px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:154px}
  .message-row{padding:8px 0}
  .message-content{font-size:16px;line-height:1.72;max-width:92%}
  .message-row.user .message-content{border-radius:22px;padding:9px 14px;background:#f4f4f5}
  .message-row.assistant .message-content{padding:4px 0}
  .welcome-empty{min-height:calc(100svh - 230px);padding:0 12px;gap:12px}
  .welcome-empty img{width:56px;height:56px;border-radius:16px}
  .welcome-empty h1{font-size:30px;line-height:1.18}
  .welcome-empty p{font-size:16px;line-height:1.68}
  .composer{width:calc(100% - 24px);bottom:calc(68px + env(safe-area-inset-bottom,0px));min-height:46px;padding:6px 7px 6px 14px;border-radius:24px;box-shadow:0 12px 28px rgba(15,23,42,.12)}
  .composer textarea{min-height:28px;max-height:96px;padding:4px 0;font-size:16px;line-height:1.45}
  .composer button{width:34px;height:34px}
  .chat-view.composer-hidden .messages{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  .chat-view.composer-hidden .mock-page{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .mobile-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:65;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:7px calc(8px + env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) calc(8px + env(safe-area-inset-left,0px));border-top:1px solid rgba(229,231,235,.9);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);box-shadow:0 -12px 34px rgba(15,23,42,.08)}
  .mobile-tabbar button{min-width:0;min-height:48px;border:0;border-radius:16px;background:transparent;color:#6b7280;display:grid;place-items:center;gap:2px;padding:5px 3px;font-weight:850;font-size:11px}
  .mobile-tabbar .tab-icon{width:22px;height:22px;border-radius:9px;display:grid;place-items:center;background:#f3f4f6;color:#111827;font-size:11px;font-weight:950}
  .mobile-tabbar svg.tab-icon{padding:4px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"],
  body[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"],
  body[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"],
  body[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"],
body[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"],body[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"],body[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"],body[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"],body[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"]{color:#111827;background:#f3f4f6}
  body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"] .tab-icon,
  body[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"] .tab-icon,
body[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon{background:#111827;color:#fff}
  .mock-page{width:100%;padding:0 0 calc(96px + env(safe-area-inset-bottom,0px));gap:14px}
  .mock-hero{border-radius:0;border-left:0;border-right:0;padding:16px 14px;box-shadow:none;background:#fff}
  .mock-title{font-size:24px;line-height:1.24}
  .mock-copy{font-size:14px;line-height:1.65}
  .mock-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .mock-btn{min-height:44px;border-radius:16px;padding:0 12px}
  .mock-card,.account-info-card,.page-card,.bazi-page .page-card{border-radius:22px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
  .account-page{gap:14px}
  .account-hero-card{margin:0;border-radius:28px;padding:20px 18px}
  .account-card-grid{gap:14px}
  .account-detail-item{padding:12px 0}
  .account-action-strip{display:grid;grid-template-columns:1fr;gap:10px}
  .pricing-grid.single-plan{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 14px 12px;margin-inline:-14px;width:calc(100% + 28px)!important}
  .pricing-grid.single-plan .price-card{scroll-snap-align:center;flex:0 0 min(88vw,390px);min-height:auto;border-radius:24px}
  .package-app-page .pricing-grid.single-plan{justify-content:center!important;overflow:visible!important;margin-inline:0!important;width:100%!important;padding:0!important}
  .package-app-page .pricing-grid.single-plan .price-card{flex:0 1 min(100%,390px);scroll-snap-align:none}
  .price-tag{font-size:30px}
  .pro-unlock-grid{grid-template-columns:1fr}
  .modal-backdrop{align-items:flex-end;padding:0}
  .modal{width:100%;max-height:88svh;border-radius:28px 28px 0 0;border-left:0;border-right:0;border-bottom:0}
  .modal-header{padding:18px 16px 8px}
  .modal-body{padding:0 16px calc(18px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:761px){
  .preview-device-toolbar{display:none}
  body.mobile-preview-mode{--preview-width:430px;--preview-height:932px;min-height:100vh;overflow:auto;background:radial-gradient(circle at 50% 0%,rgba(15,23,42,.1),transparent 34%),#0b0b0c;display:grid;place-items:start center;padding:70px 28px 28px}
  body.mobile-preview-mode .preview-device-toolbar{position:fixed;top:0;left:0;right:0;z-index:220;min-height:52px;display:flex;align-items:center;justify-content:center;gap:10px;padding:7px 12px;border-bottom:1px solid rgba(15,23,42,.12);background:rgba(247,247,248,.94);backdrop-filter:blur(16px);box-shadow:0 8px 24px rgba(15,23,42,.12);flex-wrap:wrap}
  body.mobile-preview-mode .preview-device-toolbar select,body.mobile-preview-mode .preview-device-toolbar input{height:36px;border:0;border-radius:14px;background:#e9e9eb;color:#111827;font-weight:850;outline:0}
  body.mobile-preview-mode .preview-device-toolbar select{width:170px;padding:0 34px 0 14px;color:#6b7280}
  body.mobile-preview-mode .preview-device-toolbar .preview-mode-select{width:132px;color:#111827}
  body.mobile-preview-mode .preview-device-toolbar input{width:104px;text-align:center;font-size:19px}
  body.mobile-preview-mode .preview-device-toolbar span{color:#8b8f98;font-weight:900}
  body.mobile-preview-mode .preview-device-toolbar button{width:38px;height:38px;border:0;border-radius:14px;background:#e9e9eb;color:#6b7280;display:grid;place-items:center;font-size:18px}
  body.mobile-preview-mode .preview-device-toolbar button:hover,body.mobile-preview-mode .preview-device-toolbar select:hover,body.mobile-preview-mode .preview-device-toolbar input:hover{background:#dedee1}
  body.mobile-preview-mode .app-shell{width:min(var(--preview-width),calc(100vw - 32px));height:min(var(--preview-height),calc(100vh - 86px));min-height:min(620px,calc(100vh - 86px));grid-template-columns:1fr;border:1px solid rgba(148,163,184,.24);border-radius:38px;overflow:hidden;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.38);position:relative}
  body.mobile-preview-mode.preview-mode-app .app-shell{padding:32px 0 18px;background:#fff}
  body.mobile-preview-mode.preview-mode-line .app-shell{padding:74px 0 0;background:#fff}
  body.mobile-preview-mode.preview-mode-browser .app-shell{padding:50px 0 0;background:#fff}
  body.mobile-preview-mode.preview-mode-app .app-shell::before{content:"9:41                                              5G 100%";position:absolute;top:0;left:0;right:0;height:32px;z-index:190;display:flex;align-items:center;padding:0 22px;color:#111827;font-size:12px;font-weight:900;white-space:pre;letter-spacing:.01em;background:#fff}
  body.mobile-preview-mode.preview-mode-app .app-shell::after{content:"";position:absolute;left:50%;bottom:6px;z-index:190;width:118px;height:5px;border-radius:999px;background:#111827;transform:translateX(-50%);opacity:.9}
  body.mobile-preview-mode.preview-mode-line .app-shell::before{content:"‹        Ai ซินแสพอลภู\\A          ai-sinsae-paulpooh.vercel.app                         ⋮   ×";white-space:pre;position:absolute;top:0;left:0;right:0;height:74px;z-index:190;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid #e5e7eb;background:#fff;color:#111827;font-size:18px;font-weight:850;line-height:1.25}
  body.mobile-preview-mode.preview-mode-browser .app-shell::before{content:"ai-sinsae-paulpooh.vercel.app";position:absolute;top:9px;left:12px;right:12px;height:32px;z-index:190;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#f3f4f6;color:#6b7280;font-size:12px;font-weight:800}
  body.mobile-preview-mode .chat-main{height:100%;background:linear-gradient(180deg,#fff 0%,#fbfbfc 100%)}
  body.mobile-preview-mode .topbar{position:relative;height:58px;flex-basis:58px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;padding:0 12px;border-bottom:1px solid rgba(229,231,235,.8);box-shadow:0 8px 26px rgba(15,23,42,.035)}
  body.mobile-preview-mode .topbar>div:not(.topbar-right){min-width:0}
  body.mobile-preview-mode .topbar strong{font-size:15px;line-height:1.22;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.mobile-preview-mode .topbar span:not(.timer-pill){font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.mobile-preview-mode .mobile-only{display:grid}
  body.mobile-preview-mode .account-menu-btn{max-width:128px;min-height:36px;padding:0 11px;border-radius:18px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04);font-size:14px}
  body.mobile-preview-mode .account-menu-btn::before{width:18px;height:18px}
  body.mobile-preview-mode .account-menu{position:absolute;top:54px;right:10px;left:10px;width:auto;border-radius:22px}
  body.mobile-preview-mode .sidebar{position:absolute;inset:0 auto 0 0;width:min(84%,318px);z-index:80;transform:translateX(-105%);transition:transform .2s ease;min-width:0;padding:12px;border-right:0;border-radius:0 24px 24px 0;background:#f7f7f8;box-shadow:22px 0 48px rgba(15,23,42,.18)}
  body.mobile-preview-mode .sidebar.open{transform:translateX(0)}
  body.mobile-preview-mode .sidebar-backdrop{position:absolute;z-index:70}
  body.mobile-preview-mode .messages{padding:18px 14px 154px;scroll-padding-bottom:154px}
  body.mobile-preview-mode .message-row{padding:8px 0}
  body.mobile-preview-mode .message-content{font-size:16px;line-height:1.72;max-width:92%}
  body.mobile-preview-mode .message-row.user .message-content{border-radius:22px;padding:9px 14px;background:#f4f4f5}
  body.mobile-preview-mode .message-row.assistant .message-content{padding:4px 0}
  body.mobile-preview-mode .welcome-empty{min-height:calc(100% - 170px);padding:0 12px;gap:12px}
  body.mobile-preview-mode .welcome-empty img{width:56px;height:56px;border-radius:16px}
  body.mobile-preview-mode .welcome-empty h1{font-size:30px;line-height:1.18}
  body.mobile-preview-mode .welcome-empty p{font-size:16px;line-height:1.68}
  body.mobile-preview-mode .composer{width:calc(100% - 24px);bottom:68px;min-height:46px;padding:6px 7px 6px 14px;border-radius:24px;box-shadow:0 12px 28px rgba(15,23,42,.12)}
  body.mobile-preview-mode .composer textarea{min-height:28px;max-height:96px;padding:4px 0;font-size:16px;line-height:1.45}
  body.mobile-preview-mode .composer button{width:34px;height:34px}
  body.mobile-preview-mode .mobile-tabbar{position:absolute;left:0;right:0;bottom:0;z-index:65;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:7px 8px;border-top:1px solid rgba(229,231,235,.9);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);box-shadow:0 -12px 34px rgba(15,23,42,.08)}
  body.mobile-preview-mode .mobile-tabbar button{min-width:0;min-height:48px;border:0;border-radius:16px;background:transparent;color:#6b7280;display:grid;place-items:center;gap:2px;padding:5px 3px;font-weight:850;font-size:11px}
  body.mobile-preview-mode .mobile-tabbar .tab-icon{width:22px;height:22px;border-radius:9px;display:grid;place-items:center;background:#f3f4f6;color:#111827;font-size:11px;font-weight:950}
  body.mobile-preview-mode .mobile-tabbar svg.tab-icon{padding:4px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body.mobile-preview-mode[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"],body.mobile-preview-mode[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"],body.mobile-preview-mode[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"],body.mobile-preview-mode[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"],body.mobile-preview-mode[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"],body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"],body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"],body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"],body.mobile-preview-mode[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"]{color:#111827;background:#f3f4f6}
body.mobile-preview-mode[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] .tab-icon,body.mobile-preview-mode[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"] .tab-icon,body.mobile-preview-mode[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,body.mobile-preview-mode[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"] .tab-icon,body.mobile-preview-mode[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,body.mobile-preview-mode[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon{background:#111827;color:#fff}
  body.mobile-preview-mode .chat-view.composer-hidden .messages{padding-bottom:88px}
  body.mobile-preview-mode .chat-view.composer-hidden .mock-page{padding-bottom:86px}
  body.mobile-preview-mode .mock-page{width:100%;padding:0 0 96px;gap:14px}
  body.mobile-preview-mode .mock-hero{border-radius:0;border-left:0;border-right:0;padding:16px 14px;box-shadow:none;background:#fff;display:grid}
  body.mobile-preview-mode .mock-title{font-size:24px;line-height:1.24}
  body.mobile-preview-mode .mock-copy{font-size:14px;line-height:1.65}
  body.mobile-preview-mode .mock-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  body.mobile-preview-mode .mock-btn{min-height:44px;border-radius:16px;padding:0 12px}
  body.mobile-preview-mode .mock-card,body.mobile-preview-mode .account-info-card,body.mobile-preview-mode .page-card,body.mobile-preview-mode .bazi-page .page-card{border-radius:22px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
  body.mobile-preview-mode .pricing-grid.single-plan{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 14px 12px!important;margin-inline:-14px;width:calc(100% + 28px)!important}
  body.mobile-preview-mode .pricing-grid.single-plan .price-card{scroll-snap-align:center;flex:0 0 min(88vw,390px);min-height:auto;border-radius:24px}
  body.mobile-preview-mode .modal-backdrop{align-items:flex-end;padding:0;position:absolute}
  body.mobile-preview-mode .modal{width:100%;max-height:88%;border-radius:28px 28px 0 0;border-left:0;border-right:0;border-bottom:0}
}
@media(max-width:760px){
  :root{--mobile-tabbar-height:56px;--mobile-composer-height:44px}
  .preview-device-toolbar{display:none!important}
  .app-shell,.chat-main{height:100svh;height:100dvh;max-height:100dvh}
  .topbar{height:54px!important;flex-basis:54px!important;grid-template-columns:36px minmax(0,1fr) minmax(104px,auto)!important;gap:8px!important;padding:0 10px!important}
  .topbar .icon-btn{width:36px;height:36px;border-radius:12px;font-size:17px}
  .topbar strong{font-size:15px!important;line-height:1.2!important}
  .topbar span:not(.timer-pill){font-size:11px!important;line-height:1.25!important}
  .topbar-right{justify-content:end}
  .account-menu-btn{max-width:132px!important;min-height:34px!important;padding:0 10px!important;border-radius:17px!important;font-size:14px!important}
  .account-menu-btn::before{width:18px!important;height:18px!important}
  .account-menu{top:62px!important;left:10px!important;right:10px!important;width:auto!important;max-height:calc(100dvh - 82px);overflow:auto}
  .messages{padding:14px 16px calc(124px + env(safe-area-inset-bottom,0px))!important;scroll-padding-bottom:calc(124px + env(safe-area-inset-bottom,0px))!important}
  .message-row{padding:7px 0!important}
  .message-content{max-width:92%!important;font-size:15.5px!important;line-height:1.68!important}
  .message-row.user .message-content{padding:9px 14px!important;border-radius:20px!important}
  .message-row.assistant .message-content{padding:3px 0!important}
  .message-time{font-size:10.5px!important;margin-top:3px!important}
  .welcome-empty{min-height:calc(100dvh - 220px)!important;padding:0 18px!important;gap:10px!important;align-content:center!important}
  .welcome-empty img{width:52px!important;height:52px!important;border-radius:15px!important}
  .welcome-empty h1{font-size:28px!important;line-height:1.18!important;letter-spacing:0!important}
  .welcome-empty p{font-size:15px!important;line-height:1.58!important;max-width:330px!important}
  .composer{width:calc(100% - 22px)!important;bottom:calc(62px + env(safe-area-inset-bottom,0px))!important;min-height:44px!important;padding:5px 6px 5px 14px!important;border-radius:22px!important;align-items:center!important}
  .composer textarea{min-height:27px!important;max-height:86px!important;padding:3px 0!important;font-size:15.5px!important;line-height:1.42!important}
  .composer button{width:34px!important;height:34px!important}
  .mobile-tabbar{min-height:var(--mobile-tabbar-height);padding:6px calc(7px + env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) calc(7px + env(safe-area-inset-left,0px))!important;gap:3px!important}
  .mobile-tabbar button{min-height:42px!important;border-radius:14px!important;padding:4px 2px!important;font-size:10.5px!important;line-height:1.15!important}
  .mobile-tabbar .tab-icon{width:20px!important;height:20px!important;border-radius:8px!important}
  .chat-view.composer-hidden .messages{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
  .mock-page{padding:10px 12px calc(82px + env(safe-area-inset-bottom,0px))!important;gap:12px!important}
  .mock-hero{border:1px solid rgba(229,231,235,.85)!important;border-radius:20px!important;padding:14px!important;margin:0!important;box-shadow:0 8px 18px rgba(15,23,42,.035)!important}
  .mock-title{font-size:22px!important;line-height:1.25!important}
  .mock-copy{font-size:13.5px!important;line-height:1.6!important}
  .mock-actions{grid-template-columns:1fr!important;gap:8px!important}
  .mock-btn,.primary-btn,.secondary-btn{min-height:42px!important;border-radius:15px!important}
  .mock-card,.account-info-card,.page-card,.bazi-page .page-card{border-radius:20px!important;padding:15px!important}
  .page-shell,.bazi-page-shell{gap:12px!important}
  .page-title{font-size:24px!important;line-height:1.22!important}
  .page-copy{font-size:13.5px!important;line-height:1.62!important}
  .sidebar{width:min(86vw,310px)!important}
}
@media(min-width:761px){
  body.mobile-preview-mode .topbar{height:54px!important;flex-basis:54px!important;grid-template-columns:36px minmax(0,1fr) minmax(104px,auto)!important;gap:8px!important;padding:0 10px!important}
  body.mobile-preview-mode .topbar .icon-btn{width:36px;height:36px;border-radius:12px;font-size:17px}
  body.mobile-preview-mode .topbar strong{font-size:15px!important;line-height:1.2!important}
  body.mobile-preview-mode .topbar span:not(.timer-pill){font-size:11px!important;line-height:1.25!important}
  body.mobile-preview-mode .account-menu-btn{max-width:132px!important;min-height:34px!important;padding:0 10px!important;border-radius:17px!important;font-size:14px!important}
  body.mobile-preview-mode .account-menu{top:62px!important;max-height:calc(100% - 74px);overflow:auto}
  body.mobile-preview-mode .messages{padding:14px 16px 124px!important;scroll-padding-bottom:124px!important}
  body.mobile-preview-mode .message-row{padding:7px 0!important}
  body.mobile-preview-mode .message-content{max-width:92%!important;font-size:15.5px!important;line-height:1.68!important}
  body.mobile-preview-mode .welcome-empty{min-height:calc(100% - 190px)!important;padding:0 18px!important;gap:10px!important}
  body.mobile-preview-mode .welcome-empty img{width:52px!important;height:52px!important;border-radius:15px!important}
  body.mobile-preview-mode .welcome-empty h1{font-size:28px!important;line-height:1.18!important}
  body.mobile-preview-mode .welcome-empty p{font-size:15px!important;line-height:1.58!important;max-width:330px!important}
  body.mobile-preview-mode .composer{width:calc(100% - 22px)!important;bottom:62px!important;min-height:44px!important;padding:5px 6px 5px 14px!important;border-radius:22px!important;align-items:center!important}
  body.mobile-preview-mode .composer textarea{min-height:27px!important;max-height:86px!important;padding:3px 0!important;font-size:15.5px!important;line-height:1.42!important}
  body.mobile-preview-mode .composer button{width:34px!important;height:34px!important}
  body.mobile-preview-mode .mobile-tabbar{min-height:56px;padding:6px 7px!important;gap:3px!important}
  body.mobile-preview-mode .mobile-tabbar button{min-height:42px!important;border-radius:14px!important;padding:4px 2px!important;font-size:10.5px!important;line-height:1.15!important}
  body.mobile-preview-mode .mobile-tabbar .tab-icon{width:20px!important;height:20px!important;border-radius:8px!important}
  body.mobile-preview-mode .chat-view.composer-hidden .messages{padding-bottom:72px!important}
  body.mobile-preview-mode .mock-page{padding:10px 12px 82px!important;gap:12px!important}
  body.mobile-preview-mode .mock-hero{border:1px solid rgba(229,231,235,.85)!important;border-radius:20px!important;padding:14px!important;margin:0!important;box-shadow:0 8px 18px rgba(15,23,42,.035)!important}
  body.mobile-preview-mode .mock-title{font-size:22px!important;line-height:1.25!important}
  body.mobile-preview-mode .mock-copy{font-size:13.5px!important;line-height:1.6!important}
  body.mobile-preview-mode .mock-actions{grid-template-columns:1fr!important;gap:8px!important}
  body.mobile-preview-mode .mock-btn,body.mobile-preview-mode .primary-btn,body.mobile-preview-mode .secondary-btn{min-height:42px!important;border-radius:15px!important}
  body.mobile-preview-mode .mock-card,body.mobile-preview-mode .account-info-card,body.mobile-preview-mode .page-card,body.mobile-preview-mode .bazi-page .page-card{border-radius:20px!important;padding:15px!important}
  body.mobile-preview-mode .page-title{font-size:24px!important;line-height:1.22!important}
  body.mobile-preview-mode .page-copy{font-size:13.5px!important;line-height:1.62!important}
}
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .app-shell,.chat-main,.chat-view,.messages,.mock-page,.page-shell,.bazi-page-shell{min-width:0;max-width:100%}
  .chat-main{isolation:isolate}
  .topbar{box-shadow:0 1px 0 rgba(229,231,235,.86)!important}
  .topbar>div:not(.topbar-right){display:grid;align-content:center;min-width:0}
  .topbar-right{min-width:0}
  .welcome-empty{max-width:100%;justify-content:center}
  .composer{z-index:66}
  .mobile-tabbar{z-index:67}
  .bazi-pillars-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  .bazi-pillar-card{min-height:224px!important;padding:12px 4px!important;border-radius:16px!important;gap:7px!important}
  .bazi-pillar-title{font-size:12px!important;line-height:1.25!important}
  .bazi-stem-block,.bazi-branch-block{min-height:62px!important;gap:4px!important}
  .bazi-char{font-size:29px!important}
  .bazi-thai-name{font-size:10.5px!important;line-height:1.25!important}
  .bazi-tengod-badge{font-size:9.2px!important;padding:4px 5px!important}
  .bazi-star-slot{min-height:28px!important}
  .bazi-shensha-list{gap:3px!important}
  .bazi-shensha-chip{min-height:24px!important;padding:5px 6px!important;font-size:9.2px!important}
  .bazi-chart-summary,.bazi-analysis-hero,.bazi-analysis-grid{grid-template-columns:1fr!important}
  .bazi-analysis-meter-row{grid-template-columns:82px minmax(0,1fr) 32px!important;gap:7px!important}
  .monthly-panel,.account-info-card,.page-card,.mock-card{overflow:hidden}
  .monthly-tab-list{margin-inline:-2px}
  .account-hero-card{border-radius:24px!important}
  .account-profile-row{grid-template-columns:58px minmax(0,1fr)!important;gap:12px!important}
  .account-avatar{width:58px!important;height:58px!important;border-radius:18px!important}
  .account-profile-copy strong{font-size:21px!important}
  .account-card-head{display:grid!important;gap:8px!important}
  .account-detail-list{gap:0!important}
  .account-detail-item{padding:12px 0!important}
  .pricing-grid{margin-top:14px!important}
  .pricing-grid .price-card{flex-basis:min(84vw,340px)!important;min-height:unset!important;padding:16px!important}
}
@media(min-width:761px){
  body.mobile-preview-mode{overflow-x:hidden}
  body.mobile-preview-mode .app-shell,body.mobile-preview-mode .chat-main,body.mobile-preview-mode .chat-view,body.mobile-preview-mode .messages,body.mobile-preview-mode .mock-page,body.mobile-preview-mode .page-shell,body.mobile-preview-mode .bazi-page-shell{min-width:0;max-width:100%}
  body.mobile-preview-mode .topbar{box-shadow:0 1px 0 rgba(229,231,235,.86)!important}
  body.mobile-preview-mode .topbar>div:not(.topbar-right){display:grid;align-content:center;min-width:0}
  body.mobile-preview-mode .composer{z-index:66}
  body.mobile-preview-mode .mobile-tabbar{z-index:67}
  .shop-app-page .mock-hero{display:none}
  .shop-page{display:grid;gap:14px;padding:2px 0 12px}
  .shop-hero{border-radius:28px;background:#111827;color:#fff;padding:24px;display:grid;gap:14px;overflow:hidden;position:relative}
  .shop-hero:after{content:"";position:absolute;right:-40px;top:-52px;width:180px;height:180px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.04)}
  .shop-hero span,.shop-section-kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#94a3b8}
  .shop-hero strong{font-size:32px;line-height:1.05;letter-spacing:0}
  .shop-hero p{margin:0;color:#d1d5db;font-size:15px;line-height:1.65;max-width:34rem}
  .shop-hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;position:relative;z-index:1}
  .shop-pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;background:#f3f4f6;color:#111827;padding:8px 12px;font-weight:900;font-size:12px}
  .shop-pill.dark{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.16)}
  .shop-section{display:grid;gap:12px}
  .shop-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:0 2px}
  .shop-section-head strong{font-size:21px;line-height:1.15}
  .shop-section-head p{margin:3px 0 0;color:#6b7280;font-size:13px;line-height:1.45}
  .shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .shop-product-card{border:1px solid #e5e7eb;border-radius:24px;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.07);overflow:hidden;display:grid;min-width:0}
  .shop-product-media{min-height:118px;background:linear-gradient(135deg,#fff7ed,#fef3c7 45%,#fee2e2);display:grid;place-items:center;position:relative}
  .shop-product-media:before{content:"";width:58px;height:58px;border-radius:20px;background:rgba(17,24,39,.92);box-shadow:0 14px 30px rgba(15,23,42,.18)}
  .shop-product-media:after{content:"福";position:absolute;color:#f8fafc;font-size:28px;font-weight:900}
  .shop-product-card:nth-child(2n) .shop-product-media{background:linear-gradient(135deg,#ecfeff,#dbeafe 48%,#f5f3ff)}
  .shop-product-card:nth-child(3n) .shop-product-media{background:linear-gradient(135deg,#f0fdf4,#dcfce7 48%,#fef9c3)}
  .shop-product-body{padding:14px;display:grid;gap:9px}
  .shop-product-body strong{font-size:16px;line-height:1.25}
  .shop-product-body p{margin:0;color:#6b7280;font-size:12.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .shop-price-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .shop-price{font-size:18px;font-weight:950;color:#111827}
  .shop-compare{font-size:12px;color:#9ca3af;text-decoration:line-through}
  .shop-card-actions{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
  .shop-icon-btn,.shop-mini-btn{border:1px solid #e5e7eb;background:#fff;color:#111827;border-radius:15px;min-height:42px;padding:0 12px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:7px}
  .shop-primary-btn{border:0;background:#111827;color:#fff;border-radius:999px;min-height:50px;padding:0 18px;font-weight:950;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 18px 34px rgba(15,23,42,.18)}
  .shop-secondary-btn{border:1px solid #e5e7eb;background:#fff;color:#111827;border-radius:999px;min-height:50px;padding:0 18px;font-weight:950;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
  .shop-detail-card{border-radius:30px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 16px 38px rgba(15,23,42,.08);overflow:hidden}
  .shop-detail-media{min-height:210px;background:linear-gradient(135deg,#111827,#374151);display:grid;place-items:center;color:#fff;font-size:64px;font-weight:950}
  .shop-detail-content{padding:20px;display:grid;gap:14px}
  .shop-detail-content h2{margin:0;font-size:28px;line-height:1.12}
  .shop-detail-content p{margin:0;color:#4b5563;font-size:15px;line-height:1.65}
  .shop-tag-list{display:flex;gap:8px;flex-wrap:wrap}
  .shop-tag{border-radius:999px;background:#f3f4f6;color:#374151;padding:7px 10px;font-size:12px;font-weight:850}
  .shop-info-list{display:grid;gap:8px}
  .shop-info-row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #eef2f7;padding-top:10px;font-size:14px;color:#6b7280}
  .shop-info-row strong{color:#111827;text-align:right}
  .shop-cart-list,.shop-order-list{display:grid;gap:10px}
  .shop-cart-row,.shop-order-card{border:1px solid #e5e7eb;border-radius:22px;background:#fff;padding:14px;display:grid;gap:12px}
  .shop-cart-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
  .shop-cart-main strong{font-size:16px}
  .shop-cart-main p{margin:4px 0 0;color:#6b7280;font-size:12.5px;line-height:1.45}
  .shop-qty-controls{display:flex;align-items:center;gap:8px}
  .shop-qty-controls button{width:34px;height:34px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;font-weight:950}
  .shop-summary-card{border-radius:26px;background:#111827;color:#fff;padding:18px;display:grid;gap:12px}
  .shop-summary-row{display:flex;justify-content:space-between;gap:12px;color:#d1d5db}
  .shop-summary-row.final{font-size:20px;color:#fff;font-weight:950;border-top:1px solid rgba(255,255,255,.16);padding-top:12px}
  .shop-form{display:grid;gap:12px}
  .shop-form label{display:grid;gap:7px;color:#6b7280;font-size:13px;font-weight:850}
  .shop-form input,.shop-form textarea{width:100%;min-height:52px;border:1px solid #e5e7eb;border-radius:18px;padding:12px 14px;font:inherit;color:#111827;background:#fff}
  .shop-form textarea{min-height:94px;resize:vertical;line-height:1.5}
  .shop-status-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .shop-step{border:1px solid #e5e7eb;border-radius:18px;padding:12px 8px;text-align:center;color:#9ca3af;font-size:12px;font-weight:900}
  .shop-step.active{background:#111827;color:#fff;border-color:#111827}
  .shop-empty{border:1px dashed #d1d5db;border-radius:24px;padding:22px;text-align:center;color:#6b7280;background:#fff}
  .shop-library-list{display:grid;gap:10px}
  .shop-library-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e5e7eb;border-radius:22px;background:#fff;padding:12px}
  .shop-library-icon{width:52px;height:52px;border-radius:17px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:950}
  .shop-library-card strong{display:block;font-size:15px;line-height:1.25}
  .shop-library-card span{font-size:12px;color:#6b7280}
  .shop-payment-mini{margin-top:12px;display:grid;gap:10px}
  .shop-payment-item{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:12px;display:flex;justify-content:space-between;gap:12px;align-items:center}
  .shop-payment-item strong{font-size:14px}
  .shop-payment-item span{display:block;color:#6b7280;font-size:12px;margin-top:3px}
  @media(max-width:520px){
    .shop-page{gap:12px}
    .shop-hero{border-radius:24px;padding:22px}
    .shop-hero strong{font-size:29px}
    .shop-grid{gap:9px}
    .shop-product-media{min-height:106px}
    .shop-product-body{padding:12px}
    .shop-product-body strong{font-size:15px}
    .shop-card-actions{grid-template-columns:1fr}
    .shop-card-actions .shop-icon-btn{min-height:38px}
    .shop-detail-media{min-height:178px}
    .shop-detail-content{padding:18px}
    .shop-detail-content h2{font-size:26px}
    .shop-library-card{grid-template-columns:46px minmax(0,1fr);align-items:start}
    .shop-library-card .shop-mini-btn{grid-column:1/-1}
  }
  body.mobile-preview-mode .bazi-pillars-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  body.mobile-preview-mode .bazi-pillar-card{min-height:224px!important;padding:12px 4px!important;border-radius:16px!important;gap:7px!important}
  body.mobile-preview-mode .bazi-pillar-title{font-size:12px!important;line-height:1.25!important}
  body.mobile-preview-mode .bazi-stem-block,body.mobile-preview-mode .bazi-branch-block{min-height:62px!important;gap:4px!important}
  body.mobile-preview-mode .bazi-char{font-size:29px!important}
  body.mobile-preview-mode .bazi-thai-name{font-size:10.5px!important;line-height:1.25!important}
  body.mobile-preview-mode .bazi-tengod-badge{font-size:9.2px!important;padding:4px 5px!important}
  body.mobile-preview-mode .bazi-star-slot{min-height:28px!important}
  body.mobile-preview-mode .bazi-shensha-list{gap:3px!important}
  body.mobile-preview-mode .bazi-shensha-chip{min-height:24px!important;padding:5px 6px!important;font-size:9.2px!important}
  body.mobile-preview-mode .bazi-chart-summary,body.mobile-preview-mode .bazi-analysis-hero,body.mobile-preview-mode .bazi-analysis-grid{grid-template-columns:1fr!important}
  body.mobile-preview-mode .bazi-analysis-meter-row{grid-template-columns:82px minmax(0,1fr) 32px!important;gap:7px!important}
  body.mobile-preview-mode .monthly-panel,body.mobile-preview-mode .account-info-card,body.mobile-preview-mode .page-card,body.mobile-preview-mode .mock-card{overflow:hidden}
  body.mobile-preview-mode .account-hero-card{border-radius:24px!important}
  body.mobile-preview-mode .account-profile-row{grid-template-columns:58px minmax(0,1fr)!important;gap:12px!important}
  body.mobile-preview-mode .account-avatar{width:58px!important;height:58px!important;border-radius:18px!important}
  body.mobile-preview-mode .account-profile-copy strong{font-size:21px!important}
  body.mobile-preview-mode .account-card-head{display:grid!important;gap:8px!important}
  body.mobile-preview-mode .account-detail-list{gap:0!important}
  body.mobile-preview-mode .account-detail-item{padding:12px 0!important}
  body.mobile-preview-mode .pricing-grid{margin-top:14px!important}
  body.mobile-preview-mode .pricing-grid .price-card{flex-basis:min(84vw,340px)!important;min-height:unset!important;padding:16px!important}
}
@media(max-width:760px){
  .app-mobile-page{padding:0 0 calc(82px + env(safe-area-inset-bottom,0px))!important;gap:0!important;background:#fff!important}
  .app-mobile-page>.mock-hero{display:grid!important;gap:14px!important;border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:16px 14px 13px!important;background:#fff!important}
  .app-mobile-page .mock-kicker{font-size:10.5px!important;letter-spacing:.08em!important;color:#94a3b8!important}
  .app-mobile-page .mock-title{margin-top:4px!important;font-size:26px!important;line-height:1.18!important;font-weight:950!important}
  .app-mobile-page .mock-copy{font-size:13px!important;line-height:1.58!important;max-width:none!important;margin-top:6px!important}
  .app-mobile-page .mock-actions{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;padding-bottom:2px!important}
  .app-mobile-page .mock-actions .mock-btn{flex:0 0 auto!important;min-height:38px!important;border-radius:999px!important;padding:0 13px!important;font-size:13px!important}
  .bazi-app-page .page-shell,.bazi-app-page .bazi-page-shell,.bazi-app-page .bazi-page,.monthly-app-page .monthly-page{gap:0!important;width:100%!important}
  .bazi-app-page .page-shell>.page-card:first-child{border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;margin:0!important;padding:16px 14px!important}
  .bazi-app-page .page-shell>.page-card:first-child .page-kicker{font-size:10.5px!important;color:#94a3b8!important}
  .bazi-app-page .page-shell>.page-card:first-child .page-title{font-size:26px!important;line-height:1.18!important}
  .bazi-app-page .page-shell>.page-card:first-child .page-copy{font-size:13px!important;line-height:1.58!important;margin-top:7px!important}
  .bazi-app-page .bazi-page>.page-card,.monthly-app-page .monthly-panel{border:0!important;border-top:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;margin:0!important;padding:16px 14px!important}
  .bazi-app-page .bazi-page>.page-card:first-child,.monthly-app-page .monthly-page>.monthly-panel:first-child{border-top:0!important}
  .bazi-app-page .section-head,.monthly-app-page .monthly-v2-section-head{margin-bottom:12px!important}
  .bazi-app-page .section-title,.monthly-app-page .monthly-section-title,.bazi-app-page .bazi-analysis-title{font-size:20px!important;line-height:1.28!important;font-weight:950!important;color:#0f172a!important}
  .bazi-app-page .bazi-chart-summary{gap:10px!important}
  .bazi-app-page .bazi-summary-card,.bazi-app-page .bazi-note-card,.bazi-app-page .bazi-analysis-highlight,.bazi-app-page .bazi-analysis-card{box-shadow:none!important;border-color:#e8edf4!important}
  .bazi-app-page .bazi-summary-card,.bazi-app-page .bazi-note-card{border-radius:22px!important;padding:16px!important}
  .bazi-app-page .bazi-certificate-grid{gap:8px!important}
  .bazi-app-page .bazi-certificate-item{border-radius:16px!important;padding:12px!important}
  .bazi-app-page .bazi-analysis-highlight{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
  .bazi-app-page .bazi-analysis-hero{padding:16px!important;border:1px solid #e8edf4!important;border-radius:22px!important;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important}
  .bazi-app-page .bazi-element-avatar{grid-template-columns:auto minmax(0,1fr)!important;display:grid!important;align-items:center!important;padding:0!important;border:0!important;background:transparent!important}
  .bazi-app-page .bazi-element-avatar-icon{width:54px!important;height:54px!important;border-radius:18px!important;font-size:25px!important}
  .bazi-app-page .bazi-analysis-hero-copy{gap:9px!important}
  .bazi-app-page .bazi-analysis-hero-copy strong{font-size:17px!important;line-height:1.35!important}
  .bazi-app-page .bazi-analysis-copy,.bazi-app-page .bazi-analysis-card p{font-size:13.5px!important;line-height:1.76!important}
  .bazi-app-page .bazi-analysis-grid{gap:12px!important;margin-top:12px!important}
  .bazi-app-page .bazi-analysis-card{border-radius:20px!important;padding:16px!important;background:#fff!important}
  .bazi-app-page .bazi-analysis-card-theme{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important}
  .bazi-app-page .bazi-pro-section.unlocked{gap:12px!important}
  .bazi-app-page .bazi-life-card{border-radius:20px!important}
  .bazi-app-page .bazi-life-card .bazi-clean-head{padding:0!important}
  .bazi-app-page .bazi-life-card p{margin:0!important;padding:0!important}
  .bazi-app-page .bazi-page-actions{display:none!important}
  .bazi-app-page .page-shell>.page-card:first-child{display:grid!important;gap:5px!important}
  .bazi-app-page .page-shell>.page-card:first-child .page-title{font-size:24px!important}
  .bazi-app-page .page-shell>.page-card:first-child .page-copy{max-width:none!important}
  .bazi-app-page .bazi-page{gap:10px!important}
  .bazi-app-page .bazi-chart-summary{grid-template-columns:1fr!important;gap:10px!important}
  .bazi-app-page .bazi-birth-certificate{padding:0!important;overflow:hidden!important;background:#fff!important;border-color:#e8edf4!important}
  .bazi-app-page .bazi-birth-certificate::after{display:none!important}
  .bazi-app-page .bazi-certificate-head{padding:15px 16px 0!important}
  .bazi-app-page .bazi-certificate-name{gap:5px!important}
  .bazi-app-page .bazi-certificate-name small{font-size:11px!important;color:#64748b!important;letter-spacing:0!important;text-transform:none!important}
  .bazi-app-page .bazi-certificate-name strong{font-size:24px!important;line-height:1.18!important}
  .bazi-app-page .bazi-certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border-top:1px solid #eef2f7!important}
  .bazi-app-page .bazi-certificate-item{min-height:86px!important;border:0!important;border-right:1px solid #eef2f7!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;padding:13px 14px!important}
  .bazi-app-page .bazi-certificate-item:nth-child(2n){border-right:0!important}
  .bazi-app-page .bazi-certificate-item.feature{grid-column:1/-1!important;min-height:auto!important;background:#f8fafc!important;border-bottom:0!important}
  .bazi-app-page .bazi-certificate-note{padding:0 16px 15px!important;font-size:12.5px!important}
  .bazi-app-page .bazi-support-score-card{border-radius:22px!important;padding:16px!important}
  .bazi-app-page .bazi-support-score-main strong{font-size:40px!important}
  .bazi-app-page .bazi-pillars-grid{gap:5px!important}
  .bazi-app-page .bazi-pillar-card{border-radius:13px!important;box-shadow:none!important;background:#fff!important}
  .bazi-app-page .bazi-analysis-shell{gap:12px!important}
  .bazi-app-page .bazi-analysis-head{gap:5px!important}
  .bazi-app-page .bazi-analysis-copy{font-size:13px!important;line-height:1.64!important}
  .bazi-app-page .bazi-analysis-hero{border-radius:20px!important}
  .bazi-app-page .bazi-analysis-card{border-radius:18px!important}
  .bazi-app-page .bazi-life-card{margin-bottom:12px!important}
  .monthly-app-page .monthly-panel::after{display:none!important}
  .monthly-app-page>.mock-hero{gap:6px!important;padding:18px 14px 12px!important}
  .monthly-app-page>.mock-hero .mock-title{font-size:25px!important}
  .monthly-app-page>.mock-hero .mock-copy{max-width:34ch!important}
  .monthly-app-page .monthly-report-cover{min-height:auto!important;display:block!important;color:#0f172a!important;background:#fff!important}
  .monthly-app-page .monthly-cover-copy{margin:0!important;display:grid!important;gap:4px!important}
  .monthly-app-page .monthly-kicker{color:#94a3b8!important;font-size:10.5px!important;letter-spacing:.08em!important}
  .monthly-app-page .monthly-v2-title{font-size:28px!important;line-height:1.12!important;color:#0f172a!important}
  .monthly-app-page .monthly-v2-meta,.monthly-app-page .monthly-v2-source{color:#64748b!important;font-size:13px!important}
  .monthly-app-page .monthly-featured-element{border-top:1px solid #eef2f7!important;margin:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)!important;padding:16px 14px!important}
  .monthly-app-page .monthly-ticket-stub{display:none!important}
  .monthly-app-page .monthly-ticket-body{display:grid!important;gap:10px!important}
  .monthly-app-page .monthly-ticket-body .monthly-section-title{font-size:19px!important;margin:0!important}
  .monthly-app-page .monthly-ticket-main span{font-size:13px!important;line-height:1.56!important;color:#475569!important}
  .monthly-app-page .monthly-element-list{grid-template-columns:1fr!important;gap:0!important;border-top:1px solid #e8edf4!important}
  .monthly-app-page .monthly-element-list div{border-radius:0!important;background:transparent!important;border:0!important;border-bottom:1px solid #e8edf4!important;padding:11px 0!important}
  .monthly-app-page .monthly-element-list div:last-child{border-bottom:0!important}
  .monthly-app-page .monthly-analysis-tabs{border:0!important;border-radius:0!important;background:transparent!important;padding:0!important}
  .monthly-app-page .monthly-tab-list{position:sticky!important;top:0!important;z-index:4!important;display:flex!important;gap:7px!important;margin:0 -14px 12px!important;padding:9px 14px!important;overflow-x:auto!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(12px)!important;border-bottom:1px solid #eef2f7!important}
  .monthly-app-page .monthly-tab-btn{flex:0 0 auto!important;border-radius:999px!important;min-height:36px!important;padding:0 13px!important;font-size:13px!important}
  .monthly-app-page .monthly-tab-panel{border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;padding:0!important}
  .monthly-app-page .monthly-focus-body{gap:10px!important}
  .monthly-app-page .monthly-tab-heading{gap:10px!important;padding-top:2px!important}
  .monthly-app-page .monthly-focus-body>strong{font-size:18px!important;line-height:1.42!important}
  .monthly-app-page .monthly-focus-body p{font-size:14px!important;line-height:1.78!important;margin-top:2px!important}
  .monthly-app-page .monthly-chat-cta{display:grid!important;gap:14px!important;background:#0f172a!important;color:#fff!important;border-radius:24px!important;margin:12px 14px 0!important;border:0!important;padding:18px 16px!important}
  .monthly-app-page .monthly-chat-cta p{color:rgba(255,255,255,.72)!important}
  .monthly-app-page .monthly-chat-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
}
@media(min-width:761px){
  body.mobile-preview-mode .app-mobile-page{padding:0 0 82px!important;gap:0!important;background:#fff!important}
  body.mobile-preview-mode .app-mobile-page>.mock-hero{display:grid!important;gap:14px!important;border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:16px 14px 13px!important;background:#fff!important}
  body.mobile-preview-mode .app-mobile-page .mock-kicker{font-size:10.5px!important;letter-spacing:.08em!important;color:#94a3b8!important}
  body.mobile-preview-mode .app-mobile-page .mock-title{margin-top:4px!important;font-size:26px!important;line-height:1.18!important;font-weight:950!important}
  body.mobile-preview-mode .app-mobile-page .mock-copy{font-size:13px!important;line-height:1.58!important;max-width:none!important;margin-top:6px!important}
  body.mobile-preview-mode .app-mobile-page .mock-actions{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;padding-bottom:2px!important}
  body.mobile-preview-mode .app-mobile-page .mock-actions .mock-btn{flex:0 0 auto!important;min-height:38px!important;border-radius:999px!important;padding:0 13px!important;font-size:13px!important}
  body.mobile-preview-mode .bazi-app-page .page-shell,body.mobile-preview-mode .bazi-app-page .bazi-page-shell,body.mobile-preview-mode .bazi-app-page .bazi-page,body.mobile-preview-mode .monthly-app-page .monthly-page{gap:0!important;width:100%!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child{border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;margin:0!important;padding:16px 14px!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child .page-kicker{font-size:10.5px!important;color:#94a3b8!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child .page-title{font-size:26px!important;line-height:1.18!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child .page-copy{font-size:13px!important;line-height:1.58!important;margin-top:7px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-page>.page-card,body.mobile-preview-mode .monthly-app-page .monthly-panel{border:0!important;border-top:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;margin:0!important;padding:16px 14px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-page>.page-card:first-child,body.mobile-preview-mode .monthly-app-page .monthly-page>.monthly-panel:first-child{border-top:0!important}
  body.mobile-preview-mode .bazi-app-page .section-head,body.mobile-preview-mode .monthly-app-page .monthly-v2-section-head{margin-bottom:12px!important}
  body.mobile-preview-mode .bazi-app-page .section-title,body.mobile-preview-mode .monthly-app-page .monthly-section-title,body.mobile-preview-mode .bazi-app-page .bazi-analysis-title{font-size:20px!important;line-height:1.28!important;font-weight:950!important;color:#0f172a!important}
  body.mobile-preview-mode .bazi-app-page .bazi-chart-summary{gap:10px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-summary-card,body.mobile-preview-mode .bazi-app-page .bazi-note-card,body.mobile-preview-mode .bazi-app-page .bazi-analysis-highlight,body.mobile-preview-mode .bazi-app-page .bazi-analysis-card{box-shadow:none!important;border-color:#e8edf4!important}
  body.mobile-preview-mode .bazi-app-page .bazi-summary-card,body.mobile-preview-mode .bazi-app-page .bazi-note-card{border-radius:22px!important;padding:16px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-grid{gap:8px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-item{border-radius:16px!important;padding:12px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-highlight{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-hero{padding:16px!important;border:1px solid #e8edf4!important;border-radius:22px!important;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important}
  body.mobile-preview-mode .bazi-app-page .bazi-element-avatar{grid-template-columns:auto minmax(0,1fr)!important;display:grid!important;align-items:center!important;padding:0!important;border:0!important;background:transparent!important}
  body.mobile-preview-mode .bazi-app-page .bazi-element-avatar-icon{width:54px!important;height:54px!important;border-radius:18px!important;font-size:25px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-hero-copy{gap:9px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-hero-copy strong{font-size:17px!important;line-height:1.35!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-copy,body.mobile-preview-mode .bazi-app-page .bazi-analysis-card p{font-size:13.5px!important;line-height:1.76!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-grid{gap:12px!important;margin-top:12px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-card{border-radius:20px!important;padding:16px!important;background:#fff!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-card-theme{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important}
  body.mobile-preview-mode .bazi-app-page .bazi-pro-section.unlocked{gap:12px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-life-card{border-radius:20px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-life-card .bazi-clean-head{padding:0!important}
  body.mobile-preview-mode .bazi-app-page .bazi-life-card p{margin:0!important;padding:0!important}
  body.mobile-preview-mode .bazi-app-page .bazi-page-actions{display:none!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child{display:grid!important;gap:5px!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child .page-title{font-size:24px!important}
  body.mobile-preview-mode .bazi-app-page .page-shell>.page-card:first-child .page-copy{max-width:none!important}
  body.mobile-preview-mode .bazi-app-page .bazi-page{gap:10px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-chart-summary{grid-template-columns:1fr!important;gap:10px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-birth-certificate{padding:0!important;overflow:hidden!important;background:#fff!important;border-color:#e8edf4!important}
  body.mobile-preview-mode .bazi-app-page .bazi-birth-certificate::after{display:none!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-head{padding:15px 16px 0!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-name{gap:5px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-name small{font-size:11px!important;color:#64748b!important;letter-spacing:0!important;text-transform:none!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-name strong{font-size:24px!important;line-height:1.18!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border-top:1px solid #eef2f7!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-item{min-height:86px!important;border:0!important;border-right:1px solid #eef2f7!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;padding:13px 14px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-item:nth-child(2n){border-right:0!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-item.feature{grid-column:1/-1!important;min-height:auto!important;background:#f8fafc!important;border-bottom:0!important}
  body.mobile-preview-mode .bazi-app-page .bazi-certificate-note{padding:0 16px 15px!important;font-size:12.5px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-support-score-card{border-radius:22px!important;padding:16px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-support-score-main strong{font-size:40px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-pillars-grid{gap:5px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-pillar-card{border-radius:13px!important;box-shadow:none!important;background:#fff!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-shell{gap:12px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-head{gap:5px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-copy{font-size:13px!important;line-height:1.64!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-hero{border-radius:20px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-card{border-radius:18px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-life-card{margin-bottom:12px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-panel::after{display:none!important}
  body.mobile-preview-mode .monthly-app-page>.mock-hero{gap:6px!important;padding:18px 14px 12px!important}
  body.mobile-preview-mode .monthly-app-page>.mock-hero .mock-title{font-size:25px!important}
  body.mobile-preview-mode .monthly-app-page>.mock-hero .mock-copy{max-width:34ch!important}
  body.mobile-preview-mode .monthly-app-page .monthly-report-cover{min-height:auto!important;display:block!important;color:#0f172a!important;background:#fff!important}
  body.mobile-preview-mode .monthly-app-page .monthly-cover-copy{margin:0!important;display:grid!important;gap:4px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-kicker{color:#94a3b8!important;font-size:10.5px!important;letter-spacing:.08em!important}
  body.mobile-preview-mode .monthly-app-page .monthly-v2-title{font-size:28px!important;line-height:1.12!important;color:#0f172a!important}
  body.mobile-preview-mode .monthly-app-page .monthly-v2-meta,body.mobile-preview-mode .monthly-app-page .monthly-v2-source{color:#64748b!important;font-size:13px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-featured-element{border-top:1px solid #eef2f7!important;margin:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)!important;padding:16px 14px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-ticket-stub{display:none!important}
  body.mobile-preview-mode .monthly-app-page .monthly-ticket-body{display:grid!important;gap:10px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-ticket-body .monthly-section-title{font-size:19px!important;margin:0!important}
  body.mobile-preview-mode .monthly-app-page .monthly-ticket-main span{font-size:13px!important;line-height:1.56!important;color:#475569!important}
  body.mobile-preview-mode .monthly-app-page .monthly-element-list{grid-template-columns:1fr!important;gap:0!important;border-top:1px solid #e8edf4!important}
  body.mobile-preview-mode .monthly-app-page .monthly-element-list div{border-radius:0!important;background:transparent!important;border:0!important;border-bottom:1px solid #e8edf4!important;padding:11px 0!important}
  body.mobile-preview-mode .monthly-app-page .monthly-element-list div:last-child{border-bottom:0!important}
  body.mobile-preview-mode .monthly-app-page .monthly-analysis-tabs{border:0!important;border-radius:0!important;background:transparent!important;padding:0!important}
  body.mobile-preview-mode .monthly-app-page .monthly-tab-list{position:sticky!important;top:0!important;z-index:4!important;display:flex!important;gap:7px!important;margin:0 -14px 12px!important;padding:9px 14px!important;overflow-x:auto!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(12px)!important;border-bottom:1px solid #eef2f7!important}
  body.mobile-preview-mode .monthly-app-page .monthly-tab-btn{flex:0 0 auto!important;border-radius:999px!important;min-height:36px!important;padding:0 13px!important;font-size:13px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-tab-panel{border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;padding:0!important}
  body.mobile-preview-mode .monthly-app-page .monthly-focus-body{gap:10px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-tab-heading{gap:10px!important;padding-top:2px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-focus-body>strong{font-size:18px!important;line-height:1.42!important}
  body.mobile-preview-mode .monthly-app-page .monthly-focus-body p{font-size:14px!important;line-height:1.78!important;margin-top:2px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-chat-cta{display:grid!important;gap:14px!important;background:#0f172a!important;color:#fff!important;border-radius:24px!important;margin:12px 14px 0!important;border:0!important;padding:18px 16px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-chat-cta p{color:rgba(255,255,255,.72)!important}
  body.mobile-preview-mode .monthly-app-page .monthly-chat-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
}
@media(max-width:760px){
  .app-mobile-page .pro-lock-scope{max-height:430px!important;overflow:hidden!important}
  .monthly-app-page .pro-lock-scope{max-height:390px!important}
  .app-mobile-page .pro-lock-blur{filter:blur(5px)!important;opacity:.42!important}
  .app-mobile-page .pro-lock-panel{position:absolute!important;inset:auto 14px 14px!important;display:block!important;text-align:left!important;padding:14px!important;border:0!important;border-radius:24px!important;background:#0f172a!important;color:#fff!important;box-shadow:0 18px 44px rgba(15,23,42,.22)!important;backdrop-filter:none!important}
  .app-mobile-page .pro-lock-card{width:100%!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px 12px!important;align-items:center!important;justify-items:stretch!important}
  .app-mobile-page .pro-lock-icon{grid-row:1/3;width:42px!important;height:42px!important;border-radius:15px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font-size:19px!important}
  .app-mobile-page .pro-lock-card strong{font-size:16px!important;line-height:1.35!important;color:#fff!important}
  .app-mobile-page .pro-lock-card p{font-size:12.5px!important;line-height:1.5!important;color:rgba(255,255,255,.72)!important;margin:0!important}
  .app-mobile-page .pro-lock-card .mock-btn{grid-column:1/-1;margin-top:4px!important;width:100%!important;min-height:42px!important;border-radius:999px!important;background:#fff!important;color:#0f172a!important;border-color:#fff!important}
  .bazi-app-page .bazi-star-panel.pro-locked::after{inset:auto 12px 12px!important;min-height:46px!important;border-radius:16px!important;background:#0f172a!important;color:#fff!important;backdrop-filter:none!important;font-size:12px!important}
  .bazi-app-page .bazi-preview-lock .bazi-pro-section.locked>.pro-lock-blur{display:block!important}
  .bazi-app-page .bazi-preview-lock .bazi-pro-section.locked{display:block!important}
  .bazi-app-page .bazi-pro-section.locked{gap:0!important}
  .bazi-app-page .bazi-analysis-grid{grid-template-columns:1fr!important}
  .bazi-app-page .bazi-analysis-card{margin-bottom:10px!important}
  .bazi-app-page .bazi-analysis-card:last-child{margin-bottom:0!important}
  .monthly-app-page .monthly-report-cover{padding:16px 14px!important}
  .monthly-app-page .monthly-page-v2 .monthly-report-cover{padding:16px 14px!important}
  .monthly-app-page .monthly-v2-summary-grid{display:flex!important;gap:8px!important;overflow-x:auto!important;margin:12px -18px 0!important;padding:0 18px 4px!important}
  .monthly-app-page .monthly-v2-summary-card{flex:0 0 190px!important;border-radius:18px!important;padding:12px!important;box-shadow:none!important}
  .monthly-app-page .monthly-v2-score-card{flex-basis:122px!important;min-width:122px!important}
  .monthly-app-page .monthly-top-grid{display:block!important}
  .monthly-app-page .monthly-overview-card{display:none!important}
  .monthly-app-page .monthly-page-v2 .monthly-featured-element{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-color:#eef2f7!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)!important;box-shadow:none!important}
  .monthly-app-page .monthly-page-v2 .monthly-focus-grid{display:block!important}
  .monthly-app-page .monthly-focus-card,.monthly-app-page .monthly-tab-panel{margin-bottom:10px!important}
  .monthly-app-page .monthly-focus-card:last-child,.monthly-app-page .monthly-tab-panel:last-child{margin-bottom:0!important}
}
@media(min-width:761px){
  body.mobile-preview-mode .app-mobile-page .pro-lock-scope{max-height:430px!important;overflow:hidden!important}
  body.mobile-preview-mode .monthly-app-page .pro-lock-scope{max-height:390px!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-blur{filter:blur(5px)!important;opacity:.42!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-panel{position:absolute!important;inset:auto 14px 14px!important;display:block!important;text-align:left!important;padding:14px!important;border:0!important;border-radius:24px!important;background:#0f172a!important;color:#fff!important;box-shadow:0 18px 44px rgba(15,23,42,.22)!important;backdrop-filter:none!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-card{width:100%!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px 12px!important;align-items:center!important;justify-items:stretch!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-icon{grid-row:1/3;width:42px!important;height:42px!important;border-radius:15px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font-size:19px!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-card strong{font-size:16px!important;line-height:1.35!important;color:#fff!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-card p{font-size:12.5px!important;line-height:1.5!important;color:rgba(255,255,255,.72)!important;margin:0!important}
  body.mobile-preview-mode .app-mobile-page .pro-lock-card .mock-btn{grid-column:1/-1;margin-top:4px!important;width:100%!important;min-height:42px!important;border-radius:999px!important;background:#fff!important;color:#0f172a!important;border-color:#fff!important}
  body.mobile-preview-mode .bazi-app-page .bazi-star-panel.pro-locked::after{inset:auto 12px 12px!important;min-height:46px!important;border-radius:16px!important;background:#0f172a!important;color:#fff!important;backdrop-filter:none!important;font-size:12px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-preview-lock .bazi-pro-section.locked>.pro-lock-blur{display:block!important}
  body.mobile-preview-mode .bazi-app-page .bazi-preview-lock .bazi-pro-section.locked{display:block!important}
  body.mobile-preview-mode .bazi-app-page .bazi-pro-section.locked{gap:0!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-grid{grid-template-columns:1fr!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-card{margin-bottom:10px!important}
  body.mobile-preview-mode .bazi-app-page .bazi-analysis-card:last-child{margin-bottom:0!important}
  body.mobile-preview-mode .monthly-app-page .monthly-report-cover{padding:16px 14px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-page-v2 .monthly-report-cover{padding:16px 14px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-v2-summary-grid{display:flex!important;gap:8px!important;overflow-x:auto!important;margin:12px -18px 0!important;padding:0 18px 4px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-v2-summary-card{flex:0 0 190px!important;border-radius:18px!important;padding:12px!important;box-shadow:none!important}
  body.mobile-preview-mode .monthly-app-page .monthly-v2-score-card{flex-basis:122px!important;min-width:122px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-top-grid{display:block!important}
  body.mobile-preview-mode .monthly-app-page .monthly-overview-card{display:none!important}
  body.mobile-preview-mode .monthly-app-page .monthly-page-v2 .monthly-featured-element{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-color:#eef2f7!important;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)!important;box-shadow:none!important}
  body.mobile-preview-mode .monthly-app-page .monthly-page-v2 .monthly-focus-grid{display:block!important}
  body.mobile-preview-mode .monthly-app-page .monthly-focus-card,body.mobile-preview-mode .monthly-app-page .monthly-tab-panel{margin-bottom:10px!important}
  body.mobile-preview-mode .monthly-app-page .monthly-focus-card:last-child,body.mobile-preview-mode .monthly-app-page .monthly-tab-panel:last-child{margin-bottom:0!important}
}
.messages,.session-list,.modal-body,.account-menu,.mock-page,.mock-actions,.pricing-grid.single-plan,.monthly-tab-list,.monthly-v2-summary-grid{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.messages::-webkit-scrollbar,.session-list::-webkit-scrollbar,.modal-body::-webkit-scrollbar,.account-menu::-webkit-scrollbar,.mock-page::-webkit-scrollbar,.mock-actions::-webkit-scrollbar,.pricing-grid.single-plan::-webkit-scrollbar,.monthly-tab-list::-webkit-scrollbar,.monthly-v2-summary-grid::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
body.mobile-preview-mode{
  overflow:hidden!important;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
body.mobile-preview-mode::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
body.mobile-preview-mode .messages,body.mobile-preview-mode .session-list,body.mobile-preview-mode .modal-body,body.mobile-preview-mode .account-menu,body.mobile-preview-mode .mock-page,body.mobile-preview-mode .mock-actions,body.mobile-preview-mode .pricing-grid.single-plan,body.mobile-preview-mode .monthly-tab-list,body.mobile-preview-mode .monthly-v2-summary-grid{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body.mobile-preview-mode .messages::-webkit-scrollbar,body.mobile-preview-mode .session-list::-webkit-scrollbar,body.mobile-preview-mode .modal-body::-webkit-scrollbar,body.mobile-preview-mode .account-menu::-webkit-scrollbar,body.mobile-preview-mode .mock-page::-webkit-scrollbar,body.mobile-preview-mode .mock-actions::-webkit-scrollbar,body.mobile-preview-mode .pricing-grid.single-plan::-webkit-scrollbar,body.mobile-preview-mode .monthly-tab-list::-webkit-scrollbar,body.mobile-preview-mode .monthly-v2-summary-grid::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
body.mobile-preview-mode .oracle-app-page{
  width:min(100%,520px)!important;
  padding:8px 10px 96px!important;
  gap:12px!important;
}
body.mobile-preview-mode .oracle-app-page .mock-hero{
  display:none!important;
}
.oracle-shell{
  display:grid;
  gap:14px;
}
.auspicious-shell{
  display:grid;
  gap:14px;
}
.auspicious-hub{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.auspicious-choice-card{
  min-height:156px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:26px;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  color:#111827;
  padding:16px 14px;
  display:grid;
  align-content:space-between;
  gap:14px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(15,23,42,.055);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.auspicious-choice-card:active{
  transform:scale(.985);
}
.auspicious-choice-card:hover{
  border-color:rgba(148,163,184,.5);
  box-shadow:0 20px 42px rgba(15,23,42,.08);
}
.auspicious-choice-icon{
  width:44px;
  height:44px;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  font-size:21px;
  font-weight:950;
}
.auspicious-choice-card.shrine .auspicious-choice-icon{
  background:#991b1b;
}
.auspicious-choice-copy{
  display:grid;
  gap:5px;
}
.auspicious-choice-copy strong{
  font-size:18px;
  line-height:1.2;
  color:#111827;
}
.auspicious-choice-copy span{
  color:#64748b;
  font-size:12.8px;
  line-height:1.48;
}
.auspicious-back-button{
  width:fit-content;
  min-height:34px;
  margin:8px auto 0;
  border:1px solid rgba(226,232,240,.95);
  border-radius:999px;
  background:#fff;
  color:#64748b;
  padding:0 12px;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.auspicious-back-button:active{
  transform:scale(.98);
}
@media(max-width:380px){
  .auspicious-hub{grid-template-columns:1fr}
}
.auspicious-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:4px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:999px;
  background:#f8fafc;
}
.auspicious-mode-tab{
  min-width:0;
  min-height:46px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#64748b;
  font:inherit;
  font-size:14px;
  font-weight:950;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.auspicious-mode-tab.active{
  background:#111827;
  color:#fff;
  box-shadow:0 12px 26px rgba(17,24,39,.16);
}
.auspicious-mode-tab:active{
  transform:scale(.985);
}
.auspicious-panel{
  display:grid;
  gap:14px;
}
.auspicious-panel.hidden{
  display:none;
}
.auspicious-panel-head{
  display:grid;
  gap:5px;
  padding:2px 2px 0;
  text-align:center;
}
.auspicious-panel-head span{
  color:#94a3b8;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.auspicious-panel-head h2{
  margin:0;
  color:#111827;
  font-size:25px;
  line-height:1.14;
  letter-spacing:0;
}
.auspicious-panel-head p{
  margin:0 auto;
  max-width:350px;
  color:#64748b;
  font-size:13.5px;
  line-height:1.55;
}
.oracle-stage,.oracle-focus-card,.oracle-card,.oracle-result-card{
  border:1px solid rgba(148,163,184,.22);
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}
.oracle-focus-card{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  align-items:center;
  padding:18px;
  color:#fff;
  background:radial-gradient(circle at 85% 10%,rgba(255,255,255,.16),transparent 32%),linear-gradient(145deg,#0b1220 0%,#172033 100%);
}
.oracle-orb{
  width:58px;
  height:58px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#f8e6a5;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(248,230,165,.28);
  font-size:26px;
  font-weight:950;
}
.oracle-focus-card span{
  display:block;
  color:rgba(255,255,255,.58);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.oracle-focus-card strong{
  display:block;
  margin-top:3px;
  font-size:25px;
  line-height:1.15;
}
.oracle-focus-card p{
  margin:7px 0 0;
  color:rgba(255,255,255,.72);
  font-size:13.5px;
  line-height:1.55;
}
.oracle-card{
  padding:16px;
  display:grid;
  gap:12px;
}
.oracle-field{
  display:grid;
  gap:8px;
  color:#64748b;
  font-size:13px;
  font-weight:900;
}
.oracle-field textarea{
  width:100%;
  min-height:76px;
  border-radius:20px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#111827;
  resize:none;
  padding:14px 15px;
  font:inherit;
  font-size:15px;
  line-height:1.45;
  outline:none;
}
.oracle-field textarea:focus{
  border-color:#111827;
  background:#fff;
  box-shadow:0 0 0 4px rgba(17,24,39,.08);
}
.oracle-category-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.oracle-chip input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.oracle-chip span{
  display:grid;
  place-items:center;
  min-height:40px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#475569;
  font-size:12.5px;
  font-weight:900;
}
.oracle-chip input:checked+span{
  background:#111827;
  border-color:#111827;
  color:#fff;
  box-shadow:0 10px 24px rgba(17,24,39,.18);
}
.oracle-cast-button,.oracle-chat-btn{
  width:100%;
  min-height:52px;
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font:inherit;
  font-size:16px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(17,24,39,.18);
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.oracle-cast-button.is-loading{
  opacity:.76;
}
.oracle-cast-button.is-holding{
  transform:translateY(1px) scale(.985);
  background:#1f2937;
  box-shadow:0 10px 24px rgba(17,24,39,.16);
}
.oracle-cast-button.is-waiting{
  background:#334155;
}
.oracle-hint{
  margin:0;
  color:#64748b;
  font-size:12.5px;
  line-height:1.5;
  text-align:center;
}
.shrine-preview{
  display:grid;
  gap:0;
  background:#fff;
}
.shrine-scene{
  position:relative;
  min-height:520px;
  overflow:hidden;
  border-radius:0;
  border:0;
  border-bottom:8px solid #f5f6f8;
  background:
    linear-gradient(180deg,rgba(15,23,42,.14) 0%,rgba(15,23,42,.04) 34%,rgba(15,23,42,.34) 100%),
    url('/assets/guanyin-bg-1350x1800.png') center top / cover no-repeat;
  box-shadow:none;
}
.shrine-scene::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 34%,rgba(255,237,180,.34),transparent 22%),
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(0,0,0,.38));
  pointer-events:none;
}
.shrine-scene::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:150px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.5));
  pointer-events:none;
}
.shrine-altar{
  position:absolute;
  left:24px;
  right:24px;
  bottom:22px;
  height:118px;
  border-radius:24px 24px 14px 14px;
  background:linear-gradient(180deg,#b91c1c 0%,#7f1d1d 62%,#5f1313 100%);
  border:1px solid rgba(248,230,165,.24);
  box-shadow:0 22px 42px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.18);
}
.shrine-altar::before{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  top:-24px;
  height:38px;
  border-radius:999px 999px 12px 12px;
  background:linear-gradient(180deg,#513018,#23130b);
  box-shadow:inset 0 -8px 0 rgba(0,0,0,.2),0 16px 30px rgba(0,0,0,.28);
}
.shrine-altar::after{
  content:"";
  position:absolute;
  left:-28px;
  right:-28px;
  top:-126px;
  height:150px;
  opacity:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 11% 58%,rgba(255,205,218,.86) 0 6px,transparent 7px),
    radial-gradient(circle at 18% 34%,rgba(244,114,182,.68) 0 5px,transparent 6px),
    radial-gradient(circle at 27% 70%,rgba(253,164,175,.72) 0 4px,transparent 5px),
    radial-gradient(circle at 34% 48%,rgba(255,228,230,.52) 0 3px,transparent 4px),
    radial-gradient(circle at 89% 58%,rgba(255,205,218,.86) 0 6px,transparent 7px),
    radial-gradient(circle at 82% 34%,rgba(244,114,182,.68) 0 5px,transparent 6px),
    radial-gradient(circle at 73% 70%,rgba(253,164,175,.72) 0 4px,transparent 5px),
    radial-gradient(circle at 66% 48%,rgba(255,228,230,.52) 0 3px,transparent 4px),
    radial-gradient(ellipse at 18% 76%,rgba(236,72,153,.58),transparent 34%),
    radial-gradient(ellipse at 82% 76%,rgba(236,72,153,.58),transparent 34%),
    radial-gradient(ellipse at 50% 96%,rgba(251,113,133,.28),transparent 42%);
  filter:blur(.12px) drop-shadow(0 0 18px rgba(251,113,133,.58));
  transform:translateY(16px) scale(.92);
  transition:opacity .34s ease,transform .34s ease,filter .34s ease;
}
.shrine-scene.has-flower .shrine-altar::after{
  opacity:1;
  transform:translateY(-2px) scale(1.04);
  animation:shrineFlowerBloom 2.35s ease-in-out infinite;
}
.shrine-incense{
  position:absolute;
  left:50%;
  bottom:116px;
  width:96px;
  height:168px;
  transform:translateX(-50%);
  z-index:2;
}
.shrine-incense::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-13px;
  width:56px;
  height:24px;
  border-radius:999px 999px 14px 14px;
  background:linear-gradient(180deg,#7f1d1d,#2f1111);
  border:1px solid rgba(253,230,138,.34);
  transform:translateX(-50%);
  box-shadow:inset 0 7px 10px rgba(0,0,0,.28),0 12px 20px rgba(0,0,0,.28);
}
.shrine-incense::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:4px;
  width:44px;
  height:9px;
  border-radius:999px;
  background:linear-gradient(180deg,#27110d,#050505);
  transform:translateX(-50%);
}
.shrine-incense i{
  position:absolute;
  bottom:0;
  width:4px;
  height:126px;
  border-radius:999px;
  background:linear-gradient(180deg,#5a2b1f 0 58%,#111827 58% 100%);
  transform-origin:50% 100%;
  box-shadow:0 -6px 0 #b91c1c;
}
.shrine-incense i:nth-child(1){left:26px;transform:rotate(0deg)}
.shrine-incense i:nth-child(2){left:46px;transform:rotate(0deg)}
.shrine-incense i:nth-child(3){left:66px;transform:rotate(0deg)}
.shrine-smoke{
  position:absolute;
  left:50%;
  bottom:118px;
  width:18px;
  height:18px;
  border-radius:999px;
  opacity:0;
  background:radial-gradient(circle,rgba(255,255,255,.62),rgba(255,255,255,0) 70%);
  filter:blur(1.5px);
}
.shrine-smoke:nth-of-type(1){animation-delay:0s}
.shrine-smoke:nth-of-type(2){animation-delay:.95s}
.shrine-smoke:nth-of-type(3){animation-delay:1.9s}
.shrine-scene.is-lit .shrine-smoke{
  animation:shrineSmokeRise 3.2s ease-out infinite;
}
.shrine-candle{
  position:absolute;
  bottom:96px;
  width:18px;
  height:58px;
  border-radius:10px 10px 3px 3px;
  background:linear-gradient(180deg,#ef4444,#991b1b);
  z-index:2;
}
.shrine-candle.left{left:58px}
.shrine-candle.right{right:58px}
.shrine-candle::before{
  content:"";
  position:absolute;
  left:50%;
  top:-18px;
  width:12px;
  height:20px;
  transform:translateX(-50%);
  border-radius:50% 50% 45% 45%;
  background:radial-gradient(circle at 50% 72%,#fff7ed 0 22%,#fbbf24 34%,#f97316 70%,transparent 72%);
  filter:drop-shadow(0 0 10px rgba(251,191,36,.85));
  opacity:.18;
}
.shrine-scene.is-lit .shrine-candle::before{
  opacity:1;
  animation:shrineFlicker .8s ease-in-out infinite;
}
.shrine-burner{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  opacity:0;
  background:
    radial-gradient(circle at 50% 78%,rgba(0,0,0,0) 0%,rgba(0,0,0,.25) 54%,rgba(0,0,0,.82) 82%,#000 100%) center/8% 8% no-repeat;
}
.shrine-scene.is-burning .shrine-burner{
  opacity:1;
  animation:shrineBurnPaper 2s ease-out forwards;
}
.shrine-preview-card{
  display:grid;
  gap:14px;
  padding:18px 16px 22px;
  border:0;
  border-bottom:8px solid #f5f6f8;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
.shrine-preview-card h3{
  margin:0;
  color:#111827;
  font-size:22px;
  line-height:1.18;
}
.shrine-preview-card p{
  margin:0;
  color:#64748b;
  font-size:13.5px;
  line-height:1.55;
}
.shrine-wish-field{
  display:grid;
  gap:8px;
}
.shrine-wish-field span{
  color:#64748b;
  font-size:12.5px;
  font-weight:950;
}
.shrine-wish-field textarea{
  width:100%;
  min-height:104px;
  resize:none;
  border:1px solid #e2e8f0;
  border-radius:22px;
  background:#f8fafc;
  padding:14px 15px;
  color:#111827;
  font:inherit;
  font-size:14.5px;
  line-height:1.5;
  outline:none;
}
.shrine-action-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.shrine-action-grid button{
  min-width:0;
  min-height:48px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#111827;
  font:inherit;
  font-size:13.5px;
  font-weight:950;
}
.shrine-action-grid button.primary{
  border-color:#111827;
  background:#111827;
  color:#fff;
}
.shrine-action-grid button.is-active{
  border-color:#b45309;
  background:#fff7ed;
  color:#92400e;
}
.shrine-note{
  padding:12px 14px;
  border-radius:20px;
  background:#f8fafc;
  color:#64748b;
  font-size:12.5px;
  line-height:1.5;
}
.oracle-app-page.is-auspicious-active .mock-hero{
  display:none!important;
}
.auspicious-shell[data-active-mode="shrine"]{
  margin:-14px -14px 0;
}
.auspicious-shell[data-active-mode="shrine"] .auspicious-panel[data-auspicious-panel="shrine"]{
  padding:0;
  border:0!important;
  background:#160c0c!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.auspicious-shell[data-active-mode="shrine"] .auspicious-panel[data-auspicious-panel="shrine"]::after{
  display:none!important;
}
.auspicious-shell[data-active-mode="shrine"] .auspicious-panel[data-auspicious-panel="shrine"] > .auspicious-panel-head{
  display:none!important;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-preview{
  position:relative;
  min-height:calc(100dvh - 112px);
  overflow:hidden;
  background:#160c0c;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-scene{
  position:absolute;
  inset:-1px;
  min-height:100%;
  border:0;
  background-position:center top;
  transform:translateZ(0);
}
.auspicious-shell[data-active-mode="shrine"] .shrine-scene::before{
  background:
    radial-gradient(circle at 13% 29%,rgba(255,184,80,.5),rgba(255,94,36,.18) 5%,transparent 14%),
    radial-gradient(circle at 87% 29%,rgba(255,184,80,.5),rgba(255,94,36,.18) 5%,transparent 14%),
    radial-gradient(circle at 50% 23%,rgba(255,230,153,.42),transparent 21%),
    radial-gradient(circle at 50% 56%,rgba(127,29,29,.24),transparent 38%),
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.34) 54%,rgba(0,0,0,.7));
  animation:shrineLanternGlow 2.8s ease-in-out infinite;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-scene::after{
  height:330px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.72));
}
.shrine-scene-ui{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  z-index:6;
  display:grid;
  gap:3px;
  color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.42);
}
.auspicious-shell[data-active-mode="shrine"] .shrine-scene-ui{
  display:none!important;
}
.shrine-scene-ui span{
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
}
.shrine-scene-ui strong{
  font-size:30px;
  line-height:1.05;
  font-weight:950;
}
.shrine-scene-ui p{
  max-width:280px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.45;
}
.shrine-step-track{
  position:absolute;
  top:112px;
  left:14px;
  right:14px;
  z-index:6;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}
.shrine-step-track span{
  min-width:0;
  padding:8px 6px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(15,23,42,.34);
  color:rgba(255,255,255,.72);
  font-size:10px;
  font-weight:950;
  text-align:center;
  white-space:nowrap;
  backdrop-filter:blur(12px);
}
.shrine-step-track span.active{
  border-color:rgba(252,211,77,.62);
  background:rgba(252,211,77,.18);
  color:#fde68a;
}
.shrine-step-track span.done{
  border-color:rgba(34,197,94,.48);
  background:rgba(34,197,94,.16);
  color:#bbf7d0;
}
.shrine-floating-status{
  display:none;
  position:absolute;
  left:50%;
  bottom:342px;
  z-index:7;
  transform:translateX(-50%);
  width:min(300px,calc(100% - 44px));
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(15,23,42,.48);
  color:rgba(255,255,255,.9);
  font-size:12px;
  font-weight:850;
  line-height:1.35;
  text-align:center;
  text-shadow:0 1px 12px rgba(0,0,0,.4);
  box-shadow:0 14px 36px rgba(0,0,0,.22);
  backdrop-filter:blur(14px);
  transition:transform .26s ease, opacity .26s ease;
}
.shrine-floating-status.is-pulsing{
  animation:shrineStatusPulse .42s ease;
}
.shrine-daily-lamp{
  position:absolute;
  left:72%;
  bottom:248px;
  z-index:8;
  display:grid;
  place-items:center;
  width:96px;
  height:126px;
  overflow:visible;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
  box-shadow:none;
  transform:translateX(-50%);
  pointer-events:none;
}
.shrine-daily-lamp-icon{
  position:relative;
  display:grid;
  place-items:end center;
  width:94px;
  height:122px;
  overflow:visible;
  filter:drop-shadow(0 15px 20px rgba(0,0,0,.36));
}
.shrine-daily-lamp-flame{
  position:absolute;
  bottom:56px;
  left:50%;
  width:20px;
  height:30px;
  border-radius:50% 50% 48% 48% / 64% 64% 36% 36%;
  background:
    radial-gradient(circle at 50% 68%,#fff 0 14%,#fde68a 25%,#fb923c 56%,rgba(239,68,68,.5) 78%,rgba(239,68,68,0) 100%);
  transform:translateX(-50%) rotate(8deg);
  opacity:0;
  filter:drop-shadow(0 0 15px rgba(251,191,36,.78));
  transition:opacity .24s ease, transform .24s ease;
  animation:shrineFlicker .92s infinite ease-in-out;
  z-index:2;
}
.shrine-daily-lamp-flame::after{
  content:"";
  position:absolute;
  inset:8px 5px 5px;
  border-radius:50% 50% 46% 46% / 64% 64% 36% 36%;
  background:linear-gradient(180deg,#fff,#fef3c7 58%,rgba(254,243,199,0));
  opacity:.82;
}
.shrine-daily-lamp-flame::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-9px;
  width:4px;
  height:12px;
  border-radius:999px;
  background:linear-gradient(180deg,#fef3c7,#451a03);
  transform:translateX(-50%) rotate(-8deg);
  box-shadow:0 0 8px rgba(251,191,36,.65);
}
.shrine-daily-lamp-base{
  position:relative;
  overflow:hidden;
  width:78px;
  height:56px;
  border:2px solid rgba(253,230,138,.72);
  border-radius:28px 28px 20px 20px;
  background:linear-gradient(145deg,rgba(127,29,29,.94),rgba(69,10,10,.94));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -18px 28px rgba(0,0,0,.22);
  z-index:1;
}
.shrine-daily-lamp-base::before{
  content:"";
  position:absolute;
  left:9px;
  right:9px;
  top:8px;
  height:15px;
  border-radius:999px;
  border:1px solid rgba(253,230,138,.5);
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(0,0,0,.08));
  z-index:2;
}
.shrine-daily-lamp-base::after{
  content:"";
  position:absolute;
  left:50%;
  top:-9px;
  width:28px;
  height:17px;
  border:2px solid rgba(253,230,138,.72);
  border-bottom:0;
  border-radius:999px 999px 0 0;
  transform:translateX(-50%);
  background:linear-gradient(180deg,#7f1d1d,#450a0a);
  z-index:3;
}
.shrine-daily-lamp-icon::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:88px;
  height:16px;
  border-radius:999px;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.34),rgba(0,0,0,0) 72%);
  transform:translateX(-50%);
  z-index:0;
}
.shrine-daily-lamp-oil{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:var(--lamp-oil-level,0%);
  min-height:0;
  background:linear-gradient(180deg,#fde68a,#f59e0b);
  box-shadow:0 -6px 18px rgba(245,158,11,.45);
  transition:height .5s ease;
}
.shrine-scene.is-lamp-lit .shrine-daily-lamp-flame{
  opacity:.95;
}
.shrine-scene.is-lamp-low .shrine-daily-lamp-flame{
  opacity:.5;
  transform:translateX(-50%) rotate(4deg) scale(.82);
}
.shrine-scene.is-lamp-out .shrine-daily-lamp-flame{
  opacity:0;
}
.shrine-daily-lamp-copy{
  display:none;
}
.shrine-daily-lamp-copy span{
  color:rgba(255,255,255,.68);
  font-size:10.5px;
  font-weight:950;
  letter-spacing:.04em;
}
.shrine-daily-lamp-copy strong{
  overflow:hidden;
  color:#fff;
  font-size:13px;
  line-height:1.2;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shrine-daily-lamp-copy small{
  color:rgba(255,255,255,.75);
  font-size:10.5px;
  line-height:1.25;
  font-weight:750;
}
.shrine-offering-stage{
  position:absolute;
  left:50%;
  bottom:190px;
  z-index:10;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:12px;
  width:min(270px,80%);
  height:78px;
  transform:translateX(-50%);
  pointer-events:none;
}
.shrine-offering-item{
  position:relative;
  display:grid;
  place-items:center;
  opacity:0;
  transform:translateY(22px) scale(.82);
  transition:opacity .24s ease, transform .34s cubic-bezier(.2,.8,.2,1.25);
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.34));
}
.shrine-offering-item i{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:18px;
  background:linear-gradient(145deg,#fff7ed,#facc15);
  color:#7c2d12;
  font-style:normal;
  font-size:20px;
  font-weight:950;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}
.shrine-offering-item.tea i{
  width:112px;
  height:54px;
  border-radius:0;
  background:
    radial-gradient(ellipse at 23% 18%,rgba(255,255,255,.56) 0 8%,transparent 23%),
    radial-gradient(ellipse at 50% 12%,rgba(255,255,255,.66) 0 9%,transparent 24%),
    radial-gradient(ellipse at 77% 18%,rgba(255,255,255,.56) 0 8%,transparent 23%);
  background-repeat:no-repeat;
  color:transparent;
  box-shadow:none;
}
.shrine-offering-item.tea i::before,
.shrine-offering-item.tea i::after,
.shrine-offering-item.tea::before{
  content:"";
  position:absolute;
  bottom:0;
  width:31px;
  height:24px;
  border-radius:8px 8px 14px 14px;
  background:
    radial-gradient(ellipse at 50% 3px,rgba(120,53,15,.9) 0 34%,transparent 36%),
    linear-gradient(180deg,#fff7ed,#f1c27d 58%,#b45309);
  border:1px solid rgba(146,64,14,.36);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.72),
    0 8px 14px rgba(0,0,0,.28);
}
.shrine-offering-item.tea i::before{
  left:3px;
  transform:scale(.96);
}
.shrine-offering-item.tea i::after{
  right:3px;
  transform:scale(.96);
}
.shrine-offering-item.tea::before{
  left:50%;
  transform:translateX(-50%);
  z-index:2;
}
.shrine-offering-item.tea::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-3px;
  width:126px;
  height:11px;
  border-radius:999px;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.34),rgba(0,0,0,0) 72%);
  transform:translateX(-50%);
}
.shrine-offering-item.lamp i{
  background:linear-gradient(145deg,#fde68a,#ef4444);
}
.shrine-offering-item.lamp::before{
  content:"";
  position:absolute;
  top:-16px;
  left:50%;
  width:16px;
  height:24px;
  border-radius:999px 999px 999px 12px;
  background:linear-gradient(180deg,#fff7ad,#fb923c 62%,transparent);
  transform:translateX(-50%) rotate(8deg);
  opacity:.9;
  filter:blur(.2px);
  animation:shrineFlicker .9s infinite ease-in-out;
}
.shrine-offering-item.flower i{
  border-radius:20px 20px 999px 999px;
  background:linear-gradient(145deg,#fecdd3,#f43f5e);
  color:#fff7ed;
}
.shrine-scene.has-tea .shrine-offering-item.tea{
  opacity:1;
  transform:translateY(0) scale(1);
  animation:shrineOfferingPop .48s cubic-bezier(.2,.8,.2,1.25);
}
.shrine-scene.has-tea .shrine-offering-item.tea i{
  animation:shrineTeaSteam 2.2s ease-in-out infinite;
}
.shrine-scene.has-flower .shrine-offering-item.flower{
  opacity:0;
  transform:translateY(22px) scale(.82);
}
.shrine-lamp-refill{
  position:absolute;
  left:72%;
  bottom:219px;
  z-index:8;
  min-height:31px;
  border:1px solid rgba(253,230,138,.5);
  border-radius:999px;
  background:rgba(17,24,39,.76);
  color:#fff;
  padding:0 12px;
  font-size:11px;
  font-weight:950;
  box-shadow:0 16px 30px rgba(0,0,0,.28);
  transform:translateX(-50%);
  backdrop-filter:blur(12px);
}
.auspicious-shell[data-active-mode="shrine"] .shrine-lamp-refill{
  display:none;
}
.shrine-quick-actions{
  position:absolute;
  left:18px;
  right:18px;
  bottom:72px;
  z-index:12;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  pointer-events:auto;
}
.shrine-quick-actions button{
  position:relative;
  display:grid;
  place-items:center;
  gap:4px;
  min-width:0;
  min-height:54px;
  border:1px solid rgba(253,230,138,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(15,23,42,.66),rgba(15,23,42,.48));
  color:#fff;
  padding:7px 4px 6px;
  font:inherit;
  box-shadow:0 14px 32px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.shrine-quick-actions button span{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:rgba(253,230,138,.16);
  color:#fde68a;
  font-size:13px;
  font-weight:950;
  line-height:1;
}
.shrine-quick-actions button strong{
  color:rgba(255,255,255,.9);
  font-size:10.5px;
  line-height:1.08;
  font-weight:950;
  white-space:nowrap;
}
.shrine-quick-actions button.is-active{
  border-color:rgba(253,230,138,.74);
  background:linear-gradient(180deg,rgba(146,64,14,.76),rgba(69,26,3,.62));
  box-shadow:0 16px 34px rgba(0,0,0,.28),0 0 20px rgba(251,191,36,.2),inset 0 1px 0 rgba(255,255,255,.12);
}
.shrine-quick-actions button.is-active span{
  background:#fde68a;
  color:#7c2d12;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-incense{
  bottom:218px;
  z-index:9;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-candle{
  bottom:205px;
  z-index:8;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-altar{
  bottom:145px;
  z-index:6;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-burner{
  z-index:9;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-preview-card{
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  z-index:8;
  pointer-events:auto;
  display:grid;
  gap:9px;
  max-height:28dvh;
  overflow:auto;
  padding:12px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:24px;
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 48px rgba(0,0,0,.24);
  backdrop-filter:blur(18px);
  scrollbar-width:none;
  transform:translateY(0);
  transition:transform .34s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease, background .26s ease;
  will-change:transform;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-preview-card.is-collapsed{
  transform:translateY(calc(100% - 54px));
  box-shadow:0 -8px 30px rgba(0,0,0,.18);
}
.shrine-sheet-toggle{
  position:sticky;
  top:-12px;
  z-index:5;
  display:grid;
  place-items:center;
  width:100%;
  min-height:26px;
  margin:-12px 0 -1px;
  border:0;
  border-radius:24px 24px 0 0;
  background:transparent;
  cursor:pointer;
}
.shrine-sheet-toggle span{
  display:block;
  width:42px;
  height:5px;
  border-radius:999px;
  background:#cbd5e1;
  box-shadow:0 1px 0 rgba(255,255,255,.65);
}
.shrine-preview-card.is-collapsed .shrine-sheet-toggle span{
  background:#94a3b8;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-preview-card::-webkit-scrollbar{
  display:none;
}
.oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]){
  height:100%;
  min-height:0;
  overflow:hidden;
  padding-bottom:0!important;
}
.oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .auspicious-shell,
.oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .auspicious-panel[data-auspicious-panel="shrine"],
.oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .shrine-preview{
  height:100%;
  min-height:0;
}
.shrine-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-sheet-head{
  display:none;
}
.shrine-sheet-head strong{
  color:#111827;
  font-size:16px;
  line-height:1.2;
  font-weight:950;
}
.shrine-sheet-head span{
  display:none;
  max-width:190px;
  color:#64748b;
  font-size:11px;
  line-height:1.35;
  font-weight:750;
  text-align:right;
}
.shrine-lamp-card{
  display:grid;
  gap:9px;
  padding:11px;
  border:1px solid #fde68a;
  border-radius:18px;
  background:linear-gradient(135deg,#fffbeb,#fff);
}
.shrine-lamp-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.shrine-lamp-card-head strong{
  color:#111827;
  font-size:13px;
  font-weight:950;
}
.shrine-lamp-card-head span{
  color:#b45309;
  font-size:11px;
  font-weight:950;
  white-space:nowrap;
}
.shrine-lamp-meter{
  overflow:hidden;
  height:9px;
  border-radius:999px;
  background:#fef3c7;
}
.shrine-lamp-meter-fill{
  display:block;
  width:var(--lamp-oil-level,0%);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#f97316,#facc15);
  transition:width .5s ease;
}
.shrine-lamp-card-foot{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.shrine-lamp-card-foot small{
  color:#64748b;
  font-size:11px;
  line-height:1.35;
  font-weight:750;
}
.shrine-lamp-card-foot button{
  min-height:32px;
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  padding:0 12px;
  font-size:11px;
  font-weight:950;
}
.shrine-offering-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-lamp-card,
.auspicious-shell[data-active-mode="shrine"] .shrine-offering-row{
  display:none;
}
.shrine-offering-row button{
  position:relative;
  z-index:2;
  display:flex;
  gap:6px;
  place-items:center;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:1px solid #e2e8f0;
  border-radius:15px;
  background:#fff;
  color:#111827;
  font:inherit;
  cursor:pointer;
}
.shrine-offering-row button span{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#fff7ed;
  color:#b45309;
  font-size:12px;
  font-weight:950;
}
.shrine-offering-row button strong{
  font-size:11px;
  font-weight:950;
}
.shrine-offering-row button.is-active{
  border-color:#f59e0b;
  background:#fffbeb;
  box-shadow:inset 0 0 0 1px rgba(245,158,11,.2);
}
.auspicious-shell[data-active-mode="shrine"] .shrine-wish-field{
  gap:0;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-wish-field span{
  display:none;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-wish-field textarea{
  min-height:48px;
  border-radius:16px;
  padding:10px 12px;
  background:#fff;
  font-size:13px;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-action-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-action-grid [data-shrine-action="light"]{
  display:none;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-action-grid button{
  position:relative;
  z-index:2;
  min-height:42px;
  border-radius:999px;
  padding:0 10px;
  font-size:12px;
  line-height:1.15;
  box-shadow:none;
}
.auspicious-shell[data-active-mode="shrine"] .shrine-note{
  display:none;
  padding:8px 10px;
  border-radius:14px;
  background:#f8fafc;
  font-size:11.5px;
  line-height:1.35;
}
.auspicious-shell[data-active-mode="shrine"] .auspicious-back-button{
  justify-self:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  color:#64748b;
  font-size:11.5px;
  box-shadow:none;
}
@keyframes shrineSmokeRise{
  0%{transform:translate(-50%,0) scale(.9);opacity:0}
  12%{opacity:.55}
  100%{transform:translate(-50%,-156px) scale(1.8);opacity:0}
}
@keyframes shrineFlicker{
  0%,100%{transform:translateX(-50%) translateY(0) scale(1);opacity:.9}
  50%{transform:translateX(calc(-50% + 1px)) translateY(-1px) scale(1.06);opacity:1}
}
@keyframes shrineLanternGlow{
  0%,100%{opacity:.78;filter:saturate(1) brightness(1)}
  45%{opacity:1;filter:saturate(1.18) brightness(1.08)}
  70%{opacity:.88;filter:saturate(1.08) brightness(1.04)}
}
@keyframes shrineBurnPaper{
  0%{background-size:6% 6%;opacity:0}
  18%{opacity:.9}
  60%{background-size:58% 58%;opacity:.8}
  100%{background-size:160% 160%;opacity:0}
}
@keyframes shrineOfferingPop{
  0%{transform:translateY(20px) scale(.75);opacity:0}
  64%{transform:translateY(-5px) scale(1.06);opacity:1}
  100%{transform:translateY(0) scale(1);opacity:1}
}
@keyframes shrineTeaSteam{
  0%,100%{
    background-position:0 18px,50% 14px,100% 18px;
    opacity:.82;
    filter:blur(.05px);
  }
  48%{
    background-position:0 2px,50% 0,100% 2px;
    opacity:1;
    filter:blur(.2px);
  }
}
@keyframes shrineFlowerBloom{
  0%,100%{filter:blur(.12px) drop-shadow(0 0 14px rgba(251,113,133,.46));opacity:.82;transform:translateY(0) scale(1)}
  45%{filter:blur(.08px) drop-shadow(0 0 26px rgba(251,113,133,.72));opacity:1;transform:translateY(-7px) scale(1.08)}
  70%{filter:blur(.1px) drop-shadow(0 0 20px rgba(255,205,218,.62));opacity:.94;transform:translateY(-3px) scale(1.04)}
}
@keyframes shrineStatusPulse{
  0%,100%{transform:translateX(-50%) scale(1)}
  48%{transform:translateX(-50%) scale(1.025)}
}
.oracle-stage{
  padding:10px 10px 18px;
  text-align:center;
  overflow:visible;
  display:grid;
  gap:14px;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.oracle-stage-head{
  display:none;
}
.oracle-stage-head span{
  color:#94a3b8;
  font-size:11px;
  line-height:1;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.oracle-stage-head h3{
  margin:0;
  color:#111827;
  font-size:24px;
  line-height:1.16;
}
.oracle-stage-head p{
  margin:0;
  max-width:300px;
  justify-self:center;
  color:#64748b;
  font-size:13.5px;
  line-height:1.5;
}
.oracle-tube-wrap{
  min-height:300px;
  padding-top:60px;
  margin-top:0;
  display:grid;
  place-items:center;
  position:relative;
  isolation:isolate;
}
.oracle-tube-wrap::before{
  content:none;
}
.oracle-tube-wrap::after{
  content:"";
  position:absolute;
  bottom:23px;
  width:174px;
  height:34px;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(15,23,42,.16),rgba(15,23,42,.055) 52%,transparent 72%);
  filter:blur(2px);
  z-index:-1;
}
.oracle-tube{
  position:relative;
  width:128px;
  height:214px;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  border:0;
  filter:drop-shadow(0 18px 18px rgba(15,23,42,.12));
  transform-origin:50% 70%;
  animation:oracleIdleFloat 3.4s ease-in-out infinite;
}
.oracle-tube::before{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:0;
  height:130px;
  border-radius:3px 3px 5px 5px;
  background:
    linear-gradient(90deg,#8d1e1c 0%,#c22b25 18%,#df473b 46%,#c52a25 72%,#8d1c19 100%);
  box-shadow:
    inset 12px 0 18px rgba(255,255,255,.12),
    inset -13px 0 18px rgba(80,0,0,.22);
  z-index:4;
}
.oracle-tube::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:119px;
  height:21px;
  border-radius:2px;
  background:
    linear-gradient(180deg,#e94b3d 0%,#b71f1d 45%,#98201c 100%);
  border-bottom:6px solid rgba(188,130,55,.96);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.16),
    0 4px 7px rgba(80,0,0,.18);
  z-index:6;
}
.oracle-fu{
  position:absolute;
  left:50%;
  bottom:40px;
  z-index:7;
  transform:translateX(-50%);
  color:rgba(255,226,152,.96);
  font-size:44px;
  line-height:1;
  font-weight:900;
  font-family:"Times New Roman","Noto Serif SC",serif;
  text-shadow:0 2px 0 rgba(104,18,16,.28),0 8px 16px rgba(74,0,0,.18);
  pointer-events:none;
}
.oracle-stick{
  position:absolute;
  left:50%;
  bottom:122px;
  width:13px;
  height:145px;
  border-radius:8px 8px 2px 2px;
  background:
    linear-gradient(90deg,#a96a2d 0%,#d9964b 28%,#efba6b 50%,#cf8238 76%,#8b5427 100%);
  border:1px solid rgba(91,52,20,.12);
  box-shadow:inset 4px 0 7px rgba(255,255,255,.12),inset -4px 0 8px rgba(77,36,14,.18);
  transform-origin:50% 100%;
  z-index:2;
}
.oracle-stick::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-1px;
  height:50px;
  border-radius:8px 8px 0 0;
  background:
    linear-gradient(90deg,#8d1e1c 0%,#c73630 36%,#e04a41 50%,#b6201f 76%,#7c1716 100%);
  box-shadow:inset 3px 0 7px rgba(255,255,255,.1),inset -3px 0 7px rgba(80,0,0,.2);
}
.oracle-stick:nth-child(1){transform:translateX(-48px)}
.oracle-stick:nth-child(2){transform:translateX(-32px)}
.oracle-stick:nth-child(3){transform:translateX(-16px)}
.oracle-stick:nth-child(4){transform:translateX(-50%)}
.oracle-stick:nth-child(5){transform:translateX(8px)}
.oracle-stick:nth-child(6){transform:translateX(24px)}
.oracle-stick:nth-child(7){transform:translateX(40px)}
.oracle-stick:nth-child(n+8){display:none}
.oracle-stage.is-shaking .oracle-tube{
  animation:oracleShake .46s ease-in-out infinite;
}
.oracle-stage.is-shaking .oracle-stick{
  animation:oracleStickShake .46s ease-in-out infinite;
}
.oracle-stage.is-revealing .oracle-stick:nth-child(4){
  animation:oraclePickStick .46s ease-out forwards;
}
.oracle-stage > h3{
  margin:4px 0 7px;
  color:#111827;
  font-size:24px;
  line-height:1.16;
}
.oracle-stage > p{
  margin:0 auto 15px;
  max-width:300px;
  color:#64748b;
  font-size:13.5px;
  line-height:1.58;
}
.oracle-save-btn,.oracle-chat-btn{
  width:100%;
  min-height:48px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#111827;
  font:inherit;
  font-size:14px;
  font-weight:950;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.oracle-result-card{
  --oracle-paper-top:#fff7ed;
  --oracle-paper-mid:#fffaf2;
  --oracle-paper-bottom:#fffdf8;
  --oracle-paper-border:rgba(180,83,9,.18);
  position:relative;
  padding:16px;
  overflow:hidden;
  border-color:var(--oracle-paper-border);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.92),transparent 34%),
    linear-gradient(180deg,var(--oracle-paper-top) 0%,var(--oracle-paper-mid) 48%,var(--oracle-paper-bottom) 100%);
}
.oracle-result-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(255,255,255,.42),transparent 18%,transparent 82%,rgba(255,255,255,.34)),
    repeating-linear-gradient(0deg,rgba(120,53,15,.035) 0 1px,transparent 1px 9px);
  mix-blend-mode:multiply;
  opacity:.46;
}
.oracle-result-card > *{
  position:relative;
  z-index:1;
}
.oracle-result-card.success{
  --oracle-paper-top:#f1f8ec;
  --oracle-paper-mid:#fff8ea;
  --oracle-paper-bottom:#fffdf8;
  --oracle-paper-border:rgba(34,197,94,.22);
}
.oracle-result-card.neutral{
  --oracle-paper-top:#fff3d6;
  --oracle-paper-mid:#fff8e8;
  --oracle-paper-bottom:#fffdf8;
  --oracle-paper-border:rgba(245,158,11,.26);
}
.oracle-result-card.caution{
  --oracle-paper-top:#fff0f0;
  --oracle-paper-mid:#fff7ee;
  --oracle-paper-bottom:#fffdf8;
  --oracle-paper-border:rgba(239,68,68,.22);
}
.oracle-result-top{
  position:relative;
  display:block;
  margin-bottom:14px;
  padding:0 0 12px;
  overflow:hidden;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(148,163,184,.18);
  box-shadow:none;
}
.oracle-result-top:before{
  content:none;
}
.oracle-slip-seal{
  display:none;
}
.oracle-slip-seal span{
  display:none;
}
.oracle-slip-seal small{
  display:none;
}
.oracle-slip-heading{
  position:relative;
  z-index:1;
  min-width:0;
}
.oracle-slip-heading span{
  display:block;
  margin-bottom:5px;
  color:#64748b;
  font-size:10.5px;
  line-height:1.25;
  font-weight:950;
  letter-spacing:.02em;
}
.oracle-slip-heading strong{
  display:block;
  color:#111827;
  font-size:19px;
  line-height:1.22;
  font-weight:950;
}
.oracle-slip-heading small{
  display:block;
  margin-top:5px;
  color:#475569;
  font-size:12px;
  line-height:1.35;
  font-weight:800;
}
.oracle-result-body{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:14px;
  align-items:center;
}
.oracle-lines,.yao-container.oracle-lines{
  display:flex;
  flex-direction:column;
  gap:9px;
  align-items:center;
  justify-content:center;
  padding:15px 10px;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(148,163,184,.18);
}
.oracle-lines .yao-row{
  width:86px;
  display:flex;
  justify-content:center;
}
.oracle-lines .yao-line{
  width:78px;
  height:10px;
  display:flex;
  gap:14px;
  justify-content:center;
}
.oracle-lines .yao-line .bar{
  flex:1;
  height:10px;
  border-radius:999px;
  background:linear-gradient(180deg,#3a3f47 0%,#1e2229 100%);
}
.oracle-result-copy small{
  display:block;
  color:#64748b;
  font-size:11.5px;
  font-weight:850;
}
.oracle-result-copy h3{
  margin:0 0 9px;
  color:#111827;
  font-size:18px;
  line-height:1.28;
}
.oracle-result-copy p{
  margin:0 0 8px;
  color:#475569;
  font-size:13.5px;
  line-height:1.58;
}
.oracle-chat-btn{
  margin-top:14px;
  background:#fff;
  color:#111827;
  border:1px solid #e2e8f0;
  box-shadow:none;
}
.oracle-action-icon{
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.oracle-action-icon svg{
  width:16px;
  height:16px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.oracle-action-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.oracle-download-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.oracle-modal-scroll{
  min-height:0;
}
.oracle-modal-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:12px 16px 16px;
  border-top:1px solid rgba(226,232,240,.86);
  background:rgba(248,250,252,.96);
  backdrop-filter:blur(12px);
}
.oracle-modal-actions .oracle-save-btn,
.oracle-modal-actions .oracle-chat-btn{
  margin:0;
  min-width:0;
  min-height:50px;
  padding:0 12px;
  font-size:13.5px;
}
.oracle-modal-actions .oracle-save-btn{
  background:#fff;
  color:#111827;
  border-color:#e2e8f0;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}
.oracle-modal-actions .oracle-chat-btn{
  background:#111827;
  color:#fff;
  border-color:#111827;
  box-shadow:0 14px 28px rgba(17,24,39,.18);
}
.oracle-modal-actions .oracle-save-btn:hover,
.oracle-modal-actions .oracle-chat-btn:hover{
  transform:translateY(-1px);
}
.oracle-modal-actions .oracle-save-btn:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
  box-shadow:0 12px 26px rgba(15,23,42,.09);
}
.oracle-modal-actions .oracle-chat-btn:hover{
  background:#1f2937;
  box-shadow:0 18px 34px rgba(17,24,39,.22);
}
.oracle-modal-actions .oracle-save-btn:active,
.oracle-modal-actions .oracle-chat-btn:active{
  transform:translateY(0) scale(.99);
}
.oracle-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:14px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(8px);
}
.oracle-modal-backdrop.is-erasing{
  pointer-events:none;
  animation:oracleBackdropErase .62s ease forwards;
}
.oracle-modal-sheet{
  position:relative;
  width:min(100%,430px);
  max-height:min(86vh,820px);
  overflow:hidden;
  border-radius:30px;
  background:#fff;
  box-shadow:0 26px 80px rgba(2,6,23,.28);
  animation:oracleSheetIn .24s ease-out;
  scrollbar-width:none;
}
.oracle-modal-sheet::after{
  content:"";
  position:absolute;
  inset:-18% -42%;
  z-index:5;
  pointer-events:none;
  opacity:0;
  background:
    linear-gradient(108deg,transparent 0 28%,rgba(255,255,255,.94) 39%,rgba(248,250,252,.98) 50%,rgba(255,255,255,.88) 60%,transparent 72%),
    repeating-linear-gradient(0deg,transparent 0 18px,rgba(226,232,240,.42) 18px 22px,transparent 22px 38px);
  transform:translate(-75%,-34%) rotate(-8deg);
  filter:blur(.2px);
}
.oracle-modal-backdrop.is-erasing .oracle-modal-sheet{
  animation:oracleSheetErase .62s ease forwards;
}
.oracle-modal-backdrop.is-erasing .oracle-modal-sheet::after{
  opacity:1;
  animation:oracleEraserSweep .6s ease-in-out forwards;
}
.oracle-modal-backdrop.is-erasing .oracle-modal-scroll{
  animation:oracleContentErase .56s ease forwards;
}
.oracle-modal-sheet::-webkit-scrollbar{display:none}
.oracle-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  width:36px;
  height:36px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#111827;
  font:inherit;
  font-size:22px;
  font-weight:850;
  line-height:1;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.oracle-modal-sheet .oracle-result-card{
  border:0;
  border-radius:30px;
  box-shadow:none;
  padding:22px 16px 16px;
}
@keyframes oracleShake{
  0%,100%{transform:rotate(0deg) translateY(0)}
  20%{transform:rotate(-8deg) translateY(-2px)}
  45%{transform:rotate(7deg) translateY(1px)}
  70%{transform:rotate(-5deg) translateY(-1px)}
}
@keyframes oracleStickShake{
  0%,100%{bottom:122px}
  50%{bottom:128px}
}
@keyframes oraclePickStick{
  0%{bottom:122px}
  45%{bottom:154px}
  100%{bottom:142px}
}
@keyframes oracleIdleFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}
@keyframes oracleSheetIn{
  from{opacity:0;transform:translateY(22px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes oracleEraserSweep{
  0%{opacity:0;transform:translate(-78%,-34%) rotate(-8deg)}
  18%{opacity:1}
  52%{opacity:1;transform:translate(4%,-8%) rotate(-8deg)}
  100%{opacity:0;transform:translate(74%,24%) rotate(-8deg)}
}
@keyframes oracleContentErase{
  0%{opacity:1;filter:none}
  55%{opacity:.72;filter:blur(.5px)}
  100%{opacity:.08;filter:blur(2px)}
}
@keyframes oracleSheetErase{
  0%{opacity:1;transform:none}
  72%{opacity:.92;transform:translateY(0) scale(.995)}
  100%{opacity:0;transform:translateY(10px) scale(.985)}
}
@keyframes oracleBackdropErase{
  0%{opacity:1}
  100%{opacity:0}
}
@media(max-width:520px){
  .oracle-focus-card{
    border-radius:24px;
    padding:16px;
  }
  .oracle-focus-card strong{
    font-size:23px;
  }
  .oracle-result-body{
    grid-template-columns:1fr;
  }
  .oracle-result-top{
    padding-bottom:11px;
  }
  .oracle-slip-heading strong{
    font-size:18px;
  }
  .oracle-download-row{grid-template-columns:1fr}
  .oracle-modal-actions{grid-template-columns:1fr 1fr}
  .oracle-modal-backdrop{
    align-items:stretch;
    justify-content:stretch;
    padding:0;
    background:rgba(15,23,42,.36);
  }
  .oracle-modal-sheet{
    width:100%;
    max-height:none;
    height:100dvh;
    border-radius:0;
    background:#f8fafc;
    box-shadow:none;
    display:flex;
    flex-direction:column;
  }
  .oracle-modal-scroll{
    flex:1;
    min-height:0;
    overflow:auto;
    padding:12px 10px 0;
    scrollbar-width:none;
  }
  .oracle-modal-scroll::-webkit-scrollbar{
    display:none;
  }
  .oracle-modal-sheet .oracle-result-card{
    border:1px solid rgba(226,232,240,.92);
    border-radius:28px;
    background:
      radial-gradient(circle at 18% 0%,rgba(255,255,255,.92),transparent 34%),
      linear-gradient(180deg,var(--oracle-paper-top) 0%,var(--oracle-paper-mid) 48%,var(--oracle-paper-bottom) 100%);
    padding:22px 16px 18px;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
  }
  .oracle-modal-actions{
    padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.96);
  }
  .oracle-modal-actions .oracle-save-btn,
  .oracle-modal-actions .oracle-chat-btn{
    min-height:48px;
    font-size:12.5px;
    padding:0 10px;
  }
  .oracle-modal-close{
    position:fixed;
    top:calc(10px + env(safe-area-inset-top,0px));
    right:12px;
  }
}
  .home-app-stack{
    display:grid;
    gap:14px;
    padding:0 12px 18px;
  }
  .home-hero-strip,
  .home-feature-card,
  .home-mini-card{
    position:relative;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#fff;
    box-shadow:0 14px 32px rgba(15,23,42,.055);
  }
  .home-hero-strip{
    margin:0 -12px 2px;
    min-height:198px;
    padding:24px 20px 18px;
    display:grid;
    align-content:space-between;
    gap:20px;
    border-width:0 0 1px;
    border-radius:0 0 30px 30px;
    background:
      linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px),
      linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    background-size:32px 32px,auto;
  }
  .home-hero-strip::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      linear-gradient(135deg,transparent 0 60%,rgba(17,24,39,.055) 60% 100%);
    pointer-events:none;
  }
  .home-hero-strip>*,
  .home-feature-card>*,
  .home-mini-card>*{
    position:relative;
    z-index:1;
  }
  .home-hero-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
  }
  .home-hero-copy{
    display:grid;
    gap:8px;
    min-width:0;
  }
  .home-hero-copy strong{
    color:#111827;
    font-size:34px;
    line-height:1.08;
    letter-spacing:0;
  }
  .home-hero-copy p{
    max-width:320px;
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.58;
  }
  .home-hero-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .home-hero-secondary{
    width:100%;
    min-height:48px;
    border:1px solid #e5e7eb;
    border-radius:999px;
    background:rgba(255,255,255,.72);
    color:#111827;
    font:900 14px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Thai",Arial,sans-serif;
    cursor:pointer;
  }
  .home-hero-dots{
    position:absolute;
    left:20px;
    bottom:10px;
    display:flex;
    gap:5px;
  }
  .home-hero-dots i{
    width:5px;
    height:5px;
    border-radius:999px;
    background:#cbd5e1;
  }
  .home-hero-dots i:first-child{
    width:18px;
    background:#111827;
  }
  .home-card-label{
    color:#94a3b8;
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .home-feature-card p,
  .home-mini-card p{
    margin:0;
    color:#64748b;
    font-size:14px;
    line-height:1.65;
  }
  .home-bento-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .home-feature-card{
    min-height:178px;
    padding:16px 15px;
    display:grid;
    align-content:space-between;
    gap:12px;
    border-radius:24px;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  }
  .home-feature-card.primary{
    background:linear-gradient(180deg,#fffbeb 0%,#fff 78%);
  }
  .home-feature-card.monthly{
    background:linear-gradient(180deg,#eff6ff 0%,#fff 78%);
  }
  .home-card-top{
    position:relative;
    z-index:1;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
  }
  .home-card-title{
    display:grid;
    gap:4px;
  }
  .home-card-title strong{
    color:#111827;
    font-size:21px;
    line-height:1.16;
  }
  .home-status-pill{
    flex:0 0 auto;
    border-radius:999px;
    padding:7px 10px;
    background:#111827;
    color:#fff;
    font-size:11px;
    font-weight:900;
    box-shadow:0 12px 24px rgba(15,23,42,.14);
    white-space:nowrap;
  }
  .home-status-pill.is-locked{
    background:#f1f5f9;
    color:#0f172a;
    box-shadow:none;
  }
  .home-status-pill.is-available{
    border:1px solid #bfdbfe!important;
    background:#eff6ff!important;
    color:#1d4ed8!important;
    box-shadow:none!important;
  }
  .home-feature-icon,
  .home-mini-icon{
    width:42px;
    height:42px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:#111827;
    color:#fff;
    box-shadow:0 12px 24px rgba(15,23,42,.12);
  }
  .home-feature-icon svg,
  .home-mini-icon svg{
    width:22px;
    height:22px;
    stroke:currentColor;
    fill:none;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .home-feature-card.primary .home-feature-icon{background:#7c2d12}
  .home-feature-card.monthly .home-feature-icon{background:#1e3a8a}
  .home-feature-card.home-date-finder-feature .home-feature-icon{background:#b68018}
  .home-monthly-mini-card .home-mini-icon{background:#e8eefc;color:#1e3a8a}
  .home-shop-bottom-card .home-mini-icon{background:#f3f4f6;color:#111827}
  .home-monthly-meta{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    padding:12px 14px;
  }
  .home-monthly-meta span{
    color:#64748b;
    font-size:13px;
    font-weight:800;
  }
  .home-monthly-meta strong{
    color:#111827;
    font-size:13px;
    text-align:right;
    line-height:1.45;
  }
  .home-card-action{
    position:relative;
    z-index:1;
    width:100%;
    border:0;
    border-radius:999px;
    background:#111827;
    color:#fff;
    min-height:48px;
    padding:0 16px;
    font:900 14px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Thai",Arial,sans-serif;
    cursor:pointer;
    box-shadow:0 14px 30px rgba(15,23,42,.16);
  }
  .home-card-action.light{
    background:#fff;
    color:#111827;
    box-shadow:0 10px 22px rgba(15,23,42,.08);
  }
  .home-mini-grid{
    display:grid;
    grid-template-columns:1.12fr .88fr;
    gap:12px;
  }
  .home-mini-card{
    min-height:124px;
    padding:14px;
    display:grid;
    align-content:space-between;
    gap:10px;
    border-radius:24px;
    cursor:pointer;
    text-align:left;
    font:inherit;
  }
  .home-mini-card:first-child{
    grid-row:span 2;
    min-height:190px;
    background:linear-gradient(180deg,#fff7ed 0%,#fff 72%);
  }
  .home-mini-card strong{
    display:block;
    color:#111827;
    font-size:15px;
    line-height:1.25;
    margin-bottom:4px;
  }
  .home-mini-card p{
    font-size:12px;
    line-height:1.45;
  }
  .home-mini-icon{
    width:34px;
    height:34px;
    border-radius:13px;
    background:#f3f4f6;
    color:#111827;
    box-shadow:none;
  }
  .home-mini-icon svg{
    width:18px;
    height:18px;
  }
  .home-oracle-card{
    align-content:start;
    gap:14px;
  }
  .home-oracle-art{
    width:104px;
    height:126px;
    margin:0 auto 2px;
    position:relative;
  }
  .home-oracle-art .home-oracle-stick{
    position:absolute;
    bottom:42px;
    left:50%;
    width:10px;
    height:82px;
    border-radius:8px 8px 2px 2px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,#b56b2c 0%,#f2bd6b 45%,#c98138 100%);
    box-shadow:0 5px 12px rgba(146,64,14,.16);
  }
  .home-oracle-art .home-oracle-stick::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:24px;
    border-radius:8px 8px 0 0;
    background:linear-gradient(180deg,#b91c1c,#ef4444);
  }
  .home-oracle-art .home-oracle-stick:nth-child(1){transform:translateX(calc(-50% - 24px))}
  .home-oracle-art .home-oracle-stick:nth-child(2){transform:translateX(calc(-50% - 12px))}
  .home-oracle-art .home-oracle-stick:nth-child(3){transform:translateX(-50%)}
  .home-oracle-art .home-oracle-stick:nth-child(4){transform:translateX(calc(-50% + 12px))}
  .home-oracle-art .home-oracle-stick:nth-child(5){transform:translateX(calc(-50% + 24px))}
  .home-oracle-cup{
    position:absolute;
    left:16px;
    right:16px;
    bottom:0;
    height:70px;
    border-radius:7px 7px 13px 13px;
    background:linear-gradient(90deg,#c52222 0%,#ef3c31 52%,#b91c1c 100%);
    box-shadow:0 18px 28px rgba(185,28,28,.18);
  }
  .home-oracle-cup::before{
    content:"";
    position:absolute;
    left:-6px;
    right:-6px;
    top:-11px;
    height:18px;
    border-radius:3px;
    background:linear-gradient(180deg,#ef4444,#b91c1c);
    border-bottom:4px solid #b7791f;
  }
  .home-oracle-cup b{
    position:absolute;
    inset:19px 0 auto;
    color:rgba(255,236,179,.85);
    text-align:center;
    font-size:24px;
    line-height:1;
    font-family:"Times New Roman",serif;
  }
  @media(max-width:380px){
    .home-hero-actions{grid-template-columns:1fr}
    .home-bento-grid{grid-template-columns:1fr 1fr}
    .home-mini-grid{grid-template-columns:1fr}
    .home-mini-card:first-child{min-height:184px}
  }
  @media(max-width:760px){
    body[data-mobile-view="home"] .mock-page{
      padding:0!important;
      gap:0!important;
    }
    body[data-mobile-view="home"] .home-app-stack{
      gap:13px;
    }
    body[data-mobile-view="home"] .home-hero-strip{
      min-height:194px;
    }
    body[data-mobile-view="home"] .home-hero-copy strong{
      font-size:32px;
    }
    body[data-mobile-view="home"] .home-bento-grid{
      gap:10px;
    }
    body[data-mobile-view="home"] .home-feature-card{
      min-height:168px;
      border-radius:22px;
      padding:14px;
    }
    body[data-mobile-view="home"] .home-card-title strong{
      font-size:21px;
    }
    body[data-mobile-view="home"] .home-feature-card p{
      font-size:12.5px;
      line-height:1.5;
    }
    body[data-mobile-view="home"] .home-card-action{
      min-height:44px;
      font-size:13px;
    }
    body[data-mobile-view="home"] .home-mini-card{
      min-height:116px;
      padding:13px;
      border-radius:20px;
    }
  }
  @media(min-width:761px){
    body.mobile-preview-mode[data-mobile-view="home"] .mock-page{
      padding-top:8px!important;
      gap:12px!important;
    }
  }
  .library-page{
    display:grid;
    gap:0;
    margin:0 -2px;
  }
  .library-summary-strip{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 20px 14px;
    border-bottom:1px solid #eef2f7;
    background:#fff;
  }
  .library-summary-icon{
    width:44px;
    height:44px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:#111827;
    color:#fff;
    flex:0 0 auto;
    font-weight:950;
  }
  .library-summary-copy{
    min-width:0;
    display:grid;
    gap:2px;
  }
  .library-summary-copy strong{
    color:#111827;
    font-size:17px;
    line-height:1.2;
  }
  .library-summary-copy span{
    color:#64748b;
    font-size:12.5px;
    font-weight:800;
    line-height:1.35;
  }
  .library-quick-status{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:12px 20px;
    border-bottom:8px solid #f8fafc;
    background:#fff;
    scrollbar-width:none;
  }
  .library-quick-status::-webkit-scrollbar{display:none}
  .library-status-pill{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    padding:0 11px;
    border-radius:999px;
    background:#f3f4f6;
    color:#374151;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
  }
  .library-status-pill.is-active{
    background:#111827;
    color:#fff;
  }
  .library-section{
    display:grid;
    gap:0;
    background:#fff;
    border-bottom:8px solid #f8fafc;
  }
  .library-section-head{
    min-height:50px;
    padding:12px 20px 8px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border-bottom:1px solid #f1f5f9;
  }
  .library-section-head strong{
    display:block;
    font-size:16px;
    color:#0f172a;
  }
  .library-section-head span,
  .library-section-kicker{
    display:block;
    font-size:11px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#94a3b8;
  }
  .library-item-list{
    display:grid;
  }
  .library-row{
    width:100%;
    min-height:76px;
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 20px;
    border:0;
    border-bottom:1px solid #f1f5f9;
    background:#fff;
    color:inherit;
    text-align:left;
  }
  .library-row:last-child{border-bottom:0}
  .library-item-icon{
    width:46px;
    height:46px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#f1f5f9;
    color:#111827;
    font-weight:950;
  }
  .library-item-icon svg{
    width:22px;
    height:22px;
    stroke:currentColor;
    stroke-width:1.8;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .library-item-icon.dark{
    background:#111827;
    color:#fff;
  }
  .library-item-icon.gold{
    background:#fff7ed;
    color:#92400e;
  }
  .library-item-icon.blue{
    background:#eff6ff;
    color:#1d4ed8;
  }
  .library-item-icon.red{
    background:#fef2f2;
    color:#b91c1c;
  }
  .library-product-thumb{
    width:58px;
    height:58px;
    border-radius:12px;
    overflow:hidden;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#fff7ed,#fde68a 48%,#fecaca);
    color:#111827;
    font-weight:950;
    font-size:22px;
  }
  .library-product-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .library-item-copy{
    min-width:0;
    display:grid;
    gap:4px;
  }
  .library-item-copy strong{
    font-size:15px;
    color:#111827;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .library-item-copy p{
    margin:0;
    color:#64748b;
    font-size:12.5px;
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .library-row-action{
    color:#94a3b8;
    font-size:22px;
    line-height:1;
  }
  .library-empty-state{
    display:grid;
    gap:10px;
    padding:20px;
    color:#64748b;
  }
  .library-empty-state strong{
    color:#111827;
    font-size:15px;
  }
  .library-empty-state p{
    margin:0;
    font-size:13px;
    line-height:1.55;
  }
  .library-empty-state .mock-btn{
    width:max-content;
    min-height:40px;
    padding:0 16px;
  }
  @media(max-width:420px){
    .library-summary-strip,
    .library-quick-status,
    .library-section-head,
    .library-row,
    .library-empty-state{padding-left:16px;padding-right:16px}
    .library-row{grid-template-columns:44px minmax(0,1fr) auto}
    .library-product-thumb{width:54px;height:54px}
  }
  @media(max-width:760px){
    .topbar.app-page-topbar{
      grid-template-columns:minmax(0,1fr) auto!important;
      padding-left:16px!important;
    }
    .topbar.app-page-topbar #menu-btn{
      display:none!important;
    }
    .topbar.app-page-topbar .topbar-copy{
      padding-left:0;
    }
    .topbar.app-page-topbar #topbar-title{
      font-size:17px!important;
      letter-spacing:0;
    }
    .topbar.app-page-topbar #user-label{
      font-size:12px!important;
      color:#6b7280!important;
    }
    .topbar.home-topbar{
      height:64px!important;
      flex-basis:64px!important;
      background:#fff;
    }
    .topbar.home-topbar #topbar-title{
      font-size:18px!important;
    }
  }
  @media(min-width:761px){
    body.mobile-preview-mode .topbar.app-page-topbar{
      grid-template-columns:minmax(0,1fr) auto!important;
      padding-left:16px!important;
    }
    body.mobile-preview-mode .topbar.app-page-topbar #menu-btn{
      display:none!important;
    }
    body.mobile-preview-mode .topbar.app-page-topbar #topbar-title{
      font-size:17px!important;
    }
    body.mobile-preview-mode .topbar.app-page-topbar #user-label{
      font-size:12px!important;
      color:#6b7280!important;
    }
    body.mobile-preview-mode .topbar.home-topbar{
      height:64px!important;
      flex-basis:64px!important;
      background:#fff;
    }
    body.mobile-preview-mode .topbar.home-topbar #topbar-title{
      font-size:18px!important;
    }
  }
  @media(max-width:760px){
    body[data-mobile-view="bazi"] .messages,
    body[data-mobile-view="monthly"] .messages{
      padding-left:0!important;
      padding-right:0!important;
      background:#fff!important;
    }
    body[data-mobile-view="bazi"] .mock-page,
    body[data-mobile-view="monthly"] .mock-page{
      width:100%!important;
      padding:0 0 calc(84px + env(safe-area-inset-bottom,0px))!important;
      gap:10px!important;
    }
    body[data-mobile-view="monthly"] .mock-hero{
      display:none!important;
    }
    body[data-mobile-view="bazi"] .page-shell,
    body[data-mobile-view="bazi"] .bazi-page-shell,
    body[data-mobile-view="monthly"] .monthly-page{
      width:100%!important;
      max-width:none!important;
      gap:10px!important;
    }
    body[data-mobile-view="bazi"] .bazi-page,
    body[data-mobile-view="monthly"] .monthly-page-v2{
      width:100%!important;
      max-width:none!important;
      gap:10px!important;
    }
    body[data-mobile-view="bazi"] .bazi-page>.page-card{
      border-left:0!important;
      border-right:0!important;
      border-radius:0!important;
      box-shadow:none!important;
      padding:16px 14px!important;
      background:#fff!important;
    }
    body[data-mobile-view="bazi"] .bazi-page>.page-card:first-child{
      padding-top:10px!important;
    }
    body[data-mobile-view="bazi"] .bazi-chart-summary,
    body[data-mobile-view="bazi"] .bazi-pro-section.unlocked,
    body[data-mobile-view="bazi"] .bazi-analysis-grid,
    body[data-mobile-view="bazi"] .bazi-star-panel{
      grid-template-columns:1fr!important;
    }
    body[data-mobile-view="bazi"] .bazi-summary-card,
    body[data-mobile-view="bazi"] .bazi-note-card,
    body[data-mobile-view="bazi"] .bazi-analysis-card,
    body[data-mobile-view="bazi"] .bazi-element-card,
    body[data-mobile-view="bazi"] .bazi-strength-card{
      border-radius:22px!important;
      padding:14px!important;
      box-shadow:none!important;
    }
    body[data-mobile-view="bazi"] .bazi-pillars-grid{
      display:grid!important;
      grid-template-columns:repeat(4,minmax(0,1fr))!important;
      gap:6px!important;
    }
    body[data-mobile-view="bazi"] .bazi-pillar-card{
      min-width:0!important;
      padding:10px 4px!important;
      border-radius:16px!important;
      gap:7px!important;
    }
    body[data-mobile-view="bazi"] .bazi-pillar-title{
      font-size:12px!important;
    }
    body[data-mobile-view="bazi"] .bazi-char{
      font-size:27px!important;
      line-height:1!important;
    }
    body[data-mobile-view="bazi"] .bazi-thai-name{
      font-size:10.5px!important;
      line-height:1.25!important;
    }
    body[data-mobile-view="bazi"] .bazi-shensha-list{
      gap:4px!important;
    }
    body[data-mobile-view="bazi"] .bazi-shensha-chip{
      min-height:24px!important;
      padding:5px 7px!important;
      font-size:9.5px!important;
      line-height:1.25!important;
    }
    body[data-mobile-view="monthly"] .monthly-panel{
      border-left:0!important;
      border-right:0!important;
      border-radius:0!important;
      box-shadow:none!important;
      padding:16px 14px!important;
      margin:0!important;
    }
    body[data-mobile-view="monthly"] .monthly-report-cover{
      border-radius:0 0 28px 28px!important;
      padding:18px 14px 16px!important;
    }
    body[data-mobile-view="monthly"] .monthly-report-cover::before{
      display:none!important;
    }
    body[data-mobile-view="monthly"] .monthly-v2-summary-grid{
      display:flex!important;
      gap:8px!important;
      overflow-x:auto!important;
      margin:12px -14px 0!important;
      padding:0 14px 2px!important;
    }
    body[data-mobile-view="monthly"] .monthly-v2-summary-card{
      flex:0 0 178px!important;
      border-radius:18px!important;
      padding:12px!important;
      box-shadow:none!important;
    }
    body[data-mobile-view="monthly"] .monthly-featured-element{
      border-radius:28px!important;
      border-left:1px solid rgba(37,99,235,.14)!important;
      border-right:1px solid rgba(37,99,235,.14)!important;
      margin:10px 10px 0!important;
      padding:18px 14px!important;
    }
    body[data-mobile-view="monthly"] .monthly-featured-element .monthly-section-title{
      font-size:21px!important;
      padding-right:0!important;
    }
    body[data-mobile-view="monthly"] .monthly-element-hero{
      grid-template-columns:72px minmax(0,1fr)!important;
      gap:12px!important;
    }
    body[data-mobile-view="monthly"] .monthly-element-orb{
      width:72px!important;
      height:72px!important;
      border-radius:22px!important;
      font-size:28px!important;
    }
    body[data-mobile-view="monthly"] .monthly-element-note{
      font-size:13px!important;
      line-height:1.6!important;
      border-radius:18px!important;
    }
    body[data-mobile-view="monthly"] .monthly-analysis-tabs{
      margin:0 -14px!important;
    }
    body[data-mobile-view="monthly"] .monthly-tab-list{
      margin:0!important;
      padding:0 14px 8px!important;
    }
    body[data-mobile-view="monthly"] .monthly-tab-panel{
      border-left:0!important;
      border-right:0!important;
      border-radius:0!important;
      margin:0!important;
      padding:0!important;
      box-shadow:none!important;
    }
    body[data-mobile-view="monthly"] .monthly-focus-body{
      padding:14px!important;
    }
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .messages,
  body.mobile-preview-mode[data-mobile-view="monthly"] .messages{
    padding-left:0!important;
    padding-right:0!important;
    background:#fff!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .mock-page,
  body.mobile-preview-mode[data-mobile-view="monthly"] .mock-page{
    width:100%!important;
    padding:0 0 84px!important;
    gap:10px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .mock-hero{
    display:none!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .page-shell,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-page-shell,
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-page{
    width:100%!important;
    max-width:none!important;
    gap:10px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-page,
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-page-v2{
    width:100%!important;
    max-width:none!important;
    gap:10px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-page>.page-card{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:16px 14px!important;
    background:#fff!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-page>.page-card:first-child{
    padding-top:10px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-chart-summary,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-pro-section.unlocked,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-analysis-grid,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-star-panel{
    grid-template-columns:1fr!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-summary-card,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-note-card,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-analysis-card,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-element-card,
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-strength-card{
    border-radius:22px!important;
    padding:14px!important;
    box-shadow:none!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-pillars-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-pillar-card{
    min-width:0!important;
    padding:10px 4px!important;
    border-radius:16px!important;
    gap:7px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-pillar-title{
    font-size:12px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-char{
    font-size:27px!important;
    line-height:1!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-thai-name{
    font-size:10.5px!important;
    line-height:1.25!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-shensha-list{
    gap:4px!important;
  }
  body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-shensha-chip{
    min-height:24px!important;
    padding:5px 7px!important;
    font-size:9.5px!important;
    line-height:1.25!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-panel{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:16px 14px!important;
    margin:0!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-report-cover{
    border-radius:0 0 28px 28px!important;
    padding:18px 14px 16px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-report-cover::before{
    display:none!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-v2-summary-grid{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    margin:12px -14px 0!important;
    padding:0 14px 2px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-v2-summary-card{
    flex:0 0 178px!important;
    border-radius:18px!important;
    padding:12px!important;
    box-shadow:none!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-featured-element{
    border-radius:28px!important;
    border-left:1px solid rgba(37,99,235,.14)!important;
    border-right:1px solid rgba(37,99,235,.14)!important;
    margin:10px 10px 0!important;
    padding:18px 14px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-featured-element .monthly-section-title{
    font-size:21px!important;
    padding-right:0!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-element-hero{
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:12px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-element-orb{
    width:72px!important;
    height:72px!important;
    border-radius:22px!important;
    font-size:28px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-element-note{
    font-size:13px!important;
    line-height:1.6!important;
    border-radius:18px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-analysis-tabs{
    margin:0 -14px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-tab-list{
    margin:0!important;
    padding:0 14px 8px!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-tab-panel{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    margin:0!important;
    padding:0!important;
    box-shadow:none!important;
  }
  body.mobile-preview-mode[data-mobile-view="monthly"] .monthly-focus-body{
    padding:14px!important;
  }
  @media(max-width:760px){
    .shop-app-page .mock-hero{display:none}
    .shop-app-page{background:#fff;padding-inline:0!important}
    .shop-page{display:grid;gap:14px;width:100%;padding:0 0 12px}
    .shop-hero{margin:0 2px;border-radius:28px;background:#111827;color:#fff;padding:20px;display:grid;gap:14px;position:relative;overflow:hidden;box-shadow:0 18px 38px rgba(15,23,42,.14)}
    .shop-hero:after{content:"";position:absolute;right:-54px;top:-54px;width:170px;height:170px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.04)}
    .shop-hero span,.shop-section-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:900;color:#94a3b8}
    .shop-hero strong{font-size:28px;line-height:1.1;letter-spacing:0;position:relative;z-index:1}
    .shop-hero p{margin:0;color:#d1d5db;font-size:13.5px;line-height:1.55;position:relative;z-index:1}
    .shop-cart-pill{width:max-content;border:0;border-radius:999px;background:#fff;color:#111827;padding:9px 13px;font-weight:950;position:relative;z-index:1}
    .shop-section{display:grid;gap:11px;margin:0 2px}
    .shop-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
    .shop-section-head strong{font-size:19px;line-height:1.2}
    .shop-section-head span{font-size:12px;color:#6b7280;font-weight:800}
    .shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .shop-product-card{border:1px solid #e5e7eb;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.06);overflow:hidden;display:grid;text-align:left;min-width:0}
    .shop-product-media,.shop-detail-media{min-height:114px;background:linear-gradient(135deg,#fff7ed,#fde68a 46%,#fecaca);display:grid;place-items:center;position:relative}
    .shop-product-media:before,.shop-detail-media:before{content:"";width:56px;height:56px;border-radius:20px;background:#111827;box-shadow:0 14px 30px rgba(15,23,42,.16)}
    .shop-product-media:after,.shop-detail-media:after{content:"福";position:absolute;color:#fff;font-size:28px;font-weight:950}
    .shop-product-card:nth-child(2n) .shop-product-media{background:linear-gradient(135deg,#ecfeff,#dbeafe 48%,#f5f3ff)}
    .shop-product-card:nth-child(3n) .shop-product-media{background:linear-gradient(135deg,#f0fdf4,#dcfce7 48%,#fef9c3)}
    .shop-product-body{padding:12px;display:grid;gap:8px}
    .shop-product-body strong{font-size:14.5px;line-height:1.25}
    .shop-product-body p{margin:0;color:#6b7280;font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .shop-card-meta{display:flex;gap:6px;flex-wrap:wrap}
    .shop-card-meta span,.shop-tag-list span{border-radius:999px;background:#f3f4f6;color:#374151;padding:5px 8px;font-size:11px;font-weight:850}
    .shop-price-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
    .shop-price-row b,.shop-detail-price strong{font-size:17px;color:#111827}
    .shop-price-row small,.shop-detail-price span{color:#9ca3af;text-decoration:line-through;font-size:11px}
    .shop-icon-btn{width:38px;height:38px;border:0;border-radius:14px;background:#111827;color:#fff;font-size:20px;font-weight:900}
    .shop-detail-card,.shop-summary-card,.shop-empty,.shop-payment-mini{border:1px solid #e5e7eb;border-radius:26px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.06);overflow:hidden;margin:0 2px}
    .shop-detail-media{min-height:170px}
    .shop-detail-content{padding:16px;display:grid;gap:12px}
    .shop-detail-content h2{margin:0;font-size:25px;line-height:1.14}
    .shop-detail-content p,.shop-empty p,.shop-payment-mini p{margin:0;color:#4b5563;font-size:13.5px;line-height:1.6}
    .shop-tag-list{display:flex;gap:7px;flex-wrap:wrap}
    .shop-detail-price{display:flex;align-items:baseline;gap:8px}
    .shop-info-list{display:grid;gap:0;border:1px solid #eef2f7;border-radius:18px;overflow:hidden}
    .shop-info-list>div{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid #eef2f7;color:#6b7280;font-size:12.5px}
    .shop-info-list>div:last-child{border-bottom:0}
    .shop-info-list strong{color:#111827;text-align:right}
    .shop-action-row{display:grid;grid-template-columns:1fr;gap:9px}
    .shop-primary-btn,.shop-secondary-btn{min-height:48px;border-radius:999px;padding:0 16px;font-size:14px;font-weight:950;display:inline-flex;align-items:center;justify-content:center}
    .shop-primary-btn{border:0;background:#111827;color:#fff;box-shadow:0 14px 28px rgba(15,23,42,.15)}
    .shop-secondary-btn{border:1px solid #e5e7eb;background:#fff;color:#111827}
    .shop-cart-list{display:grid;gap:9px}
    .shop-cart-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #e5e7eb;border-radius:20px;background:#fff}
    .shop-cart-media{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#fde68a,#fecaca);display:grid;place-items:center;position:relative}
    .shop-cart-media:after{content:"福";color:#111827;font-weight:950}
    .shop-cart-row strong{display:block;font-size:13.5px;line-height:1.25}
    .shop-cart-row span{display:block;color:#6b7280;font-size:12px;margin-top:3px}
    .shop-qty{display:inline-flex;align-items:center;gap:8px;margin-top:8px}
    .shop-qty button{width:30px;height:30px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;font-weight:950}
    .shop-remove-btn{border:0;background:#fee2e2;color:#991b1b;border-radius:999px;min-height:34px;padding:0 10px;font-weight:900;font-size:12px}
    .shop-summary-card,.shop-empty,.shop-payment-mini{padding:15px;display:grid;gap:11px}
    .shop-summary-card>div,.shop-order-line{display:flex;justify-content:space-between;gap:12px;color:#6b7280;font-size:13px}
    .shop-summary-card .total,.shop-order-line strong{color:#111827;font-weight:950}
    .shop-form{display:grid;gap:10px}
    .shop-form label{display:grid;gap:6px;color:#6b7280;font-size:12.5px;font-weight:850}
    .shop-form input,.shop-form textarea{width:100%;border:1px solid #e5e7eb;border-radius:16px;padding:12px 13px;font:inherit;color:#111827;background:#fff;outline:none}
    .shop-status-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
    .shop-step{display:grid;gap:6px;text-align:center;color:#9ca3af;font-size:10.5px;font-weight:800}
    .shop-step i{width:14px;height:14px;border-radius:999px;background:#e5e7eb;margin:0 auto}
    .shop-step.active{color:#111827}
    .shop-step.active i{background:#111827}
    .shop-library-list{display:grid;gap:8px}
    .shop-library-card{width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:12px;text-align:left}
    .shop-library-card strong{display:block;font-size:13.5px}
    .shop-library-card span,.shop-library-card small{color:#6b7280;font-size:12px}
  }
/* Shop mobile marketplace */
.shop-app-page .mock-hero{display:none!important}
.shop-page{width:100%;display:grid;gap:14px}
.shop-store-head{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:0 -2px;padding:8px 0 10px;background:linear-gradient(180deg,#fff 76%,rgba(255,255,255,0))}
.shop-search{min-width:0;min-height:44px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 13px;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.shop-search span{color:#94a3b8;font-weight:950;font-size:18px;line-height:1}
.shop-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#111827;font-size:14px;font-weight:750}
.shop-search input::placeholder{color:#9ca3af}
.shop-cart-button{position:relative;min-width:76px;min-height:44px;border:0;border-radius:999px;background:#111827;color:#fff;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:950;box-shadow:0 12px 26px rgba(15,23,42,.14)}
.shop-cart-button b{min-width:22px;height:22px;border-radius:999px;background:#fff;color:#111827;display:grid;place-items:center;font-size:12px}
.shop-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 -2px}
.shop-shortcuts button{min-width:0;min-height:68px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;color:#111827;display:grid;place-items:center;gap:5px;padding:8px 4px;box-shadow:0 10px 24px rgba(15,23,42,.04);font-weight:900}
.shop-shortcuts i{width:30px;height:30px;border-radius:12px;background:#f3f4f6;display:grid;place-items:center;color:#111827;font-style:normal;font-size:16px}
.shop-shortcuts span{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.shop-section{display:grid;gap:10px;margin:0!important}
.shop-section-head{padding:0 2px}
.shop-section-head strong{font-size:18px}
.shop-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-market-grid .shop-product-card{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;gap:8px;align-content:start}
.shop-market-grid .shop-product-media{width:100%;aspect-ratio:1/1;min-height:0!important;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#fff7ed,#fde68a 46%,#fecaca);box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);display:grid;place-items:center;position:relative}
.shop-market-grid .shop-product-media:before,.shop-market-grid .shop-product-media:after{display:none!important}
.shop-market-grid .shop-product-media img{width:100%;height:100%;object-fit:cover;display:block}
.shop-product-symbol{width:64px;height:64px;border-radius:22px;background:#111827;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:950;box-shadow:0 16px 32px rgba(15,23,42,.16)}
.shop-market-grid .shop-product-body{padding:0;gap:5px}
.shop-market-grid .shop-product-body strong{font-size:13px;line-height:1.35;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shop-market-grid .shop-product-body p{display:none}
.shop-market-grid .shop-price-row{align-items:flex-end}
.shop-market-grid .shop-price-row b{font-size:15px;color:#ef4444}
.shop-market-grid .shop-price-row small{display:block;margin-top:1px;font-size:10px}
.shop-market-grid .shop-icon-btn{width:30px;height:30px;border-radius:999px;font-size:18px;box-shadow:none}
.shop-no-result{grid-column:1/-1;border:1px dashed #cbd5e1;border-radius:18px;padding:18px;color:#64748b;text-align:center;font-weight:850;background:#f8fafc}
.shop-coupon-panel{display:grid;gap:12px;border:1px solid #e5e7eb;border-radius:22px;background:#fff;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.shop-coupon-panel strong{font-size:16px}
.shop-coupon-panel p{margin:4px 0 0;color:#64748b;font-size:12.5px;line-height:1.55}
.shop-coupon-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.shop-coupon-row input{min-width:0;min-height:44px;border:1px solid #e5e7eb;border-radius:15px;padding:0 12px;background:#fff;outline:0;text-transform:uppercase;font-weight:850}
.shop-coupon-row button{min-height:44px;border:0;border-radius:15px;background:#111827;color:#fff;padding:0 14px;font-weight:950;white-space:nowrap}
.shop-coupon-row button:disabled{opacity:.62;cursor:default}
@media(max-width:760px){
  .shop-store-head{margin-inline:0}
  .shop-page{gap:14px}
  .shop-shortcuts{margin-inline:0}
  .shop-market-grid{gap:12px 11px}
  .shop-detail-card,.shop-summary-card,.shop-empty,.shop-payment-mini{margin:0!important;border-radius:22px}
  .shop-detail-media:before,.shop-detail-media:after{display:none!important}
}
/* Apple-style liquid glass mobile polish */
@media(max-width:760px){
  :root{
    --glass-surface:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.48));
    --glass-surface-strong:linear-gradient(145deg,rgba(255,255,255,.9),rgba(248,250,252,.58));
    --glass-line:rgba(255,255,255,.76);
    --glass-shadow:0 18px 42px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.72);
    --glass-shadow-soft:0 10px 28px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.7);
  }
  body{
    background:
      radial-gradient(circle at 50% -16%,rgba(255,255,255,.92),rgba(255,255,255,0) 34%),
      linear-gradient(180deg,#f8fafc 0%,#f3f6fb 48%,#eef3f8 100%)!important;
  }
  .chat-main,
  .messages{
    background:
      linear-gradient(180deg,rgba(255,255,255,.92),rgba(245,248,252,.86) 42%,rgba(238,243,248,.92))!important;
  }
  .topbar,
  body.mobile-preview-mode .topbar{
    background:rgba(255,255,255,.62)!important;
    border-bottom:1px solid rgba(226,232,240,.64)!important;
    box-shadow:0 10px 32px rgba(15,23,42,.06),inset 0 -1px 0 rgba(255,255,255,.72)!important;
    -webkit-backdrop-filter:blur(24px) saturate(1.55)!important;
    backdrop-filter:blur(24px) saturate(1.55)!important;
  }
  .mobile-tabbar,
  body.mobile-preview-mode .mobile-tabbar{
    margin:0 10px 8px!important;
    width:auto!important;
    left:0!important;
    right:0!important;
    border:1px solid rgba(226,232,240,.62)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.68)!important;
    box-shadow:0 -8px 30px rgba(15,23,42,.09),inset 0 1px 0 rgba(255,255,255,.78)!important;
    -webkit-backdrop-filter:blur(26px) saturate(1.6)!important;
    backdrop-filter:blur(26px) saturate(1.6)!important;
  }
  .mobile-tabbar button,
  body.mobile-preview-mode .mobile-tabbar button{
    border-radius:18px!important;
    transition:background .18s ease,transform .18s ease,color .18s ease;
  }
  body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"],
  body[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"],
  body[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"],
  body[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"],
  body[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"],
  body.mobile-preview-mode[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"],
  body.mobile-preview-mode[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"],
  body.mobile-preview-mode[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"],
  body.mobile-preview-mode[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"]{
    background:rgba(17,24,39,.88)!important;
    color:#fff!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 18px rgba(15,23,42,.12)!important;
  }
  .mobile-tabbar .tab-icon,
  body.mobile-preview-mode .mobile-tabbar .tab-icon{
    background:rgba(255,255,255,.72)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
  }
  body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"] .tab-icon,
  body[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"] .tab-icon,
  body[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon{
    background:rgba(255,255,255,.18)!important;
    color:#fff!important;
  }
  .account-menu-btn,
  .icon-btn,
  .home-status-pill,
  .shop-search,
  .shop-shortcuts button,
  .shop-coupon-panel,
  .shop-summary-card,
  .shop-empty,
  .shop-payment-mini,
  .shop-cart-row,
  .shop-library-card,
  .mock-card,
  .home-feature-card,
  .home-mini-card,
  .home-hero-strip,
  .auspicious-panel,
  .oracle-result-sheet,
  .monthly-focus-card,
  .monthly-topic-card{
    background:var(--glass-surface)!important;
    border:1px solid rgba(226,232,240,.64)!important;
    box-shadow:var(--glass-shadow-soft)!important;
    -webkit-backdrop-filter:blur(22px) saturate(1.45)!important;
    backdrop-filter:blur(22px) saturate(1.45)!important;
  }
  .home-hero-strip,
  .home-feature-card,
  .home-mini-card,
  .shop-coupon-panel,
  .shop-summary-card,
  .shop-cart-row,
  .shop-library-card,
  .auspicious-panel,
  .oracle-result-sheet,
  .monthly-focus-card,
  .monthly-topic-card{
    position:relative;
    overflow:hidden;
  }
  .home-hero-strip::after,
  .home-feature-card::after,
  .home-mini-card::after,
  .shop-coupon-panel::after,
  .shop-summary-card::after,
  .shop-cart-row::after,
  .shop-library-card::after,
  .auspicious-panel::after,
  .monthly-focus-card::after,
  .monthly-topic-card::after{
    content:"";
    position:absolute;
    inset:1px 1px auto;
    height:44%;
    border-radius:inherit;
    background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,0));
    pointer-events:none;
  }
  .home-hero-strip>*,
  .home-feature-card>*,
  .home-mini-card>*,
  .shop-coupon-panel>*,
  .shop-summary-card>*,
  .shop-cart-row>*,
  .shop-library-card>*,
  .auspicious-panel>*,
  .monthly-focus-card>*,
  .monthly-topic-card>*{
    position:relative;
    z-index:1;
  }
  .home-hero-strip{
    border-radius:28px!important;
    background:
      linear-gradient(135deg,rgba(255,255,255,.82),rgba(241,245,249,.46)),
      radial-gradient(circle at 100% 0%,rgba(148,163,184,.18),rgba(255,255,255,0) 42%)!important;
    box-shadow:var(--glass-shadow)!important;
  }
  .home-feature-card.primary{
    background:linear-gradient(145deg,rgba(255,251,235,.84),rgba(255,255,255,.5))!important;
  }
  .home-feature-card.monthly{
    background:linear-gradient(145deg,rgba(239,246,255,.84),rgba(255,255,255,.5))!important;
  }
  .shop-store-head{
    margin-inline:-8px!important;
    padding:10px 8px 12px!important;
    background:linear-gradient(180deg,rgba(248,250,252,.92),rgba(248,250,252,.42),rgba(248,250,252,0))!important;
    -webkit-backdrop-filter:blur(18px)!important;
    backdrop-filter:blur(18px)!important;
  }
  .shop-search{
    min-height:46px!important;
    background:rgba(255,255,255,.7)!important;
    border-color:rgba(226,232,240,.72)!important;
  }
  .shop-cart-button,
  .home-card-action,
  .shop-primary-btn,
  .shop-coupon-row button{
    background:linear-gradient(180deg,rgba(17,24,39,.96),rgba(17,24,39,.88))!important;
    box-shadow:0 14px 28px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.16)!important;
  }
  .home-hero-secondary,
  .shop-secondary-btn{
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(226,232,240,.72)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 8px 20px rgba(15,23,42,.05)!important;
    -webkit-backdrop-filter:blur(16px) saturate(1.35)!important;
    backdrop-filter:blur(16px) saturate(1.35)!important;
  }
  .shop-market-grid .shop-product-media{
    background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(248,250,252,.58))!important;
    border:1px solid rgba(226,232,240,.64)!important;
    box-shadow:0 14px 34px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.74)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.35)!important;
    backdrop-filter:blur(18px) saturate(1.35)!important;
  }
  .shop-product-symbol,
  .home-feature-icon,
  .home-mini-icon,
  .shop-shortcuts i{
    background:rgba(17,24,39,.9)!important;
    color:#fff!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 10px 22px rgba(15,23,42,.12)!important;
  }
  .shop-shortcuts button{
    min-height:72px!important;
  }
  .shop-form input,
  .shop-form textarea,
  .shop-coupon-row input{
    background:rgba(255,255,255,.74)!important;
    border-color:rgba(226,232,240,.72)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.78)!important;
    -webkit-backdrop-filter:blur(12px)!important;
    backdrop-filter:blur(12px)!important;
  }
  .topbar.shop-topbar{
    grid-template-columns:0 minmax(0,1fr) auto!important;
    gap:8px!important;
    padding-left:10px!important;
  }
  .topbar.shop-topbar #menu-btn,
  .topbar.shop-topbar .topbar-text{
    display:none!important;
  }
  .topbar.shop-topbar .topbar-copy{
    display:block!important;
    align-content:center!important;
    min-width:0!important;
    padding-left:0!important;
  }
  .shop-topbar-tools{
    display:grid;
    grid-template-columns:minmax(0,1fr) 44px;
    gap:8px;
    align-items:center;
    min-width:0;
  }
  .shop-topbar-tools[hidden]{display:none!important}
  .shop-topbar-search{
    min-width:0;
    height:42px;
    border-radius:999px;
    border:1px solid rgba(226,232,240,.72);
    background:rgba(255,255,255,.76);
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 12px;
    color:#64748b;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82),0 9px 22px rgba(15,23,42,.06);
    -webkit-backdrop-filter:blur(18px) saturate(1.4);
    backdrop-filter:blur(18px) saturate(1.4);
  }
  .shop-topbar-search svg{
    width:18px;
    height:18px;
    flex:0 0 auto;
  }
  .shop-topbar-search input{
    min-width:0;
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#111827;
    font-size:14px;
    font-weight:800;
  }
  .shop-topbar-search input::placeholder{color:#94a3b8}
  .shop-topbar-cart{
    position:relative;
    width:42px;
    height:42px;
    border:0;
    border-radius:16px;
    background:rgba(17,24,39,.92);
    color:#fff;
    display:grid;
    place-items:center;
    box-shadow:0 12px 26px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.16);
  }
  .shop-topbar-cart svg{width:20px;height:20px}
  .shop-topbar-cart b{
    position:absolute;
    right:-4px;
    top:-5px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    border:2px solid rgba(255,255,255,.86);
    display:grid;
    place-items:center;
    font-size:10px;
    line-height:1;
  }
  .shop-shortcuts{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:0!important;
    margin:0!important;
    padding:7px 4px!important;
    border-radius:22px!important;
    border:1px solid rgba(226,232,240,.66)!important;
    background:rgba(255,255,255,.58)!important;
    box-shadow:0 12px 28px rgba(15,23,42,.055),inset 0 1px 0 rgba(255,255,255,.82)!important;
    -webkit-backdrop-filter:blur(22px) saturate(1.45)!important;
    backdrop-filter:blur(22px) saturate(1.45)!important;
  }
  .shop-shortcuts button{
    position:relative!important;
    min-height:54px!important;
    border:0!important;
    border-radius:16px!important;
    background:transparent!important;
    box-shadow:none!important;
    padding:5px 4px!important;
    gap:3px!important;
  }
  .shop-shortcuts button+button::before{
    content:"";
    position:absolute;
    left:0;
    top:11px;
    bottom:11px;
    width:1px;
    background:rgba(148,163,184,.28);
  }
  .shop-shortcuts i{
    width:24px!important;
    height:24px!important;
    border-radius:0!important;
    background:transparent!important;
    color:#111827!important;
    box-shadow:none!important;
  }
  .shop-shortcuts svg{
    width:23px;
    height:23px;
    stroke:currentColor;
    display:block;
  }
  .shop-shortcuts span{
    font-size:11.5px!important;
    color:#334155;
    font-weight:900;
  }
  .shop-market-grid .shop-product-card{
    gap:6px!important;
  }
  .shop-market-grid .shop-product-body{
    gap:2px!important;
  }
  .shop-market-grid .shop-product-body strong{
    min-height:0!important;
    margin:0!important;
    line-height:1.28!important;
  }
  .shop-market-grid .shop-price-row{
    margin-top:1px!important;
    align-items:center!important;
  }
  .shop-market-grid .shop-price-row small{
    margin-top:0!important;
  }
  }
@media(min-width:761px){
  body.mobile-preview-mode .topbar.shop-topbar{
    grid-template-columns:0 minmax(0,1fr) auto!important;
    gap:8px!important;
    padding-left:10px!important;
  }
  body.mobile-preview-mode .topbar.shop-topbar #menu-btn,
  body.mobile-preview-mode .topbar.shop-topbar .topbar-text{
    display:none!important;
  }
  body.mobile-preview-mode .topbar.shop-topbar .topbar-copy{
    display:block!important;
    min-width:0!important;
    padding-left:0!important;
  }
}
/* Revert broad liquid-glass skin to the cleaner app theme. Keep only light shop utilities. */
@media(max-width:760px){
  body,
  .chat-main,
  .messages{
    background:#fff!important;
  }
  .topbar,
  body.mobile-preview-mode .topbar{
    background:#fff!important;
    border-bottom:1px solid #e5e7eb!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .mobile-tabbar,
  body.mobile-preview-mode .mobile-tabbar{
    left:0!important;
    right:0!important;
    width:100%!important;
    margin:0!important;
    border:0!important;
    border-top:1px solid #e5e7eb!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:0 -8px 24px rgba(15,23,42,.06)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .mobile-tabbar button,
  body.mobile-preview-mode .mobile-tabbar button{
    border-radius:18px!important;
    box-shadow:none!important;
  }
  .mobile-tabbar .tab-icon,
  body.mobile-preview-mode .mobile-tabbar .tab-icon{
    background:#f3f4f6!important;
    color:#111827!important;
    box-shadow:none!important;
  }
  body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"],
  body[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"],
  body[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"],
  body[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"],
  body[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"],
  body[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"],
  body.mobile-preview-mode[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"],
  body.mobile-preview-mode[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"],
  body.mobile-preview-mode[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"],
  body.mobile-preview-mode[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"],
  body.mobile-preview-mode[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"]{
    background:#f3f4f6!important;
    color:#111827!important;
    box-shadow:none!important;
  }
  body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"] .tab-icon,
  body[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"] .tab-icon,
  body[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="chat"] .mobile-tabbar [data-mobile-tab="chat"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="bazi"] .mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="oracle"] .mobile-tabbar [data-mobile-tab="oracle"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shop"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon,
  body.mobile-preview-mode[data-mobile-view="shopTracking"] .mobile-tabbar [data-mobile-tab="shop"] .tab-icon{
    background:#111827!important;
    color:#fff!important;
  }
  .account-menu-btn,
  .icon-btn,
  .home-status-pill,
  .shop-search,
  .shop-coupon-panel,
  .shop-summary-card,
  .shop-empty,
  .shop-payment-mini,
  .shop-cart-row,
  .shop-library-card,
  .mock-card,
  .home-feature-card,
  .home-mini-card,
  .home-hero-strip,
  .auspicious-panel,
  .oracle-result-sheet,
  .monthly-focus-card,
  .monthly-topic-card{
    background:#fff!important;
    border:1px solid #e5e7eb!important;
    box-shadow:0 10px 24px rgba(15,23,42,.04)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .home-hero-strip::after,
  .home-feature-card::after,
  .home-mini-card::after,
  .shop-coupon-panel::after,
  .shop-summary-card::after,
  .shop-cart-row::after,
  .shop-library-card::after,
  .auspicious-panel::after,
  .monthly-focus-card::after,
  .monthly-topic-card::after{
    display:none!important;
  }
  .home-hero-strip{
    background:#fff!important;
    border-radius:24px!important;
  }
  .shop-store-head{
    margin-inline:0!important;
    padding:0!important;
    background:transparent!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .shop-topbar-search{
    background:#f8fafc!important;
    border:1px solid #e5e7eb!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body[data-mobile-view^="shop"] .topbar.shop-topbar,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:0 10px!important;
  }
  body[data-mobile-view^="shop"] .topbar.shop-topbar #menu-btn,
  body[data-mobile-view^="shop"] .topbar.shop-topbar .topbar-text,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar #menu-btn,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar .topbar-text{
    display:none!important;
  }
  body[data-mobile-view^="shop"] .topbar.shop-topbar .topbar-copy,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar .topbar-copy{
    min-width:0!important;
    padding-left:0!important;
  }
  body[data-mobile-view^="shop"] .shop-topbar-tools,
  body.mobile-preview-mode[data-mobile-view^="shop"] .shop-topbar-tools{
    grid-template-columns:minmax(0,1fr) 42px!important;
    gap:8px!important;
  }
  body[data-mobile-view^="shop"] .shop-topbar-search,
  body.mobile-preview-mode[data-mobile-view^="shop"] .shop-topbar-search{
    height:42px!important;
    border-radius:16px!important;
  }
  body[data-mobile-view^="shop"] .shop-topbar-search input,
  body.mobile-preview-mode[data-mobile-view^="shop"] .shop-topbar-search input{
    font-size:13.5px!important;
  }
  body[data-mobile-view^="shop"] .topbar.shop-topbar .account-menu-btn,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar .account-menu-btn{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    justify-content:center!important;
    gap:0!important;
    font-size:0!important;
    border-radius:16px!important;
  }
  body[data-mobile-view^="shop"] .topbar.shop-topbar .account-menu-btn::before,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar .account-menu-btn::before{
    width:24px!important;
    height:24px!important;
  }
  body[data-mobile-view^="shop"] .topbar.shop-topbar .account-menu-btn::after,
  body.mobile-preview-mode[data-mobile-view^="shop"] .topbar.shop-topbar .account-menu-btn::after{
    display:none!important;
  }
  .shop-shortcuts{
    background:#fff!important;
    border:1px solid #e5e7eb!important;
    box-shadow:0 8px 20px rgba(15,23,42,.035)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .shop-market-grid .shop-product-media{
    background:linear-gradient(135deg,#fff7ed,#fde68a 46%,#fecaca)!important;
    border:0!important;
    box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .shop-product-symbol,
  .home-feature-icon,
  .home-mini-icon{
    box-shadow:none!important;
  }
  body[data-mobile-view="shopProduct"] .mobile-tabbar,
  body.mobile-preview-mode[data-mobile-view="shopProduct"] .mobile-tabbar{
    display:none!important;
  }
  body[data-mobile-view="shopProduct"] .messages,
  body.mobile-preview-mode[data-mobile-view="shopProduct"] .messages{
    padding-bottom:104px!important;
  }
  .shop-product-detail-page{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    gap:0!important;
    padding:0 0 14px!important;
  }
  .shop-product-detail-page .shop-detail-hero{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:10px 0 14px!important;
    background:#fff;
    border-bottom:1px solid #eef2f7;
    overflow:hidden!important;
  }
  .shop-product-detail-page .shop-detail-media{
    width:100%;
    max-width:100%;
    aspect-ratio:1/0.88;
    min-height:0!important;
    border-radius:0!important;
    overflow:hidden;
    background:linear-gradient(135deg,#fff7ed,#fde68a 46%,#fecaca)!important;
    box-shadow:none!important;
  }
  .shop-product-detail-page .shop-detail-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .shop-product-detail-page .shop-product-symbol{
    width:86px;
    height:86px;
    border-radius:28px;
    font-size:34px;
  }
  .shop-detail-sheet,
  .shop-detail-section{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:16px!important;
    background:#fff;
    border-bottom:1px solid #eef2f7;
    display:grid;
    gap:10px;
  }
  .shop-detail-sheet h2{
    margin:0;
    font-size:22px;
    line-height:1.22;
    letter-spacing:0;
    color:#111827;
  }
  .shop-detail-section h3{
    margin:0;
    color:#111827;
    font-size:16px;
    line-height:1.2;
  }
  .shop-detail-section p{
    margin:0;
    color:#4b5563;
    font-size:14px;
    line-height:1.7;
  }
  .shop-detail-sheet .shop-detail-price strong{
    font-size:25px;
    color:#ef4444;
  }
  .shop-detail-sheet .shop-detail-price span{
    font-size:13px;
  }
  .shop-detail-sheet .shop-card-meta span,
  .shop-detail-section .shop-tag-list span{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    color:#334155;
  }
  .shop-detail-section .shop-info-list{
    border-radius:0;
    border-left:0;
    border-right:0;
  }
  .shop-product-actionbar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:80;
    display:grid;
    grid-template-columns:76px minmax(0,1fr) minmax(0,1.25fr);
    gap:8px;
    align-items:center;
    padding:9px 14px calc(9px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid #e5e7eb;
    box-shadow:0 -12px 28px rgba(15,23,42,.08);
  }
  .shop-product-actionbar button{
    border:0;
    min-height:48px;
    border-radius:999px;
    font-weight:950;
    font-size:14px;
  }
  .shop-action-home{
    background:#fff;
    color:#111827;
    border:1px solid #e5e7eb!important;
    display:grid;
    place-items:center;
    gap:1px;
    font-size:11px!important;
  }
  .shop-action-home svg{
    width:20px;
    height:20px;
  }
  .shop-action-cart{
    background:#fff1f2;
    color:#e11d48;
  }
  .shop-action-buy{
    background:#111827;
    color:#fff;
    box-shadow:0 12px 24px rgba(15,23,42,.16);
  }
  .shop-product-actionbar button:disabled{
    opacity:.48;
  }
}
/* Shop app layout override: remove stacked-card feeling and use full app surfaces. */
body[data-mobile-view^="shop"] .messages,
body.mobile-preview-mode[data-mobile-view^="shop"] .messages{
  background:#fff!important;
  padding-left:0!important;
  padding-right:0!important;
}
body[data-mobile-view^="shop"] .shop-app-page,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-app-page{
  width:100%!important;
  padding:0 0 88px!important;
}
body[data-mobile-view^="shop"] .shop-page,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-page{
  gap:0!important;
  padding:0!important;
}
body[data-mobile-view="shop"] .shop-shortcuts,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-shortcuts{
  border:0!important;
  border-top:1px solid #eef2f7!important;
  border-bottom:1px solid #eef2f7!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:8px 14px!important;
  background:#fff!important;
}
body[data-mobile-view="shop"] .shop-section,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-section{
  padding:16px 14px 18px!important;
  border-bottom:1px solid #eef2f7!important;
  background:#fff!important;
}
body[data-mobile-view="shop"] .shop-section-head,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-section-head{
  padding:0 0 10px!important;
}
body[data-mobile-view="shop"] .shop-section-head strong,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-section-head strong{
  font-size:18px!important;
  letter-spacing:0!important;
}
body[data-mobile-view="shop"] .shop-section-head span,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-section-head span{
  font-size:12px!important;
  color:#94a3b8!important;
}
body[data-mobile-view="shop"] .shop-market-grid,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-market-grid{
  gap:18px 12px!important;
}
body[data-mobile-view="shop"] .shop-market-grid .shop-product-card,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-market-grid .shop-product-card{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body[data-mobile-view="shop"] .shop-market-grid .shop-product-media,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-market-grid .shop-product-media{
  border-radius:12px!important;
  border:1px solid #eef2f7!important;
  box-shadow:none!important;
}
body[data-mobile-view="shop"] .shop-market-grid .shop-product-body strong,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-market-grid .shop-product-body strong{
  font-size:13.5px!important;
  font-weight:850!important;
  color:#111827!important;
}
body[data-mobile-view="shop"] .shop-market-grid .shop-price-row,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-market-grid .shop-price-row{
  margin-top:3px!important;
}
body[data-mobile-view="shop"] .shop-market-grid .shop-icon-btn,
body.mobile-preview-mode[data-mobile-view="shop"] .shop-market-grid .shop-icon-btn{
  width:28px!important;
  height:28px!important;
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  color:#111827!important;
}
body[data-mobile-view="shopCart"] .shop-section,
body[data-mobile-view="shopCheckout"] .shop-section,
body[data-mobile-view="shopTracking"] .shop-detail-card,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-section,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-section,
body.mobile-preview-mode[data-mobile-view="shopTracking"] .shop-detail-card{
  margin:0!important;
  padding:16px 14px!important;
  border:0!important;
  border-bottom:1px solid #eef2f7!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
body[data-mobile-view^="shop"] .shop-summary-card,
body[data-mobile-view^="shop"] .shop-coupon-panel,
body[data-mobile-view^="shop"] .shop-empty,
body[data-mobile-view^="shop"] .shop-payment-mini,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-summary-card,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-coupon-panel,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-empty,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-payment-mini{
  margin:0!important;
  padding:16px 14px!important;
  border:0!important;
  border-bottom:1px solid #eef2f7!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
body[data-mobile-view^="shop"] .shop-cart-row,
body.mobile-preview-mode[data-mobile-view^="shop"] .shop-cart-row{
  border:0!important;
  border-bottom:1px solid #eef2f7!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  padding:12px 0!important;
}
body[data-mobile-view="shopCart"] .shop-cart-media,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-cart-media{
  width:74px!important;
  height:74px!important;
  aspect-ratio:1/1!important;
  border-radius:12px!important;
  overflow:hidden!important;
  display:block!important;
  background:linear-gradient(135deg,#fff7ed 0%,#fde68a 45%,#fecaca 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)!important;
}
body[data-mobile-view="shopCart"] .shop-cart-media::after,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-cart-media::after{
  display:none!important;
}
body[data-mobile-view="shopCart"] .shop-cart-media img,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-cart-media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
body[data-mobile-view="shopCart"] .shop-cart-media .shop-product-symbol,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-cart-media .shop-product-symbol{
  width:100%!important;
  height:100%!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:linear-gradient(145deg,#f97316 0%,#ef4444 52%,#7f1d1d 100%)!important;
  color:#fff7ed!important;
  font-size:20px!important;
  line-height:1!important;
}
body[data-mobile-view="shopCart"] .shop-cart-row,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-cart-row{
  grid-template-columns:74px minmax(0,1fr) auto!important;
  align-items:center!important;
}
/* Marketplace cart and checkout */
body[data-mobile-view="shopCart"] .mobile-tabbar,
body[data-mobile-view="shopCheckout"] .mobile-tabbar,
body.mobile-preview-mode[data-mobile-view="shopCart"] .mobile-tabbar,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .mobile-tabbar{
  display:none!important;
}
body[data-mobile-view="shopCart"] .messages,
body[data-mobile-view="shopCheckout"] .messages,
body.mobile-preview-mode[data-mobile-view="shopCart"] .messages,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .messages{
  padding-bottom:104px!important;
  background:#fff!important;
}
body[data-mobile-view="shopCart"] .shop-app-page,
body[data-mobile-view="shopCheckout"] .shop-app-page,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-app-page,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-app-page{
  padding-bottom:0!important;
}
.shop-market-cart-page,
.shop-market-checkout-page{
  width:100%;
  min-height:100%;
  padding:0 0 104px!important;
  gap:0!important;
  background:#fff;
}
.shop-market-notice{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-top:1px solid #edf2f7;
  border-bottom:1px solid #e6f5f4;
  background:#eefafa;
  color:#0f766e;
}
.shop-market-notice span{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:999px;
  color:#0f766e;
  font-size:20px;
  font-weight:900;
}
.shop-market-notice strong{
  min-width:0;
  font-size:14px;
  line-height:1.35;
  font-weight:850;
  color:#0f172a;
}
.shop-market-store{
  margin:0!important;
  border:0!important;
  border-bottom:10px solid #f5f6f8!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  overflow:hidden;
}
.shop-market-store-head{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:13px 16px 10px;
  border-bottom:1px solid #eef2f7;
  color:#0f172a;
}
.shop-market-store-head strong{
  min-width:0;
  font-size:17px;
  line-height:1.15;
  font-weight:900;
}
.shop-market-store-head small{
  margin-left:auto;
  color:#94a3b8;
  font-size:12px;
  white-space:nowrap;
}
.shop-market-check{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:24px;
  height:24px;
  border:2px solid #cbd5e1;
  border-radius:999px;
  background:#fff;
}
button.shop-market-check{
  padding:0;
  appearance:none;
  cursor:pointer;
}
.shop-market-check span{
  display:none;
}
.shop-market-check.active:after{
  content:"";
  width:9px;
  height:5px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg) translateY(-1px);
}
.shop-market-check.active{
  border-color:#0f172a;
  background:#0f172a;
  color:#fff;
}
.shop-market-list{
  display:grid;
  background:#fff;
}
.shop-market-cart-row{
  position:relative;
  display:grid;
  grid-template-columns:26px 92px minmax(0,1fr);
  gap:11px;
  align-items:start;
  padding:14px 16px;
  border-bottom:1px solid #edf2f7;
  background:#fff;
}
.shop-market-cart-row:last-child{
  border-bottom:0;
}
.shop-market-cart-row.is-checkout{
  grid-template-columns:86px minmax(0,1fr);
  padding-top:16px;
  padding-bottom:16px;
}
.shop-market-cart-row.is-checkout .shop-market-check,
.shop-market-cart-row.is-checkout .shop-market-remove{
  display:none!important;
}
.shop-market-thumb{
  width:92px;
  aspect-ratio:1/1;
  border:1px solid #e8edf4;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(135deg,#fff7ed,#fde68a 48%,#fecaca);
  box-shadow:none;
}
.shop-market-cart-row.is-checkout .shop-market-thumb{
  width:86px;
}
.shop-market-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.shop-market-thumb .shop-product-symbol{
  width:100%!important;
  height:100%!important;
  border-radius:0!important;
  background:linear-gradient(145deg,#f97316 0%,#ef4444 55%,#7f1d1d 100%)!important;
  color:#fff7ed!important;
  font-size:26px!important;
  box-shadow:none!important;
}
.shop-market-info{
  min-width:0;
  display:grid;
  gap:6px;
  padding-right:34px;
}
.shop-market-cart-row.is-checkout .shop-market-info{
  padding-right:0;
}
.shop-market-info strong{
  color:#1f2937;
  font-size:15px;
  line-height:1.28;
  font-weight:800;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.shop-market-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.shop-market-tags span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 7px;
  border-radius:7px;
  background:#f5f7fb;
  color:#64748b;
  font-size:11px;
  font-weight:750;
}
.shop-market-price{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}
.shop-market-price b{
  color:#e11d48;
  font-size:19px;
  line-height:1;
  font-weight:950;
}
.shop-market-price small{
  color:#9ca3af;
  font-size:13px;
  text-decoration:line-through;
}
.shop-market-price em{
  padding:1px 6px;
  border-radius:6px;
  background:#ffe4ec;
  color:#e11d48;
  font-size:12px;
  font-style:normal;
  font-weight:850;
}
.shop-market-qty{
  justify-self:start;
  display:inline-grid!important;
  grid-template-columns:34px 34px 34px;
  align-items:center;
  overflow:hidden;
  min-height:34px;
  border:0!important;
  border-radius:9px!important;
  background:#f3f4f6!important;
}
.shop-market-qty button{
  width:34px!important;
  height:34px!important;
  border:0!important;
  background:transparent!important;
  color:#111827!important;
  font-size:20px!important;
  line-height:1!important;
}
.shop-market-qty b{
  text-align:center;
  color:#111827;
  font-size:15px;
  font-weight:850;
}
.shop-market-line-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:2px;
  color:#64748b;
  font-size:12px;
}
.shop-market-line-total strong{
  display:block;
  color:#111827;
  font-size:15px;
  font-weight:900;
  white-space:nowrap;
}
.shop-market-remove{
  position:absolute;
  right:16px;
  top:15px;
  min-width:0!important;
  height:30px!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:999px!important;
  background:#fff1f2!important;
  color:#e11d48!important;
  font-size:12px!important;
  font-weight:850!important;
}
body[data-mobile-view="shopCart"] .shop-coupon-panel,
body[data-mobile-view="shopCheckout"] .shop-coupon-panel,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-panel,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-panel{
  display:grid!important;
  gap:9px!important;
  margin:0!important;
  padding:16px!important;
  border:0!important;
  border-bottom:10px solid #f5f6f8!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
body[data-mobile-view="shopCart"] .shop-coupon-panel h3,
body[data-mobile-view="shopCheckout"] .shop-coupon-panel h3,
body[data-mobile-view="shopCart"] .shop-coupon-panel strong,
body[data-mobile-view="shopCheckout"] .shop-coupon-panel strong,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-panel h3,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-panel h3,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-panel strong,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-panel strong{
  margin:0!important;
  color:#111827!important;
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
body[data-mobile-view="shopCart"] .shop-coupon-panel p,
body[data-mobile-view="shopCheckout"] .shop-coupon-panel p,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-panel p,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-panel p{
  margin:0!important;
  color:#64748b!important;
  font-size:12.5px!important;
  line-height:1.4!important;
}
body[data-mobile-view="shopCart"] .shop-coupon-form,
body[data-mobile-view="shopCheckout"] .shop-coupon-form,
body[data-mobile-view="shopCart"] .shop-coupon-row,
body[data-mobile-view="shopCheckout"] .shop-coupon-row,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-form,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-form,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-row,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 74px!important;
  gap:8px!important;
  align-items:center!important;
}
body[data-mobile-view="shopCart"] .shop-coupon-form input,
body[data-mobile-view="shopCheckout"] .shop-coupon-form input,
body[data-mobile-view="shopCart"] .shop-coupon-row input,
body[data-mobile-view="shopCheckout"] .shop-coupon-row input,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-form input,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-form input,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-row input,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-row input{
  width:100%!important;
  height:42px!important;
  border:1px solid #e5e7eb!important;
  border-radius:13px!important;
  padding:0 12px!important;
  background:#fff!important;
  font-size:14px!important;
}
body[data-mobile-view="shopCart"] .shop-coupon-form button,
body[data-mobile-view="shopCheckout"] .shop-coupon-form button,
body[data-mobile-view="shopCart"] .shop-coupon-row button,
body[data-mobile-view="shopCheckout"] .shop-coupon-row button,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-form button,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-form button,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-coupon-row button,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-coupon-row button{
  height:42px!important;
  border:0!important;
  border-radius:13px!important;
  background:#111827!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  box-shadow:none!important;
}
.shop-market-summary{
  display:grid;
  gap:10px;
  margin:0!important;
  padding:16px 16px 18px!important;
  border:0!important;
  border-bottom:10px solid #f5f6f8!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}
.shop-market-summary h3{
  margin:0 0 2px;
  color:#111827;
  font-size:18px;
  line-height:1.2;
  font-weight:900;
}
.shop-market-summary div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:#64748b;
  font-size:14px;
}
.shop-market-summary strong{
  color:#111827;
  font-weight:900;
  white-space:nowrap;
}
.shop-market-summary .total{
  margin-top:4px;
  padding-top:12px;
  border-top:1px solid #eef2f7;
  color:#111827;
  font-size:17px;
  font-weight:900;
}
.shop-market-summary .total strong{
  color:#e11d48;
  font-size:22px;
}
.shop-cart-actionbar,
.shop-checkout-actionbar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:95;
  display:grid;
  align-items:center;
  gap:8px;
  min-height:68px;
  padding:9px 16px calc(10px + env(safe-area-inset-bottom));
  border-top:1px solid #e5e7eb;
  background:rgba(255,255,255,.98);
  box-shadow:0 -12px 28px rgba(15,23,42,.08);
}
.shop-cart-actionbar{
  grid-template-columns:auto minmax(0,1fr) minmax(116px,34%);
}
.shop-checkout-actionbar{
  grid-template-columns:minmax(0,1fr) minmax(130px,38%);
}
.shop-cart-select{
  display:flex;
  align-items:center;
  gap:8px;
  color:#111827;
  min-width:82px;
  height:auto;
  min-height:44px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  appearance:none;
  text-align:left;
}
.shop-cart-select strong{
  font-size:14px;
  font-weight:850;
  white-space:nowrap;
}
.shop-cart-total,
.shop-checkout-actionbar>div{
  min-width:0;
  display:grid;
  justify-items:end;
  gap:1px;
  color:#64748b;
}
.shop-cart-total strong,
.shop-checkout-actionbar strong{
  color:#e11d48;
  font-size:20px;
  line-height:1;
  font-weight:950;
}
.shop-cart-total span,
.shop-checkout-actionbar span{
  color:#64748b;
  font-size:11.5px;
  line-height:1.2;
}
.shop-cart-actionbar>button:not(.shop-cart-select),
.shop-checkout-actionbar button{
  height:46px;
  border:0;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:15px;
  font-weight:950;
  box-shadow:none;
}
.shop-cart-actionbar>button:not(.shop-cart-select):disabled,
.shop-checkout-actionbar button:disabled{
  background:#e5e7eb;
  color:#94a3b8;
  box-shadow:none;
}
.shop-checkout-address{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 24px;
  align-items:start;
  gap:10px;
  margin:0!important;
  padding:16px!important;
  border:0!important;
  border-bottom:8px solid #f5f6f8!important;
  border-radius:0!important;
  background:#fff!important;
}
.shop-checkout-pin{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  color:#0f172a;
  font-size:22px;
  line-height:1;
}
.shop-checkout-address strong{
  display:block;
  color:#111827;
  font-size:16px;
  line-height:1.35;
  font-weight:900;
}
.shop-checkout-address strong span{
  color:#334155;
  font-weight:800;
}
.shop-checkout-address p{
  margin:4px 0 0;
  color:#475569;
  font-size:13.5px;
  line-height:1.45;
}
.shop-checkout-address button{
  border:0;
  background:transparent;
  color:#94a3b8;
  font-size:34px;
  line-height:1;
}
.shop-checkout-form-section{
  margin:0!important;
  padding:16px!important;
  border:0!important;
  border-bottom:8px solid #f5f6f8!important;
  border-radius:0!important;
  background:#fff!important;
}
.shop-market-form{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.shop-market-form label{
  display:grid!important;
  gap:6px!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
}
.shop-market-form input,
.shop-market-form textarea{
  width:100%!important;
  min-height:46px!important;
  border:1px solid #e5e7eb!important;
  border-radius:13px!important;
  padding:11px 12px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:15px!important;
  font-weight:750!important;
  box-shadow:none!important;
}
.shop-market-form textarea{
  min-height:82px!important;
  resize:vertical;
}
@media(max-width:390px){
  .shop-market-cart-row{
    grid-template-columns:24px 82px minmax(0,1fr);
    gap:9px;
    padding:13px 14px;
  }
  .shop-market-cart-row.is-checkout{
    grid-template-columns:78px minmax(0,1fr);
  }
  .shop-market-thumb{
    width:82px;
  }
  .shop-market-cart-row.is-checkout .shop-market-thumb{
    width:78px;
  }
  .shop-market-price b{
    font-size:18px;
  }
  .shop-cart-actionbar{
    grid-template-columns:auto minmax(0,1fr) 116px;
    padding-left:12px;
    padding-right:12px;
  }
  .shop-cart-select strong{
    display:none;
  }
}
/* Mobile Bazi header: keep the page feeling like an app, not a stacked web card. */
body[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child,
body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child{
  min-height:0!important;
  padding:10px 14px 12px!important;
  gap:3px!important;
  border-bottom:1px solid #eef2f7!important;
}
body[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child .page-kicker,
body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child .page-kicker{
  display:none!important;
}
body[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child .page-title,
body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child .page-title{
  margin:0!important;
  font-size:21px!important;
  line-height:1.16!important;
}
body[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child .page-copy,
body.mobile-preview-mode[data-mobile-view="bazi"] .bazi-app-page .page-shell>.page-card:first-child .page-copy{
  margin:3px 0 0!important;
  font-size:12.5px!important;
  line-height:1.45!important;
  color:#64748b!important;
}
/* Home app layout: make the first screen feel like a native app dashboard, not stacked glass cards. */
body[data-mobile-view="home"] .messages,
body.mobile-preview-mode[data-mobile-view="home"] .messages{
  background:#fff!important;
  padding-left:0!important;
  padding-right:0!important;
}
body[data-mobile-view="home"] .mock-page,
body.mobile-preview-mode[data-mobile-view="home"] .mock-page{
  width:100%!important;
  padding:0 0 86px!important;
  gap:0!important;
}
body[data-mobile-view="home"] .home-app-stack,
body.mobile-preview-mode[data-mobile-view="home"] .home-app-stack{
  width:100%!important;
  display:grid!important;
  gap:0!important;
  padding:0!important;
  background:#fff!important;
}
body[data-mobile-view="home"] .home-hero-strip,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-strip{
  margin:0!important;
  min-height:190px!important;
  padding:18px 20px 20px!important;
  border:0!important;
  border-bottom:8px solid #f5f6f8!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:
    linear-gradient(135deg,rgba(15,23,42,.035) 0 1px,transparent 1px),
    linear-gradient(145deg,#ffffff 0%,#f8fafc 58%,#eef2f7 100%)!important;
  background-size:30px 30px,auto!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body[data-mobile-view="home"] .home-hero-strip::before,
body[data-mobile-view="home"] .home-hero-strip::after,
body[data-mobile-view="home"] .home-feature-card::after,
body[data-mobile-view="home"] .home-mini-card::after,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-strip::before,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-strip::after,
body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card::after,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-card::after{
  display:none!important;
}
body[data-mobile-view="home"] .home-hero-copy strong,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-copy strong{
  max-width:310px!important;
  font-size:33px!important;
  line-height:1.08!important;
}
body[data-mobile-view="home"] .home-hero-copy p,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-copy p{
  max-width:330px!important;
  font-size:14px!important;
  line-height:1.55!important;
}
body[data-mobile-view="home"] .home-hero-actions,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-actions{
  grid-template-columns:1fr 1fr!important;
}
body[data-mobile-view="home"] .home-card-action,
body.mobile-preview-mode[data-mobile-view="home"] .home-card-action{
  box-shadow:none!important;
}
body[data-mobile-view="home"] .home-hero-secondary,
body.mobile-preview-mode[data-mobile-view="home"] .home-hero-secondary{
  box-shadow:none!important;
  background:#fff!important;
}
body[data-mobile-view="home"] .home-bento-grid,
body.mobile-preview-mode[data-mobile-view="home"] .home-bento-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:0!important;
  padding:4px 14px 12px!important;
  border-bottom:8px solid #f5f6f8!important;
  background:#fff!important;
}
body[data-mobile-view="home"] .home-feature-card,
body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card{
  min-height:206px!important;
  padding:16px 10px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body[data-mobile-view="home"] .home-feature-card.primary,
body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card.primary{
  border-right:1px solid #eef2f7!important;
}
body[data-mobile-view="home"] .home-feature-card p,
body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card p{
  font-size:13px!important;
  line-height:1.55!important;
}
body[data-mobile-view="home"] .home-feature-card .home-card-action,
body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card .home-card-action{
  min-height:42px!important;
  font-size:13px!important;
}
body[data-mobile-view="home"] .home-status-pill,
body.mobile-preview-mode[data-mobile-view="home"] .home-status-pill{
  box-shadow:none!important;
  border:1px solid #e5e7eb!important;
  background:#fff!important;
  color:#0f172a!important;
}
body[data-mobile-view="home"] .home-feature-icon,
body.mobile-preview-mode[data-mobile-view="home"] .home-feature-icon{
  width:40px!important;
  height:40px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
body[data-mobile-view="home"] .home-mini-grid,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-grid{
  display:grid!important;
  grid-template-columns:1.06fr .94fr!important;
  gap:0!important;
  padding:0 14px 18px!important;
  background:#fff!important;
}
body[data-mobile-view="home"] .home-mini-card,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-card{
  min-height:112px!important;
  padding:16px 10px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body[data-mobile-view="home"] .home-mini-card:first-child,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-card:first-child{
  min-height:228px!important;
  border-right:1px solid #eef2f7!important;
  background:#fff!important;
}
body[data-mobile-view="home"] .home-mini-card:nth-child(2),
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-card:nth-child(2){
  border-bottom:1px solid #eef2f7!important;
}
body[data-mobile-view="home"] .home-shop-bottom-card,
body.mobile-preview-mode[data-mobile-view="home"] .home-shop-bottom-card{
  grid-column:1 / -1!important;
  min-height:104px!important;
  padding-top:18px!important;
  border-top:1px solid #e5e7eb!important;
}
body[data-mobile-view="home"] .home-mini-card strong,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-card strong{
  font-size:17px!important;
}
body[data-mobile-view="home"] .home-mini-card p,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-card p{
  font-size:12.5px!important;
  line-height:1.48!important;
}
body[data-mobile-view="home"] .home-oracle-art,
body.mobile-preview-mode[data-mobile-view="home"] .home-oracle-art{
  width:114px!important;
  height:136px!important;
}
body[data-mobile-view="home"] .home-mini-icon,
body.mobile-preview-mode[data-mobile-view="home"] .home-mini-icon{
  background:#f3f4f6!important;
  color:#111827!important;
  box-shadow:none!important;
}
body[data-mobile-view="home"] .home-lamp-card,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-card{
  overflow:hidden!important;
  background:linear-gradient(145deg,#fff7ed 0%,#fff 66%)!important;
}
body[data-mobile-view="home"] .home-lamp-head,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:8px!important;
}
body[data-mobile-view="home"] .home-lamp-flame-wrap,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-flame-wrap{
  display:grid!important;
  place-items:center!important;
  gap:2px!important;
  min-width:42px!important;
}
body[data-mobile-view="home"] .home-lamp-flame,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-flame{
  display:block!important;
  width:26px!important;
  height:34px!important;
  border-radius:50% 50% 48% 48% / 64% 64% 36% 36%!important;
  background:
    radial-gradient(circle at 50% 66%,#fff7ad 0 16%,#fbbf24 32%,#ef4444 70%,rgba(185,28,28,.86) 100%)!important;
  filter:drop-shadow(0 0 14px rgba(239,68,68,.42))!important;
  transform:rotate(6deg)!important;
}
body[data-mobile-view="home"] .home-lamp-card.is-out .home-lamp-flame,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-card.is-out .home-lamp-flame{
  background:linear-gradient(180deg,#cbd5e1,#64748b)!important;
  filter:none!important;
  opacity:.66!important;
}
body[data-mobile-view="home"] .home-lamp-streak,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-streak{
  color:#92400e!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
body[data-mobile-view="home"] .home-lamp-card.is-out .home-lamp-streak,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-card.is-out .home-lamp-streak{
  color:#64748b!important;
}
body[data-mobile-view="home"] .home-lamp-meter,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-meter{
  overflow:hidden!important;
  height:8px!important;
  border-radius:999px!important;
  background:#fef3c7!important;
}
body[data-mobile-view="home"] .home-lamp-meter span,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-meter span{
  display:block!important;
  width:var(--lamp-oil-level,0%)!important;
  height:100%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#f97316,#facc15)!important;
}
body[data-mobile-view="home"] .home-lamp-foot,
body.mobile-preview-mode[data-mobile-view="home"] .home-lamp-foot{
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
@media(max-width:390px){
  body[data-mobile-view="home"] .home-app-stack,
  body.mobile-preview-mode[data-mobile-view="home"] .home-app-stack{
    font-size:14px;
  }
  body[data-mobile-view="home"] .home-hero-strip,
  body.mobile-preview-mode[data-mobile-view="home"] .home-hero-strip{
    padding-left:16px!important;
    padding-right:16px!important;
  }
  body[data-mobile-view="home"] .home-bento-grid,
  body[data-mobile-view="home"] .home-mini-grid,
  body.mobile-preview-mode[data-mobile-view="home"] .home-bento-grid,
  body.mobile-preview-mode[data-mobile-view="home"] .home-mini-grid{
    padding-left:12px!important;
    padding-right:12px!important;
  }
}
/* Global app navigation guard: the bottom tabbar must stay available on every page. */
body[data-mobile-view] .mobile-tabbar,
body.mobile-preview-mode[data-mobile-view] .mobile-tabbar{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:110!important;
}
body[data-mobile-view] .messages,
body.mobile-preview-mode[data-mobile-view] .messages{
  padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;
}
body[data-mobile-view="chat"] .messages,
body.mobile-preview-mode[data-mobile-view="chat"] .messages{
  padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important;
}
body[data-mobile-view="home"] .mock-page,
body.mobile-preview-mode[data-mobile-view="home"] .mock-page,
body[data-mobile-view="bazi"] .mock-page,
body.mobile-preview-mode[data-mobile-view="bazi"] .mock-page,
body[data-mobile-view="oracle"] .mock-page,
body.mobile-preview-mode[data-mobile-view="oracle"] .mock-page,
body[data-mobile-view="shop"] .mock-page,
body.mobile-preview-mode[data-mobile-view="shop"] .mock-page,
body[data-mobile-view="shopTracking"] .mock-page,
body.mobile-preview-mode[data-mobile-view="shopTracking"] .mock-page{
  padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important;
}
body[data-mobile-view="shopProduct"] .shop-product-actionbar,
body.mobile-preview-mode[data-mobile-view="shopProduct"] .shop-product-actionbar,
body[data-mobile-view="shopCart"] .shop-cart-actionbar,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-cart-actionbar,
body[data-mobile-view="shopCheckout"] .shop-checkout-actionbar,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-checkout-actionbar{
  bottom:calc(62px + env(safe-area-inset-bottom,0px))!important;
  z-index:96!important;
}
body[data-mobile-view="shopProduct"] .messages,
body.mobile-preview-mode[data-mobile-view="shopProduct"] .messages,
body[data-mobile-view="shopCart"] .messages,
body.mobile-preview-mode[data-mobile-view="shopCart"] .messages,
body[data-mobile-view="shopCheckout"] .messages,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .messages{
  padding-bottom:calc(166px + env(safe-area-inset-bottom,0px))!important;
}
body[data-mobile-view="shopProduct"] .shop-app-page,
body.mobile-preview-mode[data-mobile-view="shopProduct"] .shop-app-page,
body[data-mobile-view="shopCart"] .shop-app-page,
body.mobile-preview-mode[data-mobile-view="shopCart"] .shop-app-page,
body[data-mobile-view="shopCheckout"] .shop-app-page,
body.mobile-preview-mode[data-mobile-view="shopCheckout"] .shop-app-page{
  padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
}
body[data-mobile-view="oracle"] .messages:has(.auspicious-shell[data-active-mode="shrine"]),
body.mobile-preview-mode[data-mobile-view="oracle"] .messages:has(.auspicious-shell[data-active-mode="shrine"]){
  height:calc(100dvh - 54px - var(--mobile-tabbar-height,56px))!important;
  flex:0 0 calc(100dvh - 54px - var(--mobile-tabbar-height,56px))!important;
  overflow:hidden!important;
  padding:0!important;
  scroll-padding-bottom:0!important;
}
body[data-mobile-view="oracle"] .mock-page:has(.auspicious-shell[data-active-mode="shrine"]),
body.mobile-preview-mode[data-mobile-view="oracle"] .mock-page:has(.auspicious-shell[data-active-mode="shrine"]){
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0!important;
}
body[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]),
body.mobile-preview-mode[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]){
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0!important;
}
body[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .auspicious-shell,
body.mobile-preview-mode[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .auspicious-shell{
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  overflow:hidden!important;
}
body[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .auspicious-panel[data-auspicious-panel="shrine"],
body.mobile-preview-mode[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .auspicious-panel[data-auspicious-panel="shrine"],
body[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .shrine-preview,
body.mobile-preview-mode[data-mobile-view="oracle"] .oracle-app-page:has(.auspicious-shell[data-active-mode="shrine"]) .shrine-preview{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
  .calendar-passport-card{display:grid;gap:14px;background:linear-gradient(145deg,#fff 0%,#fffbeb 100%);border-color:rgba(180,126,22,.2)}
  .home-feature-card.calendar-passport-card{background:linear-gradient(145deg,#191610 0%,#312410 100%);border-color:rgba(226,180,72,.38);color:#fff}
  .home-feature-card.calendar-passport-card .home-card-label,.home-feature-card.calendar-passport-card p{color:rgba(255,255,255,.72)}
  body[data-mobile-view="home"] .home-feature-card.calendar-passport-card p,
  body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card.calendar-passport-card p{color:#64748b!important}
  body[data-mobile-view="home"] .home-feature-card.calendar-passport-card .home-card-label,
  body.mobile-preview-mode[data-mobile-view="home"] .home-feature-card.calendar-passport-card .home-card-label{
    color:#94a3b8!important;
  }
  .home-feature-card.calendar-passport-card .home-card-action{background:#c8941f;color:#fff}
  .calendar-passport-icon{display:grid!important;place-items:center;background:#17130d!important;color:#fff!important;width:54px!important;height:54px!important;padding:0!important;overflow:hidden;border:1px solid rgba(226,180,72,.45)}
  .calendar-passport-icon img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
  .home-status-pill.is-linked{
    position:relative!important;width:29px!important;height:29px!important;padding:0!important;display:grid!important;place-items:center!important;
    border:0!important;background:transparent!important;color:transparent!important;font-size:0!important;line-height:1!important;box-shadow:none!important
  }
  .home-status-pill.is-linked::before{
    content:"";position:absolute;width:25px;height:25px;background:#1677ff;
    clip-path:polygon(50% 0%,61% 8%,74% 5%,82% 18%,95% 26%,92% 39%,100% 50%,92% 61%,95% 74%,82% 82%,74% 95%,61% 92%,50% 100%,39% 92%,26% 95%,18% 82%,5% 74%,8% 61%,0% 50%,8% 39%,5% 26%,18% 18%,26% 5%,39% 8%);
    filter:drop-shadow(0 3px 5px rgba(22,119,255,.22));
  }
  .home-status-pill.is-linked::after{
    content:"";position:absolute;z-index:1;left:50%;top:50%;width:10px;height:6px;
    border-left:2.5px solid #fff;border-bottom:2.5px solid #fff;box-sizing:border-box;
    transform:translate(-50%,-62%) rotate(-45deg);transform-origin:center;
  }
  .library-passport-section{padding:18px;background:linear-gradient(145deg,#fffdf7,#f8f2e4);border:1px solid rgba(184,132,30,.22);border-radius:22px}
  .library-passport-section .library-section-head>button{border:0;background:transparent;color:#a06f0e;font:inherit;font-weight:800;cursor:pointer}
  .library-passport-row{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 0;border-top:1px solid rgba(148,117,53,.16)}
  .library-passport-row:first-of-type{border-top:0}
  .library-passport-year{display:grid;place-content:center;gap:2px;min-height:76px;border-radius:14px;background:#17130d;color:#fff;text-align:center;box-shadow:inset 3px 0 #c8941f}
  .library-passport-year span{font-size:17px;font-weight:900}.library-passport-year small{font-size:7px;letter-spacing:.08em;color:#dfc477}
  .library-passport-copy{display:grid;gap:3px;min-width:0}.library-passport-copy strong{font-size:15px;color:#171717}.library-passport-copy span{font-size:11px;color:#9a6b0b;letter-spacing:.04em}.library-passport-copy p{margin:0;color:#64748b;font-size:12px;line-height:1.45}
  .library-passport-actions b,.library-passport-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border-radius:999px;border:0;background:#dcfce7;color:#15803d;font-size:10px;font-weight:900;white-space:nowrap}
  .library-passport-actions button{background:#17130d;color:#fff;cursor:pointer}
  .library-passport-empty{padding:22px 14px;border:1px dashed rgba(160,111,14,.35);border-radius:16px;text-align:center}.library-passport-empty strong{display:block;font-size:16px}.library-passport-empty p{margin:5px 0 14px;color:#64748b;font-size:13px;line-height:1.5}.library-passport-empty a{display:inline-flex;min-height:38px;align-items:center;padding:0 16px;border-radius:999px;background:#17130d;color:#fff;text-decoration:none;font-weight:800;font-size:12px}
  .home-date-finder-card{background:linear-gradient(145deg,#fff8e7,#fff)!important}.home-date-finder-card .home-mini-icon{background:#b68018!important;color:#fff!important}
  .date-finder-result:not([hidden]){display:grid;gap:10px;white-space:normal;padding:0;background:transparent;border:0}.date-result-head{padding:15px 17px;border-radius:18px;background:#fff7df;border:1px solid rgba(182,128,24,.25)}.date-result-head strong{display:block;font-size:17px}.date-result-head p{margin:4px 0 0;color:#64748b;font-size:12px}.date-result-card{display:grid;gap:9px;padding:17px;border:1px solid #e4ded0;border-radius:18px;background:#fff}.date-result-card.is-best{border-color:#c79522;box-shadow:inset 4px 0 #c79522}.date-result-rank{font-size:10px;font-weight:900;letter-spacing:.08em;color:#9a6b0b}.date-result-title{display:flex;justify-content:space-between;gap:10px;align-items:start}.date-result-title strong{font-size:18px}.date-result-title b{padding:5px 8px;border-radius:999px;background:#ecfdf3;color:#15803d;font-size:11px}.date-result-hours{display:flex;flex-wrap:wrap;gap:7px}.date-result-hours span{padding:7px 9px;border-radius:10px;background:#f5f2ea;font-size:12px;font-weight:800}.date-result-reasons{margin:0;padding-left:18px;color:#64748b;font-size:12px;line-height:1.55}
  .date-finder-page{display:grid;gap:14px}.date-finder-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:16px;background:#ecfdf3;color:#166534}.date-finder-note b{font-size:12px}.date-finder-note span{font-size:12px;text-align:right}
  .date-finder-form{display:grid;gap:15px;padding:18px;border:1px solid #e5e7eb;border-radius:22px;background:#fff}.date-finder-form label{display:grid;gap:7px}.date-finder-form label>span{font-size:13px;font-weight:800;color:#374151}.date-finder-form select,.date-finder-form input,.date-finder-form textarea{width:100%;min-height:46px;border:1px solid #d8dde5;border-radius:13px;background:#fff;padding:10px 12px;font:inherit;color:#111827}.date-finder-form textarea{resize:vertical}.date-finder-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}.date-finder-submit,.date-finder-empty button{min-height:48px;border:0;border-radius:14px;background:#17130d;color:#fff;font-weight:900;font-size:15px}.date-finder-submit:disabled{opacity:.55}.date-finder-result{white-space:pre-wrap;padding:18px;border-radius:18px;background:#fffaf0;border:1px solid rgba(182,128,24,.25);line-height:1.75;color:#27221a}.date-finder-result strong{display:block}.date-finder-result p{margin:5px 0 0;color:#64748b}.date-finder-empty{display:grid;gap:10px;padding:24px 18px;border-radius:22px;background:#fffaf0;border:1px solid rgba(182,128,24,.25);text-align:center}.date-finder-empty span{font-size:11px;font-weight:900;letter-spacing:.1em;color:#a06f0e;text-transform:uppercase}.date-finder-empty strong{font-size:22px}.date-finder-empty p{margin:0 0 8px;color:#64748b;line-height:1.6}
  .date-finder-form,.date-finder-form label,.date-finder-range,.date-finder-range>*{min-width:0}
  .date-finder-form select,.date-finder-form input,.date-finder-form textarea{display:block;max-width:100%;min-width:0;box-sizing:border-box}
  .date-finder-loading{display:grid;justify-items:center;gap:12px;padding:26px 18px;border-radius:20px;background:linear-gradient(180deg,#fffdf7,#fff8e8);border:1px solid rgba(182,128,24,.22);text-align:center}
  .date-finder-loading-mark{position:relative;width:58px;height:58px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#9a6b0b;box-shadow:0 10px 24px rgba(154,107,11,.1)}
  .date-finder-loading-mark::before{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid rgba(182,128,24,.16);border-top-color:#b68018;animation:dateFinderSpin .9s linear infinite}
  .date-finder-loading-mark svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .date-finder-loading strong{font-size:18px;color:#27221a}.date-finder-loading p{min-height:20px;margin:0;color:#64748b;font-size:13px;line-height:1.5}
  .date-finder-loading-bar{width:min(230px,82%);height:5px;overflow:hidden;border-radius:999px;background:#f2e8cf}
  .date-finder-loading-bar span{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b68018,#e2b94f);animation:dateFinderProgress 1.25s ease-in-out infinite}
  .date-finder-result.is-ready .date-result-head,.date-finder-result.is-ready .date-result-card{animation:dateFinderReveal .34s ease both}.date-finder-result.is-ready .date-result-card:nth-child(3){animation-delay:.05s}.date-finder-result.is-ready .date-result-card:nth-child(4){animation-delay:.1s}
  @keyframes dateFinderSpin{to{transform:rotate(360deg)}}
  @keyframes dateFinderProgress{0%{transform:translateX(-115%)}100%{transform:translateX(240%)}}
  @keyframes dateFinderReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
  @media(prefers-reduced-motion:reduce){.date-finder-loading-mark::before,.date-finder-loading-bar span,.date-finder-result.is-ready .date-result-head,.date-finder-result.is-ready .date-result-card{animation:none!important}}
  .passport-book-list{display:grid;gap:10px}.passport-book-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid #e5e7eb;border-radius:17px;background:#fff}.passport-book-row.is-primary{border-color:#c79622;box-shadow:0 0 0 1px rgba(199,150,34,.1)}.passport-book-row>div{display:grid;gap:4px}.passport-book-row>div:last-child{justify-items:end}.passport-book-row span,.passport-book-row small{color:#64748b;font-size:12px}.passport-book-row strong{font-size:16px;color:#111827}.passport-primary-badge{display:inline-flex;min-height:29px;align-items:center;padding:0 10px;border-radius:999px;background:#ecfdf3;color:#15803d;font-size:11px}.passport-unlink-btn{border:0;background:transparent;color:#94a3b8;font-size:11px;padding:5px}.passport-empty{padding:18px;border:1px dashed #d6d3d1;border-radius:17px;text-align:center}.passport-empty p{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.6}
  @media(max-width:640px){.passport-book-row{grid-template-columns:1fr}.passport-book-row>div:last-child{justify-items:stretch}.passport-book-row .mock-btn{width:100%}.passport-unlink-btn{text-align:center}.library-passport-row{grid-template-columns:68px minmax(0,1fr);gap:11px}.library-passport-year{min-height:68px}.library-passport-actions{grid-column:1/-1}.library-passport-actions b,.library-passport-actions button{width:100%}.date-finder-range{grid-template-columns:1fr}.date-finder-note{align-items:flex-start;flex-direction:column}.date-finder-note span{text-align:left}}
    .benefit-wallet{display:grid;gap:14px;padding:18px 20px 20px}.benefit-wallet-head{display:flex;justify-content:space-between;gap:14px;align-items:end}.benefit-wallet-head span{display:block;color:#b7791f;font-size:11px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.benefit-wallet-head strong{display:block;margin-top:4px;font-size:21px}.benefit-wallet-head small{color:#64748b;white-space:nowrap}.benefit-wallet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wallet-card{--wallet-accent:#c58f1a;position:relative;overflow:hidden;display:grid;gap:10px;min-height:190px;border:1px solid color-mix(in srgb,var(--wallet-accent) 28%,#e5e7eb);border-top:4px solid var(--wallet-accent);border-radius:22px;background:linear-gradient(145deg,#fff 0%,color-mix(in srgb,var(--wallet-accent) 7%,#fff) 100%);padding:15px 17px 17px}.wallet-card.used,.wallet-card.expired{background:#f8fafc;color:#64748b;filter:saturate(.45)}.wallet-card-image{width:100%;aspect-ratio:1;border-radius:17px;overflow:hidden;background:var(--wallet-accent);display:grid;place-items:center;color:#fff;font-weight:950;font-size:24px}.wallet-card-image img{width:100%;height:100%;object-fit:cover}.wallet-card-top{display:flex;justify-content:space-between;gap:10px}.wallet-card-type{color:var(--wallet-accent);font-size:11px;font-weight:950;letter-spacing:.06em}.wallet-card-status{border-radius:999px;background:#ecfdf5;color:#15803d;padding:5px 9px;font-size:11px;font-weight:900}.wallet-card.used .wallet-card-status,.wallet-card.expired .wallet-card-status{background:#e5e7eb;color:#64748b}.wallet-card h3{margin:0;font-size:19px;line-height:1.3}.wallet-card p{margin:0;color:#64748b;font-size:13px;line-height:1.55}.wallet-card-expiry{font-size:11px;color:#92400e}.wallet-card button{align-self:end;min-height:42px;border:0;border-radius:14px;background:var(--wallet-accent);color:#fff;font-weight:900}.wallet-card button:disabled{background:#e5e7eb;color:#64748b}.wallet-empty{padding:22px;border:1px dashed #cbd5e1;border-radius:20px;text-align:center;color:#64748b}.wallet-claim-success{padding:12px 14px;border-radius:16px;background:#ecfdf5;color:#166534;font-weight:850}@media(max-width:760px){.benefit-wallet{padding:18px 16px 20px}.benefit-wallet-grid{grid-template-columns:1fr}.benefit-wallet-head{align-items:start}.wallet-card{min-height:170px}}

/* CUSTOMER_THEME_LAYERS */
/* public/css/plan-v2.css */
:root {
  --pp-ink: #171512;
  --pp-muted: #706a60;
  --pp-paper: #f7f4ee;
  --pp-card: #ffffff;
  --pp-line: #e3dbcf;
  --pp-gold: #9b711f;
  --pp-gold-soft: #f3ead8;
  --pp-red: #a31324;
  --pp-red-dark: #70131c;
  --pp-green: #26613e;
}

/* Membership Phase 7 campaign benefits */
.wallet-card.membership-campaign-benefit::after {
  content: "MEMBER BENEFIT";
  position: absolute;
  top: 16px;
  right: -34px;
  transform: rotate(38deg);
  color: color-mix(in srgb, var(--wallet-accent) 12%, transparent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  pointer-events: none;
}
.wallet-card details {
  color: #667085;
  font-size: 12px;
}
.wallet-card summary {
  width: fit-content;
  color: #5d6470;
  cursor: pointer;
  font-weight: 750;
}
.wallet-card details small {
  display: block;
  margin-top: 7px;
  line-height: 1.55;
  white-space: pre-line;
}
.wallet-card.claimed .wallet-card-status,
.wallet-card.processing .wallet-card-status {
  background: #fff7e6;
  color: #9a6700;
}
.wallet-card.fulfilled .wallet-card-status {
  background: #eef2ff;
  color: #4338ca;
}

body { background: var(--pp-paper); }
.chat-main { background: var(--pp-paper); }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.home-app-page, .daily-app-page, .calendar-app-page { width: min(820px, 100%); }
.mock-page.app-mobile-page.home-app-page { padding-inline: clamp(16px, 4vw, 28px)!important; }
.home-plan { width: min(100%, 620px); margin-inline: auto; display: grid; gap: 20px; padding: 4px 0 28px; }

.home-today-card { position: relative; overflow: hidden; min-height: 417px; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid #e2d7d0; border-radius: 28px; background: #fff; color: #242424; box-shadow: 0 16px 38px rgba(54,38,25,.08); }
.home-almanac-month { min-height: 54px; display: grid; place-items: center; background: var(--pp-red); color: #fff; position: relative; z-index: 2; }
.home-almanac-month strong { font-size: 22px; font-weight: 950; line-height: 1; }
.home-refresh-state { position: absolute; right: 16px; top: 50%; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.84); font-size: 10px; font-weight: 750; transform: translateY(-50%); }
.home-refresh-state i { width: 9px; height: 9px; border: 1.5px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: home-refresh-spin .9s linear infinite; }
.home-refresh-state i.is-paused { border: 0; background: rgba(255,255,255,.8); animation: none; }
@keyframes home-refresh-spin { to { transform: rotate(360deg); } }
.home-almanac-sheet { min-height: 307px; padding: 14px 24px 17px; display: grid; grid-template-rows: minmax(158px,1fr) minmax(121px,auto); background: #fff; position: relative; }
.home-almanac-corner { --corner-size: 25px; width: var(--corner-size); height: var(--corner-size); position: absolute; pointer-events: none; opacity: .62; }
.home-almanac-corner::after { content: ""; width: 9px; height: 9px; position: absolute; border: 1px solid #cf0019; border-radius: 50%; }
.home-almanac-corner.corner-tl { left: 12px; top: 12px; border-left: 2px solid #cf0019; border-top: 2px solid #cf0019; }
.home-almanac-corner.corner-tr { right: 12px; top: 12px; border-right: 2px solid #cf0019; border-top: 2px solid #cf0019; }
.home-almanac-corner.corner-bl { left: 12px; bottom: 12px; border-left: 2px solid #cf0019; border-bottom: 2px solid #cf0019; }
.home-almanac-corner.corner-br { right: 12px; bottom: 12px; border-right: 2px solid #cf0019; border-bottom: 2px solid #cf0019; }
.home-almanac-corner.corner-tl::after { left: -6px; top: -6px; }
.home-almanac-corner.corner-tr::after { right: -6px; top: -6px; }
.home-almanac-corner.corner-bl::after { left: -6px; bottom: -6px; }
.home-almanac-corner.corner-br::after { right: -6px; bottom: -6px; }
.home-almanac-date { min-height: 0; display: grid; grid-template-rows: auto auto; align-content: start; gap: 2px; color: #082f8d; }
.home-almanac-weekday { text-align: center; font-size: clamp(19px,4.5vw,23px); font-weight: 950; line-height: 1.1; }
.home-almanac-date-row { min-height: 126px; display: grid; grid-template-columns: minmax(72px,1fr) minmax(116px,1.55fr) minmax(72px,1fr); align-items: center; gap: 8px; }
.home-almanac-primary { display: grid; place-items: center; align-content: center; }
.home-almanac-primary strong { color: var(--pp-red); font: 900 clamp(86px,20vw,114px)/.74 Arial,sans-serif; letter-spacing: -.09em; transform: translateX(-.04em); }
.home-almanac-side { min-width: 0; display: grid; justify-items: start; gap: 4px; }
.home-almanac-side.is-right { justify-items: end; text-align: right; }
.home-almanac-side small { color: #9a807b; font-size: 9px; font-weight: 850; letter-spacing: .05em; }
.home-almanac-side strong { max-width: 100%; font-size: 15px; font-weight: 950; line-height: 1.25; overflow-wrap: anywhere; }
.home-almanac-side.is-right strong { font: 800 28px/1.1 Georgia,serif; letter-spacing: .06em; }
.home-almanac-side span { color: #5d6580; font-size: 10px; line-height: 1.3; }
.home-almanac-pillar { display: grid; justify-items: end; gap: 3px; }
.home-almanac-pillar > span { display: grid; grid-template-columns: auto 28px; align-items: center; gap: 6px; color: #082f8d; }
.home-almanac-pillar > span + span { padding-top: 3px; border-top: 1px solid #e4e8f2; }
.home-almanac-pillar small { color: #9a807b; font-size: 8px; font-weight: 850; letter-spacing: .02em; }
.home-almanac-pillar strong { width: 28px; color: #082f8d; font: 800 26px/1 Georgia,serif!important; text-align: center; letter-spacing: 0!important; }
.home-almanac-zodiac { margin-top: 5px; display: grid; gap: 1px; }
.home-almanac-zodiac small { color: #9a807b; font-size: 8px; }
.home-almanac-zodiac b { color: #082f8d; font-size: 13px; line-height: 1.2; }
.home-almanac-summary { min-height: 121px; padding: 14px 4px 18px; display: grid; grid-template-rows: auto minmax(36px,auto) auto; align-content: space-between; gap: 8px; border-top: 1px solid #f0c9ce; color: #2a2928; }
.home-almanac-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-almanac-summary-head strong { font-size: 14px; }
.home-almanac-summary-head > span { flex: 0 0 auto; min-height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: #f8ecec; color: #8c202b; font-size: 9px; font-weight: 850; }
.home-almanac-summary p { margin: 0; color: #4f4b47; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-almanac-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-score-pill { min-height: 40px; padding: 0 11px; flex: 0 0 auto; display: inline-flex; align-items: center; border: 1px solid #f1d3d6; border-radius: 12px; background: #fff7f7; color: #746d65; font-size: 10px; font-weight: 750; white-space: nowrap; }
.home-score-pill strong { margin-left: 5px; color: var(--pp-red); font-size: 22px; line-height: 1; }
.home-source-meta { min-width: 0; display: grid; justify-items: end; gap: 2px; color: #766f68; text-align: right; }
.home-source-meta b { max-width: 190px; overflow: hidden; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-source-meta small { color: #9a928a; font-size: 8px; }
.home-almanac-detail-cta { min-height: 60px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-top: 1px solid #ead5d7; background: #fffafa; color: #87121f; text-align: left; transition: background .18s ease; }
.home-almanac-detail-cta span { min-width: 0; }
.home-almanac-detail-cta strong { display: block; font-size: 13px; line-height: 1.35; }
.home-almanac-detail-cta small { display: block; margin-top: 2px; color: #806b6d; font-size: 9px; line-height: 1.35; }
.home-almanac-detail-cta > .home-detail-icon { width: 32px; height: 32px; min-width: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: var(--pp-red); color: #fff; }
.home-detail-icon svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.home-today-card.is-loading { min-height: 300px; border-color: transparent; background: transparent; box-shadow: none; }
.home-daily-skeleton { min-height: 300px; grid-row: 1/-1; display: grid; place-items: center; padding: 22px; background: transparent; }
.home-skeleton-stage { width: min(284px,100%); min-height: 216px; position: relative; padding: 28px 22px 24px; display: grid; place-content: center; justify-items: center; gap: 7px; border: 1px solid #e6ddd0; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 18px 44px rgba(54,38,25,.09); text-align: center; }
.home-skeleton-stage > strong { margin-top: 8px; color: #292521; font-size: 17px; line-height: 1.35; }
.home-skeleton-stage > p { margin: 0; color: #817970; font-size: 12px; line-height: 1.5; }
.home-skeleton-mark { width: 56px; height: 56px; position: relative; display: grid; place-items: center; border: 1px solid #eadfce; border-radius: 18px; background: #f8f3e9; color: #946b1e; }
.home-skeleton-mark::after { content: ''; position: absolute; inset: -6px; border: 1px solid rgba(163,19,36,.13); border-radius: 23px; animation: home-loading-breathe 1.8s ease-in-out infinite; }
.home-skeleton-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-skeleton-mark > span { width: 7px; height: 7px; position: absolute; right: 5px; top: 5px; border: 2px solid #fff; border-radius: 50%; background: var(--pp-red); box-shadow: 0 2px 8px rgba(112,19,28,.22); }
.home-skeleton-progress { width: min(184px,76%); height: 3px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #eee8df; }
.home-skeleton-progress span { width: 42%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--pp-gold),#d4b168); animation: home-loading-progress 1.25s ease-in-out infinite alternate; }
@keyframes home-loading-breathe { 0%,100% { opacity: .35; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes home-loading-progress { from { transform: translateX(-8%); } to { transform: translateX(145%); } }
.home-today-loading { min-height: 344px; grid-row: 1/-1; display: grid; place-items: center; padding: 24px; color: #594f49; text-align: center; position: relative; z-index: 1; }
.home-today-loading p { margin: 5px 0 13px; color: #817873; font-size: 12px; }
.home-today-loading button, .home-today-loading a { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; background: var(--pp-red); color: #fff; font-weight: 850; text-decoration: none; }
.home-today-card.is-error .home-today-loading { min-height: 290px; grid-row: 2/-1; }

.home-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-quick-card { min-height: 92px; padding: 13px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--pp-line); border-radius: 18px; background: #fff; color: var(--pp-ink); text-align: left; box-shadow: 0 8px 20px rgba(35,29,20,.04); }
.home-quick-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #f4efe5; color: var(--pp-gold); font: 700 18px/1 Georgia,serif; }
.home-quick-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-quick-card strong { display: block; font-size: 14px; line-height: 1.3; }
.home-quick-card p { margin: 3px 0 0; color: var(--pp-muted); font-size: 10px; line-height: 1.45; }

.home-action-section { display: grid; gap: 10px; }
.home-action-section > header { padding-inline: 2px; display: grid; gap: 2px; }
.home-action-section > header strong { color: var(--pp-ink); font-size: 18px; line-height: 1.35; }
.home-primary-actions { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: 10px; }
.home-primary-action { min-height: 78px; padding: 12px 13px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 11px; border: 1px solid var(--pp-line); border-radius: 18px; background: #fff; color: var(--pp-ink); text-align: left; box-shadow: none; transition: transform .18s ease, border-color .18s ease; }
.home-primary-action > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: #f3eee5; color: var(--pp-gold); font-style: normal; }
.home-primary-action > i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-primary-action strong { display: block; font-size: 14px; line-height: 1.35; }
.home-primary-action small { display: block; margin-top: 3px; color: var(--pp-muted); font-size: 11px; line-height: 1.42; }
.home-primary-action.is-primary { border-color: var(--pp-red); background: var(--pp-red); color: #fff; box-shadow: 0 10px 22px rgba(112,19,28,.12); }
.home-primary-action.is-primary strong { font-size: 14px; }
.home-primary-action.is-primary small { font-size: 10px; }
.home-primary-action.is-primary > i { background: rgba(255,255,255,.16); color: #fff; }
.home-primary-action.is-primary small { color: rgba(255,255,255,.8); }
.home-primary-action.is-secondary { background: #f5f1e9; border-color: transparent; }
.home-primary-action.is-secondary > i { background: #fff; color: #815d18; }
.home-primary-action:active { transform: scale(.985); }

.home-tools-section { display: grid; gap: 9px; }
.home-tools-section > header { padding-inline: 2px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.home-tools-section > header strong { font-size: 15px; }
.home-tools-section > header span { color: var(--pp-muted); font-size: 9px; }
.home-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.home-tool-card { min-height: 82px; padding: 10px 7px; display: grid; justify-items: center; align-content: center; gap: 7px; border: 1px solid var(--pp-line); border-radius: 16px; background: #fff; color: var(--pp-ink); text-align: center; }
.home-tool-card > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: #f4efe5; color: var(--pp-gold); font-style: normal; }
.home-tool-card svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-tool-card strong { font-size: 11px; line-height: 1.3; }

.home-passport-status { min-height: 80px; padding: 12px 14px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #ded3c1; border-radius: 18px; background: #fff; color: var(--pp-ink); text-align: left; text-decoration: none; box-shadow: none; }
.home-passport-status > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--pp-gold-soft); color: #8b641a; font-style: normal; }
.home-passport-status svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-passport-copy { min-width: 0; display: grid; gap: 2px; }
.home-passport-status strong { display: block; font-size: 15px; line-height: 1.35; }
.home-passport-status small { display: block; color: var(--pp-muted); font-size: 11px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-passport-status .home-passport-eyebrow { margin: 0 0 1px; color: var(--pp-gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.home-passport-eyebrow em { margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #edf6ef; color: var(--pp-green); font-size: 9px; font-style: normal; letter-spacing: 0; }
.home-passport-status .home-passport-code { margin-top: 1px; color: #35312c; }
.home-passport-status .home-passport-updated { color: #8b847a; }
.home-passport-action { display: inline-flex; align-items: center; gap: 5px; color: #815d18; font-size: 11px; font-weight: 850; white-space: nowrap; }
.home-passport-action b { font-size: 19px; font-weight: 500; }

/* Calendar Passport library card: reuse the real product cover and keep account data separate. */
.library-passport-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.library-passport-section .library-section-head { margin-bottom: 10px; padding: 0 2px 10px; }
.library-passport-section .library-section-head > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #815d18;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.library-passport-section .library-section-head > button::after { content: '›'; font-size: 20px; font-weight: 500; line-height: 1; }
.library-passport-section .library-section-head > button:focus-visible { outline: 3px solid rgba(154,107,11,.22); outline-offset: 2px; }
.library-passport-row {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: #faf7f0;
}
.library-passport-row + .library-passport-row { margin-top: 12px; }
.library-passport-cover {
  position: relative;
  width: 84px;
  height: 116px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.library-passport-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-passport-cover::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 27%;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 38%);
}
.library-passport-cover > span {
  position: absolute;
  z-index: 1;
  right: 7px;
  bottom: 7px;
  left: 7px;
  padding: 4px 5px;
  border-radius: 7px;
  background: #17130d;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}
.library-passport-copy { min-width: 0; display: grid; gap: 3px; }
.library-passport-copy > small {
  max-width: calc(100% - 104px);
  color: #9a6b0b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
}
.library-passport-copy > strong { color: #181614; font-size: 18px; line-height: 1.25; }
.library-passport-copy > span {
  overflow: hidden;
  color: #6f675e;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-passport-copy > p { display: flex; align-items: center; gap: 6px; margin: 3px 0 0; color: #53705c; font-size: 11px; }
.library-passport-copy > p i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #3b9460; box-shadow: 0 0 0 4px #e2f2e7; }
.library-passport-actions {
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;
}
.library-passport-actions b,
.library-passport-actions button {
  min-height: 30px;
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
}
.library-passport-actions b { background: #e1f4e7; color: #287548; }
.library-passport-actions button { background: #17130d; color: #fff; }

@media (max-width: 380px) {
  .library-passport-row { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .library-passport-cover { width: 74px; height: 102px; }
  .library-passport-copy > strong { font-size: 17px; }
}

.home-more-services { border-top: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); }
.home-more-services > summary { min-height: 64px; padding: 8px 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--pp-ink); cursor: pointer; list-style: none; }
.home-more-services > summary::-webkit-details-marker { display: none; }
.home-more-services > summary strong { display: block; font-size: 14px; }
.home-more-services > summary small { display: block; margin-top: 2px; color: var(--pp-muted); font-size: 9px; }
.home-more-services > summary b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f4efe5; color: #8a641c; font-size: 18px; font-weight: 500; transition: transform .18s ease; }
.home-more-services[open] > summary b { transform: rotate(45deg); }
.home-more-services-body { display: grid; gap: 9px; padding: 0 0 12px; }

.home-slide-banner { position: relative; min-height: 142px; padding: 18px 18px 24px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 13px; overflow: hidden; border: 1px solid #dfd3bd; border-radius: 22px; background: linear-gradient(135deg,#fff9ed,#f3e7ce); color: var(--pp-ink); text-align: left; }
.home-slide-banner img { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; }
.home-slide-banner span { min-width: 0; }
.home-slide-banner small { color: var(--pp-gold); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.home-slide-banner strong { display: block; margin-top: 4px; font-size: 16px; }
.home-slide-banner p { margin: 4px 0 0; color: var(--pp-muted); font-size: 11px; line-height: 1.5; }
.home-slide-banner > b { color: #9c8a6d; font-size: 22px; }
.home-slide-banner > i { position: absolute; left: 50%; bottom: 9px; display: flex; gap: 4px; transform: translateX(-50%); }
.home-slide-banner em { width: 5px; height: 5px; border-radius: 50%; background: #d4c4a5; }
.home-slide-banner em:first-child { width: 13px; border-radius: 99px; background: var(--pp-gold); }

.home-link-section { padding: 2px 0; display: grid; }
.home-link-section button { min-height: 68px; padding: 11px 2px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-bottom: 1px solid var(--pp-line); background: transparent; color: var(--pp-ink); text-align: left; }
.home-link-section strong { font-size: 14px; }
.home-link-section p { margin: 3px 0 0; color: var(--pp-muted); font-size: 11px; }
.home-link-section b { color: var(--pp-gold); font-size: 11px; white-space: nowrap; }

.home-service-section { display: grid; gap: 8px; padding-top: 2px; }
.home-service-section > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 2px; border: 0; }
.home-service-section > header div { display: grid; gap: 2px; }
.home-service-section > header strong { font-size: 18px; }
.home-service-list { overflow: hidden; display: grid; border-top: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); }
.home-service-link { min-height: 70px; padding: 10px 2px; display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--pp-line); background: transparent; color: var(--pp-ink); text-align: left; }
.home-service-link:last-child { border-bottom: 0; }
.home-service-link > span { min-width: 0; }
.home-service-link strong { display: block; font-size: 15px; line-height: 1.35; }
.home-service-link small { display: block; margin-top: 2px; color: var(--pp-muted); font-size: 12px; line-height: 1.45; }
.home-service-link > b { color: #a49a8b; font-size: 21px; font-weight: 500; text-align: center; }
.home-service-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f3eee5; color: #815d18; }
.home-service-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-service-link:active { background: rgba(155,113,31,.045); }

@media (hover: hover) {
  .home-primary-action:hover { transform: translateY(-2px); border-color: #cfc1aa; }
  .home-primary-action.is-primary:hover { border-color: var(--pp-red-dark); box-shadow: 0 16px 32px rgba(112,19,28,.18); }
  .home-almanac-detail-cta:hover { background: #fff4f5; }
  .home-service-link:hover { background: rgba(155,113,31,.035); }
}

.home-primary-action:focus-visible,
.home-passport-status:focus-visible,
.home-service-link:focus-visible,
.home-almanac-detail-cta:focus-visible { outline: 3px solid rgba(155,113,31,.3); outline-offset: 3px; }
.home-ritual-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.home-ritual-card { min-height: 106px; padding: 14px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--pp-line); border-radius: 18px; background: #fff; color: var(--pp-ink); text-align: left; }
.home-ritual-card.has-oracle-art { grid-template-columns: 48px minmax(0,1fr); align-items: center; }
.home-oracle-art.is-compact { width: 44px; height: 44px; min-width: 44px; margin: 0; position: relative; overflow: hidden; border: 1px solid #eee4d5; border-radius: 14px; background: #f7f1e7; box-shadow: none; }
.home-oracle-art.is-compact .home-oracle-stick { bottom: 16px; width: 3px; height: 25px; border-radius: 3px 3px 1px 1px; box-shadow: none; }
.home-oracle-art.is-compact .home-oracle-stick::before { height: 7px; border-radius: 3px 3px 0 0; }
.home-oracle-art.is-compact .home-oracle-stick:nth-child(1) { transform: translateX(calc(-50% - 8px)); }
.home-oracle-art.is-compact .home-oracle-stick:nth-child(2) { transform: translateX(calc(-50% - 4px)); }
.home-oracle-art.is-compact .home-oracle-stick:nth-child(3) { transform: translateX(-50%); }
.home-oracle-art.is-compact .home-oracle-stick:nth-child(4) { transform: translateX(calc(-50% + 4px)); }
.home-oracle-art.is-compact .home-oracle-stick:nth-child(5) { transform: translateX(calc(-50% + 8px)); }
.home-oracle-art.is-compact .home-oracle-cup { left: 6px; right: 6px; bottom: 5px; height: 21px; border-radius: 3px 3px 7px 7px; box-shadow: 0 4px 7px rgba(185,28,28,.14); }
.home-oracle-art.is-compact .home-oracle-cup::before { left: -2px; right: -2px; top: -4px; height: 6px; border-radius: 2px; border-bottom-width: 2px; }
.home-oracle-art.is-compact .home-oracle-cup b { inset: 6px 0 auto; font-size: 9px; }
.home-ritual-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: #f4efe6; color: var(--pp-red); font: 700 17px/1 Georgia, serif; }
.home-ritual-card strong { display: block; font-size: 14px; }
.home-ritual-card p { margin: 3px 0 0; color: var(--pp-muted); font-size: 10px; line-height: 1.45; }
.home-shop-link { min-height: 62px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--pp-line); border-radius: 17px; background: #fff; color: var(--pp-ink); text-align: left; }
.home-shop-link strong { font-size: 13px; }
.home-shop-link p { margin: 2px 0 0; color: var(--pp-muted); font-size: 10px; }
.home-shop-link > b { color: #a59b8d; font-size: 20px; }

.plan-segmented { width: fit-content; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(92px,1fr)); border-radius: 14px; background: #eee9e0; }
.plan-segmented button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: #756c5f; font-size: 12px; font-weight: 850; }
.plan-segmented button.active { background: #fff; color: var(--pp-ink); box-shadow: 0 3px 10px rgba(30,25,18,.08); }
.daily-page, .calendar-page { display: grid; gap: 14px; }
.daily-page { gap: 12px; }
.daily-report-card { position: relative; overflow: hidden; padding: clamp(20px,4vw,30px); display: grid; gap: 16px; border-radius: 26px; background: linear-gradient(145deg,#7b2119,#9d3025 58%,#56130f); color: #fff; box-shadow: 0 20px 44px rgba(92,26,19,.16); }
.daily-report-card::after { content: ''; position: absolute; width: 230px; height: 230px; right: -105px; bottom: -145px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; pointer-events: none; }
.daily-report-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.daily-date-kicker { color: #f6d27a; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.daily-report-head h1 { margin: 6px 0 0; font-size: clamp(25px,5vw,38px); line-height: 1.2; }
.daily-score-badge { min-width: 78px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.1); text-align: center; }
.daily-score-badge strong { display: block; font: 700 34px/1 Georgia,serif; }
.daily-score-badge span { color: rgba(255,255,255,.65); font-size: 10px; }
.daily-verdict { margin: 0; max-width: 650px; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.72; }
.daily-meta-row { display: flex; flex-wrap: wrap; gap: 7px; }
.daily-meta-row span { min-height: 29px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-size: 11px; }
.daily-source-proof { position: relative; z-index: 1; padding-top: 13px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.13); }
.daily-source-proof > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f4d276; color: #621b16; font-weight: 950; }
.daily-source-proof strong, .daily-source-proof small { display: block; }
.daily-source-proof strong { font-size: 12px; }
.daily-source-proof small { margin-top: 2px; color: rgba(255,255,255,.65); font-size: 10px; }
.daily-section { --daily-block-accent: #a72c25; --daily-block-soft: #faf7f2; --daily-block-line: #e4ddd2; overflow: hidden; display: grid; gap: 0; border: 1px solid var(--daily-block-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(35,29,20,.035); }
.daily-section > header { min-height: 64px; padding: 12px 18px; display: grid; align-items: center; border-bottom: 1px solid var(--daily-block-line); background: var(--daily-block-soft); }
.daily-section header strong { display: block; font-size: 18px; line-height: 1.3; }
.daily-section header p { margin: 4px 0 0; color: color-mix(in srgb, var(--daily-block-accent) 72%, #5f5a53); font-size: 12px; line-height: 1.45; }
.daily-section-empty { margin: 14px 18px 18px; padding: 15px 16px; border-radius: 14px; background: #f8f5ef; color: var(--pp-muted); font-size: 13px; line-height: 1.55; }
.daily-time-best { margin: 18px 18px 8px; padding: 18px; display: grid; justify-items: center; gap: 4px; border-radius: 17px; background: #eaf8f2; color: #1b9568; text-align: center; }
.daily-time-best > span { font-size: 14px; font-weight: 800; }
.daily-time-best > b { font-size: clamp(25px,6vw,34px); line-height: 1.25; letter-spacing: -.02em; }
.daily-time-planner { min-height: 48px; margin: 6px 18px 18px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-top: 1px solid #eee9e1; background: transparent; color: #761f1b; font-size: 14px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.daily-time-planner > span { font-size: 21px; line-height: 1; }
.daily-chat-cta { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #dfc88f; border-radius: 22px; background: #fff8e9; }
.daily-chat-cta > div > span { display: block; margin-bottom: 4px; color: #9a6a10; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.daily-chat-cta strong { display: block; font-size: 18px; }
.daily-chat-cta p { margin: 4px 0 0; color: var(--pp-muted); font-size: 12px; }
.daily-chat-cta button { min-height: 44px; padding: 0 16px; flex: 0 0 auto; border: 0; border-radius: 14px; background: #171d2a; color: #fff; font-weight: 850; }
.daily-error { min-height: 280px; padding: 28px; display: grid; place-content: center; justify-items: center; gap: 11px; border: 1px solid var(--pp-line); border-radius: 24px; background: #fff; text-align: center; }
.daily-error strong { font-size: 21px; }
.daily-error p { margin: 0; color: var(--pp-muted); line-height: 1.6; }
.daily-error button, .daily-error a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 13px; background: var(--pp-ink); color: #fff; font-weight: 850; text-decoration: none; }

.calendar-shell { padding: clamp(16px,3vw,24px); display: grid; gap: 16px; border: 1px solid var(--pp-line); border-radius: 26px; background: #fff; }
.calendar-toolbar { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; }
.calendar-toolbar button { width: 42px; height: 42px; border: 1px solid var(--pp-line); border-radius: 13px; background: #fff; color: var(--pp-ink); font-size: 20px; }
.calendar-toolbar div { text-align: center; }
.calendar-toolbar strong { display: block; font-size: 20px; }
.calendar-toolbar span { color: var(--pp-muted); font-size: 11px; }
.calendar-month-overview { min-height: 72px; overflow: hidden; border-radius: 16px; background: #f8f5ef; }
.calendar-overview-loading { min-height: 72px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--pp-muted); font-size: 12px; }
.calendar-overview-loading > span { width: 16px; height: 16px; border: 2px solid #ddd5c8; border-top-color: var(--pp-gold); border-radius: 50%; animation: spin .8s linear infinite; }
.calendar-overview-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.calendar-overview-stats > div { min-height: 62px; padding: 10px 6px; display: grid; place-content: center; justify-items: center; gap: 1px; border-right: 1px solid #e6ded1; }
.calendar-overview-stats > div:last-child { border-right: 0; }
.calendar-overview-stats strong { font-size: 20px; line-height: 1.1; }
.calendar-overview-stats span { color: #71695f; font-size: 10px; font-weight: 800; }
.calendar-overview-stats .highlight strong { color: #23734c; }
.calendar-overview-stats .balanced strong { color: #9a6810; }
.calendar-overview-stats .caution strong { color: #a23b3b; }
.calendar-month-overview > p { margin: 0; padding: 9px 13px; border-top: 1px solid #e6ded1; color: #665f56; font-size: 11px; text-align: center; }
.calendar-month-overview > p strong { color: #2e2b27; }
.calendar-month-overview > small { display: block; padding: 0 13px 9px; color: #8b8175; font-size: 10px; text-align: center; }
.calendar-overview-error { min-height: 72px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #756c62; font-size: 11px; }
.calendar-overview-error button { min-height: 36px; padding: 0 12px; flex: 0 0 auto; border: 1px solid #dacdbb; border-radius: 11px; background: #fff; color: #6f4b12; font-weight: 850; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.calendar-weekdays span { padding: 7px 0; color: #8c8376; font-size: 10px; font-weight: 850; text-align: center; }
.calendar-day { aspect-ratio: 1; min-height: 54px; padding: 7px; display: grid; align-content: space-between; justify-items: start; border: 1px solid transparent; border-radius: 14px; background: #faf8f4; color: var(--pp-ink); }
.calendar-day:hover, .calendar-day:focus-visible { border-color: #c8ab6f; outline: none; }
.calendar-day.selected { box-shadow: 0 0 0 2px var(--pp-gold); }
.calendar-day.other { opacity: .34; }
.calendar-day span { font-size: 13px; font-weight: 850; }
.calendar-day-status { min-height: 12px; color: #8a8176; font-size: 8px; font-weight: 850; line-height: 1; }
.calendar-day.rhythm-highlight { background: #e8f5eb; }
.calendar-day.rhythm-highlight .calendar-day-status { color: #23734c; }
.calendar-day.rhythm-balanced { background: #fff4cf; }
.calendar-day.rhythm-balanced .calendar-day-status { color: #94620c; }
.calendar-day.rhythm-caution { background: #fdeaea; }
.calendar-day.rhythm-caution .calendar-day-status { color: #a13d38; }
.calendar-day.rhythm-unavailable .calendar-day-status { color: #aaa198; }
.calendar-day.today { outline: 2px solid #20242b; outline-offset: -2px; }
.calendar-help { padding: 13px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; border-radius: 15px; background: #f8f5ef; color: var(--pp-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.calendar-help p { width: 100%; margin: 2px 0 0; }
.calendar-legend { min-height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 9px; font-weight: 850; }
.calendar-legend.highlight { background: #e8f5eb; color: #23734c; }
.calendar-legend.balanced { background: #fff4cf; color: #94620c; }
.calendar-legend.caution { background: #fdeaea; color: #9c3e39; }

/* Approved editorial mobile direction — home and calendar */
body[data-mobile-view="home"] .home-plan,
body[data-mobile-view="calendar"] .calendar-page { width: min(100%, 430px); margin: 0 auto; }

body[data-mobile-view="home"] .home-plan { padding: 14px 16px 32px; gap: 18px; }
body[data-mobile-view="home"] .home-today-card { padding: 0; overflow: hidden; border: 0; border-radius: 28px; background: #151b18; box-shadow: 0 18px 44px rgba(18,24,21,.16); }
.home-daily-hero { min-height: 392px; padding: 24px 22px 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; color: #f8f3e8; border: 1px solid rgba(193,155,75,.44); border-radius: 28px; background: linear-gradient(150deg,#171d1a 0%,#101512 70%,#20261f 100%); }
.home-daily-landscape { position: absolute; inset: auto -12% 68px 24%; height: 165px; z-index: -1; opacity: .46; overflow: hidden; }
.home-daily-landscape::before,.home-daily-landscape::after { content: ''; position: absolute; bottom: -68px; width: 78%; aspect-ratio: 1.7; border: 1px solid rgba(208,178,111,.32); border-radius: 50% 50% 0 0; transform: rotate(-9deg); }
.home-daily-landscape::before { left: -8%; }
.home-daily-landscape::after { right: -30%; bottom: -88px; transform: rotate(11deg); }
.home-daily-landscape i { width: 74px; height: 74px; position: absolute; top: 10px; right: 20%; border: 1px solid rgba(210,177,101,.48); border-radius: 50%; box-shadow: 0 0 52px rgba(203,164,81,.1); }
.home-daily-landscape span { position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(211,180,112,.32),transparent); }
.home-daily-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.home-daily-head > div:first-child { display: grid; gap: 5px; }
.home-daily-head small { color: #c9a75d; font-size: .6875rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.home-daily-head > div:first-child span { color: rgba(248,243,232,.64); font-size: .8125rem; }
.home-daily-score { min-width: 82px; display: grid; justify-items: end; }
.home-daily-score strong { margin-top: 2px; color: #e8c77b; font: 700 1.75rem/1 Georgia,serif; }
.home-daily-hero .home-score-pill { padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; white-space: nowrap; }
.home-daily-hero h1 { max-width: 78%; margin: 28px 0 12px; color: #fff; font-size: clamp(1.75rem,7vw,2.15rem); line-height: 1.15; letter-spacing: -.02em; }
.home-daily-advice { max-width: 92%; margin: 0; color: rgba(250,247,240,.84); font-size: .9375rem; line-height: 1.72; }
.home-daily-hero .home-almanac-summary { margin: 0; padding: 0; display: block; border: 0; background: transparent; }
.home-daily-hero .home-almanac-summary .home-daily-advice { color: rgba(250,247,240,.84); }
.home-daily-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.home-daily-meta span { min-height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid rgba(226,203,151,.2); border-radius: 999px; background: rgba(255,255,255,.045); color: rgba(248,243,232,.74); font-size: .6875rem; }
.home-daily-source { margin-top: auto; padding: 18px 2px 13px; display: flex; justify-content: space-between; align-items: end; gap: 12px; color: rgba(248,243,232,.56); font-size: .625rem; }
.home-daily-hero .home-source-meta { max-width: none; text-align: left; }
.home-daily-source > span { min-width: 0; display: grid; gap: 2px; }
.home-daily-source b { color: #caa85d; font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; }
.home-daily-source small { overflow-wrap: anywhere; }
.home-daily-hero .home-almanac-detail-cta { min-height: 58px; padding: 8px 10px 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 18px; background: #f6f1e7; color: #161b18; text-align: left; }
.home-daily-hero .home-almanac-detail-cta strong,.home-daily-hero .home-almanac-detail-cta small { display: block; }
.home-daily-hero .home-almanac-detail-cta small { margin-top: 1px; color: #756d62; }
.home-daily-hero .home-detail-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #8f1520; color: #fff; }
.home-daily-hero .home-detail-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-daily-hero .home-refresh-state { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: rgba(248,243,232,.62); font-size: .625rem; }

body[data-mobile-view="home"] .home-action-section,
body[data-mobile-view="home"] .home-service-section { display: grid; gap: 10px; }
body[data-mobile-view="home"] .home-action-section > header,
body[data-mobile-view="home"] .home-service-section > header { padding: 0 2px; }
body[data-mobile-view="home"] .home-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body[data-mobile-view="home"] .home-primary-action { min-height: 82px; padding: 14px; gap: 10px; border: 1px solid #e8dfd0; border-radius: 20px; background: #fff; color: #1a1b18; box-shadow: 0 8px 22px rgba(54,43,28,.04); }
body[data-mobile-view="home"] .home-primary-action.is-primary { background: #f6efe1; color: #1a1b18; }
body[data-mobile-view="home"] .home-primary-action i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: rgba(145,107,34,.1); color: #8b671f; }
body[data-mobile-view="home"] .home-primary-action small { margin-top: 3px; color: #787168; }
body[data-mobile-view="home"] .home-passport-status { min-height: 74px; padding: 12px 14px; border: 1px solid #e5dccd; border-radius: 20px; background: #fff; box-shadow: none; }
body[data-mobile-view="home"] .home-passport-status > i { width: 38px; height: 38px; border-radius: 12px; }
body[data-mobile-view="home"] .home-service-list { gap: 8px; }
body[data-mobile-view="home"] .home-service-link { min-height: 62px; padding: 10px 14px; border-radius: 18px; background: #fff; }

body[data-mobile-view="calendar"] .calendar-page { padding: 14px 16px 32px; }
body[data-mobile-view="calendar"] .calendar-shell { padding: 18px 14px 16px; gap: 14px; border: 0; border-radius: 26px; box-shadow: 0 14px 36px rgba(48,39,26,.07); }
body[data-mobile-view="calendar"] .calendar-toolbar strong { font-size: 1.35rem; }
body[data-mobile-view="calendar"] .calendar-toolbar button { border-color: #e6ddcf; background: #faf8f3; }
body[data-mobile-view="calendar"] .calendar-month-overview { border: 1px solid #eee6da; background: #fbfaf7; }
body[data-mobile-view="calendar"] .calendar-overview-stats > div { min-height: 66px; }
body[data-mobile-view="calendar"] .calendar-overview-stats .highlight { background: #edf7f0; }
body[data-mobile-view="calendar"] .calendar-overview-stats .balanced { background: #fff8df; }
body[data-mobile-view="calendar"] .calendar-overview-stats .caution { background: #fff0ed; }
body[data-mobile-view="calendar"] .calendar-day { min-height: 43px; padding: 7px; border-radius: 12px; }
body[data-mobile-view="calendar"] .calendar-day-status { width: 6px; height: 6px; min-height: 0; overflow: hidden; border-radius: 50%; color: transparent; background: #c7bda9; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-highlight .calendar-day-status { background: #3d9668; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-balanced .calendar-day-status { background: #c4922e; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-caution .calendar-day-status { background: #c55d52; }
body[data-mobile-view="calendar"] .calendar-day.selected { background: #171c19; color: #fff; box-shadow: 0 0 0 2px #d1ad5a; }
body[data-mobile-view="calendar"] .calendar-day.selected .calendar-day-status { background: #e6c66f; }
body[data-mobile-view="calendar"] .calendar-help { padding: 9px 10px; background: transparent; }
.calendar-selected-summary { width: 100%; min-height: 76px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 18px; background: #f5f0e6; color: #1c1d19; text-align: left; }
.calendar-selected-summary span { min-width: 0; display: grid; gap: 2px; }
.calendar-selected-summary small { color: #9a792f; font-size: .625rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.calendar-selected-summary strong { font-size: .9375rem; }
.calendar-selected-summary em { color: #756d63; font-size: .6875rem; font-style: normal; overflow-wrap: anywhere; }
.calendar-selected-summary > b { color: #9a792f; font-size: 1.4rem; }

@media (max-width: 370px) {
  body[data-mobile-view="home"] .home-primary-actions { grid-template-columns: 1fr; }
  .home-daily-hero { min-height: 376px; padding-inline: 18px; }
  body[data-mobile-view="calendar"] .calendar-grid, body[data-mobile-view="calendar"] .calendar-weekdays { gap: 4px; }
  body[data-mobile-view="calendar"] .calendar-day { min-height: 40px; padding: 6px; }
}

.plan-account-page { display: grid; gap: 14px; }
.plan-account-hero { padding: clamp(20px,4vw,30px); display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 16px; align-items: center; border-radius: 28px; background: #211e19; color: #fff; overflow-wrap: anywhere; }
.plan-account-hero img { width: 74px; height: 74px; border-radius: 22px; object-fit: cover; background: #fff; }
.plan-account-hero span { color: #d8bb77; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.plan-account-hero h1 { margin: 0 0 4px; font-size: 25px; }
.plan-account-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; }
.plan-account-status { min-height: 30px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; background: #e8f5eb; color: var(--pp-green); font-size: 11px; font-weight: 900; }
.plan-account-uid { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e4d5b4; border-radius: 20px; background: #fff9ea; }
.plan-account-uid span { color: #8b671e; font-size: 11px; font-weight: 850; }
.plan-account-uid strong { display: block; margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; }
.plan-account-uid button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; background: #2b261e; color: #fff; font-size: 11px; font-weight: 850; }
.plan-account-section { padding: 19px; display: grid; gap: 13px; border: 1px solid var(--pp-line); border-radius: 22px; background: #fff; }
.plan-account-section > header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.plan-account-section > header span { color: var(--pp-gold); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.plan-account-section > header strong { display: block; margin-top: 3px; font-size: 18px; }
.plan-account-section h2 { margin: 0; font-size: 18px; line-height: 1.4; color: var(--pp-ink); }
.plan-account-identity-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; overflow-wrap: anywhere; }
.plan-account-books { margin: 0; padding: 0; list-style: none; }
.plan-account-row.plan-account-book { padding-inline: 0; overflow-wrap: anywhere; }
.plan-account-row .plan-account-book-badge { padding: 4px 8px; border-radius: 8px; background: #faf0d6; color: #654c1b; font-size: 12px; font-weight: 750; }
.plan-account-note { margin: 0; line-height: 1.65; color: var(--pp-muted); }
.plan-account-help { display: block; }
.plan-account-help > summary { min-height: 44px; align-content: center; font-weight: 750; cursor: pointer; color: var(--pp-ink); }
.plan-account-help[open] > * + * { margin-top: 10px; }
.plan-account-help-action { min-height: 44px; padding: 0 12px; border: 1px solid var(--pp-line); border-radius: 11px; color: var(--pp-ink); background: #fff; font: inherit; font-weight: 700; }
.plan-account-page :is(button,a,summary):focus-visible { outline: 2px solid #8b671e; outline-offset: 3px; }
.plan-account-list { display: grid; }
.plan-account-row { min-height: 60px; padding: 10px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #f0ece5; color: var(--pp-ink); text-align: left; }
button.plan-account-row { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; }
a.plan-account-row { width: 100%; text-decoration: none; }
.plan-account-row strong { font-size: 14px; }
.plan-account-row p { margin: 3px 0 0; color: var(--pp-muted); font-size: 11px; line-height: 1.5; }
.plan-account-row > span { color: #a39a8d; font-size: 18px; }

@media (max-width: 760px) {
  .messages { background: var(--pp-paper); }
  .mock-page.app-mobile-page.home-app-page { padding-inline: 16px!important; }
  .home-plan { gap: 19px; }
  .home-today-card { min-height: 357px; border-radius: 23px; }
  .home-almanac-sheet { min-height: 303px; padding: 13px 20px 15px; grid-template-rows: minmax(154px,1fr) minmax(121px,auto); }
  .home-today-card.is-loading,
  .home-daily-skeleton { min-height: 282px; }
  .home-today-loading { min-height: 357px; }
  .daily-chat-cta { display: grid; }
  .daily-chat-cta button { width: 100%; }
  .calendar-day { min-height: 42px; padding: 5px; border-radius: 11px; }
  .plan-account-hero { grid-template-columns: 62px minmax(0,1fr); }
  .plan-account-hero img { width: 62px; height: 62px; border-radius: 18px; }
  .plan-account-status { grid-column: 1/-1; width: fit-content; }
  .plan-account-uid { align-items: start; flex-direction: column; }
  .plan-account-uid button { width: 100%; }
}

@media (max-width: 520px) {
  .home-primary-actions { grid-template-columns: 1fr; }
  .home-primary-action { min-height: 74px; }
}

@media (max-width: 390px) {
  .daily-report-card { padding: 20px; border-radius: 23px; }
  .daily-report-head { gap: 10px; }
  .daily-report-head h1 { font-size: 24px; }
  .daily-score-badge { min-width: 72px; padding: 11px 9px; }
  .daily-score-badge strong { font-size: 31px; }
  .daily-section { border-radius: 20px; }
  .daily-section > header { min-height: 60px; padding: 11px 16px; }
  .daily-time-best { margin: 15px 15px 7px; }
  .daily-time-planner { margin: 5px 15px 15px; }
  .daily-section-empty { margin: 12px 15px 15px; }
  .daily-section header strong { font-size: 17px; }
}

@media (max-width: 370px) {
  .mock-page.app-mobile-page.home-app-page { padding-inline: 13px!important; }
  .home-almanac-month { min-height: 50px; }
  .home-almanac-month strong { font-size: 20px; }
  .home-almanac-sheet { min-height: 299px; padding: 12px 16px 14px; grid-template-rows: minmax(152px,1fr) minmax(121px,auto); }
  .home-almanac-date-row { grid-template-columns: 62px minmax(98px,1fr) 62px; gap: 5px; }
  .home-almanac-primary strong { font-size: 78px; }
  .home-almanac-side strong { font-size: 13px; }
  .home-almanac-side.is-right strong { font-size: 23px; }
  .home-almanac-pillar strong { font-size: 22px!important; }
  .home-almanac-summary { gap: 7px; }
  .home-almanac-summary p { font-size: 11px; }
  .home-almanac-footer { gap: 7px; }
  .home-score-pill { padding-inline: 8px; }
  .home-source-meta b { max-width: 150px; font-size: 8px; }
  .home-quick-card { min-height: 88px; padding: 11px; grid-template-columns: 36px minmax(0,1fr); gap: 8px; }
  .home-quick-icon { width: 36px; height: 36px; border-radius: 12px; }
  .home-quick-card strong { font-size: 13px; }
  .home-quick-card p { display: none; }
  .home-primary-actions { grid-template-columns: 1fr; }
  .home-primary-action { min-height: 76px; }
  .home-passport-status { grid-template-columns: 42px minmax(0,1fr); }
  .home-passport-action { grid-column: 2; justify-self: start; }
  .home-slide-banner { grid-template-columns: 48px minmax(0,1fr) auto; padding-inline: 14px; }
  .home-slide-banner img { width: 48px; height: 48px; border-radius: 14px; }
  .home-ritual-card { grid-template-columns: 1fr; align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide-banner { scroll-behavior: auto; }
  .home-primary-action,
  .home-service-link,
  .home-almanac-detail-cta { transition: none; }
  .home-refresh-state i,
  .home-skeleton-mark::after,
  .home-skeleton-progress span { animation: none; }
}

/* P2 customer journey: one clear status and at least one next action. */
.customer-access-screen {
  width: min(620px, 100%);
  min-height: min(620px, calc(100dvh - 180px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.customer-access-screen > img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(35, 28, 19, .13);
}

.customer-access-screen > div { width: 100%; }
.customer-service-note { margin: 12px 0 0; color: var(--pp-muted); font-size: 12px; }

.customer-journey-card {
  --journey-accent: #8a6a2a;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--journey-accent) 24%, #e8e1d6);
  border-left: 4px solid var(--journey-accent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--journey-accent) 5%, #fff);
}

.customer-journey-card.tone-info { --journey-accent: #246b91; }
.customer-journey-card.tone-success { --journey-accent: #23734c; }
.customer-journey-card.tone-warning { --journey-accent: #a56618; }
.customer-journey-card.tone-danger { --journey-accent: #b4232f; }
.customer-journey-card.is-full { padding: clamp(22px, 5vw, 34px); grid-template-columns: 1fr; text-align: left; box-shadow: 0 18px 44px rgba(35, 28, 19, .08); }
.customer-journey-copy { min-width: 0; }
.customer-journey-copy > span { display: block; margin-bottom: 4px; color: var(--journey-accent); font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.customer-journey-copy > h2 { margin: 0; color: var(--pp-ink); font-size: 17px; line-height: 1.35; }
.customer-journey-copy > p { margin: 4px 0 0; color: var(--pp-muted); font-size: 12px; line-height: 1.6; }
.customer-journey-card.is-full .customer-journey-copy > h2 { font-size: clamp(22px, 5vw, 30px); }
.customer-journey-card.is-full .customer-journey-copy > p { font-size: 15px; }

.customer-journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-journey-action {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--journey-accent, #8a6a2a) 26%, #ddd7ce);
  border-radius: 13px;
  background: #fff;
  color: var(--pp-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.customer-journey-action.primary { border-color: var(--journey-accent, #8a6a2a); background: var(--journey-accent, #8a6a2a); color: #fff; }

@media (max-width: 600px) {
  .customer-access-screen { min-height: calc(100dvh - 150px); }
  .customer-journey-card { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .customer-journey-actions { width: 100%; }
  .customer-journey-action { flex: 1 1 130px; min-height: 46px; }
}

/* Approved mockup parity — 2026-11-04. Keep this final layer authoritative. */
body:is([data-mobile-view="home"],[data-mobile-view="calendar"]) {
  --approved-paper: #fbf8f2;
  --approved-ink: #171a17;
  --approved-gold: #bd8b27;
  --approved-line: #dfd3c1;
}

body[data-mobile-view="home"] .mock-page.app-mobile-page.home-app-page {
  padding: 0 0 34px !important;
  background: var(--approved-paper);
}
body[data-mobile-view="home"] .home-plan {
  padding-top: 4px;
  padding-right: max(10px, env(safe-area-inset-right));
  padding-left: max(10px, env(safe-area-inset-left));
  gap: 14px;
}
body[data-mobile-view="home"] .home-today-card { min-height: 0; border-radius: 28px; }
body[data-mobile-view="home"] .home-daily-hero {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.407 / 1;
  padding: 20px 20px 18px;
  border: 1.5px solid #c69227;
  border-radius: 28px;
  background: #101512;
  box-shadow: 0 16px 38px rgba(21, 26, 22, .11);
}
body[data-mobile-view="home"] .home-daily-hero::before,
body[data-mobile-view="home"] .home-daily-hero::after { content: none; }
body[data-mobile-view="home"] .home-daily-landscape {
  inset: auto -18px -3px 0;
  height: 72%;
  opacity: .68;
  background: url('../assets/paulpooh-ink-mountain-v1.png') right bottom / 120% auto no-repeat;
  z-index: 0;
}
body[data-mobile-view="home"] .home-daily-landscape::before,
body[data-mobile-view="home"] .home-daily-landscape::after,
body[data-mobile-view="home"] .home-daily-landscape > * { display: none; }
body[data-mobile-view="home"] .home-daily-hero > :not(.home-daily-landscape) { position: relative; z-index: 1; }
body[data-mobile-view="home"] .home-daily-head { align-items: start; }
body[data-mobile-view="home"] .home-daily-head > div:first-child {
  padding-left: 15px;
  position: relative;
}
body[data-mobile-view="home"] .home-daily-head > div:first-child::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: #e2b455;
}
body[data-mobile-view="home"] .home-daily-head small { color: #ddb052; font-size: .7rem; letter-spacing: .035em; }
body[data-mobile-view="home"] .home-daily-head > div:first-child > span { display: none; }
body[data-mobile-view="home"] .home-daily-score {
  position: absolute !important;
  top: 20px;
  right: 20px;
  min-height: 54px;
  padding-left: 16px !important;
  border-left: 1px solid rgba(255,255,255,.75) !important;
  text-align: left;
}
body[data-mobile-view="home"] .home-daily-score small { color: rgba(255,255,255,.84); font-size: .72rem; }
body[data-mobile-view="home"] .home-daily-score strong { color: #e5b958; font-family: Georgia,serif; font-size: 2.18rem; line-height: 1; }
body[data-mobile-view="home"] .home-daily-hero h1 { max-width: 80%; margin: 20px 0 12px; font-size: clamp(1.48rem,6.25vw,1.78rem); }
body[data-mobile-view="home"] .home-daily-advice {
  max-width: 84%;
  max-height: 3em;
  color: rgba(255,255,255,.88) !important;
  font-size: .88rem !important;
  line-height: 1.48 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body[data-mobile-view="home"] .home-daily-meta {
  margin: 0;
  position: absolute !important;
  left: 19px;
  top: 59%;
  bottom: auto;
}
body[data-mobile-view="home"] .home-daily-meta span { display: none; }
body[data-mobile-view="home"] .home-daily-meta span:nth-child(2) {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8ad58;
  font-size: .78rem;
  font-weight: 800;
}
body[data-mobile-view="home"] .home-daily-source { display: none; }
body[data-mobile-view="home"] .home-daily-source b { color: #d5a74c; font-size: .69rem; letter-spacing: .1em; }
body[data-mobile-view="home"] .home-daily-source .home-source-code,
body[data-mobile-view="home"] .home-daily-source .home-source-updated { color: rgba(255,255,255,.58); font-size: .64rem; }
body[data-mobile-view="home"] .home-almanac-detail-cta {
  width: 53.5%;
  min-height: 38px;
  margin: 0;
  position: absolute !important;
  left: 19px;
  bottom: 10%;
  padding: 7px 11px 7px 16px;
  border-radius: 14px;
  background: linear-gradient(100deg,#f8df9b,#d6a33b);
  color: #171814;
}
body[data-mobile-view="home"] .home-almanac-detail-cta small { display: none; }
body[data-mobile-view="home"] .home-almanac-detail-cta strong { font-size: .8rem; white-space: nowrap; }
body[data-mobile-view="home"] .home-detail-icon { background: transparent; color: #171814; }
body[data-mobile-view="home"] .home-action-section { gap: 17px; padding-top: 4px; border-top: 1px solid #e6ddcf; }
body[data-mobile-view="home"] .home-action-section > header { padding-top: 14px; padding-left: 14px; position: relative; }
body[data-mobile-view="home"] .home-action-section > header::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 13px auto 0 0;
  background: #c4932f;
}
body[data-mobile-view="home"] .home-action-section > header strong { font-size: 1.12rem; }
body[data-mobile-view="home"] .home-primary-actions { grid-template-columns: 1fr; gap: 13px; }
body[data-mobile-view="home"] .home-primary-action {
  min-height: 48px;
  padding: 7px 16px;
  grid-template-columns: 42px minmax(0,1fr) 18px;
  border: 1px solid var(--approved-line);
  border-radius: 17px;
  background: transparent;
  box-shadow: none;
}
body[data-mobile-view="home"] .home-primary-action::after { content: '›'; color: #242720; font-size: 1.7rem; line-height: 1; }
body[data-mobile-view="home"] .home-primary-action.is-primary { border-color: transparent; background: linear-gradient(100deg,#f7ead2,#fffaf1); }
body[data-mobile-view="home"] .home-primary-action i { width: 30px; height: 30px; background: transparent; color: #171a17; }
body[data-mobile-view="home"] .home-primary-action strong { font-size: .9rem; }
body[data-mobile-view="home"] .home-primary-action small { display: none; }
body[data-mobile-view="home"] .home-passport-status {
  min-height: 74px;
  padding: 14px 12px 14px 16px;
  grid-template-columns: minmax(0,1fr) auto;
  border-width: 1px 0;
  border-color: #e6ddcf;
  border-radius: 0;
  background: transparent;
}
body[data-mobile-view="home"] .home-passport-status > i { display: none; }
body[data-mobile-view="home"] .home-passport-eyebrow { padding-left: 11px; position: relative; color: #171a17 !important; }
body[data-mobile-view="home"] .home-passport-eyebrow::before { content:''; width:3px; position:absolute; inset:0 auto -24px 0; background:#c4932f; }
body[data-mobile-view="home"] .home-passport-eyebrow em { display: none; }
body[data-mobile-view="home"] .home-passport-code { padding-left: 11px; color: #757a84 !important; }
body[data-mobile-view="home"] .home-passport-updated { display: none !important; }
body[data-mobile-view="home"] .home-passport-action { color: #29964f; font-size: 0; font-weight: 900; }
body[data-mobile-view="home"] .home-passport-status.is-linked .home-passport-action::before { content: '●  เชื่อมแล้ว'; font-size: .76rem; }
body[data-mobile-view="home"] .home-service-section { margin-top: 84px; }

body[data-mobile-view="calendar"] .mock-page.app-mobile-page.calendar-app-page {
  padding-inline: 0 !important;
  background: var(--approved-paper);
}
body[data-mobile-view="calendar"] #messages {
  padding-top: 8px !important;
  padding-inline: 0 !important;
  background: var(--approved-paper);
}
body[data-mobile-view="calendar"] .calendar-page { padding: 18px 16px 34px; background: transparent; }
body[data-mobile-view="calendar"] .calendar-page-head {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 170px;
  align-items: end;
  gap: 14px;
}
body[data-mobile-view="calendar"] .calendar-page-head > div:first-child { padding-left: 14px; position: relative; }
body[data-mobile-view="calendar"] .calendar-page-head > div:first-child::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 3px auto 3px 0;
  background: #c4932f;
}
body[data-mobile-view="calendar"] .calendar-page-head > div:first-child > span { display: none; }
body[data-mobile-view="calendar"] .calendar-page-head h1 { margin: 0; color: #171a17; font-size: 1.4rem; line-height: 1.25; }
body[data-mobile-view="calendar"] .calendar-page-head p { margin: 3px 0 0; color: #747068; font-size: .78rem; line-height: 1.45; }
body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented { width: 170px; margin: 0; }
body[data-mobile-view="calendar"] .calendar-shell {
  padding: 16px 12px 14px;
  gap: 12px;
  border: 1px solid #d9c39a;
  border-radius: 25px;
  background: rgba(255,255,255,.5);
  box-shadow: none;
}
body[data-mobile-view="calendar"] .calendar-toolbar strong { font-size: 1.35rem; }
body[data-mobile-view="calendar"] .calendar-toolbar span { display: none; }
body[data-mobile-view="calendar"] .calendar-month-overview { border-color: #e4d7c1; border-radius: 16px; background: transparent; }
body[data-mobile-view="calendar"] .calendar-month-overview > p,
body[data-mobile-view="calendar"] .calendar-month-overview > small { display: none; }
body[data-mobile-view="calendar"] .calendar-overview-stats > div { min-height: 64px; }
body[data-mobile-view="calendar"] .calendar-weekdays,
body[data-mobile-view="calendar"] .calendar-grid { gap: 4px; }
body[data-mobile-view="calendar"] .calendar-day { min-height: 40px; padding: 6px; border-radius: 12px; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-highlight { background: #e7f4ea; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-balanced { background: #fff3cb; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-caution { background: #f9e3e2; }
body[data-mobile-view="calendar"] .calendar-help { padding-top: 2px; }
body[data-mobile-view="calendar"] .calendar-help p { display: none; }
body[data-mobile-view="calendar"] .calendar-selected-summary {
  min-height: 70px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(100deg,#f6ead7,#fffaf3);
}
body[data-mobile-view="calendar"] .calendar-selected-summary small { display: none; }
body[data-mobile-view="calendar"] .calendar-selected-summary strong { font-size: 1.04rem; }
body[data-mobile-view="calendar"] .calendar-selected-summary em { font-size: .76rem; }
body[data-mobile-view="calendar"] .calendar-source-status {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #777b83;
  font-size: .72rem;
}
body[data-mobile-view="calendar"] .calendar-source-status i { width: 7px; height: 7px; border-radius: 50%; background: #20a94f; }
body[data-mobile-view="calendar"] .calendar-source-status strong { color: #209746; }

@media (max-width: 390px) {
  body[data-mobile-view="home"] .mock-page.app-mobile-page.home-app-page,
  body[data-mobile-view="calendar"] .calendar-page { padding-inline: 14px !important; }
  body[data-mobile-view="home"] .mock-page.app-mobile-page.home-app-page { padding-inline: 0 !important; }
  body[data-mobile-view="home"] .home-daily-hero { min-height: 0; padding: 18px 18px 15px; }
  body[data-mobile-view="home"] .home-daily-score { top: 18px; right: 18px; }
  body[data-mobile-view="home"] .home-daily-meta { left: 18px; }
  body[data-mobile-view="home"] .home-almanac-detail-cta { left: 18px; }
  body[data-mobile-view="calendar"] .calendar-weekdays,
  body[data-mobile-view="calendar"] .calendar-grid { gap: 4px; }
  body[data-mobile-view="calendar"] .calendar-day { min-height: 40px; }
}

@media (max-width: 360px) {
  body[data-mobile-view="calendar"] .calendar-page-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
  body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented { width: 100%; }
}

/* Approved calendar reference — compact editorial month view. */
body[data-mobile-view="calendar"] .calendar-page {
  gap: 20px;
  padding: 14px 16px 30px;
}
body[data-mobile-view="calendar"] .calendar-page-head {
  margin-bottom: 0;
  grid-template-columns: minmax(0,1fr) 164px;
  gap: 10px;
}
body[data-mobile-view="calendar"] .calendar-page-head > div:first-child {
  padding-left: 13px;
}
body[data-mobile-view="calendar"] .calendar-page-head h1 {
  font-size: 1.32rem;
}
body[data-mobile-view="calendar"] .calendar-page-head p {
  font-size: .72rem;
  white-space: nowrap;
}
body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented {
  width: 156px;
  padding: 3px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  box-sizing: border-box;
  background: linear-gradient(100deg,#f4eadb,#eee7dc);
}
body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented button {
  min-height: 34px;
  min-width: 0;
  padding-inline: 8px;
  border-radius: 10px;
  color: #6f675d;
}
body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented button.active {
  background: linear-gradient(135deg,#d6a43a,#b77c15);
  color: #fff;
  box-shadow: none;
}
body[data-mobile-view="calendar"] .calendar-shell {
  padding: 14px 10px 12px;
  gap: 10px;
  border: 1px solid #c99a3c;
  border-radius: 24px;
  background: rgba(255,255,255,.42);
}
body[data-mobile-view="calendar"] .calendar-toolbar {
  grid-template-columns: 40px minmax(0,1fr) 40px;
  gap: 8px;
}
body[data-mobile-view="calendar"] .calendar-toolbar button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 1.55rem;
}
body[data-mobile-view="calendar"] .calendar-toolbar strong {
  font-size: 1.3rem;
}
body[data-mobile-view="calendar"] .calendar-month-overview {
  min-height: 48px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e1d8ca;
  border-radius: 0;
  background: transparent;
}
body[data-mobile-view="calendar"] .calendar-overview-stats {
  min-height: 48px;
  align-items: center;
}
body[data-mobile-view="calendar"] .calendar-overview-stats > div {
  min-height: 32px;
  padding: 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid #ded4c5;
  background: transparent !important;
}
body[data-mobile-view="calendar"] .calendar-overview-stats strong {
  order: 2;
  font-size: 1.32rem;
}
body[data-mobile-view="calendar"] .calendar-overview-stats span {
  order: 1;
  color: inherit;
  font-size: .72rem;
  white-space: nowrap;
}
body[data-mobile-view="calendar"] .calendar-overview-stats .highlight { color: #23734c; }
body[data-mobile-view="calendar"] .calendar-overview-stats .balanced { color: #9a6810; }
body[data-mobile-view="calendar"] .calendar-overview-stats .caution { color: #a23b3b; }
body[data-mobile-view="calendar"] .calendar-weekdays,
body[data-mobile-view="calendar"] .calendar-grid {
  gap: 3px;
}
body[data-mobile-view="calendar"] .calendar-weekdays span {
  padding: 5px 0;
  font-size: .68rem;
}
body[data-mobile-view="calendar"] .calendar-day {
  min-height: 42px;
  aspect-ratio: auto;
  padding: 0;
  place-content: center;
  place-items: center;
  border-radius: 10px;
}
body[data-mobile-view="calendar"] .calendar-day span {
  font-size: .94rem;
  line-height: 1;
}
body[data-mobile-view="calendar"] .calendar-day-status { display: none !important; }
body[data-mobile-view="calendar"] .calendar-day.other {
  opacity: 1;
  border-color: #ece5da;
  background: rgba(255,255,255,.2);
}
body[data-mobile-view="calendar"] .calendar-day.other span { visibility: hidden; }
body[data-mobile-view="calendar"] .calendar-day.selected,
body[data-mobile-view="calendar"] .calendar-day.selected.rhythm-highlight,
body[data-mobile-view="calendar"] .calendar-day.selected.rhythm-balanced,
body[data-mobile-view="calendar"] .calendar-day.selected.rhythm-caution {
  background: #171c19;
  color: #fff;
  outline: 0;
  box-shadow: 0 0 0 2px #c89a3d;
}
body[data-mobile-view="calendar"] .calendar-day.selected .calendar-day-status {
  background: #e7c66c;
}
body[data-mobile-view="calendar"] .calendar-help {
  min-height: 42px;
  padding: 9px 4px 0;
  gap: 0;
  border-top: 1px solid #e1d8ca;
  border-radius: 0;
  background: transparent;
}
body[data-mobile-view="calendar"] .calendar-legend {
  min-height: 22px;
  padding: 0 13px;
  gap: 7px;
  border-radius: 0;
  background: transparent !important;
  color: #4e4d48 !important;
  font-size: .66rem;
}
body[data-mobile-view="calendar"] .calendar-legend + .calendar-legend {
  border-left: 1px solid #ded4c5;
}
body[data-mobile-view="calendar"] .calendar-legend::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 5px;
}
body[data-mobile-view="calendar"] .calendar-legend.highlight::before { background: #dcefd2; }
body[data-mobile-view="calendar"] .calendar-legend.balanced::before { background: #fff0bd; }
body[data-mobile-view="calendar"] .calendar-legend.caution::before { background: #f7d5d0; }
body[data-mobile-view="calendar"] .calendar-selected-summary {
  min-height: 64px;
  margin-top: 0;
  padding: 10px 14px 10px 26px;
  position: relative;
  border-radius: 15px;
}
body[data-mobile-view="calendar"] .calendar-selected-summary::before {
  content: '';
  width: 3px;
  position: absolute;
  inset: 14px auto 14px 13px;
  background: #c4932f;
}
body[data-mobile-view="calendar"] .calendar-source-status {
  margin: 0;
}

@media (max-width: 370px) {
  body[data-mobile-view="calendar"] .calendar-page-head {
    grid-template-columns: minmax(0,1fr) 150px;
    align-items: end;
    gap: 8px;
  }
  body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented { width: 150px; }
  body[data-mobile-view="calendar"] .calendar-page-head p { font-size: .67rem; }
  body[data-mobile-view="calendar"] .calendar-legend { padding-inline: 9px; }
}

/* Daily detail — same editorial system as Home and Calendar. */
body[data-mobile-view="daily"] {
  --daily-paper: #fbf8f2;
  --daily-ink: #171a17;
  --daily-gold: #bd8b27;
  --daily-line: #dfd3c1;
}
body[data-mobile-view="daily"] #messages {
  padding-inline: 0 !important;
  background: var(--daily-paper);
}
body[data-mobile-view="daily"] .mock-page.app-mobile-page.daily-app-page {
  padding-inline: 0 !important;
  background: var(--daily-paper);
}
body[data-mobile-view="daily"] .daily-page {
  width: min(100%,430px);
  margin: 0 auto;
  padding: 18px 16px 30px;
  gap: 14px;
}
body[data-mobile-view="daily"] .daily-page-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) 156px;
  align-items: end;
  gap: 10px;
}
body[data-mobile-view="daily"] .daily-page-head > div:first-child {
  min-width: 0;
  padding-left: 13px;
  position: relative;
}
body[data-mobile-view="daily"] .daily-page-head > div:first-child::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 3px auto 3px 0;
  background: #c4932f;
}
body[data-mobile-view="daily"] .daily-page-head > div:first-child > span { display: none; }
body[data-mobile-view="daily"] .daily-page-head h1 {
  margin: 0;
  color: var(--daily-ink);
  font-size: 1.32rem;
  line-height: 1.25;
}
body[data-mobile-view="daily"] .daily-page-head p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #747068;
  font-size: .72rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-mobile-view="daily"] .daily-page-head .plan-segmented {
  width: 156px;
  padding: 3px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  box-sizing: border-box;
  background: linear-gradient(100deg,#f4eadb,#eee7dc);
}
body[data-mobile-view="daily"] .daily-page-head .plan-segmented button {
  min-width: 0;
  min-height: 34px;
  padding-inline: 8px;
  border-radius: 10px;
  color: #6f675d;
}
body[data-mobile-view="daily"] .daily-page-head .plan-segmented button.active {
  background: linear-gradient(135deg,#d6a43a,#b77c15);
  color: #fff;
  box-shadow: none;
}
body[data-mobile-view="daily"] .daily-report-card {
  min-height: 274px;
  padding: 19px 20px 16px;
  gap: 13px;
  isolation: isolate;
  border: 1.5px solid #c69227;
  border-radius: 26px;
  background: #101512;
  box-shadow: 0 16px 38px rgba(21,26,22,.1);
}
body[data-mobile-view="daily"] .daily-report-card::after {
  content: '';
  width: auto;
  height: 68%;
  position: absolute;
  inset: auto -16px -3px 16%;
  border: 0;
  border-radius: 0;
  background: url('../assets/paulpooh-ink-mountain-v1.png') right bottom / 118% auto no-repeat;
  opacity: .5;
  z-index: 0;
}
body[data-mobile-view="daily"] .daily-report-card > * { position: relative; z-index: 1; }
body[data-mobile-view="daily"] .daily-report-head { align-items: flex-start; gap: 14px; }
body[data-mobile-view="daily"] .daily-date-kicker {
  display: block;
  padding-left: 13px;
  position: relative;
  color: #ddb052;
  font-size: .7rem;
  letter-spacing: .035em;
  text-transform: none;
}
body[data-mobile-view="daily"] .daily-date-kicker::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: #e2b455;
}
body[data-mobile-view="daily"] .daily-report-head h1 {
  margin: 15px 0 0;
  color: #fff;
  font-size: clamp(1.45rem,6vw,1.72rem);
  line-height: 1.2;
}
body[data-mobile-view="daily"] .daily-score-badge {
  min-width: 76px;
  padding: 1px 0 2px 14px;
  display: grid;
  align-content: start;
  border-left: 1px solid rgba(255,255,255,.72);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
body[data-mobile-view="daily"] .daily-score-badge strong {
  color: #e5b958;
  font-family: Georgia,serif;
  font-size: 2.05rem;
}
body[data-mobile-view="daily"] .daily-score-badge span {
  display: block;
  order: -1;
  margin-bottom: 3px;
  color: rgba(255,255,255,.74);
  font-size: .68rem;
  white-space: nowrap;
}
body[data-mobile-view="daily"] .daily-verdict {
  margin: 0;
  max-width: 86%;
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  line-height: 1.55;
}
body[data-mobile-view="daily"] .daily-meta-row { margin-top: 1px; gap: 8px; }
body[data-mobile-view="daily"] .daily-meta-row span {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8ad58;
  font-size: .75rem;
  font-weight: 800;
}
body[data-mobile-view="daily"] .daily-meta-row span + span::before {
  content: '·';
  margin-right: 8px;
  color: rgba(255,255,255,.42);
}
body[data-mobile-view="daily"] .daily-source-proof {
  margin-top: auto;
  padding-top: 10px;
  grid-template-columns: 8px minmax(0,1fr);
  gap: 8px;
  border-top-color: rgba(255,255,255,.16);
}
body[data-mobile-view="daily"] .daily-source-proof > span {
  width: 8px;
  height: 8px;
  overflow: hidden;
  border-radius: 50%;
  background: #35a561;
  color: transparent;
}
body[data-mobile-view="daily"] .daily-source-proof strong {
  color: #d5aa52;
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body[data-mobile-view="daily"] .daily-source-proof small {
  margin-top: 1px;
  color: rgba(255,255,255,.58);
  font-size: .66rem;
}
body[data-mobile-view="daily"] .daily-section {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--daily-line);
  border-radius: 20px;
  background: rgba(255,255,255,.48);
  box-shadow: none;
}
body[data-mobile-view="daily"] .daily-section > header {
  min-height: 57px;
  padding: 11px 15px;
  border-bottom: 1px solid #e6ddcf;
  background: transparent;
}
body[data-mobile-view="daily"] .daily-section header strong {
  color: var(--daily-ink);
  font-size: .98rem;
}
body[data-mobile-view="daily"] .daily-section header p {
  margin-top: 2px;
  color: #777168;
  font-size: .72rem;
}
body[data-mobile-view="daily"] .daily-time-best {
  min-height: 65px;
  margin: 0;
  padding: 12px 15px;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 12px;
  border-radius: 0;
  background: linear-gradient(100deg,#edf7ef,#f8fbf7);
  color: #23734c;
  text-align: left;
}
body[data-mobile-view="daily"] .daily-time-best > span {
  font-size: .77rem;
  line-height: 1.4;
}
body[data-mobile-view="daily"] .daily-time-best > b {
  font-size: 1.05rem;
  line-height: 1.25;
  white-space: nowrap;
}
body[data-mobile-view="daily"] .daily-time-planner {
  min-height: 44px;
  margin: 0;
  padding: 0 15px;
  justify-content: space-between;
  border-top: 1px solid #e6ddcf;
  color: #79591c;
  font-size: .78rem;
  text-decoration: none;
}
body[data-mobile-view="daily"] .daily-chat-cta {
  padding: 14px 15px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  border: 0;
  border-radius: 19px;
  background: linear-gradient(100deg,#f6ead7,#fffaf3);
}
body[data-mobile-view="daily"] .daily-chat-cta > div > span {
  margin-bottom: 2px;
  color: #9b711f;
  font-size: .64rem;
}
body[data-mobile-view="daily"] .daily-chat-cta strong {
  color: var(--daily-ink);
  font-size: .96rem;
}
body[data-mobile-view="daily"] .daily-chat-cta p {
  margin-top: 2px;
  color: #746f67;
  font-size: .7rem;
  line-height: 1.45;
}
body[data-mobile-view="daily"] .daily-chat-cta button {
  min-height: 44px;
  align-self: center;
  padding: 0 13px;
  border-radius: 14px;
  background: #171c19;
  font-size: .72rem;
  white-space: nowrap;
}
body[data-mobile-view="daily"] .daily-error {
  min-height: 260px;
  padding: 24px 20px;
  border-color: var(--daily-line);
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  box-shadow: none;
}
body[data-mobile-view="daily"] .daily-error a,
body[data-mobile-view="daily"] .daily-error button { min-height: 44px; }

@media (max-width: 390px) {
  body[data-mobile-view="daily"] .daily-page { padding-inline: 14px; }
  body[data-mobile-view="daily"] .daily-chat-cta { grid-template-columns: 1fr; }
  body[data-mobile-view="daily"] .daily-chat-cta button { width: 100%; }
}

@media (max-width: 350px) {
  body[data-mobile-view="daily"] .daily-page-head { grid-template-columns: minmax(0,1fr) 144px; gap: 8px; }
  body[data-mobile-view="daily"] .daily-page-head .plan-segmented { width: 144px; }
  body[data-mobile-view="daily"] .daily-time-best { grid-template-columns: 1fr; gap: 4px; }
}

/* System theme audit — shared editorial controls and compact account surfaces. */
.library-passport-section .library-section-head > .library-manage-link {
  min-width: 0;
  min-height: 44px;
  padding: 0 2px 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #815d18;
  box-shadow: none;
  font: inherit;
  font-size: .8125rem;
  font-weight: 850;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

.library-passport-section .library-section-head > .library-manage-link::after {
  content: none;
  margin-left: 5px;
  font-size: 1.25rem;
  font-weight: 500;
}

.library-passport-section .library-section-head > .library-manage-link:active {
  background: #f4eee3;
}

body[data-mobile-view="daily"] .daily-report-head h1 {
  font-size: clamp(1.35rem, 5.8vw, 1.65rem);
  letter-spacing: -.015em;
}

@media (max-width: 390px) {
  body[data-mobile-view="daily"] .daily-page,
  body[data-mobile-view="calendar"] .calendar-page {
    padding-top: 14px;
  }

  .library-passport-section .library-section-head {
    align-items: center;
  }
}

/* My Library — premium collection surface */
body[data-mobile-view="library"] .messages {
  background: #f5f1e9;
}

body[data-mobile-view="library"] .mock-page.library-app-page {
  padding: 16px 16px calc(var(--mobile-tabbar-offset, 96px) + 28px);
  background: #f5f1e9;
}

.library-page {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.library-hero {
  position: relative;
  min-height: 238px;
  padding: 28px 24px 22px;
  overflow: hidden;
  border-radius: 28px;
  background: #12110f;
  color: #fffaf0;
  margin-bottom: 8px;
}

.library-hero::before,
.library-hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(213, 179, 103, .18);
  border-radius: 50%;
  pointer-events: none;
}

.library-hero::before { width: 220px; height: 220px; right: -94px; top: -112px; }
.library-hero::after { width: 128px; height: 128px; right: -48px; top: -50px; }

.library-hero > span {
  position: relative;
  z-index: 1;
  color: #d6b66f;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.library-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.22;
  letter-spacing: -.025em;
}

.library-hero > p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0;
  color: rgba(255, 250, 240, .66);
  font-size: .78rem;
  line-height: 1.65;
}

.library-hero-stats {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.library-hero-stats > div {
  min-width: 0;
  padding: 0 13px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.library-hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.library-hero-stats strong { display: block; color: #f1d58f; font-size: 1.18rem; line-height: 1.15; }
.library-hero-stats span { display: block; margin-top: 3px; color: rgba(255, 250, 240, .6); font-size: .66rem; line-height: 1.35; }

.library-membership-entry { margin: 0; }
.library-membership-entry > button {
  min-height: 106px;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 15px;
  padding: 19px 20px;
  border: 1px solid #d8c59f;
  border-radius: 24px;
  background: #eee4d1;
  color: #181511;
  box-shadow: none;
}
.library-membership-entry .library-membership-seal {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}
.library-membership-entry small { color: #8a6420; font-size: .62rem; letter-spacing: .13em; }
.library-membership-entry strong { margin-top: 3px; color: #181511; font-size: 1.15rem; }
.library-membership-entry em { margin-top: 2px; color: #766b5c; font-size: .75rem; }
.library-membership-entry button > b { color: #8a6420; font-size: 1.2rem; font-weight: 600; }

.library-section {
  padding: 22px 2px 24px;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid #ded5c7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.library-section-head {
  min-height: 0;
  padding: 0;
  align-items: flex-end;
  border: 0;
}
.library-section-head span,
.library-section-kicker,
.benefit-wallet-head span {
  color: #9a711e;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.library-section-head strong,
.benefit-wallet-head strong {
  margin-top: 4px;
  color: #1b1814;
  font-size: 1.18rem;
  line-height: 1.3;
}
.library-text-action,
.library-section-head .mock-btn,
.library-passport-section .library-section-head > .library-manage-link {
  min-height: 44px;
  padding: 0 2px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #7d5c1d;
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.library-text-action b { font-size: 1rem; }

.library-passport-section { padding: 22px 2px 24px; border: 0; border-bottom: 1px solid #ded5c7; border-radius: 0; background: transparent; }
.library-passport-section .library-section-head { margin: 0; padding: 0; }
.library-passport-head-actions { display: flex; align-items: center; gap: 5px; }
.library-passport-add {
  min-height: 38px;
  padding: 0 11px 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d5c49f;
  border-radius: 999px;
  background: #f4ead6;
  color: #72541a;
  font-size: .69rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.library-passport-add > i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #17140f;
  color: #f0d18b;
  font: normal 1rem/1 system-ui, sans-serif;
}
.library-passport-head-actions .library-manage-link {
  width: auto;
  min-height: 40px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #836e4d;
  font-size: .68rem;
  font-weight: 800;
  text-decoration: none;
}
.library-passport-row {
  min-height: 150px;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 17px;
  padding: 15px;
  border: 1px solid #e8dece;
  border-radius: 20px;
  background: #f8f3e9;
}
.library-passport-row + .library-passport-row { margin-top: 10px; }
.library-passport-cover { width: 84px; height: 116px; }
.library-passport-copy > small { color: #8a6420; }
.library-passport-copy > strong { font-size: 1.15rem; }
.library-passport-actions { top: 12px; right: 12px; }
.library-passport-actions b { background: #e4efe5; color: #2d7048; }
.library-passport-empty { padding: 22px 0 4px; }
.library-passport-empty > a {
  min-height: 44px;
  margin-top: 14px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  background: #17140f;
  color: #fffaf0;
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
}

.benefit-wallet { padding: 22px 2px 24px; gap: 15px; }
.benefit-wallet-head { align-items: flex-end; }
.benefit-wallet-head small { color: #756d62; font-size: .7rem; }
.benefit-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wallet-card {
  min-height: 168px;
  padding: 15px;
  gap: 8px;
  border-width: 1px;
  border-top-width: 1px;
  border-radius: 18px;
  background: #faf6ee;
  box-shadow: none;
}
.wallet-card h3 { font-size: .95rem; }
.wallet-card p { font-size: .72rem; }
.wallet-card button { min-height: 44px; border-radius: 12px; }
.wallet-empty {
  min-height: 112px;
  padding: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #e8dece;
  border-radius: 18px;
  background: #faf6ee;
  color: #776f64;
}

.library-service-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #e3dacd;
}
.library-service-grid .library-row {
  min-height: 78px;
  padding: 12px 2px;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #e3dacd;
  border-radius: 0;
  background: transparent;
}
.library-service-grid .library-item-icon {
  width: 42px;
  height: 42px;
  grid-row: 1;
  border-radius: 12px;
  background: #eee3cf;
  color: #80601f;
}
.library-service-grid .library-item-icon.dark,
.library-service-grid .library-item-icon.gold,
.library-service-grid .library-item-icon.blue,
.library-service-grid .library-item-icon.red { background: #eee3cf; color: #80601f; }
.library-service-grid .library-item-icon svg { width: 20px; height: 20px; }
.library-service-grid .library-item-copy { grid-column: 2; grid-row: 1; gap: 3px; }
.library-service-grid .library-item-copy > span { display: none; }
.library-service-grid .library-item-copy strong { color: #1b1814; font-size: .86rem; }
.library-service-grid .library-item-copy p { color: #777064; font-size: .68rem; -webkit-line-clamp: 2; }
.library-service-grid .library-row-action { grid-column: 3; grid-row: 1; align-self: center; color: #9a711e; font-size: 1.05rem; }

.library-purchases .library-item-list { border-top: 1px solid #e8dece; }
.library-purchases .library-row { padding-inline: 0; background: transparent; border-color: #e8dece; }
.library-purchases .library-product-thumb { border-radius: 14px; background: #eee3cf; }
.library-empty-state {
  min-height: 142px;
  padding: 18px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #e8dece;
  border-radius: 18px;
  background: #faf6ee;
}
.library-empty-state > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #eee3cf; color: #80601f; }
.library-empty-state > i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.library-empty-state strong { color: #1b1814; }
.library-empty-state p { color: #777064; font-size: .73rem; }
.library-empty-state .library-text-action { grid-column: 2; width: max-content; padding-left: 0; }

.library-page button:focus-visible,
.library-page a:focus-visible { outline: 3px solid rgba(154, 113, 30, .34); outline-offset: 3px; }

@media (max-width: 560px) {
  .benefit-wallet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  body[data-mobile-view="library"] .mock-page.library-app-page { padding-inline: 12px; }
  .library-hero { min-height: 226px; padding: 24px 20px 20px; border-radius: 24px; }
  .library-hero-stats > div { padding-inline: 9px; }
  .library-membership-entry > button { grid-template-columns: 54px minmax(0, 1fr) auto; padding: 17px; }
  .library-membership-entry .library-membership-seal { width: 54px; height: 54px; }
  .library-section, .library-passport-section, .benefit-wallet { padding: 20px 2px 22px; }
  .library-passport-add { width: 38px; padding: 0; justify-content: center; }
  .library-passport-add > span { display: none; }
  .library-passport-add > i { background: transparent; color: #72541a; }
  .library-service-grid .library-row { min-height: 78px; }
  .library-passport-row { grid-template-columns: 74px minmax(0, 1fr); }
  .library-passport-cover { width: 74px; height: 102px; }
}

/* public/css/app-shell.css */
/*
 * Customer App Shell — the single source of truth for global app chrome.
 * Page themes belong in plan-v2.css; do not redefine these components there.
 */

/* LINE Seed Sans TH by LY Corp., licensed under SIL Open Font License 1.1. */
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-sans-th/LINESeedSansTH_W_Rg.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-sans-th/LINESeedSansTH_W_Bd.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-sans-th/LINESeedSansTH_W_XBd.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('/assets/fonts/line-seed-sans-th/LINESeedSansTH_W_He.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --app-font-sans: 'LINE Seed Sans TH', 'Noto Sans Thai', system-ui, sans-serif;
  --app-shell-topbar-desktop: 64px;
  --app-shell-topbar-mobile: 68px;
  --app-shell-bottom-nav: 67px;
  --app-shell-touch-target: 44px;
  --app-shell-space-1: 4px;
  --app-shell-space-2: 8px;
  --app-shell-space-3: 12px;
  --app-shell-space-4: 16px;
  --app-shell-radius-control: 14px;
  --app-shell-radius-card: 20px;
  --app-shell-radius-pill: 999px;
  --app-shell-line: #e7e1d7;
  --app-shell-surface: #ffffff;
  --app-shell-surface-soft: #fbfaf7;
  --app-shell-ink: #171512;
  --app-shell-muted: #706a60;
  --app-shell-gold: #a87618;
  --app-shell-focus: #9a6b0b;
  --app-shell-shadow: 0 18px 44px rgba(36, 29, 20, .12);
  --app-type-display: 1.75rem;
  --app-type-page-title: 1.5rem;
  --app-type-section-title: 1.25rem;
  --app-type-card-title: 1.0625rem;
  --app-type-body: 1rem;
  --app-type-support: .875rem;
  --app-type-caption: .8125rem;
  --app-type-micro: .75rem;
  --app-line-heading: 1.4;
  --app-line-body: 1.65;
  --app-line-compact: 1.5;
}

html {
  font-size: 100%;
  font-family: var(--app-font-sans);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--app-font-sans);
  font-size: var(--app-type-body);
  line-height: var(--app-line-body);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Topbar */
.wide-primary-nav { display: none; }

@media (min-width: 761px) {
  body:not(.mobile-preview-mode) { --sidebar-width: clamp(180px, 19vw, 244px); }
  body:not(.mobile-preview-mode) .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  body:not(.mobile-preview-mode) #sidebar {
    position: static;
    transform: none;
    transition: none;
    width: auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 12px;
  }
  body:not(.mobile-preview-mode) .app-shell:has(.login-view:not(.hidden)) { grid-template-columns: minmax(0, 1fr); }
  body:not(.mobile-preview-mode) .app-shell:has(.login-view:not(.hidden)) #sidebar,
  body:not(.mobile-preview-mode) #close-sidebar,
  body:not(.mobile-preview-mode) #app-topbar #menu-btn,
  body:not(.mobile-preview-mode) #sidebar-backdrop { display: none; }
  body:not(.mobile-preview-mode) .plan-mobile-tabbar { display: none !important; }
  body:not(.mobile-preview-mode) #sidebar .side-section { flex: 1 0 110px; }
  body:not(.mobile-preview-mode) #sidebar > :not(.side-section) { flex-shrink: 0; }
  body:not(.mobile-preview-mode) #sidebar .empty-session-card strong { white-space: normal; overflow-wrap: anywhere; }
  body:not(.mobile-preview-mode) .wide-primary-nav { display: grid; gap: 4px; }
  .wide-primary-nav button {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--app-shell-ink);
    font: inherit;
    font-size: .9375rem;
    text-align: start;
    cursor: pointer;
  }
  .wide-primary-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .wide-primary-nav button:hover { background: #f1ece0; }
  .wide-primary-nav button[aria-current="page"] { background: #f5ecd9; border-color: #e0cfad; color: #634719; font-weight: 700; }
  .wide-primary-nav button:focus-visible { outline: 2px solid var(--app-shell-focus); outline-offset: 2px; }
}

#app-topbar.topbar {
  min-height: var(--app-shell-topbar-desktop);
  height: var(--app-shell-topbar-desktop);
  flex-basis: var(--app-shell-topbar-desktop);
  padding: 0 18px;
  border-bottom: 1px solid var(--app-shell-line);
  background: rgba(255, 255, 255, .96);
  color: var(--app-shell-ink);
}

#app-topbar .topbar-copy,
#app-topbar .topbar-text {
  min-width: 0;
}

#app-topbar .topbar-text {
  display: grid;
  align-content: center;
  gap: 1px;
}

#app-topbar #topbar-title {
  color: var(--app-shell-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

#app-topbar:is(.home-topbar, .chat-topbar) #topbar-title {
  font-size: 16px;
}

#app-topbar #user-label,
#app-topbar .topbar-tagline {
  color: var(--app-shell-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-topbar .topbar-tagline { display: none; }
#app-topbar:is(.home-topbar, .chat-topbar) #user-label { display: none; }
#app-topbar:is(.home-topbar, .chat-topbar) .topbar-tagline { display: block; }

#app-topbar .topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--app-shell-space-2);
  min-width: 0;
}

/* Benefit shortcut */
#app-topbar .benefit-shortcut {
  min-height: 40px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ddc68c;
  border-radius: var(--app-shell-radius-pill);
  background: #fff9e9;
  color: #6e4b0c;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(168, 118, 24, .08);
}

#app-topbar .benefit-shortcut span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: var(--app-shell-gold);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

#app-topbar .benefit-shortcut b {
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

/* Account trigger and menu */
.account-menu-details {
  position: relative;
  flex: 0 0 auto;
}

.account-menu-details > summary { list-style: none; }
.account-menu-details > summary::-webkit-details-marker { display: none; }

#app-topbar .account-menu-btn {
  position: relative;
  z-index: 2;
  min-height: 40px;
  border-color: var(--app-shell-line);
  background: var(--app-shell-surface);
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

#app-topbar .account-menu {
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  gap: 4px;
  border: 1px solid var(--app-shell-line);
  border-radius: var(--app-shell-radius-card);
  background: var(--app-shell-surface);
  box-shadow: var(--app-shell-shadow);
  visibility: hidden;
  pointer-events: none;
}

#app-topbar .account-menu.open {
  display: grid !important;
  visibility: visible;
  pointer-events: auto;
}

#app-topbar .account-menu-details[open] > .account-menu {
  display: grid !important;
  visibility: visible;
  pointer-events: auto;
}

#app-topbar .account-menu-head {
  padding: 9px 10px 12px;
  border-bottom-color: var(--app-shell-line);
}

#app-topbar .account-menu-action {
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 10px;
  border-radius: var(--app-shell-radius-control);
}

#app-topbar .account-menu-action:hover { background: #faf8f3; }
#app-topbar .account-menu-action > span:last-child { min-width: 0; margin: 0; }
#app-topbar .account-menu-action strong { font-size: 14px; line-height: 1.35; }
#app-topbar .account-menu-action strong + span { margin-top: 3px; color: var(--app-shell-muted); font-size: 12px; line-height: 1.45; }

#app-topbar .account-menu-glyph {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 12px;
  background: #f4f0e8;
  color: #5b4c31;
}

#app-topbar .account-menu-glyph svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared controls */
.mock-btn,
.primary-btn,
.secondary-btn {
  min-height: var(--app-shell-touch-target);
  border-radius: var(--app-shell-radius-control);
  padding-inline: var(--app-shell-space-4);
}

.mock-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
#app-topbar button:focus-visible,
#app-topbar summary:focus-visible,
.plan-mobile-tabbar button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--app-shell-focus) 45%, transparent);
  outline-offset: 2px;
}

/* Global loading state */
.app-loading-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(251, 250, 247, .76);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.app-loading-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-loading-card {
  width: min(230px, calc(100vw - 48px));
  min-height: 190px;
  padding: 25px 22px 22px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--app-shell-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  color: var(--app-shell-ink);
  text-align: center;
  box-shadow: 0 24px 60px rgba(50, 35, 22, .16);
}

.app-loading-mark {
  width: 64px;
  height: 64px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
}

.app-loading-mark::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 3px solid #f0e8df;
  border-top-color: var(--app-shell-gold);
  border-right-color: #c90018;
  border-radius: 50%;
  animation: appShellLoadingSpin .85s linear infinite;
}

.app-loading-mark img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; }
.app-loading-card strong { font-size: 16px; line-height: 1.35; }
.app-loading-card p { margin: -3px 0 0; color: var(--app-shell-muted); font-size: 11px; }

.app-boot-shell {
  width: min(720px, calc(100% - 32px));
  margin: clamp(20px, 7vh, 64px) auto 0;
  display: grid;
  gap: 14px;
}
.app-boot-card {
  min-height: 250px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 13px;
  border: 1px solid var(--app-shell-line);
  border-radius: 26px;
  background: #f7f5f1;
}
.app-boot-line,
.app-boot-grid span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #ebe7df 25%, #f7f5f1 50%, #ebe7df 75%);
  background-size: 200% 100%;
  animation: appBootShimmer 1.25s ease-in-out infinite;
}
.app-boot-line { width: 76%; height: 13px; }
.app-boot-line.is-title { width: 48%; height: 24px; }
.app-boot-line.is-short { width: 58%; }
.app-boot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-boot-grid span { min-height: 82px; border-radius: 18px; }
.app-boot-shell > p { margin: 0; color: var(--app-shell-muted); font-size: var(--app-type-support); text-align: center; }
@keyframes appBootShimmer { to { background-position: -200% 0; } }
@keyframes appShellLoadingSpin { to { transform: rotate(360deg); } }

/* Bottom navigation */
body[data-mobile-view="calendar"] .plan-mobile-tabbar [data-mobile-tab="calendar"],
body[data-mobile-view="daily"] .plan-mobile-tabbar [data-mobile-tab="calendar"],
body[data-mobile-view="dateFinder"] .plan-mobile-tabbar [data-mobile-tab="calendar"],
body[data-mobile-view="bazi"] .plan-mobile-tabbar [data-mobile-tab="bazi"],
body[data-mobile-view="monthly"] .plan-mobile-tabbar [data-mobile-tab="bazi"],
body[data-mobile-view="oracle"] .plan-mobile-tabbar [data-mobile-tab="home"] {
  color: #111827;
  background: #f3f4f6;
}

body[data-mobile-view="calendar"] .plan-mobile-tabbar [data-mobile-tab="calendar"] .tab-icon,
body[data-mobile-view="daily"] .plan-mobile-tabbar [data-mobile-tab="calendar"] .tab-icon,
body[data-mobile-view="dateFinder"] .plan-mobile-tabbar [data-mobile-tab="calendar"] .tab-icon,
body[data-mobile-view="bazi"] .plan-mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
body[data-mobile-view="monthly"] .plan-mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
body[data-mobile-view="oracle"] .plan-mobile-tabbar [data-mobile-tab="home"] .tab-icon {
  background: #111827;
  color: #fff;
}

@media (max-width: 760px) {
  :root { --mobile-tabbar-height: var(--app-shell-bottom-nav); }

  #app-topbar.topbar {
    min-height: var(--app-shell-topbar-mobile) !important;
    height: var(--app-shell-topbar-mobile) !important;
    flex-basis: var(--app-shell-topbar-mobile) !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: var(--app-shell-space-2) !important;
    padding: 0 10px !important;
  }

  /* App pages hide the menu trigger, so they must also release its grid column. */
  #app-topbar.app-page-topbar:not(.home-topbar) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-inline: 14px 10px !important;
  }

  #app-topbar.app-page-topbar:not(.home-topbar) .topbar-copy {
    width: auto !important;
    min-width: 0 !important;
  }

  #app-topbar.home-topbar #menu-btn { display: grid !important; }
  #app-topbar:is(.home-topbar, .chat-topbar) #topbar-title { font-size: 16px !important; }
  #app-topbar .topbar-tagline { font-size: clamp(10px, 2.8vw, 11px); font-weight: 700; line-height: 1.65; }
  #app-topbar .topbar-right { gap: 6px; }

  #app-topbar .benefit-shortcut {
    min-width: 82px;
    min-height: 42px;
    padding: 0 10px 0 7px;
  }

  #app-topbar .benefit-shortcut b { font-size: 10px; }

  #app-topbar .account-menu-btn {
    width: var(--app-shell-touch-target) !important;
    min-width: var(--app-shell-touch-target) !important;
    max-width: var(--app-shell-touch-target) !important;
    height: var(--app-shell-touch-target) !important;
    min-height: var(--app-shell-touch-target) !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: 0 3px 12px rgba(29, 24, 18, .1) !important;
  }

  #app-topbar .account-menu-btn::before {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background-position: center !important;
    background-size: cover !important;
  }

  #app-topbar .account-menu-btn::after { display: none !important; }
  #app-topbar .account-menu {
    position: fixed !important;
    top: calc(var(--app-shell-topbar-mobile) + 8px) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - var(--app-shell-topbar-mobile) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1000;
  }

  .plan-mobile-tabbar {
    min-height: var(--app-shell-bottom-nav) !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    padding: 8px calc(7px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(7px + env(safe-area-inset-left, 0px)) !important;
  }

  .plan-mobile-tabbar button {
    min-height: 50px !important;
    padding: 5px 3px !important;
    border-radius: 17px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
  }

  .plan-mobile-tabbar .tab-icon { width: 24px !important; height: 24px !important; border-radius: 10px !important; }
  .plan-mobile-tabbar svg.tab-icon { padding: 5px !important; }
  .composer { bottom: calc(var(--app-shell-bottom-nav) + 6px + env(safe-area-inset-bottom, 0px)) !important; }
  .chat-view.composer-hidden .messages { padding-bottom: calc(var(--app-shell-bottom-nav) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
  .mock-page { padding-bottom: calc(var(--app-shell-bottom-nav) + 26px + env(safe-area-inset-bottom, 0px)) !important; }
}

.library-passport-section .library-section-head > .library-manage-link {
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 2px 0 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--app-shell-gold) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: var(--app-type-caption) !important;
  font-weight: 850 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  text-decoration: none !important;
}

.library-passport-section .library-section-head > .library-manage-link::after {
  content: none !important;
  margin-left: 5px;
  color: currentColor;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.library-passport-section .library-section-head > .library-manage-link > span[aria-hidden] {
  display: inline !important;
  margin-left: 5px;
  color: currentColor !important;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.library-passport-section .library-section-head > .library-manage-link > .library-manage-label {
  display: inline !important;
  color: currentColor !important;
  font: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.library-passport-section .library-section-head > .library-manage-link:focus-visible {
  outline: 2px solid rgba(168, 118, 24, .38) !important;
  outline-offset: 2px !important;
}

@media (max-width: 380px) {
  #app-topbar .benefit-shortcut {
    width: var(--app-shell-touch-target);
    min-width: var(--app-shell-touch-target);
    padding: 0;
  }

  #app-topbar .benefit-shortcut b { display: none; }
}

@media (min-width: 761px) {
  body.mobile-preview-mode #app-topbar.topbar {
    min-height: var(--app-shell-topbar-mobile) !important;
    height: var(--app-shell-topbar-mobile) !important;
    flex-basis: var(--app-shell-topbar-mobile) !important;
  }

  body.mobile-preview-mode #app-topbar:is(.home-topbar, .chat-topbar) #topbar-title {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-backdrop { transition: none; }
  .app-loading-mark::before,
  .app-boot-line,
  .app-boot-grid span { animation: none; }
}

/* Authentication is a real customer state, never a visually hidden placeholder. */
.login-view {
  flex: 1;
  min-height: 0;
  display: grid !important;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: var(--app-shell-surface-soft);
}

.login-view.hidden { display: none !important; }

body:is([data-customer-journey="line_required"], [data-customer-journey="service_unavailable"]) #app-topbar .topbar-right,
body:is([data-customer-journey="line_required"], [data-customer-journey="service_unavailable"]) #app-topbar #menu-btn {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Customer typography foundation — readable Thai, browser-relative sizing. */
#app-topbar #topbar-title,
#app-topbar:is(.home-topbar, .chat-topbar) #topbar-title { font-size: var(--app-type-body) !important; line-height: var(--app-line-heading); }
#app-topbar #user-label,
#app-topbar .topbar-tagline { font-size: var(--app-type-caption) !important; line-height: var(--app-line-compact); }
#app-topbar .benefit-shortcut span,
#app-topbar .benefit-shortcut b { font-size: var(--app-type-micro); }
#app-topbar .account-menu-title { font-size: var(--app-type-body); }
#app-topbar .account-menu-copy { font-size: var(--app-type-support); line-height: var(--app-line-compact); }
#app-topbar .account-menu-action strong { font-size: .9375rem; line-height: var(--app-line-heading); }
#app-topbar .account-menu-action strong + span { font-size: var(--app-type-support); line-height: var(--app-line-compact); }
.app-loading-card strong { font-size: var(--app-type-card-title); line-height: var(--app-line-heading); }
.app-loading-card p { font-size: var(--app-type-support); line-height: var(--app-line-compact); }

.home-almanac-side small,
.home-almanac-pillar small,
.home-almanac-zodiac small { font-size: var(--app-type-micro); line-height: var(--app-line-compact); }
.home-almanac-side span { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }
.home-almanac-zodiac b { font-size: var(--app-type-support); line-height: var(--app-line-heading); }
.home-almanac-summary-head strong { font-size: var(--app-type-card-title); line-height: var(--app-line-heading); }
.home-almanac-summary-head > span { font-size: var(--app-type-micro); }
.home-almanac-summary p { font-size: var(--app-type-body); line-height: var(--app-line-body); }
.home-score-pill { font-size: var(--app-type-caption); }
.home-source-meta b,
.home-source-meta small { max-width: none; font-size: var(--app-type-micro); line-height: var(--app-line-compact); }
.home-almanac-detail-cta strong { font-size: var(--app-type-body); line-height: var(--app-line-heading); }
.home-almanac-detail-cta small { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }
.home-today-loading p { font-size: var(--app-type-support); line-height: var(--app-line-body); }

.home-primary-action strong,
.home-primary-action.is-primary strong { font-size: var(--app-type-body); line-height: var(--app-line-heading); }
.home-primary-action small,
.home-primary-action.is-primary small { font-size: var(--app-type-support); line-height: var(--app-line-compact); }
body[data-mobile-view="home"] .home-primary-action small { font-size: var(--app-type-micro); }
.home-action-section > header strong,
.home-service-section > header strong { font-size: var(--app-type-card-title); line-height: var(--app-line-heading); }
.home-action-section > header span,
.home-service-section > header span,
.home-service-section > header small { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }
.home-tools-section > header strong { font-size: var(--app-type-card-title); }
.home-tools-section > header span { font-size: var(--app-type-caption); }
.home-tool-card strong { font-size: var(--app-type-support); line-height: var(--app-line-heading); }
.home-passport-status strong { font-size: var(--app-type-body); line-height: var(--app-line-heading); }
.home-passport-status small,
.home-passport-action { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }
.home-more-services > summary strong { font-size: var(--app-type-body); }
.home-more-services > summary small { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }
.home-ritual-card strong { font-size: var(--app-type-body); }
.home-ritual-card p { font-size: var(--app-type-support); line-height: var(--app-line-body); }
.home-ritual-card.has-oracle-art .home-oracle-art.is-compact,
body[data-mobile-view="home"] .home-ritual-card.has-oracle-art .home-oracle-art.is-compact,
body.mobile-preview-mode[data-mobile-view="home"] .home-ritual-card.has-oracle-art .home-oracle-art.is-compact,
.home-service-link.has-oracle-art .home-oracle-art.is-compact,
body[data-mobile-view="home"] .home-service-link.has-oracle-art .home-oracle-art.is-compact,
body.mobile-preview-mode[data-mobile-view="home"] .home-service-link.has-oracle-art .home-oracle-art.is-compact {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  margin: 0;
  aspect-ratio: 1;
}
.home-shop-link strong { font-size: .9375rem; }
.home-shop-link p { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }
.home-service-link strong { font-size: .9375rem; line-height: var(--app-line-heading); }
.home-service-link small { font-size: var(--app-type-caption); line-height: var(--app-line-compact); }

.plan-segmented button { font-size: var(--app-type-support); }
.daily-date-kicker,
.daily-score-badge span { font-size: var(--app-type-caption); }
.daily-verdict { font-size: var(--app-type-body); line-height: 1.75; }
.daily-meta-row span { font-size: var(--app-type-caption); }
.daily-section header strong { font-size: var(--app-type-section-title); }
.daily-section header p,
.daily-source-proof strong,
.daily-source-proof small { font-size: var(--app-type-caption); }
.daily-guidance-list p { font-size: .9375rem; line-height: var(--app-line-body); }
.daily-hour b { font-size: .9375rem; }
.daily-hour span,
.daily-hour p,
.daily-section-empty,
.daily-reason-list p,
.daily-reason summary small { font-size: var(--app-type-support); }
.daily-chat-cta p { font-size: .9375rem; line-height: var(--app-line-body); }

.calendar-toolbar span { font-size: var(--app-type-support); line-height: var(--app-line-compact); }
.calendar-weekdays span { font-size: var(--app-type-micro); }
.calendar-day span { font-size: .9375rem; }
.calendar-help { font-size: var(--app-type-support); line-height: var(--app-line-body); }

.plan-account-hero span,
.plan-account-status,
.plan-account-uid span,
.plan-account-section > header span { font-size: var(--app-type-caption); }
.plan-account-hero p,
.plan-account-row p { font-size: var(--app-type-support); line-height: var(--app-line-body); }
.plan-account-uid button { font-size: var(--app-type-support); }
.plan-account-row strong { font-size: var(--app-type-body); }

.customer-service-note { font-size: var(--app-type-support); line-height: var(--app-line-body); }
.customer-journey-copy > span { font-size: var(--app-type-micro); }
.customer-journey-copy > h2 { font-size: var(--app-type-card-title); line-height: var(--app-line-heading); }
.customer-journey-copy > p { font-size: .9375rem; line-height: var(--app-line-body); }

input,
textarea,
select { font-size: var(--app-type-body); }

/* Approved editorial concierge chat */
body[data-mobile-view="chat"] #messages { width:min(100%,760px); margin:0 auto; padding:18px clamp(16px,4vw,28px) 28px; align-content:start; background:#fbfaf7; }
.chat-concierge-head { margin:0 0 24px; padding:6px 2px 20px; display:grid; gap:14px; border-bottom:1px solid #e8e0d4; }
.chat-concierge-head > div:first-child > span { color:#a37c2d; font-size:.6875rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.chat-concierge-head h1 { margin:4px 0; color:#171915; font-size:clamp(1.65rem,6vw,2rem); line-height:1.14; letter-spacing:-.02em; }
.chat-concierge-head p { margin:0; color:#736d64; font-size:.8125rem; line-height:1.55; }
.chat-context-capsule { width:fit-content; max-width:100%; min-height:32px; padding:0 11px; display:flex; align-items:center; gap:7px; border-radius:999px; background:#f2eee5; color:#6e665a; font-size:.6875rem; }
.chat-context-capsule i { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:#3e9467; box-shadow:0 0 0 4px rgba(62,148,103,.1); }
body[data-mobile-view="chat"] #messages .welcome-empty { width:100%; min-height:0!important; margin:0; padding:34px 10px 18px!important; display:grid; flex:0 0 auto; place-content:start center; align-content:start!important; justify-items:center; gap:10px!important; border:0; background:transparent; box-shadow:none; text-align:center; }
body[data-mobile-view="chat"] .welcome-empty > img { width:52px; height:52px; border-radius:16px; box-shadow:0 8px 20px rgba(31,25,19,.11); }
body[data-mobile-view="chat"] .welcome-empty h1 { margin:18px 0 6px; color:#1b1d19; font-size:1.45rem; line-height:1.3; }
body[data-mobile-view="chat"] .welcome-empty p { max-width:330px; margin:0; color:#777168; font-size:.875rem; line-height:1.65; }
.chat-prompt-list { max-width:360px; margin-top:20px; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.chat-prompt-list button { min-height:40px; padding:0 15px; border:1px solid #ded4c5; border-radius:999px; background:#fff; color:#4b463f; font:inherit; font-size:.8125rem; font-weight:750; }
.chat-prompt-list button:focus-visible { outline:2px solid #9b762d; outline-offset:2px; }
body[data-mobile-view="chat"] .message-row { width:min(88%,590px); position:relative; }
body[data-mobile-view="chat"] .message-row.user { margin-left:auto; }
body[data-mobile-view="chat"] .message-row.assistant { width:min(94%,630px); margin-left:0; padding-left:42px; }
body[data-mobile-view="chat"] .message-row.assistant::before { content:''; width:30px; height:30px; position:absolute; top:3px; left:0; border:1px solid #e0d5c5; border-radius:10px; background:#fff url('../assets/ai-sinsae-paulpooh-logo-256.webp') center/cover no-repeat; }
body[data-mobile-view="chat"] .message-row.assistant::after { content:''; width:24px; height:1px; position:absolute; top:39px; left:3px; background:#bc9140; }
body[data-mobile-view="chat"] .message-content { font-size:.9375rem; line-height:1.78; }
body[data-mobile-view="chat"] .message-row.user .message-content { padding:11px 15px; border:0; border-radius:18px 18px 5px 18px; background:#1a201c; color:#fff; }
body[data-mobile-view="chat"] .message-row.assistant .message-content { padding:0 0 2px; border:0; border-radius:0; background:transparent; color:#282924; box-shadow:none; }
body[data-mobile-view="chat"] .message-time { margin-top:5px; color:#a19a91; font-size:.625rem; }
body[data-mobile-view="chat"] .message-row.assistant .message-time { text-align:left; }
@media (max-width:370px) { body[data-mobile-view="chat"] #messages { padding-inline:13px; } body[data-mobile-view="chat"] .message-row.assistant { padding-left:38px; } }

/* Approved mockup parity — concierge editorial */
body[data-mobile-view="chat"] #messages {
  padding: 22px 20px 30px;
  position: relative;
  background: #fbf8f2;
}
.chat-concierge-head {
  min-height: 152px;
  margin: 0 0 14px;
  padding: 12px 4px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.chat-concierge-head::after {
  content: '';
  width: 56%;
  height: 112px;
  position: absolute;
  right: -8%;
  bottom: -22px;
  z-index: -1;
  opacity: .16;
  background: url('../assets/paulpooh-ink-mountain-v1.png') right bottom / contain no-repeat;
}
.chat-concierge-head h1 { font-size: 1.9rem; }
.chat-concierge-head p { max-width: 350px; }
.chat-context-capsule { margin-top: 11px; background: #eee8dc; }
body[data-mobile-view="chat"] #messages .welcome-empty {
  min-height: 430px !important;
  padding: 50px 8px 24px !important;
  place-content: start center;
}
body[data-mobile-view="chat"] .welcome-empty > img { width: 54px; height: 54px; border-radius: 15px; }
body[data-mobile-view="chat"] .welcome-empty h1 { margin-top: 24px; font-size: clamp(1.55rem,6.2vw,2rem); }
body[data-mobile-view="chat"] .welcome-empty p { max-width: 390px; font-size: .9rem; }
.chat-prompt-list { margin-top: 26px; }
.chat-prompt-list button { min-width: 68px; background: #fbf8f2; }
body[data-mobile-view="chat"] .message-row.user .message-content { background: #eeeae4; color: #282923; }
body[data-mobile-view="chat"] .message-row.assistant {
  width: min(100%,630px);
  margin-left: 0;
  padding: 8px 0 !important;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: start;
  box-sizing: border-box;
}
body[data-mobile-view="chat"] .message-row.assistant::before {
  width: 36px;
  height: 36px;
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  border-radius: 50%;
}
body[data-mobile-view="chat"] .message-row.assistant::after {
  width: 2px;
  height: max(6px,calc(100% - 52px));
  top: 50px;
  left: 17px;
  background: #c79a3f;
}
body[data-mobile-view="chat"] .message-row.assistant .message-content {
  width: 100%;
  min-width: 0;
  max-width: 100% !important;
  padding: 0 !important;
  grid-column: 2;
  grid-row: 1;
}
body[data-mobile-view="chat"] .message-row.assistant .message-time {
  margin-top: 5px !important;
  padding: 0;
  grid-column: 2;
  grid-row: 2;
}

@media (max-width:390px) {
  body[data-mobile-view="chat"] #messages { padding-inline: 14px; }
  .chat-concierge-head { min-height: 138px; }
  body[data-mobile-view="chat"] #messages .welcome-empty { min-height: 390px !important; padding-top: 38px !important; }
}

/* Compact concierge rhythm — content-sized sections, no redundant prompt controls. */
body[data-mobile-view="chat"] #messages {
  padding-top: 12px;
}
body[data-mobile-view="chat"] .chat-concierge-head {
  min-height: 0;
  margin-bottom: 0;
  padding: 4px 4px 11px;
  gap: 7px;
}
body[data-mobile-view="chat"] .chat-concierge-head h1 {
  margin: 2px 0;
}
body[data-mobile-view="chat"] .chat-context-capsule {
  margin-top: 5px;
}
body[data-mobile-view="chat"] #messages .welcome-empty {
  min-height: 0 !important;
  padding: 20px 8px 14px !important;
  gap: 7px !important;
}
body[data-mobile-view="chat"] .welcome-empty h1 {
  margin: 14px 0 3px;
}
body[data-mobile-view="chat"] .chat-prompt-list {
  display: none;
}

@media (max-width:390px) {
  body[data-mobile-view="chat"] .chat-concierge-head { min-height: 0; }
  body[data-mobile-view="chat"] #messages .welcome-empty {
    min-height: 0 !important;
    padding-top: 18px !important;
  }
}

/* Approved compact merit action */
#app-topbar .benefit-shortcut span { display: none !important; }
#app-topbar .benefit-shortcut b { display: inline !important; font-size: 0 !important; }
#app-topbar .benefit-shortcut b::before { content: 'แต้มบุญ'; font-size: .75rem; }
#app-topbar .benefit-shortcut { min-width: 86px; padding-inline: 17px; justify-content: center; background: linear-gradient(100deg,#d4a743,#a97817); color:#fff; }

/* Home header measured from the approved iPhone 15 Pro Max reference. */
body[data-mobile-view="home"] #app-topbar {
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 14px;
  padding-inline: 16px;
}
body[data-mobile-view="home"] #app-topbar #menu-btn {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
body[data-mobile-view="home"] #app-topbar .benefit-shortcut {
  min-width: 80px;
  min-height: 36px;
  padding-inline: 14px;
}
body[data-mobile-view="home"] #app-topbar .account-menu-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
}

/* Native chat behavior: the composer owns the keyboard viewport. */
body[data-mobile-view="chat"] .chat-send-error-copy {
  display: block;
  color: #8f2f2f;
}

body[data-mobile-view="chat"] .chat-send-retry {
  min-height: 38px;
  width: fit-content;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid #d6c7b0;
  border-radius: 12px;
  background: #fffaf2;
  color: #6f5018;
  font-weight: 850;
}

body[data-mobile-view="chat"] .composer.is-sending #send-btn {
  cursor: wait;
}

@media (max-width: 760px), (pointer: coarse) {
  body.chat-keyboard-open[data-mobile-view="chat"] .app-shell,
  body.chat-keyboard-open[data-mobile-view="chat"] .chat-main {
    height: var(--chat-visual-viewport-height, 100dvh) !important;
  }

  body.chat-keyboard-open[data-mobile-view="chat"] {
    overflow: hidden !important;
  }

  body.chat-keyboard-open[data-mobile-view="chat"] .app-shell {
    position: fixed !important;
    top: var(--chat-visual-viewport-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    max-height: var(--chat-visual-viewport-height, 100dvh) !important;
    overflow: hidden !important;
  }

  body.chat-keyboard-open[data-mobile-view="chat"] .chat-main {
    max-height: 100% !important;
  }

  body.chat-keyboard-open[data-mobile-view="chat"] .plan-mobile-tabbar {
    display: none !important;
  }

  body.chat-keyboard-open[data-mobile-view="chat"] .composer {
    bottom: max(7px, env(safe-area-inset-bottom, 0px)) !important;
  }

  body.chat-keyboard-open[data-mobile-view="chat"] #messages {
    padding-bottom: calc(var(--chat-composer-height, 50px) + 18px) !important;
    scroll-padding-bottom: calc(var(--chat-composer-height, 50px) + 18px);
    overscroll-behavior: contain;
  }
}

/* System theme audit — one app chrome and one active-navigation language. */
@media (max-width: 760px) {
  #app-topbar:is(.home-topbar, .chat-topbar) {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding-inline: 12px !important;
  }

  #app-topbar:is(.home-topbar, .chat-topbar) #menu-btn {
    display: grid !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #app-topbar:is(.home-topbar, .chat-topbar) .benefit-shortcut {
    min-width: 76px;
    min-height: 36px;
    padding-inline: 12px;
  }

  #app-topbar:is(.home-topbar, .chat-topbar) .topbar-tagline {
    font-size: .75rem !important;
    letter-spacing: -.01em;
  }

  #app-topbar:is(.home-topbar, .chat-topbar) .account-menu-btn {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .plan-mobile-tabbar button {
    position: relative;
    background: transparent !important;
    color: #6f746f;
  }

  .plan-mobile-tabbar .tab-icon {
    background: transparent !important;
    color: currentColor !important;
  }

  body[data-mobile-view="home"] .plan-mobile-tabbar [data-mobile-tab="home"],
  body[data-mobile-view="chat"] .plan-mobile-tabbar [data-mobile-tab="chat"],
  body[data-mobile-view="bazi"] .plan-mobile-tabbar [data-mobile-tab="bazi"],
  body[data-mobile-view="monthly"] .plan-mobile-tabbar [data-mobile-tab="bazi"],
  body[data-mobile-view="oracle"] .plan-mobile-tabbar [data-mobile-tab="home"],
  body[data-mobile-view="calendar"] .plan-mobile-tabbar [data-mobile-tab="calendar"],
  body[data-mobile-view="daily"] .plan-mobile-tabbar [data-mobile-tab="calendar"],
  body[data-mobile-view="dateFinder"] .plan-mobile-tabbar [data-mobile-tab="calendar"] {
    color: var(--app-shell-gold) !important;
    background: transparent !important;
  }

  body[data-mobile-view="home"] .plan-mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body[data-mobile-view="chat"] .plan-mobile-tabbar [data-mobile-tab="chat"] .tab-icon,
  body[data-mobile-view="bazi"] .plan-mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body[data-mobile-view="monthly"] .plan-mobile-tabbar [data-mobile-tab="bazi"] .tab-icon,
  body[data-mobile-view="oracle"] .plan-mobile-tabbar [data-mobile-tab="home"] .tab-icon,
  body[data-mobile-view="calendar"] .plan-mobile-tabbar [data-mobile-tab="calendar"] .tab-icon,
  body[data-mobile-view="daily"] .plan-mobile-tabbar [data-mobile-tab="calendar"] .tab-icon,
  body[data-mobile-view="dateFinder"] .plan-mobile-tabbar [data-mobile-tab="calendar"] .tab-icon {
    background: transparent !important;
    color: var(--app-shell-gold) !important;
  }

  body[data-mobile-view="home"] .plan-mobile-tabbar [data-mobile-tab="home"]::after,
  body[data-mobile-view="chat"] .plan-mobile-tabbar [data-mobile-tab="chat"]::after,
  body[data-mobile-view="bazi"] .plan-mobile-tabbar [data-mobile-tab="bazi"]::after,
  body[data-mobile-view="monthly"] .plan-mobile-tabbar [data-mobile-tab="bazi"]::after,
  body[data-mobile-view="oracle"] .plan-mobile-tabbar [data-mobile-tab="home"]::after,
  body[data-mobile-view="calendar"] .plan-mobile-tabbar [data-mobile-tab="calendar"]::after,
  body[data-mobile-view="daily"] .plan-mobile-tabbar [data-mobile-tab="calendar"]::after,
  body[data-mobile-view="dateFinder"] .plan-mobile-tabbar [data-mobile-tab="calendar"]::after {
    content: '';
    width: 34px;
    height: 3px;
    position: absolute;
    bottom: -3px;
    left: 50%;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
  }
}

/* public/css/bazi-v2.css */
.bazi-app-page { width: min(820px, 100%); }
.bazi-page-shell { width: min(100%, 680px); margin-inline: auto; }
.bazi-v2 { display: grid; gap: 16px; padding: 4px 0 32px; color: var(--pp-ink, #171512); }

.bazi-overview-hero {
  overflow: hidden;
  padding: clamp(18px, 4.5vw, 26px);
  border: 1px solid #ded4c4;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
}
.bazi-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bazi-eyebrow { color: #98701f; font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.bazi-hero-top h1 { margin: 4px 0 2px; font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.25; }
.bazi-hero-top p { margin: 0; color: #746d64; font-size: .875rem; line-height: 1.5; }
.bazi-edit-button {
  min-height: 44px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid #e3dbcf;
  border-radius: 999px;
  background: #fff;
  color: #604b25;
  font-size: .8125rem;
  font-weight: 800;
}
.bazi-identity-row { margin-top: 17px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
.bazi-element-seal { width: 64px; height: 64px; display: grid; place-content: center; justify-items: center; border-radius: 20px; background: #f5efe4; color: #8b641a; }
.bazi-element-seal > span { font-size: .6875rem; font-weight: 800; }
.bazi-element-seal > strong { font: 800 1.75rem/1 Georgia, serif; }
.bazi-identity-row > div:last-child > span { color: #8b8277; font-size: .75rem; font-weight: 800; }
.bazi-identity-row > div:last-child > strong { display: block; margin-top: 2px; font-size: 1.25rem; line-height: 1.35; }
.bazi-identity-row p { margin: 5px 0 0; color: #5f5952; font-size: .875rem; line-height: 1.55; }
.bazi-hero-stats { margin-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #ece5dc; }
.bazi-hero-stats > div { padding: 13px 0 0; display: grid; gap: 3px; }
.bazi-hero-stats > div + div { padding-left: 18px; border-left: 1px solid #ece5dc; }
.bazi-hero-stats span { color: #857d73; font-size: .75rem; }
.bazi-hero-stats strong { font-size: 1rem; }
.bazi-status-note { margin-top: 18px; padding: 13px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; border-radius: 16px; background: #faf3e5; }
.bazi-status-note strong, .bazi-status-note span { grid-column: 1; }
.bazi-status-note strong { font-size: .875rem; }
.bazi-status-note span { color: #776d61; font-size: .75rem; line-height: 1.45; }
.bazi-status-note button { grid-column: 2; grid-row: 1 / 3; align-self: center; min-height: 40px; padding: 0 11px; border: 0; border-radius: 12px; background: #fff; color: #815d18; font-size: .75rem; font-weight: 850; }

.bazi-section-tabs {
  position: sticky;
  top: var(--app-shell-topbar-mobile, 72px);
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid #e5ddd1;
  border-radius: 18px;
  background: rgba(247, 244, 238, .94);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.bazi-section-tabs::-webkit-scrollbar { display: none; }
.bazi-section-tabs button { min-width: 0; min-height: 42px; padding: 0 6px; border: 0; border-radius: 13px; background: transparent; color: #716a61; font-size: .8125rem; font-weight: 800; }
.bazi-section-tabs button[aria-selected="true"] { background: #fff; color: #171512; box-shadow: 0 5px 14px rgba(45, 35, 24, .08); }
.bazi-section-tabs button span { margin-left: 3px; color: #9b711f; font-size: .6875rem; }

.bazi-panel-stack { min-width: 0; }
.bazi-panel { min-width: 0; padding: clamp(20px, 5vw, 28px); border: 1px solid #e2dbd1; border-radius: 26px; background: #fff; box-shadow: none; }
.bazi-panel[hidden] { display: none !important; }
.bazi-section-heading { display: grid; gap: 3px; }
.bazi-section-heading > span { color: #9b711f; font-size: .75rem; font-weight: 900; letter-spacing: .09em; }
.bazi-section-heading h2, .bazi-section-heading h3 { margin: 0; font-size: clamp(1.3rem, 4.6vw, 1.65rem); line-height: 1.35; }
.bazi-section-heading h3 { font-size: 1.125rem; }
.bazi-section-heading p { margin: 3px 0 0; color: #766f66; font-size: .875rem; line-height: 1.55; }
.bazi-section-heading.compact { margin-bottom: 13px; }
.bazi-lead-reading { margin: 18px 0 0; color: #3c3833; font-size: 1rem; line-height: 1.78; }
.bazi-key-insights { margin-top: 20px; border-top: 1px solid #e9e2d8; border-bottom: 1px solid #e9e2d8; }
.bazi-key-insights > div { padding: 14px 0; display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 13px; }
.bazi-key-insights > div + div { border-top: 1px solid #eee8df; }
.bazi-key-insights span { color: #8d6b28; font-size: .75rem; font-weight: 850; }
.bazi-key-insights strong { font-size: .875rem; font-weight: 700; line-height: 1.55; }
.bazi-flat-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e9e2d8; }
.bazi-element-glance { margin-top: 20px; padding-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid #e9e2d8; }
.bazi-element-glance > div { min-width: 0; display: grid; gap: 2px; }
.bazi-element-glance > div + div { padding-left: 18px; border-left: 1px solid #ebe4da; }
.bazi-element-glance span { color: #857d73; font-size: .75rem; }
.bazi-element-glance strong { font-size: 1rem; }
.bazi-element-glance small { color: #6f675e; font-size: .75rem; line-height: 1.45; }

.bazi-life-tabs { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-bottom: 14px; border-bottom: 1px solid #e9e2d8; }
.bazi-life-tabs button { min-width: 0; min-height: 44px; padding: 0 8px; border: 1px solid transparent; border-radius: 999px; background: #f7f4ee; color: #716a61; font-size: .8125rem; font-weight: 800; }
.bazi-life-tabs button[aria-selected="true"] { border-color: #d8c7a8; background: #fff; color: #171512; }
.bazi-life-panels > article[hidden] { display: none !important; }
.bazi-life-panels .bazi-section-heading { margin-top: 20px; }

.bazi-v2 .bazi-balance-visual { display: grid; gap: 11px; }
.bazi-v2 .bazi-balance-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 30px; align-items: center; gap: 10px; }
.bazi-v2 .bazi-balance-name { display: flex; align-items: center; gap: 6px; font-size: .75rem; }
.bazi-v2 .bazi-balance-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #a88d5d; }
.bazi-v2 .bazi-balance-track { height: 7px; overflow: hidden; border-radius: 99px; background: #efeae2; }
.bazi-v2 .bazi-balance-fill { height: 100%; display: block; border-radius: inherit; background: #a78035; }
.bazi-v2 .bazi-balance-score { color: #6f675e; font-size: .75rem; text-align: right; }

.bazi-chat-cta { width: 100%; min-height: 68px; margin-top: 22px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 18px; background: #9f1423; color: #fff; text-align: left; box-shadow: none; }
.bazi-chat-cta strong, .bazi-chat-cta small { display: block; }
.bazi-chat-cta strong { font-size: .9375rem; }
.bazi-chat-cta small { margin-top: 2px; color: rgba(255, 255, 255, .78); font-size: .75rem; }
.bazi-chat-cta b { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.bazi-chat-cta.secondary { border: 1px solid #e1d5c1; background: #fff; color: #5d451b; }
.bazi-chat-cta.secondary small { color: #7b705f; }
.bazi-topic-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.bazi-topic-tags span { padding: 6px 10px; border-radius: 99px; background: #f5f1ea; color: #6d5424; font-size: .75rem; font-weight: 750; }
.bazi-reading-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e9e2d8; }
.bazi-reading-body p { margin: 0; color: #3f3a35; font-size: 1rem; line-height: 1.8; }
.bazi-disclaimer { margin: 16px 0 0; color: #7d756b; font-size: .75rem; line-height: 1.55; }

.bazi-v2 .bazi-pillars-grid { margin-top: 20px; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
.bazi-v2 .bazi-pillar-card { min-width: 0; min-height: 0; padding: 14px 12px; border: 1px solid #e4ddd2; border-radius: 18px; background: #fcfbf9; text-align: center; }
.bazi-v2 .bazi-pillar-card.day-master { border-color: #c7a867; background: #fffaf0; box-shadow: inset 0 0 0 1px #ead9b7; }
.bazi-v2 .bazi-pillar-title { font-size: .9375rem; font-weight: 900; }
.bazi-v2 .bazi-pillar-meaning { min-height: 35px; margin-top: 2px; display: block; color: #817970; font-size: .6875rem; line-height: 1.45; }
.bazi-v2 .bazi-char { margin-top: 7px; font-size: clamp(2rem, 10vw, 2.8rem); line-height: 1; }
.bazi-v2 .bazi-thai-name { margin-top: 4px; font-size: .75rem !important; line-height: 1.4; }
.bazi-v2 .bazi-tengod-badge { min-height: 24px; padding: 3px 7px; display: inline-flex; align-items: center; border-radius: 99px; font-size: .6875rem !important; line-height: 1.3; }
.bazi-v2 .bazi-divider { margin: 10px 0; border-top: 1px solid #e7e0d7; }
.bazi-v2 .bazi-star-slot { min-height: 0; }
.bazi-v2 .bazi-shensha-list { margin-top: 9px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bazi-v2 .bazi-shensha-chip { font-size: .625rem; }
.bazi-pillar-explain { min-height: 36px; margin-top: 10px; padding: 0 8px; border: 0; border-radius: 10px; background: #f1ece4; color: #695328; font-size: .6875rem; font-weight: 800; }
.bazi-pillar-description { margin: 8px 0 0; color: #6f675e; font-size: .6875rem; line-height: 1.5; text-align: left; }
.bazi-preview-chars { margin: 15px 0 7px; color: #173a79; font: 800 2.5rem/1 Georgia, serif; }
.bazi-v2 .bazi-star-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bazi-v2 .bazi-star-card { padding: 13px; border: 0; border-radius: 15px; background: #f7f4ee; }
.bazi-v2 .bazi-star-card strong, .bazi-v2 .bazi-star-card em { display: block; }
.bazi-v2 .bazi-star-card strong { font-size: .875rem; }
.bazi-v2 .bazi-star-card em { margin-top: 2px; color: #8a7c67; font-size: .6875rem; font-style: normal; }
.bazi-v2 .bazi-star-card p, .bazi-v2 .bazi-star-note p { margin: 7px 0 0; color: #5f5850; font-size: .75rem; line-height: 1.55; }

.bazi-preview-page .pro-lock-inline { margin-top: 20px; padding-top: 0; border-top: 0; }

.bazi-preview-traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.bazi-preview-traits > div {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(151, 126, 74, .07);
}

.bazi-preview-traits small {
  display: block;
  margin-bottom: 6px;
  color: #9b7627;
  font-size: .65rem;
  font-weight: 800;
}

.bazi-preview-traits p {
  margin: 0;
  color: #3e3b35;
  font-size: .76rem;
  line-height: 1.65;
}

@media (max-width: 360px) {
  .bazi-preview-traits { grid-template-columns: 1fr; }
}
.bazi-preview-page .pro-lock-card { border: 1px solid #eadfcd; border-radius: 18px; background: #faf7f1; box-shadow: none; }
.bazi-locked-panel { min-height: 180px; }
.bazi-empty-state { grid-column: 1 / -1; padding: 26px 18px; display: grid; justify-items: center; gap: 8px; border: 1px dashed #d9cebd; border-radius: 18px; text-align: center; }
.bazi-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #f4eee3; color: #91691d; font: 800 1.3rem/1 Georgia, serif; }
.bazi-empty-state p { max-width: 400px; margin: 0; color: #746d64; font-size: .8125rem; line-height: 1.55; }
.bazi-retry-button { width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid #d9c9ac; border-radius: 14px; background: #fff; color: #76551a; font-size: .875rem; font-weight: 850; }
.bazi-loading-state { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.bazi-loading-seal { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid #e1d5c1; border-radius: 23px; background: #f7f1e6; color: #91691d; font: 800 1.8rem/1 Georgia, serif; }
.bazi-loading-state > strong { margin-top: 8px; font-size: 1.125rem; }
.bazi-loading-state p { margin: 0; color: #7c756c; font-size: .8125rem; }
.bazi-loading-state > span { width: 150px; height: 3px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #eae4dc; }
.bazi-loading-state > span i { width: 42%; height: 100%; display: block; border-radius: inherit; background: #a67c2e; animation: bazi-load 1.2s ease-in-out infinite alternate; }
@keyframes bazi-load { from { transform: translateX(-10%); } to { transform: translateX(150%); } }

.bazi-v2 button:focus-visible, .bazi-v2 summary:focus-visible { outline: 3px solid rgba(155, 113, 31, .32); outline-offset: 3px; }
@media (min-width: 720px) {
  .bazi-section-tabs { top: var(--app-shell-topbar-desktop, 56px); display: flex; justify-content: center; }
  .bazi-section-tabs button { min-width: max-content; padding-inline: 14px; }
  .bazi-v2 .bazi-pillars-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 430px) {
  .bazi-v2 { gap: 14px; }
  .bazi-overview-hero, .bazi-panel { border-radius: 22px; }
  .bazi-identity-row { grid-template-columns: 64px minmax(0, 1fr); gap: 13px; }
  .bazi-element-seal { width: 64px; height: 64px; border-radius: 20px; }
  .bazi-key-insights > div { grid-template-columns: 76px minmax(0, 1fr); }
  .bazi-v2 .bazi-star-grid { grid-template-columns: 1fr; }
  .bazi-life-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bazi-element-glance { grid-template-columns: 1fr; gap: 13px; }
  .bazi-element-glance > div + div { padding: 13px 0 0; border-top: 1px solid #ebe4da; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bazi-loading-state > span i { animation: none; }
  .bazi-section-tabs, .bazi-v2 * { scroll-behavior: auto !important; }
}

/* Modern Chinese Luxury — the four pillars are the primary reading surface. */
.bazi-v2 { gap: 12px; }
.bazi-profile-strip {
  min-height: 66px;
  padding: 4px 3px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e9e1d5;
}
.bazi-profile-strip > div { min-width: 0; display: grid; gap: 1px; }
.bazi-profile-strip > div > span { color: #9a711f; font-size: .6875rem; font-weight: 900; letter-spacing: .09em; }
.bazi-profile-strip > div > strong { overflow: hidden; color: #171512; font-size: 1.125rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bazi-profile-strip > div > small { color: #766f66; font-size: .75rem; line-height: 1.4; }
.bazi-profile-strip .bazi-edit-button { min-height: 40px; padding-inline: 12px; background: #f8f4ed; }

.bazi-pillars-stage {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 16px;
  border: 1px solid #ddceba;
  border-top: 4px solid #a31324;
  border-radius: 4px 4px 24px 24px;
  background: #fbf7f0;
  box-shadow: 0 18px 38px rgba(75, 48, 27, .09);
  isolation: isolate;
}
.bazi-pillars-stage::before {
  content: '四柱';
  position: absolute;
  right: -12px;
  bottom: -25px;
  z-index: -1;
  color: rgba(151, 105, 25, .045);
  font: 800 8.5rem/1 Georgia, serif;
  letter-spacing: -.14em;
  pointer-events: none;
}
.bazi-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bazi-stage-heading > div { min-width: 0; }
.bazi-stage-heading span { color: #a31324; font-size: .625rem; font-weight: 950; letter-spacing: .18em; }
.bazi-stage-heading h1 { margin: 2px 0 0; color: #171512; font-size: clamp(1.25rem, 5vw, 1.55rem); line-height: 1.25; }
.bazi-destiny-seal { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border: 1px solid rgba(163, 19, 36, .45); border-radius: 50%; color: #a31324!important; font: 800 1.15rem/1 Georgia, serif!important; letter-spacing: 0!important; transform: rotate(-5deg); }
.bazi-stage-corner { width: 22px; height: 22px; position: absolute; top: 9px; opacity: .34; pointer-events: none; }
.bazi-stage-corner::after { content: ''; width: 7px; height: 7px; position: absolute; top: -4px; border: 1px solid #a31324; border-radius: 50%; }
.bazi-stage-corner.corner-tl { left: 8px; border-top: 1px solid #a31324; border-left: 1px solid #a31324; }
.bazi-stage-corner.corner-tl::after { left: -4px; }
.bazi-stage-corner.corner-tr { right: 8px; border-top: 1px solid #a31324; border-right: 1px solid #a31324; }
.bazi-stage-corner.corner-tr::after { right: -4px; }

.bazi-pillar-stage-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.bazi-pillar-tile {
  min-width: 0;
  min-height: 178px;
  padding: 10px 4px 8px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(22px, auto) 1px auto minmax(22px, auto);
  align-items: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid #e4dacb;
  border-radius: 15px;
  background: rgba(255, 255, 255, .82);
  color: #332d27;
  text-align: center;
  box-shadow: none;
  animation: bazi-pillar-arrive .44s both cubic-bezier(.22,.8,.25,1);
  animation-delay: calc(var(--pillar-index) * 70ms);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bazi-pillar-tile[aria-pressed="true"] { border-color: #bd9b57; box-shadow: 0 10px 22px rgba(82, 55, 28, .1); transform: translateY(-3px); }
.bazi-pillar-tile.day-master { border-color: #8f111f; background: #a31324; color: #fff; }
.bazi-pillar-tile.day-master[aria-pressed="true"] { border-color: #d2ad5c; box-shadow: 0 12px 26px rgba(112, 19, 28, .24); }
.bazi-pillar-tile.day-master::after { content: ''; width: 28px; height: 220%; position: absolute; top: -60%; left: -50%; background: rgba(255,255,255,.14); transform: rotate(22deg); animation: bazi-day-shine 2.6s .65s 1 ease-in-out forwards; pointer-events: none; }
.bazi-pillar-tile-label { color: #756b60; font-size: .6875rem; font-weight: 900; }
.bazi-pillar-tile.day-master .bazi-pillar-tile-label { color: rgba(255,255,255,.82); }
.bazi-pillar-glyph { font: 800 2rem/1 Georgia, serif; }
.bazi-pillar-glyph.branch { font-size: 1.75rem; }
.bazi-pillar-tile small { min-width: 0; max-width: 100%; color: #7d746a; font-size: .625rem; line-height: 1.25; overflow-wrap: anywhere; }
.bazi-pillar-tile.day-master small { color: rgba(255,255,255,.74); }
.bazi-pillar-tile > i { width: 70%; height: 1px; background: #e8ded0; }
.bazi-pillar-tile.day-master > i { background: rgba(255,255,255,.25); }
.bazi-pillar-tile > em { position: absolute; top: 5px; right: 5px; padding: 2px 5px; border-radius: 99px; background: #e3bf6b; color: #63101a; font-size: .5625rem; font-style: normal; font-weight: 950; }
.bazi-pillar-tile.is-missing { border-style: dashed; background: rgba(255,255,255,.48); }
.bazi-pillar-stage-reading { min-height: 52px; margin-top: 12px; padding: 10px 12px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; border-top: 1px solid #e4d7c5; }
.bazi-pillar-stage-reading span { color: #9b711f; font-size: .6875rem; font-weight: 950; }
.bazi-pillar-stage-reading strong { color: #4b433a; font-size: .75rem; font-weight: 750; line-height: 1.45; }

.bazi-core-ribbon { min-height: 76px; display: grid; grid-template-columns: 52px minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .8fr); align-items: center; border-top: 1px solid #e4dbcf; border-bottom: 1px solid #e4dbcf; background: #fff; }
.bazi-core-ribbon > div:not(.bazi-element-seal) { min-width: 0; padding: 8px 10px; display: grid; gap: 2px; }
.bazi-core-ribbon > div:not(.bazi-element-seal) + div { border-left: 1px solid #ece5dc; }
.bazi-core-ribbon > div > span { color: #897f74; font-size: .625rem; line-height: 1.2; }
.bazi-core-ribbon > div > strong { overflow: hidden; color: #25211d; font-size: .75rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.bazi-core-ribbon .bazi-element-seal { width: 44px; height: 44px; margin-left: 2px; border-radius: 14px; background: #f4ead8; }
.bazi-core-ribbon .bazi-element-seal > strong { font-size: 1.35rem; }

.bazi-section-tabs { top: calc(var(--app-shell-topbar-mobile, 72px) + 1px); scroll-margin-top: calc(var(--app-shell-topbar-mobile, 72px) + 8px); }
.bazi-section-tabs button { font-size: .75rem; }
.bazi-panel-stack { scroll-margin-top: calc(var(--app-shell-topbar-mobile, 72px) + 64px); }
.bazi-panel { padding: clamp(18px, 4.5vw, 25px); border-radius: 22px; }
.bazi-panel > .bazi-balance-visual { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e9e2d8; }

@keyframes bazi-pillar-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bazi-day-shine { 0% { left: -50%; opacity: 0; } 20% { opacity: 1; } 65%,100% { left: 140%; opacity: 0; } }

@media (max-width: 430px) {
  .bazi-profile-strip { min-height: 62px; }
  .bazi-pillars-stage { padding: 18px 12px 12px; border-radius: 4px 4px 21px 21px; }
  .bazi-pillar-stage-grid { gap: 5px; }
  .bazi-pillar-tile { min-height: 166px; padding-inline: 2px; border-radius: 13px; }
  .bazi-pillar-glyph { font-size: 1.8rem; }
  .bazi-pillar-glyph.branch { font-size: 1.55rem; }
  .bazi-core-ribbon { grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .75fr); }
  .bazi-core-ribbon > div:not(.bazi-element-seal) { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .bazi-pillar-tile, .bazi-pillar-tile.day-master::after { animation: none; }
  .bazi-pillar-tile { transition: none; }
}

/* Contemporary Chinese editorial — framed, warm and recognisable without visual clutter. */
.bazi-v2 { gap: 14px; }
.bazi-profile-strip {
  min-height: 62px;
  margin-inline: 16px;
  padding: 12px 14px 12px 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5d9c8;
  border-radius: 18px;
  background: #faf6ef;
}
.bazi-profile-strip::before { content: ''; width: 3px; position: absolute; inset: 12px auto 12px 0; border-radius: 0 3px 3px 0; background: #9f1825; }
.bazi-profile-strip > div > span { letter-spacing: .04em; }
.bazi-profile-strip .bazi-edit-button {
  border-color: #e6dccb;
  background: #f8f3ea;
}
.bazi-pillars-stage {
  margin-inline: 14px;
  padding: 0 14px 14px;
  border: 1px solid #d9c8ad;
  border-radius: 24px;
  background: #fbf7ef;
  box-shadow: 0 15px 34px rgba(74, 48, 29, .09);
}
.bazi-pillars-stage::before, .bazi-stage-corner, .bazi-destiny-seal { display: none; }
.bazi-stage-heading {
  min-height: 88px;
  margin-inline: -14px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  align-items: center;
  border-radius: 23px 23px 0 0;
  background:
    radial-gradient(circle at 91% 15%, transparent 0 26px, rgba(224,190,115,.22) 27px 28px, transparent 29px 43px, rgba(224,190,115,.12) 44px 45px, transparent 46px),
    #8f1722;
}
.bazi-stage-heading::after {
  content: '八字';
  width: 42px;
  height: 42px;
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 207, 143, .6);
  border-radius: 50%;
  color: #f0d699;
  font: 800 .875rem/1 Georgia, serif;
  transform: translateY(-50%);
}
.bazi-stage-heading > div { padding-right: 56px; }
.bazi-stage-heading span { color: #e8c985; font-size: .6875rem; letter-spacing: .08em; }
.bazi-stage-heading h1 { margin-top: 2px; color: #fff; font-size: 1.375rem; }
.bazi-stage-heading > small {
  display: none;
}
.bazi-pillar-stage-grid {
  margin-top: 0;
  padding: 14px 0 12px;
  gap: 6px;
  border-bottom: 1px solid #e4d6c1;
  background: radial-gradient(circle at 50% 0, rgba(190, 148, 68, .07), transparent 58%);
}
.bazi-pillar-tile {
  min-height: 193px;
  padding: 10px 3px 8px;
  grid-template-rows: 18px 38px 22px 1px 34px 22px minmax(31px, auto);
  border: 1px solid #e5d9c7;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  animation-duration: .32s;
  animation-delay: calc(var(--pillar-index) * 45ms);
}
.bazi-pillar-tile + .bazi-pillar-tile { border-left: 1px solid #e5d9c7; }
.bazi-pillar-tile[aria-pressed="true"] {
  border-color: #bd9447;
  background: #fffdf9;
  box-shadow: 0 7px 18px rgba(91, 59, 29, .1), inset 0 -3px #b58832;
  transform: translateY(-2px);
}
.bazi-pillar-tile.day-master {
  margin: 0;
  z-index: 1;
  border: 1px solid #a41b29;
  border-radius: 14px;
  background: #fffaf5;
  color: #6f111c;
}
.bazi-pillar-tile.day-master[aria-pressed="true"] {
  border: 1px solid #a41b29;
  box-shadow: 0 8px 20px rgba(123, 24, 34, .14), inset 0 -3px #9f1825;
  transform: translateY(-2px);
}
.bazi-pillar-tile.day-master::after { display: none; }
.bazi-pillar-tile.day-master .bazi-pillar-tile-label,
.bazi-pillar-tile.day-master small { color: #8f4c52; }
.bazi-pillar-glyph.wood { color: #277557; }
.bazi-pillar-glyph.fire { color: #b43a34; }
.bazi-pillar-glyph.earth { color: #a56a29; }
.bazi-pillar-glyph.metal { color: #9a711f; }
.bazi-pillar-glyph.water { color: #2c668b; }
.bazi-pillar-tile-label { font-size: .6875rem; }
.bazi-pillar-glyph { font-size: 1.85rem; }
.bazi-pillar-glyph.branch { font-size: 1.6rem; }
.bazi-pillar-tile.day-master > i { background: #ead2d2; }
.bazi-pillar-star-slot { width: 100%; min-height: 31px; padding-top: 7px; align-self: stretch; display: grid; align-content: start; gap: 4px; border-top: 1px solid #eadfd2; }
.bazi-pillar-star-slot.is-empty { visibility: hidden; }
.bazi-pillar-star-slot > span { min-width: 0; min-height: 24px; padding: 4px 3px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 8px; color: #78551d; font-size: .5625rem; font-weight: 850; line-height: 1.2; overflow-wrap: anywhere; }
.bazi-pillar-star-slot > span.fortune { background: #f8e8ec; color: #9d2030; }
.bazi-pillar-star-slot > span.support { background: #e5f3eb; color: #236a4b; }
.bazi-pillar-star-slot > span.wisdom { background: #e8eef9; color: #345d9a; }
.bazi-pillar-star-slot > span.skill { background: #f8eedb; color: #8c621b; }
.bazi-personal-heading h2 { max-width: 23ch; text-wrap: balance; }
.bazi-core-ribbon {
  min-height: 72px;
  margin-inline: 14px;
  overflow: hidden;
  border: 1px solid #e1d5c3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(74, 48, 29, .06);
}
.bazi-core-ribbon .bazi-element-seal { width: 42px; height: 42px; margin-left: 7px; border-radius: 50%; }
.bazi-core-ribbon > div:not(.bazi-element-seal) { padding-block: 7px; }
.bazi-section-tabs {
  margin-inline: 14px;
  position: relative;
  top: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid #e2d8ca;
  border-radius: 16px;
  background: rgba(248, 244, 237, .96);
}
.bazi-section-tabs button { min-height: 44px; border-radius: 12px; }
.bazi-section-tabs button[aria-selected="true"] {
  background: #971825;
  box-shadow: 0 6px 15px rgba(112, 20, 31, .16);
  color: #fff;
}
.bazi-panel {
  margin-inline: 18px;
  padding: 20px 2px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.bazi-personal-panel {
  --personal-accent: #8d641b;
  --personal-soft: #faf4e8;
  --personal-line: #e8d9bd;
  padding-top: 20px;
}
.bazi-personal-panel[data-personal-element="wood"] { --personal-accent: #286d50; --personal-soft: #edf6f1; --personal-line: #cfe3d8; }
.bazi-personal-panel[data-personal-element="fire"] { --personal-accent: #a82a2f; --personal-soft: #fbefed; --personal-line: #ead0cd; }
.bazi-personal-panel[data-personal-element="earth"] { --personal-accent: #94602a; --personal-soft: #f8f1e8; --personal-line: #e5d5c1; }
.bazi-personal-panel[data-personal-element="metal"] { --personal-accent: #8b651f; --personal-soft: #faf4e8; --personal-line: #e8d9bd; }
.bazi-personal-panel[data-personal-element="water"] { --personal-accent: #2d6687; --personal-soft: #edf4f7; --personal-line: #d1e0e8; }
.bazi-personal-intro {
  position: relative;
  overflow: hidden;
  padding: 21px 20px 19px;
  border: 1px solid var(--personal-line);
  border-radius: 23px;
  background: var(--personal-soft);
}
.bazi-personal-intro::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -52px;
  width: 118px;
  height: 118px;
  border: 1px solid color-mix(in srgb, var(--personal-accent) 22%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--personal-accent) 5%, transparent);
  pointer-events: none;
}
.bazi-personal-heading { position: relative; z-index: 1; }
.bazi-personal-heading > span {
  color: var(--personal-accent);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.bazi-personal-title-lockup {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.bazi-personal-monogram {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--personal-accent) 30%, #fff);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--personal-accent);
  font: 800 1.55rem/1 Georgia, serif;
}
.bazi-personal-title-lockup small {
  display: block;
  color: #80766a;
  font-size: .6875rem;
  font-weight: 800;
}
.bazi-personal-title-lockup h2 {
  max-width: 24ch;
  margin: 2px 0 0;
  color: #211d19;
  font-size: clamp(1.25rem, 4.8vw, 1.6rem);
  line-height: 1.34;
  text-wrap: balance;
}
.bazi-personal-panel .bazi-lead-reading {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  color: #3f3933;
  font-size: .9375rem;
  line-height: 1.72;
}
.bazi-personal-signature {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--personal-accent);
  color: var(--personal-accent);
  font-size: .8125rem;
  font-weight: 850;
  line-height: 1.5;
}
.bazi-personal-insights {
  margin: 13px 4px 0;
  border-top: 0;
}
.bazi-personal-insights > div {
  padding: 15px 2px;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.bazi-personal-insights span {
  color: var(--personal-accent);
  font-size: .6875rem;
  letter-spacing: .02em;
}
.bazi-personal-insights strong {
  color: #2c2824;
  font-size: .9375rem;
  font-weight: 680;
  line-height: 1.62;
}
.bazi-personal-panel .bazi-chat-cta { margin-top: 20px; }
.bazi-reading-balance {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #e9e1d6;
}
.bazi-reading-balance > .bazi-balance-visual {
  margin-top: 20px;
  padding: 18px 2px 0;
}
.bazi-personal-story {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid color-mix(in srgb, var(--personal-accent) 18%, transparent);
}
.bazi-personal-story p {
  margin: 0;
  color: #3f3933;
  font-size: .9375rem;
  line-height: 1.78;
}
.bazi-personal-story p + p { margin-top: 15px; }
.bazi-personal-story p:last-child { color: #302a25; }

@media (max-width: 430px) {
  .bazi-profile-strip { margin-inline: 20px; }
  .bazi-pillars-stage { margin-inline: 20px; padding-inline: 11px; border-radius: 22px; }
  .bazi-stage-heading { margin-inline: -12px; border-radius: 21px 21px 0 0; }
  .bazi-pillar-stage-grid { gap: 5px; }
  .bazi-pillar-tile { min-height: 193px; padding-inline: 2px; border-radius: 12px; }
  .bazi-pillar-tile.day-master { border-radius: 12px; }
  .bazi-pillar-glyph { font-size: 1.72rem; }
  .bazi-pillar-glyph.branch { font-size: 1.52rem; }
  .bazi-core-ribbon, .bazi-section-tabs { margin-inline: 20px; }
  .bazi-panel { margin-inline: 20px; }
  .bazi-personal-intro { padding: 20px 18px 18px; }
  .bazi-personal-title-lockup { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; }
  .bazi-personal-monogram { width: 44px; height: 44px; font-size: 1.4rem; }
}

/* Personal life and five-element reading — sourced from the approved profile. */
.bazi-life-intro,
.bazi-balance-intro {
  position: relative;
  padding-left: 16px;
  border-left: 3px solid #a31324;
}
.bazi-life-intro > span,
.bazi-balance-intro > span {
  color: #9b711f;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.bazi-life-intro h2,
.bazi-balance-intro h2 {
  max-width: 25ch;
  margin: 5px 0 0;
  color: #211d19;
  font-size: clamp(1.25rem, 4.8vw, 1.6rem);
  line-height: 1.4;
  text-wrap: balance;
}
.bazi-life-intro p,
.bazi-balance-intro p {
  margin: 9px 0 0;
  color: #686158;
  font-size: .875rem;
  line-height: 1.65;
}
.bazi-life-tabs {
  margin-top: 20px;
  padding: 4px;
  gap: 4px;
  border: 1px solid #e8dfd2;
  border-radius: 17px;
  background: #f7f3ed;
}
.bazi-life-tabs button {
  background: transparent;
  border-radius: 13px;
}
.bazi-life-tabs button[aria-selected="true"] {
  border-color: transparent;
  background: #fff;
  color: #941725;
  box-shadow: 0 4px 12px rgba(55, 40, 24, .07);
}
.bazi-life-reading {
  padding: 23px 4px 4px;
  display: flex;
  flex-direction: column;
}
.bazi-life-reading > span {
  color: #9a742b;
  font-size: .75rem;
  font-weight: 900;
}
.bazi-life-reading h2 {
  margin: 4px 0 0;
  color: #28231f;
  font-size: 1.2rem;
  line-height: 1.4;
}
.bazi-life-story { margin-top: 16px; }
.bazi-life-story p {
  margin: 0;
  color: #423c36;
  font-size: .9375rem;
  line-height: 1.78;
}
.bazi-life-story p + p { margin-top: 13px; }
.bazi-life-panels .bazi-chat-cta { margin-top: 17px; }

.bazi-balance-intro { border-left-color: #9b711f; }
.bazi-balance-story { margin-top: 16px; }
.bazi-balance-story p {
  margin: 0;
  color: #423c36;
  font-size: .9375rem;
  line-height: 1.78;
}
.bazi-balance-story p + p { margin-top: 13px; }
.bazi-panel > .bazi-balance-visual {
  margin-top: 20px;
  padding: 18px 2px 0;
  border-top: 0;
}
.bazi-v2 .bazi-balance-row { grid-template-columns: 76px minmax(0, 1fr) 32px; }
.bazi-v2 .bazi-balance-track { height: 8px; }
.bazi-v2 .bazi-balance-score::after { content: "/10"; margin-left: 1px; color: #aaa198; font-size: .5625rem; }
.bazi-balance-dot.wood, .bazi-balance-fill.wood { background: #498b67; }
.bazi-balance-dot.fire, .bazi-balance-fill.fire { background: #b8544e; }
.bazi-balance-dot.earth, .bazi-balance-fill.earth { background: #b08a45; }
.bazi-balance-dot.metal, .bazi-balance-fill.metal { background: #85878a; }
.bazi-balance-dot.water, .bazi-balance-fill.water { background: #39789a; }

@media (max-width: 430px) {
  .bazi-life-intro,
  .bazi-balance-intro { padding-left: 14px; }
  .bazi-life-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bazi-life-reading { padding-top: 20px; }
}

/* Approved airy four-pillars composition */
.bazi-v2 { --bazi-paper:#fbfaf7; --bazi-rule:#e9e0d2; }
.bazi-v2 .bazi-pillars-stage { margin:0; padding:24px 18px 20px; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; color:#1c1e1a; }
.bazi-v2 .bazi-stage-heading { min-height:0; margin:0; padding:0 2px 14px; position:relative; overflow:visible; display:flex; align-items:end; justify-content:space-between; gap:14px; border-bottom:1px solid var(--bazi-rule); border-radius:0; background:transparent; }
.bazi-v2 .bazi-stage-heading::after { display:none; content:none; }
.bazi-v2 .bazi-stage-heading > div { padding-right:0; }
.bazi-v2 .bazi-stage-heading > div > span { color:#a17a2d; font-size:.625rem; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.bazi-v2 .bazi-stage-heading h1 { margin:4px 0 0; color:#171915; font-size:1.45rem; line-height:1.2; }
.bazi-v2 .bazi-stage-heading > small { padding-bottom:2px; display:block; color:#8b8378; font-size:.625rem; white-space:nowrap; }
.bazi-v2 .bazi-pillar-stage-grid { margin-top:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border-bottom:1px solid var(--bazi-rule); }
.bazi-v2 .bazi-pillar-tile { min-width:0; min-height:274px; padding:16px 7px 12px; position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; border:0; border-radius:0; background:transparent; box-shadow:none; color:#242620; text-align:center; transform:none; }
.bazi-v2 .bazi-pillar-tile + .bazi-pillar-tile { border-left:1px solid var(--bazi-rule); }
.bazi-v2 .bazi-pillar-tile.day-master,.bazi-v2 .bazi-pillar-tile[aria-pressed="true"] { border-color:var(--bazi-rule); background:transparent; color:#242620; box-shadow:none; transform:none; }
.bazi-v2 .bazi-pillar-tile.day-master::after { display:none; }
.bazi-v2 .bazi-pillar-tile-label { color:#6d675f; font-size:.6875rem; font-weight:900; }
.bazi-v2 .bazi-pillar-symbol { width:100%; display:grid; justify-items:center; gap:4px; }
.bazi-v2 .bazi-pillar-glyph { color:#2a2b27; font:700 2.15rem/1 Georgia,serif; }
.bazi-v2 .bazi-pillar-glyph.branch { font-size:1.85rem; }
.bazi-v2 .bazi-pillar-symbol small { min-height:22px; display:flex; align-items:center; justify-content:center; gap:4px; color:#827b71; font-size:.5625rem; line-height:1.25; }
.bazi-v2 .bazi-element-dot { width:5px; height:5px; flex:0 0 auto; border-radius:50%; background:#a8a095; }
.bazi-v2 .bazi-element-dot.wood { background:#3e8861; }.bazi-v2 .bazi-element-dot.fire { background:#b84942; }.bazi-v2 .bazi-element-dot.earth { background:#ad7a34; }.bazi-v2 .bazi-element-dot.metal { background:#a8863b; }.bazi-v2 .bazi-element-dot.water { background:#3b7696; }
.bazi-v2 .bazi-pillar-divider { width:24px; height:1px; flex:0 0 auto; background:#ddd3c4; }
.bazi-v2 .bazi-pillar-star-slot { width:100%; min-height:34px; margin-top:auto; padding:10px 2px 0; display:flex; flex-wrap:wrap; align-content:start; justify-content:center; gap:4px; border-top:1px solid #eee6da; }
.bazi-v2 .bazi-pillar-star-slot.is-empty { visibility:visible; }
.bazi-v2 .bazi-pillar-star-slot > span { min-width:0; min-height:22px; padding:3px 6px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #e6dccd; border-radius:999px; background:#f8f4ed!important; color:#705a31!important; font-size:.53125rem; font-weight:800; line-height:1.2; overflow-wrap:anywhere; }
.bazi-v2 .bazi-pillar-tile.is-missing { background:rgba(247,244,238,.6); }
@media (max-width:370px) { .bazi-v2 .bazi-pillars-stage{padding-inline:12px}.bazi-v2 .bazi-pillar-tile{min-height:260px;padding-inline:4px}.bazi-v2 .bazi-pillar-glyph{font-size:1.9rem}.bazi-v2 .bazi-pillar-glyph.branch{font-size:1.65rem}.bazi-v2 .bazi-stage-heading>small{display:none} }

/* Approved mockup parity — obsidian four-pillars board */
.bazi-v2 { --bazi-gold:#c69a45; --bazi-dark:#151b18; --bazi-dark-soft:#202722; }
.bazi-v2 .bazi-page-intro {
  margin: 20px 18px 18px;
  padding-left: 15px;
  position: relative;
}
.bazi-v2 .bazi-page-intro::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 3px auto 3px 0;
  background: var(--bazi-gold);
}
.bazi-v2 .bazi-page-intro > span { display: none; }
.bazi-v2 .bazi-page-intro h1 { margin: 0; color: #171915; font-size: 1.45rem; line-height: 1.25; }
.bazi-v2 .bazi-page-intro p { margin: 3px 0 0; color: #73716c; font-size: .8rem; line-height: 1.45; }
.bazi-v2 .bazi-profile-strip {
  min-height: 60px;
  margin: 0 18px 18px;
  padding: 10px 14px;
  grid-template-columns: minmax(0,1fr) auto;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(100deg,#f7ead6,#fffaf3);
  box-shadow: none;
}
.bazi-v2 .bazi-profile-strip::before { display: none; }
.bazi-v2 .bazi-profile-strip > div { display: flex; align-items: center; gap: 11px; }
.bazi-v2 .bazi-profile-strip > div > span { display: none; }
.bazi-v2 .bazi-profile-strip > div > strong { padding-right: 11px; border-right: 1px solid #d7b871; font-size: 1.05rem; }
.bazi-v2 .bazi-profile-strip > div > small { font-size: .72rem; white-space: nowrap; }
.bazi-v2 .bazi-profile-ready { display:flex; align-items:center; gap:6px; color:#23934b; font-size:.72rem; font-weight:900; white-space:nowrap; }
.bazi-v2 .bazi-profile-ready i { width:7px; height:7px; border-radius:50%; background:#21aa50; }
.bazi-v2 .bazi-pillars-stage {
  margin: 0 18px;
  padding: 0 0 16px;
  overflow: hidden;
  border: 1px solid #c9a056;
  border-radius: 24px;
  background: #fbf5e9;
  box-shadow: 0 18px 42px rgba(24,29,25,.13);
  color: #f7f0e3;
}
.bazi-v2 .bazi-stage-heading {
  min-height: 58px;
  padding: 14px 18px 12px;
  align-items: center;
  border-bottom: 1px solid rgba(205,169,95,.33);
  background: linear-gradient(135deg,#1c2520,#111613);
}
.bazi-v2 .bazi-stage-heading > div > span { display: none; }
.bazi-v2 .bazi-stage-heading h1 { margin: 0; padding-left: 13px; position: relative; color: #fff; font-size: 1.3rem; }
.bazi-v2 .bazi-stage-heading h1::before { content:''; width:4px; position:absolute; inset:1px auto 1px 0; background:#d7aa50; }
.bazi-v2 .bazi-stage-heading > small { display: none; }
.bazi-v2 .bazi-pillar-stage-grid {
  margin: 0 10px;
  position: relative;
  border-bottom: 0;
  background: #f8f3e9;
}
.bazi-v2 .bazi-stage-band {
  height: 30px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #efe4d0;
  color: #9a752b;
  font-size: .75rem;
  font-weight: 900;
  pointer-events: none;
}
.bazi-v2 .bazi-stage-band { height:24px; }
.bazi-v2 .bazi-stage-band.is-stem { top: 30px; }
.bazi-v2 .bazi-stage-band.is-branch { top: 114px; }
.bazi-v2 .bazi-stage-band.is-stars { top: 198px; background: transparent; }
.bazi-v2 .bazi-stage-band.is-stars::before,
.bazi-v2 .bazi-stage-band.is-stars::after { content:''; height:1px; background:#c9a056; }
.bazi-v2 .bazi-stage-band.is-stars { grid-template-columns:1fr auto 1fr; gap:9px; padding-inline:10px; }
.bazi-v2 .bazi-pillar-tile {
  min-height: 256px;
  padding: 0 6px 8px;
  display: grid;
  grid-template-rows: 30px 24px 60px 24px 60px 24px minmax(34px,auto);
  gap: 0;
  background: #f8f3e9;
  color: #20231f;
}
.bazi-v2 .bazi-pillar-tile + .bazi-pillar-tile { border-left-color: #ded1bc; }
.bazi-v2 .bazi-pillar-tile.day-master,
.bazi-v2 .bazi-pillar-tile[aria-pressed="true"] { background: transparent; color: #20231f; }
.bazi-v2 .bazi-pillar-tile-label { color: #746b5f; }
.bazi-v2 .bazi-pillar-tile-label { grid-row: 1; align-self: center; }
.bazi-v2 .bazi-pillar-symbol:first-of-type { grid-row: 3; align-self: center; }
.bazi-v2 .bazi-pillar-symbol:nth-of-type(2) { grid-row: 5; align-self: center; }
.bazi-v2 .bazi-pillar-glyph { font-size: 2.35rem; }
.bazi-v2 .bazi-pillar-glyph.branch { font-size: 2.05rem; }
.bazi-v2 .bazi-pillar-symbol { align-content: center; overflow: hidden; }
.bazi-v2 .bazi-pillar-symbol small { min-height: 16px; line-height: 1.1; }
.bazi-v2 .bazi-pillar-divider { display: none; }
.bazi-v2 .bazi-pillar-star-slot { grid-row: 7; min-height: 50px; margin: 0; padding: 7px 2px 0; border-top: 0; }
.bazi-v2 .bazi-pillar-star-slot > span {
  min-height: 21px;
  padding: 3px 5px;
  border-color: #dfd0b6;
  background: #efe5d2 !important;
  color: #73561f !important;
}
.bazi-v2 .bazi-pillar-tile.is-missing { background: #f0eadf; }

@media (max-width:430px) {
  .bazi-v2 .bazi-pillars-stage { margin-inline: 14px; border-radius: 22px; }
  .bazi-v2 .bazi-page-intro { margin-inline: 14px; }
  .bazi-v2 .bazi-profile-strip { margin-inline: 14px; }
  .bazi-v2 .bazi-stage-heading { min-height: 58px; padding-inline: 16px; }
  .bazi-v2 .bazi-pillar-stage-grid { margin-inline: 7px; }
  .bazi-v2 .bazi-pillar-tile { min-height: 256px; padding-inline: 4px; }
  .bazi-v2 .bazi-pillar-glyph { font-size: 1.9rem; }
  .bazi-v2 .bazi-pillar-glyph.branch { font-size: 1.7rem; }
}

/* Final approved reference — airy four pillars, no nested board. */
.bazi-v2 .bazi-pillars-stage {
  margin: 0 18px;
  padding: 22px 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1d201c;
}
.bazi-v2 .bazi-stage-heading {
  min-height: 42px;
  margin: 0;
  padding: 0 2px 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.bazi-v2 .bazi-stage-heading > div { min-width: 0; padding: 0; }
.bazi-v2 .bazi-stage-heading h1 {
  margin: 0;
  padding-left: 14px;
  position: relative;
  color: #171915;
  font-size: 1.42rem;
  line-height: 1.2;
}
.bazi-v2 .bazi-stage-heading h1::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 1px auto 1px 0;
  background: #c89a3b;
}
.bazi-v2 .bazi-stage-heading > small {
  padding-bottom: 2px;
  display: block;
  color: #7b7973;
  font-size: .66rem;
  line-height: 1.35;
  white-space: nowrap;
}
.bazi-v2 .bazi-pillar-stage-grid {
  margin: 18px 0 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  border: 0;
  border-bottom: 1px solid #e2d9cc;
  background: transparent;
}
.bazi-v2 .bazi-stage-band { display: none; }
.bazi-v2 .bazi-pillar-tile {
  min-width: 0;
  min-height: 270px;
  padding: 10px 7px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #20231f;
  text-align: center;
  transform: none;
}
.bazi-v2 .bazi-pillar-tile + .bazi-pillar-tile { border-left: 1px solid #e2d9cc; }
.bazi-v2 .bazi-pillar-tile.day-master,
.bazi-v2 .bazi-pillar-tile[aria-pressed="true"] {
  border-color: #e2d9cc;
  border-radius: 0;
  background: transparent;
  color: #20231f;
  box-shadow: none;
  transform: none;
}
.bazi-v2 .bazi-pillar-tile.day-master::after { display: none; }
.bazi-v2 .bazi-pillar-tile-label {
  color: #292b27 !important;
  font-size: .82rem;
  font-weight: 900;
}
.bazi-v2 .bazi-pillar-symbol {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 5px;
  overflow: visible;
}
.bazi-v2 .bazi-pillar-glyph,
.bazi-v2 .bazi-pillar-glyph.wood,
.bazi-v2 .bazi-pillar-glyph.fire,
.bazi-v2 .bazi-pillar-glyph.earth,
.bazi-v2 .bazi-pillar-glyph.metal,
.bazi-v2 .bazi-pillar-glyph.water {
  color: #1d211e !important;
  font: 700 2.25rem/1 Georgia,serif;
}
.bazi-v2 .bazi-pillar-glyph.branch { font-size: 2rem; }
.bazi-v2 .bazi-pillar-symbol small {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #484942;
  font-size: .66rem;
  line-height: 1.25;
}
.bazi-v2 .bazi-pillar-divider {
  width: 25px;
  height: 1px;
  display: block;
  flex: 0 0 auto;
  background: #c79a42;
}
.bazi-v2 .bazi-pillar-star-slot {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 2px 0;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: center;
  gap: 3px 5px;
  border: 0;
}
.bazi-v2 .bazi-pillar-star-slot.is-empty { visibility: visible; }
.bazi-v2 .bazi-pillar-star-slot > span {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: inline;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #a57926 !important;
  font-size: .63rem;
  font-weight: 850;
  line-height: 1.35;
}
.bazi-v2 .bazi-pillar-tile.is-missing { background: rgba(247,244,238,.55); }

@media (max-width:430px) {
  .bazi-v2 .bazi-pillars-stage { margin-inline: 14px; padding-top: 20px; }
  .bazi-v2 .bazi-stage-heading { padding-inline: 2px; }
  .bazi-v2 .bazi-pillar-stage-grid { margin-inline: 0; margin-top: 16px; }
  .bazi-v2 .bazi-pillar-tile { min-height: 252px; padding-inline: 4px; }
  .bazi-v2 .bazi-pillar-glyph,
  .bazi-v2 .bazi-pillar-glyph.wood,
  .bazi-v2 .bazi-pillar-glyph.fire,
  .bazi-v2 .bazi-pillar-glyph.earth,
  .bazi-v2 .bazi-pillar-glyph.metal,
  .bazi-v2 .bazi-pillar-glyph.water { font-size: 1.95rem; }
  .bazi-v2 .bazi-pillar-glyph.branch { font-size: 1.75rem; }
  .bazi-v2 .bazi-pillar-star-slot > span { font-size: .56rem; }
}

/* Compact information rhythm — avoid stacking grid gaps with section margins. */
.bazi-v2 {
  gap: 0;
}
.bazi-v2 .bazi-page-intro {
  margin: 16px 18px 12px;
}
.bazi-v2 .bazi-profile-strip {
  margin: 0 18px;
}
.bazi-v2 .bazi-pillars-stage {
  padding-top: 16px;
  padding-bottom: 12px;
}
.bazi-v2 .bazi-stage-heading {
  min-height: 34px;
  padding-bottom: 7px;
}
.bazi-v2 .bazi-pillar-stage-grid {
  margin-top: 8px;
}
.bazi-v2 .bazi-pillar-tile {
  min-height: 224px;
  padding-top: 6px;
  padding-bottom: 11px;
  gap: 7px;
}
.bazi-v2 .bazi-pillar-symbol {
  gap: 3px;
}
.bazi-v2 .bazi-pillar-symbol small {
  min-height: 16px;
}
.bazi-v2 .bazi-pillar-star-slot {
  min-height: 32px;
  padding-top: 6px;
}

@media (max-width:430px) {
  .bazi-v2 .bazi-page-intro { margin: 16px 14px 12px; }
  .bazi-v2 .bazi-profile-strip { margin-inline: 14px; }
  .bazi-v2 .bazi-pillars-stage { padding-top: 15px; }
  .bazi-v2 .bazi-pillar-stage-grid { margin-top: 7px; }
  .bazi-v2 .bazi-pillar-tile { min-height: 220px; }
}

/* public/css/home-premium.css */
/*
 * Ai Sinsae home — Imperial Gold Premium.
 * This file intentionally loads after the shared shell and page styles.
 * Keep every rule scoped to the home view so other product surfaces retain
 * their own semantic colors and interaction patterns.
 */

body[data-mobile-view="home"] {
  --home-premium-deep: #a87512;
  --home-premium-gold: #c89525;
  --home-premium-light: #e3b83e;
  --home-premium-ivory: #faf7f0;
  --home-premium-cream: #fffdf8;
  --home-premium-ink: #171612;
  --home-premium-muted: #756f65;
  --home-premium-line: rgba(151, 112, 38, .18);
  --home-premium-focus: rgba(151, 105, 17, .38);
  font-family: var(--app-font-sans);
  background: var(--home-premium-ivory);
}

body[data-mobile-view="home"] button,
body[data-mobile-view="home"] input,
body[data-mobile-view="home"] select,
body[data-mobile-view="home"] textarea {
  font-family: inherit;
}

/* Match the mockup's restrained type hierarchy instead of inherited 850–950 weights. */
body[data-mobile-view="home"] #app-topbar #topbar-title,
body[data-mobile-view="home"] .home-action-section > header strong,
body[data-mobile-view="home"] .home-service-section > header strong,
body[data-mobile-view="home"] .home-primary-action strong,
body[data-mobile-view="home"] .home-service-link strong,
body[data-mobile-view="home"] .home-passport-eyebrow,
body[data-mobile-view="home"] .home-passport-action,
body[data-mobile-view="home"] .home-almanac-detail-cta strong {
  font-weight: 700;
}

body[data-mobile-view="home"] #app-topbar #user-label,
body[data-mobile-view="home"] #app-topbar .topbar-tagline,
body[data-mobile-view="home"] .home-service-link small,
body[data-mobile-view="home"] .home-passport-code {
  font-weight: 400;
}

body[data-mobile-view="home"] .mobile-tabbar button {
  font-weight: 400;
}

body[data-mobile-view="home"] .mobile-tabbar [data-mobile-tab="home"] {
  font-weight: 700;
}

body[data-mobile-view="home"] .chat-main,
body[data-mobile-view="home"] #messages,
body[data-mobile-view="home"] .mock-page.app-mobile-page.home-app-page {
  background: var(--home-premium-ivory) !important;
}

/* App chrome */
body[data-mobile-view="home"] #app-topbar {
  border-bottom-color: transparent;
  background: rgba(250, 247, 240, .97);
  box-shadow: none;
}

body[data-mobile-view="home"] #app-topbar #menu-btn {
  color: var(--home-premium-ink);
}

body[data-mobile-view="home"] #app-topbar .benefit-shortcut {
  min-width: 72px;
  min-height: 34px;
  padding-inline: 11px;
  border: 1px solid rgba(255, 239, 188, .5);
  background: linear-gradient(112deg, #a87512 0%, #c89525 54%, #e3b83e 100%);
  color: #fffdf6;
  box-shadow: 0 6px 16px rgba(126, 83, 8, .14);
}

body[data-mobile-view="home"] #app-topbar .benefit-shortcut b::before {
  content: 'แต้มบุญ';
}

/* Main layout */
body[data-mobile-view="home"] .home-plan {
  width: min(100%, 430px);
  padding: 6px max(12px, env(safe-area-inset-right)) 30px max(12px, env(safe-area-inset-left));
  gap: 14px;
}

body[data-mobile-view="home"] .home-today-card {
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(122deg, var(--home-premium-deep) 0%, var(--home-premium-gold) 48%, var(--home-premium-light) 100%);
  box-shadow: 0 14px 34px rgba(126, 83, 8, .13);
}

body[data-mobile-view="home"] .home-daily-hero {
  width: 100%;
  min-height: 232px;
  aspect-ratio: auto;
  padding: 20px 24px 18px;
  isolation: isolate;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 245, 188, .52), transparent 35%),
    linear-gradient(122deg, #a87512 0%, #c89525 48%, #e3b83e 100%);
  color: var(--home-premium-ink);
  box-shadow: none;
}

body[data-mobile-view="home"] .home-daily-hero::before {
  content: none;
}

body[data-mobile-view="home"] .home-daily-hero::after {
  content: '';
  width: 72%;
  height: 46%;
  position: absolute;
  right: -18%;
  bottom: -20%;
  z-index: 0;
  border-radius: 50%;
  background: rgba(117, 68, 0, .055);
  filter: blur(1px);
  pointer-events: none;
}

body[data-mobile-view="home"] .home-daily-hero > * {
  position: relative;
  z-index: 1;
}

body[data-mobile-view="home"] .home-daily-head {
  align-items: start;
  gap: 18px;
}

body[data-mobile-view="home"] .home-daily-head > div:first-child {
  min-height: 34px;
  padding-left: 13px;
  align-content: center;
}

body[data-mobile-view="home"] .home-daily-head > div:first-child::before {
  width: 3px;
  inset: 2px auto 2px 0;
  background: rgba(96, 57, 0, .72);
}

body[data-mobile-view="home"] .home-daily-head small,
body[data-mobile-view="home"] .home-daily-score small {
  color: rgba(43, 27, 3, .78);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .015em;
  text-transform: none;
}

body[data-mobile-view="home"] .home-daily-head > div:first-child > span {
  display: none;
}

body[data-mobile-view="home"] .home-daily-score {
  position: absolute !important;
  top: 18px;
  right: 24px;
  min-width: 72px;
  min-height: 44px;
  padding: 0 !important;
  border: 0 !important;
  justify-items: end;
  text-align: right;
}

body[data-mobile-view="home"] .home-daily-score strong {
  margin-top: 2px;
  color: #251702;
  font-family: var(--app-font-sans);
  font-size: clamp(1.68rem, 7.2vw, 1.92rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

body[data-mobile-view="home"] .home-daily-hero h1 {
  width: calc(100% - 104px);
  max-width: none;
  margin: 14px 0 8px;
  color: #211502;
  font-size: clamp(1.16rem, 5vw, 1.36rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.018em;
  white-space: nowrap;
}

body[data-mobile-view="home"] .home-daily-hero .home-almanac-summary {
  max-width: 100%;
}

body[data-mobile-view="home"] .home-daily-advice,
body[data-mobile-view="home"] .home-daily-hero .home-almanac-summary .home-daily-advice {
  max-width: none;
  max-height: 2.95em;
  color: rgba(38, 24, 2, .86) !important;
  font-size: .8rem !important;
  font-weight: 400;
  line-height: 1.48 !important;
}

body[data-mobile-view="home"] .home-daily-meta {
  left: 24px;
  top: auto;
  bottom: 70px;
}

body[data-mobile-view="home"] .home-daily-meta span:nth-child(2) {
  color: rgba(45, 28, 2, .82);
  font-size: .72rem;
  font-weight: 700;
}

body[data-mobile-view="home"] .home-daily-source {
  display: none;
}

body[data-mobile-view="home"] .home-daily-hero .home-daily-source small {
  font-size: .75rem;
}

body[data-mobile-view="home"] .home-almanac-detail-cta {
  width: 212px;
  min-width: 0;
  min-height: 44px;
  left: 24px;
  bottom: 16px;
  padding: 6px 9px 6px 14px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 13px;
  background: rgba(255, 253, 245, .91);
  color: var(--home-premium-ink);
  box-shadow: 0 8px 18px rgba(83, 52, 3, .1);
  backdrop-filter: blur(6px);
}

body[data-mobile-view="home"] .home-almanac-detail-cta strong {
  font-size: .76rem;
  font-weight: 900;
}

body[data-mobile-view="home"] .home-daily-hero .home-detail-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-basis: 24px;
  background: transparent;
  color: var(--home-premium-ink);
}

body[data-mobile-view="home"] .home-refresh-state {
  top: auto;
  right: 24px;
  bottom: 22px;
  left: auto;
  color: rgba(49, 30, 2, .68);
  transform: none;
}

/* Loading and error states keep the final card footprint to prevent layout jump. */
body[data-mobile-view="home"] .home-today-card.is-loading {
  min-height: 232px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 245, 188, .5), transparent 35%),
    linear-gradient(122deg, #a87512 0%, #c89525 48%, #e3b83e 100%);
  box-shadow: 0 14px 34px rgba(126, 83, 8, .13);
}

body[data-mobile-view="home"] .home-daily-skeleton {
  min-height: 258px;
  padding: 14px;
  background: transparent;
}

body[data-mobile-view="home"] .home-skeleton-stage {
  width: 100%;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 250, 224, .24);
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

body[data-mobile-view="home"] .home-skeleton-stage > strong { color: #281a04; }
body[data-mobile-view="home"] .home-skeleton-stage > p { color: rgba(48, 30, 2, .7); }
body[data-mobile-view="home"] .home-skeleton-mark {
  border-color: rgba(86, 53, 4, .15);
  background: rgba(255, 252, 235, .38);
  color: #6e4708;
}
body[data-mobile-view="home"] .home-skeleton-mark::after { border-color: rgba(78, 48, 2, .15); }
body[data-mobile-view="home"] .home-skeleton-mark > span { background: #80540b; }
body[data-mobile-view="home"] .home-skeleton-progress { background: rgba(255, 245, 205, .4); }
body[data-mobile-view="home"] .home-skeleton-progress span { background: rgba(255, 253, 238, .92); }

body[data-mobile-view="home"] .home-today-card.is-error {
  min-height: 258px;
  padding: 14px;
  background: linear-gradient(122deg, #a87512 0%, #c89525 58%, #e3b83e 100%);
}

body[data-mobile-view="home"] .home-today-card.is-error .home-almanac-month { display: none; }
body[data-mobile-view="home"] .home-today-card.is-error .home-today-loading {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 224, .24);
  border-radius: 15px;
  color: #281a04;
}
body[data-mobile-view="home"] .home-today-card.is-error .home-today-loading p { color: rgba(48, 30, 2, .7); }
body[data-mobile-view="home"] .home-today-card.is-error .home-today-loading a,
body[data-mobile-view="home"] .home-today-card.is-error .home-today-loading button {
  background: rgba(255, 253, 245, .92);
  color: var(--home-premium-ink);
}

/* Action rows */
body[data-mobile-view="home"] .home-action-section {
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--home-premium-line);
}

body[data-mobile-view="home"] .home-action-section > header {
  padding: 0 0 0 12px;
}

body[data-mobile-view="home"] .home-action-section > header::before {
  width: 3px;
  inset: 1px auto 1px 0;
  background: var(--home-premium-gold);
}

body[data-mobile-view="home"] .home-action-section > header strong {
  color: var(--home-premium-ink);
  font-size: 1rem;
  letter-spacing: -.015em;
}

body[data-mobile-view="home"] .home-primary-actions { gap: 8px; }

body[data-mobile-view="home"] .home-primary-action {
  min-height: 46px;
  padding: 4px 11px;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 8px;
  border: 1px solid var(--home-premium-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .78);
  color: var(--home-premium-ink);
  box-shadow: none;
}

body[data-mobile-view="home"] .home-primary-action.is-primary {
  border-color: rgba(199, 148, 40, .08);
  background: linear-gradient(100deg, rgba(244, 218, 155, .42), rgba(255, 250, 238, .9));
  color: var(--home-premium-ink);
}

body[data-mobile-view="home"] .home-primary-action i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(238, 207, 132, .2);
  color: #5f430f;
}

body[data-mobile-view="home"] .home-primary-action strong {
  font-size: .82rem;
  font-weight: 700;
}

body[data-mobile-view="home"] .home-primary-action::after {
  color: #312815;
  font-size: 1.25rem;
}

body[data-mobile-view="home"] .home-primary-action:hover,
body[data-mobile-view="home"] .home-primary-action:focus-visible {
  border-color: rgba(168, 117, 18, .36);
}

/* Calendar Passport status */
body[data-mobile-view="home"] .home-passport-status {
  min-height: 60px;
  padding: 9px 9px 9px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  border-width: 1px 0;
  border-color: var(--home-premium-line);
  border-radius: 0;
  background: transparent;
}

body[data-mobile-view="home"] .home-passport-eyebrow {
  padding-left: 10px;
  color: var(--home-premium-ink) !important;
  font-size: .75rem;
  letter-spacing: .075em;
}

body[data-mobile-view="home"] .home-passport-eyebrow::before {
  width: 3px;
  inset: 0 auto -22px 0;
  background: var(--home-premium-gold);
}

body[data-mobile-view="home"] .home-passport-code {
  padding-left: 10px;
  color: #77736c !important;
  font-size: .72rem !important;
}

body[data-mobile-view="home"] .home-passport-action { color: #258547; }
body[data-mobile-view="home"] .home-passport-status.is-linked .home-passport-action::before {
  content: '●  เชื่อมแล้ว';
  font-size: .74rem;
}

body[data-mobile-view="home"] .home-service-section {
  margin-top: 12px;
}

/* Keyboard and touch accessibility */
body[data-mobile-view="home"] .home-almanac-detail-cta:focus-visible,
body[data-mobile-view="home"] .home-primary-action:focus-visible,
body[data-mobile-view="home"] .home-passport-status:focus-visible {
  outline: 3px solid var(--home-premium-focus);
  outline-offset: 3px;
}

@media (max-width: 390px) {
  body[data-mobile-view="home"] .home-plan {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
  }

  body[data-mobile-view="home"] .home-daily-hero {
    min-height: 230px;
    padding: 19px 20px 17px;
  }

  body[data-mobile-view="home"] .home-daily-score {
    top: 17px;
    right: 20px;
  }

  body[data-mobile-view="home"] .home-daily-meta,
  body[data-mobile-view="home"] .home-almanac-detail-cta { left: 20px; }
}

@media (max-width: 350px) {
  body[data-mobile-view="home"] .home-daily-hero {
    min-height: 228px;
    padding-inline: 18px;
  }

  body[data-mobile-view="home"] .home-daily-score {
    right: 20px;
  }

  body[data-mobile-view="home"] .home-daily-hero h1 {
    width: calc(100% - 100px);
    font-size: 1.08rem;
  }
  body[data-mobile-view="home"] .home-almanac-detail-cta { width: 202px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-mobile-view="home"] .home-skeleton-mark::after,
  body[data-mobile-view="home"] .home-skeleton-progress span { animation: none; }
}

/* public/css/membership.css */
/* Paulpooh Membership — compact premium hierarchy inspired by a native loyalty wallet. */
body[data-mobile-view="membership"] {
  --member-bg: #f8f5ee;
  --member-surface: #fffdf9;
  --member-ink: #181714;
  --member-muted: #736f67;
  --member-line: rgba(69, 57, 38, .13);
  --tier-accent: #8d6b34;
  --tier-accent-soft: #f3e6c9;
  --tier-hero-a: #6e5637;
  --tier-hero-b: #b08a4d;
  --tier-hero-ink: #fffaf0;
  background: var(--member-bg);
}

body[data-mobile-view="membership"] .chat-main,
body[data-mobile-view="membership"] #messages,
body[data-mobile-view="membership"] .membership-app-page { background: var(--member-bg) !important; }
body[data-mobile-view="membership"] #messages { padding: 0 0 calc(var(--app-shell-bottom-nav, 82px) + env(safe-area-inset-bottom, 0px)) !important; }
body[data-mobile-view="membership"] .mock-page.membership-app-page { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body[data-mobile-view="membership"] #app-topbar { background: rgba(255, 253, 249, .96); border-bottom-color: var(--member-line); box-shadow: none; }

.membership-page { width: min(100%, 720px); margin-inline: auto; padding: 0 0 calc(48px + env(safe-area-inset-bottom)); color: var(--member-ink); }
.membership-page.tier-member { --tier-accent: #69666f; --tier-accent-soft: #e7e5e9; --tier-hero-a: #4a4850; --tier-hero-b: #85818a; --tier-hero-highlight: rgba(235,233,238,.34); --tier-card-bg: rgba(38,36,43,.34); --tier-card-shadow: rgba(25,23,29,.22); --tier-hero-ink: #fff; }
.membership-page.tier-gold { --tier-accent: #9c6a0b; --tier-accent-soft: #f7e2aa; --tier-hero-a: #956006; --tier-hero-b: #d4a13b; --tier-hero-highlight: rgba(255,232,163,.42); --tier-card-bg: rgba(91,56,0,.3); --tier-card-shadow: rgba(76,45,0,.24); --tier-hero-ink: #fffaf0; }
.membership-page.tier-platinum { --tier-accent: #5b718a; --tier-accent-soft: #e4ecf5; --tier-hero-a: #50657c; --tier-hero-b: #9eafc2; --tier-hero-highlight: rgba(228,241,255,.43); --tier-card-bg: rgba(37,53,71,.31); --tier-card-shadow: rgba(28,42,58,.24); --tier-hero-ink: #fff; }
.membership-page.tier-elite { --tier-accent: #9d7432; --tier-accent-soft: #f0dfb5; --tier-hero-a: #0d0e11; --tier-hero-b: #302d2d; --tier-hero-highlight: rgba(238,195,105,.32); --tier-card-bg: rgba(5,6,8,.46); --tier-card-shadow: rgba(0,0,0,.34); --tier-hero-ink: #fff8e8; }

.membership-hero { position: relative; overflow: hidden; padding: 32px clamp(18px, 4.5vw, 30px) 36px; background: radial-gradient(circle at 92% -10%, var(--tier-hero-highlight), transparent 40%), linear-gradient(138deg, var(--tier-hero-a), var(--tier-hero-b)); color: var(--tier-hero-ink); }
.membership-hero::after { position: absolute; right: -90px; bottom: -115px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.035), 0 0 0 66px rgba(255,255,255,.025); content: ''; pointer-events: none; }

.membership-level-card { position: relative; z-index: 1; display: flex; padding: clamp(26px, 5.5vw, 36px); flex-direction: column; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: var(--tier-card-bg); box-shadow: 0 22px 54px var(--tier-card-shadow); backdrop-filter: blur(14px); }
.membership-level-summary { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 18px; }
.membership-level-seal { display: block; width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 9px 14px rgba(24, 15, 5, .22)); }
.membership-level-summary > div { display: grid; min-width: 0; gap: 1px; }
.membership-level-summary small { color: color-mix(in srgb, var(--tier-hero-ink) 68%, transparent); font-size: .68rem; font-weight: 750; letter-spacing: .12em; }
.membership-level-summary strong { overflow: hidden; font-size: clamp(1.5rem, 5.5vw, 1.82rem); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.membership-level-summary span { margin-top: 2px; color: color-mix(in srgb, var(--tier-hero-ink) 76%, transparent); font-size: .83rem; }

.membership-level-progress { display: grid; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.membership-level-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.membership-level-progress span, .membership-level-progress small { color: color-mix(in srgb, var(--tier-hero-ink) 80%, transparent); font-size: .78rem; line-height: 1.5; }
.membership-level-progress b { flex: 0 0 auto; font-size: .9rem; }
.membership-progress-track { overflow: hidden; height: 7px; border-radius: 999px; background: rgba(255,255,255,.22); }
.membership-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--tier-hero-ink); box-shadow: 0 0 12px rgba(255,255,255,.35); transition: width .45s ease; }

.membership-tier-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 61px; padding: 0 clamp(12px, 4vw, 26px); border-bottom: 1px solid var(--member-line); background: var(--member-surface); }
.membership-tier-tabs > button { position: relative; display: flex; min-width: 0; min-height: 61px; padding: 8px 3px 10px; border: 0; align-items: center; justify-content: center; gap: 3px; background: transparent; color: #858078; font: inherit; font-size: .76rem; font-weight: 700; text-align: center; cursor: pointer; }
.membership-tier-tabs > button::after { position: absolute; right: 18%; bottom: 0; left: 18%; height: 2px; border-radius: 999px 999px 0 0; background: transparent; content: ''; }
.membership-tier-tabs > button.active { color: var(--tier-accent); }
.membership-tier-tabs > button.active::after { background: var(--tier-accent); }

.membership-benefits { margin: 0; padding: 28px clamp(20px, 5vw, 34px) 24px; background: var(--member-surface); }
.membership-benefits header span, .membership-rewards > header > span, .membership-redemption-history > header span, .membership-empty-card > span { color: var(--tier-accent); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.membership-benefits header h2, .membership-rewards > header h2 { margin: 5px 0 0; font-size: 1.32rem; letter-spacing: -.02em; }
.membership-benefits header p { margin: 5px 0 0; color: var(--member-muted); font-size: .72rem; line-height: 1.5; }
.membership-inherited-benefits { display: inline-flex; margin-top: 12px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tier-accent) 10%, #fff); color: var(--tier-accent); font-size: .7rem; font-weight: 750; line-height: 1.35; }
.membership-benefits ul { display: grid; gap: 19px; margin: 24px 0; padding: 0; list-style: none; }
.membership-benefits li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 14px; }
.membership-benefits li > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--tier-accent) 11%, #fffaf0); color: var(--tier-accent); font-style: normal; }
.membership-benefits li svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.membership-benefits li > span { display: grid; gap: 3px; padding-top: 1px; }
.membership-benefits li strong { font-size: .92rem; }
.membership-benefits li small { color: var(--member-muted); font-size: .78rem; line-height: 1.55; }
.membership-benefit-more { margin: -5px 0 22px; border-top: 1px solid var(--member-line); }
.membership-benefit-more summary { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; color: var(--tier-accent); font-size: .78rem; font-weight: 750; cursor: pointer; list-style: none; }
.membership-benefit-more summary::-webkit-details-marker { display: none; }
.membership-benefit-more summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; line-height: 1; }
.membership-benefit-more[open] summary::after { content: '−'; }
.membership-benefit-more summary small { margin-left: auto; color: var(--member-muted); font-size: .68rem; font-weight: 650; }
.membership-benefit-more ul { margin: 8px 0 22px; }
.membership-benefits > button, .membership-empty-card > button { min-height: 46px; padding: 0 18px; border: 1px solid var(--member-line); border-radius: 14px; background: #f8f4ea; color: var(--member-ink); font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.membership-benefits > button { width: 100%; }

.membership-balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 18px clamp(16px, 4vw, 28px) 0; border: 1px solid var(--member-line); border-radius: 19px; background: var(--member-line); }
.membership-balance > div { display: grid; align-content: start; min-width: 0; min-height: 112px; padding: 16px 14px; background: var(--member-surface); }
.membership-balance span { color: var(--member-muted); font-size: .7rem; font-weight: 650; }
.membership-balance strong { overflow: hidden; margin: 5px 0 3px; font-size: clamp(1.15rem, 4.5vw, 1.55rem); letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.membership-balance small { color: var(--member-muted); font-size: .67rem; line-height: 1.45; }

.membership-expiry-inline, .membership-elite-note, .membership-boundary { margin: 13px clamp(20px, 5vw, 34px) 0; color: var(--member-muted); font-size: .75rem; line-height: 1.55; }
.membership-expiry-inline { color: #7b5a18; }
.membership-rewards, .membership-lifecycle { margin: 18px clamp(16px, 4vw, 28px) 0; padding: clamp(19px, 4.5vw, 25px); border: 1px solid var(--member-line); border-radius: 21px; background: var(--member-surface); }
.membership-rewards > header p { margin: 4px 0 0; color: var(--member-muted); font-size: .78rem; line-height: 1.5; }

.membership-reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.membership-reward-card { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; min-width: 0; border: 1px solid var(--member-line); border-radius: 18px; background: #fbf8f1; }
.membership-reward-card.is-locked { background: #f7f3eb; }
.membership-reward-card.is-locked .membership-reward-art { filter: saturate(.72); }
.membership-reward-art { display: grid; height: 112px; place-items: center; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--tier-accent) 17%, #f8f2e7), #efe8dc); }
.membership-reward-art img { width: 100%; height: 100%; object-fit: cover; }
.membership-reward-art span { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid color-mix(in srgb, var(--tier-accent) 48%, transparent); border-radius: 50%; color: var(--tier-accent); font: 1.7rem Georgia, serif; }
.membership-reward-copy { padding: 15px 15px 12px; }
.membership-reward-copy > div { display: flex; justify-content: space-between; gap: 8px; }
.membership-reward-copy small { color: var(--tier-accent); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.membership-reward-copy em { color: #a34f35; font-size: .64rem; font-style: normal; font-weight: 700; }
.membership-reward-copy h3 { margin: 5px 0; font-size: .96rem; line-height: 1.35; }
.membership-reward-copy p { display: -webkit-box; overflow: hidden; margin: 0 0 10px; color: var(--member-muted); font-size: .73rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.membership-reward-copy > strong { font-size: .82rem; }
.membership-reward-terms { margin-top: 10px; color: var(--member-muted); font-size: .68rem; }
.membership-reward-terms summary { width: fit-content; color: var(--tier-accent); font-weight: 750; cursor: pointer; }
.membership-reward-terms p { display: block; margin: 7px 0 0; white-space: pre-line; -webkit-line-clamp: initial; }
.membership-reward-card > button, .membership-reward-empty button { min-height: 44px; margin: 0 12px 12px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--member-ink); color: #fff; font: inherit; font-size: .76rem; font-weight: 750; }
.membership-reward-card > button:disabled { cursor: not-allowed; background: #e3ded4; color: #5e5a52; }
.membership-reward-empty { grid-column: 1 / -1; padding: 24px; border-radius: 16px; background: #f7f3eb; text-align: center; }
.membership-reward-empty p { margin: 5px 0 0; color: var(--member-muted); font-size: .78rem; line-height: 1.5; }
.membership-reward-empty button { margin: 16px 0 0; padding-inline: 18px; }
.membership-reward-loading { display: grid; min-height: 150px; place-items: center; }

.membership-redemption-history { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--member-line); }
.membership-redemption-history > header h3 { margin: 3px 0 12px; font-size: 1rem; }
.membership-redemption-history > article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--member-line); }
.membership-redemption-history > article:last-child { border-bottom: 0; }
.membership-redemption-history article > div { display: grid; min-width: 0; gap: 2px; }
.membership-redemption-history article small, .membership-redemption-history article span { color: var(--member-muted); font-size: .67rem; }
.membership-redemption-history article strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.membership-redemption-history article > b { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #eee7d9; color: #6e6046; font-size: .65rem; }
.membership-redemption-history article > b.status-fulfilled { background: #e2f2e8; color: #28633d; }

.membership-debt-note, .membership-service-notice { display: grid; gap: 3px; margin: 14px clamp(16px, 4vw, 28px) 0; padding: 13px 16px; border-radius: 14px; background: #fff3dd; color: #714b12; font-size: .76rem; line-height: 1.5; }
.membership-service-notice { margin: 14px 16px; }
.membership-boundary { padding: 2px 0 8px; text-align: center; }

.membership-lifecycle > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.membership-lifecycle > header span { display: block; color: var(--tier-accent); font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.membership-lifecycle > header h2 { margin: 3px 0 0; font-size: 1.18rem; }
.membership-lifecycle > header > small { color: var(--member-muted); font-weight: 700; }
.membership-renewal-summary { padding: 16px 0; border-top: 1px solid var(--member-line); }
.membership-renewal-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.membership-renewal-summary span { color: var(--member-muted); font-size: .76rem; }
.membership-renewal-summary strong { color: var(--tier-accent); font-size: 1.12rem; }
.membership-renewal-summary p { margin: 8px 0 0; color: var(--member-muted); font-size: .75rem; line-height: 1.6; }
.membership-expiry-warning { display: flex; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 14px; background: #fff4d9; color: #76560e; font-size: .76rem; }
.membership-expiry-warning span { color: #796f5b; }
.membership-lifecycle-notices { display: grid; gap: 9px; margin-top: 12px; }
.membership-lifecycle-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 14px; background: #f6f3eb; }
.membership-lifecycle-notice.severity-attention { background: #fff4d9; }
.membership-lifecycle-notice strong { font-size: .8rem; }
.membership-lifecycle-notice p { margin: 3px 0 0; color: var(--member-muted); font-size: .7rem; line-height: 1.5; }
.membership-lifecycle-notice button { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(36,35,31,.06); color: #5e5a51; font-size: 1.2rem; line-height: 1; cursor: pointer; }

.membership-loading { display: grid; min-height: 430px; place-items: center; }
.membership-unavailable { display: grid; min-height: min(640px, 72vh); padding: 20px; place-items: center; }
.membership-empty-card { max-width: 520px; padding: 36px; border: 1px solid var(--member-line); border-radius: 28px; background: var(--member-surface); text-align: center; }
.membership-empty-card > i { display: grid; width: 72px; height: 72px; margin: 24px auto; place-items: center; border: 1px solid #cdb98f; border-radius: 50%; color: #9a793d; font: normal 2rem Georgia, serif; }
.membership-empty-card h1 { margin: 10px 0; font-size: 1.55rem; }
.membership-empty-card p { margin: 0 0 22px; color: var(--member-muted); line-height: 1.65; }

.library-membership-entry { margin-bottom: 14px; }
.library-membership-entry > button { display: grid; grid-template-columns: 48px 1fr auto; width: 100%; min-height: 88px; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid rgba(142, 106, 51, .24); border-radius: 20px; background: linear-gradient(125deg, #24221e, #11110f); color: #fffaf0; text-align: left; }
.library-membership-seal { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #b89656; border-radius: 50%; color: #e5cc90; font: 1.3rem Georgia, serif; }
.library-membership-entry button > span:nth-child(2) { display: grid; min-width: 0; }
.library-membership-entry small { color: #cbb47b; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
.library-membership-entry strong { margin-top: 2px; font-size: .98rem; }
.library-membership-entry em { color: rgba(255,250,240,.68); font-size: .73rem; font-style: normal; }
.library-membership-entry button > b { color: #d7bd7b; font-size: 1.5rem; }

.membership-page button:focus-visible, .library-membership-entry button:focus-visible, .membership-reward-terms summary:focus-visible { outline: 3px solid var(--tier-accent, #a77c32); outline-offset: 3px; }

@media (max-width: 560px) {
  .membership-level-card { padding: 26px 24px; }
  .membership-level-summary { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; }
  .membership-level-seal { width: 68px; height: 68px; }
  .membership-balance > div { min-height: 105px; padding: 14px 10px; }
  .membership-balance strong { font-size: 1.08rem; }
  .membership-reward-grid { grid-template-columns: 1fr; }
  .membership-reward-card { grid-template-columns: 88px 1fr; grid-template-rows: 1fr auto; }
  .membership-reward-art { grid-row: 1 / 3; width: 88px; height: 100%; min-height: 150px; }
  .membership-reward-card > button { grid-column: 2; }
  .membership-renewal-summary > div, .membership-expiry-warning { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 360px) {
  .membership-level-card { padding: 23px 21px; }
  .membership-level-summary { grid-template-columns: 62px minmax(0, 1fr); }
  .membership-level-seal { width: 62px; height: 62px; }
  .membership-tier-tabs { padding-inline: 6px; }
  .membership-tier-tabs > button { font-size: .69rem; }
}

@media (prefers-reduced-motion: reduce) { .membership-progress-track i { transition: none; } }
.membership-history-entry{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 12px;padding:4px clamp(10px,3vw,16px);background:var(--member-surface)}
.membership-history-entry small{padding-block:6px;overflow-wrap:anywhere}
.membership-history-entry button{min-height:44px;margin-inline-start:auto;padding:4px 0;border:0;background:transparent;color:var(--member-ink,#261f16);font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
.membership-history-entry button span{margin-inline-start:2px;color:inherit;font-size:1em}
.membership-history-explain,.membership-history-body small{color:#655740}
.membership-history-dialog button{min-height:44px;padding:7px 12px;border:1px solid #d5c5a5;border-radius:8px;background:#fffaf0;color:#49381e;font:inherit;font-weight:700;cursor:pointer}
.membership-history-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(calc(100% - 24px),530px);max-height:calc(100% - 32px);padding:0;border:1px solid #e1d7c4;border-radius:18px;background:#fffaf0;color:#261f16;overflow:auto;overscroll-behavior:contain;z-index:1000}
.membership-history-dialog::backdrop{background:rgba(17,15,11,.64)}
.membership-history-layout{padding:clamp(14px,4vw,24px);display:grid;gap:12px}
.membership-history-layout header{display:flex;align-items:center;justify-content:space-between;gap:8px}.membership-history-layout h2{margin:0;font-size:1.25rem;color:inherit}
.membership-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.membership-history-tabs button[aria-pressed=true]{background:#392b16;color:#fff3d5;border-color:#392b16}
.membership-history-body ol{list-style:none;padding:0;margin:0;max-height:min(48vh,430px);overflow:auto;overscroll-behavior:contain}
.membership-history-body li{padding:10px 0;border-bottom:1px solid #e4dac7}.membership-history-body p,.membership-history-explain{margin:4px 0;line-height:1.5}
.membership-history-body li p{overflow-wrap:anywhere}.membership-history-line{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 8px}
.membership-history-line b.is-credit{color:#276447}
.membership-history-dialog [hidden]{display:none!important}
.membership-history-dialog :focus-visible,.membership-history-entry button:focus-visible{outline:2px solid #866127;outline-offset:2px}
@media (forced-colors: active) { .membership-level-card, .membership-benefits, .membership-balance, .membership-lifecycle, .membership-rewards, .membership-reward-card { border: 1px solid CanvasText; } }

/* public/css/whoop-theme.css */
/*
 * AI Sinsae Premium Daily System
 * Final theme layer. Loaded after all page styles so shared tokens and approved
 * mobile compositions remain the single visual source of truth.
 */

:root {
  --sinsae-ink: #111311;
  --sinsae-ink-soft: #191c19;
  --sinsae-ink-raised: #222522;
  --sinsae-paper: #f8f4ec;
  --sinsae-paper-strong: #fffdf8;
  --sinsae-gold: #c89c3f;
  --sinsae-gold-light: #efd28b;
  --sinsae-gold-soft: #efd28b;
  --sinsae-gold-dark: #8d681d;
  --sinsae-jade: #32965b;
  --sinsae-muted: #746f66;
  --sinsae-line: #ded6c9;
  --sinsae-good: #dfeeda;
  --sinsae-neutral: #fff0c7;
  --sinsae-caution: #f4d8d6;
  --sinsae-side: 18px;
  --sinsae-section: 28px;
  --sinsae-radius: 22px;
  --app-shell-gold: var(--sinsae-gold);
  --app-shell-focus: #9a7425;
  --app-shell-line: var(--sinsae-line);
  --app-shell-surface-soft: var(--sinsae-paper);
  --app-shell-ink: var(--sinsae-ink);
  --app-shell-muted: var(--sinsae-muted);
  --app-shell-shadow: none;
  --app-type-display: 1.62rem;
  --app-type-page-title: 1.4rem;
  --app-type-section-title: 1.2rem;
  --app-type-card-title: 1rem;
  --app-type-body: .9375rem;
  --app-type-support: .8125rem;
  --app-type-caption: .75rem;
  --app-type-micro: .6875rem;
  --app-line-heading: 1.35;
  --app-line-body: 1.65;
  --app-line-compact: 1.45;
}

html,
body,
.app-shell,
.chat-main,
.chat-view,
#messages {
  background: var(--sinsae-paper);
  color: var(--sinsae-ink);
}

body,
button,
input,
select,
textarea {
  font-family: var(--app-font-sans);
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(200, 156, 63, .38) !important;
  outline-offset: 3px;
}

/* App chrome */
#app-topbar.topbar {
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: var(--sinsae-ink) !important;
  color: #fff !important;
}

#app-topbar #topbar-title {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -.015em;
}

#app-topbar:is(.home-topbar, .chat-topbar) #topbar-title {
  font-size: 16px !important;
}

#app-topbar #user-label,
#app-topbar .topbar-tagline {
  color: rgba(255,255,255,.58) !important;
  font-size: .7rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  overflow: visible !important;
}

#app-topbar #menu-btn {
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 1.35rem !important;
}

#app-topbar .benefit-shortcut {
  min-width: 72px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid var(--sinsae-gold-light) !important;
  background: transparent !important;
  color: var(--sinsae-gold-light) !important;
  box-shadow: none !important;
}

#app-topbar .benefit-shortcut b::before {
  color: inherit;
  font-size: .72rem;
  font-weight: 750;
}

#app-topbar .account-menu-btn {
  border: 1px solid rgba(255,255,255,.48) !important;
  background-color: var(--sinsae-ink-raised) !important;
  box-shadow: none !important;
}

.account-menu {
  border: 1px solid var(--sinsae-line) !important;
  background: var(--sinsae-paper-strong) !important;
  box-shadow: 0 20px 54px rgba(0,0,0,.2) !important;
}

.plan-mobile-tabbar {
  border-top: 1px solid var(--sinsae-line) !important;
  background: rgba(255,253,248,.97) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

.plan-mobile-tabbar button {
  color: #545853 !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
}

.plan-mobile-tabbar .tab-icon {
  width: 40px !important;
  height: 40px !important;
  padding: 4px !important;
  stroke-width: 1.7 !important;
}

body[data-mobile-view="home"] .plan-mobile-tabbar [data-mobile-tab="home"],
body[data-mobile-view="chat"] .plan-mobile-tabbar [data-mobile-tab="chat"],
body[data-mobile-view="bazi"] .plan-mobile-tabbar [data-mobile-tab="bazi"],
body[data-mobile-view="monthly"] .plan-mobile-tabbar [data-mobile-tab="bazi"],
body[data-mobile-view="oracle"] .plan-mobile-tabbar [data-mobile-tab="home"],
body[data-mobile-view="calendar"] .plan-mobile-tabbar [data-mobile-tab="calendar"],
body[data-mobile-view="dateFinder"] .plan-mobile-tabbar [data-mobile-tab="calendar"] {
  color: var(--sinsae-gold-dark) !important;
  font-weight: 800 !important;
}

/* Today */
body[data-mobile-view="home"] #messages {
  /* Keep the final home action above the fixed tab bar, including iOS safe area. */
  padding: 0 0 calc(var(--app-shell-bottom-nav) + env(safe-area-inset-bottom, 0px) + 20px) !important;
  scroll-padding-bottom: calc(var(--app-shell-bottom-nav) + env(safe-area-inset-bottom, 0px) + 20px);
  background: var(--sinsae-paper) !important;
}

body[data-mobile-view="home"] .mock-page.home-app-page {
  width: min(100%, 520px) !important;
  margin: 0 auto !important;
  padding: 0 0 28px !important;
  background: var(--sinsae-paper) !important;
}

body[data-mobile-view="home"] .home-plan {
  width: 100% !important;
  padding: 0 var(--sinsae-side) 36px !important;
  gap: 0 !important;
  background: var(--sinsae-paper) !important;
}

.home-primary-column,
.home-secondary-column { display: contents; }

@media (min-width: 761px) {
  body:not(.mobile-preview-mode)[data-mobile-view="home"] #messages { padding: 0 0 24px !important; scroll-padding-bottom: 24px; }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .mock-page.home-app-page { width: min(100%, 760px) !important; }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .home-plan { padding: 18px clamp(18px, 3vw, 32px) 24px !important; gap: 14px !important; }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .home-today-card { margin: 0 !important; overflow: hidden !important; border-radius: 20px !important; }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .home-shortcut-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
}

@media (min-width: 1120px) {
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .mock-page.home-app-page { width: min(100%, 1160px) !important; }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .home-plan { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 42px) !important; }
  body:not(.mobile-preview-mode) :is(.home-primary-column,.home-secondary-column) { display: grid; min-width: 0; gap: 18px; }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .home-shortcut-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body:not(.mobile-preview-mode)[data-mobile-view="home"] .home-primary-actions { grid-template-columns: 1fr; }
  body:not(.mobile-preview-mode) .plan-account-page { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  body:not(.mobile-preview-mode) .plan-account-page > :is(.plan-account-hero,.plan-account-help,.plan-account-uid) { grid-column: 1 / -1; }
}

body[data-mobile-view="home"] .home-today-card {
  margin: 0 calc(var(--sinsae-side) * -1) !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="home"] .home-daily-hero {
  min-height: 292px !important;
  padding: 22px var(--sinsae-side) 18px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 0 !important;
  border-radius: 0 0 30px 30px !important;
  background: var(--sinsae-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body[data-mobile-view="home"] .home-daily-hero::before,
body[data-mobile-view="home"] .home-daily-hero::after {
  content: none !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero {
  justify-content: center !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero .home-daily-skeleton {
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero .home-skeleton-stage {
  min-height: 230px !important;
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.035) !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero .home-skeleton-stage > strong {
  color: #fff !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero .home-skeleton-stage > p {
  color: rgba(255,255,255,.58) !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero .home-skeleton-mark {
  border-color: rgba(255,255,255,.15) !important;
  background: rgba(255,255,255,.08) !important;
  color: #e1c478 !important;
}

body[data-mobile-view="home"] .home-daily-loading-hero .home-skeleton-progress {
  background: rgba(255,255,255,.14) !important;
}

body[data-mobile-view="home"] .home-daily-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body[data-mobile-view="home"] .home-daily-head > div:first-child {
  min-width: 0;
  padding-left: 14px;
  position: relative;
}

body[data-mobile-view="home"] .home-daily-head > div:first-child::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 1px auto 1px 0;
  border-radius: 99px;
  background: var(--sinsae-gold-light);
}

body[data-mobile-view="home"] .home-daily-head small,
body[data-mobile-view="home"] .home-daily-head h1 {
  display: block !important;
}

body[data-mobile-view="home"] .home-daily-head small {
  color: var(--sinsae-gold-light) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}

body[data-mobile-view="home"] .home-daily-head h1 {
  margin-top: 5px;
  color: rgba(255,255,255,.62) !important;
  font-size: clamp(.92rem, 3.8vw, 1rem) !important;
  font-weight: 550 !important;
  line-height: 1.35 !important;
  letter-spacing: -.01em;
}

body[data-mobile-view="home"] .home-daily-score {
  min-width: 80px;
  position: static !important;
  inset: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: grid !important;
  justify-items: end;
  background: transparent !important;
  color: #fff !important;
  white-space: nowrap !important;
}

body[data-mobile-view="home"] .home-daily-score small {
  color: rgba(255,255,255,.62) !important;
  font-size: .75rem !important;
}

body[data-mobile-view="home"] .home-daily-score strong {
  color: var(--sinsae-gold-light) !important;
  font-size: clamp(2.55rem, 11.5vw, 3.15rem) !important;
  font-weight: 800 !important;
  line-height: .98 !important;
  letter-spacing: -.055em;
}

body[data-mobile-view="home"] .home-almanac-summary {
  min-height: 0 !important;
  margin-top: 7px !important;
  padding: 0 !important;
  display: block !important;
  border: 0 !important;
  background: transparent !important;
}

body[data-mobile-view="home"] .home-daily-hero .home-almanac-summary p.home-daily-advice {
  max-width: 34rem !important;
  margin: 0 !important;
  color: rgba(255,255,255,.94) !important;
  font-size: clamp(.98rem, 4vw, 1.08rem) !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
  letter-spacing: -.015em;
}

body[data-mobile-view="home"] .home-daily-meta {
  margin-top: 18px !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(255,255,255,.58) !important;
}

body[data-mobile-view="home"] .home-daily-meta span {
  min-height: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: .76rem !important;
  font-weight: 500 !important;
}

body[data-mobile-view="home"] .home-today-card.is-public-almanac,
body[data-mobile-view="home"] .home-public-almanac {
  min-height: 226px !important;
}

body[data-mobile-view="home"] .home-public-almanac {
  padding: 24px var(--sinsae-side) 22px !important;
  justify-content: space-between !important;
}

body[data-mobile-view="home"] .home-public-almanac-head {
  padding-left: 14px;
  position: relative;
}

body[data-mobile-view="home"] .home-public-almanac-head::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 1px auto 1px 0;
  border-radius: 99px;
  background: var(--sinsae-gold-light);
}

body[data-mobile-view="home"] .home-public-almanac-head small {
  color: var(--sinsae-gold-light);
  font-size: .72rem;
  font-weight: 750;
}

body[data-mobile-view="home"] .home-public-almanac-head h1 {
  width: auto !important;
  margin: 5px 0 0 !important;
  color: #fff !important;
  font-size: 1.3rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

body[data-mobile-view="home"] .home-public-almanac-head p {
  margin: 3px 0 0;
  color: rgba(255,255,255,.62);
  font-size: .76rem;
}

body[data-mobile-view="home"] .home-public-almanac-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.13);
}

body[data-mobile-view="home"] .home-public-almanac-facts > div {
  min-width: 0;
  padding: 15px 12px 0 0;
  display: grid;
  gap: 3px;
}

body[data-mobile-view="home"] .home-public-almanac-facts > div + div {
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.13);
}

body[data-mobile-view="home"] .home-public-almanac-facts span {
  color: rgba(255,255,255,.56);
  font-size: .64rem;
}

body[data-mobile-view="home"] .home-public-almanac-facts strong {
  min-width: 0;
  color: #fff;
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-mobile-view="home"] .home-public-almanac-note {
  margin: 13px 0 0;
  color: rgba(255,255,255,.64);
  font-size: .75rem;
  font-weight: 450;
  line-height: 1.5;
}

body[data-mobile-view="home"] .home-almanac-detail-cta {
  width: min(204px, 68%) !important;
  min-height: 46px !important;
  margin-top: 16px !important;
  padding: 0 15px !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--sinsae-paper-strong) !important;
  color: var(--sinsae-ink) !important;
  box-shadow: none !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta strong {
  font-size: .84rem !important;
  font-weight: 750 !important;
}

body[data-mobile-view="home"] .home-detail-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  flex: 0 0 20px !important;
  display: grid !important;
  place-items: center !important;
}

body[data-mobile-view="home"] .home-detail-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-mobile-view="home"] .home-refresh-state {
  display: none !important;
}

.home-shortcuts {
  width: 100%;
  padding: 26px 0 0;
  background: var(--sinsae-paper);
}

.home-shortcuts h2 {
  margin: 0;
  padding-left: 13px;
  position: relative;
  font-size: 1.15rem;
  line-height: 1.3;
}

.home-shortcuts h2::before {
  content: '';
  width: 4px;
  position: absolute;
  inset: 3px auto 3px 0;
  border-radius: 99px;
  background: var(--sinsae-gold);
}

.home-shortcut-grid {
  width: 100%;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.home-shortcut-link {
  min-height: 96px;
  min-width: 0;
  padding: 7px 2px 6px;
  display: grid;
  grid-template-rows: 64px auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--sinsae-ink);
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, background 140ms ease;
}

.home-shortcut-link:active {
  transform: scale(.97);
  background: rgba(200, 156, 63, .08);
}

.home-shortcut-link:focus-visible {
  outline: 3px solid rgba(180, 132, 41, .32);
  outline-offset: 2px;
}

.home-shortcut-art {
  width: min(64px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-shortcut-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: none;
}

.home-shortcut-link[data-nav-view="shrine"] .home-shortcut-art img {
  transform: scale(.9);
}

.home-shortcut-link > strong {
  margin: 0;
  min-width: 0;
  color: #282821;
  font-size: .76rem;
  font-weight: 740;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.home-daily-hero .home-daily-source {
  margin: 14px 0 0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .64);
  font-size: .75rem !important;
}

.home-daily-hero .home-daily-source i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--sinsae-jade);
}

.home-daily-hero .home-daily-source b {
  color: rgba(255, 255, 255, .82);
}

.home-daily-hero .home-daily-source small {
  margin-left: auto;
  color: rgba(255, 255, 255, .52);
  font-size: .68rem !important;
}

.home-daily-hero .home-daily-source .home-source-code {
  margin-left: 0;
  color: rgba(255, 255, 255, .7);
}

body[data-mobile-view="home"] .home-daily-hero .home-daily-source .home-source-code,
body[data-mobile-view="home"] .home-daily-hero .home-daily-source .home-source-updated {
  font-size: .75rem !important;
}

@media (max-width: 370px) {
  .home-shortcut-grid {
    gap: 0;
  }

  .home-shortcut-link {
    min-height: 92px;
    grid-template-rows: 58px auto;
  }

  .home-shortcut-art {
    width: min(58px, 100%);
  }

  .home-shortcut-link > strong {
    font-size: .7rem;
  }
}

body[data-mobile-view="home"] .home-passport-status {
  min-height: 68px !important;
  margin-top: 26px !important;
  padding: 13px 4px !important;
  border: solid var(--sinsae-line) !important;
  border-width: 1px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="home"] .home-passport-status > i {
  display: none !important;
}

body[data-mobile-view="home"] .home-passport-eyebrow {
  color: var(--sinsae-ink) !important;
  font-size: .72rem !important;
  letter-spacing: .08em;
}

body[data-mobile-view="home"] .home-passport-eyebrow em {
  display: none !important;
}

body[data-mobile-view="home"] .home-passport-copy strong,
body[data-mobile-view="home"] .home-passport-copy .home-passport-code {
  color: #686b66 !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
}

body[data-mobile-view="home"] .home-passport-updated {
  display: none !important;
}

body[data-mobile-view="home"] .home-passport-status small,
body[data-mobile-view="home"] .home-primary-action small {
  font-size: .75rem !important;
}

body[data-mobile-view="home"] .home-passport-action {
  color: var(--sinsae-jade) !important;
  font-size: 0 !important;
}

body[data-mobile-view="home"] .home-passport-status.is-linked .home-passport-action::before {
  content: '●  เชื่อมแล้ว' !important;
  font-size: .75rem !important;
}

body[data-mobile-view="home"] .home-passport-action b {
  margin-left: 5px;
  font-size: 1.05rem;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked {
  min-height: 0 !important;
  margin-top: 26px !important;
  padding: 17px !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 13px !important;
  border: 1px solid rgba(173, 139, 73, .25) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(246,239,225,.78)) !important;
  box-shadow: 0 12px 28px rgba(44, 38, 27, .07) !important;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked > i {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(178, 134, 47, .2);
  border-radius: 14px;
  color: #8e671b;
  background: rgba(225, 197, 132, .2);
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked > i svg {
  width: 23px;
  height: 23px;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked .home-passport-copy {
  display: grid;
  gap: 2px;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked .home-passport-eyebrow {
  padding: 0 !important;
  color: var(--sinsae-gold-dark) !important;
  font-size: .6rem !important;
  font-weight: 850;
  letter-spacing: .08em;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked .home-passport-eyebrow::before {
  content: none !important;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked .home-passport-copy strong {
  color: var(--sinsae-ink) !important;
  font-size: .94rem !important;
  font-weight: 780 !important;
  line-height: 1.35;
}

body[data-mobile-view="home"] .home-passport-status.is-unlinked .home-passport-description {
  display: block;
  color: #777167 !important;
  font-size: .69rem !important;
  line-height: 1.48;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

body[data-mobile-view="home"] .home-passport-actions {
  width: 100%;
  margin-top: 2px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body[data-mobile-view="home"] .home-passport-connect-cta {
  min-width: 0;
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(228, 198, 129, .22);
  border-radius: 12px;
  color: #fff;
  background: #111310;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[data-mobile-view="home"] .home-passport-connect-cta b {
  color: var(--sinsae-gold-light);
  font-size: 1rem;
  font-weight: 600;
}

body[data-mobile-view="home"] .home-passport-purchase-cta {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(142, 103, 27, .32);
  border-radius: 12px;
  color: #765313;
  background: rgba(255,255,255,.6);
  font-size: .68rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[data-mobile-view="home"] .home-passport-connect-cta:focus-visible,
body[data-mobile-view="home"] .home-passport-purchase-cta:focus-visible {
  outline: 3px solid rgba(180, 132, 41, .35);
  outline-offset: 3px;
}

body[data-mobile-view="home"] .home-action-section,
body[data-mobile-view="home"] .home-service-section {
  margin-top: 30px !important;
}

body[data-mobile-view="home"] .home-action-section > header strong,
body[data-mobile-view="home"] .home-service-section > header strong {
  font-size: 1.05rem !important;
}

body[data-mobile-view="home"] .home-primary-actions {
  margin-top: 12px !important;
  display: grid !important;
  gap: 0 !important;
}

body[data-mobile-view="home"] .home-primary-action {
  min-height: 50px !important;
  padding: 9px 2px !important;
  border: solid var(--sinsae-line) !important;
  border-width: 0 0 1px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="home"] .home-primary-action.is-primary {
  background: rgba(200,156,63,.09) !important;
}

body[data-mobile-view="home"] .home-primary-action i {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: #eee6d7 !important;
  color: var(--sinsae-gold-dark) !important;
}

/* Chat */
body[data-mobile-view="chat"] #messages {
  width: min(100%, 680px) !important;
  padding: 0 var(--sinsae-side) calc(var(--app-shell-bottom-nav) + 86px) !important;
  background: var(--sinsae-paper) !important;
}

body[data-mobile-view="chat"] .chat-concierge-head {
  margin: 0 !important;
  padding: 18px 0 14px !important;
  display: grid !important;
  align-items: start !important;
  gap: 10px !important;
  border-bottom: 1px solid var(--sinsae-line) !important;
  background: transparent !important;
}

body[data-mobile-view="chat"] .chat-concierge-head > div:first-child > span {
  color: var(--sinsae-gold-dark) !important;
  font-size: .66rem !important;
  letter-spacing: .08em !important;
}

body[data-mobile-view="chat"] .chat-concierge-head h1 {
  margin: 3px 0 0 !important;
  font-size: 1.35rem !important;
}

body[data-mobile-view="chat"] .chat-context-capsule {
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: flex-start;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sinsae-muted) !important;
  font-size: .64rem !important;
  text-align: left;
}

body[data-mobile-view="chat"] #messages .welcome-empty {
  min-height: 330px !important;
  padding: 52px 10px 24px !important;
}

body[data-mobile-view="chat"] .welcome-empty > img {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid var(--sinsae-line);
  border-radius: 50% !important;
  box-shadow: none !important;
}

body[data-mobile-view="chat"] .welcome-empty h1 {
  max-width: 340px;
  margin-top: 22px !important;
  font-size: 1.45rem !important;
  line-height: 1.45 !important;
}

body[data-mobile-view="chat"] .welcome-empty p {
  max-width: 340px !important;
  color: var(--sinsae-muted) !important;
  font-size: .82rem !important;
}

body[data-mobile-view="chat"] .message-row {
  margin-top: 24px !important;
}

body[data-mobile-view="chat"] .message-row.user .message-content {
  padding: 11px 15px !important;
  border-radius: 18px 18px 5px 18px !important;
  background: #ede7dc !important;
  color: var(--sinsae-ink) !important;
}

body[data-mobile-view="chat"] .message-row.assistant {
  padding-left: 40px !important;
  display: block !important;
}

body[data-mobile-view="chat"] .message-row.assistant::before {
  width: 30px !important;
  height: 30px !important;
  position: absolute !important;
  top: 3px !important;
  left: 0 !important;
  border: 1px solid var(--sinsae-line) !important;
  border-radius: 50% !important;
}

body[data-mobile-view="chat"] .message-row.assistant::after {
  content: none !important;
}

body[data-mobile-view="chat"] .message-row.assistant .message-content {
  padding: 0 !important;
  background: transparent !important;
  color: #30332f !important;
  font-size: .94rem !important;
  line-height: 1.8 !important;
}

body[data-mobile-view="chat"] .composer {
  width: auto !important;
  right: var(--sinsae-side) !important;
  left: var(--sinsae-side) !important;
  transform: none !important;
  min-height: 54px !important;
  padding: 6px 6px 6px 15px !important;
  border: 1px solid var(--sinsae-line) !important;
  border-radius: 28px !important;
  background: var(--sinsae-paper-strong) !important;
  box-shadow: 0 10px 28px rgba(22,25,22,.1) !important;
}

body[data-mobile-view="chat"] .composer textarea {
  /* iOS zooms focused form controls below 16px, which can pan the LIFF
     visual viewport far enough to move the composer off-screen. */
  font-size: 16px !important;
}

body[data-mobile-view="chat"] .composer #send-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--sinsae-ink) !important;
  color: #fff !important;
}

@media (min-width: 761px) {
  body:not(.mobile-preview-mode)[data-mobile-view="chat"] #messages {
    width: min(100%, 760px) !important;
    margin-inline: auto;
    padding-bottom: calc(var(--chat-composer-height, 54px) + 36px) !important;
  }
  body:not(.mobile-preview-mode)[data-mobile-view="chat"] .composer {
    width: min(760px, calc(100% - 36px)) !important;
    right: auto !important;
    left: 50% !important;
    bottom: var(--wide-chat-composer-bottom, 16px) !important;
    transform: translateX(-50%) !important;
  }
  body.chat-keyboard-open { --wide-chat-composer-bottom: max(7px, env(safe-area-inset-bottom, 0px)); }
}

/* Bazi */
body[data-mobile-view="bazi"] #messages,
body[data-mobile-view="bazi"] .mock-page,
body[data-mobile-view="bazi"] .bazi-v2 {
  background: var(--sinsae-paper) !important;
}

body[data-mobile-view="bazi"] #messages {
  padding: 0 var(--sinsae-side) !important;
}

body[data-mobile-view="bazi"] .mock-page.bazi-app-page {
  padding: 0 0 calc(var(--app-shell-bottom-nav) + 28px) !important;
}

body[data-mobile-view="bazi"] .bazi-page-intro {
  margin: 0 !important;
  padding: 22px 0 15px 14px !important;
  border-bottom: 1px solid var(--sinsae-line);
}

body[data-mobile-view="bazi"] .bazi-page-intro > span {
  display: none !important;
}

body[data-mobile-view="bazi"] .bazi-page-intro h1 {
  margin: 0 !important;
  font-size: 1.45rem !important;
}

body[data-mobile-view="bazi"] .bazi-page-intro p {
  margin: 3px 0 0 !important;
  color: var(--sinsae-muted) !important;
  font-size: .78rem !important;
}

body[data-mobile-view="bazi"] .bazi-profile-strip {
  margin: 0 !important;
  min-height: 54px !important;
  padding: 10px 2px !important;
  border-bottom: 1px solid var(--sinsae-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="bazi"] .bazi-profile-strip > div {
  min-width: 0 !important;
}

body[data-mobile-view="bazi"] .bazi-profile-strip > div > small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-mobile-view="bazi"] .bazi-profile-strip > div > span {
  display: none !important;
}

body[data-mobile-view="bazi"] .bazi-profile-strip > div > strong {
  font-size: .95rem !important;
}

body[data-mobile-view="bazi"] .bazi-profile-ready {
  color: var(--sinsae-jade) !important;
  font-size: .72rem !important;
}

body[data-mobile-view="bazi"] .bazi-pillars-stage {
  margin: 0 !important;
  overflow: visible !important;
  padding: 18px 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sinsae-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="bazi"] .bazi-pillars-stage::before,
body[data-mobile-view="bazi"] .bazi-stage-corner,
body[data-mobile-view="bazi"] .bazi-stage-band {
  display: none !important;
}

body[data-mobile-view="bazi"] .bazi-stage-heading {
  padding: 0 2px 12px !important;
}

body[data-mobile-view="bazi"] .bazi-stage-heading h1 {
  font-size: 1.18rem !important;
}

body[data-mobile-view="bazi"] .bazi-stage-heading small {
  color: var(--sinsae-muted) !important;
  font-size: .58rem !important;
  white-space: nowrap !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-stage-grid {
  margin-top: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 0 !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-tile,
body[data-mobile-view="bazi"] .bazi-pillar-tile.day-master {
  min-height: 210px !important;
  padding: 4px 5px 2px !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-rows: 24px 62px 1px 62px minmax(42px, auto) !important;
  gap: 2px !important;
  border: 0 !important;
  border-right: 1px solid var(--sinsae-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sinsae-ink) !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-tile:last-child {
  border-right: 0 !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-tile.day-master::after {
  content: none !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-tile-label,
body[data-mobile-view="bazi"] .bazi-pillar-tile.day-master .bazi-pillar-tile-label {
  color: #535750 !important;
  font-size: .66rem !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-symbol {
  align-self: center !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-glyph,
body[data-mobile-view="bazi"] .bazi-pillar-glyph.branch {
  color: var(--sinsae-ink) !important;
  font-size: clamp(1.7rem, 8.4vw, 2.05rem) !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-symbol small {
  margin-top: 4px !important;
  color: #5f625d !important;
  font-size: .58rem !important;
  line-height: 1.28 !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-divider {
  width: 24px !important;
  background: var(--sinsae-line) !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-star-slot {
  min-height: 42px !important;
  padding: 6px 1px 0 !important;
  align-content: start !important;
  gap: 3px !important;
}

body[data-mobile-view="bazi"] .bazi-pillar-star-slot span {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sinsae-gold-dark) !important;
  font-size: .54rem !important;
  line-height: 1.25 !important;
}

body[data-mobile-view="bazi"] .bazi-core-ribbon {
  margin: 0 !important;
  padding: 17px 0 !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sinsae-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="bazi"] .bazi-core-ribbon > div:nth-child(4) {
  display: none !important;
}

body[data-mobile-view="bazi"] .bazi-core-ribbon > div {
  min-width: 0 !important;
  padding: 0 9px !important;
  text-align: center;
}

body[data-mobile-view="bazi"] .bazi-core-ribbon > div + div {
  border-left: 1px solid var(--sinsae-line) !important;
}

body[data-mobile-view="bazi"] .bazi-core-ribbon span {
  color: var(--sinsae-muted) !important;
  font-size: .65rem !important;
}

body[data-mobile-view="bazi"] .bazi-core-ribbon strong {
  font-size: .86rem !important;
}

body[data-mobile-view="bazi"] .bazi-element-seal {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-mobile-view="bazi"] .bazi-element-seal strong {
  font-size: 1.5rem !important;
}

body[data-mobile-view="bazi"] .bazi-panel-stack,
body[data-mobile-view="bazi"] .bazi-panel {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-mobile-view="bazi"] .bazi-personal-intro {
  overflow: visible !important;
  padding: 26px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-mobile-view="bazi"] .bazi-personal-intro::after {
  content: none !important;
}

body[data-mobile-view="bazi"] .bazi-personal-heading span {
  color: var(--sinsae-gold-dark) !important;
  font-size: .7rem !important;
}

body[data-mobile-view="bazi"] .bazi-personal-title-lockup {
  margin-top: 10px !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 11px !important;
}

body[data-mobile-view="bazi"] .bazi-personal-monogram {
  width: 42px !important;
  height: 42px !important;
  font-size: 1.3rem !important;
}

body[data-mobile-view="bazi"] .bazi-personal-title-lockup h2 {
  max-width: 24ch !important;
  font-size: 1.12rem !important;
  line-height: 1.42 !important;
}

body[data-mobile-view="bazi"] .bazi-personal-story {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--sinsae-line) !important;
}

body[data-mobile-view="bazi"] .bazi-personal-story p,
body[data-mobile-view="bazi"] .bazi-lead-reading,
body[data-mobile-view="bazi"] .bazi-personal-signature {
  max-width: 48ch !important;
  color: #383b37 !important;
  font-size: .875rem !important;
  line-height: 1.75 !important;
}

/* Calendar */
body[data-mobile-view="calendar"] #messages {
  padding: 0 !important;
  background: linear-gradient(var(--sinsae-ink) 0 238px, var(--sinsae-paper) 238px) !important;
}

body[data-mobile-view="calendar"] .mock-page.calendar-app-page {
  width: min(100%, 520px) !important;
  margin: 0 auto !important;
  padding: 0 0 calc(var(--app-shell-bottom-nav) + 28px) !important;
  background: transparent !important;
}

body[data-mobile-view="calendar"] .calendar-page {
  padding: 18px var(--sinsae-side) 24px !important;
  gap: 15px !important;
}

body[data-mobile-view="calendar"] .calendar-page-head {
  grid-template-columns: minmax(0,1fr) 158px !important;
  align-items: end !important;
  color: #fff !important;
}

body[data-mobile-view="calendar"] .calendar-page-head > div:first-child {
  padding-left: 13px !important;
}

body[data-mobile-view="calendar"] .calendar-page-head > div:first-child::before {
  background: var(--sinsae-gold-light) !important;
}

body[data-mobile-view="calendar"] .calendar-page-head h1 {
  color: #fff !important;
  font-size: 1.05rem !important;
  line-height: 1.28 !important;
}

body[data-mobile-view="calendar"] .calendar-page-head p {
  color: rgba(255,255,255,.58) !important;
  font-size: .68rem !important;
}

body[data-mobile-view="calendar"] .plan-segmented {
  border: 1px solid rgba(239,210,139,.65) !important;
  background: var(--sinsae-ink-raised) !important;
}

body[data-mobile-view="calendar"] .plan-segmented button {
  color: rgba(255,255,255,.7) !important;
}

body[data-mobile-view="calendar"] .plan-segmented button.active {
  background: var(--sinsae-gold-light) !important;
  color: var(--sinsae-ink) !important;
}

body[data-mobile-view="calendar"] .calendar-shell {
  margin-top: 2px !important;
  padding: 15px 12px 13px !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: var(--sinsae-paper-strong) !important;
  box-shadow: 0 18px 42px rgba(10,12,10,.14) !important;
}

body[data-mobile-view="calendar"] .calendar-toolbar strong {
  font-size: 1rem !important;
}

body[data-mobile-view="calendar"] .calendar-toolbar span {
  display: none !important;
}

body[data-mobile-view="calendar"] .calendar-toolbar button {
  border: 0 !important;
  background: transparent !important;
}

body[data-mobile-view="calendar"] .calendar-month-overview {
  min-height: 52px !important;
  border-bottom: 1px solid var(--sinsae-line) !important;
}

body[data-mobile-view="calendar"] .calendar-overview-stats > div {
  min-height: 42px !important;
}

body[data-mobile-view="calendar"] .calendar-overview-stats strong {
  font-size: 1rem !important;
}

body[data-mobile-view="calendar"] .calendar-overview-stats span {
  font-size: .58rem !important;
}

body[data-mobile-view="calendar"] .calendar-weekdays,
body[data-mobile-view="calendar"] .calendar-grid {
  gap: 5px !important;
}

body[data-mobile-view="calendar"] .calendar-day {
  min-height: 43px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: #f1eee8 !important;
}

body[data-mobile-view="calendar"] .calendar-day.rhythm-highlight { background: var(--sinsae-good) !important; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-balanced { background: var(--sinsae-neutral) !important; }
body[data-mobile-view="calendar"] .calendar-day.rhythm-caution { background: var(--sinsae-caution) !important; }

body[data-mobile-view="calendar"] .calendar-day span {
  font-size: .8rem !important;
  font-weight: 750 !important;
}

body[data-mobile-view="calendar"] .calendar-day-status {
  display: none !important;
}

body[data-mobile-view="calendar"] .calendar-day.other {
  visibility: hidden !important;
}

body[data-mobile-view="calendar"] .calendar-day.selected,
body[data-mobile-view="calendar"] .calendar-day.selected.rhythm-highlight,
body[data-mobile-view="calendar"] .calendar-day.selected.rhythm-balanced,
body[data-mobile-view="calendar"] .calendar-day.selected.rhythm-caution {
  border-color: var(--sinsae-gold) !important;
  background: var(--sinsae-ink-soft) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px var(--sinsae-gold) !important;
}

body[data-mobile-view="calendar"] .calendar-help {
  border-top: 1px solid var(--sinsae-line) !important;
  background: transparent !important;
}

body[data-mobile-view="calendar"] .calendar-selected-summary {
  min-height: 58px !important;
  padding: 8px 13px 8px 22px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #f1e9dc !important;
}

body[data-mobile-view="calendar"] .calendar-source-status {
  color: var(--sinsae-muted) !important;
  font-size: .7rem !important;
}

body[data-mobile-view="calendar"] .calendar-selected-summary strong {
  font-size: .9rem !important;
}

body[data-mobile-view="calendar"] .calendar-selected-summary em {
  font-size: .67rem !important;
}

/* Daily reading */
body[data-mobile-view="daily"] #messages {
  padding: 0 !important;
  background: var(--sinsae-paper) !important;
}

body[data-mobile-view="daily"] .mock-page.daily-app-page {
  padding: 0 0 28px !important;
  background: var(--sinsae-paper) !important;
}

body[data-mobile-view="daily"] .daily-page {
  width: min(100%, 680px) !important;
  margin: 0 auto !important;
  padding: 0 0 28px !important;
  gap: 0 !important;
}

body[data-mobile-view="daily"] .daily-page-head {
  min-height: 96px !important;
  padding: 18px var(--sinsae-side) 16px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  background: var(--sinsae-ink) !important;
  color: #fff !important;
}

body[data-mobile-view="daily"] .daily-page-head > button {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
}

body[data-mobile-view="daily"] .daily-page-head > div:first-child,
body[data-mobile-view="daily"] .daily-page-head > div {
  padding: 0 !important;
}

body[data-mobile-view="daily"] .daily-page-head > div::before {
  content: none !important;
}

body[data-mobile-view="daily"] .daily-page-head h1 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

body[data-mobile-view="daily"] .daily-page-head p {
  margin: 2px 0 0 !important;
  color: rgba(255,255,255,.58) !important;
  font-size: .68rem !important;
}

body[data-mobile-view="daily"] .daily-page-head > strong {
  color: var(--sinsae-gold-light) !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
  letter-spacing: -.05em;
}

.daily-reading {
  padding: 16px var(--sinsae-side) 6px;
  display: grid;
  gap: 12px;
}

.daily-insight-card {
  padding: 16px;
  border: 1px solid var(--sinsae-line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}

.daily-insight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.daily-insight-meta span {
  color: var(--sinsae-gold-dark);
  font-size: .68rem;
  font-weight: 750;
}

.daily-insight-meta span + span {
  padding-left: 10px;
  border-left: 1px solid var(--sinsae-line);
  color: var(--sinsae-muted);
  font-weight: 600;
}

.daily-insight-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.02rem, 4.25vw, 1.16rem);
  line-height: 1.5;
  letter-spacing: -.025em;
}

.daily-editorial-section p {
  margin: 7px 0 0;
  color: #3d403b;
  font-size: .82rem;
  line-height: 1.68;
}

.daily-editorial-section {
  padding: 14px 16px;
  border-left: 3px solid var(--sinsae-gold);
  background: rgba(200,156,63,.065);
}

.daily-editorial-section h3,
body[data-mobile-view="daily"] .daily-section header strong {
  margin: 0;
  font-size: .86rem !important;
}

body[data-mobile-view="daily"] .daily-section {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 18px !important;
  background: var(--sinsae-ink) !important;
  box-shadow: none !important;
}

body[data-mobile-view="daily"] .daily-section > header {
  min-height: 0 !important;
  padding: 14px 16px 8px !important;
  border: 0 !important;
  background: transparent !important;
}

body[data-mobile-view="daily"] .daily-section header strong {
  color: #fff !important;
}

body[data-mobile-view="daily"] .daily-section header p {
  margin: 2px 0 0 !important;
  color: rgba(255,255,255,.5) !important;
  font-size: .66rem !important;
}

body[data-mobile-view="daily"] .daily-time-best {
  min-height: 64px !important;
  margin: 0 !important;
  padding: 8px 16px 13px !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: end !important;
  justify-items: start !important;
  gap: 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,.68) !important;
  text-align: left !important;
}

body[data-mobile-view="daily"] .daily-time-best > span {
  font-size: .72rem !important;
  line-height: 1.4 !important;
}

body[data-mobile-view="daily"] .daily-time-best > b {
  color: var(--sinsae-gold-light) !important;
  font-size: 1.04rem !important;
  white-space: nowrap !important;
}

body[data-mobile-view="daily"] .daily-time-planner {
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  justify-content: space-between !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  color: #fff !important;
  font-size: .76rem !important;
  text-decoration: none !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked,
body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-active {
  width: min(230px, 78%) !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked {
  min-height: 58px !important;
  padding: 7px 9px 7px 17px !important;
  border: 1px solid rgba(224, 190, 112, .48) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, #292720 0%, #1b1a16 58%, #12120f 100%) !important;
  color: #f7ecd2 !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 0 0 1px rgba(255, 255, 255, .015) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked:hover {
  filter: brightness(1.08);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(224, 190, 112, .08),
    inset 0 1px 0 rgba(255, 255, 255, .09) !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked:active {
  transform: translateY(1px) scale(.992);
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked:focus-visible {
  outline: 2px solid #e4c77f !important;
  outline-offset: 3px !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked:disabled,
body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked[aria-busy="true"] {
  cursor: wait;
  filter: saturate(.65) brightness(.88);
  transform: none;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked .home-detail-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex-basis: 34px !important;
  border: 1px solid rgba(224, 190, 112, .34);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(224, 190, 112, .16), rgba(224, 190, 112, .06));
  color: #e5c77e;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked .home-detail-icon svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.8;
}

.time-addon-purchase { margin: 0; }
body[data-mobile-view="home"] .time-addon-purchase { display: contents; }

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked small,
body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-active small {
  display: block !important;
  margin: 0 0 1px !important;
  color: #746b5e !important;
  font-size: .75rem !important;
  font-weight: 650 !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-active strong {
  color: #7f5b13 !important;
  font-size: .92rem !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked strong {
  color: #fffaf0 !important;
  font-size: .95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body[data-mobile-view="home"] .home-almanac-detail-cta.is-time-locked small {
  color: #d8bc78 !important;
  font-size: .69rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}

.shop-time-symbol {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 36% 28%, #fff8df 0, #ebcf8c 42%, #a67928 100%);
  color: #5d4318;
}

.shop-time-symbol svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-checkout-entitlement {
  margin: 0 1rem 1rem;
  padding: 1rem 1.05rem;
  border-left: 3px solid #b88a31;
  background: #f6f0e2;
}

.shop-checkout-entitlement span,
.shop-checkout-entitlement strong,
.shop-checkout-entitlement p {
  display: block;
}

.shop-checkout-entitlement span {
  color: #8a6a2c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-checkout-entitlement strong {
  margin-top: .25rem;
  color: #191711;
  font-size: 1rem;
}

.shop-checkout-entitlement p {
  margin: .3rem 0 0;
  color: #6f685b;
  font-size: .82rem;
  line-height: 1.55;
}

body[data-mobile-view="daily"] .daily-time-lock {
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 7px;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 100% 0, rgba(207,166,82,.16), transparent 42%);
}

body[data-mobile-view="daily"] .daily-time-lock > span {
  color: var(--sinsae-gold-light);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-mobile-view="daily"] .daily-time-lock > strong { font-size: 1rem; }
body[data-mobile-view="daily"] .daily-time-lock > p { margin: 0; color: rgba(255,255,255,.62); font-size: .72rem; line-height: 1.55; }
body[data-mobile-view="daily"] .daily-time-lock > div { display: flex; align-items: baseline; gap: 8px; }
body[data-mobile-view="daily"] .daily-time-lock > div b { color: var(--sinsae-gold-light); font-size: 1.02rem; }
body[data-mobile-view="daily"] .daily-time-lock > div small { color: rgba(255,255,255,.5); font-size: .65rem; }
body[data-mobile-view="daily"] .daily-time-lock .time-addon-purchase button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--sinsae-gold-light);
  color: var(--sinsae-ink);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
}

.date-finder-range.is-time-locked { grid-template-columns: 1fr; }
.date-finder-time-lock {
  min-height: 132px;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-radius: 15px;
  background: #17150f;
  color: #fff;
}
.date-finder-time-lock > span { color: #e4c579; font-size: .66rem; font-weight: 800; letter-spacing: .06em; }
.date-finder-time-lock > strong { font-size: .86rem; line-height: 1.4; }
.date-finder-time-lock > small { color: rgba(255,255,255,.58); font-size: .68rem; }
.date-finder-time-lock .time-addon-purchase button,
.date-result-time-lock button {
  min-height: 40px;
  margin-top: 6px;
  border: 0;
  border-radius: 11px;
  background: #e8ca7e;
  color: #17150f;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
}
.date-result-time-lock {
  margin: 10px 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 13px;
  background: #f5efe2;
  color: #65542f;
  font-size: .72rem;
  font-weight: 700;
}
.date-result-time-lock button { min-width: 118px; margin: 0; padding: 0 12px; }

.daily-source-note {
  margin: 2px 0 0;
  padding: 4px 2px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 0;
  color: var(--sinsae-muted);
  font-size: .66rem;
  line-height: 1.45;
}

.daily-source-note i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--sinsae-jade);
}

body[data-mobile-view="daily"] .daily-chat-cta {
  width: calc(100% - (var(--sinsae-side) * 2)) !important;
  min-height: 62px !important;
  margin: 8px var(--sinsae-side) 0 !important;
  padding: 10px 14px 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #ead8aa !important;
  color: var(--sinsae-ink) !important;
  text-align: left !important;
}

body[data-mobile-view="daily"] .daily-chat-cta strong {
  display: block !important;
  font-size: .9rem !important;
}

body[data-mobile-view="daily"] .daily-chat-cta small {
  display: block;
  margin-bottom: 1px;
  color: #775b24;
  font-size: .62rem;
  font-weight: 650;
}

body[data-mobile-view="daily"] .daily-chat-arrow {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: rgba(255,255,255,.35) !important;
  color: var(--sinsae-ink) !important;
  font-size: 1.35rem !important;
}

/* Secondary surfaces inherit the same quieter product language. */
.mock-card,
.account-info-card,
.price-card,
.library-passport-card,
.shop-card {
  border-color: var(--sinsae-line) !important;
  background: var(--sinsae-paper-strong) !important;
  box-shadow: none !important;
}

.mock-btn.primary,
.price-action.primary,
.promo-action {
  border-color: var(--sinsae-ink) !important;
  background: var(--sinsae-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.calendar-passport-offer .price-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Pro membership — one editorial offer surface in the product palette. */
body[data-mobile-view="promoPro"] #messages {
  background: var(--sinsae-paper) !important;
}

.pro-membership-page {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 18px 0 32px;
}

.pro-membership-intro {
  padding: 26px 24px 22px;
  border-radius: 28px 28px 0 0;
  background: var(--sinsae-ink);
  color: #fff;
}

.pro-membership-intro > span,
.pro-plan-picker-head > span {
  color: var(--sinsae-gold-light);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pro-membership-intro h1 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(1.72rem, 7vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.pro-membership-intro p {
  max-width: 510px;
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: .86rem;
  line-height: 1.7;
}

.pro-membership-benefits {
  padding: 0 24px 24px;
  display: grid;
  background: var(--sinsae-ink);
}

.pro-membership-benefits > div {
  min-height: 72px;
  padding: 15px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,.11);
}

.pro-membership-benefits i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239,210,139,.42);
  border-radius: 50%;
  color: var(--sinsae-gold-light);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
}

.pro-membership-benefits p {
  margin: 0;
  display: grid;
  gap: 3px;
}

.pro-membership-benefits strong {
  color: #fff;
  font-size: .85rem;
}

.pro-membership-benefits span {
  color: rgba(255,255,255,.58);
  font-size: .71rem;
  line-height: 1.5;
}

.pro-plan-picker {
  overflow: hidden;
  border: 1px solid var(--sinsae-line);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: var(--sinsae-paper-strong);
}

.pro-plan-picker-head {
  padding: 23px 24px 15px;
}

.pro-plan-picker-head > span {
  color: var(--sinsae-gold-dark);
}

.pro-plan-picker-head h2 {
  margin: 4px 0 0;
  color: var(--sinsae-ink);
  font-size: 1.35rem;
  line-height: 1.25;
}

.pro-plan-option {
  position: relative;
  margin: 0 24px;
  padding: 18px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 12px;
  align-items: center;
  border-top: 1px solid var(--sinsae-line);
}

.pro-plan-option.is-recommended {
  margin: 0;
  padding: 22px 24px 24px;
  border-top-color: rgba(181,139,47,.24);
  background: #f3ead5;
}

.pro-plan-recommendation {
  grid-column: 1 / -1;
  margin-bottom: -4px;
  color: var(--sinsae-gold-dark);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.pro-plan-option-copy {
  display: grid;
  gap: 2px;
}

.pro-plan-option-copy > span {
  color: var(--sinsae-muted);
  font-size: .68rem;
  font-weight: 750;
}

.pro-plan-option-copy > strong {
  color: var(--sinsae-ink);
  font-size: 1.02rem;
}

.pro-plan-option-copy > small {
  color: var(--sinsae-muted);
  font-size: .68rem;
  line-height: 1.45;
}

.pro-plan-option-price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 4px;
  text-align: right;
}

.pro-plan-option-price strong {
  color: var(--sinsae-ink);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.pro-plan-option-price span,
.pro-plan-option-price del {
  color: var(--sinsae-muted);
  font-size: .66rem;
  font-weight: 750;
}

.pro-plan-option-price del {
  grid-column: 1 / -1;
  margin-top: 3px;
}

.pro-plan-option .promo-action {
  grid-column: 1 / -1;
  min-height: 48px;
  margin: 0;
  border: 1px solid var(--sinsae-ink) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--sinsae-ink) !important;
  font-size: .82rem;
  font-weight: 900;
}

.pro-plan-option.is-recommended .promo-action {
  border-color: var(--sinsae-ink) !important;
  background: var(--sinsae-ink) !important;
  color: #fff !important;
}

.pro-renewal-note {
  margin: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--sinsae-line);
  color: var(--sinsae-muted);
  font-size: .64rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 680px) {
  .pro-membership-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .pro-membership-benefits > div {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

/* Premium locked state — editorial teaser, not a generic warning card. */
.pro-lock-inline,
.pro-lock-panel,
.app-mobile-page .pro-lock-inline,
.app-mobile-page .pro-lock-panel,
body.mobile-preview-mode .pro-lock-inline,
body.mobile-preview-mode .pro-lock-panel {
  margin-top: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  text-align: left !important;
}

.pro-lock-inline > .pro-lock-card,
.pro-lock-panel > .pro-lock-card,
.app-mobile-page .pro-lock-card,
body.mobile-preview-mode .pro-lock-card {
  width: 100% !important;
  padding: 17px !important;
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: 13px !important;
  border: 1px solid rgba(218, 183, 108, .28) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(218, 183, 108, .13), transparent 34%),
    linear-gradient(145deg, #181b18 0%, #0f110f 76%) !important;
  box-shadow: 0 16px 34px rgba(20, 18, 13, .14) !important;
  color: #fff !important;
}

.pro-lock-card::before,
body.mobile-preview-mode .pro-lock-card::before {
  content: '';
  height: 1px;
  position: absolute;
  inset: 0 18px auto;
  background: linear-gradient(90deg, transparent, rgba(239, 210, 139, .72), transparent);
}

.pro-lock-card .pro-lock-copy,
body.mobile-preview-mode .pro-lock-card .pro-lock-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pro-lock-card .pro-lock-copy > span,
body.mobile-preview-mode .pro-lock-card .pro-lock-copy > span {
  color: var(--sinsae-gold-light) !important;
  font-size: .56rem !important;
  font-weight: 850 !important;
  letter-spacing: .13em !important;
}

.pro-lock-card .pro-lock-copy > strong,
body.mobile-preview-mode .pro-lock-card .pro-lock-copy > strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: .92rem !important;
  line-height: 1.4 !important;
}

.pro-lock-card .pro-lock-copy > p,
body.mobile-preview-mode .pro-lock-card .pro-lock-copy > p {
  margin: 2px 0 0 !important;
  color: rgba(255, 255, 255, .65) !important;
  font-size: .7rem !important;
  line-height: 1.55 !important;
}

.pro-lock-card > .pro-lock-icon,
body.mobile-preview-mode .pro-lock-card > .pro-lock-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(239, 210, 139, .34) !important;
  border-radius: 50% !important;
  background: rgba(239, 210, 139, .08) !important;
  color: var(--sinsae-gold-light) !important;
}

.pro-lock-card > .pro-lock-icon svg,
body.mobile-preview-mode .pro-lock-card > .pro-lock-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro-lock-card > .mock-btn,
.app-mobile-page .pro-lock-card > .mock-btn.mock-btn.primary,
body.mobile-preview-mode .pro-lock-card > .mock-btn.mock-btn.primary {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 2px 0 0 !important;
  padding-inline: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid var(--sinsae-gold-soft) !important;
  border-radius: 14px !important;
  background: var(--sinsae-gold-soft) !important;
  color: #171811 !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
}

.pro-lock-card > .mock-btn b,
.app-mobile-page .pro-lock-card > .mock-btn.mock-btn.primary b,
body.mobile-preview-mode .pro-lock-card > .mock-btn.mock-btn.primary b {
  font-size: 1rem;
  font-weight: 700;
}

/* Pro conversion sheet — one clear premium offer with restrained hierarchy. */
#pricing-modal .modal {
  border-color: rgba(206, 190, 160, .5) !important;
  background: #f8f5ee !important;
}

#pricing-modal .modal-header {
  padding-bottom: 14px !important;
}

#pricing-modal .modal-title {
  color: var(--sinsae-ink);
  letter-spacing: -.02em;
}

#pricing-modal .modal-copy {
  max-width: 560px;
  color: #746f66;
  font-size: .86rem;
  line-height: 1.65;
}

#pricing-modal .modal-close {
  border-color: #ded7cc;
  border-radius: 50%;
  background: transparent;
  color: #4b4b46;
  font-size: 1rem;
}

#pricing-modal .pricing-grid.single-plan {
  margin-top: 8px !important;
}

#pricing-modal .pro-plan-card {
  padding: 21px !important;
  position: relative;
  overflow: hidden;
  gap: 0 !important;
  border: 1px solid rgba(218, 183, 108, .34) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(218, 183, 108, .16), transparent 30%),
    linear-gradient(150deg, #1a1d1a 0%, #0d0f0d 78%) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(19, 18, 14, .18) !important;
}

#pricing-modal .pro-plan-card::before {
  content: '';
  height: 1px;
  position: absolute;
  inset: 0 22px auto;
  background: linear-gradient(90deg, transparent, rgba(239, 210, 139, .75), transparent);
}

#pricing-modal .pro-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#pricing-modal .pro-plan-head > div {
  min-width: 0;
}

#pricing-modal .pro-plan-head > div > strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 1rem !important;
  line-height: 1.4;
}

#pricing-modal .pro-plan-head > span {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(239, 210, 139, .25);
  border-radius: 999px;
  background: rgba(239, 210, 139, .08);
  color: var(--sinsae-gold-light) !important;
  font-size: .62rem !important;
  font-weight: 800;
  white-space: nowrap;
}

#pricing-modal .pro-plan-card .price-badge.pro {
  margin: 0 0 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sinsae-gold-light);
  font-size: .55rem;
  letter-spacing: .14em;
}

#pricing-modal .pro-plan-card .price-tag {
  margin: 22px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#pricing-modal .pro-plan-card .price-tag > strong {
  margin: 0 !important;
  color: #fff !important;
  font-size: 2.7rem !important;
  line-height: 1;
  letter-spacing: -.04em;
}

#pricing-modal .pro-plan-card .price-tag > span {
  color: rgba(255, 255, 255, .58) !important;
  font-size: .72rem !important;
  font-weight: 650;
}

#pricing-modal .pro-plan-lead {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .69);
  font-size: .75rem;
  line-height: 1.6;
}

#pricing-modal .pro-plan-benefits {
  margin: 18px 0 20px;
  padding: 16px 0;
  gap: 11px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .82) !important;
  font-size: .72rem;
}

#pricing-modal .pro-plan-benefits li {
  min-height: 20px;
  padding-left: 27px;
  display: flex;
  align-items: center;
}

#pricing-modal .pro-plan-benefits li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  top: 1px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 210, 139, .32);
  background: rgba(239, 210, 139, .1) !important;
  color: var(--sinsae-gold-light);
  font-size: .62rem;
  font-weight: 900;
}

#pricing-modal .pro-plan-card .price-action.primary {
  min-height: 50px;
  border-color: var(--sinsae-gold-soft) !important;
  border-radius: 15px;
  background: var(--sinsae-gold-soft) !important;
  color: #171811 !important;
  font-size: .82rem;
  font-weight: 900;
}

#pricing-modal .pro-plan-note {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, .43) !important;
  font-size: .6rem !important;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 430px) {
  #pricing-modal .modal-header { padding: 19px 20px 12px !important; }
  #pricing-modal .modal-body { padding-inline: 20px !important; }
  #pricing-modal .pricing-grid.single-plan {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
  #pricing-modal .pricing-grid.single-plan .pro-plan-card {
    flex: 0 0 100% !important;
  }
}

@media (max-width: 760px) {
  :root {
    --app-shell-topbar-mobile: 68px;
    --app-shell-bottom-nav: 82px;
  }

  #app-topbar.topbar {
    padding-inline: 12px !important;
  }

  .plan-mobile-tabbar {
    gap: 4px !important;
    padding: 7px calc(8px + env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px)) !important;
  }

  .plan-mobile-tabbar button {
    min-height: 64px !important;
    padding: 3px 2px !important;
    border-radius: 16px !important;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease !important;
  }

  body[data-mobile-view] .plan-mobile-tabbar button[aria-current="page"] {
    background: #f4ead1 !important;
    color: var(--sinsae-gold-dark) !important;
    box-shadow: inset 0 0 0 1px rgba(157, 119, 38, .13) !important;
  }

  body[data-mobile-view] .plan-mobile-tabbar button[aria-current="page"] .tab-icon {
    background: transparent !important;
    color: var(--sinsae-gold-dark) !important;
  }

  body[data-mobile-view] .plan-mobile-tabbar button[aria-current="page"]::after {
    content: none !important;
    display: none !important;
  }

  body[data-mobile-view="daily"] #app-topbar {
    display: none !important;
  }
}

@media (max-width: 370px) {
  :root { --sinsae-side: 14px; }

  body[data-mobile-view="home"] .home-daily-hero {
    min-height: 304px !important;
    padding-top: 25px !important;
  }

  body[data-mobile-view="calendar"] .calendar-page-head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body[data-mobile-view="calendar"] .calendar-page-head .plan-segmented {
    width: 100% !important;
  }

  body[data-mobile-view="bazi"] .bazi-pillar-tile,
  body[data-mobile-view="bazi"] .bazi-pillar-tile.day-master {
    padding-inline: 4px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Bazi release guard — keep the compact reading layout independent from the
   transient body view attribute used while switching panels. */
.bazi-v2 .bazi-pillars-stage {
  padding-top: 16px !important;
  padding-bottom: 12px !important;
}

.bazi-v2 .bazi-stage-heading {
  min-height: 30px !important;
  padding: 0 2px 8px !important;
}

.bazi-v2 .bazi-stage-heading h1 {
  font-size: 1.12rem !important;
  line-height: 1.3 !important;
}

.bazi-v2 .bazi-stage-heading > small {
  font-size: .58rem !important;
}

.bazi-v2 .bazi-pillar-stage-grid {
  margin-top: 4px !important;
}

.bazi-v2 .bazi-pillar-tile,
.bazi-v2 .bazi-pillar-tile.day-master {
  box-sizing: border-box !important;
  height: 144px !important;
  min-height: 144px !important;
  max-height: 144px !important;
  padding: 3px 4px 5px !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: 18px 52px 1px 52px !important;
  align-items: center !important;
  gap: 2px !important;
}

.bazi-v2 .bazi-pillar-tile-label {
  font-size: .64rem !important;
}

.bazi-v2 .bazi-pillar-glyph,
.bazi-v2 .bazi-pillar-glyph.branch {
  font-size: 1.78rem !important;
  line-height: 1 !important;
}

.bazi-v2 .bazi-pillar-symbol {
  gap: 2px !important;
}

.bazi-v2 .bazi-pillar-symbol small {
  min-height: 14px !important;
  margin-top: 2px !important;
  font-size: .56rem !important;
  line-height: 1.2 !important;
}

.bazi-v2 .bazi-pillar-divider {
  width: 22px !important;
}

.bazi-v2 .bazi-pillar-star-slot {
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  position: static !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  align-items: center !important;
  align-content: center !important;
  gap: 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.bazi-v2 .bazi-pillar-star-slot > span {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #765718 !important;
  font-size: .6rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.bazi-v2 .bazi-special-stars-summary {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px 2px 0;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--sinsae-line);
}

.bazi-v2 .bazi-special-stars-summary > strong {
  padding: 2px 8px 2px 0;
  border-right: 1px solid var(--sinsae-line);
  color: var(--sinsae-gold-dark);
  font-size: .66rem;
  line-height: 1.3;
}

.bazi-v2 .bazi-special-stars-summary > div {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.bazi-v2 .bazi-special-stars-summary .bazi-pillar-star-slot.is-empty {
  display: none !important;
}

.bazi-v2 .bazi-pillar-star-slot > small {
  color: var(--sinsae-muted);
  font-size: .56rem;
  font-weight: 700;
  white-space: nowrap;
}

.bazi-v2 .bazi-pillar-star-slot > small::after {
  content: '·';
  margin-left: 5px;
  color: #b3a58d;
}

.bazi-v2 .bazi-personal-panel {
  margin-inline: 18px !important;
  padding-top: 22px !important;
}

.bazi-v2 .bazi-personal-intro {
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.bazi-v2 .bazi-personal-intro::after {
  content: none !important;
  display: none !important;
}

.bazi-v2 .bazi-personal-title-lockup {
  margin-top: 9px !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.bazi-v2 .bazi-personal-monogram {
  width: 40px !important;
  height: 40px !important;
  font-size: 1.2rem !important;
}

.bazi-v2 .bazi-personal-title-lockup h2 {
  max-width: 25ch !important;
  font-size: 1.08rem !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere !important;
}

.bazi-v2 .bazi-personal-story {
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--sinsae-line) !important;
}

.bazi-v2 .bazi-personal-story p,
.bazi-v2 .bazi-personal-panel .bazi-lead-reading,
.bazi-v2 .bazi-personal-signature,
.bazi-v2 .bazi-life-story p,
.bazi-v2 .bazi-balance-story p {
  margin-inline: 0 !important;
  color: #383b37 !important;
  font-size: .875rem !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
}

.bazi-v2 .bazi-personal-story p + p {
  margin-top: 13px !important;
}

.bazi-v2 .bazi-life-intro,
.bazi-v2 .bazi-balance-intro {
  padding-left: 12px !important;
}

.bazi-v2 .bazi-life-intro h2,
.bazi-v2 .bazi-balance-intro h2,
.bazi-v2 .bazi-life-reading h2 {
  font-size: 1.08rem !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
}

/* Bazi insight-first layout — WHOOP-inspired hierarchy with Thai editorial copy. */
body[data-mobile-view="bazi"] .bazi-v2 {
  gap: 12px !important;
  padding-bottom: 24px !important;
  overflow-x: clip !important;
}

body[data-mobile-view="bazi"] .bazi-v2 > * { min-width: 0; }

body[data-mobile-view="bazi"] .bazi-identity-hero {
  position: relative;
  padding: 18px 16px 15px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sinsae-ink);
  color: #fff;
}

.bazi-identity-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.bazi-daymaster-mascot {
  --daymaster-accent: #d7d7d7;
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.bazi-daymaster-mascot.wood { --daymaster-accent: #68a879; }
.bazi-daymaster-mascot.fire { --daymaster-accent: #ed8051; }
.bazi-daymaster-mascot.earth { --daymaster-accent: #c9a05b; }
.bazi-daymaster-mascot.metal { --daymaster-accent: #c9cbd0; }
.bazi-daymaster-mascot.water { --daymaster-accent: #6d9fbd; }

.bazi-daymaster-mascot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  filter: drop-shadow(0 10px 11px rgba(0, 0, 0, .3)) drop-shadow(0 0 8px var(--daymaster-accent));
}

.bazi-daymaster-mascot figcaption {
  position: absolute;
  right: 7px;
  bottom: 2px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(15, 17, 14, .88);
  color: #fff;
  backdrop-filter: blur(7px);
}

.bazi-daymaster-mascot figcaption span {
  color: rgba(255, 255, 255, .66);
  font-size: .56rem;
  font-weight: 700;
}

.bazi-daymaster-mascot figcaption strong {
  color: var(--sinsae-gold-light);
  font-size: .9rem;
  line-height: 1;
}

@media (max-width: 360px) {
  .bazi-identity-main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 11px;
  }

  .bazi-daymaster-mascot {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }
}

body[data-mobile-view="bazi"] .bazi-identity-hero .bazi-element-seal {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-content: center !important;
  justify-items: center !important;
  border: 1px solid rgba(239,210,139,.38) !important;
  border-radius: 17px !important;
  background: rgba(239,210,139,.09) !important;
  color: var(--sinsae-gold-light) !important;
}

.bazi-identity-hero .bazi-element-seal span {
  color: rgba(255,255,255,.55) !important;
  font-size: .58rem !important;
}

body[data-mobile-view="bazi"] .bazi-identity-hero .bazi-element-seal strong {
  color: var(--sinsae-gold-light) !important;
  font-size: 1.45rem !important;
}

.bazi-identity-main > div:last-child > span {
  color: var(--sinsae-gold-light);
  font-size: .67rem;
  font-weight: 750;
}

.bazi-identity-main h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.16rem;
  line-height: 1.35;
}

.bazi-identity-main p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.62;
}

body[data-mobile-view="bazi"] .bazi-insight-module {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid var(--sinsae-line) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.55) !important;
  box-shadow: none !important;
}

.bazi-insight-module > header > span {
  color: var(--sinsae-gold-dark);
  font-size: .66rem;
  font-weight: 800;
}

.bazi-insight-module > header h2 {
  margin: 2px 0 0;
  color: var(--sinsae-ink);
  font-size: 1.04rem;
  line-height: 1.35;
}

.bazi-insight-module > header p {
  margin: 5px 0 0;
  color: var(--sinsae-muted);
  font-size: .75rem;
  line-height: 1.55;
}

.bazi-strength-module {
  position: relative;
  overflow: hidden;
  padding: 18px !important;
  border-color: rgba(151, 126, 74, .22) !important;
  background: linear-gradient(155deg, rgba(255,255,255,.82), rgba(247,242,232,.72)) !important;
}

.bazi-strength-module > header {
  padding: 1px 2px 17px;
}

.bazi-strength-module > header > span {
  font-size: .62rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.bazi-strength-module > header h2 {
  margin-top: 5px;
  color: var(--sinsae-ink);
  font-size: 1.18rem;
  font-weight: 820;
  letter-spacing: -.02em;
}

.bazi-strength-reading {
  margin-top: 0;
  display: grid;
  gap: 0;
}

.bazi-strength-outcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 20px 18px 20px 20px;
  border: 1px solid rgba(228, 197, 126, .22);
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(145deg, #191b18 0%, #0e100e 78%);
  box-shadow: 0 16px 30px rgba(24, 22, 17, .12);
}

.bazi-strength-outcome::after {
  content: '';
  width: 180px;
  height: 180px;
  position: absolute;
  z-index: -1;
  top: -72px;
  right: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 183, 108, .2), rgba(218, 183, 108, 0) 68%);
}

.bazi-strength-mascot {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  justify-self: end;
}

.bazi-strength-mascot .bazi-daymaster-mascot {
  width: 92px !important;
  height: 92px !important;
  margin: 0 !important;
}

.bazi-strength-mascot .bazi-daymaster-mascot img {
  width: 92px !important;
  height: 92px !important;
  transform: scale(1.06) !important;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .28)) drop-shadow(0 0 12px rgba(218, 183, 108, .18)) !important;
}

.bazi-strength-mascot .bazi-daymaster-mascot figcaption {
  display: none !important;
}

.bazi-strength-result {
  min-width: 0;
}

.bazi-strength-result small {
  display: block;
  color: var(--sinsae-gold-light);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.bazi-strength-result h3 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(1.38rem, 6vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.bazi-strength-result h3 em {
  display: inline-block;
  color: var(--sinsae-gold-light);
  font-size: .56em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.bazi-strength-result strong {
  display: block;
  margin-top: 9px;
  color: rgba(255,255,255,.65);
  font-size: .68rem;
  font-weight: 620;
  line-height: 1.55;
  text-wrap: balance;
}

.bazi-strength-reading p {
  margin: 0;
  padding: 19px 3px 1px;
  color: #3e3b35;
  font-size: .82rem;
  line-height: 1.82;
  text-wrap: pretty;
}

.bazi-strength-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 0;
  border-left: 2px solid rgba(184, 139, 52, .58);
  border-radius: 0 10px 10px 0;
  color: #726b60;
  background: rgba(208, 178, 111, .09);
  font-size: .64rem;
  line-height: 1.58;
}

@media (max-width: 360px) {
  .bazi-strength-outcome {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 10px;
    padding: 18px 14px 18px 17px;
  }

  .bazi-strength-mascot,
  .bazi-strength-mascot .bazi-daymaster-mascot,
  .bazi-strength-mascot .bazi-daymaster-mascot img {
    width: 78px !important;
    height: 78px !important;
  }
}

body[data-mobile-view="bazi"] .bazi-balance-module .bazi-balance-visual {
  margin-top: 14px !important;
  padding: 14px 0 0 !important;
  display: grid !important;
  gap: 10px !important;
  border-top: 1px solid var(--sinsae-line) !important;
}

body[data-mobile-view="bazi"] .bazi-balance-row {
  grid-template-columns: 56px minmax(0,1fr) 34px !important;
  gap: 8px !important;
}

body[data-mobile-view="bazi"] .bazi-balance-name,
body[data-mobile-view="bazi"] .bazi-balance-score {
  font-size: .68rem !important;
}

body[data-mobile-view="bazi"] .bazi-balance-score {
  white-space: nowrap !important;
}

body[data-mobile-view="bazi"] .bazi-balance-score::after {
  content: none !important;
}

body[data-mobile-view="bazi"] .bazi-balance-track {
  height: 6px !important;
  background: #e6e0d6 !important;
}

body[data-mobile-view="bazi"] .bazi-balance-module .bazi-balance-visual {
  gap: 12px !important;
  justify-items: center !important;
}

body[data-mobile-view="bazi"] .bazi-radar-figure {
  width: min(100%, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

body[data-mobile-view="bazi"] .bazi-radar-figure svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

body[data-mobile-view="bazi"] .bazi-radar-grid polygon {
  fill: none;
  stroke: #ddd4c5;
  stroke-width: 1;
}

body[data-mobile-view="bazi"] .bazi-radar-grid line {
  stroke: #e4dccf;
  stroke-width: 1;
}

body[data-mobile-view="bazi"] .bazi-radar-area {
  fill: rgba(200, 156, 63, .2);
  stroke: #b8892e;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

body[data-mobile-view="bazi"] .bazi-radar-dots circle {
  stroke: #fffaf0;
  stroke-width: 2;
}

body[data-mobile-view="bazi"] .bazi-radar-dots .wood { fill: #498b67; }
body[data-mobile-view="bazi"] .bazi-radar-dots .fire { fill: #b8544e; }
body[data-mobile-view="bazi"] .bazi-radar-dots .earth { fill: #b08a45; }
body[data-mobile-view="bazi"] .bazi-radar-dots .metal { fill: #85878a; }
body[data-mobile-view="bazi"] .bazi-radar-dots .water { fill: #39789a; }

body[data-mobile-view="bazi"] .bazi-radar-labels text {
  fill: #55544f;
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
}

body[data-mobile-view="bazi"] .bazi-radar-labels .bazi-radar-relation {
  fill: var(--sinsae-gold-dark);
  font-size: 9px;
  font-weight: 750;
}

body[data-mobile-view="bazi"] .bazi-radar-labels .bazi-radar-percent {
  fill: var(--sinsae-ink);
  font-size: 12px;
  font-weight: 900;
}

body[data-mobile-view="bazi"] .bazi-radar-labels .wood { fill: #397a58; }
body[data-mobile-view="bazi"] .bazi-radar-labels .fire { fill: #a8443f; }
body[data-mobile-view="bazi"] .bazi-radar-labels .earth { fill: #956d27; }
body[data-mobile-view="bazi"] .bazi-radar-labels .metal { fill: #6f7275; }
body[data-mobile-view="bazi"] .bazi-radar-labels .water { fill: #286b8e; }

.bazi-balance-caption {
  margin-top: 11px;
  display: block;
  color: var(--sinsae-muted);
  font-size: .62rem;
  line-height: 1.45;
}

.bazi-analysis-details {
  margin-top: 13px;
  border-top: 1px solid var(--sinsae-line);
}

.bazi-analysis-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sinsae-ink);
  font-size: .74rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.bazi-analysis-details summary::-webkit-details-marker { display: none; }
.bazi-analysis-details[open] summary span { transform: rotate(45deg); }

body[data-mobile-view="bazi"] .bazi-analysis-details .bazi-balance-intro {
  padding: 0 0 4px !important;
}

.bazi-analysis-details .bazi-balance-intro > span,
.bazi-analysis-details .bazi-balance-intro > h2 {
  display: none;
}

.bazi-trait-grid {
  margin-top: 15px;
  display: grid;
  gap: 9px;
}

.bazi-trait-grid section {
  padding: 13px 14px;
  border-radius: 15px;
  background: #f3eee5;
}

.bazi-trait-grid section:last-child {
  background: #eeeae3;
}

.bazi-trait-grid h3 {
  margin: 0;
  color: var(--sinsae-gold-dark);
  font-size: .78rem;
}

.bazi-trait-grid ul {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.bazi-trait-grid li {
  padding-left: 12px;
  position: relative;
  min-height: 3.1em;
  color: #383b37;
  font-size: .75rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.bazi-trait-grid li::before {
  content: '';
  width: 4px;
  height: 4px;
  position: absolute;
  top: .58em;
  left: 0;
  border-radius: 50%;
  background: var(--sinsae-gold);
}

body[data-mobile-view="bazi"] .bazi-personality-module .bazi-personal-intro {
  padding: 0 !important;
}

.bazi-personal-heading h2 {
  margin: 4px 0 0;
  color: var(--sinsae-ink);
  font-size: clamp(1.22rem, 5vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.bazi-analysis-profile {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.bazi-analysis-avatar {
  min-width: 0;
}

.bazi-analysis-avatar .bazi-daymaster-mascot {
  width: 84px;
  height: 84px;
}

.bazi-analysis-avatar .bazi-daymaster-mascot img {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .18));
}

.bazi-analysis-avatar .bazi-daymaster-mascot figcaption {
  color: var(--sinsae-ink);
}

/* Keep the Day Master label clear of the mascot artwork. */
.bazi-identity-hero .bazi-daymaster-mascot,
.bazi-analysis-avatar .bazi-daymaster-mascot {
  display: grid;
  height: auto;
  align-content: start;
  justify-items: center;
}

.bazi-identity-hero .bazi-daymaster-mascot img {
  width: 104px;
  height: 104px;
  transform: scale(1.07);
}

.bazi-analysis-avatar .bazi-daymaster-mascot img {
  width: 84px;
  height: 84px;
}

.bazi-identity-hero .bazi-daymaster-mascot figcaption,
.bazi-analysis-avatar .bazi-daymaster-mascot figcaption {
  position: static;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  margin-top: 3px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.bazi-identity-hero .bazi-daymaster-mascot figcaption span {
  color: rgba(255, 255, 255, .7);
  font-size: .6rem;
}

.bazi-identity-hero .bazi-daymaster-mascot figcaption strong {
  font-size: .78rem;
}

.bazi-analysis-avatar .bazi-daymaster-mascot figcaption span {
  color: #6d685f;
  font-size: .58rem;
}

.bazi-analysis-avatar .bazi-daymaster-mascot figcaption strong {
  color: var(--sinsae-gold-dark);
  font-size: .76rem;
}

@media (max-width: 360px) {
  .bazi-identity-hero .bazi-daymaster-mascot img {
    width: 92px;
    height: 92px;
  }
}

.bazi-analysis-profile-copy {
  min-width: 0;
}

.bazi-analysis-profile-copy small {
  display: block;
  color: var(--sinsae-gold-dark);
  font-size: .68rem;
  font-weight: 800;
}

.bazi-analysis-profile-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--sinsae-ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.bazi-analysis-profile-copy p {
  margin: 5px 0 0;
  color: #5f5b53;
  font-size: .76rem;
  line-height: 1.55;
}

.bazi-analysis-profile + .bazi-personal-signature {
  margin-top: 16px !important;
  padding-left: 12px;
  border-left-width: 3px;
  color: var(--personal-accent) !important;
  font-size: .8rem !important;
  font-weight: 750;
  line-height: 1.65 !important;
}

.bazi-personal-signature > span {
  display: block;
}

.bazi-personal-intro > .bazi-lead-reading {
  display: none;
}

@media (max-width: 360px) {
  .bazi-analysis-profile {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
  }

  .bazi-analysis-avatar .bazi-daymaster-mascot {
    width: 72px;
    height: 72px;
  }
}

body[data-mobile-view="bazi"] .bazi-full-reading .bazi-personal-story {
  margin: 0 !important;
  padding: 0 0 4px !important;
  border: 0 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 > .bazi-pillars-stage {
  margin: 0 !important;
  padding: 15px 12px 12px !important;
  border: 1px solid var(--sinsae-line) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.38) !important;
}

body[data-mobile-view="bazi"] .bazi-v2 > .bazi-pillars-stage .bazi-stage-heading {
  min-height: 36px !important;
  padding: 0 2px 9px !important;
}

body[data-mobile-view="bazi"] .bazi-stage-heading span {
  color: var(--sinsae-gold-dark) !important;
  font-size: .58rem !important;
  letter-spacing: 0 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 > .bazi-pillars-stage .bazi-stage-heading h1 {
  margin-top: 1px !important;
  font-size: .98rem !important;
}

/* Keep the compact four-pillar geometry above the legacy mobile selector. */
body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-tile,
body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-tile.day-master {
  box-sizing: border-box !important;
  height: 144px !important;
  min-height: 144px !important;
  max-height: 144px !important;
  padding: 3px 4px 5px !important;
  overflow: hidden !important;
  grid-template-rows: 18px 52px 6px 52px !important;
  gap: 2px !important;
}

body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-stage-grid {
  border-bottom: 0 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-tile-label {
  grid-row: 1 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-symbol:first-of-type {
  grid-row: 2 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-divider {
  grid-row: 3 !important;
  display: none !important;
}

body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-symbol:nth-of-type(2) {
  grid-row: 4 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 .bazi-pillar-symbol {
  min-height: 0 !important;
  overflow: visible !important;
}

body[data-mobile-view="bazi"] .bazi-stars-module .bazi-star-grid {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 13px;
  padding-top: 13px;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  border-top: 1px solid var(--sinsae-line);
}

body[data-mobile-view="bazi"] .bazi-stars-module .bazi-star-card,
body[data-mobile-view="bazi"] .bazi-stars-module .bazi-star-note {
  padding: 13px !important;
  border-radius: 14px !important;
  background: #f3eee5 !important;
}

body[data-mobile-view="bazi"] .bazi-stars-module > header > span {
  font-size: .58rem !important;
  letter-spacing: .14em !important;
}

body[data-mobile-view="bazi"] .bazi-stars-module > header > h2 {
  max-width: 290px;
}

body[data-mobile-view="bazi"] .bazi-guardian-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #ded3c0;
  border-radius: 18px;
  background: #f2ede4;
}

body[data-mobile-view="bazi"] .bazi-guardian-portrait {
  min-height: 168px;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: end center;
  background: #161915;
}

body[data-mobile-view="bazi"] .bazi-guardian-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

body[data-mobile-view="bazi"] .bazi-guardian-content {
  min-width: 0;
  padding: 13px 13px 12px;
  display: flex;
  flex-direction: column;
}

body[data-mobile-view="bazi"] .bazi-guardian-content > span {
  color: var(--sinsae-gold-dark);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.35;
}

body[data-mobile-view="bazi"] .bazi-guardian-content h3 {
  margin: 4px 0 6px;
  color: var(--sinsae-ink);
  font-size: .94rem;
  line-height: 1.25;
}

body[data-mobile-view="bazi"] .bazi-guardian-content p {
  margin: 0;
  color: #5e5b55;
  font-size: .7rem;
  line-height: 1.55;
}

body[data-mobile-view="bazi"] .bazi-guardian-content small {
  margin-top: auto;
  padding-top: 9px;
  color: #777168;
  font-size: .62rem;
  font-weight: 700;
}

body[data-mobile-view="bazi"] .bazi-guardian-empty {
  padding: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  background: #f2ede4;
}

body[data-mobile-view="bazi"] .bazi-guardian-empty > strong {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #cda64f;
  border-radius: 50%;
  color: var(--sinsae-gold-dark);
  font: 700 1.35rem/1 Georgia, serif;
}

body[data-mobile-view="bazi"] .bazi-guardian-empty h3,
body[data-mobile-view="bazi"] .bazi-guardian-empty p {
  margin: 0;
}

body[data-mobile-view="bazi"] .bazi-guardian-empty h3 {
  font-size: .84rem;
}

body[data-mobile-view="bazi"] .bazi-guardian-empty p {
  margin-top: 3px;
  color: var(--sinsae-muted);
  font-size: .68rem;
  line-height: 1.5;
}

body[data-mobile-view="bazi"] .bazi-v2 > .bazi-chat-cta {
  min-height: 62px !important;
  margin: 0 !important;
  border-radius: 18px !important;
  background: #ead8aa !important;
  color: var(--sinsae-ink) !important;
}

body[data-mobile-view="bazi"] .bazi-v2 > .bazi-chat-cta small {
  color: #725721 !important;
}

body[data-mobile-view="bazi"] .bazi-v2 > .bazi-chat-cta b {
  background: rgba(255,255,255,.38) !important;
}

@media (min-width: 560px) {
  .bazi-trait-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* public/css/oracle-premium.css */
.oracle-app-page:not([data-auspicious-mode="shrine"]) .auspicious-shell {
  width: min(100%, 660px);
  margin-inline: auto;
}
.oracle-app-page .oracle-draw-panel {
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.oracle-app-page .auspicious-hub:not(.hidden) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
body[data-mobile-view="oracle"] #messages:has(> .oracle-app-page:not(.is-auspicious-active)) {
  padding-top: 8px !important;
}
body[data-mobile-view="oracle"] .mock-page.oracle-app-page:not(.is-auspicious-active) {
  padding-top: 0 !important;
}
.oracle-hub-heading { padding: 4px 4px 8px; }
.oracle-hub-heading h1 { margin: 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.25; color: #211e16; }
.oracle-app-page .auspicious-choice-card {
  align-items: center;
  align-content: center;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  min-height: 84px;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.oracle-app-page .auspicious-choice-card + .auspicious-choice-card { border-top: 1px solid #e4dbcb; }
.oracle-app-page .auspicious-choice-card::after { content: '›'; color: #806027; font-size: 24px; }
.oracle-app-page .auspicious-choice-art {
  display: block;
  object-fit: contain;
  width: 56px;
  height: 56px;
}
.oracle-app-page .auspicious-choice-copy span { color: #625b50; font-size: 14px; }
body[data-mobile-view="oracle"]:has(.oracle-app-page[data-auspicious-mode="oracle"]) #messages {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: #151511;
}
body[data-mobile-view="oracle"]:has(.oracle-app-page[data-auspicious-mode="oracle"]) .plan-mobile-tabbar {
  display: none !important;
}
body[data-mobile-view="oracle"] .mock-page.oracle-app-page[data-auspicious-mode="oracle"],
.oracle-app-page[data-auspicious-mode="oracle"] .auspicious-shell,
.oracle-app-page .oracle-draw-panel:not(.hidden),
.oracle-draw-panel .oracle-shell {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.oracle-draw-panel .oracle-stage {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  grid-template-rows: auto auto minmax(132px, 1fr) auto;
  justify-items: center;
  gap: clamp(6px, 2dvh, 20px);
  padding: 10px clamp(12px, 4vw, 24px) max(16px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background:
    radial-gradient(ellipse at 50% 55%, #4d351d 0%, #2b2117 31%, transparent 69%),
    linear-gradient(180deg, #151511, #201a14 65%, #151511) !important;
}
.oracle-draw-panel .oracle-scene-back {
  justify-self: start;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #e9cc9155;
  border-radius: 99px;
  background: #231b13dd;
  color: #f2dfb9;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.oracle-draw-panel .oracle-stage-head { display: grid; gap: 5px; justify-items: center; }
.oracle-draw-panel .oracle-stage-head span { color: #e6c98b; letter-spacing: .22em; font-size: 14px; line-height: 1.4; }
.oracle-draw-panel .oracle-stage-head h1 { margin: 0; color: #fcf8ee; font-size: clamp(26px, 6vw, 36px); line-height: 1.25; }
.oracle-draw-panel .oracle-stage-head p,
.oracle-scene-actions .oracle-hint { margin: 0; color: #d4c4a7; font-size: 14px; }
.oracle-scene-dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.oracle-scene-dust i {
  position: absolute;
  top: 39%;
  left: calc(50% - min(32vw, 216px));
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ebc67d;
  box-shadow: 0 0 9px 2px #d7a65699;
  animation: oracleDustFloat 5s ease-in-out infinite alternate;
}
.oracle-scene-dust i:nth-child(2) { top: 67%; left: calc(50% + min(30vw, 190px)); animation-delay: -2s; }
.oracle-scene-dust i:nth-child(3) { top: 28%; left: calc(50% + min(23vw, 160px)); animation-delay: -4s; }
.oracle-scene-dust i:nth-child(4) { top: 74%; left: calc(50% - min(23vw, 160px)); animation-delay: -3s; }
.oracle-draw-object {
  position: relative;
  isolation: isolate;
  align-self: center;
  display: grid;
  place-items: center;
  width: clamp(132px, 38dvh, 292px);
  max-width: 100%;
  aspect-ratio: 1;
}
.oracle-draw-object::before,
.oracle-draw-object::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  content: '';
}
.oracle-draw-object::before {
  inset: 4%;
  border: 1px solid #e8c48536;
  box-shadow: 0 0 0 11px #e8c48510, inset 0 0 38px #e8c48512;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.oracle-draw-object::after {
  inset: auto 12% 2%;
  height: 11%;
  background: radial-gradient(ellipse, #0b0906d9, transparent 69%);
}
.oracle-draw-float { display: grid; place-items: center; animation: oracleSceneFloat 5.2s ease-in-out infinite; }
.oracle-draw-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px #100b08aa);
}
.oracle-stage.is-shaking .oracle-draw-float { animation-play-state: paused; }
.oracle-stage.is-shaking .oracle-draw-art { animation: oracleSceneShake .24s ease-in-out infinite; }
.oracle-stage.is-shaking .oracle-draw-object::before {
  border-color: #e8c485a6;
  box-shadow: 0 0 0 14px #e8c48520, inset 0 0 50px #e8c48538;
}
.oracle-scene-actions { width: min(100%, 340px); display: grid; justify-items: center; gap: 9px; }
.oracle-scene-actions .oracle-hint { font-size: 12px; text-align: center; }
.oracle-draw-panel .oracle-stage .oracle-cast-button {
  width: min(100%, 272px);
  min-height: 48px;
  margin: 0;
  color: #221b10;
  background: #e9cc91;
  border: 0;
  box-shadow: none;
  touch-action: pan-y;
}
.oracle-draw-panel .oracle-cast-button[aria-disabled="true"] { cursor: progress; opacity: .82; }
@media (max-height: 560px) {
  .oracle-draw-panel .oracle-stage { gap: 7px; }
  .oracle-draw-object { width: clamp(132px, 32dvh, 174px); }
}
@keyframes oracleSceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes oracleDustFloat {
  from { opacity: .2; transform: translateY(4px); }
  to { opacity: .85; transform: translateY(-12px); }
}
@keyframes oracleSceneShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-6px) rotate(-8deg); }
  75% { transform: translateX(6px) rotate(8deg); }
}

.oracle-reading-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: min(740px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #faf6ed;
  color: #1d1c17;
}
.oracle-reading-dialog[open] { display: flex; flex-direction: column; }
.oracle-reading-dialog::backdrop { background: rgb(16 15 11 / 65%); }
.oracle-reading-toolbar {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #151511;
  color: #fbf2df;
}
.oracle-reading-toolbar h2 { margin: 0; font-size: 16px; }
.oracle-reading-toolbar button {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #746851;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.oracle-reading-dialog .oracle-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.oracle-reading-dialog .oracle-result-card {
  padding: clamp(18px, 5vw, 30px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.oracle-reading-dialog .oracle-result-card::before { content: none; }
.oracle-reading-dialog .oracle-result-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  border: 0;
  padding: 0;
  margin-bottom: 22px;
}
.oracle-reading-dialog .oracle-slip-heading span { display: none; }
.oracle-reading-dialog .oracle-slip-heading strong { color: #201b13; font-size: clamp(22px, 5vw, 26px); line-height: 1.3; }
.oracle-reading-dialog .oracle-slip-heading small { color: #795a26; font-size: 14px; }
.oracle-reading-dialog .oracle-result-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.oracle-reading-dialog .oracle-lines {
  --oracle-line-width: clamp(88px, 24vw, 106px);
  justify-self: center;
  width: fit-content;
  gap: 7px;
  padding: 16px 24px;
  border: 0;
  border-radius: 16px;
  background: #eee4d0;
}
.oracle-reading-dialog .oracle-lines .yao-row,
.oracle-reading-dialog .oracle-lines .yao-line { width: var(--oracle-line-width); }
.oracle-reading-dialog .oracle-lines .yao-line { height: 8px; gap: 14px; }
.oracle-reading-dialog .oracle-lines .bar { height: 8px; background: #463419; }
.oracle-reading-dialog .oracle-result-copy { min-width: 0; }
.oracle-reading-dialog .oracle-result-copy p {
  color: #50483a;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.oracle-reading-dialog .oracle-modal-actions {
  flex: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: #e4dbcb;
  background: #faf6ed;
  backdrop-filter: none;
}
.oracle-reading-dialog .oracle-modal-actions button {
  min-width: 0;
  min-height: 44px;
  padding-inline: 6px;
  gap: 4px;
  font-size: clamp(11px, 3.4vw, 13.5px);
}
.oracle-keep-btn {
  border: 1px solid #cdbb97;
  border-radius: 999px;
  background: #eee4d0;
  color: #523a14;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.oracle-keep-btn[aria-disabled="true"] { cursor: default; background: #faf6ed; }
.oracle-action-status, .oracle-library-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #625b50;
  font-size: 13px;
}
.oracle-action-status:empty, .oracle-library-status:empty { display: none; }
.oracle-library-note { color: #625b50; margin: 8px 0; }
.oracle-chat-return { padding: 0 16px 8px; }
.oracle-chat-return button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cdbb97;
  border-radius: 99px;
  background: #faf6ed;
  color: #5f461d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.oracle-reading-dialog .oracle-modal-actions button { box-shadow: none; touch-action: manipulation; }
.oracle-reading-dialog .oracle-modal-actions .oracle-save-btn { background: #faf6ed; color: #5f461d; border-color: #cdbb97; }
.oracle-reading-dialog .oracle-modal-actions .oracle-chat-btn { background: #211e16; color: #fbf2df; border-color: #211e16; }
.oracle-reading-dialog :focus-visible,
.oracle-app-page .auspicious-hub button:focus-visible,
.oracle-app-page .oracle-draw-panel button:focus-visible {
  outline: 2px solid #ab853e;
  outline-offset: -3px;
}
@media (max-width: 520px) {
  .oracle-reading-dialog { width: 100%; height: 100dvh; max-height: 100%; border-radius: 0; }
  .oracle-reading-toolbar { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .oracle-reading-dialog .oracle-modal-actions {
    padding-inline-start: max(10px, env(safe-area-inset-left, 0px));
    padding-inline-end: max(10px, env(safe-area-inset-right, 0px));
    gap: 6px;
  }
  .oracle-reading-dialog .oracle-action-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oracle-stage.is-shaking .oracle-draw-art,
  .oracle-draw-float,
  .oracle-scene-dust i { animation: none; }
  .oracle-draw-object::before { transition: none; }
  .oracle-app-page .auspicious-choice-card,
  .oracle-reading-dialog .oracle-modal-actions button { transition: none; }
}

/* public/css/shrine-premium.css */
body[data-mobile-view="oracle"]:has(.oracle-app-page[data-auspicious-mode="shrine"]) #messages {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: #151511;
}
body[data-mobile-view="oracle"]:has(.oracle-app-page[data-auspicious-mode="shrine"]) .plan-mobile-tabbar {
  display: none !important;
}
body[data-mobile-view="oracle"] .mock-page.oracle-app-page[data-auspicious-mode="shrine"],
.oracle-app-page[data-auspicious-mode="shrine"] .auspicious-shell,
.shrine-ritual:not(.hidden) {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: #151511 !important;
  box-shadow: none !important;
}
.shrine-ritual:not(.hidden) {
  backdrop-filter: none !important;
}
.shrine-ritual::after {
  content: none;
}
.shrine-ritual [hidden] { display: none; }
.shrine-ritual .shrine-ritual-back {
  position: absolute;
  inset: 10px auto auto clamp(12px, 4vw, 24px);
  z-index: 1;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #e9cc9155;
  border-radius: 99px;
  background: #231b13dd;
  color: #f2dfb9;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.shrine-ritual-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
  background: #151511;
  color: #faf5eb;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.shrine-ritual-portrait,
.shrine-ritual-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: min(100%, 760px);
  margin-inline: auto;
  pointer-events: none;
}
.shrine-ritual-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  -webkit-user-drag: none;
}
.shrine-ritual-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #151511 0%, #151511ba 16%, transparent 35%, transparent 64%, #151511bd 84%, #151511 100%);
  content: '';
  pointer-events: none;
}
.shrine-ambient-light {
  position: absolute;
  top: 24%;
  left: 17%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffc37275, transparent 66%);
  transform: translate(-50%, -50%);
  animation: shrineLanternBreath 4.8s ease-in-out infinite alternate;
}
.shrine-ambient-light:nth-child(2) {
  left: 83%;
  animation-delay: -2.3s;
}
.shrine-ambient-smoke {
  position: absolute;
  left: 23%;
  bottom: 18%;
  width: clamp(34px, 14%, 90px);
  height: clamp(100px, 24%, 210px);
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 68%, #e9ddc8a6, transparent 39%),
    radial-gradient(ellipse at 65% 45%, #f2ded0a0, transparent 41%),
    radial-gradient(ellipse at 42% 24%, #e5cbab80, transparent 45%);
  filter: blur(7px);
  opacity: 0;
  animation: shrineSmokeDrift 9s linear infinite;
  animation-delay: -2.5s;
}
.shrine-ambient-smoke:nth-child(4) {
  left: auto;
  right: 20%;
  animation-delay: -6s;
}
@keyframes shrineLanternBreath {
  from { opacity: .22; transform: translate(-50%, -50%) scale(.88); }
  to { opacity: .62; transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes shrineSmokeDrift {
  0% { opacity: 0; transform: translate(-8px, 24px) rotate(-11deg) scale(.65); }
  24% { opacity: .42; }
  60% { opacity: .22; transform: translate(12px, -34px) rotate(10deg) scale(1); }
  100% { opacity: 0; transform: translate(-5px, -100px) rotate(-5deg) scale(1.45); }
}
@media (min-width: 761px) {
  .shrine-ritual-portrait { mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
}
.shrine-ritual-intro { padding: 64px clamp(14px, 5vw, 26px) 0; }
.shrine-ritual-intro span { color: #e9cc91; font-size: 12px; font-weight: 750; }
.shrine-ritual-intro h1 { margin: 4px 0; font-size: clamp(24px, 6vw, 32px); line-height: 1.25; }
.shrine-ritual-intro p { margin: 0; color: #d4cbbd; }
.shrine-ritual button.shrine-lamp-action {
  --daily-lamp-size: clamp(160px, 46vw, 220px);
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: auto;
  padding: 4px 16px 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  touch-action: pan-y;
}
.shrine-lamp-art {
  position: relative;
  display: grid;
  align-items: end;
  width: var(--daily-lamp-size, 146px);
  aspect-ratio: 146 / 110;
  transition: transform .18s ease;
}
.shrine-lamp-action:not([aria-disabled="true"]):active .shrine-lamp-art { transform: scale(.94); }
.shrine-lamp-art svg { position: relative; display: block; width: 100%; height: auto; }
.shrine-basin-oil {
  transform-box: fill-box;
  clip-path: inset(calc(100% - var(--shrine-oil, 0%)) 0 0);
}
.shrine-oil-reading {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 7px;
  font-size: 13px;
  color: #f0dbb2;
}
.shrine-oil-reading meter {
  width: 105px;
  height: 8px;
  accent-color: #e5ba70;
}
.shrine-oil-reading meter::-webkit-meter-bar {
  border: 0;
  border-radius: 99px;
  background: #564632;
}
.shrine-oil-reading meter::-webkit-meter-optimum-value {
  border-radius: 99px;
  background: #e5ba70;
}
.shrine-oil-reading meter::-moz-meter-bar { background: #e5ba70; }
.shrine-lamp-halo, .shrine-lamp-flame, .shrine-lamp-drop { position: absolute; left: 50%; opacity: 0; }
.shrine-lamp-halo {
  inset: auto -16% -14%;
  height: 120%;
  background: radial-gradient(ellipse, #ffd18b8c, transparent 68%);
}
.shrine-lamp-flame {
  z-index: 1;
  bottom: 57%;
  width: 11%;
  height: 25%;
  margin-left: -5.5%;
  border-radius: 72% 30% 66% 44%;
  transform-origin: bottom center;
  background: radial-gradient(ellipse at 48% 80%, #fffad8 4%, #ffd27e 48%, #ec8633 76%);
  box-shadow: 0 0 19px #ffba5da0;
}
.shrine-lamp-drop {
  z-index: 2;
  left: 70%;
  bottom: 39%;
  width: 4px;
  height: 47%;
  border-radius: 50%;
  transform-origin: top center;
  background: linear-gradient(180deg, transparent, #ffe0a0 20%, #d48a38 88%, #f8d88c);
}
.is-lamp-lit .shrine-lamp-halo, .is-lamp-lit .shrine-lamp-flame { opacity: 1; }
.shrine-ritual .is-lamp-lit .shrine-lamp-flame { animation: shrineFlameSway 2.3s ease-in-out infinite; }
.is-filling .shrine-lamp-drop { animation: shrineOilStream .57s ease-in-out infinite alternate both; }
.shrine-ritual .is-igniting .shrine-lamp-flame { animation: shrineFlameReveal .38s ease-out both, shrineFlameSway 2.3s .38s ease-in-out infinite; }
.is-igniting .shrine-lamp-halo { animation: shrineGlowReveal .6s ease-out both; }
@keyframes shrineOilStream {
  from { opacity: .5; transform: rotate(5deg) scaleX(.7); }
  to { opacity: 1; transform: rotate(3deg) scaleX(1.05); }
}
@keyframes shrineFlameReveal {
  from { opacity: 0; transform: scale(.35,.12); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shrineGlowReveal { from { opacity: .18; } to { opacity: 1; } }
@keyframes shrineFlameSway {
  0%, 100% { transform: rotate(-4deg) scale(.94, 1); }
  45% { transform: rotate(5deg) scale(1.04, .93); }
  70% { transform: rotate(1deg) scale(.98, 1.05); }
}
.shrine-lamp-action-label {
  min-height: 44px;
  display: grid;
  align-items: center;
  padding: 0 16px;
  border-radius: 99px;
  color: #302113;
  background: #e9cc91;
}
.shrine-ritual .shrine-lamp-action[aria-disabled="true"] { cursor: default; }
.shrine-lamp-action[aria-disabled="true"] .shrine-lamp-action-label {
  background: #3e3524;
  color: #f0dba9;
}
.shrine-lamp-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 12px;
  padding: 10px 14px calc(22px + env(safe-area-inset-bottom, 0px));
  color: #dacdb9;
  font-size: 13px;
}
.shrine-legacy-import:not([hidden]) {
  flex-basis: min(100%, 260px);
  min-height: 44px;
  color: #f4dfab;
  background: #241b13;
  border: 1px solid #e9cc9155;
  border-radius: 999px;
}
.shrine-legacy-import:disabled { opacity: .6; }
.shrine-badge-toggle {
  position: absolute;
  z-index: 1;
  inset: 10px clamp(12px, 4vw, 24px) auto auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 62px;
  min-height: 44px;
  padding: 2px 10px 2px 5px;
  background: #231b13dd;
  border: 1px solid #e9cc9155;
  border-radius: 99px;
  color: #f2dfb9;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.shrine-badge-mark { display: block; width: 32px; height: auto; flex: none; }
.shrine-badge-dialog {
  position: fixed;
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px clamp(14px, 5vw, 28px) 14px;
  border: 1px solid #695133;
  border-radius: 24px;
  background: #211a13;
  color: #f4e6ce;
  text-align: center;
  box-shadow: 0 15px 60px #0d0a08c9;
}
.shrine-badge-dialog::backdrop { background: #100c08c7; }
.shrine-badge-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f4e6ce;
  font-size: 25px;
  cursor: pointer;
}
.shrine-badge-feature .shrine-badge-mark { width: 92px; margin: 0 auto; }
.shrine-badge-kicker { margin: 10px 0 2px; color: #e6c58b; font-size: 13px; }
.shrine-badge-dialog h2 { margin: 0 0 8px; color: #fff4df; font-size: 25px; }
.shrine-badge-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 14px;
  margin: 0;
  color: #d9c8ac;
}
.shrine-badge-counts strong { color: #f3d39a; font-size: 17px; }
.shrine-badge-counts span { font-size: 13px; }
.shrine-badge-next { margin: 14px 0 4px; font-size: 13px; }
.shrine-badge-dialog progress { width: min(220px, 100%); height: 9px; accent-color: #e4bb79; }
.shrine-badge-tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}
.shrine-badge-tiers li {
  display: grid;
  grid-template-rows: auto 2.4em auto;
  justify-items: center;
  align-items: center;
  gap: 3px 0;
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
}
.shrine-badge-tiers li span { overflow-wrap: anywhere; }
.shrine-badge-tiers .shrine-badge-mark { width: min(38px, 100%); }
.shrine-badge-tiers [data-earned="false"] .shrine-badge-mark { filter: saturate(.55); opacity: .7; }
.shrine-badge-tiers [aria-current] { color: #f0ca86; font-weight: 750; }
.shrine-badge-tiers small { color: #d2bfa3; font-size: 10px; white-space: nowrap; }
.shrine-badge-message { color: #d2bfa3; }
.shrine-badge-share {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 99px;
  background: #e9cc91;
  color: #20170e;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.shrine-badge-share:disabled { background: #46382a; color: #d2bfa3; cursor: default; }
.shrine-badge-message { min-height: 1lh; margin: 6px 0 0; font-size: 12px; }
.home-plan .home-daily-lamp {
  --daily-lamp-size: 43px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 12px;
  padding: 4px 6px 4px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #282218;
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.home-daily-lamp-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 46px;
  border-radius: 12px;
  background: #eee6d5;
}
.home-daily-lamp-copy { display: grid; min-width: 0; gap: 2px; line-height: 1.4; }
.home-daily-lamp-copy strong { font-size: 15px; font-weight: 700; }
.home-daily-lamp-copy small { color: #665942; font-size: 12px; }
.home-daily-lamp-days {
  padding: 5px 8px;
  border-radius: 99px;
  background: #f3e6c8;
  color: #6d4b19;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}
.home-daily-lamp-days strong {
  color: #573708;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.home-daily-lamp-arrow { width: 18px; height: 18px; fill: none; stroke: #775a2c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-plan .home-daily-lamp:active { background: #eee6d5; }
.home-daily-lamp .shrine-lamp-flame { box-shadow: 0 0 9px #d39a43; }
.home-daily-lamp:focus-visible { outline: 2px solid #a27938; outline-offset: 2px; }
.shrine-ritual :focus-visible { outline: 2px solid #a27938; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .shrine-lamp-art, .shrine-ritual .shrine-lamp-art * { transition: none; animation: none !important; }
  .shrine-ambient-light, .shrine-ambient-smoke { animation: none; }
  .shrine-ambient-light { opacity: .3; }
  .is-filling .shrine-lamp-drop { opacity: 1; }
}

/* public/css/prayer.css */
body[data-mobile-view="prayer"] #messages:has(> .prayer-page) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}
@media (max-width: 760px) {
  body[data-mobile-view="prayer"] #messages:has(> .prayer-page) {
    padding-bottom: calc(var(--app-shell-bottom-nav, 82px) + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (min-width: 761px) {
  body[data-mobile-view="prayer"]:not(.mobile-preview-mode) .plan-mobile-tabbar { display: none !important; }
  body[data-mobile-view="prayer"].mobile-preview-mode #messages:has(> .prayer-page) {
    padding-bottom: calc(var(--app-shell-bottom-nav, 82px) + env(safe-area-inset-bottom, 0px)) !important;
  }
}
.prayer-page {
  --prayer-action-row: 48px;
  --prayer-dock-padding: 4px;
  --prayer-bead-control: 104px;
  --prayer-dock-seam: calc(var(--prayer-bead-control) - var(--prayer-action-row) - var(--prayer-dock-padding) - 1px);
  flex: 1;
  min-height: 0;
  width: min(100%, 620px);
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  color: #2c2419;
  background: #fbf7ef;
}
.prayer-page button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
.prayer-page :is(button, input, a):focus-visible { outline: 2px solid #946a32; outline-offset: 2px; }
.prayer-heading {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-bottom: 1px solid #e5dac8;
}
.prayer-heading h1 { margin: 0; font-size: clamp(17px, 4.6vw, 20px); overflow-wrap: anywhere; }
.prayer-heading h1:focus { outline: none; }
.prayer-heading button {
  border: 0;
  padding: 4px 8px;
  color: #6a4c23;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}
.prayer-heading .prayer-back { font-size: 19px; }
.prayer-reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #e5dac8;
  accent-color: #a67b35;
  pointer-events: none;
}
.prayer-reading-progress[hidden] { display: none; }
.prayer-reading-progress::-webkit-progress-bar { background: #e5dac8; }
.prayer-reading-progress::-webkit-progress-value { background: #a67b35; }
.prayer-reading-progress::-moz-progress-bar { background: #a67b35; }
.prayer-reader {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 5vw, 36px) 18px;
  padding-bottom: calc(var(--prayer-dock-seam) + 18px);
  text-align: center;
}
.prayer-reader:focus-visible { outline: 2px solid #946a32; outline-offset: -3px; }
.prayer-reader[data-chant-category="full"] { text-align: start; }
.prayer-version { margin: 0 0 10px; color: #755426; font-size: 13px; }
.prayer-passage { font-size: clamp(18px, 4.7vw, 22px); line-height: 1.75; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.prayer-set-section + .prayer-set-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5dac8;
}
.prayer-set-section h2 {
  margin: 0 0 10px;
  font-size: .85em;
  line-height: 1.55;
  color: #76552d;
}
.prayer-set-section p { margin: 0; }
.prayer-set-section p + p { margin-top: 10px; }
.prayer-set-section .prayer-set-cue { color: #76552d; font-size: .75em; }
.prayer-counter {
  position: relative;
  padding: var(--prayer-dock-padding) clamp(8px, 2.5vw, 14px);
  border-top: 1px solid #e5dac8;
  background: #faf3e7;
}
.prayer-round-actions {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) minmax(0, 2.35fr) 44px 44px;
  align-items: center;
  gap: 4px;
}
.prayer-round-actions button, .prayer-dialog button {
  border: 1px solid #dfd0b7;
  border-radius: 10px;
  padding: 4px 10px;
  color: #513a1c;
  background: #faf6ed;
  font-size: 14px;
}
.prayer-round-actions .prayer-round-badge {
  display: grid;
  justify-items: center;
  align-content: center;
  justify-self: start;
  width: min(100%, 120px);
  min-height: var(--prayer-action-row);
  gap: 1px;
  padding: 4px;
  color: #fff1d3;
  border: 0;
  background: #40301d;
  font-size: 11px;
  line-height: 1.2;
}
.prayer-badge-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 3px;
  width: 100%;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.prayer-badge-value strong { color: #ffe2a1; font-size: 17px; line-height: 1.12; }
.prayer-badge-value small { color: #faedce; font-size: 11px; }
.prayer-round-actions .prayer-tool {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #694b25;
}
.prayer-tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.prayer-count-slot {
  position: relative;
  align-self: start;
  height: var(--prayer-action-row);
  min-width: 0;
}
.prayer-round-actions .prayer-count {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  align-content: start;
  margin-inline: auto;
  width: min(100%, 76px);
  min-height: var(--prayer-bead-control);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-x pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.prayer-round-actions .prayer-count:active { cursor: grabbing; }
.prayer-count:active .prayer-bead-guide { border-color: #88571e; }
.prayer-beads {
  position: relative;
  display: block;
  width: 44px;
  height: calc(var(--prayer-dock-seam) + 41px);
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 10px, #000 calc(100% - 22px), transparent);
}
.prayer-beads::before {
  position: absolute;
  inset: 0 auto 0 calc(50% - 1.25px);
  width: 2.5px;
  background: linear-gradient(90deg, #8d673e, #c19a65 75%, #8d673e);
  content: '';
}
.prayer-bead-track {
  position: absolute;
  inset: calc(var(--prayer-dock-seam) - var(--prayer-strand-length) / 2) 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: var(--prayer-strand-length);
}
.prayer-bead {
  z-index: 1;
  --prayer-bead-size: 30px;
  flex: 0 0 var(--prayer-bead-size);
  width: var(--prayer-bead-size);
  margin-block: calc((var(--prayer-bead-step) - var(--prayer-bead-size)) / 2);
  box-sizing: border-box;
  border: 1px solid #61401e;
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 26%, #cda779, #91633a 44%, #513119 78%, #432619);
  box-shadow: 0 1px 2px #482b1555, inset 0 0 0 1px #e9be8240;
}
.prayer-bead-guide {
  position: absolute;
  top: var(--prayer-dock-seam);
  left: 50%;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 1px solid #b18242;
  border-radius: 50%;
}
.prayer-page button:is([aria-disabled="true"], :disabled) { opacity: .62; cursor: default; }
.prayer-feedback { margin: 4px 0 0; font-size: 12px; color: #6a4c23; }
.prayer-feedback:empty { margin: 0; }
.prayer-counter > .prayer-feedback {
  position: absolute;
  z-index: 2;
  inset: auto 8px calc(100% + var(--prayer-dock-seam) + 5px);
  width: fit-content;
  margin: 0 auto;
  padding: 4px 10px;
  border: 1px solid #dfd0b7;
  border-radius: 99px;
  background: #fbf7ef;
  pointer-events: none;
  text-align: center;
}
.prayer-counter > .prayer-feedback:empty { display: none; }
.prayer-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid #dfd0b7;
  border-radius: 16px;
  background: #fbf7ef;
  color: #2c2419;
}
.prayer-dialog:not([open]) { display: none; }
.prayer-dialog::backdrop { background: rgba(29, 20, 11, .55); }
.prayer-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.prayer-dialog h2 { margin: 0; font-size: 19px; }
.prayer-dialog > header button { font-size: 19px; }
.prayer-chant-list { display: grid; }
.prayer-dialog .prayer-chant-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2c2419;
  font-size: 15px;
  text-align: start;
}
.prayer-dialog .prayer-chant-list button + button { border-top: 1px solid #e8dfd0; }
@media (hover: hover) {
  .prayer-dialog .prayer-chant-list button:hover:not([aria-pressed="true"]) { background: #f5eee1; }
}
.prayer-dialog .prayer-chant-list button::after {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-inline-start: auto;
  margin-inline-end: 3px;
  border-block-start: 1.5px solid #846942;
  border-inline-end: 1.5px solid #846942;
  transform: rotate(45deg);
}
.prayer-dialog .prayer-chant-list button[aria-pressed="true"] {
  border-radius: 7px;
  background: #efe4ce;
  font-weight: 700;
}
.prayer-dialog .prayer-chant-list button[aria-pressed="true"]::after {
  flex-basis: 10px;
  height: 5px;
  border: 0;
  border-inline-start: 2px solid #76552d;
  border-block-end: 2px solid #76552d;
  transform: translateY(-1px) rotate(-45deg);
}
.prayer-routine-list small { margin-inline-start: auto; color: #76552d; white-space: nowrap; font-size: 12px; font-weight: 500; }
.prayer-dialog .prayer-routine-list button::after { margin-inline-start: 1px; }
.prayer-picker-group:not([hidden]) + .prayer-picker-group { margin-top: 20px; }
.prayer-picker-group h3 {
  margin: 0 0 4px;
  padding: 4px 0 4px 9px;
  border-inline-start: 3px solid #b48745;
  color: #684820;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}
.prayer-dialog[data-prayer-dialog="picker"] > header {
  position: sticky;
  z-index: 1;
  top: -15px;
  margin-top: -15px;
  padding-top: 15px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8dfd0;
  background: #fbf7ef;
}
.prayer-goals, .prayer-share { display: flex; flex-wrap: wrap; gap: 6px; }
.prayer-dialog button[aria-pressed="true"] { background: #efdfbc; border-color: #b58a50; font-weight: 700; }
.prayer-custom { margin-top: 12px; font-size: 14px; }
.prayer-custom > div { display: flex; gap: 6px; margin-top: 4px; }
.prayer-custom input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #cbb792;
  border-radius: 9px;
  background: #fffdf8;
  color: #2c2419;
  font: inherit;
  font-size: 16px;
}
.prayer-custom input[aria-invalid="true"] { border-color: #a8392d; }
.prayer-new-round { margin-top: 12px; }
.prayer-new-note { display: block; margin-top: 4px; color: #6a5436; }
.prayer-stats dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 10px; text-align: center; }
.prayer-stats dl > div + div { border-left: 1px solid #ddcfb7; }
.prayer-stats dt, .prayer-stats > p { font-size: 13px; color: #6a5436; }
.prayer-stats dd { margin: 0; color: #503c20; font-size: 14px; overflow-wrap: anywhere; }
.prayer-stats dd strong { font-size: clamp(22px, 7vw, 30px); line-height: 1.25; font-variant-numeric: tabular-nums; }
.prayer-stats progress { width: 100%; height: 8px; accent-color: #a67633; }
.prayer-share { margin-top: 12px; }

/* public/css/shop-premium.css */
/* Storefront — compact commerce hierarchy adapted to the Paulpooh visual system. */
body[data-mobile-view^="shop"]{--shop-ink:#161611;--shop-muted:#716d64;--shop-gold:#9d772e;--shop-gold-soft:#f1e5c6;--shop-paper:#fbf9f4;--shop-line:#e7e2d8;--shop-white:#fff}
body[data-mobile-view^="shop"] .messages{background:var(--shop-paper)!important;padding-inline:0!important}
body[data-mobile-view^="shop"] .shop-app-page{width:100%!important;max-width:720px;margin-inline:auto;padding:0!important;color:var(--shop-ink)}
body[data-mobile-view^="shop"] .shop-page{gap:0!important;padding:0 0 calc(var(--app-shell-bottom-nav,82px) + 24px)!important;background:var(--shop-paper)}

/* Functional header: search on catalog, back/title on transaction pages. */
body[data-mobile-view^="shop"] .topbar.shop-topbar{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:0 12px!important;background:#11120f!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important}
body[data-mobile-view^="shop"] .topbar.shop-topbar #menu-btn,body[data-mobile-view^="shop"] .topbar.shop-topbar .topbar-text{display:none!important}
body[data-mobile-view^="shop"] .topbar.shop-topbar .topbar-copy{display:block!important;min-width:0!important;padding:0!important}
body[data-mobile-view^="shop"] .shop-topbar-tools{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center;min-width:0}
body[data-mobile-view^="shop"] .shop-topbar-tools[hidden]{display:none!important}
.shop-topbar-search{height:44px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#fff;display:flex;align-items:center;gap:9px;padding:0 13px;color:#777a72;box-shadow:none}
.shop-topbar-search svg{width:19px;height:19px;flex:0 0 auto}.shop-topbar-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#171812;font:800 14px/1.2 inherit}.shop-topbar-search input::placeholder{color:#999b94}
.shop-topbar-cart,.shop-topbar-back{position:relative;width:44px;height:44px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:#1d211a;color:#fff;display:grid;place-items:center;box-shadow:none}
.shop-topbar-cart svg,.shop-topbar-back svg{width:21px;height:21px}.shop-topbar-cart b{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#c84743;color:#fff;border:2px solid #11120f;display:grid;place-items:center;font-size:9px;line-height:1}
body[data-mobile-view^="shop"] .shop-topbar-tools:has(.shop-topbar-back){grid-template-columns:44px minmax(0,1fr) 44px}.shop-topbar-label{overflow:hidden;color:#fff;font-size:15px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.shop-topbar-spacer{width:44px;height:44px}

/* Catalog */
.shop-catalog-intro{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:23px 20px 15px;background:var(--shop-white)}.shop-catalog-intro>div{display:grid;gap:3px}.shop-catalog-intro span{color:var(--shop-gold);font-size:9px;font-weight:950;letter-spacing:.16em}.shop-catalog-intro h1{margin:0;color:var(--shop-ink);font-size:25px;line-height:1.2;letter-spacing:-.025em}.shop-catalog-intro button{min-height:38px;border:0;background:transparent;color:var(--shop-gold);font-size:12px;font-weight:900;padding:6px 0 6px 12px}
.shop-category-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 20px 16px;background:var(--shop-white);scrollbar-width:none;-webkit-overflow-scrolling:touch}.shop-category-tabs::-webkit-scrollbar{display:none}.shop-category-tabs button{flex:0 0 auto;min-height:38px;padding:0 16px;border:1px solid var(--shop-line);border-radius:999px;background:#fff;color:#5f5c54;font-size:12px;font-weight:850;white-space:nowrap}.shop-category-tabs button.active{border-color:var(--shop-ink);background:var(--shop-ink);color:#fff}
.shop-category-tabs button:focus-visible,.shop-product-card:focus-within,.shop-icon-btn:focus-visible,.shop-account-links button:focus-visible{outline:3px solid rgba(157,119,46,.25);outline-offset:2px}
body[data-mobile-view="shop"] .shop-section{padding:20px 20px 28px!important;border-top:8px solid #f3f0e9!important;border-bottom:0!important;background:var(--shop-white)!important;gap:16px!important}
body[data-mobile-view="shop"] .shop-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:0!important}body[data-mobile-view="shop"] .shop-section-head>div{display:grid;gap:4px;min-width:0}body[data-mobile-view="shop"] .shop-section-head small{color:var(--shop-gold);font-size:10px;font-weight:900;letter-spacing:.02em;text-transform:none}body[data-mobile-view="shop"] .shop-section-head strong{overflow:hidden;color:var(--shop-ink);font-size:20px!important;line-height:1.25;letter-spacing:-.02em!important;text-overflow:ellipsis;white-space:nowrap}body[data-mobile-view="shop"] .shop-section-head>span{flex:0 0 auto;color:var(--shop-muted)!important;font-size:11px!important}
body[data-mobile-view="shop"] .shop-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px!important}
body[data-mobile-view="shop"] .shop-market-grid .shop-product-card{min-width:0;display:grid;grid-template-rows:auto 1fr;gap:10px!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;overflow:visible!important}
body[data-mobile-view="shop"] .shop-market-grid .shop-product-media{width:100%;aspect-ratio:1/1.08;min-height:0!important;border:1px solid #eee9df!important;border-radius:16px!important;background:#f2ecdf!important;box-shadow:none!important;overflow:hidden;transition:transform .18s ease}body[data-mobile-view="shop"] .shop-market-grid .shop-product-card:active .shop-product-media{transform:scale(.985)}body[data-mobile-view="shop"] .shop-product-media img{width:100%;height:100%;object-fit:cover;display:block}
body[data-mobile-view="shop"] .shop-market-grid .shop-product-body{min-width:0;display:flex!important;flex-direction:column;gap:5px!important}body[data-mobile-view="shop"] .shop-product-kind{overflow:hidden;color:var(--shop-gold);font-size:9px;font-weight:900;line-height:1.4;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.01em}body[data-mobile-view="shop"] .shop-market-grid .shop-product-body>strong{display:-webkit-box;min-height:40px!important;margin:0!important;overflow:hidden;color:var(--shop-ink)!important;font-size:14px!important;font-weight:900!important;line-height:1.42!important;-webkit-box-orient:vertical;-webkit-line-clamp:2}body[data-mobile-view="shop"] .shop-market-grid .shop-product-body>p{display:-webkit-box;min-height:33px;margin:0;overflow:hidden;color:var(--shop-muted);font-size:11px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
body[data-mobile-view="shop"] .shop-price-row{display:flex;align-items:end!important;justify-content:space-between;gap:6px;margin-top:auto!important;padding-top:4px}body[data-mobile-view="shop"] .shop-price-row>div{display:grid;gap:1px}body[data-mobile-view="shop"] .shop-price-row b{color:var(--shop-ink)!important;font-size:15px!important;line-height:1.25}body[data-mobile-view="shop"] .shop-price-row small{color:#a5a199;font-size:10px;text-decoration:line-through}body[data-mobile-view="shop"] .shop-icon-btn{flex:0 0 auto;width:34px!important;height:34px!important;border:1px solid var(--shop-line)!important;border-radius:50%!important;background:#fff!important;color:var(--shop-ink)!important;display:grid;place-items:center;font-size:20px;font-weight:800;box-shadow:none!important}body[data-mobile-view="shop"] .shop-icon-btn span{font-size:10px;font-weight:900}.shop-stock-label{color:#a34b47;font-size:10px;font-weight:850}
.shop-no-result{grid-column:1/-1;min-height:220px;display:grid;place-content:center;justify-items:center;gap:8px;text-align:center;color:var(--shop-muted)}.shop-no-result strong{color:var(--shop-ink);font-size:17px}.shop-no-result p{margin:0;font-size:13px}.shop-no-result button{margin-top:8px;min-height:40px;padding:0 16px;border:1px solid var(--shop-line);border-radius:999px;background:#fff;color:var(--shop-ink);font-weight:850}
.shop-account-links{display:grid;padding:0 20px 22px;background:var(--shop-white)}.shop-account-links button{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:16px 0;border:0;border-top:1px solid var(--shop-line);background:transparent;text-align:left}.shop-account-links span{color:var(--shop-ink);font-size:14px;font-weight:900}.shop-account-links b{grid-column:1;color:var(--shop-muted);font-size:11px;font-weight:500}.shop-account-links i{grid-column:2;grid-row:1/3;align-self:center;color:var(--shop-gold);font-size:24px;font-style:normal}

/* Product detail */
body[data-mobile-view="shopProduct"] .mobile-tabbar,body[data-mobile-view="shopCart"] .mobile-tabbar,body[data-mobile-view="shopCheckout"] .mobile-tabbar,body[data-mobile-view="shopTracking"] .mobile-tabbar{display:none!important}
body[data-mobile-view="shopProduct"] .messages,body[data-mobile-view="shopCart"] .messages,body[data-mobile-view="shopCheckout"] .messages{padding-bottom:96px!important}body[data-mobile-view="shopProduct"] .shop-app-page,body[data-mobile-view="shopCart"] .shop-app-page,body[data-mobile-view="shopCheckout"] .shop-app-page{padding-bottom:0!important}
body[data-mobile-view="shopProduct"] .shop-product-detail-page{gap:0!important;padding-bottom:96px!important;background:var(--shop-white)}body[data-mobile-view="shopProduct"] .shop-detail-hero{padding:0!important;background:#f1eadc!important;border:0!important}body[data-mobile-view="shopProduct"] .shop-detail-media{width:100%;aspect-ratio:1/1;min-height:0!important;border-radius:0!important;background:#f1eadc!important;box-shadow:none!important;overflow:hidden}body[data-mobile-view="shopProduct"] .shop-detail-media img{width:100%;height:100%;object-fit:cover;display:block}
body[data-mobile-view="shopProduct"] .shop-detail-sheet{display:grid;gap:7px;margin:0!important;padding:22px 20px 18px!important;border:0!important;background:#fff!important}.shop-detail-eyebrow{color:var(--shop-gold);font-size:10px;font-weight:900}body[data-mobile-view="shopProduct"] .shop-detail-sheet h2{margin:0;color:var(--shop-ink);font-size:24px!important;line-height:1.3;letter-spacing:-.02em!important}body[data-mobile-view="shopProduct"] .shop-detail-price{display:flex;align-items:baseline;gap:9px;margin-top:2px}body[data-mobile-view="shopProduct"] .shop-detail-price strong{color:var(--shop-ink)!important;font-size:21px!important}body[data-mobile-view="shopProduct"] .shop-detail-price span{color:#a8a39a;font-size:12px;text-decoration:line-through}.shop-detail-availability{display:flex;align-items:center;gap:6px;color:#4c6351;font-size:11px}.shop-detail-availability i{width:7px;height:7px;border-radius:50%;background:#3d9b65}
body[data-mobile-view="shopProduct"] .shop-detail-section{display:grid;gap:10px;margin:0!important;padding:20px!important;border:0!important;border-top:8px solid #f3f0e9!important;background:#fff!important}body[data-mobile-view="shopProduct"] .shop-detail-section h3{margin:0;color:var(--shop-ink);font-size:16px!important}body[data-mobile-view="shopProduct"] .shop-detail-section p{margin:0;color:var(--shop-muted);font-size:13px;line-height:1.75}body[data-mobile-view="shopProduct"] .shop-info-list{border:0!important;border-radius:0!important}body[data-mobile-view="shopProduct"] .shop-info-list>div{padding:12px 0!important;border-bottom:1px solid var(--shop-line)!important}
body[data-mobile-view="shopProduct"] .shop-product-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:90;display:grid;grid-template-columns:minmax(98px,.72fr) minmax(0,1fr) minmax(0,1.18fr);gap:8px;align-items:center;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--shop-line);background:rgba(255,255,255,.97);box-shadow:0 -8px 26px rgba(32,28,19,.08);backdrop-filter:blur(16px)}.shop-action-price{min-width:0;display:grid;gap:1px}.shop-action-price span{color:var(--shop-muted);font-size:9px}.shop-action-price strong{overflow:hidden;color:var(--shop-ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}body[data-mobile-view="shopProduct"] .shop-product-actionbar button{min-height:49px;border:0;border-radius:14px;padding:0 12px;font-size:13px;font-weight:900}body[data-mobile-view="shopProduct"] .shop-action-cart{background:#f3ead5;color:#72541e}body[data-mobile-view="shopProduct"] .shop-action-buy{background:var(--shop-ink);color:#fff}body[data-mobile-view="shopProduct"] .shop-product-actionbar button:only-of-type{grid-column:2/4}body[data-mobile-view="shopProduct"] .shop-product-actionbar button:disabled{opacity:.45}

/* Cart and checkout */
body[data-mobile-view="shopCart"] .shop-market-cart-page{padding:0 16px 110px!important;background:var(--shop-paper)}body[data-mobile-view="shopCart"] .shop-market-notice{margin:14px 0 10px;border:0;border-radius:14px;background:#eef4ec;color:#365d40}body[data-mobile-view="shopCart"] .shop-market-store,body[data-mobile-view="shopCart"] .shop-coupon-panel,body[data-mobile-view="shopCart"] .shop-market-summary{border:1px solid var(--shop-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
.shop-checkout-heading{padding:22px 20px 8px;display:grid;gap:6px}.shop-checkout-heading>span{color:var(--shop-gold);font-size:9px;font-weight:900;letter-spacing:.12em}.shop-checkout-heading h1{margin:0;color:var(--shop-ink);font-size:25px;line-height:1.2;letter-spacing:-.025em}.shop-checkout-steps{display:grid;grid-template-columns:28px 1fr 28px 1fr 28px;align-items:center;gap:8px;margin-top:16px}.shop-checkout-steps b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e9e4d8;color:#8c8578;font-size:11px}.shop-checkout-steps b.active{background:var(--shop-ink);color:#fff}.shop-checkout-steps i{height:1px;background:var(--shop-line)}.shop-checkout-steps small{font-size:9px;color:var(--shop-muted);text-align:center;white-space:nowrap}.shop-checkout-steps small:nth-of-type(1){grid-column:1}.shop-checkout-steps small:nth-of-type(2){grid-column:3}.shop-checkout-steps small:nth-of-type(3){grid-column:5}
body[data-mobile-view="shopCheckout"] .shop-market-checkout-page{gap:12px!important;padding-bottom:118px!important;background:var(--shop-paper)}body[data-mobile-view="shopCheckout"] .shop-checkout-address,body[data-mobile-view="shopCheckout"] .shop-market-store,body[data-mobile-view="shopCheckout"] .shop-checkout-form-section,body[data-mobile-view="shopCheckout"] .shop-coupon-panel,body[data-mobile-view="shopCheckout"] .shop-market-summary,body[data-mobile-view="shopCheckout"] .shop-checkout-entitlement{margin-inline:16px!important;border:1px solid var(--shop-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}body[data-mobile-view="shopCheckout"] .shop-checkout-pin{background:#f3ead5;color:var(--shop-gold)}body[data-mobile-view="shopCheckout"] .shop-market-form{grid-template-columns:1fr 1fr;gap:12px;padding:16px}body[data-mobile-view="shopCheckout"] .shop-market-form label:first-child,body[data-mobile-view="shopCheckout"] .shop-market-form .wide{grid-column:1/-1}body[data-mobile-view="shopCheckout"] .shop-form input,body[data-mobile-view="shopCheckout"] .shop-form textarea{min-height:48px;border:1px solid var(--shop-line);border-radius:12px;background:#fff;padding:11px 12px;box-shadow:none}body[data-mobile-view="shopCheckout"] .shop-form input:focus,body[data-mobile-view="shopCheckout"] .shop-form textarea:focus{border-color:var(--shop-gold);outline:3px solid rgba(157,119,46,.13)}

@media(min-width:761px){body[data-mobile-view="shop"] .shop-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-mobile-view^="shop"] .shop-app-page{max-width:820px}body[data-mobile-view="shopCheckout"] .shop-market-checkout-page{max-width:680px;margin-inline:auto}}
@media(max-width:430px){body[data-mobile-view="shopCheckout"] .shop-market-form{grid-template-columns:1fr}body[data-mobile-view="shopCheckout"] .shop-market-form label:first-child{grid-column:auto}body[data-mobile-view="shopProduct"] .shop-product-actionbar{grid-template-columns:88px minmax(0,.9fr) minmax(0,1.15fr);padding-inline:10px}}
@media(max-width:360px){body[data-mobile-view="shop"] .shop-market-grid{gap:21px 10px!important}.shop-catalog-intro,body[data-mobile-view="shop"] .shop-section{padding-inline:15px!important}.shop-category-tabs{padding-inline:15px}}
@media(prefers-reduced-motion:reduce){.shop-product-media{transition:none!important}}

/* Transaction header: the app header has two slots; give its tools their own explicit columns. */
body[data-mobile-view^="shop"] #app-topbar.shop-topbar {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
}
body[data-mobile-view^="shop"] #shop-topbar-tools:has(.shop-topbar-back) {
  grid-template-columns: 44px minmax(0, 1fr) !important;
}
body[data-mobile-view="shopProduct"] #shop-topbar-tools:has(.shop-topbar-cart) {
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
}
.shop-topbar-label { text-align: start; }
body:is([data-mobile-view="shopProduct"], [data-mobile-view="shopCart"], [data-mobile-view="shopCheckout"], [data-mobile-view="shopTracking"]) .plan-mobile-tabbar {
  display: none !important;
}
body[data-mobile-view="shopCart"] .shop-cart-actionbar,
body[data-mobile-view="shopProduct"] .shop-product-actionbar { bottom: 0 !important; }
body[data-mobile-view="shopCheckout"] #messages { padding-bottom: 0 !important; }
body[data-mobile-view="shopCheckout"] .shop-market-checkout-page { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important; }
body[data-mobile-view="shopCheckout"] .shop-checkout-actionbar {
  position: static;
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
  margin-inline: 16px;
  border-top: 0;
  border-radius: 16px;
  background: #f0eadc;
  box-shadow: none;
  padding: 12px;
}
body[data-mobile-view="shopCheckout"] .shop-checkout-actionbar > div { justify-items: start; }
body[data-mobile-view="shopCheckout"] .shop-checkout-actionbar strong { color: var(--shop-ink); }
body[data-mobile-view="shopCheckout"] .shop-checkout-actionbar button {
  min-height: 46px;
  height: auto;
  background: var(--shop-ink);
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
}
body[data-mobile-view="shopCheckout"] .shop-checkout-actionbar button:disabled { opacity: .65; }
.shop-checkout-section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 14px 16px 0;
  font-size: 15px;
  font-weight: 700;
}
.shop-checkout-section-label small { color: var(--shop-muted); font-weight: 400; }
body[data-mobile-view="shopCheckout"] .shop-market-thumb .shop-time-symbol { background: #f3ead5 !important; color: #765520; }
