:root {
  --bg: #0a0a0a;
  --card: #141010;
  --card2: #1a1210;
  --text: #fff4e8;
  --muted: #c9a890;
  --line: #5a2a1a;
  --accent: #ff5a1f;
  --accent2: #d63a12;
  --accent-glow: rgba(255, 120, 40, 0.35);
  --ember: #ff8a2b;
  --gold: #ffc857;
  --ok: #2fbf71;
  --warn: #f0b429;
  --bad: #ef5d5d;
  --radius: 14px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(255, 90, 31, 0.16), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(255, 200, 87, 0.08), transparent 50%),
    var(--bg);
}
a { color: var(--ember); }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; padding-bottom: 48px; }
.top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 14px;
}
.brand h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.4px;
  font-weight: 800;
  color: #ff6a2e;
  text-shadow:
    0 0 1px #ffc857,
    0 0 10px rgba(255, 90, 31, 0.45);
}
.brand .site-link {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-block;
}
.brand .site-link:hover { color: #ffe09a; text-decoration: underline; }
.brand .tagline { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.badge {
  display: inline-block; background: #2a140e; color: #ffd7a8;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 10px; font-size: 0.75rem; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.25);
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255, 138, 43, 0.08);
}
.card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #ffb07a;
}
.role-card {
  margin-bottom: 14px;
}
.nasdd-entry-btn {
  width: 100%;
  margin-top: 4px;
}
#step_nasdd .path-bar {
  margin-bottom: 4px;
}
#step_nasdd .last-used-wrap {
  margin-top: 12px;
}
.nasdd-choice-group {
  border: 1px solid rgba(255, 200, 87, 0.48);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0 0;
  background: rgba(18, 10, 6, 0.28);
}
.nasdd-start-fresh-group {
  margin-top: 14px;
  border-color: rgba(255, 138, 43, 0.42);
}
.nasdd-start-fresh-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.home-map-lead {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f3d19c;
  letter-spacing: 0.01em;
}
.products-entry-card {
  margin-top: 2px;
  margin-bottom: 12px;
  padding: 14px;
  border-style: solid;
  border-color: rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(180deg, rgba(18, 28, 36, 0.95), rgba(12, 18, 24, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(125, 211, 252, 0.1);
}
.products-entry-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  color: #9ec9e8;
}
.products-entry-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: linear-gradient(180deg, #1a3140, #122430);
  color: #e8f6ff;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.08), 0 8px 18px rgba(0,0,0,0.22);
  cursor: pointer;
  font: inherit;
}
.products-entry-btn strong {
  font-size: 1.05rem;
  color: #f3fbff;
}
.products-entry-btn span {
  color: #b7d9ef;
  font-size: 0.86rem;
  font-weight: 500;
}
.products-entry-btn:hover {
  border-color: rgba(125, 211, 252, 0.7);
  filter: brightness(1.06);
}
.products-entry-btn:active {
  transform: translateY(1px);
}
/* Home-page Helpful Tools = own section (not nested under Products) */
.tools-entry-card {
  margin-top: 2px;
  margin-bottom: 12px;
  padding: 14px;
  border-style: solid;
  border-color: rgba(167, 243, 208, 0.28);
  background:
    linear-gradient(180deg, rgba(16, 28, 24, 0.95), rgba(12, 20, 18, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(167, 243, 208, 0.1);
}
.tools-entry-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  color: #9fd6bc;
}
.tools-entry-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 183, 0.42);
  background: linear-gradient(180deg, #1a4034, #122820);
  color: #e8fff6;
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.08), 0 8px 18px rgba(0,0,0,0.22);
  cursor: pointer;
  font: inherit;
}
.tools-entry-btn strong {
  font-size: 1.05rem;
  color: #f3fff9;
}
.tools-entry-btn span {
  color: #b7efd6;
  font-size: 0.86rem;
  font-weight: 500;
}
.tools-entry-btn:hover {
  border-color: rgba(110, 231, 183, 0.7);
  filter: brightness(1.06);
}
.tools-entry-btn:active {
  transform: translateY(1px);
}
/* Home-page Live Right Now = 4th category */
.live-entry-card {
  margin-top: 2px;
  margin-bottom: 12px;
  padding: 14px;
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.32);
  background:
    linear-gradient(180deg, rgba(32, 24, 12, 0.95), rgba(20, 16, 10, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(251, 191, 36, 0.12);
}
.live-entry-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  color: #f0c674;
}
.live-entry-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  background: linear-gradient(180deg, #40301a, #281c10);
  color: #fff8e8;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08), 0 8px 18px rgba(0,0,0,0.22);
  cursor: pointer;
  font: inherit;
}
.live-entry-btn strong {
  font-size: 1.05rem;
  color: #fffaf0;
}
.live-entry-btn span {
  color: #efd6a8;
  font-size: 0.86rem;
  font-weight: 500;
}
.live-entry-btn:hover {
  border-color: rgba(251, 191, 36, 0.75);
  filter: brightness(1.06);
}
.live-entry-btn:active {
  transform: translateY(1px);
}
.card.live-theme {
  border-color: rgba(251, 191, 36, 0.32);
  background: linear-gradient(180deg, rgba(32, 24, 12, 0.95), rgba(20, 16, 10, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(251, 191, 36, 0.12);
}
.card.live-theme h2 {
  color: #f0c674;
}
.card.live-theme .help {
  color: #c4b08a;
}
/* Live Right Now hub: keep gold/amber scheme (not NASDD bright orange) */
.card.live-theme .path-bar > button.secondary {
  background: #281c10;
  border-color: rgba(251, 191, 36, 0.4);
  color: #fff8e8;
}
.card.live-theme .product-card {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(180deg, #3a2a16, #24180e);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08);
}
.card.live-theme .product-card-head strong {
  color: #fffaf0;
}
.card.live-theme .product-best-for,
.card.live-theme .product-asof,
.card.live-theme .product-card-head > span:not(.product-best-for) {
  color: #efd6a8;
}
.card.live-theme .product-action,
.card.live-theme a.product-action,
.card.live-theme button.product-action {
  border-color: rgba(251, 191, 36, 0.42) !important;
  background: linear-gradient(180deg, #40301a, #281c10) !important;
  color: #fff8e8 !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1) !important;
}
.card.live-theme .product-action.primary,
.card.live-theme a.product-action.primary,
.card.live-theme button.product-action.primary,
.card.live-theme button.ok {
  border-color: rgba(251, 191, 36, 0.72) !important;
  background: linear-gradient(180deg, #c9a227, #8a6a12) !important;
  color: #1a1408 !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18), 0 6px 14px rgba(0,0,0,0.25) !important;
}
.card.live-theme input[type="search"],
.card.live-theme input[type="text"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: #18120a;
  color: #fff8e8;
}
.card.live-theme input[type="search"]:focus,
.card.live-theme input[type="text"]:focus {
  outline: 2px solid rgba(251, 191, 36, 0.55);
  border-color: #f0c674;
}
.card.live-theme .live-find-choice {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.card.live-theme .live-find-search {
  margin-top: 10px;
}
.card.live-theme .live-find-search.hidden {
  display: none !important;
}
.maps-live-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: linear-gradient(180deg, rgba(32, 24, 12, 0.95), rgba(20, 16, 10, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(251, 191, 36, 0.12);
}
.maps-live-block.live-theme,
.maps-live-block.live-theme .product-card,
.maps-live-block.live-theme .product-card-head strong,
.maps-live-block.live-theme .product-best-for,
.maps-live-block.live-theme .product-asof,
.maps-live-block.live-theme .product-card-head > span:not(.product-best-for),
.maps-live-block.live-theme .product-action,
.maps-live-block.live-theme a.product-action,
.maps-live-block.live-theme button.product-action,
.maps-live-block.live-theme .product-action.primary,
.maps-live-block.live-theme a.product-action.primary,
.maps-live-block.live-theme button.product-action.primary,
.maps-live-block.live-theme input[type="search"],
.maps-live-block.live-theme input[type="text"],
.maps-live-block.live-theme .live-find-choice,
.maps-live-block.live-theme .live-find-search {
  /* inherit live-theme rules even though this block sits on the blue Maps page */
}
.maps-live-block > .product-card-head strong {
  color: #f0c674;
}
.maps-live-block > .product-card-head .product-best-for {
  color: #c4b08a;
}
.maps-live-block .product-card {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(180deg, #3a2a16, #24180e);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08);
}
.maps-live-block .product-card-head strong {
  color: #fffaf0;
}
.maps-live-block .product-best-for,
.maps-live-block .product-asof,
.maps-live-block .product-card-head > span:not(.product-best-for) {
  color: #efd6a8;
}
.maps-live-block .product-action,
.maps-live-block a.product-action,
.maps-live-block button.product-action {
  border-color: rgba(251, 191, 36, 0.42) !important;
  background: linear-gradient(180deg, #40301a, #281c10) !important;
  color: #fff8e8 !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1) !important;
}
.maps-live-block .product-action.primary,
.maps-live-block a.product-action.primary,
.maps-live-block button.product-action.primary {
  border-color: rgba(251, 191, 36, 0.72) !important;
  background: linear-gradient(180deg, #c9a227, #8a6a12) !important;
  color: #1a1408 !important;
}
.maps-live-block input[type="search"],
.maps-live-block input[type="text"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: #18120a;
  color: #fff8e8;
}
.maps-live-block .live-find-choice {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.maps-live-block .live-find-search.hidden {
  display: none !important;
}
.tools-reports-block {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(110, 231, 183, 0.28);
  background: rgba(10, 22, 18, 0.55);
}
.tools-reports-label {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9fd6bc;
}
.ao-paper-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ao-paper-list-search label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  color: #9fd6bc;
  text-align: left;
}
.ao-paper-list-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: left;
}
.ao-paper-list-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  border-radius: 4px;
  border: 1px solid rgba(167, 243, 208, 0.22);
  background: rgba(16, 28, 24, 0.55);
  color: #e8fff6;
  cursor: pointer;
  font: inherit;
}
.ao-paper-list-item:hover,
.ao-paper-list-item:focus-visible {
  border-color: rgba(167, 243, 208, 0.7);
  background: rgba(22, 42, 36, 0.72);
  outline: none;
}
.ao-paper-list-title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  color: #f3fff9;
  overflow-wrap: anywhere;
}
.ao-paper-list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ao-paper-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(167, 243, 208, 0.28);
  background: rgba(8, 18, 14, 0.45);
  color: #9fd6bc;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
.ao-paper-list-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.85;
  color: #9bbfb0;
}
.ao-paper-list-feedback {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9fd6bc;
  opacity: 0.95;
}
.ao-paper-list-empty {
  padding: 14px 12px;
  border-radius: 4px;
  border: 1px dashed rgba(167, 243, 208, 0.28);
  color: #9bbfb0;
  text-align: left;
}
.ao-paper-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.ao-paper-detail-block {
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(167, 243, 208, 0.22);
  background: rgba(12, 22, 18, 0.42);
}
.ao-paper-detail-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fd6bc;
}
.ao-paper-detail-value {
  display: block;
  line-height: 1.4;
  color: #e8fff6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ao-paper-detail-title .ao-paper-detail-value {
  font-weight: 800;
  font-size: 1.05rem;
}
#ao_papers_detail_download,
#ao_papers_detail_view {
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  min-height: 48px;
}
.ao-paper-top-actions {
  margin-top: 12px;
}
.ao-paper-top-actions .product-action {
  flex: 1 1 160px;
}
.ao-paper-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  background: #141414;
  border: 1px solid rgba(167, 243, 208, 0.18);
}
.ao-paper-main {
  min-width: 0;
  flex: 1 1 auto;
}
.ao-paper-row .product-action {
  flex: 0 0 auto;
  align-self: flex-start;
}
@media (max-width: 560px) {
  .ao-paper-row {
    flex-direction: column;
  }
  .ao-paper-row .product-action {
    align-self: stretch;
    text-align: center;
  }
}
.card.tools-theme {
  border-color: rgba(167, 243, 208, 0.28);
  background: linear-gradient(180deg, rgba(16, 28, 24, 0.95), rgba(12, 20, 18, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(167, 243, 208, 0.1);
}
.card.tools-theme h2 {
  color: #9fd6bc;
}
.card.tools-theme .help {
  color: #9bbfb0;
}
.card.tools-theme .help a {
  color: #6ee7b7;
}
.card.tools-theme .path-bar > button.secondary {
  background: #142820;
  border-color: rgba(110, 231, 183, 0.35);
  color: #e8fff6;
}
.card.tools-theme .fork-btn,
.card.tools-theme .fork-btn.ok {
  border: 1px solid rgba(110, 231, 183, 0.42);
  background: linear-gradient(180deg, #1a4034, #122820);
  color: #e8fff6;
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.08), 0 8px 18px rgba(0,0,0,0.22);
}
.card.tools-theme .fork-btn strong {
  color: #f3fff9;
}
.card.tools-theme .fork-btn span {
  color: #b7efd6;
}
.card.tools-theme .fork-btn:hover {
  border-color: rgba(110, 231, 183, 0.7);
  filter: brightness(1.06);
}
.card.tools-theme .product-card {
  border-color: rgba(167, 243, 208, 0.28);
  background: linear-gradient(180deg, #17362c, #10241c);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.08);
}
.card.tools-theme .product-card-head strong {
  color: #f3fff9;
}
.card.tools-theme .product-action {
  border-color: rgba(110, 231, 183, 0.35);
  background: #142820;
  color: #e8fff6;
}
.grid { display: grid; gap: 10px; }
.grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid.two { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea, button {
  width: 100%;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #100c0b;
  color: var(--text);
  padding: 11px 12px;
}
/* iOS Safari: radios/checkboxes must not inherit full-width padded inputs */
input[type="radio"],
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 18px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 200, 150, 0.72);
  background: #100c0b;
  box-shadow: none;
  accent-color: var(--accent);
  vertical-align: middle;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="checkbox"] {
  border-radius: 3px;
}
input[type="radio"]:checked {
  border-color: var(--ember);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #100c0b;
}
input[type="checkbox"]:checked {
  border-color: var(--ember);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #100c0b;
}
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-glow);
  border-color: var(--ember);
}

.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1 1 auto; }
button {
  cursor: pointer;
  background: linear-gradient(180deg, #e84a16, var(--accent2));
  border-color: #ff8a2b;
  color: #fff8f0;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.25);
}
button.secondary {
  background: #241612;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
  font-weight: 600;
}
button.ok {
  background: linear-gradient(180deg, #e84a16, #b82e0d);
  border-color: var(--gold);
}
button.warn { background: #7a5a12; border-color: var(--warn); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.help { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.msg {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #1a120f; border: 1px solid var(--line); font-size: 0.9rem;
}
.msg.ok { border-color: rgba(47,191,113,0.5); color: #baf5d2; }
.msg.err { border-color: rgba(239,93,93,0.5); color: #ffc9c9; }
.msg.warn { border-color: rgba(240,180,41,0.5); color: #ffe4a3; }

.pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pill {
  border: 1px solid var(--line); background: #1a120f; color: var(--text);
  border-radius: 999px; padding: 8px 12px; width: auto; font-weight: 600;
}
.pill.active { background: #3a1a10; border-color: var(--ember); color: #ffd7a8; }

.list {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  max-height: 220px; overflow-y: auto; background: #100c0b;
}
.list button {
  width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent; font-weight: 500;
  box-shadow: none;
}
.list button:last-child { border-bottom: 0; }
.list button:hover, .list button.active { background: #2a1610; }
.list .sub { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

.section-toggle {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.section-toggle button { flex: 1; }
.fork-grid {
  display: grid;
  gap: 10px;
}
.fork-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
}
.fork-btn strong {
  font-size: 1.05rem;
  color: #fff4e8;
}
.fork-btn span {
  color: #ffd7a8;
  font-size: 0.86rem;
  font-weight: 500;
}
.role-cadence-line {
  margin: 0 0 12px;
  color: #ffd7a8;
  font-weight: 600;
}
.role-fork-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.role-help-btn {
  align-self: flex-start;
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 120, 0.45);
  background: rgba(40, 24, 14, 0.85);
  color: #ffd7a8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.role-help-btn:hover {
  border-color: rgba(255, 183, 120, 0.75);
  color: #fff4e8;
}
.role-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.role-help-modal.hidden { display: none !important; }
.role-help-sheet {
  width: min(640px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: linear-gradient(180deg, #1a1210, #120e0c);
  border: 1px solid var(--line);
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  padding: 14px;
}
.role-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.role-help-head strong {
  color: #ffb07a;
  font-size: 1.1rem;
  line-height: 1.3;
}
.role-help-close {
  flex: 0 0 auto;
  width: auto;
}
.role-help-body {
  color: #f3e7db;
  font-size: 0.95rem;
  line-height: 1.45;
}
.role-help-body h3 {
  margin: 14px 0 6px;
  color: #ffd7a8;
  font-size: 0.98rem;
}
.role-help-body ol,
.role-help-body ul {
  margin: 0 0 10px 1.15rem;
  padding: 0;
}
.role-help-body li { margin: 0 0 8px; }
.role-help-body .why {
  color: #cbb7a4;
  font-size: 0.88rem;
}
.role-help-cadence {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 183, 120, 0.28);
  background: rgba(255, 138, 43, 0.08);
  color: #ffe0b8;
  font-weight: 700;
}
.role-help-actions {
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.role-help-dismiss {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  color: #cbb7a4;
  font-size: 0.86rem;
  font-weight: 500;
}
.tail-adsb-note {
  color: #ffd7a8 !important;
  border-left: 3px solid rgba(255, 183, 120, 0.55);
  padding-left: 10px;
}
@media (min-width: 720px) {
  .role-help-modal { align-items: center; }
  .role-help-sheet { border-radius: 16px; }
}
.path-bar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.path-bar > button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}
.hidden { display: none !important; }
.mission {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
  background: rgba(255, 90, 31, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 87, 0.08);
  position: relative;
  overflow: visible;
}
.mission .typeahead-list { z-index: 80; }
.mission strong { color: #ffb07a; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 8px; font-size: 0.9rem; }
.kv div:nth-child(odd) { color: var(--muted); }
.footer-note {
  margin-top: 18px; color: var(--muted); font-size: 0.8rem; text-align: center;
}
.footer-note a { color: var(--gold); }
.footer-note .views {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-note .views-badge {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 4px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  font-family: Verdana, Geneva, Arial, sans-serif;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
}
.footer-note .views-badge .label {
  background: #555;
  color: #fff;
  padding: 0 8px;
}
.footer-note .views-badge .count {
  background: var(--accent);
  color: #fff;
  padding: 0 8px;
  min-width: 3.5em;
  text-align: center;
}

.checkgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkgrid.gacc-grid {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 560px) {
  .checkgrid { grid-template-columns: 1fr; }
  .checkgrid.gacc-grid { grid-template-columns: 1fr 1fr; }
}
.checkgrid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #100c0b;
  color: var(--text);
  font-size: 0.9rem;
}
.checkgrid input[type="checkbox"],
.checkgrid input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.seat-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
}
.seat-search { margin-bottom: 6px; }
.seat-select-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.seat-chosen { margin-top: 6px; }
.seat-contact label { margin-top: 2px; }

/* Inline autocomplete (ghost text primary; list is light backup) */
.typeahead {
  position: relative;
  width: 100%;
}
.typeahead-input {
  width: 100%;
  position: relative;
  z-index: 2;
  background: transparent !important;
  /* keep typed text readable over ghost */
  color: var(--text);
  caret-color: var(--text);
}
.typeahead-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  /* Match common FDS input padding */
  padding: 10px 12px;
  pointer-events: none;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  box-sizing: border-box;
}
/* Typed portion invisible (real input shows it); remainder is faint ghost */
.typeahead-ghost-typed {
  color: transparent;
  white-space: pre;
}
.typeahead-ghost-rest {
  color: rgba(230, 210, 190, 0.42);
  white-space: pre;
}
/* Backup list — hidden unless ArrowDown / ambiguity / list mode */
.typeahead-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1a1210;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.typeahead-list.hidden { display: none; }
.typeahead-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(90, 42, 26, 0.45);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
}
.typeahead-option:last-child { border-bottom: 0; }
.typeahead-option:hover,
.typeahead-option.active {
  background: rgba(255, 90, 31, 0.16);
}
.typeahead-option-main {
  font-weight: 600;
  font-size: 0.92rem;
}
.typeahead-option-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}
.typeahead-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
/* Hint under search fields using the shared control */
.typeahead-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}
/* Hybrid: ghost on line + live match list while typing */
.typeahead-hybrid .typeahead-list {
  /* slightly taller so multi-match scroll is usable */
  max-height: 260px;
}
.typeahead-option.active {
  outline: 1px solid rgba(243, 193, 91, 0.55);
}
/* Confirmed pick — green lock chip so multi-match fields feel locked in */
.typeahead-locked .typeahead-input,
.typeahead-input-locked {
  border-color: rgba(61, 220, 132, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.35);
}
.typeahead-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(61, 220, 132, 0.35);
  background: rgba(61, 220, 132, 0.1);
  color: #b8f0cc;
  font-size: 0.82rem;
}
.typeahead-lock.hidden { display: none; }
.typeahead-lock-mark {
  color: #3ddc84;
  font-weight: 800;
}
.typeahead-lock-text strong { color: #e8ffe8; }
.typeahead-lock-clear {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #f3c15b;
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0 2px;
}
.last-used-actions .last-used-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.last-used-actions .last-used-action-row button {
  flex: 1 1 140px;
}

.attack-pair {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.attack-pair label {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #100c0b;
  color: var(--text);
  font-size: 0.9rem;
}
.attack-pair input { width: auto; margin: 0; accent-color: var(--accent); }

.product-list {
  display: grid;
  gap: 10px;
}
a.product-link,
.product-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1210, #140e0c);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px rgba(255, 138, 43, 0.08);
}
a.product-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.35), 0 8px 18px rgba(0,0,0,0.25);
}
.product-link strong {
  font-size: 1.02rem;
  color: #fff4e8;
}
.product-link span {
  color: #ffd7a8;
  font-size: 0.86rem;
  font-weight: 500;
}
.product-link.product-soon {
  opacity: 0.72;
  border-style: dashed;
  cursor: default;
}
.product-link.product-soon strong {
  color: #e8c8b0;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1210, #140e0c);
  box-shadow: 0 0 0 1px rgba(255, 138, 43, 0.08);
}
.product-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card-head strong {
  font-size: 1.02rem;
  color: #fff4e8;
}
.product-card-head span {
  color: #ffd7a8;
  font-size: 0.86rem;
  font-weight: 500;
}
.fire-code-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.fire-code-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 138, 43, 0.18);
}
.fire-code-grid .fc-label {
  color: #c9a88a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fire-code-grid .fc-val {
  color: #fff6ea;
  font-size: 1.02rem;
  font-weight: 700;
  word-break: break-word;
}
.fire-codes-search .fire-codes-select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  font-size: 16px;
}
.fire-codes-section-label {
  margin: 14px 0 8px;
  padding: 6px 2px;
  color: #b7f0c8;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.fire-code-card.exact {
  border-color: rgba(90, 220, 140, 0.45);
  box-shadow: 0 0 0 1px rgba(90, 220, 140, 0.12);
}
.fire-code-card.possible {
  opacity: 0.92;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.product-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.product-actions-row > a.product-action {
  flex: 1 1 180px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}
a.product-action,
button.product-action {
  appearance: none;
  border: 1px solid rgba(255, 138, 43, 0.45);
  background: #241611;
  color: #ffe7c8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
a.product-action.primary,
button.product-action.primary {
  background: linear-gradient(180deg, #ff7a2f, #e45712);
  border-color: transparent;
  color: #1a0d08;
}
a.product-action:hover,
button.product-action:hover:not(:disabled) {
  filter: brightness(1.05);
}
button.product-action:disabled,
a.product-action[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.product-archive {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 180px);
  flex: 1 1 160px;
}
.product-archive span {
  color: #c9b09a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product-archive select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #100c0b;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

/* Cooler blue theme for the whole Products stack */
.card.products-theme {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(180deg, rgba(18, 28, 36, 0.95), rgba(12, 18, 24, 0.98));
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(125, 211, 252, 0.1);
}
.card.products-theme h2 {
  color: #9ec9e8;
}
.card.products-theme .help {
  color: #9bb8cc;
}
.card.products-theme .help a {
  color: #7dd3fc;
}
.card.products-theme .path-bar > button.secondary {
  background: #142430;
  border-color: rgba(125, 211, 252, 0.35);
  color: #e8f6ff;
}
.card.products-theme .fork-btn,
.card.products-theme .fork-btn.ok {
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: linear-gradient(180deg, #1a3140, #122430);
  color: #e8f6ff;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.08), 0 8px 18px rgba(0,0,0,0.22);
}
.card.products-theme .fork-btn strong {
  color: #f3fbff;
}
.card.products-theme .fork-btn span {
  color: #b7d9ef;
}
.card.products-theme .fork-btn:hover {
  border-color: rgba(125, 211, 252, 0.7);
  filter: brightness(1.06);
}
.card.products-theme .product-card {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(180deg, #172a36, #101c24);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.08);
}
.card.products-theme .product-card-head strong {
  color: #f3fbff;
}
.card.products-theme .product-card-head span {
  color: #b7d9ef;
}
.card.products-theme a.product-link,
.card.products-theme .product-link {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(180deg, #172a36, #101c24);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.08);
}
.card.products-theme a.product-link:hover {
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.28), 0 8px 18px rgba(0,0,0,0.25);
}
.card.products-theme .product-link strong {
  color: #f3fbff;
}
.card.products-theme .product-link span {
  color: #b7d9ef;
}
.card.products-theme .product-link.product-soon strong {
  color: #9bb8cc;
}
.card.products-theme a.product-action,
.card.products-theme button.product-action {
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: #142430;
  color: #e8f6ff;
  box-shadow: none;
}
.card.products-theme a.product-action.primary,
.card.products-theme button.product-action.primary {
  background: linear-gradient(180deg, #4aa8d8, #2f7fad);
  border-color: transparent;
  color: #071018;
}
.card.products-theme .product-archive span {
  color: #8fb4cc;
}
.card.products-theme .product-archive select,
.card.products-theme input,
.card.products-theme select,
.card.products-theme textarea {
  border-color: rgba(125, 211, 252, 0.28);
  background: #0c141a;
  color: #e8f6ff;
}
.card.products-theme label {
  color: #b7d9ef;
}
.card.products-theme button:not(.secondary):not(.product-action) {
  background: linear-gradient(180deg, #4aa8d8, #2f7fad);
  border-color: #7dd3fc;
  color: #071018;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.2);
}
.card.products-theme button.secondary {
  background: #142430;
  border-color: rgba(125, 211, 252, 0.35);
  color: #e8f6ff;
  box-shadow: none;
}
.card.products-theme .list {
  border-color: rgba(125, 211, 252, 0.28);
  background: #0c141a;
}
.card.products-theme .list button {
  border-bottom-color: rgba(125, 211, 252, 0.18);
  background: transparent;
  color: #e8f6ff;
  box-shadow: none;
}
.card.products-theme .list button:hover,
.card.products-theme .list button.active {
  background: #173040;
}
.card.products-theme .msg {
  background: #101c24;
  border-color: rgba(125, 211, 252, 0.28);
}
/* Off-airport satellite map picker modal */
.map-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.map-picker-modal.hidden { display: none !important; }
.map-picker-sheet {
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  background: linear-gradient(180deg, #1a1210, #120e0c);
  border: 1px solid var(--line);
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-picker-head {
  padding: 12px 14px 8px;
}
.map-picker-head strong {
  color: #ffb07a;
  font-size: 1.05rem;
}
.map-picker-canvas {
  height: min(58vh, 480px);
  width: 100%;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,138,43,0.2);
  border-bottom: 1px solid rgba(255,138,43,0.2);
}
.map-picker-readout {
  padding: 8px 14px;
  margin: 0;
}
.map-picker-actions {
  padding: 10px 14px 14px;
}
@media (min-width: 720px) {
  .map-picker-modal { align-items: center; }
  .map-picker-sheet { border-radius: 16px; }
}


/* Back button in path bars: compact, clean arrow */
.path-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.path-bar > .secondary,
button.secondary[id*="back"],
button.secondary[id*="Back"] {
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.2;
  padding: 8px 12px;
  font-size: 0.95rem;
}
.path-bar > div {
  min-width: 0;
  flex: 1 1 auto;
}
/* GACC choice chips can be long names */
.checkgrid.gacc-grid label {
  font-size: 0.92rem;
  line-height: 1.25;
}

/* Pass A polish */
.tz-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.done-receipt {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  background: rgba(26, 18, 14, 0.92);
}
.done-receipt .receipt-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffd7a8;
}
.done-receipt dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 6px 10px;
  font-size: 0.9rem;
}
.done-receipt dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.done-receipt dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}
.done-receipt .receipt-note {
  margin: 10px 0 0;
  color: #baf5d2;
  font-size: 0.86rem;
}

/* Pass B polish */
.flow-breadcrumb {
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 138, 43, 0.28);
  background: rgba(26, 18, 14, 0.88);
  color: #ffd7a8;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.flow-breadcrumb .crumb-sep {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0.35em;
}
.last-used-wrap {
  margin: 0 0 12px;
}
.last-used-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.last-used-wrap .fork-btn {
  border-color: rgba(255, 200, 87, 0.45);
  background: linear-gradient(180deg, #3a2412, #24160e);
}
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.draft-actions button {
  width: auto;
  flex: 0 0 auto;
}

/* Pass C polish */
.product-asof {
  margin-top: 4px;
  color: #f0c27a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.product-asof:empty,
.product-asof.hidden {
  display: none;
}
.product-card-head .product-asof,
.product-link .product-asof {
  display: block;
}
.subpage-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.subpage-brand h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: var(--ember);
}
.subpage-brand .site-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.subpage-brand .site-link:hover {
  text-decoration: underline;
}
.subpage-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.subpage-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.subpage-nav a,
.subpage-nav .linkbtn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #444;
  color: inherit;
  background: #1a1a1a;
  font-size: 14px;
}
.subpage-nav a:hover,
.subpage-nav .linkbtn:hover {
  border-color: rgba(255, 138, 43, 0.55);
  color: #ffe09a;
}
.subpage-footer {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.subpage-footer .tz {
  color: #f0c27a;
  font-weight: 600;
}

/* Pass D polish */
.report-date-presets-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.report-date-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-date-preset-row button.report-date-preset {
  width: auto;
  flex: 0 0 auto;
  padding: 7px 10px;
  font-size: 0.84rem;
}
.report-date-preset-row button.report-date-preset.active {
  border-color: rgba(255, 200, 87, 0.65);
  background: linear-gradient(180deg, #3a2412, #24160e);
  color: #ffe09a;
}
.card.products-theme .report-date-preset-row button.report-date-preset {
  background: #1a120e;
  border-color: rgba(255, 138, 43, 0.35);
  color: #ffd7a8;
}
.card.products-theme .report-date-preset-row button.report-date-preset.active {
  border-color: rgba(255, 200, 87, 0.7);
  background: linear-gradient(180deg, #4a2d14, #2a180c);
  color: #fff0c8;
}

/* Tenex ASM Daily Flight Reading (post Lead/ASM EOS) */
#step_tenax_gate .fork-btn span,
#step_tenax_photos .help,
#step_tenax_form .help {
  color: var(--muted);
}
#step_tenax_photos input[type="file"],
#step_tenax_form input[type="file"] {
  width: 100%;
  color: var(--text);
  background: #1a120e;
  border: 1px dashed rgba(255, 138, 43, 0.45);
  border-radius: 10px;
  padding: 10px;
}
#tenax_prefill_box,
#tenax_gate_summary,
#tenax_photo_summary {
  margin-top: 10px;
}
.tenax-photo-stack {
  display: grid;
  gap: 12px;
}
.tenax-photo-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 43, 0.28);
  background: linear-gradient(180deg, rgba(42, 24, 12, 0.55), rgba(18, 12, 8, 0.75));
}
.tenax-photo-step {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff0c8;
  background: linear-gradient(180deg, #4a2d14, #2a180c);
  border: 1px solid rgba(255, 200, 87, 0.45);
}
.tenax-photo-body label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.tenax-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 4px;
}
.tenax-photo-actions button {
  width: 100%;
  min-height: 44px;
}
.tenax-file-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.tenax-photo-preview {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 138, 43, 0.25);
  background: #0d0a08;
}
#tenax_ocr_notes {
  color: #ffd89a;
}
#btn_tenax_read_photos:disabled,
#btn_tenax_read_photos.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#btn_tenax_no_cc.ok {
  border-color: rgba(90, 200, 120, 0.65);
  background: linear-gradient(180deg, #1d3a24, #122818);
  color: #d9ffe6;
}
.tenax-open-box {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  background: linear-gradient(180deg, rgba(42, 24, 12, 0.55), rgba(18, 12, 8, 0.75));
}
.tenax-open-box a.ok,
.tenax-open-box a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  box-sizing: border-box;
}
.tenax-open-box a.ok {
  color: #fff0c8;
  border: 1px solid rgba(255, 200, 87, 0.55);
  background: linear-gradient(180deg, #4a2d14, #2a180c);
}
.tenax-open-box a.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 138, 43, 0.35);
  background: #1a120e;
}
.tenax-comment-presets button {
  min-height: 40px;
  font-size: 0.92rem;
}

