@import url("./business.css");

:root {
  --bg: #f5f5f5;
  --glass: #f5f5f5;
  --surface: #ffffff;
  --soft: #eeeeee;
  --text: #292929;
  --muted: #666666;
  --faint: #737373;
  --border: #e3e3e3;
  --strong-border: #cccccc;
  --primary: #333333;
  --primary-hover: #494949;
  --primary-text: #ffffff;
  --selected: #e8e8e8;
  --accent: #555555;
  --accent-soft: #eeeeee;
  --frame: #282828;
  --green: #49755f;
  --green-soft: #edf4ef;
  --amber: #8c6e3e;
  --amber-soft: #f7f1e6;
  --sidebar: 230px;
  --shadow: 0 9px 30px rgba(30, 30, 30, .045);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #191919;
  --glass: #191919;
  --surface: #242424;
  --soft: #303030;
  --text: #f2f2f2;
  --muted: #b7b7b7;
  --faint: #a2a2a2;
  --border: #3b3b3b;
  --strong-border: #565656;
  --primary: #e4e4e4;
  --primary-hover: #ffffff;
  --primary-text: #292929;
  --selected: #3d3d3d;
  --accent: #d3d3d3;
  --accent-soft: #333333;
  --frame: #121212;
  --green: #b0cab9;
  --green-soft: #283c32;
  --amber: #d3bd96;
  --amber-soft: #3a352a;
  --shadow: 0 10px 28px rgba(0, 0, 0, .12);
  color-scheme: dark;
}

