:root {
  color-scheme: dark;
  --black: #050608;
  --black-soft: #0b0d11;
  --panel: rgba(20, 24, 31, .62);
  --panel-strong: rgba(28, 33, 43, .82);
  --glass: rgba(255, 255, 255, .075);
  --glass-border: rgba(255, 255, 255, .16);
  --text: #f4f8f0;
  --muted: rgba(235, 244, 220, .66);
  --muted-2: rgba(235, 244, 220, .44);
  --accent: #ccff00;
  --accent-soft: #d8ff4d;
  --accent-deep: #a3cc00;
  --accent-dim: #b8e600;
  --accent-glow: rgba(204, 255, 0, .28);
  --accent-glow-strong: rgba(216, 255, 77, .55);
  --accent-glow-soft: rgba(204, 255, 0, .12);
  --accent-glow-border: rgba(204, 255, 0, .34);
  --accent-deep-glow: rgba(163, 204, 0, .24);
  --cyan: var(--accent-soft);
  --blue: var(--accent-deep);
  --violet: var(--accent-dim);
  --green: #34c759;
  --warning: #ffd166;
  --danger: #ff5c7a;
  --titanium: #aeb7c7;
  --dock-bg: rgba(18, 22, 14, .72);
  --dock-border: rgba(255, 255, 255, .14);
  --indicator: rgba(255, 255, 255, .58);
  --wall-base: #0a0c12;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --screen-w: min(370px, calc(100vw - 40px));
  --screen-h: min(780px, calc(100vh - 40px));
  --island-active-w: min(182px, calc(100% - 92px));
  --island-active-h: 46px;
  --island-active-pad: 0 6px 0 4px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Segoe UI, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --black: #f2f5eb;
  --black-soft: #e8ece0;
  --panel: rgba(255, 255, 255, .78);
  --panel-strong: rgba(255, 255, 255, .92);
  --glass: rgba(255, 255, 255, .55);
  --glass-border: rgba(20, 28, 10, .1);
  --text: #14180f;
  --muted: rgba(20, 24, 15, .62);
  --muted-2: rgba(20, 24, 15, .44);
  --dock-bg: rgba(255, 255, 255, .82);
  --dock-border: rgba(0, 0, 0, .08);
  --indicator: rgba(0, 0, 0, .32);
  --wall-base: #eef2f8;
  --accent-glow: rgba(204, 255, 0, .18);
  --accent-glow-strong: rgba(204, 255, 0, .32);
  --accent-glow-soft: rgba(204, 255, 0, .08);
  --accent-glow-border: rgba(204, 255, 0, .22);
  --accent-deep-glow: rgba(163, 204, 0, .14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 18% 40%, var(--accent-glow-soft), transparent 55%),
    radial-gradient(ellipse 70% 55% at 82% 62%, var(--accent-deep-glow), transparent 52%),
    radial-gradient(circle at 50% -10%, var(--accent-glow-soft), transparent 34%),
    linear-gradient(140deg, #030405 0%, #080a0e 42%, #10131a 100%);
}

html[data-theme="light"] .site-shell {
  background:
    radial-gradient(ellipse 80% 60% at 18% 40%, rgba(0, 122, 255, .08), transparent 55%),
    radial-gradient(ellipse 70% 55% at 82% 62%, rgba(175, 82, 222, .06), transparent 52%),
    linear-gradient(140deg, #f8f9fc 0%, #eef2f8 42%, #e8ecf4 100%);
}

@media (min-width: 900px) {
  .site-shell {
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 0 36px;
  }

  .stage-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
    z-index: 1;
  }

  .stage-panel--left {
    justify-self: end;
  }

  .stage-panel--right {
    justify-self: start;
    position: relative;
  }

  .stage-brand img {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 22px var(--accent-glow));
    border-radius: 50px;
  }

  .stage-brand span {
    display: block;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .stage-brand h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.04;
    background: linear-gradient(135deg, #fff 0%, rgba(200, 230, 255, .82) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .stage-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    max-width: 30ch;
  }

  .stage-features {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .stage-card {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .stage-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
  }

  .stage-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .stage-live,
  .stage-stack {
    padding: 18px;
    border-radius: 22px;
  }

  .stage-kicker {
    display: block;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .user-reviews {
    display: grid;
    gap: 16px;
  }

  .review {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
  }

  .review .stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .review-text {
    margin: 0 0 6px 0;
    font-size: 11px;
    color: var(--muted);
  }

  .review-author {
    font-size: 10px;
    color: var(--muted-2);
    font-weight: 600;
  }

  .stage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stage-chips span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .stage-version {
    margin: 14px 0 0;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 700;
  }

  .stage-glow-orb {
    position: absolute;
    right: -40px;
    bottom: 20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
  }

  .device-stage {
    padding: 28px 0;
  }
}

@media (max-width: 899px) {
  .stage-panel {
    display: none;
  }
}

.ambient-canvas,
.studio-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-canvas {
  opacity: .42;
  z-index: -2;
}

.studio-grid {
  z-index: -1;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, black 0, transparent 72%);
}

.device-stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  perspective: 1400px;
}

.phone-device {
  position: relative;
  width: calc(var(--screen-w) + 80px);
  height: calc(var(--screen-h) + 165px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.device-metal {
  display: none;
}

.device-metal::before,
.device-metal::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 80%, rgba(0, 0, 0, .12));
  border-radius: 2px;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15);
}

