/* Azulejo Operacional Atlântico — hierarquia compacta, marca oficial e operação responsiva. */
:root {
  color-scheme: light;
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef1f6;
  --ink: #17233a;
  --muted: #667086;
  --subtle: #9199aa;
  --border: #e1e5ee;
  --border-strong: #cad1df;
  --accent: #304c7b;
  --accent-strong: #223c69;
  --accent-soft: #e8eef7;
  --brand-red: #cf3158;
  --brand-red-soft: #f9e6eb;
  --brand-gold: #efc262;
  --brand-gold-soft: #fff4d9;
  --ok: #247a4b;
  --ok-soft: #e4f4eb;
  --warning: #9c6512;
  --warning-soft: #fff2d8;
  --danger: #b13d3d;
  --danger-soft: #fde9e7;
  --info: #356e96;
  --info-soft: #e7f1f7;
  --shadow-sm: 0 1px 2px rgba(17, 35, 30, .04), 0 4px 14px rgba(17, 35, 30, .04);
  --shadow-lg: 0 24px 60px rgba(17, 35, 30, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101521;
  --surface: #171d2c;
  --surface-2: #1c2334;
  --surface-3: #252e42;
  --ink: #f0f3f8;
  --muted: #a8b1c3;
  --subtle: #7c879b;
  --border: #2a344a;
  --border-strong: #3a4864;
  --accent: #7ea2d4;
  --accent-strong: #a7c4ea;
  --accent-soft: #263654;
  --brand-red: #ec6a88;
  --brand-red-soft: #482638;
  --brand-gold: #f2c96f;
  --brand-gold-soft: #433719;
  --ok: #65bf86;
  --ok-soft: #173b27;
  --warning: #e1b05c;
  --warning-soft: #3d3017;
  --danger: #e67e7e;
  --danger-soft: #472323;
  --info: #82b9db;
  --info-soft: #193446;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 14px rgba(0, 0, 0, .14);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 36%, transparent); outline-offset: 2px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { letter-spacing: -.045em; }
h2, h3 { letter-spacing: -.025em; }
a { color: var(--accent); }
svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; z-index: 300; left: 16px; top: -80px; padding: 12px 18px; border-radius: 0 0 10px 10px; background: var(--ink); color: var(--surface); }
.skip-link:focus { top: 0; }

.boot-screen { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; gap: 18px; text-align: center; background: var(--bg); color: var(--muted); }
.boot-brand { display: grid; place-items: center; width: 180px; height: 118px; margin: auto; padding: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); animation: pulse 1.8s infinite; }
.boot-brand img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.brand-mark span { font-weight: 800; font-size: 14px; letter-spacing: -.06em; }
@keyframes pulse { 50% { transform: scale(1.025); box-shadow: 0 0 0 12px var(--accent-soft); } }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-lockup--official { gap: 10px; }
.official-logo-frame { display: grid; place-items: center; width: 138px; height: 66px; padding: 4px; overflow: hidden; border-radius: 11px; background: #fff; box-shadow: 0 6px 22px rgba(15, 25, 48, .14); }
.official-logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.brand-module-title { padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-lockup--light .official-logo-frame { width: 176px; height: 92px; border-radius: 16px; }
.brand-lockup--light .brand-module-title { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.08); }
.brand-lockup--header .official-logo-frame { width: 106px; height: 54px; border-radius: 9px; box-shadow: none; border: 1px solid var(--border); }
.brand-lockup > div:last-child { display: grid; text-align: left; }
.brand-lockup strong { font-size: 14px; letter-spacing: -.02em; }
.brand-lockup small { margin-top: -1px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.brand-lockup--light strong, .brand-lockup--light small { color: #fff; }
.brand-lockup--button { border: 0; padding: 0; background: transparent; cursor: pointer; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.06fr) minmax(420px, .94fr); background: var(--surface); }
.auth-visual { position: relative; overflow: hidden; display: grid; min-height: 100vh; padding: clamp(32px, 5vw, 76px); color: white; background:
  radial-gradient(circle at 78% 16%, rgba(239, 194, 98, .3), transparent 28%),
  radial-gradient(circle at 18% 82%, rgba(207, 49, 88, .28), transparent 38%),
  linear-gradient(145deg, #162a4b 0%, #304c7b 58%, #253e6d 100%); }
.auth-visual::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom right, black, transparent 70%); }
.auth-visual::after { content: ""; position: absolute; width: 36vw; height: 36vw; max-width: 560px; max-height: 560px; right: -14%; bottom: -20%; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); }
.auth-visual__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; max-width: 650px; }
.auth-visual .brand-lockup { position: absolute; top: 0; left: 0; }
.auth-visual .eyebrow { margin-top: 80px; }
.auth-visual h1 { max-width: 620px; margin-bottom: 24px; font-size: clamp(40px, 4.7vw, 68px); line-height: 1.02; }
.auth-visual h1 + p { max-width: 570px; color: rgba(255,255,255,.74); font-size: 18px; line-height: 1.7; }
.auth-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.auth-feature-grid > div { display: grid; gap: 7px; padding: 19px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); background: rgba(255,255,255,.075); backdrop-filter: blur(10px); }
.auth-feature-grid strong { font-size: 13px; }
.auth-feature-grid small { color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.5; }
.feature-icon { font-family: var(--mono); color: var(--brand-gold); font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: clamp(28px, 6vw, 96px); background: var(--surface); }
.auth-card { width: min(100%, 430px); }
.auth-card__mobile-brand { display: none; }
.auth-card h2 { margin-bottom: 13px; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.auth-card > .muted { margin-bottom: 32px; line-height: 1.65; }
.eyebrow { margin-bottom: 16px; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.security-note { display: flex; gap: 13px; margin: 24px 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.security-note__icon { color: var(--accent); }
.security-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.security-note strong { color: var(--ink); }
.microcopy { margin-top: 17px; color: var(--subtle); font-size: 11px; text-align: center; }
.brand-scene { position: relative; min-height: 300px; margin-top: 20px; }
.auth-mascot { pointer-events: none; user-select: none; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(7, 15, 35, .28)); }
.auth-mascot--setup { position: absolute; z-index: -1; right: -85px; bottom: -115px; width: 310px; height: 390px; opacity: .18; }
.auth-mascot--login { position: absolute; z-index: 2; right: -60px; bottom: -125px; width: 330px; height: 420px; }
.brand-scene .route-preview { width: 78%; opacity: .82; }
.route-preview { position: relative; height: 240px; margin-top: 36px; }
.route-preview__line { position: absolute; inset: 20px 40px 20px 20px; border: 2px dashed rgba(255,255,255,.24); border-radius: 55% 42% 52% 36%; transform: rotate(-7deg); }
.route-dot { position: absolute; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 7px rgba(239,194,98,.18); }
.route-dot--a { left: 7%; top: 42%; }.route-dot--b { left: 48%; top: 20%; }.route-dot--c { right: 10%; bottom: 28%; }
.route-preview__card { position: absolute; right: 8%; top: 2%; display: grid; gap: 3px; min-width: 170px; padding: 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; background: rgba(9,49,43,.72); box-shadow: 0 16px 40px rgba(0,0,0,.18); transform: rotate(2deg); }
.route-preview__card small { color: var(--brand-gold); font-family: var(--mono); }.route-preview__card span { color: rgba(255,255,255,.65); font-size: 12px; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span:first-child, .field-label { color: var(--ink); font-size: 12px; font-weight: 700; }
.field small { color: var(--subtle); line-height: 1.45; }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); color: var(--ink); transition: border .2s, box-shadow .2s; }
.readonly-field { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 11px; background: var(--surface-3); color: var(--muted); font-weight: 700; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:disabled, .field select:disabled { opacity: .62; cursor: not-allowed; background: var(--surface-3); }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field .icon-button { position: absolute; right: 4px; top: 4px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.input-prefix input { padding-left: 40px; }
.form-error { margin: -4px 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 600; line-height: 1.55; }
.field-error { color: var(--danger); font-size: 11px; font-weight: 700; }
.field-success { color: var(--ok); font-size: 11px; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .15s, background .15s, border .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--primary { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: white; box-shadow: 0 5px 15px color-mix(in srgb, var(--accent) 22%, transparent); }
.button--primary::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--brand-gold), var(--brand-red)); opacity: .9; }
.button--primary:hover { background: var(--accent-strong); }
.button--secondary { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.button--secondary:hover { border-color: var(--accent); color: var(--accent); }
.button--danger { background: var(--danger); color: white; }
.button--ghost { background: transparent; color: var(--accent); }
.button--wide { width: 100%; justify-content: space-between; padding-inline: 20px; }
.button--compact { min-height: 40px; padding-inline: 14px; border-radius: 10px; }
.button-plus { font-size: 18px; line-height: 1; }
.text-button { display: block; margin: 14px auto 0; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; }
.auth-recovery-link { min-height: 44px; margin-top: 10px; color: var(--accent); font-weight: 700; text-decoration: none; }.auth-recovery-link:hover { color: var(--brand-gold); text-decoration: underline; }
.recovery-key { margin: 18px 0; padding: 18px 14px; border: 1px solid rgba(63,185,255,.34); border-radius: 14px; background: rgba(63,185,255,.08); color: var(--ink); font-family: var(--mono); font-size: 15px; font-weight: 700; line-height: 1.8; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; user-select: all; }
.recovery-confirm { align-items: flex-start; padding: 12px 0; color: var(--muted); line-height: 1.55; }.recovery-confirm input { margin-top: 3px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--surface-3); }
.icon-button--soft { background: var(--surface-2); border: 1px solid var(--border); }

.app-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 100; top: 0; height: 74px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent) 0 72%, var(--brand-gold) 72% 86%, var(--brand-red) 86%); opacity: .9; }
.topbar__inner { display: flex; align-items: center; gap: 28px; width: min(100% - 40px, 1480px); height: 100%; margin: auto; }
.desktop-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; margin-left: 8px; }
.nav-button { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.nav-button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; }
.nav-button:hover { color: var(--ink); }.nav-button.active { color: var(--accent); }.nav-button.active::after { background: var(--accent); }
.nav-button svg { width: 17px; height: 17px; }
.topbar__actions { position: relative; display: flex; align-items: center; gap: 9px; margin-left: auto; }
.profile-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 7px 4px 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.profile-button:hover { border-color: var(--border); background: var(--surface-2); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.profile-button__copy { display: grid; text-align: left; }
.profile-button__copy strong { max-width: 110px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-button__copy small { color: var(--muted); font-size: 9px; }
.profile-menu { position: absolute; z-index: 150; right: 0; top: calc(100% + 12px); display: grid; width: 190px; padding: 7px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-lg); }
.profile-menu button { min-height: 40px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--muted); font-size: 12px; cursor: pointer; }
.profile-menu button:hover { color: var(--ink); background: var(--surface-3); }
.mobile-nav { display: none; }

