:root {
  --bg: #0d0e12;
  --bg-soft: #101218;
  --panel: #14161d;
  --panel-2: #181b23;
  --panel-3: #1e222c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f4f6fa;
  --ink-soft: #c6ccd8;
  --muted: #8c94a4;
  --faint: #626a79;
  --accent: #c9f36b;
  --accent-2: #7aa2ff;
  --accent-ink: #0b0d10;
  --success: #64f0b0;
  --warn: #ffcf70;
  --danger: #ff7080;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, Consolas,
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(201, 243, 107, 0.28);
  color: #fff;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid rgba(201, 243, 107, 0.7);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% -8%, rgba(201, 243, 107, 0.11), transparent 60%),
    radial-gradient(720px 480px at 92% 2%, rgba(122, 162, 255, 0.1), transparent 62%),
    radial-gradient(900px 600px at 50% 110%, rgba(201, 243, 107, 0.05), transparent 65%),
    linear-gradient(180deg, #0d0e12 0%, #0b0c10 100%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 14, 18, 0.74);
  backdrop-filter: blur(20px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #9bdc32);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 1px rgba(201, 243, 107, 0.35), 0 10px 30px rgba(201, 243, 107, 0.14);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name b {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-name span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-spacer {
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quota-chip:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.quota-chip b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.quota-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 243, 107, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #aee63f);
  color: var(--accent-ink);
  box-shadow: 0 12px 34px rgba(201, 243, 107, 0.2);
}

.btn-accent:hover:not(:disabled) {
  box-shadow: 0 16px 42px rgba(201, 243, 107, 0.28);
}

.btn-primary {
  background: var(--ink);
  color: #0b0c10;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.btn-danger {
  border-color: rgba(255, 112, 128, 0.28);
  background: rgba(255, 112, 128, 0.08);
  color: var(--danger);
}

.btn:disabled {
  opacity: 0.55;
}

.btn-redeem {
  border-color: rgba(255, 207, 112, 0.42);
  background:
    radial-gradient(120% 140% at 18% 0%, rgba(255, 246, 210, 0.55), transparent 42%),
    linear-gradient(135deg, #ffe08a, #ffb347);
  color: #241503;
  box-shadow:
    0 0 0 1px rgba(255, 207, 112, 0.18),
    0 10px 30px rgba(255, 179, 71, 0.22);
  font-weight: 750;
}

.btn-redeem:hover:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(255, 207, 112, 0.32),
    0 16px 42px rgba(255, 179, 71, 0.32);
}

.quota-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 207, 112, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(140% 180% at 0% 0%, rgba(255, 207, 112, 0.16), transparent 55%),
    rgba(24, 21, 13, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.quota-alert-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.quota-alert-copy b {
  color: var(--warn);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.quota-alert-copy span {
  color: var(--ink-soft);
  font-size: 12px;
}

.quota-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.redeem-input {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(201, 243, 107, 0.36);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .quota-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .quota-alert-actions {
    width: 100%;
  }

  .quota-alert-actions .btn {
    flex: 1;
  }
}

.spin {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201, 243, 107, 0.5);
  animation: pulse 1.8s infinite;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.page {
  animation: fade-up 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 980px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid rgba(201, 243, 107, 0.2);
  border-radius: 999px;
  background: rgba(201, 243, 107, 0.06);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(201, 243, 107, 0.9);
}

.hero h1 {
  margin: 0;
  font-size: clamp(19px, 5.4vw, 58px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 34px rgba(201, 243, 107, 0.2);
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.main-stack,
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.side-stack {
  position: sticky;
  top: 96px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.panel-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.panel-body {
  padding: 20px 24px 24px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font);
  font-size: 11px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 292px;
  padding: 34px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(201, 243, 107, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.018);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.dropzone:hover {
  border-color: rgba(201, 243, 107, 0.36);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(201, 243, 107, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.024);
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background:
    radial-gradient(460px 240px at 50% 0%, rgba(201, 243, 107, 0.16), transparent 72%),
    rgba(201, 243, 107, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(201, 243, 107, 0.24),
    0 0 60px rgba(201, 243, 107, 0.08);
  transform: scale(1.006);
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border: 1px solid rgba(201, 243, 107, 0.24);
  border-radius: 18px;
  background: rgba(201, 243, 107, 0.08);
  color: var(--accent);
  box-shadow: 0 0 42px rgba(201, 243, 107, 0.12);
}

.dropzone-icon svg {
  width: 26px;
  height: 26px;
}

.dropzone h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.dropzone p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.dropzone-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  pointer-events: auto;
}

.dropzone-hint {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

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

.view-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.view-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.view-card.is-filled {
  border-color: rgba(201, 243, 107, 0.26);
  background: rgba(201, 243, 107, 0.035);
}

.view-card.is-dragover {
  border-color: var(--accent);
  background: rgba(201, 243, 107, 0.08);
  transform: translateY(-2px);
}

.view-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--panel-2);
}

.view-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 10.5px;
}

.view-placeholder svg {
  width: 22px;
  height: 22px;
}

.view-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
}

.view-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.view-name b {
  font-size: 12px;
  font-weight: 600;
}

.view-name small {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-card:hover .view-remove,
.view-card.is-filled .view-remove {
  opacity: 1;
}

.view-remove:hover {
  border-color: rgba(255, 112, 128, 0.3);
  color: var(--danger);
}

.view-remove svg {
  width: 13px;
  height: 13px;
}

.detail-panel {
  animation: fade-up 0.32s ease both;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(122, 162, 255, 0.34);
  border-radius: 999px;
  background: rgba(122, 162, 255, 0.1);
  color: #9bb8ff;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  vertical-align: middle;
}

.detail-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.detail-link:hover {
  opacity: 0.78;
}

.detail-link svg {
  width: 14px;
  height: 14px;
}

.detail-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.detail-guide-item {
  position: relative;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(122, 162, 255, 0.06), transparent 62%),
    rgba(255, 255, 255, 0.018);
}

.detail-guide-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.detail-guide-item b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.detail-guide-item small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.45;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(122, 162, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.018);
  animation: fade-up 0.24s ease both;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.detail-card:focus-within {
  border-color: rgba(201, 243, 107, 0.28);
  box-shadow: 0 0 0 4px rgba(201, 243, 107, 0.05);
}

.detail-card.is-filled {
  border-color: rgba(122, 162, 255, 0.24);
}

.detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.detail-index {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  font-size: 10px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.detail-remove:hover {
  border-color: rgba(255, 112, 128, 0.28);
  background: rgba(255, 112, 128, 0.06);
  color: var(--danger);
}

.detail-remove svg {
  width: 12px;
  height: 12px;
}

.detail-card-body {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 158px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(122, 162, 255, 0.08), transparent 72%),
    var(--panel-2);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.detail-media:hover,
.detail-media:focus-visible {
  border-color: rgba(122, 162, 255, 0.42);
  background:
    radial-gradient(220px 130px at 50% 0%, rgba(122, 162, 255, 0.13), transparent 72%),
    var(--panel-2);
}

.detail-media.is-dragover {
  border-color: var(--accent);
  background: rgba(201, 243, 107, 0.08);
  transform: scale(1.01);
}

.detail-media-body {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 158px;
}

.detail-media-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  text-align: center;
}

.detail-media-empty svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  color: var(--accent-2);
}

.detail-media-empty b {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.detail-media-empty small {
  font-size: 9.5px;
}

.detail-media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 22px 8px 8px;
  background: linear-gradient(transparent, rgba(10, 12, 16, 0.82));
  color: #fff;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.detail-media:hover .detail-media-overlay {
  opacity: 1;
}

.detail-media-overlay svg {
  width: 12px;
  height: 12px;
}

.detail-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail-field .field-label {
  font-size: 11.5px;
}

.detail-field .input {
  height: 42px;
}

.detail-field .textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

.detail-field-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.detail-sync {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
  transition: opacity 0.2s ease;
}

.detail-sync:hover {
  opacity: 0.75;
}

.detail-sync svg {
  width: 11px;
  height: 11px;
}

.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 30px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--faint);
  text-align: center;
}

.detail-empty svg {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  color: var(--accent-2);
}

.detail-empty b {
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-empty span {
  font-size: 10.5px;
}

.detail-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px dashed rgba(201, 243, 107, 0.3);
  border-radius: 13px;
  background: rgba(201, 243, 107, 0.035);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.detail-add:hover:not(:disabled) {
  border-color: rgba(201, 243, 107, 0.55);
  background: rgba(201, 243, 107, 0.075);
  transform: translateY(-1px);
}

.detail-add:disabled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--faint);
}

