@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #19302b;
  --muted: #6e7d78;
  --green: #12382f;
  --green-2: #1c4c40;
  --lime: #d9e9a2;
  --amber: #f6a93b;
  --cream: #f5f3ea;
  --surface: #ffffff;
  --line: #dde4df;
  --bg: #f2f5f1;
  --danger: #c4493d;
  --shadow: 0 14px 35px rgba(26, 55, 46, .08);
  --radius: 22px;
}
.native-app body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; }
.native-app input, .native-app textarea, .native-app select { -webkit-user-select: text; user-select: text; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; }
.auth-pending .app-shell { visibility: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button, label[for], .file-label { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 28px 20px; background: var(--green); color: white; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; padding: 0 8px 27px; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; background: var(--amber); }
.brand-mark svg { width: 29px; fill: var(--green); }
.brand-mark svg path:last-child { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }
.brand strong { display: block; font: 800 20px/1 'Manrope', sans-serif; letter-spacing: -.6px; }
.brand small { display: block; margin-top: 5px; color: #a8bdb6; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.nav-list { display: grid; gap: 7px; }
.nav-item { width: 100%; border: 0; background: transparent; color: #acc1ba; padding: 13px 14px; border-radius: 12px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 13px; font-weight: 600; }
.nav-item span { width: 20px; text-align: center; font-size: 20px; font-weight: 400; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: white; }
.nav-item.active { box-shadow: inset 3px 0 var(--amber); }
.nav-item.nav-organization { margin-top: 5px; border: 1px solid rgba(246,169,59,.26); color: #f2d9ad; }
.nav-badge { min-width: 20px; margin-left: auto; padding: 3px 6px; border-radius: 99px; background: var(--amber); color: #342714; font-size: 9px; text-align: center; }
.sidebar-card { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.055); border-radius: 16px; }
.sidebar-card strong { font-size: 12px; }
.sidebar-card p { margin: 8px 0 0; color: #acc1ba; font-size: 11px; line-height: 1.5; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #9ed873; box-shadow: 0 0 0 4px rgba(158,216,115,.13); }
.settings-trigger { margin-top: 13px; }

.main { margin-left: 248px; min-height: 100vh; padding: 0 42px 52px; }
.topbar { position: sticky; top: 0; z-index: 18; min-height: 96px; margin: 0 -42px 26px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(221,228,223,.82); background: rgba(242,245,241,.91); backdrop-filter: blur(17px); }
.topbar h1, h2, h3, p { margin-top: 0; }
.topbar h1 { margin: 3px 0 0; font: 800 24px/1.2 'Manrope', sans-serif; letter-spacing: -.5px; }
.topbar-title { min-width: 150px; display: flex; align-items: center; }
.topbar-title > div { min-width: 0; }
.eyebrow { margin-bottom: 5px; color: #87958f; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.top-actions, .button-row, .modal-actions { display: flex; align-items: center; gap: 10px; }
.organization-control { position: relative; min-width: 230px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #d8e0da; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(18,56,47,.055); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.organization-control:hover, .organization-control:focus-within { transform: translateY(-1px); border-color: #9eb1a8; box-shadow: 0 9px 24px rgba(18,56,47,.09); }
.organization-monogram { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #e2edbc, var(--lime)); color: var(--green); font: 800 10px 'Manrope', sans-serif; letter-spacing: .02em; }
.organization-control-copy { min-width: 0; display: grid; gap: 2px; }
.organization-control-copy small { color: #8b9893; font-size: 8px; font-weight: 800; letter-spacing: .1em; line-height: 1; text-transform: uppercase; pointer-events: none; }
.organization-chevron { width: 18px; height: 18px; fill: none; stroke: #71817b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.organization-select { width: 100%; min-width: 0; max-width: none; min-height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); outline: 0; appearance: none; overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.avatar { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--lime) center/cover no-repeat; color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.avatar.has-photo { box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); }
.header-icon-button { position: relative; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #d8e0da; border-radius: 12px; background: #fff; color: var(--green); display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 5px 16px rgba(18,56,47,.04); cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; }
.header-icon-button:hover { transform: translateY(-1px); border-color: #aebdb5; box-shadow: 0 8px 20px rgba(18,56,47,.08); }
.header-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-icon-button .install-label { font-size: 11px; font-weight: 800; }
.notification-button { width: 42px; padding: 0; }
.notification-button b { position: absolute; right: -5px; top: -6px; min-width: 19px; padding: 3px 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 8px; }
.btn { min-height: 42px; border: 0; border-radius: 11px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #322715; box-shadow: 0 7px 18px rgba(246,169,59,.23); }
.btn-primary:hover { background: #ffb84f; }
.btn-light { background: white; color: var(--green); }
.btn-dark { background: var(--green); color: white; }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid var(--line); }
.btn-outline { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-danger { background: #fff1ef; color: var(--danger); border: 1px solid #efc4be; }
.text-button { background: none; border: 0; color: var(--green); font-weight: 800; cursor: pointer; }

.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } }

.hero-panel { min-height: 300px; padding: 42px 46px; border-radius: 28px; background: var(--green); color: white; display: flex; align-items: center; justify-content: space-between; gap: 38px; overflow: hidden; position: relative; }
.hero-panel::before, .hero-panel::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.hero-panel::before { width: 420px; height: 420px; right: -165px; top: -210px; }
.hero-panel::after { width: 310px; height: 310px; right: -90px; bottom: -210px; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; margin-bottom: 12px; color: var(--lime); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.hero-panel h2 { margin-bottom: 12px; font: 800 40px/1.08 'Manrope', sans-serif; letter-spacing: -1.6px; }
.hero-panel h2 em { color: var(--amber); font-style: normal; }
.hero-panel p { max-width: 520px; color: #b8cbc4; line-height: 1.55; font-size: 14px; }
.hero-panel .btn { margin-top: 10px; }
.hero-gauge { width: 180px; height: 180px; flex: 0 0 180px; position: relative; display: grid; place-items: center; }
.hero-gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hero-gauge circle { fill: none; stroke-width: 11; }
.gauge-track { stroke: rgba(255,255,255,.1); }
.gauge-value { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 427; stroke-dashoffset: 0; transition: stroke-dashoffset .6s; }
.hero-gauge div { text-align: center; }
.hero-gauge strong { display: block; font: 800 33px/1 'Manrope', sans-serif; }
.hero-gauge span { display: block; margin-top: 6px; color: #aac0b8; font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 37px; }
.metric-card { padding: 20px; border-radius: 18px; background: white; box-shadow: var(--shadow); border: 1px solid #eef1ee; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.metric-card strong { font: 800 28px/1 'Manrope', sans-serif; }
.metric-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.metric-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #edf3dc; color: var(--green); font-weight: 800; }
.metric-card.alert .metric-icon { background: #fff0da; color: #a76309; }
.metric-card.danger .metric-icon { background: #fbe3e0; color: var(--danger); }

.section-heading, .section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 17px; }
.section-heading h2, .section-intro h2 { margin: 0; font: 800 22px/1.2 'Manrope', sans-serif; letter-spacing: -.5px; }
.section-intro { align-items: center; padding: 22px 2px 28px; }
.section-intro p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.section-heading.compact { align-items: center; }

.fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.fleet-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bike-card { background: white; border: 1px solid #e8ede9; border-radius: 20px; padding: 20px; box-shadow: 0 8px 24px rgba(22,50,41,.05); transition: transform .18s, box-shadow .18s; }
.bike-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bike-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.plate { display: inline-block; font: 800 19px/1 'Manrope', sans-serif; letter-spacing: .03em; }
.bike-card h3 { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 99px; padding: 7px 10px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { background: #ecf4dc; color: #55782c; }
.status-watch { background: #fff1d9; color: #ad6509; }
.status-urgent { background: #ffe9d1; color: #c45a08; }
.status-overdue { background: #f9e1df; color: #ae352d; }
.bike-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 19px 0 17px; }
.bike-meta div { padding: 11px 12px; background: #f6f8f5; border-radius: 11px; }
.bike-meta span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.bike-meta strong { display: block; margin-top: 5px; font-size: 13px; }
.progress-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.progress-head strong { color: var(--ink); }
.progress { height: 7px; border-radius: 99px; background: #e8ece8; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: #78a14d; }
.bike-card.watch .progress span { background: var(--amber); }
.bike-card.urgent .progress span, .bike-card.overdue .progress span { background: var(--danger); }
.bike-card-actions { display: flex; gap: 8px; margin-top: 18px; }
.bike-card-actions .btn { flex: 1; min-height: 36px; padding: 0 10px; font-size: 11px; }
.bike-card-actions .btn-edit { flex: 0 0 auto; padding: 0 13px; }

.card { background: white; border: 1px solid #e6ebe7; border-radius: var(--radius); box-shadow: var(--shadow); }
.history-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .7fr); gap: 18px; }
.history-card { padding: 8px 22px; }
.history-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid #edf0ed; }
.history-item:last-child { border-bottom: 0; }
.history-dot { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #edf3dc; color: var(--green); font-weight: 800; }
.history-item.oil .history-dot { background: #fff0da; color: #a76309; }
.history-main strong { display: block; font-size: 13px; }
.history-main span { color: var(--muted); font-size: 11px; }
.history-km { text-align: right; }
.history-km strong { display: block; font: 800 16px 'Manrope', sans-serif; }
.history-km button { margin-top: 3px; border: 0; background: none; color: var(--green); font-size: 10px; font-weight: 800; cursor: pointer; }
.stats-card { padding: 22px; align-self: start; }
.stats-card h3 { font: 800 17px 'Manrope', sans-serif; }
.stat-line { padding: 14px 0; border-bottom: 1px solid #edf0ed; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.stat-line strong { color: var(--ink); font-size: 14px; }
.spark { width: 100%; height: 82px; margin: 16px 0 8px; }
.spark polyline { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.select { min-width: 210px; min-height: 42px; padding: 0 34px 0 13px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); }

.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report-card { min-height: 290px; padding: 25px; border-radius: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.report-card .btn { margin-top: auto; }
.report-card h3 { margin: 20px 0 8px; font: 800 18px 'Manrope', sans-serif; }
.report-card p { color: inherit; opacity: .72; font-size: 12px; line-height: 1.55; }
.report-icon { min-width: 46px; height: 39px; padding: 0 10px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 10px; font-size: 10px; font-weight: 800; }
.report-green { background: var(--green); color: white; }
.report-amber { background: var(--amber); color: #3a2d18; }
.report-neutral { background: #e8ece4; color: var(--green); }
.report-neutral .button-row { margin-top: auto; flex-wrap: wrap; }
.data-preview { padding: 25px; margin-top: 18px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 11px; border-bottom: 1px solid #e9ede9; text-align: left; font-size: 11px; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.pill { padding: 7px 10px; background: #edf3dc; color: #55782c; border-radius: 99px; font-size: 10px; font-weight: 800; }

.report-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 28px; align-items: center; margin-bottom: 15px; padding: 27px 29px; border-radius: 24px; background: linear-gradient(135deg, #12382f, #1b4d40); color: #fff; box-shadow: 0 16px 38px rgba(18,56,47,.13); }
.report-hero-copy { display: flex; align-items: center; gap: 17px; }
.report-hero-icon { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.08); color: var(--amber); font-size: 25px; }
.report-hero .eyebrow { color: var(--lime); }
.report-hero h2 { margin: 0; font: 800 25px/1.2 'Manrope', sans-serif; }
.report-hero-copy p:last-child { max-width: 560px; margin: 8px 0 0; color: #bbcec7; font-size: 11px; line-height: 1.55; }
.report-scope-card { padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.08); }
.report-scope-card > label { display: block; margin-bottom: 7px; color: #dce7e3; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.report-select-wrap { position: relative; }
.report-select-wrap .select { width: 100%; min-width: 0; padding-right: 35px; border: 0; appearance: none; font-size: 11px; font-weight: 800; }
.report-select-wrap > span { position: absolute; right: 13px; top: 50%; transform: translateY(-52%); color: var(--green); pointer-events: none; }
.report-scope-card small { display: block; margin-top: 8px; color: #afc4bc; font-size: 9px; line-height: 1.4; }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 15px; }
.report-metrics article { min-height: 76px; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #e4eae5; border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(18,56,47,.045); }
.report-metrics article > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: #edf3dc; color: var(--green); font-weight: 900; }
.report-metrics strong, .report-metrics small { display: block; }
.report-metrics strong { font: 800 16px/1.15 'Manrope', sans-serif; }
.report-metrics small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.report-actions-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.report-action-card { min-height: 245px; padding: 21px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e2e8e3; border-radius: 19px; background: #fff; box-shadow: 0 9px 25px rgba(18,56,47,.055); }
.report-action-primary { border: 0; background: linear-gradient(145deg, #173f35, #0f3028); color: #fff; }
.report-action-top { width: 100%; min-height: 43px; display: flex; justify-content: space-between; align-items: flex-start; }
.report-format-icon { min-width: 45px; height: 38px; padding: 0 9px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 10px; color: #d9e9a2; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.report-format-icon.excel { color: #397a53; }
.report-format-icon.backup { color: #8c672e; }
.report-recommended { padding: 6px 8px; border-radius: 99px; background: rgba(217,233,162,.13); color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.report-action-card h3 { margin: 17px 0 7px; font: 800 17px 'Manrope', sans-serif; }
.report-action-card p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.report-action-primary p { color: #b8cbc4; }
.report-action-card > .btn, .report-action-card > .button-row { margin-top: auto; }
.report-action-card > .btn { width: 100%; }
.report-action-card > .button-row { width: 100%; }
.report-action-card > .button-row .btn { min-width: 0; flex: 1; padding-inline: 10px; }
.report-preview-card { margin-top: 15px; }
.report-preview-copy { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.report-history-table { min-width: 850px; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.report-type { display: inline-block; padding: 5px 8px; border-radius: 99px; background: #eef2ef; color: #61736c; font-size: 9px; font-weight: 800; }
.report-type.oil { background: #fff0da; color: #a76309; }
.photo-yes { color: #55782c; font-weight: 800; }

.bottom-nav { display: none; }
.modal { width: min(520px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 32px 90px rgba(9,31,24,.35); color: var(--ink); }
.modal::backdrop { background: rgba(10,29,24,.68); backdrop-filter: blur(4px); }
.modal form { padding: 25px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.modal-header h2 { margin: 0; font: 800 22px 'Manrope', sans-serif; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef1ee; cursor: pointer; font-size: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; color: var(--ink); font-size: 11px; font-weight: 800; }
.field > input, .field select, .input-suffix { min-height: 46px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.field > input, .field select { padding: 0 13px; }
.field small { color: var(--muted); font-weight: 500; }
.form-grid { display: grid; gap: 0 12px; }
.form-grid.two-columns { grid-template-columns: 1fr 1fr; }
.input-suffix { display: flex; align-items: center; overflow: hidden; }
.input-suffix input { min-width: 0; flex: 1; height: 44px; border: 0; outline: 0; padding: 0 13px; font-size: 18px; font-weight: 800; }
.input-suffix span { padding-right: 14px; color: var(--muted); }
.photo-drop { position: relative; min-height: 174px; margin-bottom: 17px; border: 1.5px dashed #b7c4bd; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #f7f9f6; }
.photo-drop img { width: 100%; max-height: 250px; object-fit: cover; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; padding: 19px; text-align: center; }
.camera-icon { font-size: 29px; color: var(--green); }
.photo-placeholder > strong { margin-top: 7px; font-size: 12px; }
.photo-placeholder > small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.photo-actions { display: flex; align-items: center; gap: 13px; margin-top: 14px; }
.btn-compact { min-height: 38px; padding: 0 15px; font-size: 10px; }
.photo-actions .text-button { font-size: 10px; }
.photo-retake { position: absolute; right: 10px; bottom: 10px; z-index: 2; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 99px; background: rgba(12,35,29,.8); color: #fff; backdrop-filter: blur(5px); font-size: 10px; font-weight: 800; cursor: pointer; }
.ocr-row { margin: -5px 0 16px; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 9px; }
.ocr-row.success { color: #2d703a; font-weight: 700; }
.ocr-row.success .spinner { border: 0; width: 18px; height: 18px; display: grid; place-items: center; background: #dff2d8; }
.ocr-row.success .spinner::after { content: '✓'; font-size: 11px; }
.ocr-row.manual { color: #7a6744; }
.ocr-row.manual .spinner { display: none; }
.spinner { width: 14px; height: 14px; border: 2px solid #d8dfda; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-row { display: flex; gap: 11px; align-items: flex-start; padding: 13px; margin: 4px 0 16px; background: #f4f7f2; border-radius: 11px; font-size: 12px; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--green); }
.check-row span { display: grid; gap: 4px; }
.check-row small { color: var(--muted); }
.form-error { min-height: 17px; color: var(--danger); font-size: 11px; }
.modal-actions { justify-content: flex-end; margin-top: 12px; }
.split-actions { justify-content: space-between; }
.split-actions > div { display: flex; gap: 9px; }
.notice { padding: 14px; margin-bottom: 17px; border-left: 3px solid var(--amber); background: #fff6e9; border-radius: 9px; }
.notice strong { font-size: 12px; }
.notice p { margin: 5px 0 0; color: #766343; font-size: 11px; line-height: 1.5; }
.modal-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.management-modal { width: min(700px, calc(100% - 24px)); overflow: hidden; background: #f5f7f4; }
.profile-modal-shell { max-height: min(90vh, 790px); overflow: auto; }
.profile-modal-header { position: relative; min-height: 150px; padding: 30px 34px 42px; background: linear-gradient(135deg, #0f342b 0%, #17483b 68%, #246251 100%); color: #fff; overflow: hidden; }
.profile-modal-header::before, .profile-modal-header::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.profile-modal-header::before { width: 250px; height: 250px; right: -85px; top: -135px; }
.profile-modal-header::after { width: 170px; height: 170px; right: 40px; bottom: -125px; }
.profile-modal-header > div { position: relative; z-index: 1; }
.profile-modal-header .eyebrow { color: var(--lime); }
.profile-modal-header h2 { margin: 0; font: 800 27px/1.15 'Manrope', sans-serif; }
.profile-modal-header .modal-subtitle { color: #b8cbc4; }
.profile-close { position: absolute; z-index: 2; right: 25px; top: 25px; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.profile-close:hover { background: rgba(255,255,255,.2); }
.profile-modal-body { padding: 0 25px 25px; }
.management-modal form { padding: 0; }
.profile-panel, .create-org-panel { margin-bottom: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.profile-account-card { position: relative; margin-top: -24px; border: 0; box-shadow: 0 14px 35px rgba(18,56,47,.1); }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; margin: 1px 0 12px; }
.panel-heading strong, .panel-heading span { display: block; }
.panel-heading strong { font-size: 13px; }
.panel-heading span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-form { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; align-items: start; }
.profile-form .field, .create-org-form .field { margin: 0; }
.profile-form .field > input { width: 100%; background: #fafbf9; transition: border-color .18s, box-shadow .18s, background .18s; }
.profile-form .field > input:focus { outline: 0; border-color: #6b8d82; background: #fff; box-shadow: 0 0 0 3px rgba(18,56,47,.08); }
.profile-form .field > input[readonly] { color: #7f8c87; background: #f1f3f1; cursor: not-allowed; }
.profile-save-button { grid-column: 1 / -1; justify-self: end; min-width: 165px; margin-top: 2px; }
.create-org-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.management-modal .invite-form { display: grid; grid-template-columns: 1.4fr .8fr auto; gap: 10px; align-items: end; padding: 16px; background: #f4f7f2; border-radius: 15px; }
.invite-form .field { margin: 0; }
.member-list { display: grid; gap: 9px; margin: 15px 0 19px; }
.member-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.member-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--green); font-size: 11px; font-weight: 800; }
.member-info strong, .member-info span { display: block; }
.member-info strong { font-size: 12px; }
.member-info span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.member-access-control { display: grid; grid-template-columns: auto minmax(190px, 280px); align-items: center; gap: 6px 10px; margin-top: 10px; padding: 10px 11px; border-radius: 11px; background: #f4f7f2; }
.member-access-control > span { margin: 0; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.member-access-control .select { width: 100%; min-width: 0; min-height: 36px; grid-column: 2; grid-row: 1 / span 2; font-size: 10px; }
.member-access-control small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.member-access-stack { display: grid; gap: 8px; margin-top: 10px; }
.member-access-stack .member-access-control { margin-top: 0; }
.member-role-help { display: block; max-width: 560px; margin-top: 9px; padding: 9px 11px; border-radius: 10px; background: #f4f7f2; color: var(--muted); font-size: 9px; line-height: 1.45; }
.role-badge { padding: 6px 9px; border-radius: 99px; background: #edf3dc; color: #55782c; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.role-badge.pending { background: #fff1d9; color: #ad6509; }
.assignment-panel { grid-column: 1 / -1; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.assignment-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 11px; }
.assignment-heading strong, .assignment-heading span { display: block; }
.assignment-heading strong { font-size: 13px; }
.assignment-heading span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.assignment-item { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(220px, 1.3fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0ed; }
.assignment-item > div strong, .assignment-item > div span { display: block; }
.assignment-item > div strong { font-size: 12px; }
.assignment-item > div span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.assignment-select { width: 100%; min-width: 0; }
.member-avatar.has-photo { background-position: center; background-size: cover; box-shadow: inset 0 0 0 1px rgba(18,56,47,.08); }
.avatar-editor { display: grid; grid-template-columns: 94px 1fr; gap: 18px; align-items: center; margin-bottom: 21px; padding-bottom: 21px; border-bottom: 1px solid #e8ece9; }
.profile-avatar-preview { position: relative; width: 88px; height: 88px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 28px; background: var(--lime) center/cover no-repeat; color: var(--green); box-shadow: 0 6px 18px rgba(18,56,47,.14), 0 0 0 1px #dfe6e1; font: 800 22px 'Manrope', sans-serif; }
.profile-avatar-preview::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: #78a14d; }
.profile-identity-copy > span { display: block; color: #83908b; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.profile-identity-copy h3 { margin: 4px 0 2px; font: 800 18px 'Manrope', sans-serif; }
.profile-identity-copy p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.profile-identity-copy small { display: block; margin-top: 8px; color: #94a09b; font-size: 9px; }
.avatar-editor .btn { min-height: 34px; padding-inline: 13px; font-size: 10px; }
.avatar-editor .text-button { font-size: 10px; }
.profile-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.profile-section-heading > div { min-width: 0; flex: 1; }
.profile-section-heading strong { display: block; font-size: 13px; }
.profile-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.profile-section-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 11px; background: #edf3dc; color: var(--green); font-weight: 900; }
.profile-section-icon.security { background: #fff0da; color: #a76309; }
.security-panel { margin: 0 0 15px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(18,56,47,.05); }
.security-badge { padding: 6px 8px; border-radius: 99px; background: #edf3dc; color: #55782c; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.password-form { display: block; }
.password-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.password-form .field { margin: 0; }
.password-form .field input { width: 100%; background: #fafbf9; }
.password-form .field input:focus { outline: 0; border-color: #6b8d82; box-shadow: 0 0 0 3px rgba(18,56,47,.08); }
.security-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 4px; padding-top: 15px; border-top: 1px solid #edf0ed; }
.logout-button { color: var(--danger); font-size: 11px; }
.profile-privacy-note { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #eaf2ee; color: #34574e; }
.profile-privacy-note > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #fff; color: #4e7b61; font-weight: 900; }
.profile-privacy-note p { margin: 0; font-size: 10px; line-height: 1.5; }
.profile-privacy-note strong { color: var(--green); }
.login-form { margin-top: 18px; text-align: left; }
.login-form .btn { width: 100%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0 4px; padding: 4px; border-radius: 12px; background: #e7ebe4; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.auth-tabs button.active { background: white; color: var(--green); box-shadow: 0 3px 10px rgba(18,56,47,.08); }
.setup-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 19px 0 0; padding: 5px; border-radius: 13px; background: #e7ebe4; }
.setup-choice button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.setup-choice button.active { background: #fff; color: var(--green); box-shadow: 0 3px 10px rgba(18,56,47,.08); }
.setup-invitations { margin: 20px 0 8px; padding: 16px; border: 1px solid #dce7df; border-radius: 16px; background: #f7faf6; text-align: left; }
.setup-invitations .eyebrow { margin: 0 0 10px; }
.setup-invitation-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; padding: 12px; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(18,56,47,.06); }
.setup-invitation-card + .setup-invitation-card { margin-top: 9px; }
.setup-invitation-card .invitation-actions { grid-column: 1 / -1; }
.setup-invitation-note { margin: 10px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.auth-logout { margin: 15px auto 0; }
.session-loader { width: 28px; height: 28px; margin: 20px auto 2px; border: 3px solid #d7ddd4; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.auth-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top right, #285f4f, var(--green) 58%); }
.auth-card { width: min(460px, 100%); max-height: 92vh; padding: 36px; overflow: auto; border-radius: 25px; background: var(--cream); box-shadow: 0 30px 90px rgba(0,0,0,.26); text-align: center; }
.auth-card .brand-mark { margin: 0 auto 20px; }
.auth-card h2 { margin-bottom: 10px; font: 800 25px/1.2 'Manrope', sans-serif; }
.auth-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-card .btn { margin-top: 10px; }
.loading-block { padding: 32px; color: var(--muted); text-align: center; font-size: 12px; }
.photo-modal { width: min(760px, calc(100% - 24px)); background: transparent; overflow: visible; box-shadow: none; }
.photo-modal img { display: block; width: 100%; max-height: 84vh; object-fit: contain; border-radius: 18px; background: #111; }
.photo-close { position: absolute; right: -9px; top: -9px; z-index: 2; }
.install-modal { width: min(430px, calc(100% - 24px)); }
.install-help { padding: 25px; text-align: center; }
.install-help .modal-header { text-align: left; }
.install-icon { width: 68px; height: 68px; margin: 4px auto 16px; display: grid; place-items: center; border-radius: 20px; background: var(--lime); color: var(--green); font-size: 32px; font-weight: 800; }
.install-help > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.install-help .install-note { padding: 12px; border-radius: 11px; background: #f3f6f1; color: var(--ink); font-size: 11px; }
.install-help > .btn { width: 100%; margin-top: 6px; }
.camera-modal { width: min(620px, 100%); max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: #07110e; color: white; }
.camera-modal::backdrop { background: #07110e; }
.camera-stage { position: relative; width: 100%; height: calc(100% - 156px); min-height: 360px; overflow: hidden; background: #020504; }
.camera-stage video { width: 100%; height: 100%; object-fit: cover; }
.camera-tool { position: absolute; right: 16px; top: 16px; z-index: 2; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; background: rgba(4,16,12,.72); color: white; backdrop-filter: blur(5px); font-size: 10px; font-weight: 800; cursor: pointer; }
.camera-tool.active { background: #d8f28d; border-color: #d8f28d; color: var(--green); }
.odometer-frame { position: absolute; left: 7%; right: 7%; top: 38%; height: 24%; min-height: 92px; border: 3px solid #d8f28d; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.47), 0 0 24px rgba(216,242,141,.28); }
.odometer-frame::before, .odometer-frame::after { content: ''; position: absolute; inset: 9px; border-block: 1px solid rgba(255,255,255,.22); }
.odometer-frame span { position: absolute; left: 50%; bottom: -34px; width: max-content; transform: translateX(-50%); color: white; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-shadow: 0 1px 4px #000; }
.camera-copy { height: 60px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 0 18px; text-align: center; }
.camera-copy strong { font-size: 13px; }
.camera-copy span { color: #9eaaa6; font-size: 10px; }
.camera-actions { height: 96px; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 10px; padding: 0 18px 12px; }
.camera-actions .btn { justify-self: center; min-width: 86px; border-color: #53605c; color: white; }
.camera-shutter { width: 66px; height: 66px; justify-self: center; padding: 5px; border: 3px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.camera-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #d8f28d; transition: transform .12s; }
.camera-shutter:active span { transform: scale(.88); }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; max-width: calc(100% - 30px); transform: translate(-50%, 130%); padding: 12px 17px; border-radius: 11px; background: #132d26; color: white; box-shadow: var(--shadow); font-size: 12px; transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }
.empty { padding: 42px 18px; text-align: center; color: var(--muted); font-size: 12px; }
.empty .empty-action { margin-top: 14px; }

.notification-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .7fr); gap: 18px; }
.notification-list { overflow: hidden; }
.notification-item { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 17px 20px; border: 0; border-bottom: 1px solid #edf0ed; background: #fff; text-align: left; cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: #fbfcf6; }
.notification-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #edf3dc; color: var(--green); font-weight: 900; }
.notification-icon.maintenance { background: #fff0da; color: #a76309; }
.notification-icon.invitation, .notification-icon.member_joined { background: #e4f0ec; color: var(--green); }
.notification-copy strong, .notification-copy span, .notification-copy small { display: block; }
.notification-copy strong { font-size: 13px; }
.notification-copy span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notification-copy small { margin-top: 6px; color: #9aa6a1; font-size: 9px; }
.notification-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.notification-invitation { cursor: default; grid-template-columns: 46px minmax(0, 1fr) auto; }
.invitation-actions { display: flex; gap: 7px; align-items: center; }
.invitation-actions .btn-small { min-height: 34px; padding: 0 13px; font-size: 10px; white-space: nowrap; }
.notification-summary { padding: 22px; align-self: start; }
.notification-summary h3 { font: 800 20px 'Manrope', sans-serif; }
.notification-tip { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.organization-hero { margin-bottom: 18px; padding: 30px 34px; border-radius: 25px; background: linear-gradient(130deg, var(--green), #205447); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.organization-hero h2 { margin: 0; font: 800 28px 'Manrope', sans-serif; }
.organization-hero p:last-child { margin: 9px 0 0; color: #bed0ca; font-size: 12px; }
.organization-role { background: rgba(217,233,162,.16); color: var(--lime); border: 1px solid rgba(217,233,162,.25); }
.organization-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; margin-bottom: 15px; }
.organization-code-card, .organization-actions-card, .organization-management, .organization-activity { padding: 22px; }
.organization-code-card h3, .organization-actions-card h3 { margin-bottom: 7px; font: 800 18px 'Manrope', sans-serif; }
.organization-code-card > p:not(.eyebrow), .organization-actions-card > p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.join-code-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.join-code-row > strong { flex: 1; padding: 14px 16px; border: 1px dashed #a8b7af; border-radius: 12px; background: #f5f7f3; font: 800 23px 'Manrope', sans-serif; letter-spacing: .18em; text-align: center; }
.organization-action-buttons { display: flex; gap: 9px; margin-top: 18px; }
.organization-management, .organization-activity { margin-top: 15px; }
.organization-management .invite-form { display: grid; grid-template-columns: 1.4fr .8fr auto; gap: 10px; align-items: end; padding: 16px; background: #f4f7f2; border-radius: 15px; }
.organization-management .invite-form .field { margin: 0; }
.activity-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid #edf0ed; }
.activity-row:last-child { border-bottom: 0; }
.activity-plate { padding: 8px 10px; border-radius: 9px; background: #edf3dc; font: 800 12px 'Manrope', sans-serif; text-align: center; }
.activity-row div strong, .activity-row div span { display: block; }
.activity-row div strong { font-size: 12px; }
.activity-row div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.activity-row > strong { font: 800 13px 'Manrope', sans-serif; }

@media (max-width: 1260px) {
  .topbar { gap: 16px; }
  .top-actions { gap: 8px; }
  .top-actions .account-button { display: none; }
  .top-actions .install-button { width: 42px; padding: 0; }
  .top-actions .install-label { display: none; }
  .organization-control { min-width: 195px; }
}

@media (max-width: 980px) {
  .sidebar { width: 205px; padding-inline: 14px; }
  .main { margin-left: 205px; padding-inline: 24px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .report-card:last-child { grid-column: 1 / -1; min-height: 220px; }
  .report-hero { grid-template-columns: 1fr; gap: 18px; }
  .report-actions-grid { grid-template-columns: 1fr 1fr; }
  .report-action-primary { grid-column: 1 / -1; min-height: 220px; }
}

@media (max-width: 720px) {
  .camera-modal { width: 100%; }
  .sidebar { display: none; }
  .main { margin: 0; padding: 0 15px 95px; }
  .topbar { min-height: 0; margin: 0 -15px 20px; padding: 12px 15px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 42px 42px; grid-template-rows: auto auto; gap: 11px 9px; }
  .topbar-title { min-width: 0; grid-column: 1; grid-row: 1; }
  .topbar h1 { max-width: 190px; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .eyebrow { margin-bottom: 2px; font-size: 8px; white-space: nowrap; }
  .top-actions { display: contents; }
  .top-actions .btn-ghost, .top-actions .btn-primary { display: none; }
  .top-actions .install-button { display: none; }
  .top-actions .notification-button { grid-column: 2; grid-row: 1; display: inline-flex; }
  .top-actions .avatar { grid-column: 3; grid-row: 1; display: grid; place-items: center; }
  .organization-control { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 14px; }
  .organization-monogram { width: 38px; height: 38px; }
  .organization-select { width: 100%; max-width: none; }
  .split-actions { align-items: stretch; flex-direction: column-reverse; }
  .split-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .split-actions > .btn-danger { width: 100%; }
  .hero-panel { min-height: auto; padding: 27px 24px; border-radius: 22px; }
  .hero-panel h2 { font-size: 31px; }
  .hero-panel p { font-size: 12px; }
  .hero-gauge { width: 118px; height: 118px; flex-basis: 118px; }
  .hero-gauge strong { font-size: 24px; }
  .metric-grid { gap: 10px; margin-bottom: 29px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 23px; }
  .fleet-grid, .fleet-grid-wide, .history-layout, .notification-layout, .report-grid, .organization-grid { grid-template-columns: 1fr; }
  .report-actions-grid { grid-template-columns: 1fr; }
  .report-action-primary { grid-column: auto; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .report-card:last-child { grid-column: auto; }
  .history-layout { gap: 12px; }
  .section-intro { align-items: flex-start; }
  .section-intro > .btn { display: none; }
  .section-intro > .button-row { width: 100%; margin-top: 15px; }
  .section-intro > .button-row .btn { flex: 1; }
  .bottom-nav { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); min-height: 67px; padding: 7px 6px; border: 1px solid rgba(220,228,222,.9); border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(18,56,47,.2); display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; backdrop-filter: blur(15px); }
  .bottom-nav button { border: 0; background: none; color: #85928d; display: grid; justify-items: center; gap: 2px; font-size: 9px; font-weight: 700; }
  .bottom-nav button span { font-size: 19px; }
  .bottom-nav button.active { color: var(--green); }
  .bottom-nav .fab { width: 50px; height: 50px; justify-self: center; margin-top: -24px; border-radius: 17px; background: var(--amber); color: #352713; box-shadow: 0 8px 22px rgba(246,169,59,.4); font-size: 25px; }
}

@media (max-width: 480px) {
  .hero-panel { display: block; }
  .hero-gauge { display: none; }
  .hero-panel .btn { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card p { font-size: 10px; }
  .report-hero { padding: 20px; border-radius: 20px; }
  .report-hero-copy { align-items: flex-start; }
  .report-hero-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 14px; }
  .report-hero h2 { font-size: 20px; }
  .report-scope-card { padding: 12px; }
  .report-metrics { gap: 8px; }
  .report-metrics article { min-height: 70px; padding: 11px; gap: 8px; }
  .report-metrics article > span { width: 30px; height: 30px; flex-basis: 30px; }
  .report-metrics strong { font-size: 13px; }
  .report-action-card { min-height: 220px; }
  .report-preview-card { padding: 17px; }
  .report-preview-card .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading { align-items: center; }
  .section-intro { display: block; }
  .section-intro .select { width: 100%; margin-top: 16px; }
  .bike-card { padding: 17px; }
  .bike-meta { gap: 8px; }
  .history-item { grid-template-columns: 38px 1fr auto; gap: 10px; }
  .history-dot { width: 36px; height: 36px; }
  .modal form { padding: 21px 18px; }
  .modal-actions .btn { flex: 1; }
  .form-grid.two-columns { grid-template-columns: 1fr; }
  .management-modal .invite-form { grid-template-columns: 1fr; }
  .management-modal .invite-form .btn { width: 100%; }
  .profile-form, .create-org-form { grid-template-columns: 1fr; }
  .profile-form .btn, .create-org-form .btn { width: 100%; }
  .management-modal form { padding: 0; }
  .profile-save-button { grid-column: auto; justify-self: stretch; }
  .profile-modal-header { min-height: 132px; padding: 25px 22px 36px; }
  .profile-close { right: 18px; top: 18px; }
  .profile-modal-body { padding: 0 12px 14px; }
  .profile-account-card { padding: 17px; }
  .avatar-editor { grid-template-columns: 74px 1fr; gap: 13px; }
  .profile-avatar-preview { width: 68px; height: 68px; border-radius: 22px; font-size: 17px; }
  .profile-identity-copy h3 { font-size: 15px; }
  .avatar-editor .button-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .password-fields { grid-template-columns: 1fr; }
  .security-actions { align-items: stretch; flex-direction: column; }
  .security-actions .btn { width: 100%; }
  .assignment-heading { align-items: flex-start; flex-direction: column; }
  .assignment-item { grid-template-columns: 1fr; }
  .member-access-control { grid-template-columns: 1fr; }
  .member-access-control .select { grid-column: 1; grid-row: auto; }
  .organization-management .invite-form { grid-template-columns: 1fr; }
  .organization-action-buttons, .join-code-row { align-items: stretch; flex-direction: column; }
  .activity-row { grid-template-columns: 76px 1fr; }
  .activity-row > strong { grid-column: 2; }
  .organization-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .notification-item { grid-template-columns: 40px 1fr auto; padding-inline: 14px; }
  .notification-invitation { grid-template-columns: 40px minmax(0, 1fr); }
  .notification-invitation .invitation-actions { grid-column: 1 / -1; }
  .notification-invitation .invitation-actions .btn { flex: 1; }
  .report-card { min-height: 250px; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .report-grid, .section-intro, .toast { display: none !important; }
  .main { margin: 0; padding: 0; }
  .view { display: none !important; }
  #view-relatorios { display: block !important; }
  .data-preview { border: 0; box-shadow: none; padding: 0; }
  body::before { content: 'MotoOleo - Relatorio da frota'; display: block; margin-bottom: 18px; font: 800 22px 'Manrope', sans-serif; }
}
