:root {
  --bg: #edf1ec;
  --bg-deep: #dfe6df;
  --surface: #ffffff;
  --surface-soft: #f6f8f4;
  --ink: #17211e;
  --ink-soft: #34423d;
  --muted: #64716c;
  --line: #ccd7d0;
  --line-strong: #acbbb3;
  --forest: #0c2420;
  --forest-2: #12362e;
  --green: #1c6d5c;
  --green-soft: #e1f0e9;
  --amber: #e8b949;
  --amber-soft: #fff3cf;
  --rust: #bd5840;
  --rust-soft: #f8e5df;
  --red: #a63b3b;
  --red-soft: #fae6e4;
  --blue: #2f6f8f;
  --blue-soft: #e4f0f5;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(18, 39, 33, 0.08);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-numeric: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 36, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 36, 32, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

textarea {
  resize: vertical;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--forest);
  background: var(--amber);
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.noscript {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: var(--forest);
  border-bottom: 4px solid var(--amber);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  padding: 13px 26px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 250px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--forest);
  background: var(--amber);
  border-radius: 7px;
  place-items: center;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.3;
}

.brand-text {
  min-width: 0;
}

.brand-kicker {
  display: block;
  margin-bottom: 1px;
  color: #a9bdb5;
  font-size: 0.68rem;
  line-height: 1.25;
}

.brand-title {
  display: block;
  max-width: 340px;
  overflow: hidden;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  color: #c4d2cc;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
  border-radius: 5px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link svg {
  width: 17px;
  height: 17px;
}

.nav-link:hover {
  color: var(--white);
  background: #173d34;
}

.nav-link.active {
  color: var(--white);
  background: #1b443a;
  box-shadow: inset 0 -2px 0 var(--amber);
}

.header-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.clock-mini {
  min-width: 94px;
  color: #d9e4df;
  text-align: right;
}

.clock-mini strong {
  display: block;
  font-family: var(--font-numeric);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}

.clock-mini span {
  display: block;
  margin-top: 3px;
  color: #91a69e;
  font-size: 0.68rem;
}

.status-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #d8efe5;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(52, 156, 119, 0.18);
  border: 1px solid rgba(102, 196, 157, 0.32);
  border-radius: 999px;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #6bd6a5;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(107, 214, 165, 0.12);
}

.status-pill.closed {
  color: #f2ddd8;
  background: rgba(179, 73, 53, 0.18);
  border-color: rgba(225, 129, 111, 0.35);
}

.status-pill.closed::before {
  background: #e48170;
  box-shadow: 0 0 0 4px rgba(228, 129, 112, 0.12);
}

.status-pill.maintenance {
  color: #ffefc4;
  background: rgba(201, 157, 49, 0.18);
  border-color: rgba(232, 185, 73, 0.35);
}

.status-pill.maintenance::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 185, 73, 0.12);
}

.status-pill.unknown {
  color: #d8e0dc;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.status-pill.unknown::before {
  background: #9fb2aa;
  box-shadow: 0 0 0 4px rgba(159, 178, 170, 0.1);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #d9e4df;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  place-items: center;
}

.icon-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px;
}

.page-lead {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  background: var(--amber);
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
}

.page-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title-wrap {
  min-width: 0;
}

.panel-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.panel-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.panel-body {
  padding: 20px;
}

.panel-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-link svg {
  width: 15px;
  height: 15px;
}

.summary-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-cell {
  min-width: 0;
  padding: 15px 18px;
  background: var(--surface);
}

.summary-cell.accent {
  color: var(--white);
  background: var(--forest-2);
}

.summary-label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.summary-cell.accent .summary-label {
  color: #a8beb5;
}

.summary-value {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-cell.accent .summary-value {
  color: var(--white);
}

.summary-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.summary-cell.accent .summary-note {
  color: #8fa69c;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.topology-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: var(--white);
  background: #09231f;
  border-color: #183e35;
}

.topology-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 185, 73, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 73, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.topology-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px 22px 10px;
}

.topology-head .panel-kicker {
  color: #7fa197;
}

.topology-head .panel-title {
  color: var(--white);
}