.detail-add svg {
  width: 15px;
  height: 15px;
}

.detail-add small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field + .field {
  margin-top: 18px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.field-hint,
.counter {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.input {
  height: 46px;
  padding: 0 14px;
}

.textarea {
  min-height: 122px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.65;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.input:hover,
.textarea:hover {
  border-color: var(--line-strong);
}

.input:focus,
.textarea:focus {
  border-color: rgba(201, 243, 107, 0.45);
  background: rgba(201, 243, 107, 0.025);
  box-shadow: 0 0 0 4px rgba(201, 243, 107, 0.07);
  outline: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.segment {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.segment b {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.segment small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.segment:hover {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
}

.segment.is-active {
  border-color: rgba(201, 243, 107, 0.22);
  background: rgba(201, 243, 107, 0.09);
  color: var(--ink);
}

.segment.is-active small {
  color: var(--accent);
}

.generate-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.btn-generate {
  min-height: 54px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.btn-generate svg {
  width: 18px;
  height: 18px;
}

.generate-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 10.5px;
}

.generate-note b {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-weight: 500;
}

.upload-progress {
  display: none;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.upload-progress.is-active {
  display: block;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(201, 243, 107, 0.5);
  transition: width 0.25s ease;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row dt {
  color: var(--muted);
  font-size: 12px;
}

.summary-row dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.summary-row dd.is-accent {
  color: var(--accent);
}

.deliver-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.deliver-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink-soft);
  font-size: 11.5px;
}

.deliver-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.deliver-item small {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.status-card {
  padding: 26px;
}

.status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.is-live {
  border-color: rgba(201, 243, 107, 0.22);
  background: rgba(201, 243, 107, 0.07);
  color: var(--accent);
}

.status-badge.is-error {
  border-color: rgba(255, 112, 128, 0.25);
  background: rgba(255, 112, 128, 0.07);
  color: var(--danger);
}

.status-badge.is-success {
  border-color: rgba(100, 240, 176, 0.25);
  background: rgba(100, 240, 176, 0.07);
  color: var(--success);
}

.status-badge.is-error .pulse-dot {
  background: var(--danger);
  box-shadow: none;
  animation: none;
}

.status-badge.is-success .pulse-dot {
  background: var(--success);
  box-shadow: none;
  animation: none;
}

.task-mono {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-title {
  margin: 22px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.progress-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.progress-meta strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.progress-meta span {
  color: var(--muted);
  font-size: 11.5px;
}

.progress-meta span b {
  color: var(--ink-soft);
  font-weight: 600;
}

.progress-meta time {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.pipeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
}

.pipeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 72px;
}

.pipeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.pipeline-rail::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}

.pipeline-step:last-child .pipeline-rail::after {
  display: none;
}

.pipeline-step.is-done .pipeline-rail::after {
  background: linear-gradient(180deg, rgba(201, 243, 107, 0.6), rgba(201, 243, 107, 0.1));
}

.pipeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--faint);
}

.pipeline-dot svg {
  width: 14px;
  height: 14px;
}

.pipeline-step.is-done .pipeline-dot {
  border-color: rgba(201, 243, 107, 0.35);
  background: rgba(201, 243, 107, 0.12);
  color: var(--accent);
  box-shadow: 0 0 22px rgba(201, 243, 107, 0.12);
}

.pipeline-step.is-active .pipeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 5px rgba(201, 243, 107, 0.09), 0 0 28px rgba(201, 243, 107, 0.3);
}

.pipeline-step.is-error .pipeline-dot {
  border-color: rgba(255, 112, 128, 0.4);
  background: rgba(255, 112, 128, 0.12);
  color: var(--danger);
}

.pipeline-step.is-active .pipeline-dot .spin {
  width: 13px;
  height: 13px;
  border-width: 2px;
}

.pipeline-body {
  min-width: 0;
  padding: 4px 0 22px;
}

.pipeline-body h4 {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.pipeline-body p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
}

.pipeline-step.is-done .pipeline-body h4,
.pipeline-step.is-active .pipeline-body h4 {
  color: var(--ink);
}

.pipeline-state {
  align-self: start;
  padding-top: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-step.is-done .pipeline-state {
  color: var(--accent);
}

.pipeline-step.is-active .pipeline-state {
  color: var(--accent);
}

.pipeline-step.is-error .pipeline-state {
  color: var(--danger);
}

.terminal {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0a0b0e;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.terminal-dots span:first-child {
  background: rgba(255, 112, 128, 0.7);
}

.terminal-dots span:nth-child(2) {
  background: rgba(255, 207, 112, 0.7);
}

.terminal-dots span:last-child {
  background: rgba(100, 240, 176, 0.7);
}

.terminal-title {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal-live {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 190px;
  padding: 13px 14px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
}

.log-line {
  display: flex;
  gap: 9px;
  color: var(--muted);
  animation: fade-up 0.3s ease both;
}

.log-time {
  color: var(--faint);
  flex: none;
}

.log-msg {
  min-width: 0;
  word-break: break-word;
}

.log-line.is-accent .log-msg {
  color: var(--accent);
}

.log-line.is-error .log-msg {
  color: var(--danger);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.notice svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.notice.is-warn {
  border-color: rgba(255, 207, 112, 0.22);
  background: rgba(255, 207, 112, 0.06);
  color: var(--warn);
}

.notice.is-danger {
  border-color: rgba(255, 112, 128, 0.22);
  background: rgba(255, 112, 128, 0.06);
  color: var(--danger);
}

.notice.is-success {
  border-color: rgba(100, 240, 176, 0.22);
  background: rgba(100, 240, 176, 0.06);
  color: var(--success);
}

.progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.meta-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list > div:last-child {
  border-bottom: 0;
}

.meta-list dt {
  color: var(--muted);
  font-size: 11.5px;
}

.meta-list dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: right;
}

.side-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.side-note b {
  color: var(--ink-soft);
}

.deliver-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.package-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(201, 243, 107, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(201, 243, 107, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 80px rgba(201, 243, 107, 0.05);
}

.package-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201, 243, 107, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.package-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.package-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(201, 243, 107, 0.24);
  border-radius: 18px;
  background: rgba(201, 243, 107, 0.09);
  color: var(--accent);
  box-shadow: 0 0 42px rgba(201, 243, 107, 0.12);
}

.package-icon svg {
  width: 26px;
  height: 26px;
}

.package-badge {
  padding: 6px 10px;
  border: 1px solid rgba(100, 240, 176, 0.24);
  border-radius: 999px;
  background: rgba(100, 240, 176, 0.07);
  color: var(--success);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.package-meta h2 {
  margin: 22px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: -0.035em;
  word-break: break-all;
}

.package-meta p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  word-break: break-all;
}

.package-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.package-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.package-stat dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-stat dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn-download {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 14px;
}

.materials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 0 14px;
}

.materials-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.materials-head span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

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

.material-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.material-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.material-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(201, 243, 107, 0.06), transparent 70%),
    var(--panel-2);
  color: var(--faint);
}

.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-thumb > svg {
  width: 28px;
  height: 28px;
}

.material-kind {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 11, 14, 0.72);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.material-body {
  padding: 12px 13px 14px;
}

.material-body h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
}

.material-body p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-block {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.copy-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.copy-block-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.copy-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.deliver-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 40px 24px;
  text-align: center;
}

.deliver-empty > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 460px;
}

.deliver-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--accent);
}

