/* 虚拟航司 · 联飞中心 · 管制中心 — section tabs (impes_sections.blade.php) and the pages of the two new sections
   (impes_net_*.blade.php, impes_atc*.blade.php). Theme tokens from impes.css; glass look follows its @supports block. */

/* ------------------------------------------------------------------ centre switcher + accents
   航司 = IMPES violet · 联飞 = teal · 管制 = amber, used only as small accents (active segment, title bar, sidebar marker).
   --sec-fill: segment background behind white text (≥ 4.5:1) · --sec-ink: accent text on light pages · --sec-glow: accent on dark */
body.impes { --sec-fill: #7354C7; --sec-ink: #7354C7; --sec-glow: #B79CFF; --sec-tint: rgba(135, 29, 245, .42); }
body.impes-sec-net { --sec-fill: #0A7A73; --sec-ink: #0A7A73; --sec-glow: #3FD6CC; --sec-tint: rgba(28, 190, 178, .34); }
body.impes-sec-atc { --sec-fill: #A85A0C; --sec-ink: #A85A0C; --sec-glow: #F5A64A; --sec-tint: rgba(232, 140, 40, .34); }
[data-theme="dark"] body.impes, body.impes[data-theme="dark"] { --sec-ink: var(--sec-glow); }

.impes-cswitch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 11px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.impes-cswitch a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 34px; padding: 0 .3rem; border-radius: 8px;
  font-size: .84rem; font-weight: 600; color: rgba(255, 255, 255, .78) !important; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.impes-cswitch a i { font-size: .8rem; opacity: .9; }
.impes-cswitch a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.impes-cswitch a.is-va i { color: #C9B3FF; } .impes-cswitch a.is-net i { color: #6FE3DA; } .impes-cswitch a.is-atc i { color: #FFC07A; }
.impes-cswitch a.is-on { color: #fff !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.impes-cswitch a.is-on i { color: #fff; opacity: 1; }
.impes-cswitch a.is-va.is-on { background: #7354C7; } .impes-cswitch a.is-net.is-on { background: #0A7A73; } .impes-cswitch a.is-atc.is-on { background: #A85A0C; }
/* the same control on the light 更多 page (phones) */
.impes-content .impes-cswitch { background: var(--impes-surface); border-color: var(--impes-border); }
.impes-content .impes-cswitch a:not(.is-on) { color: var(--impes-text-2) !important; }
.impes-content .impes-cswitch a.is-va:not(.is-on) i { color: #7354C7; } .impes-content .impes-cswitch a.is-net:not(.is-on) i { color: #0A7A73; } .impes-content .impes-cswitch a.is-atc:not(.is-on) i { color: #A85A0C; }
[data-theme="dark"] .impes-content .impes-cswitch a.is-va:not(.is-on) i { color: #B79CFF; }
[data-theme="dark"] .impes-content .impes-cswitch a.is-net:not(.is-on) i { color: #3FD6CC; }
[data-theme="dark"] .impes-content .impes-cswitch a.is-atc:not(.is-on) i { color: #F5A64A; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .impes-content .impes-cswitch { background: var(--glass-bg) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-line); }
}
/* accents: sidebar marker + active row tint, page title bar, panel-head icons (联飞 / 管制 only; 航司 keeps the theme) */
body.impes-sec-net .impes-nav-link.active, body.impes-sec-atc .impes-nav-link.active { background: linear-gradient(90deg, var(--sec-tint), rgba(255, 255, 255, .03)); }
body.impes .impes-nav-link.active::before { background: var(--sec-glow); }
body.impes-sec-va .impes-nav-link.active::before { background: var(--impes-gradient); }
.impes-mode-app .impes-page-head h1 { position: relative; padding-left: .75rem; }
.impes-mode-app .impes-page-head h1::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 3px; background: var(--sec-ink); }
body.impes-sec-va .impes-page-head h1::before { background: var(--impes-gradient); }
body.impes-sec-net .impes-panel-head h2 > i:first-child, body.impes-sec-atc .impes-panel-head h2 > i:first-child { color: var(--sec-ink); }
.impes-sidebar-brand small { transition: color .15s; }
body.impes-sec-net .impes-sidebar-brand small { color: #6FE3DA; } body.impes-sec-atc .impes-sidebar-brand small { color: #FFC07A; }
.impes-sidebar .impes-cswitch { margin: -.15rem 0 -.1rem; }

/* ------------------------------------------------------------------ shared page bits */
.ac-page { max-width: 1180px; }
.ac-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
@media (max-width: 991.98px) { .ac-two { grid-template-columns: 1fr; } }
.ac-bullets { padding-left: 1.1rem; display: grid; gap: .35rem; }
.ac-badge-row { display: flex; align-items: center; gap: 1rem; }
.ac-badge-row b { display: block; color: var(--impes-heading); font-size: 1.05rem; }
.ac-badge-row small { color: var(--impes-muted); font-size: .8rem; }
.ac-badge { flex: 0 0 auto; min-width: 64px; height: 64px; padding: 0 .6rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #1F7AE0, #7354C7); box-shadow: 0 6px 18px rgba(31, 122, 224, .3); letter-spacing: .02em; }
.ac-badge.is-none { background: var(--impes-surface-3); color: var(--impes-muted); box-shadow: none; }
.ac-pending { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.ac-pending small { flex-basis: 100%; color: var(--impes-muted); order: 3; }
.ac-pending form { margin-left: auto; }
.ac-req { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--impes-border); }
.ac-req:last-child { border-bottom: 0; }
.ac-req small { color: var(--impes-muted); font-size: .78rem; }
.ac-req .impes-tag { margin-left: auto; }
.ac-req .impes-tag:first-child { margin-left: 0; }
.ac-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--impes-heading); font-size: .86rem; }
.ac-time sup { color: var(--impes-muted); font-weight: 500; }

/* position colours (same families as the 管制范围 map layer): 放行/地面 amber · 塔台 orange · 进近/离场 teal · 区域/飞服 violet */
.ac-cs { font-weight: 700; font-size: .84rem; padding: .05rem .45rem; border-radius: 6px; color: #fff; background: #8C84A6; letter-spacing: .01em; }
.ac-cs.is-del, .ac-cs.is-gnd, .ac-blk.is-del, .ac-blk.is-gnd, .ac-legend .is-gnd::before { background: #C9851F; }
.ac-cs.is-twr, .ac-blk.is-twr, .ac-legend .is-twr::before { background: #DD5B2C; }
.ac-cs.is-app, .ac-cs.is-dep, .ac-blk.is-app, .ac-blk.is-dep, .ac-legend .is-app::before { background: #11968A; }
.ac-cs.is-ctr, .ac-cs.is-fss, .ac-blk.is-ctr, .ac-blk.is-fss, .ac-legend .is-ctr::before { background: #7354C7; }

/* ladder S1 → C1 */
.ac-ladder { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; position: relative; }
.ac-ladder li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .85rem; border-radius: 12px; border: 1px solid var(--impes-border); background: var(--impes-surface-2); min-width: 0; }
.ac-ladder li.is-held { border-color: rgba(31, 169, 122, .45); background: rgba(31, 169, 122, .06); }
.ac-ladder li.is-next { border-color: rgba(115, 84, 199, .55); box-shadow: 0 0 0 3px rgba(115, 84, 199, .12); }
.ac-ladder-dot { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: var(--impes-surface-3); color: var(--impes-text-2); }
.ac-ladder li.is-held .ac-ladder-dot { background: var(--impes-success); color: #fff; }
.ac-ladder li.is-next .ac-ladder-dot { background: var(--impes-violet); color: #fff; }
.ac-ladder b { display: block; color: var(--impes-heading); font-size: .9rem; }
.ac-ladder small { display: block; color: var(--impes-muted); font-size: .76rem; }
.ac-ladder-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; align-items: center; }
@media (max-width: 991.98px) { .ac-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ac-ladder { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ booking form + week */
.ac-form { display: grid; grid-template-columns: 1.3fr 1.1fr .8fr .8fr 1.6fr auto; gap: .7rem; align-items: end; }
.ac-form label { display: flex; flex-direction: column; gap: .25rem; margin: 0; min-width: 0; }
.ac-form label span { font-size: .78rem; color: var(--impes-muted); font-weight: 600; }
.ac-form .text-uppercase::placeholder { text-transform: none; }
@media (max-width: 1199.98px) { .ac-form { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ac-f-cs, .ac-f-note { grid-column: span 2; } }
@media (max-width: 575.98px) { .ac-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-f-cs, .ac-f-note, .ac-f-go { grid-column: 1 / -1; } .ac-f-go .btn { width: 100%; } }
.ac-weeknav { margin-left: auto; display: flex; gap: .3rem; }
.ac-weeknav .is-on { font-weight: 700; }
.ac-week { display: grid; gap: .1rem; }
.ac-week-scale { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; }
.ac-week-scale div { position: relative; height: 16px; }
.ac-week-scale i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: .66rem; color: var(--impes-muted); font-variant-numeric: tabular-nums; }
.ac-week-scale i:first-child { transform: none; } .ac-week-scale i:last-child { transform: translateX(-100%); }
.ac-day { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--impes-border); }
.ac-day-label b { display: block; color: var(--impes-heading); font-size: .9rem; }
.ac-day-label small { color: var(--impes-muted); font-size: .75rem; }
.ac-day.is-today .ac-day-label b { color: var(--impes-violet); }
[data-theme="dark"] .ac-day.is-today .ac-day-label b { color: #C9A8FF; }
.ac-track { position: relative; height: 24px; border-radius: 7px; background:
  repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(127, 127, 127, .18) calc(12.5% - 1px), rgba(127, 127, 127, .18) 12.5%),
  var(--impes-surface-2); overflow: hidden; }
.ac-blk { position: absolute; top: 3px; height: 17px; border-radius: 5px; color: #fff; font-size: .66rem; font-weight: 700; line-height: 17px; padding: 0 .3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.ac-blk.is-me { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.ac-blk.is-now { opacity: 1; }
.ac-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--impes-danger); z-index: 1; }
.ac-list { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .3rem; }
.ac-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; font-size: .84rem; }
.ac-list li.is-me .ac-who { font-weight: 700; color: var(--impes-heading); }
.ac-place { color: var(--impes-text-2); }
.ac-who { color: var(--impes-muted); }
.ac-note { flex-basis: 100%; color: var(--impes-muted); padding-left: .1rem; }
.ac-cancel { margin: 0 0 0 auto; }
.ac-cancel .btn { padding: 0 .3rem; font-size: .8rem; }
.ac-day.is-empty .ac-track { opacity: .65; }
.ac-week-empty { margin: .6rem 0 0; color: var(--impes-muted); font-size: .86rem; }
.ac-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; font-size: .76rem; color: var(--impes-muted); }
.ac-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: #8C84A6; }
.ac-legend .is-me::before { background: transparent; box-shadow: inset 0 0 0 2px var(--impes-heading); }
@media (max-width: 575.98px) {
  .ac-day, .ac-week-scale { grid-template-columns: 1fr; gap: .3rem; }
  .ac-week-scale span { display: none; }
  .ac-day-label { display: flex; gap: .5rem; align-items: baseline; }
}

/* ------------------------------------------------------------------ tools page */
.ac-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.4rem 0 1rem; }
.ac-toc a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: var(--impes-surface); border: 1px solid var(--impes-border); color: var(--impes-text-2) !important; text-decoration: none !important; }
.ac-toc a:hover { border-color: var(--impes-violet); }
.ac-doc { font-size: .88rem; line-height: 1.7; overflow-x: auto; }
.ac-doc h1 { display: none; }   /* the panel head already says it */
.ac-doc h2 { font-size: .98rem; margin: 1.1rem 0 .5rem; color: var(--impes-heading); }
.ac-doc table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .82rem; min-width: 640px; }
.ac-doc th, .ac-doc td { border: 1px solid var(--impes-border); padding: .4rem .55rem; vertical-align: top; }
.ac-doc th { background: var(--impes-surface-2); color: var(--impes-heading); }
.ac-doc code { font-size: .8rem; }
.ac-doc ul { padding-left: 1.1rem; }
.fsd-board.ac-board-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .fsd-board.ac-board-2 { grid-template-columns: 1fr; } }
[id="scope"], [id="sector"], [id="areas"], [id="rewards"] { scroll-margin-top: 80px; }

/* ------------------------------------------------------------------ 联飞地图与在线 */
.nl-page { max-width: 1280px; }
.nl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.nl-kpis > div { padding: .75rem 1rem; border-radius: var(--impes-radius); background: var(--impes-surface); border: 1px solid var(--impes-border); display: flex; flex-direction: column; gap: .1rem; }
.nl-kpis small { color: var(--impes-muted); font-size: .76rem; }
.nl-kpis b { font-size: 1.35rem; color: var(--impes-heading); font-variant-numeric: tabular-nums; line-height: 1.3; }
.nl-kpis span, .nl-kpis a { font-size: .76rem; color: var(--impes-muted); }
.nl-kpis a { color: var(--impes-link); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nl-kpis > div, .ac-toc a { background: var(--glass-bg) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-color: var(--glass-line); box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-edge); }
}
.nl-map-wrap { padding: 0; }
.nl-map { height: min(560px, 62vh); min-height: 320px; position: relative; }
.nl-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--impes-muted); padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--impes-border); background: var(--impes-surface); }
.nl-dot { width: 8px; height: 8px; border-radius: 50%; background: #9A93B3; }
.nl-status.is-ok .nl-dot { background: var(--impes-success); box-shadow: 0 0 0 3px rgba(31, 169, 122, .2); }
.nl-status.is-bad .nl-dot { background: var(--impes-danger); }
.nl-table tbody tr[data-i], .nl-table tbody tr[data-cs] { cursor: pointer; }
.nl-table tr.is-stale td { opacity: .65; }
.nl-table small { font-size: .74rem; }
.nl-map .fsd-mk .fsd-cs { font-size: 10px; }

/* ------------------------------------------------------------------ 联飞时长 */
.nh-month .form-select { min-width: 9.5rem; }
.nh-key { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--impes-muted); }
.nh-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .35rem; }
.nh-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.nh-bar { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; }
.nh-col { width: min(46px, 70%); height: 150px; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 3px 3px; background: var(--impes-surface-2); overflow: hidden; }
.nh-col i { display: block; width: 100%; }
.is-pilot { background: #18B37E; }
.is-atc { background: #1F7AE0; }
.nh-key i.is-pilot { background: #18B37E; } .nh-key i.is-atc { background: #1F7AE0; }
.nh-bar b { font-size: .86rem; color: var(--impes-heading); font-variant-numeric: tabular-nums; }
.nh-bar small { font-size: .74rem; color: var(--impes-muted); }
@media (max-width: 575.98px) { .nh-bars { gap: .35rem; } .nh-col { height: 110px; } .nh-bar b { font-size: .74rem; } }

/* ------------------------------------------------------------------ 活动与下载 */
.ne-item { border-bottom: 1px solid var(--impes-border); }
.ne-item:last-child { border-bottom: 0; }
.ne-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .8rem 1.25rem; cursor: pointer; list-style: none; }
.ne-item summary::-webkit-details-marker { display: none; }
.ne-item summary::after { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .7rem; margin-left: auto; color: var(--impes-muted); transition: transform .15s; }
.ne-item[open] summary::after { transform: rotate(180deg); }
.ne-item summary b { color: var(--impes-heading); }
.ne-item summary small { color: var(--impes-muted); font-size: .76rem; }
.ne-body { padding: 0 1.25rem 1rem; font-size: .9rem; overflow-wrap: anywhere; }
.ne-body img { max-width: 100%; height: auto; border-radius: 8px; }
.ne-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.1rem; }
.ne-card h3 { font-size: 1rem; margin: .3rem 0 .45rem; color: var(--impes-heading); }
.ne-card p { font-size: .86rem; color: var(--impes-text-2); }
.ne-card.is-beta { border-color: rgba(115, 84, 199, .5) !important; }
.ne-steps { padding-left: 1.1rem; font-size: .84rem; display: grid; gap: .3rem; margin-bottom: .8rem; }

/* ------------------------------------------------------------------ homepage: 三个中心 (impes_home_centres.blade.php) */
.hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 991.98px) { .hc-grid { grid-template-columns: 1fr; } }
.hc-card { --hc: #7354C7; --hc-soft: rgba(115, 84, 199, .1); display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem 1.3rem 1.2rem; position: relative; overflow: hidden; }
.hc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hc); }
.hc-card.is-net { --hc: #0A7A73; --hc-soft: rgba(10, 122, 115, .1); }
.hc-card.is-atc { --hc: #A85A0C; --hc-soft: rgba(168, 90, 12, .1); }
[data-theme="dark"] .hc-card { --hc-text: #B79CFF; } [data-theme="dark"] .hc-card.is-net { --hc-text: #3FD6CC; } [data-theme="dark"] .hc-card.is-atc { --hc-text: #F5A64A; }
.hc-top { display: flex; gap: .85rem; align-items: flex-start; }
.hc-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--hc-soft); color: var(--hc-text, var(--hc)); font-size: 1.1rem; }
.hc-top h3 { font-size: 1.12rem; margin: .1rem 0 .2rem; }
.hc-top p { margin: 0; font-size: .88rem; color: var(--impes-text-2); line-height: 1.55; }
.hc-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.hc-nums div { padding: .55rem .75rem; border-radius: 11px; background: var(--hc-soft); }
.hc-nums dt { font-size: .74rem; font-weight: 500; color: var(--impes-muted); }
.hc-nums dd { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--impes-heading); font-variant-numeric: tabular-nums; line-height: 1.25; }
.hc-nums dd.is-sm { font-size: 1.05rem; padding-top: .3rem; }
.hc-line { margin: 0; font-size: .82rem; color: var(--impes-text-2); display: flex; align-items: center; gap: .45rem; overflow-wrap: anywhere; }
.hc-line.is-muted { color: var(--impes-muted); }
.hc-next { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.hc-next li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; font-size: .82rem; }
.hc-next li span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--impes-heading); }
.hc-next small { color: var(--impes-muted); }
.hc-cta { margin-top: auto; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.hc-card .ih-btn.is-primary { background: var(--hc); border-color: transparent; color: #fff !important; }
.hc-card .ih-btn.is-primary:hover { filter: brightness(1.08); background: var(--hc); }
.hc-link { font-size: .86rem; font-weight: 600; color: var(--hc-text, var(--hc)) !important; text-decoration: none !important; }
body.impes-sec-net .impes-tabbar .is-on, body.impes-sec-atc .impes-tabbar .is-on { color: var(--sec-ink) !important; }
