/* WirStartenKI UGC app shell */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-primary: #051C2C;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.54);
  --accent: #00D4FF;
  --accent-hover: #33DFFF;
  --accent-glow: rgba(0, 212, 255, 0.24);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --ok: #22C55E;
  --warn: #F59E0B;
  --err: #EF4444;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-vignette {
  background:
    radial-gradient(ellipse 80% 50% at 20% 16%, rgba(0, 212, 255, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 50% 38% at 86% 64%, rgba(34, 197, 94, 0.08) 0%, transparent 62%);
}

.bg-lines {
  opacity: 0.14;
}

.bg-lines svg {
  width: 100%;
  height: 100%;
}

.bg-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.6;
}

.wsk-container,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header,
.wsk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 28, 44, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: padding 160ms ease;
}

.header-inner,
.wsk-header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo,
.wsk-logo {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
}

.shell-logo {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.shell-header__cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav,
.wsk-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.shell-nav .nav-link,
.shell-nav .btn,
.shell-nav .wallet-pill {
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link-active {
  color: var(--text-primary);
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.wallet-pill,
.language-form select,
.lang-switch,
.lang-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
}

.wallet-pill {
  padding: 7px 10px;
  color: var(--accent);
  font-weight: 700;
}

.language-form select,
.lang-select {
  min-height: 38px;
  padding: 7px 28px 7px 10px;
  appearance: none;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  padding: 0;
  overflow: hidden;
}

.lang-switch select {
  border: none;
  background: transparent;
}

.shell-lang-switch {
  position: relative;
  min-height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.shell-lang-switch::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.shell-lang-select {
  min-width: 68px;
  padding-right: 30px;
  font-size: 12px;
  font-weight: 700;
}

.shell-menu-toggle {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.shell-menu-toggle__line {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.shell-menu-toggle[aria-expanded="true"] .shell-menu-toggle__line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.shell-menu-toggle[aria-expanded="true"] .shell-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.shell-menu-toggle[aria-expanded="true"] .shell-menu-toggle__line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.shell-mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(5, 28, 44, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.shell-mobile-menu[hidden] {
  display: none;
}

.shell-mobile-menu__inner {
  padding-top: 12px;
  padding-bottom: 16px;
}

.shell-mobile-nav {
  display: grid;
  gap: 10px;
}

.shell-mobile-link,
.shell-mobile-button,
.shell-mobile-wallet {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.shell-mobile-link {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.shell-mobile-link-active {
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--accent);
}

.shell-mobile-button {
  justify-content: flex-start;
}

.shell-mobile-wallet {
  display: flex;
  align-items: center;
}

.footer,
.wsk-footer {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: 14px;
}

.footer-section ul,
.footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section li + li {
  margin-top: 8px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
}

.hero-band {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--space-xl);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  font-weight: 700;
}

.hero-copy {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  padding: 14px;
}

.metric strong {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
}

.metric span {
  color: var(--text-muted);
  font-size: 12px;
}

.upload-shell,
.status-shell,
.review-shell {
  padding: var(--space-md) 0 var(--space-2xl);
}

.workflow-band {
  padding: var(--space-sm) 0 var(--space-lg);
}

.section-heading {
  margin-bottom: var(--space-md);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.workflow-steps {
  counter-reset: workflow;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}

.workflow-steps span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 800;
}

.workflow-steps strong {
  color: var(--text-primary);
  font-size: 15px;
}

.workflow-steps small {
  color: var(--text-muted);
  font-size: 13px;
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--space-lg);
  align-items: start;
}

.upload-main,
.review-main {
  display: grid;
  gap: var(--space-lg);
}

.step-panel {
  display: grid;
  gap: var(--space-md);
}

.step-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dropzone {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  border: 1px dashed rgba(0, 212, 255, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--card-bg);
  box-shadow: inset 0 0 80px rgba(0, 212, 255, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
  transform: translateY(-1px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone-inner {
  text-align: center;
  max-width: 520px;
}

.drop-icon {
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

.drop-icon svg {
  width: 30px;
  height: 30px;
}

.dropzone h2,
.panel-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.dropzone p,
.helper-text,
.muted {
  color: var(--text-muted);
}

.upload-footnote {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}

.selected-file {
  min-height: 24px;
  margin-top: var(--space-md);
  color: var(--accent);
  font-weight: 700;
}

.choice-panel {
  display: grid;
  gap: var(--space-md);
}

.field-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  padding: var(--space-md);
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

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

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

.choice-card {
  position: relative;
  display: block;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.choice-card input:checked + span {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.1);
}

.choice-card strong {
  font-size: 14px;
}

.choice-card small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Gold-template featured card — single big card on top of the layout list. */
.template-grid-featured {
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}

.choice-card-featured span {
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: linear-gradient(140deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.02));
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 12px 40px rgba(0, 212, 255, 0.08);
}

.choice-card-featured strong {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.choice-card-featured small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.featured-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

/* Manual refresh hint on the job progress page — small text + cyan link
   so the user always has a way to force a state check if HTMX is being
   throttled by the browser (background tabs, etc.). */
.manual-refresh-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.manual-refresh-hint a {
  color: var(--accent);
  text-decoration: underline;
}

/* Gold presenter preview — visible only when Gold is selected.
   Anchors the user to the fixed Gold Signature Creator avatar so the
   server-pinned persona is never invisible. */
.gold-presenter-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.03);
}

.gold-presenter-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(0, 212, 255, 0.45);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.gold-presenter-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
}

.gold-presenter-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gold-presenter-meta strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.gold-presenter-meta small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Compact Gold context strip used at the top of the Gold upload form.
   Same shape as .gold-presenter-preview but tighter spacing so it doesn't
   compete with the dropzone for the user's attention. */
.gold-context-strip {
  margin: 0 0 var(--space-md) 0;
}

.gold-context-strip .gold-presenter-thumb {
  width: 56px;
  height: 56px;
}

/* Collapsible step-panel for OPTIONAL sections (e.g. overlay text fields
   that Gold doesn't require). Inherits .step-panel block styling but
   collapses behind a <summary>; expanded body uses the same grid+gap. */
.step-panel-optional > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0;
}

.step-panel-optional > summary::-webkit-details-marker { display: none; }

.step-panel-optional > summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 120ms ease;
}

.step-panel-optional[open] > summary::after {
  transform: rotate(90deg);
}

.step-panel-optional > summary > .panel-title {
  margin: 0;
}

.step-panel-optional[open] > summary {
  margin-bottom: var(--space-md);
}

/* Collapsed list of secondary (non-Gold) templates. */
.secondary-templates {
  margin: 12px 0 8px 0;
}

.secondary-templates summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  list-style: none;
  padding: 6px 0;
}

.secondary-templates summary::-webkit-details-marker { display: none; }

.secondary-templates summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 4px;
  transition: transform 120ms ease;
}

.secondary-templates[open] summary::before {
  content: "▾ ";
}

.secondary-templates .choice-grid {
  margin-top: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-option input {
  position: absolute;
  opacity: 0;
}

.chip-option {
  position: relative;
}

.chip-option span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.chip-option input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
}

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.hidden {
  display: none;
}

.primary-action {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.primary-action:hover:not(:disabled) {
  background: var(--accent-hover);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-action {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--accent);
}

.button-like {
  appearance: none;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

.upload-steps {
  display: grid;
  gap: 8px;
  margin-top: var(--space-md);
}

.summary-state {
  margin-top: var(--space-md);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-state strong {
  display: block;
  margin-bottom: 6px;
}

.summary-state p {
  margin: 0;
  color: var(--text-secondary);
}

.summary-state-tight {
  margin-top: 0;
}

.warning-state {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

/* v0.9.18 — explicit visual states for the upload-status card so the
 * user always knows where the upload is (Felix 2026-05-24: "no
 * feedback if the video got uploaded or not"). */
.summary-state[data-state="uploading"] {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.06);
}
.summary-state[data-state="success"] {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.10);
}
.summary-state[data-state="success"] strong {
  color: #4ade80;
}
.summary-state progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 10px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.summary-state progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.summary-state progress::-webkit-progress-value {
  background: #00D4FF;
  border-radius: 3px;
  transition: width 200ms ease;
}
.summary-state progress::-moz-progress-bar {
  background: #00D4FF;
  border-radius: 3px;
}

.error-state {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.step-row,
.timeline-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.step-row:last-child,
.timeline-row:last-child {
  border-bottom: none;
}

.status {
  color: var(--text-muted);
  white-space: nowrap;
}

.status.running {
  color: var(--warn);
}

.status.done {
  color: var(--ok);
}

.status.err {
  color: var(--err);
}

.error-banner {
  display: none;
  margin-top: var(--space-md);
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.08);
}

.error-banner.show {
  display: block;
}

.progress-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  padding: var(--space-lg);
}

.jobs-list {
  display: grid;
  gap: var(--space-md);
}

.job-list-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  padding: var(--space-lg);
}

.job-list-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 14px;
}

.job-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.job-list-actions {
  margin-top: 16px;
}

.phase-list {
  display: grid;
  gap: 10px;
  margin-top: var(--space-md);
}

.phase-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.phase-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 800;
}

