:root {
  color-scheme: dark;
  --cyan: #2dd8e9;
  --cyan-soft: #92f4ff;
  --panel: #07111a;
  --panel-2: #0b1721;
  --line: rgba(196, 227, 238, .22);
  --muted: #93a1ad;
  --text: #f4f7f9;
  --danger: #ff6b72;
  --success: #32d6a2;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #050a10; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #050a10;
  color: var(--text);
  letter-spacing: 0;
}
button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(540px, calc(100svh - 235px)) 201px 34px;
  background: #050a10;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-top: 1px solid rgba(196, 227, 238, .12);
  background: #050a10;
  font-size: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan-soft);
}

.hero-stage {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #050a10;
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -2%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 4, 8, .06) 0%, rgba(0, 5, 10, .16) 100%),
    url("assets/hero-earth-desktop.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 36%, transparent 44%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 36%, transparent 44%);
  transform: scale(1.015) translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0);
  transform-origin: center bottom;
  will-change: transform;
}

.hero-motion {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.hero-motion { z-index: 1; }

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 68px 0 auto;
  height: 1px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(182, 220, 232, .17) 8%, rgba(182, 220, 232, .17) 92%, transparent);
}

.topbar {
  position: relative;
  z-index: 5;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 0 54px;
  border-bottom: 1px solid rgba(178, 213, 225, .13);
  background: rgba(0, 4, 8, .2);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #f9fafb;
  text-decoration: none;
  font-size: 25px;
  font-weight: 760;
  line-height: 1;
}

.brand img { width: 42px; height: 42px; display: block; }

.main-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 76px;
}

.nav-link {
  position: relative;
  min-width: 64px;
  padding: 1px 0 0;
  border: 0;
  background: none;
  color: rgba(244, 247, 249, .82);
  font-size: 18px;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 36px;
  height: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(45, 216, 233, .8);
  transition: transform .18s ease;
}

.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: translateX(-50%) scaleX(1); }

