:root {
  --font-ui: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --text: #111827;
  --muted: #627087;
  --hairline: rgba(20, 28, 46, 0.14);
  --panel: rgba(246, 248, 252, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.93);
  --panel-dark: rgba(38, 44, 59, 0.78);
  --accent: #246bfe;
  --accent-2: #00a7c8;
  --accent-3: #9a55ff;
  --warm: #ef8b45;
  --danger: #e5484d;
  --success: #1c9c73;
  --shadow-soft: 0 18px 50px rgba(22, 31, 58, 0.24);
  --shadow-window: 0 28px 80px rgba(15, 23, 42, 0.36);
  --taskbar-height: 58px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-ui);
  background: #dce9f7;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body[data-theme="dark"] {
  --text: #edf5ff;
  --muted: #9aa8bd;
  --hairline: rgba(255, 255, 255, 0.13);
  --panel: rgba(13, 20, 34, 0.84);
  --panel-strong: rgba(18, 27, 44, 0.94);
  --panel-dark: rgba(5, 9, 21, 0.86);
  --shadow-soft: 0 20px 58px rgba(0, 0, 0, 0.36);
  --shadow-window: 0 32px 90px rgba(0, 0, 0, 0.48);
  background: #07131e;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.55), transparent 26%),
    linear-gradient(135deg, #d9ecff 0%, #eef4ff 31%, #f5e9f5 56%, #e6f8f8 100%);
}

.wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bloom {
  position: absolute;
  width: 60vmin;
  height: 44vmin;
  filter: blur(1px);
  opacity: 0.9;
  transform-origin: center;
}

.bloom::before,
.bloom::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 44% 56% 38% 62% / 58% 45% 55% 42%;
}

.bloom-a {
  right: 9vw;
  top: 13vh;
  transform: rotate(-18deg);
}

.bloom-a::before {
  background: linear-gradient(135deg, rgba(41, 120, 255, 0.85), rgba(0, 192, 214, 0.46) 58%, rgba(255, 255, 255, 0.4));
  clip-path: polygon(0 12%, 100% 0, 88% 100%, 8% 76%);
}

.bloom-a::after {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.58), rgba(151, 88, 255, 0.58));
  clip-path: polygon(26% 0, 100% 20%, 72% 100%, 0 80%);
  transform: translate(-23%, 15%) rotate(12deg);
}

.bloom-b {
  left: 5vw;
  bottom: 13vh;
  width: 48vmin;
  height: 36vmin;
  transform: rotate(22deg);
  opacity: 0.72;
}

.bloom-b::before {
  background: linear-gradient(135deg, rgba(0, 171, 194, 0.58), rgba(255, 255, 255, 0.44));
  clip-path: polygon(6% 0, 94% 20%, 81% 95%, 0 74%);
}

.bloom-b::after {
  background: linear-gradient(160deg, rgba(255, 199, 129, 0.58), rgba(255, 255, 255, 0.32));
  transform: translate(31%, -3%) rotate(-17deg);
  clip-path: polygon(0 16%, 76% 0, 100% 86%, 28% 100%);
}

.bloom-c {
  right: 30vw;
  bottom: -12vh;
  width: 44vmin;
  height: 32vmin;
  transform: rotate(-7deg);
  opacity: 0.52;
}

.bloom-c::before {
  background: linear-gradient(135deg, rgba(129, 86, 255, 0.54), rgba(255, 255, 255, 0.5));
  clip-path: polygon(0 24%, 100% 0, 84% 92%, 12% 100%);
}

.bloom-c::after {
  background: linear-gradient(135deg, rgba(0, 167, 200, 0.38), rgba(255, 255, 255, 0.4));
  transform: translate(14%, -18%) rotate(24deg);
}

.light-ribbon {
  position: absolute;
  width: 94vmax;
  height: 22vmax;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  opacity: 0.52;
}

.ribbon-a {
  left: -18vw;
  top: 4vh;
  transform: rotate(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.ribbon-b {
  right: -32vw;
  bottom: 0;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(0, 167, 200, 0.12), transparent);
}

.boot-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 45%, rgba(44, 121, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #0d1b34, #141a2f 55%, #111827);
  transition: opacity 520ms ease, visibility 520ms ease;
}

.boot-screen.is-done {
  visibility: hidden;
  opacity: 0;
}

.boot-logo {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 6px;
  filter: drop-shadow(0 14px 28px rgba(45, 126, 255, 0.42));
}

.boot-logo span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #48c5ff, #3775ff 60%, #8f69ff);
}

.boot-loader {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.boot-screen p {
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  font-size: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.desktop-icons {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, 86px);
  gap: 8px 10px;
  max-width: calc(100vw - 34px);
  max-height: calc(100vh - var(--taskbar-height) - 28px);
}

.desktop-icon {
  display: grid;
  width: 82px;
  height: 82px;
  padding: 8px 6px 5px;
  place-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #10203a;
  background: transparent;
  text-align: center;
  cursor: default;
  user-select: none;
}

.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.is-selected {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.desktop-icon:active {
  background: rgba(36, 107, 254, 0.18);
}

.desktop-icon .icon-wrap {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  filter: drop-shadow(0 8px 12px rgba(20, 45, 80, 0.2));
}

.desktop-icon span:last-child {
  display: -webkit-box;
  max-width: 76px;
  min-height: 30px;
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  line-height: 15px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.window-layer {
  position: absolute;
  z-index: 5;
  inset: 0 0 var(--taskbar-height) 0;
  pointer-events: none;
}

.window {
  position: absolute;
  display: flex;
  min-width: 360px;
  min-height: 260px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(250, 252, 255, 0.7);
  border-radius: 12px;
  background: rgba(246, 248, 252, 0.92);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(28px) saturate(1.18);
  pointer-events: auto;
  transform: translateZ(0);
}

.window.is-active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 32px 90px rgba(13, 27, 52, 0.42);
}

.window.is-minimized {
  display: none;
}

.window.is-maximized {
  inset: 8px 8px 8px 8px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 9px;
}

.window-titlebar {
  display: flex;
  height: 42px;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 0 0 12px;
  border-bottom: 1px solid rgba(33, 43, 65, 0.09);
  background: rgba(255, 255, 255, 0.5);
  user-select: none;
}

.window-titlebar .title-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.window-titlebar .title-text {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: #1c263a;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  height: 100%;
  margin-left: auto;
}

.window-control {
  display: grid;
  width: 45px;
  height: 100%;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: default;
}

.window-control:hover {
  background: rgba(15, 23, 42, 0.08);
}

.window-control.close:hover {
  color: #fff;
  background: var(--danger);
}

.window-body {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
}

.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.resize-handle::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid rgba(37, 48, 70, 0.35);
  border-bottom: 2px solid rgba(37, 48, 70, 0.35);
}

.panel-glass {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(30px) saturate(1.2);
}

.taskbar {
  position: absolute;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: var(--taskbar-height);
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(244, 247, 252, 0.78);
  box-shadow: 0 -10px 40px rgba(21, 31, 52, 0.12);
  backdrop-filter: blur(28px) saturate(1.22);
}

.taskbar-button,
.taskbar-app,
.system-pill,
.clock-pill,
.taskbar-search {
  border: 1px solid transparent;
  background: transparent;
  cursor: default;
}

.taskbar-button,
.taskbar-app {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
}

.taskbar-button:hover,
.taskbar-app:hover,
.taskbar-search:hover,
.system-pill:hover,
.clock-pill:hover {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.55);
}

.taskbar-button.is-open,
.taskbar-app.is-open,
.taskbar-button.is-active,
.taskbar-app.is-active {
  background: rgba(255, 255, 255, 0.7);
}

