:root {
  --bg: #f8fcff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --blue-50: #eff8ff;
  --blue-100: #d9efff;
  --blue-200: #b8e1ff;
  --blue-300: #8ecaf2;
  --blue-500: #3f93d2;
  --ink: #1d3446;
  --muted: #6a7f8e;
  --line: rgba(63, 147, 210, 0.2);
  --mint: #bdebd7;
  --peach: #ffd2c2;
  --yellow: #ffe7a6;
  --shadow: 0 24px 60px rgba(58, 116, 156, 0.2);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --taskbar-height: 72px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(135deg, rgba(217, 239, 255, 0.75), rgba(255, 255, 255, 0.92) 42%, rgba(189, 235, 215, 0.36)),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.desktop-shell {
  min-height: 100vh;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 26px) calc(var(--taskbar-height) + 24px);
}

.top-panel,
.taskbar,
.app-window,
.program-launcher,
.ad-placeholder,
.content-section {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(76, 143, 188, 0.12);
  backdrop-filter: blur(18px);
}

.top-panel {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}

.brand,
.desktop-nav,
.desktop-icon,
.task-item {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.start-mark {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.85) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.85) 46% 54%, transparent 54%),
    linear-gradient(135deg, var(--blue-300), var(--mint));
}

.desktop-nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.desktop-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: var(--blue-50);
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(430px, 1fr) minmax(220px, 320px);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: stretch;
  justify-content: space-between;
  min-height: calc(100vh - var(--taskbar-height) - 76px);
  padding: 8px 0 10px;
}

.desktop-shell.is-info-open .desktop-grid {
  grid-template-columns: 1fr;
}

.program-launcher {
  align-self: end;
  width: min(100%, 420px);
  min-height: calc(100vh - var(--taskbar-height) - 96px);
  padding: 16px;
  border-radius: var(--radius-xl);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.launcher-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.launcher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.launcher-item:hover,
.launcher-item.active {
  color: var(--ink);
  background: var(--blue-100);
}

.launcher-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(63, 147, 210, 0.18);
}

.launcher-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 82%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 18px rgba(63, 147, 210, 0.16);
}

.program-launcher[hidden] {
  display: none !important;
}

.desktop-shell.is-info-open .ad-placeholder {
  display: none;
}

.ad-placeholder {
  align-self: stretch;
  min-height: calc(100vh - var(--taskbar-height) - 96px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 248, 255, 0.72)),
    var(--surface);
}

.program-launcher.is-switching {
  animation: launcherClose 180ms ease-in forwards;
}

.program-launcher.is-restoring {
  animation: launcherOpen 220ms ease-out;
}

.intro-panel {
  display: flex;
  align-items: flex-start;
  min-height: 420px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-panel p:not(.eyebrow),
.content-section p {
  color: var(--muted);
  font-size: 1rem;
}

.intro-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
}

.desktop-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 122px));
  gap: 14px;
  margin-top: 16px;
}

.desktop-icon {
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.desktop-icon:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(63, 147, 210, 0.18);
}

.color-app {
  background-image: url("./assets/icons/color-editor.png");
}

.image-app {
  background-image: url("./assets/icons/image-editor.png");
}

.audio-app {
  background-image: url("./assets/icons/audio-editor.png");
}

.doc-app {
  background: linear-gradient(135deg, var(--blue-100), #ffffff 44%, var(--blue-300));
}

.lock-app {
  background: linear-gradient(135deg, var(--mint), #ffffff 48%, var(--yellow));
}

.app-window {
  overflow: hidden;
  width: 100%;
  justify-self: end;
  min-height: calc(100vh - var(--taskbar-height) - 96px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform-origin: center bottom;
}

.app-window.is-switching {
  animation: windowClose 180ms ease-in forwards;
}

.app-window.is-restoring {
  animation: windowOpen 220ms ease-out;
}

.app-window.is-info-mode {
  width: 100%;
  justify-self: stretch;
}

.is-view-transitioning [data-view],
.is-view-transitioning #closeWindowButton {
  pointer-events: none;
  opacity: 0.72;
}

.window-titlebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 0 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #edf7ff);
}

.window-titlebar h2 {
  margin: 0;
  color: #28465c;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-appmark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.9) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.9) 46% 54%, transparent 54%),
    linear-gradient(135deg, var(--blue-300), var(--mint));
  box-shadow: inset 0 0 0 1px rgba(29, 52, 70, 0.08);
}

.window-controls {
  display: flex;
  align-self: stretch;
}

.window-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  color: #31556e;
  background: transparent;
  cursor: default;
  font-size: 1rem;
  line-height: 1;
}