.topology-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  color: #d6e8e0;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.topology-status svg {
  width: 14px;
  height: 14px;
  color: #76d1a5;
}

.topology-board {
  position: relative;
  z-index: 1;
  padding: 4px 18px 0;
}

.topology-empty {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  margin: 8px 18px 18px;
  color: #8ca69c;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.topology-empty svg {
  width: 30px;
  height: 30px;
  color: var(--amber);
}

.topology-empty strong {
  color: #dbe8e2;
  font-size: 0.88rem;
}

.topology-empty span {
  font-size: 0.7rem;
}

.topology-board svg {
  width: 100%;
  height: auto;
  min-height: 270px;
}

.flow-line {
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  animation: flow 1.8s linear infinite;
}

.flow-line.slow {
  animation-duration: 3s;
}

@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}

.topology-legend {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 18px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.topology-legend div {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.topology-legend span {
  display: block;
  color: #78958b;
  font-size: 0.64rem;
}

.topology-legend strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #e8f1ed;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item.pinned {
  background: #fffaf0;
  box-shadow: inset 3px 0 0 var(--amber);
}

.notice-meta {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.notice-category {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--green-soft);
  border-radius: 3px;
}

.notice-title {
  display: block;
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.notice-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state {
  padding: 30px 18px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.equipment-mini-list {
  display: flex;
  flex-direction: column;
  margin: -8px 0;
}

.equipment-mini {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.equipment-mini:last-child {
  border-bottom: 0;
}

.mini-icon {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 5px;
  place-items: center;
}

.mini-icon svg {
  width: 19px;
  height: 19px;
}

.mini-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--green-soft);
  border-radius: 4px;
  white-space: nowrap;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status-badge.in_use {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-badge.maintenance {
  color: #8a6410;
  background: var(--amber-soft);
}

.status-badge.offline {
  color: var(--red);
  background: var(--red-soft);
}

.status-badge.unknown {
  color: var(--muted);
  background: #e8ece9;
}

.status-badge.pending {
  color: #75580f;
  background: #fff2c8;
}

.status-badge.approved {
  color: #176443;
  background: #dff3e8;
}

.status-badge.rejected {
  color: #97352f;
  background: #f9e4e1;
}

.status-badge.low {
  color: var(--rust);
  background: var(--rust-soft);
}

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stock-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}

.stock-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-count {
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 0.72rem;
}

.stock-bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  background: #e6ebe7;
  border-radius: 99px;
}

.stock-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.stock-item.low .stock-bar span {
  background: var(--rust);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  min-height: 92px;
  padding: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.quick-action:hover {
  background: #fbfcf9;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.quick-action svg {
  width: 21px;
  height: 21px;
  color: var(--green);
}

.quick-action span {
  font-size: 0.78rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--surface-soft);
  border-color: #8fa49a;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: var(--forest);
  background: var(--amber);
  border-color: #d7a936;
}

.btn-primary:hover {
  color: var(--forest);
  background: #f0c75d;
  border-color: #c79b29;
}

.btn-secondary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.btn-secondary:hover {
  color: var(--white);
  background: #175749;
  border-color: #175749;
}

.btn-danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #e8beb8;
}

.btn-danger:hover {
  color: #7e2626;
  background: #f6d9d5;
}

.btn-small {
  min-height: 31px;
  padding: 5px 9px;
  font-size: 0.7rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.equipment-filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
  max-width: 480px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px 9px 39px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #e4eae5;
  border-radius: 6px;
}

.segmented button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(18, 39, 33, 0.08);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease;
}

.equipment-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.equipment-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.equipment-card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 6px;
  place-items: center;
}

.equipment-card-icon svg {
  width: 21px;
  height: 21px;
}

.equipment-card h2 {
  margin: 15px 0 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.equipment-model {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.equipment-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.equipment-location {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.equipment-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.equipment-card-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.equipment-card-actions .btn {
  flex: 1;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  margin-bottom: 18px;
}

.info-callout {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.info-callout svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex: 0 0 auto;
}

.info-callout h2 {
  margin: 0 0 3px;
  font-size: 0.9rem;
  font-weight: 800;
}

.info-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.inline-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.inline-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green);
  flex: 0 0 auto;
}

.inline-note h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.emergency-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 19px 22px;
  color: var(--white);
  background: #8f3434;
  border: 1px solid #742929;
  border-radius: var(--radius);
}