body { background: var(--frame); font-size: 15px; line-height: 1.5; }
body::before, [data-theme="dark"] body::before { display: none; }
h1 { font-size: 34px; letter-spacing: -.9px; line-height: 1.2; font-weight: 650; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 17px; }
.eyebrow { font-size: 12px; letter-spacing: 1px; }
.sidebar { inset: 0 auto 0 0; width: var(--sidebar); border: 0; border-radius: 0; background: transparent; color: #f4f4f4; padding: 33px 18px 25px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { gap: 11px; padding-left: 12px; font-size: 29px; }
.brand img { width: 35px; height: 35px; }
.brand-dot { color: #cccccc; }
.workspace-label { padding: 12px 10px; margin: 27px 0 31px; color: #f0f0f0; border: 0; background: rgba(255,255,255,.04); border-radius: 10px; font-size: 12px; }
.workspace-label small { color: #bbbbbb; font-size: 11px; }
.workspace-symbol { background: rgba(255,255,255,.07); width: 32px; height: 34px; }
.nav-caption { color: #b6b6b6; font-size: 10px; letter-spacing: 1px; margin-bottom: 15px; }
.main-nav { gap: 7px; }
.sidebar .nav-link { color: #cccccc; font-size: 15px; min-height: 49px; padding: 12px 14px; border: 0; border-radius: 10px; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.055); color: #fff; }
.sidebar .nav-link.active { background: rgba(245,245,245,.11); color: #fff; box-shadow: none; }
.sidebar .nav-link.active::before { content: ""; position: absolute; width: 3px; height: 21px; left: 0; border-radius: 3px; background: #dddddd; }
.sidebar .nav-link.active .icon { color: #e2e2e2; }
.sidebar .nav-count { color: #e5e5e5; background: rgba(255,255,255,.08); font-size: 11px; }
.sidebar-bottom { padding-top: 30px; }
.demo-card { padding: 15px 9px 20px; border: 0; border-bottom: 1px solid rgba(240,240,240,.12); border-radius: 0; background: none; margin-bottom: 10px; }
.demo-card strong { font-size: 13px; }
.demo-card p { color: #bdbdbd; font-size: 12px; }
.sidebar .text-button { color: #dddddd; font-size: 12px; }
.sidebar .live-dot { background: #d3d3d3; }
.profile { border: 0; padding: 14px 7px 0; }
.profile .avatar { background: #4a4a4a; border: 0; }
.profile strong { font-size: 14px; }
.profile small, .profile-more { color: #bfbfbf; font-size: 12px; }
.app-shell { margin: 14px 14px 14px calc(var(--sidebar) + 4px); min-height: calc(100vh - 28px); background: var(--bg); border: 0; border-radius: 22px; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 15px 50px rgba(0,0,0,.07); }
.topbar { height: 75px; padding: 0 32px; background: var(--surface); border-radius: 22px 22px 0 0; border-color: var(--border); }
.breadcrumb { font-size: 13px; gap: 14px; }
.breadcrumb strong { font-weight: 550; }
.top-actions { gap: 12px; }
.demo-pill { font-size: 12px; }
.top-avatar { width: 34px; height: 34px; font-size: 13px; }
.icon-button { width: 38px; height: 38px; background: transparent; border: 1px solid var(--border); border-radius: 10px; }
.icon-button:hover { background: var(--soft); }
main { padding: 29px 32px 24px; min-height: calc(100vh - 180px); max-width: 1600px; }
.page-heading { margin-bottom: 17px; align-items: center; }
.page-heading p { font-size: 14px; margin-top: 10px; }
.btn, .heading-actions .btn { min-height: 44px; padding: 11px 17px; font-size: 14px; font-weight: 550; border-radius: 10px; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary, .btn-dark { box-shadow: 0 3px 8px rgba(30,30,30,.08); }
.btn-secondary { background: var(--surface); border-color: var(--strong-border); }
.btn-small { min-height: 37px; font-size: 13px; padding: 8px 13px; }
.text-button { font-size: 14px; color: var(--accent); }
.stats-row { gap: 0; margin: 0 0 25px; padding: 10px 0 18px; border-bottom: 1px solid var(--border); background: none; }
.stat-card { padding: 13px 24px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: 0; }
.stat-card:hover { background: var(--soft); }
.stat-top { font-size: 14px; color: var(--muted); }
.stat-top .icon { display: none; }
.stat-bottom { margin-top: 12px; gap: 11px; }
.stat-value { font-size: 31px; font-weight: 550; }
.stat-note { display: inline; font-size: 12px; line-height: 1.5; color: var(--muted); }

.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 23px; align-items: start; margin-bottom: 27px; }
.overview-cases { min-width: 0; }
@media (min-width: 1201px) {
  .overview-page { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 24px; align-items: start; }
  .overview-page > .page-heading, .overview-page > .stats-row { grid-column: 1 / -1; margin-bottom: 0; }
  .overview-page > .stats-row { padding-bottom: 20px; }
  .overview-page .hero-grid { display: contents; }
  .overview-page .resume-card { grid-column: 1; grid-row: 3; }
  .overview-page .calendar-card { grid-column: 2; grid-row: 3 / span 2; }
  .overview-cases { grid-column: 1; grid-row: 4; }
  .overview-cases .table-head, .overview-cases .case-row { grid-template-columns: minmax(175px,1.7fr) minmax(90px,1fr) 105px 15px; gap: 11px; padding: 0 18px; }
  .overview-cases .case-updated, .overview-cases .updated-head { display: none; }
  .overview-cases .car-thumbnail { display: none; }
  .overview-cases .table-tools { width: 100%; margin: 0; }
  .overview-cases .search-field { flex: 1; }
  .overview-cases .case-list.grid-view { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.resume-card, [data-theme="dark"] .resume-card { padding: 23px; background: var(--surface); border: 0; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.resume-top { gap: 10px; }
.resume-label { gap: 8px; }
.resume-label .eyebrow { font-size: 12px; letter-spacing: .8px; }
.resume-label .icon { width: 16px; height: 16px; }
.resume-body { position: relative; isolation: isolate; grid-template-columns: minmax(0,1fr) 47%; gap: 8px; margin-top: 12px; min-height: 133px; }
.resume-body::before { display: none; }
.resume-card h2 { font-size: 29px; line-height: 1.18; letter-spacing: -.65px; overflow-wrap: anywhere; }
.resume-meta { font-size: 12px; color: var(--muted); gap: 4px 7px; margin-top: 9px; }
.hero-car { display: block; width: 100%; height: auto; max-height: 150px; margin: 0; object-fit: contain; filter: grayscale(1); }
.car-scene { position: relative; min-width: 0; }
.car-spokes { transform-box: view-box; transform-origin: 0 0; animation: car-wheel-roll 2.4s linear infinite; }
.car-chassis { transform-box: view-box; transform-origin: 374px 215px; animation: car-suspension 3.4s ease-in-out infinite; }
.car-shadow { transform-box: view-box; transform-origin: 378px 275px; animation: car-shadow-breathe 3.4s ease-in-out infinite; }
.car-road { stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 32 128; opacity: .25; animation: car-road-flow 1.3s linear infinite; }
.car-road-near { stroke-width: 2; opacity: .15; animation-delay: -.65s; }
.car-headlights { --lamp-peak: .78; opacity: 0; animation: car-headlight-pulse 14s ease-in-out infinite; }
[data-theme="dark"] .car-headlights { --lamp-peak: .5; }
.car-motion-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: var(--surface); }
.car-motion-toggle:hover { color: var(--text); background: var(--soft); }
.car-motion-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.motion-play, .motion-paused .motion-pause { display: none; }
.motion-paused .motion-play { display: block; }
.motion-paused .car-spokes, .motion-paused .car-chassis, .motion-paused .car-shadow, .motion-paused .car-road, .motion-paused .car-headlights { animation-play-state: paused; }
@keyframes car-wheel-roll { to { transform: rotate(-360deg); } }
@keyframes car-road-flow { to { stroke-dashoffset: -160; } }
@keyframes car-headlight-pulse { 0%, 87%, 100% { opacity: 0; } 90%, 94% { opacity: var(--lamp-peak); } 97% { opacity: 0; } }
@keyframes car-suspension { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-.9px) rotate(-.1deg); } 55% { transform: translateY(.5px) rotate(.06deg); } 78% { transform: translateY(-.4px) rotate(0); } }
@keyframes car-shadow-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 25% { transform: scale(1.008,.94); opacity: .94; } 55% { transform: scale(.998,1.02); opacity: 1; } 78% { transform: scale(1.004,.97); opacity: .97; } }
@media (prefers-reduced-motion: reduce) {
  .car-scene * { animation: none !important; }
  .car-motion-toggle, .car-road { display: none; }
}
.resume-context { margin-top: 9px; padding-bottom: 17px; gap: 10px 18px; font-size: 12px; }
.resume-context strong { font-size: 16px; color: var(--text); font-weight: 600; }
.resume-context .icon { width: 16px; height: 16px; }
.resume-footer { padding-top: 17px; margin-top: 0; gap: 14px; }
.resume-progress { width: 130px; }
.resume-progress i.done { background: var(--accent); }
.resume-step { font-size: 12px; }
.resume-footer .btn { min-height: 40px; padding: 9px 14px; font-size: 13px; }

.calendar-card { min-width: 0; padding: 20px; background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.calendar-heading h2 { font-size: 21px; }
.calendar-heading .icon-button { width: 32px; height: 32px; border: 0; background: var(--soft); border-radius: 8px; }
.calendar-heading .icon { width: 18px; height: 18px; }
.calendar-month-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.calendar-month-bar > strong { font-size: 14px; font-weight: 550; text-transform: capitalize; }
.calendar-month-bar > div { display: flex; align-items: center; gap: 2px; }
.calendar-today { padding: 5px 6px; font-size: 12px; color: var(--accent); }
.calendar-arrow { width: 28px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--muted); border-radius: 7px; }
.calendar-arrow:hover { background: var(--soft); }
.calendar-arrow .icon { width: 15px; height: 15px; }
#calendar-prev .icon { transform: rotate(180deg); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.calendar-weekdays { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 5px; line-height: 23px; }
.calendar-day { position: relative; display: grid; place-items: center; height: 33px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; color: var(--text); padding: 0 0 2px; font-variant-numeric: tabular-nums; }
.calendar-day:hover { background: var(--soft); }
.calendar-day.today { border-color: var(--strong-border); font-weight: 600; }
.calendar-day.selected { background: var(--primary); color: var(--primary-text); border-color: transparent; }
.calendar-day i { position: absolute; width: 3px; height: 3px; border-radius: 50%; bottom: 3px; background: var(--accent); }
.calendar-day.selected i { background: var(--primary-text); }
.calendar-agenda-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 13px; margin-top: 12px; }
.calendar-agenda-heading h3 { font-size: 13px; font-weight: 600; }
.calendar-agenda-heading h3 span { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 7px; }
.calendar-agenda-heading > span { font-size: 11px; color: var(--muted); }
.calendar-agenda { max-height: 170px; overflow: auto; scrollbar-width: thin; }
.calendar-event { display: grid; grid-template-columns: 38px minmax(0,1fr) 12px; align-items: start; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.calendar-event:last-child { border: 0; }
.calendar-event time { font-size: 12px; color: var(--accent); font-weight: 600; padding-top: 1px; }
.calendar-event strong { display: block; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.calendar-event small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.calendar-event > .icon { width: 12px; height: 12px; margin-top: 4px; color: var(--faint); }
.calendar-empty { padding: 12px 0 5px; }
.calendar-empty p { font-size: 12px; color: var(--muted); }
.calendar-empty .text-button { font-size: 12px; margin-top: 3px; }
.calendar-footnote { color: var(--muted); font-size: 11px; margin: 9px 0 0; }

.list-heading { margin-bottom: 18px; }
.list-heading h2 { font-size: 24px; }
.list-heading .text-button { font-size: 13px; color: var(--accent); }
.toolbar { gap: 14px; }
.tabs { border: 0; background: var(--soft); padding: 4px; border-radius: 10px; }
.filter-tab { font-size: 13px; min-height: 36px; padding: 8px 12px; }
.filter-tab.active { background: var(--surface); border-color: transparent; box-shadow: 0 2px 6px rgba(40,40,40,.045); }
.filter-tab span { font-size: 11px; margin-left: 6px; }
.search-field { height: 42px; width: 215px; background: var(--surface); }
.search-field input { font-size: 13px; }
.search-field .icon { width: 17px; height: 17px; }
.sort-select { height: 42px; font-size: 12px; max-width: 155px; }
.case-list { border: 0; border-radius: 13px; box-shadow: var(--shadow); }
.table-head, .case-row { grid-template-columns: minmax(210px,2fr) minmax(115px,1fr) minmax(115px,1fr) minmax(95px,.8fr) 18px; gap: 16px; padding: 0 21px; }
.table-head { min-height: 44px; background: var(--surface); font-size: 10px; color: var(--muted); }
.case-row { min-height: 83px; }
.car-identity { gap: 12px; }
.car-thumbnail { width: 44px; height: 40px; background: var(--soft); border: 0; }
.car-identity strong { font-size: 14px; }
.car-identity small { font-size: 12px; }
.case-stage, .case-updated { font-size: 13px; }
.status { font-size: 11px; padding: 7px 9px; }
.mini-progress i.done { background: var(--accent); }
.list-summary { font-size: 12px; }
.page-footer { font-size: 11px; padding: 16px 32px 24px; }
.grid-view .case-row { border: 0; box-shadow: var(--shadow); }
.back-link { font-size: 14px; margin-bottom: 23px; }
.workflow { background: var(--surface); border: 0; padding: 7px; box-shadow: var(--shadow); }
.workflow-step { font-size: 13px; padding: 11px 9px; }
.workflow-step.active { background: var(--accent-soft); border-color: transparent; }
.workflow-step .step-number { width: 29px; height: 29px; font-size: 11px; }
.detail-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 22px; }
.panel { border: 0; padding: 25px; box-shadow: var(--shadow); }
.panel-header p { font-size: 13px; }
.panel-header h2 { font-size: 21px; }
.spec-grid dt { font-size: 12px; }
.spec-grid dd { font-size: 15px; }
.summary-panel h3 { font-size: 17px; }
.summary-label { font-size: 13px; margin: 18px 0; }
.summary-total span { font-size: 12px; }
.summary-total strong { font-size: 32px; }
.info-note, .info-strip { font-size: 12px; }
.part-row strong { font-size: 15px; }
.part-row small { font-size: 12px; }
.part-amount { font-size: 14px; }
.field { font-size: 13px; }
.field input, .field select, .field textarea { min-height: 44px; font-size: 14px; background: var(--surface); }
.calculation-row { font-size: 15px; }
.calculation-row small { font-size: 12px; }
.check-label { font-size: 13px; }
.report-cover p { font-size: 14px; }
.report-table, .catalog-result { font-size: 14px; }
.catalog-card p { font-size: 14px; }
.catalog-result small { font-size: 12px; }
.report-item h3 { font-size: 15px; }
.report-item p { font-size: 12px; }
dialog, .modal-header, .modal-footer { background: var(--surface); }
[data-theme="dark"] dialog, [data-theme="dark"] .modal-header, [data-theme="dark"] .modal-footer { background: #292929; }
.modal-header h2 { font-size: 23px; }
.modal-header p { font-size: 13px; }
.form-error { color: #b14d45; font-size: 13px; }
[data-theme="dark"] .form-error { color: #f3b5ad; }
.toast { font-size: 14px; background: #363636; color: #f5f5f5; }
dialog::backdrop { background: rgba(15,15,15,.54); }
.check-label input { accent-color: var(--primary); }
.help-list { font-size: 14px; }

@media (min-width: 1650px) {
  :root { --sidebar: 250px; }
  .sidebar { padding: 38px 22px 26px; }
  .app-shell { margin: 18px 18px 18px calc(var(--sidebar) + 4px); }
  .topbar { padding: 0 42px; }
  main { padding: 33px 42px 27px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 380px; gap: 28px; }
  .resume-card { padding: 26px 30px; }
  .resume-body { min-height: 140px; }
  .hero-car { max-height: 164px; }
  .resume-card h2 { font-size: 33px; }
  .resume-meta, .resume-context { font-size: 14px; }
  .resume-context strong { font-size: 18px; }
  .calendar-card { padding: 22px 24px; }
  .calendar-day { height: 33px; font-size: 14px; }
  .calendar-event strong { font-size: 13px; }
  .page-footer { padding-left: 42px; padding-right: 42px; }
}

@media (max-width: 1250px) and (min-width: 761px) {
  :root { --sidebar: 198px; }
  .sidebar { inset: 0 auto 0 0; padding: 31px 13px 22px; }
  .brand { font-size: 25px; padding-left: 8px; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .sidebar .nav-link { font-size: 14px; padding: 12px 11px; }
  .workspace-label { font-size: 11px; gap: 8px; }
  .workspace-label small { font-size: 10px; }
  .nav-caption { font-size: 10px; }
  .app-shell { margin-left: calc(var(--sidebar) + 2px); margin-right: 12px; }
  main { padding: 27px 24px 22px; }
  .topbar { padding: 0 24px; }
  .stat-card { padding: 11px 18px; }
  .stat-note { display: none; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 315px; gap: 18px; }
  .resume-card { padding: 20px; }
  .resume-label .eyebrow { font-size: 11px; }
  .resume-card h2 { font-size: 25px; }
  .resume-body { grid-template-columns: minmax(0,1fr) 45%; }
  .resume-context { font-size: 11px; }
  .calendar-card { padding: 18px; }
  .table-head, .case-row { grid-template-columns: minmax(170px,1.8fr) minmax(100px,1fr) minmax(100px,1fr) 16px; gap: 12px; padding: 0 16px; }
  .case-updated, .updated-head { display: none; }
  .car-thumbnail { display: none; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .summary-panel { position: static; }
  .summary-panel .summary-label { display: flex; width: 100%; justify-content: space-between; }
  .page-footer { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1200px) and (min-width: 761px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .calendar-card { display: block; }
  .calendar-card #case-calendar { max-width: 560px; margin: auto; }
  .calendar-day { height: 37px; font-size: 14px; }
  .calendar-event strong { font-size: 14px; }
  .calendar-event small { font-size: 12px; }
  .resume-body { min-height: 115px; }
  .hero-car { max-height: 128px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 13px; }
  .page-heading { flex-wrap: wrap; }
  .table-head, .case-row { grid-template-columns: minmax(150px,1.8fr) minmax(80px,1fr) minmax(95px,1fr) 12px; gap: 9px; padding: 0 14px; }
  .toolbar, .table-tools { width: 100%; }
  .table-tools { margin: 0; }
  .search-field { flex: 1; }
  .filter-tab { padding: 8px 10px; font-size: 12px; }
  .car-identity strong { font-size: 13px; }
  .car-identity small { font-size: 11px; }
  .case-stage { font-size: 12px; }
  .catalog-grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 760px) {
  body { background: var(--bg); }
  .sidebar { display: none; }
  .app-shell { margin: 0; border-radius: 0; background: var(--bg); min-height: 100vh; box-shadow: none; }
  .topbar { height: 68px; border-radius: 0; background: var(--surface); padding: 0 20px; }
  .mobile-brand { font-size: 23px; gap: 9px; }
  .mobile-brand img { width: 30px; height: 30px; }
  .top-actions { gap: 10px; }
  .demo-pill { font-size: 10px; }
  main { padding: 26px 20px 18px; }
  .page-heading { gap: 16px; margin-bottom: 16px; align-items: flex-start; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { font-size: 14px; max-width: none; }
  .heading-actions .btn { min-height: 44px; font-size: 14px; padding: 10px 15px; }
  .stats-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0 0 14px; margin-bottom: 21px; }
  .stat-card, .stat-card:first-child { padding: 16px 12px; border-right: 0; border-radius: 0; }
  .stat-card:nth-child(odd) { padding-left: 0; }
  .stat-card:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--border); }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stat-top { font-size: 14px; }
  .stat-bottom { margin-top: 8px; }
  .stat-value { font-size: 29px; }
  .stat-note { display: none; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 22px; margin-bottom: 27px; }
  .resume-card, [data-theme="dark"] .resume-card { padding: 20px; border-radius: 15px; }
  .resume-label .eyebrow { font-size: 11px; }
  .resume-top .status { font-size: 10px; padding: 6px 7px; }
  .resume-body { grid-template-columns: minmax(0,1fr) 44%; min-height: 115px; margin-top: 10px; gap: 3px; }
  .resume-body::before { width: 48%; height: 110px; top: 2px; right: 0; }
  .hero-car { width: 100%; max-height: 110px; margin: 0; }
  .resume-card h2 { font-size: 25px; }
  .resume-meta { font-size: 12px; }
  .resume-context { font-size: 12px; margin-top: 7px; padding-bottom: 16px; gap: 8px 12px; }
  .resume-context strong { font-size: 15px; }
  .resume-footer { padding-top: 16px; gap: 12px; }
  .resume-progress { width: 112px; }
  .resume-step { font-size: 11px; }
  .resume-footer .btn { min-height: 40px; font-size: 12px; padding: 9px 12px; }
  .calendar-card { display: block; padding: 20px; border-radius: 15px; }
  .calendar-heading h2 { font-size: 22px; }
  .calendar-heading .icon-button { width: 38px; height: 38px; }
  .calendar-month-bar { margin-bottom: 10px; gap: 5px; }
  .calendar-month-bar > strong { font-size: 15px; }
  .calendar-today { font-size: 12px; min-height: 38px; }
  .calendar-arrow { width: 28px; height: 38px; }
  .calendar-weekdays { font-size: 12px; }
  .calendar-grid { gap: 2px; }
  .calendar-day { height: 39px; font-size: 15px; }
  .calendar-agenda-heading h3 { font-size: 14px; }
  .calendar-agenda-heading h3 span { font-size: 12px; }
  .calendar-agenda-heading > span { font-size: 11px; }
  .calendar-event { padding: 13px 0; grid-template-columns: 43px minmax(0,1fr) 12px; }
  .calendar-event strong { font-size: 14px; }
  .calendar-event small, .calendar-event time { font-size: 12px; }
  .calendar-footnote { font-size: 11px; margin-top: 12px; }
  .calendar-empty p, .calendar-empty .text-button { font-size: 13px; }
  .list-heading h2 { font-size: 24px; }
  .list-heading .text-button { font-size: 13px; }
  .toolbar { gap: 13px; }
  .tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; width: 100%; gap: 3px; padding: 4px; }
  .filter-tab { font-size: 12px; min-height: 37px; padding: 8px 10px; flex: 1 0 auto; }
  .filter-tab span { font-size: 11px; }
  .table-tools { gap: 8px; flex-wrap: wrap; width: 100%; }
  .search-field { width: 100%; flex: 1 0 100%; height: 44px; }
  .search-field input { font-size: 14px; }
  .sort-select { max-width: none; flex: 1; height: 42px; font-size: 13px; padding: 0 10px; }
  .table-tools .icon-button { width: 42px; height: 42px; }
  .case-row { grid-template-columns: minmax(0,1fr) auto; gap: 13px; padding: 18px 16px; min-height: 116px; }
  .table-head { display: none; }
  .car-thumbnail { display: none; }
  .car-identity strong { font-size: 14px; }
  .car-identity small { font-size: 11px; }
  .case-stage { padding-left: 0; font-size: 12px; }
  .case-row .status { font-size: 10px; padding: 6px; }
  .case-row .mini-progress { width: 57px; }
  .list-summary { font-size: 11px; }
  .page-footer { padding: 19px 20px 112px; font-size: 11px; }
  .mobile-nav, [data-theme="dark"] .mobile-nav { padding: 8px 9px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -5px 24px rgba(25,25,25,.035); backdrop-filter: none; }
  .mobile-nav a { font-size: 11px; min-height: 54px; padding: 6px; gap: 5px; }
  .mobile-nav a.active { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
  .mobile-nav .icon { width: 21px; height: 21px; }
  .detail-heading h1 { font-size: 29px; }
  .back-link { font-size: 14px; margin-bottom: 20px; }
  .workflow { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 6px; padding: 7px; }
  .workflow-step { flex: 1 0 91px; font-size: 12px; padding: 10px 6px; gap: 7px; }
  .workflow-step .step-number { width: 28px; height: 28px; font-size: 11px; }
  .detail-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .panel { padding: 21px; border-radius: 15px; }
  .panel-header h2 { font-size: 20px; }
  .panel-header p { font-size: 12px; }
  .panel-header .btn { font-size: 12px; padding: 8px 11px; }
  .spec-grid { gap: 20px; }
  .spec-grid dd { font-size: 14px; }
  .summary-panel .summary-label { display: flex; width: 100%; justify-content: space-between; font-size: 13px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .calculation-inputs { grid-template-columns: minmax(0,1fr); }
  .calculation-row { font-size: 14px; }
  .calculation-row small { font-size: 12px; }
  .calculation-row strong { font-size: 14px; }
  .info-strip, .info-note { font-size: 12px; }
  .part-row { gap: 10px; }
  .part-row strong { font-size: 14px; }
  .part-row small { font-size: 11px; }
  .part-amount { font-size: 13px; }
  .modal-header h2 { font-size: 22px; }
  .modal-header p { font-size: 12px; }
  .modal-header, .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .modal-footer .btn { font-size: 13px; padding: 10px 12px; }
  .toast { font-size: 13px; bottom: 96px; }
}

@media (max-width: 380px) {
  main { padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 0 14px; }
  .mobile-brand { font-size: 21px; }
  .demo-pill { font-size: 11px; }
  .page-heading h1 { font-size: 27px; }
  .resume-card, [data-theme="dark"] .resume-card, .calendar-card { padding: 17px; }
  .resume-label .eyebrow { font-size: 10px; letter-spacing: .4px; }
  .resume-card h2 { font-size: 23px; }
  .resume-body { grid-template-columns: minmax(0,1fr) 41%; }
  .resume-step { font-size: 10px; }
  .resume-progress { width: 98px; }
  .resume-footer .btn { font-size: 11px; padding: 9px 10px; }
  .calendar-month-bar > strong { font-size: 14px; }
  .calendar-today { font-size: 11px; padding: 5px 3px; }
  .calendar-arrow { width: 24px; }
  .calendar-day { height: 37px; font-size: 14px; }
  .calendar-agenda-heading h3 span { display: none; }
  .calendar-event { grid-template-columns: 37px minmax(0,1fr) 12px; gap: 7px; }
  .calendar-event strong { font-size: 13px; }
  .calendar-event small { font-size: 11px; }
  .car-identity strong { font-size: 13px; }
  .case-row { padding: 16px 13px; gap: 12px; }
  .case-row .status { font-size: 11px; padding: 5px; }
  .panel { padding: 17px; }
  .panel-header { flex-wrap: wrap; }
  .modal-footer { padding: 15px; gap: 7px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .mobile-nav { gap: 4px; }
  .mobile-nav a { font-size: 10px; }
}

.product-brand { gap: 10px; padding-left: 5px; }
.product-mark { position: relative; display: block; flex: 0 0 46px; width: 46px; height: 46px; }
.product-mark-core { position: absolute; inset: auto 0 0; height: 29px; overflow: hidden; }
.product-brand .product-mark img { position: absolute; width: 46px; height: 46px; left: 0; top: -10px; max-width: none; }
.product-mark > svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.product-wordmark { display: block; min-width: 0; font-size: 22px; font-weight: 650; letter-spacing: -.65px; line-height: 1.08; }
.product-name { display: block; white-space: nowrap; }
.product-wordmark small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.3; }
.report-brand { color: var(--muted); font-size: 13px; font-weight: 550; margin-top: 18px; }
.sidebar .product-wordmark small { color: #bdbdbd; }
.mobile-brand::after { display: none; content: none; }
@media (max-width: 1250px) and (min-width: 761px) {
  .product-brand { gap: 7px; padding-left: 0; }
  .product-wordmark { font-size: 21px; }
  .product-mark { flex-basis: 40px; width: 40px; height: 43px; }
  .product-brand .product-mark img { width: 40px; height: 40px; top: -7px; }
}
@media (max-width: 760px) {
  .mobile-brand.product-brand { padding: 0; gap: 7px; }
  .product-wordmark { font-size: 22px; }
  .product-wordmark small { margin-top: 3px; font-size: 10px; }
  .product-mark { flex-basis: 39px; width: 39px; height: 42px; }
  .product-brand .product-mark img { width: 39px; height: 39px; top: -7px; }
  .car-motion-toggle { width: 30px; height: 30px; top: -16px; }
}
@media (max-width: 380px) {
  .product-wordmark { font-size: 20px; }
  .top-actions .demo-pill { display: none; }
}

@media print {
  body { background: #fff !important; color: #222 !important; }
  .calendar-card { display: none; }
}
