/* ============ Feather 3 — new features (wallpapers, cursor, light mode, apps) ============ */

/* ---- menus: submenus no longer vanish when you move onto them ---- */
.menu .submenu { margin-left: 0; left: calc(100% - 4px); top: -6px; }
.menu .submenu::after { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 16px; right: auto; inset-inline-end: auto; background: none; pointer-events: auto; border-radius: 0; opacity: 0; } /* invisible bridge so the submenu stays open; ::before is the glass rim */
.menu button.has-sub:hover > .submenu, .menu .submenu:hover { display: block; }
.menu { max-height: calc(100vh - 20px); }

/* ---- layered parallax wallpapers ---- */
#wallpaper { overflow: hidden; }
.pw-stack { position: absolute; inset: 0; overflow: hidden; transition: opacity .9s ease; }
.pw-stack.pw-in { opacity: 0; }
.pw-layer { position: absolute; inset: -3.2% -2.4%; will-change: transform; }
.pw-img { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.pw-img.drift { right: auto; width: 200%; background-size: 50% 100%; background-repeat: repeat-x; background-position: 0 0; animation: pwDrift 900s linear infinite; will-change: transform; }
@keyframes pwDrift { to { transform: translate3d(-50%, 0, 0); } }
.pw-img.shimmer { animation: pwShimmer 11s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes pwShimmer { 0% { opacity: .78; transform: scaleY(1) translateY(0); } 50% { opacity: 1; } 100% { opacity: .86; transform: scaleY(1.05) translateY(-8px); } }
.pw-twinkle { position: absolute; inset: 0; width: 50%; }
.pw-twinkle i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .8); opacity: 0; animation: pwTw 5s ease-in-out infinite; }
@keyframes pwTw { 0%, 100% { opacity: 0; } 50% { opacity: .95; } }
body.perf-lite .pw-img.drift, body.perf-lite .pw-twinkle i { animation-duration: 0s !important; animation: none; }

/* ---- dynamic liquid-glass cursor ---- */
html body.dyncur, html body.dyncur * { cursor: none !important; }
#fcursor { position: fixed; left: 0; top: 0; width: 40px; height: 40px; z-index: 2147483647; pointer-events: none; will-change: transform; transition: opacity .2s; }
#fcursor.gone { opacity: 0; }
.fc-shape { position: absolute; inset: 0; opacity: 0; transform: scale(.55); transition: opacity .14s ease, transform .26s cubic-bezier(.3, 1.6, .5, 1); }
.fc-shape.on { opacity: 1; transform: scale(1); }
#fcursor.down .fc-shape.on { transform: scale(.86); transition-duration: .08s; }
.fc-glass { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .32) 52%, rgba(210, 225, 255, .5)); -webkit-backdrop-filter: blur(2.5px) saturate(1.9) brightness(1.15); backdrop-filter: blur(2.5px) saturate(1.9) brightness(1.15); }
.fc-line { position: absolute; inset: 0; width: 40px; height: 40px; overflow: visible; }
.fc-line path { fill: none; stroke: rgba(255, 255, 255, .98); stroke-width: 1.25; stroke-linejoin: round; filter: drop-shadow(0 1.2px 1.6px rgba(0, 0, 0, .6)) drop-shadow(0 0 .6px rgba(0, 0, 0, .9)); }
.fc-link .fc-glass { background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(var(--accent-rgb), .55) 60%, rgba(var(--accent-rgb), .75)); }
.fc-text .fc-glass { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(220, 230, 255, .55)); }
.fc-ai .fc-glass { background: conic-gradient(from 0deg, #22d3ee, #818cf8, #f472b6, #fbbf24, #22d3ee); animation: fcSpin 1.8s linear infinite; }
.fc-ai .fc-line path { stroke: rgba(255, 255, 255, .7); }
.fc-busy .fc-glass, .fc-busy .fc-line { animation: fcSpin .75s linear infinite; transform-origin: 20px 20px; }
.fc-busy .fc-glass { background: conic-gradient(from 90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .95), rgba(var(--accent-rgb), .9)); }
.fc-no .fc-glass { background: linear-gradient(150deg, rgba(255, 180, 180, .9), rgba(239, 68, 68, .7)); }
.fc-move .fc-glass { background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(var(--accent-rgb), .55)); }
@keyframes fcSpin { to { transform: rotate(360deg); } }

/* ---- flat (classic) taskbar ---- */
body.tb-flat #taskbar { bottom: 0; height: 48px; background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); border-top: 1px solid var(--stroke); box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); pointer-events: auto; animation: none; }
body.tb-flat .tb-dock, body.tb-flat .tb-tray { height: 48px; border-radius: 0; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.tb-flat .tb-dock::before, body.tb-flat .tb-tray::before { display: none; }
body.tb-flat .tb-tray { right: 4px; }
body.tb-flat .tb-btn, body.tb-flat .tb-app { width: 42px; height: 40px; border-radius: 6px; }
body.tb-flat .tb-app:hover { transform: none; }
body.tb-flat .tray-group, body.tb-flat .tray-clock, body.tb-flat .tray-bell { height: 40px; border-radius: 6px; }
body.tb-flat #startmenu, body.tb-flat #quick, body.tb-flat #calendar { bottom: 56px; }
body.tb-flat #toasts { bottom: 58px; }
body.tb-flat #desk-icons { bottom: 56px; }
body.tb-flat.tb-left #taskbar { justify-content: flex-start; padding-left: 0; }

/* ---- tray: real network + battery ---- */
#trayNetIcon, #trayBatt { display: inline-grid; place-items: center; }
.net-ic { width: 17px; height: 17px; }
.net-ic.qs { width: 20px; height: 20px; stroke-width: 1.8; }
#trayBatt svg { width: 20px; height: 17px; }
.qs-batt.hidden { display: none !important; }

/* ---- window switcher (Alt+`) ---- */
.switcher { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 99998; display: flex; gap: 10px; padding: 16px; border-radius: 22px; max-width: 90vw; flex-wrap: wrap; justify-content: center; animation: pop .14s var(--ease); --glass: var(--glass-strong); }
.sw-card { width: 150px; height: 130px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px; border: 2px solid transparent; background: rgba(255, 255, 255, .05); }
.sw-card.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .18); }
.sw-ic { width: 52px; height: 52px; } .sw-ic svg { width: 100%; height: 100%; }
.sw-card span { font-size: 12.5px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---- FeatherAI bubble (hold Ctrl+Shift) ---- */
.ai-bubble { position: fixed; left: 50%; top: 18vh; width: min(560px, 90vw); transform: translate(-50%, -14px) scale(.96); opacity: 0; z-index: 99996; border-radius: 26px; padding: 8px; transition: opacity .18s, transform .3s var(--spring); --glass: var(--glass-strong); }
.ai-bubble.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ab-row { display: flex; align-items: center; gap: 10px; padding: 2px 4px 2px 8px; }
.ab-orb { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a5b4fc 30%, #7c3aed 70%); box-shadow: 0 0 18px rgba(167, 139, 250, .7); animation: abPulse 2.4s ease-in-out infinite; }
.ab-orb i { display: none; }
@keyframes abPulse { 50% { box-shadow: 0 0 28px rgba(34, 211, 238, .8); filter: hue-rotate(40deg); } }
.ab-in { flex: 1; height: 44px; border: 0; background: none; outline: none; font-size: 17px; color: var(--text); user-select: text; }
.ab-cam { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s, transform .2s var(--spring); }
.ab-cam:hover { background: rgba(var(--accent-rgb), .35); transform: scale(1.08); }
.ab-cam svg { width: 20px; height: 20px; }
.ab-out { max-height: 50vh; overflow-y: auto; padding: 8px 14px 10px 16px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 6px; }
.ab-md { font-size: 14px; line-height: 1.6; }
.ab-acts { display: flex; gap: 8px; margin-top: 10px; }
.ab-img img { width: 100%; border-radius: 14px; display: block; }
.ab-imgph { height: 220px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(236, 72, 153, .2)); color: var(--text-2); }
.ab-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #a78bfa; animation: spin .8s linear infinite; display: inline-block; }

/* ---- Feather Lens ---- */
.lens { position: fixed; inset: 0; z-index: 99995; opacity: 0; transition: opacity .2s; --cx: 0; --cy: 0; --cw: 0; --ch: 0; }
.lens.in { opacity: 1; }
.lens-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens-dim { position: absolute; inset: 0; background: rgba(5, 8, 20, .55); }
.lens.cut .lens-dim { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--cx) var(--cy), var(--cx) calc(var(--cy) + var(--ch)), calc(var(--cx) + var(--cw)) calc(var(--cy) + var(--ch)), calc(var(--cx) + var(--cw)) var(--cy), var(--cx) var(--cy)); }
.lens-box { position: absolute; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(var(--accent-rgb), .55), 0 0 40px rgba(var(--accent-rgb), .5); pointer-events: none; }
.lens-hint { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px; font-size: 14px; }
.lens-hint span svg { width: 20px; height: 20px; display: block; }
.lens-panel { position: absolute; width: 380px; max-height: calc(100vh - 20px); overflow-y: auto; padding: 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 12px; --glass: var(--glass-strong); animation: pop .18s var(--ease); }
.lens-top { display: flex; gap: 12px; align-items: center; }
.lens-top img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); }
.lens-top b { display: block; font-size: 15px; } .lens-top small { color: var(--text-3); font-size: 12px; }
.lens-chips, .lens-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.lens-ask { display: flex; gap: 8px; } .lens-ask .f-btn { min-width: 70px; }
.lens-ans { font-size: 13.5px; line-height: 1.6; max-height: 40vh; overflow-y: auto; }
.lens-ans:empty { display: none; }

