/* ═══════════════════════════════════════════
   CINERI · HPC Job Form — Stylesheet
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0e1a;
  --bg-2: #0f1524;
  --bg-3: #161d30;
  --line: #1f2940;
  --line-2: #2a3657;
  --ink-0: #e7ecf7;
  --ink-1: #aab4cc;
  --ink-2: #6b7795;
  --ink-3: #465069;
  --blue: #2556d8;
  --blue-deep: #1a3ea8;
  --blue-glow: #3d72ff;
  --gold: #fbbf24;
  --gold-deep: #d97706;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #f59e0b;
  --red: #f87171;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-0);
  color: var(--ink-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(37,86,216,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(251,191,36,.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(34,211,238,.04), transparent 70%),
    var(--bg-0);
}
.bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,54,87,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,54,87,.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
}

/* ── App shell ── */
.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Top bar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,19,34,.85), rgba(13,19,34,.4));
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .14em; }
.brand-tag  { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-2); letter-spacing: .15em; margin-top: 2px; }

.sys-status { display: flex; align-items: center; gap: 22px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); letter-spacing: .08em; }
.sys-meta span { color: var(--ink-1); }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 8px;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  50%       { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

/* ── Layout ── */
.main {
  flex: 1; display: grid; grid-template-columns: 260px 1fr;
  max-width: 1440px; width: 100%; margin: 0 auto; padding: 40px; gap: 0;
}

/* ── Stepper ── */
.stepper { padding: 16px 24px 16px 0; border-right: 1px solid var(--line); }
.stepper-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }

.step-item { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; cursor: pointer; position: relative; }
.step-item .connector { position: absolute; left: 16.5px; top: 46px; bottom: -12px; width: 1.5px; background: var(--line-2); }
.step-item.done .connector { background: linear-gradient(180deg, var(--gold), var(--line-2)); }

.step-item .bubble {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--ink-2);
  z-index: 1; transition: all .3s;
}
.step-item.active .bubble {
  border-color: var(--blue-glow); background: var(--blue); color: #fff;
  box-shadow: 0 0 0 4px rgba(61,114,255,.18), 0 0 24px rgba(61,114,255,.6);
  animation: glow-bubble 2.5s ease-in-out infinite;
}
.step-item.done .bubble { border-color: var(--gold); background: var(--gold); color: var(--bg-0); }
.step-item.done .bubble::after { content: '✓'; font-size: 13px; font-weight: 700; }
.step-item.done .bubble span { display: none; }

@keyframes glow-bubble {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,114,255,.18), 0 0 24px rgba(61,114,255,.6); }
  50%       { box-shadow: 0 0 0 6px rgba(61,114,255,.22), 0 0 36px rgba(61,114,255,.8); }
}

.step-item .lbl      { font-size: 13px; font-weight: 500; color: var(--ink-1); transition: color .2s; padding-top: 4px; }
.step-item .sublbl   { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.step-item.active .lbl   { color: var(--ink-0); }
.step-item.active .sublbl{ color: var(--cyan); }

/* ── Content ── */
.content { padding: 0 0 0 48px; display: flex; flex-direction: column; min-height: 600px; }

.content-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--cyan); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.content-head h1 { font-weight: 400; font-size: 30px; letter-spacing: -.02em; }
.content-head h1 b { font-weight: 600; }
.meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); text-align: right; line-height: 1.7; letter-spacing: .06em; }
.meta .k { color: var(--ink-3); }

/* ── Step body & transitions ── */
.step-body { flex: 1; padding: 28px 0 24px; }

.step-panel { animation: slide-in .4s cubic-bezier(.22,1,.36,1) both; }
.step-panel.out { animation: slide-out .22s ease-in both; }

@keyframes slide-in  { from { opacity:0; transform:translateX(24px); filter:blur(3px); } to { opacity:1; transform:none; filter:none; } }
@keyframes slide-out { from { opacity:1; transform:none; }  to { opacity:0; transform:translateX(-24px); } }

