:root, html.dark {
  --navy: #3ee0c4;
  --navy-2: #121820;
  --teal: #3ee0c4;
  --amber: #f0b429;
  --gold: #f0b429;
  --green: #3ee0c4;
  --bg: #07090d;
  --panel: rgba(16, 20, 28, .72);
  --glass: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .10);
  --muted: #8b97a8;
  --text: #f3f6fa;
  --shadow: 0 18px 50px rgba(0, 0, 0, .4);
  --sidebar: 260px;
  --radius: 24px;
  --radius-sm: 14px;
  --input: rgba(8, 12, 18, .85);
  --top: rgba(8, 10, 14, .7);
  --banner: transparent;
  --blur: 20px;
  --accent-ink: #06241c;
}
html.light {
  --navy: #0b1f3a;
  --navy-2: #16325a;
  --teal: #0d7a7a;
  --amber: #c2410c;
  --gold: #d97706;
  --green: #15803d;
  --bg: #eef1f5;
  --panel: #ffffff;
  --glass: #ffffff;
  --line: #e5e7eb;
  --muted: #6b7280;
  --text: #111827;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --input: #ffffff;
  --top: #ffffff;
  --banner: #dfe4ec;
  --blur: 0px;
  --accent-ink: #fff;
}
html.dark .sidebar { background: #05070b; }
html.dark .side-nav button { color: #c5d0dc; }
html.dark .side-nav button.on { background: rgba(62, 224, 196, .16); color: #fff; }
html.dark .top { background: var(--top); border-color: var(--line); }
html.dark .ac-pill, html.dark .ghost {
  background: var(--glass); color: var(--text); border-color: var(--line);
}
html.dark .search, html.dark select, html.dark textarea, html.dark input[type="text"],
html.dark input[type="number"], html.dark input[type="date"] {
  background: var(--input); color: var(--text); border-color: var(--line);
}
html.dark .popover, html.dark .modal-card { background: #12161e; color: var(--text); }
html.dark .modal-head { background: #12161e; }
html.dark .scan { filter: brightness(.9); }
html.dark .insp-late { background: #3a1a1e; border-color: #ef4444; }
html.dark .btn.navy { background: var(--teal); color: var(--accent-ink); }
html.dark .chip { background: var(--glass); color: var(--text); }
html.dark .chip.on { background: var(--teal); color: var(--accent-ink); }
html.dark .okbox { background: rgba(62, 224, 196, .16); color: var(--teal); }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}
#amxt-root {
  position: relative;
  min-height: 100dvh;
  background-color: transparent;
}
.amxt-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.amxt-watermark span {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-32deg);
  font-size: clamp(160px, 42vw, 560px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  color: #3ee0c4;
  opacity: 0.28;
  filter: blur(14px);
}
html.light .amxt-watermark span {
  color: #0d7a7a;
  opacity: 0.22;
}
.muted { color: var(--muted); font-size: 12px; }
.shell {
  display: flex;
  min-height: 100dvh;
  position: relative;
  background: transparent;
}
.sidebar {
  width: var(--sidebar);
  background: #05070b;
  color: #fff;
  padding: 20px 16px;
  display: none;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; }
.mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: #0b1f3a; display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0; border: 0;
}
.amxt-logo { width: 42px; height: 42px; display: block; object-fit: cover; }
.brand strong { font-size: 14px; letter-spacing: .01em; }
.side-nav button {
  width: 100%; text-align: left; background: transparent; color: #c5d0dc;
  border: 0; border-radius: 999px; padding: 10px 14px; font-size: 14px; cursor: pointer;
}
.side-nav button.on { background: rgba(62, 224, 196, .16); color: #fff; font-weight: 600; }
.side-foot { margin-top: 8px; color: var(--muted); }
.side-foot.save-err { color: #fecaca; font-weight: 600; }
#save-slot { padding: 0 16px; }
.save-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(185, 28, 28, .2);
  border: 1px solid rgba(252, 165, 165, .4);
  color: #fecaca;
  font-size: 13px;
}
html.dark .save-banner { background: rgba(127, 29, 29, .45); border-color: #fca5a5; color: #fee2e2; }
html.light .save-banner { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
#amxt-account-side { margin-top: auto; }
#amxt-account-side .amxt-user {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--text);
}
#amxt-account-side img, #amxt-account-side .amxt-user-initial {
  width: 36px; height: 36px; border-radius: 999px; object-fit: cover; flex-shrink: 0;
}
#amxt-account-side .amxt-user-initial {
  display: grid; place-items: center;
  background: var(--teal); color: var(--accent-ink);
  font-weight: 800; font-size: 12px; letter-spacing: .04em; line-height: 1;
}
#amxt-account-side .amxt-user-name {
  display: block; flex: 1; min-width: 0; max-width: none; font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#amxt-account-side button:not(.amxt-user-alias) {
  flex: 1 0 100%; width: 100%; font-size: 13px; font-weight: 700; padding: 10px 12px;
  border: 1px solid var(--line); background: var(--glass); color: var(--text); border-radius: 999px;
}
.amxt-user-alias {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  margin: 0; padding: 0; border: 0; background: transparent;
  color: inherit; cursor: pointer; text-align: left; font: inherit;
}
.amxt-user-alias:hover .amxt-user-name { text-decoration: underline; text-underline-offset: 3px; }
#amxt-account-side .amxt-user-alias { flex: 1 1 auto; }
.profile-edit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 12px 0 8px;
}
.profile-edit-photo {
  width: 72px; height: 72px; border-radius: 999px; object-fit: cover;
  background: var(--teal); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  flex-shrink: 0;
}
.profile-edit .photo-pick { margin: 0; }
.profile-edit .photo-pick input { max-width: 160px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: transparent; }
.top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--top);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
#top-title { font-weight: 700; font-size: 18px; flex: 1; letter-spacing: -.02em; }
#amxt-account { display: flex; align-items: center; max-width: 52vw; }
#amxt-account .amxt-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
#amxt-account img, #amxt-account .amxt-user-initial {
  width: 28px; height: 28px; border-radius: 999px; object-fit: cover; flex-shrink: 0;
}
#amxt-account .amxt-user-initial {
  display: grid; place-items: center; background: var(--teal); color: var(--accent-ink);
  font-weight: 800; font-size: 11px; letter-spacing: .04em; line-height: 1;
}
#amxt-account .amxt-user-name { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#amxt-account button:not(.amxt-user-alias) {
  font-size: 12px; font-weight: 700; width: auto; height: auto; padding: 6px 10px;
  border: 1px solid var(--line); background: var(--glass); color: var(--text); border-radius: 999px;
  cursor: pointer;
}
.ac-pill, .ghost {
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px;
  padding: 7px 12px; font-weight: 600; cursor: pointer; color: var(--text);
}
.ac-pill { background: var(--teal); color: var(--accent-ink); border-color: transparent; }
#menu-btn { display: none; }
#menu-btn svg { width: 18px; height: 18px; display: block; }
main, #app { padding: 20px; padding-bottom: 32px; max-width: 1100px; width: 100%; margin: 0 auto; background: transparent; }
.grid-2 { display: grid; gap: 12px; }
.card {
  background: rgba(16, 20, 28, .38);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html.light .card { background: rgba(255, 255, 255, .72); }
.hero { display: flex; gap: 14px; align-items: flex-start; }
.okbox {
  width: 44px; height: 44px; border-radius: 999px; background: rgba(62, 224, 196, .16);
  color: var(--teal); display: grid; place-items: center; font-weight: 800;
}
.h1 { font-size: 22px; font-weight: 700; color: var(--teal); margin: 0; letter-spacing: -.03em; }
.hero-down .h1 { color: #f87171; }
.hero-down .okbox { background: rgba(248, 113, 113, .16); color: #f87171; }
.hero-vfr .h1 { color: var(--gold); }
.hero-vfr .okbox { background: rgba(240, 180, 41, .16); color: var(--gold); font-size: 10px; }
.times { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.times > div {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 76px;
}
.times b { display: block; color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.sec {
  background: var(--banner);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  padding: 10px 8px 8px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 10px;
}
.insp-sec { margin: -16px -16px 12px; border-radius: 24px 24px 0 0; }
.dash-tile {
  position: relative;
  overflow: hidden;
  padding: 0 14px 14px;
}
.dash-tile > .sec,
.dash-tile .tile-banner {
  background: transparent;
  margin: 0 -14px 12px;
  padding: 14px 40px 8px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
}
.insp {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px;
  background: #1c232e;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.light .insp { background: #ffffff; }
.insp:hover { border-color: var(--navy); }
.insp-grid { display: grid; gap: 10px; }
.insp-grid-sq {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.insp-sq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 10px 6px;
  aspect-ratio: 1;
  min-height: 0;
  background: #222a38;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.light .insp-sq { background: #ffffff; }
.insp-sq strong {
  font-size: 11px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.insp-sq .when { text-align: center; max-width: none; font-size: 11px; }
.insp-sq .ring, .insp-sq .ring-svg { width: 32px; height: 32px; }
.insp-panel { padding-top: 16px; }
.due-card { width: min(420px, 100%); }
.ring {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent; border: 0; box-shadow: none; outline: none;
}
.ring-svg { width: 40px; height: 40px; display: block; background: transparent; }
.ring-svg, .ring-svg * { outline: none; box-shadow: none; }
.ring-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3.5; }
html.dark .ring-track { stroke: rgba(255,255,255,.14); }
html.light .ring-track { stroke: #d5dbe3; }
.ring-fill { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.when { font-weight: 700; color: var(--gold); text-align: right; max-width: 7.5rem; }
.when.teal, .when.ok { color: var(--teal); }
.when.gold { color: var(--gold); }
.when.red { color: #b91c1c !important; }
.insp-late { border-color: #f87171; background: #3a1a1e; }
.insp-late strong { color: #b91c1c; }
.dash-hint { margin: 0 0 10px; }
.dash-stack { display: grid; gap: 12px; }
.dash-wide { grid-column: 1 / -1; }
.dash-handle {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  border: 0; background: transparent; color: var(--muted); cursor: grab;
  font-size: 14px; letter-spacing: -2px; padding: 4px;
}
.dash-handle:active { cursor: grabbing; }
.pm-dash { cursor: pointer; }
.dash-compact .insp-sq { padding: 8px 4px; }
.dash-compact .insp-grid-sq { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.pm-alert { color: #b91c1c; }
.search, select, textarea,
.form input[type="text"],
.form input[type="number"],
.form input[type="date"],
.form input:not([type]) {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  background: var(--input);
  color: var(--text);
  box-sizing: border-box;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip {
  border: 0; background: var(--glass); border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text);
}
.chip.on { background: var(--teal); color: var(--accent-ink); }
.logrow, .adrow {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.logrow:hover, .pick:hover { background: rgba(255,255,255,.04); }
html.light .logrow:hover, html.light .pick:hover { background: #f8fafc; }
.pick { cursor: pointer; }
.scan {
  min-height: 160px; border-radius: 12px; padding: 14px;
  background: repeating-linear-gradient(#e8d4a8 0 22px, #d7c08a 22px 23px);
  color: #1f1408; font-family: Georgia, serif;
}
.log-photos { display: grid; gap: 10px; margin-bottom: 10px; }
.log-photo { width: 100%; border-radius: 10px; display: block; background: #e8eef5; }
.log-thumbs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 8px; }
.log-thumb {
  position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #e8eef5;
}
.log-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.log-thumb button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 99px; background: rgba(15,23,42,.75); color: #fff;
  font-size: 14px; line-height: 22px; cursor: pointer;
}
.photo-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; }
.photo-btn input { display: none; }
.btn {
  border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 650;
  cursor: pointer; width: 100%; font-size: 13px; box-sizing: border-box;
  height: 36px; display: inline-flex; align-items: center; justify-content: center;
}
.btn.navy { background: var(--teal); color: var(--accent-ink); }
.btn.danger { background: #b91c1c; color: #fff; }
.btn.teal { background: var(--teal); color: var(--accent-ink); }
.btn.ghost { background: var(--glass); border: 1px solid var(--line); color: var(--text); width: auto; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill.ok { background: rgba(62, 224, 196, .18); color: var(--teal); }
.pill.warn { background: rgba(240, 180, 41, .18); color: var(--gold); }
.pill.na { background: var(--glass); color: var(--muted); }
.sq { border-left: 4px solid #ddd; }
.sq.high { border-left-color: #b91c1c; }
.sq.med { border-left-color: var(--gold); }
.sq.def { border: 1px dashed var(--teal); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--muted); }
.flight-row { cursor: pointer; }
.flight-row:hover { background: #f8fafc; }
html.dark .flight-row:hover { background: #1a2b45; }
.oil-card { margin-top: 0; }
.oil-svg { width: 100%; height: auto; display: block; color: var(--muted); }
.oil-grid { stroke: var(--line); stroke-width: 1; }
.oil-axis { fill: var(--muted); font-size: 11px; }
.oil-ref { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 4; }
.oil-ref-label { fill: var(--gold); font-size: 10px; font-weight: 700; }
.oil-area { fill: rgba(13, 122, 122, .12); }
.oil-line { stroke: #0d7a7a; stroke-width: 2.4; fill: none; }
.oil-dot { fill: #0d7a7a; }
.oil-dot.gold { fill: #d97706; }
.oil-dot.red { fill: #b91c1c; }
.oil-mini { max-height: 88px; overflow: hidden; margin: 6px 0; }
.oil-mini .oil-axis, .oil-mini .oil-ref-label { display: none; }
html.dark .oil-area { fill: rgba(45, 212, 191, .12); }
html.dark .oil-line { stroke: #2dd4bf; }
html.dark .oil-dot { fill: #2dd4bf; }
#tabbar, .tabbar { display: none !important; }
.popover {
  position: fixed; top: 56px; right: 16px; width: 280px;
  background: #12161e; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 8px; z-index: 45;
  backdrop-filter: blur(var(--blur));
}
html.light .popover { background: #fff; }
.popover button {
  width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--text);
}
.choice {
  flex: 1; border: 1px solid var(--line); background: var(--glass); color: var(--text);
  border-radius: 999px; padding: 10px 12px; font-weight: 700; cursor: pointer;
}
.choice.on { background: var(--teal); color: var(--accent-ink); border-color: var(--teal); }
html.dark .choice.on { background: var(--teal); color: var(--accent-ink); }
.inbox-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 12px; margin: 0 0 12px; border-radius: 16px;
  background: rgba(62, 224, 196, .12); border: 1px solid rgba(62, 224, 196, .35); color: var(--text);
}
html.dark .inbox-banner { background: rgba(62, 224, 196, .12); border-color: rgba(62, 224, 196, .35); color: var(--text); }
.sked-conflict { margin: 10px 0 0; }
.sked-conflict.is-err { color: #f87171; }
.sked-conflict.is-warn { color: #f0b429; }
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 7, 11, .62);
  display: none;
  place-items: center;
  padding: 16px;
}
.modal.is-open { display: grid; }
.modal-card {
  background: #12161e;
  width: min(720px, 100%);
  max-height: min(88dvh, 900px);
  overflow: auto;
  border-radius: 28px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
html.light .modal-card { background: #fff; }
.modal-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: inherit; z-index: 2; }
.modal-head h2 { margin: 0; font-size: 20px; color: var(--text); }
.popover h4 { margin: 8px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 25; }
.form label { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid label { margin-top: 0; }
.form-grid .check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin-top: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.share-people { margin-top: 12px; display: grid; gap: 8px; }
.share-person {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px;
  background: var(--glass);
}
.share-person .btn { width: auto; padding: 6px 10px; font-size: 12px; }
#invite-slot { padding: 0 16px; }
#invite-slot .inbox-banner { margin: 10px 0 0; }
.share-badge {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; padding: 2px 7px; border-radius: 999px;
  background: rgba(62, 224, 196, .18); color: var(--teal); vertical-align: middle;
}
#ac-modal-close { width: auto; height: 36px; padding: 0 12px; font-size: 14px; cursor: pointer; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal-actions .btn { width: auto; min-width: 88px; }
.photo-pick {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px dashed var(--line); border-radius: 16px; padding: 10px 12px; cursor: pointer;
}
.photo-pick input { max-width: 220px; }
.photo-preview { display: block; margin-top: 10px; max-height: 140px; border-radius: 16px; }
.ac-thumb {
  width: 72px; height: 52px; object-fit: cover; border-radius: 12px; background: var(--glass);
}
.dash-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: stretch;
}
.hello-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 0 0 16px;
}
.hello-sub { font-size: 13px; margin-bottom: 2px; }
.hello-name {
  margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.04em; line-height: 1.1;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: var(--accent-ink);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 12px;
  letter-spacing: .02em;
}
.photo-tile { text-align: left; padding: 0; overflow: hidden; position: relative; min-height: 180px; }
.photo-n {
  font-weight: 700; font-size: 14px; color: #fff;
  background: rgba(8, 12, 18, .45); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  display: inline-block; padding: 6px 10px; border-radius: 999px;
}
.photo-hud {
  position: absolute; left: 12px; right: 12px; bottom: 12px; top: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.photo-cap { margin: 0; color: #e8eef7; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.dash-photo {
  width: 100%; height: 200px; object-fit: cover; border-radius: 0;
  background: #12161e; display: block;
}
.dash-photo-empty { border: 0; min-height: 200px; }
.hero { align-items: center; }
.cal-wrap { overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; font-size: 18px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 0; }
.cal-grid button, .cal-cell {
  min-height: 52px; border: 1px solid var(--line); background: var(--glass); border-radius: 16px;
  padding: 6px; text-align: left; cursor: pointer; color: var(--text);
}
.cal-cell.cal-empty { border: 0; background: transparent; }
.cal-grid button.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cal-grid button.today { font-weight: 800; }
.cal-dots { display: flex; gap: 3px; margin-top: 4px; }
.cal-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--teal); display: inline-block; }
.cal-dot.gold { background: var(--gold); }
.cal-dot.red { background: #ef4444; }
.help-doc .insp-panel p, .help-doc .insp-panel li { font-size: 14px; line-height: 1.45; color: var(--text); }
.help-doc .insp-panel ul { margin: 8px 0 0; padding-left: 18px; }
.help-doc .insp-panel { margin-bottom: 12px; }
@media (max-width: 700px) {
  .dash-top { grid-template-columns: 1fr; }
}
.hangar-list {
  display: grid;
  gap: 16px;
}
.hangar-card { margin: 0; }
.hangar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hangar-actions .btn { width: auto; flex: 0 0 auto; }
.hangar-row { display: flex; gap: 12px; align-items: center; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  html, body, #amxt-root {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .shell {
    height: 100dvh;
    overflow: hidden;
  }
  .sidebar {
    display: flex;
    flex-shrink: 0;
    height: 100dvh;
    overflow: auto;
    position: relative;
  }
  #menu-btn { display: none !important; }
  #amxt-account-side { display: none; }
  .main {
    min-height: 0;
    overflow: auto;
  }
  main { padding-bottom: 32px; }
  .grid-2 { grid-template-columns: 1.1fr .9fr; }
  .dash-stack { grid-template-columns: 1fr 1fr; }
  .insp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .insp-grid-sq { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
@media (max-width: 899px) {
  #menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 999px;
    line-height: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 46;
  }
  .sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(var(--sidebar), 86vw);
    height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    transform: translateX(-102%);
    transition: transform .2s ease;
  }
  .sidebar.open { transform: none; }
  .top { padding: 8px 10px; gap: 6px; }
  #top-title {
    font-size: 14px; min-width: 0; flex: 1 1 auto;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .ac-pill {
    flex: 0 1 auto; max-width: 38vw; padding: 5px 8px; font-size: 12px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #amxt-account { display: none !important; }
  .hangar-actions { gap: 6px; }
  .modal-actions .btn { min-width: 0; }
  .dash-tile .btn { width: auto; padding: 6px 10px; font-size: 12px; height: auto; }
}

.combo-wrap { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 8;
  max-height: 220px; overflow: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.combo-list button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; font-size: 13px; cursor: pointer; color: var(--text);
}
.combo-list button:hover, .combo-list button.on { background: #e8eef5; }
html.dark .combo-list button:hover, html.dark .combo-list button.on { background: #1a2b45; }
.combo-list .combo-note { padding: 8px 10px; font-size: 11px; color: var(--muted); }

.logo-gallery { display: none; }
html.dark .logrow:hover, html.dark .pick:hover { background: #1a2b45; }

.sked-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.sked-week-label { flex: 1; text-align: center; font-size: 14px; }
.sked-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--muted); margin: 0 0 10px;
}
.sked-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sked-swatch {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
.sked-swatch.flight, .sked-block.flight, .sked-chip.flight { background: #3ee0c4; color: #06241c; }
.sked-swatch.mx, .sked-block.mx, .sked-chip.mx { background: #f0b429; color: #1a1200; }
.sked-swatch.ground, .sked-block.ground, .sked-chip.ground { background: #ef4444; color: #fff; }
.sked-board { padding: 10px 8px 12px; overflow: auto; }
.sked-week {
  display: grid;
  grid-template-columns: 48px repeat(7, minmax(72px, 1fr));
  min-width: 640px;
}
.sked-corner, .sked-head { grid-row: 1; }
.sked-allday-label, .sked-allday-cell { grid-row: 2; }
.sked-hours, .sked-col { grid-row: 3; }
.sked-corner { min-height: 44px; }
.sked-head {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; border: 0; color: var(--text);
  padding: 6px 2px 8px; cursor: pointer; border-radius: 12px;
}
.sked-head .sked-dow { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.sked-head .sked-dom { font-size: 16px; font-weight: 700; }
.sked-head.is-today .sked-dom {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--teal); color: var(--accent-ink);
}
.sked-head.is-on { background: rgba(62, 224, 196, .12); }
.sked-allday-label {
  font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; padding: 4px 4px 8px 0;
}
.sked-allday-cell {
  min-height: 36px; border-left: 1px solid var(--line); padding: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.sked-chip {
  border: 0; border-radius: 8px; padding: 4px 6px;
  font-size: 11px; font-weight: 700; text-align: left; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sked-hours { position: relative; }
.sked-hour {
  font-size: 10px; color: var(--muted); border-top: 1px solid var(--line);
  padding-top: 2px;
}
.sked-col {
  position: relative;
  border-left: 1px solid var(--line);
  height: calc(16 * 32px);
}
.sked-slot {
  position: absolute; left: 0; right: 0;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  border-top: 1px solid var(--line);
  z-index: 1;
}
.sked-slot:hover { background: rgba(62, 224, 196, .08); }
.sked-block {
  position: absolute; left: 3px; right: 3px;
  border: 0; border-radius: 8px; padding: 4px 6px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 1px; overflow: hidden; cursor: grab; z-index: 4; text-align: left;
  min-height: 36px; pointer-events: auto;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.sked-block.flight { z-index: 4; }
.sked-block.ground { z-index: 5; }
.sked-block.mx { z-index: 6; }
.sked-block.is-dragging, .sked-block.is-resizing { z-index: 9; }
.sked-block.is-conflict { box-shadow: 0 0 0 2px #ef4444, 0 8px 18px rgba(0,0,0,.3); }
.sked-resize {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 16px; cursor: ns-resize; z-index: 6;
  touch-action: none;
}
.sked-resize::after {
  content: "";
  position: absolute; left: 50%; bottom: 4px;
  width: 28px; height: 3px; margin-left: -14px;
  border-radius: 99px; background: currentColor; opacity: .4;
}
.sked-block strong { font-size: 11px; line-height: 1.2; }
.sked-block span { font-size: 10px; opacity: .85; }
.sked-now {
  position: absolute; left: 0; right: 0; height: 2px;
  background: #ef4444; z-index: 3; pointer-events: none;
}
.sked-now::before {
  content: "";
  position: absolute; left: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 99px; background: #ef4444;
}
.sked-row {
  width: 100%; background: transparent; border: 0; color: inherit;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 10px 0; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--line);
}
.sked-banner.is-ground { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .4); }
.sked-banner.is-mx { background: rgba(240, 180, 41, .16); border-color: rgba(240, 180, 41, .4); }
#sked-ground-fields[hidden], #sked-flight-fields[hidden] { display: none !important; }
@media (max-width: 700px) {
  .sked-week {
    min-width: 0;
    grid-template-columns: 40px repeat(7, minmax(0, 1fr));
  }
  .sked-week .sked-allday-cell:not(.is-on),
  .sked-week .sked-col:not(.is-on) { display: none; }
  .sked-week .sked-allday-cell.is-on {
    display: flex;
    grid-column: 2 / -1;
  }
  .sked-week .sked-col.is-on {
    display: block;
    grid-column: 2 / -1;
  }
  .sked-toolbar .sked-week-label { flex: 1 1 100%; order: 5; }
}
html.light .sked-block.flight, html.light .sked-chip.flight { background: #0d7a7a; color: #fff; }
html.light .sked-head.is-on { background: #e6f4f4; }
