/* Shared Driver module chrome and compact catalogue cards.
 * This is a component stylesheet, not a global patch layer.
 */

/* Keep the three-line wordmark as one geometric unit at every responsive size.
 * The SVG must grow in both axes with its viewBox; a fixed height letterboxes the tagline on large headers. */
.brand-tagline{height:auto;aspect-ratio:192/15}

.driver-action-bar{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  width:100%;margin:0 0 16px;padding:3px 0 7px;
  border:0;border-bottom:1px solid #e1e5eb;border-radius:0;background:transparent;
  box-shadow:none;
}
.driver-action-bar__main,.driver-action-bar__nav{display:flex;align-items:center;gap:8px;min-width:0}
.driver-action-bar__nav{padding-left:24px;border-left:1px solid #e1e5eb}
.driver-action-bar .button{height:36px;min-height:36px;border-radius:7px;padding-inline:13px;font-size:13px;box-shadow:none;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}
.driver-action-bar .button--primary{background:linear-gradient(135deg,#7d24ea,#6213d3);border-color:#6213d3;color:#fff;box-shadow:0 2px 5px rgba(105,30,210,.12)}
.driver-action-bar .button--quiet{background:transparent;border-color:transparent;color:#4e5b70}
.driver-action-bar .button--quiet:hover{background:#f5f6f9;color:var(--ink);transform:none}
.driver-action-bar .button--primary:hover{background:linear-gradient(135deg,#7420df,#5910c4);box-shadow:0 3px 7px rgba(105,30,210,.15)}
.driver-action--compare{font-weight:var(--weight-semibold)}
.driver-action-tab{display:inline-flex;align-items:center;height:36px;padding:0 10px;border-radius:7px;color:#657086;font-size:13px;font-weight:var(--weight-semibold);white-space:nowrap;position:relative}
.driver-action-tab:hover{background:#f7f7fa;color:var(--ink)}
.driver-action-tab[aria-current="page"]{color:#6717cf;background:#f5efff}
.driver-action-tab[aria-current="page"]:after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;background:#7d24ea}
.driver-action-bar :where(a,button):focus-visible{outline:3px solid rgba(125,36,234,.3);outline-offset:2px}
.driver-action-bar .button:active{transform:translateY(1px);box-shadow:none}
.driver-action-bar .button[aria-current="page"]{border-color:#cbb4ed;background:#f5efff;color:#5d18b9}
.driver-action-bar :where(a,button)[aria-disabled="true"],.driver-action-bar :where(a,button):disabled{opacity:.5;cursor:not-allowed}

/* Driver Library keeps its focus indication inside clipped filter rails. Box Design keeps its existing treatment. */
.library-page .library-search input:focus,.library-page .library-range-inputs input:focus{outline:none;border-color:#7a25eb;box-shadow:inset 0 0 0 2px rgba(122,37,235,.72),inset 0 1px 2px rgba(18,24,40,.04)}
.library-page .library-search input:focus-visible,.library-page .library-range-inputs input:focus-visible{outline:none;border-color:#7a25eb;box-shadow:inset 0 0 0 2px rgba(122,37,235,.78),inset 0 1px 2px rgba(18,24,40,.04)}

/* Readable content columns live inside the shared full-width route frame. */
.driver-workflow-page:not(.driver-compare-page)>.page-content{width:100%;max-width:var(--form-page-max);margin-inline:auto}
.driver-contributions-page>.page-content{width:100%;max-width:var(--list-page-max);margin-inline:auto}
.driver-workflow-page>.page-heading>.page-lede,.driver-contributions-page>.page-heading>.page-lede{max-width:880px}
.driver-workflow-page>.page-heading>.page-title,.driver-contributions-page>.page-heading>.page-title{font-size:clamp(38px,4vw,48px);line-height:1.02;margin-bottom:10px}
.driver-workflow-page>.page-heading>.page-lede,.driver-contributions-page>.page-heading>.page-lede{margin-bottom:18px;font-size:15px}
.driver-workflow-page .workflow-section,.driver-contributions-page .workflow-section{max-width:100%}
.driver-contributions-page .project-card{width:100%;max-width:100%}

/* Catalogue cards: one consistent internal hierarchy at every trust level. */
.library-main .driver-card{display:flex;flex-direction:column;min-width:0;height:100%}
.library-main .driver-card__top{min-height:30px}
.library-main .driver-card__notice{min-height:82px;display:flex;align-items:flex-start;margin:8px 0 10px}
.library-main .driver-card__notice-placeholder{display:block;width:100%;height:100%}
.library-main .driver-card__notice .community-warning{width:100%;margin:0}
.library-main .driver-card .driver-photo{flex:none}
.library-main .driver-card h2{min-height:2.4em;display:flex;align-items:flex-end}
.library-main .driver-display-name{min-height:1.45em;margin-bottom:var(--space-1)}
.library-main .driver-display-name--empty{visibility:hidden}
.library-main .driver-card-specs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"size impedance" "type sensitivity";gap:7px 12px}
.library-main .driver-card-specs>div[data-spec="size"]{grid-area:size}
.library-main .driver-card-specs>div[data-spec="impedance"]{grid-area:impedance}
.library-main .driver-card-specs>div[data-spec="type"]{grid-area:type}
.library-main .driver-card-specs>div[data-spec="sensitivity"]{grid-area:sensitivity}
.library-main .driver-card-specs>div{min-width:0}
.library-main .driver-card-specs dt{margin-bottom:2px}
.library-main .driver-card-specs dd{white-space:normal}
.library-main .driver-quick{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
.library-main .driver-quick span{min-width:0;align-content:start}
.library-main .driver-card__link{margin-top:auto;padding-top:var(--space-2)}
.library-main .community-warning{font-size:var(--font-sm);line-height:1.4}

@container driver-library (min-width:760px){
  .library-main .driver-card .driver-photo{height:clamp(104px,5.4vw,158px)}
}

@media(max-width:780px){
  .driver-action-bar{width:100%;justify-content:stretch}
  .driver-action-bar .button{white-space:nowrap;text-align:center}
}


/* Account, ownership and private-driver workflow. */
.button--secondary{background:#fff;border-color:#d7dde7;color:#202a3a;box-shadow:0 2px 8px rgba(15,23,42,.045)}
.button--secondary:hover{border-color:#bfc7d4;background:#fbfbfd;box-shadow:0 5px 14px rgba(15,23,42,.07)}
.button--quiet{background:transparent;border-color:transparent;color:#5f6b7e;box-shadow:none}
.button--quiet:hover{background:#f5f6f8;color:var(--ink)}
.driver-trust--private{background:#eef5ff;color:#205a98;border-color:#cfe0f6}
.driver-trust--legacy{background:#f3f4f6;color:#5e6675;border-color:#dfe2e7}
.private-driver-note{padding:11px 14px;border:1px solid #cfe0f6;border-radius:10px;background:#f6faff;color:#38536f;font-size:var(--font-sm);line-height:1.5}
.driver-detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px}
.driver-ownership-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;margin:14px 0;border:1px solid #e2e6ed;border-radius:12px;background:#fbfcfd}
.driver-ownership-panel>div{display:grid;gap:3px}.driver-ownership-panel span{color:var(--muted);font-size:var(--font-sm)}
.driver-workflow-note{margin:-4px 0 16px;color:#6a7383;font-size:var(--font-sm)}
.status-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:#f1f3f6;color:#566174;font-size:var(--font-xs);font-weight:700}
.private-driver-note,.community-warning{max-width:100%}

.account-auth-grid{gap:22px;align-items:start}
.account-auth-card{border:1px solid #e3e7ee;border-radius:18px;padding:26px;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.055)}
.account-auth-card h2{margin:5px 0 8px;font-size:28px}.account-auth-card>p{color:var(--muted);margin:0 0 18px;line-height:1.55}
.account-card-kicker{display:block;color:#7b8598;font-size:var(--font-xs);font-weight:800;letter-spacing:.16em}
.account-dashboard{display:grid;gap:20px;max-width:1160px}
.account-identity-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:22px 24px;border:1px solid #e2e6ed;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fbfaff 100%);box-shadow:0 12px 30px rgba(15,23,42,.05)}
.account-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#7924e8,#4f5cff);color:#fff;font-weight:800;font-size:20px;box-shadow:0 8px 20px rgba(100,40,220,.18)}
.account-identity-copy h2{margin:4px 0 5px;font-size:24px;letter-spacing:-.02em}.account-identity-copy p{margin:0;color:var(--muted)}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin:0 4px}.status-dot--active{background:#22a865;box-shadow:0 0 0 3px rgba(34,168,101,.12)}
.account-overview,.account-panel{padding:22px 24px;border:1px solid #e4e7ed;border-radius:16px;background:#fff}
.workflow-section__head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}.workflow-section__head h2{margin:4px 0 0;font-size:20px}.workflow-section__head>span{color:#7b8598;font-size:var(--font-sm);font-weight:700}
.account-review-link{font-size:var(--font-sm);font-weight:700;color:#6a1bd1}.account-review-link:hover{text-decoration:underline}
.account-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.account-metric{display:grid;gap:5px;min-width:0;padding:14px 15px;border:1px solid #e8eaf0;border-radius:12px;background:#fbfcfd;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.account-metric:hover{transform:translateY(-1px);border-color:#d2c7ec;box-shadow:0 7px 18px rgba(37,23,70,.06)}
.account-metric strong{font-size:24px;line-height:1;color:#121827}.account-metric span{color:#6f798b;font-size:var(--font-sm);line-height:1.35}
.account-panel>p{color:var(--muted);line-height:1.55}
.account-driver-list{display:grid;gap:8px;margin-top:14px}
.account-driver-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid #e7e9ee;border-radius:11px;background:#fbfcfd}.account-driver-row>div{display:grid;gap:2px}.account-driver-row span{font-size:var(--font-sm);color:#728095}.account-driver-row>b{font-size:var(--font-sm);color:#6818d0}
.account-empty-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px dashed #d5dae3;border-radius:11px;color:#6d7788}.account-empty-row a{color:#6818d0;font-weight:700}
.account-session-panel{display:flex;justify-content:space-between;gap:32px;align-items:end}.account-session-panel dl{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px 22px;margin:14px 0 0}.account-session-panel dt{font-size:var(--font-xs);color:#7b8598;text-transform:uppercase;letter-spacing:.08em}.account-session-panel dd{margin:3px 0 0;font-weight:650}
.account-panel-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.account-admin{max-width:1160px;border:1px solid #e4e7ed;border-radius:14px;padding:0 18px;background:#fbfcfd}.account-admin>summary{cursor:pointer;padding:16px 0;font-weight:750}.account-admin-list{display:grid;gap:10px;padding:0 0 18px}
.master-admin-panel{max-width:1160px;border-color:#e5d9f7;background:linear-gradient(180deg,#fff 0%,#fdfaff 100%)}
.master-admin-badge{padding:7px 10px;border:1px solid #d8c2f3;border-radius:999px;background:#f6efff;color:#6717cf;font-size:10px;letter-spacing:.12em}
.master-admin-group{display:grid;gap:10px;margin-top:24px}.master-admin-group h3{margin:0;font-size:16px}.master-admin-group .workflow-section__head{align-items:center;margin-bottom:0}.master-admin-group .workflow-section__head p{margin:5px 0 0}
.master-admin-list{display:grid;gap:8px}.master-admin-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:13px 14px;border:1px solid #e5e7ed;border-radius:11px;background:#fff;max-width:none}.master-admin-row.workflow-form{grid-template-columns:minmax(0,1fr) auto}
.master-admin-row__copy{display:grid;gap:4px;min-width:0}.master-admin-row__copy strong{overflow-wrap:anywhere}.master-admin-row__copy span,.master-admin-muted{color:#748096;font-size:var(--font-sm);overflow-wrap:anywhere}
.master-admin-row__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.button--danger{border-color:#d9a6ad;background:#fff7f8;color:#a8243b}.button--danger:hover{border-color:#bd6f7b;background:#fff0f2;color:#87182b}
@media(max-width:780px){.master-admin-row,.master-admin-row.workflow-form{display:grid;grid-template-columns:1fr}.master-admin-row__actions{justify-content:stretch}.master-admin-row__actions .button,.master-admin-row>.button{width:100%}.master-admin-badge{justify-self:start}}

/* Account hub P1 */
.account-hub{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;max-width:1320px;align-items:start}
.account-navigation{position:sticky;top:20px;display:grid;gap:10px;min-width:0;padding:12px;border:1px solid #e2e6ed;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.04)}
.account-navigation__label{padding:7px 10px;color:#788396;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.account-navigation__links{display:grid;gap:3px}.account-navigation a{display:flex;align-items:center;min-height:42px;padding:9px 11px;border-radius:9px;color:#4f5b6d;font-size:14px;font-weight:700;text-decoration:none;border:1px solid transparent}
.account-navigation a:hover{background:#f8f6fc;color:#5215a6}.account-navigation a:focus-visible{outline:3px solid rgba(139,44,255,.28);outline-offset:2px}.account-navigation a.is-active{border-color:#dacaf1;background:#f5efff;color:#5b18b5;box-shadow:inset 3px 0 #8b2cff}
.account-content{display:grid;gap:16px;min-width:0}.account-content h2{margin:0;font-size:20px;letter-spacing:-.015em}.account-content p{line-height:1.55}
.account-section,.account-identity-card{padding:20px 22px;border:1px solid #e2e6ed;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.035);min-width:0}
.account-section__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.account-section__head p{margin:5px 0 0;color:var(--muted);font-size:14px}.account-card-kicker{display:block;margin-bottom:4px;color:#6c25c8;font-size:11px;font-weight:850;letter-spacing:.1em}
.account-identity-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;background:linear-gradient(135deg,#fff 0%,#faf7ff 100%);border-color:#ddd4eb}
.account-avatar{display:grid;place-items:center;flex:none;overflow:hidden;background:linear-gradient(145deg,#50139f,#8b2cff);color:#fff;font-weight:850;object-fit:cover}.account-avatar--large{width:72px;height:72px;border-radius:18px;font-size:22px}.account-avatar--medium{width:58px;height:58px;border-radius:15px;font-size:18px}
.account-identity-copy{min-width:0}.account-identity-copy h2{font-size:24px;overflow-wrap:anywhere}.account-handle{margin:2px 0 8px!important;color:#687486;overflow-wrap:anywhere}.account-badges{display:flex;gap:7px;flex-wrap:wrap}.account-badges>span,.account-status{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #dcdfe6;border-radius:999px;background:#fff;color:#4e5869;font-size:12px;font-weight:750}.account-status i{width:7px;height:7px;border-radius:50%;background:#26875a}.account-identity-meta{margin:10px 0 0!important;color:#596578;font-size:13px}
.account-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.account-metric{display:grid;gap:4px;padding:14px 15px;border:1px solid #e5e7ed;border-radius:10px;background:#fafbfd;color:inherit;text-decoration:none}.account-metric:hover{border-color:#cdb9e8;background:#faf7ff}.account-metric:focus-visible,.account-quick-actions a:focus-visible,.admin-archived-summary:focus-visible{outline:3px solid rgba(139,44,255,.28);outline-offset:2px}.account-metric strong{font-size:24px;line-height:1}.account-metric span{font-size:13px;color:#687486}
.account-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.account-overview-card{display:flex;flex-direction:column}.account-section-link{color:#641bc8;font-size:13px;font-weight:800;text-decoration:none}.account-section-link:hover{text-decoration:underline}.account-overview-data{display:grid;gap:0;margin:0}.account-overview-data>div{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,1fr);gap:14px;padding:9px 0;border-bottom:1px solid #edf0f4}.account-overview-data>div:last-child{border-bottom:0}.account-overview-data dt{color:#727e90;font-size:12px}.account-overview-data dd{min-width:0;margin:0;font-size:14px;overflow-wrap:anywhere}.account-overview-foot{margin:auto 0 0!important;padding-top:14px;color:#687486;font-size:12px}.account-state{font-weight:750}.account-state.is-good{color:#267148}.account-state.is-warning{color:#8a6010}.account-website{color:#641bc8;text-decoration:none}.account-website:hover{text-decoration:underline}.account-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.account-quick-actions a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 12px;border:1px solid #d9cbed;border-radius:9px;background:#faf7ff;color:#5c1cad;font-size:13px;font-weight:800;text-align:center;text-decoration:none}.account-quick-actions a:hover{border-color:#b894e6;background:#f5edff}.account-recent-activity .account-empty{padding:12px 14px;background:#fcfcfd}.account-recent-activity .account-empty p{font-size:13px}
.account-empty{display:grid;gap:6px;padding:17px;border:1px dashed #d9dde5;border-radius:10px;background:#fbfcfd}.account-empty strong{font-size:15px}.account-empty p{margin:0;color:#6d788a;font-size:14px}.account-empty__actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}
.account-profile-lead,.account-photo-editor{display:flex;align-items:center;gap:14px}.account-profile-lead strong,.account-profile-lead span{display:block}.account-profile-lead span{margin-top:3px;color:#6e798b;font-size:13px;overflow-wrap:anywhere}.account-photo-editor{margin-bottom:18px;padding:14px;border:1px solid #e6e8ed;border-radius:10px;background:#fafbfd}.account-photo-preview{display:grid;place-items:center;flex:none}.account-photo-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}.account-photo-controls>strong,.account-photo-controls>p,.account-photo-controls>.account-field-error{flex-basis:100%}.account-photo-editor p{margin:3px 0 7px;color:#6e798b;font-size:13px}.account-photo-button{cursor:pointer}.account-photo-filename{max-width:260px;color:#687486;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}.account-data-grid>div{min-width:0;padding:12px 0;border-bottom:1px solid #edf0f4}.account-data-grid>div:nth-last-child(-n+2){border-bottom:0}.account-data-grid dt{margin-bottom:4px;color:#727e90;font-size:12px}.account-data-grid dd{margin:0;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap}.account-muted{color:#8a93a2}
.account-profile-edit{display:grid;gap:16px}.account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-form-grid label,.account-security-form label,.account-danger-form label{display:grid;gap:6px;min-width:0;font-size:13px;font-weight:700}.account-form-grid input,.account-form-grid textarea,.account-form-grid select,.account-photo-editor input,.account-security-form input,.account-danger-form input{width:100%;min-width:0;padding:10px 11px;border:1px solid #c8d1df;border-radius:7px;background:#fff;color:var(--text);font:inherit}.account-form-wide{grid-column:1/-1}.account-form-actions{position:sticky;bottom:10px;display:flex;justify-content:flex-end;gap:8px;padding:12px;border:1px solid #ddd3eb;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(15,23,42,.12);backdrop-filter:blur(8px);z-index:2}.account-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.account-check input{width:auto}
.account-resource-list{display:grid;gap:7px}.account-resource-list>a,.account-session-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 13px;border:1px solid #e7e9ee;border-radius:9px;background:#fbfcfd;color:inherit;text-decoration:none;min-width:0}.account-resource-list>a:hover{border-color:#d2c3e8;background:#faf7ff}.account-resource-list span,.account-session-row>span:first-child{display:grid;gap:2px;min-width:0}.account-resource-list strong,.account-resource-list small{overflow-wrap:anywhere}.account-resource-list small,.account-session-row small{color:#748095;font-size:12px}.account-resource-list b{color:#6818d0;font-size:12px}
.account-security-form,.account-danger-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:760px}.account-security-form>label:first-child{grid-column:1/-1}.account-security-form .button,.account-danger-form .button{justify-self:start}.account-field-error{grid-column:1/-1;min-height:18px;margin:0;color:#a8243b;font-size:13px}.account-field-error:empty{display:none}.account-danger-zone{margin-top:8px;border-color:#e3b8bf;background:#fffafa;box-shadow:none}.account-danger-form{margin-top:16px}.account-security-note{padding:10px 12px;border-left:3px solid #a8243b;background:#fff1f3;color:#7f1a2b;font-size:13px}.account-flash{margin:0;padding:12px 14px;border:1px solid #78b68d;border-radius:9px;background:#eef8f1;color:#245c38;font-weight:700}
.master-admin-row>span{display:grid;gap:3px;min-width:0}.master-admin-row small{color:#748096;overflow-wrap:anywhere}
@media(max-width:900px){.account-hub{grid-template-columns:1fr;gap:16px}.account-navigation{position:static;display:block;padding:8px;overflow:hidden}.account-navigation__label{display:none}.account-navigation__links{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}.account-navigation a{flex:0 0 auto;min-height:38px;white-space:nowrap}.account-navigation a.is-active{box-shadow:inset 0 -3px #8b2cff}.account-overview-grid{grid-template-columns:1fr}}
@media(max-width:640px){.account-section,.account-identity-card{padding:16px}.account-identity-card{grid-template-columns:auto minmax(0,1fr)}.account-identity-card form{grid-column:1/-1}.account-section__head{align-items:flex-start;flex-direction:column;gap:12px}.account-section__head>.button{width:100%}.account-data-grid,.account-form-grid,.account-security-form,.account-danger-form{grid-template-columns:1fr}.account-metrics,.account-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.account-data-grid>div:nth-last-child(2){border-bottom:1px solid #edf0f4}.account-form-wide,.account-security-form>label:first-child{grid-column:auto}.account-photo-editor{align-items:flex-start}.account-form-actions{bottom:6px}.account-resource-list>a,.account-session-row{align-items:flex-start}.account-resource-list>a>b{flex:none}}
@media(max-width:390px){.account-overview-data>div{grid-template-columns:1fr;gap:3px}.account-quick-actions{grid-template-columns:1fr 1fr}}

.workflow-photo-editor{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:16px;margin-bottom:18px;border:1px solid #e4e7ed;border-radius:14px;background:#fbfcfd}
.workflow-photo-editor h3{margin:3px 0 4px}.workflow-photo-editor p{margin:0;color:#738094;font-size:var(--font-sm)}
.workflow-photo-editor img{width:72px;height:72px;border-radius:12px;object-fit:contain;background:#fff;border:1px solid #e3e6eb}
.workflow-photo-placeholder{display:grid;place-items:center;width:72px;height:72px;border-radius:12px;border:1px dashed #d3d8e1;color:#7b8596;font-size:var(--font-sm)}
.workflow-photo-remove{grid-column:1/-1;display:flex;align-items:center;gap:7px;color:#6b7484;font-size:var(--font-sm)}
@media(max-width:620px){.workflow-photo-editor{grid-template-columns:1fr auto}.workflow-photo-editor .button{grid-column:1/-1;width:100%}}
/* Driver Library v3 — compact engineering catalogue. */
.library-page>.page-heading>.eyebrow{margin-bottom:7px;color:var(--drivers-color)}
.library-page>.page-heading>.page-title{font-size:clamp(38px,3.7vw,52px);line-height:1.02;margin-bottom:10px}
.library-page>.page-heading>.page-lede{max-width:860px;margin-bottom:18px;font-size:15px;line-height:1.55;color:#5c687b}
.driver-library-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 18px;border:1px solid #dfe5ee;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(15,23,42,.035)}
.driver-library-stat{display:grid;gap:2px;padding:14px 18px;min-width:0;border-right:1px solid #e8edf3}
.driver-library-stat:last-child{border-right:0}
.driver-library-stat strong{font-size:23px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;color:#172033}
.driver-library-stat span{font-size:11px;line-height:1.35;color:#69758a}
.library-drafts{margin:0 0 14px;border:1px solid #eadca8;border-radius:10px;background:#fffdf6;overflow:hidden}
.library-drafts summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;cursor:pointer;font-size:12px;font-weight:700;color:#66531b}
.library-drafts summary strong{min-width:25px;height:25px;display:grid;place-items:center;border-radius:999px;background:#fff3c8}
.library-drafts>div{display:grid;border-top:1px solid #eee2ba}
.library-draft-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-top:1px solid #f3ead0}
.library-draft-row:first-child{border-top:0}
.library-draft-main{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 14px;color:var(--ink);text-decoration:none}
.library-draft-main:hover{background:#fff9e8}
.library-draft-main span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-draft-delete{min-width:74px;border:0;border-left:1px solid #f0dfdf;background:#fffafa;color:#a8243b;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.library-draft-delete:hover{background:#fff0f2;color:#87182b}
.library-draft-delete:focus-visible{outline:2px solid #7c3aed;outline-offset:-3px}
@media(max-width:520px){.library-draft-row{grid-template-columns:1fr}.library-draft-delete{min-height:40px;border-left:0;border-top:1px solid #f0dfdf}.library-draft-main{padding-block:11px}}
.library-browser{display:block;margin-top:0}
.library-commandbar{display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(170px,220px) auto;gap:10px;align-items:end;padding:12px;border:1px solid #dfe5ee;border-radius:14px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.045)}
.library-commandbar .library-search{display:grid;gap:5px;margin:0}
.library-commandbar .library-search>label,
.library-commandbar .library-sort>span{font-size:10px;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#68748a}
.library-commandbar .library-search input{height:40px;padding:0 12px;border-radius:9px;background:#fbfcfe}
.library-commandbar .library-filter-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;min-width:104px}
.library-commandbar .library-sort{display:grid;gap:5px;align-items:stretch}
.library-commandbar .library-sort select{height:40px;padding:0 34px 0 10px;border-radius:9px;background:#fff}
.library-view-toggle{display:flex;height:40px;padding:3px;border:1px solid #d8dee8;border-radius:9px;background:#f5f7fa}
.library-view-button{min-width:64px;border:0;border-radius:6px;background:transparent;color:#69758a;font:inherit;font-size:11px;font-weight:750;cursor:pointer}
.library-view-button[aria-pressed="true"]{background:#fff;color:#3d166f;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.library-filter-panel{margin-top:10px;padding:16px 18px 12px;border:1px solid #dfe5ee;border-radius:14px;background:#fbfcfe}
.library-filter-panel[hidden]{display:none}
.library-filter-panel>[data-library-facets]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 22px}
.library-filter-panel .library-filter-actions{display:flex;justify-content:flex-end;gap:8px;padding:4px 0 0}
.library-filter-panel .library-filter-done{display:inline-flex}
.library-filter-panel .library-facet__options{max-height:180px}
.library-main{min-width:0}
.library-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 2px 9px}
.library-results-toolbar>p{font-size:12px;font-weight:800;color:#374155}
.library-results-hint{font-size:11px;color:#7a8596}
.library-active-filters{margin:0 0 10px}
.library-card-view{display:none}.library-table-scroll{width:100%;overflow:auto;border:1px solid #dfe5ee;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.035)}
.driver-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;font-size:12px}
.driver-table th{position:sticky;top:0;z-index:2;padding:10px 12px;background:#f7f9fc;border-bottom:1px solid #dfe5ee;text-align:left;font-size:10px;line-height:1.3;font-weight:850;letter-spacing:.075em;text-transform:uppercase;color:#68748a;white-space:nowrap}
.driver-table td{padding:11px 12px;border-bottom:1px solid #edf1f5;vertical-align:middle;color:#344054}
.driver-table tbody tr:last-child td{border-bottom:0}
.driver-table-row{transition:background .12s ease,box-shadow .12s ease}
.driver-table-row:hover{background:#faf8ff;box-shadow:inset 3px 0 var(--drivers-color)}
.driver-table-identity{min-width:190px}
.driver-table-identity>a{display:grid;gap:1px;color:inherit;text-decoration:none}
.driver-table-identity strong{font-size:10px;line-height:1.3;letter-spacing:.04em;text-transform:uppercase;color:#6b7587}
.driver-table-identity span{font-size:14px;line-height:1.25;font-weight:800;color:#172033}
.driver-table-identity small{margin-top:2px;font-size:10px;color:#8a94a4;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-table-number{white-space:nowrap;font-variant-numeric:tabular-nums}
.driver-table-number>strong{display:block;font-size:13px;color:#172033}
.driver-table-number>small{display:block;margin-top:1px;font-size:10px;color:#8a94a4}
.driver-table-unit{font-size:10px;color:#7b8697}
.driver-table .driver-trust{max-width:150px;padding:5px 7px;font-size:10px;line-height:1.25}
.driver-trust--private{color:#4b5565;background:#f2f4f7;border-color:#d5dae2;box-shadow:inset 3px 0 #8691a2}
.driver-visibility{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:4px 7px;border:1px solid;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.driver-visibility--public{color:#08705b;background:#ebfaf5;border-color:#9ddfcd}
.driver-visibility--local{color:#5f6775;background:#f4f5f7;border-color:#d7dce3}
.driver-table-open{width:42px;text-align:center}
.driver-table-open a{display:grid;place-items:center;width:28px;height:28px;margin:auto;border-radius:8px;color:#6817c6;text-decoration:none;font-size:17px;font-weight:800}
.driver-table-open a:hover{background:#f1e9ff}#driver-library-browser[data-library-view="cards"] .library-table-view{display:none}
#driver-library-browser[data-library-view="cards"] .library-card-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
#driver-library-browser[data-library-view="table"] .library-card-view{display:none}
@media(max-width:1050px){
  .library-filter-panel>[data-library-facets]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .library-commandbar{grid-template-columns:minmax(260px,1fr) auto minmax(170px,210px)}
  .library-view-toggle{grid-column:3;justify-self:end}
}
@media(max-width:760px){
  .library-page>.page-heading>.page-title{font-size:38px}
  .driver-library-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .driver-library-stat:nth-child(2){border-right:0}
  .driver-library-stat:nth-child(-n+2){border-bottom:1px solid #e8edf3}
  .library-commandbar{grid-template-columns:1fr auto;align-items:end}
  .library-commandbar .library-sort{grid-column:1/-1}
  .library-view-toggle{display:none}
  .library-filter-panel>[data-library-facets]{grid-template-columns:1fr}
  .library-filter-panel .library-filter-actions{display:grid;grid-template-columns:1fr 1fr}
  .library-results-hint{display:none}
  #driver-library-browser .library-table-view{display:none!important}
  #driver-library-browser .library-card-view{display:grid!important;grid-template-columns:1fr;gap:12px}
}
@media(max-width:440px){
  .driver-library-overview{grid-template-columns:1fr}
  .driver-library-stat{border-right:0;border-bottom:1px solid #e8edf3!important}
  .driver-library-stat:last-child{border-bottom:0!important}
  .library-commandbar{grid-template-columns:1fr}
  .library-commandbar .library-filter-toggle,.library-commandbar .library-sort{grid-column:auto;width:100%}
  .library-filter-panel .library-filter-actions{grid-template-columns:1fr}
}

/* Driver detail v2 — compact technical cockpit. */
.driver-detail-page>.page-heading>.eyebrow{margin-bottom:7px;color:var(--drivers-color)}
.driver-detail-page>.page-heading>.page-title{font-size:clamp(40px,4vw,58px);line-height:1.02;margin-bottom:9px}
.driver-detail-page>.page-heading>.page-lede{max-width:920px;margin:0 0 18px;font-size:14px;line-height:1.5;color:#647085}
.driver-detail-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:14px}
.driver-back-link{font-size:12px;font-weight:750;color:#5f6c80;text-decoration:none}
.driver-back-link:hover{color:#6818d0}
.driver-detail-toolbar__meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.driver-meta-chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border:1px solid #e0e5ec;border-radius:999px;background:#f8fafc;color:#536074;font-size:10px;font-weight:750}
.driver-detail-page .view-toggle{justify-self:end;background:#f6f7f9}
.driver-detail-page .view-toggle a{min-width:74px;text-align:center}
.driver-access-message{margin:0 0 12px}
.driver-access-message .private-driver-note,.driver-access-message .community-warning{margin:0;padding:10px 12px;border-radius:10px}
.driver-pinned-note{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid #dfe5ee;border-radius:10px;background:#f8fafc;font-size:11px;color:#667388}
.driver-pinned-note strong{color:#374155}
.driver-detail-workflow{margin:0 0 12px}
.driver-detail-workflow .driver-detail-actions{display:flex;gap:8px;flex-wrap:wrap}
.driver-detail-workflow .workflow-form{margin:0 0 12px}
.driver-cockpit{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:14px;align-items:stretch}
.driver-photo-card,.driver-cockpit-main{border:1px solid #dfe5ee;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.035);min-width:0}
.driver-photo-card{padding:14px;display:flex;flex-direction:column;gap:12px}
.driver-photo-stage{display:grid;place-items:center;min-height:280px;border:1px solid #eef1f5;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfcfe)}
.driver-photo-stage .driver-photo{width:100%;height:280px;max-width:280px;max-height:280px;object-fit:contain;margin:0;background:transparent;border-radius:0}
.driver-photo-placeholder{display:grid;place-items:center;width:100%;height:280px;color:#8a94a4;font-size:11px}
.driver-photo-meta{display:grid;gap:0;margin:0}
.driver-photo-meta>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:8px 2px;border-top:1px solid #edf1f5;font-size:11px}
.driver-photo-meta dt{color:#7a8597}
.driver-photo-meta dd{margin:0;text-align:right;font-weight:700;color:#2b3442;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-cockpit-main{padding:14px}
.driver-primary-specs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:10px}
.driver-primary-spec{min-width:0;padding:11px 12px;border:1px solid #e7eaf0;border-radius:11px;background:#fbfcfd}
.driver-primary-spec span,.driver-primary-spec strong,.driver-primary-spec small{display:block}
.driver-primary-spec span{font-size:10px;color:#7b8598}
.driver-primary-spec strong{margin-top:3px;font-size:18px;line-height:1.15;color:#172033;overflow-wrap:anywhere}
.driver-primary-spec small{margin-top:3px;font-size:10px;color:#929aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-cockpit-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.driver-graph-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.driver-primary-figure-host{min-height:360px;padding:12px;border:1px solid #e6eaf0;border-radius:13px;background:#fff}
.driver-figure-placeholder{display:grid;place-items:center;align-content:center;gap:5px;min-height:330px;color:#7d8798;text-align:center}
.driver-figure-placeholder strong{font-size:14px;color:#49566a}
.driver-figure-placeholder span{font-size:11px}
.driver-review-notes{margin:14px 0 0;border:1px solid #ead9b7;border-radius:12px;background:#fffdf8;overflow:hidden}
.driver-review-notes>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;list-style:none}
.driver-review-notes>summary::-webkit-details-marker{display:none}
.driver-review-notes>summary span{display:grid;gap:2px}
.driver-review-notes>summary strong{font-size:12px;color:#574521}
.driver-review-notes>summary small{font-size:10px;color:#8c7a58}
.driver-review-notes>summary b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:#fff0c9;color:#77520a;font-size:10px}
.driver-review-notes>div{display:grid;border-top:1px solid #eee1c4}
.driver-review-note{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;margin:0;padding:10px 13px;border-top:1px solid #f3e8d2;font-size:11px;line-height:1.45}
.driver-review-note:first-child{border-top:0}
.driver-review-note strong{font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.driver-review-note--warning strong{color:#9a690e}.driver-review-note--error strong{color:#a8243b}.driver-review-note--info strong{color:#376885}
.driver-detail-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.driver-summary-card{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:18px}
.driver-summary-card__head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px}
.driver-summary-card__head .eyebrow{margin:0 0 4px;font-size:10px}
.driver-summary-card__head h2{margin:0;font-size:19px}
.driver-summary-card__head>span{font-size:10px;color:#8993a3}
.driver-summary-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0}
.driver-summary-card dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #edf1f5;font-size:11px}
.driver-summary-card dt{color:#758095}
.driver-summary-card dd{margin:0;text-align:right;font-weight:700;color:#2b3442}
.driver-engineering-section{margin-top:14px}
.driver-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:10px}
.driver-section-heading .eyebrow{margin:0 0 4px;font-size:10px}
.driver-section-heading h2{margin:0;font-size:21px}
.driver-section-heading>span{max-width:520px;text-align:right;color:#7a8597;font-size:10px}
.driver-detail-page .engineering-table{border-radius:14px}
.driver-detail-page .driver-source-note{margin-top:14px;padding:10px 12px;border:1px solid #e8ebf0;border-radius:10px;background:#fbfcfd}
@media(max-width:1280px){
  .driver-primary-specs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .driver-cockpit{grid-template-columns:1fr}
  .driver-photo-card{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);align-items:center}
  .driver-photo-meta>div{grid-template-columns:100px minmax(0,1fr)}
}
@media(max-width:760px){
  .driver-detail-page>.page-heading>.page-title{font-size:38px}
  .driver-detail-toolbar{grid-template-columns:1fr auto}
  .driver-back-link{grid-column:1}
  .driver-detail-toolbar__meta{grid-column:1/-1;grid-row:2}
  .driver-detail-page .view-toggle{grid-column:2;grid-row:1}
  .driver-photo-card{display:flex}
  .driver-photo-stage,.driver-photo-placeholder{min-height:220px;height:220px}
  .driver-photo-stage .driver-photo{height:220px;max-height:220px}
  .driver-primary-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .driver-primary-spec strong{font-size:16px}
  .driver-primary-figure-host{min-height:260px;padding:9px}
  .driver-figure-placeholder{min-height:240px}
  .driver-detail-summary-grid{grid-template-columns:1fr}
  .driver-section-heading{display:block}
  .driver-section-heading>span{display:block;text-align:left;margin-top:5px}
}
@media(max-width:440px){
  .driver-primary-specs{grid-template-columns:1fr 1fr}
  .driver-primary-spec{padding:10px}
  .driver-cockpit-actions{align-items:stretch}
  .driver-cockpit-actions>.button,.driver-graph-actions,.driver-graph-actions .button{width:100%}
  .driver-summary-card dl{grid-template-columns:1fr}
  .driver-review-note{grid-template-columns:1fr}
}

/* Complete account + admin console */
.account-profile-form,.account-security-form,.account-danger-zone form{max-width:none}
.account-security-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end}
.account-danger-zone{border-color:#efc7cc;background:#fffafb}.account-danger-zone h2{color:#8e2435}
.admin-console{display:grid;gap:20px;max-width:1400px}
.admin-console>.master-admin-panel{width:100%;max-width:none}
.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.admin-stats>div{display:grid;gap:4px;padding:14px;border:1px solid #e6e8ee;border-radius:12px;background:#fbfcfd}
.admin-stats strong{font-size:22px}.admin-stats span{font-size:var(--font-sm);color:#758095}
.admin-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(120px,1fr)) auto auto;gap:10px;align-items:end}
.admin-filters label,.admin-edit-grid label,.admin-control-grid label{display:grid;gap:6px;font-size:var(--font-sm);font-weight:650}
.admin-filters input,.admin-filters select,.admin-edit-grid input,.admin-edit-grid select,.admin-edit-grid textarea,.admin-control-grid input,.admin-control-grid select{width:100%;min-width:0}
.admin-user-list{display:grid;gap:10px}.admin-user-card{border:1px solid #e2e6ed;border-radius:13px;background:#fff;overflow:hidden}
.admin-user-card>summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 16px;cursor:pointer}
.admin-user-card>summary>span:first-child{display:grid;gap:3px}.admin-user-card summary small{color:#748096}
.admin-user-chips{display:flex;align-items:center;gap:7px}.admin-user-chips b,.admin-user-chips i{font-size:10px;padding:5px 7px;border-radius:999px;font-style:normal}
.admin-user-chips b{background:#f2ecfb;color:#651cc6}.admin-user-chips .is-active{background:#e9f7ef;color:#267148}.admin-user-chips .is-suspended{background:#fff4dc;color:#8a6010}.admin-user-chips .is-deleted{background:#f3f4f6;color:#697386}

.admin-user-meta{display:flex;flex-wrap:wrap;gap:8px 18px;padding:0 16px 14px;color:#6f7a8c;font-size:var(--font-sm)}
.admin-user-edit,.admin-control-grid,.admin-quick-actions,.admin-danger{margin:0 16px 16px;padding-top:14px;border-top:1px solid #eceef2}
.admin-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.admin-edit-wide{grid-column:1/-1}
.admin-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-control-grid form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.admin-quick-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-danger{display:flex;gap:10px;align-items:end;justify-content:flex-end}.admin-danger label{display:grid;gap:6px;min-width:min(320px,100%)}
.admin-audit-list{display:grid;gap:7px}.admin-audit-list>div{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(220px,1.5fr) auto;gap:14px;padding:10px 12px;border:1px solid #e8eaf0;border-radius:10px}.admin-audit-list span,.admin-audit-list small{color:#748096}
.admin-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px}.admin-pagination [aria-disabled=true]{pointer-events:none;opacity:.45}
@media(max-width:980px){.admin-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.account-security-form{grid-template-columns:1fr 1fr}.account-security-form .button{grid-column:1/-1;justify-self:start}.admin-control-grid form{grid-template-columns:1fr}}
@media(max-width:680px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-filters,.admin-edit-grid,.admin-control-grid{grid-template-columns:1fr}.admin-edit-wide{grid-column:auto}.admin-user-card>summary{align-items:flex-start;flex-direction:column}.admin-user-chips{flex-wrap:wrap}.admin-danger{align-items:stretch;flex-direction:column}.admin-danger .button{width:100%}.admin-audit-list>div{grid-template-columns:1fr;gap:3px}.account-security-form{grid-template-columns:1fr}.admin-quick-actions .button{width:100%}}
@media(max-width:390px){.admin-stats{grid-template-columns:1fr}.admin-filters .button{width:100%}.admin-user-edit,.admin-control-grid,.admin-quick-actions,.admin-danger{margin-inline:12px}.admin-user-card>summary{padding-inline:12px}}

/* Master Admin operations dashboard */
.admin-dashboard{display:grid;gap:14px}.admin-dashboard .workflow-section__head p{margin:4px 0 0;color:#697587;font-size:var(--font-sm)}.admin-dashboard__freshness{color:#788294;font-size:11px;white-space:nowrap}
.admin-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-dashboard-card{display:grid;align-content:start;gap:5px;min-height:142px;padding:15px 16px;border:1px solid #e2e6ed;border-radius:12px;background:#fafbfd}.admin-dashboard-card>span{color:#707c8f;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.admin-dashboard-card>strong{color:#202735;font-size:30px;line-height:1.05}.admin-dashboard-card p,.admin-dashboard-card small{margin:0;color:#697587;font-size:11px;line-height:1.45}.admin-dashboard-card a{align-self:end;width:max-content;margin-top:3px;color:#641bc8;font-size:11px;font-weight:800;text-decoration:none}.admin-dashboard-card.needs-attention{border-color:#dfc170;background:#fffdf7;box-shadow:inset 3px 0 #d69a17}.admin-dashboard-card--system strong{font-size:20px}.admin-dashboard-note{margin:0;color:#7a8494;font-size:11px}
@media(max-width:980px){.admin-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.admin-dashboard .workflow-section__head{align-items:flex-start;flex-direction:column}.admin-dashboard__freshness{white-space:normal}.admin-dashboard-grid{grid-template-columns:1fr}.admin-dashboard-card{min-height:0}}

/* Admin Console P1.1 */
.admin-account-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.35fr);gap:10px;margin:14px 0 8px}.admin-account-summary>section,.admin-archived-summary{padding:13px 14px;border:1px solid #e4e7ed;border-radius:11px;background:#fafbfd}.admin-account-summary>section>div{display:flex;gap:10px 24px;flex-wrap:wrap}.admin-account-summary span{color:#697587;font-size:var(--font-sm)}.admin-account-summary strong{margin-right:3px;color:#1d2531;font-size:18px}.admin-archived-summary{display:grid;gap:5px;color:inherit;text-decoration:none}.admin-archived-summary:hover{border-color:#cdb9e8;background:#faf7ff}.admin-archived-summary>span:last-child{display:flex;align-items:center;justify-content:space-between}.admin-archived-summary b{color:#641bc8;font-size:18px}.admin-summary-note{margin:0 0 10px;color:#697587;font-size:var(--font-sm)}
.admin-history{padding:0;overflow:hidden}.admin-history>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;cursor:pointer;list-style:none}.admin-history>summary::-webkit-details-marker{display:none}.admin-history>summary h2{margin:0}.admin-history>summary p{margin:4px 0 0;color:#697587;font-size:var(--font-sm)}.admin-history>summary>span{display:flex;align-items:center;gap:4px;color:#697587;font-size:var(--font-sm);white-space:nowrap}.admin-history>summary>span b{margin-left:8px;padding:6px 9px;border:1px solid #d9cbed;border-radius:8px;color:#641bc8}.admin-history[open]>summary{border-bottom:1px solid #e8eaf0}.admin-history__body{padding:16px 22px 22px}
.admin-summary-strip{display:flex;align-items:center;gap:8px 22px;flex-wrap:wrap;margin:14px 0 8px;padding:11px 13px;border:1px solid #e4e7ed;border-radius:11px;background:#fafbfd}.admin-summary-strip span{color:#697587;font-size:var(--font-sm)}.admin-summary-strip strong{margin-right:3px;color:#1d2531;font-size:17px}.admin-secondary-stats{margin:0 0 16px;color:#697587;font-size:var(--font-sm)}.admin-secondary-stats>summary{cursor:pointer;font-weight:700}.admin-secondary-stats>div{display:flex;gap:8px 20px;flex-wrap:wrap;padding-top:8px}
.admin-user-table-head,.admin-user-row{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(180px,1.35fr) 118px 96px 150px auto;gap:12px;align-items:center}.admin-user-table-head{padding:0 12px 8px;color:#778297;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.admin-user-list{gap:6px}.admin-user-row{min-width:0;padding:11px 12px;border:1px solid #e4e7ed;border-radius:10px;background:#fff;font-size:var(--font-sm)}.admin-user-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.admin-user-primary{display:grid;gap:2px}.admin-user-primary strong,.admin-user-primary small{overflow:hidden;text-overflow:ellipsis}.admin-user-primary small{color:#758095}.admin-user-row>.button{justify-self:end}.admin-chip{display:inline-flex;width:max-content;padding:4px 7px;border-radius:999px;font-size:10px}.admin-chip--role{background:#f2ecfb;color:#651cc6}.admin-chip.is-active{background:#e9f7ef;color:#267148}.admin-chip.is-suspended{background:#fff4dc;color:#8a6010}.admin-chip.is-deleted{background:#f3f4f6;color:#697386}
.admin-manage-dialog{display:grid;gap:16px}.admin-manage-dialog .app-dialog__head{margin:0}.admin-manage-dialog .app-dialog__head p{margin:5px 0 0;color:#6e798b}.admin-dialog-meta{display:flex;gap:8px 18px;flex-wrap:wrap;padding:11px 12px;border-radius:10px;background:#f7f8fa;color:#727d8f;font-size:var(--font-sm)}.admin-dialog-meta span{display:grid;gap:2px}.admin-dialog-meta strong{color:#2d3542}.admin-dialog-section{display:grid;gap:11px;padding-top:16px;border-top:1px solid #e8eaf0}.admin-dialog-section h3{margin:0;font-size:17px}.admin-dialog-section>p{margin:0;color:#697587;line-height:1.5}.admin-dialog-section form{display:grid;gap:10px}.admin-dialog-danger{padding:16px;border:1px solid #edc7cd;border-radius:12px;background:#fffafa}.admin-dialog-danger label{display:grid;gap:6px;font-size:var(--font-sm);font-weight:700}.admin-dialog-danger input{width:100%}.admin-dialog-danger .button{justify-self:start}.admin-protected-note{padding:12px 13px;border-left:3px solid #8350c3;background:#faf6ff;color:#5c347f}.admin-manage-dialog .admin-quick-actions{margin:0;padding:0;border:0}
.admin-audit-filters{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 12px}.admin-audit-filters a{padding:7px 10px;border:1px solid #e0e4ea;border-radius:8px;color:#5f6b7d;font-size:var(--font-sm);font-weight:700;text-decoration:none}.admin-audit-filters a.is-active{border-color:#cbb2ee;background:#f5effe;color:#641bc8}.admin-audit-list{gap:5px}.admin-audit-row{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:13px;align-items:start;padding:10px 12px;border:1px solid #e7e9ee;border-radius:9px;background:#fff}.admin-audit-category{padding:4px 6px;border-radius:6px;background:#f2f4f7;color:#687487;font-size:10px;font-weight:800;text-align:center}.admin-audit-row p{margin:2px 0;color:#596577;font-size:var(--font-sm)}.admin-audit-row small{color:#818b9a}.admin-audit-row>details>summary{cursor:pointer;color:#651cc6;font-size:var(--font-sm);font-weight:700}.admin-audit-row dl{display:grid;gap:6px;min-width:min(500px,70vw);margin:10px 0 0;padding:10px;border:1px solid #e7e9ee;border-radius:8px;background:#fafbfd}.admin-audit-row dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}.admin-audit-row dt{color:#737f92}.admin-audit-row dd{margin:0;overflow-wrap:anywhere}
@media(max-width:1080px){.admin-user-table-head{display:none}.admin-user-row{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto}.admin-user-row>span[data-label="Last login"]{grid-column:1/3}.admin-user-row>.button{grid-column:4;grid-row:1/3}.admin-user-row>span[data-label]::before{content:attr(data-label) " ";color:#8992a1;font-size:10px;font-weight:800;text-transform:uppercase}}
@media(max-width:680px){.admin-account-summary{grid-template-columns:1fr}.admin-history>summary{align-items:flex-start;flex-direction:column}.admin-history>summary>span{width:100%;justify-content:space-between}.admin-summary-strip{display:grid;grid-template-columns:1fr 1fr}.admin-user-row{grid-template-columns:1fr;gap:8px}.admin-user-row>span[data-label="Last login"],.admin-user-row>.button{grid-column:auto;grid-row:auto}.admin-user-row>.button{width:100%;justify-self:stretch}.admin-dialog-meta,.admin-secondary-stats>div{display:grid}.admin-audit-row{grid-template-columns:1fr}.admin-audit-category{justify-self:start}.admin-audit-row dl{min-width:0}.admin-audit-row dl>div{grid-template-columns:1fr;gap:2px}.admin-manage-dialog .admin-control-grid{grid-template-columns:1fr}}
@media(max-width:390px){.admin-summary-strip{grid-template-columns:1fr}.admin-audit-filters{display:grid;grid-template-columns:1fr 1fr}.admin-audit-filters a{text-align:center}}

/* P2 engineering contribution system */
.contribution-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0}.contribution-summary>div{display:grid;gap:3px;padding:13px 14px;border:1px solid #e5e8ee;border-radius:11px;background:#fafbfc}.contribution-summary strong{font-size:22px;color:#202735}.contribution-summary span{font-size:11px;color:#748096}.contribution-summary .needs-attention{border-color:#ead39b;background:#fffaf0}
.contribution-filters{display:flex;gap:7px;overflow-x:auto;padding:2px 0 16px}.contribution-filters a{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:8px 11px;border:1px solid #e0e4eb;border-radius:999px;color:#596579;font-size:12px;font-weight:750}.contribution-filters a span{min-width:20px;padding:1px 6px;border-radius:999px;background:#f1f3f7;text-align:center}.contribution-filters a.is-active{border-color:#8b2cff;background:#f5efff;color:#651ac1}
.contribution-dashboard-list{display:grid;gap:10px}.contribution-dashboard-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border:1px solid #e3e7ed;border-radius:12px;background:#fff}.contribution-dashboard-row.needs-attention{border-color:#dfc170;background:#fffdf7;box-shadow:inset 4px 0 #d69a17}.contribution-dashboard-row__main{min-width:0}.contribution-dashboard-row__title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.contribution-dashboard-row h3{margin:0;font-size:16px}.contribution-dashboard-row__status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 5px}.contribution-dashboard-row p{margin:3px 0;color:#748096;font-size:11px}.contribution-type{display:inline-flex;color:#6b7280;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.contribution-feedback-indicator{color:#8a5b00!important;font-weight:700}
.contribution-status,.contribution-trust{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border:1px solid #dfe3ea;border-radius:999px;background:#f7f8fa;color:#535f72;font-size:11px;font-weight:800}.contribution-status--pending_review{border-color:#cfc6f8;background:#f4f1ff;color:#5732a5}.contribution-status--needs_changes{border-color:#e4c77d;background:#fff8e6;color:#855a00}.contribution-status--approved{border-color:#b9ddc8;background:#effaf3;color:#17643a}.contribution-status--rejected{border-color:#e5c7c7;background:#fbf2f2;color:#8b3f45}
.contribution-detail-header{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:28px;padding:22px;border:1px solid #e1e5ec;border-radius:15px;background:linear-gradient(135deg,#fff 55%,#faf7ff)}.contribution-detail-header h2{margin:5px 0 10px;font-size:28px}.contribution-detail-badges{display:flex;gap:8px;flex-wrap:wrap}.contribution-detail-header dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.contribution-detail-header dl>div{padding:9px 10px;border:1px solid #eceef2;border-radius:9px;background:#fff}.contribution-detail-header dt{font-size:10px;color:#7a8495;text-transform:uppercase;font-weight:800}.contribution-detail-header dd{margin:3px 0 0;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.contribution-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:18px 0;padding:0;list-style:none}.contribution-stepper li{position:relative;display:flex;align-items:center;gap:8px;color:#8991a0;font-size:12px}.contribution-stepper li:not(:last-child)::after{content:"";height:2px;flex:1;background:#e2e5eb}.contribution-stepper li>span{display:grid;place-items:center;flex:0 0 27px;height:27px;border:1px solid #d7dce5;border-radius:50%;background:#fff}.contribution-stepper .is-complete,.contribution-stepper .is-current{color:#31204f}.contribution-stepper .is-complete>span,.contribution-stepper .is-current>span{border-color:#8b2cff;background:#f3eaff;color:#6417bd}.contribution-stepper .is-rejected>span{border-color:#cc9da1;background:#fbefef;color:#8b3f45}.contribution-return-path,.contribution-current-action{padding:12px 14px;border-radius:10px;background:#fff8e8;color:#76520a}.contribution-current-action{display:grid;gap:4px;margin:12px 0 20px;background:#f7f5fb;color:#252c39}.contribution-current-action span{font-size:10px;font-weight:850;letter-spacing:.09em;color:#6f3bb0}.contribution-current-action strong{font-size:13px}
.reviewer-feedback{border:1px solid #e0e4ea;border-radius:12px;padding:17px}.reviewer-feedback.is-actionable{border-color:#dfc170;background:#fffdf7}.reviewer-feedback blockquote{margin:12px 0 0;padding:12px 14px;border-left:3px solid #b27a00;background:#fff;color:#3d424d}.reviewer-feedback__date{font-size:11px;color:#788294}.contribution-withdraw-warning,.contribution-stale{margin:16px 0;padding:15px 17px;border:1px solid #dfc170;border-radius:11px;background:#fffaf0}.contribution-withdraw-warning p,.contribution-stale p{margin:5px 0 0}.contribution-stale .button{margin-top:10px}.contribution-readonly{overflow:hidden}.contribution-review-form{border-color:#d8caef;background:#fcfaff}
.evidence-coverage{display:flex;flex-wrap:wrap;gap:7px}.evidence-coverage span{display:inline-flex;gap:5px;padding:6px 9px;border:1px solid #dfe3e9;border-radius:8px;font-size:11px}.evidence-coverage .is-covered{border-color:#b8ddc7;background:#f1faf4;color:#17643a}.evidence-coverage .is-missing{border-color:#e2c77d;background:#fff9e9;color:#795400}.evidence-coverage-help,.correction-focus{padding:13px 15px;border:1px solid #ddd4ef;border-radius:10px;background:#faf7ff}.evidence-coverage-help p,.correction-focus span{display:block;margin:4px 0 0;color:#687386}.correction-intro{margin-bottom:18px}.correction-intro h2{margin:4px 0}.is-correction-focus{outline:3px solid rgba(139,44,255,.22);outline-offset:3px}.parameter-correction-link,.driver-primary-spec>a{display:block;margin-top:6px;color:#6f25bd;font-size:10px;font-weight:750}.engineering-row strong .parameter-correction-link{font-weight:700;text-transform:none;letter-spacing:normal}
.proposal-diff{display:block;max-width:100%;overflow-x:auto}.workflow-section{max-width:100%;overflow-wrap:anywhere}
@media(max-width:900px){.contribution-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.contribution-detail-header{grid-template-columns:1fr}.contribution-detail-header dl{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){.contribution-summary{grid-template-columns:1fr 1fr}.contribution-dashboard-row{align-items:stretch;flex-direction:column}.contribution-dashboard-row>.button{width:100%}.contribution-detail-header{padding:16px}.contribution-detail-header dl{grid-template-columns:1fr 1fr}.contribution-stepper{gap:7px}.contribution-stepper li{align-items:flex-start;flex-direction:column}.contribution-stepper li:not(:last-child)::after{position:absolute;left:27px;top:13px;width:calc(100% - 31px)}.contribution-stepper li strong{font-size:10px}.contribution-review-form .workflow-actions .button{width:100%}}
@media(max-width:390px){.contribution-summary{grid-template-columns:1fr}.contribution-detail-header dl{grid-template-columns:1fr}.contribution-stepper li>span{width:24px;height:24px;flex-basis:24px}.contribution-stepper li:not(:last-child)::after{left:24px;top:12px}.contribution-detail-header h2{font-size:23px}}
/* Driver Library v4 — filters | results | technical reference. */
.library-page>.page-heading>.page-lede{margin-bottom:14px}
.driver-library-overview{margin-bottom:12px}
.driver-library-stat{padding:11px 15px}
.driver-library-stat strong{font-size:20px}
.library-drafts{margin-bottom:12px}
.library-browser{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;margin-top:0}
.library-sidebar{min-width:0;border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.library-sidebar__head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:0 0 11px;border-bottom:1px solid #e8ecf2}
.library-sidebar__head>div{display:grid;gap:2px}
.library-sidebar__head strong{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#273247}
.library-sidebar__head span{font-size:10px;color:#7c8798}
.library-sidebar__head>b{padding:4px 7px;border:1px solid #e1e5ec;border-radius:999px;background:#f7f9fb;color:#637086;font-size:10px;font-weight:750}
.library-sidebar .library-search{display:grid;gap:6px;margin:12px 0 5px}
.library-sidebar .library-search>label{font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase;color:#68748a}
.library-sidebar .library-search input{width:100%;height:40px;padding:0 11px;border:1px solid #d7dde7;border-radius:9px;background:#fbfcfe;color:var(--ink);font-size:12px}
.library-sidebar .library-search input:focus{outline:none;border-color:#7a25eb;box-shadow:inset 0 0 0 2px rgba(122,37,235,.72)}
.library-sidebar .library-filter-panel{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.library-sidebar .library-filter-panel>[data-library-facets]{display:block}
.library-sidebar .library-facet{margin:0;padding:0;border-bottom:1px solid #e9edf2}
.library-sidebar .library-filter-summary{min-height:42px;padding:0 2px}
.library-sidebar .library-filter-summary span:first-child{font-size:10px;letter-spacing:.065em}
.library-sidebar .library-filter-group__body{padding:0 2px 12px}
.library-sidebar .library-facet__options{max-height:none}
.library-sidebar .library-filter-option{min-height:30px}
.library-sidebar .library-filter-option span{font-size:11px}
.library-sidebar .library-filter-option small{font-size:10px}
.library-sidebar .facet-hint{font-size:10px;line-height:1.4}
.library-sidebar .library-range-inputs{grid-template-columns:1fr 1fr;gap:7px}
.library-sidebar .library-range-inputs label span{font-size:10px}
.library-sidebar .library-range-inputs input{min-width:0}
.library-sidebar .library-filter-actions{position:sticky;bottom:-14px;z-index:2;display:flex;gap:7px;justify-content:stretch;margin:8px -2px -14px;padding:11px 2px 14px;background:linear-gradient(180deg,rgba(255,255,255,.88),#fff 28%)}
.library-sidebar .library-filter-actions .button{flex:1;min-height:38px;padding:7px 9px;font-size:11px}
.library-results-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0 0 10px;padding:9px 0;border-bottom:1px solid #e8ecf2}
.library-results-toolbar>p{margin:0;font-size:13px;font-weight:850;color:#283449}
.library-results-controls{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.library-results-controls .library-sort{display:grid;gap:4px;min-width:170px}
.library-results-controls .library-sort>span{font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase;color:#68748a}
.library-results-controls .library-sort select{height:38px;padding:0 32px 0 10px;border:1px solid #d7dde7;border-radius:9px;background:#fff;font-size:11px}
.library-results-controls .library-filter-toggle{height:38px}
.library-view-toggle{height:38px}
.library-view-button{min-width:60px}
.library-active-filters:empty{display:none}
.library-active-filters{margin:0 0 9px}
.library-main .driver-table{min-width:980px;font-size:11px}
.library-main .driver-table th{padding:9px 9px}
.library-main .driver-table td{padding:10px 9px}
.library-main .driver-table-identity{min-width:150px}
.technical-legend-rail{display:none}
.technical-legend-inline{display:block;margin:0 0 10px;border:1px solid #dfe5ee;border-radius:11px;background:#fbfcfe}
.technical-legend-inline>summary{cursor:pointer;padding:11px 12px;font-size:11px;font-weight:800;color:#354156}
.technical-legend-inline[open]>summary{border-bottom:1px solid #e7ebf1}
.technical-legend-inline .technical-legend-content{padding:12px}
.technical-legend-inline .technical-legend-intro>strong{display:none}
.technical-legend-content{min-width:0}
.technical-legend-intro{padding-bottom:11px;border-bottom:1px solid #e8ecf2}
.technical-legend-intro>strong{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#273247}
.technical-legend-intro p{margin:4px 0 0;color:#788496;font-size:10px;line-height:1.4}
.technical-legend-items{display:grid}
.technical-legend-item{padding:9px 0;border-bottom:1px solid #edf0f4}
.technical-legend-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.technical-legend-item strong{font-size:11px;color:#293549}
.technical-legend-item>div>span{padding:2px 5px;border-radius:5px;background:#f0edf8;color:#6d3aac;font-size:10px;font-weight:750;white-space:nowrap}
.technical-legend-item p{margin:3px 0 0;color:#6f7a8c;font-size:10px;line-height:1.42}
.technical-legend-status{padding-top:12px}
.technical-legend-status h3{margin:0 0 5px;font-size:10px;letter-spacing:.075em;text-transform:uppercase;color:#4d596c}
.technical-legend-status h3:not(:first-child){margin-top:14px}
.technical-legend-status dl{margin:0}
.technical-legend-status dl>div{padding:7px 0;border-bottom:1px solid #edf0f4}
.technical-legend-status dt{font-size:10px;font-weight:800;color:#374155}
.technical-legend-status dd{margin:2px 0 0;color:#788496;font-size:10px;line-height:1.38}
@media(min-width:1000px){
  .library-browser{grid-template-columns:minmax(270px,290px) minmax(0,1fr);gap:18px}
  .library-sidebar{position:sticky;top:96px;max-height:calc(100dvh - 200px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#cbd2dc transparent}
  .library-sidebar::-webkit-scrollbar{width:7px}
  .library-sidebar::-webkit-scrollbar-thumb{background:#cbd2dc;border-radius:999px}
  .library-results-controls .library-filter-toggle{display:none}
  .library-sidebar .library-filter-done{display:none}
}
@media(min-width:1400px){
  .library-browser{grid-template-columns:minmax(270px,286px) minmax(0,1fr) minmax(230px,248px);gap:18px}
  .technical-legend-inline{display:none}
  .technical-legend-rail{display:block;position:sticky;top:96px;max-height:calc(100dvh - 200px);overflow-y:auto;padding:14px;border:1px solid #dfe5ee;border-radius:14px;background:#fbfcfe;scrollbar-width:thin;scrollbar-color:#cbd2dc transparent}
}
@media(max-width:999px){
  .library-sidebar{position:static;max-height:none;overflow:visible}
  .library-sidebar[hidden]{display:none}
  .library-filter-done{display:inline-flex}
  .library-results-toolbar{align-items:center}
  .library-results-controls .library-filter-toggle{display:inline-flex}
}
@media(max-width:760px){
  .library-results-toolbar{align-items:stretch;flex-direction:column}
  .library-results-controls{display:grid;grid-template-columns:1fr 1fr}
  .library-results-controls .library-filter-toggle{grid-column:1}
  .library-results-controls .library-sort{grid-column:1/-1;min-width:0}
  .library-results-controls .library-view-toggle{display:none}
  .technical-legend-inline>summary{min-height:44px;display:flex;align-items:center}
  .library-sidebar{padding:12px}
  .library-sidebar .library-filter-actions{position:static;margin:8px 0 0;padding:10px 0 0;background:none}
}
@media(max-width:440px){
  .library-results-controls{grid-template-columns:1fr}
  .library-results-controls .library-filter-toggle,.library-results-controls .library-sort{grid-column:1}
}

/* Driver Compare: one durable route for selection and results. */
.compare-selection-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px 16px;margin:0 0 14px;padding:8px 10px;border:1px solid #ddd4ec;border-radius:8px;background:#faf8ff;box-shadow:none}
.compare-selection-header h2{margin:0 0 3px;font-size:21px}.compare-selection-header p{margin:0;color:#687489;font-size:12px;line-height:1.45}.compare-selection-header>strong{font-size:13px;white-space:nowrap}.compare-selection-actions{display:flex;gap:8px}.compare-selection-actions .button{min-height:38px}.compare-selection-actions .is-disabled{opacity:.48;cursor:not-allowed}.compare-selection-message{grid-column:1/-1;min-height:1.4em;color:#8a4f12!important;font-weight:700}
.compare-library-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px 10px;margin:0 0 12px;padding:7px 9px;border:1px solid #ddd2eb;border-radius:8px;background:#fbf9fe;box-shadow:0 1px 3px rgba(59,31,95,.035)}.compare-library-toolbar[hidden]{display:none}.compare-library-toolbar>strong{font-size:13px}.compare-library-toolbar>span{color:#6d7584;font-size:11px}.compare-library-toolbar .compare-selection-actions{justify-self:end;gap:5px}.compare-library-toolbar .compare-selection-actions .button{min-height:34px;padding:6px 10px;border-radius:7px;font-size:12px}.compare-library-toolbar .compare-selection-message{grid-column:1/-1;margin:0;min-height:0;font-size:11px}.compare-library-toolbar .compare-selection-message:empty{display:none}.compare-library-toolbar .is-disabled{opacity:.48;cursor:not-allowed}.compare-selection-page .library-browser,.library-page .library-browser{container-name:driver-library;container-type:inline-size}
.compare-select-control{display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer}.compare-select-control input{width:15px;height:15px;margin:0;accent-color:var(--purple)}.compare-select-control--table:focus-within,.compare-select-control--card:has(input:focus-visible){outline:3px solid rgba(125,36,234,.25);outline-offset:2px;border-radius:7px}
.compare-select-control--table{min-width:34px;min-height:34px}.driver-table-row:has([data-compare-pick]:checked){background:#f7f2ff;box-shadow:inset 3px 0 var(--purple)}
.compare-card-wrap{display:flex;flex-direction:column;min-width:0;height:100%;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.compare-card-wrap:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(20,35,65,.07)}.library-main .compare-card-wrap>.driver-card{flex:1;height:auto;padding-bottom:0;border:0;border-radius:0;background:transparent;box-shadow:none;transition:none}.library-main .compare-card-wrap>.driver-card:hover{transform:none;box-shadow:none}.driver-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:40px;padding:0 clamp(12px,.58vw,18px) 6px}.library-main .driver-card-footer .driver-card__link{display:inline-flex;align-items:center;min-height:40px;margin:0;padding:0;color:var(--cyan);font-size:12px;font-weight:750}.compare-select-control--card{position:static;min-height:40px;padding:0 4px;border:0;border-radius:6px;background:transparent;color:#657084;font-size:12px;font-weight:650;line-height:1;white-space:nowrap;box-shadow:none}.compare-select-control--card input{position:absolute;width:1px;height:1px;margin:0;opacity:0;clip-path:inset(50%);pointer-events:none}.compare-select-control--card::before{content:"";display:grid;place-items:center;width:14px;height:14px;border:1px solid #aeb6c3;border-radius:3px;background:transparent;color:#fff;font-size:10px;font-weight:900;line-height:1}.compare-select-control--card:hover{background:#f8f5fc;color:#55218c}.compare-select-control--card.is-selected{background:transparent;color:#6b20bb;font-weight:700}.compare-select-control--card.is-selected::before{content:"✓";border-color:#7826d8;background:#7826d8}
.driver-detail-toolbar__actions{display:flex;align-items:center;gap:8px}.compare-detail-toggle{min-height:34px;padding:7px 10px;font-size:11px}.compare-detail-toggle.is-selected{border-color:#8a3bea;background:#f3ebff;color:#5f16b7}.compare-detail-message{grid-column:1/-1;margin:0;color:#8a4f12;font-size:12px;font-weight:700}
.compare-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.compare-result-actions .button{min-height:36px;padding:8px 12px;font-size:12px}.driver-compare-result{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0}.driver-compare-result>section{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(35,29,45,.035)}
.compare-section-heading{min-width:0}.compare-section-heading .eyebrow{margin:0 0 5px;color:#6d25bb;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.compare-section-heading h2{margin:0 0 5px;font-size:clamp(20px,2vw,25px);letter-spacing:-.025em}.compare-section-heading>p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.compare-summary{padding:20px}.compare-summary-grid{display:grid;grid-template-columns:repeat(var(--compare-columns),minmax(0,1fr));gap:12px;margin-top:17px}.compare-summary-card{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #e2e5eb;border-radius:13px;background:linear-gradient(150deg,#fff,#fbfcfe);min-width:0}.compare-summary-card>.driver-photo,.compare-summary-photo-empty{grid-row:1/3;width:78px;height:78px;border-radius:10px;object-fit:contain;background:#f3f5f8}.compare-summary-photo-empty{display:grid;place-items:center;color:#8a94a4;font-size:11px}.compare-summary-identity{min-width:0}.compare-summary-identity .driver-trust{display:inline-flex;margin-bottom:7px}.compare-summary-identity p{margin:0;color:#667285;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.compare-summary-identity h3{margin:2px 0 4px;font-size:17px;line-height:1.15;overflow-wrap:anywhere}.compare-summary-identity small{display:block;color:#7a8494;font-size:10px;line-height:1.4}.compare-summary-meta{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:2px 0 0}.compare-summary-meta div,.compare-summary-specs div{min-width:0}.compare-summary-meta dt,.compare-summary-specs dt{color:#788295;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.compare-summary-meta dd{margin:2px 0 0;font-size:12px;font-weight:750;overflow-wrap:anywhere}.compare-summary-specs{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0;border:1px solid #e7eaf0;border-radius:9px;overflow:hidden;background:#e7eaf0}.compare-summary-specs div{padding:8px;background:#fff}.compare-summary-specs dd{margin:3px 0 0;font-size:12px;font-weight:800}.compare-summary-actions{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;padding-top:2px}.compare-summary-actions a{color:#6e23bc;font-size:11px;font-weight:800}
.compare-differences{padding:20px}.compare-difference-list{display:grid;gap:0;margin-top:17px;border:1px solid #e4e7ed;border-radius:12px;overflow:hidden}.compare-difference-row{display:grid;grid-template-columns:minmax(150px,.75fr) repeat(var(--compare-columns),minmax(120px,1fr));border-bottom:1px solid #e8ebf0;background:#fff}.compare-difference-row:last-child{border-bottom:0}.compare-difference-row>div,.compare-difference-row>span{padding:11px 13px;min-width:0}.compare-difference-row>div{background:#f7f8fb}.compare-difference-row strong{font-size:12px}.compare-difference-row small{display:block;margin-top:2px;color:#7d618f;font-size:10px}.compare-difference-row>span{display:grid;gap:2px;border-left:1px solid #edf0f4;font-size:14px;font-weight:750}.compare-difference-row>span b{color:#778294;font-size:10px;letter-spacing:.04em;text-transform:uppercase;overflow-wrap:anywhere}.compare-empty-note{padding:14px;margin:0;color:var(--muted)}.compare-warnings{margin-top:14px;padding:14px 16px;border:1px solid #ead9b4;border-radius:11px;background:#fffaf0}.compare-warnings h3{margin:0 0 7px;font-size:13px}.compare-warnings ul{display:grid;gap:5px;margin:0;padding-left:19px;color:#675a3d;font-size:12px;line-height:1.45}
.compare-detail{padding:20px}.compare-detail-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.compare-view-options{display:flex;gap:8px;flex-wrap:wrap}.compare-view-options label{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #dfe3ea;border-radius:9px;background:#fafbfd;font-size:12px;font-weight:750;cursor:pointer}.compare-view-options input{width:17px;height:17px;accent-color:var(--purple)}.compare-section-tabs{display:flex;gap:4px;margin:17px 0 13px;padding:4px;border:1px solid #e0e4ea;border-radius:11px;background:#f5f6f8;overflow-x:auto}.compare-section-tabs button{flex:1;min-width:max-content;min-height:39px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:#657084;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.compare-section-tabs button[aria-selected="true"]{background:#fff;color:#5e1ca5;box-shadow:0 2px 8px rgba(30,21,41,.09)}.compare-section-tabs button:focus-visible,.compare-view-options label:focus-within{outline:3px solid rgba(125,36,234,.24);outline-offset:2px}.compare-panel-heading{display:flex;align-items:baseline;gap:10px;margin:0 0 9px}.compare-panel-heading h3{margin:0;font-size:15px}.compare-panel-heading p{margin:0;color:var(--muted);font-size:11px}
.compare-matrix-scroll{max-width:100%;overflow-x:auto;border:1px solid #dfe3ea;border-radius:11px;scrollbar-width:thin}.compare-matrix-scroll:focus-visible{outline:3px solid rgba(125,36,234,.24);outline-offset:2px}.compare-table{width:100%;min-width:calc(220px + var(--compare-columns,2) * 190px);border-collapse:separate;border-spacing:0;font-size:13px}.compare-table th,.compare-table td{padding:11px 13px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:top;background:#fff}.compare-table tr:last-child>*{border-bottom:0}.compare-table tr>*:last-child{border-right:0}.compare-table thead th{position:sticky;top:0;z-index:4;min-width:190px;background:#f5f7fa;box-shadow:0 1px #dfe3ea}.compare-table thead th:first-child,.compare-table tbody>tr:not(.compare-group)>th{position:sticky;left:0;z-index:3;min-width:190px;max-width:220px;background:#fafbfd}.compare-table thead th:first-child{z-index:5}.compare-group th{position:sticky;left:0;z-index:3;background:#eef1f5;color:#465469;font-size:10px;letter-spacing:.09em;text-transform:uppercase}.compare-data-row>th>span{font-weight:800}.compare-data-row>th>small{display:block;margin-top:3px;color:#76558e;font-size:10px;font-weight:700}.compare-value{position:relative;min-width:190px;font-weight:650}.compare-value.is-different{background:#fbf8ff;box-shadow:inset 3px 0 #b98bdd}.compare-value.is-missing{color:#8b94a2;font-weight:500}.compare-difference-marker{position:absolute;top:8px;right:8px;color:#8053a4;font-size:10px;font-style:normal;font-weight:900}.compare-driver-head strong,.compare-driver-head small,.compare-driver-head a{display:block}.compare-driver-head strong{font-size:12px;line-height:1.3}.compare-driver-head small{margin:4px 0 7px;color:#6f7a8d;font-size:10px;font-weight:500;line-height:1.35}.compare-driver-head a{width:max-content;color:#6f24bd;font-size:10px}.compare-evidence{margin-top:7px}.compare-evidence summary{width:max-content;color:#6c2baa;font-size:10px;font-weight:800;cursor:pointer}.compare-evidence>div{display:grid;gap:5px;margin-top:6px;padding:7px;border:1px solid #e2d7ef;border-radius:7px;background:#fff;font-size:10px;font-weight:500}.compare-evidence span,.compare-evidence small{display:block}.compare-evidence small{margin-top:2px;color:#6f7887;overflow-wrap:anywhere}
.compare-sources,.compare-figures{padding:20px}.compare-source-grid{display:grid;grid-template-columns:repeat(var(--compare-columns),minmax(0,1fr));gap:10px;margin-top:16px}.compare-source-grid article{padding:13px;border:1px solid #e2e5ea;border-radius:11px;background:#fafbfd;min-width:0}.compare-source-grid h3{margin:0 0 8px;font-size:13px}.compare-source-grid ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.compare-source-grid li{display:grid;gap:2px;font-size:11px;overflow-wrap:anywhere}.compare-source-grid span,.compare-source-grid small{color:#6f798a}.compare-figure-kind{margin-top:18px}.compare-figure-kind h3{margin:0 0 8px;font-size:14px}.compare-figure-grid{display:grid;grid-template-columns:repeat(var(--compare-columns),minmax(0,1fr));gap:10px;align-items:start}.compare-figure-cell{margin:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fafbfd;min-width:0}.compare-figure-cell.is-empty{padding:9px 10px}.compare-figure-cell figcaption{margin-bottom:7px;font-size:11px;font-weight:800}.compare-figure-cell img{display:block;width:100%;max-height:280px;object-fit:contain;background:#fff}.compare-figure-cell>small{display:block;margin-top:6px;color:#747f90;font-size:10px}.compare-figure-empty{display:block;color:#8b94a2;font-size:11px}
.draft-delete-dialog{width:min(500px,calc(100vw - 32px))}.draft-delete-dialog__name{padding:12px 14px;border:1px solid #e3e6eb;border-radius:10px;background:#f8f9fb;font-weight:800;overflow-wrap:anywhere}.draft-delete-dialog .button--danger{background:#a8243b;border-color:#a8243b;color:#fff}.draft-delete-dialog .button--danger:hover{background:#8d1d31;border-color:#8d1d31}
@media(max-width:1100px){.compare-summary-grid,.compare-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-summary-card{grid-template-columns:68px minmax(0,1fr)}.compare-summary-card>.driver-photo,.compare-summary-photo-empty{width:68px;height:68px}.compare-summary-specs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.compare-selection-header{grid-template-columns:1fr}.compare-library-toolbar{grid-template-columns:auto minmax(0,1fr)}.compare-library-toolbar .compare-selection-actions{grid-column:1/-1;justify-self:stretch;display:grid;grid-template-columns:1fr 1fr}.compare-selection-actions{display:grid;grid-template-columns:1fr 1fr}.compare-selection-actions .button{width:100%}.compare-library-toolbar .compare-selection-message,.compare-selection-message{grid-column:1/-1}.driver-detail-toolbar__actions{grid-column:1/-1;justify-content:space-between}.compare-summary-grid,.compare-source-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}.compare-summary-card,.compare-source-grid article{flex:0 0:min(82vw,340px);scroll-snap-align:start}.compare-detail-heading{align-items:stretch;flex-direction:column}.compare-view-options{display:grid;grid-template-columns:1fr 1fr}.compare-difference-row{grid-template-columns:140px repeat(var(--compare-columns),minmax(145px,1fr));min-width:calc(140px + var(--compare-columns) * 145px)}.compare-difference-list{overflow-x:auto}.compare-figure-grid{display:flex;overflow-x:auto}.compare-figure-cell{flex:0 0:min(78vw,360px)}.compare-panel-heading{align-items:flex-start;flex-direction:column;gap:3px}.compare-table{font-size:12px}.compare-table thead th:first-child,.compare-table tbody>tr:not(.compare-group)>th{min-width:145px;max-width:160px}.compare-table thead th,.compare-value{min-width:165px}}
@media(max-width:480px){.driver-action-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.driver-action-bar__main,.driver-action-bar__nav{display:contents}.driver-action--import,.driver-action--manual{grid-column:span 3}.driver-action--compare,.driver-action--contributions,.driver-action--review{grid-column:span 2}.driver-action-bar .button,.driver-action-tab{width:100%;min-width:0;padding-inline:7px;justify-content:center;font-size:11px;white-space:normal;text-align:center}.compare-selection-header .compare-selection-actions{grid-template-columns:1fr}.library-draft-row{grid-template-columns:minmax(0,1fr) auto}.library-draft-main{padding:11px 10px}.library-draft-delete{min-width:70px;padding:0 10px}.compare-summary,.compare-differences,.compare-detail,.compare-sources,.compare-figures{padding:14px}.compare-summary-specs{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-view-options{grid-template-columns:1fr}.compare-view-options label{min-height:44px}.compare-section-tabs button{min-height:44px}.compare-difference-row{grid-template-columns:125px repeat(var(--compare-columns),minmax(135px,1fr));min-width:calc(125px + var(--compare-columns) * 135px)}.compare-table th,.compare-table td{padding:10px}.compare-result-actions{display:grid;grid-template-columns:1fr 1fr}.compare-result-actions .button{width:100%}}
.compare-summary-specs{background:#fff}.compare-summary-specs div{border-right:1px solid #e7eaf0;border-bottom:1px solid #e7eaf0}
@media(max-width:780px){.compare-summary-card,.compare-source-grid article{flex:0 0 calc(100vw - 70px);width:calc(100vw - 70px);max-width:340px}.compare-figure-cell{flex:0 0 calc(100vw - 82px);width:calc(100vw - 82px);max-width:360px}}

/* Library -> Import -> Review: shared heading reference, not a global redesign. */
.driver-import-flow-page>.page-heading>.page-title{font-family:var(--font-family-ui);font-size:var(--font-page-title);font-weight:var(--weight-extrabold);line-height:1;letter-spacing:-.05em;margin:0 0 10px}
.driver-import-flow-page>.page-heading{margin-bottom:var(--space-4)}
.driver-import-flow-page>.page-heading>.page-lede{font-size:var(--font-lg);line-height:1.55;margin:0;max-width:900px}
.driver-import-flow-page:not(.library-page)>.page-heading,.driver-import-flow-page:not(.library-page)>.driver-action-bar{max-width:var(--form-page-max);margin-inline:auto}
.driver-import-flow-page>.driver-action-bar{flex-wrap:wrap;row-gap:10px;margin-bottom:var(--space-3)}
.driver-import-flow-page>.driver-action-bar .button,.driver-import-flow-page [data-import-datasheet]{min-height:40px;height:auto;box-sizing:border-box;padding:9px 13px;font-size:var(--font-base);line-height:1.2;border-radius:8px;white-space:normal}
.driver-import-flow-page [data-import-datasheet]{display:inline-flex;align-items:center;justify-content:center;max-width:100%}
.driver-import-page .import-shell{grid-template-columns:minmax(0,1.4fr) minmax(250px,.8fr);gap:var(--space-3);align-items:stretch}
.driver-import-page .drop-zone{box-sizing:border-box;min-width:0;min-height:330px;padding:28px 24px;gap:0;border-radius:14px}
.driver-import-page .drop-icon svg{width:56px;height:56px}
.driver-import-page .drop-zone h2{font-size:var(--font-xl);line-height:1.25;margin:16px 0 8px}
.driver-import-page .drop-zone p{font-size:var(--font-base);line-height:1.5;margin:0 0 20px}
.driver-import-page .drop-zone small{max-width:420px;font-size:var(--font-sm);line-height:1.5;margin-top:18px}
.driver-import-page .import-principles{padding:22px;border-radius:14px;min-width:0}
.driver-import-page .import-principles h3{font-size:var(--font-lg);margin:0 0 16px}
.driver-import-page .import-principles div{align-items:flex-start;gap:10px;padding:10px 0}
.driver-import-page .import-principles b{flex:0 0 25px}
.driver-import-page .import-principles span{font-size:var(--font-md);line-height:1.5}
.driver-import-page .processing-card{max-width:calc(100vw - 32px);box-sizing:border-box}
.driver-import-page .processing-card>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:780px){
 .driver-import-flow-page>.page-heading>.page-title{font-size:clamp(42px,11vw,54px)}
 .driver-import-flow-page>.page-heading>.page-lede{font-size:15px}
 .driver-import-page .import-shell{grid-template-columns:minmax(0,1fr)}
 .driver-import-page .drop-zone{min-height:280px;padding:24px 18px}
 .driver-import-page .import-principles{padding:18px}
}

/* Consolidated #66 accessibility/responsive refinements. */
.driver-import-flow-page .review-summary>div{min-width:0}
.driver-import-flow-page .review-summary .review-badge{flex:0 0 auto;white-space:nowrap}
.driver-import-page #pdf-runtime-error{grid-column:1 / -1;margin:0;overflow-wrap:anywhere}
.driver-import-flow-page .p3-parameter-help{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45;font-weight:400}


/* Driver detail media polish — every product photo stays visible; technical sources use a large inspection viewer. */
.driver-photo-stage{align-content:start;padding:8px}
.driver-product-photos{display:grid;grid-template-columns:1fr;gap:8px;width:100%;min-width:0}
.driver-product-photos:not([data-product-photo-count="1"]){grid-template-columns:repeat(2,minmax(0,1fr))}
.driver-photo-stage .driver-product-photo{display:grid;place-items:center;width:100%;min-width:0;aspect-ratio:1/1;padding:6px;border:1px solid #e6ebf1;border-radius:10px;background:#fff;cursor:zoom-in;overflow:hidden}
.driver-photo-stage .driver-product-photo.is-cover{border-color:#cfd9e5}
.driver-photo-stage .driver-product-photo .driver-photo{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:transparent}
.driver-product-photos[data-product-photo-count="1"] .driver-product-photo{min-height:264px}
.driver-technical-media-host{min-width:0}
.driver-technical-media{margin-top:12px;border-top:1px solid #e7ebf1;padding-top:14px}
.driver-technical-media__head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:10px}
.driver-technical-media__head h2{margin:0 0 3px;font-size:17px}.driver-technical-media__head p{margin:0;color:#788497;font-size:11px;line-height:1.45}
.driver-technical-viewer{min-width:0;padding:10px;border:1px solid #e1e7ee;border-radius:14px;background:#f8fafc}
.driver-technical-viewer__meta{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:2px 2px 10px}
.driver-technical-viewer__meta>div{min-width:0}.driver-technical-viewer__meta h3{margin:0 0 3px;font-size:14px;color:#202a3a}.driver-technical-viewer__meta p{margin:0;color:#7e899a;font-size:10px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driver-technical-viewer__meta>span{flex:none;padding:4px 8px;border:1px solid #dfe5ec;border-radius:999px;background:#fff;color:#667388;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.driver-technical-viewer__stage-shell{position:relative;min-width:0}
.driver-technical-viewer__stage{position:relative;display:grid;place-items:center;width:100%;height:clamp(430px,42vw,640px);min-height:430px;padding:18px;border:1px solid #dfe5ec;border-radius:12px;background:#fff;cursor:zoom-in;overflow:hidden}
.driver-technical-viewer__stage .driver-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;background:#fff;border-radius:0}
.driver-technical-viewer__open{position:absolute;right:12px;bottom:10px;padding:5px 8px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(28,38,54,.78);color:#fff;font-size:10px;font-weight:800;box-shadow:0 3px 10px rgba(15,23,42,.14)}
.driver-technical-viewer__arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:36px;height:48px;margin-top:-24px;border:1px solid #d7dee7;border-radius:10px;background:rgba(255,255,255,.94);color:#354055;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.09)}
.driver-technical-viewer__arrow:hover{border-color:var(--page-accent,#16b8d4);color:var(--page-accent,#16b8d4)}.driver-technical-viewer__arrow--prev{left:10px}.driver-technical-viewer__arrow--next{right:10px}
.driver-technical-viewer__thumbs{display:flex;gap:8px;margin-top:10px;padding:2px 2px 5px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
.driver-technical-viewer__thumb{flex:0 0 132px;display:grid;grid-template-rows:78px auto;gap:5px;min-width:0;padding:5px;border:1px solid #dfe5ec;border-radius:10px;background:#fff;color:#677386;text-align:left;cursor:pointer;scroll-snap-align:start}
.driver-technical-viewer__thumb img{width:100%;height:78px;object-fit:contain;background:#fff;border-radius:6px}.driver-technical-viewer__thumb span{display:block;min-width:0;padding:0 2px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:700}
.driver-technical-viewer__thumb[aria-pressed="true"]{border-color:var(--page-accent,#16b8d4);box-shadow:0 0 0 2px color-mix(in srgb,var(--page-accent,#16b8d4) 15%,transparent);color:#273447}
.driver-technical-media__empty{margin:12px 0 0;padding:14px;border:1px dashed #dce3eb;border-radius:10px;background:#fafbfd;color:#788497;font-size:11px}
@media(max-width:900px){.driver-technical-viewer__stage{height:clamp(360px,62vw,520px);min-height:360px}}
@media(max-width:760px){.driver-photo-stage{height:auto}.driver-product-photos[data-product-photo-count="1"] .driver-product-photo{min-height:204px}.driver-technical-viewer{padding:8px}.driver-technical-viewer__stage{height:clamp(290px,78vw,420px);min-height:290px;padding:10px}.driver-technical-viewer__thumb{flex-basis:112px;grid-template-rows:66px auto}.driver-technical-viewer__thumb img{height:66px}.driver-technical-viewer__arrow{width:32px;height:42px;margin-top:-21px}}
@media(max-width:440px){.driver-product-photos:not([data-product-photo-count="1"]){grid-template-columns:repeat(2,minmax(0,1fr))}.driver-technical-viewer__meta{align-items:flex-start}.driver-technical-viewer__meta p{white-space:normal}.driver-technical-viewer__open{display:none}}

/* Driver Detail professional engineering workspace. */
.driver-detail-page>.page-heading{margin-bottom:10px}
.driver-detail-page>.page-heading>.eyebrow{margin-bottom:4px}
.driver-detail-page>.page-heading>.page-title{font-size:clamp(38px,3.2vw,50px);margin-bottom:6px}
.driver-detail-page>.page-heading>.page-lede{margin-bottom:10px;font-size:13px}
.driver-detail-toolbar{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;margin-bottom:8px}
.driver-detail-toolbar__actions{display:flex;align-items:center;gap:7px}
.driver-meta-chip{min-height:24px;padding:3px 8px}
.driver-access-message{margin-bottom:8px}.driver-access-message .private-driver-note,.driver-access-message .community-warning{padding:7px 10px}
.driver-detail-workflow,.driver-pinned-note{margin-bottom:8px}
.driver-detail-workflow .driver-detail-actions{gap:7px}
.driver-cockpit{grid-template-columns:260px minmax(0,1fr);gap:12px;align-items:start}
.driver-photo-card{padding:10px;gap:10px;align-self:start}
.driver-photo-stage{display:block;min-height:0;padding:0;border:0;background:transparent}
.driver-product-gallery{display:grid;gap:8px;width:100%;min-width:0}
.driver-product-gallery__stage{display:grid;place-items:center;width:100%;aspect-ratio:1/1;padding:8px;border:1px solid #e3e8ef;border-radius:11px;background:#fff;cursor:zoom-in;overflow:hidden}
.driver-product-gallery__stage .driver-photo{width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:contain;border-radius:0}
.driver-product-gallery__thumbs{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:thin;scroll-snap-type:x proximity}
.driver-product-gallery__thumb{flex:0 0 54px;width:54px;height:54px;padding:3px;border:1px solid #dfe5ec;border-radius:8px;background:#fff;cursor:pointer;scroll-snap-align:start}
.driver-product-gallery__thumb img{width:100%;height:100%;object-fit:contain;border-radius:5px}
.driver-product-gallery__thumb[aria-pressed="true"]{border-color:var(--page-accent,#16b8d4);box-shadow:0 0 0 2px color-mix(in srgb,var(--page-accent,#16b8d4) 14%,transparent)}
.driver-photo-meta>div{grid-template-columns:86px minmax(0,1fr);gap:8px;padding:6px 1px;font-size:10px}
.driver-key-specs{padding-top:8px;border-top:1px solid #edf1f5}
.driver-key-specs h2{margin:0 0 6px;color:#5d6878;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.driver-key-specs dl{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:0;border:1px solid #e8ecf1;border-radius:9px;overflow:hidden;background:#e8ecf1}
.driver-key-specs dl>div{min-width:0;padding:7px 8px;background:#fff}
.driver-key-specs dt{color:#7d8797;font-size:10px;line-height:1.2}
.driver-key-specs dd{margin:3px 0 0;color:#202a39;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.driver-key-specs dd>a{display:block;width:max-content;margin-top:2px;color:#27849a;font-size:10px;font-weight:750;text-decoration:none}
.driver-key-specs>small{display:block;margin-top:6px;color:#8a94a4;font-size:10px}
.driver-cockpit-main{padding:10px 12px 12px}
.driver-cockpit-actions{margin-bottom:6px}
.driver-technical-media{margin-top:4px;padding-top:8px}
.driver-technical-media__head{margin-bottom:7px}
.driver-technical-media__head h2{font-size:16px}.driver-technical-media__head p{font-size:10px}
.driver-technical-viewer{padding:0;border:1px solid #dfe5ec;border-radius:12px;background:#fff;overflow:hidden}
.driver-technical-viewer__meta{padding:9px 10px;border-bottom:1px solid #e8ecf1;background:#fafbfd}
.driver-technical-viewer__meta h3{font-size:13px}.driver-technical-viewer__meta p{font-size:10px}
.driver-technical-viewer__meta-actions{display:flex;align-items:center;gap:8px;flex:none}
.driver-technical-viewer__meta-actions>[data-gallery-count]{padding:3px 7px;border:1px solid #dfe5ec;border-radius:999px;background:#fff;color:#667388;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}
.driver-technical-viewer__fit{display:flex;gap:2px;padding:2px;border:1px solid #e0e5ec;border-radius:7px;background:#fff}
.driver-technical-viewer__fit button{min-height:26px;padding:4px 7px;border:0;border-radius:5px;background:transparent;color:#6d7889;font:inherit;font-size:10px;font-weight:750;cursor:pointer}
.driver-technical-viewer__fit button[aria-pressed="true"]{background:#edf9fc;color:#087f95}
.driver-technical-viewer__stage-shell{background:#f5f7f9}
.driver-technical-viewer__stage{align-items:start;justify-items:center;width:100%;height:clamp(430px,39vw,620px);min-height:430px;padding:12px;border:0;border-radius:0;background:#f7f9fb;overflow:auto;cursor:zoom-in}
.driver-technical-viewer__stage .driver-photo{margin:0;background:#fff;border-radius:3px;box-shadow:0 1px 5px rgba(15,23,42,.06)}
.driver-technical-viewer[data-fit="contain"] .driver-technical-viewer__stage{align-items:center}
.driver-technical-viewer[data-fit="contain"] .driver-technical-viewer__stage .driver-photo{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.driver-technical-viewer[data-fit="width"] .driver-technical-viewer__stage .driver-photo{width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain}
.driver-technical-viewer[data-fit="actual"] .driver-technical-viewer__stage{justify-items:start}
.driver-technical-viewer[data-fit="actual"] .driver-technical-viewer__stage .driver-photo{width:auto;height:auto;max-width:none;max-height:none;object-fit:none}
.driver-technical-viewer__open{right:10px;bottom:9px}
.driver-technical-viewer__thumbs{margin:0;padding:8px 10px 9px;border-top:1px solid #e6eaf0;background:#fafbfd}
.driver-technical-viewer__thumb{flex-basis:118px;grid-template-rows:68px auto;padding:4px;border-radius:8px}
.driver-technical-viewer__thumb img{height:68px}.driver-technical-viewer__thumb span{font-size:10px}
.driver-engineering-section{width:min(100%,1240px);margin:18px auto 0}
.driver-section-heading{width:100%;margin-bottom:8px;align-items:end}
.driver-section-heading>span{max-width:390px}
.driver-detail-page .engineering-table{width:100%;margin-inline:auto;border-radius:11px;font-variant-numeric:tabular-nums}
.driver-detail-page .engineering-head,.driver-detail-page .engineering-row{grid-template-columns:26% 20% 20% 18% 16%;gap:0;padding:0}
.driver-detail-page .engineering-head>*,.driver-detail-page .engineering-row>*{min-width:0;padding:8px 13px}
.driver-detail-page .engineering-head{font-size:10px}.driver-detail-page .engineering-row{min-height:38px;font-size:10px}
.driver-detail-page .engineering-row strong{font-size:10px}.driver-detail-page .engineering-source{color:#667388}
.driver-detail-page .parameter-correction-link{display:block;width:max-content;margin-top:2px;font-size:10px}
.engineering-status{display:inline-flex;width:max-content;padding:3px 6px;border-radius:999px;background:#f1f3f6;color:#687385;font-size:10px;font-weight:800;line-height:1.2}
.engineering-status--confirmed{background:#edf7f1;color:#3f7257}.engineering-status--review{background:#fff7e8;color:#8a6518}.engineering-status--check{background:#fff0f2;color:#9a3040}
.driver-detail-page .driver-source-note{width:min(100%,1240px);margin:10px auto 0}
@media(max-width:900px){
  .driver-cockpit{grid-template-columns:1fr}
  .driver-photo-card{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);grid-template-areas:"gallery meta" "gallery specs";align-items:start}
  .driver-photo-stage{grid-area:gallery}.driver-photo-meta{grid-area:meta}.driver-key-specs{grid-area:specs}
  .driver-technical-viewer__stage{height:clamp(360px,60vw,520px);min-height:360px}
}
@media(max-width:760px){
  .driver-detail-page>.page-heading>.page-title{font-size:36px}
  .driver-detail-toolbar{grid-template-columns:1fr;gap:7px}.driver-detail-toolbar__meta,.driver-detail-toolbar__actions{grid-column:1;grid-row:auto;justify-self:start;flex-wrap:wrap}
  .driver-photo-card{display:flex;padding:10px}.driver-product-gallery__stage{max-height:300px}.driver-product-gallery__thumb{flex-basis:52px}
  .driver-technical-viewer__meta{align-items:flex-start;flex-direction:column;gap:7px}.driver-technical-viewer__meta-actions{width:100%;justify-content:space-between}
  .driver-technical-viewer__fit button{min-height:32px}.driver-technical-viewer__stage{height:clamp(290px,78vw,420px);min-height:290px;padding:8px}
  .driver-technical-viewer__thumb{flex-basis:110px;grid-template-rows:64px auto}.driver-technical-viewer__thumb img{height:64px}
  .driver-engineering-section{width:100%}.driver-section-heading{display:block}.driver-section-heading>span{display:block;margin-top:4px;text-align:left}
  .driver-detail-page .engineering-table{overflow-x:auto}.driver-detail-page .engineering-head,.driver-detail-page .engineering-row{min-width:760px}
}
@media(max-width:440px){.driver-key-specs dl{grid-template-columns:1fr 1fr}.driver-cockpit-actions{align-items:stretch}.driver-cockpit-actions>.button,.driver-graph-actions,.driver-graph-actions .button{width:100%}}

/* Driver Detail final layout correction — centered workspace, stable galleries and readable engineering data. */
.driver-detail-page>.page-heading,
.driver-detail-page>.page-content{width:min(100%,1560px);max-width:1560px;margin-inline:auto;box-sizing:border-box}
.driver-detail-workflow .driver-detail-actions{gap:8px}
.driver-detail-workflow .driver-detail-actions .button{min-height:36px;padding:8px 14px;border-radius:8px;font-size:12px;line-height:1.2}
.driver-detail-toolbar__actions .button{min-height:36px;padding:8px 13px;font-size:12px}
.driver-cockpit{grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:stretch}
.driver-photo-card{display:flex;flex-direction:column;align-self:stretch;height:auto;min-height:0;overflow:visible;padding:12px;gap:12px}
.driver-photo-stage{display:block;flex:0 0 auto;min-height:0;overflow:visible}
.driver-product-gallery{display:flex;flex-direction:column;width:100%;min-width:0;gap:10px}
.driver-product-gallery__stage{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;padding:10px;box-sizing:border-box;overflow:hidden}
.driver-product-gallery__stage .driver-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.driver-product-gallery__thumbs{position:static;display:flex;flex:0 0 auto;gap:8px;width:100%;margin:0;padding:1px 1px 4px;overflow-x:auto;overflow-y:hidden;box-sizing:border-box}
.driver-product-gallery__thumb{flex:0 0 58px;width:58px;height:58px}
.driver-photo-meta{flex:0 0 auto;margin:0;padding-top:2px}
.driver-photo-meta>div{grid-template-columns:100px minmax(0,1fr);padding:7px 1px;font-size:11px}
.driver-key-specs{flex:0 0 auto;padding-top:10px}
.driver-key-specs h2{font-size:11px}
.driver-key-specs dt{font-size:10px}
.driver-key-specs dd{font-size:13px}
.driver-cockpit-main{display:flex;flex-direction:column;align-self:stretch;height:auto;min-height:0;padding:0;overflow:hidden}
.driver-technical-media-host,.driver-technical-media,.driver-technical-viewer{height:100%;min-height:0}
.driver-technical-media{margin:0;padding:0;border-top:0}
.driver-technical-viewer{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0}
.driver-technical-viewer__meta{padding:9px 12px}
.driver-technical-viewer__stage-shell{position:relative;height:100%;min-height:0;overflow:hidden;background:#f7f9fb}
.driver-technical-viewer__stage{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%;height:100%;min-height:0!important;padding:14px!important;box-sizing:border-box;overflow:hidden!important;background:#f7f9fb}
.driver-technical-viewer[data-fit="contain"] .driver-technical-viewer__stage .driver-photo{position:static!important;inset:auto!important;display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:auto;background:#fff}
.driver-technical-viewer__thumbs{padding:8px 10px 9px;gap:8px}
.driver-technical-viewer__thumb{flex-basis:112px;grid-template-rows:62px auto}
.driver-technical-viewer__thumb img{height:62px}
.driver-engineering-section{width:100%;max-width:none;margin:22px auto 0}
.driver-section-heading{margin-bottom:10px}
.driver-section-heading h2{font-size:24px}
.engineering-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.driver-detail-page .engineering-table{width:100%;min-width:0;margin:0;border-radius:11px;overflow:hidden;font-variant-numeric:tabular-nums}
.driver-detail-page .engineering-head,.driver-detail-page .engineering-row{grid-template-columns:34% 28% 22% 16%;gap:0;padding:0}
.driver-detail-page .engineering-head>*,
.driver-detail-page .engineering-row>strong,
.driver-detail-page .engineering-row>.engineering-value,
.driver-detail-page .engineering-row>.engineering-evidence,
.driver-detail-page .engineering-row>span:not(.engineering-value):not(.engineering-evidence){min-width:0;padding:10px 12px}
.driver-detail-page .engineering-head{font-size:11px}
.driver-detail-page .engineering-row{min-height:44px;font-size:12px}
.driver-detail-page .engineering-row strong{font-size:12px;line-height:1.35}
.engineering-value{font-size:12px;line-height:1.35}
.engineering-value small{display:block;margin-top:3px;color:#758095;font-size:10px;font-weight:600}
.engineering-evidence{color:#667388;font-size:11px;font-weight:650}
.engineering-status{font-size:10px}
.driver-detail-page .parameter-correction-link{font-size:10px}
.engineering-row__notes{grid-column:1/-1;display:grid;gap:4px;padding:0 12px 9px}
.engineering-inline-note{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:7px 9px;border-radius:7px;font-size:10px;line-height:1.4}
.engineering-inline-note b{text-transform:uppercase;letter-spacing:.04em;font-size:10px}
.engineering-inline-note--error{background:#fff0f2;color:#8f2b3e}
.engineering-inline-note--warning{background:#fff8e9;color:#80601a}
.engineering-inline-note--info{background:#f2f7fb;color:#49677d}
.engineering-general-notes{display:grid;gap:5px;margin-top:10px;padding:9px 12px;border:1px solid #edf0f4;border-radius:9px;background:#fafbfd}
.driver-detail-page .driver-source-note{width:100%;margin:10px auto 0}
.driver-detail-page .driver-source-note[hidden]{display:none!important}
@media(max-width:1100px){
  .driver-cockpit{grid-template-columns:280px minmax(0,1fr)}
}
@media(max-width:900px){
  .driver-detail-page>.page-heading,.driver-detail-page>.page-content{width:100%;max-width:none}
  .driver-cockpit{grid-template-columns:1fr}
  .driver-photo-card{display:flex;flex-direction:column;height:auto;overflow:visible}
  .driver-cockpit-main{display:block;height:auto;overflow:visible}
  .driver-technical-media-host,.driver-technical-media,.driver-technical-viewer{height:auto}
  .driver-technical-viewer__stage{height:clamp(320px,62vw,480px)!important;min-height:320px!important}
  .engineering-columns{grid-template-columns:1fr}
}
@media(max-width:760px){
  .driver-detail-page .engineering-table{overflow-x:auto}
  .driver-detail-page .engineering-head,.driver-detail-page .engineering-row{grid-template-columns:220px 190px 140px 110px;min-width:660px}
  .engineering-row__notes{grid-column:1/-1}
  .driver-section-heading h2{font-size:22px}
}

.site-page-shell.driver-detail-page{width:min(calc(100% - 32px),1560px)!important;max-width:1560px!important;margin-left:auto!important;margin-right:auto!important}
.driver-detail-page>.page-heading,.driver-detail-page>.page-content{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
@media(max-width:600px){.site-page-shell.driver-detail-page{width:calc(100% - 16px)!important}}

/* Driver Detail top action row — aligned to product / technical columns. */
.driver-detail-toolbar.driver-detail-toolbar--aligned{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  gap:16px;
  align-items:end;
  margin:0 0 10px;
}
.driver-detail-toolbar--aligned .driver-detail-toolbar__left{display:grid;gap:6px;min-width:0}
.driver-detail-toolbar--aligned .driver-detail-toolbar__crumbrow{display:flex;align-items:center;gap:8px;min-height:32px;flex-wrap:wrap}
.driver-detail-toolbar--aligned .driver-detail-toolbar__crumbrow .driver-trust{margin:0}
.driver-detail-toolbar--aligned .driver-detail-toolbar__meta{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.driver-detail-toolbar--aligned .driver-detail-toolbar__actions{
  grid-column:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
  width:100%;
  flex-wrap:wrap;
}
.driver-detail-toolbar--aligned .driver-detail-toolbar__actions .button{min-height:36px;padding:8px 14px;font-size:12px;white-space:nowrap}
.driver-detail-toolbar--aligned .compare-detail-toggle{
  border-color:var(--purple,#7612e7);
  background:var(--purple,#7612e7);
  color:#fff;
  box-shadow:0 3px 10px rgba(118,18,231,.18);
}
.driver-detail-toolbar--aligned .compare-detail-toggle:hover,
.driver-detail-toolbar--aligned .compare-detail-toggle.is-selected{
  border-color:#5f10c5;
  background:#5f10c5;
  color:#fff;
}
.driver-detail-toolbar--aligned .compare-detail-message{grid-column:2;margin:0;text-align:center}
@media(max-width:1100px){
  .driver-detail-toolbar.driver-detail-toolbar--aligned{grid-template-columns:280px minmax(0,1fr)}
}
@media(max-width:900px){
  .driver-detail-toolbar.driver-detail-toolbar--aligned{grid-template-columns:1fr;gap:8px;align-items:start}
  .driver-detail-toolbar--aligned .driver-detail-toolbar__actions,
  .driver-detail-toolbar--aligned .compare-detail-message{grid-column:1}
  .driver-detail-toolbar--aligned .driver-detail-toolbar__actions{justify-content:flex-start}
}

.driver-detail-toolbar--aligned .driver-detail-toolbar__actions .compare-detail-toggle{border-color:var(--purple,#7612e7)!important;background:var(--purple,#7612e7)!important;color:#fff!important}
.driver-detail-toolbar--aligned .driver-detail-toolbar__actions .compare-detail-toggle:hover,
.driver-detail-toolbar--aligned .driver-detail-toolbar__actions .compare-detail-toggle.is-selected{border-color:#5f10c5!important;background:#5f10c5!important;color:#fff!important}

/* Driver Detail status + fixed Technical Media viewport. Scope: requested follow-up only. */
.driver-sidebar-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px;padding-top:10px;border-top:1px solid #edf1f5}
.driver-sidebar-status>span{color:#6f7b8d;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.driver-sidebar-status .driver-trust{margin:0}
@media(min-width:901px){
  .driver-photo-card{align-self:start}
  .driver-cockpit-main{height:auto;align-self:start}
  .driver-technical-media-host,.driver-technical-media,.driver-technical-viewer{height:100%;min-height:0}
  .driver-technical-viewer{grid-template-rows:auto minmax(0,1fr) auto}
  .driver-technical-viewer__stage-shell{height:100%;min-height:0;overflow:hidden}
  .driver-technical-viewer__stage{display:block!important;height:100%!important;min-height:0!important;padding:12px!important;overflow:hidden!important;text-align:center}
  .driver-technical-viewer[data-fit="contain"] .driver-technical-viewer__stage .driver-photo{position:static!important;display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:auto}
}

@media(min-width:901px){
  .driver-technical-viewer__stage{display:flex!important;align-items:center!important;justify-content:center!important}
}

/* Canonical Driver Detail context row: every trust state occupies the same slot. */
.driver-detail-toolbar--aligned .driver-trust,
.driver-detail-context-meta{display:inline-flex;align-items:center;min-height:28px;padding:6px 9px;border:1px solid;border-radius:6px;font-family:var(--font-family-ui);font-size:11px;font-weight:800;line-height:1.4}
.driver-detail-toolbar--aligned .driver-trust{margin:0}
.driver-detail-context-meta{border-color:#e0e5ec;background:#f8fafc;color:#536074;white-space:nowrap}
.driver-detail-toolbar--aligned .driver-trust--interactive{appearance:none;cursor:pointer;text-align:left}
.driver-detail-toolbar--aligned .driver-trust--interactive:focus-visible{outline:3px solid rgba(118,18,231,.28);outline-offset:2px}
.driver-community-warning{display:grid;gap:4px;max-width:360px;margin:0 0 10px;padding:10px 12px;border-radius:0 6px 6px 0}
.driver-community-warning[hidden]{display:none}
.driver-community-warning strong{font-size:12px}.driver-community-warning span{font-size:12px;line-height:1.5}
@media(max-width:600px){
  .driver-detail-toolbar--aligned .driver-detail-toolbar__crumbrow{align-items:center}
  .driver-detail-toolbar--aligned .driver-detail-toolbar__actions{width:100%;justify-content:flex-start}
  .driver-detail-toolbar--aligned .driver-detail-toolbar__actions .button{max-width:100%;white-space:normal}
  .driver-community-warning{max-width:none;margin-bottom:8px}
}

/* Academy account achievements */
.academy-achievement-badge{display:inline-flex;align-items:center;gap:.3rem;padding:.28rem .55rem;border:1px solid rgba(83,116,14,.28);border-radius:999px;background:#f4f8e8;color:#435d0c;font-size:.72rem;font-weight:800;letter-spacing:.035em;text-decoration:none}.academy-achievement-badge:hover{background:#ebf3d5}.academy-account-section{margin-top:1rem}.academy-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}.academy-account-track{border:1px solid #dbe3e7;border-radius:14px;padding:1rem;background:#fff}.academy-account-track h3{margin:.15rem 0 .75rem}.academy-account-track dl{display:grid;gap:.5rem;margin:0}.academy-account-track dl div{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid #eef2f4;padding-top:.5rem}.academy-account-track dt{color:#667985}.academy-account-track dd{margin:0;font-weight:700;text-align:right}@media(max-width:800px){.academy-account-grid{grid-template-columns:1fr}}