.taskbar-app::after,
.taskbar-button.is-open::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 6px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: rgba(36, 107, 254, 0.86);
  transform: translateX(-50%);
}

.taskbar-app.is-active::after {
  width: 17px;
}

.taskbar-search {
  display: flex;
  width: 196px;
  height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 999px;
  color: #46536a;
  background: rgba(255, 255, 255, 0.48);
  text-align: left;
}

.taskbar-search-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid #58657b;
  border-radius: 50%;
}

.taskbar-search-icon::after {
  position: absolute;
  width: 7px;
  height: 2px;
  content: "";
  background: #58657b;
  transform: translate(12px, 12px) rotate(45deg);
}

.taskbar-apps {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.taskbar-spacer {
  flex: 1;
}

.system-pill {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 9px;
}

.system-pill span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.clock-pill {
  display: grid;
  min-width: 84px;
  height: 42px;
  align-content: center;
  padding: 0 10px;
  border-radius: 9px;
  text-align: right;
}

.clock-pill span {
  display: block;
  font-size: 12px;
  line-height: 16px;
}

.clock-pill span:first-child {
  color: #152033;
  font-weight: 600;
}

.clock-pill span:last-child {
  color: #4f5f78;
}

.start-menu,
.search-panel {
  position: absolute;
  z-index: 45;
  bottom: calc(var(--taskbar-height) + 12px);
  left: 50%;
  width: min(640px, calc(100vw - 24px));
  max-height: min(735px, calc(100vh - var(--taskbar-height) - 28px));
  padding: 22px;
  overflow: hidden;
  border-radius: 18px;
  transform: translateX(-50%);
}

.start-menu {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
}

.search-panel {
  display: grid;
  gap: 14px;
}

.menu-search {
  position: relative;
}

.menu-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1px solid rgba(36, 107, 254, 0.25);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 -2px 0 rgba(36, 107, 254, 0.25);
}

.menu-search svg {
  position: absolute;
  top: 12px;
  left: 15px;
  color: #5b6880;
}

.start-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
}

.start-section-title button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 8px;
}

.pinned-app {
  display: grid;
  min-height: 76px;
  place-items: center;
  gap: 6px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.pinned-app:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.46);
}

.pinned-app span:last-child {
  max-width: 82px;
  overflow: hidden;
  color: #233047;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-list {
  display: grid;
  max-height: 192px;
  overflow: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-right: 3px;
}

.recommend-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.recommend-item:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.45);
}

.recommend-text {
  min-width: 0;
}

.recommend-text strong,
.recommend-text span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-text strong {
  color: #1c2638;
  font-size: 13px;
}

.recommend-text span {
  color: #66758d;
  font-size: 11px;
}

.start-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -22px -22px;
  padding: 12px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.44);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2a3d;
  font-size: 13px;
  font-weight: 650;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8 52%, #ef8b45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.power-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.power-button:hover {
  background: rgba(229, 72, 77, 0.12);
  color: var(--danger);
}

.widgets-panel,
.quick-settings,
.calendar-panel {
  position: absolute;
  z-index: 44;
  bottom: calc(var(--taskbar-height) + 12px);
  overflow: hidden;
  border-radius: 18px;
}

.widgets-panel {
  left: 14px;
  width: min(430px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - var(--taskbar-height) - 30px));
  padding: 18px;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.widget-head h2,
.quick-settings h2,
.calendar-panel h2 {
  margin: 0;
  color: #152033;
  font-size: 18px;
}

.widget-grid {
  display: grid;
  gap: 10px;
}

.widget-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.widget-weather {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
}

.weather-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffcf7a, #7fd8ff);
}

.widget-card h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 14px;
}

.widget-card p {
  margin: 0;
  color: #5c6a82;
  font-size: 13px;
  line-height: 1.45;
}

.widget-card strong {
  color: #102033;
}

.stock-row,
.agenda-row,
.news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.stock-row:first-child,
.agenda-row:first-child,
.news-row:first-child {
  border-top: 0;
}

.stock-row span,
.agenda-row span,
.news-row span {
  color: #627087;
  font-size: 12px;
}

.quick-settings {
  right: 112px;
  width: 360px;
  padding: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.quick-toggle {
  display: grid;
  min-height: 76px;
  place-items: center;
  gap: 7px;
  padding: 10px 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.quick-toggle.is-on {
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
}

.quick-toggle span {
  font-size: 12px;
}

.slider-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
}

.slider-row input {
  width: 100%;
  accent-color: var(--accent);
}

.calendar-panel {
  right: 12px;
  width: 360px;
  padding: 16px;
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day-name,
.day-cell {
  display: grid;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
}

.day-name {
  color: #66758d;
  font-weight: 700;
}

.day-cell {
  color: #202b3f;
  background: rgba(255, 255, 255, 0.38);
}

.day-cell.is-muted {
  color: #9aa5b6;
  background: rgba(255, 255, 255, 0.18);
}

.day-cell.is-today {
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
}

.context-menu {
  position: absolute;
  z-index: 80;
  min-width: 220px;
  padding: 6px;
  border-radius: 10px;
}

.context-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}

.context-menu button:hover {
  background: rgba(255, 255, 255, 0.58);
}

.toast-stack {
  position: absolute;
  z-index: 90;
  right: 14px;
  bottom: calc(var(--taskbar-height) + 16px);
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(250, 252, 255, 0.86);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(24px);
  animation: toastIn 220ms ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.toast strong,
.toast span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast strong {
  color: #172033;
  font-size: 13px;
}

.toast span {
  color: #66758d;
  font-size: 12px;
}

.app-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.split-app {
  display: grid;
  height: 100%;
  grid-template-columns: 190px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.48);
}

.side-nav {
  overflow: auto;
  padding: 12px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(250, 252, 255, 0.42);
}

.side-nav button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #253149;
  text-align: left;
}

.side-nav button:hover,
.side-nav button.is-active {
  background: rgba(36, 107, 254, 0.1);
}

.content-pane {
  min-width: 0;
  overflow: auto;
  padding: 16px;
}

.section-title {
  margin: 0 0 14px;
  color: #172033;
  font-size: 20px;
  line-height: 1.25;
}

.subtle {
  color: #66758d;
}

.browser-app {
  display: grid;
  height: 100%;
  grid-template-rows: 38px 48px minmax(0, 1fr);
  background: #f9fbff;
}

.browser-tabs {
  display: flex;
  min-width: 0;
  align-items: end;
  gap: 4px;
  padding: 5px 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(235, 240, 248, 0.75);
}

.browser-tab {
  display: flex;
  min-width: 94px;
  max-width: 190px;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 9px 9px 0 0;
  background: rgba(255, 255, 255, 0.38);
}

.browser-tab.is-active {
  border-color: rgba(15, 23, 42, 0.07);
  background: #fff;
}