.phase-row strong,
.phase-row small {
  display: block;
}

.phase-row small {
  color: var(--text-muted);
}

.phase-done {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.phase-done .phase-number {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--ok);
}

.phase-current {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.phase-current .phase-number {
  border-color: rgba(0, 212, 255, 0.48);
  color: var(--accent);
}

.phase-pending {
  opacity: 0.86;
}

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

.meta-block {
  display: grid;
  gap: 4px;
}

.meta-block small {
  color: var(--text-muted);
}

.download-stack {
  display: grid;
  gap: 10px;
  margin-top: var(--space-md);
}

.result-actions {
  display: grid;
  gap: 14px;
  margin-top: var(--space-md);
}

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

.resume-list {
  display: grid;
  gap: 10px;
}

.resume-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.resume-item small,
.secondary-link {
  color: var(--text-muted);
}

.secondary-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
}

.secondary-link:hover {
  color: var(--accent);
}

.hero-band-compact {
  padding-bottom: var(--space-md);
}

.hero-title-small {
  font-size: clamp(34px, 5vw, 56px);
}

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

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-lg);
  align-items: start;
}

.review-cards {
  display: grid;
  gap: var(--space-md);
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  padding: var(--space-md);
}

.review-card-top {
  margin-bottom: 12px;
}