.window-controls .close-control:hover {
  color: #ffffff;
  background: #e86f6f;
  cursor: pointer;
}

.window-controls .close-control {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.window-body {
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--taskbar-height) - 154px);
  padding: clamp(22px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 248, 255, 0.72)),
    var(--surface-solid);
}

.app-view[hidden] {
  display: none;
}

.app-view.is-active {
  display: block;
  width: 100%;
}

.program-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tool-toggle-button,
.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--blue-50);
  cursor: pointer;
  font-weight: 800;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tool-toggle-button:hover,
.secondary-button:hover {
  background: var(--blue-100);
  box-shadow: 0 10px 22px rgba(63, 147, 210, 0.14);
  transform: translateY(-1px);
}

.tool-toggle-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-500), #67b7e7);
  box-shadow: 0 12px 24px rgba(63, 147, 210, 0.2);
}

.tool-panel,
.color-tool-panel {
  min-height: clamp(430px, 52vh, 640px);
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
}

.gradient-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gradient-panel[hidden] {
  display: none;
}

.gradient-preview {
  height: 126px;
  flex: 0 0 auto;
  border: 8px solid #ffffff;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(29, 52, 70, 0.08), 0 14px 26px rgba(63, 147, 210, 0.16);
}

.gradient-controls,
.image-editor-grid,
.audio-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gradient-image-options[hidden] {
  display: none;
}

.gradient-image-options {
  align-items: center;
  height: 58px;
  min-height: 58px;
  margin: 18px 0;
}

.gradient-image-options label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.gradient-controls[hidden] {
  display: none;
}

.export-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: var(--blue-50);
  cursor: pointer;
  font-weight: 800;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.mode-button:hover,
.mode-button.is-active {
  color: var(--ink);
  background: var(--blue-100);
}

.mode-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(63, 147, 210, 0.14);
}

.gradient-output-row {
  position: relative;
  display: block;
  height: 58px;
  min-height: 58px;
  margin: 18px 0;
}

.gradient-output-row[hidden] {
  display: none;
}

.gradient-controls label,
.image-controls label,
.audio-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.gradient-controls select,
.gradient-controls input,
.image-controls input,
.audio-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

.gradient-stops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gradient-stop {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.gradient-stop input[type="color"] {
  width: 100%;
}

.code-output {
  display: block;
  height: 58px;
  min-height: 58px;
  margin-top: 0;
  padding: 14px 82px 14px 14px;
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.inline-copy-button {
  position: absolute;
  right: 10px;
  top: 50%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--blue-50);
  cursor: pointer;
  font-weight: 800;
  transform: translateY(-50%);
  transition: background 150ms ease, box-shadow 150ms ease;
}

.inline-copy-button:hover {
  background: var(--blue-100);
  box-shadow: 0 8px 18px rgba(63, 147, 210, 0.14);
}

.tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

#gradientStatus {
  min-height: 20px;
  margin: -8px 0 10px;
  padding-left: 4px;
  font-size: 0.8rem;
}

.saved-gradients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.saved-gradient {
  min-height: 42px;
  border: 3px solid #ffffff;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(29, 52, 70, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.saved-gradient:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(29, 52, 70, 0.08), 0 10px 22px rgba(63, 147, 210, 0.16);
}

