/* src/client/styles/foundation.css */
:root {
  --bg: #06121f;
  --surface: #091b2c;
  --surface-2: #0c263c;
  --ink: #edf8ff;
  --muted: #86a2b7;
  --line: #1b425b;
  --cyan: #35c4ff;
  --blue: #167bdc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(
      115deg,
      #08233a 0,
      #06121f 47%,
      #07182a 100%);
  color: var(--ink);
  font:
    16px/1.6 Manrope,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 1px),
      #ffffff05 50%,
      transparent calc(50% + 1px));
  content: "";
  pointer-events: none;
}
.shell {
  width: min(1200px, calc(100% - 112px));
  margin: auto;
}
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff0a;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.brand > span span {
  color: var(--cyan);
}
.docker-mark {
  width: 35px;
  height: 27px;
  object-fit: contain;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 14px "DM Mono", monospace;
}
.language-switch i {
  color: #416277;
  font-style: normal;
}
.language {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #6e8ba0;
  font: inherit;
  cursor: pointer;
}
.language.active {
  color: var(--cyan);
}
.hidden {
  display: none;
}
footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff0a;
  color: #628399;
  font: 12px/1.8 "DM Mono", monospace;
  letter-spacing: .08em;
}
footer a {
  color: #73c9f1;
  text-decoration: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 4;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 5px;
  background: #e6f7ff;
  color: #063050;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: .25s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 820px) {
  .shell {
    width: calc(100% - 56px);
  }
  .nav {
    height: 76px;
  }
  footer {
    align-items: flex-start;
    gap: 11px;
    flex-direction: column;
    padding: 23px 0;
  }
}
@media (max-width: 600px) {
  .shell {
    width: calc(100% - 40px);
  }
}

/* src/client/styles/hero.css */
.hero {
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #ffffff0a;
}
.hero-copy {
  padding: 24px 0;
}
.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #f2fbff;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.2;
  letter-spacing: -.045em;
  font-weight: 800;
  white-space: normal;
}
.hero-visual {
  height: 100%;
  min-height: 350px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-left: 1px solid #ffffff0a;
  background:
    radial-gradient(
      ellipse at 50% 61%,
      #0b416044 0,
      transparent 63%);
}
html[lang=en] .hero h1 {
  white-space: normal;
  max-width: 560px;
}
@media (max-width: 820px) {
  .hero {
    min-height: unset;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0;
  }
  .hero-visual {
    min-height: 170px;
    grid-row: 1;
    border: 0;
  }
  .hero-copy {
    grid-row: 2;
    padding: 26px 0 0;
  }
}
@media (max-width: 430px) {
  .hero h1 {
    font-size: 45px;
  }
}
.boost-art {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 14px 20px #00101a73);
}