/* ── Form rows ── */
.row {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  padding: 18px 0; border-bottom: 1px dashed rgba(42,54,87,.5); align-items: flex-start;
}
.row:last-child { border-bottom: none; }
.row .lbl-wrap { padding-top: 10px; }
.row .lbl-title { font-size: 13px; font-weight: 500; color: var(--ink-0); }
.row .lbl-hint  { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.row .lbl-title.req::after { content: ' *'; color: var(--gold); }

/* ── Inputs ── */
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 11px 14px; color: var(--ink-0); font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  transition: border-color .2s, box-shadow .2s; outline: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue-glow);
  box-shadow: 0 0 0 3px rgba(61,114,255,.12);
}
.input.error, .select.error { border-color: var(--red); background: rgba(248,113,113,.04); }
.textarea { resize: vertical; min-height: 80px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7795' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.select option { background: var(--bg-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.err-msg { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--red); margin-top: 6px; letter-spacing: .04em; animation: shake .3s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }

/* ── Autocomplete suggestions ── */
.suggestions {
  position: absolute; z-index: 50; width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-2); border-top: none; border-radius: 0 0 4px 4px;
  max-height: 160px; overflow-y: auto;
}
.suggestion-item { padding: 9px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-1); cursor: pointer; transition: background .15s; }
.suggestion-item:hover { background: var(--bg-3); color: var(--ink-0); }
.suggestion-item .item-type { font-size: 10px; color: var(--ink-3); margin-left: 8px; letter-spacing: .06em; }
.input-wrap { position: relative; }

/* ── HPC level slider ── */
.level-display { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.level-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--gold); }
.level-value .unit { font-size: 11px; color: var(--ink-2); margin-left: 8px; }
.level-bar { display: flex; gap: 4px; margin-top: 10px; }
.level-cell { flex: 1; height: 6px; border-radius: 2px; background: var(--line-2); transition: background .2s; }
.level-cell.on { background: var(--blue-glow); }
.level-cell.high { background: var(--gold); }
.level-hint { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); margin-top: 6px; letter-spacing: .06em; display: flex; justify-content: space-between; }

/* ── Tag multi-select ── */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-option {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 3px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink-2); cursor: pointer;
  transition: all .18s; user-select: none;
}
.tag-option:hover { background: var(--bg-3); color: var(--ink-1); }
.tag-option.selected { border-color: var(--blue-glow); background: rgba(61,114,255,.12); color: var(--ink-0); }

/* ── Range slider ── */
input[type=range] {
  width: 100%; appearance: none; height: 3px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--blue) var(--pct, 50%), var(--line-2) var(--pct, 50%));
}
input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg-0); box-shadow: 0 0 8px rgba(251,191,36,.5);
}
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.slider-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--gold); }
.slider-value .unit { font-size: 11px; color: var(--ink-2); margin-left: 8px; }
.slider-limits { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .06em; }

/* ── Job type grid ── */
.job-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.job-card {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 16px 14px; cursor: pointer; transition: all .25s;
}
.job-card:hover { background: var(--bg-3); transform: translateY(-1px); }
.job-card.selected {
  border-color: var(--blue-glow);
  background: linear-gradient(135deg, rgba(37,86,216,.14), rgba(37,86,216,.04));
  box-shadow: 0 0 0 1px var(--blue-glow), 0 6px 20px rgba(61,114,255,.2);
}
.job-card .jc-icon { width: 26px; height: 26px; margin-bottom: 8px; color: var(--ink-2); transition: color .2s; }
.job-card.selected .jc-icon { color: var(--gold); }
.job-card .jc-name { font-size: 13px; font-weight: 500; color: var(--ink-0); }
.job-card .jc-desc { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); margin-top: 4px; letter-spacing: .05em; }