.product-actions-wrap{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ---- Polish 2026-08-06g: field forms, products, fire codes ---- */
.product-best-for {
  display: block;
  margin-top: 4px;
  color: var(--gold, #ffc857);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}
.product-card-head .product-best-for + span,
a.product-link .product-best-for + span {
  display: block;
  margin-top: 4px;
}
.form-validation-summary {
  margin-top: 10px;
  margin-bottom: 0;
}
.form-validation-summary.hidden { display: none; }
.field-invalid,
input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: var(--bad, #ef5d5d) !important;
  box-shadow: 0 0 0 1px rgba(239, 93, 93, 0.45);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ember, #ff8a2b);
  outline-offset: 2px;
}
.checkgrid label {
  min-height: 44px;
}
.fork-btn {
  min-height: 52px;
}
.fds-sticky-submit {
  display: none;
}
@media (max-width: 560px) {
  body.fds-sticky-submit-on .fds-sticky-submit:not(.hidden) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(10, 8, 6, 0.92), #0a0806 40%);
    border-top: 1px solid rgba(255, 138, 43, 0.35);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  }
  body.fds-sticky-submit-on .fds-sticky-submit button {
    flex: 1;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
  }
  body.fds-sticky-submit-on.fds-step-morning #form_morning,
  body.fds-sticky-submit-on.fds-step-eos #form_eos {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
.fire-code-card .fc-primary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-top: 6px;
}
.fire-code-card .fc-primary-row .fc-code {
  color: var(--gold, #ffc857);
  font-weight: 700;
  font-size: 1.05rem;
}
.fire-code-card .fc-primary-row .fc-order {
  color: var(--text);
  font-weight: 600;
}
.fire-code-card .fc-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.fire-code-card.exact {
  border-color: rgba(47, 191, 113, 0.45);
}
.tracker-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.tracker-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line, #5a2a1a);
  background: #141010;
  color: var(--text, #fff4e8);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.tracker-section-nav a:hover {
  border-color: var(--accent, #ff5a1f);
}
.tracker-section {
  scroll-margin-top: 12px;
}
@media (max-width: 560px) {
  .tracker-section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .tracker-section-nav a {
    flex: 0 0 auto;
    min-height: 40px;
  }
  .tracker-section {
    scroll-margin-top: 8px;
  }
}



/* Custom report redesign 2026-08-07 */
.report-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: #0c141a;
  color: #e8f6ff;
  font-size: 0.95rem;
  cursor: pointer;
}
.report-choice input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 18px;
  border: 2px solid rgba(125, 211, 252, 0.72);
  border-radius: 50%;
  background: #0c141a;
  box-shadow: none;
  accent-color: #38bdf8;
}
.report-choice input[type="radio"]:checked {
  border-color: #38bdf8;
  background: #38bdf8;
  box-shadow: inset 0 0 0 4px #0c141a;
}
.report-result-body {
  display: grid;
  gap: 12px;
}
.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 720px) {
  .report-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.report-stat-card {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: #0c141a;
  border-radius: 12px;
  padding: 10px 12px;
}
.report-stat-card .k {
  color: #9ec9df;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.report-stat-card .v {
  color: #f8fbff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
  word-break: break-word;
}
.report-section {
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: #0a1218;
  border-radius: 12px;
  padding: 12px;
}
.report-section h3 {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-size: 0.98rem;
}
.report-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.report-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #173040;
  color: #e8f6ff;
  font-size: 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

/* Aerial supervision qualification chips (People Tools) */
.aerial-sup-qual-host {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aerial-sup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.aerial-sup-row-label {
  min-width: 118px;
  color: #9ec9df;
  font-size: 0.9rem;
  font-weight: 600;
}
.aerial-sup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qual-chip {
  appearance: none;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: #141a20;
  color: #d7eefb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  line-height: 1.1;
  cursor: pointer;
}
.qual-chip:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: #173040;
}
.qual-chip.is-selected {
  background: #0e7490;
  border-color: #22d3ee;
  color: #ecfeff;
  font-weight: 600;
}
.qual-chip:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}
.people-qual-badge {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #173040;
  color: #e8f6ff;
  font-size: 0.78rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
}
.staffing-trainer-warn {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(113, 63, 18, 0.35);
  color: #fde68a;
  font-size: 0.9rem;
}
.report-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.report-table th,
.report-table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.report-table th {
  color: #9ec9df;
  font-weight: 600;
}
.report-table td {
  color: #e8f6ff;
}
.report-table td.wrap {
  white-space: normal;
  min-width: 120px;
}

/* ---- Glide Path board ---- */
.glide-controls .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.glide-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.glide-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ec9df;
  font-size: 0.82rem;
}
.glide-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.72rem;
  font-weight: 700;
}
.glide-board-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 10px;
  background: rgba(8, 20, 28, 0.55);
}
.glide-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}
.glide-table th,
.glide-table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  border-right: 1px solid rgba(125, 211, 252, 0.08);
  padding: 6px 5px;
  vertical-align: top;
}
.glide-id-h,
.glide-id {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0f2430;
  min-width: 210px;
  max-width: 260px;
  text-align: left;
  box-shadow: 4px 0 10px rgba(0,0,0,0.25);
}
.glide-id-h {
  z-index: 3;
  color: #9ec9df;
  font-weight: 700;
}
.glide-day-h {
  text-align: center;
  min-width: 46px;
  color: #9ec9df;
  font-weight: 600;
  background: rgba(15, 36, 48, 0.95);
  position: sticky;
  top: 0;
  z-index: 1;
}
.glide-dow { font-size: 0.7rem; opacity: 0.85; }
.glide-md { font-size: 0.78rem; font-weight: 700; }
.glide-call {
  color: #e8f6ff;
  font-weight: 800;
  font-size: 0.92rem;
}
.glide-sub {
  color: #8fb4c8;
  font-size: 0.72rem;
  margin-top: 2px;
  white-space: normal;
}
.glide-people { margin-top: 6px; }
.glide-person {
  color: #d7eef9;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: normal;
}
.glide-notes {
  margin-top: 4px;
  color: #f0b429;
  font-size: 0.7rem;
  white-space: normal;
}
.glide-cell {
  text-align: center;
  font-weight: 800;
  font-size: 0.72rem;
  min-width: 46px;
}
.glide-cell span {
  display: inline-block;
  min-width: 28px;
}


