:root {
    --ink: #f4f7fb;
    --muted: #b5c0d1;
    --line: #30415e;
    --surface: #14233b;
    --surface-strong: #1d2d48;
    --canvas: #091426;
    --primary: #2f7ef7;
    --primary-dark: #1e65cc;
    --accent: #ffc329;
    --danger: #ef4444;
    --success: #22a866;
    --shadow: 0 12px 30px rgba(0, 0, 0, .22);
    --radius: 8px;
}

/* Version 4.1.0 professional navigation and rating appeals. */
.rating-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.appeal-status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border: 1px solid #65758b; border-radius: 6px; color: #e5e7eb; background: #334155; font-size: 9px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.appeal-status-badge.status-pending { color: #422006; border-color: #e0a525; background: #fcd34d; }
.appeal-status-badge.status-under_review { color: #eaf3ff; border-color: #3b82f6; background: #1d4e89; }
.appeal-status-badge.status-accepted { color: #ecfdf5; border-color: #1f9d70; background: #126044; }
.appeal-status-badge.status-rejected { color: #fff1f2; border-color: #dc5261; background: #8f2632; }
.rating-appeal-summary { display: grid; gap: 12px; }
.rating-appeal-summary h2 { margin: 3px 0; font-size: 20px; }
.rating-appeal-summary small, .rating-appeal-summary span { color: var(--muted); }
.rating-appeal-summary p { margin: 0; line-height: 1.55; }
.rating-appeal-form { display: grid; gap: 14px; }
.rating-appeal-form textarea { min-height: 180px; resize: vertical; }
.appeal-file-field input[type="file"] { min-height: 52px; padding: 10px; border: 1px dashed #7185a3; border-radius: 7px; color: #e5e7eb; background: #12243d; }
.appeal-status { display: flex; align-items: center; gap: 12px; }
.appeal-status > svg { width: 30px; height: 30px; color: #60a5fa; }
.appeal-status > span { display: grid; gap: 3px; }
.appeal-status small { color: var(--muted); }
.admin-appeal-list { display: grid; gap: 12px; }
.admin-appeal-card { overflow: hidden; border: 1px solid #435779; border-radius: 7px; background: #12243d; }
.admin-appeal-card > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; align-items: center; gap: 10px; min-height: 76px; padding: 12px; cursor: pointer; list-style: none; }
.admin-appeal-card > summary::-webkit-details-marker { display: none; }
.admin-appeal-card > summary > span { display: grid; min-width: 0; gap: 3px; }
.admin-appeal-card > summary small, .admin-appeal-card > summary em { overflow: hidden; color: #aebdd2; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.admin-appeal-card > summary strong { overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.admin-appeal-card > summary > svg { width: 20px; transition: transform .2s ease; }
.admin-appeal-card[open] > summary > svg { transform: rotate(180deg); }
.admin-appeal-body { display: grid; gap: 16px; padding: 14px; border-top: 1px solid #435779; }
.admin-appeal-body section { display: grid; gap: 7px; }
.admin-appeal-body h3 { margin: 0; font-size: 14px; }
.admin-appeal-body p { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.admin-appeal-rating { padding: 12px; border-left: 4px solid #f4b942; border-radius: 5px; background: #1d304c; }
.admin-appeal-rating p { margin: 7px 0; }
.admin-appeal-rating small { color: #aebdd2; }
.admin-appeal-files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.admin-appeal-files a { display: block; overflow: hidden; border: 1px solid #52698e; border-radius: 6px; background: #07182e; }
.admin-appeal-files img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-request-details em { color: #aebdd2; font-size: 10px; font-style: normal; overflow-wrap: anywhere; }
.admin-appeal-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-appeal-actions form, .admin-appeal-actions button { width: 100%; }

@media (max-width: 620px) {
    .admin-appeal-card > summary { grid-template-columns: minmax(0, 1fr) 20px; }
    .admin-appeal-card > summary .appeal-status-badge { grid-column: 1 / -1; justify-self: start; }
    .admin-appeal-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-appeal-actions { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }

.app-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px max(16px, env(safe-area-inset-left));
    color: #fff;
    background: #07111f;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .22);
}

.brand, .header-user { display: flex; align-items: center; gap: 10px; }
.brand { color: #fff; font-weight: 800; text-decoration: none; }
.header-user { font-size: 15px; font-weight: 800; }
.brand-logo { display: block; width: auto; height: 44px; object-fit: contain; }
.login-logo { display: block; width: min(52vw, 180px); height: auto; max-height: 108px; object-fit: contain; }

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 7px;
    color: #07182e;
    background: var(--accent);
    font-weight: 800;
}

.brand-mark-large { width: 56px; height: 56px; font-size: 25px; }
.app-main { width: min(100%, 1120px); margin: 0 auto; padding: 18px 14px 96px; }
.login-page .app-main { width: 100%; padding: 0; }

.login-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    background: var(--canvas);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 42px 20px 12px;
    color: #fff;
    background: transparent;
    text-align: center;
}

.login-brand h1 { margin: 14px 0 4px; font-size: 30px; letter-spacing: 0; }
.login-brand p { margin: 0; color: var(--muted); }
.login-panel { width: min(100%, 440px); margin: 0 auto; padding: 22px 20px 40px; }
.login-panel h2 { margin: 0 0 22px; font-size: 20px; }

.role-selector {
    display: grid;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.role-selector legend { width: 100%; margin-bottom: 12px; font-weight: 700; }
.role-option { position: relative; display: grid; min-height: 100px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option.is-selected { border-color: var(--primary); background: #eef6ff; box-shadow: inset 0 0 0 1px var(--primary); }
.role-icon { font-size: 23px; color: var(--primary); }
.role-option small { color: var(--muted); }

.field { display: grid; gap: 8px; margin-bottom: 17px; color: var(--muted); font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea, input, select, textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--surface-strong);
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }

.password-toggle, .icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.password-toggle { position: absolute; top: 6px; right: 4px; color: var(--muted); background: transparent; }
.icon-button { color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; }

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface-strong); }
.button-danger { color: #fff; background: var(--danger); }
.button-success { color: #fff; background: var(--success); }
.button-ghost { color: var(--primary); background: transparent; }
.button-full { width: 100%; }
.admin-link { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.login-switch-button { margin-top: 10px; }
.login-switch-link { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 4px 0 20px; }
.page-heading h1 { margin: 0; font-size: 27px; }
.page-heading p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.page-heading-live { min-width: 0; margin-bottom: 10px; }
.page-heading-live > div { width: 100%; min-width: 0; }
.page-heading-live h1 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.page-heading-live h1 span { color: var(--muted); font-weight: 600; }

.grid { display: grid; gap: 14px; }
.grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
.card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 18px rgba(15, 23, 42, .04); }
.card h2, .card h3 { margin: 0 0 13px; letter-spacing: 0; }
.card h2 { font-size: 18px; }
.card h3 { font-size: 16px; }
.card p { line-height: 1.5; }
.card-subtle { box-shadow: none; }
.section { margin-bottom: 18px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }
.stat { min-width: 0; padding: 13px 9px; border-radius: 7px; color: #fff; background: #07111f; }
.stat strong { display: block; font-size: 22px; }
.stat span { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #cbd5e1; font-size: 11px; }
.stat-accent { background: var(--primary); }
.stat-warn { color: #07182e; background: var(--accent); }
.stat-warn span { color: #713f12; }

.tabs { display: flex; gap: 6px; margin: 0 -14px 18px; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; color: #475569; background: #fff; cursor: pointer; font-weight: 600; }
.tab.is-active { color: #fff; border-color: var(--primary); background: var(--primary); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.check-option { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; }
.check-option input { width: 18px; min-height: 18px; margin: 0; }
.inline-check { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-weight: 500; }
.inline-check input { width: 18px; min-height: 18px; }

.alert { margin-bottom: 14px; padding: 13px 14px; border-radius: 7px; line-height: 1.4; }
.alert-success { color: #14532d; border: 1px solid #86efac; background: #f0fdf4; }
.alert-error { color: #7f1d1d; border: 1px solid #fca5a5; background: #fef2f2; }
.alert-info { color: #164e63; border: 1px solid #67e8f9; background: #ecfeff; }

.badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: #334155; background: #e2e8f0; font-size: 11px; font-weight: 700; }
.badge-live { color: #14532d; background: #dcfce7; }
.badge-warn { color: #713f12; background: #fef3c7; }
.stack { display: grid; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions .button { flex: 1 1 130px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.detail-list { display: grid; gap: 8px; margin: 12px 0; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.detail-row span:first-child { color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 8px; border-radius: 999px; color: #075aa6; background: #e0efff; font-size: 11px; font-weight: 700; }

.searching { display: grid; min-height: 155px; place-items: center; text-align: center; }
.pulse { position: relative; width: 62px; height: 62px; border: 4px solid var(--primary); border-radius: 50%; }
.pulse::before, .pulse::after { position: absolute; content: ''; inset: -5px; border: 2px solid var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
.pulse::after { animation-delay: 1s; }
@keyframes pulse { from { opacity: .7; transform: scale(.8); } to { opacity: 0; transform: scale(1.8); } }

.map { width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: var(--radius); background: #dbeafe; }
.vehicle-summary { display: flex; align-items: center; gap: 12px; }
.vehicle-icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 7px; color: #fff; background: var(--ink); font-size: 21px; }
.stars { color: #d97706; letter-spacing: 0; }
.empty { padding: 28px 18px; border: 1px dashed #cbd5e1; border-radius: var(--radius); color: var(--muted); text-align: center; }
.hidden { display: none !important; }

.user-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }

.modal { position: fixed; z-index: 2000; inset: 0; display: none; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .65); }
.modal.is-open { display: flex; }
.modal-dialog { width: min(100%, 480px); max-height: 88vh; padding: 18px; overflow-y: auto; border-radius: 8px 8px 0 0; background: #fff; }
.modal-dialog h2 { margin-top: 0; font-size: 19px; }
.gps-capture-panel { display: grid; gap: 8px; margin: -4px 0 16px; padding: 11px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; }
.gps-capture-panel > span { color: #1e3a5f; font-size: 12px; line-height: 1.4; }

.notification-center { position: relative; }
.app-menu { position: relative; }
.app-menu-panel { position: absolute; top: 48px; right: -48px; display: none; width: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.app-menu-panel.is-open { display: grid; }
.app-menu-panel a { display: flex; min-height: 48px; align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid #edf1f6; text-decoration: none; }
.app-menu-panel a:last-child { border-bottom: 0; }
.app-menu-panel a:hover { background: #f5f9ff; }
.app-menu-panel svg { width: 18px; height: 18px; color: var(--primary); }
.notification-button { position: relative; color: var(--accent); }
.notification-count { position: absolute; top: -4px; right: -5px; display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; border: 2px solid var(--ink); border-radius: 10px; color: #fff; background: var(--danger); font-size: 9px; }
.notification-panel { position: absolute; top: 48px; right: -50px; display: none; width: min(340px, calc(100vw - 24px)); max-height: 70vh; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.notification-panel.is-open { display: block; }
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.notification-panel-head button, .notification-read-all { padding: 7px 9px; border: 0; color: var(--primary); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.notification-list { max-height: 48vh; overflow-y: auto; }
.notification-list > p { padding: 12px 14px; }
.notification-item { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid #edf1f6; text-decoration: none; }
.notification-item:hover { background: #f5f9ff; }
.notification-item span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.notification-item small { color: #8795a7; font-size: 10px; }
.notification-read-all { width: 100%; border-top: 1px solid var(--line); }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-heading h2 { margin: 2px 0 0; font-size: 19px; }
.section-heading-compact { margin: 14px 0 8px; }
.section-heading-compact h2 { font-size: 16px; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.button-compact { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.request-help-button { min-height: 54px; margin-top: 16px; font-size: 16px; }

.vehicle-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.vehicle-card { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.vehicle-card > div { display: grid; min-width: 0; gap: 3px; }
.vehicle-card strong, .vehicle-card span, .vehicle-card small { overflow-wrap: anywhere; }
.vehicle-card span { color: var(--muted); font-size: 12px; }
.vehicle-card small { color: #334155; font-weight: 700; }

.workflow-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.workflow-step { display: grid; min-width: 0; min-height: 62px; align-content: center; justify-items: center; gap: 4px; padding: 8px 4px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.workflow-step:last-child { border-right: 0; }
.workflow-step b { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #b8c4d2; border-radius: 50%; font-size: 10px; }
.workflow-step.is-complete { color: #075aa6; background: #edf6ff; }
.workflow-step.is-complete b { color: #fff; border-color: var(--primary); background: var(--primary); }
.workflow-step.is-current { color: #7a4300; background: #fff7e8; }
.workflow-step.is-current b { color: #fff; border-color: var(--accent); background: var(--accent); }

.current-stage-panel { padding: 0; }
.current-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.current-stage-heading span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.current-stage-heading strong { color: var(--primary-dark); font-size: 12px; }
.flow-card-current .flow-card-label { padding-top: 12px; padding-bottom: 12px; }
.flow-card-current .flow-card-body { padding: 12px; }
.flow-card-current .flow-card-body h2 { margin-bottom: 6px; font-size: 15px; }
.flow-card-current .flow-card-body p { margin: 7px 0; }
.flow-card-current .alert { margin: 6px 0; padding: 9px 10px; font-size: 12px; }
.stage-message { padding: 9px 10px; border-radius: 7px; color: #164e63; background: #ecfeff; font-size: 12px; }
.stage-message-success { color: #14532d; background: #f0fdf4; }
.stage-primary-action { margin-top: 8px; }
.button-cancel-compact { min-height: 32px; margin-top: 8px; padding: 5px 8px; color: var(--danger); border-color: #fecaca; background: #fff; font-size: 11px; }
.button-cancel-compact svg { width: 14px; height: 14px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0; }
.contact-actions .button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.contact-actions svg { width: 15px; height: 15px; }

.request-accordion-list { display: grid; gap: 7px; }
.request-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.request-accordion summary { display: grid; min-width: 0; min-height: 48px; grid-template-columns: 1.2fr .8fr 1fr 16px; align-items: center; gap: 7px; padding: 9px 10px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; }
.request-accordion summary::-webkit-details-marker { display: none; }
.request-accordion summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-summary-vehicle { color: var(--ink); font-size: 13px; }
.request-accordion summary span:not(.request-summary-vehicle) { color: var(--muted); }
.request-accordion summary svg { width: 16px; height: 16px; transition: transform .2s ease; }
.request-accordion[open] summary { border-bottom: 1px solid var(--line); background: #f5f9ff; }
.request-accordion[open] summary svg { transform: rotate(180deg); }
.request-accordion-body { min-width: 0; padding: 4px 12px 12px; }
.request-accordion-body .detail-row { min-width: 0; align-items: flex-start; font-size: 12px; }
.request-accordion-body .detail-row span:first-child { flex: 0 0 auto; }
.request-accordion-body .detail-row strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.request-accordion-body .contact-actions { margin: 10px 0; }
.request-accordion-body .contact-actions form { flex: 1 1 120px; }
.request-accordion-body .contact-actions .button { width: 100%; }
.request-evidence { min-width: 0; margin: 10px 0; }
.request-evidence > strong { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.request-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.request-photo { display: block; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; background: #e8eef5; }
.request-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.request-actions { justify-content: flex-end; }
.request-actions form { flex: 1 1 120px; }
.request-actions .button { width: 100%; }
.empty-compact { padding: 14px; font-size: 12px; }
.completed-stages .flow-card { box-shadow: none; }
.completed-stages .flow-card-body { padding-top: 12px; padding-bottom: 12px; }
.recent-ratings { margin-top: 20px; }

.tracking-map-shell { position: relative; min-height: 390px; border-radius: 8px; overflow: hidden; background: #dbeafe; box-shadow: var(--shadow); }
.tracking-map-shell .map { border: 0; border-radius: 0; }
.map-large { height: 48vh; min-height: 390px; max-height: 580px; }
.live-dashboard .app-main { padding-top: 12px; }
.live-dashboard .workflow-steps { margin-bottom: 8px; }
.live-dashboard .workflow-step { min-height: 50px; }
.live-dashboard .tracking-map-shell { min-height: 240px; }
.live-dashboard .map-large { height: 34vh; min-height: 240px; max-height: 380px; }
.map-status { position: absolute; z-index: 500; right: 12px; bottom: 12px; left: 12px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.7); border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(7,24,46,.18); }
.map-status strong { min-width: 0; overflow-wrap: anywhere; }
.map-status span { color: var(--primary-dark); font-weight: 800; }
.map-status small { grid-column: 1 / -1; color: var(--muted); }
.location-marker { border: 0; background: transparent; }
.location-marker span { display: block; width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 3px 10px rgba(7,24,46,.4); }
.location-marker-own span { background: var(--primary); }
.location-marker-other span { background: var(--accent); }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.summary-strip > div { display: grid; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--line); text-align: center; }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span { color: var(--muted); font-size: 10px; }
.summary-strip strong { font-size: 16px; }

.flow-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(7,24,46,.05); }
.flow-card.is-muted { opacity: .75; }
.flow-card-label { display: grid; align-content: start; justify-items: center; gap: 7px; padding: 15px 7px; color: #fff; background: var(--ink); text-align: center; }
.flow-card-label > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-weight: 800; }
.flow-card-label div { display: grid; gap: 3px; }
.flow-card-label small { color: #b9c7d8; font-size: 9px; text-transform: uppercase; }
.flow-card-label strong { overflow-wrap: anywhere; font-size: 11px; }
.flow-card-body { min-width: 0; padding: 15px; }
.flow-card-body h2 { margin: 0 0 10px; font-size: 17px; }
.flow-card-body p { line-height: 1.45; }
.flow-stage-request .flow-card-label { background: #075aa6; }
.flow-stage-request .flow-card-body { background: #f1f7ff; }
.flow-stage-contact .flow-card-label { color: #3f2700; background: #f5a623; }
.flow-stage-contact .flow-card-label small { color: #674000; }
.flow-stage-contact .flow-card-body { background: #fff8e9; }
.flow-stage-approval .flow-card-label { background: #16734a; }
.flow-stage-approval .flow-card-body { background: #f0faf5; }
.search-inline { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border-radius: 7px; color: var(--primary-dark); background: #edf6ff; font-size: 12px; font-weight: 700; }
.pulse-small { flex: 0 0 28px; width: 28px; height: 28px; border-width: 3px; }

.history-list { display: grid; gap: 12px; }
.history-shortcut { display: grid; min-height: 48px; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; text-decoration: none; }
.history-shortcut svg { width: 18px; height: 18px; color: var(--primary); }
.history-shortcut span { font-size: 13px; font-weight: 700; }
.history-card { padding: 16px; border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(7,24,46,.05); }
.history-card.is-completed { border-left-color: var(--success); background: #f6fcf8; }
.history-card.is-cancelled { border-left-color: var(--danger); background: #fff8f8; }
.history-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.history-card-head h2 { margin: 4px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.history-card-head small { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.welcome-band { width: min(100%, 420px); margin-top: 22px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 21px; font-weight: 800; text-align: center; }
.login-field { margin-bottom: 13px; }
.login-input { text-align: center; }
.login-input::placeholder { color: #c3ccda; opacity: 1; font-size: 15px; font-weight: 800; }
.forgot-link { display: block; margin: 15px 0 20px; color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; }
.signup-button { border-color: #4a5c79; }
.back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 24px auto 0; color: var(--muted); font-weight: 800; text-decoration: none; }
.back-link svg { width: 18px; }

.registration-page .app-main { width: min(100%, 680px); padding: 0 16px 64px; }
.registration-shell { width: 100%; }
.registration-intro { display: grid; justify-items: center; padding: 28px 0 18px; text-align: center; }
.registration-logo { display: block; width: min(42vw, 150px); max-height: 92px; object-fit: contain; }
.registration-intro h1 { margin: 24px 0 5px; font-size: 32px; }
.registration-intro p { margin: 0; color: var(--muted); font-size: 17px; }
.registration-heading h2 { margin: 18px 0 12px; font-size: 20px; }
.profile-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.profile-option { display: grid; min-width: 0; min-height: 145px; align-content: center; justify-items: center; gap: 8px; padding: 16px 10px; border: 2px solid transparent; border-radius: 8px; color: var(--muted); background: var(--surface-strong); cursor: pointer; text-align: center; }
.profile-option-main { grid-column: 1 / -1; min-height: 112px; }
.profile-option svg { width: 32px; height: 32px; }
.profile-option strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.profile-option span { font-size: 12px; line-height: 1.35; }
.profile-option.is-active { color: var(--accent); border-color: var(--accent); background: #24499a; box-shadow: inset 0 0 0 1px rgba(255, 195, 41, .25); }
.profile-option.is-active strong, .profile-option.is-active span { color: #fff5d6; }
.registration-form { display: none; padding: 20px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.registration-form.is-active { display: block; }
.registration-form > h2 { margin: 0 0 20px; font-size: 22px; }
.document-type-control { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.document-type-control label { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); font-weight: 800; }
.document-type-control input { width: 18px; min-height: 18px; }
.service-options { margin: 0 0 18px; padding: 0; border: 0; }
.service-options legend { margin-bottom: 10px; color: var(--ink); font-size: 15px; font-weight: 800; }
.readonly-field input { color: #99a7bb; background: #101c30; cursor: not-allowed; }
.profile-form { max-width: 720px; margin: 0 auto; }
.profile-form > h2 { margin-top: 24px; }

.construction-shell { display: grid; width: min(100%, 540px); min-height: calc(100vh - 190px); align-content: center; justify-items: center; gap: 14px; margin: 0 auto; text-align: center; }
.construction-shell h1 { margin: 0; font-size: 29px; line-height: 1.18; }
.construction-shell p { margin: 0 0 12px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.construction-icon { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid #4c6080; border-radius: 8px; color: var(--accent); background: var(--surface-strong); }
.construction-icon svg { width: 34px; height: 34px; }
.construction-logo { width: min(48vw, 170px); max-height: 105px; object-fit: contain; }
.standalone-page .app-main { width: min(100%, 600px); }
.public-construction { min-height: calc(100vh - 60px); }

.card, .vehicle-card, .workflow-steps, .request-accordion, .summary-strip, .history-shortcut, .history-card, .tab, .check-option, .app-menu-panel, .notification-panel { color: var(--ink); border-color: var(--line); background: var(--surface); }
.card, .history-card, .flow-card, .request-accordion { box-shadow: var(--shadow); }
.tab { color: var(--muted); }
.tab.is-active { color: #fff; background: var(--primary); }
.check-option { font-size: 14px; font-weight: 700; }
.detail-row { border-bottom-color: #293a55; }
.chip { color: #dbeafe; background: #244a76; }
.empty { border-color: #52627b; }
.modal-dialog, .gps-capture-panel { color: var(--ink); border-color: var(--line); background: var(--surface); }
.gps-capture-panel > span { color: var(--muted); }
.app-menu-panel a, .notification-panel-head, .notification-item { border-bottom-color: #293a55; }
.app-menu-panel a:hover, .notification-item:hover { background: var(--surface-strong); }
.notification-item span, .notification-item small { color: var(--muted); }
.notification-read-all { border-top-color: #293a55; }
.vehicle-card span, .vehicle-card small { color: var(--muted); }
.workflow-step { color: var(--muted); border-right-color: var(--line); }
.workflow-step.is-complete { color: #dbeafe; background: #18395f; }
.workflow-step.is-current { color: #fff1bf; background: #4a3711; }
.current-stage-heading strong { color: #8dbbff; }
.flow-card { color: var(--ink); border-color: var(--line); background: var(--surface); }
.flow-card-label { background: #0c192c; }
.flow-stage-request .flow-card-label { background: #174f91; }
.flow-stage-request .flow-card-body { background: #142b49; }
.flow-stage-contact .flow-card-label { color: #fff4cf; background: #8a5b08; }
.flow-stage-contact .flow-card-label small { color: #ffe39a; }
.flow-stage-contact .flow-card-body { background: #3b301a; }
.flow-stage-approval .flow-card-label { background: #176345; }
.flow-stage-approval .flow-card-body { background: #173a31; }
.stage-message { color: #d9f8ff; background: #164052; }
.stage-message-success { color: #dcfce7; background: #18543b; }
.search-inline { color: #dbeafe; background: #18395f; }
.request-accordion[open] summary { border-bottom-color: var(--line); background: #1a2c47; }
.request-evidence > strong { color: var(--muted); }
.request-photo { border-color: var(--line); background: #0f1c30; }
.map-status { color: var(--ink); border-color: rgba(255,255,255,.15); background: rgba(13, 27, 47, .94); }
.map-status span { color: #8dbbff; }
.summary-strip > div { border-right-color: var(--line); }
.history-card.is-completed { background: #17352d; }
.history-card.is-cancelled { background: #3d2229; }
.history-card-head small { color: var(--muted); }
.button-cancel-compact { color: #fecaca; border-color: #7f3540; background: #321b22; }
.request-summary-vehicle, .history-shortcut { color: var(--ink); }
table { color: var(--ink); }
th, td { border-bottom-color: #293a55; }
th { color: var(--muted); }
select option { color: var(--ink); background: var(--surface-strong); }

@media (max-width: 380px) {
    .header-user > span { display: none; }
    .flow-card { grid-template-columns: 72px minmax(0, 1fr); }
    .map-status { grid-template-columns: 1fr; }
    .map-status small { grid-column: auto; }
}

@media (min-width: 720px) {
    .app-main { padding: 28px 24px 80px; }
    .login-shell { justify-content: center; }
    .login-brand { padding-top: 24px; }
    .login-panel { margin: 0 auto; }
    .grid-2, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .field-full { grid-column: 1 / -1; }
    .stats { gap: 14px; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat { padding: 17px; }
    .modal { align-items: center; }
    .modal-dialog { border-radius: 8px; }
    .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notification-panel { right: 0; }
    .app-menu-panel { right: 0; }
    .flow-card { grid-template-columns: 112px minmax(0, 1fr); }
    .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* IGOMEC 4.2.0 - perfis combinados e categorias de acesso rápido */
.profile-selector-structural { grid-template-columns: 1fr; gap: 9px; }
.profile-selector-structural .profile-option { display: grid; min-height: 82px; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 15px; text-align: left; }
.profile-selector-structural .profile-option > svg { width: 28px; height: 28px; justify-self: center; }
.profile-selector-structural .profile-option > span { display: grid; gap: 4px; }
.profile-selector-structural .profile-option strong { font-size: 15px; line-height: 1.25; }
.profile-selector-structural .profile-option small { color: #bac7d8; font-size: 12px; line-height: 1.35; }
.merchant-registration-step, .registration-step-heading { display: grid; gap: 12px; }
.registration-step-heading { gap: 4px; }
.registration-step-heading small { color: #7fb8ff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.registration-step-heading h2, .registration-step-heading p { margin: 0; }
.registration-step-heading p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.merchant-profile-options { display: grid; gap: 9px; }
.merchant-profile-options label { position: relative; display: block; }
.merchant-profile-options input { position: absolute; opacity: 0; pointer-events: none; }
.merchant-profile-options span { display: grid; min-height: 72px; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #52698e; border-radius: 8px; color: #eef4fb; background: #172b48; }
.merchant-profile-options svg { width: 23px; height: 23px; color: #8dbbff; }
.merchant-profile-options strong { font-size: 14px; line-height: 1.35; }
.merchant-profile-options input:checked + span { border-color: #ffc43d; color: #fff; background: #22447a; box-shadow: inset 4px 0 0 #ffc43d; }
.registration-step-actions { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 8px; }

.service-profile-summary { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.service-profile-summary span { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #52698e; border-radius: 7px; color: #d7e2ef; background: #142943; font-size: 11px; font-weight: 800; }
.service-profile-summary svg { width: 15px; height: 15px; }
.service-profile-summary .is-complete { border-color: #237451; color: #d9ffec; background: #164a38; }
.service-profile-summary .is-pending { border-color: #a87520; color: #fff0c3; background: #5c4319; }
.professional-setup-card { display: grid; gap: 14px; margin-bottom: 13px; background: #102641; }
.professional-setup-card form { display: grid; gap: 13px; }
.professional-only-state { margin-bottom: 14px; }
.combined-roadside-link { margin-bottom: 12px; }
.roadside-commerce-return { margin-bottom: 12px; }
.mobile-unit-option { display: block; margin: 2px 0 12px; }
.mobile-unit-option > input { position: absolute; opacity: 0; }
.mobile-unit-option > span { display: grid; min-height: 66px; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 11px; border: 1px solid #52698e; border-radius: 8px; background: #172b48; }
.mobile-unit-option svg { grid-row: 1 / 3; width: 23px; height: 23px; color: #8dbbff; }
.mobile-unit-option strong { font-size: 14px; }
.mobile-unit-option small { color: #b7c5d8; font-size: 11px; }
.mobile-unit-option input:checked + span { border-color: #3ecf8e; background: #164a38; box-shadow: inset 4px 0 0 #3ecf8e; }
.unit-commerce-form.is-mobile-unit [data-unit-fixed-address] { display: none !important; }

.client-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.client-category-grid a { display: grid; min-width: 0; aspect-ratio: 1; place-items: center; align-content: center; gap: 7px; padding: 8px 5px; border: 1px solid #405d83; border-radius: 8px; color: #f4f7fb; background: #162d4b; text-align: center; text-decoration: none; }
.client-category-grid a:active { border-color: #ffc43d; background: #214879; transform: translateY(1px); }
.client-category-grid svg { width: 25px; height: 25px; color: #ffc43d; }
.client-category-grid strong { max-width: 100%; font-size: 11px; line-height: 1.18; overflow-wrap: anywhere; }
.client-category-grid small { color: #bdc9d7; font-size: 9px; line-height: 1.15; }
.explore-category-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; }
.explore-category-heading small { color: #8dbbff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.explore-category-heading h1 { margin: 2px 0 0; font-size: 22px; }
.is-category-search { gap: 10px; }
.explore-search-compact { min-height: 45px; }
.explore-search-compact input { font-size: 12px; }

@media (max-width: 359px) {
    .client-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
    .profile-selector-structural { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-selector-structural .profile-option { min-height: 118px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .client-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Version 4.0.0 administrative control center. */
.admin-dashboard .app-main { width: min(100%, 1180px); padding-top: 12px; }
.admin-shell { display: grid; gap: 15px; padding-bottom: 34px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-heading h1 { margin: 3px 0; font-size: 25px; }
.admin-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-heading .icon-button { border: 1px solid #52698e; background: #1b3558; }
.admin-section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-section-nav a { display: grid; min-width: 0; min-height: 104px; align-content: center; gap: 4px; padding: 13px; border: 1px solid #405577; border-radius: 7px; color: #d6e0ed; background: #162b48; text-decoration: none; }
.admin-section-nav a.is-active { color: #fff; border-color: #4f9bff; background: #1d4774; }
.admin-section-nav svg { width: 25px; height: 25px; margin-bottom: 4px; color: #78adff; }
.admin-section-nav a.is-active svg { color: #fff; }
.admin-section-nav strong { overflow-wrap: anywhere; font-size: 14px; }
.admin-section-nav span { color: #9cacc1; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-section-nav a.is-active span { color: #cfe1ff; }
.admin-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.admin-search > svg { position: absolute; z-index: 1; top: 15px; left: 13px; width: 20px; height: 20px; color: #91a8c7; }
.admin-search input { min-width: 0; padding-left: 42px; }
.admin-search button { min-width: 82px; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-metric-grid article { position: relative; display: grid; min-width: 0; min-height: 118px; align-content: center; gap: 2px; padding: 13px; overflow: hidden; border: 1px solid #405577; border-radius: 7px; background: #162b48; }
.admin-metric-grid article > svg { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; color: #6e94c8; }
.admin-metric-grid strong { font-size: 28px; line-height: 1; }
.admin-metric-grid span { margin-top: 5px; color: #c3cfde; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-metric-grid small { color: #8dbbff; font-size: 9px; font-weight: 800; }
.admin-metric-grid article.is-blue { border-color: #386da8; background: #15365c; }
.admin-metric-grid article.is-green { border-color: #328261; background: #123b2b; }
.admin-metric-grid article.is-red { border-color: #98505a; background: #512931; }
.admin-metric-grid article.is-amber { border-color: #9e7729; background: #49370f; }
.admin-overview-grid { display: grid; gap: 12px; }
.admin-panel { display: grid; gap: 13px; padding: 15px; border: 1px solid #405577; border-radius: 7px; background: #10213a; }
.admin-panel-heading { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 12px; }
.admin-panel-heading h2 { margin: 3px 0 0; font-size: 20px; }
.admin-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.admin-panel-heading > a { color: #91bcff; font-size: 11px; font-weight: 800; }
.admin-compact-list, .admin-record-list, .admin-request-list, .admin-ad-list, .admin-classified-list { display: grid; gap: 8px; }
.admin-compact-list > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px 0; border-bottom: 1px solid #304664; }
.admin-compact-list > div:last-child { border-bottom: 0; }
.admin-avatar { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 6px; color: #8dbbff; background: #1b385d; }
.admin-avatar svg { width: 20px; height: 20px; }
.admin-compact-list p { display: grid; min-width: 0; gap: 2px; margin: 0; }
.admin-compact-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-compact-list small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-status { display: inline-flex; width: fit-content; min-height: 25px; align-items: center; padding: 4px 7px; border: 1px solid #6b7280; border-radius: 5px; color: #d3d8df; background: #3b4554; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.admin-status.is-active, .admin-status.status-completed { color: #c5f4da; border-color: #328261; background: #174c37; }
.admin-status.status-cancelled { color: #ffd6da; border-color: #98505a; background: #512931; }
.admin-status.status-searching, .admin-status.status-contact_allowed, .admin-status.status-accepted, .admin-status.status-en_route { color: #ffe4a5; border-color: #9e7729; background: #49370f; }
.admin-user-record, .admin-request-list > article, .admin-ad-list > article, .admin-classified-list > article { display: grid; min-width: 0; gap: 11px; padding: 12px; border: 1px solid #405577; border-radius: 7px; background: #162b48; }
.admin-record-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.admin-record-main > div { min-width: 0; }
.admin-record-main small, .admin-user-record small, .admin-request-list small, .admin-ad-list small, .admin-classified-list small { color: #8dbbff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-record-main h3, .admin-request-list h3, .admin-ad-list h3, .admin-classified-list h3 { margin: 3px 0; overflow-wrap: anywhere; font-size: 15px; }
.admin-record-main p, .admin-ad-list p, .admin-classified-list p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-record-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-record-meta span { display: inline-flex; align-items: center; gap: 5px; color: #b6c2d3; font-size: 9px; }
.admin-record-meta svg { width: 13px; height: 13px; color: #8dbbff; }
.admin-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-record-actions form { margin: 0; }
.admin-record-actions .button { min-height: 38px; padding: 8px 11px; font-size: 10px; }
.admin-commerce-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.admin-commerce-counts span { display: grid; gap: 2px; padding: 8px; border-radius: 6px; color: #aebdd2; background: #0e1e34; font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.admin-commerce-counts strong { color: #fff; font-size: 18px; }
.admin-request-list article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-request-details { display: grid; gap: 7px; }
.admin-request-details p { display: flex; align-items: center; gap: 8px; margin: 0; }
.admin-request-details p > svg { flex: 0 0 18px; width: 18px; height: 18px; color: #8dbbff; }
.admin-request-details span { display: grid; gap: 1px; }
.admin-request-details strong { font-size: 11px; }
.admin-request-description { margin: 0; padding: 9px; border-left: 3px solid #4f9bff; color: #c6d2e2; background: #10213a; font-size: 11px; line-height: 1.45; }
.admin-request-update { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid #304664; }
.admin-request-update label { display: grid; gap: 4px; }
.admin-request-update label > span { color: #91a8c7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-ad-list > article { grid-template-columns: 72px minmax(0, 1fr); }
.admin-ad-list > article > img { width: 72px; height: 72px; border: 1px solid #52698e; border-radius: 6px; object-fit: contain; background: #000; }
.admin-ad-metrics, .admin-ad-list .admin-record-actions { grid-column: 1 / -1; }
.admin-ad-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.admin-ad-metrics span { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 2px 6px; padding: 8px; border-radius: 6px; background: #0e1e34; font-size: 8px; text-transform: uppercase; }
.admin-ad-metrics svg { grid-row: 1 / 3; width: 18px; height: 18px; color: #8dbbff; }
.admin-ad-metrics strong { font-size: 16px; }
.admin-modal { z-index: 3300; }
.admin-edit-form { display: grid; max-height: min(92vh, 92dvh); grid-template-rows: auto minmax(0, 1fr) auto; padding: 0; overflow: hidden; color: #fff; border: 1px solid #405577; background: #10213a; }
.admin-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid #405577; }
.admin-modal-heading small { color: #8dbbff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-modal-heading h2 { margin: 2px 0 0; }
.admin-modal-heading .icon-button { border: 1px solid #52698e; background: #1b3558; }
.admin-modal-scroll { display: grid; gap: 11px; min-height: 0; padding: 15px; overflow-y: auto; }
.admin-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 15px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #405577; }
.admin-pagination { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.admin-pagination .button { min-height: 42px; }
.admin-pagination .button:last-child { justify-self: stretch; }
.admin-pagination span { color: #b8c5d8; font-size: 10px; font-weight: 800; text-align: center; }
.admin-pagination .is-disabled { pointer-events: none; opacity: .35; }

@media (min-width: 720px) {
    .admin-section-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .admin-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .admin-overview-grid { grid-template-columns: 1fr 1fr; }
    .admin-record-list, .admin-request-list, .admin-ad-list, .admin-classified-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-request-update { grid-template-columns: 1fr 1.4fr auto; align-items: end; }
}

/* Version 3.8.0 advertising, Explore and client favorites. */
.ad-placement { position: relative; width: 100%; margin: 16px auto; overflow: hidden; border: 1px solid #405577; border-radius: 7px; background: #000; }
.ad-placement > span { position: absolute; z-index: 1; top: 6px; left: 6px; padding: 3px 5px; border-radius: 4px; color: #fff; background: rgba(7,24,46,.78); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ad-placement > a, .ad-placement img { display: block; width: 100%; }
.ad-placement img { object-fit: contain; background: #000; }
.ad-standard { max-width: 520px; }
.ad-standard img { aspect-ratio: 4 / 3; }
.ad-banner { max-width: 880px; }
.ad-banner img { aspect-ratio: 3 / 1; }
.ad-large { max-width: 620px; }
.ad-large img { aspect-ratio: 1; }
.ad-login { width: min(calc(100% - 40px), 440px); margin-top: -20px; margin-bottom: 30px; }
.ad-client-home { margin-top: 12px; }
.ad-service-stage { margin-top: 8px; margin-bottom: 18px; }

.client-favorite-list { display: grid; gap: 8px; }
.client-favorite-item { display: grid; min-width: 0; grid-template-columns: 46px minmax(0, 1fr) 40px; align-items: center; gap: 9px; padding: 8px; border: 1px solid #b9c0ca; border-radius: 7px; background: #f3f4f6; }
.client-favorite-item > img, .client-favorite-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 6px; object-fit: cover; color: #1f5fae; background: #dbeafe; }
.client-favorite-icon svg { width: 22px; height: 22px; }
.client-favorite-item > a { display: grid; min-width: 0; gap: 3px; color: #111827; text-decoration: none; }
.client-favorite-item strong, .client-favorite-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-favorite-item strong { font-size: 13px; }
.client-favorite-item small { color: #4b5563; font-size: 10px; }
.favorite-button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #52698e; border-radius: 50%; color: #9fb1c8; background: #152842; cursor: pointer; }
.favorite-button svg { width: 19px; height: 19px; }
.favorite-button.is-favorite { color: #ff7182; border-color: #a84655; background: #3d2229; }
.favorite-button.is-favorite svg { fill: currentColor; }
.favorite-button:disabled { opacity: .55; }

.explore-shell { display: grid; gap: 0; padding-bottom: 20px; }
.ad-explore-top { margin-top: 0; }
.explore-heading { padding: 13px 2px 17px; }
.explore-heading h1 { margin: 3px 0 0; font-size: 27px; }
.explore-search-section, .explore-nearby-section { padding: 18px 0; border-top: 1px solid #405577; }
.explore-search-section > h2, .explore-nearby-section h2 { margin: 0 0 12px; font-size: 19px; }
.explore-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px; margin-bottom: 13px; }
.explore-search > svg { position: absolute; z-index: 1; top: 15px; left: 13px; width: 21px; height: 21px; color: #91a8c7; }
.explore-search input { padding-right: 12px; padding-left: 43px; border-radius: 7px 0 0 7px; }
.explore-search button { display: grid; min-height: 52px; place-items: center; padding: 0; border: 0; border-radius: 0 7px 7px 0; color: #fff; background: #176bd8; }
.explore-search button svg { width: 21px; height: 21px; }
.explore-result-list, .explore-unit-list { display: grid; gap: 9px; min-height: 64px; transition: opacity .15s ease; }
.explore-result-list.is-loading, .explore-unit-list.is-loading { opacity: .55; }
.explore-result-card { display: grid; min-width: 0; grid-template-columns: 68px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 9px; border: 1px solid #405577; border-radius: 7px; background: #162b48; }
.explore-result-card > img, .explore-result-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 6px; object-fit: cover; color: #79adff; background: #0b192d; }
.explore-result-icon svg { width: 28px; height: 28px; }
.explore-result-card > a { display: grid; min-width: 0; gap: 3px; color: #fff; text-decoration: none; }
.explore-result-card small { overflow: hidden; color: #8dbbff; font-size: 8px; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.explore-result-card strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.explore-result-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #b8c5d8; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.explore-empty { display: grid; min-height: 64px; place-items: center; align-content: center; gap: 5px; padding: 12px; color: #aebdd2; text-align: center; }
.explore-empty svg { width: 22px; height: 22px; }
.explore-empty span { font-size: 12px; font-weight: 700; }
.explore-empty.is-error { color: #ffadb5; }
.explore-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.explore-section-heading h2 { margin-bottom: 0; }
.explore-section-heading .icon-button { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #52698e; background: #1d4774; }
.explore-radius { display: flex; gap: 6px; margin: 14px 0 9px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.explore-radius::-webkit-scrollbar { display: none; }
.explore-radius button { flex: 0 0 auto; min-width: 58px; min-height: 38px; padding: 7px 10px; border: 1px solid #52698e; border-radius: 7px; color: #b8c5d8; background: #152842; font-size: 11px; font-weight: 800; }
.explore-radius button.is-active { color: #fff; border-color: #4f9bff; background: #176bd8; }
.explore-location-status { margin: 0 0 12px; color: #91a8c7; font-size: 10px; font-weight: 700; }
.explore-loading { display: flex; min-height: 70px; align-items: center; justify-content: center; gap: 9px; color: #aebdd2; font-size: 12px; font-weight: 700; }
.explore-loading span { width: 18px; height: 18px; border: 2px solid #405577; border-top-color: #5aa2ff; border-radius: 50%; animation: explore-spin .8s linear infinite; }
.ad-explore-bottom { margin-top: 18px; }
@keyframes explore-spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
    .explore-result-list, .explore-unit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explore-radius { overflow: visible; }
}

.commerce-unit-cover { display: block; width: 100%; aspect-ratio: 16 / 8; border: 1px solid #52698e; border-radius: 7px; object-fit: cover; }
.unit-photo-manager { display: grid; gap: 10px; padding: 12px; border: 1px solid #405577; border-radius: 7px; background: #10213a; }
.unit-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.unit-photo-heading > span { display: grid; gap: 2px; }
.unit-photo-heading small { color: #91a8c7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.unit-photo-heading strong { font-size: 14px; }
.unit-photo-heading > b { color: #8dbbff; font-size: 13px; }
.unit-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.unit-photo-item { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid #52698e; border-radius: 7px; background: #07182e; }
.unit-photo-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.unit-photo-item button { position: absolute; top: 5px; right: 5px; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(7,24,46,.86); }
.unit-photo-item button svg { width: 17px; height: 17px; }
.unit-photo-item.is-new { border-color: #4f9bff; }
.unit-photo-item.is-removed img { opacity: .28; filter: grayscale(1); }
.unit-photo-item.is-removed::after { position: absolute; right: 4px; bottom: 5px; left: 4px; color: #ffd6d9; content: 'Será removida'; font-size: 9px; font-weight: 800; text-align: center; }
.unit-photo-note { margin: 0; color: var(--muted); font-size: 10px; }

.public-commerce-page .app-main { padding-inline: 0; }
.public-commerce-shell { width: min(100%, 880px); margin: 0 auto; padding-bottom: 30px; }
.public-back-link { display: inline-flex; align-items: center; gap: 7px; margin: 12px 16px; color: #b9d5ff; font-size: 13px; font-weight: 800; text-decoration: none; }
.public-back-link svg { width: 18px; height: 18px; }
.public-unit-intro { display: grid; gap: 0; }
.public-unit-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(210px, 42dvh) 72px; gap: 4px; background: #07182e; }
.public-unit-gallery img { width: 100%; height: 100%; min-width: 0; object-fit: cover; }
.public-unit-gallery .is-main { grid-column: 1 / -1; }
.public-unit-placeholder { display: grid; min-height: 240px; place-items: center; background: #10213a; }
.public-unit-placeholder img { width: min(55%, 230px); max-height: 150px; object-fit: contain; }
.public-unit-title { display: grid; gap: 7px; padding: 18px 16px; }
.public-unit-title h1 { margin: 0; overflow-wrap: anywhere; font-size: 27px; }
.public-unit-title p { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #b8c5d8; font-size: 13px; line-height: 1.45; }
.public-unit-title p svg { flex: 0 0 18px; width: 18px; height: 18px; color: #79adff; }
.public-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 16px 18px; }
.public-contact-actions .button { min-height: 52px; }
.public-info-band { padding: 19px 16px; border-top: 1px solid #405577; }
.public-info-band h2 { margin: 0 0 13px; font-size: 19px; }
.public-category-list { display: flex; flex-wrap: wrap; gap: 7px; }
.public-category-list span { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid #405577; border-radius: 7px; color: #eef4ff; background: #162b48; font-size: 12px; font-weight: 800; }
.public-category-list small { color: #91a8c7; font-size: 8px; text-transform: uppercase; }
.public-unit-map { width: 100%; min-height: 290px; border: 1px solid #52698e; border-radius: 7px; background: #dce8f7; }
.public-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.public-section-head h2 { margin: 0; }
.public-section-head a { color: #8dbbff; font-size: 12px; font-weight: 800; }
.public-classified-list { display: grid; gap: 9px; }
.public-classified-list article { display: grid; gap: 7px; padding: 14px; border: 1px solid #405577; border-radius: 7px; background: #162b48; }
.public-classified-list small { color: #8dbbff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.public-classified-list h2, .public-classified-list h3 { margin: 0; overflow-wrap: anywhere; font-size: 17px; }
.public-classified-list p { margin: 0; color: #c4cfdd; font-size: 13px; line-height: 1.5; }
.public-inline-link { display: inline-flex; align-items: center; gap: 5px; color: #9fc3fa; font-size: 11px; font-weight: 800; }
.public-inline-link svg { width: 15px; height: 15px; }
.public-item-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; }
.public-item-actions a { padding: 8px 10px; border: 1px solid #52698e; border-radius: 6px; color: #fff; background: #234a79; font-size: 11px; font-weight: 800; text-decoration: none; }
.public-ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.public-ad-grid > a { display: grid; min-width: 0; overflow: hidden; border: 1px solid #405577; border-radius: 7px; color: #fff; background: #101d32; text-decoration: none; }
.public-ad-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; }
.public-ad-grid span { display: grid; gap: 2px; padding: 9px; }
.public-ad-grid small { overflow-wrap: anywhere; color: #8dbbff; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.public-ad-grid strong { overflow-wrap: anywhere; font-size: 12px; }
.public-list-heading { padding: 12px 16px 20px; }
.public-list-heading h1 { margin: 4px 0; font-size: 27px; }
.public-list-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.public-list-page, .public-ad-page { padding: 0 16px; }

@media (min-width: 720px) {
    .client-bottom-nav { right: 50%; left: auto; width: min(100%, 560px); transform: translateX(50%); border-right: 1px solid #405577; border-left: 1px solid #405577; border-radius: 8px 8px 0 0; }
    .public-unit-gallery { border-radius: 8px 8px 0 0; }
    .public-classified-list.public-list-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Version 3.7.0 client navigation and public commerce views. */
.has-client-bottom-nav { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.client-bottom-nav { position: fixed; z-index: 1800; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 68px; padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid #405577; background: #0b192d; box-shadow: 0 -8px 22px rgba(2, 10, 23, .42); }
.client-bottom-nav a { display: grid; min-width: 0; place-items: center; align-content: center; gap: 3px; color: #aebdd2; text-decoration: none; }
.client-bottom-nav svg { width: 24px; height: 24px; }
.client-bottom-nav span { font-size: 11px; font-weight: 800; }
.client-bottom-nav a.is-active { color: #fff; }
.client-bottom-nav a.is-active svg { color: #5aa2ff; stroke-width: 2.5; }
.construction-view { display: grid; min-height: calc(100dvh - 190px); place-items: center; align-content: center; gap: 8px; text-align: center; }
.construction-view .construction-icon { display: grid; width: 70px; height: 70px; place-items: center; margin-bottom: 6px; border: 1px solid #52698e; border-radius: 50%; color: #79adff; background: #162b48; }
.construction-view .construction-icon svg { width: 36px; height: 36px; }
.construction-view h1 { margin: 0; font-size: 28px; }
.construction-view p { margin: 0; color: var(--muted); font-size: 16px; font-weight: 700; }

/* Version 3.1 operational emphasis and mobile workflows. */
.app-header { z-index: 1200; isolation: isolate; }
.app-menu-panel, .notification-panel { right: 0; z-index: 1300; }
.tracking-map-shell, .map, .leaflet-container { position: relative; z-index: 0; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.mechanic-dashboard-title { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.mechanic-dashboard-title h1 { overflow: visible; font-size: 17px; white-space: normal; }
.mechanic-dashboard-title svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); }
.new-requests-banner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 10px; padding: 13px 15px; border: 1px solid #ff7777; border-radius: 8px; color: #fff; background: #c61f2b; box-shadow: 0 10px 24px rgba(198, 31, 43, .28); }
.new-requests-banner > div { display: grid; min-width: 0; grid-template-columns: 28px 1fr; align-items: center; column-gap: 9px; }
.new-requests-banner svg { grid-row: 1 / 3; width: 26px; height: 26px; }
.new-requests-banner span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.new-requests-banner strong { font-size: 20px; line-height: 1.15; }
.new-requests-banner > b { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 50%; color: #a10f1c; background: #fff; font-size: 17px; }
@keyframes emergency-blink { 0%, 45% { opacity: 1; } 50%, 85% { opacity: .18; } 100% { opacity: 1; } }
.emergency-blink { animation: emergency-blink 1s steps(2, end) infinite; }
.new-requests-banner.is-quiet .emergency-blink, .request-accordion.is-viewed .emergency-blink { animation: none; opacity: 1; }
.request-accordion summary { grid-template-columns: 22px 1.15fr .75fr .95fr 16px; }
.request-emergency { width: 19px !important; height: 19px !important; color: #ff6670; transform: none !important; }
.request-accordion.is-viewed, .request-accordion.is-viewed summary, .request-accordion.is-viewed .request-accordion-body { color: #111827; border-color: #e3aa00; background: #ffd447; }
.request-accordion.is-viewed[open] summary { border-bottom-color: #d5a000; background: #ffc928; }
.request-accordion.is-viewed summary span, .request-accordion.is-viewed .request-summary-vehicle, .request-accordion.is-viewed .detail-row span, .request-accordion.is-viewed .detail-row strong, .request-accordion.is-viewed .request-evidence > strong, .request-accordion.is-viewed .muted { color: #111827; }

.button-emergency { color: #fff; border-color: #ff6262; background: #d92332; box-shadow: 0 10px 24px rgba(217, 35, 50, .25); }
.button-emergency:hover { background: #bd1725; }
.button-emergency svg { width: 22px; height: 22px; }
.request-help-top { margin: 0 0 14px; font-size: 18px; }
.dashboard-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.dashboard-accordion > summary { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.dashboard-accordion > summary::-webkit-details-marker { display: none; }
.dashboard-accordion > summary span { display: grid; gap: 3px; }
.dashboard-accordion > summary small { color: #82b1ff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dashboard-accordion > summary strong { font-size: 21px; }
.dashboard-accordion > summary svg { width: 24px; height: 24px; transition: transform .2s ease; }
.dashboard-accordion[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-strong); }
.dashboard-accordion[open] > summary svg { transform: rotate(180deg); }
.dashboard-accordion-body { display: grid; gap: 12px; padding: 14px; }
.garage-add-button { min-height: 50px; font-size: 16px; }
.favorites-accordion .empty { display: grid; justify-items: center; gap: 5px; text-align: center; }
.favorites-accordion .empty svg { width: 28px; height: 28px; color: #ff7182; }
.favorites-accordion .empty span { color: var(--muted); font-size: 12px; }

.field-emphasis > span { font-size: 18px; font-weight: 800; }
.field-emphasis > span small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.photo-source-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-source-actions button { display: grid; min-width: 0; aspect-ratio: 1; place-items: center; align-content: center; gap: 10px; padding: 12px; border: 1px solid #4a6080; border-radius: 8px; color: var(--ink); background: var(--surface-strong); cursor: pointer; text-align: center; }
.photo-source-actions button:focus-visible { outline: 3px solid rgba(47, 126, 247, .45); outline-offset: 2px; }
.photo-source-actions svg { width: 34px; height: 34px; color: #83b5ff; }
.photo-source-actions strong { max-width: 100%; overflow-wrap: anywhere; font-size: 14px; }
.photo-selection-summary { min-height: 42px; padding: 10px 12px; border: 1px dashed #4a6080; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.photo-clear-button { justify-self: start; padding: 4px 0; border: 0; color: #ff9da8; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: underline; }

.address-picker { display: grid; gap: 12px; margin-bottom: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #0d1b30; }
.address-picker.hidden { display: none; }
.address-fields { gap: 10px; }
.address-map { width: 100%; min-height: 280px; border: 1px solid #52698e; border-radius: 8px; background: #dce8f7; }
.address-map-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.address-summary { display: grid; gap: 4px; padding: 12px; border: 1px solid #2f9c68; border-radius: 8px; color: #dcfce7; background: #163c2e; }
.address-summary small { color: #86efac; font-size: 10px; text-transform: uppercase; }
.address-summary strong { overflow-wrap: anywhere; font-size: 13px; }
.driver-fields { margin-bottom: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #0d1b30; }

@media (min-width: 720px) {
    .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .request-help-top { width: min(100%, 520px); }
    .address-map { min-height: 340px; }
}

/* Version 3.1.1 usability refinements. */
.login-brand { padding-bottom: 4px; }
.welcome-band { width: min(100%, 420px); margin-top: 8px; padding: 0 18px; border: 0; color: var(--ink); background: transparent; font-size: 17px; }
.login-panel { padding-top: 14px; }
.forgot-link { margin-top: 19px; }

.registration-intro { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 16px; padding: 16px 0 8px; text-align: left; }
.registration-logo { width: min(28vw, 105px); max-height: 68px; }
.registration-intro h1 { margin: 0 0 5px; font-size: 30px; }
.registration-heading h2 { margin: 12px 0 10px; }
.profile-option { min-height: 132px; padding: 14px 10px; }
.profile-option-main { min-height: 102px; }
.profile-option-brand { cursor: default; }
.profile-option-brand img { display: block; width: min(78%, 126px); max-height: 88px; object-fit: contain; }

.alert-dismissible { cursor: pointer; transition: opacity .18s ease, transform .18s ease; }
.alert-dismissible::after { float: right; margin-left: 10px; content: '\00d7'; font-size: 18px; font-weight: 800; line-height: 1; }
.alert-dismissible.is-dismissing { opacity: 0; transform: translateY(-4px); }

.new-requests-banner.is-empty { border-color: #65d49c; background: #16734a; box-shadow: 0 10px 24px rgba(22, 115, 74, .24); }
.new-requests-banner.is-empty > b { color: #16734a; }
.request-accordion-body .detail-row { font-size: 13px; }

.vehicle-card > div { flex: 1 1 auto; }
.vehicle-card > form { flex: 0 0 auto; margin-left: auto; }
.vehicle-delete-button { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid #f1a7ad; border-radius: 8px; color: #b4232f; background: #fff5f5; cursor: pointer; }
.vehicle-delete-button svg { width: 19px; height: 19px; }
.favorites-accordion { color: #111827; border-color: #b9c0ca; background: #e5e7eb; }
.favorites-accordion > summary, .favorites-accordion[open] > summary, .favorites-accordion .dashboard-accordion-body { color: #111827; border-color: #c2c8d0; background: #e5e7eb; }
.favorites-accordion > summary small, .favorites-accordion .empty span { color: #4b5563; }
.favorites-accordion .empty { color: #1f2937; border-color: #9ca3af; background: #f3f4f6; }

.photo-selection-summary { display: grid; gap: 8px; }
.photo-selection-summary.has-previews { padding: 8px; }
.photo-selection-summary > strong { font-size: 11px; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.photo-preview-grid img { display: block; width: 100%; aspect-ratio: 1; border: 1px solid #5b6f90; border-radius: 6px; object-fit: cover; background: #dce8f7; }

.rescue-accordion { overflow: hidden; border: 1px solid #4d607d; border-radius: 8px; background: var(--surface); }
.rescue-accordion > summary { display: grid; min-height: 50px; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px; padding: 10px 13px; cursor: pointer; list-style: none; }
.rescue-accordion > summary::-webkit-details-marker { display: none; }
.rescue-accordion > summary span { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.rescue-accordion > summary span svg { width: 19px; height: 19px; color: #83b5ff; }
.rescue-accordion > summary > b { display: grid; min-width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #d6e6ff; background: #273b5b; font-size: 12px; }
.rescue-accordion > summary > svg { width: 18px; height: 18px; transition: transform .2s ease; }
.rescue-accordion[open] > summary { border-bottom: 1px solid #4d607d; background: var(--surface-strong); }
.rescue-accordion[open] > summary > svg { transform: rotate(180deg); }
.rescue-accordion-body { display: grid; gap: 8px; padding: 10px; }
.rescue-request { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-strong); }
.rescue-request > div { display: grid; min-width: 0; gap: 3px; }
.rescue-request strong, .rescue-request span { overflow-wrap: anywhere; }
.rescue-request span { color: var(--muted); font-size: 12px; }
.rescue-request form { flex: 0 0 auto; }

/* Version 3.1.2 professional dashboard refinements. */
.new-requests-banner { height: 76px; min-height: 76px; }
.new-requests-banner.is-empty { justify-content: center; text-align: center; }
.new-requests-banner.is-empty > strong { font-size: 18px; line-height: 1.3; }
.request-accordion summary { min-height: 76px; gap: 9px; padding: 12px; font-size: 13px; }
.request-summary-vehicle { font-size: 16px; }
.request-accordion-body { padding-top: 8px; }

.contact-action-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 112px)); justify-content: center; gap: 12px; margin: 14px 0; }
.contact-action-tiles form { width: 100%; }
.contact-action-tiles .button { display: grid; width: 100%; min-height: 104px; aspect-ratio: 1; place-items: center; align-content: center; gap: 9px; padding: 12px 8px; border-radius: 8px; font-size: 15px; text-align: center; }
.contact-action-tiles .button svg { width: 29px; height: 29px; }
.contact-action-tiles .button strong { font-size: 15px; }
.contact-action-tiles .button-success { border: 1px solid #55d997; box-shadow: 0 8px 20px rgba(34, 168, 102, .24); }

.reputation-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.reputation-accordion > summary { display: grid; min-height: 70px; grid-template-columns: auto 1fr 22px; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer; list-style: none; }
.reputation-accordion > summary::-webkit-details-marker { display: none; }
.reputation-accordion > summary strong { font-size: 22px; }
.reputation-accordion > summary > span { color: var(--muted); font-size: 14px; font-weight: 800; }
.reputation-accordion > summary > svg { width: 22px; height: 22px; transition: transform .2s ease; }
.reputation-accordion[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-strong); }
.reputation-accordion[open] > summary > svg { transform: rotate(180deg); }
.reputation-accordion-body { display: grid; gap: 12px; padding: 13px; }
.reputation-rating-list .card { padding: 14px; }
.reputation-rating-list .card p { margin: 8px 0; line-height: 1.45; }
.reputation-contest-button { margin-top: 2px; }

/* Version 3.1.3 registration navigation. */
.registration-form { scroll-margin-top: 12px; }

/* Version 3.1.4 registration fields. */
.registration-form input::placeholder { color: #9daabd; opacity: 1; font-size: 14px; font-weight: 800; }
.registration-form .password-toggle svg { width: 21px; height: 21px; }

/* Version 3.1.6 active attendance stage. */
.flow-stage-service { color: #fff; border-color: #59626d; background: #2b3139; }
.flow-stage-service .flow-card-label { color: #fff; background: #232930; }
.flow-stage-service .flow-card-label small { color: #d6dbe1; }
.flow-stage-service .flow-card-body { color: #fff; background: #343b44; }
.flow-stage-service .flow-card-body .muted { color: #e2e6eb; }
.flow-stage-service .chip { color: #fff; background: #4b5561; }
.flow-stage-service .stage-message,
.flow-stage-service .stage-message-success,
.flow-stage-service .alert-info,
.flow-stage-service .alert-success { color: #fff; border-color: #65717f; background: #424b56; }
.flow-stage-service .button-success { color: #fff; border-color: #55d997; background: #22a866; }
.flow-stage-service .button-primary { color: #fff; border-color: #67a4ff; background: #2f7ef7; }
.flow-stage-service .button-primary:hover { background: #1e65cc; }
.workflow-steps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Version 3.1.7 help request and dashboard ordering. */
.photo-clear-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #a9434f;
    border-radius: 8px;
    color: #ffe4e8;
    background: #5b2630;
    font-size: 13px;
    text-decoration: none;
}
.photo-clear-button:hover { background: #73313d; }
.photo-clear-button svg { width: 18px; height: 18px; }

.help-location-preview { display: grid; gap: 8px; margin: 2px 0 16px; }
.help-location-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-location-preview-heading strong { font-size: 17px; }
.help-location-preview-heading span { padding: 4px 7px; border-radius: 6px; color: #dbeafe; background: #244a76; font-size: 10px; font-weight: 800; }
.help-location-map { position: relative; z-index: 0; width: 100%; min-height: 230px; border: 1px solid #52698e; border-radius: 8px; background: #dce8f7; }
.gps-capture-panel [data-geolocation-status] { padding: 10px 11px; border: 1px solid #ef808b; border-radius: 7px; color: #ffe3e6; background: #5d252d; font-size: 13px; font-weight: 700; }

.help-submit-actions { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
.help-submit-button { min-height: 58px; font-size: 18px; }
.help-back-button { width: min(52%, 210px); min-height: 42px; font-size: 13px; }

@media (min-width: 720px) {
    .help-location-map { min-height: 300px; }
}

/* Version 3.2.0 private attendance acceptance. */
.acceptance-page .app-main { display: grid; min-height: calc(100vh - 76px); align-items: center; }
.acceptance-shell { display: grid; width: min(100%, 520px); gap: 16px; margin: 0 auto; padding: 22px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.acceptance-shell h1 { margin: 0; font-size: 26px; }
.acceptance-shell > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.acceptance-icon { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto; border-radius: 50%; color: #b8f7d7; background: #176343; }
.acceptance-icon.is-muted { color: #d8e1ed; background: #3d4a5e; }
.acceptance-icon.is-success { color: #b8f7d7; background: #176343; }
.acceptance-icon svg { width: 31px; height: 31px; }
.acceptance-summary { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.acceptance-summary > div { display: grid; gap: 4px; padding: 12px 13px; border-bottom: 1px solid var(--line); background: var(--surface-strong); }
.acceptance-summary > div:last-child { border-bottom: 0; }
.acceptance-summary span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.acceptance-summary strong { overflow-wrap: anywhere; font-size: 15px; }
.acceptance-privacy { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px; border: 1px solid #3b8d68; border-radius: 8px; color: #dff9ec; background: #153d2f; text-align: left; }
.acceptance-privacy svg { width: 25px; height: 25px; color: #77e0ac; }
.acceptance-privacy p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.45; }
.acceptance-confirm-button { min-height: 58px; font-size: 17px; }
.acceptance-back-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 800; }

/* Version 3.2.1 persistent help request actions. */
.help-request-dialog {
    display: grid;
    max-height: 88vh;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0;
    overflow: hidden;
}
.help-request-scroll {
    min-height: 0;
    padding: 18px 18px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.help-submit-actions {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, .42fr);
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #10213a;
    box-shadow: 0 -10px 24px rgba(2, 10, 23, .38);
}
.help-submit-button { min-height: 56px; font-size: 18px; }
.help-back-button { width: 100%; min-height: 56px; font-size: 14px; }

/* Version 3.5.0 merchant operations. */
.commerce-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 2px 0 16px; }
.commerce-heading h1 { margin: 3px 0; font-size: 25px; }
.commerce-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.commerce-heading .icon-button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface-strong); }
.commerce-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.commerce-summary div { display: grid; min-width: 0; gap: 2px; padding: 12px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: center; }
.commerce-summary strong { font-size: 22px; }
.commerce-summary span { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.commerce-accordion > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; }
.commerce-accordion > summary > b { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #dbeafe; background: #29466d; font-size: 12px; }
.commerce-list { display: grid; gap: 10px; }
.commerce-item { display: grid; min-width: 0; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); }
.commerce-item.is-inactive { opacity: .64; }
.commerce-item-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.commerce-item-head > div:first-child { min-width: 0; }
.commerce-item-head small { display: block; overflow-wrap: anywhere; color: #8dbbff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.commerce-item h2 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 17px; }
.commerce-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.commerce-item-tools { display: flex; flex: 0 0 auto; gap: 5px; }
.commerce-item-tools form { margin: 0; }
.commerce-item-tools .icon-button { width: 36px; height: 36px; color: #dbeafe; border: 1px solid #4b6384; background: #243a5a; }
.commerce-item-tools .icon-button.is-danger { color: #ffdbe0; border-color: #8b4650; background: #5d2932; }
.commerce-item-tools svg { width: 17px; height: 17px; }
.commerce-address { display: flex; align-items: flex-start; gap: 7px; }
.commerce-address svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; color: #80b2ff; }
.commerce-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.commerce-chips span { padding: 5px 7px; border-radius: 6px; color: #dbeafe; background: #254467; font-size: 10px; font-weight: 700; }
.commerce-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.commerce-meta > span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.commerce-meta svg { width: 14px; height: 14px; }
.commerce-create-button { min-height: 54px; font-size: 16px; }
.status-toggle { position: relative; width: 46px; height: 28px; padding: 0; border: 1px solid #667085; border-radius: 14px; background: #465267; cursor: pointer; }
.status-toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.status-toggle.is-on { border-color: #42c885; background: #168451; }
.status-toggle.is-on span { transform: translateX(18px); }
.commerce-ad-item > img { display: block; width: 100%; max-height: 180px; border: 1px solid #52698e; border-radius: 7px; object-fit: contain; background: #000; }
.commerce-ad-item h2 { font-size: 15px; }

.commerce-modal { z-index: 2200; padding: 0; }
.commerce-form { display: grid; width: min(100%, 560px); max-height: min(94vh, 94dvh); grid-template-rows: auto minmax(0, 1fr) auto; padding: 0; overflow: hidden; border-radius: 8px 8px 0 0; }
.unit-commerce-form { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.commerce-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--line); background: #10213a; }
.commerce-modal-head small { color: #8dbbff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.commerce-modal-head h2 { margin: 2px 0 0; font-size: 20px; }
.commerce-modal-head .icon-button { border: 1px solid #4c6281; background: #253b5b; }
.commerce-form-scroll { min-height: 0; padding: 15px 16px; overflow-y: auto; overscroll-behavior: contain; }
.commerce-form-actions { display: grid; grid-template-columns: minmax(100px, .55fr) minmax(0, 1fr); gap: 9px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #10213a; box-shadow: 0 -8px 20px rgba(2, 10, 23, .3); }
.unit-stepper { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 7px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0b192d; }
.unit-stepper-four { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr); gap: 3px; padding-inline: 8px; }
.unit-stepper > i { display: block; height: 2px; background: #405577; }
.unit-commerce-form[data-unit-step="2"] .unit-stepper > i:nth-of-type(1),
.unit-commerce-form[data-unit-step="3"] .unit-stepper > i:nth-of-type(1),
.unit-commerce-form[data-unit-step="3"] .unit-stepper > i:nth-of-type(2),
.unit-commerce-form[data-unit-step="4"] .unit-stepper > i { background: #2fa36b; }
.unit-step-marker { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; color: #8296b4; }
.unit-stepper-four .unit-step-marker { grid-template-columns: 24px minmax(0, 1fr); gap: 3px; }
.unit-step-marker b { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #52698e; border-radius: 50%; font-size: 13px; }
.unit-stepper-four .unit-step-marker b { width: 24px; height: 24px; font-size: 11px; }
.unit-step-marker span { overflow-wrap: anywhere; font-size: 11px; font-weight: 800; }
.unit-stepper-four .unit-step-marker span { font-size: 8px; line-height: 1.15; }
.unit-step-marker.is-active { color: #fff; }
.unit-step-marker.is-active b { border-color: #4f9bff; background: #176bd8; }
.unit-step-marker.is-complete { color: #b9f3d5; }
.unit-step-marker.is-complete b { border-color: #2fa36b; background: #18764d; }
.unit-step { display: grid; gap: 13px; animation: unit-step-in .18s ease; }
.unit-step-heading small { color: #79adff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.unit-step-heading h3 { margin: 3px 0 0; font-size: 19px; }
.unit-step .category-picker { min-width: 0; }
.unit-step[data-unit-step="1"] .category-options,
.unit-step[data-unit-step="2"] .category-options { max-height: min(430px, 50dvh); }
.unit-step-error { padding: 10px 12px; border: 1px solid #e05a63; border-radius: 7px; color: #ffd6d9; background: #4a1c25; font-size: 12px; font-weight: 800; }
.unit-category-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #37765b; border-radius: 7px; background: #123b2b; }
.unit-category-summary svg { width: 20px; height: 20px; color: #77e5ad; }
.unit-category-summary span { display: grid; gap: 1px; }
.unit-category-summary small { color: #9fd9bc; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.unit-category-summary strong { font-size: 13px; }
.unit-address-picker { display: grid; min-width: 0; gap: 13px; }
.unit-address-picker .form-grid { margin: 0; }
.unit-locate-button { min-height: 50px; }
.unit-map-panel { display: grid; gap: 10px; padding-top: 2px; }
.unit-map-panel .address-map { min-height: 250px; border: 1px solid #52698e; border-radius: 7px; }
.unit-map-panel .address-map-status { margin: 0; color: #b8c5d8; font-size: 12px; line-height: 1.4; }
.unit-map-panel .address-summary { margin: 0; }
.unit-review { display: grid; gap: 0; border-top: 1px solid #405577; }
.unit-review article { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 10px; padding: 15px 2px; border-bottom: 1px solid #405577; }
.unit-review article > svg { width: 23px; height: 23px; margin: 2px auto 0; color: #79adff; }
.unit-review article > span { display: grid; min-width: 0; gap: 4px; }
.unit-review small { color: #91a8c7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.unit-review strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.unit-review em { overflow-wrap: anywhere; color: #b8c5d8; font-size: 12px; font-style: normal; line-height: 1.45; }
@keyframes unit-step-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.commerce-form .field > small { justify-self: end; color: var(--muted); font-size: 10px; }
.search-input { position: relative; display: block; }
.search-input svg { position: absolute; z-index: 1; top: 15px; left: 13px; width: 20px; height: 20px; color: var(--muted); }
.search-input input { padding-left: 42px; }
.category-picker-status { margin: 8px 0; color: #9fc3fa; font-size: 12px; font-weight: 800; }
.category-selected { display: grid; gap: 6px; margin: 0 0 9px; }
.category-selected > span { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 8px; padding: 8px 8px 8px 11px; border: 1px solid #4f9bff; border-radius: 7px; background: #1d4774; }
.category-selected > span > span { display: grid; min-width: 0; gap: 1px; }
.category-selected small { overflow-wrap: anywhere; color: #b8d8ff; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.category-selected strong { overflow-wrap: anywhere; font-size: 13px; }
.category-selected button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid #8cbcff; border-radius: 50%; color: #fff; background: #285d96; cursor: pointer; font-size: 20px; line-height: 1; }
.category-options { display: grid; max-height: min(310px, 40dvh); gap: 6px; padding: 7px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #0b192d; }
.category-picker.is-focused .category-search-field { position: sticky; z-index: 3; top: -15px; padding: 10px 0 9px; background: var(--surface); box-shadow: 0 10px 16px rgba(3, 12, 27, .28); }
.category-picker.is-focused .category-options { max-height: min(280px, 34dvh); }
.category-picker.is-focused::after { display: block; height: var(--category-search-space, 0); content: ''; }
.category-options > label { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid #354a68; border-radius: 7px; background: #152842; cursor: pointer; }
.category-options > label:has(input:checked) { border-color: #4f9bff; background: #1d4774; }
.category-options input { width: 20px; height: 20px; }
.category-options span { display: grid; min-width: 0; gap: 2px; }
.category-options small { overflow-wrap: anywhere; color: #91a8c7; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.category-options strong { overflow-wrap: anywhere; font-size: 13px; }
.category-empty { padding: 13px; color: var(--muted); text-align: center; }
.ad-image-preview { margin-top: 8px; }
.ad-image-preview img { display: block; width: 100%; max-height: 220px; border: 1px solid #52698e; border-radius: 7px; object-fit: contain; background: #000; }
.ad-image-status { margin-top: 8px; padding: 10px 12px; border: 1px solid #52698e; border-radius: 7px; font-size: 12px; font-weight: 800; line-height: 1.35; }
.ad-image-status.is-warning { border-color: #e5a727; background: #3c2b09; color: #ffe4a5; }
.ad-image-status.is-valid { border-color: #2fa36b; background: #123b2b; color: #b9f3d5; }

@media (min-width: 720px) {
    .commerce-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-form { border-radius: 8px; }
    .unit-stepper-four { gap: 5px; padding-inline: 14px; }
    .unit-stepper-four .unit-step-marker { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }
    .unit-stepper-four .unit-step-marker b { width: 28px; height: 28px; }
    .unit-stepper-four .unit-step-marker span { font-size: 10px; }
}

/* Version 3.9.0 commercial profiles and safer outbound navigation. */
.explore-search-section:first-of-type { padding-top: 8px; border-top: 0; }
.explore-search-section > h1 { margin: 0 0 14px; color: #fff; font-size: 21px; }
.commerce-unit-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.commerce-unit-identity > img { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #52698e; border-radius: 6px; object-fit: contain; background: #fff; }
.commerce-unit-identity > span { min-width: 0; }
.unit-logo-manager { display: grid; gap: 9px; padding: 12px; border: 1px solid #405577; border-radius: 7px; background: #10213a; }
.unit-logo-manager > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.unit-logo-manager > div > span { display: grid; gap: 2px; }
.unit-logo-manager small { color: #91a8c7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.unit-logo-manager strong { font-size: 14px; }
.unit-logo-preview { flex: 0 0 66px; width: 66px; height: 66px; overflow: hidden; border: 1px solid #52698e; border-radius: 7px; background: #fff; }
.unit-logo-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.unit-logo-preview.is-removed { opacity: .3; filter: grayscale(1); }
.unit-photo-actions { position: absolute; z-index: 2; top: 5px; right: 5px; display: flex; gap: 4px; }
.unit-photo-item .unit-photo-actions button { position: static; width: 30px; height: 30px; }
.unit-photo-item .unit-photo-actions button[data-set-cover] { color: #ffe188; background: rgba(53,39,8,.9); }
.unit-photo-item .unit-photo-actions button:disabled { opacity: .35; }
.unit-photo-item.is-cover { border: 2px solid #ffc432; }
.unit-photo-cover-label { position: absolute; z-index: 1; right: 5px; bottom: 5px; padding: 3px 6px; border-radius: 4px; color: #182238; background: #ffc432; font-size: 9px; text-transform: uppercase; }
.public-unit-logo { display: block; width: 72px; height: 72px; margin-bottom: 10px; border: 1px solid #52698e; border-radius: 7px; object-fit: contain; background: #fff; }
.public-unit-description { color: #cfdaea !important; font-size: 14px !important; line-height: 1.5; }
.public-ad-detail, .public-classified-detail { display: grid; gap: 16px; padding: 8px 16px 26px; }
.public-ad-detail header h1, .public-classified-detail h1 { margin: 4px 0 0; font-size: 24px; }
.public-ad-detail-image { display: block; width: 100%; margin: 0 auto; border: 1px solid #52698e; border-radius: 7px; object-fit: contain; background: #000; }
.public-ad-detail-standard { max-width: 560px; aspect-ratio: 4 / 3; }
.public-ad-detail-large { max-width: 560px; aspect-ratio: 1; }
.public-ad-detail-banner { max-width: 760px; aspect-ratio: 3 / 1; }
.public-ad-detail-actions, .public-classified-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.public-ad-detail-actions .button-full, .public-classified-actions .button-profile { grid-column: 1 / -1; }
.button-profile { min-height: 52px; color: #fff; border: 1px solid #4f9bff; background: #1d4774; font-size: 15px; }
.button-route { color: #fff; border: 1px solid #4f9bff; background: #176bd8; }
.public-classified-detail > header { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 11px; }
.public-classified-detail > header > img, .public-classified-logo-placeholder { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #52698e; border-radius: 7px; object-fit: contain; color: #8dbbff; background: #fff; }
.public-classified-logo-placeholder { background: #152842; }
.public-classified-detail > p { margin: 0; color: #d2dce9; font-size: 15px; line-height: 1.6; }
.public-classified-card-head { display: flex; align-items: center; gap: 8px; }
.public-classified-card-head img { width: 36px; height: 36px; border: 1px solid #52698e; border-radius: 5px; object-fit: contain; background: #fff; }
.public-classified-open { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; padding: 8px 11px; border: 1px solid #52698e; border-radius: 6px; color: #fff; background: #234a79; font-size: 12px; font-weight: 800; text-decoration: none; }
.public-classified-open svg { width: 16px; height: 16px; }
.external-exit-modal { z-index: 3200; align-items: center; }
.external-exit-dialog { display: grid; gap: 12px; text-align: center; }
.external-exit-icon { display: grid; width: 48px; height: 48px; margin: 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #176bd8; }
.external-exit-icon svg { width: 24px; height: 24px; }
.external-exit-dialog h2 { margin: 0; font-size: 18px; }
.external-exit-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.external-exit-actions { display: grid; gap: 8px; margin-top: 5px; }
.external-exit-actions .button { min-height: 52px; text-transform: uppercase; }

@media (min-width: 720px) {
    .public-ad-detail, .public-classified-detail { padding-inline: 28px; }
    .external-exit-actions { grid-template-columns: 1fr; }
}