@keyframes windowClose {
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes windowOpen {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes launcherClose {
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes launcherOpen {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 3vw, 34px);
  min-height: 100%;
}

.preview-card,
.value-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.preview-card {
  padding: 16px;
}

.color-preview {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border: 10px solid #ffffff;
  border-radius: 24px;
  background: #8ecaf2;
  box-shadow: inset 0 0 0 1px rgba(29, 52, 70, 0.08), 0 18px 34px rgba(63, 147, 210, 0.2);
}

.color-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  transition: color 150ms ease;
}

.color-input-label:hover {
  color: var(--ink);
}

input[type="color"] {
  width: 64px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

input[type="color"]:hover {
  border-color: var(--blue-300);
  box-shadow: 0 10px 22px rgba(63, 147, 210, 0.18);
  transform: translateY(-1px);
}

.value-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

.format-row {
  position: relative;
}

.format-toggle,
.copy-button,
.start-button {
  border: 0;
  cursor: pointer;
}

.format-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 15px;
  color: var(--ink);
  background: var(--blue-50);
  font-weight: 800;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.format-toggle:hover {
  background: var(--blue-100);
  box-shadow: 0 10px 22px rgba(63, 147, 210, 0.14);
  transform: translateY(-1px);
}

.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.format-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 10;
  display: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(63, 147, 210, 0.16);
}

.format-menu.is-open {
  display: grid;
  gap: 4px;
}

.format-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.format-menu button:hover,
.format-menu button[aria-selected="true"] {
  color: var(--ink);
  background: var(--blue-50);
}

.format-menu button:hover {
  transform: translateX(2px);
}

.color-value {
  display: flex;
  align-items: center;
  min-height: clamp(132px, 18vw, 220px);
  margin: clamp(18px, 3vw, 30px) 0 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 46px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-500), #67b7e7);
  font-weight: 800;
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.copy-button:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(63, 147, 210, 0.24);
}

#colorView #copyButton {
  margin-top: 7px;
}

#exportGradientButton {
  font-size: calc(1em - 1px);
}

.copy-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--blue-500);
  font-size: 0.9rem;
  font-weight: 700;
}

.info-view {
  height: 100%;
  align-self: start;
}

.empty-view {
  min-height: calc(100vh - var(--taskbar-height) - 230px);
}

.image-editor-view,
.audio-editor-view {
  align-self: center;
}

.image-editor,
.audio-editor {
  display: grid;
  gap: 16px;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed var(--blue-300);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.upload-zone:hover {
  background: var(--blue-50);
  box-shadow: 0 12px 24px rgba(63, 147, 210, 0.14);
  transform: translateY(-1px);
}

.upload-zone input {
  display: none;
}

.image-preview-panel,
.image-controls,
.audio-preview-panel,
.audio-controls {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
}

.image-canvas {
  display: block;
  width: 100%;
  max-height: 360px;
  min-height: 220px;
  border-radius: 18px;
  background: var(--blue-50);
  object-fit: contain;
}

.image-controls,
.audio-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.audio-preview-panel {
  display: grid;
  align-content: center;
  gap: 14px;
}

.audio-preview-panel audio {
  width: 100%;
}

.audio-mode-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 146px;
}

