:root {
  color-scheme: light;
  --ink: #10201d;
  --muted: #677571;
  --subtle: #87938f;
  --line: #dce4e1;
  --line-strong: #c8d2ce;
  --canvas: #f4f7f6;
  --paper: #ffffff;
  --paper-2: #edf2f0;
  --deep: #071d1b;
  --deep-2: #0c2b27;
  --accent: #a6d300;
  --accent-dark: #658300;
  --accent-soft: #eff8cf;
  --blue: #1970c7;
  --blue-soft: #e9f3fd;
  --amber: #b56600;
  --amber-soft: #fff2d6;
  --red: #b13737;
  --red-soft: #feeceb;
  --green: #167657;
  --green-soft: #e3f6ef;
  --shadow: 0 18px 60px rgba(15, 32, 29, .11);
  --shadow-sm: 0 8px 24px rgba(15, 32, 29, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 236px;
  --context: 292px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -20%, rgba(166, 211, 0, .12), transparent 38%),
    var(--canvas);
  color: var(--ink);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(25, 112, 199, .28);
  outline-offset: 2px;
}

.shell { min-height: 100vh; }
.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  background: rgba(7, 29, 27, .98);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
  object-fit: contain;
}
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; letter-spacing: .08em; font-size: 14px; font-weight: 800; }
.brand-copy strong b { color: #a5c820; font-weight: 900; }
.brand-copy small { color: #a9bab5; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #d9e4e0;
  font-size: 12px;
}
.demo-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.topbar .button-ghost { color: #d4e2de; }
.topbar .button-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.app-grid {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--context);
  min-height: calc(100vh - 68px);
}
.sidebar {
  padding: 18px 14px 32px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}
.step-group + .step-group { margin-top: 19px; }
.step-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 8px 7px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.step-button {
  width: 100%;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin: 3px 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
.step-button:hover { background: var(--paper-2); color: var(--ink); }
.step-button.active { background: var(--deep); color: #fff; box-shadow: var(--shadow-sm); }
.step-button.done:not(.active) { color: var(--ink); }
.step-index {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.active .step-index { border-color: var(--accent); background: var(--accent); color: #183100; }
.done:not(.active) .step-index { border-color: #9ccab9; background: var(--green-soft); color: var(--green); }
.step-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.step-role { display: block; margin-top: 2px; font-size: 10px; opacity: .72; }
.step-check { color: var(--green); font-weight: 800; }
.active .step-check { color: var(--accent); }

.mobile-progress { display: none; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-progress-line { display: flex; align-items: center; gap: 9px; }
.mobile-progress select { flex: 1; min-width: 0; }

.workspace { min-width: 0; padding: 24px clamp(18px, 3vw, 42px) 42px; }
.workspace-inner { max-width: 980px; margin: 0 auto; }
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.role-chip, .status-chip, .soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.role-chip { background: var(--deep); color: #fff; }
.status-chip { background: var(--accent-soft); color: #496300; }
.soft-chip { background: var(--paper-2); color: var(--muted); }
.screen-title { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.06; letter-spacing: -.035em; }
.screen-intro { max-width: 730px; margin: 12px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.guide-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #d9e9a5;
  border-radius: 12px;
  background: #f7fbe9;
  color: #47551a;
  font-size: 13px;
}
.guide-note strong { color: #2f3c00; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 15px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 16px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfc; border-radius: 0 0 var(--radius) var(--radius); }

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr);
  gap: 20px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(166,211,0,.19), transparent 33%),
    linear-gradient(135deg, var(--deep), #103d37);
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card h2 { max-width: 560px; margin: 0 0 12px; font-size: clamp(25px, 4vw, 39px); line-height: 1.05; letter-spacing: -.03em; }
.hero-card p { color: #b9cbc6; line-height: 1.6; }
.hero-visual {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.car-symbol { width: 90%; max-width: 260px; height: auto; color: var(--accent); }
.hero-visual .float-tag { position: absolute; padding: 7px 9px; border-radius: 9px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; box-shadow: var(--shadow-sm); }
.hero-visual .tag-a { top: 18px; left: 13px; }
.hero-visual .tag-b { right: 12px; bottom: 18px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-value { margin: 5px 0 3px; font-size: 25px; line-height: 1; font-weight: 850; letter-spacing: -.03em; }
.metric-note { color: var(--subtle); font-size: 11px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field-grid .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.input-readonly { background: var(--paper-2); color: var(--muted); }
.range-row { display: flex; align-items: center; gap: 13px; }
.range-row input { flex: 1; accent-color: var(--accent-dark); }
.range-value { min-width: 47px; font-weight: 850; text-align: right; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.button:hover { background: var(--paper-2); }
.button-primary { border-color: var(--deep); background: var(--deep); color: #fff; }
.button-primary:hover { background: #12332f; }
.button-accent { border-color: var(--accent); background: var(--accent); color: #183000; }
.button-accent:hover { background: #b5e214; }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-danger { border-color: #efc3c0; color: var(--red); background: var(--red-soft); }
.button:disabled { opacity: .44; cursor: not-allowed; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.screen-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.screen-nav .nav-right { display: flex; gap: 9px; }

.login-wrap { min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; }
.login-copy { padding: clamp(28px, 6vw, 64px); background: var(--deep); color: #fff; }
.login-copy h2 { margin: 42px 0 12px; font-size: clamp(32px, 5vw, 54px); line-height: 1; letter-spacing: -.04em; }
.login-copy p { max-width: 540px; color: #b8c9c4; line-height: 1.7; }
.login-points { display: grid; gap: 13px; margin-top: 32px; }
.login-point { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.login-point b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #183000; }
.login-form { padding: clamp(28px, 6vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.login-form h3 { margin: 0 0 7px; font-size: 24px; }
.login-form > p { color: var(--muted); margin: 0 0 24px; }
.demo-credentials { margin-top: 16px; padding: 11px 12px; border-radius: 10px; background: var(--paper-2); color: var(--muted); font-size: 11px; }

.check-list { display: grid; gap: 9px; }
.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.check-row:hover { border-color: var(--line-strong); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.check-row strong { display: block; font-size: 13px; }
.check-row small { display: block; color: var(--muted); margin-top: 2px; }
.price { font-variant-numeric: tabular-nums; font-weight: 850; white-space: nowrap; }

.vehicle-map {
  min-height: 300px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(90deg, #fbfcfc 49.5%, var(--line) 50%, #fbfcfc 50.5%);
}
.vehicle-map svg { width: min(78%, 380px); color: #81908c; }
.damage-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.1), 0 0 0 4px rgba(25,112,199,.18);
  font-size: 15px;
  font-weight: 900;
}
.damage-dot.selected { background: var(--red); box-shadow: 0 2px 0 rgba(0,0,0,.1), 0 0 0 4px rgba(177,55,55,.17); }
.dot-front { top: 13%; left: 47%; }
.dot-left { top: 43%; left: 23%; }
.dot-right { top: 43%; right: 23%; }
.dot-rear { bottom: 12%; left: 47%; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.evidence {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.evidence.captured { border-style: solid; border-color: #a5ccb9; background: var(--green-soft); color: var(--green); }

.stage-track { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; margin: 14px 0; }
.stage-segment { height: 8px; border-radius: 999px; background: var(--line); }
.stage-segment.done { background: var(--accent); }
.stage-segment.current { background: var(--blue); }
.progress-bar { height: 9px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-bar > span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }

.order-table { width: 100%; border-collapse: collapse; }
.order-table th { padding: 0 10px 9px; color: var(--muted); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.order-table td { padding: 12px 10px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.order-table td:last-child, .order-table th:last-child { text-align: right; }
.priority { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--accent-dark); }
.priority.warn { background: var(--amber); }
.priority.red { background: var(--red); }

.phone-stage { display: grid; grid-template-columns: minmax(260px, 350px) 1fr; gap: 24px; align-items: center; }
.phone {
  max-width: 350px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
  background: #071d1b;
  box-shadow: var(--shadow);
}
.phone-screen { overflow: hidden; min-height: 625px; border-radius: 27px; background: var(--canvas); }
.phone-status { display: flex; justify-content: space-between; padding: 10px 16px 5px; background: var(--deep); color: #fff; font-size: 10px; }
.phone-header { padding: 15px 18px 18px; background: var(--deep); color: #fff; }
.phone-header strong { letter-spacing: .1em; font-size: 12px; }
.phone-body { padding: 14px; }
.phone-hero { padding: 18px; border-radius: 17px; background: linear-gradient(135deg, #0c3934, #126d64); color: #fff; }
.phone-hero small { color: #bcd0ca; }
.phone-hero h3 { margin: 10px 0 5px; font-size: 24px; }
.phone-hero p { margin: 0 0 12px; color: #d7e5e1; font-size: 12px; line-height: 1.55; }
.phone-action { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.phone-action strong { font-size: 13px; }
.phone-action p { margin: 4px 0 9px; color: var(--muted); font-size: 11px; }
.phone-nav { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 12px; padding: 9px 3px; border-radius: 13px; background: #fff; color: var(--muted); text-align: center; font-size: 9px; }

.task-board { display: grid; gap: 11px; }
.task-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.task-card.complete { background: var(--green-soft); border-color: #b7ddcd; }
.task-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--muted); font-weight: 850; }
.task-card.complete .task-number { background: var(--green); color: #fff; }
.task-card strong { display: block; font-size: 13px; }
.task-card small { color: var(--muted); }

.context-panel { border-left: 1px solid var(--line); background: #f8faf9; padding: 20px 16px 28px; }
.context-sticky { position: sticky; top: 88px; }
.context-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.context-head h2 { margin: 0; font-size: 15px; }
.context-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.context-summary { padding: 15px; border-radius: 14px; background: var(--deep); color: #fff; box-shadow: var(--shadow-sm); }
.context-summary small { color: #a9bbb6; }
.context-summary h3 { margin: 6px 0 2px; font-size: 19px; }
.context-summary p { margin: 0 0 12px; color: #c5d4d0; font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.summary-grid div { padding: 9px; border-radius: 9px; background: rgba(255,255,255,.07); }
.summary-grid span { display: block; color: #aabcb7; font-size: 9px; }
.summary-grid strong { display: block; margin-top: 3px; font-size: 12px; }
.activity { margin-top: 16px; }
.activity h3 { margin: 0 0 10px; font-size: 12px; }
.activity-list { display: grid; gap: 0; }
.activity-item { position: relative; padding: 0 0 14px 20px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.activity-item::before { content: ""; position: absolute; left: 3px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); }
.activity-item::after { content: ""; position: absolute; left: 6px; top: 13px; bottom: 1px; width: 1px; background: var(--line-strong); }
.activity-item:last-child::after { display: none; }
.activity-item strong { display: block; color: var(--ink); }

.total-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 15px; border-radius: 13px; background: var(--deep); color: #fff; }
.total-box span { display: block; color: #b3c5c0; font-size: 10px; }
.total-box strong { display: block; margin-top: 4px; font-size: 27px; }
.total-box small { color: #b3c5c0; text-align: right; }

.success {
  text-align: center;
  padding: clamp(28px, 6vw, 60px);
  background: linear-gradient(135deg, #f8fce9, #e8f7f1);
  border: 1px solid #cfe3bd;
  border-radius: 24px;
}
.success-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: #193300; font-size: 31px; font-weight: 900; box-shadow: 0 0 0 10px rgba(166,211,0,.17); }
.success h2 { margin: 0 0 8px; font-size: clamp(28px,5vw,45px); letter-spacing: -.04em; }
.success > p { max-width: 650px; margin: 0 auto 22px; color: var(--muted); line-height: 1.6; }
.timeline-final { max-width: 690px; margin: 20px auto 0; text-align: left; }
.timeline-final-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(16,32,29,.1); font-size: 12px; }
.timeline-final-row time { color: var(--muted); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in .22s ease-out;
}
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1120px) {
  :root { --sidebar: 210px; }
  .app-grid { grid-template-columns: var(--sidebar) minmax(0,1fr); }
  .context-panel { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }
  .context-sticky { position: static; display: grid; grid-template-columns: minmax(250px,.8fr) minmax(300px,1.2fr); gap: 18px; }
  .activity { margin-top: 0; }
}

@media (max-width: 820px) {
  .topbar { position: static; padding: 12px 16px; }
  .demo-label { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-progress { display: block; }
  .workspace { padding: 20px 16px 30px; }
  .context-panel { grid-column: 1; }
  .context-sticky { grid-template-columns: 1fr; }
  .hero-card, .login-wrap, .phone-stage { grid-template-columns: 1fr; }
  .hero-visual { min-height: 180px; }
  .login-copy, .login-form { padding: 28px; }
  .login-copy h2 { margin-top: 24px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 580px) {
  .brand-copy small { display: none; }
  .top-actions .button { padding: 8px 10px; min-height: 38px; }
  .field-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .panel-head { padding: 16px; }
  .panel-body { padding: 16px; }
  .screen-nav { flex-direction: column-reverse; }
  .screen-nav .button, .screen-nav .nav-right { width: 100%; }
  .screen-nav .nav-right { flex-direction: column-reverse; }
  .evidence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vehicle-map { min-height: 250px; }
  .phone { width: 100%; }
  .phone-screen { min-height: 560px; }
  .task-card { grid-template-columns: auto minmax(0,1fr); }
  .task-card .button { grid-column: 1 / -1; }
  .timeline-final-row { grid-template-columns: 70px 1fr; }
  .timeline-final-row > :last-child { grid-column: 2; }
  .order-table { display: block; overflow-x: auto; }
}

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