:root { color-scheme: light; font-family: Arial, sans-serif; color: #142541; background: #f4f7fc; }
html { overflow-y: scroll; scrollbar-gutter: stable both-edges; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; overflow-x: hidden; } #portal-app { min-width: 0; overflow-x: clip; } button, select { font: inherit; } button { border: 0; border-radius: 7px; padding: 9px 12px; cursor: pointer; font-weight: 700; } [hidden] { display: none !important; }
.public-home { min-height: 100vh; background: #f4f7fc; }.public-topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(20px, calc((100% - 1160px) / 2)); border-bottom: 1px solid #dce4f2; background: #fff; }.public-main { max-width: 1160px; margin: 0 auto; padding: 54px 20px 60px; }.public-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 32px; align-items: center; padding: 42px 0 50px; }.public-hero h1 { max-width: 650px; margin: 0 0 14px; font-size: 42px; line-height: 1.1; }.public-hero p:not(.eyebrow) { max-width: 660px; margin: 0; color: #58667e; font-size: 17px; line-height: 1.55; }.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }.link-button { display: inline-flex; align-items: center; justify-content: center; color: #1267d6; text-decoration: none; }.access-status { min-height: 20px; color: #65728a !important; font-size: 13px !important; }.hero-summary { display: grid; gap: 9px; padding: 28px; border: 1px solid #cfe0f7; border-radius: 8px; color: #eff6ff; background: #18365d; box-shadow: 0 16px 34px #163b6c1c; }.hero-summary strong { font-size: 19px; }.hero-summary span { color: #c9dcf5; line-height: 1.45; }.public-section { margin-top: 26px; }.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.plan-card { display: grid; align-content: start; gap: 10px; min-height: 274px; padding: 22px; border: 1px solid #dce4f2; border-radius: 8px; background: #fff; }.plan-card.featured { border-color: #8eb8ed; background: #f5f9ff; }.plan-card h3 { margin: 0; font-size: 20px; }.plan-card > strong { color: #153b70; font-size: 22px; }.plan-card > span { color: #61708a; font-size: 13px; line-height: 1.4; }.plan-card ul { display: grid; gap: 6px; margin: 4px 0 0; padding-left: 18px; color: #40516c; font-size: 13px; }.text-link { align-self: end; color: #1267d6; font-weight: 800; text-decoration: none; }.public-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border: 1px solid #dce4f2; border-radius: 8px; background: #fff; }.public-note h2 { margin: 0 0 5px; font-size: 19px; }.public-note p { max-width: 650px; margin: 0; color: #65728a; font-size: 13px; line-height: 1.45; }
.eyebrow { margin: 0 0 5px; color: #1267d6; font-size: 12px; font-weight: 800; }.primary { color: #fff; background: #1267d6; }.quiet { color: #1267d6; background: #eaf2ff; }.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; font-size: 20px; line-height: 1; }.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(20px, calc((100% - 1160px) / 2)); border-bottom: 1px solid #dce4f2; background: #fff; }.brand, .account-actions { display: flex; align-items: center; gap: 10px; }.brand { min-width: 0; color: inherit; text-decoration: none; }.brand div { display: grid; gap: 2px; }.brand strong { font-size: 17px; }.brand span, .account-actions span { color: #65728a; font-size: 13px; }.brand-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
main { max-width: 1160px; margin: 0 auto; padding: 30px 20px 48px; }.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }.page-heading h1 { margin: 0 0 5px; font-size: 26px; }.vehicle-control { display: grid; min-width: 235px; gap: 5px; color: #536078; font-size: 12px; font-weight: 700; }.vehicle-control select { min-height: 38px; padding: 7px 9px; border: 1px solid #cfdced; border-radius: 6px; color: #17233d; background: #fff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }.metrics article, .panel { min-width: 0; border: 1px solid #dce4f2; border-radius: 8px; background: #fff; }.metrics article { min-height: 76px; padding: 13px; text-align: center; }.metrics span { display: block; color: #65728a; font-size: 12px; }.metrics strong { display: block; margin-top: 7px; font-size: 20px; }.layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; }.panel { padding: 18px; }.wide-panel { grid-column: 1 / -1; }.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 14px; }.panel-heading h2 { margin: 0; font-size: 18px; }.panel-heading span { color: #65728a; font-size: 12px; }.badge { min-width: 70px; padding: 4px 7px; border-radius: 4px; color: #0b7044 !important; background: #e7f8ee; text-align: center; font-weight: 800; }
.portal-tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; overflow-x: auto; border: 1px solid #dce4f2; border-radius: 8px; background: #eaf1fb; }.tab { flex: 1 0 max-content; color: #536078; background: transparent; white-space: nowrap; }.tab.is-active { color: #1267d6; background: #fff; box-shadow: 0 1px 3px #1425411c; }.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 0 0 16px; }.section-heading h2 { margin: 0 0 4px; font-size: 22px; }.section-heading p { margin: 0; color: #65728a; font-size: 13px; }.section-actions { align-items: center; }.inline-actions { display: flex; gap: 8px; align-items: end; }.filter-control { display: grid; gap: 4px; color: #536078; font-size: 12px; font-weight: 700; }.filter-control select, .filter-control input { min-height: 38px; padding: 7px 9px; border: 1px solid #cfdced; border-radius: 6px; color: #17233d; background: #fff; }.text-button { padding: 2px 0; color: #1267d6; background: transparent; font-size: 13px; }.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.vehicle-card { display: grid; gap: 5px; min-height: 112px; padding: 16px; color: #172f56; border: 1px solid #dce4f2; background: #fff; text-align: left; }.vehicle-card:hover, .vehicle-card.is-selected { border-color: #1267d6; background: #f3f8ff; }.vehicle-card strong { font-size: 16px; }.vehicle-card span { color: #65728a; font-size: 12px; }.vehicle-card b { margin-top: auto; color: #1267d6; font-size: 14px; }.full-list { max-height: 620px; overflow: auto; }.documents-layout { align-items: start; }.notice { margin: 0 0 14px; padding: 11px 13px; border: 1px solid #d7e4f7; border-radius: 7px; color: #52647f; background: #edf5ff; font-size: 13px; line-height: 1.4; }.history-filters { flex-wrap: wrap; justify-content: flex-end; }.search-control { min-width: 220px; }.table-panel { padding: 18px; }.table-wrap { width: 100%; overflow: auto; }.table-wrap table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 13px; }.table-wrap th { padding: 10px 12px; color: #536078; border-bottom: 1px solid #cfdced; background: #f4f7fc; font-size: 11px; text-align: left; text-transform: uppercase; }.table-wrap td { padding: 11px 12px; color: #30425f; border-bottom: 1px solid #e5ebf4; vertical-align: top; }.table-wrap tr:last-child td { border-bottom: 0; }.table-wrap .amount-cell { font-weight: 800; text-align: right; white-space: nowrap; }.amount-cell.is-expense { color: #b33e2a; }.amount-cell.is-income { color: #087744; }.empty-row td { padding: 22px 12px; color: #65728a; text-align: center; }
.mobile-nav { display: none; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }.details div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e7edf6; }.details dt { color: #65728a; font-size: 13px; }.details dd { margin: 0; color: #172f56; font-size: 13px; font-weight: 700; text-align: right; }.compact-list, .entry-list { display: grid; gap: 0; }.list-empty { margin: 0; color: #65728a; font-size: 13px; }.document-row, .entry-row { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid #e7edf6; }.document-row:first-child, .entry-row:first-child { border-top: 0; }.document-row strong, .entry-row strong { color: #172f56; font-size: 14px; }.document-row span, .entry-row span { color: #65728a; font-size: 12px; }.entry-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }.entry-row .entry-value { color: #0b7044; font-size: 14px; font-weight: 800; text-align: right; }.entry-row.expense .entry-value { color: #b33e2a; }
body.dark { color: #e8edf7; background: #0d1423; }.dark .access-gate { background: #0d1423; }.dark .access-card, .dark .topbar, .dark .panel, .dark .metrics article { color: #e8edf7; border-color: #273650; background: #121c2f; }.dark .brand span, .dark .account-actions span, .dark .page-heading p:not(.eyebrow), .dark .metrics span, .dark .panel-heading span, .dark .details dt, .dark .document-row span, .dark .entry-row span, .dark .list-empty { color: #a7b5cb; }.dark .quiet { color: #a8ceff; background: #203859; }.dark .vehicle-control select { color: #e8edf7; border-color: #314360; background: #101a2c; }.dark .details div, .dark .document-row, .dark .entry-row { border-color: #253650; }.dark .details dd, .dark .document-row strong, .dark .entry-row strong { color: #f0f4fb; }
body.dark { color: #e8edf7; background: #0d1423; }.dark .public-home { background: #0d1423; }.dark .public-topbar, .dark .topbar, .dark .panel, .dark .metrics article { color: #e8edf7; border-color: #273650; background: #121c2f; }.dark .brand span, .dark .account-actions span, .dark .page-heading p:not(.eyebrow), .dark .metrics span, .dark .panel-heading span, .dark .details dt, .dark .document-row span, .dark .entry-row span, .dark .list-empty { color: #a7b5cb; }.dark .quiet { color: #a8ceff; background: #203859; }.dark .vehicle-control select { color: #e8edf7; border-color: #314360; background: #101a2c; }.dark .details div, .dark .document-row, .dark .entry-row { border-color: #253650; }.dark .details dd, .dark .document-row strong, .dark .entry-row strong { color: #f0f4fb; }.dark .public-hero p:not(.eyebrow), .dark .plan-card > span, .dark .plan-card ul, .dark .public-note p { color: #a7b5cb; }.dark .plan-card, .dark .public-note { border-color: #273650; background: #121c2f; }.dark .plan-card.featured { border-color: #386da7; background: #162744; }.dark .plan-card > strong { color: #b8d7ff; }
.dark .portal-tabs { border-color: #273650; background: #101a2c; }.dark .tab { color: #a7b5cb; }.dark .tab.is-active { color: #9bc8ff; background: #203859; }.dark .section-heading p, .dark .vehicle-card span { color: #a7b5cb; }.dark .filter-control { color: #a7b5cb; }.dark .filter-control select, .dark .filter-control input { color: #e8edf7; border-color: #314360; background: #101a2c; }.dark .vehicle-card { color: #f0f4fb; border-color: #273650; background: #121c2f; }.dark .vehicle-card:hover, .dark .vehicle-card.is-selected { border-color: #4d94e8; background: #172944; }.dark .notice { color: #b9cbe3; border-color: #2d4a70; background: #14243a; }.dark .table-wrap th { color: #afbfdb; border-color: #2d405d; background: #18253a; }.dark .table-wrap td { color: #d5dfed; border-color: #263954; }.dark .empty-row td { color: #a7b5cb; }.dark .mobile-nav { border-color: #273650; background: #121c2f; }.dark .mobile-tab { color: #a7b5cb; }.dark .mobile-tab.is-active { color: #9bc8ff; background: #203859; }
@media print { .topbar, .page-heading, .portal-tabs, .section-actions .inline-actions { display: none !important; } main { max-width: none; padding: 0; } body { background: #fff; } .portal-view[hidden] { display: none !important; } .panel, .metrics article { box-shadow: none; } }
@media (max-width: 760px) { .public-topbar, .topbar, .page-heading, .section-heading { align-items: flex-start; flex-direction: column; }.public-main { padding-top: 28px; }.public-hero { grid-template-columns: 1fr; padding-top: 16px; }.public-hero h1 { font-size: 32px; }.plan-grid { grid-template-columns: 1fr; }.public-note { align-items: stretch; flex-direction: column; }.account-actions { width: 100%; justify-content: space-between; }.vehicle-control { width: 100%; }.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.layout { grid-template-columns: 1fr; }.wide-panel { grid-column: auto; }.details { grid-template-columns: 1fr; }.vehicle-grid { grid-template-columns: 1fr; }.section-actions, .inline-actions { width: 100%; }.inline-actions { justify-content: space-between; }.filter-control { width: 100%; }.filter-control select, .filter-control input { width: 100%; } #portal-app main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }.portal-tabs { display: none; }.table-panel { max-width: 100%; }.table-wrap { max-width: 100%; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }.mobile-nav { position: fixed !important; z-index: 2147483647; right: auto; bottom: 0; left: 0; display: grid !important; width: 100vw; max-width: 100vw; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid #dce4f2; background: #fff; box-shadow: 0 -5px 20px #14254112; }.mobile-tab { display: grid; min-height: 54px; padding: 5px 2px; place-items: center; align-content: center; gap: 2px; color: #65728a; background: transparent; font-weight: 700; }.mobile-tab span { font-size: 20px; line-height: 1; }.mobile-tab small { font-size: 10px; white-space: nowrap; }.mobile-tab.is-active { color: #1267d6; background: #eaf2ff; } }