/* src/client/styles/workspace.css */
.workspace {
  padding: 12px 0 72px;
}
.toolbar-wrap {
  display: flex;
  margin-bottom: 24px;
}
.tool-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tool-tab {
  position: relative;
  padding: 16px 24px;
  border: 0;
  background: transparent;
  color: #7290a5;
  font: 700 16px Manrope, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.tool-tab span {
  margin-right: 7px;
  color: #3f6983;
  font: 12px "DM Mono", monospace;
}
.tool-tab.active {
  color: #effaff;
}
.tool-tab.active::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 2px;
  background: var(--cyan);
  content: "";
}
.tool-tab.active span {
  color: var(--cyan);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      #0b2338,
      #081827);
  box-shadow: 0 22px 55px #0003;
}
.tool-stage {
  min-height: 342px;
  padding: clamp(24px, 3.5vw, 48px);
}
.tool-panel {
  display: none;
  width: 100%;
}
.tool-panel.active {
  display: block;
}
.panel-kicker {
  color: var(--cyan);
  font: 500 12px "DM Mono", monospace;
  letter-spacing: .12em;
}
.panel-copy h3 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.4;
  letter-spacing: -.025em;
}
.panel-copy h3 code {
  color: #5dcfff;
  font: 600 .88em "DM Mono", monospace;
}
.panel-copy p {
  max-width: 940px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.panel-copy p code {
  color: #c7ebff;
  font-family: "DM Mono", monospace;
}
.command-block {
  width: 100%;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #21526e;
  border-radius: 9px;
  background: #051421;
}
.command-meta {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid #193e55;
  color: #7899ad;
  font: 13px "DM Mono", monospace;
  letter-spacing: .02em;
}
.copy-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: 600 14px Manrope, sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-all b {
  font-size: 16px;
  line-height: 1;
}
.command-block code {
  display: block;
  padding: 20px;
  color: #d9f2ff;
  font: 14px/1.85 "DM Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.image-form,
.download-image {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px auto;
  gap: 18px;
  align-items: end;
  margin: 30px 0 24px;
}
.image-form label,
.download-image label {
  display: block;
  margin: 0;
  color: #b3ccdc;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.image-fields,
.source-fields,
.architecture-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.image-fields input,
.source-fields select,
.architecture-fields select {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  border: 1px solid #245d7e;
  border-radius: 8px;
  background-color: #061826;
  color: #e7f5ff;
  font: 500 16px "DM Mono", monospace;
  outline: none;
}
.image-fields input {
  padding: 0 16px;
}
.source-fields select,
.architecture-fields select {
  padding: 0 42px 0 14px;
  appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      #55cfff 50%),
    linear-gradient(
      135deg,
      #55cfff 50%,
      transparent 50%);
  background-position: calc(100% - 20px) 25px, calc(100% - 14px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.image-fields input:focus,
.source-fields select:focus,
.architecture-fields select:focus {
  border-color: #42c9ff;
  box-shadow: 0 0 0 3px #2dbfff18;
}
.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 140px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: #159bdb;
  color: white;
  font: 700 16px Manrope, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.generate-button:hover {
  background: #28adeb;
}
.generate-button:disabled {
  opacity: .62;
  cursor: wait;
}
.download-actions {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 12px;
  min-width: 0;
}
.download-actions .generate-button {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
}
.share-button {
  box-sizing: border-box;
  width: 140px;
  min-width: 140px;
}
@media (max-width: 1160px) {
  .image-form,
  .download-image {
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.1fr) minmax(150px, .7fr);
  }
  .image-form .share-button,
  .download-image .download-actions {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .download-image .download-actions {
    width: min(100%, 292px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .image-form,
  .download-image {
    grid-template-columns: minmax(0, 1fr);
  }
  .image-form .share-button,
  .download-image .download-actions {
    grid-column: auto;
  }
}
@media (max-width: 820px) {
  .workspace {
    padding-top: 30px;
  }
  .tool-tabs {
    width: 100%;
    overflow-x: auto;
  }
}
@media (max-width: 600px) {
  .tool-stage {
    padding: 24px 18px;
  }
  .tool-tab {
    padding: 14px 12px;
    font-size: 15px;
  }
  .tool-tab span {
    display: none;
  }
  .command-block code {
    padding: 16px;
  }
  .command-meta {
    padding: 10px 14px;
  }
  .download-actions {
    gap: 8px;
  }
  .download-image .download-actions {
    width: min(100%, 288px);
  }
  .download-actions .generate-button {
    height: 52px;
    padding: 0 8px;
    font-size: 14px;
  }
  .image-form .share-button {
    height: 52px;
    font-size: 14px;
  }
}

/* src/client/features/setup/setup.css */
[data-panel=setup] .setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
[data-panel=setup] .setup-grid .command-block {
  margin-top: 27px;
}
[data-panel=setup] .setup-grid .command-block code {
  min-height: 0;
}
[data-panel=setup] #setup-command {
  white-space: pre;
  overflow-x: auto;
  overflow-wrap: normal;
}
[data-panel=setup] .manual-fallback {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid #2a9dce;
  background: #071a29;
}
[data-panel=setup] .manual-fallback p {
  margin: 0 0 8px;
  color: #87a7ba;
  font-size: 14px;
  line-height: 1.8;
}
[data-panel=setup] .manual-fallback p code {
  color: #d4efff;
  font-family: "DM Mono", monospace;
}
[data-panel=setup] .manual-fallback > code {
  display: block;
  color: #5acfff;
  font: 14px/1.8 "DM Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  [data-panel=setup] .setup-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  [data-panel=setup] .setup-grid .command-block {
    margin-top: 16px;
  }
  [data-panel=setup] .setup-grid .command-block:first-child {
    margin-top: 27px;
  }
}
@media (max-width: 600px) {
  [data-panel=setup] .manual-fallback {
    padding: 16px;
  }
}

/* src/client/features/download/download.css */
[data-panel=download] .command-note {
  margin: 12px 0 0;
  color: #7294a9;
  font-size: 14px;
  line-height: 1.8;
}
[data-panel=download] .command-note code {
  color: #c7ebff;
  font-family: "DM Mono", monospace;
}
[data-panel=download] .lookup-result {
  margin-top: 17px;
}
[data-panel=download] .lookup-status {
  margin: 0 0 10px;
  color: #56cfff;
  font: 14px/1.7 "DM Mono", monospace;
  letter-spacing: .03em;
}
[data-panel=download] .lookup-result .command-block {
  margin-top: 0;
}
[data-panel=download] .download-progress-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}
[data-panel=download] .download-progress-row[hidden] {
  display: none;
}
[data-panel=download] .download-progress-row.is-complete {
  flex-wrap: nowrap;
}
[data-panel=download] .download-progress-row .lookup-status {
  margin: 0;
  overflow-wrap: anywhere;
}
[data-panel=download] .download-progress-row:has(.download-speed-status:not([hidden]):not(.is-summary)) .lookup-status {
  flex: 0 0 min(14rem, 100%);
  white-space: nowrap;
}
[data-panel=download] .download-progress-row.is-complete .lookup-status {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-panel=download] .download-progress {
  position: relative;
  flex: 1 1 240px;
  min-width: 160px;
  height: 32px;
  border-radius: 16px;
  background: #061826;
  border: 1px solid #245d7e;
  overflow: hidden;
}
[data-panel=download] .download-progress[hidden] {
  display: none;
}
[data-panel=download] .download-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background:
    linear-gradient(
      90deg,
      #087ab4,
      #20bcec);
  opacity: .45;
}
[data-panel=download] .download-progress-icon {
  position: absolute;
  width: 30px;
  height: 24px;
  top: 3px;
  left: 4px;
  fill: #55d8ff;
}
[data-panel=download] .is-running .download-progress-icon {
  animation: download-bob .6s ease-in-out infinite alternate;
}
@keyframes download-bob {
  from {
    transform: translateY(-2px);
  }
  to {
    transform: translateY(2px);
  }
}
[data-panel=download] .download-speed-status {
  flex: 0 0 min(8.25rem, 100%);
  min-width: 0;
  color: #56cfff;
  font: 14px/1.7 "DM Mono", monospace;
  overflow-wrap: anywhere;
}
[data-panel=download] .download-speed-status:not(.is-summary) {
  white-space: nowrap;
}
[data-panel=download] .download-progress-row.is-complete .download-speed-status {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}
[data-panel=download] .download-progress-row.is-complete .download-progress {
  flex-basis: 80px;
  min-width: 80px;
}
[data-panel=download] .browser-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
[data-panel=download] .browser-download[aria-disabled=true] {
  pointer-events: none;
  cursor: not-allowed;
}
@media (max-width: 960px) {
  [data-panel=download] .download-progress {
    flex-basis: 100%;
  }
  [data-panel=download] .download-progress-row.is-complete {
    flex-wrap: wrap;
  }
  [data-panel=download] .download-progress-row.is-complete .download-progress {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-panel=download] .is-running .download-progress-icon {
    animation: none;
  }
}

/* src/client/styles/index.css */