.field-group-flat {
  padding: 0;
  border: none;
  background: transparent;
}

.text-area {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  resize: vertical;
}

.counter {
  float: right;
  color: var(--text-muted);
  font-size: 11px;
}

.counter.over {
  color: var(--warn);
}

.review-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
}

.progress-native {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-native::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

.progress-native::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--ok));
}

.progress-native::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--ok));
}

.timeline-list {
  margin-top: var(--space-lg);
}

.technical-details {
  margin-top: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.technical-details summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
  list-style: none;
}

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

.technical-details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.technical-details .job-meta-grid,
.technical-details .timeline-list {
  padding: 16px;
}

.technical-details .timeline-list {
  margin-top: 0;
  padding-top: 0;
}

.timeline-row time {
  color: var(--text-muted);
  font-size: 12px;
}

.review-link {
  margin-top: var(--space-md);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 960px) {
  body.shell-menu-open {
    overflow: hidden;
  }

  .header-inner,
  .wsk-header-inner {
    min-height: 64px;
  }

  .header .shell-nav,
  .wsk-header .shell-nav {
    display: none;
  }

  .header .shell-menu-toggle,
  .wsk-header .shell-menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .upload-grid,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .persona-grid,
  .template-grid,
  .workflow-steps,
  .result-grid,
  .job-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .dropzone {
    min-height: 340px;
    padding: var(--space-lg);
  }

  .hero-title {
    font-size: 44px;
  }
}

@media (max-width: 480px) {
  .shell-header__cluster {
    gap: 8px;
  }

  .shell-lang-select {
    min-width: 60px;
    padding-left: 10px;
    padding-right: 28px;
  }

  .shell-mobile-link,
  .shell-mobile-button,
  .shell-mobile-wallet {
    font-size: 13px;
  }
}
