/*
 * Laboratory visual refresh
 * An operations-first interface with a restrained technical-archive tone.
 */

:root {
  --bg: #eff1ee;
  --bg-deep: #e4e8e4;
  --surface: #fcfdfb;
  --surface-soft: #f4f6f3;
  --paper: #fbfaf6;
  --ink: #17201d;
  --ink-soft: #37413e;
  --muted: #5f6a65;
  --line: #d5dcd7;
  --line-strong: #a8b4ae;
  --forest: #101b18;
  --forest-2: #19332b;
  --green: #1f6656;
  --green-soft: #e7f0ec;
  --amber: #d7a63a;
  --amber-soft: #faf0d8;
  --rust: #a14f3d;
  --rust-soft: #f7e8e3;
  --red: #9d3d3d;
  --red-soft: #f7e5e4;
  --blue: #2e617f;
  --blue-soft: #e7eff4;
  --white: #ffffff;
  --radius: 5px;
  --shadow: 0 8px 24px rgba(20, 32, 28, 0.06);
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans SC", "Segoe UI", sans-serif;
  --font-numeric: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  --font-archive: "Noto Serif SC", "Source Han Serif SC", "STSong",
    "SimSun", serif;
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  display: none;
}

::selection {
  color: var(--white);
  background: var(--green);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.site-header :focus-visible,
.admin-sidebar :focus-visible,
.display-mode :focus-visible {
  outline-color: var(--amber);
}

.skip-link {
  color: var(--forest);
  background: var(--amber);
  border-radius: 0 0 3px 3px;
}

.site-header {
  background: var(--forest);
  border-bottom: 2px solid var(--amber);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: 1560px;
  gap: 20px;
  padding: 10px 28px;
}

.brand {
  min-width: 250px;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  color: var(--forest);
  background: var(--amber);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.brand-kicker {
  color: #aebdb7;
  font-size: 0.68rem;
}

.brand-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav {
  gap: 2px;
}

.nav-link {
  gap: 6px;
  min-height: 40px;
  padding: 10px 10px 8px;
  color: #bdcac5;
  font-size: 0.82rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

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

.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  border-bottom-color: var(--amber);
  box-shadow: none;
}

.header-tools {
  gap: 10px;
}

.clock-mini {
  color: #dce5e1;
}

.clock-mini strong {
  font-size: 1rem;
}

.clock-mini span {
  color: #91a29b;
}

.status-pill {
  min-height: 28px;
  padding: 5px 9px;
  color: #d9eee4;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.page-shell {
  max-width: 1500px;
  padding: 30px 28px 22px;
}

.page-lead {
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 2px 0 20px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  gap: 7px;
  margin-bottom: 7px;
  color: var(--green);
  font-family: var(--font-numeric);
  font-size: 0.7rem;
  font-weight: 700;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: var(--amber);
}

.page-title {
  font-size: 2rem;
  font-weight: 750;
  line-height: 1.22;
}

.page-subtitle {
  max-width: 820px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-actions {
  gap: 8px;
}

.btn {
  min-height: 38px;
  padding: 8px 13px;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

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

.btn svg {
  stroke-width: 1.9;
}

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

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

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

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

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

.btn-danger:hover {
  color: #7f2d2d;
  background: #f3d8d6;
  border-color: #cda4a1;
}

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

.icon-button,
.btn-icon {
  min-height: 34px;
}

.panel,
.surface,
.notice-full,
.reimbursement-tray,
.reimbursement-entry,
.article-accordion,
.admin-panel {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.panel {
  background: var(--surface);
}

.panel-head {
  gap: 14px;
  padding: 14px 18px;
  background: #f8f9f7;
  border-bottom-color: var(--line);
}

.panel-kicker {
  margin-bottom: 3px;
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 0.68rem;
  font-weight: 600;
}

.panel-title {
  font-size: 1rem;
  font-weight: 750;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
}

.panel-body {
  padding: 18px;
}

.panel-link {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-link:hover {
  color: #123f35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-strip {
  margin-bottom: 16px;
  background: var(--line);
  border-color: var(--line);
  border-radius: 4px;
}

.summary-cell {
  padding: 15px 17px;
  background: var(--surface);
}

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

.summary-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

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

.summary-value {
  margin-top: 5px;
  font-size: 1.45rem;
  font-weight: 650;
}

.summary-name {
  overflow: visible;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.summary-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.71rem;
}

.summary-cell.accent .summary-note {
  color: #9cb0a8;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.82fr);
  gap: 14px;
}

.dashboard-lower {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  gap: 14px;
  margin-top: 14px;
}

.topology-panel {
  min-height: 380px;
  color: var(--white);
  background: #10241f;
  border-color: #27453d;
}

.topology-panel::before {
  background-image:
    linear-gradient(rgba(215, 166, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 166, 58, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.topology-head {
  padding: 18px 20px 8px;
}

.topology-head .panel-kicker {
  color: #8ea79e;
}

.topology-status {
  padding: 5px 8px;
  color: #d6e6df;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.topology-status svg {
  color: var(--amber);
}

.topology-empty {
  min-height: 220px;
  margin: 8px 18px 16px;
  border-radius: 3px;
}

.home-topology-preview {
  border-radius: 3px;
}

.topology-legend {
  margin: 0 18px 18px;
  border-radius: 3px;
}

.notice-item {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 18px;
}

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

.notice-category {
  color: var(--green);
  background: var(--green-soft);
  border-radius: 2px;
}

.notice-title {
  font-size: 0.86rem;
}

.notice-summary,
.notice-meta {
  font-size: 0.74rem;
}

.equipment-mini-list {
  gap: 0;
  margin: -3px 0;
}

.equipment-mini {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 10px 0;
}

.mini-icon,
.equipment-card-icon,
.guide-library-icon,
.guide-file-icon,
.reimbursement-entry-icon {
  border-radius: 3px;
}

.mini-icon {
  width: 32px;
  height: 32px;
}

.mini-name {
  font-size: 0.82rem;
}

.mini-meta,
.status-badge {
  font-size: 0.7rem;
}

.status-badge {
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 3px;
}

.quick-grid {
  gap: 7px;
  margin-top: 15px;
}

.quick-action {
  min-height: 72px;
  padding: 12px;
  background: var(--surface-soft);
  border-color: var(--line);
  border-radius: 3px;
  box-shadow: none;
}

.quick-action:hover {
  background: var(--white);
  border-color: var(--line-strong);
  transform: none;
}

.quick-action svg {
  color: var(--blue);
}

.stock-list {
  gap: 13px;
}

.stock-name {
  font-size: 0.77rem;
}

.stock-count {
  font-size: 0.73rem;
}

.stock-bar {
  height: 3px;
  border-radius: 0;
}

.stock-bar span {
  border-radius: 0;
}

.stock-item.low .stock-name,
.stock-item.low .stock-count {
  color: var(--rust);
}

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

.inline-note {
  margin-top: 16px;
  padding-top: 14px;
}

.inline-note h2 {
  font-size: 0.79rem;
}

.inline-note p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.info-band {
  gap: 12px;
  margin-bottom: 14px;
}

.info-callout {
  gap: 13px;
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 3px;
}

.info-callout h2 {
  font-size: 0.86rem;
}

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

.reimbursement-entry {
  margin-bottom: 12px;
  padding: 13px 15px;
  background: #fbf7ea;
  border-color: #e0cc9d;
  border-left: 3px solid var(--amber);
  border-radius: 3px;
}

.reimbursement-entry-copy strong {
  font-size: 0.84rem;
}

.reimbursement-entry-copy span {
  font-size: 0.74rem;
}

.reimbursement-fab {
  min-height: 42px;
  padding: 9px 13px;
  color: var(--forest);
  background: var(--amber);
  border-color: #b98927;
  border-radius: 4px;
  box-shadow: 0 7px 20px rgba(17, 27, 24, 0.18);
}

.reimbursement-fab.has-items {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.reimbursement-tray {
  margin-bottom: 14px;
  padding: 16px;
  border-left-width: 3px;
  border-radius: 3px;
}

.reimbursement-item-row,
.file-drop {
  border-radius: 3px;
}

.toolbar {
  gap: 10px;
  margin: 15px 0 12px;
}

.equipment-filter-groups {
  gap: 8px;
}

.search-box input,
.guide-folder-bar select,
.field input,
.field select,
.field textarea {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
  border-radius: 3px;
}

.search-box input {
  min-height: 40px;
  font-size: 0.84rem;
}

.segmented {
  gap: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}

.segmented button {
  min-height: 34px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 0.73rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

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

.segmented button.active {
  color: var(--green);
  background: transparent;
  border-bottom-color: var(--green);
  box-shadow: none;
}

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

.equipment-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 140px;
  grid-template-areas:
    "media top actions"
    "media title actions"
    "media model actions"
    "media description actions"
    "media location actions";
  gap: 2px 17px;
  align-items: start;
  min-height: 132px;
  padding: 12px;
  overflow: hidden;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

.equipment-card:hover {
  background: #fdfefd;
  border-color: var(--line-strong);
  transform: none;
}

.equipment-card-media {
  grid-area: media;
  align-self: stretch;
  width: 100%;
  min-height: 106px;
  margin: 0;
  overflow: hidden;
  background: #f1f4f1;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.equipment-card-media img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.equipment-card-placeholder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 106px;
  color: var(--muted);
  font-size: 0.68rem;
}

.equipment-card-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  stroke-width: 1.6;
}

.equipment-image-label {
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  font-size: 0.62rem;
  background: rgba(16, 27, 24, 0.78);
  border-radius: 2px;
}

.equipment-card-top {
  grid-area: top;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.equipment-card-icon {
  display: none;
}

.equipment-report-toggle {
  min-height: 26px;
  margin-left: auto;
  padding: 3px 7px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  background: #fbf7ea;
  border-color: #dfca98;
  border-radius: 3px;
}

.equipment-report-toggle input {
  width: 14px;
  height: 14px;
}

.equipment-card h2 {
  grid-area: title;
  margin: 1px 0 0;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.4;
}

.equipment-model {
  grid-area: model;
  color: var(--muted);
  font-size: 0.73rem;
}

.equipment-description {
  grid-area: description;
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.equipment-location {
  grid-area: location;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.71rem;
}

.equipment-card-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: center;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.equipment-card-actions .btn {
  width: 100%;
}

.guide-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
}

.step-item {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
}

.step-check {
  width: 26px;
  height: 26px;
}

.step-item h3 {
  font-size: 0.82rem;
}

.step-item p {
  color: var(--muted);
  font-size: 0.74rem;
}

.guide-article {
  padding: 14px 16px;
}

.guide-article h3 {
  font-size: 0.84rem;
}

.guide-article p {
  font-size: 0.79rem;
  line-height: 1.65;
}

.guide-resources-panel {
  margin-top: 14px;
}

.guide-attachment-tabs {
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.guide-attachment-tab {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 13px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.guide-attachment-tab:hover,
.guide-attachment-tab:focus-visible {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  outline: 0;
}

.guide-attachment-tab.active {
  background: var(--surface-soft);
  border-color: var(--green);
  box-shadow: none;
}

.guide-attachment-tab > svg {
  color: var(--blue);
}

.guide-attachment-tab strong {
  font-size: 0.82rem;
}

.guide-attachment-tab small {
  font-size: 0.7rem;
}

.guide-folder-bar label {
  font-size: 0.73rem;
}

.guide-folder-bar select {
  min-height: 37px;
  font-size: 0.8rem;
}

.guide-library {
  min-height: 390px;
  border-color: var(--line);
  border-radius: 3px;
}

.guide-category-list {
  padding: 8px;
  background: #f5f7f4;
}

.guide-category-heading {
  padding: 11px 9px 4px;
}

.guide-category-heading strong {
  font-size: 0.72rem;
}

.guide-category-heading svg,
.guide-category-button > svg {
  color: var(--blue);
}

.guide-category-button {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 9px;
  border-radius: 2px;
}

.guide-category-button:hover,
.guide-category-button:focus-visible {
  background: var(--surface);
  border-color: var(--line);
}

.guide-category-button.active {
  background: var(--surface);
  border-color: transparent;
  box-shadow: inset 3px 0 0 var(--green);
}

.guide-category-button strong {
  font-size: 0.77rem;
}

.guide-category-button small,
.guide-category-button em {
  font-size: 0.7rem;
}

.guide-library-main {
  padding: 18px;
}

.guide-library-head {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  padding-bottom: 14px;
}

.guide-library-icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  background: var(--blue-soft);
}

.guide-library-head h3 {
  font-size: 0.9rem;
}

.guide-library-path,
.guide-file-count {
  font-size: 0.7rem;
}

.guide-file-list {
  gap: 0;
}

.guide-file-item {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

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

.guide-file-icon {
  width: 32px;
  height: 32px;
  color: var(--green);
  background: var(--green-soft);
}

.guide-file-item h4 {
  font-size: 0.81rem;
}

.guide-file-item p,
.guide-file-item small {
  font-size: 0.7rem;
}

.guide-library-empty {
  min-height: 245px;
}

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

.field[hidden] {
  display: none;
}

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

.field input,
.field select,
.field textarea {
  min-height: 40px;
  font-size: 0.84rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 97, 127, 0.12);
}

.file-drop {
  background: var(--surface-soft);
  border-style: dashed;
}

.form-shell {
  gap: 14px;
}

.emergency-banner {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #8e3939;
  border-color: #762f2f;
  border-left: 4px solid #dca09a;
  border-radius: 3px;
}

.emergency-banner h2 {
  font-size: 0.96rem;
}

.emergency-banner p {
  font-size: 0.78rem;
}

.emergency-banner a {
  min-height: 34px;
  padding: 6px 10px;
  color: #752c2c;
  background: #f7e6e3;
  border-radius: 3px;
}

.safety-progress {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 3px;
}

.progress-track {
  height: 4px;
  border-radius: 0;
}

.progress-track span {
  border-radius: 0;
}

.article-accordion {
  border-radius: 3px;
}

.article-accordion summary {
  padding: 14px 16px;
}

.article-accordion summary:hover {
  background: var(--surface-soft);
}

.level-mark {
  width: 30px;
  height: 30px;
  border-radius: 3px;
}

.summary-copy strong {
  font-size: 0.84rem;
}

.summary-copy span {
  font-size: 0.7rem;
}

.article-body {
  padding: 0 16px 16px 58px;
}

.article-body p {
  font-size: 0.82rem;
}

.empty-state {
  color: var(--muted);
  font-size: 0.82rem;
}

.topology-empty-state {
  min-height: 470px;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 3px;
}

.topology-empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--blue);
}

.topology-empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.topology-empty-state p {
  margin: 6px 0 0;
}

.topology-stage {
  background: #11251f;
  border-color: #2a463e;
  border-radius: 3px;
}

.topology-detail {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 3px;
}

.topology-node rect {
  rx: 4px;
}

.about-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 14px;
}

.about-intro {
  padding: 28px 30px;
  background: var(--paper);
  border-top: 3px solid var(--blue);
  border-radius: 3px;
}

.about-intro h2 {
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-archive);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.about-affiliation {
  color: var(--blue) !important;
  font-family: var(--font-numeric);
  font-size: 0.75rem !important;
  font-weight: 650;
}

.about-intro p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.9;
}

.direction-grid {
  gap: 0;
  margin-top: 22px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}

.direction-item {
  gap: 9px;
  padding: 13px 12px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.direction-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.direction-item svg {
  color: var(--blue);
}

.direction-item span {
  font-size: 0.79rem;
}

.about-layout > .panel {
  align-self: start;
  overflow: hidden;
  border-top: 3px solid var(--green);
  border-radius: 3px;
}

.about-contact {
  padding: 18px;
}

.about-contact p {
  font-size: 0.82rem;
}

.rules-list li {
  padding: 13px 0 13px 36px;
  font-size: 0.84rem;
}

.rules-list li::before {
  top: 13px;
  width: 24px;
  height: 24px;
  color: var(--blue);
  font-size: 0.7rem;
  background: var(--blue-soft);
  border-radius: 2px;
}

.notice-page-list {
  gap: 10px;
}

.notice-full {
  padding: 18px;
  border-radius: 3px;
}

.notice-full h2 {
  font-size: 1rem;
}

.notice-full p {
  font-size: 0.84rem;
  line-height: 1.7;
}

dialog {
  border-radius: 5px;
  box-shadow: 0 24px 70px rgba(5, 18, 14, 0.28);
}

.dialog-head {
  padding: 16px 18px;
}

.dialog-head h2 {
  font-size: 1.02rem;
}

.dialog-body {
  padding: 18px;
}

.dialog-section h3 {
  font-size: 0.82rem;
}

.dialog-section p {
  font-size: 0.82rem;
}

.detail-pair {
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.detail-pair span {
  font-size: 0.7rem;
}

.detail-pair strong {
  font-size: 0.82rem;
}

.toast-region {
  font-size: 0.8rem;
}

.site-footer {
  max-width: 1500px;
  padding: 14px 28px 26px;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-inner {
  padding-top: 14px;
}

/* Admin console */

.admin-body {
  background: #ecefec;
}

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

.admin-sidebar {
  color: #d5dfdb;
  background: var(--forest);
  border-right-color: #29352f;
}

.admin-sidebar-head {
  gap: 10px;
  padding: 17px 16px;
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

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

.admin-sidebar-head strong {
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-sidebar-head span {
  color: #91a49c;
  font-size: 0.68rem;
}

.admin-nav {
  gap: 1px;
  padding: 12px 9px;
}

.admin-nav button {
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  color: #b7c6c0;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 3px;
}

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

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

.admin-nav svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.admin-sidebar-foot {
  padding: 11px 9px;
  border-top-color: rgba(255, 255, 255, 0.09);
}

.admin-sidebar-foot a,
.admin-sidebar-foot button {
  font-size: 0.74rem;
  border-radius: 3px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 11px 22px;
  background: rgba(252, 253, 251, 0.97);
  border-bottom-color: var(--line);
}

.admin-topbar h1 {
  font-size: 1.05rem;
  font-weight: 750;
}

.admin-topbar p {
  font-size: 0.73rem;
}

.admin-content {
  padding: 18px 22px 34px;
}

.admin-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-metric {
  padding: 15px 16px;
  background: var(--surface);
  border: 0;
  border-radius: 0;
}

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

.admin-metric strong {
  margin-top: 5px;
  font-size: 1.75rem;
  font-weight: 650;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 14px;
}

.admin-panel-head {
  padding: 13px 15px;
  background: #f8f9f7;
}

.admin-panel-head h2 {
  font-size: 0.88rem;
  font-weight: 750;
}

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

.admin-list li {
  padding: 10px 0;
}

.admin-list strong {
  font-size: 0.79rem;
}

.admin-list span {
  font-size: 0.71rem;
}

.data-table {
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  padding: 9px 11px;
}

.data-table th {
  color: var(--muted);
  font-size: 0.71rem;
  background: #f3f5f2;
}

.table-actions {
  gap: 4px;
}

.member-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 104px;
}

.member-actions .btn {
  width: 100%;
  white-space: nowrap;
}

.admin-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Authentication panels */

.admin-login-page {
  background: var(--forest);
}

.login-panel {
  width: min(430px, 100%);
  padding: 24px;
  background: var(--surface);
  border-color: #33433d;
  border-top: 3px solid var(--amber);
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(3, 12, 9, 0.3);
}

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

.login-brand span {
  font-size: 0.7rem;
}

.login-panel h1 {
  font-size: 1.3rem;
  font-weight: 750;
}

.login-panel > p {
  font-size: 0.8rem;
}

.login-note,
.pending-status {
  border-radius: 3px;
}

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

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

.pending-details {
  border-radius: 3px;
}

/* Display mode keeps the darker terminal language. */

.display-mode {
  background: #091713;
}

.display-screen {
  padding: 26px 56px;
  background: #0c1d18;
}

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

.display-clock {
  font-family: var(--font-numeric);
  font-size: 8rem;
  font-weight: 600;
}

.display-date {
  font-size: 1.25rem;
}

.display-notice h2 {
  font-size: 1.9rem;
}

.display-notice p {
  font-size: 1rem;
}

@media (max-width: 1360px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 22px;
  }

  .main-nav {
    grid-column: auto;
    grid-row: auto;
    gap: 1px;
    justify-content: center;
    overflow: visible;
    padding-top: 0;
  }

  .brand {
    min-width: 220px;
  }

  .brand-title {
    max-width: 290px;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 0.78rem;
  }
}

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

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

@media (max-width: 1180px) {
  .page-shell {
    padding-inline: 22px;
  }

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

  .equipment-card {
    grid-template-columns: 128px minmax(0, 1fr) 122px;
    gap: 2px 14px;
  }

  .about-intro {
    padding: 24px;
  }
}

@media (max-width: 1020px) {
  .dashboard-grid,
  .dashboard-lower,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .equipment-card {
    grid-template-columns: 126px minmax(0, 1fr);
    grid-template-areas:
      "media top"
      "media title"
      "media model"
      "media description"
      "media location"
      "actions actions";
  }

  .equipment-card-actions {
    flex-direction: row;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .equipment-card-actions .btn {
    width: auto;
  }

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

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

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

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

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

  .guide-library {
    grid-template-columns: 1fr;
  }

  .guide-category-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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

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

@media (max-width: 680px) {
  .header-inner {
    gap: 10px;
    padding: 9px 14px;
  }

  .brand {
    gap: 9px;
  }

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

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

  .brand-title {
    max-width: 220px;
    font-size: 0.76rem;
  }

  .nav-link {
    min-height: 38px;
    padding: 9px;
    font-size: 0.76rem;
  }

  .page-shell {
    padding: 17px 15px;
  }

  .page-lead {
    gap: 12px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 1.65rem;
  }

  .page-subtitle {
    font-size: 0.86rem;
  }

  .page-actions {
    gap: 7px;
  }

  .page-actions .btn {
    flex: 1 1 auto;
  }

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

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

  .summary-value {
    font-size: 1.3rem;
  }

  .panel-head {
    align-items: flex-start;
    padding: 13px 14px;
  }

  .panel-body {
    padding: 15px;
  }

  .topology-head {
    padding: 16px 16px 8px;
  }

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

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

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

  .reimbursement-entry {
    align-items: stretch;
  }

  .reimbursement-entry .btn {
    width: 100%;
  }

  .equipment-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "top"
      "title"
      "model"
      "description"
      "location"
      "actions";
    gap: 5px;
    padding: 11px;
  }

  .equipment-card-media {
    aspect-ratio: 16 / 7;
    min-height: 0;
    margin-bottom: 3px;
  }

  .equipment-card-media img {
    object-fit: contain;
  }

  .equipment-card-placeholder {
    min-height: 140px;
  }

  .equipment-card-actions {
    flex-direction: column;
    margin-top: 7px;
  }

  .equipment-card-actions .btn {
    width: 100%;
  }

  .guide-attachment-tabs {
    grid-template-columns: 1fr;
  }

  .guide-folder-bar {
    grid-template-columns: 1fr;
  }

  .guide-library-main {
    padding: 14px;
  }

  .guide-file-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .guide-file-item .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .about-intro {
    padding: 21px 18px;
  }

  .about-intro h2 {
    font-size: 1.55rem;
  }

  .about-intro p {
    font-size: 0.87rem;
    line-height: 1.8;
  }

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

  .direction-item:nth-child(odd) {
    border-right: 0;
  }

  .rules-list li {
    padding-left: 33px;
    font-size: 0.82rem;
  }

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

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

  .topology-empty-state {
    min-height: 360px;
  }

  .admin-topbar {
    position: static;
    padding: 12px 14px;
  }

  .admin-content {
    padding: 14px;
  }

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

  .site-footer {
    padding: 12px 15px 22px;
  }

  .display-screen {
    padding: 18px;
  }

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

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

  .display-date {
    font-size: 1rem;
  }

  .display-notice h2 {
    font-size: 1.4rem;
  }

  .display-notice p {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .brand-title {
    max-width: 178px;
  }

  .page-title {
    font-size: 1.48rem;
  }

  .about-intro h2 {
    font-size: 1.36rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .flow-line,
  .loading-mark svg {
    animation: none;
  }
}
