:root{
  color-scheme:light;
  --background:#f4f6f8;--foreground:#20303e;--card:#fff;
  --primary:#235779;--primary-deep:#173f5c;--muted:#61717d;
  --border:#dce2e8;--soft:#edf0f4;--accent:#eaf0fc;
  --danger:#b12b39;
  font-family:Arial,Helvetica,-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--foreground);font-size:14px;background:var(--background)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;line-height:1.45;background:var(--background)}
button,input,select,textarea{font:inherit}
button{cursor:pointer;min-height:44px;padding:10px 13px;border:1px solid transparent;border-radius:9px;font-weight:650;background:transparent;color:inherit}
button:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,
summary:focus-visible{outline:3px solid #7ba1fa;outline-offset:2px}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.shell{max-width:1120px;margin:0 auto;padding:0 18px 48px}
.topbar{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid var(--border);margin:0 -18px 14px;padding:8px 18px;padding-top:calc(8px + env(safe-area-inset-top,0px))}
.brand{display:flex;align-items:center;gap:8px;min-width:0}
.brand-logo{width:168px;height:52px;object-fit:contain;object-position:left center;display:block;flex:none}
.brand-subtitle{color:var(--muted);font-size:11px;white-space:nowrap}
.topbar-right{display:flex;align-items:center;gap:9px}
.avatar{display:grid;place-items:center;border-radius:50%;width:32px;height:32px;background:#edf2fe;color:var(--primary);border:1px solid var(--border);font-weight:800}
.pill{border:1px solid #bed0f7;background:#ecf3ff;color:var(--primary);font-weight:800;font-size:10px;letter-spacing:1px;border-radius:8px;padding:5px 7px}
.warning{background:#fff9e9;border:1px solid #eadcb8;border-radius:9px;padding:9px 13px;color:#6c5834;font-size:12px;margin:0 0 14px}
.warning strong{color:#654818}
.notice{background:#eef4ff;border:1px solid #bfcef4;color:#254889;border-radius:9px;padding:11px 13px;font-size:13px;margin-bottom:13px;overflow-wrap:anywhere}
.notice.error,.error-result{background:#fff0f1;border-color:#ecc6cc;color:#992331}
.notice.success,.success-result{background:#e8f7ee;border-color:#b9ddc8;color:#17623a}
.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:15px;box-shadow:0 2px 8px #15273f07}
h1,h2,h3{line-height:1.25;letter-spacing:-.2px}
h1{font-size:24px;margin:0 0 8px}
h2{font-size:19px;margin:0 0 13px}
h3{font-size:16px;margin:0 0 8px}
p{margin:0 0 12px}
.muted{font-size:13px;color:var(--muted)}
.hint{font-size:12px;color:var(--muted);margin:9px 0}
.hint code{color:#34517d;overflow-wrap:anywhere}
label{display:block;font-size:13px;color:#586575;font-weight:600;margin:10px 0}
input,select,textarea{display:block;width:100%;min-height:44px;margin-top:5px;padding:10px 12px;border:1px solid #c4cdd8;border-radius:8px;background:#fff;color:#202b38;font-size:16px;max-width:100%}
input::placeholder,textarea::placeholder{color:#9aabb9}
input:focus,select:focus,textarea:focus{border-color:#6d94e9}
input[type="checkbox"]{accent-color:var(--primary)}
textarea{min-height:78px;resize:vertical}
.primary{background:var(--primary);color:white;border:1px solid var(--primary);box-shadow:0 1px 3px #214b9a12}
.primary:hover{background:var(--primary-deep)}
.secondary{background:#fff;border-color:#cdd7e3;color:#29415c}
.secondary:hover{background:#f5f8fc}
.danger{background:#fff;border-color:#e7cbd0;color:var(--danger)}
.danger:hover{background:#fff2f3}
.full{width:100%}
#authPanel{max-width:500px;margin:16px auto 45px;padding:24px}
#authPanel .primary{width:100%;margin-top:10px}
.switcher{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#edf0f5;border-radius:9px;padding:4px;margin:16px 0}
.switcher button{border-radius:7px;color:#68788b;font-weight:650}
.switcher button.active{color:var(--primary);background:#fff;box-shadow:0 1px 3px #1c314b1a}
.workspace-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 13px}
.workspace-header h1{font-size:17px;margin:0 0 4px;overflow-wrap:anywhere}
.workspace-header .muted{font-size:11px;margin:0;overflow-wrap:anywhere}
.workspace-header .secondary{flex:none;min-height:37px;padding:7px 12px}
.eyebrow{font-size:10px;letter-spacing:1px;font-weight:750;color:#8794a3;text-transform:uppercase;margin:0 0 5px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:13px 0}
.page-heading h2{font-size:23px;margin:0}
.page-heading .primary{min-width:138px;min-height:42px}
.main-navigation{display:flex;gap:6px;margin:0 0 18px;padding:5px;background:white;border:1px solid var(--border);border-radius:11px}
.main-navigation button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;font-size:13px;font-weight:700;min-height:44px;color:#6d7a8b;border-radius:7px}
.main-navigation button[aria-current="page"]{background:#eaf0fc;color:var(--primary)}
.nav-icon{font-size:20px;line-height:1;font-weight:400}
.journal-overview{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px;color:#657487;margin:0 0 13px}
.journal-overview span{display:inline-flex;align-items:center;gap:5px}
.journal-overview strong{color:#1d4fbf;font-size:14px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.section-heading h2,.section-heading h3{margin:0}
.section-heading .secondary{font-size:12px;min-height:37px}
.count{font-size:12px;padding:4px 7px;color:#32549c;border-radius:6px;background:#e8effc;vertical-align:middle}
.journal-search{margin:0 0 12px}
.journal-search input{margin:0}
.journal-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:0 0 14px}
.journal-filters button{background:white;border:1px solid var(--border);border-radius:8px;white-space:nowrap;min-height:35px;padding:7px 12px;font-size:12px;color:#5c697d}
.journal-filters button[aria-pressed="true"]{background:#eaf0fc;border-color:#bfd0f7;color:var(--primary)}
.records{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:11px}
.record{border:1px solid var(--border);padding:14px;border-radius:10px;background:#fff;min-width:0}
.record h3{color:#23384e;overflow-wrap:anywhere;margin:0 0 4px}
.record .muted{margin:0 0 7px}
.record-id{display:block;overflow-wrap:anywhere;font-size:10px;color:#9aabba;padding:6px 0}
.record-revision{font-size:11px;color:#68788b;margin:0 0 6px}
.record-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.record-actions select{margin:0;min-height:40px;font-size:13px;padding:7px 9px}
.record-actions button{font-size:12px;min-height:40px;padding:7px 9px}
.surface-back{margin:0 0 11px}
.surface-back button{min-height:38px;font-size:12px}
.more-menu .more-item{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:13px 6px;min-height:66px;border-radius:0;border-bottom:1px solid var(--border)}
.more-menu .more-item:last-child{border-bottom:0}
.more-menu .more-item>span:nth-child(2){flex:1;min-width:0}
.more-item strong,.more-item small{display:block}
.more-item strong{font-size:14px;color:#27394d}
.more-item small{font-size:12px;font-weight:400;color:#788697;margin-top:3px}
.more-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;background:#edf3ff;color:var(--primary);font-size:22px;border-radius:9px}
.upcoming{color:#7f8ea2;cursor:default}
.upcoming-tag{font-size:11px;color:#8a95a3;background:#eef1f4;border-radius:6px;padding:4px 7px}
.mutation-test,.vehicle-list-section,.vehicle-isolation,.vehicle-visit-panel{border-top:1px solid var(--border);padding-top:17px;margin-top:18px}
.mutation-test h3{margin-bottom:9px}
.confirm-row{display:flex;gap:9px;align-items:flex-start;line-height:1.4;font-size:12px}
.confirm-row input[type="checkbox"]{display:block;flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0}
.result{font-size:13px;border:1px solid #d0d9e4;padding:11px;border-radius:8px;overflow-wrap:anywhere;margin-top:10px}
.warning-result{background:#fff6e2;border-color:#e4d7b1;color:#7e621f}
.id-good{color:#196d3b}.id-warning{color:#9c4e25}
.vehicle-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px}
#vehicleForm h3,.vehicle-list-section h3,.vehicle-isolation h3{margin:0 0 10px}
#vehicleForm details{margin:12px 0 14px;padding:10px 12px;border:1px solid var(--border);border-radius:9px}
#vehicleForm summary{cursor:pointer;color:#475f7c;font-size:13px;font-weight:700}
#vehicleCancel{margin-top:8px}
#visitVehicleTitle{margin:0}
.visit-list{display:grid;gap:9px;list-style:none;margin:12px 0;padding:0}
.visit-item{border:1px solid var(--border);border-radius:9px;padding:12px;background:#fafbfc}
.visit-item strong{display:block;font-size:13px}
.visit-item p{margin:6px 0 8px}
.visit-item button{min-height:36px;font-size:12px}
footer{font-size:11px;text-align:center;color:#8896a5;padding:12px 0 calc(22px + env(safe-area-inset-bottom,0px))}
@media(max-width:650px){
  .shell{padding:0 12px 35px}
  .topbar{margin:0 -12px 12px;padding:7px 12px;padding-top:calc(7px + env(safe-area-inset-top,0px))}
  .brand-logo{width:153px;height:47px}
  .brand-subtitle{display:none}
  .panel{padding:15px;border-radius:11px}
  .main-navigation{gap:3px}
  .main-navigation button{gap:5px;font-size:12px}
  .page-heading h2{font-size:21px}
  .page-heading .primary{min-width:0;padding:9px 11px}
  .records{grid-template-columns:1fr}
  .vehicle-input-grid{grid-template-columns:1fr}
}
@media(max-width:360px){
  .page-heading{gap:8px}
  .page-heading .primary{font-size:12px}
  .main-navigation button{font-size:11px;gap:4px}
  .nav-icon{font-size:17px}
  .workspace-header h1{font-size:15px}
}

/* Sectioned VAG KodLab order editor: visually consistent with original order-editor.tsx. */
.full-order-editor .section-heading{align-items:flex-start}
.full-order-editor .section-heading .eyebrow{margin:2px 0 5px}
.full-order-editor .section-heading h2{margin:0}
.full-order-editor .section-heading button{flex:none}
.editor-section{background:#fff;border:1px solid var(--border);border-radius:10px;margin:11px 0;overflow:hidden}
.editor-section>summary{list-style:none;cursor:pointer;padding:14px 16px;position:relative;display:flex;flex-direction:column;gap:3px}
.editor-section>summary::-webkit-details-marker{display:none}
.editor-section>summary::after{content:"⌄";position:absolute;right:17px;top:18px;color:#63768f;font-size:18px}
.editor-section[open]>summary::after{content:"⌃"}
.editor-section>summary strong{font-size:14px;color:#25384d}
.editor-section>summary span{font-size:12px;color:#7c8b9d;padding-right:14px;overflow-wrap:anywhere}
.editor-section[open]>summary{border-bottom:1px solid var(--border);background:#fafbfd}
.editor-section-content{padding:14px 16px}
.editor-section-content label{margin:8px 0 13px}
.editor-section-content textarea{min-height:92px}
.paid-field{display:flex;align-items:center;gap:10px;margin:14px 0;font-size:14px;color:#27394f;font-weight:650}
.paid-field input{margin:0;display:block;flex:none;width:21px;height:21px;min-height:21px}
.form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-top:1px solid var(--border);margin-top:18px;padding-top:16px}
.form-actions .primary{flex:1}
.form-actions .secondary{min-width:95px}
#fullOrderError{margin-top:14px}
@media(max-width:650px){.editor-section-content{padding:12px}.editor-section>summary{padding:12px}.form-actions{flex-direction:column}.form-actions button{width:100%}}

/* Monthly schedule surface, styled after the original KodLab calendar. */
.calendar-heading{margin-bottom:12px}
.calendar-month-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0 15px}
.calendar-month-nav strong{font-size:17px;letter-spacing:-.25px}
.calendar-month-nav button{min-height:40px;min-width:43px;font-size:23px;padding:3px 10px}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:6px}
.calendar-weekdays span{text-align:center;font-size:11px;font-weight:750;color:#7c8a9a}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.calendar-day,.calendar-gap{min-width:0;min-height:64px;padding:6px 2px;border-radius:9px}
.calendar-day{display:flex;flex-direction:column;align-items:center;gap:5px;justify-content:flex-start;background:#fff;border:1px solid var(--border);color:#2a3d55;font-weight:600}
.calendar-day strong{font-size:13px;line-height:1.15}
.calendar-day-count{background:#e8effe;color:var(--primary);border-radius:7px;font-size:11px;min-width:20px;padding:2px 5px;text-align:center}
.calendar-day[aria-pressed="true"]{background:#eaf1ff;border-color:#96b2f2;color:#214eb7;box-shadow:0 0 0 1px #9fbcf3}
.calendar-daily{border-top:1px solid var(--border);margin-top:17px;padding-top:16px}
.calendar-daily h3{margin-bottom:13px}
.calendar-visit-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:4px}
.calendar-visit-row strong{overflow-wrap:anywhere}
.calendar-visit-row span{flex:none;font-size:12px}
@media(max-width:480px){.calendar-grid,.calendar-weekdays{gap:3px}.calendar-day,.calendar-gap{min-height:51px;border-radius:7px}.calendar-day{padding:5px 1px}.calendar-day strong{font-size:12px}.calendar-day-count{font-size:10px;padding:2px 4px}}

/* Advisory schedule conflicts: warn but do not block parallel workshop work. */
.calendar-day-conflict .calendar-day-count{background:#fff0da;color:#91520c}
.calendar-day-conflict strong::after{content:' •';color:#a35d08}
.calendar-visit-conflict{border-color:#e7c78f;background:#fffcf7}
.calendar-conflict-hint{color:#945411;font-size:12px;font-weight:650;margin:5px 0 8px}

/* Diagnostic report preview link in the saved order editor. */
.report-preview-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.report-preview-link{display:inline-flex;justify-content:center;align-items:center;min-height:40px;padding:8px 11px;border:1px solid #cdd7e3;border-radius:8px;text-decoration:none;color:#29415c;font-size:12px;font-weight:700;background:#fff}
.report-preview-link[hidden]{display:none!important}
.report-preview-link:focus-visible{outline:3px solid #7ba1fa;outline-offset:2px}
@media(max-width:650px){.report-preview-actions{justify-content:flex-end}.report-preview-link{min-height:44px}}

/* Saved-report archive controls, never shown when the database feature is disabled. */
.report-preview-actions #issueDiagnosticReport[hidden],
.report-preview-actions #openIssuedReport[hidden]{display:none!important}
.report-preview-actions #issueDiagnosticReport{min-height:44px;font-size:12px}

#orderClosedNote[hidden]{display:none!important}
#orderClosedNote{font-weight:600}

/* Tenant-scoped financial overview, mobile first. */
.finance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.finance-summary>div{min-width:0;padding:16px;border:1px solid #d5dfe8;border-radius:12px;background:#f7f9fb;display:flex;flex-direction:column;gap:8px}
.finance-summary span{font-size:12px;color:#516779}
.finance-summary strong{font-size:21px;line-height:1.1;overflow-wrap:anywhere}
.finance-summary small{font-size:11px;color:#64748b}
.finance-payments{padding:0;list-style:none;margin:9px 0}
.finance-payments li{display:flex;gap:8px;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8f0;padding:12px 0}
.finance-payments li div{display:flex;flex-direction:column;gap:3px;min-width:0}
.finance-payments li strong{font-size:13px;overflow-wrap:anywhere}
.finance-payments li small{color:#66788a;font-size:11px}
.finance-payments .finance-amount{white-space:nowrap;font-size:13px;font-weight:700}
@media(max-width:420px){.finance-summary{gap:8px}.finance-summary>div{padding:12px}.finance-summary strong{font-size:17px}}

/* Manual expense editor, usable on narrow phones. */
.finance-expense-section{margin-top:20px;border-top:1px solid #dce4eb;padding-top:15px}
.finance-expense-section h4{font-size:14px;margin:12px 0}
.finance-expense-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.finance-expense-fields>label{min-width:0}
.finance-expense-fields input,.finance-expense-fields select{max-width:100%}
.finance-expense-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.finance-expense-actions>strong{width:100%;text-align:right}
.finance-expense-actions button{font-size:11px;padding:6px 8px;min-height:32px}
.finance-expense-section #financeExpenseForm{padding-bottom:15px}
@media(max-width:420px){.finance-expense-fields{grid-template-columns:1fr}.finance-payments li{align-items:flex-start}}

/* KodLab compact navigation, summary cards and collapsible secondary actions. */
.record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.record-head h3{flex:1;min-width:0;margin:0;font-size:15px;line-height:1.35}
.record-status{flex:none;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:750;line-height:1.4;background:#e8f1fb;color:#2a5878}
.status-in_progress{background:#fff2d6;color:#79520b}
.status-done{background:#e5f4e9;color:#24623b}
.record>.muted{margin:5px 0 12px}
.record-open{width:100%;min-height:40px;font-size:13px}
.record-disclosure{margin-top:11px;border-top:1px solid var(--border);padding-top:4px}
.record-disclosure>summary{min-height:40px;padding:10px 3px;cursor:pointer;color:#52708a;font-size:12px;font-weight:700}
.record-disclosure[open]>summary{margin-bottom:6px}
.record-disclosure .record-actions{margin:10px 0 2px}
.record-notes{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.journal-overview{gap:8px}
.journal-overview>span{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0;padding:11px 12px;background:#fff;border:1px solid var(--border);border-radius:10px}
.journal-overview strong{font-size:20px;color:var(--foreground)}
.finance-entry-disclosure{border:1px solid var(--border);border-radius:10px;margin:12px 0;padding:0 12px}
.finance-entry-disclosure>summary{cursor:pointer;font-size:13px;font-weight:750;color:var(--primary);padding:14px 2px;min-height:46px}
.finance-entry-disclosure[open]>summary{border-bottom:1px solid var(--border)}
.finance-entry-disclosure #financeExpenseForm{padding-top:8px}
@media(max-width:650px){
  .shell{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
  .main-navigation{
    position:fixed;bottom:0;left:0;right:0;z-index:30;
    max-width:650px;margin:0 auto;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));
    border:1px solid #e2e7ed;border-bottom:0;
    border-radius:16px 16px 0 0;
    box-shadow:0 -8px 25px #20364a15;
    background:#fff;
  }
  .main-navigation button{display:flex;flex-direction:column;gap:2px;padding:5px 3px;min-height:51px;font-size:10px;line-height:1.2}
  .main-navigation button[aria-current="page"]{background:#e9f2f7}
  .nav-icon{font-size:21px}
  .page-heading{margin-top:8px}
  .journal-overview>span{padding:10px 8px}
  .journal-overview strong{font-size:18px}
  .record{padding:13px}
  .record-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
  .main-navigation{padding-left:6px;padding-right:6px}
  .main-navigation button{font-size:10px}
  .record-head{gap:6px}
  .record-status{font-size:10px}
}

/* Journal v2: dense one-tap rows, with rarely used controls kept accessible. */
.journal-overview{gap:13px;margin:0 0 11px;padding:0 2px}
.journal-overview>span{display:inline-flex;flex:none;flex-direction:row;align-items:center;gap:4px;padding:0;border:0;border-radius:0;background:transparent}
.journal-overview strong{font-size:12px;line-height:1.4;font-weight:800;color:var(--foreground)}
.records{display:grid;grid-template-columns:1fr;gap:7px}
#recordList > .record{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;gap:5px;padding:8px 10px;border-radius:11px}
.record-main{display:block;width:100%;min-height:53px;padding:4px 3px;border:0;background:transparent;text-align:left;color:var(--foreground)}
.record-main:hover{background:transparent}
.record-main:focus-visible,.record-disclosure>summary:focus-visible{outline:3px solid #8ab2d3;outline-offset:2px;border-radius:6px}
.record-main .record-head{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;min-width:0}
.record-title{display:block;flex:1;min-width:0;font-size:14px;line-height:1.35;font-weight:750;overflow-wrap:anywhere}
.record-main .record-client{display:block;margin-top:5px;margin-bottom:0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.record-main .record-vin{display:block;margin-top:3px;font-size:11px;line-height:1.35;color:#6b7a88;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.record-main .record-status{margin-top:1px;font-size:10px;padding:3px 6px;white-space:nowrap}
.record-disclosure{grid-column:2;grid-row:1;align-self:center;min-width:0;border:0;margin:0;padding:0}
.record-disclosure>summary{display:grid;place-items:center;list-style:none;width:40px;height:42px;padding:0;margin:0;border:1px solid transparent;border-radius:9px;color:#637486;cursor:pointer;font-size:23px;line-height:1}
.record-disclosure>summary::-webkit-details-marker{display:none}
.record-disclosure>summary:hover{background:#f1f5f7}
.record-disclosure[open]{grid-column:1/-1;grid-row:2;border-top:1px solid var(--border);padding-top:3px}
.record-disclosure[open]>summary{position:absolute;top:13px;right:11px;background:#f1f5f7}
.record-tools{padding:9px 5px 4px}
.record-tools .record-actions{margin-top:10px}
.record-tools .record-id{margin-top:6px}
.quick-order-panel{padding:0 14px;border-style:dashed;background:#fbfcfd}
#quickOrderDisclosure>summary{list-style:none;min-height:48px;display:flex;align-items:center;padding:10px 0;font-size:13px;font-weight:700;color:#56738a;cursor:pointer}
#quickOrderDisclosure>summary::-webkit-details-marker{display:none}
#quickOrderDisclosure>summary::after{content:'＋';margin-left:auto;font-size:17px}
#quickOrderDisclosure[open]>summary::after{content:'−'}
#quickOrderDisclosure>p{padding-top:8px}
#quickOrderDisclosure>form{padding-bottom:14px}
@media(max-width:650px){
  #journalPanel .section-heading{margin-bottom:10px}
  #journalPanel .section-heading h2{font-size:17px}
  .journal-search{margin-bottom:9px}
  .journal-search input{min-height:40px}
  .journal-filters{margin-bottom:10px}
  .journal-overview{gap:10px}
  #recordList > .record{padding:7px 9px}
  .record-title{font-size:13px}
  .record-main .record-status{font-size:10px}
}

/* Focused work mode: the order editor replaces the journal, not precedes it. */
#journalSurface.order-editor-mode > :not(#fullOrderPanel) { display:none !important; }
#quickNewRecord[hidden] { display:none !important; }
#journalSurface.order-editor-mode > #fullOrderPanel { margin-top:0; }

/* Touch-friendly dropdowns. Suggestions never change fields without selection. */
.smart-anchor{display:block;position:relative;min-width:0}
.smart-anchor.is-open{z-index:90}
.smart-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:100;max-height:235px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #b7c9d5;border-radius:11px;box-shadow:0 12px 28px #203a5240;padding:4px;-webkit-overflow-scrolling:touch}
.smart-list[hidden]{display:none!important}
.smart-anchor.open-above .smart-list{top:auto;bottom:calc(100% + 4px)}
.smart-option{display:block;width:100%;min-height:44px;padding:10px 12px;background:#fff;border:0;border-radius:7px;color:var(--foreground);font-size:14px;font-weight:500;text-align:left;overflow-wrap:anywhere}
.smart-option:hover,.smart-option[aria-selected="true"]{background:#eaf3f9;color:#164c6d}
.smart-option:focus-visible{outline:2px solid #769cb6;outline-offset:-2px}
.full-order-editor .editor-section{overflow:visible}
.full-order-editor .editor-section>summary{border-radius:10px}

/* Keep journal-specific row grid from corrupting full vehicle cards. */
#vehicleList > .record{display:block;width:100%;min-width:0;padding:14px}
#vehicleList > .record > *{max-width:100%;min-width:0}
#vehicleList .record-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#vehicleList .record-actions > button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:8px 9px}
#vehicleList .record-id{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
/* iOS Safari date/time controls have an intrinsic min-width larger than 1fr. */
.vehicle-input-grid{min-width:0;max-width:100%}
.vehicle-input-grid > label{min-width:0;max-width:100%}
input[type="date"],input[type="time"]{min-width:0;width:100%;max-width:100%;min-inline-size:0;max-inline-size:100%}
.editor-section,.editor-section-content{min-width:0;max-width:100%}
@media(max-width:650px){
  #vehicleList > .record{padding:12px}
  #vehicleList .record-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vehicle-input-grid{grid-template-columns:minmax(0,1fr)}
}

/* iOS standalone PWA: do not let scrolling fields show behind clock/icons. */
/* Status-bar clearance belongs to the topbar, not an overlay above it. */


/* KodLab commercial visual reference, approved 17 October 2026.
   Styling is intentionally scoped to the beta; APIs and access policies stay unchanged. */
:root{
  --background:#f6f6f9;--foreground:#151626;--card:#fff;
  --primary:#7c103f;--primary-deep:#5f0b31;--muted:#777b8d;
  --border:#e9e9f0;--soft:#f2f2f7;--accent:#f8edf1;
  --danger:#b32b46;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
body{background:linear-gradient(180deg,#fff 0,#f6f6f9 420px)}
.shell{max-width:1080px}
.topbar{background:#fff;border-bottom:0}
.brand{flex-direction:column;align-items:flex-start;gap:0}
.brand-logo{height:52px}
.brand-subtitle{font-size:11px;letter-spacing:.2px;margin-top:-8px}
.avatar{background:#f9eaf0;color:var(--primary);border:0}
.pill{background:#f8edf1;border-color:#efdbe5;color:var(--primary)}
.page-heading .primary,.primary{background:var(--primary);border-color:var(--primary)}
.primary:hover{background:var(--primary-deep)}
.secondary{color:var(--primary);border-color:var(--border)}
.secondary:hover{background:#fcf5f8}
input:focus,textarea:focus,select:focus{border-color:#b45d81}
input[type="checkbox"]{accent-color:var(--primary)}
.panel{border:1px solid #eeeef3;box-shadow:0 5px 20px #2c183009;border-radius:16px}
.page-heading h2{font-weight:780;letter-spacing:-.6px}
.main-navigation{border-color:#eeeef3}
.main-navigation button[aria-current="page"]{background:#f8edf2;color:var(--primary)}
.more-icon{background:#f9edf2;color:var(--primary)}
.count{background:#f8edf2;color:var(--primary)}
.journal-filters button{border-radius:100px;padding:8px 16px}
.journal-filters button[aria-pressed="true"]{background:var(--primary);color:#fff;border-color:var(--primary)}
#journalPanel .journal-search input,#vehicleSearch{
  background:#f3f3f7;border:1px solid transparent;border-radius:12px;
  min-height:49px;padding-left:15px
}
#journalPanel .journal-search input:focus,#vehicleSearch:focus{border-color:#c48ba3;background:#fff}
#recordList>.record{border-radius:16px;background:#fff;border-color:#efedf3;box-shadow:0 3px 14px #34203808;padding:14px}
.record-title{color:var(--foreground)}
.record-main .record-status{font-weight:650}
.record-status{background:#e7f2ff;color:#1874c9}
.record-status.status-in_progress{background:#fff0da;color:#a86913}
.record-status.status-done{background:#dff7ef;color:#128c73}
#recordList .record-client{font-weight:600;color:#303345}
#recordList .record-vin{color:#888c9d}
#journalSurface .journal-overview{display:none}
.home-surface{padding-bottom:24px}
.home-hero{
  padding:23px 24px;border-radius:19px;margin:6px 0 16px;
  background:linear-gradient(110deg,#fff 0%,#f4f2f7 66%,#dfd6e0 100%);
  min-height:127px;border:1px solid #efedf3
}
.home-hero .eyebrow{color:#9a5a78;margin-bottom:9px}
.home-hero h2{font-size:25px;letter-spacing:-.8px;color:#141527;margin:0 0 7px}
.home-hero p:last-child{margin:0;color:#73778a;font-size:13px}
.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 15px!important;padding:0}
#homeSurface .home-metrics>span{
  display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0;
  background:#fff;border:1px solid #eeeef3;border-radius:15px;
  padding:15px 17px;box-shadow:0 4px 16px #341d3108
}
.home-metrics small{font-size:12px;color:#777b8c}
#homeSurface .home-metrics strong{
  font-size:27px;line-height:1.1;color:var(--primary);font-weight:800
}
.home-primary-action{
  display:flex;align-items:center;gap:14px;width:100%;border-radius:15px;
  color:#fff;background:linear-gradient(105deg,#681038,#900f4b);
  min-height:67px;margin-bottom:15px;font-size:23px;text-align:left;
  padding:13px 19px
}
.home-primary-action span:nth-child(1){font-size:17px;font-weight:750;flex:1}
.home-primary-action span:last-child{font-size:31px;font-weight:400}
.home-primary-action:hover{background:var(--primary-deep)}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-shortcuts button{
  min-height:108px;display:flex;align-items:flex-start;flex-direction:column;gap:3px;
  background:#fff;border:1px solid #eeeef3;border-radius:15px;text-align:left;
  padding:14px;box-shadow:0 4px 15px #341d3108
}
.home-shortcuts button:hover{border-color:#d4a3b6;background:#fffbfc}
.home-shortcuts strong{font-size:14px;font-weight:750;color:#171827;line-height:1.25}
.home-shortcuts small{font-size:11px;font-weight:450;color:#858899}
.shortcut-icon{
  display:grid;place-items:center;background:#f9eef2;color:var(--primary);
  width:36px;height:36px;border-radius:11px;margin-bottom:6px;font-size:21px
}
.home-section-heading{display:flex;justify-content:space-between;align-items:center;margin:25px 0 11px;gap:12px}
.home-section-heading h2{margin:0;font-size:19px;font-weight:800}
.home-section-heading button{color:var(--primary);font-size:12px;padding:5px 2px}
.home-recent-orders{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.home-recent-order{background:#fff;border:1px solid #eeeef3;border-radius:14px;box-shadow:0 3px 13px #341d3106}
.home-order-open{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:14px 16px;text-align:left;min-height:75px
}
.home-order-content{display:grid;gap:2px;min-width:0}
.home-order-content strong{font-size:13px;font-weight:800}
.home-order-title{font-size:12px;overflow-wrap:anywhere}
.home-order-vin{font-size:11px;color:#9294a0}
.home-order-open .record-status{white-space:nowrap;font-size:10px}
.home-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-tools button{min-height:86px}
.vehicle-search{margin:15px 0}
.vehicle-editor{background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--border);margin-top:12px}
.vehicle-editor>summary{
  min-height:65px;background:linear-gradient(105deg,#681038,#900f4b);
  color:#fff;font-size:17px;font-weight:750;list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;padding:13px 20px
}
.vehicle-editor>summary::-webkit-details-marker{display:none}
.vehicle-editor>summary span{font-size:25px;font-weight:400}
.vehicle-editor[open]>summary{margin-bottom:10px}
.vehicle-editor>form{padding:14px}
.vehicle-list-section{border-top:0;margin-top:4px;padding-top:0}
.vehicle-list-section>h3{font-size:17px;margin-bottom:13px}
#vehicleList{gap:10px}
#vehicleList>.vehicle-card{border-radius:15px;background:#fff;border-color:#eeeef3;box-shadow:0 3px 15px #341d3108}
.vehicle-card-body{display:flex;align-items:flex-start;gap:13px}
.vehicle-brand{
  display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;
  border:1px solid #e9e9ef;border-radius:15px;background:#f8f8fa;
  font-size:14px;color:#24466d;font-weight:850;letter-spacing:-.7px
}
.vehicle-card-facts{min-width:0;flex:1}
.vehicle-card-facts h3{color:#171827;margin:0 0 4px;font-size:16px}
.vehicle-card-facts p{margin:3px 0;overflow-wrap:anywhere}
.vehicle-vin{font-size:11px;color:#86889b;letter-spacing:.2px}
.vehicle-specs{font-size:12px;color:#525468}
.vehicle-client{font-size:12px;color:#767b8b}
#vehicleList .vehicle-history-action{grid-column:1/-1}
#vehicleList .record-actions{margin-top:14px}
#vehicleList .record-actions button{border-radius:9px}
.vehicle-visit-panel{background:#fff;border:1px solid var(--border);border-radius:14px;padding:17px;margin-top:20px}
.vehicle-visit-panel .visit-item{border-left:3px solid #16a788;border-radius:12px;background:#fafbfc}
@media(max-width:650px){
  .shell{padding-left:12px;padding-right:12px}
  .topbar{margin-bottom:4px}
  .brand-subtitle{display:block;margin-top:-9px}
  .workspace-header{padding:3px 0 0}
  .workspace-header h1{font-size:13px}
  .page-heading{margin:13px 0}
  #workspace:has(#homeSurface:not([hidden])) .page-heading{display:none}
  .home-hero{padding:19px 16px;min-height:112px}
  .home-hero h2{font-size:22px}
  .home-metrics{gap:7px}
  #homeSurface .home-metrics>span{padding:13px 10px;min-height:88px}
  #homeSurface .home-metrics strong{font-size:24px}
  .home-metrics small{font-size:11px}
  .home-primary-action{min-height:66px}
  .home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .home-shortcuts button{padding:12px 10px;min-height:109px}
  .home-shortcuts strong{font-size:12px}
  .home-shortcuts small{font-size:10px}
  .home-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-tools button{min-height:100px}
  .main-navigation{
    background:rgba(255,255,255,.98);border-color:#efedf3;
    box-shadow:0 -7px 20px #35102a0d;border-radius:0
  }
  .main-navigation button{flex:1;gap:3px}
  .main-navigation button[aria-current="page"]{background:transparent;color:var(--primary)}
  .main-navigation button[aria-current="page"] .nav-icon{font-weight:900}
  .nav-icon{font-size:22px;min-height:23px}
  #vehiclesPanel .section-heading h2{font-size:22px}
}
@media(max-width:360px){
  .home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  #homeSurface .home-metrics>span{padding:10px 7px}
  #homeSurface .home-metrics strong{font-size:21px}
  .home-metrics small{font-size:10px}
  .main-navigation button{padding:4px 1px;font-size:9px}
}


/* Reference screen refinements: calendar, finance, service order. */
#calendarSurface>.panel,#financeSurface>.panel{border:0;background:transparent;box-shadow:none;padding:0}
.calendar-heading{flex-wrap:wrap;align-items:center;margin:10px 0 15px}
.calendar-heading h2{font-size:23px}
.calendar-heading-actions{display:flex;gap:8px;align-items:center}
.calendar-view-switch{background:#f0f0f5;padding:4px;border-radius:12px;display:flex;gap:3px}
.calendar-view-switch button{color:#757688;border-radius:9px;padding:8px 13px;min-height:39px;font-size:12px}
.calendar-view-switch button[aria-pressed="true"]{background:var(--primary);color:#fff}
#calendarToday{min-height:40px;padding:8px 10px}
#calendarWorkspace{background:#fff;border:1px solid #eeedf2;border-radius:16px;padding:15px;box-shadow:0 4px 18px #36152d08}
.calendar-month-nav{margin:0 0 15px}
.calendar-month-nav strong{font-size:19px;color:#171827}
.calendar-month-nav button,.calendar-day-nav button{border-radius:10px;background:#f6f6f9;border:0}
.calendar-day{color:#272a3b;border-color:#f1f0f5;background:#fff;border-radius:10px}
.calendar-day-count{background:#f9edf3;color:var(--primary);border-radius:100px}
.calendar-day[aria-pressed="true"]{
  background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none
}
.calendar-day[aria-pressed="true"] .calendar-day-count{background:#ffffff30;color:#fff}
.calendar-day-conflict[aria-pressed="true"] strong::after{color:#fff3ce}
.calendar-daily{padding-top:17px;margin-top:17px}
.calendar-daily h3{font-size:18px}
.calendar-day-nav{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:3px 0 12px}
.calendar-day-nav strong{font-size:16px}
#calendarVisits{gap:10px}
#calendarVisits>.visit-item{
  border-radius:13px;background:#fff;border:1px solid #ececf2;border-left:4px solid var(--primary);
  padding:13px 15px;box-shadow:0 3px 10px #32162a08
}
#calendarVisits .calendar-visit-row strong{font-size:14px}
#calendarVisits .calendar-visit-row span{font-weight:700;color:var(--primary)}
#calendarVisits .visit-item button{border-radius:10px}
#financeSurface .section-heading h2{font-size:23px}
#financeSurface>.panel>.muted{margin-bottom:15px}
.finance-summary{gap:10px;margin:9px 0 16px}
.finance-summary>div{
  background:#fff;border:1px solid #ecebf1;border-radius:15px;
  min-height:105px;box-shadow:0 4px 15px #32162a08
}
.finance-summary strong{color:var(--primary);font-size:23px}
#financePaidAmount{color:#119b73}
#financeUnpaidAmount{color:#a96817}
#financeExpenseAmount{color:#bd3a57}
#financeProfitAmount{color:var(--primary)}
#financeContent>h3{font-size:19px;margin:22px 0 11px}
#financePayments li,#financeExpenseList li{
  background:#fff;border:1px solid #efedf2;border-radius:12px;margin-bottom:8px;
  padding:14px 12px;box-shadow:0 3px 12px #351d3008
}
#financePayments li strong,#financeExpenseList li strong{color:#24243a}
#financePayments .finance-amount{color:#128e71}
.finance-expense-section{background:#fff;border:1px solid #efedf2;border-radius:16px;margin-top:20px;padding:15px}
.finance-entry-disclosure>summary{color:var(--primary)}
.finance-expense-actions button{border-radius:9px}
.full-order-editor{background:transparent;border:0;box-shadow:none;padding:0}
.full-order-editor>.section-heading{margin-bottom:14px}
.full-order-editor>.section-heading h2{font-size:22px;color:#171827}
.full-order-editor>p.muted{font-size:12px}
.editor-section{border-radius:15px;border-color:#ecebf2;box-shadow:0 3px 14px #36152d08}
.editor-section>summary{min-height:65px;display:flex;flex-direction:row;gap:12px;align-items:center;padding:13px 18px}
.editor-section>summary::before{
  content:"▤";display:grid;place-items:center;width:37px;height:37px;
  background:#faf0f4;color:var(--primary);border-radius:10px;font-size:20px;flex:none
}
.editor-section:nth-of-type(1)>summary::before{content:"▧"}
.editor-section:nth-of-type(2)>summary::before{content:"▤"}
.editor-section:nth-of-type(3)>summary::before{content:"⌕"}
.editor-section:nth-of-type(4)>summary::before{content:"⚒"}
.editor-section:nth-of-type(5)>summary::before{content:"✓"}
.editor-section:nth-of-type(6)>summary::before{content:"₽"}
.editor-section>summary strong{color:#202036;font-weight:780}
.editor-section>summary span{font-size:11px;color:#85889b}
.editor-section>summary::after{color:var(--primary)}
.editor-section[open]>summary{background:#fff;border-bottom-color:#eeeef3}
.editor-section-content{background:#fff}
#fullOrderForm input,#fullOrderForm select,#fullOrderForm textarea{
  background:#fefeff;border:1px solid #dfdfe8;border-radius:10px
}
.report-preview-link{border-radius:9px;color:var(--primary);border-color:#e6cad7;background:#fff}
.report-preview-actions #issueDiagnosticReport{background:var(--primary);color:#fff}
@media(max-width:650px){
  #calendarWorkspace{padding:10px}
  .calendar-heading{align-items:flex-start}
  .calendar-heading h2{font-size:21px}
  .calendar-heading-actions{width:100%;justify-content:space-between}
  .calendar-day,.calendar-gap{min-height:49px}
  .calendar-day strong{font-size:13px}
  .calendar-day-count{font-size:9px;min-width:17px}
  .finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .finance-summary>div{min-height:99px;padding:11px}
  .finance-summary strong{font-size:19px}
  .editor-section>summary{padding:12px}
  .editor-section>summary::before{width:33px;height:33px}
}


/* Dedicated vehicle profile from approved reference screenshots. */
#vehicleWorkspace.vehicle-detail-mode>.vehicle-editor,
#vehicleWorkspace.vehicle-detail-mode>.vehicle-search,
#vehicleWorkspace.vehicle-detail-mode>.vehicle-list-section,
#vehicleWorkspace.vehicle-detail-mode>.vehicle-isolation{display:none!important}
.vehicle-detail-screen{padding:0;margin:0 0 20px}
.vehicle-detail-top{display:flex;align-items:center;gap:14px;justify-content:space-between;margin:3px 0 13px}
.vehicle-detail-top>.secondary{padding:8px 11px;border-radius:10px;min-height:40px}
.vehicle-detail-caption{font-size:12px;color:#92909d}
.vehicle-detail-hero{
  display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #ecebf2;
  border-radius:16px 16px 0 0;padding:22px 20px;min-height:140px
}
.vehicle-detail-hero>.vehicle-brand{width:75px;height:75px;flex-basis:75px;border-radius:23px;font-size:20px;background:#fcf9fb}
.vehicle-detail-heading{flex:1;min-width:0}
.vehicle-detail-heading h2{font-size:23px;margin:0 0 6px;letter-spacing:-.5px}
.vehicle-detail-heading .muted{font-size:13px}
.vehicle-detail-vin{display:inline-flex;align-items:center;gap:9px;text-align:left;font-size:12px;min-height:35px;border:0;padding:4px 0;color:#71768a;overflow-wrap:anywhere}
.vehicle-detail-vin span:last-child{color:var(--primary);font-size:18px}
.vehicle-detail-facts{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
  background:#fff;border:1px solid #ecebf2;border-top:0;border-radius:0 0 16px 16px;
  overflow:hidden;box-shadow:0 4px 18px #36152d0b
}
.vehicle-detail-facts>div{min-width:0;padding:15px 20px;display:flex;flex-direction:column;gap:3px;border-top:1px solid #f2f0f4}
.vehicle-detail-facts>div:nth-child(odd){border-right:1px solid #f2f0f4}
.vehicle-detail-facts small{color:#85899a;font-size:11px}
.vehicle-detail-facts strong{color:#232437;font-size:14px;font-weight:720;overflow-wrap:anywhere}
.vehicle-detail-notes{white-space:pre-wrap;margin-top:13px;background:#fff;border-radius:12px;padding:13px;color:#646677;font-size:12px}
.vehicle-detail-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;margin-top:15px}
.vehicle-detail-actions button{min-height:58px;border-radius:13px;font-size:14px}
.vehicle-visit-panel{border:0;padding:0;margin-top:22px;background:transparent}
.vehicle-visit-panel .section-heading{margin-bottom:14px}
.vehicle-visit-panel .section-heading h3{font-size:19px}
.vehicle-visit-panel>p.muted{font-size:12px}
.vehicle-visit-panel #visitLinkForm{
  background:#fff;border:1px solid #ecebf2;border-radius:13px;
  padding:11px 13px;margin-bottom:16px
}
.vehicle-visit-panel #visitLinkForm label{margin:4px 0 12px}
.vehicle-visit-panel .vehicle-visit-timeline{
  position:relative;padding:14px 15px 13px 19px;
  background:#fff;border:1px solid #ecebf2;border-left:3px solid #17a688;
  border-radius:13px;box-shadow:0 3px 13px #36152d08
}
.vehicle-visit-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
.vehicle-visit-date{font-size:12px;font-weight:800;color:var(--primary)}
.vehicle-visit-title{font-size:14px;color:#202134;overflow-wrap:anywhere}
.vehicle-visit-description{font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#7c7f8d}
.vehicle-visit-meta{font-size:11px;color:#838697}
.vehicle-visit-actions{display:flex;flex-wrap:wrap;gap:8px}
.vehicle-visit-actions button{min-height:37px;padding:7px 12px;border-radius:9px}
@media(max-width:650px){
  .vehicle-detail-hero{padding:17px 14px;min-height:120px}
  .vehicle-detail-hero>.vehicle-brand{width:62px;height:62px;flex-basis:62px;font-size:17px}
  .vehicle-detail-heading h2{font-size:19px}
  .vehicle-detail-facts>div{padding:12px 13px}
  .vehicle-detail-facts strong{font-size:13px}
  .vehicle-detail-actions{gap:8px}
  .vehicle-detail-actions button{min-height:54px;padding:10px 8px;font-size:12px}
  .vehicle-visit-panel #visitLinkForm{padding:10px}
}


/* Calendar day appointment controls use same compact VAG KodLab reference. */
.calendar-visits-heading{
  display:flex;justify-content:space-between;align-items:center;gap:9px;
  flex-wrap:wrap;margin-bottom:10px
}
.calendar-visits-heading h3{margin:0;font-size:18px}
.calendar-visits-heading button{
  min-height:40px;padding:7px 12px;border:1px solid #e5cad6;
  border-radius:10px;color:var(--primary);background:#fff;font-size:12px
}
.calendar-visits-heading button:hover{background:#fdf4f8}
@media(max-width:390px){
  .calendar-visits-heading button{padding:7px 9px;font-size:11px}
}


/* ============================================================================
 * KodLab approved iPhone reference — unified component pass / October 2026
 * Self-hosted vector brand/cars, dense cards, 3+2 shortcuts, no stock imagery.
 * ============================================================================ */
:root{--kl-burgundy:#7c103f;--kl-deep:#5f0b31;--kl-page:#f6f6f9;--kl-ink:#171827;--kl-sub:#7d8090;--kl-line:#ecebf2}
body{background:var(--kl-page);color:var(--kl-ink)}
.topbar{align-items:center;min-height:77px;border-bottom:1px solid #f0edf2}
.header-icon{display:grid;place-items:center;border-radius:12px;padding:0;min-width:39px;height:39px;background:transparent;color:#40404c}
.header-icon:hover{background:#f9f0f5}
.header-icon .kl-icon{width:23px;height:23px}
.topbar-right{gap:9px}
.topbar-right .avatar{border:0;background:#f5e5ed;font-size:13px;color:var(--kl-burgundy);width:37px;height:37px;min-height:37px;padding:0;border-radius:50%}
.brand-logo{max-width:151px;height:auto;max-height:51px}
.brand-subtitle{color:#9b929d;font-weight:500;font-size:10px}
.kl-icon{display:inline-block;vertical-align:middle;flex:none}
.nav-icon{display:grid;place-items:center;height:24px;min-height:24px}
.nav-icon .kl-icon{width:22px;height:22px}
.home-surface{max-width:890px;margin:0 auto}
.home-hero{
  display:flex;align-items:center;position:relative;overflow:hidden;isolation:isolate;
  min-height:169px;background:linear-gradient(110deg,#e7dde4 0%,#eeeaf0 43%,#c7c4d1 70%,#a6a8b3 100%);
  border:1px solid #ece8ec;border-radius:19px;box-shadow:0 8px 20px #391a300d;
  padding:23px 25px;margin-top:9px;margin-bottom:16px
}
.home-hero::after{content:"";position:absolute;inset:auto -13% -60% 45%;height:80%;background:#dde2e97c;filter:blur(24px);border-radius:50%;z-index:0;pointer-events:none}
.home-hero-copy{z-index:2;position:relative;flex:0 0 52%;min-width:0}
.home-hero .eyebrow{color:#85697c;letter-spacing:1.2px;font-size:10px}
.home-hero h2{font-size:26px;font-weight:800;color:#211527;line-height:1.15;max-width:100%;overflow-wrap:anywhere}
.home-hero-copy>p:last-child{font-size:12px;max-width:220px;color:#675866}
.home-hero-car{position:absolute;right:-6%;bottom:-6%;width:60%;height:100%;z-index:1;display:flex;align-items:flex-end;justify-content:center}
.home-hero-car svg{width:100%;height:auto;max-height:175px;filter:drop-shadow(1px 10px 9px #1620363d)}
.home-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
#homeSurface .home-metrics>span{display:grid;grid-template-columns:1fr auto;align-content:center;align-items:center;gap:6px 3px;background:#fff;border:1px solid #efebf0;box-shadow:0 3px 13px #30132b09;padding:13px 14px}
.home-metrics i{grid-column:2;grid-row:1/3;color:var(--kl-burgundy);opacity:.65;font-style:normal}
.home-metrics .kl-icon{width:19px;height:19px}
#homeSurface .home-metrics small{grid-column:1;grid-row:1;font-weight:600;color:#747181;font-size:11px}
#homeSurface .home-metrics strong{grid-column:1;grid-row:2;color:var(--kl-ink);font-size:26px}
.home-metrics>span:nth-child(2) strong{color:#c58023!important}
.home-metrics>span:nth-child(3) strong{color:#169f76!important}
.home-primary-action{margin-bottom:14px;border-radius:14px;box-shadow:0 7px 14px #7c103f17}
.home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px}
.home-shortcuts button{gap:4px;justify-content:flex-start;min-height:113px;padding:12px;background:#fff;border:1px solid #efebf0;box-shadow:0 3px 12px #32153108;border-radius:15px}
.home-shortcuts .shortcut-icon{margin-bottom:4px;border-radius:10px;background:#f6e7ee;width:38px;height:38px;display:grid;place-items:center;color:var(--kl-burgundy)}
.home-shortcuts .shortcut-icon .kl-icon{width:20px;height:20px}
.home-shortcuts strong{font-size:13px;line-height:1.2;font-weight:750}
.home-shortcuts small{font-size:10px;color:#8a8796}
.home-shortcuts-wide{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-top:9px}
.home-shortcuts-wide button{min-height:83px;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;gap:1px 10px;align-content:center}
.home-shortcuts-wide .shortcut-icon{grid-column:1;grid-row:1/3;margin:0}
.home-shortcuts-wide strong{grid-column:2;grid-row:1;align-self:end}
.home-shortcuts-wide small{grid-column:2;grid-row:2;align-self:start}
.home-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.home-tools button{min-height:92px;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;gap:1px 10px;align-content:center}
.home-tools .shortcut-icon{grid-column:1;grid-row:1/3;margin:0}
.home-tools strong{grid-column:2;grid-row:1}
.home-tools small{grid-column:2;grid-row:2}
.home-recent-orders{gap:8px}
.home-order-open{display:flex;gap:10px;padding:13px;min-height:76px}
.kl-order-brand{flex:none;display:grid;place-items:center;width:46px;height:46px;background:#fff;border:1px solid #ebeaf0;border-radius:12px}
.kl-order-brand svg{display:block;max-width:39px;max-height:39px}
.home-order-content{flex:1;min-width:0;gap:3px}
.home-order-content strong{font-weight:800;color:#1c1a27;font-size:13px}
.home-order-content .home-order-title{color:#656475;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-order-content .home-order-vin{font-size:10px;color:#9b96a1}
.home-order-side{align-self:flex-start}
.home-order-side .record-status{font-size:10px;border-radius:99px}
#journalPanel{padding:0;background:transparent;border:0;box-shadow:none}
#journalPanel .section-heading h2{font-size:24px;margin:0}
.kl-section-heading{align-items:center;margin:8px 0 14px}
.kl-section-heading .muted{font-size:12px;margin:5px 0 0}
.kl-section-heading>button{border-radius:11px;min-width:40px;min-height:40px}
.kl-search-row{display:grid;grid-template-columns:minmax(0,1fr) 45px;gap:8px;align-items:stretch;margin:0 0 12px}
.kl-search-row label{margin:0;min-width:0}
.kl-search-row input{height:46px;min-height:46px;width:100%;border-radius:12px}
.kl-filter-toggle{min-height:46px;width:45px;padding:5px;display:grid;place-items:center;border-radius:12px;background:#fff}
.kl-advanced-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:#fff;padding:12px;border-radius:13px;margin-bottom:12px;border:1px solid #efeaf0}
.kl-advanced-filters label{margin:0;min-width:0}
.kl-advanced-filters input,.kl-advanced-filters select{width:100%}
.kl-advanced-filters #journalClearFilters{grid-column:1/-1}
.journal-filters{gap:6px;margin-bottom:11px}
.journal-filters button{font-size:11px;border-radius:99px;min-height:36px;padding:6px 10px}
.kl-wide-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:51px;border-radius:13px;font-size:14px;margin-bottom:15px}
.kl-wide-primary .kl-icon{width:20px;height:20px}
#recordList{gap:9px}
#recordList>.record{border-radius:15px;background:#fff;grid-template-columns:minmax(0,1fr) 40px;padding:11px 11px}
#recordList>.record .record-main{display:flex;text-align:left;align-items:center;gap:11px;min-height:69px}
#recordList>.record .kl-record-copy{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
#recordList>.record .record-title{font-size:13px;font-weight:760;color:#242033;overflow:hidden;text-overflow:ellipsis}
#recordList>.record .record-client{font-size:12px;color:#666577;margin-top:1px}
#recordList>.record .record-vin{font-size:10px;color:#9795a5}
#recordList>.record .record-status{font-size:10px;max-width:96px;text-align:center}
#recordList>.record .record-head{min-width:0}
#recordList>.record .record-disclosure>summary{border-radius:11px}
#vehiclesPanel{padding:0;background:transparent;border:0;box-shadow:none}
#vehiclesPanel .section-heading h2{font-size:24px}
.vehicle-list-filters{display:flex;gap:7px;overflow-x:auto;margin:10px 0 13px;scrollbar-width:none}
.vehicle-list-filters button{font-size:11px;min-height:34px;padding:7px 10px;border-radius:99px;background:#fff;border:1px solid #ebe6ee;color:#716978;white-space:nowrap}
.vehicle-list-filters button[aria-pressed="true"]{background:var(--kl-burgundy);border-color:var(--kl-burgundy);color:#fff}
.vehicle-list-filters button span{font-weight:700;opacity:.85}
.kl-vehicle-info{display:flex;gap:9px;align-items:flex-start;border:1px solid #ece4f0;border-radius:13px;background:#f9f3fa;padding:11px;margin:11px 0 15px;color:#705a78}
.kl-vehicle-info>span{flex:none}
.kl-vehicle-info p{font-size:11px;line-height:1.4;margin:0;flex:1}
.kl-vehicle-info button{padding:0;min-height:20px;width:20px;font-size:19px;color:#85708a}
#vehicleList{gap:10px}
#vehicleList>.vehicle-card{position:relative;display:block!important;min-height:142px;padding:12px 37px 12px 10px;border-radius:16px}
#vehicleList>.vehicle-card>.kl-vehicle-open{display:block;min-height:0;width:100%;background:transparent;text-align:left;padding:0;border:0}
#vehicleList .vehicle-card-body{display:flex;gap:10px;min-width:0;align-items:center}
.kl-vehicle-artwork{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 115px;width:115px;height:120px;gap:1px}
#vehicleList .vehicle-brand{width:36px;height:36px;flex:none;border:0;background:transparent}
.kl-vehicle-art{display:grid;place-items:center;width:115px;height:79px;overflow:hidden}
.kl-vehicle-art .kl-car-visual{width:140px;min-width:140px;height:auto;transform:translate(-9px,-4px);filter:drop-shadow(0 4px 4px #2b29354d)}
#vehicleList .vehicle-card-facts{display:block;min-width:0;flex:1}
#vehicleList .vehicle-card-facts h3{font-size:14px;line-height:1.25;margin-bottom:5px;color:#211e2f}
#vehicleList .vehicle-card-facts p{font-size:11px;line-height:1.4;color:#787686}
#vehicleList .vehicle-card-facts .vehicle-vin{font-size:10px}
.kl-visit-chip{display:inline-block;border-radius:99px;background:#eef5f5;color:#327f83;font-size:10px;font-weight:700;padding:3px 7px;margin-bottom:5px}
.kl-vehicle-disclosure{position:absolute;top:9px;right:8px;z-index:3}
.kl-vehicle-more{list-style:none;display:grid;place-items:center;width:28px;height:34px;font-size:23px;cursor:pointer;border-radius:8px;color:#858493}
.kl-vehicle-more::-webkit-details-marker{display:none}
.kl-vehicle-disclosure[open]{left:7px;right:7px;top:7px;background:#fff;border:1px solid #e9e5ea;border-radius:12px;box-shadow:0 6px 22px #29152c25;padding:7px}
.kl-vehicle-disclosure[open]>.kl-vehicle-more{margin-left:auto}
#vehicleList .kl-vehicle-disclosure .record-actions{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#vehicleList .kl-vehicle-disclosure[open] .record-actions{display:grid}
.vehicle-detail-hero{min-height:178px;align-items:stretch;padding:13px 14px;background:linear-gradient(122deg,#fff 30%,#f4f3f7 100%);position:relative;overflow:hidden}
.vehicle-detail-copy{display:flex;flex-direction:column;gap:8px;position:relative;z-index:2;flex:0 0 55%;align-items:flex-start}
.vehicle-detail-copy>.vehicle-brand{flex:none;width:40px;height:40px;border:0;background:transparent}
.vehicle-detail-copy>.vehicle-brand svg{width:38px;height:38px}
.vehicle-detail-heading h2{font-size:20px;line-height:1.2}
.vehicle-detail-heading .muted{font-size:11px}
.vehicle-detail-vin{font-size:10px}
.vehicle-detail-picture{position:absolute;right:-11%;bottom:-5%;width:68%;height:95%;display:flex;align-items:flex-end;z-index:1}
.vehicle-detail-picture svg{width:100%;height:auto;max-height:160px;filter:drop-shadow(0 8px 5px #34405245)}
.vehicle-detail-facts{margin:0 0 15px}
.vehicle-visit-panel .vehicle-visit-timeline{border-left-color:var(--kl-burgundy)}
.kl-order-vehicle-summary{display:flex;gap:10px;align-items:center;position:relative;background:#fff;border:1px solid #ebeaf0;border-radius:15px;padding:12px;min-height:105px;overflow:hidden;margin:11px 0 15px}
.kl-mini-mark{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#f8f6f9;z-index:2}
.kl-order-vehicle-copy{z-index:2;display:flex;flex-direction:column;gap:3px;max-width:61%}
.kl-order-vehicle-copy strong{font-size:14px}
.kl-order-vehicle-copy #orderVehicleNote{font-size:10px;color:#8d8a9b;overflow-wrap:anywhere}
.kl-order-vehicle-image{position:absolute;right:-9%;bottom:-21%;width:52%;opacity:.95}
.kl-order-vehicle-image svg{width:100%;max-height:138px;filter:drop-shadow(0 6px 5px #24263335)}
.editor-section{border-radius:15px;margin:9px 0;border-color:#eae8ef}
.editor-section>summary{min-height:62px}
.editor-section>summary strong{font-size:14px}
.editor-section>summary span{font-size:11px}
.kl-finance-period,.kl-finance-transactions-title,.kl-finance-trend-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0}
.kl-finance-period h3,.kl-finance-transactions-title h3,.kl-finance-trend-title h3{margin:0;font-size:17px}
.kl-finance-period>span,.kl-finance-transactions-title>span,.kl-finance-trend-title>span{font-size:11px;color:#898694}
#financeContent .kl-finance-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 13px}
#financeContent .kl-finance-cards>div:not(#financeExpensesStats),#financeExpensesStats>div{
  display:flex;flex-direction:column;justify-content:space-between;gap:7px;
  background:#fff;border:1px solid #ebeaf0;border-radius:15px;min-height:110px;
  padding:12px 10px;box-shadow:0 3px 13px #30132b08;min-width:0
}
#financeExpensesStats{display:contents}
#financeExpensesStats[hidden]{display:none!important}
#financeContent .kl-finance-cards span{font-size:11px;color:#767386;display:flex;align-items:center;justify-content:space-between}
#financeContent .kl-finance-cards .kl-icon{width:16px;height:16px;color:#9a8599}
#financeContent .kl-finance-cards strong{font-size:17px;white-space:normal;overflow-wrap:anywhere;line-height:1.16}
#financeContent .kl-finance-cards small{font-size:9px;color:#8d8a98}
.kl-finance-trend{background:#fff;border:1px solid #ebeaf0;border-radius:16px;padding:15px;box-shadow:0 4px 17px #32153109}
.kl-finance-trend-title{margin:0 0 12px}
.kl-finance-legend{display:flex;justify-content:flex-start;gap:18px;margin:0 0 12px;color:#85818e;font-size:11px}
.kl-finance-legend span{display:flex;align-items:center;gap:6px}
.kl-finance-legend span::before{content:"";height:8px;width:8px;border-radius:3px;background:var(--kl-burgundy)}
.kl-finance-legend .kl-expense-dot::before{background:#e3c9d5}
.kl-bar-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:12px;min-height:167px;padding:13px 3px 0;border-bottom:1px solid #eeebf0;background:repeating-linear-gradient(to top,transparent 0,transparent 35px,#f3eff3 36px)}
.kl-chart-month{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}
.kl-chart-bars{height:139px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.kl-chart-bar{display:block;border-radius:5px 5px 1px 1px;width:35%;min-width:3px;transition:height .15s ease}
.kl-chart-income{background:var(--kl-burgundy)}
.kl-chart-expense{background:#e3c9d5}
.kl-chart-label{font-size:10px;text-align:center;color:#898592}
.kl-finance-trend>p.muted{font-size:11px;margin:12px 0 0}
.kl-unpaid-note,.kl-finance-next{background:#fff;border-radius:13px;border:1px solid #ebeaf0;padding:12px 14px;margin:15px 0;font-size:12px;color:#777282}
.kl-unpaid-note strong{margin-left:5px;color:#1c1b2a}
.kl-unpaid-note small{font-size:10px;color:#9993a2;margin-left:9px}
.kl-finance-next h3{font-size:16px;margin-bottom:7px;color:#211c2a}
.kl-finance-next p{font-size:12px;margin-bottom:11px}
.kl-finance-next button{font-size:12px}
.kl-placeholder-screen{max-width:550px;margin:20px auto;padding:34px 20px;background:#fff;border:1px solid #eeeaf0;border-radius:17px;text-align:center}
.kl-placeholder-screen h2{font-size:23px;margin:15px 0 9px}
.kl-placeholder-screen p{font-size:13px;color:#888493;line-height:1.5}
.kl-placeholder-symbol{display:grid;place-items:center;width:64px;height:64px;background:#f7eaf0;border-radius:19px;color:var(--kl-burgundy);margin:auto}
.kl-placeholder-symbol .kl-icon{width:30px;height:30px}
.kl-placeholder-screen button{margin-top:14px}
@media(max-width:650px){
 .topbar{padding-bottom:5px}
 .home-hero{padding:18px 15px;min-height:149px}
 .home-hero h2{font-size:22px}
 .home-hero-car{width:65%;right:-18%}
 .home-hero-copy{flex-basis:64%}
 .home-hero-copy>p:last-child{max-width:185px;font-size:11px}
 #homeSurface .home-metrics>span{padding:10px 8px;min-height:90px}
 #homeSurface .home-metrics small{font-size:9px}
 #homeSurface .home-metrics strong{font-size:23px}
 #homeSurface .home-metrics i{opacity:.6}
 .home-shortcuts{gap:7px}
 .home-shortcuts button{padding:11px 9px;min-height:106px}
 .home-shortcuts strong{font-size:11px}
 .home-shortcuts small{font-size:9px}
 .home-shortcuts-wide button{min-height:79px}
 .home-tools button{min-height:84px}
 #recordList>.record .record-main{gap:8px}
 .kl-order-brand{width:41px;height:42px}
 .kl-order-brand svg{width:34px;height:34px}
 #vehicleList>.vehicle-card{padding-right:36px}
 .kl-vehicle-artwork{flex-basis:106px;width:106px}
 .kl-vehicle-art{width:106px}
 .vehicle-detail-picture{right:-23%;width:74%}
 .kl-bar-chart{gap:6px}
 .kl-chart-bars{gap:2px}
 #financeContent .kl-finance-cards>div:not(#financeExpensesStats),#financeExpensesStats>div{padding:10px 8px;min-height:101px}
 #financeContent .kl-finance-cards strong{font-size:15px}
 .kl-finance-trend{padding:13px 10px}
}
@media(max-width:370px){
  .home-hero-car{right:-22%;width:70%}
  #homeSurface .home-metrics strong{font-size:20px}
  .home-shortcuts-wide strong{font-size:11px}
  .kl-vehicle-artwork{flex-basis:86px;width:86px}
  .kl-vehicle-art{width:86px}
  .kl-vehicle-art .kl-car-visual{width:113px;min-width:113px}
  #vehicleList .vehicle-card-facts h3{font-size:12px}
  #financeContent .kl-finance-cards strong{font-size:13px}
  #recordList>.record .record-title{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.kl-chart-bar{transition:none}html{scroll-behavior:auto}}


/* Private issued documents archive. */
.kl-documents-screen{max-width:870px;margin:0 auto;padding:3px 0 25px}
.kl-documents-hint{font-size:12px;line-height:1.5;color:#8b8795;margin:0 0 13px}
.kl-documents-screen .journal-search{margin-bottom:13px}
#documentsSearch{border:1px solid #edeaf0;background:#fff;border-radius:12px;min-height:48px}
.kl-documents-list{list-style:none;display:grid;gap:9px;padding:0;margin:12px 0}
.kl-document-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #ece8ef;background:#fff;border-radius:14px;padding:13px;box-shadow:0 3px 13px #30132b07;min-width:0}
.kl-document-icon{display:grid;place-items:center;color:var(--kl-burgundy);background:#f6e7ef;width:42px;height:42px;border-radius:12px}
.kl-document-copy{display:grid;gap:3px;min-width:0}
.kl-document-copy strong{font-size:13px;color:#252131;overflow-wrap:anywhere}
.kl-document-copy span{font-size:11px;color:#777384}
.kl-document-copy small{font-size:10px;color:#928d9b;overflow-wrap:anywhere}
.kl-document-actions{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.kl-document-actions button,.kl-document-actions a{display:grid;place-items:center;border-radius:9px;min-height:35px;padding:7px 9px;font-size:11px;font-weight:650;text-decoration:none;white-space:nowrap}
.kl-documents-back{margin-top:10px}
@media(max-width:450px){
  .kl-document-row{grid-template-columns:35px minmax(0,1fr);gap:8px;padding:10px}
  .kl-document-icon{width:35px;height:35px}
  .kl-document-actions{grid-column:1/-1;display:flex;flex-direction:row;justify-content:flex-end;margin-top:6px}
}


/* Contextual visit conflicts and mechanic-authored recommendations. */
.kl-calendar-conflict-note{display:block;background:#fff8eb;border:1px solid #f0dcaf;border-left:3px solid #d99b3e;padding:11px 12px;border-radius:10px;margin:10px 0;color:#8e6324;font-size:12px;line-height:1.45}
.kl-calendar-appointment{position:relative;display:flex;flex-direction:column;gap:9px;align-items:stretch;min-height:95px;background:#fff;border:1px solid #ece8ef;border-left:4px solid #7c103f;border-radius:13px;padding:14px;box-shadow:0 3px 11px #28142b08}
.kl-calendar-appointment>.record-status{position:absolute;right:12px;top:12px}
.kl-calendar-appointment-layout{display:grid;grid-template-columns:65px minmax(0,1fr);gap:13px;align-items:flex-start;padding-top:7px}
.kl-calendar-appointment-time{display:flex;flex-direction:column;gap:3px;border-right:1px solid #ece7ed;padding-right:9px}
.kl-calendar-appointment-time strong{font-size:18px;color:var(--kl-burgundy)}
.kl-calendar-appointment-time small{font-size:10px;color:#9992a1}
.kl-calendar-appointment-copy{display:flex;flex-direction:column;gap:3px;min-width:0;padding-right:55px}
.kl-calendar-appointment-copy strong{font-size:13px;color:#252235}
.kl-calendar-appointment-copy p{font-size:11px;color:#827c8d;margin:0;overflow-wrap:anywhere}
.kl-calendar-appointment-copy .kl-calendar-appointment-car{font-weight:650;color:#4d485b}
.kl-calendar-appointment-location{font-size:10px;color:#9a8498}
.kl-calendar-appointment>button{align-self:flex-end;font-size:11px;min-height:34px;border-radius:9px}
.kl-calendar-appointment.calendar-visit-conflict{border-left-color:#d49a47}
.kl-recommendations{margin:17px 0 3px;background:#fbf7ee;border:1px solid #ede1bf;border-radius:14px;padding:15px}
.kl-recommendations>div{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.kl-recommendation-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f4e6c7;color:#a57d3c}
.kl-recommendations h3{margin:0;font-size:15px;color:#675236}
.kl-recommendations p{font-size:12px;color:#7b6850;line-height:1.55;white-space:pre-wrap;margin:0}


/* Per-employee order price permission; finance overview is owner-only. */
.kl-staff-prices{margin-top:13px}
.kl-staff-prices h3{margin:0 0 7px;font-size:17px}
.kl-staff-prices>p{font-size:12px;color:#878391;line-height:1.5;margin:5px 0 11px}
.kl-staff-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kl-staff-member{display:flex;gap:12px;justify-content:space-between;align-items:center;border-radius:12px;padding:12px;border:1px solid #ebe7ef;background:#fff}
.kl-staff-identity{display:grid;gap:3px;min-width:0}
.kl-staff-identity strong{font-size:13px;color:#272233}
.kl-staff-identity small{font-size:11px;color:#888594;overflow-wrap:anywhere}
.kl-price-toggle{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#7c103f;cursor:pointer;white-space:nowrap;margin:0}
.kl-price-toggle input{width:18px;height:18px;accent-color:#7c103f;flex:none}
@media(max-width:420px){.kl-staff-member{flex-direction:column;align-items:stretch}.kl-price-toggle{justify-content:flex-start}}

/* One global page heading; local panels use distinct descriptive subheadings. */
#workspace>.page-heading{display:flex}

/* Team invitations and read-only developer administration. */
#teamSettings form{display:grid;gap:8px;grid-template-columns:1fr auto;align-items:end;margin:12px 0}
#teamSettings form label{margin:0;font-size:12px}
#teamSettings form input{width:100%;min-height:43px}
#teamSettings form button{min-height:43px;white-space:nowrap}
#staffInviteTokenPanel{padding:12px;margin:10px 0;background:#faf5f8;border:1px solid #e9dbe3;border-radius:12px}
#staffInviteTokenPanel label{margin:0;font-size:12px}
#staffInviteTokenPanel input{width:100%;font:11px ui-monospace,monospace;letter-spacing:.2px}
#staffInviteTokenPanel button{margin:9px 0}
#staffInviteTokenPanel small{display:block;color:#837a87;font-size:11px;line-height:1.4}
.kl-platform-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.kl-platform-stats>div{display:grid;gap:10px;align-items:center;justify-items:center;border-radius:14px;border:1px solid #eee9f0;background:#faf8fa;padding:18px 8px}
.kl-platform-stats small{font-size:11px;color:#79727f;text-align:center}
.kl-platform-stats strong{font-size:25px;color:#7c103f}
@media(max-width:480px){#teamSettings form{grid-template-columns:1fr}#teamSettings form button{width:100%}}

/* Licensed original manufacturer silhouettes; no synthetic emblem substitutions. */
.kl-brand-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block}
.kl-brand-audi{padding:2px}
.kl-brand-porsche{padding:4px}
.kl-order-brand>.kl-brand-image{max-width:39px;max-height:39px}
.vehicle-brand>.kl-brand-image{max-width:36px;max-height:36px}
.vehicle-detail-copy>.vehicle-brand>.kl-brand-image{max-width:40px;max-height:40px}

/* Real model photography; never imply that the image depicts a customer's VIN. */
.kl-car-photo{display:block;object-fit:cover;object-position:center center;background:#f1eff2;border-radius:10px}
.kl-vehicle-art .kl-car-photo{height:77px;width:115px;min-width:115px;transform:none;filter:none}
.home-hero-car .kl-car-photo{width:100%;height:150px;object-fit:cover;object-position:50% 56%;max-height:none;border-radius:14px}
.vehicle-detail-picture .kl-car-photo{width:100%;height:155px;max-height:none;object-fit:cover;object-position:52% 55%;border-radius:14px 0 0 14px}
.kl-order-vehicle-image .kl-car-photo{width:100%;height:123px;max-height:none;object-fit:cover;border-radius:12px}
@media(max-width:400px){.kl-vehicle-art .kl-car-photo{width:86px;min-width:86px;height:65px}}
.kl-photo-credit-link{color:#805672;font-size:10px;text-decoration:underline;text-underline-offset:2px}


/* Explicit hidden states win over card display grids for permissions. */
[data-surface="finance"][hidden],#platformEntry[hidden],#teamSettings[hidden],
#staffPriceSettings[hidden],#staffInviteTokenPanel[hidden],
#orderPricingSection[hidden],#orderPaidLabel[hidden],#orderPaidOnLabel[hidden]{
  display:none!important;
}
.kl-visit-number{display:block;margin:3px 0;font-size:10px;color:#8b6880;font-weight:650}
.report-number{font-weight:750;color:#7c103f;margin:5px 0 14px}


.media-credits-page{max-width:760px;margin:32px auto;padding:18px;font-size:14px;color:#3b3441;line-height:1.65}
.media-credits-page h1{font-size:24px;color:#241d2b}
.media-credits-page h2{font-size:17px;margin-top:22px}
.media-credits-page a{color:#7c103f;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.media-credit-list{padding-left:20px}
.media-credit-list li{margin:10px 0}


/* Level-one VIN decoding: voluntary government lookup, no automatic overwrite. */
.kl-vin-lookup{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin:-2px 0 7px}
.kl-vin-button{min-height:37px;padding:7px 12px;flex:none;font-size:12px;border:1px solid #dec9d2;color:#7c103f;border-radius:10px;background:#fff}
.kl-vin-status{flex:1;min-width:190px;font-size:11px;color:#817b88;line-height:1.45;margin:0}
.kl-vin-error{color:#a33448}
.kl-vin-button:disabled{opacity:.65}
@media(max-width:500px){.kl-vin-lookup{display:grid;gap:6px}.kl-vin-button{justify-self:start}.kl-vin-status{min-width:0}}

/* Approved compact home: avoid repeating the title and new-order control above
   the welcome hero. Other sections retain their page heading and actions. */
#workspace[data-active-surface="home"] > .page-heading { display:none; }

/* 18 Oct beta iPhone review: compact first screen and robust native status bar. */
@media (max-width:650px) {
  .topbar { min-height:58px; margin-bottom:8px; }
  .brand-subtitle { display:none; }
  .warning {
    font-size:11px;line-height:1.35;padding:8px 11px;margin:0 0 9px;
    border-radius:10px;
  }
  #workspace[data-active-surface="home"] .workspace-header {
    align-items:center;background:#fff;border:1px solid #ebe9ef;
    border-radius:12px;padding:9px 11px;margin:2px 0 9px;
  }
  #workspace[data-active-surface="home"] .workspace-header .eyebrow,
  #workspace[data-active-surface="home"] .workspace-header .muted {
    display:none;
  }
  #workspace[data-active-surface="home"] .workspace-header h1 {
    font-size:12px;line-height:1.3;margin:0;letter-spacing:-.1px;
  }
  #workspace[data-active-surface="home"] .workspace-header .secondary {
    font-size:11px;min-height:33px;padding:6px 9px;border-radius:8px;
  }
  #homeSurface .home-hero { margin-top:4px; }
  #vehicleList .kl-vehicle-artwork { min-height:96px; }
}
/* Standalone iOS uses the viewport safe-area padding in the real topbar. */
.kl-car-placeholder {
  display:flex; flex-direction:column;align-items:center;justify-content:center;
  gap:4px;width:100%;min-height:72px;max-width:100%;
  border:1px solid #e8e4eb;border-radius:11px;
  background:linear-gradient(140deg,#f6f4f7,#efedf2);
  color:#9d8f9e;box-shadow:none;text-align:center;
}
.kl-car-placeholder small { font-size:9px;line-height:1.2;max-width:95px; }
.home-hero-car .kl-car-placeholder { min-height:144px;height:100%; }
.vehicle-detail-picture .kl-car-placeholder { min-height:155px;height:100%; }
.kl-order-vehicle-image .kl-car-placeholder { min-height:102px; }

/* KodLab compact iOS header fix — 18 October 2026
   Do not overlay the status bar with a fixed pseudo-element: it can cover the
   actual app header, especially after changing scroll position in standalone.
   The existing topbar padding already includes env(safe-area-inset-top). */
html{background:#fff}
body::before{content:none!important;display:none!important}
@media(max-width:650px){
  .topbar{
    position:sticky;top:0;z-index:35;
    min-height:58px;
    padding:7px 12px;
    padding-top:calc(7px + env(safe-area-inset-top,0px));
    margin:0 -12px 8px;
    border-bottom:1px solid #f0edf2;
    background:#fff;
    isolation:isolate;
  }
  .topbar .brand-logo{max-height:43px;width:auto;max-width:142px}
  .topbar-right .header-icon,.topbar-right .avatar{width:35px;height:35px;min-width:35px;min-height:35px}
  .warning{font-size:11px;line-height:1.35;padding:8px 11px;margin-bottom:9px}
  #workspace[data-active-surface="home"]>.page-heading{display:none}
  #workspace[data-active-surface="home"] .workspace-header{
    padding:8px 10px;min-height:47px;margin:2px 0 9px;
    border-radius:12px;
  }
  #workspace[data-active-surface="home"] .workspace-header h1{font-size:13px;line-height:1.25}
  #workspace[data-active-surface="home"] .workspace-header .secondary{min-height:35px;padding:6px 10px}
  #homeSurface .home-hero{
    min-height:138px;padding:14px 15px;
    margin:4px 0 11px;border-radius:17px;
  }
  #homeSurface .home-hero h2{font-size:21px;line-height:1.16}
  #homeSurface .home-hero .eyebrow{margin-bottom:5px;font-size:9px}
  #homeSurface .home-hero-copy>p:last-child{font-size:11px;line-height:1.4}
  #homeSurface .home-hero-car{height:100%}
  #homeSurface .home-metrics{gap:7px!important;margin-bottom:11px!important}
  #homeSurface .home-metrics>span{min-height:77px;padding:9px 8px;border-radius:12px}
  #homeSurface .home-metrics strong{font-size:21px}
  #homeSurface .home-metrics small{font-size:10px}
  #homeSurface .home-primary-action{
    min-height:54px;padding:10px 15px;margin-bottom:11px;
    font-size:19px;border-radius:13px;gap:10px;
  }
  #homeSurface .home-primary-action span:nth-child(1){font-size:16px}
  #homeSurface .home-primary-action span:last-child{font-size:24px}
  #homeSurface .home-shortcuts{gap:7px}
  #homeSurface .home-shortcuts button{
    min-height:94px;padding:9px 10px;gap:3px;border-radius:13px;
  }
  #homeSurface .home-shortcuts .shortcut-icon{
    width:34px;height:34px;border-radius:9px;margin-bottom:2px;
  }
  #homeSurface .home-shortcuts .shortcut-icon .kl-icon{width:18px;height:18px}
  #homeSurface .home-shortcuts strong{font-size:11.5px;line-height:1.22}
  #homeSurface .home-shortcuts small{font-size:9.5px;line-height:1.25}
  #homeSurface .home-shortcuts-wide button,
  #homeSurface .home-tools button{
    min-height:73px;grid-template-columns:34px minmax(0,1fr);gap:1px 9px;
  }
  .main-navigation{z-index:40}
}
@media(max-width:370px){
  #homeSurface .home-shortcuts strong{font-size:11px}
  #homeSurface .home-shortcuts small{font-size:9px}
  #homeSurface .home-hero h2{font-size:20px}
}

/* KodLab account menu + vehicle title collision fix — beta, 18 Oct 2026 */
.profile-menu-wrap{position:relative;display:flex;align-items:center}
.profile-menu{
  position:absolute;top:calc(100% + 12px);right:0;z-index:80;
  width:min(300px,calc(100vw - 26px));padding:8px;
  background:#fff;border:1px solid #e9e5ed;border-radius:16px;
  box-shadow:0 16px 42px #32132d2b;
}
.profile-menu[hidden],.account-surface[hidden],.profile-menu [hidden]{display:none!important}
#headerProfile[hidden]{display:none!important}
.profile-menu-heading{display:flex;flex-direction:column;gap:3px;padding:10px 12px 12px}
.profile-menu-heading strong{color:#221d29;font-size:14px;overflow-wrap:anywhere}
.profile-menu-heading small{color:#7c7784;font-size:11px;overflow-wrap:anywhere}
.profile-menu button{
  width:100%;min-height:44px;display:flex;align-items:center;gap:11px;
  padding:10px 12px;border:0;background:transparent;
  border-radius:10px;text-align:left;font-size:13px;font-weight:650;
  color:#302b36;
}
.profile-menu button:hover,.profile-menu button:focus-visible{background:#fbf1f6}
.profile-menu button .kl-icon{width:18px;height:18px;color:#7c103f}
.profile-menu-divider{border-top:1px solid #ece8ee;margin:6px 4px}
.profile-menu .profile-logout{color:#a13749}
.profile-menu .profile-logout .kl-icon{color:#a13749}
#workspace>.workspace-header{display:none}
#workspace[data-active-surface="home"]>.workspace-header{display:flex}
.account-surface{width:100%;max-width:850px;margin:0 auto 25px}
.account-panel{display:grid;gap:12px}
.account-panel h2{font-size:20px;margin:0}
.account-panel p{margin:0;color:#696575;line-height:1.5}
.account-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;border:1px solid #eae7ec;border-radius:13px;overflow:hidden}
.account-facts>div{padding:14px;min-width:0;border-right:1px solid #eae7ec;border-bottom:1px solid #eae7ec}
.account-facts dt{font-size:11px;color:#817d8d}
.account-facts dd{margin:5px 0 0;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.account-panel button{justify-self:start}
.vehicle-detail-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  align-items:stretch;gap:8px;min-height:170px;padding:14px;
}
.vehicle-detail-copy{
  min-width:0;max-width:100%;width:auto;flex:none;
  position:relative;z-index:2;align-items:flex-start;
}
.vehicle-detail-heading{width:100%;min-width:0}
.vehicle-detail-heading h2{
  display:flex;flex-direction:column;align-items:flex-start;gap:1px;
  font-size:20px;line-height:1.22;max-width:100%;
  overflow-wrap:anywhere;word-break:normal;
}
.vehicle-detail-heading h2>span{display:block;width:100%;min-width:0}
.vehicle-detail-heading .muted{max-width:100%;overflow-wrap:anywhere}
.vehicle-detail-picture{
  position:relative;right:auto;bottom:auto;
  width:100%;height:100%;min-width:0;min-height:145px;
  display:flex;align-items:stretch;overflow:hidden;border-radius:12px;
}
.vehicle-detail-picture .kl-car-photo{
  display:block;width:100%;height:100%;min-height:145px;max-height:none;
  object-fit:cover;object-position:50% 50%;border-radius:12px;
}
.vehicle-detail-picture .kl-car-placeholder{height:100%;min-height:145px}
.vehicle-detail-picture svg{width:100%;max-height:170px;align-self:center}
@media(max-width:650px){
  #workspace>.page-heading{margin:7px 0 10px}
  #workspace>.page-heading h2{font-size:18px}
  #workspace>.page-heading .primary{
    min-height:44px;min-width:0;padding:8px 12px;font-size:12px;
  }
  #journalSurface :is(button.primary,button.secondary),
  #vehiclesSurface :is(button.primary,button.secondary),
  #calendarSurface :is(button.primary,button.secondary),
  #financeSurface :is(button.primary,button.secondary),
  #documentsSurface :is(button.primary,button.secondary),
  #moreSurface :is(button.primary,button.secondary),
  #knowledgeSurface :is(button.primary,button.secondary),
  #platformSurface :is(button.primary,button.secondary),
  .account-surface :is(button.primary,button.secondary){
    min-height:44px;padding:8px 12px;border-radius:11px;font-size:12px;
    max-width:100%;
  }
  .vehicle-detail-hero{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
    gap:8px;min-height:151px;padding:12px;
  }
  .vehicle-detail-copy{flex:none;max-width:100%;width:auto;gap:7px}
  .vehicle-detail-copy>.vehicle-brand{width:36px;height:36px}
  .vehicle-detail-heading h2{font-size:17px;line-height:1.25;letter-spacing:-.4px;margin-bottom:4px}
  .vehicle-detail-heading .muted{font-size:10px;line-height:1.35}
  .vehicle-detail-picture{
    right:auto;bottom:auto;width:100%;height:100%;
    min-height:127px;
  }
  .vehicle-detail-picture .kl-car-photo{
    width:100%;height:100%;min-height:127px;max-height:none;
    object-position:center;
  }
  .vehicle-detail-actions{gap:8px;margin-top:10px}
  .vehicle-detail-actions button{
    min-height:44px;padding:9px 8px;font-size:12px;border-radius:12px;
    line-height:1.25;
  }
  .more-menu .more-item{min-height:48px;padding:9px 11px}
  .account-panel{padding:15px}
  .account-panel h2{font-size:18px}
  .account-facts>div{padding:11px}
  .account-facts dd{font-size:12px}
  .profile-menu{top:calc(100% + 9px)}
}
@media(max-width:360px){
  .vehicle-detail-heading h2{font-size:15px}
  .vehicle-detail-hero{grid-template-columns:minmax(0,1fr) minmax(0,0.96fr)}
  .profile-menu{width:calc(100vw - 26px)}
}

/* Profile menu layering and anonymous-header visibility.
   [hidden] must win over avatar's display:grid on Safari. */
#headerProfile[hidden]{display:none!important}
#headerProfile:focus-visible,.profile-menu button:focus-visible{
  outline:2px solid #7c103f;outline-offset:2px
}
.topbar{z-index:60}
@media(max-width:650px){
  .topbar{z-index:90}
  .profile-menu{max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain}
}


/* KodLab account menu and vehicle detail layout 2026-10-18.
   Keep user settings in the global header and workshop caption only on Home. */
#workspace:not([data-active-surface="home"]) > .workspace-header { display:none!important; }
.profile-menu-wrap { position:relative;display:flex;align-items:center; }
#headerProfile[hidden],#profileMenu[hidden],
.profile-menu [hidden],.account-surface[hidden]{display:none!important}
.profile-menu {
  position:absolute;right:0;top:calc(100% + 12px);z-index:95;
  display:flex;flex-direction:column;gap:2px;
  width:min(320px,calc(100vw - 30px));padding:8px;
  background:#fff;border:1px solid #e8e3e9;border-radius:16px;
  box-shadow:0 18px 42px #2c172c24;
}
.profile-menu-heading {padding:9px 12px 11px;display:flex;flex-direction:column;gap:3px;border-bottom:1px solid #efeaf0;margin-bottom:3px;min-width:0}
.profile-menu-heading strong {font-size:13px;font-weight:750;color:#241d29;overflow-wrap:anywhere}
.profile-menu-heading small {font-size:11px;color:#777385;overflow-wrap:anywhere}
.profile-menu button {
  width:100%;display:flex;align-items:center;gap:11px;
  min-height:43px;padding:9px 11px;border:0;border-radius:10px;
  text-align:left;background:transparent;font-size:12px;color:#302334;
  font-weight:650;
}
.profile-menu button .kl-icon {width:18px;height:18px;color:#7c103f}
.profile-menu button:hover,.profile-menu button:focus-visible {background:#f8eef2}
.profile-menu-divider {border-top:1px solid #efeaf0;margin:5px 2px 2px}
.profile-menu button.profile-logout {color:#a62b48}
.profile-menu button.profile-logout .kl-icon {color:#a62b48}
.account-surface {max-width:750px;margin:0 auto 28px}
.account-panel {padding:18px}
.account-panel h2 {font-size:20px;margin:0 0 12px}
.account-panel p {font-size:13px;line-height:1.55}
.account-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.account-facts div {background:#faf9fb;border:1px solid #eee8ef;border-radius:12px;padding:12px;min-width:0}
.account-facts dt {font-size:11px;color:#898390;margin-bottom:5px}
.account-facts dd {font-size:13px;font-weight:700;overflow-wrap:anywhere;margin:0;color:#282333}
.account-panel button.secondary {min-height:44px;padding:9px 12px}

/* Strictly separate car title from model photo: no overlap, even for long names. */
.vehicle-detail-hero {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;align-items:center;padding:15px;min-height:170px;
  overflow:hidden;
}
.vehicle-detail-copy {
  position:relative;z-index:2;min-width:0;width:100%;
  flex:none;display:flex;flex-direction:column;gap:7px;
}
.vehicle-detail-heading {min-width:0;width:100%}
.vehicle-detail-heading h2 {
  display:flex;flex-direction:column;gap:2px;
  white-space:normal;max-width:100%;overflow-wrap:anywhere;
  font-size:21px;line-height:1.18;margin:0 0 6px;
}
.vehicle-detail-heading h2 span {display:block;max-width:100%;overflow-wrap:anywhere}
.vehicle-detail-heading h2 span:empty {display:none}
.vehicle-detail-picture {
  position:relative;z-index:1;right:auto;bottom:auto;
  width:100%;height:150px;min-width:0;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;border-radius:13px;
}
.vehicle-detail-picture .kl-car-photo {
  display:block;width:100%;height:100%;max-height:none;
  object-fit:cover;object-position:center center;
  border-radius:13px;
}
.vehicle-detail-picture .kl-car-placeholder {height:100%;min-height:0}
.vehicle-detail-actions {grid-template-columns:1fr 1.1fr;gap:9px}
.vehicle-detail-actions button {min-height:46px;padding:9px 12px;font-size:12px;border-radius:12px}

/* Use one consistent compact button scale in all main destinations.
   Preserve at least 44px touch targets for accessibility. */
#workspace .page-heading .primary,
#workspace .report-preview-actions button,
#workspace .report-preview-actions a,
#workspace .calendar-heading-actions button,
#workspace .calendar-visits-heading button,
#workspace #refreshVehicles,
#workspace #financeReload,
#workspace #vehicleSave,
#workspace #vehicleCancel,
#workspace #calendarAddVisit,
#workspace .editor-section-content button,
#workspace .form-actions button,
#workspace .profile-surface button {
  min-height:44px;padding:8px 12px;
  font-size:12px;border-radius:11px;
}
@media (max-width:650px) {
  .account-facts {grid-template-columns:minmax(0,1fr);gap:7px}
  .account-panel {padding:14px}
  .account-panel h2 {font-size:18px}
  .profile-menu {top:calc(100% + 10px)}
  .vehicle-detail-hero {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    min-height:155px;padding:12px 12px;gap:9px;
  }
  .vehicle-detail-copy {gap:5px}
  .vehicle-detail-heading h2 {font-size:18px;line-height:1.15;letter-spacing:-.4px}
  .vehicle-detail-heading .muted {font-size:11px}
  .vehicle-detail-copy>.vehicle-brand {width:36px;height:36px;min-height:36px}
  .vehicle-detail-picture {height:132px;border-radius:12px}
  .vehicle-detail-picture .kl-car-photo {height:132px;border-radius:12px}
  .vehicle-detail-actions button {min-height:45px;padding:8px 9px;font-size:12px}
  #workspace .page-heading .primary {min-width:0}
}
@media (max-width:370px) {
  .vehicle-detail-hero {grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
  .vehicle-detail-heading h2 {font-size:16px}
  .vehicle-detail-picture,.vehicle-detail-picture .kl-car-photo {height:118px}
}

/* Orders can be created only from Home or Calendar, not from work lists. */
#workspace:not([data-active-surface="home"]):not([data-active-surface="journal"]) > .page-heading #quickNewRecord {display:none!important}
