/* AutoNeuro: shared components, responsive layout and themes. */
:root {
  color: var(--text);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,input,select,textarea {
  font: inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--border);
  width: 252px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
}
.brand small {
  display: block;
  font-weight: 600;
  margin-top: 6px;
  color: var(--muted);
}
.brand-icon {
  background: var(--dark);
  color: var(--accent);
  padding: 5px 8px;
  letter-spacing: -5px;
  font-size: 1.75rem;
  line-height: 32px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  position: relative;
}
.brand-icon span {
  margin-left: 2px;
}
.brand-icon i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  position: absolute;
  right: 6px;
  top: 6px;
  border-radius: 50%;
}
.workspace-label {
  margin: 0 15px 15px;
  font-weight: 650;
}
nav {
  display: flex;
  flex-direction: column;
}
nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  font-weight: 500;
}
nav a svg {
  stroke-width: 1.6;
}
nav a.active {
  font-weight: 650;
}@media (hover:hover) and (pointer:fine) {
nav a:hover:not(.active) {
  color: var(--text);
}
}
.nav-count {
  margin-left: auto;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-status {
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.local-status small {
  display: block;
  font-size: 0.5625rem;
  color: var(--muted);
  margin-top: 8px;
}
.dot {
  display: inline-block;
  background: #78a55d;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
}
.profile {
  display: flex;
  align-items: center;
  text-align: left;
  background: transparent;
  width: 100%;
  gap: 11px;
  color: var(--text);
}
.profile small {
  display: block;
  margin-top: 5px;
  font-size: 0.5625rem;
  color: var(--muted);
}
.profile>span:last-child {
  margin-left: auto;
}
.avatar {
  background: var(--soft);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 650;
}
.main-shell {
  margin-left: 252px;
  width: calc(100% - 252px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  color: #b4bbb1;
}
.breadcrumb strong {
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
}
.offline-tag {
  display: flex;
  align-items: center;
}
.icon-button {
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
}
main {
  margin: 0 auto;
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 9px;
}
h1 {
  margin: 0 0 9px;
}
h2 {
  margin: 0;
}
h3 {
  margin: 0;
}
p {
  color: var(--muted);
  margin: 0;
}
.primary,.secondary,.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.dark-button {
  background: var(--dark);
  color: #fff;
}
.hero {
  color: #fff;
  border-radius: var(--radius);
  display: grid;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  border: 1px solid #c8f36a0d;
  border-radius: 50%;
  pointer-events: none;
}
.hero h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero .primary {
  position: relative;
  z-index: 2;
}
.car-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.car-visual svg {
  width: 100%;
  position: relative;
  z-index: 1;
}
.car-note {
  position: absolute;
  right: 0;
}
.car-note .dot {
  background: var(--accent);
  box-shadow: 0 0 8px #c8f36a;
}
.car-caption {
  position: absolute;
  display: flex;
  z-index: 1;
}
.car-caption b {
  display: block;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.stat small {
  display: block;
  color: var(--muted);
}
.stat-icon {
  background: var(--soft);
  display: grid;
  place-items: center;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  margin: 0 0 17px;
}
.text-link {
  background: none;
}@media (hover:hover) and (pointer:fine) {
.text-link:hover {
  color: var(--text);
}
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card-top {
  display: flex;
  justify-content: space-between;
}
.model-icon {
  display: grid;
  place-items: center;
}
.badge {
  background: var(--soft);
  color: var(--green);
  display: inline-block;
}
.model-meta {
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-link {
  background: none;
  padding: 17px 0 0;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.bottom-grid {
  display: grid;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.empty-state {
  display: flex;
  align-items: center;
  background: var(--soft);
}
.step-row {
  display: flex;
  align-items: center;
}
.step-row+.step-row {
  border-top: 1px solid var(--border);
}
.step-num {
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step-row a {
  margin-left: auto;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
footer .dot {
  margin-left: 7px;
  margin-right: 0;
  width: 4px;
  height: 4px;
}
.muted {
  color: var(--muted);
}
.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  overflow: auto;
}
.tabs button {
  background: none;
  white-space: nowrap;
}
.tabs button.active {
  background: var(--surface);
}
.two-col {
  display: grid;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.form-grid label,.field {
  display: flex;
  flex-direction: column;
}
input,select,textarea {
  border: 1px solid var(--border);
  outline: none;
  min-width: 0;
  width: 100%;
  transition: border-color .2s;
}
input[type=checkbox] {
  box-shadow: none;
}
.notice {
  background: var(--soft);
}
.result-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.result-text {
  color: var(--text);
  white-space: pre-line;
}
.prob-row {
  display: grid;
  align-items: center;
}
.track {
  border-radius: 8px;
  overflow: hidden;
}
.track span {
  height: 100%;
  display: block;
  border-radius: 8px;
  animation: none;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
}
.upload {
  border: 1px dashed #b6c5a2;
  text-align: center;
  cursor: pointer;
  display: block;
}
.upload svg {
  color: #849d62;
}
.upload input {
  display: none;
}
.table-wrap {
  overflow: auto;
  margin-top: 18px;
  max-height: 350px;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th,td {
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--soft);
  position: sticky;
  top: 0;
}
.data-list {
  display: grid;
}
.dataset-card {
  display: flex;
  align-items: center;
}
.dataset-card .dataset-main {
  flex: 1;
}
.dataset-card .report-actions {
  margin: 0;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.check {
  display: flex;
  align-items: center;
  background: var(--soft);
  overflow: hidden;
}
.train-progress {
  margin-top: 18px;
}
.train-progress .track {
  height: 9px;
  margin: 12px 0;
}
.chart {
  width: 100%;
  margin-top: 20px;
}
.chart polyline {
  stroke: var(--green);
  fill: none;
}
.train-details {
  display: flex;
  flex-wrap: wrap;
  margin: 13px 0;
  color: var(--muted);
}
.model-row {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.obd-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.gauge {
  border: 1px solid var(--border);
}
.gauge strong {
  display: block;
}
.gauge small {
  color: var(--muted);
}
.history-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.history-item p {
  white-space: pre-line;
}
.history-item time {
  color: var(--muted);
  white-space: nowrap;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.full {
  grid-column: 1/-1;
}
.error {
  color: var(--red);
  white-space: pre-line;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,20px);
  color: white;
  border: 1px solid #5b7147;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}
dialog {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
dialog .secondary {
  margin-top: 20px;
}
@media(min-width:1600px) {
  main {
    padding-top: 48px;
  }
}
@media(max-width:850px) {
  .sidebar {
    width: 75px;
    padding: 23px 10px;
  }
  .brand {
    margin: 0 auto 35px;
  }
  .brand>span:last-child,.workspace-label,nav a>span,.sidebar-bottom {
    display: none;
  }
  .brand-icon {
    margin: auto;
  }
  nav a {
    padding: 15px;
    justify-content: center;
  }
  nav a svg {
    width: 22px;
    height: 22px;
  }
  .main-shell {
    margin-left: 75px;
    width: calc(100% - 75px);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stat-icon {
    display: grid;
  }
  .dataset-card {
    flex-wrap: wrap;
  }
}
@media(max-width:560px) {
  .sidebar {
    width: 100%;
    height: 66px;
    top: auto;
    bottom: 0;
    padding: 0 6px;
    border: 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .brand {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    height: 100%;
  }
  nav a {
    flex-direction: column;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 0;
    font-size: 0.5rem;
    flex: 1;
  }
  nav a>span:not(.nav-count) {
    display: block;
    font-size: 0.4375rem;
    white-space: nowrap;
  }
  nav a svg {
    width: 19px;
    height: 19px;
  }
  nav a.active {
    background: none;
    color: var(--green);
  }
  .main-shell {
    margin: 0 0 66px;
    width: 100%;
  }
  header {
    height: 58px;
    padding: 0 18px;
  }
  .header-actions {
    gap: 9px;
  }
  .offline-tag {
    font-size: 0.5rem;
  }
  .breadcrumb {
    font-size: 0.625rem;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  main {
    padding: 24px 17px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 1.6875rem;
  }
  .page-heading p {
    font-size: 0.625rem;
    max-width: 230px;
  }
  .page-heading>.secondary {
    font-size: 0.5625rem;
    padding: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 390px;
    padding: 25px;
  }
  .hero h2 {
    font-size: 2rem;
    max-width: 280px;
  }
  .hero p {
    max-width: 260px;
  }
  .car-visual {
    height: 130px;
    position: absolute;
    bottom: 20px;
    left: 100px;
    right: 12px;
    opacity: .75;
    pointer-events: none;
  }
  .car-note {
    display: none;
  }
  .car-caption {
    display: none;
  }
  .hero .primary {
    margin-top: 0;
  }
  .hero>div:first-child {
    position: relative;
    z-index: 2;
  }
  .stats {
    gap: 10px;
    margin: 14px 0 26px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 1.5rem;
  }
  .stat small {
    font-size: 0.5rem;
  }
  .model-grid {
    gap: 10px;
  }
  .model-card {
    padding: 15px 13px;
  }
  .model-card h3 {
    font-size: 0.75rem;
    min-height: 34px;
  }
  .model-card>p {
    font-size: 0.5625rem;
    min-height: 48px;
  }
  .card-top {
    margin-bottom: 16px;
  }
  .badge {
    font-size: 0.4375rem;
    padding: 4px;
  }
  .model-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .model-icon svg {
    width: 17px;
  }
  .model-meta {
    font-size: 0.5rem;
    gap: 5px;
  }
  .card-link {
    font-size: 0.5625rem;
  }
  .bottom-grid {
    gap: 15px;
    margin-top: 23px;
  }
  .panel {
    padding: 20px 17px;
  }
  .section-heading h2 {
    font-size: 1.0625rem;
  }
  .form-grid {
    gap: 13px;
  }
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
  .obd-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .dataset-card {
    gap: 12px;
  }
  .dataset-card .model-icon {
    display: none;
  }
  .dataset-card .report-actions {
    width: 100%;
  }
  footer {
    padding: 0 18px 18px;
    font-size: 0.5rem;
  }
  footer>span:last-child {
    display: none;
  }
  .history-item {
    padding: 17px 0;
    flex-direction: column;
  }
  .header-actions .secondary {
    display: none;
  }
  .report-actions .secondary {
    font-size: 0.625rem;
  }
  .page-heading .eyebrow {
    font-size: 0.5rem;
  }
}
.car-visual>svg {
  margin-bottom: 20px;
}
:root {
  --bg: #f3f5f0;
  --surface: #fff;
  --text: #1c3024;
  --muted: #637468;
  --border: #dfe7dc;
  --accent: #c8ef85;
  --soft: #eff5e9;
  --dark: #172b21;
  --green: #416b38;
  --red: #a13e31;
  --radius: 24px;
  --shadow-soft: 0 5px 20px #24462506;
  --shadow-raised: 0 14px 34px #24462510;
  font-family: 'Segoe UI Variable','Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background-image: radial-gradient(ellipse at 90% 0%,#e4efd644,transparent 45%);
}
button,input,select,textarea {
  line-height: 1.4;
}
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
a,button {
  touch-action: manipulation;
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 3px solid #759d49;
  outline-offset: 4px;
}
::selection {
  background: #d4edb5;
  color: #18311f;
}
svg {
  flex-shrink: 0;
}
.sidebar {
  padding: 30px 18px 22px;
  background: linear-gradient(180deg,var(--surface),var(--surface) 72%,var(--soft));
}
.brand {
  margin: 0 10px 44px;
  font-size: 1.5625rem;
  gap: 13px;
  letter-spacing: -1.1px;
}
.brand small {
  font-size: 0.5rem;
  letter-spacing: 1.15px;
  line-height: 1.7;
}
.brand-icon {
  box-shadow: 0 6px 14px #172b2114;
  flex-shrink: 0;
}
.workspace-label {
  font-size: 0.625rem;
  letter-spacing: 1.35px;
  color: var(--muted);
  margin-bottom: 15px;
}
nav {
  gap: 7px;
}
nav a {
  font-size: 0.875rem;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 13px;
  color: var(--muted);
  transition: background .2s ease,color .2s ease,transform .2s ease;
}
nav a.active {
  background: linear-gradient(110deg,#d5f3a4,#c4e993);
  color: #274423;
  box-shadow: 0 3px 12px #78995110;
}@media (hover:hover) and (pointer:fine) {
nav a:hover:not(.active) {
  transform: translateX(2px);
  background: var(--soft);
}
}
nav a svg {
  width: 20px;
  height: 20px;
}
.nav-count {
  font-size: 0.6875rem;
  padding: 2px 7px;
  background: #ffffff90;
}
.local-status {
  font-size: 0.75rem;
  padding: 20px 10px;
  line-height: 1.6;
}
.local-status small,.profile small {
  font-size: 0.6875rem;
  line-height: 1.5;
}
.profile {
  font-size: 0.8125rem;
  padding: 4px 7px;
  border-radius: 12px;
}@media (hover:hover) and (pointer:fine) {
.profile:hover {
  background: var(--surface);
}
}
.avatar {
  width: 39px;
  height: 39px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}
header {
  height: 80px;
  background: color-mix(in srgb,var(--bg) 88%,transparent);
  padding: 0 38px;
  gap: 18px;
}
.breadcrumb {
  font-size: 0.75rem;
  min-width: 0;
}
.breadcrumb span {
  margin: 0 10px;
}
.breadcrumb strong {
  font-weight: 600;
}
.offline-tag {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.header-actions {
  gap: 12px;
  min-width: 0;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 1.375rem;
  transition: background .2s,transform .2s;
}@media (hover:hover) and (pointer:fine) {
.icon-button:hover {
  background: var(--soft);
  transform: none;
}
}
main {
  padding: 38px;
  max-width: 1560px;
  min-height: calc(100vh - 145px);
  animation: page-in .18s ease both;
}
.page-heading {
  gap: 24px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 0.625rem;
  letter-spacing: 1.7px;
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 700;
}
h1 {
  font-size: clamp(28px,2.25vw,38px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -1.25px;
  margin-bottom: 11px;
  text-wrap: balance;
}
h2 {
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.6px;
}
h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.25px;
}
p {
  line-height: 1.7;
}
.page-heading p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 680px;
}
.primary,.secondary,.dark-button {
  font-size: 0.8125rem;
  min-height: var(--control-height,44px);
  border-radius: 12px;
  padding: 12px 18px;
  gap: 12px;
  line-height: 1.35;
  font-weight: 600;
  transition: background .2s ease,transform .2s ease,box-shadow .2s ease;
}
.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}@media (hover:hover) and (pointer:fine) {
.primary:hover {
  background: var(--accent);
  box-shadow: 0 6px 14px #83a65425;
}
}@media (hover:hover) and (pointer:fine) {
.secondary:hover {
  background: var(--soft);
  border-color: #b8c9ad;
}
}@media (hover:hover) and (pointer:fine) {
.primary:hover,.secondary:hover,.dark-button:hover {
  transform: translateY(-1px);
}
}
.primary:active,.secondary:active,.dark-button:active {
  transform: translateY(0);
  box-shadow: none;
}
.small {
  font-size: 0.75rem;
  padding: 9px 13px;
  min-height: 48px;
  border-radius: 10px;
}
.hero {
  min-height: 325px;
  padding: 37px 38px;
  grid-template-columns: 1fr 1.08fr;
  background: radial-gradient(ellipse at 86% 55%,#42583d50,transparent 60%),linear-gradient(120deg,#152b20,#1f3025);
  border: 1px solid #314736;
  box-shadow: 0 14px 35px #1c30240b;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#bddeb404 1px,transparent 1px),linear-gradient(90deg,#bddeb404 1px,transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg,transparent,#000);
  pointer-events: none;
}
.hero::after {
  width: 430px;
  height: 430px;
  top: -40px;
  right: -65px;
  border-color: #b9dd9d12;
  box-shadow: 0 0 0 48px #b9dd9d04,0 0 0 96px #b9dd9d02;
  z-index: -1;
}
.hero .eyebrow {
  font-size: 0.625rem;
  letter-spacing: 1.45px;
  color: #b1cca2;
}
.hero h2 {
  font-size: clamp(32px,2.8vw,44px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -1.5px;
  margin: 16px 0 18px;
}
.hero p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #b9c8b9;
  max-width: 360px;
  margin-bottom: 25px;
}
.hero .primary {
  font-size: 0.8125rem;
  padding: 13px 19px;
  min-height: 46px;
}
.car-visual {
  align-self: stretch;
}
.car-visual svg {
  filter: drop-shadow(0 18px 24px #0003);
  max-height: 270px;
  margin-bottom: 30px;
  animation: float 8s ease-in-out infinite;
}
.car-note {
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 1.1px;
  top: 0;
  color: #b9cbb2;
}
.car-caption {
  left: 0;
  right: 0;
  bottom: -4px;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.625rem;
  color: #9eb59d;
}
.car-caption b {
  font-size: 0.6875rem;
  letter-spacing: .5px;
  color: #d4e5cc;
  font-weight: 600;
  margin-bottom: 5px;
}
.car-visual>svg text {
  display: none;
}
.car-visual circle {
  filter: drop-shadow(0 0 3px #c9ed8790);
}
.stats {
  gap: 16px;
  margin: 23px 0 35px;
}
.stat {
  padding: 22px 21px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  align-items: flex-start;
  gap: 10px;
}
.stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 21px;
  right: 21px;
  height: 2px;
  background: linear-gradient(90deg,#b8d69950,transparent);
}
.stat .label {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 13px;
  color: var(--muted);
}
.stat strong {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 0.6875rem;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 185px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  color: #66805c;
}
.stat-icon svg {
  width: 18px;
  height: 18px;
}
.section-heading {
  margin-bottom: 20px;
  gap: 16px;
  align-items: flex-end;
}
.section-heading p {
  font-size: 0.8125rem;
  margin-top: 7px;
}
.text-link {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--green);
  padding: 5px 0;
  min-height: 48px;
}@media (hover:hover) and (pointer:fine) {
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
}
.model-grid {
  gap: 16px;
}
.model-card {
  padding: 23px 21px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
.model-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--border);
}@media (hover:hover) and (pointer:fine) {
.model-card:hover {
  transform: translateY(-4px);
  border-color: #c1d2b4;
  box-shadow: var(--shadow-raised);
}
}
.card-top {
  margin-bottom: 22px;
  gap: 10px;
  align-items: center;
}
.model-icon {
  height: 45px;
  width: 45px;
  border-radius: 14px;
  background: #edf5e5;
  color: #4d713e;
  flex-shrink: 0;
  border: 1px solid #e4eddb;
}
.model-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.6;
}
.model-icon.blue {
  background: #eef2fb;
  color: #536e9b;
  border-color: #e3e9f8;
}
.model-icon.orange {
  background: #fcf0e6;
  color: #9f753d;
  border-color: #f6e6d5;
}
.model-icon.purple {
  background: #f4edfa;
  color: #8e69a6;
  border-color: #ebdff4;
}
.badge {
  font-size: 0.625rem;
  line-height: 1.4;
  border-radius: 7px;
  padding: 5px 8px;
  max-width: 100%;
  font-weight: 600;
  text-align: center;
}
.badge.online {
  background: #edf5e6;
  color: #3e6b35;
}
.badge.warning {
  color: #8b5f27;
  background: #fff1dc;
}
.model-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  min-height: 45px;
  margin-bottom: 11px;
  font-weight: 650;
  overflow-wrap: break-word;
}
.model-card>p {
  font-size: 0.8125rem;
  line-height: 1.65;
  min-height: var(--control-height,44px);
  margin-bottom: 22px;
}
.model-meta {
  font-size: 0.6875rem;
  line-height: 1.5;
  padding-top: 16px;
  gap: 8px;
  flex-wrap: wrap;
}
.card-link {
  font-size: 0.8125rem;
  line-height: 1.5;
  padding-top: 18px;
  min-height: 48px;
  gap: 10px;
  align-items: center;
  color: var(--green);
}
.card-link>span {
  font-size: 1.0625rem;
  transition: transform .2s;
}@media (hover:hover) and (pointer:fine) {
.card-link:hover>span {
  transform: translate(2px,-2px);
}
}
.bottom-grid {
  gap: 22px;
  margin-top: 30px;
  grid-template-columns: 1.1fr 1fr;
}
.panel {
  border-radius: 20px;
  padding: 27px;
  box-shadow: var(--shadow-soft);
}
.panel-head {
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head h3 {
  font-size: 1rem;
}
.panel>p[style*="font-size"],.panel .result-idle p[style*="font-size"] {
  font-size: 0.8125rem!important;
}
.panel .notice[style*="font-size"] {
  font-size: 0.75rem!important;
}
.empty-state {
  border-radius: 15px;
  padding: 20px;
  gap: 16px;
  border: 1px solid #dfe8d8;
}
.empty-state p {
  font-size: 0.8125rem;
  line-height: 1.65;
  margin-top: 6px;
}
.empty-state h3 {
  font-size: 0.9375rem;
}
.step-row {
  gap: 14px;
  padding: 14px 0;
}
.step-num {
  font-size: 0.6875rem;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--green);
  background: var(--soft);
}
.step-row b {
  font-size: 0.8125rem;
  font-weight: 600;
}
.step-row p {
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 3px;
}
.step-row a {
  font-size: 1.25rem;
  padding: 5px 9px;
  border-radius: 8px;
}@media (hover:hover) and (pointer:fine) {
.step-row a:hover {
  background: var(--soft);
  color: var(--green);
}
}
footer {
  padding: 0 38px 26px;
  font-size: 0.6875rem;
  gap: 20px;
  line-height: 1.5;
}
.tabs {
  padding: 5px;
  gap: 5px;
  border-radius: 14px;
  background: #e7ede1;
  scrollbar-width: thin;
  margin-bottom: 25px;
}
.tabs button {
  font-size: 0.8125rem;
  padding: 11px 17px;
  border-radius: 10px;
  min-height: 48px;
  color: #5a705c;
  font-weight: 500;
}
.tabs button.active {
  color: var(--text);
  box-shadow: 0 2px 7px #2c462315;
  font-weight: 600;
}@media (hover:hover) and (pointer:fine) {
.tabs button:hover:not(.active) {
  background: #ffffff60;
}
}
.two-col {
  gap: 24px;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  align-items: start;
}
.form-grid {
  gap: 18px;
  margin: 23px 0;
}
.form-grid label,.field {
  gap: 9px;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
}
input,select,textarea {
  background: var(--bg);
  font-size: 0.875rem;
  min-height: 46px;
  padding: 12px 13px;
  border-radius: 11px;
  line-height: 1.4;
  border-color: #dce4d6;
  color: var(--text);
}
input::placeholder {
  color: #7c8b7e;
  opacity: 1;
}@media (hover:hover) and (pointer:fine) {
input:hover,select:hover,textarea:hover {
  border-color: var(--green);
}
}
input:focus,select:focus,textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--soft);
}
input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
  accent-color: var(--green);
}
label small {
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.notice {
  font-size: 0.75rem;
  line-height: 1.75;
  padding: 16px 17px;
  border-radius: 12px;
  color: #5d735d;
  border: 1px solid #e2ebdb;
  margin: 19px 0;
}
.notice.warn {
  background: var(--soft);
  color: var(--text);
  border-color: var(--control-border);
}
.result-idle {
  min-height: 340px;
  gap: 18px;
  padding: 22px 0;
}
.result-idle svg {
  width: 52px;
  height: 52px;
  color: #7f9c68;
  stroke-width: 1.25;
}
.result-idle h3 {
  font-size: 1.125rem;
}
.result-idle p {
  font-size: 0.875rem;
  max-width: 320px;
  line-height: 1.75;
}
.result-value {
  font-size: clamp(28px,3vw,43px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -1.2px;
  margin: 25px 0;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}
.result-text {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.prob-row {
  grid-template-columns: minmax(100px,.9fr) minmax(55px,1fr) 48px;
  font-size: 0.75rem;
  line-height: 1.5;
  gap: 12px;
  margin: 17px 0;
  min-width: 0;
}
.prob-row>span:first-child {
  overflow-wrap: anywhere;
}
.track {
  height: 8px;
  background: #e9efdf;
}
.track span {
  background: linear-gradient(90deg,#85b05e,#b6d983);
}
.report-actions {
  gap: 11px;
  margin-top: 24px;
  align-items: center;
}
.report-actions>.muted[style*="font-size"] {
  font-size: 0.6875rem!important;
}
.upload {
  border-radius: 18px;
  border-color: #b8cda6;
  padding: 34px 25px;
  background: linear-gradient(135deg,var(--soft),var(--surface));
  transition: border-color .2s,background .2s;
}@media (hover:hover) and (pointer:fine) {
.upload:hover {
  border-color: #759c4c;
  background: var(--soft);
}
}
.upload svg {
  height: 34px;
  width: 34px;
  margin-bottom: 14px;
}
.upload h3 {
  font-size: 1rem;
  margin-bottom: 11px;
}
.upload p {
  font-size: 0.8125rem;
  line-height: 1.8;
}
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
th,td {
  padding: 13px 15px;
}
th {
  color: var(--muted);
  font-weight: 600;
}@media (hover:hover) and (pointer:fine) {
tbody tr:hover {
  background: var(--soft);
}
}
.data-list {
  gap: 18px;
}
.dataset-card {
  gap: 22px;
}
.dataset-card .dataset-main {
  min-width: 0;
}
.dataset-card p {
  font-size: 0.8125rem;
  line-height: 1.7;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.dataset-card h3 {
  font-size: 1.125rem;
}
.dataset-card .report-actions {
  flex-shrink: 0;
}
.checkbox-grid {
  gap: 10px;
  margin: 15px 0;
}
.check {
  gap: 10px;
  padding: 11px;
  font-size: 0.75rem;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background .2s,border-color .2s;
}
.check:has(input:checked) {
  border-color: #d3e2c4;
  background: #edf5e5;
}
.train-details {
  font-size: 0.75rem;
  gap: 16px;
  line-height: 1.7;
}
.chart {
  height: 170px;
}
.chart polyline {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.model-row {
  padding: 19px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.model-row>div:first-child {
  min-width: 0;
  flex: 1 1 190px;
}
.model-row h3 {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.model-row p {
  font-size: 0.75rem;
  line-height: 1.7;
  margin-top: 7px;
}
.model-row .actions {
  gap: 8px;
}
.obd-grid {
  gap: 16px;
  margin: 24px 0;
}
.gauge {
  padding: 23px 20px;
  border-radius: 17px;
  position: relative;
  background: linear-gradient(145deg,var(--surface),var(--soft));
  overflow: hidden;
}
.gauge::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 3px;
  left: 20px;
  right: 20px;
  background: #b4d49566;
  border-radius: 10px;
}
.gauge p {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.gauge strong {
  font-size: 2.125rem;
  font-weight: 550;
  margin: 14px 0 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.gauge small {
  font-size: 0.6875rem;
  line-height: 1.5;
}
.history-item {
  padding: 24px 0;
  gap: 20px;
}
.history-item h3 {
  font-size: 1rem;
  margin-bottom: 9px;
  line-height: 1.5;
}
.history-item p {
  font-size: 0.875rem;
  line-height: 1.8;
}
.history-item time {
  font-size: 0.6875rem;
  line-height: 1.6;
}
.actions {
  gap: 11px;
}
.error {
  font-size: 0.8125rem;
  line-height: 1.7;
  margin: 15px 0;
}
.loading {
  font-size: 0.875rem;
}
#toast {
  border-radius: 13px;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 14px 22px;
  box-shadow: 0 12px 40px #12231825;
  background: #1c3224;
  border-color: #587a43;
  z-index: 100;
  max-width: min(540px,90vw);
  text-align: center;
}
dialog {
  border-radius: 23px;
  padding: 29px;
  width: min(660px,92vw);
  box-shadow: 0 24px 100px #11251d35;
  max-height: 88dvh;
}
dialog::backdrop {
  background: #18302365;
  backdrop-filter: blur(7px);
}
dialog p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 16px 0;
}
dialog>button.secondary {
  margin-top: 24px;
  min-width: 110px;
}
details {
  border-top: 1px solid var(--border);
  padding-top: 4px;
  margin-top: 13px;
}
summary {
  cursor: pointer;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.8125rem!important;
  padding: 6px 0;
}
details p[style*="font-size"] {
  font-size: 0.8125rem!important;
  line-height: 1.8;
}
@media(min-width:1600px) {
  main {
    padding: 46px 48px;
  }
  .hero {
    min-height: 350px;
    padding: 42px;
  }
  .hero h2 {
    font-size: 2.875rem;
  }
  .model-card {
    padding: 27px 25px;
  }
  .stats {
    margin-bottom: 39px;
  }
}
@media(max-width:1200px) {
  .sidebar {
    width: 224px;
    padding: 28px 14px 22px;
  }
  .main-shell {
    margin-left: 224px;
    width: calc(100% - 224px);
  }
  .brand {
    font-size: 1.375rem;
    gap: 10px;
    margin-left: 8px;
    margin-right: 8px;
  }
  .brand small {
    font-size: 0.4375rem;
  }
  main {
    padding: 30px;
  }
  header {
    padding: 0 30px;
  }
  .header-actions {
    gap: 10px;
  }
  .hero {
    padding: 31px;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }
  .hero h2 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 0.8125rem;
  }
  .car-caption {
    gap: 12px;
    font-size: 0.5625rem;
  }
  .car-caption b {
    font-size: 0.625rem;
  }
  .stats {
    gap: 13px;
  }
  .stat {
    padding: 19px 17px;
  }
  .stat strong {
    font-size: 1.8125rem;
  }
  .stat-icon {
    display: none;
  }
  .model-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
  }
  .model-card {
    padding: 24px;
  }
  .model-card h3 {
    min-height: 0;
    font-size: 1.125rem;
  }
  .model-card>p {
    min-height: 0;
    font-size: 0.875rem;
  }
  .model-meta {
    font-size: 0.75rem;
  }
  .model-card .badge {
    font-size: 0.6875rem;
  }
  .card-link {
    font-size: 0.875rem;
  }
  .two-col {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 20px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .panel {
    padding: 24px;
  }
  .dataset-card {
    flex-wrap: wrap;
  }
  .dataset-card .report-actions {
    width: 100%;
    padding-left: 67px;
  }
}
@media(max-width:980px) {
  .sidebar {
    width: 80px;
    padding: 25px 11px;
  }
  .main-shell {
    margin-left: 80px;
    width: calc(100% - 80px);
  }
  .brand {
    margin: 0 auto 33px;
  }
  .brand>span:last-child,.workspace-label,nav a>span,.sidebar-bottom {
    display: none;
  }
  nav a {
    padding: 15px;
    justify-content: center;
    min-height: 50px;
  }
  .brand-icon {
    margin: auto;
  }
  nav a svg {
    width: 22px;
    height: 22px;
  }
  .hero h2 {
    font-size: 2.1875rem;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stat-icon {
    display: grid;
  }
  .header-actions>.offline-tag {
    font-size: 0.6875rem;
  }
}
@media(max-width:850px) {
  main {
    padding: 28px;
  }
  .stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }
  .hero {
    padding: 29px;
    grid-template-columns: 1fr 1fr;
    min-height: 330px;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.8125rem;
  }
  .hero .eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 1.1px;
  }
  .car-caption {
    display: none;
  }
  .car-note {
    font-size: 0.5625rem;
  }
  .car-visual svg {
    margin-bottom: 0;
    min-width: 240px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 1.875rem;
  }
  .page-heading p {
    font-size: 0.8125rem;
  }
  header {
    padding: 0 28px;
  }
  .breadcrumb {
    font-size: 0.75rem;
  }
  .page-heading {
    gap: 18px;
  }
  .dataset-card .report-actions {
    padding-left: 0;
  }
  footer {
    padding: 0 28px 24px;
    font-size: 0.6875rem;
  }
}
@media(max-width:650px) {
  .sidebar {
    width: 100%;
    height: calc(75px + env(safe-area-inset-bottom));
    inset: auto 0 0;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -5px 22px #203d2308;
  }
  .brand {
    display: none;
  }
  nav {
    flex-direction: row;
    gap: 2px;
    justify-content: space-around;
    height: 100%;
    align-items: stretch;
  }
  nav a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 9px 1px 7px;
    border-radius: 12px;
    min-width: 0;
    min-height: 0;
    justify-content: center;
    position: relative;
  }
  nav a>span:not(.nav-count) {
    display: block;
    font-size: 0.5625rem;
    letter-spacing: -.15px;
    line-height: 1.3;
    white-space: nowrap;
    font-weight: 500;
  }
  nav a svg {
    width: 21px;
    height: 21px;
  }
  nav a.active,.dark nav a.active {
    background: var(--soft);
    box-shadow: none;
    color: var(--green);
  }
  nav a.active::before {
    content: '';
    position: absolute;
    top: 3px;
    width: 16px;
    height: 2px;
    background: var(--green);
    border-radius: 4px;
  }@media (hover:hover) and (pointer:fine) {
nav a:hover:not(.active) {
    transform: none;
  }
}
  .main-shell {
    margin: 0 0 calc(75px + env(safe-area-inset-bottom));
    width: 100%;
  }
  header {
    min-height: 70px;
    height: auto;
    padding: 13px 19px;
    gap: 10px;
    align-items: center;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions>.offline-tag {
    display: none;
  }
  .header-actions .secondary {
    display: none;
  }
  .breadcrumb {
    font-size: 0.75rem;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .icon-button {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  main {
    padding: 28px 20px;
    min-height: calc(100vh - 205px);
  }
  .page-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-heading>div {
    flex: 1 1 245px;
  }
  .page-heading h1 {
    font-size: 1.875rem;
    line-height: 1.18;
    letter-spacing: -1px;
    max-width: 100%;
  }
  .page-heading .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 1.4px;
    max-width: 320px;
  }
  .page-heading p {
    font-size: 0.875rem;
    max-width: 100%;
    line-height: 1.65;
  }
  .page-heading>.secondary {
    font-size: 0.75rem;
    padding: 10px 14px;
    min-height: 48px;
  }
  .hero {
    min-height: 445px;
    padding: 28px 26px;
    grid-template-columns: 1fr;
    border-radius: 23px;
  }
  .hero h2 {
    font-size: 2.3125rem;
    line-height: 1.17;
    letter-spacing: -1.4px;
    max-width: 340px;
    margin: 17px 0;
  }
  .hero .eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 1.3px;
    max-width: 285px;
  }
  .hero p {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 300px;
    margin-bottom: 22px;
  }
  .hero .primary {
    font-size: 0.8125rem;
    min-height: 46px;
    margin-top: 0;
  }
  .hero>div:first-child {
    position: relative;
    z-index: 2;
  }
  .car-visual {
    height: 150px;
    position: absolute;
    bottom: 15px;
    left: 50px;
    right: 13px;
    opacity: .95;
    pointer-events: none;
  }
  .car-visual svg {
    min-width: 0;
    width: 100%;
    max-height: 170px;
    margin-bottom: 0;
  }
  .car-caption,.car-note {
    display: none;
  }
  .stats {
    gap: 12px;
    margin: 18px 0 31px;
  }
  .stat {
    padding: 19px 17px;
    border-radius: 17px;
    min-height: 145px;
  }
  .stat .label {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  .stat strong {
    font-size: 1.8125rem;
  }
  .stat small {
    font-size: 0.6875rem;
    line-height: 1.5;
    margin-top: 9px;
  }
  .stat-icon {
    display: none;
  }
  .section-heading {
    gap: 12px;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.375rem;
  }
  .section-heading p {
    font-size: 0.8125rem;
    line-height: 1.65;
  }
  .section-heading>.text-link {
    font-size: 0.75rem;
    white-space: nowrap;
    margin-top: 2px;
  }
  .model-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }
  .model-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .card-top {
    gap: 7px;
    margin-bottom: 19px;
  }
  .model-icon {
    height: 38px;
    width: 38px;
    border-radius: 12px;
  }
  .model-icon svg {
    width: 21px;
    height: 21px;
  }
  .model-card .badge {
    font-size: 0.5625rem;
    padding: 5px 6px;
    line-height: 1.4;
  }
  .model-card h3 {
    font-size: 1rem;
    line-height: 1.4;
    min-height: 45px;
    margin-bottom: 10px;
  }
  .model-card>p {
    font-size: 0.8125rem;
    line-height: 1.65;
    min-height: 64px;
    margin-bottom: 20px;
  }
  .model-meta {
    font-size: 0.6875rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    padding-top: 14px;
  }
  .card-link {
    font-size: 0.8125rem;
    padding-top: 16px;
    gap: 5px;
  }
  .bottom-grid {
    gap: 18px;
    margin-top: 25px;
  }
  .panel {
    padding: 24px 20px;
    border-radius: 19px;
  }
  .panel-head {
    gap: 12px;
    margin-bottom: 21px;
  }
  .panel-head h2 {
    font-size: 1.3125rem;
  }
  .panel-head h3 {
    font-size: 1.0625rem;
  }
  .empty-state {
    padding: 17px;
    gap: 14px;
    align-items: flex-start;
  }
  .empty-state h3 {
    font-size: 0.9375rem;
  }
  .empty-state p {
    font-size: 0.8125rem;
  }
  .step-row {
    gap: 12px;
    padding: 15px 0;
  }
  .step-row b {
    font-size: 0.875rem;
  }
  .step-row p {
    font-size: 0.75rem;
  }
  .report-actions {
    gap: 12px;
  }
  .report-actions .secondary {
    font-size: 0.8125rem;
    min-height: var(--control-height,44px);
  }
  .report-actions>.muted[style*="font-size"] {
    font-size: 0.75rem!important;
  }
  .form-grid {
    gap: 17px 13px;
    margin: 21px 0;
  }
  .form-grid label,.field {
    font-size: 0.8125rem;
  }
  input,select,textarea {
    font-size: 1rem;
    min-height: 47px;
    padding: 12px 11px;
    border-radius: 10px;
  }
  label small {
    font-size: 0.6875rem;
  }
  .notice {
    font-size: 0.75rem;
    line-height: 1.75;
    padding: 15px;
    border-radius: 12px;
  }
  .actions>.primary,.actions>.secondary {
    font-size: 0.8125rem;
    min-height: var(--control-height,44px);
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }
  .tabs {
    margin-bottom: 22px;
    gap: 4px;
    padding: 5px;
    width: 100%;
  }
  .tabs button {
    font-size: 0.8125rem;
    padding: 11px 14px;
    min-height: 48px;
  }
  .result-idle {
    min-height: 300px;
    padding: 20px 0;
  }
  .result-idle p {
    font-size: 0.875rem;
  }
  .result-text {
    font-size: 0.9375rem;
    line-height: 1.8;
  }
  .result-value {
    font-size: 2.125rem;
    letter-spacing: -1px;
    line-height: 1.25;
  }
  .prob-row {
    grid-template-columns: minmax(115px,.9fr) minmax(45px,1fr) 45px;
    font-size: 0.75rem;
    gap: 10px;
  }
  .checkbox-grid {
    gap: 9px;
  }
  .check {
    font-size: 0.75rem;
    padding: 10px;
    gap: 9px;
  }
  .upload {
    padding: 28px 19px;
  }
  .upload h3 {
    font-size: 1rem;
  }
  .upload p {
    font-size: 0.8125rem;
  }
  .dataset-card {
    gap: 16px;
  }
  .dataset-card .model-icon {
    display: none;
  }
  .dataset-card h3 {
    font-size: 1.125rem;
  }
  .dataset-card p {
    font-size: 0.8125rem;
  }
  .dataset-card .report-actions {
    width: 100%;
    padding-left: 0;
    gap: 9px;
  }
  .dataset-card .report-actions>* {
    flex: 1;
    min-height: 48px;
    font-size: 0.8125rem;
  }
  .model-row {
    gap: 16px;
    padding: 21px 0;
  }
  .model-row h3 {
    font-size: 1rem;
  }
  .model-row p {
    font-size: 0.75rem;
  }
  .model-row .actions {
    width: 100%;
    gap: 8px;
  }
  .model-row .actions>* {
    min-height: 48px;
    font-size: 0.75rem;
  }
  .obd-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }
  .gauge {
    padding: 20px 16px;
    border-radius: 15px;
  }
  .gauge p {
    font-size: 0.75rem;
  }
  .gauge strong {
    font-size: 1.9375rem;
  }
  .gauge small {
    font-size: 0.6875rem;
  }
  .history-item {
    padding: 20px 0;
    gap: 12px;
    flex-direction: column;
  }
  .history-item h3 {
    font-size: 1rem;
  }
  .history-item p {
    font-size: 0.875rem;
  }
  .history-item time {
    font-size: 0.75rem;
  }
  .history-item .report-actions {
    margin-top: 18px;
  }
  footer {
    padding: 0 20px 25px;
    font-size: 0.6875rem;
    line-height: 1.6;
  }
  footer>span:last-child {
    display: none;
  }
  #toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
    font-size: 0.8125rem;
    padding: 13px 19px;
    width: max-content;
    max-width: calc(100vw - 32px);
    border-radius: 13px;
  }
  dialog {
    width: calc(100vw - 26px);
    padding: 25px 21px;
    border-radius: 21px;
    max-height: 88dvh;
  }
  dialog p {
    font-size: 0.875rem;
  }
}
@media(max-width:380px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding: 27px 22px;
    min-height: 445px;
  }
  .hero h2 {
    font-size: 2.125rem;
  }
  .hero p {
    font-size: 0.8125rem;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .model-card {
    padding: 22px;
  }
  .model-card h3 {
    min-height: 0;
    font-size: 1.125rem;
  }
  .model-card>p {
    min-height: 0;
    font-size: 0.875rem;
    margin-bottom: 17px;
  }
  .model-meta {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.75rem;
  }
  .model-card .badge {
    font-size: 0.6875rem;
  }
  .card-link {
    font-size: 0.875rem;
  }
  .stat {
    padding: 17px 14px;
  }
  .stat strong {
    font-size: 1.6875rem;
  }
  .stats {
    gap: 10px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  nav a>span:not(.nav-count) {
    font-size: 0.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .prob-row {
    grid-template-columns: 115px minmax(35px,1fr) 42px;
    gap: 7px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
.car-visual .car-hero-image {
  display: block;
  position: relative;
  z-index: 1;
  width: 108%;
  max-width: 580px;
  height: auto;
  max-height: 270px;
  object-fit: contain;
  margin: 0 0 30px;
  filter: drop-shadow(0 18px 18px #0003);
  animation: float 8s ease-in-out infinite;
}
@media(min-width:1600px) {
  .car-visual .car-hero-image {
    max-width: 650px;
    max-height: 290px;
  }
}
@media(max-width:850px) {
  .car-visual .car-hero-image {
    width: 110%;
    margin-bottom: 12px;
  }
}
@media(max-width:650px) {
  .car-visual .car-hero-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px #0003);
  }
}
@media(prefers-reduced-motion:reduce) {
  .car-visual .car-hero-image {
    animation: none;
  }
}