/* ── Node grid ── */
.node-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.node-cell { aspect-ratio: 1; border-radius: 2px; background: var(--line-2); transition: background .15s; }
.node-cell.cpu { background: var(--blue); }
.node-cell.gpu { background: var(--gold); }
.node-legend { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); margin-top: 8px; letter-spacing: .08em; }

/* ── Priority cards ── */
.priority-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prio-card { border: 1px solid var(--line-2); border-radius: 4px; padding: 16px; cursor: pointer; transition: all .2s; }
.prio-card:hover { background: var(--bg-3); }
.prio-card.selected.basse    { border-color: var(--green);  background: rgba(52,211,153,.06); }
.prio-card.selected.normale  { border-color: var(--amber);  background: rgba(245,158,11,.06); }
.prio-card.selected.haute    { border-color: var(--red);    background: rgba(248,113,113,.06); }
.p-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.p-name { font-size: 13px; font-weight: 600; }
.p-tag  { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }
.p-desc { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); line-height: 1.5; }
.p-bar  { height: 2px; border-radius: 1px; background: var(--line-2); margin-top: 12px; overflow: hidden; }
.prio-card.basse  .p-bar-fill { width: 33%;  height: 100%; background: var(--green); }
.prio-card.normale .p-bar-fill{ width: 66%;  height: 100%; background: var(--amber); }
.prio-card.haute  .p-bar-fill { width: 100%; height: 100%; background: var(--red);   }

/* ── Duration picker ── */
.dur-head   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dur-value  { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--gold); }
.dur-value .unit { font-size: 11px; color: var(--ink-2); margin-left: 8px; }
.dur-toggle { display: flex; gap: 4px; }
.dur-toggle button {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 4px 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-2); cursor: pointer; letter-spacing: .08em; transition: all .15s;
}
.dur-toggle button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.dur-limits { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); display: flex; justify-content: space-between; margin-top: 6px; letter-spacing: .06em; }

/* ── Review terminal ── */
.review-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.terminal { background: var(--bg-1); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.terminal-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.t-dots { display: flex; gap: 6px; }
.t-dots span { width: 10px; height: 10px; border-radius: 50%; }
.t-dots span:nth-child(1) { background: var(--red); }
.t-dots span:nth-child(2) { background: var(--gold); }
.t-dots span:nth-child(3) { background: var(--green); }
.t-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); flex: 1; letter-spacing: .06em; }
.t-slurm { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); }
.terminal-body { padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.85; overflow-y: auto; max-height: 520px; }
.t-line    { display: flex; gap: 12px; }
.t-prompt  { color: var(--green); }
.t-key     { color: var(--cyan); min-width: 180px; }
.t-val     { color: var(--ink-1); }
.t-val.num { color: var(--gold); }
.t-val.ok  { color: var(--green); }
.t-comment { color: var(--ink-3); }
.t-divider { border-top: 1px dashed var(--line); margin: 8px 0; }
.caret     { display: inline-block; width: 8px; height: 14px; background: var(--green); margin-left: 4px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Cost panel ── */
.cost-panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.cost-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--amber); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.cost-row   { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-2); padding: 4px 0; }
.cost-row .v { color: var(--ink-1); }
.cost-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.cost-total .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-2); letter-spacing: .1em; }
.cost-total .v { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 600; color: var(--gold); }
.cost-total .v .unit { font-size: 11px; color: var(--ink-3); margin-left: 6px; }