.device-metal::before {
  width: 2.5px;
  height: 72px;
  left: -1.5px;
  top: 168px;
}

.device-metal::after {
  width: 2.5px;
  height: 96px;
  right: -1.5px;
  top: 196px;
}

.device-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--screen-w) + 59px);
  height: calc(var(--screen-h) + 155px);
  object-fit: contain;
  object-position: center;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.os-screen {
  position: relative;
  z-index: 2;
  width: var(--screen-w);
  height: var(--screen-h);
  overflow: hidden;
  border-radius: 42px;
  background: var(--wall-base);
  box-shadow: none;
  isolation: isolate;
}

.ios-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.wall-blob {
  display: none;
}

html[data-theme="light"] .status-bar {
  color: rgba(20, 24, 15, .88);
}

html[data-theme="light"] .app-label,
html[data-theme="light"] .dock-label {
  color: rgba(20, 24, 15, .78);
}

html[data-theme="light"] .dynamic-island {
  background: transparent;
}

html[data-theme="light"] .mobile-boot {
  background: var(--black);
}

html[data-theme="light"] .mobile-boot span {
  color: var(--muted);
}

html[data-theme="light"] .home-context strong {
  color: var(--text);
}

html[data-theme="light"] .stage-brand h2 {
  background: linear-gradient(135deg, #14180f 0%, #3a4a5c 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .stage-chips span {
  color: var(--muted);
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .stage-metric {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .chip-row span {
  color: var(--muted);
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .app-hero {
  background:
    linear-gradient(140deg, var(--accent-glow-soft), rgba(0, 0, 0, .02)),
    rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .insight-card,
html[data-theme="light"] .feature-item {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .app-chrome {
  border-bottom-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .window-control {
  background: rgba(0, 0, 0, .06);
}

html[data-theme="light"] .window-control span,
html[data-theme="light"] .window-control span::before {
  background: rgba(0, 0, 0, .55);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .1);
}

html[data-theme="light"] .music-search,
html[data-theme="light"] .playlist-item {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .playlist-item:hover {
  background: rgba(0, 0, 0, .07);
}

html[data-theme="light"] .language-button {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .1);
}

html[data-theme="light"] .progress-track {
  background: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .studio-grid {
  opacity: .12;
  background-image:
    linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px);
}

html[data-theme="light"] .app-backdrop {
  background: rgba(0, 0, 0, .12);
}

@keyframes wallFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -8px) scale(1.04); }
  66% { transform: translate(-8px, 10px) scale(.96); }
}

.os-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 28%, transparent 70%, rgba(255, 255, 255, .03)),
    radial-gradient(circle at 74% 16%, var(--accent-deep-glow), transparent 30%);
  pointer-events: none;
  z-index: 2;
}

.status-bar {
  position: absolute;
  inset: 10px 30px auto;
  z-index: 42;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .42);
  margin-left: 7px;
}

