/* Staff Pathway: restrained operations interface for the original toolkit. */
:root {
  color-scheme: dark;
  --bg: #101417;
  --panel: #191f23;
  --panel-raised: #20282c;
  --line: #30393e;
  --text: #f0eee9;
  --muted: #a9b2b5;
  --accent: #dfad71;
  --quiet: #798a91;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body { background: var(--bg); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline-color: var(--accent); }
::selection { background: #dfad7180; color: #101417; }

/* Navigation is intentionally plain: labels and position do the work. */
.app-shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
  background: #151b1f;
  border-right: 1px solid var(--line);
  backdrop-filter: none;
  padding: 28px 14px 22px;
}
.brand { gap: 11px; padding: 0 12px; font-size: 18px; font-weight: 760; letter-spacing: .15em; }
.brand-mark {
  width: 37px; height: 37px; padding-right: 3px;
  border: 1px solid #956e48; border-radius: 3px;
  background: #27231f; box-shadow: none;
  color: #efd0a5; font-size: 24px;
}
.brand-sub { color: #a1aaa9; font-size: 9px; letter-spacing: .14em; }
.nav-caption { margin: 52px 12px 11px; color: #849196; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
nav { gap: 2px; }
.nav-link {
  min-height: 46px; padding: 10px 12px; border-radius: 3px;
  border: 1px solid transparent; color: #a8b2b5;
  font-size: 13px; transition: background .15s, color .15s;
}
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { background: #222a2e; color: #f0eee9; }
.nav-link.active {
  color: #f3e7d6; background: #252c2e;
  border-color: #333e40; box-shadow: inset 2px 0 var(--accent);
}
.sidebar-bottom { padding: 0 11px; }
.sidebar-privacy { color: #c8d0cd; font-size: 12px; }
.sidebar-privacy svg { color: var(--accent); }
.sidebar-bottom p { margin: 8px 0 20px 27px; color: #87959a; font-size: 11px; line-height: 1.55; }
.version { border-color: var(--line); color: #75848a; font-size: 9px; letter-spacing: .14em; }

.topbar { height: 67px; padding: 0 42px; background: #13191d; border-bottom: 1px solid var(--line); }
.breadcrumbs { gap: 10px; color: #87959a; font-size: 12px; }
.breadcrumbs strong { color: #d2d9d7; font-weight: 600; }
.slash { color: #59676b; }
main { max-width: 1410px; padding: 43px 44px 0; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
h1 { font-size: clamp(36px, 3.4vw, 51px); font-weight: 680; line-height: 1.06; letter-spacing: -.045em; }
.intro-copy { color: #aeb9ba; font-size: 15px; line-height: 1.6; }

/* The home page is a tool index, not a collection of promotional cards. */
.dashboard-intro {
  padding: 6px 0 34px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: none; box-shadow: none;
}
.dashboard-intro h1 { max-width: 860px; }
.dashboard-intro .intro-copy { margin-top: 18px; }
.section-heading { margin: 30px 0 15px; }
.section-heading h2 { font-size: 18px; font-weight: 650; }
.section-heading > span { color: #859397; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool-tile, .tool-tile.flight-tile, .tool-tile.live-tile {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 1fr auto;
  gap: 0 20px; min-height: 196px; padding: 27px 30px;
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0; background: #181e22; box-shadow: none; transition: background .15s;
}
.tool-tile:hover, .tool-tile.flight-tile:hover, .tool-tile.live-tile:hover {
  transform: none; background: #20292c; border-color: var(--line); box-shadow: none;
}
.tool-tile.live-tile {
  grid-column: 1 / -1; min-height: 164px;
  background: #1c2729; box-shadow: inset 3px 0 var(--accent);
}
.tool-tile.live-tile:hover { background: #263235; }
.tile-top { grid-column: 1; grid-row: 1 / 3; align-items: flex-start; }
.tile-icon {
  width: 38px; height: 38px; border-radius: 3px;
  border: 1px solid #485351; background: #253033;
  color: #d5c2a3;
}
.tile-icon svg { width: 19px; height: 19px; }
.tile-index { position: absolute; top: 27px; right: 27px; color: #84989b; font-family: Consolas, monospace; font-size: 11px; }
.tile-body { grid-column: 2; grid-row: 1; padding: 0 28px 20px 0; }
.tile-body h2 { margin-bottom: 10px; color: #f0eee9; font-size: 20px; font-weight: 630; line-height: 1.25; }
.tile-body p { max-width: 540px; color: #9eadaf; font-size: 13px; line-height: 1.6; }
.tile-bottom {
  grid-column: 2; grid-row: 2; justify-content: flex-start; gap: 9px;
  padding: 0; border: 0; color: var(--accent); font-size: 12px; font-weight: 650;
}
.tile-arrow { width: auto; height: auto; border: 0; border-radius: 0; background: none; }
.tile-arrow svg { width: 16px; height: 16px; }
.privacy-strip {
  margin-top: 0; padding: 22px 0 4px; border: 0; border-radius: 0;
  background: none;
}
.privacy-icon { color: var(--accent); }
.privacy-strip h3 { font-size: 12px; font-weight: 650; }
.privacy-strip p { color: #879599; font-size: 12px; }
.privacy-tag { color: #788b8f; font-size: 10px; }
footer { border-top: 1px solid var(--line); color: #829095; font-size: 11px; }

/* Tool forms and supporting notes. */
.back-link { margin: -12px 0 23px; color: #a9b7b7; font-size: 12px; }
.back-link:hover, .related-tool:hover { color: var(--accent); }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(33px, 3vw, 44px); }
.tool-layout { grid-template-columns: minmax(0, 1.7fr) minmax(220px, .8fr); gap: 36px; }
.card, .commute-panel {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel); box-shadow: none;
}
.card { padding: 32px; }
.form-title { margin-bottom: 25px; font-size: 18px; font-weight: 650; }
.tool-aside { padding: 10px 0 0 25px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; }
.aside-icon { width: 32px; height: 32px; border: 0; border-radius: 3px; background: #302b24; color: var(--accent); }
.aside-icon svg { width: 18px; height: 18px; }
.tool-aside h2 { font-size: 17px; font-weight: 650; }
.tool-aside p { color: #a0adae; font-size: 13px; line-height: 1.75; }
.aside-divider { background: var(--line); }
.tool-aside .eyebrow { font-size: 10px; }
.related-tool { color: #e5e1d8; font-size: 13px; }
label { color: #dce2df; font-size: 12px; font-weight: 650; }
input[type=text], input[type=search], input[type=password], select, .commute-panel input, .commute-panel select {
  height: 49px; min-height: 49px; padding: 10px 12px;
  border: 1px solid #465156; border-radius: 3px;
  background: #11181c; color: #f1eee9; font-size: 15px;
}
input::placeholder { color: #869497; }
.field-help { color: #9ba9ab; font-size: 12px; line-height: 1.6; }
.check-label { font-size: 13px; }
.check-label input, .commute-mixed input { accent-color: var(--accent); }
.primary {
  min-height: 49px; border: 1px solid #e6ba86; border-radius: 3px;
  background: var(--accent); box-shadow: none; color: #181a18;
  font-size: 13px; font-weight: 750;
}
.primary:hover { background: #edbf89; filter: none; }
.input-prefix { border: 1px solid #465156; border-radius: 3px; background: #11181c; }
.input-prefix span { color: #cab99d; }
.input-prefix input { border: 0; background: transparent; }
.input-prefix:focus-within { outline-color: var(--accent); }
.saved-section { border-color: var(--line); }
.saved-heading span { background: #343b36; border-radius: 2px; color: #c9d4cd; }
.saved-list li { border-color: var(--line); border-radius: 3px; background: #202a2c; }
.saved-list button { color: #e1e6df; }
.saved-list button:hover { background: #303b3e; }
.release-note, .release-result, .photo-result {
  border: 1px solid var(--line); border-radius: 3px;
  background: #20282b;
}
.release-note p, .photo-frame p { color: #a8b5b5; }
.photo-frame { border-radius: 2px; background: #11181c; }
.photo-details a, .release-result a { color: #e9bd86; }

/* Live board: compact numbers and a table rather than three floating widgets. */
.feed-badge {
  padding: 6px 9px; border: 1px solid #48685d; border-radius: 3px;
  background: #1c3029; color: #a9ddbd; font-size: 11px;
}
.feed-badge[data-state=warning] { border-color: #75603c; background: #34291b; color: #e6c28c; }
.feed-badge[data-state=loading] { border-color: #485156; background: #20282b; color: #b7c0be; }
.route-safety-notice {
  margin: 0 0 27px; padding: 11px 16px;
  border: 0; border-left: 2px solid #a97c4a; border-radius: 0;
  background: #24241f; color: #b8b7a9; font-size: 12px; line-height: 1.65;
}
.flight-stats { gap: 0; margin-bottom: 27px; border: 1px solid var(--line); background: #181f22; }
.flight-stats > div, .flight-stats > div:nth-child(2), .flight-stats > div:nth-child(3) {
  padding: 16px 23px; border: 0; border-right: 1px solid var(--line);
  border-radius: 0; background: none;
}
.flight-stats > div:last-child { border-right: 0; }
.stat-label { color: #9caaab; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.flight-stats strong { margin: 4px 0 0; font-family: Consolas, "Segoe UI", sans-serif; font-size: 31px; font-weight: 500; }
.flight-stats > div > span:last-child { color: #829397; font-size: 11px; }
.flights-board { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.board-heading { padding: 21px 24px; }
.board-heading h2 { font-size: 18px; }
.board-heading p { color: #96a5a8; font-size: 12px; }
.refresh-button, .view-crew, .crew-lock {
  border: 1px solid #566166; border-radius: 3px; background: #252d31;
  color: #e7e6df; font-size: 12px;
}
.refresh-button:hover, .view-crew:hover, .crew-lock:hover { background: #303a3e; }
.flight-filters { padding: 0 24px 20px; }
.flight-filters label { font-size: 12px; }
.flight-filters input, .flight-filters select { height: 45px; min-height: 45px; }
.flights-table th { background: #20282c; color: #a4b1b3; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.flights-table td { border-color: var(--line); }
.flights-table tbody tr:hover { background: #ffffff08; }
.flight-callsign { color: #efc28d; }
.airport-code { font-family: Consolas, "Segoe UI", sans-serif; font-size: 20px; font-weight: 500; }
.cell-detail { color: #93a2a5; }
.eta-value.estimate { padding: 2px 6px; border: 1px solid #3d5a4d; border-radius: 2px; background: #203027; color: #b2dec1; }
.board-footer { border-color: var(--line); background: #161d20; }
.flight-explainer { padding-top: 20px; border-top: 1px solid var(--line); }
.flight-explainer h2 { color: #d8ded9; }
.flight-explainer p, .flight-attribution { color: #9aa9aa; }
.crew-dialog { border: 1px solid #5b6564; border-radius: 4px; background: #1b2327; }
.crew-dialog::backdrop { background: #0a0e10c9; backdrop-filter: none; }
.crew-dialog-heading { background: #272e31; }
.crew-close { border-radius: 3px; }
.crew-person { border-color: var(--line); border-radius: 3px; background: #20292d; }
.crew-photo { border-radius: 2px; }
.crew-role, .crew-person a { color: #e3b783; }

/* Commuting keeps its form behavior while sharing the same visual system. */
.commute-panel { max-width: 1100px; padding: 28px; }
.commute-route input { font-family: Consolas, "Segoe UI", sans-serif; font-size: 25px !important; font-weight: 600 !important; }
.commute-grid { gap: 17px; }
.commute-results { max-width: 1100px; }
.commute-card { border-color: var(--line); border-radius: 3px; background: var(--panel); }
.commute-connection { border-radius: 3px; background: #2a3437; }
.commute-card small { color: #aeb8b7; }

@media (min-width: 1500px) {
  main { padding-top: 52px; }
  .dashboard-intro { padding: 6px 0 34px; }
  .tool-tile, .tool-tile.flight-tile, .tool-tile.live-tile { min-height: 196px; }
  .tool-tile.live-tile { min-height: 164px; }
  .tile-body { padding: 0 28px 20px 0; }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .tool-layout { gap: 22px; }
}
@media (max-width: 960px) {
  .dashboard-tools { grid-template-columns: 1fr; }
  .tool-tile, .tool-tile.flight-tile, .tool-tile.live-tile { display: grid; grid-column: 1; grid-template-columns: 44px minmax(0, 1fr); min-height: 160px; }
  .tile-top { grid-column: 1; grid-row: 1 / 3; }
  .tile-body { grid-column: 2; grid-row: 1; padding: 0 28px 18px 0; }
  .tile-bottom { grid-column: 2; grid-row: 2; }
  .tile-index { padding: 0; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-aside { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .sidebar { padding: 17px 16px 10px; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 2px; }
  nav { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
  nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; display: flex; flex-direction: row; min-height: 41px; padding: 8px 11px; gap: 7px; white-space: nowrap; font-size: 12px; }
  .nav-link.active { box-shadow: inset 0 -2px var(--accent); }
  .nav-link svg { width: 15px; height: 15px; }
  .topbar { height: 49px; padding: 0 20px; }
  main { padding: 30px 20px 0; }
  .dashboard-intro { padding: 2px 0 29px; }
  .flight-stats > div { padding: 14px 17px; }
}
@media (max-width: 480px) {
  .sidebar { padding: 15px 13px 9px; }
  .brand { font-size: 17px; }
  .topbar { padding: 0 16px; }
  main { padding: 25px 16px 0; }
  .dashboard-intro h1 { font-size: 37px; }
  .tool-tile, .tool-tile.flight-tile, .tool-tile.live-tile { padding: 21px 17px; min-height: 165px; gap: 0 13px; }
  .tile-index { top: 20px; right: 17px; }
  .tile-body h2 { padding-right: 14px; font-size: 18px; }
  .tile-body p { font-size: 12px; }
  .tile-bottom { font-size: 11px; }
  .privacy-strip { gap: 10px; }
  .card, .commute-panel { padding: 21px; }
  .flight-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .flight-stats > div, .flight-stats > div:nth-child(2), .flight-stats > div:nth-child(3) { padding: 11px 9px; }
  .flight-stats strong { font-size: 25px; }
  .stat-label { font-size: 9px; letter-spacing: .04em; }
  .flight-stats > div > span:last-child { font-size: 10px; }
  .board-heading { padding: 18px 16px; }
  .flight-filters { padding: 0 16px 18px; }
  .commute-panel { padding: 19px; }
  .commute-route { gap: 7px; }
  .commute-route input { font-size: 19px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
