/* Acron Aviation palette (from acronaviation.com CSS variables) */
:root {
  --yoke-50: #f0f3f4; --yoke-100: #ccd7d8; --yoke-200: #99afb1; --yoke-300: #335e64; --yoke-400: #00363d; --yoke-500: #002b31;
  --thrust-50: #e6efef; --thrust-100: #ccdfdf; --thrust-200: #99bfbf; --thrust-300: #347f7e; --thrust-400: #015f5e; --thrust-500: #014c4b;
  --pitch-100: #ccfae8; --pitch-200: #9af5d1; --pitch-300: #35eba4; --pitch-400: #02e68d; --pitch-500: #02b871;
  --climb: #ccf0f2; --warning: #e2cc57; --info: #02cbe6; --error: #c64c4c;

  --bg: var(--yoke-50); --card: #fff; --line: #d6e0e1;
  --text: var(--yoke-500); --muted: var(--yoke-300); --faint: #6b878a;
  --ok-text: var(--thrust-400); --warn-text: #8a7514; --bad-text: #a93b3b; --info-text: #00727f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
h1 { font-size: 20px; margin: 0; } h2 { font-size: 15px; margin: 0; }
.topbar { background: var(--yoke-500); color: #fff; display: flex; align-items: center; gap: 28px; padding: 0 22px; height: 56px; }
.brand { font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { width: 12px; height: 22px; background: var(--pitch-400); border-radius: 2px; transform: skewX(-12deg); }
.topbar nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { white-space: nowrap; text-decoration: none; padding: 7px 12px; border-radius: 8px; color: rgba(255,255,255,.65); font-weight: 600; }
.topbar nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.topbar nav a.active { color: #fff; background: rgba(2,230,141,.16); box-shadow: inset 0 -2px 0 var(--pitch-400); }
.who { color: rgba(255,255,255,.7); font-size: 13px; white-space: nowrap; }
.stripe { display: flex; height: 3px; } .stripe i { flex: 1; background: var(--pitch-400); } .stripe i:nth-child(1){opacity:.35} .stripe i:nth-child(2){opacity:.55} .stripe i:nth-child(3){opacity:.78}
button.link { background: none; border: 0; color: var(--pitch-400); cursor: pointer; font: inherit; margin-left: 8px; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 22px; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.fresh { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.fresh.ok { background: var(--pitch-100); color: var(--ok-text); } .fresh.bad { background: #f7e1e1; color: var(--bad-text); }

.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: minmax(0, 1fr); } .topbar { gap: 12px; padding: 0 12px; } .who { display: none; } .wrap { padding: 14px; } .brand { font-size: 0; gap: 0; } .brand-mark { font-size: 14px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.card > .ch { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--yoke-50); }
.card > .ch a { font-size: 12px; color: var(--thrust-400); text-decoration: none; font-weight: 700; }
.stat { padding: 18px; }
.stat .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-size: 30px; font-weight: 800; margin-top: 6px; color: var(--yoke-400); font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.simrow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); margin: 16px 0; }
.simcard { background: #fff; border: 1px solid var(--pitch-200); border-radius: 12px; padding: 12px 14px; display: block; text-decoration: none; }
.simcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.simcard.warn { border-color: #f1e3a1; } .simcard.bad { border-color: #ebb9b9; }
.simcard b { display: block; font-size: 13px; min-width: 0; }
.simcard span.sub { font-size: 12px; color: var(--faint); white-space: nowrap; }
.live-dot { color: var(--pitch-500); }
.list > div { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--yoke-50); }
.list > div:first-child { border-top: 0; }
.list .time { width: 64px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.list .time b { display: block; color: var(--yoke-400); } .list .time span { font-size: 12px; color: var(--faint); }
.list .main { flex: 1; min-width: 0; } .list .main b, .list .main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .main span { font-size: 12px; color: var(--faint); }
.list .done { opacity: .5; } .list .live { background: #eefcf6; }
.emptymsg { padding: 30px; text-align: center; color: var(--faint); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--yoke-50); color: var(--muted); }
.b-ok { background: var(--pitch-100); color: var(--ok-text); } .b-warn { background: #fbf5d6; color: var(--warn-text); } .b-bad { background: #f7e1e1; color: var(--bad-text); }
.b-wet { background: var(--climb); color: var(--info-text); } .b-dry { background: var(--thrust-50); color: var(--thrust-400); } .b-mx { background: #fbf5d6; color: var(--warn-text); } .b-live { background: var(--pitch-100); color: var(--thrust-500); }
.p-a { background: #f7e1e1; color: var(--bad-text); } .p-b { background: #fcebd9; color: #a8591f; } .p-c { background: #fbf5d6; color: var(--warn-text); } .p-d { background: var(--yoke-50); color: var(--muted); }
.s-new { background: var(--climb); color: var(--info-text); } .s-work { background: #fbf5d6; color: var(--warn-text); } .s-parts { background: #ece8f8; color: #6a54b8; } .s-hold { background: var(--yoke-50); color: var(--muted); } .s-closed { background: var(--pitch-100); color: var(--ok-text); }
.bars { padding: 16px 18px; display: grid; gap: 12px; }
.bars .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bars .track { height: 8px; background: var(--yoke-50); border-radius: 4px; } .bars .track i { display: block; height: 100%; border-radius: 4px; }

/* forms, tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--yoke-100); border-radius: 8px; background: #fff; color: var(--text); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(2,230,141,.45); border-color: var(--pitch-500); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; background: var(--yoke-400); color: #fff; }
.btn.gold { background: var(--pitch-400); color: var(--yoke-400); } .btn.gold:hover { background: var(--pitch-300); }
.btn.ghost { background: #fff; color: var(--yoke-400); border: 1px solid var(--yoke-100); }
.btn:disabled { opacity: .5; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--yoke-100); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; border: 0; background: #fff; padding: 8px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--yoke-400); color: #fff; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7f9f9; }
td { padding: 10px 14px; border-bottom: 1px solid var(--yoke-50); vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f7f9f9; }
td.desc { max-width: 480px; } td.desc div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.small { font-size: 12px; color: var(--faint); }
label.f { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 4px; }
label.f.req::after { content: ' *'; color: var(--pitch-500); }
.f-row { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-row > div > select, .f-row > div > input { width: 100%; }
.err { background: #f7e1e1; color: var(--bad-text); border: 1px solid #ebb9b9; padding: 8px 12px; border-radius: 8px; margin-top: 10px; font-size: 13px; display: none; }

/* modal + drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,43,49,.5); display: none; z-index: 20; }
.overlay.open { display: block; }
.modal { background: #fff; border-radius: 14px; max-width: 680px; margin: 6vh auto; padding: 24px 26px; max-height: 88vh; overflow-y: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; overflow-y: auto; padding: 22px 24px; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
.mh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--faint); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.comments { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.comment { padding: 8px 0; border-bottom: 1px solid var(--yoke-50); } .comment b { font-size: 13px; } .comment p { margin: 3px 0 0; white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; margin-top: 14px; } .kv dt { color: var(--faint); } .kv dd { margin: 0; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--yoke-500); }
.login form { background: #fff; padding: 30px; border-radius: 14px; width: min(360px, 92vw); }
.login input { width: 100%; }
