:root {
  --bg: #f3f6f9;
  --ink: #18344c;
}
.rail {
  width: 225px;
  padding-top: 28px;
}
.rail-label {
  margin-bottom: 28px;
  font-size: 9px;
}
.rail nav {
  gap: 3px;
}
.rail nav button {
  font-size: 12px;
  padding: 10px 13px;
}
main {
  margin-left: 225px;
  padding: 0 30px 32px;
}
header {
  height: 108px;
}
header select {
  width: 200px;
  background: #fff;
}
.hero-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 7px 0 24px;
  gap: 20px;
}
.hero-line h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0 10px;
}
.hero-line p {
  max-width: 680px;
  color: #688093;
  line-height: 1.7;
  margin: 0;
}
.small-label {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  color: #6f8495;
}
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.vertical-card {
  background: #fff;
  border: 1px solid #e0e7ed;
  border-radius: 10px;
  padding: 21px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.vertical-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sector);
}
.vertical-card:hover {
  border-color: var(--sector);
}
.vertical-card h3 {
  font-size: 16px;
  margin: 0 0 22px;
}
.vertical-card .large {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-right: 7px;
}
.vertical-card p {
  color: #6c8293;
  font-size: 11px;
  margin: 10px 0 0;
}
.vertical-card .sector-dot {
  float: right;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--sector);
}
.summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #102b46;
  color: white;
  border-radius: 10px;
  margin: 25px 0;
  padding: 24px 0;
}
.summary-band > div {
  padding: 0 26px;
  border-right: 1px solid #375064;
}
.summary-band strong {
  font-size: 29px;
  display: block;
}
.summary-band small {
  color: #a9c1d3;
  display: block;
  margin-top: 9px;
  font-size: 11px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.wide-split {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
}
.wide-split > *,
.two-col > * {
  min-width: 0;
}
.section-toolbar p {
  line-height: 1.6;
}
.network-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 640px;
  height: calc(100vh - 210px);
  background: #fff;
}
.network-list {
  padding: 20px;
  overflow: auto;
  border-right: 1px solid var(--line);
}
.network-list input {
  margin-bottom: 15px;
}
.network-list .asset-row {
  width: 100%;
  margin: 3px 0;
}
.network-map {
  position: relative;
  min-width: 0;
  min-height: 620px;
}
.network-map #u-map {
  width: 100% !important;
  height: 100% !important;
}
.floating-tools {
  position: absolute;
  top: 17px;
  left: 17px;
  right: 17px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.floating-tools > * {
  pointer-events: auto;
}
.map-label {
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 3px 15px #122d4510;
  border-radius: 7px;
  font-size: 12px;
}
.map-label small {
  display: block;
  margin-top: 5px;
}
.map-info {
  position: absolute;
  right: 60px;
  bottom: 50px;
  background: white;
  width: 280px;
  border-radius: 9px;
  padding: 20px;
  box-shadow: 0 6px 30px #1233;
}
.map-info h3 {
  font-size: 19px;
  margin: 12px 0 6px;
}
.map-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 11px;
  line-height: 1.6;
  gap: 7px;
  margin: 18px 0;
}
.map-info dt {
  color: #698094;
}
.map-info dd {
  text-align: right;
  margin: 0;
}
.map-info .actions {
  gap: 6px;
}
.map-info button {
  font-size: 11px;
  padding: 8px;
}
.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #698094;
}
.sector-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sector);
}
.chip {
  padding: 4px 8px;
  border-radius: 4px;
  background: #edf4f8;
  color: #536f83;
  font-size: 10px;
  display: inline-block;
  white-space: nowrap;
}
.chip.review,
.chip.critical,
.chip.high {
  background: #fff0df;
  color: #ad6826;
}
.chip.approved,
.chip.active,
.chip.completed,
.chip.good,
.chip.screened {
  background: #e3f6f0;
  color: #128569;
}
.chip.closed,
.chip.released,
.chip.retired {
  background: #eceff2;
  color: #74808a;
}
.notice {
  line-height: 1.6;
}
.field-group {
  border-top: 1px solid #e0e8ef;
  margin: 20px 0;
  padding-top: 20px;
}
.field-group h3 {
  margin-bottom: 20px;
}
.mini-stats {
  display: flex;
  gap: 30px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.mini-stats strong {
  font-size: 31px;
  display: block;
}
.mini-stats small {
  display: block;
  color: #788f9f;
  font-size: 11px;
  margin-top: 6px;
}
.empty {
  padding: 30px;
  color: #7890a3;
  text-align: center;
  line-height: 1.8;
}
.list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 12px 0;
}
.list-card h3 {
  margin: 0 0 10px;
}
.list-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #698295;
}
.list-card .actions {
  margin-top: 16px;
}
.actions {
  flex-wrap: wrap;
}
.code-area {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  min-height: 300px;
}
.data-table td {
  vertical-align: top;
}
.metric-alert {
  color: #b76e21;
}
.mini-bar {
  height: 6px;
  border-radius: 4px;
  background: #e8eff5;
  overflow: hidden;
  max-width: 220px;
  margin-top: 10px;
}
.mini-bar span {
  display: block;
  height: 100%;
  background: #367bd5;
}
.network-warning {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 43%;
  padding: 20px;
  background: #fff8e9;
  border-radius: 7px;
  text-align: center;
  line-height: 1.7;
}
.checklist label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
.checklist input {
  width: auto;
  margin: 0;
}
.screen-note {
  font-size: 12px;
  color: #718899;
  line-height: 1.7;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-grid > div {
  background: #f2f6fa;
  padding: 15px;
  border-radius: 6px;
}
.metric-grid strong {
  display: block;
  font-size: 22px;
  margin: 8px 0;
}
.field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.timeline {
  border-left: 2px solid #d7e4ef;
  padding-left: 16px;
  margin: 18px 0;
}
.timeline p {
  font-size: 12px;
  margin-bottom: 15px;
}
.utility-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
}
.error {
  color: #b14242;
}
.success {
  color: #087e66;
}
button.danger {
  color: #a14b33;
}
.table-wrap {
  max-width: 100%;
}
td .muted {
  font-size: 10px;
}
.u-marker {
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 5px #1238;
}
.asset-row.selected {
  background: #eef5fd;
}
.flex-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.inline-link {
  font-size: 12px;
}
#modal {
  width: min(920px, 94vw);
}
#modal-body {
  max-height: 75vh;
  overflow: auto;
}
.wide-actions {
  margin: 20px 0;
}
input,
select {
  min-width: 0;
}
.status-strip {
  font-size: 11px;
  color: #687f92;
  margin-bottom: 15px;
}
.panel > h3 {
  margin-bottom: 18px;
}
@media (max-width: 1200px) {
  .vertical-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rail {
    width: 195px;
  }
  main {
    margin-left: 195px;
    padding: 0 20px 24px;
  }
  .network-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .map-info {
    width: 240px;
  }
  .wide-split {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .rail {
    width: 100%;
    position: static;
    padding: 9px;
  }
  main {
    margin: 0;
    padding: 0 12px 20px;
  }
  header {
    height: 105px;
  }
  .header-right {
    display: block;
  }
  header select {
    width: 150px;
    font-size: 12px;
  }
  .demo-badge {
    display: none;
  }
  .hero-line {
    display: block;
  }
  .hero-line h2 {
    font-size: 26px;
  }
  .hero-line .actions {
    margin-top: 15px;
  }
  .vertical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .vertical-card {
    padding: 16px;
  }
  .summary-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .two-col,
  .wide-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .network-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .network-list {
    height: 245px;
  }
  .network-map {
    height: 580px;
    min-height: 580px;
  }
  .map-info {
    width: 235px;
    padding: 15px;
  }
  .floating-tools {
    right: 10px;
    left: 10px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .mini-stats {
    gap: 18px;
  }
  .rail nav button {
    padding: 10px;
    white-space: nowrap;
    font-size: 11px;
  }
}
@media print {
  .rail,
  header,
  .actions,
  button {
    display: none !important;
  }
  main {
    margin: 0;
  }
  .panel,
  .list-card {
    break-inside: avoid;
  }
  .vertical-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.job-guide {
  background: #edf5fb;
  border: 1px solid #d5e5f1;
  border-left: 4px solid #2674c4;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 4px 0 22px;
}
.guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.job-guide h2 {
  font-size: 19px;
  margin: 7px 0;
}
.job-guide p,
.job-guide li {
  font-size: 12px;
  line-height: 1.65;
  color: #4d697e;
}
.guide-duty {
  margin: 10px 0;
}
.job-guide details {
  border-top: 1px solid #d5e5f1;
  padding-top: 12px;
}
.job-guide summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #155997;
}
.job-guide ol {
  padding-left: 20px;
  display: grid;
  gap: 9px;
}
.job-guide small {
  color: #688498;
  font-size: 11px;
}
.context-map {
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.context-map-panel {
  margin: 20px 0;
}
.context-map-panel h3 {
  margin: 0;
}
.context-map-panel .screen-note {
  margin: 5px 0;
}
.network-map #map-slot,
.context-map #map-slot,
#u-map {
  height: 100%;
  width: 100%;
  min-height: 1px;
}
.network-warning {
  z-index: 3;
}
.network-warning[hidden] {
  display: none !important;
}
.network-warning p {
  font-size: 12px;
}
.guide-heading button {
  flex-shrink: 0;
}
.demo-record {
  font-size: 10px;
  color: #876520;
  margin-left: 8px;
}
.network-map {
  isolation: isolate;
}
@media (max-width: 760px) {
  .job-guide {
    padding: 14px;
  }
  .guide-heading {
    display: block;
  }
  .guide-heading button {
    margin-top: 10px;
  }
  .context-map {
    height: 320px;
  }
}
/* Keep the embedded native workspace usable on a phone without losing modules. */
@media (max-width: 760px) {
  .native-shell .brand, .native-shell .rail-label { display: none; }
  .native-shell .rail { padding: 6px; }
  .native-shell .rail nav { display: flex; flex-wrap: nowrap; overflow-x: auto; }
  .native-shell .rail nav button { flex: 0 0 auto; min-height: 44px; }
  .native-shell .rail-bottom { position: static; padding: 5px; font-size: 10px; }
  .native-shell header { height: auto; min-height: 95px; gap: 10px; }
  .native-shell .breadcrumb { display: none; }
  .native-shell input, .native-shell select, .native-shell textarea { font-size: 16px; }
}

.mobile-guide-link {display:block; margin:12px 0; color:#c6d8e5; font-size:12px; line-height:1.5;}
.mobile-handover {margin-bottom:20px;}
.mobile-handover p {line-height:1.6;}