.main-content { width: min(100% - 40px, 1420px); margin: 0 auto; padding: 34px 0 84px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-header h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.page-header p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-red), var(--brand-gold)); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.card__header h2, .card__header h3 { margin: 0; font-size: 15px; }
.card__body { padding: 22px; }
.card--flat { box-shadow: none; }
.card--accent { overflow: hidden; background: linear-gradient(140deg, var(--accent-strong), var(--accent)); color: white; border-color: transparent; }
.card--accent .muted { color: rgba(255,255,255,.7); }
.metric-card { position: relative; overflow: hidden; min-height: 142px; padding: 20px; }
.metric-card::after { content: ""; position: absolute; right: -18px; bottom: -31px; width: 94px; height: 94px; border-radius: 50%; border: 18px solid var(--surface-2); }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.metric-card__value { position: relative; z-index: 1; margin: 17px 0 6px; font-family: var(--mono); font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.metric-card__meta { position: relative; z-index: 1; color: var(--muted); font-size: 10px; }
.metric-card__meta strong { color: var(--ok); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 18px; margin-top: 18px; }
.operation-list { display: grid; }
.operation-row { display: grid; grid-template-columns: 88px minmax(180px, 1fr) 1fr 120px 120px 36px; align-items: center; gap: 16px; min-height: 72px; padding: 11px 20px; border-bottom: 1px solid var(--border); }
.operation-row:last-child { border-bottom: 0; }
.operation-row:hover { background: var(--surface-2); }
.operation-row__number { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.operation-row__client strong, .operation-row__route strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.operation-row small { color: var(--muted); font-size: 10px; }
.progress-bar { height: 5px; overflow: hidden; margin-top: 7px; border-radius: 5px; background: var(--surface-3); }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.attention-list { display: grid; gap: 11px; }
.attention-item { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.attention-item__icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--warning); background: var(--warning-soft); }
.attention-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.attention-item strong { color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--ok-soft); color: var(--ok); }.status--warning { background: var(--warning-soft); color: var(--warning); }.status--danger { background: var(--danger-soft); color: var(--danger); }.status--info { background: var(--info-soft); color: var(--info); }.status--neutral { background: var(--surface-3); color: var(--muted); }
.rule-badge { display: inline-flex; padding: 3px 6px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-family: var(--mono); font-size: 9px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.search-field { position: relative; flex: 1; max-width: 420px; }
.search-field svg { position: absolute; left: 14px; top: 14px; color: var(--subtle); }
.search-field input { width: 100%; min-height: 46px; padding: 0 14px 0 43px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--ink); }
.filter-select { min-height: 46px; padding: 0 36px 0 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: var(--surface-2); }
.table-primary { display: grid; gap: 2px; min-width: 140px; }.table-primary strong { font-size: 11px; }.table-primary small { color: var(--muted); font-size: 9px; }
.table-actions { display: flex; justify-content: flex-end; gap: 3px; }.table-actions .icon-button { width: 34px; height: 34px; }
.empty-state { display: grid; place-items: center; min-height: 220px; padding: 34px; text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 15px; border-radius: 17px; color: var(--accent); background: var(--accent-soft); }
.empty-state h3 { margin-bottom: 7px; }.empty-state p { max-width: 430px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px 16px; }
.col-12 { grid-column: span 12; }.col-8 { grid-column: span 8; }.col-7 { grid-column: span 7; }.col-6 { grid-column: span 6; }.col-5 { grid-column: span 5; }.col-4 { grid-column: span 4; }.col-3 { grid-column: span 3; }.col-2 { grid-column: span 2; }.col-1 { grid-column: span 1; }
.field--uf { min-width: 96px; }
.field--uf input { min-width: 96px; text-align: center; font-weight: 750; letter-spacing: .08em; }
.form-section { margin-bottom: 30px; }.form-section:last-child { margin-bottom: 0; }
.form-section__title { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; padding: 0 0 13px; border-bottom: 1px solid var(--border); }
.form-section__number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 10px; }
.form-section__title h3 { margin: 0; font-size: 13px; }
.inline-check { display: flex; align-items: center; gap: 9px; min-height: 48px; color: var(--muted); font-size: 11px; }
.inline-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); }
.segmented button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.capacity-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 5px; }
.capacity-day { display: grid; gap: 9px; min-width: 150px; }
.capacity-day__title { display: grid; gap: 2px; padding: 0 4px; }.capacity-day__title strong { font-size: 11px; }.capacity-day__title small { color: var(--muted); font-size: 9px; }
.capacity-slot { display: grid; gap: 10px; min-height: 145px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; }
.capacity-slot:hover { border-color: var(--accent); transform: translateY(-1px); }.capacity-slot--full { opacity: .58; cursor: not-allowed; }.capacity-slot--selected { border: 2px solid var(--accent); background: var(--accent-soft); }
.capacity-slot__top { display: flex; align-items: center; justify-content: space-between; }.capacity-slot__top strong { font-size: 11px; }
.capacity-ring { --pct: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--ring-color, var(--ok)) calc(var(--pct) * 1%), var(--surface-3) 0); }
.capacity-ring::before { content: attr(data-value); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 8px; }
.capacity-lines { display: grid; gap: 5px; }.capacity-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.capacity-line span:last-child { font-family: var(--mono); color: var(--ink); }