/* Last-used form status buttons (Isaac 2026-08-10) */
.last-used-actions .last-used-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.last-used-actions .last-used-action-row button {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.last-used-btn-title {
  font-size: 0.95rem;
  font-weight: 800;
}
.last-used-btn-status {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.last-used-btn-sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.25;
}
/* Needs done = bright red-orange (fire) */
button.last-used-needs {
  background: linear-gradient(180deg, #ff5a1f, #c21e08) !important;
  border: 1px solid #ffb347 !important;
  color: #fff7ed !important;
  box-shadow: 0 0 0 1px rgba(255, 140, 40, 0.35), 0 8px 16px rgba(0,0,0,0.28);
}
button.last-used-needs .last-used-btn-status {
  color: #ffe7c2;
}
button.last-used-needs .last-used-btn-sub {
  color: #ffd7b0;
}
/* Edit = duller burnt orange (done, still tappable) */
button.last-used-edit {
  background: linear-gradient(180deg, #8a4a28, #5c2f18) !important;
  border: 1px solid rgba(232, 168, 98, 0.55) !important;
  color: #f3d2b0 !important;
  box-shadow: 0 0 0 1px rgba(180, 100, 40, 0.18), 0 6px 12px rgba(0,0,0,0.22);
  opacity: 0.95;
}
button.last-used-edit .last-used-btn-status {
  color: #e8c49a;
}
button.last-used-edit .last-used-btn-sub {
  color: #d2b08a;
}
/* Optional = same dull family as Edit (prior EOS covers; not required unless something changed) */
button.last-used-optional {
  background: linear-gradient(180deg, #7a4e30, #4e3220) !important;
  border: 1px solid rgba(200, 150, 100, 0.45) !important;
  color: #e6d0b4 !important;
  box-shadow: 0 0 0 1px rgba(140, 90, 40, 0.14), 0 5px 10px rgba(0,0,0,0.18);
  opacity: 0.9;
}
button.last-used-optional .last-used-btn-status {
  color: #dcc2a0;
}
button.last-used-optional .last-used-btn-sub {
  color: #c9b090;
}
button.last-used-recent {
  outline: 2px solid rgba(255, 200, 90, 0.55);
  outline-offset: 1px;
}


/* last-used-action-stack-20260811aa: EOS → Morning → Tour vertical order (Isaac hierarchy) */
.last-used-actions .last-used-action-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}
.last-used-actions .last-used-action-row button {
  flex: 1 1 auto;
  width: 100%;
}
.last-used-staffing-group {
  border: 1px solid rgba(255, 200, 87, 0.48);
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
  background: rgba(18, 10, 6, 0.28);
}
.last-used-staffing-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
#action_fork_grid .start-fresh-nasdd-actions {
  display: block;
  width: 100%;
}


/* nasdd-new-tag-20260811g: *New* alone centered on top row of home NASDD button */
.nasdd-entry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.nasdd-entry-btn .nasdd-new-tag {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #ffe0b0;
  text-align: center;
}
.nasdd-entry-btn .nasdd-entry-title,
.nasdd-entry-btn strong.nasdd-entry-title {
  display: block;
  width: 100%;
  text-align: center;
  font-style: normal;
  line-height: 1.25;
}
.nasdd-entry-btn > span {
  display: block;
  width: 100%;
  text-align: center;
}


/* type-group-20260811h: aircraft type chooser sections */
#type_fork_grid.type-fork-grouped,
#type_fork_grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.type-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.type-group-title {
  margin: 2px 2px 0;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c48a;
  opacity: 0.95;
}
.type-group-grid {
  display: grid;
  gap: 10px;
}
.type-group-grid .fork-btn span:empty {
  display: none;
}

/* afff-20260811k — square, left-aligned option rows */
.afff-intro p { margin: 0 0 10px; line-height: 1.4; }
.afff-form .field { margin: 0 0 16px; }
.afff-form > .field > label,
.afff-form .field > label:not(.check-line) {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffe7c2;
  text-align: left;
}
.afff-form .help { font-weight: 500; opacity: 0.9; }
.afff-form textarea,
.afff-form input[type="text"],
.afff-form input[type="date"],
.afff-form select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: left;
}
.afff-form .check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
}
.afff-form .check-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  font-weight: 600;
  color: #fff4e8;
  text-align: left;
  justify-content: start;
  border-radius: 4px; /* square-ish cards */
  border: 1px solid rgba(255, 183, 120, 0.28);
  background: rgba(40, 24, 14, 0.45);
  cursor: pointer;
}
.afff-form .check-line:has(input:checked) {
  border-color: rgba(255, 168, 74, 0.75);
  background: rgba(70, 40, 16, 0.62);
}
.afff-form .check-line input[type="checkbox"],
.afff-form .check-line input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid rgba(255, 210, 150, 0.85);
  border-radius: 3px; /* square controls */
  background: rgba(12, 8, 6, 0.55);
  flex: 0 0 18px;
  justify-self: start;
  align-self: center;
  cursor: pointer;
  accent-color: #ff9a3c;
}
/* radios also square per Isaac preference */
.afff-form .check-line input[type="radio"] {
  border-radius: 3px;
}
.afff-form .check-line input[type="checkbox"]:checked,
.afff-form .check-line input[type="radio"]:checked {
  background: #ff9a3c;
  border-color: #ffb56a;
  box-shadow: inset 0 0 0 3px rgba(28, 16, 8, 0.85);
}
.afff-form .check-line .afff-opt-text {
  display: block;
  min-width: 0;
  text-align: left;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.afff-form .check-line input + .afff-opt-text,
.afff-form .check-line input + span {
  text-align: left;
}
/* safety row is a single check-line under field label */
.afff-form label.check-line {
  font-weight: 600;
}
.afff-type-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.afff-type-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0c48a;
  margin: 2px 0 6px;
  text-align: left;
}
.afff-safecom-link {
  display: inline-flex !important;
  width: auto !important;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 4px;
}
#afff_thanks h3 { color: #e8fff6; }
#afff_state_wrap,
#afff_local_wrap,
#afff_other_agency_wrap {
  text-align: left;
}

