/* Shared platform workbench components, derived from references 04/10/11/12.
   Additional modules consume these classes rather than independent page themes. */
.business-workspace{ display:grid; grid-template-columns:minmax(0,1fr); gap:var(--workspace-gap); align-items:start; }
.business-workspace:has(.record-editors>form){ grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr); }
.record-browser, .record-editors{ min-width:0; }
.record-editors{ display:grid; gap:var(--workspace-gap); }
.record-editors:empty{ display:none; }
.operator-app #business-filter{ display:flex; align-items:end; gap:12px; margin-bottom:16px; padding:12px 16px; }
#business-filter label{ margin:0; flex:1; }
#business-filter label:first-child{ flex:2; }
#business-filter input, #business-filter select{ margin:4px 0 0; }
.operator-app .atcx-record{ padding:16px; }
.atcx-record h2{ font-size:16px; margin:0 0 12px; overflow-wrap:anywhere; }
.record-fields{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 20px; margin:0; }
.record-fields>div{ min-width:0; }
.record-fields dt{ color:var(--muted); font-size:10px; font-weight:550; margin:0 0 3px; }
.record-fields dd{ font-size:12px; line-height:1.5; margin:0; overflow-wrap:anywhere; white-space:pre-line; }
.operator-app .record-actions{ margin-top:12px; border-top:1px solid var(--border); padding-top:12px; }
.operator-app .record-actions:empty{ display:none; }
#business-list{ gap:var(--workspace-gap); }
.record-editors form>h2{ font-size:17px; margin:0 0 16px; }
.record-editors label{ margin-bottom:12px; }
.record-browser>.actions{ justify-content:space-between; align-items:center; font-size:12px; }
.operator-app .website-tabs{ gap:0; border-bottom:1px solid var(--border); margin-bottom:16px; }
.operator-app .website-tabs a{ border:0; border-bottom:2px solid transparent; border-radius:0; padding:12px 16px; font-size:12px; font-weight:600; }
.operator-app .cms-toolbar{ padding:12px 16px;    margin-bottom:16px; align-items:end; }
.cms-toolbar label{ margin:0; }
.operator-app .cms-editor-layout{ grid-template-columns:minmax(220px,.7fr) minmax(0,2fr); gap:var(--workspace-gap); align-items:start; }
.cms-editor-layout>*{ min-width:0; }
.operator-app .cms-list{ padding:16px; }
.operator-app .cms-list h2{ font-size:16px; margin-bottom:12px; }
.operator-app .cms-list button{ font-size:11px; text-align:left; justify-content:flex-start; line-height:1.5; }
.operator-app .cms-block-editor{ padding:16px; margin:12px 0; }
.operator-app .cms-block-editor legend{ font-size:13px; font-weight:650; }
.operator-app .website-settings-grid{ gap:var(--workspace-gap); align-items:start; }
.operator-app .website-settings-grid fieldset{ border:1px solid var(--border); border-radius:var(--radius-sm); margin:12px 0; padding:12px; }
.operator-app #settings-controls{ gap:var(--workspace-gap); }
.operator-app #settings-controls .card h2{ font-size:16px; margin-bottom:16px; }
.operator-app #settings-controls label{ margin-bottom:12px; }
.operator-app #settings-controls .setting-toggle{ padding:10px 0; }
.operator-app .settings-save{ padding:16px 0; }
.operator-app .operation-section{ margin:16px 0;  }
.operator-app .operation-section>summary{ padding:16px; font-size:16px; }
.operator-app .operation-body{ padding:16px; }
.operator-app #report-results:not(:empty){ border-top:1px solid var(--border); padding-top:16px; margin-top:16px; }
.operator-app #order-snapshots{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; margin:16px 0; }
#order-snapshots h4{ grid-column:1/-1; }
#order-snapshots p{ margin:0; overflow-wrap:anywhere; }
#order-workspace-content>h4{ padding-top:16px; margin-bottom:8px; border-top:1px solid var(--border); }
#order-workspace-content>p, #purchase-detail p{ overflow-wrap:anywhere; }
.operator-app #finance-ledger{ grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.operator-app #case-queue{ display:grid; gap:12px; }
.operator-app #case-queue .card{ padding:16px; }
.operator-app #shipment-records>article{ border:1px solid var(--border); padding:16px; border-radius:var(--radius); margin:12px 0; }
#staff-thread{ margin-top:16px; }
#staff-thread>article{ border-left:3px solid var(--brand); padding:12px 16px; background:var(--surface-subtle); margin:12px 0; border-radius:var(--radius-sm); }
#staff-thread p{ white-space:pre-line; overflow-wrap:anywhere; }
/* Shared customer record and support surfaces inherit Garage typography/panels. */
.customer-workspace #account-page{ max-width:1200px; }
.customer-workspace #account-page h1{ font-size:28px; }
.customer-workspace #account-page h2{ font-size:18px; }
.customer-workspace #account-page .card{ padding:20px; }
#account-profile dl{ display:grid; grid-template-columns:120px minmax(0,1fr); gap:8px 20px; font-size:13px; }
#account-profile dt{ color:var(--muted); }
#account-profile dd{ margin:0; overflow-wrap:anywhere; }
#account-activity{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
#account-activity p, #account-notifications p{ font-size:13px; overflow-wrap:anywhere; }
#account-notifications article{ border-bottom:1px solid var(--border); padding:12px 0; }
#account-notifications h3{ font-size:14px; margin-bottom:4px; }
/* F1: same fluid canvas as the Garage (no fixed cap); the Layout Studio portal width (visual.PORTAL_INNER) still applies on top. */
.customer-app:is(.page-comanda,.page-cererea-mea,.page-reclamatie) main{ max-width:none; min-width:0; }
.customer-app:is(.page-comanda,.page-cererea-mea,.page-reclamatie) main h1{ font-size:32px; }
.customer-app:is(.page-comanda,.page-cererea-mea,.page-reclamatie) main h2{ font-size:20px; }
.customer-app:is(.page-comanda,.page-cererea-mea,.page-reclamatie) main>.card{ margin:16px 0; padding:20px; }
#messages{ display:flex; flex-direction:column; gap:10px; }
#messages .cx-message{ margin:0; padding:12px 14px; max-width:min(86%,620px); min-width:0; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); }
#messages .cx-message.is-team{ align-self:flex-start; border-left:4px solid var(--brand); }
#messages .cx-message.is-me{ align-self:flex-end; background:var(--surface); border-right:4px solid var(--border-strong); }
#messages .cx-who{ display:block; margin:0 0 2px; font-size:12px; font-weight:700; color:var(--text); }
#messages .cx-message p{ margin:0 0 4px; }
@media (max-width:640px){ #messages .cx-message{ max-width:94%; } }
#messages p{ white-space:pre-line; overflow-wrap:anywhere; }
#context-assets{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
/* Public articles/services use the approved dark title band and content surfaces. */
.public-information main{ max-width:1280px; padding-top:24px; }
.public-information .page-heading{ color:var(--hero-text); padding:32px; border-radius:var(--radius); margin-bottom:24px; }
.public-information .page-heading h1{ font-size:clamp(28px,3vw,40px); line-height:1.15; margin-bottom:12px; }
.public-information .page-heading p{ color:var(--hero-muted); font-size:14px; }
.public-information .page-heading .eyebrow{ color:var(--hero-eyebrow,var(--brand)); margin-bottom:12px; }
.public-information .cms-block{ padding:24px; margin:16px 0; }
.public-information .cms-block h2{ font-size:24px; margin-bottom:12px; }
.public-information .cms-block p{ font-size:14px; line-height:1.7; margin-bottom:8px; }
.public-information .cms-grid{ gap:12px; }
.public-information .cms-grid .card{ padding:20px; }
.public-information .cms-grid h3{ font-size:18px; }
.public-information .guide-card{ padding:20px; }
.public-information .guide-card h2{ font-size:22px; }
.public-information #consultation-form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; padding:24px; }
#consultation-form label{ margin:0; }
#consultation-form label:has(textarea){ grid-column:1/-1; }
#consultation-form button{ justify-self:start; }
@media(max-width:960px){.business-workspace:has(.record-editors>form), .operator-app .cms-editor-layout{ grid-template-columns:1fr; }
.record-fields{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.operator-app .website-tabs{ gap:0; }
.operator-app .cms-toolbar{ flex-wrap:wrap; }
}
@media(max-width:640px){.operator-app #business-filter{ display:grid; grid-template-columns:1fr; padding:12px; }
.operator-app .record-actions{ flex-wrap:wrap; }
.operator-app #finance-ledger, .operator-app #order-snapshots, #account-activity, #case-form, .public-information #consultation-form{ grid-template-columns:1fr; }
.public-information .page-heading{ padding:24px; }
.public-information .cms-block{ padding:20px; }
.record-fields{ gap:10px 12px; }
.record-fields dd{ font-size:12px; }
.record-actions button{ min-height:var(--lg-h-control); }
.record-browser>.actions{ flex-wrap:wrap; }
}
/* Upload examples fit the actual approved 868px state without hiding actions. */
@media(min-width:801px){.page-cerere .wizard[data-current-step="2"] #request-form{ padding:24px 28px; }
.page-cerere .wizard[data-current-step="2"] .wizard-upload-zone{ padding:16px; }
.page-cerere .wizard[data-current-step="2"] .wizard-upload-zone h3{ margin:8px 0; }
.page-cerere .wizard[data-current-step="2"] .wizard-photo-examples{ margin-top:12px; }
.page-cerere .wizard[data-current-step="2"] .actions{ margin-top:12px; padding-top:12px; }
.page-cerere .wizard[data-current-step="2"] fieldset>.muted{ font-size:12px; margin:8px 0; }
.page-cerere .wizard[data-current-step="2"] #file-list:empty{ display:none; }
.page-cerere .wizard[data-current-step="2"] #wizard-upload-previews:empty{ display:none; }
}
.workspace-filters{ display:flex; align-items:end; gap:12px; flex-wrap:wrap; padding:12px 16px;    margin-bottom:16px; }
.workspace-filters label{ flex:1; margin:0; }
.workspace-filters input, .workspace-filters select{ margin:4px 0 0; }
.workspace-filters output{ flex-basis:100%; color:var(--muted); font-size:11px; }
.operator-app .integration-card{ padding:16px; }
.integration-card h2{ font-size:16px; margin:0 0 8px; }
.integration-card h2 small{ font-size:12px; color:var(--muted); font-weight:500; margin-left:8px; }
.integration-card p{ margin:6px 0; font-size:12px; overflow-wrap:anywhere; }
.integration-card .actions{ margin-top:12px; }
.integration-card .badge{ font-size:10px; margin:0 4px 6px 0; }
.integration-card .badge[data-state=active]{ color:var(--status); background:var(--status-soft); }
.integration-diagnostics{ font-size:11px; margin-top:8px; padding-top:8px;  }
.integration-diagnostics summary{ cursor:pointer; color:var(--muted); }
#hub-log:empty{ display:none; }
#hub-list{ gap:12px; }
@media(max-width:640px){.workspace-filters{ display:grid; grid-template-columns:1fr; padding:12px; }
}
/* The approved payment cards submit the existing configured method field. */
@media(min-width:961px){#checkout-form .selected-product{ display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:3px 10px; padding:8px 0; }
#checkout-form .selected-product>div{ grid-column:2; grid-row:1/3; }
#checkout-form .selected-product>strong{ grid-column:3; grid-row:1; align-self:center; }
#checkout-form .selected-product>small{ grid-column:3; grid-row:2; }
#checkout-form .selected-product img{ width:56px; height:56px; grid-column:1; grid-row:1/3; }
}
@media(min-width:801px){.page-cerere .wizard[data-current-step="4"] #request-form{ padding-bottom:20px; }
.operator-app #search-form{ grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; align-items:end; }
.operator-app #search-form label{ margin-bottom:0; }
.operator-app #search-results{ grid-column:1/-1; }
}
.customer360-history-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:16px 0; }
.customer360-history-grid .garage-history-panel{ min-width:0; padding:16px;    }
.customer360-history-grid h4{ display:flex; align-items:center; gap:8px; font-size:14px; margin:0 0 12px; }
.customer360-history-grid p{ font-size:12px; padding:8px 0; margin:0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.customer360-history-grid p:last-child{ border-bottom:0; }
.operator-vehicle-context{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:24px; padding:20px;    margin-top:20px; }
.operator-vehicle-context .operator-selected-vehicle{ width:100%; height:240px; object-fit:contain; }
.operator-vehicle-context p{ font-size:12px; overflow-wrap:anywhere; }
.operator-vehicle-context h3{ font-size:24px; }
#operator-vehicle-request{ padding:20px; }
@media(max-width:960px){.customer360-history-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px){.customer360-history-grid, .operator-vehicle-context{ grid-template-columns:1fr; }
.operator-vehicle-context{ gap:12px; padding:16px; }
.operator-vehicle-context .operator-selected-vehicle{ height:190px; }
}
.atcx-record>.record-product-image{ aspect-ratio:auto; float:left; width:80px; height:64px; object-fit:contain; margin:0 16px 12px 0; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); }
.atcx-record:has(.record-product-image) .record-fields{ clear:both; }
.customer-order-line{ display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:16px; align-items:center; padding:16px 0; border-bottom:1px solid var(--border); }
.customer-order-line img{ width:80px; height:64px; object-fit:contain; background:var(--surface-subtle); border:1px solid var(--border); border-radius:var(--radius-sm); }
.customer-order-line h3{ font-size:14px; margin:0; }
.customer-order-line p{ font-size:12px; margin:4px 0 0; }
.customer-order-line strong{ font-size:14px; white-space:nowrap; }
@media(max-width:640px){.customer-order-line{ grid-template-columns:64px minmax(0,1fr); gap:12px; }
.customer-order-line img{ width:64px; }
.customer-order-line strong{ grid-column:2; }
}
.report-metrics{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:20px; }
.report-metrics .card{ padding:20px; }
.report-metrics h3{ font-size:12px; color:var(--muted); margin-bottom:12px; }
.report-metrics strong{ font-size:clamp(18px,1.7vw,24px); line-height:1.2; white-space:nowrap; }
@media(max-width:960px){.report-metrics{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px){.report-metrics{ grid-template-columns:1fr; }
}
#operator-product-media{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 24px; align-items:start; }
.product-media-heading{ grid-column:1/-1; display:flex; align-items:start; justify-content:space-between; gap:16px; }
.product-media-heading h2{ font-size:20px; margin:0 0 8px; }
#operator-product-media>img{ grid-column:1; width:100%; max-width:360px; height:240px; object-fit:contain; justify-self:center; border-radius:var(--radius-sm); background:var(--surface-subtle); }
#operator-product-media>p, #operator-product-media>a{ grid-column:1; font-size:12px; margin:0; }
#operator-product-media>a{ justify-self:start; }
#product-media-upload{ grid-column:2; grid-row:2/span 4; padding:20px; border:1px solid var(--border); border-radius:var(--radius-sm); }
#product-media-upload h3{ font-size:16px; margin-top:0; }
#product-media-upload label{ font-size:12px; }
#product-media-upload textarea{ min-height:96px; }
@media(max-width:640px){#operator-product-media{ grid-template-columns:1fr; }
#product-media-upload{ grid-column:1; grid-row:auto; }
.product-media-heading{ flex-wrap:wrap; }
}
/* Review media uses bounded previews; general article cover rules must not enlarge records. */
#media-list .card img{ width:100%; height:240px; max-width:360px; aspect-ratio:auto; object-fit:contain; margin:16px auto; background:var(--surface-subtle); }
/* Search disclosure is a viewport-bounded overlay, including the tablet header. */
.public-information .article-heading.page-heading{ display:block; }
.public-information .article-heading.page-heading .eyebrow{ display:block; }
.public-information .article-heading.page-heading small{ display:block; color:var(--hero-muted); margin-top:16px; }
.integration-log-list{ list-style:none; margin:0; padding:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.integration-log-entry{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:center; gap:16px; padding:12px 16px; background:var(--surface); border-bottom:1px solid var(--border); font-size:12px; overflow-wrap:anywhere; }
.integration-log-entry:last-child{ border-bottom:0; }
.integration-log-entry time{ color:var(--muted); }
@media(max-width:640px){.integration-log-entry{ grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.integration-log-entry time{ grid-column:1/-1; }
}
/* A breakpoint change must not animate the desktop sidebar offset through
   a narrow viewport: nested forms otherwise temporarily receive 166px. */
/* Shared authorized area switcher; the existing shell owns navigation geometry. */
#system-overview>.grid, #system-overview>.card{ margin-top:20px; }
#system-overview .record-fields{ grid-template-columns:1fr; }
#system-overview td{ overflow-wrap:anywhere; }
/* Shared module tabs: native links keep refresh, history and permissions explicit. */
.workspace-tabs{ display:flex; flex-wrap:wrap; gap:4px; padding:4px; margin:0 0 20px; border-bottom:1px solid var(--border); }
.workspace-tabs a{ display:flex; align-items:center; min-height:40px; padding:8px 12px;; color:var(--muted); font-size:12px; font-weight:600; text-decoration:none; }
.workspace-tabs a:hover{; color:var(--text); }
@media(max-width:640px){.workspace-tabs{ flex-wrap:nowrap; overflow-x:auto; }
.workspace-tabs a{ flex-shrink:0; min-height:44px; }
}
.offer-register small{ display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.offer-register th:first-child{ width:25%; }
.offer-register th:last-child{ width:22%; }
.offer-register td{ font-size:12px; }
.workspace-context-note{ color:var(--muted); font-size:12px; margin:0 0 20px; }
.record-table{  border:1px solid var(--border);  }      /* a register is painted by its parent (card / .rf-reg wrapper); a second opaque fill here was the navy slab inside Glass cards (audit F-004) */

/* Theme select labels are Romanian (Automat / Luminos / Întunecat): give the public control room for them. */
.public-header .theme-control select,.customer-sidebar .theme-control select{width:108px}
@media(max-width:640px){.public-header .theme-control{width:112px}.public-header .theme-control select{width:96px}}
.public-header #menu-button{color:var(--hero-text)}
@media(max-width:480px){.finder-tabs{overflow-x:auto;scrollbar-width:thin;gap:16px}.finder-tabs>*{flex:none;white-space:nowrap}}

/* Purchase queue rows: grid cells must be allowed to shrink so long supplier/vehicle text wraps instead of overlapping. */
/* Purchase queue detail panel and margin emphasis (reference 10) */
.purchase-facts{display:grid;gap:0;margin:12px 0}
.purchase-facts>div{display:grid;grid-template-columns:minmax(110px,40%) 1fr;gap:8px;padding:7px 0;border-bottom:1px solid var(--border);font-size:12px}
.purchase-facts dt{color:var(--muted)}
.purchase-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.purchase-facts .purchase-margin{color:var(--status)}
.purchase-internal{margin:0 0 12px;font-size:11px;color:var(--muted)}
.purchase-facts,.purchase-internal{grid-column:1/-1;width:100%}

/* Maintenance interval progress (reference 07): computed from the recorded service and odometer kilometres */
progress.garage-plan-progress{display:block;width:100%;height:8px;margin:8px 0 4px;border:0;border-radius:999px;background:var(--surface-subtle);overflow:hidden;appearance:none;-webkit-appearance:none}
progress.garage-plan-progress::-webkit-progress-bar{background:var(--surface-subtle);border-radius:999px}
progress.garage-plan-progress::-webkit-progress-value{background:var(--status);border-radius:999px}
progress.garage-plan-progress[data-state=soon]::-webkit-progress-value{background:#f0a032}
progress.garage-plan-progress[data-state=over]::-webkit-progress-value{background:var(--danger)}
/* Offer validity and delivery estimates stand out on the customer offer */
.offer-validity strong{font-size:1.25em}
.offer-validity[data-expired=true] strong{color:var(--danger)}
.offer-delivery{font-weight:600}

/* VIN lookup, representative vehicle images and photo actions (Garaj, Cerere). Images are contained, never cropped or stretched. */
.vin-lookup-image{margin:0;display:grid;gap:6px;max-width:480px}
.vin-image-frame{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:var(--surface-subtle);border:1px solid var(--border);border-radius:var(--radius);padding:8px;overflow:hidden}
.vin-image-frame img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.vin-lookup-image figcaption,.vin-field-hint{font-size:13px;color:var(--muted)}
.vin-save-garage{display:flex;align-items:center;gap:8px;margin-top:12px}
.garage-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.garage-photo-actions:empty{display:none}
#vehicle-images{display:grid;gap:16px;margin-top:24px}
.vi-thumb{display:grid;place-items:center;width:72px;height:48px;background:var(--surface-subtle);border:1px solid var(--border);border-radius:4px;overflow:hidden}
.vi-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.vi-pager{display:flex;gap:12px;align-items:center;justify-content:center}
.vi-test{display:grid;gap:12px;padding-top:12px;border-top:1px solid var(--border)}
#vi-test-result .vin-lookup-image{margin-top:8px}
.garage-data-source{color:var(--muted)}
@media(max-width:640px){.queue-row td[data-label="Acțiune"]{display:flex;flex-wrap:wrap;gap:8px}.queue-row td[data-label="Acțiune"]>*{flex:1 1 140px;min-width:0}}

/* Promotion code in the checkout payment step */
.coupon-box{ margin:0 0 12px; }
.coupon-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.coupon-row input{ flex:1 1 180px; min-width:0; text-transform:uppercase; }
#coupon-message[data-tone=error]{ color:var(--danger, var(--text)); }
#coupon-message[data-tone=ok]{ color:var(--success, var(--text)); }

/* ATCX-65.2: live Operations notices and the customer conversation panel. */
.atcx-live{ position:fixed; right:16px; bottom:16px; z-index:60; display:grid; gap:8px; max-width:min(360px,calc(100vw - 32px)); }
.atcx-live-item{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--border-strong); border-left:4px solid var(--brand); border-radius:var(--radius); background:var(--surface-raised,var(--surface)); box-shadow:var(--shadow-raised,var(--shadow)); }
.atcx-live-item a{ flex:1; font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.atcx-live-close{ min-width:28px; min-height:28px; padding:0; border:0; background:transparent; color:var(--muted); font-size:18px; line-height:1; cursor:pointer; }
.cp-threads{ padding:16px; margin-bottom:var(--workspace-gap,16px); }
.cp-threads h2{ font-size:16px; margin:0 0 12px; }
.th-list{ list-style:none; margin:0 0 12px; padding:0; display:grid; gap:6px; }
.th-open{ width:100%; display:flex; align-items:center; gap:10px; justify-content:space-between; text-align:left; padding:8px 12px;    color:var(--text); cursor:pointer; }
.th-open time{ margin-left:auto; color:var(--muted); font-size:11px; }
.th-timeline{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.th-msg{ display:flex; min-width:0; }
.th-msg.is-customer{ justify-content:flex-start; }
.th-msg.is-staff{ justify-content:flex-end; }
.th-bubble{ max-width:min(78%,640px); min-width:0; padding:10px 12px; border:1px solid var(--border); background:color-mix(in srgb,var(--text) 7%,transparent); border-radius:4px var(--radius-sm) var(--radius-sm) var(--radius-sm); }
.th-msg.is-staff .th-bubble{ background:color-mix(in srgb,var(--text) 12%,transparent); border-color:transparent; border-radius:var(--radius-sm) 4px var(--radius-sm) var(--radius-sm); }
.th-msg.is-internal .th-bubble{ background:color-mix(in srgb,var(--warning) 14%,transparent); border:1px dashed var(--border-strong); }
.th-msg.is-new .th-bubble{ box-shadow:0 0 0 2px var(--brand); }
.th-msg:focus-visible .th-bubble{ outline:2px solid var(--brand); outline-offset:2px; }
.th-msg header{ display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; font-size:12px; color:var(--muted); margin-bottom:4px; }
.th-msg header strong{ color:var(--text); font-size:13px; }
.th-msg p{ margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.inbox-ref{ margin:0; padding:8px 0; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:baseline; }
.th-reply textarea{ width:100%; }
@media (max-width:640px){ .th-bubble{ max-width:92%; } .atcx-live{ left:16px; right:16px; max-width:none; } }

/* Brand logos shown instead of a vehicle picture (atcx/domain/brands.py): dark ink in Light, light ink in Dark; the initials image is mid grey and needs no change.
   Part of the image, not of the glass material. The objects fit in their frame, they are never cropped. */
img[src*="/images/brands/"]{object-fit:contain;padding:6px}
:root[data-theme=dark] img[src*="/images/brands/"]{filter:invert(1) brightness(.92)}
@media (prefers-color-scheme:dark){:root[data-theme=auto] img[src*="/images/brands/"]{filter:invert(1) brightness(.92)}}