.hero-content {
  position: absolute;
  z-index: 3;
  top: 137px;
  left: 50%;
  width: min(840px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  color: #f7f7f7;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 1.08;
  background: linear-gradient(180deg, #fff 0%, #f5f5f5 45%, #92999e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(255, 255, 255, .08);
  transform: scaleX(1.17);
  transform-origin: center;
}

.hero-subtitle {
  display: inline-block;
  margin: 5px 0 0;
  color: #f4f5f6;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  transform: scaleX(1.08);
}

.hero-points {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: rgba(249, 251, 252, .92);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font-size: 17px;
}

.hero-points svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-points i {
  display: block;
  width: 1px;
  height: 25px;
  background: rgba(214, 231, 237, .38);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.primary-action, .secondary-action {
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 7px;
  font-size: 22px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.primary-action {
  width: 230px;
  border: 1px solid rgba(180, 249, 255, .92);
  background: linear-gradient(180deg, rgba(41, 206, 231, .86), rgba(16, 124, 153, .92));
  box-shadow: inset 0 0 18px rgba(158, 247, 255, .22), 0 0 26px rgba(45, 216, 233, .34);
}

.secondary-action {
  width: 220px;
  border: 1px solid rgba(241, 247, 249, .9);
  background: rgba(6, 15, 24, .42);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .04);
}

.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.primary-action:hover { box-shadow: inset 0 0 20px rgba(158, 247, 255, .28), 0 0 34px rgba(45, 216, 233, .5); }
.secondary-action:hover { background: rgba(23, 39, 50, .65); }

.primary-action svg, .secondary-action svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-dock {
  position: relative;
  z-index: 3;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(179, 215, 228, .3);
  background:
    radial-gradient(circle at 63% 30%, rgba(14, 55, 76, .14), transparent 38%),
    linear-gradient(180deg, #08111a 0%, #061019 100%);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .2);
}
.task-dock.has-task { grid-template-columns: minmax(480px, 49%) minmax(0, 51%); }

.category-nav {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 13px 25px 10px 45px;
}
.task-dock.has-task .category-nav { border-right: 1px solid rgba(195, 224, 234, .28); }
.task-dock:not(.has-task) .category-nav { padding-inline: max(45px, 8vw); }

.category-item {
  position: relative;
  min-width: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: rgba(255, 255, 255, .92);
}

.category-item img {
  width: 146px;
  max-width: 100%;
  height: 116px;
  object-fit: contain;
  display: block;
  margin: 0 auto -1px;
  filter: none;
  opacity: 1;
  transition: opacity .18s ease, transform .18s ease;
}
.category-item:hover img, .category-item.is-active img { transform: translateY(-2px); }

.category-item span {
  display: block;
  font-size: 20px;
  line-height: 30px;
  white-space: nowrap;
}

.category-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 100px;
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(45, 216, 233, .76);
  transition: transform .18s ease;
}
.category-item:hover::after, .category-item.is-active::after { transform: translateX(-50%) scaleX(1); }
.category-item:disabled { cursor: not-allowed; }
.category-item:disabled img { filter: none; opacity: 1; }
.category-item:disabled span { opacity: .48; }
.category-item:disabled::after { transform: translateX(-50%) scaleX(0); }

.active-task {
  --task-accent: #2dd8e9;
  --task-accent-soft: #92f4ff;
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(240px, 1fr) 44px;
  align-items: center;
  gap: 24px;
  padding: 20px 40px 18px 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(45, 216, 233, .055), transparent 46%),
    rgba(3, 12, 19, .24);
  animation: task-dock-in .28s ease both;
}
.active-task[hidden] { display: none !important; }
.active-task::before {
  content: "";
  position: absolute;
  inset: 22px auto 22px 0;
  width: 2px;
  background: var(--task-accent);
  box-shadow: 0 0 14px var(--task-accent);
}
.active-task.is-completed { --task-accent: #32d6a2; --task-accent-soft: #83f0cd; }
.active-task.is-failed, .active-task.is-cancelled { --task-accent: #ff6b72; --task-accent-soft: #ffb0b4; }
@keyframes task-dock-in {
  from { opacity: 0; transform: translateY(8px); }
}

.software-mark {
  width: 80px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(146, 244, 255, .38);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(11, 31, 43, .94), rgba(4, 13, 21, .96));
  color: var(--task-accent-soft);
  font-family: "Arial Black", sans-serif;
  font-size: 40px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 0 22px rgba(21, 174, 231, .09);
}
.software-mark img { width: 70px; height: 70px; object-fit: contain; }
.software-mark span[hidden], .software-mark img[hidden] { display: none; }

.task-copy { min-width: 0; align-self: center; }
.task-copy > strong {
  display: block;
  overflow: hidden;
  color: #f8fafb;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: var(--task-accent-soft);
  font-size: 13px;
}
.task-status-line span:last-child { font-family: Consolas, "Segoe UI", sans-serif; font-size: 16px; font-weight: 700; }

.progress-track {
  position: relative;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(130, 174, 188, .18);
  border-radius: 4px;
  background: rgba(2, 8, 13, .72);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .42);
}

.progress-track span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--task-accent) 72%, #0e7487), var(--task-accent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--task-accent) 48%, transparent);
  transition: width .35s ease;
}
.progress-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: task-progress-sheen 2.1s ease-in-out infinite;
}
@keyframes task-progress-sheen { to { transform: translateX(160%); } }

