:root {
    color-scheme: dark;
    --bg: light-dark(#f6f5fa, #111115);
    --sidebar: light-dark(#fcfbfe, #151519);
    --surface: light-dark(#fff, #1b1b21);
    --inset: light-dark(#f2f1f6, #141418);
    --text: light-dark(#25232d, #f3f1f7);
    --muted: light-dark(#65616f, #b0acbb);
    --quiet: light-dark(#696574, #9894a4);
    --line: light-dark(#dfdce6, #303037);
    --accent: light-dark(#7151ab, #bc9cf8);
    --accent-bg: light-dark(#ebe3fc, #30273f);
    --button: #c8a8ff;
    --button-ink: #251636;
    --radius: 14px;
    --side-width: 228px;
    --pad: clamp(20px, 2.8vw, 48px);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="system"] { color-scheme: light dark; }
:root[data-sidebar="collapsed"] { --side-width: 76px; }
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; background: none; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden], .js-only, .mobile-launch { display: none !important; }
.js .js-only { display: inline-flex !important; }
.skip { position: fixed; z-index: 10; left: 12px; top: -80px; padding: 12px; background: var(--surface); }
.skip:focus { top: 8px; }
.icon { flex: none; width: 19px; height: 19px; display: inline-block; vertical-align: middle; }
.desktop { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 22px; height: 76px; flex: none; font-size: 1.32rem; font-weight: 680; letter-spacing: -.06em; white-space: nowrap; }
.brand img { width: 35px; height: 35px; }
.brand b { font-weight: 500; color: var(--accent); }
.sidebar nav { padding: 17px 13px; flex: 1; overflow: auto; }
.nav-group + .nav-group { margin-top: 31px; }
.nav-group h2, .hero-date { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; }
.nav-group h2 { color: var(--quiet); padding: 0 13px; margin-bottom: 10px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; margin: 2px 0; padding: 8px 13px; border-radius: 8px; color: var(--muted); font-size: .91rem; font-weight: 500; }
.nav-item:hover, .icon-button:hover, .profile summary:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); }
kbd { white-space: nowrap; flex: none; font: 500 .69rem/1.4 ui-monospace, monospace; border: 1px solid var(--line); padding: 0 4px; border-radius: 4px; margin-left: auto; color: var(--quiet); }
.profile { position: relative; border-top: 1px solid var(--line); padding: 11px; }
.profile summary { display: flex; list-style: none; align-items: center; gap: 11px; padding: 8px; border-radius: 8px; }
.profile summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 50%; background: #463753; color: #ead3f8; border: 1px solid #675074; font-size: .95rem; font-weight: 650; text-transform: uppercase; }
.identity { min-width: 0; flex: 1; }
.identity strong, .identity small, .profile-menu small { display: block; }
.identity strong { font-size: .9rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.identity small, .profile-menu small { font-size: .78rem; color: var(--quiet); margin-top: 3px; }
.profile summary > .icon { width: 14px; color: var(--quiet); }
.profile-menu { position: absolute; z-index: 3; bottom: calc(100% + 4px); left: 10px; width: 205px; padding: 15px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; box-shadow: 0 8px 24px #0003; overflow-wrap: anywhere; }
.profile-menu a { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; font-size: .875rem; }
.workspace { min-width: 0; }
.topbar { height: 66px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.crumb, .top-actions, .top-clock { display: flex; align-items: center; }
.crumb, .top-actions { gap: 14px; }
.crumb { font-size: .86rem; color: var(--muted); }
.crumb strong { font-weight: 550; color: var(--text); }
.slash { color: var(--quiet); opacity: .65; }
.divider { width: 1px; height: 17px; background: var(--line); }
.top-clock { white-space: nowrap; gap: 8px; color: var(--muted); font-size: .81rem; font-variant-numeric: tabular-nums; }
.top-clock .icon { width: 15px; height: 15px; }
.icon-button, .mobile-launch { display: inline-grid; place-items: center; justify-content: center; align-items: center; width: 34px; height: 34px; padding: 0; color: var(--muted); border-radius: 7px; }
.icon-button span { display: inline-flex; }
.when-light, [data-theme="light"] .when-dark { display: none !important; }
[data-theme="light"] .when-light { display: inline-flex !important; }
@media (prefers-color-scheme: light) {
    [data-theme="system"] .when-dark { display: none !important; }
    [data-theme="system"] .when-light { display: inline-flex !important; }
}
main { max-width: 1570px; margin: 0 auto; padding: 28px var(--pad) 36px; }
main:focus { outline: none; }
.hero { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; border: 1px solid #514262; min-height: clamp(225px, 18.6vw, 290px); display: flex; align-items: center; background: #302042; color: #faf7ff; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("art/orbit.png") center 54% / cover; image-rendering: pixelated; }
.hero::after { background: linear-gradient(90deg, #1a142ae8, #21183299 33%, #22143212 62%, transparent); }
.hero-copy { padding: 30px clamp(22px, 3vw, 46px); }
.hero-date { color: #d9c9f0; display: flex; align-items: center; gap: 8px; font-size: .72rem; line-height: 1.45; }
.hero-date .icon { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 4.2rem); font-weight: 650; line-height: 1.12; letter-spacing: -.065em; margin: 12px 0 7px; }
.hero h1 span { color: #c09be9; }
.hero p { color: #ded7e8; font-size: .96rem; line-height: 1.5; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; padding: 11px 16px; min-height: 38px; font-size: .86rem; line-height: 1.2; font-weight: 630; }
.primary-button { background: var(--button); color: var(--button-ink); }
.primary-button:hover { background: #d8bfff; }
.hero .primary-button { margin-top: 22px; }
.primary-button .icon, .secondary-button .icon { width: 16px; height: 16px; }
.secondary-button { background: var(--surface); border: 1px solid var(--line); }
.secondary-button:hover { border-color: var(--accent); }
.dashboard-section { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2, .dialog-head h2 { font-size: 1.22rem; font-weight: 620; letter-spacing: -.04em; }
.section-meta { color: var(--quiet); font-size: .79rem; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.app-card, .tool-card, .placeholder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.app-card { overflow: hidden; display: block; }
.app-card:hover { border-color: var(--tint); }
.chat { --tile: light-dark(#f1eafa, #2b2237); --tint: light-dark(#ae85ce, #8c68ab); }
.arcade { --tile: light-dark(#e7f2ea, #1d3029); --tint: light-dark(#619c78, #5c997c); }
.watch { --tile: light-dark(#f8ede5, #352721); --tint: light-dark(#bc835f, #ae8063); }
.browser-lab { --tile: light-dark(#e8effa, #202d3c); --tint: light-dark(#688cb0, #638cab); }
.card-art { height: clamp(91px, 8.1vw, 128px); display: grid; place-items: center; background-color: var(--tile); position: relative; isolation: isolate; }
.card-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(circle, color-mix(in srgb,var(--tint) 31%,transparent) .85px, transparent 1px); background-size: 9px 9px; mask-image: radial-gradient(ellipse 80% 100% at center, black, #0006); }
.card-art img, .launch-results img { image-rendering: pixelated; }
.card-art img { filter: drop-shadow(0 5px 0 #0002); }
.card-info { padding: 15px 16px 17px; border-top: 1px solid var(--line); }
.card-info h3 { font-size: 1.025rem; font-weight: 620; letter-spacing: -.025em; }
.card-info p { margin-top: 5px; font-size: .81rem; line-height: 1.45; color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.tool-card { padding: 20px 21px; min-width: 0; }
.tool-card h3 { display: flex; gap: 9px; align-items: center; font-size: .91rem; font-weight: 570; }
.tool-card h3 .icon { width: 17px; height: 17px; color: var(--muted); }
.clock-value { font-size: 2.15rem; font-weight: 530; letter-spacing: -.055em; font-variant-numeric: tabular-nums; margin: 14px 0 2px; }
.clock-value small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.clock-foot { color: var(--quiet); font-size: .78rem; line-height: 1.6; }
.dot-sep { margin: 0 6px; }
.appearance p { color: var(--muted); font-size: .845rem; margin: 13px 0 10px; line-height: 1.5; }
.theme-picker { display: inline-flex; max-width: 100%; border-radius: 8px; border: 1px solid var(--line); padding: 3px; background: var(--inset); gap: 3px; }
.theme-picker button { border: 1px solid transparent; border-radius: 5px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.theme-picker .icon { width: 14px; height: 14px; }
.theme-picker button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); border-color: color-mix(in srgb,var(--accent) 34%,transparent); }
.theme-picker button:hover { color: var(--text); }
.page-heading { margin: 12px 0 26px; }
.page-heading h1, .placeholder h1 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.055em; font-weight: 650; }
.page-heading p, .placeholder p { margin: 10px 0 20px; color: var(--muted); line-height: 1.6; }
.settings-stack { display: grid; gap: 16px; max-width: 700px; }
.settings-stack h2 { font-size: 1.1rem; }
.settings-form { display: grid; justify-items: start; gap: 10px; margin-top: 15px; }
.settings-form label { font-size: .875rem; color: var(--muted); }
.settings-form input, .settings-form select, .search-field { background: var(--inset); border: 1px solid var(--line); border-radius: 8px; }
.settings-form input, .settings-form select { padding: 9px 12px; width: min(100%, 340px); }
.settings-form select { padding-right: 30px; }
.placeholder { overflow: hidden; max-width: 720px; }
.placeholder .card-art { height: 175px; }
.placeholder-copy { padding: 28px; }
.placeholder h1 { margin-top: 8px; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); }
dialog::backdrop { background: #090810b3; }
#launcher-dialog { padding: 22px; width: min(480px, calc(100% - 28px)); box-shadow: 0 16px 70px #0005; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.search-field { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: var(--quiet); }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { border: 0; background: transparent; width: 100%; outline: none; min-width: 0; }
.launch-results { margin-top: 12px; }
.launch-results a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; }
.launch-results a:hover, .launch-results a:focus-visible { background: var(--accent-bg); }
.launch-results strong, .launch-results small { display: block; }
.launch-results small, #no-results { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.launch-results .icon { margin-left: auto; color: var(--quiet); width: 14px; }
#no-results { padding: 15px 0; }
#mobile-nav { margin: 0; width: min(285px, 90vw); max-width: none; height: 100svh; max-height: none; padding: 0; border: 0; border-radius: 0; }
.drawer-close { position: absolute; z-index: 2; top: 21px; right: 10px; }
.feedback:not(:empty) { position: fixed; bottom: 20px; right: 20px; max-width: min(390px, 90vw); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; box-shadow: 0 6px 20px #0003; }
@media (min-width: 761px) {
    [data-sidebar="collapsed"] .brand { padding: 0; justify-content: center; }
    [data-sidebar="collapsed"] :is(.brand span,.nav-text,.nav-group h2,.identity,.profile summary > .icon) { display: none !important; }
    [data-sidebar="collapsed"] .nav-item, [data-sidebar="collapsed"] .profile summary { justify-content: center; }
    [data-sidebar="collapsed"] .nav-group + .nav-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
}
@media (min-width: 761px) and (max-width: 1090px) {
    :root { --side-width: 188px; --pad: 20px; }
    .app-grid { gap: 10px; }
    .card-info { padding: 13px 11px; }
    .theme-picker button { padding-inline: 6px; }
}
@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .desktop { display: block; }
    .desktop > .sidebar { position: static; height: auto; border-right: 0; }
    .js .desktop > .sidebar { display: none; }
    .desktop > .sidebar nav, .desktop > .sidebar .profile { display: none; }
    .topbar { height: 56px; }
    .mobile-launch { display: inline-flex !important; }
    .top-actions, .crumb { gap: 8px; }
    main { padding-top: 18px; }
    .hero { min-height: 225px; }
    .hero::before { background-position: 65% center; }
    .hero::after { background: linear-gradient(90deg,#20182ed9,#21183180 60%,transparent); }
    .tool-card { padding: 17px; }
    .tools-grid { grid-template-columns: repeat(auto-fit,minmax(min(245px,100%),1fr)); }
    .dashboard-section { margin-top: 24px; }
}
@media (max-width: 480px) {
    :root { --pad: 14px; }
    .hero-copy { padding: 25px 17px; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { max-width: 225px; }
    .hero::before { background-position: 69% center; }
    .app-grid { gap: 10px; }
    .card-info { padding: 11px; }
    .card-info p { font-size: .79rem; }
    .section-heading { margin-bottom: 11px; }
    .top-actions .divider, .crumb-root, .slash { display: none; }
}
@media (max-width: 760px) {
    html:not(.js) .desktop > .sidebar nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 var(--pad) 14px; }
    html:not(.js) .desktop > .sidebar .nav-group { margin: 0; }
    html:not(.js) .desktop > .sidebar .nav-group h2 { display: none; }
    html:not(.js) .desktop > .sidebar .nav-group:nth-child(2) { display: none; }
}
