html[data-theme="modern"] {
  --desktop: #f5f7f6;
  --desktop-deep: #e7eeeb;
  --win-face: #ffffff;
  --win-light: #ffffff;
  --win-mid: #eef3f1;
  --win-dark: #9baba4;
  --win-shadow: #51615b;
  --win-black: #17201d;
  --title-start: #176b5f;
  --title-end: #176b5f;
  --yellow: #dcebe8;
  --green: #2d6f48;
  --red: #a33a3a;
  --blue: #176b5f;
  --purple: #5e557b;
  --text: #17201d;
  --muted: #66736e;
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

html[data-theme="modern"] body {
  color: var(--text);
  background:
    linear-gradient(rgba(23, 107, 95, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 95, .025) 1px, transparent 1px),
    #f5f7f6;
  background-size: 32px 32px;
}

html[data-theme="modern"] .desktop-canvas {
  opacity: .08;
}

html[data-theme="modern"] .desktop-shell {
  width: min(1180px, calc(100% - 32px));
  padding-top: 28px;
}

html[data-theme="modern"] .window {
  overflow: hidden;
  background: var(--win-face);
  border: 1px solid #cbd7d2;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 29, .09);
}

html[data-theme="modern"] .titlebar {
  min-height: 38px;
  padding: 7px 9px 7px 12px;
  color: #173c35;
  background: #eef3f1;
  border-bottom: 1px solid #cbd7d2;
  font-size: 13px;
  letter-spacing: .01em;
}

html[data-theme="modern"] .app-icon,
html[data-theme="modern"] .folder-icon {
  color: #ffffff;
  background: #176b5f;
  border-color: #0f4d44;
  border-radius: 3px;
  box-shadow: none;
}

html[data-theme="modern"] .folder-icon::before {
  border-color: #0f4d44;
  border-radius: 2px 2px 0 0;
}

html[data-theme="modern"] .window-controls {
  gap: 4px;
}

html[data-theme="modern"] .window-controls span {
  width: 23px;
  height: 23px;
  color: #36534c;
  background: #ffffff;
  border: 1px solid #b7c6c0;
  border-radius: 4px;
  box-shadow: none;
  font-size: 11px;
}

html[data-theme="modern"] .hero-content {
  padding: clamp(20px, 3.1vw, 38px);
  background: #f8faf9;
}

html[data-theme="modern"] .auth-panel {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #cbd7d2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 32, 29, .06);
}

html[data-theme="modern"] .auth-panel-head {
  min-height: 32px;
  padding: 5px 8px;
  color: #ffffff;
  background: #176b5f;
  border: 1px solid #0f4d44;
  border-radius: 5px;
}

html[data-theme="modern"] .auth-led {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(163, 58, 58, .15);
}

html[data-theme="modern"] .auth-panel.is-signed-in .auth-led {
  box-shadow: 0 0 0 3px rgba(45, 111, 72, .18);
}

html[data-theme="modern"] .auth-fields input {
  height: 38px;
  padding: 7px 10px;
  color: #17201d;
  background: #ffffff;
  border: 1px solid #aebeb7;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(23, 32, 29, .04);
}

html[data-theme="modern"] .auth-fields input:focus-visible,
html[data-theme="modern"] .auth-button:focus-visible,
html[data-theme="modern"] .theme-option:focus-visible {
  outline: 3px solid rgba(23, 107, 95, .28);
  outline-offset: 2px;
}

html[data-theme="modern"] .auth-button {
  min-height: 38px;
  padding-inline: 16px;
  color: #ffffff;
  background: #176b5f;
  border: 1px solid #0f4d44;
  border-radius: 6px;
  box-shadow: none;
}

html[data-theme="modern"] .auth-button:hover {
  background: #0f5c51;
}

html[data-theme="modern"] .auth-button:active {
  transform: translateY(1px);
}

html[data-theme="modern"] .auth-button-secondary {
  color: #173c35;
  background: #eef3f1;
  border-color: #b7c6c0;
}

html[data-theme="modern"] .auth-button-secondary:hover {
  color: #17201d;
  background: #e2ebe7;
}

html[data-theme="modern"] .auth-user-pill {
  color: #174d43;
  background: #dcebe8;
  border: 1px solid #a9c9c1;
  border-radius: 5px;
  box-shadow: none;
}

html[data-theme="modern"] .auth-message.is-error {
  color: #8b2d2d;
}

html[data-theme="modern"] .hero-monitor {
  filter: drop-shadow(0 16px 18px rgba(23, 32, 29, .18));
}

html[data-theme="modern"] .hero-monitor[data-desktop-cta]:focus-visible {
  outline: 4px solid #176b5f;
  outline-offset: 7px;
  box-shadow: 0 0 0 4px #dcebe8;
}

html[data-theme="modern"] .monitor-screen {
  border-color: #32443e;
  border-radius: 9px;
  background:
    linear-gradient(rgba(70, 143, 132, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 143, 132, .1) 1px, transparent 1px),
    #102d2a;
  background-size: 22px 22px;
  box-shadow:
    0 0 0 7px #dce5e1,
    0 0 0 8px #8d9e97;
}

html[data-theme="modern"] .monitor-stand {
  background: linear-gradient(#cbd7d2, #9baba4);
  border-color: #65766f;
  border-radius: 0 0 5px 5px;
  box-shadow: none;
}

html[data-theme="modern"] .quick-dock {
  gap: 4px;
  padding: 8px;
  background: #eef3f1;
  border-top: 1px solid #cbd7d2;
  border-bottom: 1px solid #cbd7d2;
}

html[data-theme="modern"] .dock-button {
  min-height: 40px;
  color: #29483f;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
}

html[data-theme="modern"] .dock-button:hover,
html[data-theme="modern"] .dock-button:focus-visible {
  color: #0f4d44;
  background: #e3eeeb;
  border-color: #a9c9c1;
  box-shadow: none;
}

html[data-theme="modern"] .dock-button:focus-visible {
  outline: 3px solid rgba(23, 107, 95, .28);
  outline-offset: 1px;
}

html[data-theme="modern"] .statusbar {
  gap: 8px;
  padding: 7px 9px;
  color: #66736e;
  background: #f8faf9;
  border-top: 1px solid #dbe3df;
}

html[data-theme="modern"] .statusbar span {
  min-height: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="modern"] .project-board {
  gap: 22px;
  margin-top: 22px;
}

html[data-theme="modern"] .title-count {
  color: #174d43;
  background: #dcebe8;
  border: 1px solid #a9c9c1;
  border-radius: 5px;
  box-shadow: none;
  font-weight: 750;
}

html[data-theme="modern"] .project-grid {
  gap: 12px;
  padding: 14px;
  background: #f1f5f3;
}

html[data-theme="modern"] .project-card {
  min-height: 220px;
  padding: 16px;
  color: #17201d;
  background: #ffffff;
  border: 1px solid #cbd7d2;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(23, 32, 29, .045);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

html[data-theme="modern"] .project-card::before {
  display: none;
}

html[data-theme="modern"] .project-card:hover,
html[data-theme="modern"] .project-card:focus-visible {
  background: #ffffff;
  border-color: #7fa99f;
  box-shadow: 0 12px 26px rgba(23, 32, 29, .09);
  transform: translateY(-2px);
}

html[data-theme="modern"] .project-card:focus-visible {
  outline: 3px solid rgba(23, 107, 95, .3);
  outline-offset: 2px;
}

html[data-theme="modern"] .project-kicker {
  color: #36534c;
  background: #eef3f1;
  border: 1px solid #d6e0dc;
  border-radius: 4px;
}

html[data-theme="modern"] .project-title {
  color: #17201d;
  font-size: 21px;
}

html[data-theme="modern"] .project-copy {
  color: #66736e;
}

html[data-theme="modern"] .launch-chip {
  color: #0f5c51;
  background: #e4f0ed;
  border: 1px solid #b7d4cd;
  border-radius: 5px;
  box-shadow: none;
}

html[data-theme="modern"] .project-card:hover .launch-chip,
html[data-theme="modern"] .project-card:focus-visible .launch-chip {
  color: #ffffff;
  background: #176b5f;
  border-color: #0f4d44;
}

html[data-theme="modern"] .theme-picker-window {
  margin-top: 16px;
}

html[data-theme="modern"] .theme-picker-content {
  padding: 10px;
  background: #f1f5f3;
}

html[data-theme="modern"] .theme-options {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
}

html[data-theme="modern"] .theme-option {
  min-height: 76px;
  grid-template-rows: 40px auto;
  gap: 5px;
  padding: 7px;
  color: #29483f;
  background: #ffffff;
  border: 1px solid #cbd7d2;
  border-radius: 7px;
  box-shadow: none;
  font: 700 13px/1.25 var(--font);
  text-align: left;
  cursor: pointer;
}

html[data-theme="modern"] .theme-option:hover {
  border-color: #7fa99f;
  transform: translateY(-1px);
}

html[data-theme="modern"] .theme-option[aria-checked="true"] {
  color: #ffffff;
  background: #176b5f;
  border-color: #0f4d44;
  box-shadow: 0 0 0 3px rgba(23, 107, 95, .18);
}

html[data-theme="modern"] .theme-option-swatch {
  width: 100%;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 5px;
}

@media (max-width: 620px) {
  html[data-theme="modern"] .desktop-shell {
    width: calc(100% - 14px);
    padding-top: 12px;
  }

  html[data-theme="modern"] .window {
    border-radius: 7px;
  }

  html[data-theme="modern"] .theme-picker-content {
    padding: 8px;
  }

  html[data-theme="modern"] .theme-options {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  }
}

@media (max-width: 430px) {
  html[data-theme="modern"] .theme-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="modern"] .theme-option,
  html[data-theme="modern"] .project-card {
    transition: none;
  }

  html[data-theme="modern"] .theme-option:hover,
  html[data-theme="modern"] .project-card:hover,
  html[data-theme="modern"] .project-card:focus-visible {
    transform: none;
  }
}