.status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.signal {
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(to top, currentColor 35%, transparent 35%) 0 100% / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 52%, transparent 52%) 5px 100% / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 72%, transparent 72%) 10px 100% / 3px 100% no-repeat,
    linear-gradient(to top, currentColor 92%, transparent 92%) 15px 100% / 3px 100% no-repeat;
  opacity: .9;
}

.battery {
  width: 24px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.battery::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.dynamic-island {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 46;
  width: 122px;
  height: 35px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: width .55s cubic-bezier(.2, 1, .22, 1), height .55s cubic-bezier(.2, 1, .22, 1), box-shadow .35s ease, padding .45s ease;
}

.island-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.dynamic-island.is-expanded,
.dynamic-island.is-notifying,
.dynamic-island.is-music {
  width: var(--island-active-w);
  height: var(--island-active-h);
  justify-content: flex-start;
  padding: var(--island-active-pad);
  gap: 5px;
}

.dynamic-island.is-music {
  box-shadow: none;
}

.island-art {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.island-controls {
  align-items: center;
  gap: 4px;
  margin-right: 2px;
  flex-shrink: 0;
  order: -1;
}

.island-controls:not([hidden]) {
  display: inline-flex;
}

.island-art:not([hidden]) {
  display: block;
}

.island-eq:not([hidden]) {
  display: inline-flex;
}

.island-ctrl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.island-ctrl:hover {
  background: rgba(255, 255, 255, .2);
  transform: scale(1.06);
}

.island-ctrl svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.island-icon-pause {
  display: none;
}

.dynamic-island:not(.is-paused) .island-icon-play {
  display: none;
}

.dynamic-island:not(.is-paused) .island-icon-pause {
  display: block;
}

.dynamic-island.is-paused .island-icon-play {
  display: block;
}

.dynamic-island.is-paused .island-icon-pause {
  display: none;
}

.island-pulse {
	width: 6px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(61, 242, 160, .8);
    margin-right: 11px;
}

.island-copy {
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  transition: max-width .35s ease, opacity .25s ease;
  margin-left: 10px;
}

.dynamic-island.is-expanded .island-copy,
.dynamic-island.is-notifying .island-copy,
.dynamic-island.is-music .island-copy {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 200px;
  opacity: 1;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
}

.dynamic-island.is-music .island-copy {
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent 100%);
}

.dynamic-island.is-notifying .island-copy {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.island-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: islandMarquee 11s linear infinite;
}

.island-marquee-text {
  padding-right: 28px;
}

@keyframes islandMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.island-eq {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 6px;
  flex-shrink: 0;
}


.island-eq i {
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  transform-origin: 50% 100%;
  animation: equalize .72s ease-in-out infinite;
}

.island-eq i:nth-child(2) { animation-delay: -.22s; }
.island-eq i:nth-child(3) { animation-delay: -.38s; }
.island-eq i:nth-child(4) { animation-delay: -.14s; }
.island-eq i:nth-child(5) { animation-delay: -.48s; }

.home-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 70px 20px 112px;
  display: flex;
  flex-direction: column;
}

.nova-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.nova-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nova-avatar {
  width: 48px;
  height: 48px;
  animation: novaFloat 4s ease-in-out infinite;
}

@keyframes novaFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.nova-avatar svg {
  width: 100%;
  height: 100%;
}

.nova-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nova-name {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.nova-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.nova-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(204, 255, 0, 1) 0%, rgba(0, 162, 255, 1) 100%);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.6);
  animation: novaPulse 2s ease-in-out infinite;
}

@keyframes novaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.nova-conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 16px;
  overflow-y: auto;
}