/* ---- Flame Browser ---- */
.flame-win .bw-toolbar, .flame-win .bw-bm { background: rgba(255, 255, 255, .07); }
.flame-private { --accent: #a855f7; --accent-rgb: 168, 85, 247; }
.flame-private .titlebar { background: linear-gradient(90deg, rgba(88, 28, 135, .55), rgba(30, 27, 75, .3)); }
.bw-privbadge { flex: none; height: 22px; padding: 0 10px; margin: 6px 8px 0 4px; border-radius: 11px; background: linear-gradient(135deg, #7c3aed, #4c1d95); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.bw-tab.pinned { width: 44px; min-width: 44px; flex: 0 0 44px; justify-content: center; padding: 0; }
.bw-aud { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; color: var(--text-2); }
.bw-aud svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.bw-aud:hover { background: rgba(255, 255, 255, .14); } .bw-aud.muted { color: #f87171; }
.bw-tab.pinned .bw-aud { position: absolute; margin: -18px -22px 0 0; transform: scale(.8); }
.bw-tfav-fb svg { width: 16px; height: 16px; }
.bw-omniwrap { position: relative; }
.bw-sugg { position: absolute; left: -2px; right: -2px; top: 40px; border-radius: 16px; padding: 6px; z-index: 30; --glass: var(--glass-strong); }
.fl-si { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; text-align: left; font-size: 13.5px; }
.fl-si:hover, .fl-si.on { background: rgba(255, 255, 255, .09); }
.fl-si-ic { width: 16px; height: 16px; display: grid; place-items: center; color: var(--text-3); flex: none; } .fl-si-ic svg { width: 14px; height: 14px; }
.fl-si-t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fl-si small { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
/* Flame home: its own ember backdrop */
.fl-home { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: #0b0710; }
.fl-bg { position: absolute; inset: -10%; background: radial-gradient(60% 50% at 20% 110%, rgba(255, 94, 58, .55), transparent 70%), radial-gradient(50% 45% at 85% 100%, rgba(255, 61, 110, .45), transparent 70%), radial-gradient(40% 35% at 55% 70%, rgba(255, 170, 60, .28), transparent 70%), radial-gradient(70% 60% at 50% -10%, rgba(76, 29, 149, .55), transparent 70%), linear-gradient(180deg, #120b24, #1a0b14); animation: flBg 18s ease-in-out infinite alternate; }
.fl-home.priv .fl-bg { background: radial-gradient(60% 50% at 20% 110%, rgba(168, 85, 247, .5), transparent 70%), radial-gradient(50% 45% at 85% 100%, rgba(99, 102, 241, .45), transparent 70%), linear-gradient(180deg, #0c0a1f, #140b24); }
@keyframes flBg { to { transform: translate(-2%, -3%) scale(1.06); filter: hue-rotate(-12deg); } }
.fl-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fl-inner { position: relative; display: flex; flex-direction: column; align-items: center; width: min(680px, 90%); margin-top: -50px; }
.fl-clock { font-size: 22px; font-weight: 300; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.fl-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.fl-brand span { width: 58px; height: 58px; filter: drop-shadow(0 0 24px rgba(255, 120, 60, .7)); } .fl-brand span svg { width: 100%; height: 100%; }
.fl-brand b { font-size: 52px; font-weight: 700; letter-spacing: -1.5px; background: linear-gradient(90deg, #ffd36b, #ff8a3d 45%, #ff3d6e); -webkit-background-clip: text; color: transparent; }
.fl-brand em { font-style: normal; font-size: 13px; padding: 3px 10px; border-radius: 10px; background: rgba(168, 85, 247, .4); align-self: flex-start; margin-top: 10px; }
.fl-box { position: relative; width: 100%; height: 50px; border-radius: 25px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); transition: border-color .15s, box-shadow .15s; }
.fl-box.big { height: 58px; border-radius: 29px; }
.fl-box:focus-within { border-color: rgba(255, 150, 80, .7); box-shadow: 0 0 0 4px rgba(255, 120, 60, .18), 0 10px 40px rgba(0, 0, 0, .35); }
.fl-ic { width: 22px; height: 22px; flex: none; } .fl-ic svg { width: 100%; height: 100%; }
.fl-input { flex: 1; border: 0; background: none; outline: none; font-size: 16.5px; color: #fff; user-select: text; min-width: 0; }
.fl-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff3d6e); flex: none; }
.fl-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: rgba(24, 18, 30, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 6px; z-index: 5; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.fl-next { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; min-height: 30px; align-items: center; }
.fl-next-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); } .fl-next-l .li { width: 14px; height: 14px; color: #ffb36b; }
.fl-chip { height: 30px; padding: 0 14px; border-radius: 15px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #fff; }
.fl-chip:hover { background: rgba(255, 140, 70, .3); }
.fl-tiles { display: grid; grid-template-columns: repeat(auto-fill, 96px); justify-content: center; gap: 10px; width: 100%; margin-top: 26px; }
.fl-tile { height: 92px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 12px; color: #fff; transition: background .15s, transform .2s var(--spring); }
.fl-tile:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.fl-fav { width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #222; font-weight: 700; font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); } .fl-fav img { width: 26px; height: 26px; }
.fl-privnote { margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .7); max-width: 440px; text-align: center; line-height: 1.5; }
/* Flame results */
.fl-rpage { position: absolute; inset: 0; overflow-y: auto; background: #faf7f5; color: #1f1d24; user-select: text; }
.fl-rhead { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 22px; padding: 14px 28px; background: rgba(250, 247, 245, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid #ece4df; }
.fl-logo { display: flex; align-items: center; gap: 8px; } .fl-logo svg { width: 30px; height: 30px; } .fl-logo b { font-size: 22px; letter-spacing: -.5px; background: linear-gradient(90deg, #ff8a3d, #ff3d6e); -webkit-background-clip: text; color: transparent; }
.fl-rhead .fl-box { max-width: 680px; background: #fff; border-color: #e7ddd7; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); backdrop-filter: none; }
.fl-rhead .fl-input { color: #1f1d24; }
.fl-rhead .fl-sugg { background: #fff; border-color: #eadfd9; color: #1f1d24; }
.fl-rhead .fl-si:hover, .fl-rhead .fl-si.on { background: #f6eee9; }
.fl-rbody { display: flex; gap: 40px; padding: 20px 28px 60px 28px; max-width: 1180px; }
.fl-main { flex: 1; min-width: 0; max-width: 700px; margin-left: 52px; }
.fl-side { width: 340px; flex: none; }
.fl-aio { border-radius: 20px; padding: 18px 20px; background: linear-gradient(135deg, #fff4ec, #fdeef6 60%, #f1efff); border: 1px solid #f3dccf; margin-bottom: 22px; box-shadow: 0 6px 24px rgba(255, 120, 60, .08); }
.fl-aio-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fl-aio-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3d, #a855f7); color: #fff; } .fl-aio-ic .li { width: 16px; height: 16px; }
.fl-aio-h b { font-size: 15px; } .fl-aio-h small { color: #8b7f88; font-size: 12px; }
.fl-aio-body { font-size: 14.5px; line-height: 1.65; color: #2d2833; }
.fl-aio-body p { margin: 6px 0; } .fl-aio-body ul { margin: 6px 0; padding-left: 20px; }
.fl-aio-body code { background: rgba(0, 0, 0, .06); }
.fl-cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin: 0 2px; border-radius: 9px; background: #ffe2d1; color: #c2410c; font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.fl-aio-foot { margin-top: 8px; font-size: 11.5px; color: #9a8e96; }
.fl-dim { color: #8b7f88; }
.fl-shimmer i { display: block; height: 12px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, #f3e3da, #fff 50%, #f3e3da); background-size: 200% 100%; animation: flShim 1.3s linear infinite; }
.fl-shimmer i:nth-child(2) { width: 85%; } .fl-shimmer i:nth-child(3) { width: 60%; }
@keyframes flShim { to { background-position: -200% 0; } }
.fl-res { margin-bottom: 26px; }
.fl-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fl-site img { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; border: 1px solid #eee3dd; }
.fl-site b { display: block; font-size: 13px; font-weight: 600; color: #2d2833; } .fl-site small { display: block; font-size: 12px; color: #8b7f88; }
.fl-title { display: block; font-size: 19px; color: #c2410c; text-decoration: none; margin: 2px 0 4px; line-height: 1.3; cursor: pointer; }
.fl-title:hover { text-decoration: underline; }
.fl-res p { margin: 0; font-size: 14px; line-height: 1.55; color: #4b4450; }
.fl-loading, .fl-empty { color: #8b7f88; padding: 20px 0; }
.fl-related h3 { font-size: 17px; margin: 30px 0 12px; }
.fl-relgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fl-rel { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 22px; background: #f3ebe6; color: #2d2833; text-align: left; font-size: 13.5px; }
.fl-rel:hover { background: #ffe8db; }
.fl-more { margin-top: 20px; } .fl-more .f-btn { background: #fff; color: #2d2833; border-color: #e7ddd7; }
.fl-kp { border: 1px solid #ece4df; border-radius: 18px; padding: 18px; background: #fff; position: sticky; top: 90px; }
.fl-kp img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.fl-kp h2 { margin: 0; font-size: 22px; } .fl-kp small { color: #8b7f88; }
.fl-kp p { font-size: 13.5px; line-height: 1.6; color: #4b4450; }
.fl-kp a { color: #c2410c; font-size: 13px; cursor: pointer; }
.hist-row { width: 100%; display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; text-align: left; }
.hist-row:hover { background: rgba(255, 255, 255, .07); }
.hist-row img { width: 16px; height: 16px; } .hist-row b { font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .hist-row small, .hist-row time { color: var(--text-3); font-size: 12px; }
.dl-page { overflow-y: auto; }
@media (max-width: 1000px) { .fl-side { display: none; } .fl-main { margin-left: 0; } }

/* ---- Notes: writing assistant ---- */
.notes { position: relative; }
.nt-pad { position: relative; flex: 1; min-height: 0; }
.nt-pad .nt-area, .nt-back { position: absolute; inset: 0; margin: 0; padding: 6px 26px 20px; font-size: 15px; line-height: 1.65; font-family: var(--font); white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; letter-spacing: normal; tab-size: 4; border: 0; }
.nt-pad .nt-area { background: transparent; z-index: 1; overflow-y: auto; }
.nt-back { color: transparent; overflow: hidden; pointer-events: none; z-index: 0; scrollbar-width: none; }
.nt-probe { visibility: hidden; position: absolute; inset: 0 auto auto 0; height: auto; overflow: visible; }
.nt-m { color: transparent; background: transparent; border-radius: 2px; padding: 0; text-decoration: underline wavy; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.nt-m.spelling { text-decoration-color: #ef4444; background: rgba(239, 68, 68, .1); }
.nt-m.grammar { text-decoration-color: #3b82f6; background: rgba(59, 130, 246, .1); }
.nt-m.clarity { text-decoration-color: #22c55e; background: rgba(34, 197, 94, .1); }
.nt-m.style { text-decoration-color: #a855f7; background: rgba(168, 85, 247, .1); }
.nt-assist-btn { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; transition: all .15s; }
.nt-assist-btn.on { background: linear-gradient(135deg, rgba(34, 197, 94, .25), rgba(16, 185, 129, .12)); border-color: rgba(34, 197, 94, .45); }
.nt-score-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px currentColor; }
.nt-count { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 11px; font-weight: 700; }
.nt-assist-btn.has .nt-count { background: #ef4444; color: #fff; }
.nt-panel { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; border-left: 1px solid rgba(255, 255, 255, .06); overflow-y: auto; background: rgba(0, 0, 0, .12); }
.nt-panel.narrow { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; background: var(--win-bg); box-shadow: -10px 0 30px rgba(0, 0, 0, .3); }
.nt-ph { display: flex; align-items: center; gap: 14px; }
.nt-ring { --p: 100%; --c: #22c55e; width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) var(--p), rgba(255, 255, 255, .1) 0); position: relative; }
.nt-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #1b1d25; }
.nt-ring b { position: relative; z-index: 1; font-size: 20px; font-weight: 800; }
.nt-ph div b { display: block; font-size: 16px; font-weight: 700; } .nt-ph small { display: block; color: var(--text-3); font-size: 12px; }
.nt-tone { color: #86efac !important; }
.nt-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nt-cat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 12px; }
.nt-cat i { width: 8px; height: 8px; border-radius: 50%; } .nt-cat span { flex: 1; } .nt-cat b { font-size: 14px; }
.nt-cat.spelling i, .nt-tag.spelling { background: #ef4444; } .nt-cat.grammar i, .nt-tag.grammar { background: #3b82f6; } .nt-cat.clarity i, .nt-tag.clarity { background: #22c55e; } .nt-cat.style i, .nt-tag.style { background: #a855f7; }
.nt-all { width: 100%; }
.nt-cards { display: flex; flex-direction: column; gap: 8px; }
.nt-card { position: relative; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-left: 3px solid; transition: background .12s; }
.nt-card:hover { background: rgba(255, 255, 255, .09); }
.nt-card.spelling { border-left-color: #ef4444; } .nt-card.grammar { border-left-color: #3b82f6; } .nt-card.clarity { border-left-color: #22c55e; } .nt-card.style { border-left-color: #a855f7; }
.nt-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-right: 20px; } .nt-card-h small { color: var(--text-2); font-size: 12px; }
.nt-tag { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.nt-pop-sug { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-pop-sug s { color: var(--text-3); }
.nt-accept { padding: 3px 10px; border-radius: 8px; background: rgba(34, 197, 94, .2); color: #86efac; font-weight: 600; border: 1px solid rgba(34, 197, 94, .35); }
.nt-accept:hover { background: rgba(34, 197, 94, .35); }
.nt-x { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); } .nt-x .li { width: 13px; height: 13px; } .nt-x:hover { background: rgba(255, 255, 255, .1); }
.nt-good { display: flex; align-items: center; gap: 8px; color: #86efac; padding: 10px; } .nt-good .li { width: 18px; height: 18px; }
.nt-rew { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); } .nt-rew small { display: block; color: var(--text-3); margin-bottom: 6px; } .nt-rew div { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-pop { position: absolute; z-index: 20; width: 300px; padding: 12px 14px; border-radius: 14px; font-size: 13px; animation: pop .14s var(--ease); --glass: var(--glass-strong); }
.nt-pop-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .nt-pop-h small { margin-left: auto; color: #c4b5fd; display: inline-flex; gap: 4px; align-items: center; } .nt-pop-h small .li { width: 13px; height: 13px; }
.nt-pop p { color: var(--text-2); margin: 8px 0; font-size: 12.5px; }
.nt-pop-acts { display: flex; gap: 6px; }
.nt-pop.nt-flash { width: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; } .nt-flash .li { width: 15px; height: 15px; color: #86efac; }

/* ---- Calendar app ---- */
.calendar-app { display: flex; flex-direction: column; height: 100%; }
.cal-top { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-title { margin: 0 0 0 8px; font-size: 20px; font-weight: 600; min-width: 210px; }
.cal-ai { flex: 1; max-width: 420px; }
.cal-views { display: flex; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 3px; }
.cal-vb { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; } .cal-vb.on { background: rgba(255, 255, 255, .14); }
.cal-split { flex: 1; display: flex; min-height: 0; }
.cal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cal-month { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 30px repeat(6, 1fr); }
.cal-dow { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; }
.cal-cell { border-top: 1px solid rgba(255, 255, 255, .06); border-left: 1px solid rgba(255, 255, 255, .04); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; transition: background .1s; }
.cal-cell:hover { background: rgba(255, 255, 255, .03); } .cal-cell.sel { background: rgba(var(--accent-rgb), .1); }
.cal-cell.mute .cal-num { color: var(--text-3); }
.cal-num { font-size: 12.5px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.today .cal-num { background: var(--accent); color: #fff; font-weight: 700; }
.cal-chip { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 22%, transparent); }
.cal-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.cal-more { font-size: 11px; color: var(--text-3); padding-left: 6px; }
.cal-week { flex: 1; display: grid; grid-template-columns: 56px repeat(7, 1fr); overflow-y: auto; position: relative; }
.cal-hours { padding-top: 54px; } .cal-hours div { height: 44px; font-size: 10.5px; color: var(--text-3); text-align: right; padding-right: 8px; transform: translateY(-6px); }
.cal-wcol { border-left: 1px solid rgba(255, 255, 255, .05); }
.cal-whead { position: sticky; top: 0; z-index: 2; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--win-bg); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cal-whead small { font-size: 11px; color: var(--text-3); } .cal-whead b { font-size: 18px; }
.cal-wcol.today .cal-whead b { color: var(--accent); }
.cal-wbody { position: relative; }
.cal-slot { height: 44px; border-top: 1px solid rgba(255, 255, 255, .04); }
.cal-wev { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 7px; text-align: left; overflow: hidden; background: color-mix(in srgb, var(--c) 35%, rgba(20, 22, 30, .6)); border-left: 3px solid var(--c); font-size: 11.5px; }
.cal-wev b { display: block; font-weight: 600; } .cal-wev small { color: var(--text-2); font-size: 10.5px; }
.cal-agenda { padding: 10px 22px; overflow-y: auto; }
.cal-arow { width: 100%; display: grid; grid-template-columns: 10px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left; }
.cal-arow:hover { background: rgba(255, 255, 255, .06); }
.cal-arow i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 4px; }
.cal-arow b { font-weight: 500; } .cal-arow small { color: var(--text-3); font-size: 12px; }
.cal-side { width: 280px; flex: none; padding: 16px; border-left: 1px solid rgba(255, 255, 255, .06); overflow-y: auto; }
.cal-sd small { color: var(--text-3); } .cal-sd b { display: block; font-size: 22px; margin: 2px 0 12px; }
.cal-remnote { display: flex; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--text-3); line-height: 1.5; } .cal-remnote .li { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cal-dlg { width: 480px; display: flex; flex-direction: column; gap: 10px; }
.cal-row { display: flex; gap: 8px; align-items: center; } .cal-row .f-input { flex: 1; }
.cal-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.cal-notes { height: 70px; padding: 8px 12px; resize: none; }
.cal-sw { display: flex; gap: 6px; } .cal-swc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; } .cal-swc.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.f-btn.danger, .f-btn.danger:hover { background: rgba(239, 68, 68, .25); border-color: rgba(239, 68, 68, .45); }
input[type=date], input[type=time] { color-scheme: dark; }

/* ---- Presentations ---- */
.pr-home { height: 100%; overflow-y: auto; padding: 26px 40px 40px; }
.pr-home-head { display: flex; align-items: center; gap: 18px; }
.pr-home-head h1 { margin: 0; font-size: 28px; } .pr-home-head p { margin: 4px 0 0; color: var(--text-2); }
.pr-logo { width: 54px; height: 54px; flex: none; } .pr-logo svg { width: 100%; height: 100%; } .pr-logo.sm { width: 36px; height: 36px; }
.pr-aibox { margin: 22px 0 6px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(236, 72, 153, .15)); border: 1px solid rgba(167, 139, 250, .3); }
.pr-aibox b { display: inline-flex; align-items: center; gap: 6px; } .pr-aibox b .li { width: 16px; height: 16px; color: #c4b5fd; }
.pr-airow { display: flex; gap: 10px; margin-top: 10px; } .pr-airow .f-input { flex: 1; height: 40px; } .pr-airow .f-btn { height: 40px; display: inline-flex; align-items: center; gap: 6px; } .pr-airow .li { width: 16px; height: 16px; }
.pr-home h3 { margin: 26px 0 12px; font-size: 16px; }
.pr-tpls, .pr-recent { display: grid; grid-template-columns: repeat(auto-fill, 210px); gap: 16px; }
.pr-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 5px; border-radius: 12px; transition: background .15s; }
.pr-tpl:hover { background: rgba(255, 255, 255, .06); }
.pr-tpl-prev { width: 200px; height: 112.5px; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); }
.pr-tpl-prev .pr-slide { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.pr-tpl span { font-size: 13px; } .pr-tpl small { color: var(--text-3); font-size: 11.5px; margin-top: -4px; }
.pr-app, .ss-app { display: flex; flex-direction: column; height: 100%; }
.pr-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px 4px; }
.pr-headtx { flex: 1; min-width: 0; }
.pr-titlein { font-size: 17px; font-weight: 500; background: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; outline: none; user-select: text; width: min(420px, 100%); }
.pr-titlein:hover, .pr-titlein:focus { border-color: rgba(255, 255, 255, .2); }
.pr-menus { display: flex; gap: 2px; }
.pr-menu { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: var(--text-2); } .pr-menu:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.pr-status { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pr-present { display: inline-flex; align-items: center; gap: 6px; height: 36px; border-radius: 18px; padding: 0 18px; } .pr-present .li { width: 15px; height: 15px; }
.pr-tb, .ss-tb { display: flex; align-items: center; gap: 2px; margin: 4px 12px 8px; padding: 4px 8px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap; }
.pr-tool { height: 30px; min-width: 30px; padding: 0 6px; border-radius: 8px; display: inline-grid; grid-auto-flow: column; place-items: center; gap: 4px; font-size: 14px; } .pr-tool .li { width: 17px; height: 17px; }
.pr-tool:hover { background: rgba(255, 255, 255, .1); } .pr-tool.on { background: rgba(var(--accent-rgb), .3); }
.pr-tbl { font-size: 12.5px; font-weight: 500; }
.pr-aibtn { color: #c4b5fd; }
.pr-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .12); margin: 0 4px; }
.pr-sel { height: 28px; border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); padding: 0 6px; outline: none; max-width: 150px; font-size: 12.5px; } .pr-sel option { background: #22252e; }
.pr-size { width: 56px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); padding: 0 6px; outline: none; font-size: 12.5px; }
.pr-pal { position: fixed; z-index: 100003; display: grid; grid-template-columns: repeat(6, 24px); gap: 6px; padding: 10px; border-radius: 12px; --glass: var(--glass-strong); }
.pr-pal button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); }
.pr-pal-x { background: rgba(255, 255, 255, .08) !important; font-size: 12px; }
.pr-pal .color-in { width: 24px; height: 24px; }
.pr-work { flex: 1; display: flex; min-height: 0; }
.pr-thumbs { width: 206px; flex: none; overflow-y: auto; padding: 4px 10px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.pr-thumb { display: flex; gap: 6px; align-items: flex-start; border-radius: 10px; padding: 3px; }
.pr-tn { width: 16px; font-size: 11px; color: var(--text-3); text-align: right; margin-top: 4px; }
.pr-thumb-pv { width: 168px; height: 94.5px; border-radius: 6px; overflow: hidden; position: relative; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.pr-thumb-pv .pr-slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.pr-thumb.on .pr-thumb-pv { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.pr-thumb.over { background: rgba(var(--accent-rgb), .2); } .pr-thumb.drag { opacity: .4; }
.pr-addslide { margin-left: 22px; width: 168px; height: 40px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, .2); display: grid; place-items: center; } .pr-addslide .li { width: 18px; height: 18px; } .pr-addslide:hover { background: rgba(255, 255, 255, .06); }
.pr-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-stage { flex: 1; min-height: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .22); border-radius: 14px 14px 0 0; position: relative; overflow: hidden; }
.pr-canvas { position: relative; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.pr-canvas > .pr-slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pr-notes { height: 76px; flex: none; resize: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(0, 0, 0, .15); padding: 10px 16px; outline: none; font-size: 13px; user-select: text; }
.pr-props { width: 0; }
.pr-slide { position: relative; overflow: hidden; user-select: none; }
.pr-el { position: absolute; transform-origin: 50% 50%; }
.pr-text { width: 100%; height: 100%; display: flex; flex-direction: column; line-height: 1.25; white-space: pre-wrap; overflow-wrap: break-word; outline: none; padding: 4px 6px; }
.pr-text[contenteditable="true"] { cursor: text; user-select: text; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .9); background: rgba(255, 255, 255, .04); }
.pr-text.empty { opacity: .45; }
.pr-edit .pr-text.empty { outline: 1.5px dashed rgba(127, 127, 127, .5); outline-offset: -1px; }
.pr-stext { position: absolute; inset: 0; align-items: center; }
.pr-image img { width: 100%; height: 100%; display: block; pointer-events: none; }
.pr-edit .pr-el:hover:not(.sel) { outline: 1.5px solid rgba(var(--accent-rgb), .5); }
.pr-el.sel { outline: 2px solid var(--accent); }
.pr-h { position: absolute; width: 12px; height: 12px; border-radius: 3px; background: #fff; border: 2px solid var(--accent); z-index: 3; }
.pr-h-nw { left: -7px; top: -7px; } .pr-h-n { left: calc(50% - 6px); top: -7px; } .pr-h-ne { right: -7px; top: -7px; } .pr-h-e { right: -7px; top: calc(50% - 6px); }
.pr-h-se { right: -7px; bottom: -7px; } .pr-h-s { left: calc(50% - 6px); bottom: -7px; } .pr-h-sw { left: -7px; bottom: -7px; } .pr-h-w { left: -7px; top: calc(50% - 6px); }
.pr-rot { position: absolute; left: calc(50% - 8px); top: -36px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); z-index: 3; }
.pr-rot::after { content: ""; position: absolute; left: 5px; top: 14px; width: 2px; height: 20px; background: var(--accent); }
.pr-guide { position: absolute; background: #f472b6; z-index: 5; pointer-events: none; } .pr-guide.v { top: 0; bottom: 0; width: 1px; } .pr-guide.h { left: 0; right: 0; height: 1px; }
.pr-marq { position: absolute; border: 1px solid var(--accent); background: rgba(var(--accent-rgb), .15); z-index: 6; pointer-events: none; }
.pr-show { position: fixed; inset: 0; z-index: 99997; background: #000; display: grid; place-items: center; }
.pr-show-stage { position: relative; width: 100vw; height: 100vh; display: grid; place-items: center; overflow: hidden; perspective: 1400px; }
.pr-show-slide { position: absolute; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.pr-show-slide .pr-slide { position: absolute; left: 0; top: 0; }
.pr-show-slide.tr-fade { opacity: 0; } .pr-show-slide.tr-fade.in { opacity: 1; } .pr-show-slide.tr-fade.out { opacity: 0; }
.pr-show-slide.tr-slide { transform: translateX(100vw); } .pr-show-slide.tr-slide.back { transform: translateX(-100vw); } .pr-show-slide.tr-slide.in { transform: none; } .pr-show-slide.tr-slide.out { transform: translateX(-30vw); opacity: 0; }
.pr-show-slide.tr-zoom { transform: scale(.6); opacity: 0; } .pr-show-slide.tr-zoom.in { transform: none; opacity: 1; } .pr-show-slide.tr-zoom.out { transform: scale(1.3); opacity: 0; }
.pr-show-slide.tr-flip { transform: rotateY(90deg); } .pr-show-slide.tr-flip.in { transform: none; } .pr-show-slide.tr-flip.out { transform: rotateY(-90deg); opacity: 0; }
.pr-show-slide.tr-none, .pr-show-slide.tr-none.out { transition: none; } .pr-show-slide.tr-none.out { opacity: 0; }
.pr-show-ctl { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; background: rgba(20, 20, 26, .7); color: #fff; opacity: 0; transition: opacity .3s; font-size: 13px; }
.pr-show.moving .pr-show-ctl { opacity: 1; }
.pr-show-ctl button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; } .pr-show-ctl button:hover { background: rgba(255, 255, 255, .15); } .pr-show-ctl .li { width: 16px; height: 16px; }
.pr-show-end { color: #aaa; font-size: 18px; }
.pr-laser { position: fixed; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 16px 6px rgba(239, 68, 68, .7); pointer-events: none; z-index: 2; }
.pr-aiwait { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 99999; padding: 24px 30px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; --glass: var(--glass-strong); }
.pr-aiwait small { color: var(--text-3); max-width: 340px; text-align: center; }

/* ---- Sheets ---- */
.ss-fxrow { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.ss-name { width: 90px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); padding: 0 8px; outline: none; font-size: 12.5px; text-align: center; }
.ss-fxl { font-style: italic; color: var(--text-3); font-family: Georgia, serif; }
.ss-fx { flex: 1; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); padding: 0 10px; outline: none; font-family: var(--mono); font-size: 12.5px; user-select: text; }
.ss-grid { flex: 1; overflow: auto; position: relative; background: #fff; color: #1f2937; outline: none; }
.ss-table { display: inline-block; min-width: 100%; }
.ss-row { display: flex; height: 26px; }
.ss-hrow { position: sticky; top: 0; z-index: 3; }
.ss-corner { position: sticky; left: 0; z-index: 4; width: 46px; flex: none; background: #eef1f6; border-right: 1px solid #d5dbe5; border-bottom: 1px solid #d5dbe5; }
.ss-ch { position: relative; flex: none; height: 26px; display: grid; place-items: center; background: #f3f5f9; border-right: 1px solid #dde2ea; border-bottom: 1px solid #d5dbe5; font-size: 12px; color: #4b5563; }
.ss-ch.on, .ss-rh.on { background: #dbe7ff; color: #1d4ed8; font-weight: 600; }
.ss-cres { position: absolute; right: -3px; top: 0; bottom: 0; width: 6px; z-index: 2; }
.ss-rh { position: sticky; left: 0; z-index: 2; width: 46px; flex: none; display: grid; place-items: center; background: #f3f5f9; border-right: 1px solid #d5dbe5; border-bottom: 1px solid #e5e9f0; font-size: 11.5px; color: #4b5563; }
.ss-cell { flex: none; height: 100%; border-right: 1px solid #e8ecf2; border-bottom: 1px solid #e8ecf2; padding: 0 6px; font-size: 13px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-cell.num { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.ss-cell.err { color: #dc2626; font-weight: 600; }
.ss-cell.in { background-image: linear-gradient(rgba(59, 130, 246, .16), rgba(59, 130, 246, .16)); }
.ss-cell.cur { box-shadow: inset 0 0 0 2px #2563eb; }
.ss-editor { position: absolute; z-index: 6; border: 2px solid #2563eb; padding: 0 5px; font-size: 13px; outline: none; background: #fff; color: #111; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); user-select: text; }
.ss-foot { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.ss-tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.ss-tab { height: 28px; padding: 0 14px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); } .ss-tab.on { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: inset 0 -2px 0 #22c55e; }
.ss-tab-add { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; } .ss-tab-add .li { width: 15px; height: 15px; } .ss-tab-add:hover { background: rgba(255, 255, 255, .08); }
.ss-sum { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ss-chart { position: absolute; z-index: 5; background: #fff; border: 1px solid #dfe4ec; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); display: flex; flex-direction: column; overflow: hidden; }
.ss-chart-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid #eef1f6; color: #111; position: relative; }
.ss-chart-h b { flex: 1; font-size: 13px; } .ss-chart-h .pr-sel { background: #f3f5f9; color: #111; border-color: #dfe4ec; } .ss-chart-h .nt-x { position: static; color: #555; }
.ss-chart canvas { flex: 1; width: 100%; min-height: 0; }

/* ---- App Store: shuffling featured carousel ---- */
.sa-herowrap { position: relative; height: 270px; margin-top: 14px; }
.sa-heroes { position: absolute; inset: 0; }
.sa-heroes .sa-hero { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.985); transition: opacity .7s ease, transform .9s var(--ease); pointer-events: none; }
.sa-heroes .sa-hero.on { opacity: 1; transform: none; pointer-events: auto; }
.sa-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .25), transparent 45%); pointer-events: none; }
.sa-dots { position: absolute; left: 44px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.sa-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; } .sa-dot.on { width: 24px; background: #fff; }
.sa-harr { position: absolute; top: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .2s; z-index: 2; } .sa-harr .li { width: 18px; height: 18px; }
.sa-harr.l { left: 10px; } .sa-harr.r { right: 10px; } .sa-herowrap:hover .sa-harr { opacity: 1; }
.sa-feats { color: var(--text-2); line-height: 1.9; padding-left: 20px; }
.sa-rate { display: flex; align-items: center; gap: 14px; } .sa-rate b { font-size: 44px; } .sa-stars.big { font-size: 20px; } .sa-rate small { color: var(--text-3); }

/* ---- Paint (upgraded) ---- */
.paint2 { display: flex; height: 100%; }
.pt-side { width: 52px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-right: 1px solid rgba(255, 255, 255, .06); overflow-y: auto; }
.pt-side .pt-tool { width: 38px; height: 36px; }
.pt-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-opts { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap; }
.pt-swatches { display: flex; gap: 5px; } .pt-ol { font-size: 12px; color: var(--text-3); } .pt-opts b { font-size: 12px; min-width: 38px; }
.pt-rng { width: 110px; display: flex; } .pt-zoom { font-size: 12px; min-width: 44px; text-align: center; } .pill.on { background: rgba(var(--accent-rgb), .35); }
.paint2 .pt-wrap { display: block; overflow: auto; padding: 30px; text-align: center; }
.paint2 .pt-paper { display: inline-block; vertical-align: middle; aspect-ratio: auto; width: 1600px; height: 1000px; background: repeating-conic-gradient(#d9dde5 0% 25%, #fff 0% 50%) 0 0 / 20px 20px; border-radius: 2px; margin: auto; }
.paint2 .pt-paper .pt-canvas { image-rendering: auto; }
.paint2 .pt-paper.pan .pt-ov { cursor: grab; }
.pt-right { width: 230px; flex: none; padding: 10px 12px; border-left: 1px solid rgba(255, 255, 255, .06); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.pt-layers { display: flex; flex-direction: column; gap: 4px; }
.pt-layer { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; }
.pt-layer.on { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .12); }
.pt-layer canvas { width: 48px; height: 30px; border-radius: 4px; background: repeating-conic-gradient(#d9dde5 0% 25%, #fff 0% 50%) 0 0 / 10px 10px; flex: none; }
.pt-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .pt-lt b { font-size: 12px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .pt-lt input { width: 100%; height: 3px; }
.pt-eye { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: none; } .pt-eye .li { width: 15px; height: 15px; } .pt-eye.off { opacity: .4; }
.pt-lbtns { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-right .f-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .pt-right .f-btn .li { width: 15px; height: 15px; }

/* ---- Music (rebuilt) ---- */
.music2 { display: flex; height: 100%; }
.mu-left { width: 340px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 26px 24px; gap: 14px; background: rgba(0, 0, 0, .15); }
.mu-art2 { width: 220px; height: 220px; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); font-size: 54px; font-weight: 800; letter-spacing: -2px; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 20px rgba(0, 0, 0, .3); }
.mu-art2 svg { width: 60%; height: 60%; }
.mu-vis { width: 100%; height: 64px; }
.mu-meta2 { text-align: center; } .mu-meta2 b { display: block; font-size: 19px; } .mu-meta2 small { color: var(--text-3); }
.mu-seek { display: flex; align-items: center; gap: 10px; width: 100%; } .mu-seek small { font-size: 11px; color: var(--text-3); min-width: 32px; text-align: center; }
.mu-ctl2 { display: flex; align-items: center; gap: 10px; }
.mu-ctl2 .ph-btn.on { color: var(--accent); }
.mu-list2 { flex: 1; overflow-y: auto; padding: 10px 18px 20px; }
.mu-row { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-align: left; }
.mu-row:hover { background: rgba(255, 255, 255, .06); } .mu-row.on { background: rgba(var(--accent-rgb), .18); }
.mu-row b { display: block; font-weight: 500; } .mu-row small, .mu-row time { color: var(--text-3); font-size: 12px; }
.mu-dotart { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; } .mu-dotart svg { width: 30px; height: 30px; }

/* ---- Faster Downloads ---- */
.fasterdl { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, .18), transparent 60%); }
.fasterdl.on { background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, .25), transparent 60%); }
.fd-ic { width: 72px; height: 72px; } .fd-ic svg { width: 100%; height: 100%; }
.fasterdl h1 { margin: 0; font-size: 26px; }
.fd-gauge { position: relative; width: 220px; height: 120px; border-radius: 220px 220px 0 0; background: conic-gradient(from -90deg at 50% 100%, #22c55e 0deg, #eab308 90deg, #ef4444 180deg, transparent 180deg); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; }
.fd-gauge::before { content: ""; position: absolute; inset: 16px 16px 0; border-radius: 200px 200px 0 0; background: var(--win-bg); }
.fd-gauge b, .fd-gauge small { position: relative; } .fd-gauge b { font-size: 26px; } .fd-gauge small { color: var(--text-3); font-size: 11px; }
.fd-needle { position: absolute; left: calc(50% - 2px); bottom: 0; width: 4px; height: 96px; border-radius: 2px; background: #fff; transform-origin: 50% 100%; transform: rotate(80deg); transition: transform .8s var(--spring); z-index: 1; }
.fasterdl:not(.on) .fd-needle { transform: rotate(-60deg); }
.fd-state { font-size: 16px; font-weight: 600; }
.fd-toggle { width: 86px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, .12); position: relative; transition: background .25s; border: 1px solid rgba(255, 255, 255, .2); }
.fd-toggle i { position: absolute; left: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: left .3s var(--spring); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.fd-toggle.on { background: linear-gradient(135deg, #38bdf8, #7c3aed); } .fd-toggle.on i { left: 47px; }
.fasterdl p { color: var(--text-2); margin: 0; }

/* ---- games: fixed square cells so big numbers / letters don't stretch the grid ---- */
.ttt { grid-template-rows: repeat(3, 1fr); }
.ttt-c { min-width: 0; min-height: 0; padding: 0; display: grid; place-items: center; line-height: 1; overflow: hidden; font-size: clamp(28px, 9vmin, 64px); }
.ttt-c span { display: block; line-height: 1; }
.g2048 { grid-template-rows: repeat(4, 1fr); }
.g-c { min-width: 0; min-height: 0; overflow: hidden; line-height: 1; padding: 0; }
.g-c span { display: block; line-height: 1; }
.g-c.d1, .g-c.d2 { font-size: 34px; } .g-c.d3 { font-size: 28px; } .g-c.d4 { font-size: 22px; } .g-c.d5 { font-size: 17px; }
.gm-canvas { max-width: 100%; max-height: calc(100% - 60px); border-radius: 14px; background: rgba(0, 0, 0, .25); display: block; }
.sdk { display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); width: min(430px, 80vw); aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .5); border-radius: 10px; overflow: hidden; }
.sdk-c { min-width: 0; min-height: 0; border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 20px; font-weight: 500; color: #93c5fd; display: grid; place-items: center; line-height: 1; padding: 0; }
.sdk-c.given { color: var(--text); font-weight: 700; } .sdk-c.br { border-right: 2px solid rgba(255, 255, 255, .45); } .sdk-c.bb { border-bottom: 2px solid rgba(255, 255, 255, .45); }
.sdk-c.peer { background: rgba(255, 255, 255, .05); } .sdk-c.same { background: rgba(var(--accent-rgb), .22); } .sdk-c.sel { background: rgba(var(--accent-rgb), .45); } .sdk-c.bad { color: #f87171; background: rgba(239, 68, 68, .15); }
.sdk-pad { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: min(430px, 80vw); }
.sdk-n { height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 16px; font-weight: 600; display: grid; place-items: center; } .sdk-n:hover { background: rgba(255, 255, 255, .15); } .sdk-n .li { width: 18px; height: 18px; }
.mem { display: grid; gap: 8px; width: min(440px, 80vw); aspect-ratio: 1; perspective: 800px; }
.mem-c { position: relative; min-width: 0; min-height: 0; padding: 0; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.mem-c.up { transform: rotateY(180deg); }
.mem-f, .mem-b { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; display: grid; place-items: center; }
.mem-b { background: linear-gradient(135deg, #f472b6, #7c3aed); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.mem-f { transform: rotateY(180deg); background: rgba(255, 255, 255, .92); font-size: clamp(22px, 5vmin, 40px); line-height: 1; }
.mem-c.done .mem-f { background: rgba(134, 239, 172, .9); }

/* ---- FeatherAI: images, attachments, imagine ---- */
.ai-plus { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); align-self: flex-end; transition: background .15s, transform .2s var(--spring); }
.ai-plus:hover { background: rgba(var(--accent-rgb), .35); transform: rotate(90deg); } .ai-plus .li { width: 18px; height: 18px; }
.ai-box { padding-left: 8px; }
.ai-attach { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ai-thumb { position: relative; width: 64px; height: 64px; } .ai-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); }
.ai-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #111; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; } .ai-thumb button .li { width: 11px; height: 11px; }
.ai-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ai-img { max-width: 220px; max-height: 180px; border-radius: 12px; object-fit: cover; }
.ai-gen { margin-bottom: 4px; } .ai-genimg { width: min(420px, 100%); border-radius: 16px; display: block; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ai-gen-acts { display: flex; gap: 6px; margin-top: 8px; }
.ai-painting { display: flex; align-items: center; gap: 12px; position: relative; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(236, 72, 153, .15)); overflow: hidden; width: min(420px, 100%); }
.ai-painting i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: linear-gradient(90deg, #22d3ee, #a855f7); transition: width .3s; }
.ai-viewer { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .8); display: grid; place-items: center; animation: fadeIn .15s; } .ai-viewer img { max-width: 90vw; max-height: 90vh; border-radius: 12px; }

/* ---- Settings: taskbar style picker ---- */
.st-tbprev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.st-tbopt { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 2px solid transparent; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.st-tbopt.sel { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.st-tbopt small { color: var(--text-3); font-size: 12px; }
.st-tbpic { width: 100%; height: 80px; border-radius: 10px; margin-bottom: 6px; background: linear-gradient(160deg, #2b2a63, #0d0b22); position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 5px; }
.st-tbpic.floating { padding-bottom: 8px; } .st-tbpic.floating::after { content: ""; position: absolute; bottom: 6px; width: 46%; height: 16px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.st-tbpic.flat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-radius: 0 0 10px 10px; background: rgba(255, 255, 255, .22); }
.st-tbpic i { display: none; }

/* ======================= LIGHT MODE ======================= */
body.light {
  --text: #1a1d26; --text-2: rgba(22, 26, 38, .68); --text-3: rgba(22, 26, 38, .46);
  --glass: rgba(248, 249, 252, .64); --glass-strong: rgba(246, 247, 251, .84);
  --surface: rgba(0, 0, 0, .04); --surface-2: rgba(0, 0, 0, .06); --surface-3: rgba(0, 0, 0, .1);
  --stroke: rgba(0, 0, 0, .09); --stroke-2: rgba(0, 0, 0, .16); --win-bg: rgba(250, 251, 253, .88);
}
body.light .window, body.light .flyout, body.light .menu, body.light .dialog, body.light .toast, body.light .tb-dock, body.light .tb-tray, body.light .glass { color: var(--text); }
body.light .glass { background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45)), var(--glass); border-color: rgba(0, 0, 0, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 60px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08); }
body.light .menu { --glass: rgba(250, 250, 253, .92); }
body.light .window { border-color: rgba(0, 0, 0, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 80px rgba(0, 0, 0, .25), 0 6px 20px rgba(0, 0, 0, .12); }
body.light .wb svg { stroke: #1a1d26; } body.light .wb:hover { background: rgba(0, 0, 0, .06); } body.light .wb.close:hover svg { stroke: #fff; }
body.light :is(.pill, .f-btn, .f-input, .f-select, .qs-tile, .sa-search, .st-card, .sa-card, .sa-lib-row, .x-cmd, .ai-box, .bw-omniwrap, .nt-assist-btn, .pr-tb, .ss-tb, .ss-name, .ss-fx, .pr-sel, .pr-size, .cal-views, .nt-cat, .nt-card, .sw-card, .tb-search, .sm-search, .sdk-n, .ph-btn, .ab-cam, .ai-plus) { background-color: rgba(0, 0, 0, .045); border-color: rgba(0, 0, 0, .1); color: var(--text); }
body.light :is(.pill, .f-btn, .ph-btn, .x-cmd, .sdk-n):hover, body.light :is(.menu button, .sm-item, .sm-app, .nt-item, .tb-app, .tb-btn, .tray-group, .tray-clock, .tray-bell, .x-side-item, .x-item, .st-nav-item, .bw-btn, .bw-tab, .nt-tool, .pt-tool, .pr-tool, .pr-menu, .mu-row, .cal-arow, .fl-si, .ai-item, .sa-nav-item, .st-tile, .hist-row):hover { background-color: rgba(0, 0, 0, .06); }
body.light .f-btn.primary, body.light .qs-tile.on { color: #fff; background-color: var(--accent); }
body.light .qs-tile.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
body.light .f-select option, body.light .pr-sel option { background: #fff; color: #111; }
body.light .bw-toolbar, body.light .bw-bm, body.light .flame-win .bw-toolbar, body.light .flame-win .bw-bm { background: rgba(0, 0, 0, .04); }
body.light .bw-tab.active { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
body.light .nt-editor, body.light .sa-main, body.light .pr-stage { background: rgba(0, 0, 0, .03); }
body.light .nt-panel { background: rgba(0, 0, 0, .025); }
body.light .nt-ring::after { background: #f3f4f8; }
body.light .term { background: #f7f8fb; color: #1a1d26; }
body.light .ss-foot, body.light .x-status, body.light .nt-bar, body.light .nt-side, body.light .cal-top, body.light .cal-side, body.light .pr-notes, body.light .pt-side, body.light .pt-right, body.light .pt-opts { border-color: rgba(0, 0, 0, .08); }
body.light .cal-cell, body.light .cal-slot, body.light .cal-wcol { border-color: rgba(0, 0, 0, .07); }
body.light .cal-wev { background: color-mix(in srgb, var(--c) 25%, #fff); }
body.light .ai-bub, body.light .ai-msg.user .ai-bub { color: var(--text); }
body.light .mu-left { background: rgba(0, 0, 0, .04); }
body.light ::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, .2); }
body.light .tgl { border-color: rgba(0, 0, 0, .45); background: rgba(0, 0, 0, .05); } body.light .tgl i { background: rgba(0, 0, 0, .6); } body.light .tgl.on i { background: #fff; }
body.light input[type=date], body.light input[type=time] { color-scheme: light; }
body.light .fc-line path { stroke: rgba(30, 34, 46, .9); filter: drop-shadow(0 1px 1.5px rgba(255, 255, 255, .7)); }
body.light .lens-dim { background: rgba(240, 242, 250, .5); }
body.light .x-main, body.light .settings, body.light .st-content { color: var(--text); }
.cal-grid .d.has-ev { position: relative; } .cal-grid .d.has-ev::after { content: ''; position: absolute; bottom: 5px; left: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: #f87171; }
.fl-rhead .fl-box { flex: 1; }
/* rounded navigation-arrow pointer: glossy 3D glass */
.fc-arrow, .fc-link { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.fc-arrow .fc-glass { background: linear-gradient(155deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .55) 22%, rgba(190, 205, 240, .28) 55%, rgba(120, 140, 190, .35) 80%, rgba(255, 255, 255, .6) 100%); }
.fc-link .fc-glass { background: linear-gradient(155deg, rgba(255, 255, 255, .95) 0%, rgba(var(--accent-rgb), .55) 40%, rgba(var(--accent-rgb), .8) 85%, rgba(255, 255, 255, .6) 100%); }
.fc-arrow .fc-line path, .fc-link .fc-line path { stroke-width: 1.1; }

/* while windows cover the desktop, keep the wallpaper still so glass doesn't re-blur every frame */
body.has-wins .pw-img.drift, body.has-wins .pw-twinkle i, body.has-wins .pw-img.shimmer { animation-play-state: paused; }
.nt-phbar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 -4px; }
.nt-phbar small { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.nt-hide { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); } .nt-hide .li { width: 15px; height: 15px; } .nt-hide:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.nt-off { align-self: flex-start; opacity: .75; }
.nt-assist-btn.off { opacity: .6; } .nt-assist-btn.off .nt-score-dot { background: #6b7280 !important; box-shadow: none; } .nt-assist-btn.off .nt-count { display: none; }
/* Notes popups: never stretch to the window's height (an app-wide rule makes window children 100% tall) */
.w-body > .nt-pop { height: auto !important; max-height: 260px; bottom: auto; overflow: auto; }
.w-body > .nt-pop.nt-flash { width: auto !important; max-width: 360px; height: auto !important; padding: 6px 8px 6px 12px; border-radius: 999px; font-size: 12.5px; gap: 8px; white-space: nowrap; }
.nt-flash .pill { height: 24px; padding: 0 10px; }
.nt-flash::before { display: none; }

/* profile colour (Settings > Accounts) */
.avatar { background: linear-gradient(135deg, var(--user-c1, var(--accent)), var(--user-c2, var(--accent-2))); }

/* profile picture: replaces the letter on every user avatar */
body.has-pfp .avatar { background: var(--user-pic) center / cover no-repeat, #222; color: transparent !important; }
.st-pfp { display: flex; gap: 8px; }
.st-profile .avatar.pfp-edit { cursor: pointer; position: relative; }
.st-profile .avatar.pfp-edit::after { content: "Change"; position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; }
.st-profile .avatar.pfp-edit:hover::after { opacity: 1; }

/* website edition */
body.web .bw-dlpanel { display: none; }
