/* Стили сайта: главная, вход, кабинет. */
:root {
  --bg: #fff8ee;
  --surface: #ffffff;
  --ink: #1d1a17;
  --muted: #6b645c;
  --line: #e9ddcb;
  --accent: #ff6a2b;
  --accent-ink: #1d1a17;
  --accent-soft: #ffe9da;
  --accent-text: #c2410c;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --ok: #2e7d32;
  --ok-bg: #e4f4e9;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120f; --surface: #221d18; --ink: #f3ece2; --muted: #a79d90; --line: #3a322a;
    --accent: #ff7a3d; --accent-ink: #1a0f08; --accent-soft: #3a2416; --accent-text: #ff9a66;
    --danger: #ff8a7a; --danger-bg: #3a1d1a; --ok: #7bc77f; --ok-bg: #17301f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15120f; --surface: #221d18; --ink: #f3ece2; --muted: #a79d90; --line: #3a322a;
  --accent: #ff7a3d; --accent-ink: #1a0f08; --accent-soft: #3a2416; --accent-text: #ff9a66;
  --danger: #ff8a7a; --danger-bg: #3a1d1a; --ok: #7bc77f; --ok-bg: #17301f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font-body); }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5.4vw, 54px); font-weight: 600; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 500; }
h3 { font-size: 17px; font-weight: 500; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0;
  padding: 15px 26px; border-radius: 999px; font: 600 17px var(--font-body); cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: default; }

.input {
  font: 17px var(--font-body); color: var(--ink); background: var(--bg); border: 2px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.alert { border: 2px solid var(--danger); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* шапка */
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.top nav { display: flex; gap: 20px; }
.top nav a, .top .back { color: var(--muted); text-decoration: none; font-size: 15px; }
.top .user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top .user span { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* главный экран */
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-block: 24px 56px; }
.hero .lead { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 30em; }
.hero .small { color: var(--muted); font-size: 14px; margin-top: 18px; }

.development-home footer { padding-bottom: 100px; }
.update-notice {
  position: fixed; z-index: 10; inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .14);
}
.update-notice a { color: var(--accent-text); font-size: 1rem; font-weight: 600; padding: 9px 10px; }
.update-notice button {
  flex: 0 0 44px; height: 44px; border: 0; border-radius: 12px; background: transparent;
  color: var(--muted); font: 1.35rem var(--font-body); cursor: pointer;
}
.update-notice button:hover { background: var(--accent-soft); color: var(--ink); }
.update-placeholder .btn { width: fit-content; }

.drop {
  background: var(--surface); border: 3px dashed var(--line); border-radius: 28px;
  padding: 28px; min-height: 320px; display: grid; align-content: center; gap: 16px; text-align: center;
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: var(--bg); }
.drop .big { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.drop .hint { color: var(--muted); font-size: 14px; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop .file { display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-weight: 600; overflow-wrap: anywhere; }
.drop .file b { color: var(--accent); }
.drop form { display: grid; gap: 12px; text-align: left; }
.drop form label { font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.drop .note { font-size: 13px; color: var(--muted); }
.drop .note b { color: var(--ink); }
.drop input[type="text"] {
  font: 17px var(--font-body); color: var(--ink); background: var(--bg); border: 2px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.drop .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.drop .agree input { margin-top: 3px; }
.drop .err { color: var(--danger); font-size: 14px; }
.drop .link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.drop .bar { height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.drop .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.drop #step-upload { display: grid; gap: 12px; }

/* полосы ниже */
.band { border-top: 1px solid var(--line); padding-block: 48px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; min-width: 0; display: grid; gap: 6px; }
.steps li::before {
  content: counter(s); font-family: var(--font-display); font-weight: 600; font-size: 22px;
  color: var(--accent);
}
.steps p { color: var(--muted); font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.cols div { min-width: 0; display: grid; gap: 6px; }
.cols p { color: var(--muted); font-size: 15px; }
.faq { margin-top: 20px; display: grid; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin-top: 6px; max-width: 46em; font-size: 15px; }

footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

/* вход и подтверждение кода */
.auth .wrap { max-width: 480px; padding-block: 32px 72px; }
.card {
  background: var(--surface); border: 2px solid var(--line); border-radius: 28px;
  padding: 32px 28px; display: grid; gap: 14px;
}
.card h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 500; }
.card .lead { color: var(--muted); font-size: 16px; }
.card form { display: grid; gap: 10px; margin-top: 6px; }
.card label { font-size: 14px; color: var(--muted); }
.card .btn { width: 100%; margin-top: 6px; }
.phone-field { display: flex; align-items: center; padding: 0; }
.phone-field:focus-within { border-color: var(--accent); }
.phone-field span { padding-left: 14px; font-weight: 600; }
.phone-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 12px 14px 12px 8px; }
.phone-field input:focus-visible { outline: none; }
.input.code { font-family: var(--font-display); font-size: 22px; letter-spacing: .3em; text-align: center; }
.status { font-size: 14px; min-height: 1.2em; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }
.resend { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; color: var(--muted); }
.resend button {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--accent); cursor: pointer;
}
.resend button:hover { text-decoration: underline; }
.resend button[disabled] { color: var(--muted); font-weight: 400; cursor: default; text-decoration: none; }
.resend button[disabled] + span { color: var(--muted); }

/* кабинет */
.cabinet .wrap { padding-block: 16px 56px; }
.cabinet h1 { font-size: clamp(26px, 4vw, 36px); }
.notice {
  margin: 16px 0 24px; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0;
  background: var(--surface); font-size: 15px;
}
.notice b { display: block; }
.notice span { color: var(--muted); }
.top .user form { margin: 0; }
.panels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: p; }
.panel {
  counter-increment: p; min-width: 0; background: var(--surface); border: 2px solid var(--line); border-radius: 20px;
  padding: 24px; display: grid; gap: 12px; align-content: start;
}
.panel::before { content: counter(p); font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--accent); line-height: 1; }
.panel .hint { color: var(--muted); font-size: 15px; }
.panel .btn { justify-self: start; }
.picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.picker-label {
  display: flex; gap: 10px; align-items: center; min-width: 0; cursor: pointer;
  background: var(--bg); border: 2px dashed var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 15px;
}
.picker-label:hover { border-color: var(--accent); }
.picker input:focus-visible + .picker-label { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.picker-text.has-file { color: var(--ink); font-weight: 600; }
.module-status { font-size: 14px; min-height: 1.2em; }
.module-status.error { color: var(--danger); }
.module-status.ok { color: var(--ok); }
.loaded-file {
  display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 14px;
  background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.loaded-file .check { color: var(--accent); font-weight: 600; }
.loaded-file .file-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.loaded-file .file-size { color: var(--muted); margin-left: auto; white-space: nowrap; }
.console {
  margin: 0; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: 13px/1.5 Consolas, "SF Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto;
}
.console:empty { display: none; }

/* кабинет: список заказов и новая диагностика */
.cabinet h2 { font-size: clamp(20px, 2.6vw, 26px); }
.new-order { margin: 20px 0 32px; }
.new-order .hint { color: var(--muted); font-size: 15px; }
.new-order .note { font-size: 13px; color: var(--muted); }
.new-order .note b { color: var(--ink); }
.new-order .btn { justify-self: start; width: auto; }
.orders { display: grid; gap: 14px; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px;
  color: var(--ink); text-decoration: none;
}
.order-link:hover { border-color: var(--accent); }
.order-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card .order-links .btn { width: auto; }
.order-row.live .order-link { border-left: 4px solid var(--accent); }
.order-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.order-status { font: 600 13px var(--font-body); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
                background: var(--bg); color: var(--muted); border: 1px solid var(--line); justify-self: end; }
.order-status.status-diagnosed, .order-status.status-done { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.order-status.status-analyzing, .order-status.status-created, .order-status.status-paid, .order-status.status-fulfilling,
.order-status.status-need_release, .order-status.status-need_input { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.order-status.status-rejected, .order-status.status-failed { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.order-meta { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

/* страница заказа */
.order .wrap { max-width: 760px; padding-block: 12px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.order .card, .order .card li, .order .card dd { min-width: 0; overflow-wrap: anywhere; }
.order h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 600; }
.order h1 .h1-version { display: block; margin-top: 4px; font-size: .55em; color: var(--muted); font-variant-numeric: tabular-nums; }
.order .crumbs { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.copy-link {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; overflow-wrap: anywhere; text-align: left;
}
.copy-link:hover { text-decoration: underline; }
/* обратная связь: кнопка справа снизу, панель над ней */
.fb { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; justify-items: end; gap: 12px; }
.fb-toggle {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); font: 600 15px var(--font-body); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.fb-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); flex: none;
}
.fb-toggle:hover, .fb-toggle[aria-expanded="true"] { border-color: var(--accent); }
.fb-toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.fb-panel {
  width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--line); border-radius: 20px;
  padding: 18px; display: grid; gap: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  max-height: calc(100vh - 110px); overflow: auto; animation: fb-in .18s ease-out;
}
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-head h3 { font-size: 18px; }
.fb-close { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.fb-close:hover { color: var(--ink); }
.fb-panel p { margin: 0; }
.fb-panel form { display: grid; gap: 10px; margin: 0; }
.fb-panel .btn { justify-self: stretch; width: 100%; margin: 0; }
@keyframes fb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fb-panel { animation: none; } .fb-toggle { transition: none; } }
@media (max-width: 480px) {
  .fb { right: 16px; bottom: 16px; }
  .fb-toggle { padding: 5px; }
  .fb-icon { width: 42px; height: 42px; }
  .fb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
body:has(.fb) footer { padding-bottom: 80px; }
.order .notice { margin: 0; }
.order .notice a { color: var(--accent-text); }
.order .card { gap: 12px; padding: clamp(18px, 4vw, 28px); }
.order .card h3 { font-size: 18px; }
.order ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.order ul li::marker { color: var(--accent); }
.order ul.plain { list-style: none; padding: 0; }
.order .card p { max-width: 60em; }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 13px; }
.status-title { font-size: clamp(22px, 4vw, 30px); font-weight: 600; }
.facts { margin: 0; display: grid; gap: 6px 16px; grid-template-columns: max-content minmax(0, 1fr); font-size: 15px; }
.facts div { display: contents; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.inline-form .input { flex: 1 1 220px; width: auto; }
.inline-form .btn { width: auto; margin: 0; }
.order .picker-label { background: var(--bg); }
.order .btn { justify-self: start; width: auto; }
.register form { display: grid; gap: 10px; margin: 0; }
.register label { font-size: 14px; color: var(--muted); }
.register .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.register .agree input { margin-top: 3px; accent-color: var(--accent); }
.register .input.code { max-width: 220px; }
.register .btn { margin-top: 4px; }

/* итог диагностики */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--bg); min-width: 0; }
.stat b { font: 600 clamp(26px, 4vw, 36px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.hot b { color: var(--accent-text); }
.stat.text b { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.25; }
.warn { background: var(--danger-bg); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.warn .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--danger); color: var(--bg); display: grid; place-items: center; font: 700 17px var(--font-display); }
.warn > div { display: grid; gap: 8px; min-width: 0; }
.warn h3 { color: var(--danger); }
.warn p { font-size: 15px; }

/* готовый заказ: что проверили, что дальше, замечания */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 15px; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.order ol.todo { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.order ol.todo li::marker { color: var(--accent); font-weight: 600; }
.order .downloads li { font-weight: 600; }
.order .downloads .muted { font-weight: 400; }
.remarks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.remarks li { background: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: 15px; display: grid; gap: 4px; }
.remarks time { color: var(--muted); font-size: 13px; }
.order #fixForm { display: grid; gap: 10px; margin: 0; }
textarea.input { resize: vertical; min-height: 100px; font: inherit; line-height: 1.5; }

/* справка «Как применить результат» (pages/help_apply.php) */
.help .wrap { max-width: 760px; padding-block: 12px 56px; display: grid; gap: 18px; }
.help h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; }
.help h2 { font-size: clamp(20px, 2.6vw, 24px); font-weight: 600; }
.help .lead { color: var(--muted); font-size: 18px; max-width: 40em; }
.help .card { gap: 12px; padding: clamp(18px, 4vw, 28px); }
.help .card p, .help .card li { max-width: 60em; min-width: 0; overflow-wrap: anywhere; }
.help ol, .help ul { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.help ol ul { margin-top: 6px; gap: 4px; }
.help li::marker { color: var(--accent); font-weight: 600; }
.help .muted { font-size: 15px; }
.help .path { white-space: nowrap; }
@media (max-width: 480px) { .help .path { white-space: normal; } }

/* шкала шагов (lib/steps.php) */
.steps-scale { display: grid; gap: 12px; margin-top: 8px; }
.steps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.steps-head h3 { font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.steps-scale ol { list-style: none; margin: 0; padding: 0; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line); }
.step-done:not(:last-child)::after { background: var(--ok); opacity: .4; }
.dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
       display: flex; align-items: center; justify-content: center; color: var(--muted); font: 600 14px var(--font-display); }
.dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dot .fill { fill: currentColor; stroke: none; }
.step-done .dot { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.step-running .dot { border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.step-input .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step-human .dot { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.step-stopped .dot, .step-failed .dot { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.step-skipped .dot { border-style: dashed; }
.step-body { display: grid; gap: 4px; padding-top: 4px; min-width: 0; }
.step-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.step-title { font-weight: 600; }
.step-skipped .step-title { font-weight: 400; color: var(--muted); }
.step-state { font: 600 13px var(--font-body); padding: 2px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums;
              background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.step-done .step-state { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.step-running .step-state, .step-input .step-state { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.step-stopped .step-state, .step-failed .step-state { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.step-note { color: var(--muted); font-size: 15px; }
.step-input .step-note { color: var(--accent-text); font-weight: 600; }
.step-stopped .step-note, .step-failed .step-note { color: var(--danger); }
.step-upload { display: grid; gap: 10px; margin-top: 6px; }
.develop-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.develop-heading h1, .develop-heading p { margin: 0; }
#developmentForm :is(select, textarea, progress) { width: 100%; }
#developmentDescription { resize: vertical; }
#developmentProgress { accent-color: var(--accent); }
.development-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.development-brief-turns li, #briefProposal { margin-top: 14px; }
.development-brief-turns p, #briefFacts dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.brief-user { color: var(--muted); }
#briefMessage { width: 100%; resize: vertical; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .step-running .dot { animation: none; border-color: var(--accent); } }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .steps, .cols, .panels { grid-template-columns: 1fr; }
  .top nav a:not(:last-child) { display: none; }
  .card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .step-line { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts div { display: block; margin-bottom: 8px; }
  .order-link { grid-template-columns: 1fr; }
  .order-status { justify-self: start; }
}
@media (max-width: 420px) {
  .top .user span { display: none; }
}