.phase-list {
  position: relative;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  color: #60747e;
  font-size: 10px;
}
.phase-list::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: rgba(105, 142, 154, .22);
}
.phase-list li {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
}
.phase-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  display: block;
  border: 2px solid #152832;
  border-radius: 50%;
  background: #526873;
  box-shadow: 0 0 0 2px #07121a;
}
.phase-list li.is-complete { color: color-mix(in srgb, var(--task-accent-soft) 72%, #58707a); }
.phase-list li.is-complete::before { background: var(--task-accent); }
.phase-list li.is-current { color: var(--task-accent-soft); }
.phase-list li.is-current::before {
  background: var(--task-accent-soft);
  box-shadow: 0 0 0 2px #07121a, 0 0 11px var(--task-accent);
  animation: task-phase-pulse 1.5s ease-in-out infinite;
}
@keyframes task-phase-pulse { 50% { transform: scale(1.22); } }

.task-controls { display: flex; justify-content: flex-end; }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 189, 200, .32);
  border-radius: 50%;
  background: rgba(5, 12, 19, .42);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.icon-button:hover { border-color: var(--task-accent); background: rgba(22, 63, 76, .5); }
.icon-button:disabled { cursor: not-allowed; opacity: .38; border-color: rgba(255, 255, 255, .28); }
.icon-button:disabled:hover { background: rgba(5, 12, 19, .42); }
.pause-icon {
  width: 14px;
  height: 20px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.pause-icon.is-play {
  width: 0;
  height: 0;
  margin-left: 4px;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
}
.cancel-icon {
  position: relative;
  width: 24px;
  height: 24px;
}
.cancel-icon::before, .cancel-icon::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 1px;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.cancel-icon::before { transform: rotate(45deg); }
.cancel-icon::after { transform: rotate(-45deg); }

.modal {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.modal::backdrop {
  background: rgba(0, 5, 10, .78);
  backdrop-filter: blur(10px);
}
.modal-panel {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(143, 217, 231, .28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(14, 29, 40, .98), rgba(5, 13, 21, .99));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .04);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.modal-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}
.modal h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.close-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #dce7eb;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.field { min-width: 0; display: grid; gap: 8px; }
.field > span { color: #b6c3ca; font-size: 13px; }
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(150, 188, 201, .26);
  border-radius: 6px;
  background: rgba(1, 9, 15, .66);
  color: #f5f8fa;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8bb1bd 50%), linear-gradient(135deg, #8bb1bd 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.field option { background: #0b1721; color: #f5f8fa; }
.modal-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.ghost-button, .solid-button {
  min-width: 112px;
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  cursor: pointer;
}
.ghost-button { border: 1px solid var(--line); background: transparent; color: #d6e0e4; }
.solid-button {
  border: 1px solid rgba(146, 245, 255, .65);
  background: linear-gradient(180deg, #24c6d9, #1289a5);
  box-shadow: 0 8px 24px rgba(24, 194, 215, .2);
}
.solid-button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .45; }

.segmented {
  width: 220px;
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 7, 12, .42);
}
.segmented button { border: 0; border-radius: 5px; background: transparent; color: #94a5ae; cursor: pointer; }
.segmented button.is-selected { background: rgba(27, 186, 207, .2); color: #eafcff; }
.selection-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.selection-summary {
  margin-top: 22px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(127, 173, 188, .2);
  border-radius: 7px;
  background: rgba(1, 8, 14, .38);
}
.summary-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 7px;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 800;
}
.summary-mark img { width: 46px; height: 46px; object-fit: contain; }
.summary-mark img[hidden], .summary-mark span[hidden] { display: none; }
.selection-summary div:nth-child(2) { min-width: 0; }
.selection-summary div:nth-child(2) span { display: block; color: #81939d; font-size: 12px; }
.selection-summary div:nth-child(2) strong { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.auth-badge {
  padding: 6px 9px;
  border: 1px solid rgba(255, 199, 104, .32);
  border-radius: 5px;
  color: #ffd080;
  background: rgba(178, 116, 15, .1);
  font-size: 12px;
}
.auth-badge.is-ready { border-color: rgba(50, 214, 162, .36); color: #83f0cd; background: rgba(30, 150, 112, .1); }

.task-overview {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(132, 182, 197, .18);
  border-radius: 7px;
  background: rgba(0, 8, 14, .38);
}
.task-overview-copy { min-width: 0; display: grid; gap: 5px; }
.task-overview-copy span { color: var(--cyan); font-size: 13px; }
.task-overview-copy strong { overflow-wrap: anywhere; font-size: 20px; }
.task-overview-copy small { min-height: 1em; color: #83939c; }
.task-dialog-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 14px;
}
.task-dialog-progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(77, 209, 225, .24);
  border-radius: 6px;
  background: rgba(2, 11, 17, .86);
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, .52), 0 0 0 1px rgba(21, 87, 99, .08);
}
.task-dialog-progress-track > span {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #1197aa 0%, var(--cyan) 72%, #8ff7ff 100%);
  box-shadow: 0 0 16px rgba(41, 219, 236, .48);
  transition: width .35s ease;
}
.task-dialog-progress-track > span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: task-progress-sheen 2.1s ease-in-out infinite;
}
.task-dialog-progress-value {
  color: #effdff;
  font-family: Consolas, "Segoe UI", sans-serif;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-shadow: 0 0 12px rgba(41, 219, 236, .32);
}
.task-timeline {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  list-style: none;
}
.task-timeline li {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border-top: 2px solid rgba(127, 159, 170, .18);
}
.task-timeline li > span { color: #536872; font-size: 11px; }
.task-timeline li > strong { font-size: 14px; }
.task-timeline li > small { overflow: hidden; color: #6f828b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-timeline li.is-complete { border-color: #3a8d98; }
.task-timeline li.is-current { border-color: var(--cyan); }
.task-timeline li.is-current > span, .task-timeline li.is-current > small { color: var(--cyan-soft); }

.assistant-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.assistant-tool {
  min-width: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 15px;
  border: 1px solid rgba(127, 173, 188, .2);
  border-radius: 7px;
  background: rgba(1, 8, 14, .38);
}
.assistant-tool.is-primary { border-color: rgba(45, 216, 233, .32); background: rgba(15, 91, 105, .12); }
.assistant-tool-head { min-width: 0; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; }
.assistant-tool-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 217, 231, .3);
  border-radius: 7px;
  color: var(--cyan);
  background: rgba(5, 20, 28, .72);
  font-size: 16px;
  font-weight: 800;
}
.assistant-tool-mark img { width: 34px; height: 34px; }
.assistant-tool h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.assistant-tool-head div > span { display: block; margin-top: 4px; color: var(--cyan-soft); font-size: 12px; }
.assistant-tool p { margin: 0; color: #82949d; font-size: 13px; line-height: 1.65; }
.assistant-tool button { width: 100%; min-width: 0; }
.assistant-status { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.assistant-status strong { flex: 0 0 auto; }
.assistant-status span { color: #82949d; text-align: right; }
[hidden] { display: none !important; }

.toast-stack {
  position: fixed;
  z-index: 50;
  top: 86px;
  right: 24px;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 12px 14px 16px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(118, 183, 199, .28);
  border-radius: 7px;
  background: rgba(7, 18, 27, .96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
  animation: toast-in .22s ease both;
  pointer-events: auto;
}
.toast::before { content: ""; border-radius: 4px; background: var(--cyan); }
.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast strong { display: block; font-size: 14px; }
.toast span { display: block; margin-top: 3px; color: #94a5ae; font-size: 12px; }
.toast-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(146, 244, 255, .24);
  border-radius: 6px;
  background: rgba(3, 13, 20, .72);
  color: #c8d9df;
  cursor: pointer;
  font: 20px/1 Arial, sans-serif;
}
.toast-close:hover, .toast-close:focus-visible { border-color: var(--cyan); color: #fff; }
.toast-close:active { transform: translateY(1px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1100px) {
  .topbar { padding: 0 28px; }
  .main-nav { gap: 34px; }
  .category-nav { padding-left: 20px; }
  .active-task { gap: 18px; padding-right: 24px; padding-left: 26px; }
  .category-item img { width: 126px; }
  .category-item span { font-size: 16px; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .hero-stage { min-height: 590px; }
  .hero-stage::before {
    background-image:
      linear-gradient(180deg, rgba(0, 4, 8, .04) 0%, rgba(0, 5, 10, .18) 100%),
      url("assets/hero-earth.webp");
    background-size: auto 100%;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 32%, transparent 41%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 32%, transparent 41%);
  }
  .topbar {
    height: 62px;
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .main-nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    height: 46px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0 8px;
    border-top: 1px solid rgba(178, 213, 225, .08);
    border-bottom: 1px solid rgba(178, 213, 225, .12);
    background: rgba(0, 6, 10, .44);
  }
  .nav-link { min-width: 0; font-size: 13px; }
  .nav-link::after { bottom: 1px; width: 28px; }
  .hero-content { top: 130px; width: calc(100% - 28px); }
  .hero-content h1 { font-size: 58px; }
  .hero-content h1, .hero-subtitle { transform: none; }
  .hero-subtitle { margin-top: 8px; font-size: 22px; }
  .hero-points { margin-top: 17px; gap: 10px; }
  .hero-points span { gap: 6px; font-size: 12px; }
  .hero-points svg { width: 21px; height: 21px; }
  .hero-points i { height: 19px; }
  .hero-actions { margin-top: 25px; gap: 10px; }
  .primary-action, .secondary-action { width: 164px; height: 50px; gap: 8px; font-size: 15px; }
  .primary-action svg, .secondary-action svg { width: 22px; height: 22px; }
  .task-dock { display: block; }
  .category-nav {
    height: 148px;
    padding: 7px 8px 8px;
    border-right: 0;
    border-bottom: 0;
  }
  .task-dock:not(.has-task) .category-nav { padding-inline: 8px; }
  .task-dock.has-task .category-nav { border-right: 0; border-bottom: 1px solid rgba(195, 224, 234, .2); }
  .category-item img { width: 100px; height: 98px; }
  .category-item span { font-size: 13px; line-height: 24px; }
  .category-item::after { width: 58px; }
  .active-task {
    min-height: 156px;
    grid-template-columns: 64px minmax(0, 1fr) 40px;
    grid-template-areas: "mark copy controls";
    gap: 12px;
    padding: 17px 16px;
  }
  .software-mark { grid-area: mark; width: 64px; font-size: 31px; }
  .software-mark img { width: 56px; height: 56px; }
  .task-copy { grid-area: copy; }
  .task-copy > strong { font-size: 17px; }
  .task-status-line { margin-top: 7px; font-size: 11px; }
  .task-status-line span:last-child { font-size: 13px; }
  .progress-track { margin-top: 8px; }
  .phase-list { margin-top: 8px; font-size: 9px; }
  .phase-list li { gap: 4px; }
  .phase-list li::before { width: 7px; height: 7px; border-width: 1px; }
  .phase-list::before { top: 3px; }
  .task-controls { grid-area: controls; align-self: center; }
  .icon-button { width: 40px; height: 40px; }
  .modal { width: calc(100vw - 20px); }
  .modal-panel { padding: 22px 18px; }
  .selection-grid { grid-template-columns: 1fr; gap: 13px; }
  .task-timeline { grid-template-columns: 1fr; }
  .task-timeline li { grid-template-columns: 32px 70px 1fr; align-items: center; border-top: 0; border-left: 2px solid rgba(127, 159, 170, .18); }
  .task-overview { gap: 16px; padding: 16px 14px; }
  .task-dialog-progress { grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; }
  .task-dialog-progress-track { height: 10px; }
  .task-dialog-progress-value { font-size: 18px; }
  .assistant-status { align-items: flex-start; flex-direction: column; gap: 7px; }
  .assistant-status span { text-align: left; }
  .assistant-tools { grid-template-columns: 1fr; }
  .assistant-panel .modal-actions { flex-wrap: wrap; }
  .assistant-panel .modal-actions button { flex: 1 1 96px; min-width: 0; }
}

@media (max-width: 620px) {
  .hero-actions { flex-wrap: wrap; }
  .category-item span { font-size: 11px; }
}

@media (max-width: 390px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .primary-action, .secondary-action { width: 230px; }
  .hero-stage { min-height: 635px; }
  .category-nav { height: 138px; }
  .category-item img { height: 90px; }
  .selection-summary { grid-template-columns: 46px 1fr; }
  .auth-badge { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage::before { transform: scale(1.015); }
  .active-task, .progress-track span::after, .phase-list li.is-current::before { animation: none; }
  .toast { animation: none; }
}
