@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1397f5;
  --primary-dark: #0874d1;
  --secondary: #68c8ff;
  --bg: #f4f9ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --border: #e8f0f8;
  --text: #172033;
  --muted: #707789;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #38bdf8;
  --shadow: 0 16px 40px rgba(28, 82, 142, 0.09);
  --shadow-soft: 0 6px 20px rgba(28, 82, 142, 0.07);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  direction: rtl;
  width: 100%;
  overflow-x: hidden;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(104, 200, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 48%, #eef7ff 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
  font-size: 16px;
}

button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

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

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: -16px 0 42px rgba(28, 82, 142, 0.04);
}

.sidebar-close,
.menu-scrim {
  display: none;
}

.sidebar-close {
  display: none !important;
}

.sidebar-close svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(19, 151, 245, 0.18);
}

.brand-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  color: var(--muted);
  border: 1px solid transparent;
}

.side-link.active,
.side-link:hover {
  color: var(--primary-dark);
  background: linear-gradient(180deg, #f2f9ff 0%, #e8f5ff 100%);
  border-color: #cde9ff;
  box-shadow: var(--shadow-soft);
}

.side-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: currentColor;
}

.side-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.case-mini {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
}

.case-mini strong {
  line-height: 1.7;
}

.case-mini span,
.muted {
  color: var(--muted);
  line-height: 1.9;
  font-size: 13px;
}

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

.case-actions .btn {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}

.account-mini {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 12px;
}