.nova-message {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.nova-message.user {
  flex-direction: row-reverse;
}

.nova-message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.4;
}

.nova-message.bot .nova-message-bubble {
  background: rgba(204, 255, 0, .1);
  border: 1px solid rgba(204, 255, 0, .2);
  color: rgba(255, 255, 255, .95);
  border-bottom-left-radius: 4px;
}

.nova-message.user .nova-message-bubble {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .95);
  border-bottom-right-radius: 4px;
}

.nova-input-area {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nova-input {
  flex: 1;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, .95);
  font-size: 14px;
  outline: none;
  transition: all .2s ease;
}

.nova-input:focus {
  border-color: rgba(204, 255, 0, .4);
  box-shadow: 0 0 0 4px rgba(204, 255, 0, .1);
}

.nova-send-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(204, 255, 0, 1) 0%, rgba(0, 162, 255, 1) 100%);
  border: none;
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .2s ease;
}

.nova-send-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(204, 255, 0, .4);
}

.nova-send-button svg {
  width: 16px;
  height: 16px;
}

.home-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 14px calc(env(safe-area-inset-bottom, 0px) + 8px);
  pointer-events: none;
}

.dock-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 28px;
  background: var(--dock-bg);
  border-color: var(--dock-border);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.dock-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}

.dock-tile {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.dock-tile:hover .dock-icon {
  transform: translateY(-3px) scale(1.04);
}

.dock-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 12px 20px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .24s cubic-bezier(.2, 1, .22, 1), box-shadow .24s ease;
}

.dock-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .24), transparent 34%),
    radial-gradient(circle at 72% 82%, rgba(255, 255, 255, .18), transparent 28%);
  opacity: .8;
  pointer-events: none;
}

.dock-icon svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}

.dock-label {
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.05;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-indicator {
  pointer-events: auto;
  width: 134px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--indicator);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.home-indicator:hover {
  transform: scaleX(1.04);
  opacity: .92;
}

.home-indicator:active {
  transform: scaleX(.96);
}

.home-context {
  margin: 0 4px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-context span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-context strong {
  max-width: 150px;
  text-align: right;
  font-size: 15px;
  line-height: 1.1;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 86px;
  gap: 18px 14px;
  align-items: start;
}

.glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045)),
    var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.core-widget {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 0;
  height: 100%;
  max-height: calc(2 * 86px + 18px);
  border-radius: 26px;
  padding: 0px;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  align-self: start;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.core-widget::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: #ffffff;
  opacity: .9;
  pointer-events: none;
}