/* ── Checkbox rows ── */
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; transition: all .2s; }
.checkbox-row:hover { background: var(--bg-3); }
.checkbox-row.checked { border-color: var(--blue-glow); background: rgba(61,114,255,.06); }
.cb { flex-shrink: 0; width: 18px; height: 18px; border-radius: 3px; border: 1.5px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; transition: all .15s; }
.checkbox-row.checked .cb { background: var(--blue); border-color: var(--blue); }
.checkbox-row.checked .cb::after { content: '✓'; font-size: 11px; color: #fff; font-weight: 700; }
.cb-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.cb-label b { color: var(--ink-1); }

/* ── Action bar ── */
.actions { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); }
.step-counter { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 4px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all .2s; letter-spacing: .02em; }
.btn-ghost   { background: transparent; border: 1px solid var(--line-2); color: var(--ink-1); }
.btn-ghost:hover { background: var(--bg-3); color: var(--ink-0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(37,86,216,.35); }
.btn-primary:hover { background: var(--blue-glow); box-shadow: 0 4px 24px rgba(61,114,255,.5); transform: translateY(-1px); }
.btn-submit  { width: 100%; justify-content: center; background: linear-gradient(135deg, var(--blue), var(--blue-glow)); color: #fff; font-size: 15px; padding: 14px; box-shadow: 0 4px 20px rgba(37,86,216,.4); }
.btn-submit:hover { box-shadow: 0 6px 28px rgba(61,114,255,.6); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; pointer-events: none; }

/* ── Topbar track link ── */
.sys-track-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-glow); text-decoration: none;
  font-size: 11px; letter-spacing: .08em;
  padding: 5px 10px; border: 1px solid rgba(61,114,255,.3); border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.sys-track-link:hover { background: rgba(61,114,255,.1); border-color: var(--blue-glow); }

/* ── Success overlay ── */
.success-overlay { position: fixed; inset: 0; background: rgba(5,7,13,.92); backdrop-filter: blur(12px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.success-overlay.show { opacity: 1; pointer-events: all; }
.success-box { text-align: center; max-width: 520px; width: 90vw; padding: 48px 40px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 20px; align-items: center; }
.success-box h2 { font-size: 24px; font-weight: 600; margin: 0; }

/* ── JID block ── */
.jid-block { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jid-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; color: var(--ink-2); text-transform: uppercase; }
.jid-row { display: flex; align-items: center; gap: 10px; }
.jid { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: var(--green); letter-spacing: .1em; padding: 10px 20px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); border-radius: 6px; }
.jid-copy-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--ink-1); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.jid-copy-btn:hover { background: var(--bg-2); color: var(--ink-0); border-color: var(--line); }
.jid-copy-btn--copied { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); color: var(--green); }
.jid-warning {
  display: flex; align-items: flex-start; gap: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--amber); line-height: 1.5;
  background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.2);
  border-radius: 6px; padding: 10px 14px; text-align: left; width: 100%;
}

/* ── Success actions ── */
.success-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }
.success-track-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* ── Datepicker ── */
.dp-wrap { position: relative; }
.dp-input { padding-right: 38px; cursor: pointer; caret-color: transparent; }
.dp-icon {
  width: 20px;
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-2); pointer-events: none;
}
.dp-popup {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 300;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px; width: 272px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.dp-nav-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-arr {
  background: none; border: 1px solid var(--line-2); color: var(--ink-1);
  border-radius: 5px; width: 28px; height: 28px; cursor: pointer;
  font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.dp-arr:hover { background: var(--bg-3); color: var(--ink-0); }
.dp-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; color: var(--ink-0); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-3); letter-spacing: .05em; padding: 5px 0; }
.dp-day { text-align: center; padding: 6px 0; border-radius: 5px; font-size: 12px; color: var(--ink-1); }
.dp-on { cursor: pointer; }
.dp-on:hover { background: var(--bg-3); color: var(--ink-0); }
.dp-today { color: var(--blue-glow); font-weight: 600; }
.dp-sel { background: var(--blue) !important; color: #fff !important; border-radius: 5px; }
.dp-off { color: var(--ink-3); cursor: not-allowed; }

/* ── Footer ── */
.footer { padding: 18px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .review-grid { grid-template-columns: 1fr; }
  .job-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main { grid-template-columns: 1fr; padding: 20px; }
  .stepper { display: flex; gap: 0; padding: 0 0 20px; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .step-item .connector { display: none; }
  .content { padding: 20px 0 0; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .priority-row { grid-template-columns: 1fr; }
  .topbar { padding: 14px 20px; }
  .sys-status { display: none; }
}
