/* Thai weekday accents and a small static sky ornament. No image downloads or animation. */
:root{--ambient-accent:#3a64a2;--ambient-orb:#ffdfa5;--ambient-sky:linear-gradient(115deg,#315a7a,#528da6);--ambient-cover:#2b4f6d;--ambient-surface:#fff;--ambient-raised:#f0f4f8;--ambient-input:#f5f7fa;--ambient-text:#2c3e50;--ambient-muted:#647487;--ambient-border:#dbe3ec;--ambient-button-text:#fff;--green:var(--ambient-accent);--deep:var(--ambient-accent);--mint:color-mix(in srgb,var(--ambient-accent) 10%,#fff);--bg:color-mix(in srgb,var(--ambient-accent) 3%,#f5f7fa);--white:var(--ambient-surface);--ink:var(--ambient-text);--muted:var(--ambient-muted);--line:var(--ambient-border);color-scheme:light}
body{background:var(--bg);color:var(--ambient-text)}.header,.mobile-bottom{background:color-mix(in srgb,var(--ambient-surface) 97%,transparent);border-color:var(--ambient-border)}.header{backdrop-filter:none}.ambient-clock{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;font-size:11px;color:var(--ambient-muted);font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:7px}.ambient-clock svg{width:18px;height:18px;fill:none;stroke:var(--ambient-accent);stroke-width:1.6}.ambient-clock .ambient-stars{stroke-width:1.4}.primary-button,.small-primary,.mobile-bottom .mobile-compose{background:var(--ambient-accent);color:var(--ambient-button-text)}.nav-item.active{background:color-mix(in srgb,var(--ambient-accent) 12%,var(--ambient-surface));color:var(--ambient-accent)}.nav-item:hover,.profile-menu button:hover{background:var(--ambient-raised)}.nav-indicator{background:var(--ambient-accent)}.nav-count,.owner-tag{background:color-mix(in srgb,var(--ambient-accent) 12%,var(--ambient-surface));color:var(--ambient-accent);border-color:color-mix(in srgb,var(--ambient-accent) 23%,var(--ambient-surface))}.post-actions>button.selected,.hashtag,.text-button{color:var(--ambient-accent)}.post-actions>button:hover{background:var(--ambient-raised)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--ambient-accent)}.toggle:checked{background:var(--ambient-accent)}
.pt-hero{background:var(--ambient-sky)}.pt-hero:after{background:linear-gradient(90deg,var(--ambient-cover) 3%,transparent 95%)}.pt-hero .hero-background{opacity:.5;object-position:right center}.pt-hero .hero-label{color:#e1e9f5;letter-spacing:.3px}.pt-hero button{background:#f0f4f9;color:#25425b}.ambient-orb{position:absolute;top:24px;right:26px;width:74px;height:74px;display:grid;place-items:center;color:var(--ambient-orb);z-index:1;pointer-events:none}.ambient-orb:before{content:'';position:absolute;inset:-18px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--ambient-orb) 24%,transparent),transparent 68%)}.ambient-orb>svg{position:relative;width:43px;height:43px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.ambient-orb circle{fill:currentColor;fill-opacity:.2}.ambient-orb .ambient-stars{stroke-width:1.25}html[data-sky="noon"] .ambient-orb{width:84px;height:84px}html[data-sky="noon"] .ambient-orb>svg{width:52px;height:52px;stroke-width:1.9}html[data-sky="noon"] .ambient-orb:before{inset:-25px;background:radial-gradient(circle,#ffdc7660,transparent 68%)}html[data-sky="night"] .pt-hero .hero-background{opacity:.3}html[data-sky="night"] .ambient-orb>svg{width:45px;height:45px}
html[data-ambient-mode="dark"]{--ambient-surface:#192332;--ambient-raised:#222f40;--ambient-input:#142031;--ambient-text:#e4edf5;--ambient-muted:#acbdcf;--ambient-border:#344356;--ambient-button-text:#142132;--bg:#101723;--mint:#233348;--white:var(--ambient-surface);--shadow:none;color-scheme:dark}
html[data-ambient-mode="dark"] :is(.card,.profile-summary,.modal,.floating-panel,.auth-layout,.auth-content,.dm-window,.dm-sidebar,.dm-thread-head,.dm-compose,.story-manager){background:var(--ambient-surface);border-color:var(--ambient-border);color:var(--ambient-text)}
html[data-ambient-mode="dark"] :is(h1,h2,h3,.welcome-row h1,.page-header h1,.profile-summary h1,.post-author,.modal-user strong,.modal-title h2,.people-card h3 button,.form-field label,.settings-row strong,.notification-row p,.member-search input,.auth-form-wrap h2,.profile-facts strong,.info-hero h3,.break-question-heading h2,.creative-section-title h2,.creative-result h2,.saichong-welcome h1,.evo-current-card h1,.evo-round-note strong,.evo-season-strip strong,.evo-countdown,.evo-gallery-heading h2,.dm-thread-head strong,.dm-person-copy strong){color:var(--ambient-text)}
html[data-ambient-mode="dark"] :is(.post-text,.comment-bubble,.body-copy,.story-text,.message-people,.creative-story,.creative-question,.creative-mission p,.post-poll h3,.break-talk-question,.break-feedback,.break-hints li,.evo-path-copy strong,.evo-form-step,.host-tool-card>p,.member-admin-card p){color:var(--ambient-text)}
html[data-ambient-mode="dark"] :is(.nav-item,.post-meta,.post-stats,.post-actions>button,.identity small,.side-caption,.sidebar-footer,.sidebar-footer button,.sidebar-footer small,.brand small,.section-kicker,.date-label,.small-note,.form-field small,.body-copy p,.profile-summary p,.profile-username,.profile-facts,.people-card p,.community-member-note,.community-presence,.right-heading,.online-heading,.contacts>p,.contact small,.side-invite p,.side-invite strong,.settings-row small,.story-actions>small,.story-manage-row small,.story-confirm>p,.dm-person-copy small,.dm-person-meta time,.dm-list-note,.dm-connection,.dm-compose-note,.dm-message>small,.break-source small,.break-score,.break-hero-note,.creative-footnote,.creative-share-note,.creative-source small,.saichong-card-heading small,.saichong-card>p,.saichong-welcome>p,.bot-schedule-note,.bot-thread-note,.bot-thread-limit,.evo-current-card p,.evo-round-note,.evo-path-copy small,.evo-season-strip,.evo-tabs button,.evo-page-heading,.evo-catalog-footnote,.poll-footer,.poll-privacy,.poll-kicker>span,.auth-description,.auth-storage,.audit-collection-notice,.auth-form-wrap .form-field small){color:var(--ambient-muted)}
html[data-ambient-mode="dark"] :is(.search-box,.header-actions .icon-button,.close-button,.compose-prompt,.comments-section,.comment-bubble,.compose-tools,.side-invite,.story-empty-copy,.story-empty,.auth-tabs,.audit-collection-notice,.info-hero,.storage-status,.ai-result,.upload-zone,.message-people button,.dm-search,.dm-history,.dm-connection,.break-mode-switch,.break-game-icon,.break-source>span,.break-hints li,.break-options>button,.break-empty,.creative-machine .creative-props>div,.creative-notice,.creative-mission,.creative-wait,.saichong-card,.saichong-welcome,.saichong-visit,.bot-settings-intro,.bot-schedule-note,.bot-thread-list,.evo-tabs,.evo-season-strip,.evo-current-card,.evo-path-card,.evo-mystery-card,.evo-level-dots>span,.compose-math,.compose-poll,.post-math-preview,.post-poll,.poll-choice,.admission-mode-note){background:var(--ambient-raised);border-color:var(--ambient-border)}
html[data-ambient-mode="dark"] :is(input:not([type="checkbox"]),textarea,select,.form-field input,.form-field textarea,.form-field select,.comment-form input,.compose-poll input,.compose-poll select,.auth-form-wrap .form-field input,.dm-compose textarea){background:var(--ambient-input);color:var(--ambient-text);border-color:var(--ambient-border)}
html[data-ambient-mode="dark"] :is(input,textarea)::placeholder{color:#91a5b9!important}html[data-ambient-mode="dark"] :is(.post-textarea){background:transparent}html[data-ambient-mode="dark"] :is(.modal-title,.post-actions,.post-stats,.compose-tools,.story-manage-row,.settings-row,.dm-top,.dm-thread-head,.dm-compose,.dm-person,.dm-sidebar){border-color:var(--ambient-border)}
html[data-ambient-mode="dark"] :is(.nav-item.active,.post-actions>button.selected,.text-button,.hashtag,.saichong-card-heading h2,.community-gacha-link,.bot-manage-link,.story-section-tools .text-button,.comment-form button,.outline-button,.secondary-button,.poll-choice.is-selected,.poll-kicker,.dm-connection.has-error){color:var(--ambient-accent)}
html[data-ambient-mode="dark"] :is(.outline-button,.secondary-button,.side-invite button,.auth-tabs button.active,.break-mode-switch button[aria-pressed="true"],.break-categories button,.creative-genres button,.creative-result>.outline-button,.saichong-welcome>.outline-button,.evo-tabs button[aria-pressed="true"],.evo-form-step,.dm-older){background:var(--ambient-input);border-color:var(--ambient-border);color:var(--ambient-text)}
html[data-ambient-mode="dark"] :is(.break-categories button[aria-pressed="true"],.creative-genres button[aria-pressed="true"],.evo-path-card.is-active){border-color:var(--ambient-accent);color:var(--ambient-accent)}html[data-ambient-mode="dark"] .poll-fill{background:color-mix(in srgb,var(--ambient-accent) 18%,var(--ambient-raised))}html[data-ambient-mode="dark"] .poll-choice.is-selected .poll-fill{background:color-mix(in srgb,var(--ambient-accent) 27%,var(--ambient-raised))}html[data-ambient-mode="dark"] .dm-message p{background:#223044;border-color:var(--ambient-border);color:var(--ambient-text)}html[data-ambient-mode="dark"] .dm-message.is-mine p{background:#2c4360;color:#f1f6fc}html[data-ambient-mode="dark"] .dm-compose>button{background:var(--ambient-accent);color:var(--ambient-button-text)}html[data-ambient-mode="dark"] .sidebar.mobile-open{background:var(--ambient-surface)}html[data-ambient-mode="dark"] .dm-welcome{color:var(--ambient-muted)}html[data-ambient-mode="dark"] .story-delete{color:#ffaaaa}html[data-ambient-mode="dark"] .story-delete:hover{background:#472e3a}html[data-ambient-mode="dark"] .story-confirm-delete{background:#aa4f58;color:#fff}html[data-ambient-mode="dark"] .story-delete-error{color:#ffaaaa}html[data-ambient-mode="dark"] .evolution-badge:not(.ev-stage-4){background:#223247;color:color-mix(in srgb,var(--ev) 58%,#fff);border-color:color-mix(in srgb,var(--ev) 48%,#223247)}html[data-ambient-mode="dark"] .evo-path-card .evolution-badge.ev-stage-4{color:var(--ev)}html[data-ambient-mode="dark"] .evo-level-dots>span.lit{background:var(--ev);color:#fff}html[data-ambient-mode="dark"] .auth-story{background:var(--ambient-sky)}html[data-ambient-mode="dark"] .auth-story .brand,html[data-ambient-mode="dark"] .auth-headline h1{color:#eff5fb}html[data-ambient-mode="dark"] .auth-headline em{color:var(--ambient-accent)}html[data-ambient-mode="dark"] .cloud-startup{background:var(--bg);color:var(--ambient-text)}html[data-ambient-mode="dark"] #toast{background:#dce8f6;color:#15263c}html[data-ambient-mode="dark"] .toggle{background:#4b5d72}html[data-ambient-mode="dark"] .toggle:checked{background:var(--ambient-accent)}
html[data-weekday] .primary-button,html[data-weekday] .composer-actions .small-primary,html[data-weekday] .mobile-bottom .mobile-compose{background:var(--ambient-accent);color:var(--ambient-button-text)}
html[data-ambient-mode="dark"] :is(.header .brand,.contact strong,.contact-avatar,.dm-top strong,.dm-top h2,.break-teaser strong,.poll-choice,.poll-choice .poll-label,.member-admin-row strong,.member-delete-subject strong){color:var(--ambient-text)}
html[data-ambient-mode="dark"] :is(.compose-prompt,.composer-actions button,.break-teaser small,.break-teaser-arrow,.member-admin-summary,.member-admin-row small,.member-protected,.helper-text,.break-categories button,.creative-genres button){color:var(--ambient-muted)}
html[data-ambient-mode="dark"] :is(.break-teaser,.break-teaser-icon,.dm-person.is-selected,.member-admin-row,.member-admin-summary,.member-delete-warning,.member-delete-counts,.member-delete-subject){background:var(--ambient-raised);border-color:var(--ambient-border)}
html[data-ambient-mode="dark"] .side-divider{border-color:var(--ambient-border)}
html[data-ambient-mode="dark"] :is(.dm-top,.dm-person:hover){background:var(--ambient-surface)}html[data-ambient-mode="dark"] .saichong-visit{color:var(--ambient-accent)}html[data-ambient-mode="dark"] .bot-badge{background:#29463f;border-color:#47776a;color:#c3ebdd}
.pt-hero:after{background:linear-gradient(90deg,color-mix(in srgb,var(--ambient-accent) 22%,var(--ambient-cover)) 3%,transparent 95%)}
html[data-ambient-mode="dark"] .compose-sticky-footer{background:var(--ambient-surface);border-color:var(--ambient-border)}html[data-ambient-mode="dark"] :is(.post-extra-tools button,.compose-tools button){background:var(--ambient-input);color:var(--ambient-text);border-color:var(--ambient-border)}
@media(max-width:1150px){.ambient-clock{margin-right:0;padding:5px;font-size:10px}}@media(max-width:900px){.ambient-clock{display:none}}@media(max-width:600px){.ambient-orb{right:17px;top:15px;width:53px;height:53px}.ambient-orb>svg{width:32px;height:32px}html[data-sky="noon"] .ambient-orb{width:58px;height:58px}html[data-sky="noon"] .ambient-orb>svg{width:38px;height:38px}html[data-sky="night"] .ambient-orb>svg{width:33px;height:33px}.pt-hero .hero-background{opacity:.3}.ambient-orb:before{inset:-10px}}
@media(prefers-contrast:more){html[data-ambient-mode="dark"]{--ambient-text:#fff;--ambient-muted:#cad7e5;--ambient-border:#62748b}}
@media(prefers-reduced-motion:reduce){.ambient-orb,.ambient-orb:before{animation:none;transition:none}}
