:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: #0c1210;
  --panel-2: #101714;
  --panel-soft: #151c19;
  --line: rgba(187, 210, 200, 0.16);
  --line-bright: rgba(194, 217, 205, 0.25);
  --text: #f5f7f6;
  --muted: #8e9994;
  --accent-h: 158;
  --accent-s: 76%;
  --accent-soft-s: 54%;
  --accent-rgb: 35 226 160;
  --accent-50: hsl(var(--accent-h) var(--accent-soft-s) 96%);
  --accent-100: hsl(var(--accent-h) var(--accent-soft-s) 89%);
  --accent-200: hsl(var(--accent-h) 67% 78%);
  --accent-300: hsl(var(--accent-h) 72% 67%);
  --accent-400: hsl(var(--accent-h) var(--accent-s) 52%);
  --accent-500: hsl(var(--accent-h) var(--accent-s) 43%);
  --accent-600: hsl(var(--accent-h) 74% 35%);
  --accent-700: hsl(var(--accent-h) 72% 27%);
  --accent-800: hsl(var(--accent-h) 66% 20%);
  --accent-900: hsl(var(--accent-h) 58% 13%);
  --accent-foreground: #f4fff9;
  --accent-ink: hsl(var(--accent-h) 70% 15%);
  --green: var(--accent-400);
  --green-deep: var(--accent-700);
  --danger: #ff6c70;
  --radius: 20px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-accent="ocean"] { --accent-h: 202; --accent-s: 78%; --accent-soft-s: 58%; --accent-rgb: 42 169 232; --accent-foreground: #f4fbff; }
html[data-accent="iris"] { --accent-h: 263; --accent-s: 68%; --accent-soft-s: 50%; --accent-rgb: 132 94 231; --accent-foreground: #fbf8ff; }
html[data-accent="amber"] { --accent-h: 36; --accent-s: 84%; --accent-soft-s: 62%; --accent-rgb: 230 157 35; --accent-300: hsl(36 80% 58%); --accent-foreground: #fffaf0; --accent-ink: #2b1b05; }
html[data-accent="sakura"] { --accent-h: 344; --accent-s: 76%; --accent-soft-s: 56%; --accent-rgb: 224 82 124; --accent-foreground: #fff7fa; }

* { box-sizing: border-box; }
html, body { min-width: 1180px; min-height: 700px; margin: 0; background: #030504; color: var(--text); }
body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -30%, rgba(37, 86, 65, .12), transparent 43%),
    linear-gradient(90deg, #07100b 0, #020403 14%, #020302 86%, #07100b 100%);
}
button, input { font: inherit; }
button { color: inherit; }
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell {
  width: min(1900px, calc(100vw - 36px));
  height: min(1020px, calc(100vh - 32px));
  margin: max(16px, calc((100vh - 1020px) / 2)) auto;
  display: grid;
  grid-template-columns: 280px minmax(780px, 1fr) 400px;
  gap: 18px;
}

.panel {
  background: linear-gradient(145deg, rgba(17, 24, 21, .97), rgba(8, 13, 11, .98));
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 24px 70px rgba(0,0,0,.35);
}

.sidebar { padding: 22px 17px 15px; display: flex; flex-direction: column; min-height: 0; }
.brand { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px 18px; letter-spacing: -.02em; }
.brand strong { font-size: 21px; font-weight: 650; }
.brand span { font-size: 14px; font-weight: 650; color: #dfe3e1; }
.primary-nav { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.nav-item {
  position: relative; width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: transparent; display: flex; align-items: center; gap: 14px; color: #9aa39f; cursor: pointer; text-align: left; font-size: 15px; transition: .2s ease;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.035); }
.nav-item.active { color: #f3f6f5; background: linear-gradient(90deg, rgba(255,255,255,.11), rgba(255,255,255,.055)); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 5px 18px rgba(0,0,0,.25); }
.nav-item.active > svg:not(.nav-arrow) { display: none; }
.nav-arrow { width: 14px !important; margin-left: auto; opacity: .65; }
.live-dot { width: 16px; height: 16px; border: 1px solid rgb(var(--accent-rgb) / .6); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 12px rgb(var(--accent-rgb) / .6); }
.live-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sidebar-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.path-heading { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 8px; color: #858e8a; font-size: 12px; }
.path-heading button, .profile-row button { border: 0; background: transparent; color: #8c9692; cursor: pointer; }
.vault-row { width: 100%; height: 48px; border: 0; border-radius: 12px; padding: 0 12px; display: flex; align-items: center; gap: 10px; color: #d9dddb; background: rgba(255,255,255,.045); font-size: 12px; cursor: pointer; }
.vault-row .diamond { font-size: 11px; color: #eef2f0; }
.vault-row > span:not(.diamond) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-row svg { margin-left: auto; width: 13px; transform: rotate(90deg); }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; }
.avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #68716d, #222824); display: grid; place-items: center; font-size: 11px; border: 1px solid rgba(255,255,255,.1); }
.avatar i { position: absolute; right: -1px; bottom: 0; width: 8px; height: 8px; border: 2px solid #101512; background: var(--green); border-radius: 50%; }
.profile-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.profile-row b { font-size: 13px; font-weight: 550; }.profile-row small { color: #7f8a85; font-size: 10px; margin-top: 2px; }.profile-row button { margin-left: auto; }

.core { min-width: 0; display: grid; grid-template-rows: 70px 166px minmax(0, 1fr); gap: 12px; }
.topbar { display: grid; grid-template-columns: minmax(270px, .9fr) minmax(360px, 1.2fr) auto; gap: 20px; align-items: center; }
.page-title h1 { margin: 0; font-size: 28px; font-weight: 680; letter-spacing: -.04em; }
.page-title p { margin: 4px 0 0; color: #808985; font-size: 12px; letter-spacing: .03em; }
.search-box { height: 45px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid rgba(196,218,207,.12); background: rgba(15,20,18,.82); border-radius: 23px; box-shadow: inset 0 1px rgba(255,255,255,.03), 0 8px 25px rgba(0,0,0,.24); }
.search-box svg { width: 14px; color: #84908b; }.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: #d5dad7; background: transparent; font-size: 13px; }.search-box input::placeholder { color: #79827e; }
.search-box kbd { color: #78817d; background: transparent; font-size: 11px; font-family: inherit; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.round-btn, .scan-btn { border: 1px solid var(--line); background: linear-gradient(145deg, #141b18, #0b100e); box-shadow: inset 0 1px rgba(255,255,255,.03); cursor: pointer; }
.round-btn { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; color: #d7dcda; }.round-btn svg { width: 17px; }.round-btn.active { color: var(--accent-foreground); border-color: rgb(var(--accent-rgb) / .4); background: linear-gradient(145deg, var(--accent-700), var(--accent-900)); }
.theme-control { position: relative; }
.theme-toggle { position: relative; font: 600 18px/1 var(--font); transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease; }
.theme-toggle:hover { color: var(--accent-foreground); border-color: rgb(var(--accent-rgb) / .42); background: linear-gradient(145deg, var(--accent-800), var(--accent-900)); transform: rotate(8deg); }
.theme-toggle::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border: 2px solid #0d1310; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgb(var(--accent-rgb) / .55); }
.theme-switching .theme-toggle-icon { animation: themeIconSwitch .42s cubic-bezier(.16,1,.3,1); }
.scan-btn { height: 44px; border-radius: 22px; padding: 0 17px; display: flex; align-items: center; gap: 8px; color: var(--accent-foreground); background: linear-gradient(145deg, var(--accent-700), var(--accent-900)); border-color: rgb(var(--accent-rgb) / .28); font-size: 13px; }.scan-btn svg { width: 16px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { --metric-rx: 0deg; --metric-ry: 0deg; --metric-lift: 0px; --metric-scale: 1; --pointer-x: 78%; --pointer-y: 18%; position: relative; overflow: hidden; border-radius: 28px; padding: 21px 24px; border: 1px solid rgba(255,255,255,.14); isolation: isolate; box-shadow: inset 0 1px rgba(255,255,255,.13), 0 15px 35px rgba(0,0,0,.3); transform: perspective(900px) translateY(var(--metric-lift)) rotateX(var(--metric-rx)) rotateY(var(--metric-ry)) scale(var(--metric-scale)); transform-style: preserve-3d; transform-origin: 50% 70%; cursor: pointer; outline: none; will-change: transform, box-shadow; transition: transform .42s cubic-bezier(.16,1,.3,1), border-color .32s ease, box-shadow .42s cubic-bezier(.16,1,.3,1), filter .32s ease; }
.metric-card::before { content: ""; position: absolute; inset: -27%; z-index: -2; filter: blur(24px); opacity: .95; transform-origin: 72% 54%; will-change: transform; }
.metric-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.24) 0 3%, transparent 27%), radial-gradient(ellipse at 88% 10%, rgba(255,255,255,.1), transparent 35%), linear-gradient(118deg, rgba(255,255,255,.09), transparent 36%, rgba(0,0,0,.22)); opacity: .78; transition: opacity .3s ease, background-position .2s ease; }
.metric-card:hover, .metric-card.hovering { --metric-lift: -6px; --metric-scale: 1.015; z-index: 4; border-color: rgba(255,255,255,.34); box-shadow: inset 0 1px rgba(255,255,255,.22), 0 22px 48px rgba(0,0,0,.42), 0 0 24px rgb(var(--accent-rgb) / .08); filter: brightness(1.055) saturate(1.08); }
.metric-card:hover::before, .metric-card.hovering::before { animation-duration: calc(var(--flow-duration, 4s) * .68); }
.metric-card:hover::after, .metric-card.hovering::after { opacity: 1; }
.metric-card:focus-visible { box-shadow: inset 0 1px rgba(255,255,255,.22), 0 0 0 2px var(--accent-300), 0 0 0 6px rgb(var(--accent-rgb) / .12), 0 22px 48px rgba(0,0,0,.42); }
.metric-card.selected { --metric-lift: -4px; --metric-scale: 1.012; z-index: 3; border-color: var(--accent-300); box-shadow: inset 0 1px rgba(255,255,255,.23), 0 0 0 1px rgb(var(--accent-rgb) / .32), 0 20px 46px rgba(0,0,0,.4), 0 0 28px rgb(var(--accent-rgb) / .16); }
.metric-card.selected::after { opacity: 1; box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .16); }
.metric-card > .metric-select-mark { position: absolute; z-index: 3; top: 14px; right: 14px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgb(var(--accent-rgb) / .35); border-radius: 999px; color: var(--accent-foreground); background: color-mix(in srgb, var(--accent-800) 78%, transparent); box-shadow: 0 6px 18px rgba(0,0,0,.26), 0 0 14px rgb(var(--accent-rgb) / .14); backdrop-filter: blur(9px); font: 700 7px/1 var(--font); letter-spacing: .02em; opacity: 0; transform: translateY(-5px) scale(.88); pointer-events: none; transition: opacity .28s ease, transform .38s cubic-bezier(.16,1,.3,1); }
.metric-card.light .metric-select-mark, .metric-card[data-material="chrome"] .metric-select-mark, .metric-card[data-material="cyan"] .metric-select-mark, .metric-card[data-material="original"] .metric-select-mark { color: var(--accent-ink); background: color-mix(in srgb, var(--accent-100) 78%, transparent); border-color: rgb(var(--accent-rgb) / .24); }
.metric-card.selected .metric-select-mark { opacity: 1; transform: translateY(0) scale(1); }
.metric-card.selected:hover, .metric-card.selected.hovering { --metric-lift: -7px; --metric-scale: 1.02; }
.metric-card.selection-kick .metric-select-mark { animation: metricMarkPop .52s cubic-bezier(.16,1,.3,1); }
.metric-card.light { color: #111815; background: #eeefee; }.metric-card.light::before { background: radial-gradient(circle at 75% 48%, #ffafbc 0 15%, transparent 38%), radial-gradient(circle at 52% 30%, #eb9ed1 0 11%, transparent 32%), radial-gradient(circle at 90% 80%, #ff906a, transparent 32%), #f5f6f5; }
.metric-card.blue { background: #101b29; }.metric-card.blue::before { background: radial-gradient(circle at 78% 28%, #344ee7, transparent 28%), radial-gradient(circle at 55% 75%, #0d67bd, transparent 32%), radial-gradient(circle at 90% 68%, #934e79, transparent 26%), #111b25; }
.metric-card.ember { background: #29231f; }.metric-card.ember::before { background: radial-gradient(circle at 86% 76%, #a15c66, transparent 25%), radial-gradient(circle at 33% 20%, #50311f, transparent 35%), radial-gradient(circle at 56% 60%, #313a43, transparent 30%), #211c19; }
.metric-card.cobalt { background: #0b203c; }.metric-card.cobalt::before { background: radial-gradient(circle at 82% 28%, #2059ed, transparent 25%), radial-gradient(circle at 34% 85%, #114e98, transparent 36%), #091a31; }
.metric-card > span { font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .72; letter-spacing: .02em; }.metric-card h3 { margin: 6px 0 5px; font-size: 15px; font-weight: 650; }.metric-card strong { display: flex; align-items: baseline; gap: 8px; font: 500 40px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }.metric-card strong small { font: 11px/1.2 var(--font); opacity: .66; }.metric-card p { margin: 8px 0 0; font-size: 10px; opacity: .7; }.metric-card em { color: var(--accent-500); font-style: normal; font-weight: 700; }.metric-card .danger { color: var(--danger); }

.workspace-grid { display: grid; grid-template-columns: 340px minmax(520px, 1fr); gap: 14px; min-height: 0; }
.queue-pane { min-height: 0; display: flex; flex-direction: column; }
.section-heading { height: 42px; display: flex; align-items: start; justify-content: space-between; }.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }.section-heading span { color: #6e7773; font-size: 11px; padding-top: 4px; }
.queue-tabs { display: flex; gap: 8px; height: 38px; border-bottom: 1px solid rgba(255,255,255,.07); }.queue-tabs button { height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #777f7b; font-size: 11px; cursor: pointer; }.queue-tabs button.active { color: white; background: rgba(255,255,255,.055); }
.queue-groups { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; overflow: auto; scrollbar-width: none; }.queue-groups::-webkit-scrollbar { display: none; }
.queue-group { border-radius: 11px; border: 1px solid rgba(255,255,255,.065); background: rgba(4,6,5,.72); overflow: hidden; box-shadow: 0 7px 17px rgba(0,0,0,.2); }
.group-head { width: 100%; height: 40px; padding: 0 10px; border: 0; background: rgba(9,12,11,.92); display: flex; justify-content: space-between; align-items: center; color: #d6dbd8; cursor: pointer; font-size: 11px; }.group-head > span { display: flex; align-items: center; gap: 7px; }.group-head i { width: 5px; height: 5px; border-radius: 50%; background: var(--group-color); box-shadow: 0 0 9px var(--group-color); }.group-head b { color: #89928e; font-weight: 500; }.group-head svg { width: 13px; transform: rotate(90deg); transition: transform .2s; }.queue-group.open .group-head svg { transform: rotate(-90deg); }
.group-items { display: none; }.queue-group.open .group-items { display: block; }
.queue-item { position: relative; width: 100%; height: 45px; border: 0; border-top: 1px solid rgba(255,255,255,.04); padding: 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: #050706; color: #aeb6b2; text-align: left; cursor: pointer; }.queue-item:hover { background: #0b110e; }.queue-item span { font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.queue-item em { justify-self: end; color: var(--accent-300); background: rgb(var(--accent-rgb) / .13); border-radius: 5px; font-size: 9px; padding: 2px 6px; font-style: normal; }.queue-item em.reading { color: #f2b956; background: rgba(231,160,40,.12); }.queue-item small { position: absolute; right: 10px; bottom: 2px; color: #6e7773; font-size: 8px; }

.carousel-panel { position: relative; min-height: 0; overflow: hidden; border-radius: 17px; display: grid; grid-template-rows: 58px minmax(330px, 1fr) 132px; }
.carousel-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.04); }.carousel-toolbar > div { display: flex; gap: 8px; }
.pill-btn, .icon-btn { height: 32px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.025); color: #aeb6b2; font-size: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; }.pill-btn svg { width: 13px; }.pill-btn.active { color: var(--accent-foreground); background: linear-gradient(145deg, color-mix(in srgb, var(--accent-700) 78%, transparent), color-mix(in srgb, var(--accent-900) 82%, transparent)); border-color: rgb(var(--accent-rgb) / .27); }.pill-btn.quiet { color: #88918d; }.icon-btn { width: 34px; padding: 0; justify-content: center; font-size: 18px; }
.play-toggle .pause-path { display: none; }.pill-btn.playing .play-path { display: none; }.pill-btn.playing .pause-path { display: initial; }
.live-badge { position: absolute; z-index: 30; right: 18px; top: 66px; height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 10px; background: color-mix(in srgb, var(--accent-900) 85%, transparent); border: 1px solid rgb(var(--accent-rgb) / .24); color: var(--accent-200); font-size: 10px; box-shadow: 0 8px 25px rgba(0,0,0,.35); }.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.8s ease infinite; }
.carousel-viewport { position: relative; min-height: 0; overflow: hidden; outline: 0; cursor: grab; background: radial-gradient(ellipse at 62% 68%, rgb(var(--accent-rgb) / .08), transparent 30%), linear-gradient(180deg, rgba(17,23,20,.65), rgba(7,11,9,.82)); perspective: 1050px; touch-action: pan-y; }.carousel-viewport:active { cursor: grabbing; }.carousel-viewport::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.009) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.008) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, transparent, black 24%, black 75%, transparent); }
.ambient-glow { position: absolute; z-index: 0; left: calc(51% + 85px); bottom: 32px; width: 340px; height: 70px; transform: translateX(-50%); background: rgb(var(--accent-rgb) / .3); filter: blur(55px); border-radius: 50%; }
.completion-card { position: absolute; z-index: 26; left: 8%; top: 12%; width: 126px; height: 146px; padding: 20px 14px; border-radius: 13px; color: #111715; transform: rotate(-5deg); background: linear-gradient(150deg, rgba(236,239,237,.82), rgba(99,108,103,.62)); border: 1px solid rgba(255,255,255,.4); box-shadow: inset 0 1px rgba(255,255,255,.45), 0 16px 32px rgba(0,0,0,.42); backdrop-filter: blur(13px); }.completion-card span, .completion-card small { display: block; font-size: 9px; }.completion-card strong { display: block; margin-top: 8px; font: 600 32px/1 ui-monospace, monospace; }.completion-card small { margin-top: 3px; color: #48514d; }.completion-card > i { display: block; height: 4px; margin-top: 15px; background: rgba(10,30,22,.15); border-radius: 4px; overflow: hidden; }.completion-card b { display: block; width: 87%; height: 100%; background: var(--accent-400); box-shadow: 0 0 8px rgb(var(--accent-rgb) / .75); transition: width .5s ease; }
.card-scene { position: absolute; left: 51%; top: 47%; width: 620px; height: 236px; transform: translate(-50%, -43%); transform-style: preserve-3d; }
.doc-card { --x: 0px; --y: 0px; --z: 0px; --rotate: 0deg; --scale: 1; --opacity: 1; position: absolute; left: calc(50% - 67px); top: 12px; width: 134px; height: 196px; border-radius: 12px; padding: 0; overflow: hidden; transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--rotate)) scale(var(--scale)); transform-origin: center bottom; opacity: var(--opacity); transition: transform .72s cubic-bezier(.18,.77,.22,1), opacity .5s ease, filter .5s ease; background: linear-gradient(150deg, #ecefed, #a7afab); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 22px 34px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.75); color: #19201d; cursor: pointer; backface-visibility: hidden; }.doc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,.42), transparent 34%, rgba(255,255,255,.05)); pointer-events: none; }.doc-card.selected { filter: saturate(1.1); }.doc-card.green { color: var(--accent-foreground); background: linear-gradient(145deg, var(--accent-300) 0%, var(--accent-500) 58%, var(--accent-700) 100%); border-color: var(--accent-200); box-shadow: 0 27px 47px rgba(0,0,0,.46), 0 0 42px rgb(var(--accent-rgb) / .34), inset 0 1px rgba(255,255,255,.48); }.doc-card.ice { background: linear-gradient(150deg, #eef2f0, #a8b2ad); }.doc-card.warm { background: linear-gradient(150deg, #dbd9d3, #7b7c77); }.doc-card.silver { background: linear-gradient(150deg, #dce0de, #747c78); }.paper-shine { position: absolute; inset: 0; background: radial-gradient(circle at 78% 9%, rgba(255,255,255,.65) 0 2px, transparent 3px), linear-gradient(120deg, rgba(255,255,255,.3), transparent 28%); }.doc-kicker { position: absolute; top: 12px; left: 13px; font: 500 8px/1.2 ui-monospace, monospace; opacity: .6; letter-spacing: .06em; }.doc-lines { position: absolute; top: 42px; left: 19px; right: 19px; display: flex; flex-direction: column; gap: 7px; opacity: .24; }.doc-lines i { height: 2px; border-radius: 2px; background: currentColor; }.doc-lines i:nth-child(2) { width: 88%; }.doc-lines i:nth-child(3) { width: 70%; }.doc-lines i:nth-child(4) { margin-top: 10px; }.doc-lines i:nth-child(5) { width: 76%; }.doc-symbol { position: absolute; top: 84px; left: 0; right: 0; text-align: center; font: 500 18px/1 ui-monospace, monospace; opacity: .65; }.doc-copy { position: absolute; left: 12px; right: 12px; bottom: 14px; text-align: center; }.doc-copy strong { display: block; font-size: 12px; }.doc-copy small { display: block; margin-top: 5px; font-size: 7px; opacity: .58; }
.scroll-tip { position: absolute; z-index: 27; left: 50%; bottom: 7px; transform: translateX(-50%); min-width: 290px; height: 42px; display: grid; grid-template-columns: 27px minmax(170px, 1fr) auto; align-items: center; gap: 8px; padding: 0 11px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(5,9,7,.72); backdrop-filter: blur(12px); box-shadow: 0 9px 22px rgba(0,0,0,.35); }.scroll-tip p { margin: 0; color: #909a95; font-size: 8px; }.scroll-tip strong { width: 52px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.08); font-size: 9px; line-height: 1.3; }.mouse-icon { width: 18px; height: 25px; border: 1px solid #59645f; border-radius: 10px; display: grid; place-items: start center; padding-top: 4px; }.mouse-icon i { width: 2px; height: 5px; border-radius: 2px; background: #81908a; animation: wheel 1.7s ease infinite; }
.timeline-panel { position: relative; padding: 12px 15px 0; border-top: 1px solid rgba(255,255,255,.07); background: rgba(5,8,7,.88); }.timeline-head { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; font-size: 10px; }.timeline-head b { font-size: 12px; }.timeline-head > span { color: #a5aeaa; text-align: center; }.timeline-head svg { width: 12px; height: 12px; vertical-align: -2px; }.timeline-head button, .scene-actions button { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: #9ca5a1; border-radius: 9px; cursor: pointer; }.timeline-head button { height: 28px; margin-left: 5px; padding: 0 10px; font-size: 9px; }
.timeline-dates { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; margin-top: 8px; }.timeline-dates button { position: relative; height: 22px; padding: 0; border: 0; background: none; color: #77817c; font: 8px/1 ui-monospace, monospace; cursor: pointer; }.timeline-dates button.active { color: var(--accent-foreground); }.timeline-dates button i { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-foreground); background: var(--accent-600); border: 1px solid var(--accent-300); font-size: 7px; font-style: normal; box-shadow: 0 0 10px rgb(var(--accent-rgb) / .35); }
.timeline-track { position: absolute; left: 22px; right: 22px; bottom: 6px; height: 7px; background: rgba(255,255,255,.05); border-radius: 8px; overflow: hidden; }.timeline-track i { display: block; height: 100%; width: 53%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-700), var(--accent-300)); box-shadow: 0 0 13px rgb(var(--accent-rgb) / .4); transition: width .5s ease; }
.scene-actions { position: absolute; z-index: 40; left: 50%; bottom: -8px; transform: translateX(-50%); height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 15px; background: rgba(9,14,12,.94); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 10px 24px rgba(0,0,0,.5); }.scene-actions button { height: 34px; padding: 0 12px; font-size: 9px; white-space: nowrap; }.scene-actions button.primary { color: var(--accent-foreground); background: linear-gradient(145deg, var(--accent-500), var(--accent-700)); border-color: rgb(var(--accent-rgb) / .45); }

.details-panel { min-height: 0; display: grid; grid-template-rows: 64px minmax(0,1fr) 70px; overflow: hidden; }
.details-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.015); }.details-heading h2 { margin: 0; font-size: 17px; }.details-heading button { border: 0; background: transparent; color: #a9b3ae; cursor: pointer; }.details-heading svg { width: 16px; }
.details-content { padding: 20px 20px; overflow: auto; scrollbar-width: none; }.details-content::-webkit-scrollbar { display: none; }.details-content code { display: block; color: #89938e; font: 9px/1.2 ui-monospace, monospace; letter-spacing: .05em; margin-bottom: 16px; }.detail-title-row { display: flex; align-items: center; gap: 10px; }.detail-title-row h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }.detail-title-row span { color: var(--accent-300); font-size: 9px; white-space: nowrap; }.detail-description { margin: 9px 0 22px; color: #a9b1ad; font-size: 12px; line-height: 1.65; }
.metadata { display: flex; flex-direction: column; gap: 14px; margin: 0; }.metadata > div { display: grid; grid-template-columns: 80px 1fr; align-items: center; font-size: 11px; }.metadata dt { color: #7d8782; }.metadata dd { margin: 0; display: flex; align-items: center; gap: 7px; color: #bec5c1; }.metadata svg { width: 13px; height: 13px; color: #8f9994; }.mini-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #343d39; color: #eef2f0; font-size: 9px; }.status-dot, .priority-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgb(var(--accent-rgb) / .5); }.priority-dot { background: #ff706d; box-shadow: 0 0 8px rgba(255,100,100,.35); }.tag-list { flex-wrap: wrap; }.tag-list span { padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.045); color: #aeb8b3; font-size: 9px; }
.ai-note { margin-top: 25px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: inset 0 1px rgba(255,255,255,.025); }.ai-note h3 { margin: 0 0 8px; font-size: 13px; }.ai-note ul { margin: 0 0 11px; padding-left: 15px; color: #a7b0ab; font-size: 10px; line-height: 1.8; }.ai-note button { height: 27px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255,255,255,.07); color: #c0c8c4; font-size: 9px; cursor: pointer; }
.detail-actions { display: grid; grid-template-columns: 1fr 1.12fr 42px; gap: 8px; align-items: center; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(5,9,7,.45); }.detail-actions button { height: 42px; border-radius: 13px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); color: #c4ccc8; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; }.detail-actions svg { width: 14px; }.detail-actions button.primary { color: var(--accent-foreground); border-color: rgb(var(--accent-rgb) / .35); background: linear-gradient(145deg, var(--accent-600), var(--accent-800)); }.detail-actions button.more { padding: 0; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 15px); padding: 10px 16px; border-radius: 12px; border: 1px solid rgb(var(--accent-rgb) / .25); background: color-mix(in srgb, var(--accent-900) 94%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.45); color: var(--accent-200); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Fluid card motion and restrained active-card lighting */
.ambient-glow { background: rgb(var(--accent-rgb) / .16); }
.card-aura { position: absolute; z-index: 2; left: calc(51% + 85px); top: 50%; width: 258px; height: 238px; transform: translate(-50%, -48%); pointer-events: none; }
.card-aura i { position: absolute; inset: -12% -5% 0; border-radius: 48%; background: radial-gradient(ellipse at 50% 48%, rgb(var(--accent-rgb) / .27), rgb(var(--accent-rgb) / .1) 38%, transparent 70%); filter: blur(26px); opacity: .72; animation: auraBreathe 3.8s ease-in-out infinite; }
.card-aura b { position: absolute; left: 50%; bottom: -8px; width: 310px; height: 28px; transform: translateX(-50%); border-radius: 50%; background: rgb(var(--accent-rgb) / .24); filter: blur(21px); opacity: .55; animation: groundBreathe 3.8s ease-in-out infinite; }
.card-scene { --drag-offset: 0px; --drag-tilt: 0deg; transform: translate(calc(-50% + var(--drag-offset)), -43%) rotateY(var(--drag-tilt)); transition: transform .48s cubic-bezier(.16,1,.3,1); }
.carousel-viewport.dragging .card-scene { transition: none; }
.carousel-viewport.dragging .doc-card { transition-duration: .18s; }
.carousel-viewport.continuous-motion .doc-card { transition: color .38s ease, background .44s ease, border-color .38s ease, box-shadow .44s ease, filter .38s ease; }
.doc-card { transition: transform .68s cubic-bezier(.16,1,.3,1) var(--card-delay, 0ms), opacity .42s ease, filter .42s ease, color .42s ease, background .5s ease, border-color .42s ease, box-shadow .5s ease; }
.doc-card:not(.selected) { color: #19201d; filter: saturate(.58) brightness(.82); background: linear-gradient(150deg, #e6eae8, #88918c); border-color: rgba(255,255,255,.42); box-shadow: 0 18px 30px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.65); }
.doc-card.selected { color: var(--accent-foreground); filter: saturate(1.08) brightness(1.03); background: linear-gradient(145deg, var(--accent-300) 0%, var(--accent-500) 54%, var(--accent-700) 100%); border-color: var(--accent-200); box-shadow: 0 27px 47px rgba(0,0,0,.48), 0 0 34px rgb(var(--accent-rgb) / .23), inset 0 1px rgba(255,255,255,.44); }
.doc-card.selected .paper-shine { animation: cardSheen 2.8s ease-in-out infinite; }
.completion-card { animation: completionFloat 4.6s ease-in-out infinite; }
.carousel-viewport.moving-forward .card-aura { animation: auraKickForward .72s cubic-bezier(.16,1,.3,1); }
.carousel-viewport.moving-backward .card-aura { animation: auraKickBackward .72s cubic-bezier(.16,1,.3,1); }
.details-content.detail-refresh { animation: detailRefresh .52s cubic-bezier(.16,1,.3,1); }
.details-content.detail-refresh .tag-list span { animation: tagPop .46s cubic-bezier(.16,1,.3,1) backwards; }
.details-content.detail-refresh .tag-list span:nth-child(2) { animation-delay: 40ms; }.details-content.detail-refresh .tag-list span:nth-child(3) { animation-delay: 80ms; }

/* Side-layered fan view. */
.carousel-viewport.fan-view {
  perspective: 1280px;
  background:
    radial-gradient(ellipse at 54% 66%, rgb(var(--accent-rgb) / .075), transparent 30%),
    linear-gradient(180deg, rgba(12,18,15,.82), rgba(4,7,6,.94));
}
.fan-view .card-scene { width: 650px; top: 48%; }
.card-scene::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 3%;
  bottom: 4px;
  height: 22px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / .18);
  filter: blur(22px);
  opacity: 0;
  transition: opacity .5s ease;
}
.fan-view .card-scene::after { opacity: .6; }
.fan-view .ambient-glow { left: 55%; width: 500px; height: 42px; bottom: 24px; opacity: .58; filter: blur(50px); }
.fan-view .card-aura { left: 49%; width: 190px; height: 230px; }
.fan-view .card-aura i { opacity: .42; filter: blur(31px); }
.fan-view .card-aura b { width: 440px; opacity: .46; }
.fan-view .completion-card { left: 5.5%; top: 13%; z-index: 96; transform: perspective(500px) rotateY(-12deg) rotateZ(-6deg) scale(.92); }
.fan-view .doc-card {
  height: 202px;
  border-radius: 10px;
  transform-origin: 18% 88%;
  box-shadow: 0 23px 42px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.7);
}
.fan-view .doc-card:not(.selected) {
  color: #17201c;
  filter: saturate(.22) brightness(.98) contrast(.96);
  background: linear-gradient(150deg, rgba(244,247,245,.96), rgba(148,157,152,.86));
  border-color: rgba(255,255,255,.58);
  box-shadow: -10px 22px 36px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.82), inset -10px 0 20px rgba(33,43,39,.12);
}
.fan-view .doc-card:not(.selected)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255,255,255,.64), rgba(44,53,49,.16));
  box-shadow: 2px 0 8px rgba(0,0,0,.16);
  pointer-events: none;
}
.fan-view .doc-card.selected {
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 29px 50px rgba(0,0,0,.55), 0 0 38px rgb(var(--accent-rgb) / .25), inset 0 1px rgba(255,255,255,.5);
}
.fan-view .doc-card.selected.tone-green {
  color: var(--accent-foreground);
  background: linear-gradient(145deg, var(--accent-300) 0%, var(--accent-500) 54%, var(--accent-700) 100%);
  border-color: var(--accent-200);
}
.fan-view .doc-lines { top: 39px; gap: 6px; opacity: .2; }
.fan-view .doc-symbol { top: 86px; }
.fan-view .doc-copy { bottom: 15px; }
.fan-view .doc-card:not(.selected) .doc-copy { opacity: .14; transform: translateY(4px); }
.fan-view .doc-card:not(.selected) .doc-copy small { opacity: 0; }
.fan-view .doc-copy { transition: opacity .42s ease, transform .42s ease; }
.fan-view .scroll-tip { min-width: 310px; }
.carousel-viewport.view-switching .doc-card {
  transition: transform .72s cubic-bezier(.16,1,.3,1), opacity .55s ease, filter .5s ease, color .42s ease, background .5s ease, border-color .42s ease, box-shadow .5s ease !important;
}
.carousel-viewport.view-switching .card-scene { transition: transform .72s cubic-bezier(.16,1,.3,1); }

/* Fluid material settings drawer. */
.app-shell { transition: filter .34s ease, transform .46s cubic-bezier(.16,1,.3,1); }
.material-open .app-shell { filter: blur(3px) brightness(.52) saturate(.68); transform: scale(.996); }
.material-overlay { position: fixed; z-index: 80; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(0,4,3,.14); backdrop-filter: blur(0) saturate(1); transition: opacity .24s ease, visibility 0s linear .5s, backdrop-filter .34s ease, background .34s ease; }
.material-overlay.open { visibility: visible; opacity: 1; pointer-events: auto; background: rgba(0,4,3,.4); backdrop-filter: blur(12px) saturate(.72); transition: opacity .24s ease, visibility 0s, backdrop-filter .34s ease, background .34s ease; }
.material-drawer { --drawer-right: max(28px, calc((100vw - 1900px) / 2)); position: absolute; z-index: 81; top: max(18px, calc((100vh - 1032px) / 2)); right: var(--drawer-right); bottom: max(18px, calc((100vh - 1032px) / 2)); width: 450px; display: grid; grid-template-rows: 88px minmax(0,1fr) 74px; overflow: hidden; opacity: 0; transform: translate3d(44px,0,0) scale(.985); transform-origin: right center; transition: opacity .22s ease, transform .46s cubic-bezier(.16,1,.3,1); background: linear-gradient(145deg, rgba(28,38,34,.98), rgba(9,15,13,.99)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 30px 100px rgba(0,0,0,.75); }
.material-overlay.open .material-drawer { opacity: 1; transform: translate3d(0,0,0) scale(1); }
.material-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.015); }
.material-heading span { display: block; margin-bottom: 6px; color: var(--accent-300); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .16em; }.material-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }.material-heading button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: #d9dfdc; background: rgba(255,255,255,.04); cursor: pointer; font-size: 21px; transition: .2s ease; }.material-heading button:hover { color: white; border-color: rgb(var(--accent-rgb) / .34); background: rgb(var(--accent-rgb) / .15); transform: rotate(5deg); }
.material-body { padding: 16px 18px 20px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgb(var(--accent-rgb) / .24) transparent; }
.material-select { display: grid; grid-template-columns: 95px 1fr; align-items: center; margin-bottom: 14px; color: #919b96; font-size: 11px; }.material-select select { height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; outline: none; color: #e8ecea; background: #0a0f0d; font-size: 11px; }
.accent-section { margin-bottom: 14px; padding: 13px 14px 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.025); }
.accent-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.accent-section-heading h3 { margin: 0; color: #cbd2ce; font-size: 11px; font-weight: 600; }.accent-section-heading p { margin: 5px 0 0; color: #77827c; font-size: 8px; line-height: 1.45; }.accent-section-heading output { flex: 0 0 auto; padding: 4px 7px; border-radius: 7px; color: var(--accent-200); background: rgb(var(--accent-rgb) / .1); font-size: 8px; font-weight: 650; }
.accent-swatches { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin-top: 12px; }.accent-swatch { min-width: 0; padding: 5px 3px 4px; border: 1px solid transparent; border-radius: 10px; color: #78837d; background: transparent; cursor: pointer; font-size: 8px; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease; }.accent-swatch:focus-visible { outline: 2px solid rgb(var(--accent-rgb) / .62); outline-offset: 2px; }.accent-swatch i { position: relative; display: block; width: 28px; height: 28px; margin: 0 auto 5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px rgba(255,255,255,.4), 0 5px 12px rgba(0,0,0,.22); }.accent-swatch i::after { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: rgba(255,255,255,.18); filter: blur(2px); }.accent-swatch[data-accent-option="emerald"] i { background: linear-gradient(145deg, hsl(158 72% 67%), hsl(158 76% 35%)); }.accent-swatch[data-accent-option="ocean"] i { background: linear-gradient(145deg, hsl(202 72% 67%), hsl(202 78% 35%)); }.accent-swatch[data-accent-option="iris"] i { background: linear-gradient(145deg, hsl(263 65% 70%), hsl(263 68% 38%)); }.accent-swatch[data-accent-option="amber"] i { background: linear-gradient(145deg, hsl(36 86% 67%), hsl(36 84% 38%)); }.accent-swatch[data-accent-option="sakura"] i { background: linear-gradient(145deg, hsl(344 72% 70%), hsl(344 76% 39%)); }.accent-swatch:hover { color: #e7efeb; background: rgba(255,255,255,.035); transform: translateY(-1px); }.accent-swatch.active { color: var(--accent-200); border-color: rgb(var(--accent-rgb) / .28); background: rgb(var(--accent-rgb) / .1); box-shadow: 0 0 16px rgb(var(--accent-rgb) / .08); }
.material-preview { --material-opacity: 1; --material-blur: 18px; --flow-duration: 4s; position: relative; height: 102px; padding: 21px 22px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; color: #121715; background: #edf0ee; box-shadow: inset 0 1px rgba(255,255,255,.5), 0 14px 30px rgba(0,0,0,.28); }
.material-preview::before { content: ""; position: absolute; z-index: -1; inset: -50%; opacity: var(--material-opacity); filter: blur(var(--material-blur)); animation: materialFlow var(--flow-duration) ease-in-out infinite alternate; }
.material-preview small { display: block; margin-bottom: 8px; color: #7b8580; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .16em; }.material-preview strong { display: block; font-size: 17px; }.material-preview > span { display: block; margin-top: 6px; font-size: 9px; color: #5f6964; }
.material-section { margin-top: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.025); }.material-section h3 { margin: 0 0 12px; color: #cbd2ce; font-size: 11px; font-weight: 550; }
.material-swatches { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }.material-swatch { height: 62px; padding: 5px; border: 1px solid transparent; border-radius: 10px; color: #77817c; background: transparent; cursor: pointer; font-size: 8px; transition: .2s ease; }.material-swatch i { display: block; height: 38px; margin-bottom: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: inset 0 1px rgba(255,255,255,.25); }.material-swatch[data-material="cyan"] i { background: radial-gradient(circle at 70% 20%, #14f2d0, transparent 38%), linear-gradient(135deg,#092641,#00a6b5); }.material-swatch[data-material="original"] i { background: radial-gradient(circle at 70% 35%,#ff74d1,transparent 36%), linear-gradient(135deg,#433fd5,#ff995b); }.material-swatch[data-material="rain"] i { background: radial-gradient(circle at 78% 60%,#ff763a,transparent 35%), linear-gradient(135deg,#15327c,#3972ff); }.material-swatch[data-material="chrome"] i { background: radial-gradient(circle at 70% 20%,#f7ffff,transparent 32%), linear-gradient(135deg,#111,#8a9a96); }.material-swatch:hover { color: #dce3df; background: rgba(255,255,255,.035); }.material-swatch.active { color: var(--accent-200); border-color: rgb(var(--accent-rgb) / .28); background: rgb(var(--accent-rgb) / .12); box-shadow: 0 0 16px rgb(var(--accent-rgb) / .08); }
.color-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.color-fields label { color: #8d9792; font-size: 8px; }.color-fields input { display: block; width: 100%; height: 34px; margin: 7px 0 5px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: transparent; cursor: pointer; }.color-fields small { color: #66706b; font: 7px/1 ui-monospace, monospace; }
.material-controls label { display: block; margin-top: 12px; }.material-controls label > span { display: flex; justify-content: space-between; color: #9da6a2; font-size: 9px; }.material-controls output { color: #dfe5e2; }.material-controls input { width: 100%; height: 4px; margin-top: 10px; accent-color: var(--accent-400); cursor: pointer; }
.material-actions { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; align-items: center; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(5,9,7,.55); }.material-actions button { height: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #aeb7b2; background: rgba(255,255,255,.035); cursor: pointer; font-size: 9px; }.material-actions button.primary { color: var(--accent-foreground); border-color: rgb(var(--accent-rgb) / .35); background: linear-gradient(145deg,var(--accent-600),var(--accent-800)); }

/* Material palettes are shared by the drawer preview and the first metric card. */
.material-preview[data-material="original"]::before, .metric-card[data-material="original"]::before { background: radial-gradient(circle at 86% 36%, rgba(255,74,169,.76) 0 12%, transparent 35%), radial-gradient(circle at 68% 78%, rgba(255,136,73,.72) 0 10%, transparent 34%), radial-gradient(circle at 91% 20%, rgba(170,73,255,.58) 0 8%, transparent 30%); }
.material-preview[data-material="cyan"]::before, .metric-card[data-material="cyan"]::before { background: radial-gradient(circle at 76% 28%, #36f5df 0 12%, transparent 34%), radial-gradient(circle at 45% 73%, #00a8ca 0 11%, transparent 34%), radial-gradient(circle at 25% 30%, #235da8 0 10%, transparent 30%), #d8f3ef; }
.material-preview[data-material="rain"]::before, .metric-card[data-material="rain"]::before { background: radial-gradient(circle at 75% 70%, #ff693f 0 12%, transparent 36%), radial-gradient(circle at 43% 24%, #2d65ff 0 12%, transparent 35%), radial-gradient(circle at 18% 74%, #4821ac 0 10%, transparent 35%), #121936; }
.material-preview[data-material="chrome"]::before, .metric-card[data-material="chrome"]::before { background: radial-gradient(circle at 74% 28%, #f6ffff 0 10%, transparent 32%), radial-gradient(circle at 47% 74%, #74837e 0 12%, transparent 38%), radial-gradient(circle at 22% 28%, #1b2421 0 9%, transparent 35%), #dce3e0; }
.material-preview[data-material="custom"]::before, .metric-card[data-material="custom"]::before { background: radial-gradient(circle at 76% 30%, var(--mat-a) 0 12%, transparent 36%), radial-gradient(circle at 45% 74%, var(--mat-b) 0 12%, transparent 36%), radial-gradient(circle at 18% 28%, var(--mat-c) 0 10%, transparent 34%), #101814; }
.metric-card[data-material]::before { opacity: var(--material-opacity, .95); filter: blur(var(--material-blur, 24px)) saturate(.94); animation: metricFluidDrift var(--flow-duration, 4s) cubic-bezier(.45,.05,.55,.95) infinite alternate; }
.metric-card[data-material="rain"], .metric-card[data-material="custom"] { color: #f2f5f3; background: #121815; }.metric-card[data-material="chrome"], .metric-card[data-material="cyan"], .metric-card[data-material="original"] { color: #111815; background: #e6ebe8; }.material-preview[data-material="rain"], .material-preview[data-material="custom"] { color: #f2f5f3; background: #101614; }.material-preview[data-material="chrome"], .material-preview[data-material="cyan"], .material-preview[data-material="original"] { color: #111815; background: #e7ece9; }.material-preview[data-material="rain"] small, .material-preview[data-material="rain"] > span, .material-preview[data-material="custom"] small, .material-preview[data-material="custom"] > span { color: #aeb7b2; }
.metric-card.aurora[data-material="original"], #materialPreview[data-material="original"] { background: linear-gradient(112deg, #f8faf9 0 48%, #ffe3ef 68%, #ff72bc 100%); }

/* The four overview cards share a palette, but each has its own fluid field and phase. */
.metric-card[data-material="chrome"]::before {
  background:
    radial-gradient(ellipse 36% 58% at 78% 28%, rgba(244,255,255,.96) 0 24%, transparent 70%),
    radial-gradient(ellipse 52% 70% at 62% 82%, rgba(95,119,115,.92) 0 24%, transparent 72%),
    radial-gradient(ellipse 34% 55% at 90% 88%, rgba(152,197,197,.7) 0 20%, transparent 68%),
    radial-gradient(ellipse 40% 62% at 42% 20%, rgba(229,237,234,.9) 0 20%, transparent 68%);
}
.metric-card[data-material="original"]::before {
  background:
    radial-gradient(ellipse 48% 76% at 84% 42%, rgba(255,74,169,.82) 0 24%, transparent 66%),
    radial-gradient(ellipse 46% 68% at 70% 94%, rgba(255,136,73,.72) 0 22%, transparent 68%),
    radial-gradient(ellipse 38% 60% at 96% 15%, rgba(170,73,255,.72) 0 20%, transparent 65%);
}
.metric-card[data-material="cyan"]::before {
  background:
    radial-gradient(ellipse 46% 70% at 83% 30%, rgba(54,245,223,.92) 0 23%, transparent 66%),
    radial-gradient(ellipse 52% 74% at 67% 90%, rgba(0,168,202,.88) 0 24%, transparent 70%),
    radial-gradient(ellipse 38% 62% at 45% 20%, rgba(35,93,168,.78) 0 20%, transparent 68%);
}
.metric-card[data-material="custom"]::before {
  background:
    radial-gradient(ellipse 48% 74% at 82% 26%, color-mix(in srgb, var(--mat-a) 90%, transparent) 0 22%, transparent 68%),
    radial-gradient(ellipse 50% 72% at 75% 88%, color-mix(in srgb, var(--mat-b) 88%, transparent) 0 24%, transparent 69%),
    radial-gradient(ellipse 48% 76% at 51% 45%, color-mix(in srgb, var(--mat-c) 88%, transparent) 0 24%, transparent 72%);
}
.metric-card[data-material="rain"] { background: #071013; }
.metric-card[data-material="rain"][data-fluid-variant="inbox"]::before {
  background:
    radial-gradient(ellipse 46% 70% at 83% 31%, rgba(255,105,63,.9) 0 22%, transparent 67%),
    radial-gradient(ellipse 52% 72% at 72% 91%, rgba(46,102,255,.92) 0 25%, transparent 70%),
    radial-gradient(ellipse 42% 66% at 54% 28%, rgba(77,45,153,.76) 0 20%, transparent 68%),
    radial-gradient(ellipse 44% 70% at 43% 87%, rgba(21,66,86,.7) 0 18%, transparent 68%);
  animation-delay: -1.35s;
  transform-origin: 78% 38%;
}
.metric-card[data-material="rain"][data-fluid-variant="archive"]::before {
  background:
    radial-gradient(ellipse 42% 64% at 78% 72%, rgba(45,93,225,.76) 0 24%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 94% 18%, rgba(203,95,61,.58) 0 18%, transparent 65%),
    radial-gradient(ellipse 44% 68% at 61% 34%, rgba(38,59,104,.8) 0 24%, transparent 71%),
    radial-gradient(ellipse 32% 56% at 91% 91%, rgba(77,42,157,.5) 0 18%, transparent 66%);
  animation-delay: -2.8s;
  transform-origin: 66% 68%;
}
.metric-card[data-material="rain"][data-fluid-variant="backlog"]::before {
  background:
    radial-gradient(ellipse 48% 72% at 87% 22%, rgba(255,112,58,.94) 0 23%, transparent 67%),
    radial-gradient(ellipse 54% 76% at 72% 91%, rgba(39,98,255,.96) 0 27%, transparent 71%),
    radial-gradient(ellipse 38% 62% at 96% 78%, rgba(92,44,184,.78) 0 19%, transparent 66%),
    radial-gradient(ellipse 42% 66% at 52% 38%, rgba(21,52,96,.72) 0 20%, transparent 69%);
  animation-delay: -4.15s;
  transform-origin: 84% 44%;
}
.metric-card:nth-child(1)::before { animation-delay: -.45s; }
.color-fields input { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }.color-fields input:hover { border-color: rgb(var(--accent-rgb) / .45); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .08); transform: translateY(-1px); }
.material-morph { animation: materialMorph .52s cubic-bezier(.16,1,.3,1); }

/* Complete light appearance. Fluid content keeps its own material colors. */
html[data-theme-resolved="light"] {
  color-scheme: light;
  --bg: #e9edeb;
  --panel: #f7f9f8;
  --panel-2: #f0f3f1;
  --panel-soft: #e7ece9;
  --line: rgba(43, 61, 54, .11);
  --line-bright: rgba(43, 61, 54, .17);
  --text: #18221f;
  --muted: #67726e;
  --green: var(--accent-500);
  --green-deep: var(--accent-700);
  --danger: #d94d55;
}
html[data-theme-resolved="light"],
html[data-theme-resolved="light"] body {
  background: #e9edeb;
  color: var(--text);
}
html[data-theme-resolved="light"] body {
  background:
    radial-gradient(circle at 49% -20%, rgb(var(--accent-rgb) / .075), transparent 39%),
    radial-gradient(circle at 0 58%, rgba(92, 112, 105, .055), transparent 30%),
    linear-gradient(110deg, #e3e8e6 0, #f1f4f2 17%, #f4f6f5 82%, #e5eae8 100%);
}
html[data-theme-resolved="light"] .panel {
  background: linear-gradient(145deg, rgba(250,251,250,.94), rgba(239,243,241,.96));
  border-color: rgba(43,61,54,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 18px 46px rgba(39,57,50,.09);
}
html[data-theme-resolved="light"] .metric-card {
  border-color: rgba(45,61,55,.14);
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 13px 28px rgba(37,52,47,.12);
  filter: saturate(.9) contrast(.98);
}
html[data-theme-resolved="light"] .metric-card::after {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.34) 0 3%, transparent 28%),
    radial-gradient(ellipse at 88% 10%, rgba(255,255,255,.2), transparent 36%),
    linear-gradient(118deg, rgba(255,255,255,.13), transparent 38%, rgba(37,49,44,.08));
  opacity: .62;
}
html[data-theme-resolved="light"] .metric-card:hover,
html[data-theme-resolved="light"] .metric-card.hovering {
  border-color: rgba(45,61,55,.23);
  box-shadow: inset 0 1px rgba(255,255,255,.82), 0 18px 36px rgba(37,52,47,.16), 0 0 22px rgb(var(--accent-rgb) / .07);
  filter: brightness(1.015) saturate(.94);
}
html[data-theme-resolved="light"] .metric-card.selected {
  border-color: color-mix(in srgb, var(--accent-400) 58%, #8c9a95);
  box-shadow: inset 0 1px rgba(255,255,255,.86), 0 0 0 1px rgb(var(--accent-rgb) / .18), 0 18px 38px rgba(37,52,47,.16), 0 0 24px rgb(var(--accent-rgb) / .11);
}
html[data-theme-resolved="light"] .metric-card[data-material]::before {
  opacity: min(var(--material-opacity, .95), .68);
  filter: blur(calc(var(--material-blur, 24px) + 7px)) saturate(.72);
}
html[data-theme-resolved="light"] .material-preview::before {
  opacity: min(var(--material-opacity, 1), .68);
  filter: blur(calc(var(--material-blur, 18px) + 7px)) saturate(.72);
}
html[data-theme-resolved="light"] .metric-card[data-material],
html[data-theme-resolved="light"] .material-preview[data-material] {
  color: #18221f;
}
html[data-theme-resolved="light"] .metric-card[data-material="cyan"],
html[data-theme-resolved="light"] .material-preview[data-material="cyan"] { background: #e5f2f0; }
html[data-theme-resolved="light"] .metric-card[data-material="cyan"]::before,
html[data-theme-resolved="light"] .material-preview[data-material="cyan"]::before {
  background:
    radial-gradient(ellipse 48% 72% at 84% 28%, rgba(109,183,188,.78) 0 24%, transparent 69%),
    radial-gradient(ellipse 52% 76% at 68% 91%, rgba(105,164,171,.58) 0 25%, transparent 71%),
    radial-gradient(ellipse 40% 64% at 43% 20%, rgba(82,116,122,.38) 0 20%, transparent 68%),
    #e5f2f0;
}
html[data-theme-resolved="light"] .metric-card[data-material="original"],
html[data-theme-resolved="light"] .material-preview[data-material="original"] { background: #f3e8ef; }
html[data-theme-resolved="light"] .metric-card[data-material="original"]::before,
html[data-theme-resolved="light"] .material-preview[data-material="original"]::before {
  background:
    radial-gradient(ellipse 48% 74% at 84% 40%, rgba(206,142,172,.76) 0 24%, transparent 68%),
    radial-gradient(ellipse 46% 68% at 70% 94%, rgba(211,161,146,.52) 0 22%, transparent 69%),
    radial-gradient(ellipse 38% 60% at 96% 15%, rgba(141,115,150,.4) 0 20%, transparent 66%),
    #f3e8ef;
}
html[data-theme-resolved="light"] .metric-card[data-material="rain"],
html[data-theme-resolved="light"] .material-preview[data-material="rain"] { color: #18221f; background: #e2e9f2; }
html[data-theme-resolved="light"] .metric-card[data-material="rain"]::before,
html[data-theme-resolved="light"] .material-preview[data-material="rain"]::before {
  background:
    radial-gradient(ellipse 46% 70% at 82% 28%, rgba(102,132,172,.78) 0 24%, transparent 68%),
    radial-gradient(ellipse 52% 72% at 72% 91%, rgba(118,145,180,.54) 0 25%, transparent 71%),
    radial-gradient(ellipse 34% 54% at 93% 82%, rgba(198,139,105,.34) 0 18%, transparent 66%),
    radial-gradient(ellipse 42% 66% at 51% 28%, rgba(54,74,98,.42) 0 20%, transparent 69%),
    #e2e9f2;
}
html[data-theme-resolved="light"] .metric-card[data-material="rain"] small,
html[data-theme-resolved="light"] .metric-card[data-material="rain"] > span,
html[data-theme-resolved="light"] .material-preview[data-material="rain"] small,
html[data-theme-resolved="light"] .material-preview[data-material="rain"] > span { color: #5e6b72; }
html[data-theme-resolved="light"] .metric-card[data-material="chrome"],
html[data-theme-resolved="light"] .material-preview[data-material="chrome"] { background: #ecefec; }
html[data-theme-resolved="light"] .metric-card[data-material="chrome"]::before,
html[data-theme-resolved="light"] .material-preview[data-material="chrome"]::before {
  background:
    radial-gradient(ellipse 38% 58% at 78% 26%, rgba(248,250,249,.92) 0 24%, transparent 70%),
    radial-gradient(ellipse 52% 72% at 62% 83%, rgba(162,171,167,.72) 0 25%, transparent 72%),
    radial-gradient(ellipse 36% 56% at 90% 88%, rgba(191,201,197,.54) 0 20%, transparent 68%),
    radial-gradient(ellipse 40% 62% at 42% 20%, rgba(102,113,108,.34) 0 20%, transparent 68%),
    #ecefec;
}
html[data-theme-resolved="light"] .material-swatch[data-material="cyan"] i { background: radial-gradient(circle at 70% 20%, #91d1d1, transparent 39%), linear-gradient(135deg,#dfeeed,#6faeb4); }
html[data-theme-resolved="light"] .material-swatch[data-material="original"] i { background: radial-gradient(circle at 70% 35%,#dba4bd,transparent 38%), linear-gradient(135deg,#eee3ec,#b994aa); }
html[data-theme-resolved="light"] .material-swatch[data-material="rain"] i { background: radial-gradient(circle at 78% 60%,#c89b82,transparent 36%), linear-gradient(135deg,#e0e7ef,#667f9f); }
html[data-theme-resolved="light"] .material-swatch[data-material="chrome"] i { background: radial-gradient(circle at 70% 20%,#fbfcfb,transparent 34%), linear-gradient(135deg,#e8ece9,#89948f); }
html[data-theme-resolved="light"] .completion-card {
  color: #202b27;
  background: linear-gradient(150deg, rgba(253,254,253,.98), rgba(229,234,231,.94));
  border-color: rgba(78,96,88,.15);
  box-shadow: inset 0 1px rgba(255,255,255,.96), 0 17px 30px rgba(43,58,52,.12);
}
html[data-theme-resolved="light"] .completion-card small { color: #69756f; }
html[data-theme-resolved="light"] .completion-card > i { background: rgba(57,76,68,.1); }
html[data-theme-resolved="light"] .doc-card {
  opacity: max(var(--opacity), .62);
  color: #56625d;
  background: linear-gradient(150deg, #fafbfa, #e4e8e6);
  border-color: rgba(78,96,88,.15);
  box-shadow: 0 18px 30px rgba(43,58,52,.12), inset 0 1px rgba(255,255,255,.96);
}
html[data-theme-resolved="light"] .doc-card:not(.selected) { filter: saturate(.66) brightness(1.02); }
html[data-theme-resolved="light"] .doc-card.ice { background: linear-gradient(150deg, #fbfcfb, #e8ecea); }
html[data-theme-resolved="light"] .doc-card.warm { background: linear-gradient(150deg, #faf8f4, #e9e3da); }
html[data-theme-resolved="light"] .doc-card.silver { background: linear-gradient(150deg, #f8faf9, #dfe5e2); }
html[data-theme-resolved="light"] .doc-card::after { background: linear-gradient(105deg, rgba(255,255,255,.6), transparent 36%, rgba(255,255,255,.12)); }
html[data-theme-resolved="light"] .doc-card.selected {
  opacity: 1;
  color: var(--accent-foreground);
  filter: saturate(.86) brightness(1.04);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-200) 58%, #f5f8f6) 0%, color-mix(in srgb, var(--accent-400) 78%, #dce5e1) 52%, color-mix(in srgb, var(--accent-600) 88%, #66756e) 100%);
  border-color: color-mix(in srgb, var(--accent-300) 72%, #dbe5e0);
  box-shadow: 0 22px 40px rgba(43,58,52,.22), 0 0 34px rgb(var(--accent-rgb) / .18), inset 0 1px rgba(255,255,255,.48);
}
html[data-theme-resolved="light"] .brand span { color: #3c4b44; }
html[data-theme-resolved="light"] .nav-item { color: #68776f; }
html[data-theme-resolved="light"] .nav-item:hover { color: #14231c; background: rgba(18,70,48,.055); }
html[data-theme-resolved="light"] .nav-item.active { color: var(--accent-ink); background: linear-gradient(90deg, rgb(var(--accent-rgb) / .14), rgba(255,255,255,.62)); border-color: rgb(var(--accent-rgb) / .16); box-shadow: 0 7px 18px rgba(53,85,70,.1); }
html[data-theme-resolved="light"] .sidebar-bottom { border-color: rgba(31,66,51,.1); }
html[data-theme-resolved="light"] .path-heading,
html[data-theme-resolved="light"] .profile-row small { color: #738178; }
html[data-theme-resolved="light"] .path-heading button,
html[data-theme-resolved="light"] .profile-row button { color: #66766e; }
html[data-theme-resolved="light"] .vault-row { color: #2d3d35; background: rgba(29,79,57,.06); }
html[data-theme-resolved="light"] .vault-row .diamond { color: var(--accent-600); }
html[data-theme-resolved="light"] .avatar { color: white; background: linear-gradient(145deg, #4e6c5e, #1b3228); border-color: rgba(20,60,42,.16); }
html[data-theme-resolved="light"] .avatar i { border-color: #f1f6f3; }
html[data-theme-resolved="light"] .page-title p { color: #6a7770; }
html[data-theme-resolved="light"] .search-box { border-color: rgba(40,74,59,.16); background: rgba(255,255,255,.72); box-shadow: inset 0 1px rgba(255,255,255,.95), 0 8px 22px rgba(52,79,66,.1); }
html[data-theme-resolved="light"] .search-box svg,
html[data-theme-resolved="light"] .search-box kbd { color: #728078; }
html[data-theme-resolved="light"] .search-box input { color: #1b2a23; }
html[data-theme-resolved="light"] .search-box input::placeholder { color: #89958f; }
html[data-theme-resolved="light"] .round-btn,
html[data-theme-resolved="light"] .scan-btn { border-color: rgba(36,75,58,.16); box-shadow: inset 0 1px rgba(255,255,255,.9), 0 5px 14px rgba(40,70,55,.08); }
html[data-theme-resolved="light"] .round-btn { color: #425149; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,235,230,.94)); }
html[data-theme-resolved="light"] .round-btn.active { color: var(--accent-ink); border-color: rgb(var(--accent-rgb) / .28); background: linear-gradient(145deg, var(--accent-50), var(--accent-100)); }
html[data-theme-resolved="light"] .theme-toggle:hover,
html[data-theme-resolved="light"] .theme-toggle:focus-visible { color: var(--accent-700); border-color: rgb(var(--accent-rgb) / .34); background: linear-gradient(145deg, var(--accent-50), var(--accent-100)); }
html[data-theme-resolved="light"] .theme-toggle::after { border-color: #edf4f0; }
html[data-theme-resolved="light"] .scan-btn { color: var(--accent-foreground); background: linear-gradient(145deg, var(--accent-500), var(--accent-700)); border-color: rgb(var(--accent-rgb) / .22); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 19px rgb(var(--accent-rgb) / .18); }
html[data-theme-resolved="light"] .section-heading span,
html[data-theme-resolved="light"] .queue-tabs button { color: #75827b; }
html[data-theme-resolved="light"] .queue-tabs { border-color: rgba(33,67,52,.11); }
html[data-theme-resolved="light"] .queue-tabs button.active { color: var(--accent-ink); background: rgb(var(--accent-rgb) / .08); }
html[data-theme-resolved="light"] .queue-group { border-color: rgba(35,69,54,.12); background: rgba(255,255,255,.68); box-shadow: 0 7px 17px rgba(42,72,58,.09); }
html[data-theme-resolved="light"] .group-head { color: #2b3a33; background: rgba(240,246,243,.96); }
html[data-theme-resolved="light"] .group-head b { color: #77847d; }
html[data-theme-resolved="light"] .queue-item { color: #526159; border-color: rgba(36,70,54,.08); background: rgba(255,255,255,.82); }
html[data-theme-resolved="light"] .queue-item:hover { background: #f0f7f3; }
html[data-theme-resolved="light"] .queue-item small { color: #87938c; }
html[data-theme-resolved="light"] .carousel-toolbar { border-color: rgba(31,68,51,.09); }
html[data-theme-resolved="light"] .pill-btn,
html[data-theme-resolved="light"] .icon-btn { color: #5b6962; border-color: rgba(36,70,55,.12); background: rgba(25,74,52,.045); }
html[data-theme-resolved="light"] .pill-btn.active { color: var(--accent-ink); border-color: rgb(var(--accent-rgb) / .2); background: linear-gradient(145deg, rgb(var(--accent-rgb) / .18), rgb(var(--accent-rgb) / .1)); }
html[data-theme-resolved="light"] .pill-btn.quiet { color: #75827b; }
html[data-theme-resolved="light"] .live-badge { color: var(--accent-700); border-color: rgb(var(--accent-rgb) / .2); background: color-mix(in srgb, var(--accent-50) 90%, transparent); box-shadow: 0 8px 22px rgba(39,82,62,.13); }
html[data-theme-resolved="light"] .carousel-viewport { background: radial-gradient(ellipse at 62% 68%, rgb(var(--accent-rgb) / .11), transparent 31%), linear-gradient(180deg, rgba(241,247,244,.76), rgba(219,231,225,.9)); }
html[data-theme-resolved="light"] .carousel-viewport::before { background-image: linear-gradient(rgba(19,64,44,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(19,64,44,.02) 1px, transparent 1px); }
html[data-theme-resolved="light"] .carousel-viewport.fan-view { background: radial-gradient(ellipse at 54% 66%, rgb(var(--accent-rgb) / .12), transparent 31%), linear-gradient(180deg, rgba(238,246,242,.9), rgba(215,227,221,.96)); }
html[data-theme-resolved="light"] .scroll-tip { color: #26372f; border-color: rgba(32,67,50,.13); background: rgba(251,253,252,.78); box-shadow: 0 9px 22px rgba(37,67,52,.14); }
html[data-theme-resolved="light"] .scroll-tip p { color: #68766e; }
html[data-theme-resolved="light"] .scroll-tip strong { border-color: rgba(34,70,52,.12); }
html[data-theme-resolved="light"] .mouse-icon { border-color: #8a9890; }html[data-theme-resolved="light"] .mouse-icon i { background: #66766e; }
html[data-theme-resolved="light"] .timeline-panel { border-color: rgba(35,69,53,.1); background: rgba(244,248,246,.92); }
html[data-theme-resolved="light"] .timeline-head > span { color: #5f6e66; }
html[data-theme-resolved="light"] .timeline-head button,
html[data-theme-resolved="light"] .scene-actions button { color: #58675f; border-color: rgba(35,68,53,.12); background: rgba(28,76,54,.055); }
html[data-theme-resolved="light"] .timeline-dates button { color: #728078; }
html[data-theme-resolved="light"] .timeline-track { background: rgba(24,72,50,.08); }
html[data-theme-resolved="light"] .scene-actions { border-color: rgba(33,68,51,.14); background: rgba(250,252,251,.94); box-shadow: 0 10px 25px rgba(36,66,51,.2); }
html[data-theme-resolved="light"] .scene-actions button.primary { color: var(--accent-foreground); border-color: rgb(var(--accent-rgb) / .28); background: linear-gradient(145deg, var(--accent-500), var(--accent-700)); }
html[data-theme-resolved="light"] .details-heading { border-color: rgba(35,70,53,.1); background: rgba(30,85,60,.025); }
html[data-theme-resolved="light"] .details-heading button { color: #64746b; }
html[data-theme-resolved="light"] .details-content code,
html[data-theme-resolved="light"] .metadata dt { color: #738179; }
html[data-theme-resolved="light"] .detail-description { color: #596860; }
html[data-theme-resolved="light"] .metadata dd { color: #3b4b43; }
html[data-theme-resolved="light"] .metadata svg { color: #6f7d75; }
html[data-theme-resolved="light"] .mini-avatar { color: white; background: #49675a; }
html[data-theme-resolved="light"] .tag-list span { color: #53635a; background: rgba(27,82,57,.07); }
html[data-theme-resolved="light"] .ai-note { border-color: rgba(36,70,54,.11); background: linear-gradient(145deg, rgba(27,103,69,.06), rgba(255,255,255,.62)); box-shadow: inset 0 1px rgba(255,255,255,.85); }
html[data-theme-resolved="light"] .ai-note ul { color: #56665d; }
html[data-theme-resolved="light"] .ai-note button { color: #3f5047; background: rgba(26,84,58,.08); }
html[data-theme-resolved="light"] .detail-actions { border-color: rgba(35,70,53,.1); background: rgba(230,238,234,.66); }
html[data-theme-resolved="light"] .detail-actions button { color: #44544b; border-color: rgba(37,72,55,.13); background: rgba(255,255,255,.65); }
html[data-theme-resolved="light"] .detail-actions button.primary { color: var(--accent-foreground); background: linear-gradient(145deg, var(--accent-500), var(--accent-700)); }
html[data-theme-resolved="light"] .toast { color: var(--accent-700); border-color: rgb(var(--accent-rgb) / .23); background: color-mix(in srgb, var(--accent-50) 96%, transparent); box-shadow: 0 12px 30px rgba(38,70,54,.2); }
html[data-theme-resolved="light"] .material-open .app-shell { filter: blur(3px) brightness(.8) saturate(.72); }
html[data-theme-resolved="light"] .material-overlay.open { background: rgba(229,238,233,.48); }
html[data-theme-resolved="light"] .material-drawer { color: #16251e; background: linear-gradient(145deg, rgba(251,253,252,.99), rgba(229,237,233,.99)); box-shadow: inset 0 1px white, 0 30px 90px rgba(34,65,49,.32); }
html[data-theme-resolved="light"] .material-heading { border-color: rgba(34,69,52,.1); background: rgba(34,90,64,.025); }
html[data-theme-resolved="light"] .material-heading span { color: var(--accent-600); }
html[data-theme-resolved="light"] .material-heading button { color: #4f6057; border-color: rgba(34,70,53,.12); background: rgba(30,80,57,.055); }
html[data-theme-resolved="light"] .material-heading button:hover { color: var(--accent-700); background: rgb(var(--accent-rgb) / .1); }
html[data-theme-resolved="light"] .material-select { color: #66756d; }
html[data-theme-resolved="light"] .material-select select { color: #26372f; border-color: rgba(35,70,53,.13); background: rgba(255,255,255,.82); }
html[data-theme-resolved="light"] .accent-section { border-color: rgba(35,69,53,.11); background: rgba(255,255,255,.58); }
html[data-theme-resolved="light"] .accent-section-heading h3 { color: #34473d; }
html[data-theme-resolved="light"] .accent-section-heading p { color: #77857d; }
html[data-theme-resolved="light"] .accent-section-heading output { color: var(--accent-700); background: rgb(var(--accent-rgb) / .09); }
html[data-theme-resolved="light"] .accent-swatch { color: #66746c; }
html[data-theme-resolved="light"] .accent-swatch:hover { color: #1d3027; background: rgba(27,83,58,.05); }
html[data-theme-resolved="light"] .accent-swatch.active { color: var(--accent-700); border-color: rgb(var(--accent-rgb) / .22); background: rgb(var(--accent-rgb) / .09); }
html[data-theme-resolved="light"] .material-section { border-color: rgba(35,69,53,.11); background: rgba(255,255,255,.54); }
html[data-theme-resolved="light"] .material-section h3 { color: #34473d; }
html[data-theme-resolved="light"] .material-swatch { color: #6b7971; }
html[data-theme-resolved="light"] .material-swatch:hover { color: #1c3026; background: rgba(27,83,58,.055); }
html[data-theme-resolved="light"] .material-swatch.active { color: var(--accent-700); border-color: rgb(var(--accent-rgb) / .2); background: rgb(var(--accent-rgb) / .09); }
html[data-theme-resolved="light"] .color-fields label,
html[data-theme-resolved="light"] .material-controls label > span { color: #637169; }
html[data-theme-resolved="light"] .color-fields input { border-color: rgba(34,70,53,.16); }
html[data-theme-resolved="light"] .color-fields small { color: #829087; }
html[data-theme-resolved="light"] .material-controls output { color: #304239; }
html[data-theme-resolved="light"] .material-actions { border-color: rgba(34,69,52,.1); background: rgba(224,233,228,.72); }
html[data-theme-resolved="light"] .material-actions button { color: #48584f; border-color: rgba(36,71,54,.13); background: rgba(255,255,255,.68); }
html[data-theme-resolved="light"] .material-actions button.primary { color: var(--accent-foreground); border-color: rgb(var(--accent-rgb) / .28); background: linear-gradient(145deg, var(--accent-500), var(--accent-700)); box-shadow: 0 7px 16px rgb(var(--accent-rgb) / .16); }

@keyframes pulse { 0%,100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes auraBreathe { 0%,100% { opacity: .48; transform: scale(.94); } 50% { opacity: .72; transform: scale(1.04); } }
@keyframes groundBreathe { 0%,100% { opacity: .34; transform: translateX(-50%) scaleX(.84); } 50% { opacity: .55; transform: translateX(-50%) scaleX(1); } }
@keyframes cardSheen { 0%,100% { transform: translateX(-14%); opacity: .68; } 50% { transform: translateX(8%); opacity: .94; } }
@keyframes completionFloat { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-3.8deg) translateY(-7px); } }
@keyframes auraKickForward { 0% { transform: translate(-50%,-48%) scaleX(.92); } 45% { transform: translate(-45%,-48%) scaleX(1.08); } 100% { transform: translate(-50%,-48%) scaleX(1); } }
@keyframes auraKickBackward { 0% { transform: translate(-50%,-48%) scaleX(.92); } 45% { transform: translate(-55%,-48%) scaleX(1.08); } 100% { transform: translate(-50%,-48%) scaleX(1); } }
@keyframes detailRefresh { 0% { opacity: .34; transform: translateX(11px); filter: blur(3px); } 100% { opacity: 1; transform: translateX(0); filter: blur(0); } }
@keyframes tagPop { 0% { opacity: 0; transform: translateY(5px) scale(.94); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes materialFlow { 0% { transform: translate3d(-2%,-2%,0) rotate(-7deg) scale(1); } 100% { transform: translate3d(4%,3%,0) rotate(6deg) scale(1.08); } }
@keyframes metricFluidDrift { 0% { transform: translate3d(-2.5%,1%,0) rotate(-2.2deg) scale(1.02); } 48% { transform: translate3d(1%,-2%,0) rotate(.7deg) scale(1.075); } 100% { transform: translate3d(3.5%,2.5%,0) rotate(2.5deg) scale(1.04); } }
@keyframes materialMorph { 0% { opacity: .56; transform: scale(.975); filter: saturate(.6); } 100% { opacity: 1; transform: scale(1); filter: saturate(1); } }
@keyframes metricMarkPop { 0% { opacity: 0; transform: translateY(-7px) scale(.72); } 62% { opacity: 1; transform: translateY(1px) scale(1.08); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes themeIconSwitch { 0% { opacity: .3; transform: rotate(-65deg) scale(.55); } 70% { opacity: 1; transform: rotate(8deg) scale(1.15); } 100% { opacity: 1; transform: rotate(0) scale(1); } }

@media (max-width: 1500px) {
  .app-shell { grid-template-columns: 226px minmax(700px, 1fr) 330px; gap: 12px; width: calc(100vw - 24px); }
  .workspace-grid { grid-template-columns: 280px minmax(460px, 1fr); }
  .sidebar { padding-inline: 12px; }.nav-item { padding-inline: 12px; gap: 10px; }.topbar { grid-template-columns: 240px minmax(300px, 1fr) auto; gap: 10px; }
  .metric-card { padding-inline: 18px; }.metric-card strong { font-size: 34px; }
  .details-content { padding-inline: 16px; }
  .material-drawer { --drawer-right: 12px; width: 330px; top: 12px; bottom: 12px; }.material-body { padding-inline: 14px; }.material-heading { padding-inline: 16px; }.material-heading h2 { font-size: 18px; }
}

@media (max-height: 820px) {
  .app-shell { height: calc(100vh - 20px); margin-block: 10px; }.core { grid-template-rows: 58px 132px minmax(0,1fr); }.metric-card { padding-block: 15px; border-radius: 22px; }.metric-card strong { font-size: 32px; }.metric-card p { margin-top: 5px; }.carousel-panel { grid-template-rows: 48px minmax(280px,1fr) 115px; }.nav-item { height: 44px; }.details-heading { height: 54px; }.completion-card { transform: rotate(-5deg) scale(.88); transform-origin: top left; }.doc-card { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--rotate)) scale(calc(var(--scale) * .86)); }.card-scene { top: 45%; }.scroll-tip { bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