.app-main {
  min-width: 0;
  padding: 24px clamp(18px, 3.2vw, 42px) 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid rgba(232, 240, 248, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.mobile-menu { display: none; }

.mobile-menu svg {
  width: 22px;
  height: 22px;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: var(--primary-dark);
}

.mobile-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

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

.top-actions svg,
.section-title-row svg,
.more-menu-grid svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-title-row h2 { margin-bottom: 5px; }
.section-title-row p { margin: 0; }

.vehicle-picker { margin-top: 12px; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(180deg, #1aa5ff 0%, #078cf1 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(19, 151, 245, 0.26);
}

.btn-primary:hover { background: linear-gradient(180deg, #0f99f7 0%, #057ddb 100%); }
.btn-secondary { background: #fff; color: var(--primary-dark); border-color: #c7e8ff; box-shadow: var(--shadow-soft); }
.btn-ghost { background: rgba(255, 255, 255, 0.68); color: var(--muted); border-color: var(--border); }
.btn-danger { background: var(--error); color: #fff; }

.hero-panel {
  background:
    radial-gradient(circle at 82% 16%, rgba(104, 200, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 800;
  margin: 0 0 10px;
}

.hero-panel h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.35;
  color: var(--text);
  letter-spacing: 0;
}

.hero-panel p,
.page-title p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 2;
}

.hero-art {
  width: 100%;
  border-radius: 34px;
  background: #dff1ff;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(19, 151, 245, 0.16);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.service-card,
.card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 20px;
  display: grid;
  gap: 14px;
  min-height: 216px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #c7e8ff;
  box-shadow: 0 22px 52px rgba(28, 82, 142, 0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef8ff 0%, #dff1ff 100%);
  color: var(--primary-dark);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #cae9ff;
}

.service-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 13px;
}

.page-head {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

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

.step-pill {
  padding: 9px 13px;
  border-radius: 99px;
  background: #eef8ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.step-pill.done {
  background: #ecfdf5;
  color: #15803d;
  border-color: #bbf7d0;
}

.step-pill.active {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.form-stack { display: grid; gap: 16px; }

.form-card {
  padding: 22px;
}

.form-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.field small {
  color: var(--muted);
  line-height: 1.8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dceaf6;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 48px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field textarea { min-height: 92px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18);
}

.vehicle-results,
.damage-list,
.result-list {
  display: grid;
  gap: 10px;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.filter-box {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fbfdff;
  padding: 12px;
}

.filter-box summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 12px;
}

.pick-row {
  width: 100%;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.pick-row:hover,
.pick-row.active {
  border-color: var(--primary);
  background: #f0f8ff;
}

.summary-card {
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--border);
}

.summary-card strong { display: block; margin-bottom: 6px; }
.summary-card span { color: var(--muted); font-size: 13px; }

.vehicle-summary-card > strong {
  color: var(--text);
  font-size: 17px;
}

.year-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.year-picker-control {
  display: grid;
  gap: 6px;
}

.year-picker-control > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.year-picker-or {
  align-self: end;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-left: 72px;
}

.input-with-unit > span {
  position: absolute;
  inset: 50% auto auto 13px;
  transform: translateY(-50%);
  padding-right: 10px;
  border-right: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.estimate-guidance {
  padding: 9px 11px;
  border: 1px solid #cfe8fb;
  border-radius: 13px;
  background: #f1f9ff;
  color: #486278 !important;
}

.market-lookup-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 9px 14px;
  border: 1px solid #b9def8;
  border-radius: 13px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.market-lookup-link:hover,
.market-lookup-link:focus-visible {
  border-color: var(--primary);
  background: #edf7ff;
  transform: translateY(-1px);
}

.car-picker {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eaf4ff;
  box-shadow: var(--shadow-soft);
}

.damage-workbench {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(310px, 0.9fr);
  gap: 14px;
  padding: 14px;
  align-items: stretch;
}

.vehicle3d-shell {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(198, 230, 255, 0.85);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 1), transparent 46%),
    linear-gradient(180deg, #fbfdff 0%, #edf7ff 58%, #dceeff 100%);
  box-shadow: inset 0 1px 0 #fff, 0 22px 48px rgba(41, 113, 171, 0.12);
}

.vehicle3d-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.46), transparent 28% 72%, rgba(77,163,255,.08));
}

.vehicle3d-kicker {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(190, 222, 247, .92);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #315d7d;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.vehicle3d-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.vehicle3d-canvas {
  width: 100%;
  height: clamp(400px, 38vw, 500px);
  min-height: 390px;
  touch-action: none;
}

.vehicle3d-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 18px 22px rgba(18, 75, 118, 0.1));
}

.vehicle3d-toolbar {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.vehicle3d-toolbar button {
  pointer-events: auto;
  min-height: 34px;
  border: 1px solid #c7e8ff;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.vehicle3d-toolbar button:hover,
.vehicle3d-toolbar button:focus-visible {
  border-color: var(--primary);
  background: #fff;
  transform: translateY(-1px);
}

.vehicle3d-legend {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 139px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vehicle3d-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(197,222,242,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #557086;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.vehicle3d-legend span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #f7fbff;
  border: 1px solid #afd4ef;
}
.vehicle3d-legend .legend-structural::before { background: #ffdf9a; border-color: #efb84c; }
.vehicle3d-legend .legend-selected::before { background: #087fe5; border-color: #0069bd; box-shadow: 0 0 0 3px rgba(8,127,229,.12); }

.vehicle3d-status {
  position: absolute;
  right: 12px;
  bottom: 92px;
  left: 12px;
  z-index: 2;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.inline-selection-dock {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(174, 215, 244, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(20, 75, 115, 0.12);
  backdrop-filter: blur(14px);
}

.inline-selection-meta {
  display: grid;
  gap: 1px;
  min-width: 150px;
}

.inline-selection-meta strong {
  color: var(--text);
  font-size: 12px;
}

.inline-selection-meta span {
  color: var(--muted);
  font-size: 10px;
}

.inline-selection-dock .selected-parts-strip {
  padding-block: 2px;
}

.inline-selection-dock .btn {
  min-height: 42px;
  padding: 8px 13px;
  white-space: nowrap;
}

.inline-selection-dock .btn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.damage-editor-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(198, 230, 255, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
}

.damage-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.damage-editor-head > div { display: grid; gap: 3px; }
.damage-editor-head strong { font-size: 17px; color: var(--text); }
.damage-step { color: var(--primary-dark); font-size: 10px; font-weight: 900; }

.selected-part-badge {
  max-width: 54%;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid #9dd4fb;
  border-radius: 999px;
  background: #e9f6ff;
  color: #0b70b8;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-part-badge.empty { border-color: var(--border); background: #f8fafc; color: var(--muted); }

.damage-editor-panel.active {
  border-color: rgba(77, 163, 255, 0.75);
  box-shadow: 0 18px 42px rgba(77, 163, 255, 0.14);
}

.damage-editor-panel .muted {
  margin: 0;
  font-size: 13px;
}

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

.damage-field-grid .field label {
  font-size: 12px;
}

.damage-field-grid .field input,
.damage-field-grid .field select,
.damage-field-grid .field textarea {
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
}

.damage-field-grid .field textarea {
  min-height: 74px;
}

.damage-submit {
  width: 100%;
  margin-top: auto;
}

.damage-submit-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.damage-submit-row .btn {
  flex: 1 1 0;
}

.car-visual {
  min-height: 230px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 44%, rgba(77, 163, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #f8fcff, #dff1ff);
}

.car-visual::before {
  content: "";
  width: min(78%, 520px);
  height: 116px;
  border-radius: 56px 64px 34px 34px;
  background: linear-gradient(90deg, #ffffff, #d8ebff 42%, #ffffff);
  border: 2px solid #bdddf6;
  box-shadow: 0 24px 44px rgba(25, 118, 210, 0.12);
}

.car-visual::after {
  content: "";
  position: absolute;
  width: min(45%, 310px);
  height: 64px;
  top: 54px;
  border-radius: 70px 70px 18px 18px;
  background: linear-gradient(180deg, #bfe8ff, #eef8ff);
  border: 2px solid #bdddf6;
}

.car-visual span {
  position: absolute;
  bottom: 42px;
  width: 52px;
  height: 52px;
  border-radius: 99px;
  background: radial-gradient(circle, #fff 0 28%, #94a3b8 29% 35%, #1e293b 36%);
}

.car-visual span:nth-child(1) { right: 19%; }
.car-visual span:nth-child(2) { left: 19%; }
.car-visual span:nth-child(3) {
  width: 10px;
  height: 70px;
  bottom: 78px;
  right: 50%;
  background: #4da3ff;
  opacity: 0.28;
  border-radius: 99px;
}

.car-picker img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hotspot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.part-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.part-view {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.part-view strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 13px;
}

.part-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.part-node {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.part-node:hover,
.part-node.active {
  border-color: var(--primary);
  background: #eaf4ff;
  color: var(--primary-dark);
}

.part-node.structural {
  border-color: #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 9px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.chip:hover,
.chip.active {
  border-color: var(--primary);
  background: #eaf4ff;
  color: var(--primary-dark);
}

.damage-item {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

.damage-item.is-structural {
  border-color: #fecaca;
  background: #fffafa;
}

.damage-item small { color: var(--muted); display: block; margin-top: 4px; }

.damage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.result-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

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

.metric {
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--border);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 19px;
  color: var(--text);
}

.result-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.result-card-heading img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 9px 20px rgba(20, 137, 224, .18);
}

.result-card-heading div { min-width: 0; }
.result-card-heading span { color: var(--primary-dark); font-size: 11px; font-weight: 800; }
.result-card-heading h2 { margin: 2px 0 !important; font-size: 18px; }
.result-card-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.depreciation-result {
  display: grid;
  gap: 12px;
}

.depreciation-metrics .metric-primary {
  border-color: #9bd6ff;
  background: linear-gradient(180deg, #edf8ff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(14, 145, 239, .10);
}

.depreciation-metrics .metric-primary strong { color: var(--primary-dark); }

.result-calculation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-calculation-meta > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f8fb;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.result-calculation-meta strong { color: var(--text); }

.result-brand-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.result-brand-note span {
  color: var(--primary-dark);
  font-weight: 900;
}

.result-brand-note small {
  color: var(--muted);
  text-align: left;
  line-height: 1.7;
}

.notice {
  border-radius: 20px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  line-height: 1.8;
}

.form-errors {
  margin-bottom: 16px;
  border-radius: 16px;
  padding: 13px 15px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  line-height: 1.9;
}

.form-errors strong {
  display: block;
  margin-bottom: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.show { display: flex; }

.modal-panel {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.modal-panel-wide {
  width: min(680px, 100%);
}

.modal-panel h2 { margin: 0 0 10px; }
.modal-panel p { color: var(--muted); line-height: 1.9; }

.cases-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-top: 8px;
}

.case-row {
  width: 100%;
  text-align: right;
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfdff;
}

.case-row:hover {
  border-color: var(--primary);
  background: #edf7ff;
}

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

.doc-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.doc-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--primary-dark);
}

.hidden { display: none !important; }

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.report-card {
  display: grid;
  gap: 14px;
}

.report-card.stale {
  border-color: #fed7aa;
}

.report-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf6ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.report-card.stale .report-badge {
  background: #fff7ed;
  color: #9a3412;
}

.report-preview {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-left: 4px;
}

.report-toolbar {
  width: min(210mm, 100%);
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.report-sheet {
  position: relative;
  width: min(210mm, 100%);
  min-height: 297mm;
  margin: 0 auto;
  padding: 15mm 15mm 25mm;
  overflow: hidden;
  color: #182338;
  background: #fff;
  border: 1px solid #dce8f3;
  box-shadow: 0 22px 70px rgba(28, 82, 142, 0.13);
}

.report-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #168cf3;
}

.report-sheet-head,
.report-sheet-footer,
.report-brand,
.report-facts {
  display: flex;
}

.report-sheet-head {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce8f3;
}

.report-brand { align-items: center; gap: 11px; }
.report-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.report-brand div, .report-identity, .report-sheet-footer div { display: grid; gap: 2px; }
.report-brand strong { color: #0874d1; font-size: 20px; }
.report-brand span, .report-identity span { color: #6f788b; font-size: 11px; }
.report-identity { text-align: left; direction: rtl; }

.report-title-block {
  margin: 18px 0;
  padding: 18px 20px;
  text-align: center;
  background: #eef8ff;
  border: 1px solid #cfe8fb;
  border-radius: 12px;
}

.report-title-block span { color: #0874d1; font-size: 12px; font-weight: 800; }
.report-title-block h1 { margin: 5px 0 3px; font-size: 24px; line-height: 1.5; }
.report-title-block p { margin: 0; color: #6f788b; }

.report-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #dce8f3;
  border-radius: 10px;
  overflow: hidden;
}

.report-facts > div {
  min-height: 58px;
  padding: 9px 12px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-bottom: 1px solid #e6eef5;
}

.report-facts > div:nth-child(odd) { border-left: 1px solid #e6eef5; }
.report-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.report-facts span { color: #707789; font-size: 10px; }
.report-facts strong { font-size: 13px; }

.report-result-section,
.report-method { margin-top: 18px; }

.report-result-section > h2,
.report-method > h2 {
  margin: 0 0 9px;
  padding-bottom: 6px;
  color: #0874d1;
  border-bottom: 2px solid #168cf3;
  font-size: 16px;
}

.report-sheet .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-sheet .metric { min-height: 68px; border: 1px solid #dfeaf4; box-shadow: none; }
.report-sheet .metric strong { font-size: 15px; }
.report-sheet .summary-card,
.report-sheet .notice { border-radius: 8px; box-shadow: none; }
.report-sheet .summary-card span { padding-block: 5px; border-bottom: 1px dashed #e0e9f1; }
.report-method p { margin: 0; color: #596579; font-size: 12px; line-height: 2; }
.report-document-body { padding: 14px; border: 1px solid #dfeaf4; border-radius: 8px; text-align: justify; line-height: 2.05; font-size: 12px; }

.report-sheet-footer {
  position: absolute;
  right: 15mm;
  left: 15mm;
  bottom: 9mm;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 7px;
  color: #707789;
  border-top: 1px solid #cfdce8;
  font-size: 9px;
  line-height: 1.7;
}

.report-sheet-footer > div:first-child { max-width: 75%; }
.report-sheet-footer > div:last-child { text-align: left; direction: ltr; }

@media (max-width: 720px) {
  .report-toolbar { position: sticky; top: 8px; z-index: 5; }
  .report-toolbar .btn { flex: 1; }
  .report-sheet { min-height: auto; padding: 22px 16px 92px; }
  .report-sheet-head { align-items: flex-start; }
  .report-brand img { width: 44px; height: 44px; }
  .report-brand span { display: none; }
  .report-title-block h1 { font-size: 20px; }
  .report-sheet .metric-grid { grid-template-columns: 1fr; }
  .report-sheet-footer { right: 16px; left: 16px; bottom: 18px; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { width: 210mm !important; min-height: 297mm !important; background: #fff !important; overflow: visible !important; }
  body.report-print-mode * { visibility: hidden !important; }
  body.report-print-mode .report-sheet,
  body.report-print-mode .report-sheet * { visibility: visible !important; }
  body.report-print-mode .report-sheet {
    position: absolute;
    inset: 0;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 15mm 15mm 25mm;
    border: 0;
    box-shadow: none;
  }
  body.report-print-mode .report-sheet-footer { right: 15mm; left: 15mm; bottom: 9mm; }
  .no-print { display: none !important; }
}

.compact-damage-summary .damage-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-damage-summary .damage-mini-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 16px;
  border-radius: 16px;
  background: #1e293b;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  line-height: 1.8;
}

.bottom-nav {
  display: none;
}

.global-loader {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.global-loader.show { opacity: 1; }
.global-loader span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--primary);
  animation: request-progress 1s ease-in-out infinite;
}
@keyframes request-progress { from { transform: translateX(290%); } to { transform: translateX(-120%); } }

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
}
.icon-button svg { width: 22px; height: 22px; }

.vehicle-viewer-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  background: #eef7ff;
}
.vehicle-viewer-modal.show { display: grid; }
.vehicle-viewer-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
}
.vehicle-viewer-head > div { display: grid; gap: 4px; }
.vehicle-viewer-head strong { font-size: 18px; }
.vehicle-viewer-head span { color: var(--muted); font-size: 12px; }
.vehicle-viewer-stage { position: relative; min-height: 0; overflow: hidden; background: #f6fbff; }
.vehicle-viewer-canvas { position: absolute; inset: 0; touch-action: none; overscroll-behavior: none; }
.vehicle-viewer-canvas canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.vehicle-zoom-controls {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(190, 218, 239, .9);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 28px rgba(20, 69, 105, .12);
  backdrop-filter: blur(12px);
}
.vehicle-zoom-controls .icon-button { width: 42px; height: 42px; border-radius: 13px; }
.vehicle-zoom-controls .icon-button:active { transform: scale(.94); }
.vehicle-viewer-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px max(14px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -14px 34px rgba(15,23,42,.08);
}
.selected-parts-strip { display: flex; gap: 8px; overflow-x: auto; min-width: 0; }
.selected-part-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid #a9d9fb;
  border-radius: 999px;
  background: #eaf6ff;
  color: var(--primary-dark);
  font-weight: 800;
}
.selected-part-chip svg { width: 14px; height: 14px; }

.more-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.more-menu-grid a { display: flex; align-items: center; gap: 9px; padding: 14px; border: 1px solid var(--border); border-radius: 17px; color: var(--text); font-weight: 800; }

@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
}

@media (max-width: 1440px) and (min-width: 1181px) {
  .damage-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 52%, #edf7ff 100%);
  }
  .app-layout { grid-template-columns: 1fr; }
  .app-layout,
  .app-main,
  #screen,
  .form-page,
  .form-grid,
  .form-stack,
  .form-card,
  .page-head {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .app-sidebar {
    position: fixed;
    z-index: 28;
    inset: 0 0 0 auto;
    width: min(310px, 86vw);
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.22s ease;
  }
  body.menu-open .app-sidebar { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .sidebar-close {
    display: inline-flex !important;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 27;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.28);
    transition: opacity 0.2s ease;
  }
  body.menu-open .menu-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu { display: inline-flex; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand span { display: none; }
  .topbar {
    position: sticky;
    top: env(safe-area-inset-top, 0);
    z-index: 18;
    align-items: center;
    min-height: 64px;
    margin: -18px -14px 18px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
    border-radius: 0 0 22px 22px;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    box-shadow: 0 8px 24px rgba(28, 82, 142, 0.08);
  }
  .page-title {
    display: none;
  }
  .top-actions {
    margin-inline-start: auto;
    gap: 5px;
    min-width: 0;
  }
  .top-actions .btn {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 16px;
    font-size: 13px;
  }
  .top-actions [data-install-app] {
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .top-actions a.btn {
    display: none;
  }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel {
    border-radius: 28px;
    padding: 22px;
  }
  .hero-panel h1 {
    font-size: 25px;
  }
  .hero-art { max-width: 210px; margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card {
    min-height: 174px;
    border-radius: 24px;
    padding: 18px;
  }
  .field-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .year-picker-grid { gap: 7px; }
  .year-picker-control select { padding-inline: 10px; }
  .result-brand-note { align-items: flex-start; flex-direction: column; }
  .result-brand-note small { text-align: right; }
  .part-view-grid { grid-template-columns: 1fr; }
  .app-main {
    padding: 18px 14px calc(104px + env(safe-area-inset-bottom, 0px));
  }
  .form-card {
    border-radius: 24px;
    padding: 18px;
  }
  .form-card h2 {
    font-size: 18px;
  }
  .modal { align-items: flex-end; padding: 0; }
  .modal-panel {
    width: 100%;
    border-radius: 22px 22px 0 0;
  }
  .car-visual { min-height: 190px; }
  .damage-workbench {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }
  .vehicle3d-shell {
    min-height: 430px;
    border-radius: 20px;
  }
  .vehicle3d-canvas {
    height: 430px;
    min-height: 410px;
  }
  .vehicle3d-toolbar {
    top: 48px;
    right: 10px;
    left: 10px;
    justify-content: center;
    gap: 6px;
  }
  .vehicle3d-toolbar button {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
  }
  .vehicle3d-status {
    right: 10px;
    bottom: 139px;
    left: 10px;
    min-height: 34px;
    font-size: 11px;
  }
  .vehicle3d-kicker { top: 10px; left: 10px; }
  .vehicle3d-legend { right: 10px; bottom: 181px; }
  .vehicle3d-legend .legend-normal { display: none; }
  .inline-selection-dock {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
    border-radius: 17px;
  }
  .inline-selection-meta {
    grid-column: 1 / -1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .inline-selection-meta span { display: none; }
  .inline-selection-dock .selected-parts-strip { min-height: 38px; }
  .inline-selection-dock .btn {
    min-height: 42px;
    max-width: 154px;
    padding-inline: 10px;
    font-size: 12px;
  }
  .damage-editor-panel {
    position: relative;
    z-index: 4;
    margin-top: -18px;
    padding: 14px;
    border-radius: 20px;
  }
  .damage-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .damage-field-grid .field.full { grid-column: 1 / -1; }
  .damage-editor-head { align-items: flex-start; }
  .damage-submit {
    min-height: 52px;
    border-radius: 18px;
  }
  .steps {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step-pill {
    flex: 0 0 auto;
  }
  .damage-item {
    display: grid;
  }
  .bottom-nav {
    position: fixed;
    z-index: 22;
    right: 0;
    left: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 28px rgba(28, 82, 142, 0.09);
    backdrop-filter: blur(22px);
  }
  .bottom-link {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: #9aa1ad;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 18px;
    border: 0;
    background: transparent;
  }
  .bottom-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 17px;
    line-height: 1;
  }
  .bottom-icon svg {
    width: 19px;
    height: 19px;
  }
  .bottom-link.active {
    color: var(--text);
    background: #f2f9ff;
  }
  .bottom-link.active .bottom-icon {
    color: #fff;
    background: linear-gradient(180deg, #1aa5ff 0%, #078cf1 100%);
    box-shadow: 0 8px 16px rgba(19, 151, 245, 0.22);
  }
  .action-row {
    gap: 10px;
  }
  .action-row .btn {
    flex: 1 1 190px;
  }
  .section-title-row { align-items: center; }
  .section-title-row { flex-wrap: wrap; }
  .section-title-row .btn { flex: 0 0 auto; padding-inline: 12px; }
  .vehicle-viewer-head span { max-width: 250px; }
  .vehicle-viewer-dock { grid-template-columns: 1fr; padding-inline: 12px; }
  .vehicle-viewer-dock .btn { width: 100%; min-height: 52px; }
  .vehicle-viewer-stage { min-height: 52dvh; }
  .reports-grid {
    grid-template-columns: 1fr;
  }

  body[data-current-service="depreciation"] .vehicle3d-shell {
    min-height: 0;
    overflow: hidden;
  }

  body[data-current-service="depreciation"] .vehicle3d-canvas {
    height: 390px;
    min-height: 370px;
  }

  body[data-current-service="depreciation"] .vehicle3d-legend {
    top: 292px;
    bottom: auto;
  }

  body[data-current-service="depreciation"] .vehicle3d-status {
    top: 328px;
    bottom: auto;
  }

  body[data-current-service="depreciation"] .inline-selection-dock {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    margin: 10px;
    padding: 11px;
  }

  body[data-current-service="depreciation"] .inline-selection-meta,
  body[data-current-service="depreciation"] .inline-selection-dock .selected-parts-strip,
  body[data-current-service="depreciation"] .inline-selection-dock .btn {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  body[data-current-service="depreciation"] .inline-selection-dock .selected-parts-strip {
    min-height: 42px;
    padding: 2px 0 6px;
  }

  body[data-current-service="depreciation"] .inline-selection-dock .btn {
    min-height: 48px;
  }

  body[data-current-service="depreciation"] .damage-editor-panel {
    margin-top: 0;
    scroll-margin-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }

  body[data-current-service="depreciation"] .damage-field-grid {
    grid-template-columns: 1fr;
  }

  body[data-current-service="depreciation"] .damage-editor-panel :is(input, select, textarea, button) {
    scroll-margin-bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  }

  body[data-current-service="depreciation"] {
    height: 100dvh;
    overflow: hidden;
  }

  body[data-current-service="depreciation"] .app-layout {
    min-height: 0;
    height: calc(100dvh - 75px - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  body[data-current-service="depreciation"] .app-main {
    padding-bottom: 40px;
  }
}

@media (min-width: 761px) {
  .bottom-nav { display: none !important; }
}

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