.process-board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.process-column { min-width: 250px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.process-column__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.process-column__header h3 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }.process-column__header span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-family: var(--mono); font-size: 9px; }
.process-column__body { display: grid; gap: 10px; }
.process-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.process-card__top { display: flex; justify-content: space-between; margin-bottom: 11px; }.process-card__top strong { font-family: var(--mono); font-size: 10px; }.process-card__top small { color: var(--muted); font-size: 9px; }
.process-card h4 { margin-bottom: 4px; font-size: 12px; }.process-card > p { margin-bottom: 11px; color: var(--muted); font-size: 10px; }
.process-card__metrics { display: flex; gap: 8px; margin-bottom: 11px; }.process-card__metrics span { padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-family: var(--mono); font-size: 8px; }

.manifest-card { overflow: hidden; }
.manifest-summary { display: grid; grid-template-columns: 1fr repeat(4, auto); align-items: center; gap: 24px; padding: 20px; }
.manifest-summary__id small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; }.manifest-summary__id strong { font-family: var(--mono); font-size: 13px; }
.manifest-stat { display: grid; gap: 2px; min-width: 70px; }.manifest-stat strong { font-family: var(--mono); font-size: 12px; }.manifest-stat small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.route-line { position: relative; display: grid; gap: 13px; padding: 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.route-stop { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-height: 48px; }
.route-stop::before { content: ""; position: absolute; left: 14px; top: 35px; width: 1px; height: 28px; background: var(--border-strong); }.route-stop:last-child::before { display: none; }
.route-stop__number { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--accent); font-family: var(--mono); font-size: 9px; }
.route-stop__copy strong { display: block; font-size: 11px; }.route-stop__copy small { color: var(--muted); font-size: 9px; }

