/* 湖光 / 月白 · v61. System tokens are scoped away from game worlds. */
:root{
 --ui-text:#e7eff6;--ui-muted:#a8bacb;--ui-faint:#8da5ba;--ui-surface:#142336;
 --ui-soft:#1b2d42;--ui-control:#22364d;--ui-hover:#2b435b;--ui-border:#b7d1e322;
 --ui-sheet:#17283bec;--ui-title:#1d3045;--ui-accent:#a4cfe0;--ui-ink:#122c41;
 --ui-shadow:0 28px 70px #03101d55,0 6px 18px #03101d33;
 --ui-highlight:#ffffff12;--ui-field:#101f31;--ui-selected:#a2c9d822;--ui-radius:18px;
 --text:var(--ui-text);--text-dim:#c6d7e4;--muted:var(--ui-muted);--faint:var(--ui-faint);
 --cyan:#9acada;--cyan-soft:#bedfe9;--line:#9acada;--glow:0 0 0 1px #aacfe833;
 --glow-strong:0 8px 24px #75b3d329;--dur-fast:150ms;--dur-base:210ms;--dur-slow:260ms;
 --ease-out:cubic-bezier(.22,1,.36,1);--ease-in-out:cubic-bezier(.4,0,.2,1);
}
html[data-mode="day"]{
 color-scheme:light;--ui-text:#243e53;--ui-muted:#566f83;--ui-faint:#627b8e;
 --ui-surface:#f7f9fb;--ui-soft:#edf2f6;--ui-control:#f3f6f9;--ui-hover:#e4edf4;
 --ui-border:#4c6b861f;--ui-sheet:#f1f6faed;--ui-title:#f4f7fa;--ui-accent:#3b728f;
 --ui-ink:#ffffff;--ui-field:#ffffff;--ui-selected:#6c9dbb1c;--ui-highlight:#ffffffb3;
 --ui-shadow:0 28px 72px #1d3e5a30,0 6px 20px #1d3e5a1a;--text-dim:#466277;
 --cyan:#487e9a;--cyan-soft:#426e8a;--line:#719cb4;--glow:0 0 0 1px #5c89a329;
}
html body{color:var(--ui-text)}
html button,html input,html textarea{font-family:inherit}
html :focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
html .win-panel{background:var(--ui-sheet);border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow),inset 0 1px 0 var(--ui-highlight);backdrop-filter:blur(16px)}
html .app-window{background:var(--ui-surface);border-color:var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);animation:none;transition:border-color 150ms ease;transform-origin:0 0;isolation:isolate;backdrop-filter:none}
html .app-window.active-window{border-color:color-mix(in srgb,var(--ui-accent) 38%,transparent);box-shadow:var(--ui-shadow),0 0 0 1px #ffffff10}
html .app-window::after,html .app-window .win-title::after{display:none}
html .app-window .win-title,html .app-window.active-window .win-title{height:46px;padding:0 10px 0 16px;background:var(--ui-title);border-bottom:1px solid var(--ui-border);box-shadow:inset 0 1px 0 var(--ui-highlight);color:var(--ui-text);font-size:12px;font-weight:600;border-radius:0;user-select:none;touch-action:none}
html .title-group{gap:9px;min-width:0;letter-spacing:.02em}
html .title-group .pixel-icon{width:21px;height:21px;filter:none}
html .title-controls{gap:4px}
html .title-controls .icon-button{width:31px;height:29px;min-height:29px;padding:6px;border:1px solid transparent;background:transparent;border-radius:7px;box-shadow:none;color:var(--ui-muted)}
html .title-controls .icon-button>.pixel-icon{width:16px;height:16px;filter:none}
html .title-controls .icon-button:hover{background:var(--ui-hover);border-color:var(--ui-border);color:var(--ui-text);box-shadow:none}
html .title-controls [data-window-close]:hover{background:#cc647c22;color:#bd435d;border-color:#bd435d26}
html .window-body{background:var(--ui-surface);color:var(--ui-text);padding:20px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--ui-muted) 35%,transparent) transparent}
html .window-status{min-height:25px;padding:4px 14px;font-size:10px;letter-spacing:.02em;color:var(--ui-muted);background:var(--ui-soft);border-color:var(--ui-border)}
html .app-window.maximized{left:8px;top:8px;width:calc(100% - 16px);height:calc(100% - 16px);border-radius:14px}
html .app-window.is-dragging{user-select:none;transition:none}
html .app-window.is-dragging iframe{pointer-events:none}
html .app-window.is-minimizing,html .app-window.is-closing{pointer-events:none}
html .win-button{background:var(--ui-control);color:var(--ui-text);border:1px solid var(--ui-border);box-shadow:inset 0 1px 0 var(--ui-highlight);text-shadow:none;border-radius:8px;min-height:35px;font-size:12px;padding:7px 13px;transition:background-color 150ms ease,border-color 150ms ease,transform 100ms ease}
html .win-button:hover:not(:disabled){background:var(--ui-hover);border-color:color-mix(in srgb,var(--ui-accent) 50%,transparent);box-shadow:inset 0 1px 0 var(--ui-highlight)}
html .win-button:active:not(:disabled){transform:scale(.98)}
html .win-button.primary{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-ink);box-shadow:0 3px 8px #152b3c0c;font-weight:600}
html .win-button.primary:hover:not(:disabled){background:color-mix(in srgb,var(--ui-accent) 88%,white);box-shadow:none}
/* Static hover feedback for frequently used controls. No pointer-driven tilt or glow repaint. */
html .desktop-icon{transition:background-color 140ms ease,border-color 140ms ease;transform:none;perspective:none}
html .desktop-icon::before,html .desktop-icon::after{display:none}
html .desktop-icon:hover,html .desktop-icon:focus-visible{transform:none;translate:none;rotate:none;scale:1;border-color:#f1f8ff69;background:#e8f4ff1c;box-shadow:none}
html .desktop-icon .pixel-icon,html .desktop-icon:hover .pixel-icon{translate:none;transform:none;rotate:none;transition:transform 150ms ease;filter:drop-shadow(0 5px 6px #1730442c)}
html .desktop-icons>.desktop-icon>span{font-size:11px;line-height:1.35;color:#f4f8ff;background:#16364b50;border-radius:5px;padding:3px 5px;width:auto;max-width:100%;text-shadow:0 1px 3px #092138}
html .desktop-icons>.desktop-icon .pixel-icon{width:45px;height:45px}
html .wallpaper-copy{left:auto;right:58px;top:54px;width:auto;aspect-ratio:auto;transform:none;padding:0;align-items:flex-end;text-align:right;z-index:3;pointer-events:none}
html .wallpaper-copy .wallpaper-kicker{font-size:9px;letter-spacing:.2em;color:var(--garden-copy);text-shadow:0 1px 8px #f2f8ff33}
html .wallpaper-copy .wallpaper-time{font-size:64px;letter-spacing:-.05em;font-weight:300;line-height:1.05;margin:12px 0 4px;transition:none}
html .wallpaper-copy .desktop-date{font-size:12px;letter-spacing:.06em;color:var(--garden-copy);margin:0;max-width:none;line-height:1.7;text-shadow:var(--garden-clock-shadow)}
html .wallpaper-copy>p{max-width:none;margin-top:15px;font-size:11px;line-height:1.8;font-weight:400;letter-spacing:.08em}
html .wallpaper-copy>p br{display:none}
/* A single quiet dock; running app icons carry stable, keyboard accessible labels. */
html #desktop .taskbar{left:16px;right:16px;bottom:12px;height:58px;min-height:58px;padding:8px 10px;gap:10px;background:var(--ui-sheet);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:17px;box-shadow:0 12px 30px #17344b26,inset 0 1px 0 var(--ui-highlight);backdrop-filter:blur(16px)}
html #desktop .taskbar::before{display:none}
html .window-layer,html .desktop-icons{bottom:82px}
html .wallpaper{bottom:0}
html #desktop .taskbar .win-button{margin:0;min-height:40px;height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;background:transparent;color:var(--ui-text);box-shadow:none;border-radius:10px;font-size:12px;padding:6px 12px;transform:none}
html #desktop .taskbar .win-button:hover{background:var(--ui-selected);box-shadow:none}
html #desktop .taskbar .start-button{background:var(--ui-control);border-color:var(--ui-border);padding-inline:13px;min-width:76px}
html #desktop .taskbar .start-button.is-active{background:var(--ui-selected);border-color:var(--ui-border)}
html #desktop .taskbar .pixel-icon{width:24px;height:24px;filter:none}
html #desktop .taskbar .task-button{position:relative;max-width:165px;min-width:48px}
html #desktop .taskbar .task-button.is-active{background:var(--ui-selected);box-shadow:inset 0 1px 0 var(--ui-highlight)}
html .task-button::after{content:"";position:absolute;width:4px;height:3px;left:calc(50% - 2px);bottom:2px;background:var(--ui-muted);border-radius:5px;transition:width 150ms ease,background-color 150ms ease}
html .task-button.is-active::after{width:16px;left:calc(50% - 8px);background:var(--ui-accent)}
html .task-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html #desktop .taskbar .tray{height:40px;gap:4px;min-width:0;padding:0 3px;background:transparent;border:0;box-shadow:none}
html #desktop .taskbar .clock-button{background:transparent;color:var(--ui-text);border:1px solid transparent;box-shadow:none;border-radius:8px;padding:5px 8px;min-width:63px;min-height:38px}
html #desktop .taskbar .clock-button time{color:var(--ui-text);text-shadow:none;font-size:12px;letter-spacing:.02em;font-variant-numeric:tabular-nums}
html .taskbar-divider{width:1px;height:24px;background:var(--ui-border)}
html .tray-notice{background:transparent;border:0;min-width:34px;min-height:36px}
html .tray-notice.unread .tray-cat{animation:none}
html .tray-notice.unread::after{content:"";position:absolute;width:5px;height:5px;right:4px;top:4px;background:#d39474;border:1px solid var(--ui-sheet);border-radius:50%}
/* Start: launchpad, library and scenery. No nested hover menu. */
html #start-menu.start-menu{left:16px;bottom:81px;width:448px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 108px);padding:0;display:flex;flex-direction:column;background:var(--ui-sheet);border-radius:20px;color:var(--ui-text);overflow:hidden;animation:none;transform-origin:0 100%;box-shadow:var(--ui-shadow);border-color:var(--ui-border)}
.launch-head{display:flex;align-items:center;gap:11px;padding:22px 22px 18px;flex:none}
.launch-avatar{width:42px;height:42px;border-radius:14px;background:var(--ui-selected);overflow:hidden;flex:none}.launch-avatar img{width:100%;height:100%;object-fit:cover}
.launch-head strong{font-size:14px;font-weight:600;letter-spacing:.02em}.launch-head small{display:block;font-size:11px;margin-top:5px;color:var(--ui-muted)}
.launch-settings{margin-left:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;border:0;background:var(--ui-control)}.launch-settings .pixel-icon{width:23px;height:23px}
.launch-search{margin:0 22px 18px;min-height:43px;padding:0 12px;display:flex;align-items:center;gap:10px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-field)}.launch-search .pixel-icon{width:20px;height:20px;filter:none}.launch-search input{min-width:0;width:100%;border:0;outline:none;background:none;color:var(--ui-text);font-size:12px;height:40px}.launch-search input::placeholder{color:var(--ui-muted)}.launch-search:focus-within{outline:2px solid var(--ui-accent);outline-offset:2px}
.launch-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;font-weight:600;margin:0 24px 11px}.launch-section-title>button{background:transparent;border:0;display:flex;align-items:center;gap:5px;font-size:10px;font-weight:400;color:var(--ui-muted);padding:5px}.launch-section-title .pixel-icon{width:12px;height:12px}.launch-section-title>small{font-weight:400;font-size:10px;color:var(--ui-muted)}
.launch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0 18px;max-height:235px;overflow-y:auto;scrollbar-width:thin;flex:0 1 auto;min-height:80px}
.launch-app{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:88px;padding:9px 5px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ui-text);transition:background-color 140ms ease}.launch-app:hover{background:var(--ui-selected);border-color:var(--ui-border)}.launch-app .pixel-icon{width:40px;height:40px;filter:drop-shadow(0 3px 5px #152b3c15)}.launch-app>span{font-size:10px;max-width:100%;line-height:1.5;text-align:center}.launch-empty,.launch-no-result{grid-column:1/-1;font-size:12px;padding:18px 10px;text-align:center;color:var(--ui-muted)}
.launch-scenery{padding:20px 22px 18px;flex:none}.launch-scenery .launch-section-title{margin:0 1px 11px}.launch-scenery .start-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html .launch-scenery .start-mode-option{min-width:0;padding:0;overflow:hidden;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-surface);color:var(--ui-text);box-shadow:none;transform:none;transition:border-color 150ms ease}.launch-scenery .mode-preview{display:block;height:60px;background-position:center;background-size:cover}.launch-scenery .mode-caption{padding:9px 11px;font-size:11px;min-height:32px;display:flex;align-items:center;justify-content:space-between;background:var(--ui-surface);color:var(--ui-text)}
html .launch-scenery .start-mode-option[aria-pressed="true"]{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}.launch-scenery .mode-check{width:6px;height:6px;border-radius:50%;background:var(--ui-border)}.launch-scenery [aria-pressed="true"] .mode-check{background:var(--ui-accent)}
.launch-foot{display:flex;align-items:center;gap:7px;padding:12px 20px;border-top:1px solid var(--ui-border);background:var(--ui-control);flex:none}.launch-foot>span{flex:1}.launch-foot>button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;min-height:34px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:var(--ui-text)}.launch-foot>button:hover{background:var(--ui-selected)}.launch-foot .pixel-icon{width:19px;height:19px;filter:none}
/* Appearance is a real local preference, not a decorative mock panel. */
.preferences-window{width:min(800px,calc(100vw - 32px));height:min(750px,calc(100dvh - 104px));left:50%;top:47%;transform:translate(-50%,-50%)}
html .preferences-window .window-body{padding:0}.preferences{max-width:820px;margin:auto}.preferences-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:36px 34px 29px;background:linear-gradient(120deg,var(--ui-soft),var(--ui-surface));border-bottom:1px solid var(--ui-border)}.system-eyebrow{font-size:9px;letter-spacing:.16em;color:var(--ui-muted)}.preferences-hero h1{font-size:25px;font-weight:600;line-height:1.55;letter-spacing:.02em;margin:10px 0 7px}.preferences-hero p{font-size:12px;line-height:1.7;color:var(--ui-muted);margin:0}.preferences-hero>.pixel-icon{width:64px;height:64px;filter:none}
.preference-section{padding:27px 34px;border-bottom:1px solid var(--ui-border)}.preference-section-heading{display:flex;gap:13px;align-items:baseline;margin-bottom:19px}.preference-section-heading>span{font-size:10px;font-variant-numeric:tabular-nums;color:var(--ui-muted)}.preference-section h2{font-size:15px;font-weight:600;margin:0 0 5px}.preference-section p{font-size:11px;line-height:1.7;color:var(--ui-muted);margin:0}
.preference-scenes{display:grid;grid-template-columns:1fr 1fr;gap:15px}.preference-scenes>button{padding:0;text-align:left;overflow:hidden;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-field);color:var(--ui-text)}.preference-scenes>button>img{width:100%;height:135px;object-fit:cover;display:block}.preference-scenes>button>span{position:relative;display:block;padding:15px}.preference-scenes b{font-size:13px;font-weight:600}.preference-scenes small{font-size:10px;display:block;margin-top:5px;color:var(--ui-muted)}.preference-scenes .pixel-icon{position:absolute;right:13px;top:20px;width:20px;height:20px;visibility:hidden}.preference-scenes [aria-pressed="true"]{outline:2px solid var(--ui-accent);outline-offset:2px}.preference-scenes [aria-pressed="true"] .pixel-icon{visibility:visible}
.preference-motion{display:grid;gap:10px}.preference-motion>button{display:flex;align-items:center;gap:15px;width:100%;border:1px solid var(--ui-border);border-radius:11px;padding:15px;background:var(--ui-field);color:var(--ui-text);text-align:left}.preference-motion b{display:block;font-size:12px;font-weight:600}.preference-motion small{display:block;font-size:10px;line-height:1.7;margin-top:4px;color:var(--ui-muted)}.preference-radio{margin-left:auto;width:15px;height:15px;border:1px solid var(--ui-muted);border-radius:50%;flex:none}.preference-motion [aria-pressed="true"] .preference-radio{border:4px solid var(--ui-accent);background:var(--ui-field)}.preference-motion [aria-pressed="true"]{border-color:var(--ui-accent);background:var(--ui-selected)}
.motion-glyph{width:38px;height:31px;display:flex;align-items:center;gap:4px;flex:none}.motion-glyph i{width:8px;height:16px;border-radius:6px;background:var(--ui-accent);opacity:.45;transform:translateY(-5px)}.motion-glyph i:nth-child(2){height:26px;opacity:1;transform:none}.motion-glyph i:nth-child(3){transform:translateY(5px)}.motion-glyph.is-still i{height:16px;transform:none;opacity:.7}.preference-section .preferences-note{margin-top:14px;font-size:10px}.preferences-about{display:flex;align-items:center;gap:13px;padding:25px 34px}.preferences-about img{width:42px;height:42px;border-radius:13px;object-fit:cover}.preferences-about strong{font-size:13px;font-weight:600}.preferences-about p{font-size:11px;color:var(--ui-muted);margin:5px 0 0}.preferences-about>span{margin-left:auto;font-size:10px;color:var(--ui-muted);white-space:nowrap}
/* Calendar, contextual menus, dialogs and backup sheets. */
html .context-menu{padding:6px;min-width:204px;animation:none;background:var(--ui-sheet);border-color:var(--ui-border);border-radius:13px;color:var(--ui-text)}
html .context-menu button,html[data-mode="day"] .context-menu button{min-height:34px;padding:8px 12px;border-radius:7px;font-size:12px;color:var(--ui-text);background:transparent;border:0}.context-menu button:hover,html[data-mode="day"] .context-menu button:hover{background:var(--ui-selected);color:var(--ui-text);box-shadow:none}.context-divider{margin:5px 8px;background:var(--ui-border)}
html .calendar-panel{right:17px;bottom:81px;width:294px;padding:18px;background:var(--ui-sheet);border-radius:17px;color:var(--ui-text);animation:none;transform-origin:100% 100%}html .calendar-panel::before{display:none}html .calendar-head strong{color:var(--ui-text);font-size:14px;font-family:inherit}html .calendar-selected{color:var(--ui-muted);border-color:var(--ui-border);font-size:11px;padding-bottom:13px}html .calendar-week span{color:var(--ui-muted);padding-bottom:7px}html .calendar-day{color:var(--ui-text);font-size:12px;min-height:31px}html .calendar-day.today{border-color:var(--ui-accent);color:var(--ui-text);box-shadow:none}html .calendar-day.selected{background:var(--ui-accent);color:var(--ui-ink);box-shadow:none}html .calendar-day:hover{background:var(--ui-selected);color:var(--ui-text);border-color:var(--ui-border)}html .calendar-day.selected:hover{background:var(--ui-accent);color:var(--ui-ink)}html .calendar-today-button{margin-top:15px}
html .toast{bottom:84px;padding:12px 19px;max-width:calc(100vw - 36px);font-size:12px;line-height:1.65;background:var(--ui-sheet);color:var(--ui-text);border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
html .dialog-window .window-body,html .release-notes-window .window-body{line-height:1.9}.release-notes-window .release-notes-header{background:var(--ui-soft);border-color:var(--ui-border)}html .release-notes-header span,html .release-notes-header time{color:var(--ui-muted)}html .release-notes-header h2{color:var(--ui-text);font-size:25px}html .release-notes-list{color:var(--ui-text)}html .release-notes-list li{border-color:var(--ui-border)}html .release-notes-list li::before{background:var(--ui-accent);box-shadow:none}
/* Keep release notes on the matching theme surface instead of the legacy dark plate. */
html .release-notes-window .window-body{background:var(--ui-surface);color:var(--ui-text);padding:18px}
html .release-notes-window .release-notes-header{background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-border);padding:14px 16px}
html .release-notes-window .release-notes-list{color:var(--ui-text);font-size:14px;line-height:1.85;padding-left:22px;margin-top:16px}
html .release-notes-window .release-notes-list li+li{margin-top:10px}
html .release-notes-window .release-notes-list li::marker{color:var(--ui-accent)}
html .operation-layer{background:#142a4166;backdrop-filter:blur(5px)}html .install-card{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border);box-shadow:var(--ui-shadow)}html .install-body{color:var(--ui-text)}html .install-meter{background:var(--ui-soft);border-color:var(--ui-border);box-shadow:none}html .install-meter i{background:var(--ui-accent);box-shadow:none}html .operation-kicker,html .operation-heading,html .install-percent{color:var(--ui-text)}html .install-footer{background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-muted)}
/* Existing pages use the same surfaces, without changing their data or behavior. */
html .folder-hint{margin:2px 0 20px;color:var(--ui-muted)}html .folder-grid{gap:14px}html .folder-grid .desktop-icon{color:var(--ui-text);text-shadow:none;min-height:85px;background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:12px}html .folder-grid .desktop-icon .pixel-icon{width:38px;height:38px}html .folder-grid .desktop-icon:hover{background:var(--ui-selected);border-color:var(--ui-accent)}
/* Chat stays a conversation page: generous line height, calm bubbles and a clear composer. */
html .hg-chat{--hc-text:var(--ui-text);--hc-muted:var(--ui-muted);--hc-surface:var(--ui-soft);background:var(--ui-surface)}html .hc-head{background:var(--ui-soft);border-color:var(--ui-border);padding:21px 27px}html .hc-head h2{color:var(--ui-text);font-size:17px;letter-spacing:.08em}html .hc-head>img{border-color:var(--ui-border)}html .hc-log{scrollbar-color:color-mix(in srgb,var(--ui-muted) 30%,transparent) transparent;padding-top:30px}html .hc-bubble{background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-text);box-shadow:none;font-size:14px;line-height:1.9}html .hc-message[data-role="user"] .hc-bubble,html .hc-message.is-user .hc-bubble{background:var(--ui-selected);color:var(--ui-text);border-color:var(--ui-border)}html .hc-message-meta{color:var(--ui-muted)}html .hc-avatar{background:var(--ui-selected);color:var(--ui-muted)}html .hc-compose{background:var(--ui-surface);border-color:var(--ui-border);padding:17px 25px 18px}html .hc-input-wrap{background:var(--ui-field);border-color:var(--ui-border);border-radius:14px;box-shadow:0 4px 16px #1b3b5510}html .hc-input-wrap:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-selected)}html .hc-input-wrap textarea{background:transparent;color:var(--ui-text);font-size:13px}html .hc-input-wrap textarea::placeholder{color:var(--ui-muted)}html .hc-send{background:var(--ui-accent);color:var(--ui-ink);box-shadow:none;border-color:transparent}html .hc-compose-foot{color:var(--ui-muted);font-size:10px}html .hc-bubble pre{background:var(--ui-field);border-color:var(--ui-border)}html .hc-empty{color:var(--ui-muted)}html .hc-empty h3{color:var(--ui-text)}html .hc-empty button{background:var(--ui-field);border-color:var(--ui-border);color:var(--ui-text)}
/* The existing store retains its own feature art; its chrome follows day / night. */
html .store-shell{background:var(--ui-surface);color:var(--ui-text)}html .store-navigation{background:var(--ui-soft);border-color:var(--ui-border)}html .store-brand strong{color:var(--ui-text)}html .store-brand small,html .store-nav-label,html .store-nav-note small{color:var(--ui-muted)}html .store-nav-note{color:var(--ui-muted)}html .store-navigation .store-tab{color:var(--ui-muted)}html .store-navigation .store-tab.active{background:var(--ui-selected);color:var(--ui-text);border-color:var(--ui-border)}html .store-navigation .store-tab:hover{background:var(--ui-selected);color:var(--ui-text)}html .store-topbar{border-color:var(--ui-border)}html .store-topbar h1{color:var(--ui-text)}html .store-eyebrow{color:var(--ui-accent)}html .store-search{background:var(--ui-field);border-color:var(--ui-border)}html .store-search input{color:var(--ui-text)}html .store-search input::placeholder{color:var(--ui-muted)}html .store-intro{color:var(--ui-muted)}html .store-section-head small,html .store-section-head>span{color:var(--ui-muted)}html .store-app-tile{background:var(--ui-field);border-color:var(--ui-border)}html .store-title-link{color:var(--ui-text)}html .store-tile-body small,html .store-app-tile>p{color:var(--ui-muted)}html .store-install-state{color:var(--ui-accent)}html .store-tile-bottom .store-text-button,html .store-back{color:var(--ui-accent)}html .store-footer{border-color:var(--ui-border);color:var(--ui-muted)}html .store-product-tags>span{background:var(--ui-selected);color:var(--ui-text)}html .store-description p{color:var(--ui-muted)}html .store-product-info{border-color:var(--ui-border)}html .store-product-info span{color:var(--ui-muted)}html .store-product-info b{color:var(--ui-text)}html .store-product-heading small{color:var(--ui-muted)}html .store-feature h2{color:#f0f7fa}html .store-feature .store-eyebrow{color:#badbd9}html .store-window .win-button.primary{background:var(--ui-accent);color:var(--ui-ink);border-color:var(--ui-accent)}html .store-window .win-button.primary:hover{background:color-mix(in srgb,var(--ui-accent) 88%,white)}html .store-feature-actions .store-text-button{color:#e2f4f4}
/* Preserve game-local contrast while updating the containing window. */
html .panda-game{--text:#e8f3fb;--text-dim:#c4d7e3;--muted:#9db5c7;--faint:#8ea6bf;--bg:#071424;--cyan:#94cddd;--cyan-soft:#b5dfed;--ui-text:#e8f3fb;--ui-muted:#9db5c7;--ui-control:#17324b;--ui-hover:#21445e;--ui-border:#9cc9df35;--ui-field:#0c2035;--ui-accent:#9acada;--ui-ink:#142c41;--ui-highlight:#ffffff12;--ui-selected:#8dbfd122}
html .game-window>.window-body{background:#0d1b2a;padding:12px}html .game-window .window-status{background:var(--ui-soft)}
/* Sign-in and first arrival use the existing landscape plate. Credentials are untouched. */
html .login-screen{background:linear-gradient(90deg,#152a493b,#0a1a3a73),url('./assets/garden-night-v58.webp') center/cover no-repeat}
html .login-panel{background:#f2f6faed;color:#28435b;width:min(450px,100%);border-color:#f8fcff7a;border-radius:22px;box-shadow:0 25px 75px #07162e66;backdrop-filter:blur(14px)}html .login-panel>.win-title{height:45px;padding:0 19px;background:#f6f9fc88;border-color:#456b8c1c;color:#466278;box-shadow:none;font-size:11px;border-radius:22px 22px 0 0}html .login-panel .title-dots{display:none}html .login-body{padding:30px 28px 23px}html .login-avatar{border-radius:19px;border-color:#527b9c22;box-shadow:none;background:#e1ebf2;overflow:hidden;width:64px;height:70px}html .login-copy p{color:#28435b;font-size:18px}html .login-copy small{color:#61778b;font-size:10px}html .login-body label{color:#35536b;font-size:12px}html .pin-row input{height:44px;color:#28435b;background:#fff;border-color:#5f7f9829;box-shadow:none;border-radius:9px;font-size:19px}html .login-body .win-button.primary{background:#47728e;color:#fff;border-color:#47728e;min-height:44px;font-size:12px}html #pin-help{color:#61778b;font-size:10px;line-height:1.8}html .login-foot{border-color:#456b8c1c;color:#61778b;padding:12px 20px;font-size:9px;letter-spacing:.08em}
html .boot-screen{color:#e9f3fb}html .boot-screen .boot-wordmark h1{color:#e9f3fb}html .boot-screen .boot-skip{color:#e5f1fb}
/* Motion controls: no filtered full-window transitions or permanent promotion. */
html .garden-scene.is-paused .garden-motes i{animation-play-state:paused}
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-motion="reduced"] .garden-motes{display:none}
@media(prefers-reduced-motion:reduce){html *,html *::before,html *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){html .task-label{display:none}html #desktop .taskbar .task-button{min-width:42px;padding:6px 9px}html .wallpaper-copy{right:32px;top:42px}html .wallpaper-copy .wallpaper-time{font-size:58px}}
@media(max-width:650px){html #desktop .taskbar{left:9px;right:9px;bottom:9px;border-radius:15px;padding:7px;gap:6px;height:56px;min-height:56px}html #desktop .taskbar .start-button{min-width:53px;font-size:0;padding:6px 12px}html #desktop .taskbar .start-button .pixel-icon{width:24px;height:24px}html .taskbar-divider{display:none}html .task-buttons{gap:3px;overflow:auto;scrollbar-width:none}html #desktop .taskbar .task-button{min-width:39px;padding:5px 7px}html #desktop .taskbar .tray{padding:0}html .tray-notice{display:none}html #desktop .taskbar .clock-button{min-width:49px;padding:4px;font-size:10px}html .window-layer,html .desktop-icons{bottom:76px}html .wallpaper-copy{right:25px;top:34px}html .wallpaper-copy .wallpaper-time{font-size:50px}html .wallpaper-copy .wallpaper-kicker{font-size:8px;letter-spacing:.1em}html .wallpaper-copy .desktop-date{font-size:10px}html .wallpaper-copy>p{display:none}html .app-window{max-width:calc(100vw - 16px);max-height:calc(100% - 12px)}html .app-window .win-title{height:43px;padding-left:12px;font-size:11px}html .window-body{padding:14px}html .window-status{font-size:9px;min-height:23px}html .app-window.maximized{left:5px;top:5px;width:calc(100% - 10px);height:calc(100% - 10px)}html .preferences-window{width:calc(100vw - 16px);height:calc(100dvh - 99px);left:8px;top:8px;transform:none}html #start-menu.start-menu{left:9px;bottom:75px;max-width:calc(100vw - 18px);max-height:calc(100dvh - 91px);border-radius:17px}.launch-head{padding:18px 18px 15px}.launch-head strong{font-size:12px}.launch-head small{font-size:10px}.launch-search{margin:0 18px 15px}.launch-section-title{margin-inline:20px}.launch-grid{padding-inline:12px;max-height:185px}.launch-app{min-height:79px;gap:6px}.launch-app .pixel-icon{width:35px;height:35px}.launch-app>span{font-size:9px}.launch-scenery{padding:17px 18px 14px}.launch-scenery .mode-preview{height:50px}.launch-foot{padding:10px 14px}.preferences-hero{padding:27px 22px 22px}.preferences-hero h1{font-size:21px}.preferences-hero>.pixel-icon{width:42px;height:42px}.preference-section{padding:24px 22px}.preference-scenes{gap:10px}.preference-scenes>button>img{height:98px}.preference-scenes>button>span{padding:12px}.preference-scenes b{font-size:11px}.preference-scenes small{font-size:9px;max-width:85%}.preferences-about{padding:23px 22px;flex-wrap:wrap}.preferences-about>span{font-size:9px}html .calendar-panel{bottom:75px;right:9px}html .toast{bottom:76px}html .gallery-grid{padding:17px;gap:12px}html .gallery-intro{padding:20px}html .gallery-hero{padding:23px;min-height:180px}html .gallery-theme{font-size:47px}html .hc-head{padding:17px 18px}html .hc-log{padding:22px 17px 14px}html .hc-compose{padding:14px 17px}html .hc-bubble{font-size:13px}}
@media(max-height:620px){html #start-menu.start-menu{max-height:calc(100dvh - 90px)}.launch-head{padding:14px 18px}.launch-scenery{padding-top:13px;padding-bottom:12px}.launch-scenery .mode-preview{height:36px}.launch-grid{max-height:125px}.launch-search{margin-bottom:11px}.launch-foot{padding-block:8px}}
@supports not (backdrop-filter:blur(1px)){html .win-panel,html #desktop .taskbar,html #start-menu.start-menu{background:var(--ui-surface)}}

html .chat-window{width:min(820px,calc(100vw - 24px));height:min(780px,calc(100dvh - 100px));left:50%;top:50%;transform:translate(-50%,-50%)}
html .hc-message--user .hc-bubble{background:var(--ui-selected);color:var(--ui-text);border-color:var(--ui-border);box-shadow:none}
html #start-menu.start-menu{filter:none}
.app-launch-error{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:32px 24px;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;width:min(100%,520px);margin:20px auto}.app-launch-error>.pixel-icon{width:42px;height:42px}.app-launch-error h2{font-size:18px;margin:0;font-weight:600}.app-launch-error p{max-width:380px;font-size:13px;line-height:1.9;color:var(--ui-muted);margin:0 0 5px}
/* Clear glass: wallpaper remains visible through the dock in both modes. */
html #desktop .taskbar{background:linear-gradient(120deg,#f2faff42,#e7f5ff1f);border-color:#f5fbff80;box-shadow:0 10px 30px #122d4824,inset 0 1px 0 #ffffffb0,inset 0 -1px 0 #c8e5f548;backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%)}
html[data-mode="night"] #desktop .taskbar{background:linear-gradient(120deg,#152d4540,#c8e6ff12);border-color:#e4f4ff45;box-shadow:0 10px 30px #020d2038,inset 0 1px 0 #ffffff40,inset 0 -1px 0 #adcde524}
html #desktop .taskbar .start-button{background:#eff8ff35;border-color:#f6fbff50;box-shadow:inset 0 1px 0 #ffffff70}
html[data-mode="night"] #desktop .taskbar .start-button{background:#e3f3ff17;border-color:#e6f5ff26;box-shadow:inset 0 1px 0 #ffffff25}
html #desktop .taskbar .task-button.is-active{background:#eaf8ff42;border-color:#f5fbff4d}
html[data-mode="night"] #desktop .taskbar .task-button.is-active{background:#e4f5ff26;border-color:#e8f6ff25}
html[data-mode="day"] #desktop .taskbar{--ui-text:#17354a}
@supports not (backdrop-filter:blur(1px)){html #desktop .taskbar{background:#e8f3fad9}html[data-mode="night"] #desktop .taskbar{background:#142b42df}}
@media(min-width:901px){html .wallpaper-copy{left:250px;right:auto;top:61px;align-items:flex-start;text-align:left}}
@media(max-width:900px){html .wallpaper-copy{padding:16px 20px;background:#eef6fcbd;border:1px solid #ffffff80;border-radius:18px;backdrop-filter:blur(12px)}html[data-mode="night"] .wallpaper-copy{background:#142841a8;border-color:#d2e6ff24}html .wallpaper-copy .wallpaper-time{margin-top:8px;font-size:48px}html .wallpaper-copy .wallpaper-kicker{font-size:8px}}
/* Short landscape screens keep every launcher action reachable. */
@media(max-height:620px){html #start-menu.start-menu{display:block;overflow-y:auto;scrollbar-width:thin}.launch-foot{position:sticky;bottom:0;z-index:2;background:var(--ui-soft);box-shadow:0 -5px 16px #152b3c09}.launch-grid{min-height:80px}}
/* Temporary promotion follows the screen lifecycle, never the resting desktop. */
html[data-screen-transition="entering-desktop"] #desktop,
html[data-screen-transition="entering-desktop"] #boot,
html[data-screen-transition="entering-desktop"] #arrival-backdrop { will-change:opacity,transform; }
/* Match the landscape crossfade without delaying ordinary hover or press feedback. */
html[data-theme-changing="true"] :is(.app-window,.window-body,.win-title,.window-status,.calendar-panel,.context-menu,.launch-head,.launch-foot,.preference-section,.preferences-hero,.preferences-about,.store-shell,.store-navigation,.store-topbar,.hg-chat,.hc-sidebar,.hc-head,.hc-bubble,.hc-input-wrap,.hc-compose,.hc-avatar),
html[data-theme-changing="true"] #desktop :is(.taskbar,.tray,.clock-button,.start-button,.task-button),
html[data-theme-changing="true"] .wallpaper-copy {
  transition-property:background-color,color,border-color,box-shadow;
  transition-duration:760ms;
  transition-timing-function:cubic-bezier(.4,0,.2,1);
}
html[data-theme-changing="true"] .garden-scene :is(.garden-night,.garden-shade) { will-change:opacity; }