/* afff-view-20260813 — issue-first list + detail */
.afff-list-search label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffe7c2;
  text-align: left;
}
.afff-list-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: left;
}
.afff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.afff-list-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  border-radius: 4px;
  border: 1px solid rgba(255, 183, 120, 0.28);
  background: rgba(40, 24, 14, 0.45);
  color: #fff4e8;
  cursor: pointer;
  font: inherit;
}
.afff-list-item:hover,
.afff-list-item:focus-visible {
  border-color: rgba(255, 168, 74, 0.75);
  background: rgba(70, 40, 16, 0.62);
  outline: none;
}
.afff-list-issue {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  color: #fff8ef;
  overflow-wrap: anywhere;
}
.afff-list-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.afff-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 120, 0.28);
  background: rgba(20, 12, 8, 0.45);
  color: #f0c48a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
.afff-chip.safety {
  border-color: rgba(255, 120, 120, 0.55);
  color: #ffc3c3;
  background: rgba(70, 18, 18, 0.45);
}
.afff-list-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  opacity: 0.85;
  color: #f6d7b0;
}
.afff-list-empty {
  padding: 14px 12px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 183, 120, 0.28);
  color: #f6d7b0;
  text-align: left;
}
.afff-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.afff-detail-block {
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 183, 120, 0.22);
  background: rgba(28, 18, 12, 0.42);
}
.afff-detail-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0c48a;
}
.afff-detail-value {
  display: block;
  line-height: 1.4;
  color: #fff4e8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.afff-detail-issue .afff-detail-value {
  font-weight: 700;
  font-size: 1.02rem;
}
.afff-detail-topmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.afff-list-feedback {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f6d7b0;
  opacity: 0.95;
}
.fds-feedback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 243, 208, 0.22);
  background: rgba(10, 22, 18, 0.42);
}
.afff-detail + .fds-feedback,
#afff_detail_feedback.fds-feedback {
  border-color: rgba(255, 183, 120, 0.28);
  background: rgba(28, 18, 12, 0.42);
}
.fds-vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.fds-vote-btn {
  flex: 1 1 120px;
  min-height: 44px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}