.core-widget:hover {
  transform: translateY(-3px);
  border-color: var(--accent-glow-border);
  box-shadow:
    0 28px 50px rgba(0, 0, 0, .34),
    0 0 26px var(--accent-glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.core-widget > * {
  position: relative;
  z-index: 1;
}

.widget-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.core-widget strong {
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.06;
}

.widget-subtitle {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.progress-bars-grid {
  margin-top: 18px 0;
}

.progress-bar-item {
  margin-bottom: 14px;
}

.progress-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}

.progress-bar-label {
  color: var(--text);
}

.progress-bar-value {
  color: var(--muted);
}

.progress-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.settings-panel {
  padding: 12px 0;
}

.settings-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px 16px;
}

.settings-profile {
  background: var(--panel);
  border-radius: 18px;
  margin: 0 16px 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8e8e93 0%, #6c6c70 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.settings-user {
  flex: 1;
}

.settings-username {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.settings-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.settings-chevron {
  font-size: 20px;
  color: var(--muted);
}

.settings-section {
  background: var(--panel);
  border-radius: 18px;
  margin: 0 16px 16px;
  overflow: hidden;
}

.settings-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  cursor: pointer;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.settings-icon-airplane {
  background: linear-gradient(180deg, #ff9500 0%, #cc7700 100%);
}

.settings-icon-wifi {
  background: linear-gradient(180deg, #007aff 0%, #0056cc 100%);
}

.settings-icon-bluetooth {
  background: linear-gradient(180deg, #5856d6 0%, #4844c5 100%);
}

.settings-icon-cellular {
  background: linear-gradient(180deg, #34c759 0%, #28a745 100%);
}

.settings-icon-hotspot {
  background: linear-gradient(180deg, #5ac8fa 0%, #46a8d2 100%);
}

.settings-icon-battery {
  background: linear-gradient(180deg, #34c759 0%, #28a745 100%);
}

.settings-icon-wallpaper {
  background: linear-gradient(180deg, #af52de 0%, #8c44b3 100%);
}

.settings-icon-general {
  background: linear-gradient(180deg, #8e8e93 0%, #6c6c70 100%);
}

.settings-label {
  flex: 1;
  font-size: 15px;
}

.settings-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-value {
  font-size: 14px;
  color: var(--muted);
}

.settings-toggle {
  position: relative;
  width: 50px;
  height: 30px;
  cursor: pointer;
}

.settings-toggle input {
  display: none;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 15px;
  transition: background 0.2s ease;
}

.settings-toggle input:checked + .toggle-track {
  background: #34c759;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.settings-toggle input:checked ~ .toggle-thumb {
  transform: translateX(20px);
}

.wallpaper-selector {
  margin: 0 16px;
}

.wallpaper-selector h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wallpaper-option {
  border: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 3px solid transparent;
}

.wallpaper-option.selected {
  border-color: var(--accent);
}

.wallpaper-option img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.metric-row {
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
}

.metric-row i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.metric-row b {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 14px var(--accent-glow-strong);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.metric-row em {
  font-style: normal;
  color: rgba(255, 255, 255, .72);
  text-align: right;
}

.app-tile {
  min-width: 0;
  height: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.app-tile:focus-visible .app-icon {
  box-shadow: 0 0 0 3px var(--accent-glow), 0 18px 26px rgba(0, 0, 0, .3);
}

.app-icon {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .04) 100%), #2c2c2e;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .28s cubic-bezier(.2, 1, .22, 1), box-shadow .28s ease;
}

.app-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .24), transparent 34%),
    radial-gradient(circle at 72% 82%, rgba(255, 255, 255, .22), transparent 28%);
  opacity: .8;
}

.app-icon svg,
.app-icon img {
  position: relative;
  z-index: 1;
}

.app-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}

.app-icon img {
  width: 43px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
}

.app-tile:hover .app-icon {
  transform: translateY(-4px) scale(1.035);
  box-shadow:
    0 20px 30px rgba(0, 0, 0, .34),
    0 0 26px var(--accent-glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

.app-label {
  width: 100%;
  min-height: 21px;
  display: block;
  color: rgba(255, 255, 255, .88);
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
  overflow-wrap: anywhere;
}

.icon-ecommerce { background: linear-gradient(180deg, #34c759 0%, #248a3d 100%); }
.icon-apps { background: linear-gradient(180deg, #5856d6 0%, #3634a3 100%); }
.icon-web { background: linear-gradient(180deg, #007aff 0%, #0051d5 100%); }
.icon-cases { background: linear-gradient(180deg, #ff9500 0%, #c93400 100%); }
.icon-ai { background: linear-gradient(180deg, #af52de 0%, #8944ab 100%); }
.icon-design { background: linear-gradient(180deg, #ff2d55 0%, #d70040 100%); }
.icon-projects { background: linear-gradient(180deg, #5ac8fa 0%, #007aff 100%); }
.icon-about { background: linear-gradient(180deg, #8e8e93 0%, #636366 100%); }
.icon-contact { background: linear-gradient(180deg, #32d74b 0%, #248a3d 100%); }
.icon-music { background: linear-gradient(180deg, #ff375f 0%, #ff2d55 100%); }
.icon-language { background: linear-gradient(180deg, #32ade6 0%, #007aff 100%); }
.icon-theme { background: linear-gradient(180deg, #aeaeb2 0%, #8e8e93 100%); }
.icon-settings { background: linear-gradient(180deg, #8e8e93 0%, #636366 100%); }

.app-window {
  position: absolute;
  inset: 68px 0 92px;
  z-index: 34;
  pointer-events: none;
  opacity: 0;
  transition: opacity .26s ease;
}

.app-window.is-open {
  pointer-events: auto;
  opacity: 1;
}

.app-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-sheet {
  position: absolute;
  inset: 8px 10px 25px;
  border-radius: 28px 28px 30px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(.94);
  opacity: 0;
}

.app-window.is-open .app-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform .55s cubic-bezier(.2, 1, .22, 1), opacity .28s ease;
}

.app-chrome {
  flex: 0 0 auto;
  min-height: 74px;
  padding: 16px 18px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.window-control {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.window-control span,
.window-control span::before {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  display: block;
}

.window-control span {
  transform: rotate(45deg);
}

.window-control span::before {
  content: "";
  transform: rotate(90deg);
}

.app-chrome span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app-chrome h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.05;
}

.app-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd9c transparent;
}

.app-content::-webkit-scrollbar {
  width: 7px;
}

.app-content::-webkit-scrollbar-thumb {
  background: var(--accent-glow);
  border-radius: 999px;
}

.app-hero {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(140deg, var(--accent-glow-soft), rgba(255, 255, 255, .04)),
    rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.app-hero h2,
.language-panel h2,
.music-card h2 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.04;
}

.app-hero p,
.language-panel p,
.music-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.insight-card {
  min-height: 76px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .09);
}

.insight-card strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.insight-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-item {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.feature-item strong {
  display: block;
  font-size: 14px;
}

.feature-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.music-card,
.language-panel,
.contact-panel {
  display: grid;
  gap: 14px;
}

.music-now-playing {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.music-art-wrap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

.music-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-kicker {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.youtube-shell {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.youtube-shell iframe,
.youtube-shell > div {
  width: 100%;
  height: 100%;
  border: 0;
}

.spotify-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 4px 0;
}

.spotify-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .2s ease, opacity .2s ease;
}

.spotify-btn:hover {
  transform: scale(1.08);
}

.spotify-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.spotify-btn--ghost {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  opacity: .82;
}

.spotify-btn--main {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 32px var(--accent-deep-glow);
}

.spotify-btn--main svg {
  width: 26px;
  height: 26px;
}

.language-button,
.submit-button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px var(--accent-deep-glow);
}

.track-meta {
  min-width: 0;
}

.track-meta strong,
.track-meta span {
  display: block;
}

.track-meta strong {
  font-size: 16px;
  line-height: 1.15;
}

.track-meta span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.progress-row {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px var(--accent-glow-strong);
  transition: width .3s linear;
}

.music-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

.music-search svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.music-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 13px;
}

.music-search input::placeholder {
  color: var(--muted-2);
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.playlist-header h3 {
  margin: 0;
  font-size: 15px;
}

.playlist-header span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
}

.playlist-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-glow) transparent;
}

.playlist-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateX(2px);
}

.playlist-item.is-active {
  background: linear-gradient(135deg, var(--accent-glow-soft), var(--accent-deep-glow));
  border: 1px solid var(--accent-glow-border);
}

.playlist-item.is-playing strong::after {
  content: " ♪";
  color: var(--cyan);
}

.playlist-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.playlist-meta {
  min-width: 0;
}

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

.playlist-meta strong {
  font-size: 13px;
}

.playlist-meta span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.playlist-item em {
  font-style: normal;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.playlist-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.language-button {
  min-height: 64px;
  border-radius: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.language-button.is-active {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent-deep-glow));
  border-color: var(--accent-glow-border);
  box-shadow: 0 18px 32px var(--accent-deep-glow);
}

.language-button:hover {
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  gap: 11px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, .18);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.submit-button {
  min-height: 48px;
  border-radius: 16px;
  font-weight: 900;
}

.form-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-boot {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: #050608;
  transition: opacity .55s ease, visibility .55s ease;
}

.mobile-boot img {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 28px var(--accent-glow));
  animation: bootBreath 1.8s ease-in-out infinite;
}

.mobile-boot span {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.boot-progress {
  width: 146px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.boot-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  animation: bootLoad 1.4s ease forwards;
}

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

@keyframes equalize {
  0%, 100% { transform: scaleY(.32); }
  45% { transform: scaleY(1); }
  72% { transform: scaleY(.58); }
}

@keyframes bootBreath {
  0%, 100% { transform: scale(.96); opacity: .78; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes bootLoad {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 899px) {
  body {
    overflow: hidden;
    background: var(--black);
  }

  .site-shell {
    display: block;
    background: var(--black);
  }

  .device-stage {
    min-height: 100dvh;
    padding: 0;
    display: block;
  }

  .phone-device {
    width: 100vw;
    height: 100dvh;
    display: block;
    transform: none !important;
  }

  .device-metal,
  .device-reflection,
  .device-mockup {
    display: none;
  }

  .os-screen {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .mobile-boot {
    display: grid;
  }

  .home-screen {
    padding: calc(env(safe-area-inset-top) + 72px) 18px calc(env(safe-area-inset-bottom) + 108px);
  }

  .app-grid {
    grid-auto-rows: 82px;
    gap: 16px 12px;
  }

  .core-widget {
    min-height: 0;
    max-height: calc(2 * 82px + 16px);
  }

  .app-sheet {
    inset: 10px 10px calc(env(safe-area-inset-bottom) + 10px);
  }
}

@media (max-width: 390px) {
  .home-screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-grid {
    gap: 14px 9px;
  }

  .app-icon {
    width: 53px;
    height: 53px;
    flex-basis: 53px;
    border-radius: 16px;
  }

  .app-label {
    font-size: 10px;
  }

  .core-widget {
    padding: 14px;
  }
}

@media (max-height: 720px) {
  .home-screen {
    padding-top: 62px;
  }

  .home-context {
    margin-bottom: 12px;
  }

  .app-grid {
    grid-auto-rows: 76px;
    gap: 12px 10px;
  }

  .app-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .core-widget {
    min-height: 0;
    max-height: calc(2 * 76px + 12px);
  }
}

@media (min-width: 900px) {
  .app-grid {
    row-gap: 20px;
    column-gap: 14px;
  }

  .core-widget {
    max-height: calc(2 * 86px + 20px);
    padding: 0px;
  }

  .widget-subtitle {
    margin-bottom: 8px;
  }

  .metric-row {
    margin-top: 5px;
  }

  :root {
    --island-active-w: min(188px, calc(100% - 96px));
  }
}

@media (max-width: 899px) {
  :root {
    --island-active-w: min(186px, calc(100% - 104px));
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  :root {
    --screen-w: min(320px, calc((100vh - 70px) * .46));
    --screen-h: min(680px, calc(100vh - 70px));
  }

  .device-stage {
    padding: 12px;
  }

  .phone-device {
    width: calc(var(--screen-w) + 80px);
    height: calc(var(--screen-h) + 165px);
  }

  .device-metal {
    border-radius: 40px;
  }

  .os-screen {
    border-radius: 38px;
  }

  .home-screen {
    padding: 60px 16px 18px;
  }

  .home-context {
    margin-bottom: 10px;
  }

  .app-grid {
    grid-auto-rows: 70px;
    gap: 10px;
  }

  .core-widget {
    min-height: 0;
    max-height: calc(2 * 70px + 10px);
    padding: 12px;
    border-radius: 22px;
  }

  .widget-kicker {
    font-size: 9px;
  }

  .core-widget strong {
    font-size: 15px;
  }

  .widget-subtitle {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .metric-row {
    grid-template-columns: 27px 1fr 32px;
    gap: 6px;
    margin-top: 6px;
    font-size: 10px;
  }

  .app-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
  }

  .app-icon svg {
    width: 25px;
    height: 25px;
  }

  .app-icon img {
    width: 36px;
    height: 36px;
  }

  .app-label {
    font-size: 10px;
  }
}