.browser-tab-title {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close,
.tab-add,
.browser-nav-button,
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.tab-close {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.tab-add {
  width: 32px;
  height: 30px;
  border-radius: 8px;
}

.tab-close:hover,
.tab-add:hover,
.browser-nav-button:hover,
.icon-button:hover {
  background: rgba(15, 23, 42, 0.08);
}

.browser-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.browser-nav {
  display: flex;
  gap: 2px;
}

.browser-nav-button,
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #3c4960;
}

.address-wrap {
  position: relative;
  min-width: 0;
}

.address-wrap input {
  width: 100%;
  height: 34px;
  padding: 0 14px 0 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  outline: 0;
  background: #f1f5fb;
}

.address-wrap input:focus {
  border-color: rgba(36, 107, 254, 0.38);
  background: #fff;
}

.address-wrap svg {
  position: absolute;
  top: 9px;
  left: 13px;
  color: #66758d;
}

.browser-content {
  min-width: 0;
  overflow: auto;
  background: linear-gradient(180deg, #f9fbff, #eef3f8);
}

.web-page {
  min-height: 100%;
  padding: 24px;
}

.web-home {
  display: grid;
  min-height: 100%;
  align-content: start;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.web-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  color: #16315f;
  font-size: 31px;
  font-weight: 760;
}

.web-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(41, 71, 114, 0.12);
}

.web-search input {
  height: 44px;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  background: rgba(241, 245, 251, 0.9);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9px;
  font-weight: 650;
  text-decoration: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
  border-color: transparent;
}

.ghost-button {
  color: #263247;
  background: rgba(255, 255, 255, 0.7);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr));
  gap: 10px;
}

.quick-link,
.web-card,
.result-card,
.store-card,
.setting-card,
.file-tile,
.photo-tile,
.calc-button,
.mail-item {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 28px rgba(29, 45, 75, 0.07);
}

.quick-link {
  display: grid;
  min-height: 86px;
  place-items: center;
  gap: 7px;
  padding: 10px 6px;
  color: #1b2740;
  text-align: center;
}

.quick-link strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.web-card {
  padding: 16px;
}

.web-card h2,
.web-card h3 {
  margin: 0 0 10px;
  color: #172033;
}

.web-card h2 {
  font-size: 20px;
}

.web-card h3 {
  font-size: 16px;
}

.web-card p,
.result-card p,
.store-card p {
  margin: 0;
  color: #627087;
  font-size: 13px;
  line-height: 1.5;
}

.result-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.result-card {
  padding: 15px;
}

.result-card a {
  color: #175bd7;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.result-card .url {
  display: block;
  margin: 3px 0 7px;
  color: var(--success);
  font-size: 12px;
}

.external-frame {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto minmax(280px, 1fr);
  gap: 12px;
}

.external-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.external-frame iframe {
  width: 100%;
  min-height: 440px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
}

.explorer-app {
  display: grid;
  height: 100%;
  grid-template-rows: 48px minmax(0, 1fr);
}