.emergency-banner-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.emergency-banner svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.emergency-banner h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.emergency-banner p {
  margin: 3px 0 0;
  color: #f2d7d4;
  font-size: 0.76rem;
}

.emergency-banner a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  color: #7a2626;
  font-size: 0.74rem;
  font-weight: 800;
  background: #f8e7e4;
  border-radius: 5px;
  white-space: nowrap;
}

.safety-progress {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.safety-progress strong {
  font-size: 0.8rem;
}

.safety-progress .progress-track {
  flex: 1;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: #e6ebe7;
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 180ms ease;
}

.article-accordion {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-accordion details {
  border-bottom: 1px solid var(--line);
}

.article-accordion details:last-child {
  border-bottom: 0;
}

.article-accordion summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.article-accordion summary::-webkit-details-marker {
  display: none;
}

.article-accordion summary:hover {
  background: #fbfcf9;
}

.level-mark {
  display: grid;
  width: 32px;
  height: 32px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 5px;
  place-items: center;
}

.level-mark svg {
  width: 17px;
  height: 17px;
}

.level-mark.important {
  color: #8a6410;
  background: var(--amber-soft);
}

.level-mark.emergency {
  color: var(--red);
  background: var(--red-soft);
}

.summary-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.4;
}

.summary-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.summary-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 160ms ease;
}

details[open] .summary-chevron {
  transform: rotate(180deg);
}

.article-body {
  padding: 0 18px 18px 62px;
}

.article-body p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  white-space: pre-line;
}

.read-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 0.72rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.read-toggle input {
  accent-color: var(--green);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-check {
  display: grid;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
}

.step-check svg {
  width: 15px;
  height: 15px;
}

.step-item.done .step-check {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.step-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.step-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.guide-article {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.guide-article:last-child {
  border-bottom: 0;
}

.guide-article h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-article p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  white-space: pre-line;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > label,
.field-label {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.68rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--surface);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28, 109, 92, 0.12);
}

.field textarea {
  min-height: 140px;
}

.file-drop {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  place-items: center;
  text-align: center;
}

.file-drop svg {
  width: 23px;
  height: 23px;
  color: var(--green);
}

.file-drop input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.form-status {
  display: none;
  margin-top: 15px;
  padding: 13px 15px;
  font-size: 0.8rem;
  border-radius: 5px;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  color: #145c4d;
  background: var(--green-soft);
  border: 1px solid #b6ddce;
}

.form-status.error {
  color: #7b2d27;
  background: var(--red-soft);
  border: 1px solid #e6bdb7;
}

.report-aside {
  padding: 18px;
}

.report-aside h2 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.report-aside ol {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.report-aside li {
  margin-bottom: 9px;
}

.contact-box {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.contact-box strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
}

.contact-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
}

.about-intro {
  padding: 24px;
}

.about-intro h2 {
  margin: 0 0 5px;
  font-size: 1.25rem;
  font-weight: 800;
}

.about-affiliation {
  margin: 0 0 14px !important;
  color: var(--green) !important;
  font-size: 0.74rem !important;
  font-weight: 800;
}

.about-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
  white-space: pre-line;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.direction-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  background: var(--surface);
}

.direction-item svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--green);
  flex: 0 0 auto;
}

.direction-item span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-list li {
  position: relative;
  padding: 11px 0 11px 31px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
  counter-increment: rule;
}

.rules-list li:last-child {
  border-bottom: 0;
}

.rules-list li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  color: var(--green);
  font-family: var(--font-numeric);
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--green-soft);
  border-radius: 50%;
  content: counter(rule);
  place-items: center;
}

.about-contact {
  padding: 18px;
}

.about-contact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.8;
  white-space: pre-line;
}

.notice-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-full {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice-full.pinned {
  border-left: 4px solid var(--amber);
}

.notice-full-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notice-full h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.notice-full p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  white-space: pre-line;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(9, 35, 31, 0.3);
}