.timeline { display: grid; }
.timeline-item { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding-bottom: 23px; }
.timeline-item::before { content: ""; position: absolute; left: 20px; top: 34px; bottom: 0; width: 1px; background: var(--border); }.timeline-item:last-child::before { display: none; }
.timeline-item__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--accent); }
.timeline-item__copy { padding-top: 3px; }.timeline-item__copy strong { display: block; font-size: 11px; }.timeline-item__copy small { color: var(--muted); font-size: 9px; }.timeline-item__copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; border: 1px solid var(--border); }

.modal-root:not(:empty) { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6, 17, 14, .58); backdrop-filter: blur(5px); }
.modal { display: flex; flex-direction: column; width: min(100%, 760px); max-height: min(92dvh, 920px); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); animation: modal-in .18s cubic-bezier(.23,1,.32,1); }
.modal--large { width: min(100%, 1040px); }.modal--small { width: min(100%, 480px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal__header { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 26px 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb,var(--surface) 96%,var(--accent-soft)); }
.modal__header h2 { margin-bottom: 5px; font-size: 22px; }.modal__header p { max-width: 620px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }.modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px; scrollbar-gutter: stable; }.modal__footer { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 10px; padding: 15px 26px max(15px,env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: color-mix(in srgb,var(--surface-2) 96%,var(--surface)); box-shadow: 0 -12px 30px rgba(0,0,0,.06); }
.modal__stepper { display: flex; gap: 6px; margin-top: 12px; }.modal__stepper span { width: 28px; height: 3px; border-radius: 3px; background: var(--border); }.modal__stepper span.active { background: var(--accent); }
.confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; border-radius: 18px; background: var(--warning-soft); color: var(--warning); font-size: 24px; }.confirm-copy { text-align: center; }.confirm-copy p { color: var(--muted); line-height: 1.65; }

.signature-pad { width: 100%; height: 180px; touch-action: none; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); cursor: crosshair; }
.file-drop { display: grid; place-items: center; min-height: 130px; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); text-align: center; cursor: pointer; }.file-drop:hover { border-color: var(--accent); }.file-drop strong { display: block; margin-bottom: 4px; font-size: 11px; }.file-drop small { color: var(--muted); font-size: 9px; }.file-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }

.toast-root { position: fixed; z-index: 400; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(calc(100% - 40px), 380px); }
.toast { display: grid; grid-template-columns: 31px 1fr auto; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } }.toast__icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); }.toast--danger .toast__icon { color: var(--danger); background: var(--danger-soft); }.toast--warning .toast__icon { color: var(--warning); background: var(--warning-soft); }
.toast strong { display: block; margin-bottom: 2px; font-size: 11px; }.toast p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.toast button { border: 0; background: transparent; color: var(--subtle); cursor: pointer; }