.explorer-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 190px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.path-box,
.explorer-search {
  height: 33px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.path-box {
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #44516a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-search {
  outline: none;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.file-tile {
  display: grid;
  min-height: 108px;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
}

.file-tile:hover {
  background: rgba(255, 255, 255, 0.88);
}

.file-tile strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #233047;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tile span {
  color: #718098;
  font-size: 11px;
}

.notepad-app {
  display: grid;
  height: 100%;
  grid-template-rows: 38px minmax(0, 1fr);
  background: #fbfdff;
}

.notepad-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.notepad-menu button {
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.notepad-menu button:hover {
  background: rgba(15, 23, 42, 0.07);
}

.notepad-app textarea {
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  border: 0;
  outline: none;
  resize: none;
  color: #152033;
  background: #fbfdff;
  font: 15px/1.65 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.settings-app {
  height: 100%;
}

.settings-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-head h1 {
  margin: 0;
  font-size: 25px;
}

.settings-search {
  height: 34px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.74);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-settings {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.theme-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #14233c, #246bfe 56%, #00a7c8);
  box-shadow: 0 16px 42px rgba(36, 107, 254, 0.15);
}

.settings-kicker {
  display: block;
  margin-bottom: 7px;
  color: rgba(217, 247, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.theme-hero h2,
.theme-hero p {
  margin: 0;
}

.theme-hero h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.theme-hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 28px rgba(29, 45, 75, 0.07);
  text-align: left;
}

.theme-option:hover,
.theme-option.is-active {
  border-color: rgba(36, 107, 254, 0.38);
  background: rgba(255, 255, 255, 0.82);
}

.theme-option.is-active {
  box-shadow: inset 0 0 0 2px rgba(36, 107, 254, 0.18), 0 12px 32px rgba(36, 107, 254, 0.12);
}

.theme-option > span:last-child {
  display: grid;
  gap: 5px;
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option strong {
  color: #172033;
  font-size: 15px;
}

.theme-option small {
  color: #66758d;
  font-size: 12px;
  line-height: 1.42;
}

.theme-preview {
  position: relative;
  display: block;
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.theme-preview-light {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, #d9ecff, #f5e9f5 58%, #e6f8f8);
}

.theme-preview-dark {
  background:
    radial-gradient(circle at 78% 18%, rgba(104, 224, 177, 0.22), transparent 26%),
    linear-gradient(135deg, #07131e, #172033 56%, #0b1020);
}

.theme-preview i,
.theme-preview b,
.theme-preview em {
  position: absolute;
  display: block;
  border-radius: 10px;
}

.theme-preview i {
  right: 11px;
  bottom: 12px;
  width: 50px;
  height: 34px;
  background: rgba(255, 255, 255, 0.65);
}

.theme-preview b {
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 9px;
  background: rgba(36, 107, 254, 0.82);
}

.theme-preview em {
  left: 14px;
  top: 14px;
  width: 56px;
  height: 26px;
  background: rgba(255, 255, 255, 0.35);
}

.theme-preview-dark i,
.theme-preview-dark em {
  background: rgba(248, 251, 255, 0.13);
}

.theme-preview-dark b {
  background: linear-gradient(90deg, #68e0b1, #246bfe);
}

.setting-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.setting-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.setting-card p {
  margin: 0;
  color: #66758d;
  font-size: 12px;
  line-height: 1.42;
}

.toggle {
  position: relative;
  display: inline-flex;
  width: 45px;
  height: 24px;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  transition: 160ms ease;
}

.toggle::after {
  width: 18px;
  height: 18px;
  margin-left: 3px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: 160ms ease;
}

.toggle.is-on {
  background: var(--accent);
}

.toggle.is-on::after {
  margin-left: 24px;
}

.sound-settings {
  display: grid;
  gap: 14px;
}

.sound-hero,
.music-hero,
.music-now,
.music-controls-panel,
.music-spatial-card,
.spatial-stage-card,
.spatial-controls {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 34px rgba(29, 45, 75, 0.08);
}

.sound-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(36, 107, 254, 0.92), rgba(0, 167, 200, 0.78) 58%, rgba(154, 85, 255, 0.68));
}

.sound-hero h2,
.sound-hero p {
  margin: 0;
}

.sound-hero h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.sound-hero p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.spatial-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: 12px;
}

.spatial-stage-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.spatial-stage,
.music-spatial-orbit {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(rgba(36, 107, 254, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 107, 254, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(104, 224, 177, 0.24), transparent 16%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(232, 241, 250, 0.88));
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.spatial-stage::before,
.spatial-stage::after,
.music-spatial-orbit::before,
.music-spatial-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(36, 107, 254, 0.16);
  border-radius: 50%;
  inset: 18%;
}

.spatial-stage::after,
.music-spatial-orbit::after {
  inset: 32%;
}

.listener-dot,
.sound-source-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.listener-dot {
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
  box-shadow: 0 12px 24px rgba(36, 107, 254, 0.26);
  font-size: 12px;
  font-weight: 800;
}

.sound-source-dot {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #ffdf70, #ef8b45);
  box-shadow: 0 10px 24px rgba(239, 139, 69, 0.32);
}

button.sound-source-dot {
  cursor: pointer;
}

.stage-label {
  position: absolute;
  z-index: 1;
  color: #66758d;
  font-size: 12px;
  font-weight: 800;
}

.stage-front {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.stage-back {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.stage-left {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.stage-right {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.spatial-summary {
  margin: 0;
  color: #1f2a3d;
  font-weight: 760;
  text-align: center;
}

.spatial-controls {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
}

.spatial-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spatial-topline strong,
.spatial-topline small {
  display: block;
}

.spatial-topline small {
  margin-top: 3px;
  color: #66758d;
}

.spatial-slider-row {
  display: grid;
  grid-template-columns: 58px 40px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 9px;
  color: #263247;
  font-size: 13px;
  font-weight: 700;
}

.spatial-slider-row small {
  color: #66758d;
  font-size: 11px;
  font-weight: 600;
}

.spatial-slider-row input {
  width: 100%;
  accent-color: var(--accent);
}

.spatial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-app,
.photos-app,
.music-app,
.mail-app {
  height: 100%;
  overflow: auto;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(242, 246, 252, 0.78));
}

.music-shell {
  display: grid;
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
}

.music-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, #18243a, #246bfe 54%, #00a7c8);
}

.music-hero h1,
.music-hero p {
  margin: 0;
}

.music-hero h1 {
  margin-bottom: 7px;
  font-size: 26px;
}

.music-hero p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.music-disc {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f8fbff 0 12%, transparent 13%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.24) 0 3px, transparent 4px 9px),
    radial-gradient(circle at 30% 26%, #9a55ff, #102033 58%, #07131e);
  box-shadow: 0 18px 42px rgba(7, 19, 30, 0.28);
}

.music-disc.is-playing {
  animation: discSpin 3.4s linear infinite;
}

@keyframes discSpin {
  to {
    transform: rotate(360deg);
  }
}

.music-disc span {
  position: absolute;
  inset: 39px;
  border-radius: 50%;
  background: #f8fbff;
}

.music-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.music-kicker {
  display: block;
  margin-bottom: 5px;
  color: #66758d;
  font-size: 12px;
  font-weight: 800;
}

.music-now h2 {
  max-width: 100%;
  margin: 0 0 5px;
  overflow: hidden;
  color: #172033;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-now p,
.music-spatial-card p {
  margin: 0;
  color: #66758d;
  font-size: 13px;
  line-height: 1.45;
}

.music-file-button {
  position: relative;
  overflow: hidden;
}

.music-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.music-controls-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.music-progress-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: #526078;
  font-size: 12px;
  font-weight: 700;
}

.music-progress-row input,
.music-volume input {
  width: 100%;
  accent-color: var(--accent);
}

.music-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.music-round-button,
.music-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.music-round-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.music-play-button {
  height: 46px;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
  font-weight: 800;
}

.music-volume {
  display: grid;
  min-width: 150px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.music-spatial-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.music-spatial-card h3 {
  margin: 0 0 8px;
  color: #172033;
}

.music-spatial-orbit {
  min-height: 180px;
}

.peonia-app {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 266px minmax(0, 1fr);
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 138, 184, 0.16), transparent 28%),
    linear-gradient(135deg, #101827, #07131e 58%, #080711);
}

.peonia-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 24, 0.56);
  backdrop-filter: blur(20px);
}

.peonia-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.peonia-brand strong,
.peonia-brand small {
  display: block;
}

.peonia-brand strong {
  color: #fff;
  font-size: 16px;
}

.peonia-brand small {
  color: rgba(248, 251, 255, 0.62);
  font-size: 12px;
}

.peonia-file-button {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.peonia-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.peonia-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.peonia-actions .ghost-button {
  min-width: 0;
  padding-inline: 8px;
  color: rgba(248, 251, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.peonia-actions .ghost-button.is-active {
  color: #07131e;
  background: linear-gradient(135deg, #d9f7ff, #68e0b1);
}

.peonia-control-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.peonia-control-card strong {
  color: #fff;
  font-size: 13px;
}

.peonia-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.peonia-mode-grid button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(248, 251, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 850;
}

.peonia-mode-grid button.is-active {
  border-color: rgba(232, 138, 184, 0.58);
  color: #07131e;
  background: linear-gradient(135deg, #ffe5f1, #e98ab6 54%, #68e0b1);
}

.peonia-slider-row {
  display: grid;
  gap: 7px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.peonia-slider-row input {
  width: 100%;
  accent-color: #e98ab6;
}

.peonia-thumbs {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.peonia-thumbs button {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(248, 251, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.peonia-thumbs button.is-active {
  border-color: rgba(104, 224, 177, 0.46);
  background: rgba(104, 224, 177, 0.12);
}

.peonia-thumbs img {
  width: 48px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.peonia-thumbs span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peonia-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #050915;
}

.peonia-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.peonia-stage-guide,
.peonia-readout {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 13, 24, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.peonia-stage-guide {
  left: 50%;
  top: 50%;
  display: grid;
  width: min(450px, calc(100% - 30px));
  gap: 9px;
  padding: 18px;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.peonia-stage-guide strong {
  color: #fff;
  font-size: 22px;
}

.peonia-stage-guide span {
  color: rgba(248, 251, 255, 0.74);
  line-height: 1.48;
}

.peonia-readout {
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  color: rgba(248, 251, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.peonia-readout span,
.peonia-readout b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peonia-readout span {
  min-width: 0;
}

.peonia-readout b {
  color: #68e0b1;
}

.stream-app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 0%, rgba(229, 72, 77, 0.28), transparent 34%),
    linear-gradient(180deg, #101827, #07131e 58%, #0b1020);
}

.stream-home {
  height: 100%;
  overflow: auto;
  padding: 18px 22px 26px;
}

.stream-topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0 16px;
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(16, 24, 39, 0));
}

.stream-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.stream-logo strong {
  color: #ff4d5a;
  font-size: 21px;
  letter-spacing: 0;
}

.stream-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stream-topbar nav button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.78);
  background: transparent;
}

.stream-topbar nav button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.stream-hero {
  display: grid;
  min-height: 310px;
  align-items: end;
  margin-bottom: 22px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 28%, var(--c2), transparent 20%),
    radial-gradient(circle at 86% 72%, var(--c3), transparent 24%),
    linear-gradient(135deg, var(--c0), var(--c1) 62%, #07131e);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.stream-hero h1 {
  max-width: 680px;
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 0.95;
}

.stream-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.stream-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff4d5a;
  font-size: 12px;
  font-weight: 900;
}

.stream-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stream-play,
.stream-info,
.stream-play-control,
.stream-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  font-weight: 800;
}

.stream-play {
  height: 42px;
  gap: 8px;
  padding: 0 18px;
  color: #07131e;
  background: #fff;
}

.stream-info {
  height: 42px;
  gap: 8px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.stream-row {
  margin-top: 22px;
}

.stream-row h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.stream-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.stream-card-row.compact {
  grid-auto-columns: minmax(145px, 1fr);
}

.stream-card {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.stream-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.stream-thumb {
  position: relative;
  display: block;
  height: 112px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 30%, var(--c2), transparent 19%),
    radial-gradient(circle at 24% 78%, var(--c3), transparent 23%),
    linear-gradient(135deg, var(--c0), var(--c1));
}

.stream-card.is-compact .stream-thumb {
  height: 90px;
}

.stream-thumb i {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 54px;
  font-style: normal;
  font-weight: 900;
}

.stream-thumb em,
.stream-thumb b {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.stream-thumb em {
  left: -18px;
  top: 24px;
  width: 130%;
  height: 2px;
  transform: rotate(-12deg);
}

.stream-thumb b {
  left: 18px;
  bottom: 18px;
  width: 48px;
  height: 6px;
}

.stream-card-copy {
  display: grid;
  gap: 4px;
  padding: 11px 12px 13px;
}

.stream-card-copy strong,
.stream-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-card-copy strong {
  font-size: 13px;
}

.stream-card-copy small {
  color: rgba(248, 251, 255, 0.62);
  font-size: 11px;
}

.stream-player-shell {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #050915;
}

.stream-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  background: #050915;
}

.stream-canvas:active {
  cursor: grabbing;
}

.stream-player-top,
.stream-player-panel,
.stream-guide,
.stream-controls {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 13, 24, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.stream-player-top {
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 9px 12px;
  border-radius: 12px;
}

.stream-player-top strong,
.stream-player-top span {
  display: block;
}

.stream-player-top span {
  color: rgba(248, 251, 255, 0.6);
  font-size: 12px;
}

.stream-icon-button {
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.stream-player-panel {
  right: 14px;
  top: 14px;
  width: min(320px, calc(100% - 28px));
  padding: 16px;
  border-radius: 16px;
}

.stream-player-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.stream-player-panel p {
  margin: 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.stream-vr-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.stream-vr-readout span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 251, 255, 0.64);
  font-size: 11px;
}

.stream-vr-readout b {
  color: #fff;
  font-size: 14px;
}

.stream-guide {
  left: 50%;
  top: 50%;
  display: grid;
  width: min(460px, calc(100% - 30px));
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  transform: translate(-50%, -50%);
}

.stream-guide strong {
  font-size: 22px;
}

.stream-guide span {
  color: rgba(248, 251, 255, 0.74);
  line-height: 1.48;
}

.stream-controls {
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

.stream-play-control {
  height: 38px;
  gap: 8px;
  padding: 0 14px;
  color: #07131e;
  background: #fff;
}

.stream-controls input {
  width: 100%;
  accent-color: #e5484d;
}

.external-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.archive-app {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 254px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(104, 224, 177, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(36, 107, 254, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.95), rgba(234, 241, 249, 0.9));
}

.archive-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(250, 252, 255, 0.62);
  backdrop-filter: blur(20px);
}

.archive-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.archive-brand strong,
.archive-brand small {
  display: block;
}

.archive-brand strong {
  color: #14233c;
  font-size: 16px;
}

.archive-brand small {
  color: #66758d;
  font-size: 12px;
}

.archive-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.archive-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14233c;
}

.archive-nav {
  display: grid;
  gap: 7px;
}

.archive-nav button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #253149;
  text-align: left;
}

.archive-nav button:hover,
.archive-nav button.is-active {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.7);
}

.archive-nav strong,
.archive-nav small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-nav strong {
  font-size: 13px;
}

.archive-nav small {
  color: #66758d;
  font-size: 11px;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: auto;
}

.archive-stats span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.56);
}

.archive-stats b {
  color: #14233c;
  font-size: 20px;
}

.archive-stats small {
  color: #66758d;
  font-size: 11px;
  font-weight: 700;
}

.archive-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  color: #fff;
}

.archive-hero > div:first-child,
.archive-spotlight {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(36, 107, 254, 0.14);
}

.archive-hero > div:first-child {
  padding: 22px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(135deg, #14233c, #246bfe 54%, #00a7c8);
}

.archive-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(217, 247, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.archive-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
}

.archive-hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.archive-spotlight {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 16px;
  color: #14233c;
  background: rgba(255, 255, 255, 0.72);
}

.archive-spotlight small {
  color: #246bfe;
  font-size: 12px;
  font-weight: 900;
}

.archive-spotlight strong {
  font-size: 19px;
}

.archive-spotlight p {
  color: #66758d;
  font-size: 13px;
}

.archive-filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.archive-filter-row button,
.archive-tags button {
  min-width: max-content;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #3c4960;
  font-weight: 750;
}

.archive-filter-row button {
  height: 34px;
  padding: 0 12px;
}

.archive-filter-row button.is-active {
  border-color: rgba(36, 107, 254, 0.32);
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.archive-card,
.archive-empty {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.archive-card {
  display: grid;
  gap: 9px;
  min-height: 230px;
  padding: 13px;
}

.archive-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.archive-card-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: rgba(246, 248, 252, 0.92);
}

.archive-card-head button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #536178;
}

.archive-card h3 {
  margin: 0;
  color: #14233c;
  font-size: 16px;
}

.archive-card p {
  margin: 0;
  color: #66758d;
  font-size: 13px;
  line-height: 1.45;
}

.archive-url {
  overflow: hidden;
  color: #246bfe;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-tags button {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.archive-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: end;
}

.archive-card-actions .primary-button,
.archive-card-actions .ghost-button {
  height: 34px;
  padding: 0 11px;
}

.archive-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #66758d;
  text-align: center;
}

.archive-empty strong {
  color: #14233c;
  font-size: 18px;
}

.holo-app {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 244px minmax(0, 1fr);
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 10%, rgba(104, 224, 177, 0.24), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(36, 107, 254, 0.22), transparent 28%),
    linear-gradient(135deg, #111827, #07131e 58%, #0b1020);
}

.holo-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 24, 0.48);
  backdrop-filter: blur(20px);
}

.holo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.holo-brand strong,
.holo-brand small {
  display: block;
}

.holo-brand strong {
  color: #fff;
  font-size: 16px;
}

.holo-brand small,
.holo-note {
  color: rgba(248, 251, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.holo-actions {
  display: grid;
  gap: 8px;
}

.holo-actions .primary-button,
.holo-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

.holo-actions .ghost-button.is-active {
  border-color: rgba(104, 224, 177, 0.54);
  color: #d9f7ff;
  background: rgba(104, 224, 177, 0.15);
}

.holo-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.holo-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.holo-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.holo-mode-grid button {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(248, 251, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.holo-mode-grid button.is-active {
  border-color: rgba(104, 224, 177, 0.62);
  color: #07131e;
  background: linear-gradient(135deg, #68e0b1, #d9f7ff);
}

.holo-slider {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.holo-slider input {
  width: 100%;
  accent-color: #68e0b1;
}

.holo-readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.holo-readout-grid span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
}

.holo-readout-grid small {
  color: rgba(248, 251, 255, 0.52);
  font-size: 10px;
  font-weight: 800;
}

.holo-readout-grid b {
  color: #fff;
  font-size: 14px;
}

.holo-note {
  margin: 0;
  padding-inline: 4px;
}

.holo-stage-shell {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.holo-topbar {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 13, 24, 0.56);
  backdrop-filter: blur(20px);
}

.holo-topbar strong,
.holo-topbar span {
  display: block;
}

.holo-topbar strong {
  color: #fff;
  font-size: 14px;
}

.holo-topbar span {
  color: rgba(248, 251, 255, 0.58);
  font-size: 12px;
}

.holo-top-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.holo-top-pills span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
}

.holo-top-pills b {
  color: #68e0b1;
}

.holo-canvas-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #050915;
}

.holo-video {
  display: none;
}

.holo-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  background: #050915;
}

.holo-canvas:active {
  cursor: grabbing;
}

.holo-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(440px, calc(100% - 28px));
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 13, 24, 0.68);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.holo-guide strong {
  color: #fff;
  font-size: 22px;
}

.holo-guide span {
  color: rgba(248, 251, 255, 0.74);
  line-height: 1.48;
}

.holo-debug-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 9, 21, 0.88);
}

.holo-debug-strip span {
  display: block;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 6px;
  color: rgba(248, 251, 255, 0.52);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holo-debug-strip b {
  color: #d9f7ff;
}

.store-hero,
.mail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.88), rgba(0, 167, 200, 0.78) 58%, rgba(239, 139, 69, 0.7));
  color: #fff;
  box-shadow: 0 18px 48px rgba(36, 107, 254, 0.18);
}

.store-hero h1,
.mail-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.store-hero p,
.mail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.store-card {
  padding: 14px;
}

.store-card .app-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(246, 248, 252, 0.9);
}

.store-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.store-card button {
  height: 32px;
  margin-top: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #246bfe;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.photo-tile {
  overflow: hidden;
}

.photo-art {
  height: 110px;
  border-radius: 12px 12px 0 0;
}

.photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: #253149;
  font-size: 12px;
}