dialog::backdrop {
  background: rgba(6, 23, 20, 0.62);
  backdrop-filter: blur(2px);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.dialog-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.dialog-body {
  padding: 20px;
}

.dialog-section {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-section:first-child {
  padding-top: 0;
}

.dialog-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dialog-section h3 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.dialog-section p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-line;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-pair span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.detail-pair strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 15px;
  color: var(--white);
  font-size: 0.78rem;
  background: var(--forest);
  border: 1px solid #295549;
  border-left: 3px solid var(--amber);
  border-radius: 5px;
  box-shadow: 0 14px 30px rgba(8, 31, 27, 0.22);
  animation: toast-in 180ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 26px 30px;
  color: var(--muted);
  font-size: 0.7rem;
}

.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.loading-screen {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.loading-mark {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.loading-mark svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.display-mode {
  background: #061b17;
}

.display-mode::before {
  display: none;
}

.display-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px clamp(24px, 4vw, 64px);
  color: #e5f0eb;
  background:
    linear-gradient(rgba(232, 185, 73, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 73, 0.035) 1px, transparent 1px),
    #071d19;
  background-size: 34px 34px;
}

.display-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.display-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.display-brand .brand-mark {
  width: 54px;
  height: 54px;
}

.display-brand h1 {
  margin: 0;
  color: #f3f8f5;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.display-brand p {
  margin: 4px 0 0;
  color: #8ba69b;
  font-size: 0.8rem;
}

.display-exit {
  color: #a5bbb2;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.display-main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 30px;
  align-items: center;
  padding: 28px 0;
}

.display-clock {
  margin: 0;
  color: #f8fbf9;
  font-family: var(--font-numeric);
  font-size: clamp(4.4rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: 0.92;
}

.display-date {
  margin: 16px 0 0;
  color: #9ab2a8;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.display-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.display-status-row .status-pill,
.display-status-row .topology-status {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.8rem;
}

.display-notice {
  min-height: 310px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
}

.display-notice .notice-category {
  color: #f2d383;
  background: rgba(232, 185, 73, 0.1);
}

.display-notice h2 {
  margin: 8px 0 12px;
  color: #f4f8f6;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
}

.display-notice p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #b7c9c2;
  font-size: clamp(0.92rem, 1.3vw, 1.18rem);
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.display-pager {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}

.display-pager button {
  width: 24px;
  height: 5px;
  padding: 0;
  background: #315048;
  border: 0;
  border-radius: 99px;
}

.display-pager button.active {
  width: 42px;
  background: var(--amber);
}

.display-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
}

.display-metric {
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.035);
}

.display-metric span {
  display: block;
  color: #718e83;
  font-size: 0.68rem;
}

.display-metric strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #eaf3ee;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Admin */
.admin-body {
  background: #e9eeea;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  color: #d7e2dd;
  background: var(--forest);
  border-right: 1px solid #1f433b;
}

.admin-sidebar-head {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 19px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-head .brand-mark {
  width: 38px;
  height: 38px;
}

.admin-sidebar-head strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
}

.admin-sidebar-head span {
  display: block;
  margin-top: 2px;
  color: #8ba69b;
  font-size: 0.65rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 10px;
}

.admin-nav button {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 8px 11px;
  color: #b8cbc3;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.admin-nav button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

.admin-nav button.active {
  color: var(--white);
  background: #1b443a;
  box-shadow: inset 3px 0 0 var(--amber);
}

.admin-nav svg {
  width: 17px;
  height: 17px;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-foot a,
.admin-sidebar-foot button {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 11px;
  color: #9fb4ab;
  font-size: 0.72rem;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.admin-sidebar-foot a:hover,
.admin-sidebar-foot button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar-foot svg {
  width: 15px;
  height: 15px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.admin-topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.admin-content {
  min-width: 0;
  padding: 22px 24px 34px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-metric {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-metric span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-metric strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-numeric);
  font-size: 1.85rem;
  line-height: 1.1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 16px;
  min-width: 0;
}

.admin-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-panel-body {
  padding: 16px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--surface-soft);
  white-space: nowrap;
}

.member-application-text {
  display: block;
  max-width: 280px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  color: var(--ink-soft);
}

.table-title {
  color: var(--ink);
  font-weight: 800;
}

.table-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.admin-list li:last-child {
  border-bottom: 0;
}

.admin-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.76rem;
}

.admin-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-empty {
  padding: 28px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.admin-login-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(rgba(232, 185, 73, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 73, 0.04) 1px, transparent 1px),
    var(--forest);
  background-size: 34px 34px;
  place-items: center;
}

.login-panel {
  width: min(430px, 100%);
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(4, 19, 16, 0.34);
}

.login-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.login-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.login-brand strong {
  display: block;
  font-size: 0.92rem;
}

.login-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.login-panel h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.login-panel > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.76rem;
}

.login-note {
  margin-top: 17px;
  padding: 10px 12px;
  color: #735817;
  font-size: 0.7rem;
  background: var(--amber-soft);
  border: 1px solid #e9d59b;
  border-radius: 5px;
}

.register-panel {
  width: min(680px, 100%);
}

.pending-panel {
  width: min(560px, 100%);
}

.pending-loading {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 24px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.pending-loading svg {
  width: 18px;
  animation: pending-spin 1s linear infinite;
}

@keyframes pending-spin {
  to {
    transform: rotate(360deg);
  }
}

.pending-status {
  padding: 18px;
  background: var(--amber-soft);
  border: 1px solid #e9d59b;
  border-radius: 6px;
}

.pending-status.rejected {
  background: var(--red-soft);
  border-color: #e7b8b3;
}

.pending-status h1 {
  margin: 13px 0 7px;
  font-size: 1.25rem;
}

.pending-status p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.pending-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pending-details > div {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
}

.pending-details > div.full {
  grid-column: 1 / -1;
}

.pending-details span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.pending-details strong {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rejection-reason {
  box-shadow: inset 3px 0 0 var(--red);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-grid .field.full {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.settings-email-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-email-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.settings-email-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.settings-email-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.settings-email-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.7rem;
}

.danger-note {
  color: var(--red);
  font-size: 0.7rem;
}

.report-detail-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 3px;
  }

  .header-tools .clock-mini {
    display: none;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .topology-panel {
    min-height: 0;
  }

  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 18px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-cell.accent {
    grid-column: 1 / -1;
  }

  .dashboard-lower,
  .guide-grid,
  .form-shell,
  .info-band,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .display-main {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .display-notice {
    min-height: 0;
  }

  .display-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    min-height: 0;
    border-right: 0;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }

  .admin-nav button {
    width: auto;
    min-width: max-content;
  }

  .admin-sidebar-foot {
    display: flex;
    gap: 6px;
    margin-top: 0;
  }

  .admin-sidebar-foot a,
  .admin-sidebar-foot button {
    width: auto;
  }
}

@media (max-width: 680px) {
  .header-inner {
    gap: 12px;
    padding: 11px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-title {
    max-width: 215px;
    font-size: 0.78rem;
  }

  .brand-kicker {
    font-size: 0.6rem;
  }

  .header-tools .status-pill {
    display: none;
  }

  .nav-link {
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .page-lead {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-cell.accent {
    grid-column: auto;
  }

  .topology-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topology-legend {
    grid-template-columns: 1fr;
  }

  .notice-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    max-width: none;
  }

  .segmented {
    overflow-x: auto;
  }

  .emergency-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .emergency-banner a {
    width: 100%;
    justify-content: center;
  }

  .article-accordion summary {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .summary-chevron {
    display: none;
  }

  .article-body {
    padding-left: 18px;
  }

  .pending-details {
    grid-template-columns: 1fr;
  }

  .pending-details > div.full {
    grid-column: auto;
  }

  .form-grid,
  .direction-grid,
  .dialog-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .field.full,
  .admin-form-grid .field.full {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .display-screen {
    padding: 18px;
  }

  .display-clock {
    font-size: 4.4rem;
  }

  .display-bottom {
    grid-template-columns: 1fr;
  }

  .display-top {
    align-items: flex-start;
  }

  .display-brand h1 {
    font-size: 1rem;
  }

  .display-exit span {
    display: none;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar-head {
    padding: 14px;
  }

  .admin-sidebar-foot {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