.user-list { display: grid; gap: 10px; }.user-row { display: grid; grid-template-columns: 42px minmax(140px, 1fr) minmax(200px, 1.4fr) auto auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; }.user-row__copy strong { display: block; font-size: 11px; }.user-row__copy small { color: var(--muted); font-size: 9px; }.role-chips { display: flex; flex-wrap: wrap; gap: 5px; }.role-chip { padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 8px; font-weight: 750; }
.settings-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }.settings-nav button { min-height: 39px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }.settings-nav button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.disclaimer { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border)); border-radius: 12px; background: var(--warning-soft); color: var(--warning); }.disclaimer p { margin: 0; font-size: 10px; line-height: 1.55; }.disclaimer strong { display: block; margin-bottom: 2px; }
.loading { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .desktop-nav .nav-button span { display: none; }
  .operation-row { grid-template-columns: 80px minmax(160px, 1fr) 1fr 110px 36px; }.operation-row > :nth-child(5) { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .auth-screen { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: 100vh; }
  .desktop-nav { display: none; }.topbar { height: 66px; }.topbar__inner { width: calc(100% - 28px); }.topbar__actions .button--compact { display: none; }.profile-button__copy { display: none; }
  .main-content { width: calc(100% - 28px); padding-top: 24px; padding-bottom: 105px; }
  .mobile-nav { position: fixed; z-index: 120; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; align-items: stretch; justify-content: space-around; min-height: 66px; padding: 6px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 12px 40px rgba(16,35,29,.2); backdrop-filter: blur(16px); }
  .mobile-nav .nav-button { flex: 1; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 52px; padding: 4px; border-radius: 12px; font-size: 8px; }.mobile-nav .nav-button::after { display: none; }.mobile-nav .nav-button.active { background: var(--accent-soft); }
  .dashboard-grid { grid-template-columns: 1fr; }.operation-row { grid-template-columns: 74px minmax(160px, 1fr) 120px 36px; }.operation-row > :nth-child(3), .operation-row > :nth-child(5) { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }.manifest-summary { grid-template-columns: 1fr repeat(2, auto); }.manifest-summary > :nth-child(4), .manifest-summary > :nth-child(5) { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }.main-content { width: calc(100% - 20px); }.topbar__inner { width: calc(100% - 20px); }.brand-lockup strong { font-size: 12px; }.brand-lockup small { font-size: 8px; }.brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .auth-card__mobile-brand { display: flex; align-items: center; width: 142px; min-height: 88px; margin-bottom: 30px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 36px rgba(3,10,24,.24); }.auth-card__mobile-brand img { display: block; width: 100%; height: auto; }
  .brand-lockup--header .official-logo-frame { width: 84px; height: 46px; }.brand-lockup--header .brand-module-title { display: none; }
  .page-header { align-items: stretch; flex-direction: column; margin-bottom: 20px; }.page-header h1 { font-size: 30px; }.page-actions .button { flex: 1; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }.metric-grid-mobile { grid-template-columns: repeat(2, 1fr); }.metric-card { min-height: 130px; padding: 16px; }.metric-card__value { font-size: 23px; }
  .operation-row { grid-template-columns: 64px 1fr 30px; gap: 9px; padding-inline: 13px; }.operation-row > :nth-child(3), .operation-row > :nth-child(4), .operation-row > :nth-child(5) { display: none; }
  .card__header, .card__body { padding-inline: 16px; }.toolbar { align-items: stretch; flex-wrap: wrap; }.search-field { max-width: none; flex-basis: 100%; }.filter-select { flex: 1; }
  .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 { grid-column: span 12; }
  .field--uf, .field--uf input { min-width: 0; width: 100%; }
  .modal-root:not(:empty) { align-items: end; padding: 0; }.modal { width: 100%; max-height: 100dvh; border-radius: 22px 22px 0 0; border-bottom: 0; }.modal__header { padding: 19px 18px 15px; }.modal__header h2 { font-size: 21px; }.modal__body { padding: 20px 18px 34px; }.modal__footer { padding: 13px 18px max(13px,env(safe-area-inset-bottom)); }.modal__footer .button { flex: 1; min-width: 0; }
  .manifest-summary { grid-template-columns: 1fr auto; gap: 12px; }.manifest-summary > :not(.manifest-summary__id):not(:last-child) { display: none; }
  .route-stop { grid-template-columns: 30px 1fr; }.route-stop > :last-child { grid-column: 2; }
  .user-row { grid-template-columns: 38px 1fr auto; }.user-row .role-chips { grid-column: 2 / -1; }.user-row > :last-child { grid-column: 3; grid-row: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .toast-root { right: 10px; bottom: 90px; width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/*
 * Azulejo Operacional Atlântico — painel autenticado v2.
 * Referência: sistema anterior escuro; reconstrução com navegação lateral,
 * hierarquia por perfil e fichas completas de viagem.
 */
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 252px minmax(0, 1fr); background:
  radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
  var(--bg); }
.app-sidebar { position: sticky; z-index: 130; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 22px 16px 18px; border-right: 1px solid var(--border); color: #eef4ff; background:
  linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
  linear-gradient(165deg, #0b1321, #111c30 64%, #14243c); background-size: 36px 36px, 36px 36px, auto; }
.app-sidebar::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 2px; background: linear-gradient(180deg, var(--brand-gold), var(--brand-red) 28%, transparent 64%); }
.brand-lockup--sidebar { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 8px; width: 100%; padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-lockup--sidebar .official-logo-frame { width: 154px; height: 78px; padding: 3px; border: 0; border-radius: 13px; box-shadow: 0 15px 34px rgba(0,0,0,.2); }
.brand-lockup--sidebar .brand-module-title { border-color: rgba(255,255,255,.14); color: #dce7f8; background: rgba(255,255,255,.055); }
.sidebar-label { margin: 25px 11px 10px; color: rgba(217,229,247,.42); font: 500 9px/1 var(--mono); letter-spacing: .18em; }
.app-sidebar .desktop-nav { display: grid; align-content: start; align-self: auto; gap: 4px; margin: 0; }
.app-sidebar .nav-button { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; color: rgba(229,237,249,.63); font-size: 12px; font-weight: 650; text-align: left; transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.app-sidebar .nav-button::after { display: none; }
.app-sidebar .nav-button svg { width: 18px; height: 18px; }
.app-sidebar .nav-button:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.app-sidebar .nav-button.active { color: #fff; border-color: rgba(88,158,255,.22); background: linear-gradient(90deg, rgba(38,127,255,.25), rgba(38,127,255,.08)); box-shadow: inset 3px 0 #38a4ff; }
.sidebar-foot { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 15px 11px 2px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-foot__mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(239,194,98,.28); border-radius: 9px; color: var(--brand-gold); background: rgba(239,194,98,.08); font: 600 10px/1 var(--mono); }
.sidebar-foot p { display: grid; gap: 2px; margin: 0; }
.sidebar-foot strong { font-size: 10px; }.sidebar-foot small { color: rgba(229,237,249,.44); font-size: 9px; }
.app-workspace { min-width: 0; }
.topbar { height: 68px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.topbar::after { height: 1px; opacity: .7; }
.topbar__inner { width: calc(100% - 52px); max-width: 1580px; gap: 18px; }
.brand-lockup--mobile { display: none; }
.topbar__context { display: grid; gap: 4px; }
.topbar__context span { color: var(--subtle); font: 500 8px/1 var(--mono); letter-spacing: .16em; }
.topbar__context strong { font-size: 15px; letter-spacing: -.025em; }
.topbar__actions { margin-left: auto; }
.profile-menu__header { display: grid; gap: 3px; padding: 10px 11px 12px; margin-bottom: 5px; border-bottom: 1px solid var(--border); }
.profile-menu__header strong { font-size: 11px; }.profile-menu__header small { color: var(--muted); font-size: 9px; }
.profile-menu button[hidden] { display: none; }
.main-content { width: calc(100% - 64px); max-width: 1480px; padding: 36px 0 90px; }
.page-header { align-items: end; margin-bottom: 24px; padding-bottom: 19px; border-bottom: 1px solid var(--border); }
.page-header > div:first-child { max-width: 760px; }
.page-header h1 { margin-bottom: 8px; font-size: clamp(30px, 2.8vw, 42px); font-weight: 750; letter-spacing: -.052em; }
.page-header p { max-width: 680px; font-size: 13px; }
.page-kicker { color: var(--brand-gold); font: 600 9px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.button { min-height: 42px; border-radius: 10px; font-weight: 700; }
.button--primary { position: relative; overflow: hidden; border-color: #278ee7; color: #fff; background: linear-gradient(135deg, #1379d8, #159eef); box-shadow: 0 10px 26px rgba(16,132,231,.19); }
.button--primary::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: rgba(255,255,255,.52); }
.button--primary:hover { transform: translateY(-1px); box-shadow: 0 13px 32px rgba(16,132,231,.27); }
.button--secondary { background: color-mix(in srgb, var(--surface-2) 88%, transparent); }
.card, .table-wrap, .trip-card { border-color: color-mix(in srgb, var(--border) 88%, transparent); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 12px 38px rgba(0,0,0,.07); }
.metric-card { overflow: hidden; border-top: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.metric-card__value { font-size: 31px; }
.toolbar { padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-field, .filter-select { border-radius: 9px; background: var(--surface-2); }
.table-wrap { border-radius: 14px; }
table th { height: 44px; color: var(--subtle); background: var(--surface-2); font: 600 9px/1 var(--mono); letter-spacing: .08em; }
table td { padding-top: 15px; padding-bottom: 15px; }
table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }

.trip-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 18px; }
.trip-overview > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 15px 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.trip-overview span { color: var(--muted); font-size: 10px; }.trip-overview strong { font: 500 25px/1 var(--mono); }
.trip-overview .is-alert { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); color: var(--danger); background: var(--danger-soft); }
.trip-list { display: grid; gap: 12px; }
.trip-card { overflow: clip; border: 1px solid var(--border); border-radius: 14px; }
.trip-card--late { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.trip-card__summary { display: grid; grid-template-columns: minmax(205px,1.15fr) minmax(190px,1fr) minmax(210px,1.1fr) minmax(135px,.75fr) auto; align-items: center; gap: 18px; min-height: 104px; padding: 18px 20px; cursor: pointer; list-style: none; }
.trip-card__summary::-webkit-details-marker { display: none; }
.trip-card__summary:hover { background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.trip-identity, .trip-team, .trip-crew { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trip-identity > div, .trip-team > div, .trip-crew > div { display: grid; gap: 4px; min-width: 0; }
.trip-identity strong, .trip-team strong, .trip-crew strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.trip-identity small, .trip-team small, .trip-crew small, .trip-time small { color: var(--muted); font-size: 9px; }
.trip-number { flex: 0 0 auto; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border)); border-radius: 9px; color: var(--accent-strong); background: var(--accent-soft); font: 600 11px/1 var(--mono); }
.trip-vehicle { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 10px; color: #48a9f8; background: color-mix(in srgb, #159eef 14%, transparent); }
.trip-vehicle svg { width: 18px; height: 18px; }
.avatar--small { width: 34px; height: 34px; font-size: 9px; }
.trip-time { display: grid; gap: 4px; }.trip-time strong { font: 500 20px/1 var(--mono); }.trip-time span { color: var(--subtle); font-size: 9px; }
.trip-status { display: flex; align-items: center; gap: 8px; justify-self: end; }
.trip-chevron { color: var(--subtle); transition: transform 180ms ease; } details[open] .trip-chevron { transform: rotate(180deg); }
.trip-card__details { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.trip-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-bottom: 1px solid var(--border); background: var(--border); }
.trip-facts > div { display: grid; gap: 6px; padding: 15px 20px; background: var(--surface); }
.trip-facts span { color: var(--muted); font-size: 9px; }.trip-facts strong { font-size: 11px; }
.trip-actions { justify-content: flex-end; padding: 16px 20px; }
.execution-card--late { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.execution-facts { margin-bottom: 18px; }
.execution-start { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.execution-start p { display: grid; gap: 4px; margin: 0; }.execution-start p strong { font-size: 12px; }.execution-start p span { color: var(--muted); font-size: 10px; }

.agenda-filters { display: grid; grid-template-columns: 180px 180px minmax(220px, 1fr); max-width: 820px; }
.agenda-alert { display: flex; align-items: center; gap: 13px; max-width: 820px; margin: -8px 0 18px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--danger) 48%, var(--border)); border-radius: 11px; color: var(--danger); background: var(--danger-soft); }
.agenda-alert svg { flex: 0 0 auto; }.agenda-alert p { display: grid; gap: 3px; margin: 0; font-size: 10px; }.agenda-alert strong { font-size: 12px; }
.agenda-day-nav { display: flex; align-items: center; justify-content: space-between; max-width: 430px; margin-bottom: 14px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.agenda-day-nav > div { display: grid; gap: 4px; text-align: center; }.agenda-day-nav span { color: var(--muted); font-size: 9px; text-transform: capitalize; }.agenda-day-nav strong { font: 500 12px/1 var(--mono); }
.compact-field { display: grid; gap: 6px; }
.compact-field span { color: var(--subtle); font: 500 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.compact-field input, .compact-field select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); background: var(--surface-2); }
.schedule-tabs { display: inline-flex; gap: 4px; margin: 18px 0 22px; padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.schedule-tabs button { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.schedule-tabs button.active { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.schedule-tabs svg { width: 16px; height: 16px; }.schedule-tabs strong { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 999px; color: var(--ink); background: var(--surface); font: 500 10px/1 var(--mono); }
.schedule-board { display: grid; gap: 22px; }
.schedule-shift { display: grid; gap: 13px; }
.schedule-shift > header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 0 4px; }
.schedule-shift > header > div { display: flex; align-items: center; gap: 10px; }.schedule-shift h2 { margin: 0; font-size: 18px; }.schedule-shift > header > div > strong { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 999px; background: var(--surface-3); font: 500 10px/1 var(--mono); }
.shift-symbol { color: var(--brand-gold); font-size: 18px; }
.shift-capacity { display: grid; justify-items: end; gap: 4px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.shift-capacity strong { font-size: 10px; }.shift-capacity span { color: var(--ok); font: 500 9px/1 var(--mono); }
.shift-capacity--extra { border-color: color-mix(in srgb, var(--warning) 36%, var(--border)); background: var(--warning-soft); }.shift-capacity--extra span { color: var(--warning); }
.shift-capacity--full { border-color: color-mix(in srgb, var(--danger) 36%, var(--border)); background: var(--danger-soft); }.shift-capacity--full span { color: var(--danger); }
.schedule-table { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.schedule-table__head, .schedule-row { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(220px,1.35fr) minmax(170px,1fr) 150px 38px; align-items: center; gap: 16px; }
.schedule-table--compact .schedule-table__head, .schedule-table--compact .schedule-row { grid-template-columns: minmax(150px,.8fr) minmax(240px,1.5fr) 150px 38px; }
.schedule-table__head { min-height: 44px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--subtle); background: var(--surface-2); font: 600 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.schedule-row { min-height: 72px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background 150ms ease; }.schedule-row:last-child { border-bottom: 0; }.schedule-row:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.schedule-client, .schedule-seller, .schedule-status { min-width: 0; }
.schedule-row > div { display: grid; gap: 4px; min-width: 0; }.schedule-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.schedule-row small { color: var(--muted); font-size: 8px; }
.schedule-cards { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 12px; }
.schedule-card { position: relative; display: grid; align-content: start; gap: 9px; min-height: 218px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--accent-soft) 25%, var(--surface))); box-shadow: var(--shadow-sm); }
.schedule-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; border-radius: 13px 0 0 13px; background: linear-gradient(var(--brand-gold), var(--brand-red)); }
.schedule-card__top, .schedule-card footer, .schedule-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.schedule-number { color: #55b5ff; font: 600 10px/1 var(--mono); }.schedule-card h3 { margin: 5px 0 0; font-size: 17px; }.schedule-card > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.schedule-meta { justify-content: flex-start; flex-wrap: wrap; }.schedule-meta span { padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface-2); font: 500 9px/1 var(--mono); }
.schedule-card footer { align-self: end; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }.schedule-card footer small { color: var(--subtle); font-size: 8px; }
.empty-state--compact { min-height: 132px; padding: 28px; }
.capacity-slot--authorization { border-color: color-mix(in srgb, var(--warning) 48%, var(--border)); background: var(--warning-soft); }
.authorization-banner { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid color-mix(in srgb, var(--warning) 42%, var(--border)); border-radius: 10px; color: var(--warning); background: var(--warning-soft); }
.authorization-banner svg { flex: 0 0 auto; }.authorization-banner p { display: grid; gap: 4px; margin: 0; font-size: 10px; }.authorization-banner strong { font-size: 12px; }
.motivation-root { position: fixed; z-index: 260; right: 22px; bottom: 22px; width: min(560px, calc(100% - 44px)); pointer-events: none; }
.motivation-card { position: relative; overflow: hidden; padding: 22px 48px 22px 23px; border: 1px solid color-mix(in srgb, #259cff 44%, var(--border)); border-radius: 17px; color: #eaf3ff; background: linear-gradient(145deg, rgba(8,18,32,.97), rgba(13,27,47,.98)); box-shadow: 0 26px 70px rgba(0,0,0,.42); pointer-events: auto; animation: motivation-in 260ms cubic-bezier(.23,1,.32,1); }
.motivation-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #2ca5ff, #8d5cff, var(--brand-red)); }
.motivation-card > button { position: absolute; top: 14px; right: 14px; border: 0; color: rgba(234,243,255,.62); background: transparent; font-size: 24px; }
.motivation-card__label { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #54aefe; }.motivation-card__label span { color: var(--brand-gold); font-size: 19px; }.motivation-card__label strong { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }.motivation-card__label small { margin-left: auto; color: rgba(234,243,255,.42); font: 500 8px/1 var(--mono); text-transform: uppercase; }
.motivation-card p { margin: 0; color: rgba(239,245,255,.84); font-size: 14px; line-height: 1.68; }.motivation-card p > strong { color: #fff; }.motivation-card em { color: var(--brand-gold); font-style: normal; }
@keyframes motivation-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .main-content { width: calc(100% - 38px); }
  .trip-card__summary { grid-template-columns: minmax(190px,1.2fr) minmax(170px,1fr) minmax(180px,1fr) auto; }
  .trip-time { display: none; }
  .schedule-cards { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 920px) {
  .app-shell { display: block; }
  .app-sidebar { display: none; }
  .topbar { height: 66px; }
  .topbar__inner { width: calc(100% - 28px); }
  .brand-lockup--mobile { display: block; }
  .brand-lockup--mobile .official-logo-frame { width: 76px; height: 42px; box-shadow: none; }
  .topbar__context span { display: none; }
  .main-content { width: calc(100% - 28px); padding-top: 28px; padding-bottom: 108px; }
  .mobile-nav { overflow-x: auto; justify-content: flex-start; gap: 4px; }
  .mobile-nav .nav-button { flex: 0 0 76px; }
  .trip-card__summary { grid-template-columns: 1.2fr 1fr auto; min-height: 96px; }
  .trip-crew, .trip-time { display: none; }
  .trip-overview { grid-template-columns: repeat(2, 1fr); }
  .schedule-table__head, .schedule-row { grid-template-columns: minmax(145px,.8fr) minmax(190px,1.2fr) minmax(150px,.9fr) 130px 34px; gap: 10px; }
  .schedule-table--compact .schedule-table__head, .schedule-table--compact .schedule-row { grid-template-columns: minmax(145px,.8fr) minmax(210px,1.35fr) 130px 34px; }
}

@media (max-width: 620px) {
  .topbar__context { display: none; }
  .page-header { align-items: stretch; }
  .page-header h1 { font-size: 31px; }
  .trip-card__summary { grid-template-columns: 1fr auto; gap: 12px; padding: 16px; }
  .trip-team, .trip-crew, .trip-time { display: none; }
  .trip-status { align-items: flex-end; flex-direction: column; }
  .trip-overview > div { min-height: 64px; padding: 13px; }
  .trip-facts { grid-template-columns: repeat(2, 1fr); }
  .trip-facts > div { padding: 13px 15px; }
  .trip-actions { align-items: stretch; flex-direction: column; }
  .trip-actions .button { width: 100%; }
  .execution-start { align-items: stretch; flex-direction: column; }
  .agenda-filters { grid-template-columns: 1fr 1fr; }.compact-field--wide { grid-column: 1 / -1; }
  .schedule-tabs { display: flex; width: 100%; }.schedule-tabs button { flex: 1; justify-content: center; padding-inline: 8px; }
  .schedule-shift > header { align-items: flex-start; }.shift-capacity { padding: 8px 10px; }
  .schedule-table { display: grid; gap: 10px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .schedule-table__head { display: none; }
  .schedule-row { position: relative; grid-template-columns: 1fr auto; gap: 12px; min-height: 0; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
  .schedule-row > div:nth-child(2), .schedule-row > div:nth-child(3) { grid-column: 1; }
  .schedule-row > div:nth-child(4) { grid-column: 2; grid-row: 1; align-self: start; }
  .schedule-row > button { grid-column: 2; grid-row: 3; align-self: end; }
  .motivation-root { right: 10px; bottom: 88px; width: calc(100% - 20px); }.motivation-card { padding: 19px 42px 19px 18px; }.motivation-card p { font-size: 12px; }
}

.module-tabs { display: inline-flex; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.module-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.module-tabs button.active { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.module-tabs svg { width: 17px; height: 17px; }.module-tabs strong { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; color: var(--ink); background: var(--surface-2); font: 500 9px/1 var(--mono); }
.module-tabs--wide { display: flex; overflow-x: auto; max-width: 760px; }.module-tabs--wide button { flex: 1 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(3,minmax(250px,1fr)); gap: 13px; }
.team-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; min-height: 138px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.team-card .avatar { width: 48px; height: 48px; }.team-card h3 { margin: 0 0 6px; font-size: 14px; }.team-card p { margin: 0 0 4px; color: var(--muted); font-size: 10px; }.team-card small { color: var(--subtle); font-size: 9px; }
.fleet-grid { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); gap: 13px; }
.fleet-card { position: relative; overflow: hidden; padding: 21px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.fleet-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,#2aa4ff,var(--brand-gold)); }
.fleet-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }.fleet-card__top > span:first-child { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; color: #48adff; background: color-mix(in srgb,#159eef 14%,transparent); }
.fleet-card h2 { margin: 0 0 5px; font-size: 18px; }.fleet-card > strong { color: var(--muted); font-size: 11px; }
.fleet-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }.fleet-facts span { padding: 7px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface-2); font: 500 8px/1 var(--mono); }
.fleet-crew { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }.fleet-crew p { display: grid; gap: 4px; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }.fleet-crew small { color: var(--subtle); font-size: 8px; }.fleet-crew strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fleet-alert { margin-bottom: 12px; padding: 9px 10px; border: 1px solid color-mix(in srgb,var(--warning) 34%,var(--border)); border-radius: 8px; color: var(--warning); background: var(--warning-soft); font-size: 9px; font-weight: 700; }
.fleet-metrics { display: grid; grid-template-columns: repeat(3,minmax(180px,1fr)); gap: 12px; margin-bottom: 16px; }.fleet-metrics > div { display: grid; gap: 10px; min-height: 112px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }.fleet-metrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.fleet-metrics strong { font: 500 24px/1.15 var(--mono); }
.record-list { display: grid; }.record-row { display: grid; grid-template-columns: 42px minmax(180px,1.2fr) minmax(150px,.7fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 13px 18px; border-bottom: 1px solid var(--border); }.record-row:last-child { border-bottom: 0; }.record-row > div { display: grid; gap: 4px; }.record-row strong { font-size: 11px; }.record-row small { color: var(--muted); font-size: 9px; }.record-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #48adff; background: var(--accent-soft); }
.checklist-items { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0; padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }

@media (max-width: 1180px) { .team-grid, .fleet-grid { grid-template-columns: repeat(2,minmax(240px,1fr)); } }
@media (max-width: 620px) {
  .module-tabs { display: flex; width: 100%; overflow-x: auto; }.module-tabs button { flex: 1 0 auto; }
  .team-grid, .fleet-grid, .fleet-metrics { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 44px 1fr; }.team-card .status { grid-column: 2; justify-self: start; }.team-card .avatar { width: 44px; height: 44px; }
  .record-row { grid-template-columns: 36px 1fr auto; padding-inline: 14px; }.record-row > div:nth-child(3) { grid-column: 2; }.record-row .status { grid-column: 3; grid-row: 1; }
  .checklist-items { grid-template-columns: 1fr; }
}

.selection-bar { position: sticky; top: 74px; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid color-mix(in srgb,var(--accent) 55%,var(--border)); border-radius: 12px; background: color-mix(in srgb,var(--accent) 16%,var(--surface)); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.selection-bar > div { display: flex; align-items: center; gap: 10px; }.selection-bar svg { width: 19px; height: 19px; color: #42afff; }.selection-bar strong { font-size: 11px; }
.schedule-primary { display: flex; align-items: center; gap: 10px; }.schedule-primary > div { display: grid; gap: 4px; }
.selection-check { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; }.selection-check input { position: absolute; opacity: 0; pointer-events: none; }.selection-check span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); }.selection-check input:checked + span { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }.selection-check input:checked + span::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }
.schedule-row--selected { border-color: color-mix(in srgb,var(--accent) 60%,var(--border)); background: color-mix(in srgb,var(--accent) 8%,var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
.distribution-banner { display: flex; gap: 13px; margin-bottom: 22px; padding: 15px; border: 1px solid color-mix(in srgb,var(--accent) 45%,var(--border)); border-radius: 11px; color: #cfeaff; background: color-mix(in srgb,var(--accent) 12%,var(--surface-2)); }.distribution-banner svg { flex: 0 0 auto; width: 22px; height: 22px; color: #42afff; }.distribution-banner p { margin: 0; font-size: 10px; line-height: 1.55; }.distribution-banner strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; }
.distribution-preview { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }.distribution-preview > div { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-height: 65px; padding: 11px 14px; border-bottom: 1px solid var(--border); }.distribution-preview > div:last-child { border-bottom: 0; }.distribution-preview > div > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 999px; color: #9ed8ff; background: var(--accent-soft); font: 600 9px/1 var(--mono); }.distribution-preview p { display: grid; gap: 4px; margin: 0; }.distribution-preview strong { font-size: 10px; }.distribution-preview small { color: var(--muted); font-size: 9px; }
.distribution-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }.distribution-totals strong { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface-2); font: 600 9px/1 var(--mono); }

@media (max-width: 620px) {
  .selection-bar { top: 72px; align-items: stretch; flex-direction: column; }.selection-bar > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }.selection-bar .button { width: 100%; }
  .distribution-preview > div { grid-template-columns: 27px 1fr; }.distribution-preview .status { grid-column: 2; justify-self: start; }
}