.calculator-app {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  background: rgba(245, 248, 252, 0.92);
}

.calc-display {
  display: grid;
  min-height: 92px;
  align-content: end;
  justify-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.calc-history {
  color: #718098;
  font-size: 13px;
  min-height: 20px;
}

.calc-value {
  max-width: 100%;
  overflow: hidden;
  font-size: 36px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.calc-button {
  min-height: 48px;
  border-radius: 10px;
  font-size: 18px;
}

.calc-button:hover {
  background: rgba(255, 255, 255, 0.88);
}

.calc-button.operator {
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
}

.terminal-app {
  height: 100%;
  overflow: auto;
  padding: 16px;
  color: #d8f3ff;
  background: #0c1424;
  font: 14px/1.55 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.terminal-app p {
  margin: 0 0 8px;
}

.terminal-app .prompt {
  color: #68e0b1;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-input-line input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: #f6fbff;
  background: transparent;
  font: inherit;
}

.pong-app {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(104, 224, 177, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.92), rgba(232, 241, 250, 0.88));
}

.pong-shell {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 218px minmax(0, 1fr);
}

.pong-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(250, 252, 255, 0.58);
}

.pong-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 9px 8px 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pong-brand strong,
.pong-brand small {
  display: block;
}

.pong-brand strong {
  color: #14233c;
  font-size: 15px;
}

.pong-brand small,
.pong-stat-card small {
  color: #66758d;
  font-size: 12px;
}

.pong-nav {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #253149;
  text-align: left;
}

.pong-nav:hover,
.pong-nav.is-active {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.62);
}