.deliver-empty h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.deliver-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.task-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(10px);
}

.modal-root:empty {
  display: none;
}

.modal {
  width: min(420px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.modal-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-tabs button.is-active {
  background: rgba(201, 243, 107, 0.1);
  color: var(--ink);
}

.modal-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.65;
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(20, 22, 29, 0.94);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  animation: toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--accent);
}

.toast.is-success {
  border-color: rgba(100, 240, 176, 0.24);
}

.toast.is-success svg {
  color: var(--success);
}

.toast.is-error {
  border-color: rgba(255, 112, 128, 0.26);
}

.toast.is-error svg {
  color: var(--danger);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px;
  text-align: center;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.error-card {
  padding: 34px;
  border: 1px solid rgba(255, 112, 128, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 112, 128, 0.05);
}

.error-card h2 {
  margin: 0;
  font-size: 20px;
}

.error-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.error-card .progress-actions {
  margin-top: 18px;
}

@media (max-width: 1020px) {
  .workspace,
  .progress-layout,
  .deliver-hero {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: static;
  }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-name span,
  .quota-label {
    display: none;
  }

  .shell {
    width: calc(100% - 32px);
    padding: 34px 0 60px;
  }

  .hero {
    margin-bottom: 24px;
  }

  .panel-head,
  .panel-body,
  .status-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dropzone {
    min-height: 240px;
    padding: 26px 16px;
  }

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

  .view-meta {
    padding: 8px;
  }

  .view-name small {
    display: none;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .detail-guide {
    grid-template-columns: 1fr;
  }

  .detail-card-body {
    grid-template-columns: 1fr;
  }

  .detail-media,
  .detail-media-body {
    min-height: 188px;
  }

  .detail-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .package-stats {
    grid-template-columns: 1fr;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: flex-start;
  }

  .pipeline-step {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .pipeline-state {
    display: none;
  }

  .pipeline-dot {
    width: 26px;
    height: 26px;
  }

  .pipeline-rail::after {
    top: 26px;
  }
}

@media (max-width: 460px) {
  .quota-chip {
    display: none;
  }

  .view-grid {
    grid-template-columns: 1fr;
  }

  .view-thumb {
    aspect-ratio: 16 / 10;
  }

  .package-actions .btn,
  .progress-actions .btn {
    width: 100%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 243, 107, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(201, 243, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 243, 107, 0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Delivery plans ---------- */

.plan-section {
  margin-bottom: 26px;
}

.plan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.plan-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.plan-note {
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: right;
}

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--panel);
  color: var(--ink);
  text-align: left;
  transition:
    transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.plan-card.is-active {
  border-color: rgba(201, 243, 107, 0.58);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(201, 243, 107, 0.12), transparent 58%),
    var(--panel-2);
  box-shadow:
    0 0 0 1px rgba(201, 243, 107, 0.14),
    0 24px 60px rgba(201, 243, 107, 0.07);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-badge {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.plan-card.is-active .plan-badge {
  border-color: rgba(201, 243, 107, 0.36);
  color: var(--accent);
}

.plan-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  transition: all 0.24s ease;
}

.plan-check svg {
  width: 13px;
  height: 13px;
}

.plan-card.is-active .plan-check {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 18px rgba(201, 243, 107, 0.32);
}

.plan-name {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.plan-name b {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.plan-name em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.plan-tagline {
  min-height: 38px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.plan-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.plan-item i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.plan-item i svg {
  width: 12px;
  height: 12px;
}

.plan-card.is-active .plan-item i {
  border-color: rgba(201, 243, 107, 0.22);
  color: var(--accent);
}

.plan-item span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-item small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

.plan-cta {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.plan-card.is-active .plan-cta {
  color: var(--accent);
}

.plan-cta::after {
  content: " →";
}

@media (max-width: 980px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .plan-note {
    max-width: none;
    text-align: left;
  }

  .plan-tagline {
    min-height: 0;
  }
}

/* ---------- V6.0 26 加工厂点单 ---------- */

.module-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.module-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
  font-family: var(--mono);
}

.module-summary span {
  color: var(--muted);
  font-size: 10px;
}

.module-summary b {
  color: var(--accent);
  font-size: 12px;
}

.base-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.base-module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(201, 243, 107, 0.28);
  border-radius: 14px;
  background: rgba(201, 243, 107, 0.045);
}

.module-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent);
}

.module-icon svg {
  width: 17px;
  height: 17px;
}

.module-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.module-copy b {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.module-copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.module-locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(201, 243, 107, 0.26);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.module-locked svg {
  width: 11px;
  height: 11px;
}

.module-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.module-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.module-group summary::-webkit-details-marker {
  display: none;
}

.module-group summary span {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.module-group summary small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
}

.module-group summary i {
  display: grid;
  place-items: center;
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.module-group summary i svg {
  width: 14px;
  height: 14px;
}

.module-group[open] summary i {
  transform: rotate(90deg);
}

.module-group[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
}

.module-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.module-option:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.module-option.is-checked {
  border-color: rgba(201, 243, 107, 0.44);
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(201, 243, 107, 0.11), transparent 58%),
    rgba(255, 255, 255, 0.025);
}

.module-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.module-check svg {
  width: 12px;
  height: 12px;
}

.module-option.is-checked .module-check {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.module-option .module-icon {
  margin-top: 0;
}

.module-option .module-copy b {
  font-size: 12px;
}

.module-option .module-copy small {
  font-size: 10px;
  line-height: 1.5;
}

.module-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.module-flags em {
  padding: 2px 6px;
  border: 1px solid rgba(255, 207, 112, 0.26);
  border-radius: 999px;
  color: var(--warn);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.module-cost {
  flex: none;
  align-self: flex-start;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.module-option.is-checked .module-cost {
  border-color: rgba(201, 243, 107, 0.3);
  color: var(--accent);
}

.module-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.module-empty svg {
  width: 20px;
  height: 20px;
  color: var(--faint);
}

.module-empty b {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.module-empty span {
  font-size: 11px;
}

.preprocess-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(122, 162, 255, 0.28);
  border-radius: 12px;
  background: rgba(122, 162, 255, 0.07);
  color: #b9ceff;
  font-size: 11.5px;
}

.preprocess-note svg {
  width: 15px;
  height: 15px;
}

.video-panel .panel-head {
  border-bottom: 1px solid rgba(255, 207, 112, 0.18);
}

.video-guide {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255, 207, 112, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 207, 112, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.018);
}

.video-guide > svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--warn);
}

.video-guide b {
  color: var(--ink);
  font-size: 12.5px;
}

.video-guide p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.video-index {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.video-card-body {
  padding: 12px;
}

.video-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  background: #050608;
  object-fit: contain;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.video-meta > b {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta > small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.video-note-field {
  margin: 10px 0 0;
}

.selected-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.selected-modules span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9.5px;
}

@media (max-width: 900px) {
  .module-grid,
  .video-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .base-modules {
    grid-template-columns: 1fr;
  }

  .module-summary {
    align-items: flex-start;
  }
}