.fds-vote-btn.up {
  background: #142820;
  border-color: rgba(110, 231, 183, 0.4);
  color: #e8fff6;
  box-shadow: none;
}
.fds-vote-btn.down {
  background: #281410;
  border-color: rgba(239, 93, 93, 0.4);
  color: #ffd7d0;
  box-shadow: none;
}
.fds-vote-btn.up.active {
  border-color: rgba(110, 231, 183, 0.85);
  background: linear-gradient(180deg, #1a4034, #122820);
  color: #f3fff9;
}
.fds-vote-btn.down.active {
  border-color: rgba(239, 93, 93, 0.85);
  background: linear-gradient(180deg, #5a2218, #2a120e);
  color: #fff4e8;
}
.fds-feedback-msg {
  margin: 0;
}
.fds-comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fds-comment {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.fds-comment-meta {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c9b09a;
}
.fds-comment-body {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.fds-comment-votes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.fds-comment-vote {
  flex: 1 1 0;
  min-height: 40px;
  font-size: 0.92rem;
  padding: 8px 10px;
}
.fds-comment-empty {
  font-size: 0.85rem;
  color: var(--muted);
}
.fds-comment-form {
  display: grid;
  gap: 8px;
}
.fds-comment-form input,
.fds-comment-form textarea {
  width: 100%;
}
.fds-comment-form textarea {
  min-height: 72px;
}
.fds-comment-form button {
  min-height: 44px;
}


/* nasdd-control-rule-20260811m */
.choice-select-host,
.gacc-select-host {
  display: block;
  width: 100%;
}
.choice-select-host .choice-select,
select.choice-select,
#tour_home_gacc,
#tour_assigned_gacc {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  text-align: left;
}
.checkgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.checkgrid label,
.checkgrid .choice-check-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 183, 120, 0.28);
  background: rgba(40, 24, 14, 0.45);
  text-align: left;
  font-weight: 600;
  color: #fff4e8;
  cursor: pointer;
}
.checkgrid label input,
.checkgrid .choice-check-line input {
  width: 18px;
  height: 18px;
  margin: 0;
  justify-self: start;
}
.checkgrid .choice-check-text {
  text-align: left;
  line-height: 1.3;
  min-width: 0;
}
/* keep gacc grids from forcing multi-column squeeze when leftover class */
.checkgrid.gacc-grid {
  grid-template-columns: 1fr;
}

/* afff-admin-clean-20260813 */
.afff-admin-box {
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 140, 100, 0.35);
  background: rgba(50, 18, 12, 0.42);
  text-align: left;
}
.afff-admin-box label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffd0b0;
}
.afff-admin-box input[type="password"],
.afff-admin-box input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
}
.afff-admin-box .help { margin-top: 8px; }
button.danger-ish {
  border-color: rgba(255, 120, 100, 0.45) !important;
  color: #ffd0c4 !important;
}