.pong-stat-card {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.pong-stat-card span {
  color: #66758d;
  font-size: 12px;
  font-weight: 700;
}

.pong-stat-card strong {
  color: #14233c;
  font-size: 24px;
  line-height: 1.1;
}

.pong-main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pong-page {
  display: none;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.pong-page.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.pong-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pong-segment {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
}

.pong-segment button {
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3c4960;
  font-weight: 650;
}

.pong-segment button.is-active,
.pong-toolbar .ghost-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
}

.pong-board-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: #172033;
  box-shadow: 0 18px 46px rgba(24, 36, 58, 0.16);
}

.pong-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  background: #172033;
}

.pong-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 13px;
  color: #f8fbff;
  background: rgba(12, 20, 36, 0.62);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.pong-overlay strong {
  font-size: 15px;
}

.pong-overlay span {
  color: rgba(248, 251, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.pong-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.52);
}

.pong-meter {
  display: grid;
  min-width: 220px;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px 12px;
  color: #43506a;
  font-size: 12px;
  font-weight: 700;
}

.pong-meter i {
  display: block;
  overflow: hidden;
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.pong-meter em {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd66e, #68e0b1);
  transition: width 120ms linear;
}

.pong-music-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3c4960;
  font-size: 13px;
  font-weight: 650;
}

.pong-music-toggle input {
  accent-color: var(--accent);
}

.pong-tracking-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: 14px;
}

.pong-camera-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 35, 60, 0.94), rgba(12, 20, 36, 0.98));
  box-shadow: 0 18px 46px rgba(24, 36, 58, 0.14);
}

.pong-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transform: scaleX(-1);
}

.pong-tracker {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  object-fit: cover;
}

