/* Rent-Me: shared operations, onboarding and authentication design. */
:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --ink: #152c43;
  --muted: #5e7185;
  --line: #dce4ed;
  --green: #1c496e;
  --nav: #031427;
  --gold: #f6bf45;
  --shadow: 0 4px 20px #03142705;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 'Segoe UI', Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #967016; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 21000; padding: 12px 18px; border-radius: 8px; background: #fff; color: #1c496e; font-weight: 700; box-shadow: 0 4px 20px #0002; }
.skip-link:focus { top: 12px; }
a { color: var(--green); text-underline-offset: 3px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid #cddbd5; border-radius: 8px; background: #fff; color: var(--ink); padding: 9px 14px; font-size: 12px; line-height: 1.4; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s; }
button:hover, .button:hover { background: #edf3f9; border-color: #9eb4c9; }
button.primary, .button.primary { background: var(--gold); border-color: #dfaa32; color: #102033; }
button.primary:hover, .button.primary:hover { background: #ffd16c; border-color: #c69629; }
button.danger { color: #a3373f; border-color: #e6c7ca; }
button.danger:hover { background: #fff2f2; }
button:disabled { opacity: .52; cursor: not-allowed; }
body > aside { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 248px; height: 100dvh; background: var(--nav); color: #bfd1c8; padding: 27px 16px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #50647c transparent; }
.brand { display: block; padding: 0 14px; color: #fff; font-size: 34px; line-height: 1.1; font-weight: 750; letter-spacing: -2px; text-decoration: none; }
.brand span { color: var(--gold); }
.brand small { margin-top: 8px; color: #afc4b9; font-size: 9px; letter-spacing: 2.2px; }
small { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; }
.company { margin: 28px 10px 20px; padding: 18px 3px; border-block: 1px solid #ffffff1f; color: #f3f8f5; font-size: 12px; font-weight: 600; }
.company small { color: #a9c1b5; font-weight: 400; margin-top: 4px; }
.nav-group-label { margin: 22px 14px 8px; color: #99b4a6; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-section:first-child .nav-group-label { margin-top: 0; }
/* Sidebar navigation of the legacy shell and the administrator console (both render into #nav). Scoped so it cannot reach other <nav> elements such as the owner hub tabs. */
body > aside nav button { display: flex; justify-content: flex-start; width: 100%; min-height: 41px; margin: 3px 0; padding: 10px 13px; border: 1px solid transparent; background: transparent; color: #c0d2c8; font-weight: 500; text-align: left; }
body > aside nav button:hover { border-color: transparent; background: #ffffff0c; color: white; }
body > aside nav button.active { background: #19334f; border-color: #38516c; color: #ffda83; box-shadow: inset 3px 0 var(--gold); }
body > aside nav button span { display: inline-block; flex: 0 0 23px; color: #b1c4d9; font-size: 16px; }
footer { margin-top: 22px; padding: 20px 12px 0; border-top: 1px solid #ffffff1f; color: #bfcec5; font-size: 11px; }
footer small { color: #a5baad; margin-top: 5px; }
.live { color: #a1dfaf; }
main { min-width: 0; margin-left: 248px; }
.environment-banner { margin-left: 248px; padding: 10px 34px; border-bottom: 1px solid #e9dfba; background: #fffae9; color: #6e5c24; font-size: 11px; line-height: 1.6; }
.registration-mode .environment-banner { margin-left: 0; }
main > header { min-height: 78px; padding: 17px 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
header > div { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
header button { min-height: 36px; padding: 8px 11px; font-size: 11px; }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid #d4e5db; border-radius: 50%; background: #eaf4ed; color: #2b684b; font-size: 11px; }
.mobile-menu-button, .sidebar-backdrop { display: none; }
#app { max-width: 1700px; padding: 34px; margin-inline: auto; }
h1, h2, h3 { color: inherit; line-height: 1.25; }
h1 { margin: 7px 0 10px; font-size: clamp(25px, 2.3vw, 32px); letter-spacing: -1px; font-weight: 700; }
h2 { margin: 0 0 19px; font-size: 17px; letter-spacing: -.3px; font-weight: 650; }
h3 { margin: 16px 0 10px; font-size: 14px; font-weight: 650; }
p { color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.eyebrow { color: var(--green); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.heading > div { min-width: 0; }
.heading p { margin: 0; max-width: 760px; font-size: 13px; }
.heading > button { flex-shrink: 0; }
.heading > .toolbar { margin-bottom: 0; justify-content: flex-end; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.card, .panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.card { border-top: 3px solid #d7b764; }
.card small { color: #5e7185; font-weight: 600; }
.card .value { margin: 14px 0 9px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.2; font-weight: 650; letter-spacing: -1px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.positive { color: var(--green); font-size: 11px; line-height: 1.6; }
.grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.panel { overflow: auto; margin-bottom: 22px; }
.grid > .panel { margin-bottom: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.badge { display: inline-block; max-width: 100%; padding: 5px 9px; border: 1px solid #dde5e5; border-radius: 6px; background: #f0f4f4; color: #526764; font-size: 10px; line-height: 1.4; font-weight: 700; white-space: nowrap; letter-spacing: .15px; }
.badge.good { background: #eaf6ee; border-color: #cfe7d7; color: #216c43; }
.badge.warn { background: #fff6e1; border-color: #efdfb7; color: #805c16; }
.badge.bad { background: #fbeef0; border-color: #efcfd5; color: #9d3443; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #e1e9e4; border-radius: 9px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 13px 14px; border-bottom: 1px solid var(--line); background: #f4f7fb; color: #5b7188; font-size: 10px; letter-spacing: .65px; line-height: 1.4; text-transform: uppercase; font-weight: 700; }
td { padding: 16px 14px; border-bottom: 1px solid #e8eeea; color: #344b63; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7faff; }
td button { min-height: 32px; padding: 6px 10px; margin: 2px; font-size: 11px; }
td small { max-width: 380px; white-space: normal; overflow-wrap: anywhere; margin-top: 3px; }
table small .badge { margin: 3px 0; }
.person { display: flex; gap: 10px; align-items: center; }
.initial { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; border-radius: 9px; background: #edf3ef; color: #467158; padding: 9px; font-weight: 700; }
.bar { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; }
.bar > b { font-variant-numeric: tabular-nums; }
.track { flex: 1; min-width: 20px; height: 7px; overflow: hidden; border-radius: 5px; background: #edf2ee; }
.fill { height: 100%; background: #3d6c95; border-radius: 5px; }
.note { margin: 17px 0; padding: 16px 18px; border: 1px solid #d4e5db; border-left: 3px solid #75ad8c; border-radius: 8px; background: #f0f7f2; color: #3a6550; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.note small { margin-top: 5px; }
.activity { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.activity:last-child { border-bottom: 0; }
.activity small { margin-top: 5px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.toolbar > select { width: auto; max-width: 100%; min-width: 180px; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #cbd9d1; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #96b7a5; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid #1c496e22; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #74857c; opacity: 1; }
input[readonly] { background: #f3f7f4; color: #52685b; }
input[type=checkbox], input[type=radio] { display: inline-block; width: 17px; height: 17px; min-height: 0; margin: 0 8px 0 0; vertical-align: middle; accent-color: #1c496e; }
input[type=file] { padding: 8px; font-size: 12px; }
input::file-selector-button { padding: 6px 9px; margin-right: 10px; border: 0; border-radius: 4px; background: #eaf2ed; color: #315e43; cursor: pointer; }
textarea { min-height: 100px; resize: vertical; }
label { display: block; margin: 16px 0 7px; color: #425c76; font-size: 12px; line-height: 1.7; font-weight: 600; }
label input, label select, label textarea { margin-top: 6px; font-weight: 400; }
form .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
dialog { width: 660px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); overflow: auto; padding: 29px; border: 1px solid #d6e2da; border-radius: 15px; color: var(--ink); box-shadow: 0 24px 100px #102b2840; }
dialog::backdrop { background: #102b286e; backdrop-filter: blur(3px); }
dialog h2 { padding-right: 20px; font-size: 21px; }
.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
#toast { display: none; position: fixed; z-index: 100; bottom: 24px; right: 24px; max-width: min(480px, calc(100vw - 32px)); padding: 16px 21px; background: #102b46; border: 1px solid #42617e; border-radius: 10px; color: white; line-height: 1.6; box-shadow: 0 8px 35px #102b282b; overflow-wrap: anywhere; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.step { padding: 8px 11px; border: 1px solid #dce5df; border-radius: 6px; background: #edf2ee; color: #52695b; font-size: 11px; }
.step.done { background: #e2f2e6; border-color: #c2ddcb; color: #24653e; }
.empty { padding: 42px 24px; text-align: center; color: var(--muted); white-space: normal; line-height: 1.8; }
.money { font-variant-numeric: tabular-nums; }
.chart { height: 160px; display: flex; align-items: end; gap: 12px; padding-top: 20px; }
.chart div { position: relative; flex: 1; min-height: 25px; border-radius: 5px 5px 0 0; background: #bddcc8; }
.chart div:last-child { background: var(--green); }
.chart small { position: absolute; bottom: -24px; left: 0; width: 100%; text-align: center; }
.chart-panel { padding-bottom: 42px; }
.hero { background: linear-gradient(120deg, #031427, #173a5c); border-color: #294762; color: #fff; padding: 30px; }
.hero h1 { max-width: 430px; font-size: 30px; line-height: 1.25; }
.hero p { color: #c1d1e2; }
.hero button.primary { background: var(--gold); color: #102033; border-color: var(--gold); }
.hero button.primary:hover { background: #ffd16c; }
.hero small { color: #c1d1e2; }
.hero .toolbar { margin-top: 24px; }
.attention-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.attention-row:last-child { border-bottom: 0; padding-bottom: 0; }
.attention-row > div { display: flex; align-items: center; gap: 15px; min-width: 0; }
.attention-row b { min-width: 30px; font-size: 27px; font-variant-numeric: tabular-nums; color: var(--green); }
.attention-row span { color: var(--muted); font-size: 12px; }
.attention-row button { flex-shrink: 0; }
.timeline { margin: 20px 12px; padding-left: 24px; border-left: 2px solid #dae7de; }
.timeline .activity { position: relative; }
.timeline .activity::before { content: ''; position: absolute; top: 20px; left: -30px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #418862; box-shadow: 0 0 0 1px #a8c5b1; }
.driver-filters { display: flex; gap: 12px; margin-bottom: 24px; }
.driver-filters input { flex: 2; }
.driver-filters select { flex: 1; }
.driver-filters button { white-space: nowrap; }
.driver-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 25px; border: 1px solid #d3e4d9; border-radius: 12px; background: #eaf4ed; }
.driver-banner p { margin-bottom: 0; }
.driver-banner b { display: block; margin-top: 8px; font-size: 21px; }
.driver-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin: 25px 0 30px; }
.driver-data b { display: block; margin-top: 7px; font-size: 14px; overflow-wrap: anywhere; }
.driver-data + small { padding-top: 15px; border-top: 1px solid var(--line); }
.auth-dialog { width: 470px; max-width: calc(100vw - 32px); padding: 40px; background: #fff; }
.auth-shell { position: relative; color: var(--ink); }
.auth-shell h2 { margin: 16px 0 12px; padding-right: 15px; font-size: 25px; font-weight: 650; letter-spacing: -.6px; }
.auth-shell input { min-height: 48px; padding: 12px 14px; margin-bottom: 13px; font-size: 16px; }
.auth-shell .auth-continue { width: 100%; min-height: 48px; margin-top: 7px; background: var(--gold); border-color: #dfaa32; color: #102033; font-size: 14px; }
.auth-shell .auth-continue:hover { background: #ffd16c; }
.auth-provider, .auth-shell .auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin: 9px 0; background: #f6f8f6; border: 1px solid var(--line); font-size: 13px; }
.auth-provider:hover { background: #edf3ef; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0 17px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-shell .auth-close { position: absolute; right: -23px; top: -27px; width: 34px; min-height: 34px; padding: 3px; background: transparent; border: 0; color: #526b5d; font-size: 25px; }
.auth-shell .auth-close:hover { background: #eef4ef; }
.auth-shell .auth-text { min-height: 38px; padding: 8px 0; background: transparent; border: 0; color: var(--green); font-size: 12px; text-decoration: underline; }
.auth-disclaimer { margin: 23px 0 8px; color: #62766a; font-size: 12px; line-height: 1.75; }
.auth-error { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #efd0d3; border-radius: 6px; background: #fff4f4; color: #a1303f; font-size: 12px; line-height: 1.6; }
.auth-error:empty { display: none; }
.google-mark { color: #3573bf; font-size: 23px; font-weight: 700; }
.apple-mark { color: #20332f; font-size: 18px; }
.auth-demo-code { padding: 15px; margin: 17px 0; border: 1px dashed #b8d3c1; border-radius: 8px; background: #f1f7f3; font-size: 14px; }
.auth-copy { font-size: 14px; }
.registration-mode { background: #f5f8f5; }
.registration-mode > aside, .registration-mode main > header, .registration-mode .sidebar-backdrop { display: none; }
.registration-mode main { margin: 0; }
.registration-mode #app { max-width: 1360px; padding: 0 5vw; }
.registration-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; border-bottom: 1px solid #dfe8e1; }
.registration-top .brand { color: #1d4530; padding: 0; font-size: 33px; }
.registration-top .brand span { color: #3e9460; }
.registration-top > div { display: flex; gap: 9px; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; align-items: start; padding: 48px 0 65px; }
.registration-intro { padding-top: 33px; }
.registration-intro h1 { margin: 22px 0; font-size: clamp(36px, 4.5vw, 62px); line-height: 1.12; letter-spacing: -2.5px; }
.registration-intro p { max-width: 380px; font-size: 16px; }
.registration-path { margin: 34px 0; }
.registration-path > div { display: flex; align-items: center; gap: 15px; margin: 18px 0; color: #697c6f; font-size: 13px; }
.registration-path span { display: inline-grid; place-items: center; width: 33px; height: 33px; border: 1px solid #d8e2da; border-radius: 50%; background: #eaf0eb; font-size: 12px; }
.registration-path .current { color: #286c43; font-weight: 600; }
.registration-path .current span { border-color: #bcd5c4; background: #dbefdf; }
.registration-card { min-width: 0; padding: 34px; border: 1px solid #dbe6dd; border-radius: 16px; background: #fff; box-shadow: 0 16px 45px #21472e08; }
.registration-card h2 { margin-bottom: 12px; font-size: 25px; line-height: 1.3; letter-spacing: -.6px; }
.registration-card form > input { margin: 19px 0; min-height: 48px; font-size: 16px; }
.registration-card form > .primary { width: 100%; min-height: 47px; margin: 22px 0 12px; font-size: 13px; }
.registration-card .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
.registration-verify { min-height: 29px; margin-top: 6px; }
.registration-verify button { min-height: 32px; font-size: 11px; padding: 5px 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.public-json { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f5f8f6; color: #3a5344; font: 12px/1.7 Consolas, monospace; }
details { margin-top: 20px; }
summary { cursor: pointer; padding-block: 5px; color: var(--green); font-size: 12px; font-weight: 600; }
#ticket-vehicle { min-width: 180px; max-width: 450px; }
.docuseal-dialog { width: 760px; max-width: calc(100vw - 32px); padding: 30px; }
.docuseal-dialog .auth-shell h2 { font-size: 24px; }
.docuseal-dialog .auth-shell .auth-close { top: -20px; right: -20px; }
.docuseal-dialog .toolbar a { font-size: 12px; }
#central-status { font-family: inherit !important; line-height: 1.6; }
#central-gate { color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif !important; }
#central-gate > section, #central-gate > div { border-color: var(--line) !important; border-radius: 15px !important; box-shadow: 0 18px 70px #17382b12; }
/* The same platform identity is used in public, administrator and owner views. */
.platform-brand { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0 9px; color: #fff; font-size: 25px; line-height: 1.15; font-weight: 750; letter-spacing: -.8px; text-decoration: none; }
.platform-brand > span:last-child { min-width: 0; }
.platform-brand-mark { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: #031427; font-size: 28px; font-weight: 800; }
.platform-brand small { margin-top: 7px; color: #aabdd0; font-size: 8px; font-weight: 600; letter-spacing: 1.25px; }
body > aside :focus-visible, .owner-console-sidebar :focus-visible { outline-color: var(--gold); }
.company small, footer small { color: #aabdd0; }
.company, footer, body > aside { color: #c4d1df; }
.brand small, .nav-group-label { color: #aabdd0; }
body > aside nav button { color: #c4d1df; }
.live { color: #f6cf74; }
.avatar { background: #edf3fa; border-color: #d3dfeb; color: #315c80; }
.note { background: #eef4fa; border-color: #d3e0ed; border-left-color: #688eaf; color: #385d7d; }
.initial { background: #edf3fa; color: #3b6487; }
.track { background: #edf2f7; }
input[readonly] { background: #f3f6fa; color: #526a80; }
input::placeholder, textarea::placeholder { color: #748398; }
input::file-selector-button { background: #edf3fa; color: #315c80; }
.driver-banner { border-color: #d3dfeb; background: #eaf2fa; }
.auth-demo-code { border-color: #bfd2e4; background: #f1f6fb; }
.auth-shell .auth-close { color: #526a80; }
.auth-shell .auth-close:hover, .auth-provider:hover { background: #edf3fa; }
.auth-disclaimer { color: var(--muted); }
.hero .eyebrow { color: #f6cf74; }
.registration-mode { background: var(--bg); }
.registration-top .brand { color: #173a5c; }
.registration-top .brand span { color: #9a6e0d; }
.registration-path .current { color: #244f73; }
.registration-path .current span { border-color: #c7a64f; background: #fff3ce; color: #644c0a; }
.registration-card { border-color: var(--line); box-shadow: 0 16px 45px #03142708; }
.public-json { border-color: var(--line); background: #f4f7fb; color: #38536f; }
/* Keep native scrolling; omit the optional scrollbar end buttons. */
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@media (max-width: 1200px) {
  body > aside { width: 224px; padding-inline: 12px; }
  main { margin-left: 224px; }
  .environment-banner { margin-left: 224px; }
  main > header { padding: 16px 24px; flex-wrap: wrap; }
  #app { padding: 28px 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .heading { align-items: flex-start; flex-wrap: wrap; gap: 17px; }
  .heading > .toolbar { justify-content: flex-start; }
  .registration-layout { gap: 35px; }
  .registration-card { padding: 25px; }
}
@media (max-width: 760px) {
  .environment-banner { margin-left: 0; padding: 10px 16px; }
  body > aside { z-index: 60; width: min(290px, 85vw); transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; padding: 25px 17px; }
  body.nav-open { overflow: hidden; }
  body.nav-open > aside { transform: translateX(0); visibility: visible; }
  .sidebar-backdrop { position: fixed; z-index: 55; inset: 0; width: 100%; height: 100dvh; padding: 0; border: 0; border-radius: 0; background: #102c2370; }
  body.nav-open .sidebar-backdrop { display: block; }
  .sidebar-backdrop:hover { background: #102c2370; }
  .mobile-menu-button { display: inline-flex; flex-shrink: 0; min-width: 40px; }
  main { margin-left: 0; }
  main > header { padding: 12px 16px; min-height: 70px; gap: 10px; }
  header > div { gap: 6px; }
  #breadcrumb { flex: 1; font-size: 11px; }
  #app { padding: 25px 16px; }
  .card, .panel { padding: 20px; }
  .hero { padding: 25px; }
  .cards { gap: 12px; }
  .card .value { font-size: 29px; }
  .registration-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 26px; }
  .registration-intro { padding-top: 0; }
  .registration-intro h1 { max-width: 540px; margin: 14px 0; font-size: 40px; letter-spacing: -1.6px; }
  .registration-intro h1 br { display: none; }
  .registration-intro p { max-width: 540px; font-size: 14px; }
  .registration-path { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 20px 0; }
  .registration-path > div { gap: 7px; margin: 0; font-size: 10px; }
  .registration-path span { width: 25px; height: 25px; font-size: 10px; }
  .registration-top { padding: 20px 0; }
  .registration-top button { padding: 8px 10px; font-size: 11px; }
  .driver-filters { flex-wrap: wrap; }
  .driver-filters input { flex-basis: 100%; }
  .driver-filters select { min-width: 160px; }
  .driver-banner { flex-wrap: wrap; padding: 21px; gap: 17px; }
  .driver-banner > div:first-child { width: 100%; }
  .panel-title { flex-wrap: wrap; gap: 12px; }
  .table-scroll { border-radius: 6px; }
}
@media (max-width: 480px) {
  main > header > div { width: 100%; justify-content: flex-start; }
  header .avatar { margin-left: auto; }
  header button { font-size: 10px; min-height: 36px; padding: 7px 9px; }
  h1 { font-size: 25px; }
  .heading { margin-bottom: 23px; }
  .heading > .toolbar { width: 100%; }
  .cards { gap: 10px; }
  .card { padding: 15px; }
  .card .value { font-size: 25px; }
  .card small, .positive { font-size: 10px; }
  .panel { padding: 17px; border-radius: 10px; }
  .hero h1 { font-size: 27px; }
  .bar { gap: 8px; font-size: 11px; }
  form .fields, .registration-card .fields, .driver-data { grid-template-columns: minmax(0, 1fr); }
  .driver-data { gap: 19px; }
  .driver-filters { flex-direction: column; }
  .driver-filters > * { width: 100%; }
  dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); padding: 23px 19px; border-radius: 12px; }
  dialog input, dialog select, dialog textarea, .registration-card input, .registration-card select { font-size: 16px; }
  .auth-dialog { padding: 35px 25px 26px; }
  .auth-shell .auth-close { right: -14px; top: -25px; }
  .auth-shell h2 { font-size: 23px; }
  .docuseal-dialog .auth-shell .auth-close { right: -12px; }
  .registration-mode #app { padding-inline: 18px; }
  .registration-top { align-items: flex-start; gap: 12px; }
  .registration-top .brand { font-size: 29px; }
  .registration-top > div { flex-direction: column; gap: 5px; }
  .registration-top button { min-height: 34px; padding: 7px 9px; font-size: 10px; }
  .registration-intro h1 { font-size: 35px; }
  .registration-card { padding: 24px 21px; }
  .registration-card h2 { font-size: 23px; }
  .registration-path { gap: 9px 12px; }
  .actions > button { flex: 1; }
  #toast { bottom: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .environment-banner { display: none; }
  body { background: #fff; }
  body > aside, main > header, .sidebar-backdrop, #toast, .heading > button, .heading > .toolbar { display: none !important; }
  main { margin: 0; }
  #app { max-width: none; padding: 0; }
  .card, .panel { box-shadow: none; break-inside: avoid; }
  .table-scroll, .panel { overflow: visible; }
}

/* Updates indicator and related panels (owner instruction, November 9, 2026). */
.rm-alert{display:inline-grid;place-items:center;min-width:1.35em;height:1.35em;margin-inline-start:.4em;padding:0 .3em;border-radius:999px;background:#dc2626;color:#fff;font-size:.78em;font-weight:800;line-height:1;vertical-align:middle;box-shadow:0 0 0 2px rgba(220,38,38,.18)}
.rm-alert-count{font-size:.72em}
.rm-updates-panel{border-inline-start:4px solid #dc2626}
.rm-updates{list-style:none;margin:.5rem 0 1rem;padding:0;display:grid;gap:.5rem}
.rm-updates li{display:grid;gap:.15rem;padding:.55rem .7rem;border-radius:8px;background:rgba(220,38,38,.06)}
.rm-updates li span{overflow-wrap:anywhere}
.rm-updates li small{opacity:.75}
.rm-name-choice{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.35rem}
.rm-name-choice small{flex-basis:100%}
@media (prefers-color-scheme:dark){.rm-updates li{background:rgba(248,113,113,.12)}}
/* Central mode: the administrator workspace shell sits behind every public, driver and owner screen; it stays hidden (and out of the
   keyboard order) until the administrator workspace itself is shown. The class is set by the served page and removed by centralUse(). */
html.shell-hidden body>aside,html.shell-hidden body>main,html.shell-hidden .skip-link{visibility:hidden}
/* First paint (owner report, November 15, 2026: "se ve feo cuando entro"). The server writes this class on <html> itself
   (service/preview.cjs), so it holds from the first frame and where no script runs. The shell then also takes no room: its header
   no longer pushes the page down, its side no longer keeps 248 px, and the notice and the website's readable copy start at the left
   (ui.css, "First paint"). */
html.shell-hidden body>aside{display:none}
html.shell-hidden body>main>header{display:none}
html.shell-hidden body>main{margin-left:0}
html.shell-hidden #app{max-width:none;padding:0}
html.shell-hidden .environment-banner{margin-left:0;text-align:center}
