:root {
  color-scheme: dark;
  --bg: #0b1728;
  --panel: #11213a;
  --panel2: #192c4a;
  --line: #2a415e;
  --muted: #a2b3c7;
  --text: #edf1f9;
  --accent: #aac9dd;
  --mint: #79e2c8;
  --brand-control: #7ca1bb;
  --radius: 16px;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
svg [role="button"]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: var(--accent);
}
svg {
  display: block;
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
h3 {
  font-weight: 550;
  font-size: 18px;
  letter-spacing: -0.3px;
}
p {
  line-height: 1.65;
}
small {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--panel);
  padding: 16px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: 60px;
}
.shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 31px 20px 22px;
  display: flex;
  flex-direction: column;
  background: #0d111b;
}
.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 3px;
}
.brand-logo {
  width: 126px;
  height: 92px;
  object-fit: contain;
  display: block;
}
.brand-sub {
  margin: 12px 0 30px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #747e92;
  padding: 0 13px;
  margin: 0 0 12px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  background: none;
  border: 1px solid transparent;
  text-align: left;
  padding: 13px 14px;
  color: #9ba5b9;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 9px;
  font-size: 13px;
}
.nav button:hover {
  color: var(--text);
  background: #151b29;
}
.nav button.active {
  color: #bbddff;
  background: #1e2a36;
  border-color: #313f4e;
}
.nav button.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}
.nav-sep {
  border-top: 1px solid var(--line);
  margin: 26px 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.mission-note {
  padding: 17px 13px;
  background: linear-gradient(135deg, #1c2032, #101622);
  border: 1px solid #282f43;
  border-radius: 12px;
  margin: 35px 0 22px;
}
.mission-note b {
  font-size: 12px;
  font-weight: 500;
}
.mission-note p {
  color: var(--muted);
  font-size: 11px;
  margin: 8px 0 13px;
}
.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.identity {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border: 0;
  background: none;
  text-align: left;
}
.identity .name {
  font-size: 12px;
  display: block;
}
.identity small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b3b4c;
  color: #c1e0ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.avatar.mint {
  background: #183b38;
  color: var(--mint);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 16px;
}
.breadcrumb {
  color: #7e889d;
  font-size: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.breadcrumb strong {
  color: #d0d6e4;
  font-weight: 400;
}
.top-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.preview-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #aeb7ca;
  border: 1px solid #313749;
  border-radius: 30px;
  padding: 6px 10px;
}
.preview-badge:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
}
.top-actions button {
  font-size: 12px;
}
.main {
  padding: 33px 38px 24px;
  max-width: 1900px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 11px;
  max-width: 690px;
}
.primary,
.secondary,
.quiet,
.danger {
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.primary {
  background: #a7d3ff;
  color: #111921;
  font-weight: 600;
  box-shadow: 0 3px 16px #8ac4ff14;
}
.primary:hover {
  background: #bddeff;
}
.secondary {
  background: #191f2c;
  border-color: #343b4e;
  color: #dde1ec;
}
.secondary:hover {
  background: #242b3b;
}
.quiet {
  background: none;
  border-color: var(--line);
  color: var(--muted);
}
.danger {
  background: #36222c;
  color: #ffc5c5;
  border-color: #593441;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 25px;
  background: #101520;
}
.metric {
  padding: 18px 23px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.metric:last-child {
  border: 0;
}
.metric-icon {
  color: #8ab2db;
  background: #1e2833;
  border: 1px solid #2b3a49;
  padding: 10px;
  border-radius: 9px;
}
.metric:nth-child(2) .metric-icon {
  color: var(--mint);
  background: #182c2c;
  border-color: #24413e;
}
.metric:nth-child(3) .metric-icon {
  color: #90b9f2;
  background: #182536;
  border-color: #253951;
}
.metric:nth-child(4) .metric-icon {
  color: #d8b484;
  background: #2b251f;
  border-color: #40352b;
}
.metric b {
  font-size: 24px;
  font-weight: 550;
  display: block;
  line-height: 1.15;
  letter-spacing: -0.7px;
}
.metric small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121823;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  flex: 1;
  max-width: 470px;
  color: #7d8ba3;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  padding: 12px 0;
  font-size: 12px;
}
.search:focus-within {
  outline: 1px solid var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: #788398;
}
.filters select {
  min-width: 135px;
  max-width: 210px;
  background: #141a26;
  border: 1px solid var(--line);
  padding: 11px 29px 11px 12px;
  border-radius: 8px;
  color: #bdc5d5;
  font-size: 11px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  margin-left: auto;
  background: #111621;
}
.view-toggle button {
  border: 0;
  border-radius: 5px;
  background: none;
  padding: 7px 10px;
  color: #7e899d;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
}
.view-toggle button.active {
  background: #293542;
  color: #bcddff;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 18px;
  align-items: stretch;
}
.map-panel {
  position: relative;
  border: 1px solid #2a3244;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(
    ellipse at 49% 43%,
    #1b243a 0%,
    #101725 52%,
    #101521 90%
  );
  min-height: 585px;
}
.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(#46557320 1px, transparent 1px),
    linear-gradient(90deg, #46557320 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.map-top {
  position: absolute;
  top: 22px;
  left: 23px;
  z-index: 2;
  pointer-events: none;
}
.map-top .mini {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #a6b2c9;
}
.map-top h3 {
  font-size: 13px;
  margin-top: 8px;
  letter-spacing: 0;
}
.map-top p {
  font-size: 10px;
  color: #7b899f;
  margin-top: 5px;
}
.map-status {
  position: absolute;
  top: 23px;
  right: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--mint);
}
.map-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}
.map-svg {
  display: block;
  width: 100%;
  height: 585px;
  touch-action: none;
}
.land {
  fill: #24334c;
  stroke: #52627f;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
}
.land.ireland {
  fill: #1b2639;
  stroke: #37435c;
}
.coast-glow {
  filter: drop-shadow(0 0 12px #6c7ab42b);
}
.connection {
  fill: none;
  stroke: #8dc6ff;
  stroke-width: 1.1;
  stroke-dasharray: 4 5;
  opacity: 0.42;
  vector-effect: non-scaling-stroke;
}
.connection.selected {
  stroke: #9bcdff;
  stroke-width: 1.5;
  opacity: 0.9;
  animation: flow 28s linear infinite;
}
.map-node {
  cursor: pointer;
  outline: none;
}
.map-node .halo {
  fill: #8cc5ff20;
  stroke: #a1d0ff35;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.map-node .core {
  fill: #95caff;
  stroke: #cce5ff;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px #8ac3fc);
}
.map-node.selected .halo {
  fill: #9fcfff22;
  stroke: #b0d7ff80;
}
.map-node.selected .core {
  fill: #d7ebff;
}
.map-node:focus .halo {
  stroke: var(--mint);
  stroke-width: 3;
}
.map-node text {
  fill: #d7dff0;
  font-size: 10px;
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
  paint-order: stroke;
  stroke: #101725;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-node .sub {
  fill: #9cc4ed;
  font-size: 8px;
}
.site-dot {
  fill: #6f8dbe;
  stroke: #a8b8ce;
  stroke-width: 0.6;
}
.water-label {
  fill: #8499bb;
  opacity: 0.5;
  font-size: 8px;
  letter-spacing: 3px;
}
.map-tools {
  position: absolute;
  right: 16px;
  bottom: 62px;
  display: grid;
  border: 1px solid #3c455d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 25px #0003;
}
.map-tools button {
  border: 0;
  border-bottom: 1px solid #30394d;
  background: #192235;
  padding: 10px;
  color: #bbc4d7;
}
.map-tools button:last-child {
  border: 0;
}
.map-legend {
  position: absolute;
  left: 22px;
  bottom: 23px;
  display: flex;
  gap: 18px;
  font-size: 9px;
  color: #a2aec3;
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9bcdff;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 10px #9fcfff66;
}
.legend-line {
  display: inline-block;
  width: 17px;
  border-top: 1px dashed #94c4f5;
  margin-right: 6px;
  vertical-align: middle;
}
.map-attribution {
  position: absolute;
  right: 16px;
  bottom: 21px;
  font-size: 8px;
  color: #7f8ca4;
}
.map-attribution a {
  color: inherit;
}
.project-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #171d2b, #121723);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  background: #19352f;
  color: #8de6c8;
  letter-spacing: 0.2px;
}
.pill:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.pill.pending {
  background: #39301e;
  color: #e5c787;
}
.pill.example {
  background: #293643;
  color: #b5daff;
}
.icon-button {
  border: 0;
  background: none;
  color: #8d99b0;
  padding: 4px;
  display: grid;
  place-items: center;
}
.icon-button.saved {
  color: var(--accent);
}
.website-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #a9bdd2;
  text-decoration: none;
  font-size: 13px;
  border-radius: 7px;
}
.website-link:hover {
  background: #203652;
  color: #fff;
}
.timeline-list {
  display: grid;
  gap: 22px;
}
.timeline-card {
  padding: 26px;
  background: #12233a;
  border: 1px solid #30465f;
  border-radius: 12px;
  min-width: 0;
}
.timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.timeline-heading h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 15px 0 8px;
}
.timeline-heading p {
  color: #a5bbce;
  font-size: 13px;
}
.timeline-heading button {
  flex-shrink: 0;
}
.project-timeline {
  margin: 26px 0;
}
.project-timeline h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9cb6cd;
}
.milestone-track {
  display: flex;
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  overflow-x: auto;
}
.milestone {
  position: relative;
  flex: 1;
  min-width: 155px;
  border-top: 2px solid #3b536b;
  padding: 25px 22px 0 0;
}
.milestone-dot {
  position: absolute;
  left: 0;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #192c4a;
  border: 2px solid #7293af;
}
.milestone.completed {
  border-color: #80b9ad;
}
.milestone.completed .milestone-dot {
  background: #8dcbb9;
  border-color: #8dcbb9;
}
.milestone.current .milestone-dot {
  background: #c0ddec;
  border-color: #e1f1fa;
  box-shadow:
    0 0 0 5px #7ca1bb33,
    0 0 16px #7ca1bb99;
}
.milestone.blocked .milestone-dot {
  background: #d5aa7a;
}
.milestone small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9fbad0;
  margin-bottom: 10px;
}
.milestone b {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.milestone p {
  font-size: 12px;
  line-height: 1.65;
  color: #99adc2;
  margin: 9px 0;
}
.milestone-row {
  padding: 20px;
  border: 1px solid #3a526c;
  border-radius: 8px;
  margin: 16px 0;
}
.board-label {
  display: block;
  margin-top: 8px;
  color: #9bc4dc;
  letter-spacing: 1.5px;
  font-size: 10px;
}
.danger {
  color: #e4b5b0;
}
.hub-leader {
  fill: none;
  stroke: #7ca1bb66;
  stroke-width: 0.7;
}
@media (max-width: 1000px) {
  .website-link span {
    display: none;
  }
  .website-link {
    justify-content: center;
    padding: 12px;
  }
}
@media (max-width: 760px) {
  .timeline-card {
    padding: 20px;
  }
  .timeline-heading {
    flex-direction: column;
  }
  .milestone-track {
    flex-direction: column;
    padding: 10px 0 0 6px;
    overflow: visible;
  }
  .milestone {
    min-width: 0;
    border-top: 0;
    border-left: 2px solid #3b536b;
    padding: 0 0 28px 22px;
  }
  .milestone-dot {
    left: -7px;
    top: 3px;
  }
  .milestone-row {
    padding: 14px;
  }
}
.detail-category {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8aa4be;
  margin-bottom: 10px;
}
.project-detail h2 {
  font-size: 24px;
  line-height: 1.27;
  letter-spacing: -0.65px;
}
.location {
  color: #8e9bb1;
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 13px;
}
.project-detail .summary {
  font-size: 12px;
  line-height: 1.85;
  color: #a1acc0;
  margin-top: 20px;
}
.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 21px;
  padding-top: 18px;
}
.section-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #909db3;
  margin-bottom: 11px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 10px;
  color: #b1d4f7;
  background: #23303e;
  border: 1px solid #334456;
  padding: 6px 9px;
  border-radius: 5px;
  line-height: 1.3;
}
.tag.muted {
  color: #abb8cd;
  background: #202939;
  border-color: #303d50;
}
.lead {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lead b {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.lead small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.detail-actions {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 9px;
}
.detail-actions .primary {
  width: 100%;
}
.detail-actions .text-btn {
  justify-content: center;
  padding: 5px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 27px 0 17px;
}
.section-head h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
}
.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111723;
  padding: 21px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-card:hover {
  border-color: #485b6e;
  background: #151a29;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  font-size: 10px;
  color: var(--muted);
}
.card-top .category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #222d39;
  color: #a0caf5;
}
.project-card h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.project-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 17px;
}
.project-card .tags {
  margin-top: auto;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 14px;
  gap: 8px;
}
.card-bottom span {
  font-size: 10px;
  color: var(--muted);
}
.card-bottom button {
  font-size: 11px;
}
.example-note {
  font-size: 10px;
  color: #7e8ba1;
  margin: 21px 0 0;
  line-height: 1.7;
  display: flex;
  gap: 7px;
  align-items: start;
}
.empty {
  padding: 50px 25px;
  text-align: center;
  border: 1px dashed #384057;
  border-radius: 14px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty h3 {
  color: var(--text);
  margin-bottom: 10px;
}
.empty .primary {
  margin-top: 18px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.member-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121824;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.member-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 14px;
}
.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.member-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.member-card .role {
  color: #a2adc1;
  font-size: 12px;
}
.member-card p {
  color: var(--muted);
  font-size: 12px;
}
.member-card .tags {
  margin-top: auto;
}
.member-card .location {
  margin: 0;
}
.member-card .text-btn {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.wide-panel {
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 30px;
}
.prose p {
  color: #b2bbcd;
  margin: 16px 0;
  font-size: 14px;
  max-width: 750px;
}
.prose h2 {
  margin: 30px 0 15px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}
.step {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
}
.step strong {
  color: var(--accent);
  font-size: 12px;
}
.step h3 {
  font-size: 15px;
  margin-top: 16px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.queue {
  display: grid;
  gap: 14px;
}
.queue-item {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 22px;
}
.queue-item h3 {
  margin: 10px 0;
}
.queue-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.queue-item .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.note {
  padding: 15px;
  border: 1px solid #354656;
  background: #202b36;
  border-radius: 9px;
  font-size: 12px;
  color: #bcd5ee;
  line-height: 1.6;
  margin: 14px 0;
}
.tabs-row {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.tabs-row button {
  border: 1px solid var(--line);
  background: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--muted);
}
.tabs-row button.active {
  background: #253342;
  color: #b8dafc;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #c4ccda;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0f1520;
  border: 1px solid #354054;
  color: var(--text);
  border-radius: 7px;
  padding: 11px 12px;
  line-height: 1.5;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
}
.field small {
  font-size: 11px;
  line-height: 1.5;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.check {
  padding: 10px;
  border: 1px solid #343d51;
  border-radius: 7px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #b4bfd3;
}
.check:has(input:checked) {
  background: #212f3e;
  border-color: #739dc8;
  color: #c8e3ff;
}
.check input {
  accent-color: var(--brand-control);
}
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 25px;
}
.form-error {
  color: #ffb8ba;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.auth-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 17px 0;
}
.pending-banner {
  border: 1px solid #4c4026;
  background: #29251d;
  color: #e0c791;
  padding: 14px 20px;
  border-radius: 9px;
  margin-bottom: 25px;
  font-size: 12px;
}
dialog {
  background: #151b28;
  color: var(--text);
  border: 1px solid #39435a;
  border-radius: 18px;
  width: 660px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  padding: 30px;
  box-shadow: 0 30px 130px #000a;
}
dialog::backdrop {
  background: #060913c9;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 24px;
}
.dialog-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.dialog-body > p {
  font-size: 13px;
  color: #aab6ca;
  line-height: 1.9;
  margin: 15px 0;
}
.dialog-body h3 {
  margin: 25px 0 12px;
  font-size: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #28372f;
  border: 1px solid #4e7560;
  color: #d9f5e5;
  border-radius: 9px;
  padding: 13px 20px;
  box-shadow: 0 6px 30px #0006;
  max-width: 90vw;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
.mobile-brand {
  display: none;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #202838;
  padding-top: 20px;
  margin-top: 28px;
  font-size: 9px;
  color: #778399;
  letter-spacing: 0.3px;
}
.filter-count {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.checkbox-line input {
  accent-color: var(--brand-control);
}
@keyframes flow {
  to {
    stroke-dashoffset: -180;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1550px) {
  .map-panel,
  .map-svg {
    min-height: 640px;
    height: 640px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 365px;
  }
  .project-detail {
    padding: 29px;
  }
  .main {
    padding: 36px 46px;
  }
  .project-detail h2 {
    font-size: 28px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px 18px;
  }
  .brand {
    font-size: 23px;
  }
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 295px;
  }
  .project-detail {
    padding: 19px;
  }
  .project-detail h2 {
    font-size: 21px;
  }
  .metric {
    padding: 15px 12px;
    gap: 10px;
  }
  .metric-icon {
    padding: 8px;
  }
  .map-top {
    top: 18px;
    left: 18px;
  }
  .map-status {
    display: none;
  }
  .filters select {
    min-width: 100px;
    max-width: 170px;
  }
  .map-attribution {
    bottom: 45px;
  }
  .map-legend {
    gap: 12px;
    left: 15px;
  }
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    align-items: center;
    padding: 28px 10px;
  }
  .brand {
    padding: 0;
  }
  .brand > span,
  .brand-sub,
  .nav-label,
  .nav button > span,
  .mission-note,
  .identity > div:not(.avatar) {
    display: none;
  }
  .nav button {
    padding: 13px;
  }
  .nav button.active:after {
    display: none;
  }
  .nav-sep {
    width: 30px;
    margin: 23px 0;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .identity {
    justify-content: center;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .heading h1 {
    font-size: 30px;
  }
  .heading p {
    max-width: 440px;
  }
  .metric small {
    font-size: 10px;
  }
  .metric b {
    font-size: 21px;
  }
  .metric-icon {
    display: none;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid > .project-card:nth-child(3) {
    display: none;
  }
  .project-grid.full-grid > .project-card:nth-child(3) {
    display: flex;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search {
    min-width: 220px;
  }
  .filters select {
    max-width: 190px;
  }
  .map-svg {
    height: 565px;
  }
  .map-panel {
    min-height: 565px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 8;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 6px;
    background: #0e1322f5;
    backdrop-filter: blur(12px);
  }
  .sidebar .brand,
  .sidebar .nav-label,
  .nav-sep,
  .sidebar-bottom,
  .sidebar .nav.secondary-nav {
    display: none;
  }
  .nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    padding: 7px 10px;
    border: 0;
  }
  .nav button > span {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 2px;
  }
  .top-actions {
    gap: 10px;
  }
  .preview-badge {
    font-size: 9px;
    padding: 5px 7px;
  }
  .main {
    padding: 27px 20px 90px;
  }
  .heading {
    align-items: start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .heading p {
    font-size: 12px;
    max-width: 100%;
  }
  .heading > .primary {
    padding: 10px 14px;
    margin-top: 5px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
  }
  .metric {
    padding: 15px 18px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric b {
    font-size: 23px;
  }
  .metric-icon {
    display: block;
  }
  .metric small {
    font-size: 10px;
  }
  .filters {
    gap: 8px;
  }
  .search {
    max-width: none;
    min-width: 100%;
    flex-basis: 100%;
  }
  .filters select {
    max-width: calc(50% - 5px);
    flex: 1;
    padding-right: 15px;
    min-width: 0;
  }
  .view-toggle {
    margin-left: 0;
  }
  .map-layout {
    display: flex;
    flex-direction: column;
  }
  .map-panel {
    min-height: 520px;
  }
  .map-svg {
    height: 520px;
  }
  .map-top h3 {
    font-size: 11px;
  }
  .map-top .mini {
    font-size: 9px;
  }
  .map-top p {
    font-size: 9px;
  }
  .map-tools {
    bottom: 65px;
  }
  .map-legend {
    bottom: 20px;
    font-size: 8px;
  }
  .map-attribution {
    bottom: 42px;
    font-size: 7px;
  }
  .project-detail h2 {
    font-size: 24px;
  }
  .project-detail {
    padding: 23px;
  }
  .detail-section {
    margin-top: 17px;
    padding-top: 16px;
  }
  .detail-actions {
    padding-top: 22px;
  }
  .project-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }
  .project-grid > .project-card:nth-child(3) {
    display: flex;
  }
  .section-head h2 {
    font-size: 16px;
  }
  .section-head .text-btn {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .wide-panel {
    padding: 22px;
  }
  .footer-line {
    line-height: 1.8;
    flex-direction: column;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  dialog {
    padding: 23px;
  }
  .top-actions .text-btn {
    font-size: 10px;
  }
  .example-note {
    font-size: 9px;
  }
}

/* Keep geographical labels readable as the map scales down. */
.map-node text {
  font-size: 12px;
}
.map-node .sub {
  font-size: 9px;
}
@media (max-width: 760px) {
  .map-node text {
    font-size: 16px;
  }
  .map-node .sub {
    font-size: 11px;
  }
  .filters select {
    min-width: calc(50% - 4px);
  }
  .view-toggle {
    margin-left: auto;
  }
}

/* Existing ORAIA brand: navy #192C4A and steel blue #7CA1BB. */
.sidebar {
  background: #101f35;
}
.sidebar > .brand {
  justify-content: center;
  width: 100%;
}
.primary {
  background: #192c4a;
  color: #f5f9ff;
  border-color: #527694;
  box-shadow: 0 3px 16px #07112033;
}
.primary:hover {
  background: #284666;
  border-color: #7ca1bb;
}
.nav button.active,
.view-toggle button.active,
.tabs-row button.active {
  background: #192c4a;
  color: #d4e5f1;
  border-color: #42617e;
}
.avatar {
  background: #192c4a;
  color: #c2dae9;
}
.metric-icon,
.card-top .category-icon {
  background: #192c4a;
  color: #a7c6db;
  border-color: #344e6c;
}
.pill.example,
.tag {
  background: #192c4a;
  color: #bfd6e6;
  border-color: #385574;
}
.connection,
.connection.selected {
  stroke: #7ca1bb;
}
.map-node .core {
  fill: #7ca1bb;
  stroke: #d6e9f4;
  filter: drop-shadow(0 0 5px #7ca1bb88);
}
.map-node .halo {
  fill: #7ca1bb20;
  stroke: #7ca1bb55;
}
.map-node.selected .halo {
  fill: #7ca1bb33;
  stroke: #bad6e699;
}
.map-node.selected .core {
  fill: #e3f0f8;
}
.map-node .sub {
  fill: #accbde;
}
.legend-dot {
  background: #7ca1bb;
  box-shadow: 0 0 10px #7ca1bb66;
}
.legend-line {
  border-color: #7ca1bb;
}
.detail-category {
  color: #a7c6db;
}
@media (max-width: 1000px) {
  .sidebar .brand-logo {
    width: 48px;
    height: 35px;
  }
}
@media (max-width: 760px) {
  .mobile-brand .brand-logo {
    width: 66px;
    height: 48px;
  }
}

.network-welcome { text-align:center; padding:12px 0 36px; }
.welcome-map { max-height:400px; width:100%; object-fit:contain; }

.mobile-more { display:none; position:relative; }
@media (max-width:760px) {
  .mobile-more { display:block; }
  .mobile-more summary { cursor:pointer; font-size:12px; padding:10px 4px; }
  .mobile-more nav { position:absolute; right:0; top:40px; z-index:60; width:190px; padding:8px; background:#142a46; border:1px solid #527694; border-radius:10px; box-shadow:0 12px 30px #0006; }
  .mobile-more nav button, .mobile-more nav a { display:block; width:100%; padding:12px; text-align:left; color:#eef4fa; background:transparent; border:0; border-radius:6px; text-decoration:none; font:inherit; font-size:13px; }
  .mobile-more nav button:hover, .mobile-more nav a:hover { background:#284666; }
}

/* Browse all visible projects associated with the selected map location. */
.hub-browser { border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:22px; }
.hub-browser h3 { margin:7px 0 14px; font-size:18px; color:#eaf2fa; overflow-wrap:anywhere; }
.hub-carousel-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.hub-carousel-controls .icon-button { width:40px; height:40px; border:1px solid #42617e; background:#192c4a; border-radius:8px; }
.hub-carousel-controls .icon-button:disabled { opacity:.3; cursor:default; }
.hub-previous svg { transform:rotate(180deg); }
.hub-project-count { color:#c8d9e7; font-size:12px; font-variant-numeric:tabular-nums; }
.hub-project-picker { display:block; color:#9aafc4; font-size:11px; }
.hub-project-picker select { display:block; width:100%; min-width:0; margin-top:7px; padding:10px 8px; border:1px solid #42617e; border-radius:7px; background:#101f35; color:#eaf2fa; font:inherit; font-size:12px; }
.hub-project-slide { display:flex; flex:1; flex-direction:column; min-width:0; }

.hub-label-hit { fill:transparent; pointer-events:all; }
.map-node:hover .hub-label-hit, .map-node:focus .hub-label-hit { fill:#7ca1bb18; }