.pong-camera-mask {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  color: rgba(248, 251, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.pong-guide {
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.pong-guide h2 {
  margin: 0 0 8px;
  color: #14233c;
  font-size: 22px;
}

.pong-guide p {
  margin: 0 0 14px;
  color: #5d6b83;
  line-height: 1.55;
}

.pong-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pong-guide-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 142px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.pong-guide-grid strong,
.pong-guide-grid span {
  display: block;
}

.pong-guide-grid strong {
  color: #18243a;
}

.pong-guide-grid span {
  color: #66758d;
  font-size: 12px;
  line-height: 1.45;
}

.mail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
}

.mail-list {
  display: grid;
  gap: 8px;
}

.mail-item {
  padding: 12px;
}

.mail-item strong {
  display: block;
  margin-bottom: 5px;
}

.mail-item span,
.mail-reading p {
  color: #627087;
  font-size: 13px;
  line-height: 1.5;
}

.mail-reading {
  min-height: 300px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.mail-reading h2 {
  margin: 0 0 12px;
}

.search-results {
  display: grid;
  max-height: 420px;
  overflow: auto;
  gap: 8px;
}

.search-result-button {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
}

.search-result-button:hover {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.7);
}

.search-result-button strong,
.search-result-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-button span {
  color: #66758d;
  font-size: 12px;
}

body[data-theme="dark"] .bloom {
  opacity: 0.62;
}

body[data-theme="dark"] .bloom-a::before {
  background: linear-gradient(135deg, rgba(36, 107, 254, 0.42), rgba(104, 224, 177, 0.24) 58%, rgba(217, 247, 255, 0.12));
}

body[data-theme="dark"] .bloom-a::after {
  background: linear-gradient(140deg, rgba(217, 247, 255, 0.14), rgba(154, 85, 255, 0.28));
}

body[data-theme="dark"] .bloom-b::before {
  background: linear-gradient(135deg, rgba(0, 167, 200, 0.25), rgba(36, 107, 254, 0.12));
}

body[data-theme="dark"] .bloom-b::after {
  background: linear-gradient(160deg, rgba(239, 139, 69, 0.22), rgba(217, 247, 255, 0.08));
}

body[data-theme="dark"] .bloom-c::before,
body[data-theme="dark"] .bloom-c::after {
  background: linear-gradient(135deg, rgba(154, 85, 255, 0.22), rgba(0, 167, 200, 0.12));
}

body[data-theme="dark"] .light-ribbon {
  border-color: rgba(217, 247, 255, 0.12);
  opacity: 0.32;
}

body[data-theme="dark"] .ribbon-a,
body[data-theme="dark"] .ribbon-b {
  background: linear-gradient(90deg, transparent, rgba(104, 224, 177, 0.1), transparent);
}

body[data-theme="dark"] .desktop-icon,
body[data-theme="dark"] .desktop-icon span:last-child {
  color: #f3f8ff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

body[data-theme="dark"] .desktop-icon:hover,
body[data-theme="dark"] .desktop-icon:focus-visible,
body[data-theme="dark"] .desktop-icon.is-selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .desktop-icon:active {
  background: rgba(104, 224, 177, 0.13);
}

body[data-theme="dark"] .window {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 19, 33, 0.92);
}

body[data-theme="dark"] .window.is-active {
  border-color: rgba(217, 247, 255, 0.28);
  box-shadow: 0 34px 94px rgba(0, 0, 0, 0.58);
}

body[data-theme="dark"] .window-titlebar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(16, 24, 39, 0.72);
}

body[data-theme="dark"] .window-titlebar .title-text,
body[data-theme="dark"] .section-title,
body[data-theme="dark"] .settings-head h1,
body[data-theme="dark"] .widget-head h2,
body[data-theme="dark"] .quick-settings h2,
body[data-theme="dark"] .calendar-panel h2,
body[data-theme="dark"] .start-section-title,
body[data-theme="dark"] .web-card h2,
body[data-theme="dark"] .web-card h3,
body[data-theme="dark"] .setting-card h3,
body[data-theme="dark"] .file-tile strong,
body[data-theme="dark"] .music-now h2,
body[data-theme="dark"] .music-spatial-card h3,
body[data-theme="dark"] .store-card h3,
body[data-theme="dark"] .mail-reading h2,
body[data-theme="dark"] .archive-brand strong,
body[data-theme="dark"] .archive-stats b,
body[data-theme="dark"] .archive-card h3,
body[data-theme="dark"] .archive-empty strong,
body[data-theme="dark"] .pong-brand strong,
body[data-theme="dark"] .pong-stat-card strong,
body[data-theme="dark"] .pong-guide h2,
body[data-theme="dark"] .pong-guide-grid strong,
body[data-theme="dark"] .theme-option strong {
  color: #f5f9ff;
}

body[data-theme="dark"] .window-body {
  background: rgba(7, 12, 24, 0.72);
}

body[data-theme="dark"] .resize-handle::after {
  border-color: rgba(255, 255, 255, 0.28);
}

body[data-theme="dark"] .panel-glass {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(13, 20, 34, 0.84);
}

body[data-theme="dark"] .taskbar {
  border-top-color: rgba(255, 255, 255, 0.13);
  background: rgba(8, 13, 24, 0.78);
  box-shadow: 0 -10px 42px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .taskbar-button:hover,
body[data-theme="dark"] .taskbar-app:hover,
body[data-theme="dark"] .taskbar-search:hover,
body[data-theme="dark"] .system-pill:hover,
body[data-theme="dark"] .clock-pill:hover,
body[data-theme="dark"] .taskbar-button.is-open,
body[data-theme="dark"] .taskbar-app.is-open,
body[data-theme="dark"] .taskbar-button.is-active,
body[data-theme="dark"] .taskbar-app.is-active {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .taskbar-search {
  color: #c7d3e5;
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .taskbar-search-icon {
  border-color: #aebbd0;
}

body[data-theme="dark"] .taskbar-search-icon::after {
  background: #aebbd0;
}

body[data-theme="dark"] .clock-pill span:first-child,
body[data-theme="dark"] .user-chip,
body[data-theme="dark"] .widget-card strong,
body[data-theme="dark"] .recommend-text strong,
body[data-theme="dark"] .quick-link,
body[data-theme="dark"] .pinned-app span:last-child,
body[data-theme="dark"] .search-result-button strong,
body[data-theme="dark"] .spatial-summary {
  color: #f0f6ff;
}

body[data-theme="dark"] .clock-pill span:last-child,
body[data-theme="dark"] .recommend-text span,
body[data-theme="dark"] .widget-card p,
body[data-theme="dark"] .stock-row span,
body[data-theme="dark"] .agenda-row span,
body[data-theme="dark"] .news-row span,
body[data-theme="dark"] .subtle,
body[data-theme="dark"] .setting-card p,
body[data-theme="dark"] .stage-label,
body[data-theme="dark"] .spatial-topline small,
body[data-theme="dark"] .spatial-slider-row small,
body[data-theme="dark"] .web-card p,
body[data-theme="dark"] .result-card p,
body[data-theme="dark"] .store-card p,
body[data-theme="dark"] .file-tile span,
body[data-theme="dark"] .music-kicker,
body[data-theme="dark"] .music-now p,
body[data-theme="dark"] .music-spatial-card p,
body[data-theme="dark"] .music-progress-row,
body[data-theme="dark"] .mail-item span,
body[data-theme="dark"] .mail-reading p,
body[data-theme="dark"] .archive-brand small,
body[data-theme="dark"] .archive-nav small,
body[data-theme="dark"] .archive-stats small,
body[data-theme="dark"] .archive-spotlight p,
body[data-theme="dark"] .archive-card p,
body[data-theme="dark"] .archive-empty,
body[data-theme="dark"] .pong-brand small,
body[data-theme="dark"] .pong-stat-card span,
body[data-theme="dark"] .pong-stat-card small,
body[data-theme="dark"] .pong-guide p,
body[data-theme="dark"] .pong-guide-grid span,
body[data-theme="dark"] .pong-meter,
body[data-theme="dark"] .pong-music-toggle,
body[data-theme="dark"] .search-result-button span,
body[data-theme="dark"] .theme-option small {
  color: #9aa8bd;
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea {
  color: #edf5ff;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: #7f8ca3;
}

body[data-theme="dark"] .menu-search input,
body[data-theme="dark"] .settings-search,
body[data-theme="dark"] .address-wrap input,
body[data-theme="dark"] .web-search input,
body[data-theme="dark"] .path-box,
body[data-theme="dark"] .explorer-search,
body[data-theme="dark"] .archive-search,
body[data-theme="dark"] .notepad-app textarea {
  border-color: rgba(255, 255, 255, 0.12);
  color: #edf5ff;
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .split-app,
body[data-theme="dark"] .side-nav,
body[data-theme="dark"] .content-pane,
body[data-theme="dark"] .browser-app,
body[data-theme="dark"] .browser-content,
body[data-theme="dark"] .explorer-app,
body[data-theme="dark"] .notepad-app,
body[data-theme="dark"] .settings-app,
body[data-theme="dark"] .store-app,
body[data-theme="dark"] .photos-app,
body[data-theme="dark"] .music-app,
body[data-theme="dark"] .mail-app,
body[data-theme="dark"] .calculator-app {
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.92), rgba(8, 13, 24, 0.96));
}

body[data-theme="dark"] .side-nav,
body[data-theme="dark"] .archive-sidebar,
body[data-theme="dark"] .pong-sidebar {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(12, 19, 33, 0.72);
}

body[data-theme="dark"] .side-nav button,
body[data-theme="dark"] .archive-nav button,
body[data-theme="dark"] .pong-nav {
  color: #d9e5f5;
}

body[data-theme="dark"] .side-nav button:hover,
body[data-theme="dark"] .side-nav button.is-active,
body[data-theme="dark"] .archive-nav button:hover,
body[data-theme="dark"] .archive-nav button.is-active,
body[data-theme="dark"] .pong-nav:hover,
body[data-theme="dark"] .pong-nav.is-active {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(104, 224, 177, 0.1);
}

body[data-theme="dark"] .browser-tabs,
body[data-theme="dark"] .browser-toolbar,
body[data-theme="dark"] .explorer-toolbar,
body[data-theme="dark"] .notepad-menu,
body[data-theme="dark"] .start-user-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(16, 24, 39, 0.78);
}

body[data-theme="dark"] .browser-tab {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .browser-tab.is-active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(25, 36, 58, 0.94);
}

body[data-theme="dark"] .browser-nav-button,
body[data-theme="dark"] .icon-button,
body[data-theme="dark"] .path-box,
body[data-theme="dark"] .photo-caption,
body[data-theme="dark"] .spatial-slider-row {
  color: #c7d3e5;
}

body[data-theme="dark"] .tab-close:hover,
body[data-theme="dark"] .tab-add:hover,
body[data-theme="dark"] .browser-nav-button:hover,
body[data-theme="dark"] .icon-button:hover,
body[data-theme="dark"] .window-control:hover,
body[data-theme="dark"] .notepad-menu button:hover,
body[data-theme="dark"] .context-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .quick-link,
body[data-theme="dark"] .web-card,
body[data-theme="dark"] .result-card,
body[data-theme="dark"] .store-card,
body[data-theme="dark"] .setting-card,
body[data-theme="dark"] .file-tile,
body[data-theme="dark"] .photo-tile,
body[data-theme="dark"] .calc-button,
body[data-theme="dark"] .mail-item,
body[data-theme="dark"] .widget-card,
body[data-theme="dark"] .theme-option,
body[data-theme="dark"] .sound-hero,
body[data-theme="dark"] .music-now,
body[data-theme="dark"] .music-controls-panel,
body[data-theme="dark"] .music-spatial-card,
body[data-theme="dark"] .spatial-stage-card,
body[data-theme="dark"] .spatial-controls,
body[data-theme="dark"] .external-banner,
body[data-theme="dark"] .mail-reading,
body[data-theme="dark"] .archive-card,
body[data-theme="dark"] .archive-empty,
body[data-theme="dark"] .archive-spotlight,
body[data-theme="dark"] .archive-stats span,
body[data-theme="dark"] .pong-stat-card,
body[data-theme="dark"] .pong-bottom,
body[data-theme="dark"] .pong-segment,
body[data-theme="dark"] .pong-guide,
body[data-theme="dark"] .pong-guide-grid article,
body[data-theme="dark"] .calc-display,
body[data-theme="dark"] .toast {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(18, 27, 44, 0.74);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .theme-option:hover,
body[data-theme="dark"] .theme-option.is-active,
body[data-theme="dark"] .file-tile:hover,
body[data-theme="dark"] .calc-button:hover,
body[data-theme="dark"] .search-result-button:hover,
body[data-theme="dark"] .recommend-item:hover,
body[data-theme="dark"] .pinned-app:hover {
  border-color: rgba(104, 224, 177, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .theme-option.is-active {
  box-shadow: inset 0 0 0 2px rgba(104, 224, 177, 0.2), 0 12px 32px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .web-search,
body[data-theme="dark"] .recommend-item,
body[data-theme="dark"] .pinned-app:hover,
body[data-theme="dark"] .quick-toggle,
body[data-theme="dark"] .power-button,
body[data-theme="dark"] .search-result-button,
body[data-theme="dark"] .archive-card-head > span,
body[data-theme="dark"] .archive-card-head button,
body[data-theme="dark"] .archive-filter-row button,
body[data-theme="dark"] .archive-tags button,
body[data-theme="dark"] .music-round-button {
  border-color: rgba(255, 255, 255, 0.12);
  color: #dce8f8;
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .ghost-button {
  border-color: rgba(255, 255, 255, 0.13);
  color: #edf5ff;
  background: rgba(255, 255, 255, 0.09);
}

body[data-theme="dark"] .ghost-button:hover,
body[data-theme="dark"] .archive-card-head button:hover {
  background: rgba(255, 255, 255, 0.14);
}

body[data-theme="dark"] .quick-toggle.is-on,
body[data-theme="dark"] .archive-filter-row button.is-active,
body[data-theme="dark"] .pong-segment button.is-active,
body[data-theme="dark"] .pong-toolbar .ghost-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #246bfe, #00a7c8);
}

body[data-theme="dark"] .day-cell {
  color: #dce8f8;
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .day-cell.is-muted {
  color: #6f7d93;
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .stock-row,
body[data-theme="dark"] .agenda-row,
body[data-theme="dark"] .news-row,
body[data-theme="dark"] .archive-brand,
body[data-theme="dark"] .pong-brand {
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .spatial-stage,
body[data-theme="dark"] .music-spatial-orbit {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(104, 224, 177, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 224, 177, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(36, 107, 254, 0.22), transparent 16%),
    linear-gradient(135deg, rgba(8, 13, 24, 0.96), rgba(18, 27, 44, 0.9));
}

body[data-theme="dark"] .sound-source-dot {
  border-color: rgba(248, 251, 255, 0.86);
}

body[data-theme="dark"] .store-card .app-badge,
body[data-theme="dark"] .photo-caption {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .archive-app {
  background:
    radial-gradient(circle at 15% 10%, rgba(104, 224, 177, 0.14), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(36, 107, 254, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 13, 24, 0.98), rgba(16, 24, 39, 0.94));
}

body[data-theme="dark"] .archive-spotlight {
  color: #edf5ff;
}

body[data-theme="dark"] .archive-url,
body[data-theme="dark"] .archive-spotlight small,
body[data-theme="dark"] .result-card a {
  color: #7fb6ff;
}

body[data-theme="dark"] .result-card .url {
  color: #68e0b1;
}

body[data-theme="dark"] .pong-app {
  background:
    radial-gradient(circle at 16% 12%, rgba(104, 224, 177, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(8, 13, 24, 0.96), rgba(18, 27, 44, 0.92));
}

body[data-theme="dark"] .pong-segment button {
  color: #c7d3e5;
}

body[data-theme="dark"] .pong-board-wrap {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .pong-meter i {
  background: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .calc-button.operator,
body[data-theme="dark"] .music-play-button,
body[data-theme="dark"] .primary-button {
  color: #fff;
}

body[data-theme="dark"] .toast strong {
  color: #f5f9ff;
}

body[data-theme="dark"] .toast span {
  color: #9aa8bd;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(89, 103, 128, 0.42);
  background-clip: content-box;
}

@media (max-width: 840px) {
  .taskbar {
    gap: 4px;
    padding-inline: 6px;
  }

  .taskbar-search {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .taskbar-search span:last-child {
    display: none;
  }

  .pinned-grid {
    grid-template-columns: repeat(4, minmax(66px, 1fr));
  }

  .recommend-list,
  .web-grid,
  .settings-grid,
  .theme-options,
  .mail-layout,
  .pong-tracking-layout,
  .spatial-layout,
  .music-spatial-card,
  .archive-app,
  .archive-hero,
  .holo-app,
  .peonia-app,
  .stream-card-row,
  .stream-card-row.compact {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }

  .split-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pong-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .archive-sidebar {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .archive-stats {
    margin-top: 0;
  }

  .holo-sidebar {
    max-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .peonia-panel {
    max-height: 285px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .peonia-stage {
    min-height: 440px;
  }

  .holo-stage-shell {
    min-height: 480px;
  }

  .pong-brand span,
  .pong-nav span,
  .pong-stat-card small,
  .pong-stat-card span {
    display: none;
  }

  .pong-stat-card {
    place-items: center;
    padding: 10px 6px;
  }

  .pong-stat-card strong {
    font-size: 15px;
  }

  .side-nav button span:last-child {
    display: none;
  }

  .quick-settings,
  .calendar-panel {
    right: 8px;
    width: min(360px, calc(100vw - 16px));
  }

  .explorer-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .explorer-search {
    display: none;
  }
}

@media (max-width: 540px) {
  :root {
    --taskbar-height: 56px;
  }

  .desktop-icons {
    grid-template-rows: repeat(6, 82px);
  }

  .window {
    min-width: 300px;
  }

  .window:not(.is-maximized) {
    left: 8px !important;
    width: calc(100vw - 16px) !important;
  }

  .system-pill {
    display: none;
  }

  .clock-pill {
    min-width: 70px;
    padding-inline: 6px;
  }

  .widgets-panel,
  .quick-settings,
  .calendar-panel {
    left: 8px;
    right: auto;
    width: calc(100vw - 16px);
  }

  .store-hero,
  .mail-hero,
  .music-hero,
  .music-now,
  .sound-hero,
  .theme-hero,
  .theme-option,
  .settings-head,
  .web-search,
  .pong-bottom {
    grid-template-columns: 1fr;
  }

  .spatial-slider-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .spatial-slider-row small {
    display: none;
  }

  .pong-toolbar,
  .pong-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .stream-player-panel {
    display: none;
  }

  .holo-topbar,
  .holo-debug-strip {
    grid-template-columns: 1fr;
  }

  .holo-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .holo-debug-strip {
    display: none;
  }

  .stream-controls {
    grid-template-columns: 1fr;
  }

  .pong-meter {
    min-width: 0;
  }
}
