:root { color-scheme: light; }
* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; background: #f4f5f7; color: #1c1e21; }
header { background: #1a2b3c; color: #fff; padding: 16px 20px; position: relative; }
header h1 { margin: 0; font-size: 1.15rem; }
.page-code-badge { position: absolute; top: 14px; right: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: default; }
.footer-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 24px; }
.back-to-sitemap { color: #2563eb; text-decoration: none; font-size: .85rem; font-weight: 600; border: 1px solid #c7d2fe; background: #eef2ff; padding: 8px 16px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.back-to-sitemap:hover { background: #e0e7ff; }
nav.navbar { background: #10192a; display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; }
nav.navbar .navbar-link { color: #b7c0cc; text-decoration: none; font-size: .85rem; font-weight: 600; padding: 12px 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.navbar .navbar-link:hover { color: #fff; }
nav.navbar .navbar-link.active { color: #fff; border-bottom-color: #2563eb; }
nav.subnav { background: #fff; border-bottom: 1px solid #e1e4e8; display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; }
nav.subnav .subnav-link { color: #4b5563; text-decoration: none; font-size: .82rem; font-weight: 600; padding: 10px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.subnav .subnav-link:hover { color: #1c1e21; }
nav.subnav .subnav-link.active { color: #1c1e21; border-bottom-color: #2563eb; }
.nav-bar-label { display: flex; align-items: center; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; padding-right: 10px; margin-right: 4px; }
nav.navbar .nav-bar-label { color: #6b7280; border-right: 1px solid #2b3f54; }
nav.subnav .nav-bar-label { color: #9ca3af; border-right: 1px solid #e1e4e8; }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown > summary { list-style: none; cursor: pointer; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: ' \25BE'; font-size: .7em; opacity: .65; margin-left: 2px; }
.nav-dropdown[open] > summary { color: #fff; }
nav.subnav .nav-dropdown[open] > summary { color: #1c1e21; border-bottom-color: #2563eb; }
.nav-dropdown-panel { position: fixed; background: #10192a; border: 1px solid #2b3f54; border-radius: 8px; padding: 6px; min-width: 230px; box-shadow: 0 10px 28px rgba(0,0,0,.4); z-index: 500; display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-panel a { color: #b7c0cc; text-decoration: none; font-size: .82rem; font-weight: 600; padding: 8px 10px; border-radius: 5px; white-space: nowrap; }
.nav-dropdown-panel a:hover { background: #1f3040; color: #fff; }
.nav-dropdown-panel a.active { background: #1f3040; color: #fff; }
.nav-dropdown-divider { border-top: 1px solid #2b3f54; margin: 4px 2px; }
.construction { text-align: center; padding: 48px 20px; color: #6b7280; }
.construction .icon { font-size: 2rem; margin-bottom: 8px; }
main { max-width: 1200px; margin: 24px auto; padding: 0 20px 48px; }
.card { background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
h2 { margin-top: 0; font-size: 1.1rem; }
label { display: block; font-weight: 600; font-size: .85rem; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccd0d5; border-radius: 6px; font-size: .95rem; font-family: inherit; }
textarea { min-height: 80px; resize: vertical; }
button { background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 9px 16px; font-size: .9rem; cursor: pointer; margin-top: 12px; }
button:hover { background: #1d4ed8; }
button.secondary { background: #6b7280; }
button.secondary:hover { background: #4b5563; }
.logout-as-btn { background: #d97706; }
.logout-as-btn:hover { background: #b45309; }
.concern { border-top: 1px solid #eee; padding: 14px 0; }
.concern:first-child { border-top: none; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.p1 { background: #fde2e1; color: #b91c1c; }
.p2 { background: #fef3c7; color: #92400e; }
.p3, .none { background: #e5e7eb; color: #374151; }
.badge.automatic { background: #dbeafe; color: #1e40af; }
.dispatch-open { background: #e0e7ff; color: #3730a3; }
.dispatch-in_progress { background: #d1fae5; color: #065f46; }
.dispatch-awaiting_parts { background: #fde68a; color: #78350f; }
.dispatch-scheduled { background: #e5e7eb; color: #374151; }
.dispatch-status-form select { font-weight: 700; }
.status-pending { color: #92400e; }
.status-in_progress { color: #1d4ed8; }
.status-completed { color: #15803d; }
.status-requested { color: #92400e; }
.status-quoted { color: #7c3aed; }
.status-open { color: #1d4ed8; }
.status-declined { color: #b91c1c; }
.status-need_authorization { color: #b45309; }
.status-need_parts { color: #b91c1c; }
.status-parts_ordered { color: #92400e; }
.status-parts_arrived { color: #15803d; }
.status-need_shop_supplies { color: #b45309; }
.status-outsourced { color: #b91c1c; font-weight: 700; }
.quote-card { border: 1.5px solid #ddd6fe; background: #f5f3ff; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.quote-card:last-child { margin-bottom: 0; }
.quote-amount { font-size: 1.05rem; font-weight: 700; color: #5b21b6; }
.quote-form-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.quote-form-row input[name="quote_amount"] { width: 130px; }
.quote-form-row input, .quote-form-row textarea { margin: 0; }
.quote-form-row textarea { flex: 1; min-width: 160px; min-height: 38px; }
.sublet-tag { display: inline-block; background: #e0e7ff; color: #3730a3; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.meta { color: #6b7280; font-size: .82rem; }
.lead-card { border: 1.5px solid #fde68a; background: #fffbeb; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.lead-card:last-child { margin-bottom: 0; }
.add-vehicle-card { border: 2px solid #f59e0b; background: #fffbeb; }
.add-vehicle-card h2 { color: #92400e; }
.lead-text { font-size: .88rem; margin-top: 8px; font-style: italic; }
form.inline { display: inline; margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.empty { color: #6b7280; font-style: italic; padding: 12px 0; }
footer { text-align: center; color: #9ca3af; font-size: .75rem; padding: 24px 0; }
footer a { color: inherit; text-decoration: underline; }
.sitemap-banner { text-align: center; padding: 8px 0 32px; }
.sitemap-banner .icon { font-size: 1.8rem; }
.sitemap-banner h2 { margin: 8px 0 4px; }
.sitemap-banner p { color: #6b7280; margin: 0 0 12px; }
.sitemap-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: .8rem; color: #4b5563; }
.sitemap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flowchart { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.fc-node { border-radius: 8px; padding: 10px 16px; font-size: .85rem; font-weight: 700; text-align: center; }
.fc-home { background: #1a2b3c; color: #fff; }
.fc-stem { width: 2px; height: 22px; background: #ccd0d5; }
.fc-branch-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; border-top: 2px solid #ccd0d5; padding-top: 22px; width: 100%; }
.fc-branch { display: flex; flex-direction: column; align-items: center; position: relative; width: 150px; }
.fc-branch::before { content: ''; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: #ccd0d5; transform: translateX(-50%); }
.fc-role-box { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; width: 100%; }
.fc-leaves { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 14px; }
.fc-leaf { display: block; text-decoration: none; border: 1px solid; font-weight: 600; }
.fc-leaf.built { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.fc-leaf.built:hover { background: #d1fae5; }
.fc-leaf.stub { background: #f9fafb; border: 1px dashed #d1d5db; color: #6b7280; }
.fc-leaf.stub:hover { background: #f3f4f6; }
.account-home { text-align: center; padding: 8px 0 28px; }
.account-home .icon { font-size: 1.8rem; }
.account-home h2 { margin: 8px 0 4px; }
.account-home > p { color: #6b7280; margin: 0 auto 20px; max-width: 560px; }
.account-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; max-width: 640px; margin: 0 auto; }
.account-col { flex: 1; min-width: 220px; background: #fff; border: 1px solid #e1e4e8; border-radius: 10px; padding: 18px; text-align: left; }
.account-col h3 { margin: 0 0 4px; font-size: .95rem; }
.account-col .account-sub { color: #6b7280; font-size: .78rem; margin: 0 0 12px; }
.account-btn-row { display: flex; flex-direction: column; gap: 8px; }
.account-btn { display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 10px 14px; border-radius: 6px; border: 1.5px solid #c7d2fe; background: #eef2ff; color: #3730a3; }
.account-btn:hover { background: #e0e7ff; }
.account-btn.create { border-color: #bbf7d0; background: #ecfdf5; color: #065f46; }
.account-btn.create:hover { background: #d1fae5; }
.account-divider { border: none; border-top: 1px solid #e1e4e8; max-width: 640px; margin: 28px auto; }
.switch-account { font-size: .8rem; color: #6b7280; margin: -4px 0 16px; }
.switch-account a { color: #2563eb; text-decoration: none; font-weight: 600; }
.switch-account a:hover { text-decoration: underline; }
.veh-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.veh-chip { background: #f9fafb; border: 1px solid #e1e4e8; border-radius: 8px; padding: 10px 14px; font-size: .85rem; min-width: 160px; font-weight: 600; }
.veh-chip .veh-vin { color: #6b7280; font-size: .75rem; font-weight: 400; margin-top: 2px; }
.wo-group { border-top: 1px solid #eee; padding: 14px 0; }
.wo-group:first-child { border-top: none; }
.wo-group h3 { margin: 0 0 2px; font-size: .92rem; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-actions .account-btn { flex: 1; min-width: 180px; }
.wo-open-link { color: #2563eb; text-decoration: none; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.wo-open-link:hover { text-decoration: underline; }
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-2col label { margin-top: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 14px; }
.field-grid > div { min-width: 0; }
.fg-3 { grid-column: span 3; }
.fg-4 { grid-column: span 4; }
.fg-5 { grid-column: span 5; }
.fg-6 { grid-column: span 6; }
.fg-7 { grid-column: span 7; }
.fg-12 { grid-column: span 12; }
@media (max-width: 640px) {
.field-grid > div { grid-column: span 12; }
}
.lang-btn-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lang-btn-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lang-btn { display: inline-block; border: 1.5px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 700; text-align: center; cursor: pointer; user-select: none; }
.lang-btn:hover { background: #e0e7ff; }
.lang-btn-input:checked + .lang-btn { background: #2563eb; border-color: #2563eb; color: #fff; }
.lang-btn-input:focus-visible + .lang-btn { outline: 2px solid #1a2b3c; outline-offset: 2px; }
.dl-class-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dl-class-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dl-class-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 108px; border: 1.5px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 10px; padding: 10px 14px; text-align: center; cursor: pointer; user-select: none; }
.dl-class-btn:hover { background: #e0e7ff; }
.dl-class-input:checked + .dl-class-btn { background: #2563eb; border-color: #2563eb; color: #fff; }
.dl-class-input:focus-visible + .dl-class-btn { outline: 2px solid #1a2b3c; outline-offset: 2px; }
.dl-class-icons { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 28px; }
.dl-class-icons svg { height: 24px; width: auto; }
.dl-class-icons.dl-class-icons-single svg { height: 28px; }
.dl-class-label { font-size: .8rem; font-weight: 700; line-height: 1.25; }
.custom-specialty-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.custom-specialty-pill { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid #c7d2fe; color: #3730a3; border-radius: 999px; padding: 6px 6px 6px 14px; font-size: .82rem; font-weight: 600; }
.custom-specialty-pill form { margin: 0; }
.pill-remove-btn { background: none; border: none; color: #6b46c1; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 6px; font-weight: 700; }
.pill-remove-btn:hover { color: #dc2626; }
.rb-sticky-save { position: sticky; top: 0; z-index: 150; background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.resume-specialty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.resume-specialty-box { border: 1px solid #e1e4e8; border-radius: 8px; padding: 10px 14px; background: #f9fafb; }
.resume-specialty-box h4 { margin: 0 0 6px; font-size: .86rem; font-weight: 700; color: #1f2937; }
.role-checkboxes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 12px; }
.role-checkbox { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 400; }
.role-checkbox input { width: auto; margin: 0; }
.direct-message-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 10px 12px; background: #fffbeb; border: 1.5px solid #f59e0b; border-radius: 8px; cursor: pointer; }
.direct-message-toggle input { width: auto; margin: 2px 0 0; flex-shrink: 0; }
.direct-message-toggle .dmt-label { display: block; font-weight: 700; font-size: .86rem; color: #92400e; }
.direct-message-toggle .dmt-sub { display: block; font-size: .78rem; font-weight: 400; color: #92400e; margin-top: 2px; }
.pay-fields { margin-top: 12px; padding: 10px 12px; background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 8px; }
.pay-fields-label { font-weight: 700; font-size: .82rem; color: #334155; margin-bottom: 6px; }
.pay-fields label { margin-top: 8px; }
.pay-field { margin-top: 2px; }
.parts-upsell-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 8px 10px; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; }
.parts-upsell-toggle input { width: auto; margin: 2px 0 0; flex-shrink: 0; }
.parts-upsell-toggle .pu-label { display: block; font-weight: 700; font-size: .84rem; color: #334155; }
.parts-upsell-toggle .pu-sub { display: block; font-size: .76rem; font-weight: 400; color: #64748b; margin-top: 2px; }
.offer-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.offer-card .meta { margin: 2px 0 8px; }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 8px; }
.offer-actions-fields { flex: 1 1 100%; }
.join-mode-option { display: block; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.join-mode-option:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.join-mode-option input { width: auto; margin: 0 8px 0 0; }
dialog.app-dialog { border: 1px solid #d7dce3; border-radius: 10px; padding: 20px; max-width: 420px; width: 90vw; }
dialog.app-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.tech-account .card, .shop-account .card { padding: 16px 20px; margin-bottom: 10px; }
.tech-account .card h2, .shop-account .card h2 { margin-bottom: 8px; }
.tech-account .card p.meta, .shop-account .card p.meta { margin: 4px 0; }
.tech-account .section-label, .shop-account .section-label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin: 18px 0 8px; }
.tech-account .section-label:first-child, .shop-account .section-label:first-child { margin-top: 0; }
dialog.app-dialog h3 { margin-top: 0; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin-bottom: 14px; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f1f3f5; }
.spec-row select { margin: 0; width: auto; min-width: 150px; padding: 4px 8px; font-size: .82rem; }
.spec-label { font-size: .86rem; }
.spec-group-label { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin-top: 10px; }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr; } }
.qual-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.qual-summary { display: flex; gap: 8px; flex-wrap: wrap; font-size: .72rem; }
.qual-pill { padding: 3px 9px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.qual-pill-exp { background: #eaf3ef; color: #1f5f4a; }
.qual-pill-learn { background: #fdf5e2; color: #b8860b; }
.qual-pill-no { background: #f2f2f2; color: #767676; }
.qual-pill-spec { background: #fdf6e0; color: #9c7a00; }
.qual-mode-toggle { display: flex; gap: 6px; margin: 10px 0 14px; }
.qual-mode-btn { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #ddd; background: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; color: #666; }
.qual-mode-btn.active { border-color: #1f5f4a; background: #eaf3ef; color: #1f5f4a; }
.qual-group-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #666; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #ddd; }
.qual-group-title:first-child { margin-top: 0; }
summary.qual-group-title { cursor: pointer; list-style: none; }
summary.qual-group-title::-webkit-details-marker { display: none; }
summary.qual-group-title::before { content: '\25B8'; display: inline-block; margin-right: 6px; transition: transform .1s; }
details[open] > summary.qual-group-title::before { transform: rotate(90deg); }
.qual-group-details:first-child summary.qual-group-title { margin-top: 0; }
.qual-sector-details { margin: 4px 0 18px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 14px 14px; }
.qual-sector-details:first-child { margin-top: 0; }
.qual-sector-title { cursor: pointer; list-style: none; font-size: .92rem; font-weight: 700; color: #1a1a1a; padding: 12px 0 8px; }
.qual-sector-title::-webkit-details-marker { display: none; }
.qual-sector-title::before { content: '\25B8'; display: inline-block; margin-right: 8px; transition: transform .1s; }
details[open] > .qual-sector-title::before { transform: rotate(90deg); }
.qual-sector-details .qual-group-details { margin-left: 2px; }
.qual-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.qual-row:last-child { border-bottom: none; }
.qual-row.is-specialty { background: #fffdf5; margin: 0 -10px; padding: 8px 10px; border-radius: 6px; border-bottom-color: #f5ecc9; }
.qual-label { font-size: .82rem; flex: 1; min-width: 200px; }
.qual-row.is-specialty .qual-label { font-weight: 700; }
.qual-control { flex-shrink: 0; }
.qual-choices { display: flex; gap: 5px; flex-wrap: wrap; }
.qual-choice { font-size: .68rem; font-weight: 700; padding: 5px 8px; border-radius: 6px; border: 1.5px solid #ddd; cursor: pointer; color: #666; background: #fff; white-space: nowrap; user-select: none; }
.qual-choice.qual-no.selected { border-color: #999; background: #f2f2f2; color: #555; }
.qual-choice.qual-learn.selected { border-color: #b8860b; background: #fdf5e2; color: #b8860b; }
.qual-choice.qual-exp.selected { border-color: #1f5f4a; background: #eaf3ef; color: #1f5f4a; }
.qual-choice.qual-spec.selected { border-color: #c9a227; background: #fdf6e0; color: #9c7a00; }
.qual-slider-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.qual-slider-top { display: flex; justify-content: flex-end; }
.qual-slider-badge { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; }
.qual-slider-badge.qual-lv0 { background: #f2f2f2; color: #999; }
.qual-slider-badge.qual-lv1 { background: #fdf5e2; color: #b8860b; }
.qual-slider-badge.qual-lv2 { background: #eaf3ef; color: #1f5f4a; }
.qual-slider-badge.qual-lv3 { background: #fdf6e0; color: #9c7a00; }
.qual-slider { width: 100%; padding: 0; border: none; background: transparent; height: 20px; }
.qual-slider-ticks { display: flex; justify-content: space-between; font-size: .62rem; color: #666; }
.qual-slider-ticks span { flex: 1; text-align: center; }
.qual-slider-ticks span:first-child { text-align: left; }
.qual-slider-ticks span:last-child { text-align: right; }
.qual-slider-ticks span.active { font-weight: 700; color: #1a1a1a; }
.qual-headline-card { border: 1.5px dashed #d8c96a; background: #fffef8; }
.qual-headline-empty { color: #666; font-size: .78rem; font-style: italic; }
.qual-headline-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qual-headline-chip { display: inline-flex; align-items: center; gap: 6px; background: #fdf6e0; border: 1px solid #e9d78a; color: #6b5400; padding: 6px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.qual-x { color: #b89b3a; font-weight: 700; }
@media (max-width: 640px) {
.qual-row { flex-direction: column; align-items: flex-start; gap: 6px; }
.qual-choices { width: 100%; }
.qual-choice { flex: 1; text-align: center; }
}
.concern-detail-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.concern-detail-form input { width: 90px; padding: 6px 8px; font-size: .82rem; }
.concern-detail-form button { margin-top: 0; padding: 6px 12px; font-size: .8rem; }
.assign-form { margin-top: 8px; padding: 10px; background: #f9fafb; border-radius: 6px; }
.assign-form label { margin: 6px 0 4px; font-size: .78rem; }
.assign-form select, .assign-form textarea { font-size: .85rem; }
.assign-form textarea { min-height: 50px; }
.assign-form button { padding: 6px 12px; font-size: .8rem; }
.tech-findings { margin-top: 8px; padding: 8px 10px; background: #ecfdf5; border-radius: 6px; font-size: .85rem; color: #065f46; }
.parts-add-row { display: grid; grid-template-columns: 0.6fr 1fr 2fr 1fr 0.8fr auto; gap: 8px; align-items: end; margin-top: 10px; }
.parts-add-row label { margin: 0 0 4px; }
.tech-list { list-style: none; padding: 0; margin: 0; }
.tech-list li { padding: 8px 0; border-top: 1px solid #eee; }
.tech-list li:first-child { border-top: none; }
.totals-preview { width: 100%; max-width: 320px; }
.totals-preview td { padding: 3px 6px; }
.totals-preview .grand td { border-top: 1.5px solid #1c1e21; font-weight: 700; }
.gp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.gp-tile { border: 1px solid #e1e4e8; border-radius: 8px; padding: 14px 16px; }
.gp-tile .gp-tile-label { font-size: .78rem; color: #57606a; text-transform: uppercase; letter-spacing: .03em; }
.gp-tile .gp-tile-value { font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.gp-bar-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.gp-bar-label { width: 130px; flex-shrink: 0; font-size: .82rem; }
.gp-bar-track { flex: 1; background: #eef0f2; border-radius: 4px; height: 14px; overflow: hidden; }
.gp-bar-fill { height: 100%; background: #2563eb; border-radius: 4px; }
.gp-bar-value { width: 150px; flex-shrink: 0; text-align: right; font-size: .82rem; font-variant-numeric: tabular-nums; }
.del-btn { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: .78rem; font-weight: 700; padding: 2px 6px; margin: 0; }
.del-btn:hover { text-decoration: underline; background: none; }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-toolbar .spacer { flex: 1; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th, .cal-grid td { border: 1px solid #e1e4e8; vertical-align: top; padding: 6px; font-size: .8rem; }
.cal-grid th { background: #f9fafb; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #57606a; }
.cal-grid td.cal-resource-name { background: #f9fafb; font-weight: 600; white-space: nowrap; width: 130px; }
.cal-chip { border-radius: 5px; padding: 4px 6px; margin-bottom: 4px; font-size: .76rem; line-height: 1.3; }
.cal-chip-labor { background: #eff6ff; border: 1px solid #bfdbfe; }
.cal-chip-appointment { background: #fefce8; border: 1px solid #fde68a; }
.cal-chip-absence, .cal-chip-break { background: #f3f4f6; border: 1px solid #d1d5db; color: #4b5563; }
.cal-chip-time { font-weight: 700; display: block; }
.cal-chip form { display: inline; margin-top: 2px; }
.cal-empty-cell { color: #9ca3af; font-size: .75rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #eee; font-size: .85rem; }
.admin-table th { color: #6b7280; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table tr:last-child td { border-bottom: none; }
.capability-role-heading { margin: 22px 0 2px; font-size: 1rem; }
.capability-role-heading:first-of-type { margin-top: 4px; }
.capability-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: .82rem; }
.capability-table th, .capability-table td { border: 1px solid #d7dce3; padding: 8px 10px; text-align: left; vertical-align: top; }
.capability-table th { background: #eef1f6; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }
.danger-zone { background: #fef2f2; border-color: #fecaca; }
.danger-zone h2 { color: #991b1b; }
.dispatch-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #1a2b3c; border-radius: 8px; padding: 8px 10px; margin-bottom: 16px; }
.dispatch-toolbar-btn { background: #2b3f54; color: #fff; border: 1px solid #3d5468; border-radius: 5px; padding: 8px 13px; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dispatch-toolbar-btn:hover { background: #3d5468; }
.dispatch-toolbar-btn.create { background: #065f46; border-color: #10b981; }
.dispatch-toolbar-btn.create:hover { background: #047857; }
.dispatch-toolbar-spacer { flex: 1; }
.dispatch-toolbar input[type="search"] { width: auto; min-width: 190px; margin: 0; padding: 7px 10px; font-size: .82rem; border: 1px solid #3d5468; background: #0f1c28; color: #e5e7eb; }
.dispatch-toolbar input[type="search"]::placeholder { color: #8b98a5; }
.grid-wrap { overflow-x: auto; }
.dispatch-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.dispatch-table th, .dispatch-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; font-size: .83rem; white-space: nowrap; }
.dispatch-table th { color: #6b7280; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; user-select: none; background: #f9fafb; position: sticky; top: 0; }
.dispatch-table th:hover { color: #1c1e21; }
.dispatch-table th .sort-arrow { display: inline-block; width: 12px; opacity: .4; }
.dispatch-table th.sorted .sort-arrow { opacity: 1; }
.dispatch-table tbody tr { cursor: pointer; }
.dispatch-table tbody tr:hover { background: #f5f7fa; }
.dispatch-table td.wo-num { font-weight: 700; color: #2563eb; }
.dispatch-table td.concern-preview { white-space: normal; max-width: 260px; color: #4b5563; font-size: .8rem; }
.dispatch-table .grid-status-form { margin: 0; }
.dispatch-table .grid-status-form select { margin: 0; padding: 4px 6px; font-size: .78rem; font-weight: 700; width: auto; }
.dispatch-table tr.concerns-subrow { cursor: pointer; }
.dispatch-table tr.concerns-subrow:hover { background: #f5f7fa; }
.dispatch-table tr.concerns-subrow td { border-top: none; padding-top: 0; white-space: normal; color: #374151; font-size: .82rem; }
.dispatch-table tr.concerns-subrow .concerns-label { font-weight: 700; text-transform: uppercase; font-size: .68rem; letter-spacing: .03em; color: #9ca3af; margin-right: 6px; }
.dispatch-empty-row td { text-align: center; color: #6b7280; font-style: italic; padding: 20px 0; }
button.danger { background: #b91c1c; }
button.danger:hover { background: #991b1b; }
.restore-status { font-size: .85rem; margin-top: 10px; }
.veh-chip { position: relative; padding-right: 34px; min-width: 220px; }
.veh-chip .veh-delete-form { position: absolute; top: 6px; right: 6px; margin: 0; }
.veh-chip .veh-type { display: inline-block; background: #eef2ff; color: #3730a3; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; margin-top: 3px; }
.odo-toggle { display: block; background: none; border: none; padding: 0; margin: 8px 0 0; font: inherit; font-size: .78rem; font-weight: 700; color: #2563eb; cursor: pointer; text-align: left; }
.odo-toggle:hover { text-decoration: underline; }
.odo-history { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e1e4e8; }
.odo-row { font-size: .78rem; color: #4b5563; font-weight: 400; padding: 2px 0; }
.odo-add-form { display: flex; gap: 6px; margin-top: 6px; }
.odo-add-form input { width: 110px; padding: 5px 8px; font-size: .8rem; }
.odo-add-form button { margin-top: 0; padding: 5px 10px; font-size: .78rem; }
.veh-edit-form { margin-top: 6px; padding-top: 8px; border-top: 1px dashed #e1e4e8; width: 260px; max-width: 100%; font-weight: 400; }
.veh-edit-form label { font-size: .72rem; margin: 8px 0 2px; }
.veh-edit-form input, .veh-edit-form select { font-size: .8rem; padding: 5px 8px; }
.veh-edit-form .field-2col { gap: 0 8px; }
.veh-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.veh-gallery-manage { position: relative; }
.veh-gallery-manage img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid #e1e4e8; }
.veh-gallery-manage form { position: absolute; top: 2px; right: 2px; margin: 0; }
.veh-gallery-manage button { padding: 0; width: 18px; height: 18px; line-height: 16px; border-radius: 999px; background: #dc2626; color: #fff; border: none; font-size: .7rem; cursor: pointer; }
.veh-disclosure-fields { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0; font-weight: 400; }
.veh-disclosure-fields label { display: flex; align-items: center; gap: 5px; font-size: .78rem; }
.veh-disclosure-fields input[type="checkbox"] { width: auto; }
.add-vehicle-row { margin-top: 10px; }
.veh-row { display: grid; gap: 8px; align-items: end; }
.veh-row + .veh-row { margin-top: 10px; }
.veh-row1 { grid-template-columns: 1.5fr 0.4fr 0.9fr 0.9fr 0.55fr; }
.veh-row2 { grid-template-columns: repeat(4, 1fr); }
.veh-row3 { grid-template-columns: repeat(3, 1fr); }
.veh-row label { margin: 0 0 4px; }
.veh-cam-col label { text-align: center; font-size: .72rem; }
.veh-cam-col button { width: 100%; height: 38px; font-size: 18px; }
.veh-specs-heading { margin: 14px 0 2px; font-size: .9rem; }
.card-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.card-header-row h2, .card-header-row h3 { margin: 0; }
.phone-handoff-compact { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; cursor: help; }
.phone-handoff-compact > div:first-child { background: #fff; padding: 4px; border-radius: 6px; line-height: 0; border: 1px solid #e1e4e8; }
.phone-handoff-compact-label { font-size: .65rem; color: #6b7280; text-align: center; white-space: nowrap; }
.vin-decode-status { font-size: .75rem; margin-top: 4px; min-height: 14px; color: #2563eb; }
.vin-decode-status.err { color: #b91c1c; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 4px; }
.cat-btn { border: 1.5px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 8px; padding: 12px 8px; font-size: .82rem; font-weight: 700; text-align: center; cursor: pointer; }
.cat-btn:hover { background: #e0e7ff; }
.cat-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.cat-btn.soon { background: #f9fafb; border: 1px dashed #d1d5db; color: #9ca3af; cursor: not-allowed; }
.seg-btn { border: 1.5px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 700; text-align: center; cursor: pointer; white-space: nowrap; }
.seg-btn:hover { background: #e0e7ff; }
.seg-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.seg-btn.soon { background: #f9fafb; border: 1px dashed #d1d5db; color: #9ca3af; cursor: not-allowed; }
.seg-btn.soon:hover { background: #f9fafb; }
.service-flow-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.filter-request-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filter-request-row .filter-request-label { font-size: .72rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; margin-right: 2px; }
.filter-request-feedback { font-size: .8rem; color: #2563eb; margin: -4px 0 10px; min-height: 1.1em; }
.filter-request-feedback.empty { color: #9ca3af; }
.service-flow { display: none; border-top: 1px solid #e1e4e8; margin-top: 16px; padding-top: 16px; }
.service-flow.open { display: block; }
.search-controls { background: #f9fafb; border: 1px solid #e1e4e8; border-radius: 8px; padding: 12px; margin-top: 14px; }
.search-context { font-size: .8rem; color: #6b7280; margin: 8px 0 6px; }
.view-toggle { display: inline-flex; border: 1.5px solid #c7d2fe; border-radius: 8px; overflow: hidden; }
.view-toggle button { border: none; background: #eef2ff; color: #3730a3; font-size: .78rem; font-weight: 700; padding: 7px 14px; cursor: pointer; }
.view-toggle button + button { border-left: 1px solid #c7d2fe; }
.view-toggle button.active { background: #2563eb; color: #fff; }
.shop-results-map { display: none; width: 100%; height: 280px; border-radius: 8px; border: 1px solid #e1e4e8; margin-top: 10px; }
.shop-results-map.open { display: block; }
.shop-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.shop-card { border: 1.5px solid #e1e4e8; border-radius: 8px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; }
.shop-card.matched { border-color: #bbf7d0; background: #f0fdf4; }
.shop-card input[type="checkbox"] { width: auto; margin-top: 3px; }
.shop-card .shop-name { font-weight: 700; font-size: .9rem; }
.shop-card .shop-meta { font-size: .78rem; color: #6b7280; margin-top: 2px; }
.shop-card .shop-badge { display: inline-block; background: #dbeafe; color: #1e40af; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.match-badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.match-badge.match-best { background: #dcfce7; color: #166534; }
.match-badge.match-good { background: #e0e7ff; color: #3730a3; }
.match-badge.match-close { background: #fef3c7; color: #92400e; }
.shop-tech-match { font-size: .78rem; color: #166534; font-weight: 600; margin-top: 2px; }
.mobile-panel { display: none; border: 1px dashed #d1d5db; border-radius: 8px; padding: 12px; margin: 10px 0; background: #fafafa; }
.mobile-panel.open { display: block; }
.photo-drop { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid #e1e4e8; }
.star-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e1e4e8; }
.star-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.star-row .star-label { width: 130px; flex: none; color: #4b5563; }
.star-pick { display: flex; gap: 2px; }
.star-pick button { background: none; border: none; font-size: 1.1rem; cursor: pointer; padding: 0 1px; margin: 0; color: #d1d5db; line-height: 1; }
.star-pick button.on { color: #f59e0b; }
.request-result { font-size: .85rem; margin-top: 10px; padding: 10px 12px; border-radius: 8px; }
.request-result.ok { background: #ecfdf5; color: #065f46; border: 1px solid #bbf7d0; }
.request-result.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pro-hero { background: linear-gradient(135deg, #1a2b3c, #10192a); color: #fff; border-radius: 10px; padding: 28px 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pro-avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.pro-hero-body { flex: 1; min-width: 200px; }
.pro-hero h1 { margin: 0 0 4px; font-size: 1.35rem; }
.pro-hero .pro-headline { opacity: .85; font-size: .95rem; margin: 0 0 8px; }
.pro-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pro-badges .badge { background: rgba(255,255,255,.14); color: #fff; }
.pro-pill { display: inline-block; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin: 0 6px 6px 0; }
.pro-pill-brand { background: #ecfdf5; color: #065f46; border-color: #bbf7d0; }
.pro-pill-custom { background: #fff7ed; color: #9a3412; border: 1px dashed #fdba74; }
.pro-pill-highlight { background: #fef3c7; color: #92400e; border-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.pro-members-only-note { font-size: .82rem; color: #6b7280; font-style: italic; }
.pro-self-banner { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 8px; padding: 10px 14px; font-size: .85rem; margin-bottom: 16px; }
.pro-self-banner a { color: #2563eb; font-weight: 600; }
.pro-matrix-section { margin-bottom: 10px; }
.pro-matrix-section h3 { font-size: .95rem; margin: 14px 0 6px; }
.pro-matrix-group .qual-group-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; margin: 10px 0 4px; }
.pro-matrix-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid #f1f2f4; font-size: .85rem; }
.pro-matrix-row:first-child { border-top: none; }
.pro-matrix-level { font-weight: 600; white-space: nowrap; }
.pro-matrix-level-0 { color: #9ca3af; }
.pro-matrix-level-1 { color: #92400e; }
.pro-matrix-level-2 { color: #1d4ed8; }
.pro-matrix-level-3 { color: #b45309; }
.pro-roster-list a { color: #2563eb; text-decoration: none; font-weight: 600; }
.pro-roster-list a:hover { text-decoration: underline; }
.pro-rating-line { font-size: 1.1rem; font-weight: 700; color: #b45309; }
.viewer-badge { display: flex; align-items: center; gap: 10px; padding: 8px 20px; background: var(--vb-bg); border-bottom: 1px solid var(--vb-border); color: var(--vb-color); font-size: .85rem; flex-wrap: wrap; }
.viewer-badge-icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.viewer-badge-icon svg { width: 100%; height: 100%; display: block; }
.viewer-badge-text strong { font-weight: 700; }
.viewer-badge-text .vb-user { font-weight: 500; opacity: .8; }
.viewer-badge-role { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .74rem; }
.viewer-badge-secondary { font-size: .78rem; opacity: .85; border-left: 1px solid var(--vb-border); padding-left: 10px; }
.viewer-badge-secondary a { color: inherit; font-weight: 700; }
.vb-admin-chip { display: none; }
.viewer-badge-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.viewer-badge-signout { background: transparent; border: 1.5px solid var(--vb-color); color: var(--vb-color); padding: 5px 12px; font-size: .78rem; font-weight: 700; margin: 0; border-radius: 6px; cursor: pointer; }
.viewer-badge-signout:hover { background: var(--vb-color); color: #fff; }
.viewer-role-btn { background: #1d4ed8; border: 1.5px solid #1d4ed8; color: #fff; padding: 5px 12px; font-size: .78rem; font-weight: 700; margin: 0; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; transition: background-color .12s, border-color .12s; }
.viewer-role-btn:hover, .viewer-role-btn:focus-visible { background: #dc2626; border-color: #dc2626; color: #fff; }
.viewer-role-btn:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }
.viewer-role-btn-current, .viewer-role-btn-current:hover { background: #15803d; border-color: #15803d; color: #fff; cursor: default; }
.viewer-role-btn-upgrade { background: transparent; border-style: dashed; color: #1d4ed8; }
.viewer-role-btn-upgrade:hover, .viewer-role-btn-upgrade:focus-visible { border-style: solid; }
.ui-mode-toggle { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 10px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 999px; width: fit-content; }
.ui-mode-toggle-label { font-size: .78rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; padding-left: 4px; }
.ui-mode-btn { border: none; background: transparent; color: #4b5563; font-size: .82rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.ui-mode-btn:hover { background: #e5e7eb; }
.ui-mode-btn.active { background: #1a2b3c; color: #fff; }
.ui-mode-btn.active:hover { background: #1a2b3c; }
.msg-flash-badge { display: inline-flex; align-items: center; gap: 4px; background: #dc2626; color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; vertical-align: middle; animation: msgFlash 1.1s ease-in-out infinite; }
@keyframes msgFlash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .msg-flash-badge { animation: none; } }
.preview-banner { background: #4b5563; color: #f3f4f6; font-size: .78rem; text-align: center; padding: 5px 12px; }
.preview-banner a { color: #fff; text-decoration: underline; }
header h1 { display: flex; align-items: baseline; min-width: 0; }
header h1 .brand-link { color: inherit; text-decoration: none; white-space: nowrap; }
header h1 .brand-link:hover { text-decoration: underline; }
header h1 .brand-section { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .82; font-weight: 600; margin-left: .35em; }
.vb-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vb-menu-btn { display: none; }
.subnav-stack { position: relative; }
.subnav-scroll { display: block; }
.subnav-arrow { display: none; }
nav.subnav .nav-more .nav-dropdown-panel a.subnav-link { color: #b7c0cc; border-bottom: 0; padding: 8px 10px; border-radius: 5px; }
nav.subnav .nav-more .nav-dropdown-panel a.subnav-link:hover { color: #fff; background: #1f3040; }
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
main dd { overflow-wrap: anywhere; }
@media (max-width: 640px) {
header { padding: 8px 14px; }
header h1 { font-size: 1rem; line-height: 1.3; }
.viewer-badge { padding: 5px 14px; gap: 8px; font-size: .8rem; flex-wrap: wrap; }
.viewer-badge-icon { width: 18px; height: 18px; }
.viewer-badge .vb-lead { display: none; }
.viewer-badge-text { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-menu-btn { display: inline-flex; align-items: center; gap: 4px; flex: none; margin: 0; border: 1.5px solid var(--vb-color); color: var(--vb-color); background: #fff; border-radius: 6px; padding: 3px 10px; font-size: .76rem; font-weight: 700; cursor: pointer; user-select: none; }
.vb-menu-btn::after { content: '\25BE'; font-size: .7em; }
.vb-toggle:checked ~ .vb-menu-btn::after { content: '\25B4'; }
.vb-toggle:focus-visible ~ .vb-menu-btn { outline: 2px solid var(--vb-color); outline-offset: 2px; }
.viewer-badge-actions, .viewer-badge-secondary { display: none; }
.vb-admin-chip { display: inline-flex; align-items: center; flex: none; border: 1.5px solid #b91c1c; color: #b91c1c; background: #fff; border-radius: 6px; padding: 3px 9px; font-size: .76rem; font-weight: 700; text-decoration: none; }
.vb-admin-chip-ended { border-style: dashed; }
.vb-toggle:checked ~ .viewer-badge-secondary { display: block; width: 100%; border-left: 0; padding: 2px 0 0; }
.vb-toggle:checked ~ .viewer-badge-actions { display: flex; width: 100%; margin: 2px 0 4px; }
.nav-bar-label { display: none; }
nav.navbar { padding: 0 6px; gap: 0; }
nav.navbar .navbar-link { padding: 9px 10px; }
.subnav-stack { background: #fff; border-bottom: 1px solid #e1e4e8; }
.subnav-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav-scroll::-webkit-scrollbar { display: none; }
.subnav-scroll > nav.subnav { display: contents; }
nav.subnav .subnav-link, nav.subnav .nav-dropdown > summary.subnav-link { border: 1px solid #d6dae0; border-radius: 999px; padding: 6px 12px; background: #f8fafc; line-height: 1.2; }
nav.subnav .subnav-link.active, nav.subnav .nav-dropdown > summary.subnav-link.active { background: #1a2b3c; border-color: #1a2b3c; color: #fff; }
nav.subnav .nav-dropdown[open] > summary.subnav-link { border-color: #2563eb; }
.subnav-arrow { position: absolute; top: 0; bottom: 0; z-index: 2; width: 38px; border: 0; margin: 0; padding: 0; font-size: 1.4rem; font-weight: 700; color: #1a2b3c; cursor: pointer; border-radius: 0; }
.subnav-arrow-right { right: 0; background: linear-gradient(to right, rgba(255,255,255,0), #fff 55%); text-align: right; padding-right: 8px; }
.subnav-arrow-left { left: 0; background: linear-gradient(to left, rgba(255,255,255,0), #fff 55%); text-align: left; padding-left: 8px; }
.subnav-stack.more-right .subnav-arrow-right, .subnav-stack.more-left .subnav-arrow-left { display: block; }
}