/* Staffing calendar — phone month grid */
.staffcal-input-wrap,
.staffcal-view-wrap {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,16,16,.55);
}
.staffcal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.staffcal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.staffcal-zoom-btn { min-width: 38px; padding: 7px 10px; }
.staffcal-zoom-label { min-width: 38px; text-align: center; }
.staffcal-paint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.staffcal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.staffcal-status label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 32px;
  white-space: nowrap;
  cursor: pointer;
}
.staffcal-status input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 200, 150, .72);
  border-radius: 50%;
  background: #100c0b;
  box-shadow: none;
}
.staffcal-status input[type="radio"]:checked {
  border-color: var(--ember);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #100c0b;
}
.staffcal-status input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px;
}
.staffcal-lookup {
  flex: 1 1 190px;
  min-width: min(190px, 100%);
}
.staffcal-grid-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}
.staffcal-grid,
.staffcal-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.staffcal-grid {
  --staffcal-zoom: 1;
  width: max(100%, calc(100% * var(--staffcal-zoom)));
}
.staffcal-dow {
  text-align: center;
  font-size: .72rem;
  opacity: .7;
  padding: 4px 0;
}
.staffcal-tile {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 4px;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.staffcal-grid .staffcal-tile { min-height: calc(46px * var(--staffcal-zoom)); }
.staffcal-grid .staffcal-tile .d { font-size: calc(.85rem * var(--staffcal-zoom)); }
.staffcal-grid .staffcal-tile .s { font-size: calc(.62rem * var(--staffcal-zoom)); }
.staffcal-tile .d { font-weight: 700; font-size: .85rem; }
.staffcal-tile .s { font-size: .62rem; opacity: .9; line-height: 1.15; overflow-wrap: anywhere; }
.staffcal-tile.empty { opacity: .35; border: 1px dashed rgba(255,255,255,.18); }
.staffcal-tile.past-locked {
  background: #090909;
  border-color: rgba(255,255,255,.04);
  box-shadow: none;
  cursor: default;
  opacity: .88;
  pointer-events: none;
}
.staffcal-tile.ghost {
  background: transparent;
  border: 1px solid currentColor;
  opacity: .55;
}
.staffcal-tile.avail { color: #fff; }
.staffcal-tile.tvl { color: #fff; box-shadow: inset 0 0 0 2px #f0b429; }
.staffcal-tile.broken { opacity: .7; box-shadow: inset 0 0 0 2px #ef5d5d; }
.staffcal-tile.today { outline: 1px solid #fff4e8; }
.staffcal-tile.pad { visibility: hidden; }
.staffcal-board { display: grid; gap: 12px; margin-top: 10px; }
.staffcal-row {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
}
.staffcal-row-h {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
}
.staffcal-row .staffcal-month { gap: 3px; }
.staffcal-row .staffcal-tile { min-height: 34px; padding: 2px; }
.staffcal-row .staffcal-tile.hole {
  background: transparent;
  border: 0;
  opacity: .15;
  pointer-events: none;
}

/* ASM/Lead past-day correction picker 20260825b */
.dayline-match-panel {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(240, 180, 41, 0.45);
  background: rgba(42, 28, 10, 0.55);
}
.dayline-match-head {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffe4a3;
  margin-bottom: 8px;
  line-height: 1.35;
}
.dayline-match-list {
  display: grid;
  gap: 8px;
}
.dayline-match-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 87, 0.28);
  background: rgba(16, 12, 10, 0.72);
}
.dayline-match-row.active {
  border-color: rgba(47, 191, 113, 0.55);
  box-shadow: 0 0 0 1px rgba(47, 191, 113, 0.25);
}
.dayline-match-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.dayline-match-copy strong {
  display: block;
  color: #fff4e8;
}
.dayline-match-copy .sub {
  display: block;
  margin-top: 3px;
  color: #c9a890;
  font-size: 0.8rem;
}
.dayline-match-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  width: 92px;
}
.dayline-match-actions button {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

/* Review and compact profile controls */
.fds-review-dialog{max-width:520px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;background:#151b22;color:#f5f5f5;border:1px solid #b77835;border-radius:14px;padding:18px}.fds-review-dialog::backdrop{background:#000b}.fds-review-dialog button{min-height:44px;margin:8px 8px 0 0}.fds-review-dialog fieldset{border:1px solid #56616b;margin:10px 0;min-width:0}.fds-review-dialog select{width:100%}.fds-source-summary,.fds-calendar-suggestion{padding:10px;margin:8px 0;border:1px solid #55616a;border-radius:8px}.fds-profile-details{border:1px solid #4a545e;border-radius:10px;padding:10px;margin:12px 0}.fds-profile-details summary{cursor:pointer;min-height:44px;font-weight:bold}.fds-boot-error{padding:16px;border:2px solid #f49b43;border-radius:10px;background:#231b13;margin:12px}