.audio-mode-panel[hidden] {
  display: none;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.info-scroll {
  max-height: calc(100vh - var(--taskbar-height) - 230px);
  overflow: auto;
  padding-right: 8px;
}

.info-scroll section + section {
  margin-top: 28px;
}

.info-scroll h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.info-scroll p {
  margin: 0 0 12px;
  color: var(--muted);
}

.info-scroll .feature-list {
  grid-template-columns: 1fr;
}

.info-hero,
.info-section-card {
  border: 1px solid rgba(63, 147, 210, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.info-hero {
  padding: 14px 16px;
}

.info-hero h2,
.info-section-body h3 {
  margin: 0 0 8px;
  color: #08284b;
}

.info-hero p,
.info-section-body p,
.info-list {
  color: #214a7a;
}

.notice-box {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(142, 202, 242, 0.78);
  border-radius: 6px;
  color: #315b8f;
  background: rgba(255, 255, 255, 0.78);
}

.info-section-card {
  overflow: hidden;
}

.info-section-title {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(63, 147, 210, 0.28);
  color: #08284b;
  background: rgba(239, 248, 255, 0.86);
  font-weight: 800;
}

.info-section-body {
  padding: 16px 14px 18px;
}

.info-list {
  margin: 0 0 18px;
  padding-left: 18px;
}

.info-list li + li {
  margin-top: 5px;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.info-card-grid article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(142, 202, 242, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.info-card-grid h4 {
  margin: 0 0 6px;
  color: #08284b;
}

.info-card-grid p {
  margin: 0;
}

.info-action-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.terms-section-card .info-section-body h3 {
  margin-top: 16px;
}

.terms-summary,
.terms-contact {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid rgba(142, 202, 242, 0.78);
  border-radius: 8px;
  background: rgba(239, 248, 255, 0.78);
}

.terms-warning {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(142, 202, 242, 0.92);
  border-radius: 8px;
  color: #1d3446;
  background: rgba(239, 248, 255, 0.9);
}

.terms-contact p {
  margin: 0;
}

.terms-contact p + p {
  margin-top: 6px;
}

.privacy-table {
  width: 100%;
  margin: 10px 0 16px;
  border-collapse: collapse;
  color: #214a7a;
  background: rgba(255, 255, 255, 0.72);
}

.privacy-table th,
.privacy-table td {
  padding: 10px 12px;
  border: 1px solid rgba(142, 202, 242, 0.78);
  text-align: left;
}

.privacy-table th {
  color: #08284b;
  background: rgba(239, 248, 255, 0.86);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  align-items: stretch;
}

.contact-grid > .info-section-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-grid > .info-section-card > .info-section-body {
  flex: 1;
}

.contact-grid section + section {
  margin-top: 0;
}

.contact-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.contact-type-card {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(142, 202, 242, 0.78);
  border-radius: 8px;
  color: #214a7a;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.contact-type-card:hover {
  background: rgba(239, 248, 255, 0.9);
  box-shadow: 0 10px 22px rgba(63, 147, 210, 0.14);
  transform: translateY(-1px);
}

.contact-type-card strong {
  color: #08284b;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: #08284b;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(142, 202, 242, 0.78);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.content-section {
  max-width: 1060px;
  margin: 24px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.feature-list article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-list p {
  margin: 0;
  font-size: 0.94rem;
}

.privacy-section {
  margin-bottom: 24px;
}

.site-footer {
  max-width: 1060px;
  margin: 22px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.taskbar {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: 41px;
  left: clamp(12px, 3vw, 28px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border-radius: 24px;
}

.start-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.start-button:hover {
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-200), 0 10px 22px rgba(63, 147, 210, 0.16);
  transform: translateY(-1px);
}

.task-item {
  min-width: 0;
  min-height: 42px;
  max-width: 220px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.task-item.active {
  color: var(--ink);
  background: var(--blue-100);
}

.task-item:hover {
  color: var(--ink);
  background: var(--blue-50);
  box-shadow: 0 10px 22px rgba(63, 147, 210, 0.14);
  transform: translateY(-1px);
}

.task-spacer {
  flex: 1 1 auto;
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 3px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
  white-space: nowrap;
}

.clock span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

@media (max-width: 920px) {
  .desktop-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-panel {
    min-height: auto;
  }

  .program-launcher {
    width: 100%;
    min-height: auto;
  }

  .ad-placeholder {
    min-height: 120px;
  }

  .app-window {
    width: 100%;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .contact-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .desktop-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .top-panel {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .desktop-nav {
    justify-content: flex-start;
  }

  .desktop-grid {
    padding-top: 34px;
  }

  .desktop-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .picker-layout {
    grid-template-columns: 1fr;
  }

  .gradient-controls,
  .image-editor-grid,
  .audio-editor-grid {
    grid-template-columns: 1fr;
  }

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

  .task-item {
    max-width: 150px;
    padding: 0 12px;
  }

}
