:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f5f7fb;
  --surface: #fff;
  --ink: #142139;
  --muted: #52627b;
  --line: #e2e8f1;
  --blue: #2563eb;
  --blue-dark: #144cb9;
  --soft-blue: #eaf2ff;
  --amber: #955714;
  --soft-amber: #fff2dc;
  --green: #0e7455;
  --soft-green: #e3f6ee;
  --violet: #6947c7;
  --soft-violet: #f0eaff;
  --radius: 14px;
  --shadow: 0 2px 5px #172c5010;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: #2563eb18; }
:focus-visible { outline: 3px solid #578aff; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 39px); font-weight: 770; letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: 16px; font-weight: 750; letter-spacing: -.016em; }
h3 { font-size: 15px; margin: 21px 0 8px; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.logo { display: flex; align-items: center; width: max-content; gap: 9px; color: #142441; font-size: 23px; font-weight: 820; letter-spacing: -.055em; }
.logo > span:first-child { background: var(--blue); color: white; border-radius: 10px; display: grid; place-items: center; width: 36px; height: 36px; box-shadow: 0 2px 5px #2563eb35; }
.logo .logo-dot { color: var(--blue); margin-left: -8px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid transparent; padding: 8px 12px; min-height: 36px; border-radius: 8px; font-weight: 670; font-size: 12px; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn.primary { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 2px 4px #2563eb25; }
.btn.primary:hover { background: #1c52cd; border-color: #1c52cd; }
.btn.secondary { color: #293c59; background: white; border-color: #d8e2ef; }
.btn.secondary:hover, .icon-btn:hover { background: #edf4ff; border-color: #cddcf0; }
.btn.subtle { color: var(--blue-dark); background: var(--soft-blue); }
.btn.subtle:hover { background: #dceaff; }
.btn.quiet { justify-content: flex-start; color: var(--muted); background: none; padding: 7px 0; font-size: 11px; }
.btn.quiet:hover, .text-link:hover { color: #1249b8; text-decoration: underline; }
.btn.danger { color: #9f2939; background: #ffedf0; }
.btn.danger:hover { background: #ffdde3; }
.icon-btn { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; background: none; color: #506482; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-dark); font-weight: 700; font-size: 12px; }
footer { text-align: center; color: var(--muted); font-size: 11px; padding: 23px 10px 9px; }
.actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow: auto; display: flex; flex-direction: column; padding: 20px 14px 13px; border-right: 1px solid var(--line); background: white; z-index: 4; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.side-top .icon-btn, .crumb .icon-btn { display: none; }
.club-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; margin: 25px 2px 15px; padding: 8px; }
.club-chip b, .person b { font-size: 12px; font-weight: 720; }
.club-chip small, .person small { display: block; font-size: 11px; margin-top: 2px; color: var(--muted); }
.club-icon { background: #e5efff; color: var(--blue); border-radius: 7px; width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; }
.sidebar nav p { color: #627189; font-size: 9px; font-weight: 800; letter-spacing: .12em; margin: 13px 10px 6px; }
.nav-link { display: flex; gap: 9px; align-items: center; padding: 9px 10px; min-height: 38px; border-radius: 7px; color: #485b76; font-size: 12px; font-weight: 640; margin: 2px 0; }
.nav-link:hover { background: #f0f5fd; color: var(--blue-dark); }
.nav-link.active { background: #e9f1ff; color: #2057cd; font-weight: 760; }
.side-bottom { display: grid; margin-top: auto; padding: 19px 5px 0; }
.demo-chip { display: flex; align-items: center; gap: 7px; padding-bottom: 6px; color: #53647e; font-size: 10px; font-weight: 700; }
.demo-chip i, .eyebrow i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e5a338; flex: 0 0 auto; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 24px; background: white; border-bottom: 1px solid var(--line); }
.crumb, .top-actions { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.crumb b { color: var(--ink); }
.top-actions { gap: 10px; }
.header-date { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.top-divider { width: 1px; height: 26px; background: var(--line); }
.person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #2352b7; background: #e7efff; font-size: 11px; font-weight: 800; }
.workspace { min-width: 0; }
.workspace > main { margin: auto; max-width: 1530px; padding: 22px 24px 12px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 5px 0 19px; }
.page-heading p { color: var(--muted); margin-top: 7px; }
.page-heading .actions { justify-content: flex-end; }
.dashboard-hero, .landing-hero, .login-art { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(108deg, #eaf2ff 0%, #edf4ff 46%, #ddeaff 100%); border: 1px solid #d4e4ff; border-radius: var(--radius); }
.dashboard-hero { padding: 23px 25px; margin-bottom: 15px; min-height: 173px; display: flex; align-items: center; }
.hero-copy { position: relative; }
.dashboard-hero p, .landing-hero p { margin: 9px 0 15px; color: #435b80; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #264f9d; font-size: 10px; font-weight: 820; letter-spacing: .12em; margin-bottom: 8px; }
.flight-art { position: absolute; right: 0; top: 0; z-index: -1; height: 100%; width: min(57%, 590px); color: #2563eb; object-fit: cover; mask-image: linear-gradient(to right, transparent 0%, #000 24%); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric, .panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric { padding: 13px 15px 14px; }
.tile-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; }
.tile-icon.blue { color: var(--blue); background: var(--soft-blue); }
.tile-icon.amber { color: var(--amber); background: var(--soft-amber); }
.tile-icon.green { color: var(--green); background: var(--soft-green); }
.tile-icon.violet { color: var(--violet); background: var(--soft-violet); }
.metric p { margin: 8px 0 3px; color: var(--muted); font-size: 12px; font-weight: 620; }
.metric strong { display: block; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.15; font-weight: 780; letter-spacing: -.043em; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.panel + .panel, .dashboard-grid + .panel, .two-columns + .panel, .fleet-grid + .panel { margin-top: 14px; }
.dashboard-grid, .two-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.dashboard-grid > .panel, .two-columns > .panel { margin: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 14px 15px 12px; }
.panel-head > div:first-child { margin-right: auto; }
.panel-head > .icon { color: #5973a0; }
.panel-head p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.income-chart { padding: 4px 14px 11px 7px; }
.income-chart svg { display: block; width: 100%; height: clamp(158px, 14vw, 224px); }
.income-chart text { fill: #526583; font: 10px system-ui; }
.bars { display: grid; gap: 11px; padding: 6px 15px 17px; }
.progress-item div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.progress-item span { color: var(--muted); font-size: 11px; white-space: nowrap; }
progress { display: block; appearance: none; width: 100%; height: 6px; margin-top: 6px; background: #e8eef8; border: 0; border-radius: 7px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e8eef8; border-radius: 7px; }
progress::-webkit-progress-value { background: #4f83f4; border-radius: 7px; }
progress::-moz-progress-bar { background: #4f83f4; border-radius: 7px; }
.list { padding: 0 15px 5px; }
.list-row { display: flex; gap: 9px; align-items: center; min-height: 53px; padding: 7px 0; border-top: 1px solid #edf0f7; font-size: 12px; }
.list-row .tile-icon { width: 32px; height: 32px; }
.list-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.list-end { margin-left: auto; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; font-size: 10px; font-weight: 750; white-space: nowrap; line-height: 1.1; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.blue { color: #2659ba; background: var(--soft-blue); }
.badge.amber { color: #815015; background: var(--soft-amber); }
.badge.green { color: #0d6b4e; background: var(--soft-green); }
.badge.red { color: #a02942; background: #ffe9ee; }
.table-scroll { width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
td, th { padding: 9px 11px; vertical-align: middle; }
td:first-child, th:first-child { padding-left: 15px; }
td:last-child, th:last-child { padding-right: 15px; }
thead th { color: #50617b; font-size: 10px; font-weight: 780; background: #f6f8fc; white-space: nowrap; }
tbody tr + tr { border-top: 1px solid #edf0f7; }
tbody tr:hover { background: #f8fbff; }
td small, tbody th small { display: block; margin-top: 3px; font-weight: 500; color: var(--muted); font-size: 10px; }
td .btn { white-space: nowrap; min-height: 28px; padding: 5px 8px; font-size: 11px; }
td > .actions { flex-wrap: nowrap; }
td:has(> .person) { min-width: 165px; }
.empty { padding: 17px 15px; color: var(--muted); font-size: 12px; }
.searchable .table-scroll { max-height: 580px; }
.searchable thead th { position: sticky; top: 0; z-index: 1; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 0 15px 11px; }
.filter-bar > small { margin-left: auto; color: var(--muted); font-size: 11px; }
.search { display: flex; align-items: center; border: 1px solid #d9e2ef; border-radius: 8px; padding-left: 9px; flex: 1 1 165px; max-width: 360px; color: #557198; }
.search input { border: 0; padding-left: 7px; min-width: 0; }
input, select, textarea { color: var(--ink); background: white; border: 1px solid #d9e2ef; border-radius: 8px; padding: 8px 9px; min-height: 35px; min-width: 0; font-size: 12px; }
select { max-width: 100%; }
textarea { resize: vertical; }
.calendar-table { min-width: 815px; table-layout: fixed; }
.calendar-table th:first-child { width: 138px; }
.calendar-table th, .calendar-table td { padding: 7px; }
.calendar-table td { min-height: 57px; height: 55px; border-left: 1px solid #eef1f7; vertical-align: top; }
.calendar-table .calendar-today { background: #eff5ff; }
.calendar-event { display: block; width: 100%; margin: 0 0 3px; padding: 4px 5px; text-align: left; border: 0; border-left: 2px solid #3c76ec; border-radius: 4px; background: #e4edff; color: #1b4a9f; font-size: 10px; }
.calendar-event small { color: inherit; }
.calendar-event.done { border-left-color: #27a67c; background: #e1f5ed; color: #185d47; }
.calendar-event:hover { filter: brightness(.96); }
.calendar-empty { color: #8494ab; }
.fleet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fleet-card { margin: 0 !important; padding: 13px; }
.fleet-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 9px; }
.fleet-card h2 { font-size: 20px; }
.fleet-card > p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.fleet-card dl { display: grid; gap: 6px; grid-template-columns: 1fr auto; font-size: 11px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.details { display: grid; gap: 8px 15px; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); margin: 0; }
.details.padded { padding: 4px 15px 16px; }
.donut { display: flex; align-items: center; gap: 12px; padding: 2px 15px 15px; }
.donut svg { width: min(41%, 140px); flex: 0 0 auto; }
.donut strong { font-size: 20px; letter-spacing: -.03em; }
.donut p, .donut small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.donut small { display: block; }
.donut small i { display: inline-block; width: 7px; height: 7px; border-radius: 3px; margin-right: 2px; }
.legend-0 { background: #2563eb; }.legend-1 { background: #6795ff; }.legend-2 { background: #f5ac38; }.legend-3 { background: #e67d3b; }
.public { margin: 0 auto; max-width: 1220px; padding: 0 28px; }
.public-header { display: flex; justify-content: space-between; align-items: center; gap: 9px; height: 70px; }
.public-main { padding-top: 9px; }
.landing-hero { min-height: 340px; display: flex; align-items: center; padding: 35px 45px; }
.landing-hero .flight-art { width: 65%; }
.landing-hero h1 { font-size: clamp(41px, 6vw, 74px); line-height: .98; }
.landing-hero p { max-width: 405px; font-size: 15px; line-height: 1.6; margin-top: 14px; }
.landing-hero .btn { padding: 10px 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.feature { padding: 13px; margin: 0 !important; }
.feature h2 { margin-top: 7px; }
.feature p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; max-width: 880px; margin: 22px auto 0; }
.login-art { display: grid; align-items: start; padding: 30px 22px; min-height: 425px; }
.login-art .flight-art { top: auto; bottom: 8%; width: 100%; height: 51%; mask-image: none; }
.login-art h1 { font-size: clamp(34px, 5vw, 58px); }
.login-art p { margin-top: 8px; color: var(--muted); }
.login-card { padding: 21px; }
.login-card > p { color: var(--muted); margin-top: 7px; }
.login-card form { display: grid; gap: 10px; margin-top: 17px; }
form label { display: grid; gap: 5px; font-size: 12px; font-weight: 680; }
form label > * { width: 100%; }
.credentials { display: grid; gap: 8px; margin-top: 16px; padding: 11px; background: #f0f5ff; border: 1px solid #deebff; border-radius: 10px; }
.credentials h2 { color: #254d94; font-size: 13px; }
.credentials > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 5px; align-items: center; font-size: 11px; }
.credentials small { grid-column: 1; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.credentials .btn { grid-column: 2; grid-row: 1 / 3; padding: 5px 7px; min-height: 27px; font-size: 10px; }
dialog { border: 1px solid var(--line); border-radius: 15px; width: min(740px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 0; color: var(--ink); box-shadow: 0 19px 65px #172c5050; }
dialog::backdrop { background: #14234175; }
.modal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 16px; background: white; border-bottom: 1px solid var(--line); z-index: 2; }
.modal-head h2 { font-size: 19px; }
.modal-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.modal-body { padding: 14px 16px 17px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.wide { grid-column: 1 / -1; }
.modal-actions, .modal-inline-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.modal-inline-actions { justify-content: start; margin: 0 0 12px; }
.details + .modal-inline-actions { margin-top: 13px; }
.form-error { color: #8f2538; background: #ffeaf0; border-radius: 7px; padding: 7px 9px; margin-top: 6px; font-size: 12px; }
#toast { position: fixed; right: 16px; bottom: 16px; z-index: 8; display: flex; gap: 8px; align-items: center; background: #1a3159; color: white; padding: 10px 13px; border-radius: 9px; box-shadow: 0 4px 14px #14213935; visibility: hidden; opacity: 0; transition: opacity .18s; max-width: calc(100% - 32px); }
#toast.visible { opacity: 1; visibility: visible; }
#receipt { display: none; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .workspace > main { padding-inline: 16px; }
  .topbar { padding-inline: 16px; }
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: min(265px, 90vw); box-shadow: 0 0 0 100vmax #14234160; }
  .sidebar.open { display: flex; }
  .side-top .icon-btn, .crumb .icon-btn { display: inline-grid; }
  .topbar { min-height: 55px; }
}
@media (max-width: 650px) {
  .workspace > main { padding: 12px 10px; }
  .topbar { padding-inline: 7px; }
  .crumb, .top-actions { gap: 4px; }
  .crumb > span, .crumb > .icon, .top-user > span:last-child, .header-date, .top-divider { display: none; }
  .page-heading { align-items: start; flex-direction: column; }
  .page-heading .actions { justify-content: start; }
  .dashboard-hero { padding: 15px 12px; min-height: 157px; }
  .dashboard-hero .flight-art { opacity: .45; }
  .metrics, .metrics.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric { padding: 9px; }
  .metric strong { font-size: 20px; }
  .dashboard-grid, .two-columns { grid-template-columns: 1fr; gap: 10px; }
  .public { padding: 0 12px; }
  .public-header { height: 62px; }
  .landing-hero { min-height: 300px; padding: 18px; }
  .landing-hero .flight-art { opacity: .5; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .login-layout { grid-template-columns: 1fr; margin-top: 3px; gap: 8px; }
  .login-art { min-height: 130px; padding: 12px 16px; }
  .login-art .flight-art { width: 63%; height: 100%; bottom: 0; }
}
@media (max-width: 370px) {
  .field-grid, .fleet-grid { grid-template-columns: 1fr; }
  .filter-bar small { margin-left: 0; }
}
@media print {
  @page { margin: 19mm; }
  body { color: #111; background: white; }
  #app, dialog, #toast, dialog::backdrop { display: none !important; }
  #receipt:not(:empty) { display: block; }
  #receipt h1 { margin-top: 20px; }
  #receipt h2, #receipt p { margin-top: 7px; }
  #receipt dl { padding: 17px 0; margin-top: 16px; border-block: 1px solid #ddd; }
}
