:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #162734;
  background: #f4f7f9;
  font-size: 14px;
  --panel: #fff;
  --line: #dce6ec;
  --muted: #536974;
  --ink: #162734;
  --teal: #067568;
  --teal-dark: #075f56;
  --green-soft: #e7f4ef;
  --sidebar: #142a36;
  --sidebar-width: 223px;
  --radius: 12px;
  --shadow: 0 2px 6px rgb(17 50 62 / 4%);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.55; }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #0c887e; outline-offset: 3px; }
h1, h2, p, dl, dd { margin: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 8px 12px; background: white; }
.skip-link:focus { top: 12px; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 3;
  padding: 22px 13px; overflow-y: auto; color: #dce7eb;
  background: var(--sidebar); scrollbar-color: #496572 var(--sidebar); scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 20px; color: #e8f2f4; text-decoration: none; }
.brand > span:last-child { font-size: 11px; letter-spacing: .08em; color: #b9cacf; }
.brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: .02em; }
.brand-mark, .mobile-brand {
  display: grid; place-items: center; flex: 0 0 41px; width: 41px; height: 41px;
  border-radius: 10px; color: #fff; background: #0b796d; font-size: 20px; font-weight: 700;
}
.nav-group + .nav-group { margin-top: 11px; }
.nav-group h2 { margin: 0 9px 4px; color: #a6bcc3; font-size: 11px; font-weight: 600; }
.nav-group a { display: flex; gap: 10px; align-items: center; min-height: 31px; padding: 4px 9px; border-radius: 7px; text-decoration: none; white-space: nowrap; }
.nav-group a:hover { background: #273f49; }
.nav-group a[aria-current="page"] { background: #23534f; color: #effffb; font-weight: 650; }
.nav-icon { width: 17px; flex: 0 0 17px; text-align: center; color: #a3c9c6; font-size: 15px; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; min-height: 100dvh; }
.workspace-login { margin: 0 auto; max-width: 800px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 62px; padding: 10px 30px; border-bottom: 1px solid var(--line); background: white;
}
.topbar-context { display: flex; gap: 9px; align-items: center; color: var(--muted); min-width: 0; }
.context-current { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-slash { color: #81969f; }
.mobile-brand { display: none; }
.environment { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cde6de; border-radius: 999px; padding: 3px 9px; background: #f1faf7; color: #17604c; font-size: 12px; white-space: nowrap; }
.environment > span, .badge > span { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 100%; background: currentColor; }
.page { width: 100%; min-width: 0; max-width: 1592px; margin: 0 auto; padding: 25px 28px 40px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 21px; }
.page-heading h1 { font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.025em; line-height: 1.18; }
.page-heading p { margin-top: 7px; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 39px;
  padding: 7px 13px; border: 1px solid transparent; border-radius: 7px; font-weight: 650;
  text-decoration: none; line-height: 1.3; white-space: nowrap;
}
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: #fff; border-color: #cddde3; color: #24505b; }
.button-secondary:hover { background: #f0f7f6; border-color: #9fbdb9; }
.button-plain { color: #415966; }
.button-plain:hover { background: #e9f1f3; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.stat-card {
  min-width: 0; padding: 13px 16px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow);
}
.stat-card dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-card dd { margin-top: 5px; font-size: 25px; font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-card dd small { font-size: 12px; font-weight: 500; color: var(--muted); }
.stat-accent { border-color: #c7e4db; background: #f1faf6; }
.stat-accent dd { color: #096d59; }
.stat-amber { background: #fffaf1; border-color: #eee0c2; }
.stat-amber dd { color: #794b04; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.filter {
  display: grid; grid-template-columns: minmax(150px, 1.45fr) minmax(108px,.85fr) minmax(108px,.85fr) auto;
  align-items: start; gap: 13px; padding: 14px 15px;
}
.field { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 650; font-size: 12px; color: #3b5261; }
.field input, .field select, .workspace-table select {
  width: 100%; height: 38px; min-width: 0; padding: 7px 9px; border: 1px solid #cddce3;
  border-radius: 7px; background: #fff; color: var(--ink);
}
.field select { padding-right: 22px; }
.field input::placeholder { color: #5c737d; opacity: 1; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b33b34; }
.field-error { color: #9b2724; font-size: 12px; overflow-wrap: anywhere; }
.field-help { color: var(--muted); font-size: 12px; }
.filter-actions { display: flex; gap: 4px; align-items: center; margin-top: 22px; }
.results-bar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 15px; }
.results-bar { background: #f7fafb; border-block: 1px solid var(--line); }
.results-bar h2, .section-heading h2 { font-size: 15px; }
.results-bar span, .section-heading span { color: var(--muted); font-size: 12px; }
.workspace-table { width: 100%; border-collapse: collapse; text-align: left; }
.workspace-table th { background: #fbfcfd; color: #405b67; font-size: 12px; font-weight: 650; }
.workspace-table th, .workspace-table td { padding: 11px 9px; border-bottom: 1px solid #e6edf0; }
.workspace-table tr > :first-child { padding-left: 15px; }
.workspace-table tr > :last-child { padding-right: 15px; }
.workspace-table tbody tr:hover { background: #f8fbfb; }
.space-location { min-width: 136px; }
.space-location a { text-decoration: none; color: #193946; font-weight: 700; }
.space-location a:hover, .cell-detail a:hover { text-decoration: underline; }
.space-location > small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.amount { color: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount small { font-size: .82em; }
.amount-negative { color: #a62d2b; }
.cell-area, .cell-vacancy, .cell-detail { text-align: right; }
.cell-occupancy { min-width: 119px; }
.cell-occupancy ul { list-style: none; margin: 0; padding: 0; }
.cell-occupancy li { display: flex; gap: 5px; align-items: center; justify-content: space-between; font-size: 12px; }
.cell-occupancy li + li { margin-top: 3px; }
.cell-occupancy li > span { margin-left: 4px; color: var(--muted); }
.muted { color: var(--muted); }
.positive, .cell-detail a, .back-link { color: #096b60; font-weight: 650; }
.cell-detail a, .back-link { text-decoration: none; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.badge-teal { background: var(--green-soft); color: #0b6752; }
.badge-blue { background: #eaf2fa; color: #254b77; }
.badge-amber { background: #fcf1d6; color: #794d08; }
.badge-muted { background: #eef2f4; color: #4a5d66; }
.badge-lilac { background: #f4edfb; color: #684282; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 15px; font-size: 13px; color: var(--muted); }
.pagination > div { display: flex; gap: 7px; }
.empty-state { display: grid; justify-items: center; gap: 9px; padding: 36px 15px; text-align: center; }
.empty-state strong { color: var(--ink); font-size: 18px; }
.empty-state p { color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #eaf4f0; color: #126b5c; font-size: 25px; }
.back-link { display: inline-block; margin-bottom: 15px; }
.back-link:hover { text-decoration: underline; }
.detail-heading .detail-position { margin: 0 0 7px; }
.group-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(225px, 1fr); gap: 14px; align-items: start; }
.detail-table tbody tr:last-child td { border-bottom: 0; }
.detail-fields { padding: 0 15px 7px; }
.detail-fields div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.detail-fields dt { color: var(--muted); }
.detail-fields dd, .detail-table td { overflow-wrap: anywhere; }
.more-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.more-group h2 { font-size: 15px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.more-group a { display: flex; gap: 7px; padding: 10px 13px; text-decoration: none; }
.more-group a:hover { background: #f3f8f7; }
.more-group a span:first-child { width: 15px; text-align: center; color: var(--teal); }
.more-group a span:last-child { margin-left: auto; color: var(--muted); }
.utility-panel { padding: 10px 14px; }
.utility-form { max-width: 520px; display: grid; gap: 18px; padding: 11px; }
.utility-form button { justify-self: start; }
.file-field input { height: auto; }
.todo-list { display: grid; gap: 10px; margin: 0; padding: 13px 18px 13px 30px; }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar-width: 192px; }
  .page { padding-inline: 16px; }
  .space-table th, .space-table td { padding-inline: 5px; }
}
@media (max-width: 940px) {
  .space-table th:nth-child(2), .space-table td:nth-child(2) { display: none; }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .workspace { margin: 0; }
  .topbar { min-height: 55px; padding: 8px 13px; }
  .topbar-context { font-size: 13px; font-weight: 700; color: var(--ink); gap: 8px; }
  .mobile-brand { display: grid; width: 26px; height: 26px; flex-basis: 26px; border-radius: 6px; font-size: 14px; }
  .context-slash, .context-current { display: none; }
  .page { padding: 18px 13px calc(86px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 15px; flex-wrap: wrap; }
  .page-heading p { font-size: 12px; margin-top: 5px; }
  .map-link { min-height: 35px; font-size: 12px; padding-inline: 8px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
  .stat-card { padding: 8px 10px; border-radius: 9px; }
  .stat-card dt { font-size: 11px; }
  .stat-card dd { font-size: 22px; margin-top: 4px; }
  .filter { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px; }
  .filter > :first-child, .filter-actions { grid-column: 1 / -1; }
  .filter-actions { margin-top: 1px; }
  .filter-actions .button { min-height: 38px; }
  .field input, .field select { font-size: 16px; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; z-index: 3; inset: auto 0 0;
    padding: 5px 3px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white;
  }
  .mobile-nav a {
    display: grid; justify-items: center; align-content: center; min-height: 46px; gap: 1px;
    color: #476370; font-size: 11px; text-decoration: none; border-radius: 7px;
  }
  .mobile-nav a span { line-height: 1; font-size: 17px; font-weight: 650; }
  .mobile-nav a[aria-current="page"] { background: #edf7f3; color: #076556; font-weight: 700; }
  .space-table, .space-table tbody, .detail-table, .detail-table tbody { display: block; }
  .workspace-table thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
  }
  .space-table tbody { display: grid; gap: 8px; padding: 9px; background: #f6f9fa; }
  .space-table tbody tr {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 6px 8px;
    padding: 10px; border: 1px solid #e0ebee; border-radius: 8px; background: white;
  }
  .space-table td, .space-table tr > :first-child, .space-table tr > :last-child {
    min-width: 0; padding: 0; display: block; border: 0; text-align: left; overflow-wrap: anywhere;
  }
  .space-table td:nth-child(2) { display: block; }
  .space-table td[data-label]::before, .detail-table td::before {
    content: attr(data-label); display: block; color: var(--muted); font-size: 11px; line-height: 1.3;
  }
  .space-location { grid-column: 1/-1; grid-row: 1; padding-bottom: 3px !important; }
  .space-location a { font-size: 16px; }
  .cell-category { grid-row: 3; }
  .cell-owner { grid-row: 3; grid-column: 2; }
  .cell-status { grid-row: 2; }
  .cell-verify { grid-row: 2; grid-column: 2; }
  .cell-area { grid-row: 4; }
  .cell-vacancy { grid-row: 4; grid-column: 2; }
  .cell-occupancy { grid-row: 5; grid-column: 1/-1; padding-top: 5px !important; border-top: 1px solid #e5eeee !important; }
  .cell-detail { grid-row: 6; grid-column: 2; justify-self: end; }
  .cell-detail a { display: inline-block; padding: 5px 0; }
  .detail-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-stats dd { font-size: clamp(14px, 4vw, 22px); }
  .detail-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 10px 12px; border-top: 1px solid var(--line); }
  .detail-table tbody tr td { display: block; min-width: 0; padding: 0; border: 0; }
  .more-grid { gap: 8px; }
  .more-group a { min-height: 42px; }
}
