:root {
  --ink: #18231f;
  --ink-soft: #33433d;
  --muted: #6f7974;
  --paper: #fffdf7;
  --canvas: #eef0e9;
  --canvas-deep: #e4e8df;
  --line: #d9ded5;
  --line-strong: #c7cec3;
  --forest: #173c32;
  --forest-mid: #234e42;
  --lime: #dceb58;
  --lime-soft: #f2f6be;
  --amber: #f2b84b;
  --amber-soft: #fff3d1;
  --danger: #b5533b;
  --shadow-sm: 0 1px 2px rgb(20 35 30 / 5%), 0 8px 22px rgb(20 35 30 / 4%);
  --shadow-lg: 0 24px 65px rgb(17 35 29 / 18%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgb(220 235 88 / 10%), transparent 28rem),
    linear-gradient(180deg, var(--canvas) 0%, #f3f4ef 52%, #ecefe8 100%);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgb(220 235 88 / 80%);
  outline-offset: 3px;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--forest);
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #f8faf4;
  background:
    radial-gradient(circle at 82% 6%, rgb(220 235 88 / 15%), transparent 23rem),
    linear-gradient(125deg, #112e27 0%, #173c32 57%, #1e493d 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid rgb(220 235 88 / 20%);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgb(220 235 88 / 4%),
    0 0 0 110px rgb(220 235 88 / 3%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(350px, 0.6fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  width: min(1560px, calc(100% - 64px));
  min-height: 238px;
  margin: 0 auto;
  padding: 26px 0 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgb(255 255 255 / 72%);
  font: 600 11px/1 "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.19em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
  padding: 5px;
  border: 1px solid rgb(220 235 88 / 38%);
  border-radius: 5px;
}

.brand-mark i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--lime);
}

.brand-mark i:last-child {
  background: #fff;
}

.hero-kicker {
  margin: 24px 0 7px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 66px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 610px;
  margin: 14px 0 0;
  color: rgb(244 248 240 / 65%);
  font-size: 13px;
  line-height: 1.65;
}

.hero-summary {
  padding: 15px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 18px;
  background: rgb(8 28 23 / 36%);
  box-shadow: 0 20px 50px rgb(0 0 0 / 12%);
  backdrop-filter: blur(8px);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  margin-bottom: 11px;
  padding: 6px 9px;
  border: 1px solid rgb(220 235 88 / 22%);
  border-radius: 999px;
  color: #eff5e9;
  background: rgb(220 235 88 / 8%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--lime);
  border-radius: inherit;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 7px;
}

.summary-metric {
  display: flex;
  min-width: 0;
  min-height: 80px;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 15px;
  background: rgb(255 255 255 / 5%);
}

.summary-metric.primary {
  color: var(--forest);
  background: var(--lime);
}

.summary-metric > span {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
}

.summary-metric strong {
  font: 500 33px/0.95 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: -0.08em;
}

.summary-metric small {
  color: inherit;
  font: 500 8px/1 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.16em;
  opacity: 0.58;
}

.summary-note {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 44%);
  font-size: 10px;
  text-align: right;
}

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 372px;
  gap: 18px;
  align-items: start;
  width: min(1560px, calc(100% - 64px));
  margin: 22px auto 0;
}

.panel {
  border: 1px solid rgb(207 214 203 / 84%);
  border-radius: var(--radius-md);
  background: rgb(255 253 247 / 93%);
  box-shadow: var(--shadow-sm);
}

.directory {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 22px 17px 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.eyebrow {
  color: var(--muted);
  font: 600 9px/1.2 "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.17em;
}

.floor-switcher {
  display: grid;
  gap: 7px;
  margin-top: 19px;
}

.floor-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  min-height: 63px;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.floor-button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--lime);
  transform: scaleY(0);
  transition: transform 160ms ease;
}

.floor-button:hover {
  border-color: var(--line-strong);
  background: #fafbf7;
  transform: translateX(2px);
}

.floor-button.active {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.floor-button.active::after {
  transform: scaleY(1);
}

.floor-button span {
  font-size: 15px;
  font-weight: 800;
}

.floor-button strong {
  font: 500 17px/1 "IBM Plex Mono", Consolas, monospace;
}

.floor-button small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.floor-button.active small {
  color: rgb(255 255 255 / 58%);
}

.directory-divider {
  height: 1px;
  margin: 21px 0 18px;
  background: var(--line);
}

.room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.room-heading small {
  color: var(--muted);
  font: 500 10px/1 "IBM Plex Mono", Consolas, monospace;
}

.room-list {
  display: grid;
  gap: 4px;
}

.room-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.room-button:hover {
  background: #f3f5ef;
}

.room-button.selected {
  color: var(--forest);
  border-color: #cfd9b0;
  background: #f2f6cf;
}

.room-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  background: #f0f2ed;
  font: 600 9px/1 "IBM Plex Mono", Consolas, monospace;
}

.room-button.selected .room-index {
  color: var(--forest);
  background: var(--lime);
}

.room-button > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-count {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #945d00;
  background: var(--amber-soft);
  font: 700 9px/1 "IBM Plex Mono", Consolas, monospace;
}

.room-button.is-clear .issue-count {
  color: #a43f59;
  background: #fbe1e8;
}

.map-legend {
  display: grid;
  gap: 8px;
  margin-top: 21px;
  padding: 16px 6px 0;
  border-top: 1px solid var(--line);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.legend-swatch {
  width: 13px;
  height: 9px;
  border: 1px solid #86a094;
  border-radius: 2px;
  background: #dce7e1;
}

.legend-swatch.clear {
  border-color: #d88da1;
  background: #f4bac9;
}

.legend-swatch.active {
  border-color: #aabd37;
  background: var(--lime);
}

.local-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 2px 0;
  padding: 11px;
  border-radius: 9px;
  color: var(--muted);
  background: #f1f4eb;
  font-size: 10px;
  line-height: 1.65;
}

.local-note-icon {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 3px rgb(23 60 50 / 12%);
}

.center-column,
.detail-column {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.map-card {
  min-width: 0;
  padding: 23px 24px 16px;
}

.map-heading {
  align-items: center;
}

.hint {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: #fbfcf7;
  font-size: 10px;
}

.map-stage {
  display: grid;
  min-height: 390px;
  place-items: center;
  margin-top: 9px;
  padding: 8px 0 0;
  overflow: hidden;
}

.map-stage svg {
  width: 100%;
  max-height: 460px;
  overflow: visible;
  filter: drop-shadow(0 13px 18px rgb(21 50 41 / 5%));
}

.map-stage .room {
  outline: none;
  transition: filter 160ms ease;
}

.map-stage .clickable-room {
  cursor: pointer;
}

.map-stage .clickable-room:hover {
  filter: brightness(0.96) saturate(1.2);
}

.map-stage .clickable-room.active {
  filter: drop-shadow(0 9px 8px rgb(96 111 18 / 16%));
}

.map-stage .room polygon {
  transition:
    fill 180ms ease,
    stroke 180ms ease;
}

.map-stage .room-label {
  pointer-events: none;
  letter-spacing: -0.02em;
}

.map-caption {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
}

.map-caption-line {
  width: 21px;
  height: 1px;
  background: var(--line-strong);
}

.gallery-card {
  min-width: 0;
  padding: 22px 24px 17px;
}

.gallery-heading {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.gallery-heading h2 {
  margin-top: 6px;
}

.gallery-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.primary-button {
  color: #fff;
  background: var(--forest);
}

.primary-button:hover {
  background: var(--forest-mid);
}

.secondary-button {
  color: var(--forest);
  border-color: var(--line-strong);
  background: #fff;
}

.secondary-button:hover {
  border-color: #aebbaa;
  background: #f7f9f2;
}

.button-plus {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 11px;
  min-height: 140px;
  padding-top: 16px;
}

.photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.photo-open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eaddd0;
  cursor: zoom-in;
}

.photo-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-card:hover .photo-open img {
  transform: scale(1.035);
}

.photo-index {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  min-width: 25px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 5px;
  color: #fff;
  background: rgb(15 36 30 / 73%);
  font: 600 9px/1 "IBM Plex Mono", Consolas, monospace;
  backdrop-filter: blur(4px);
}

.photo-zoom {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: rgb(15 36 30 / 68%);
  opacity: 0;
  transition: opacity 160ms ease;
  backdrop-filter: blur(4px);
}

.photo-card:hover .photo-zoom {
  opacity: 1;
}

.photo-zoom svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 9px;
}

.photo-meta-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-delete {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #ecd4cc;
  border-radius: 5px;
  color: var(--danger);
  background: #fff8f5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.photo-delete:hover {
  border-color: #ddb7ac;
  background: #fcece7;
}

.upload-card {
  display: grid;
  min-height: 140px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px dashed #aebaa7;
  border-radius: 11px;
  color: var(--forest);
  background:
    linear-gradient(135deg, rgb(220 235 88 / 10%), transparent),
    #fafcf5;
  cursor: pointer;
}

.upload-card:hover {
  border-color: #859d7b;
  background: #f5f9eb;
}

.upload-plus {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--lime);
  font-size: 22px;
  font-weight: 300;
}

.upload-card span:last-child {
  font-size: 11px;
  font-weight: 700;
}

.photo-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 138px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  background: #fafbf7;
  text-align: center;
}

.photo-empty strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.photo-empty span {
  font-size: 10px;
}

.photo-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid #e5ddc7;
  border-radius: 8px;
  color: var(--muted);
  background: #fbf8ed;
  font-size: 10px;
}

.photo-history[hidden] {
  display: none;
}

.photo-history strong {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.photo-history button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--forest);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.photo-history button:hover {
  border-color: #aebaa7;
  background: #f5f8ee;
}

.storage-note {
  margin: 12px 0 0;
  color: #929a95;
  font-size: 9px;
}

.detail-column {
  position: sticky;
  top: 18px;
}

.detail-card {
  padding: 23px 23px 21px;
  background:
    linear-gradient(180deg, #fffdf6 0%, #fffdf7 90%),
    var(--paper);
}

.room-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.room-location-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.detail-card h2 {
  margin: 18px 0 21px;
  font-size: clamp(29px, 2.6vw, 39px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.issue-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 15px 18px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--forest);
  background: var(--lime-soft);
}

.issue-total > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.issue-total strong {
  font: 500 49px/0.95 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: -0.08em;
}

.issue-total span {
  font-size: 12px;
  font-weight: 800;
}

.issue-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--forest) var(--progress), rgb(23 60 50 / 12%) 0);
}

.issue-ring::before {
  content: "";
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--lime-soft);
}

.issue-ring::after {
  content: "待办";
  position: absolute;
  color: var(--forest);
  font-size: 8px;
  font-weight: 800;
}

.issue-list {
  display: grid;
  gap: 0;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.issue-list li {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.issue-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin-top: 1px;
  border-radius: 7px;
  color: var(--forest);
  background: #eef1e6;
  font: 700 9px/1 "IBM Plex Mono", Consolas, monospace;
}

.issue-list p {
  margin: 0;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.72;
}

.detail-actions {
  margin-top: 18px;
}

.detail-actions .secondary-button {
  width: 100%;
}

.detail-actions > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.plan-card {
  padding: 19px;
}

.panel-heading.compact {
  align-items: center;
}

.panel-heading.compact h2 {
  font-size: 17px;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--forest);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.plan-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  margin-top: 14px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(rgb(23 60 50 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 60 50 / 3%) 1px, transparent 1px),
    #fafbf7;
  background-size: 16px 16px;
  cursor: zoom-in;
}

.plan-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.plan-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgb(15 36 30 / 68%);
  font-size: 9px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.plan-preview:hover .plan-zoom {
  opacity: 1;
}

.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.plan-footer span:first-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1560px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 4px 36px;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.media-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 3vw;
  border: 0;
  color: #fff;
  background: rgb(10 21 18 / 94%);
  backdrop-filter: blur(10px);
}

.media-dialog::backdrop {
  background: rgb(5 12 10 / 75%);
}

.media-dialog[open] {
  display: grid;
  place-items: center;
}

.dialog-close {
  position: fixed;
  z-index: 2;
  top: 21px;
  right: 25px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 7%);
  font-size: 25px;
  font-weight: 300;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgb(255 255 255 / 13%);
}

.dialog-nav {
  position: fixed;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 10px 35px rgb(0 0 0 / 18%);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
  backdrop-filter: blur(8px);
}

.dialog-nav:hover:not(:disabled) {
  background: rgb(220 235 88 / 22%);
  transform: translateY(-50%) scale(1.04);
}

.dialog-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.dialog-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dialog-prev {
  left: max(22px, 3vw);
}

.dialog-next {
  right: max(22px, 3vw);
}

.dialog-media-wrap {
  width: min(1180px, 94vw);
  max-height: 94vh;
}

.dialog-media-wrap > img {
  width: 100%;
  max-height: calc(94vh - 55px);
  object-fit: contain;
}

.dialog-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  color: rgb(255 255 255 / 67%);
  font-size: 11px;
}

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

.dialog-count {
  min-width: 46px;
  color: var(--lime);
  font: 600 10px/1 "IBM Plex Mono", Consolas, monospace;
  text-align: right;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1280px) {
  .workspace {
    grid-template-columns: 224px minmax(0, 1fr) 330px;
    width: min(1560px, calc(100% - 40px));
  }

  .hero-inner {
    width: min(1560px, calc(100% - 40px));
  }

  .map-stage {
    min-height: 340px;
  }

  .map-stage svg {
    max-height: 400px;
  }

  .detail-card {
    padding: 20px;
  }
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 24px;
    align-items: center;
  }

  .hero-summary {
    width: auto;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 54px);
  }

  .hero-lead {
    max-width: 520px;
    font-size: 12px;
  }

  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-column {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: start;
  }

  .detail-card h2 {
    font-size: 32px;
  }

  .plan-card {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 820px) {
  .hero-inner,
  .workspace,
  .site-footer {
    width: min(100% - 28px, 720px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 22px 0 24px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-summary {
    padding: 12px;
  }

  .status-pill,
  .summary-note {
    display: none;
  }

  .summary-metric {
    min-height: 70px;
  }

  .workspace {
    grid-template-columns: 1fr;
    margin-top: 14px;
    gap: 14px;
  }

  .directory {
    position: static;
    padding: 16px;
  }

  .directory .panel-heading {
    display: none;
  }

  .floor-switcher {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
  }

  .floor-button {
    min-height: 58px;
    padding: 9px 10px;
  }

  .floor-button:hover {
    transform: none;
  }

  .floor-button small {
    font-size: 9px;
  }

  .directory-divider {
    margin: 15px 0 13px;
  }

  .room-list {
    display: flex;
    gap: 7px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .room-button {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 7px 10px;
  }

  .room-button .room-index {
    display: none;
  }

  .issue-count {
    width: 19px;
    height: 19px;
  }

  .map-legend,
  .local-note {
    display: none;
  }

  .center-column,
  .detail-column {
    gap: 14px;
  }

  .map-card,
  .gallery-card {
    padding: 18px 16px 14px;
  }

  .map-stage {
    min-height: 280px;
  }

  .map-stage svg {
    max-height: 340px;
  }

  .detail-column {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .plan-card {
    position: static;
  }

  .plan-preview {
    aspect-ratio: 16 / 11;
  }

  .site-footer {
    padding: 24px 3px 30px;
    flex-wrap: wrap;
  }

  .toast {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .hero-inner {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .hero-kicker {
    margin-top: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    margin-top: 10px;
    overflow: hidden;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .summary-metric {
    min-height: 66px;
    padding: 8px;
  }

  .summary-metric > span {
    font-size: 9px;
  }

  .summary-metric strong {
    font-size: 27px;
  }

  .summary-metric small {
    font-size: 7px;
  }

  .dialog-nav {
    top: auto;
    bottom: 24px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .dialog-nav:hover:not(:disabled) {
    transform: scale(1.04);
  }

  .dialog-prev {
    left: calc(50% - 58px);
  }

  .dialog-next {
    right: calc(50% - 58px);
  }

  .dialog-media-wrap {
    width: 100%;
  }

  .dialog-media-wrap > img {
    max-height: calc(100vh - 150px);
  }

  .dialog-meta {
    gap: 8px;
  }

  .dialog-meta > span:last-child {
    display: none;
  }

  .workspace {
    width: calc(100% - 20px);
  }

  .directory {
    padding: 12px;
  }

  .floor-switcher {
    gap: 5px;
  }

  .floor-button {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 64px;
    text-align: center;
  }

  .floor-button strong {
    display: none;
  }

  .floor-button small {
    grid-column: auto;
  }

  .map-card,
  .gallery-card {
    padding: 16px 12px 12px;
  }

  .panel-heading h2 {
    font-size: 19px;
  }

  .hint {
    display: none;
  }

  .map-stage {
    min-height: 235px;
  }

  .map-stage svg {
    max-height: 285px;
  }

  .map-caption {
    font-size: 9px;
  }

  .gallery-heading {
    align-items: flex-end;
    gap: 10px;
  }

  .gallery-heading .primary-button {
    min-height: 35px;
    padding: 7px 10px;
    white-space: nowrap;
  }

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

  .photo-meta {
    padding: 6px;
  }

  .detail-card {
    padding: 19px 16px 17px;
  }

  .detail-card h2 {
    margin: 16px 0 17px;
    font-size: 29px;
  }

  .issue-total {
    min-height: 83px;
    padding: 13px 15px;
  }

  .issue-total strong {
    font-size: 44px;
  }

  .issue-list p {
    font-size: 13px;
  }

  .dialog-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .hero {
    color: var(--ink);
    background: #fff;
  }

  .hero-grid,
  .hero-summary,
  .directory,
  .gallery-card,
  .plan-card,
  .detail-actions,
  .site-footer {
    display: none !important;
  }

  .workspace {
    display: block;
    width: 100%;
    margin: 0;
  }

  .map-card,
  .detail-card {
    border: 1px solid #bbb;
    box-shadow: none;
  }

  body {
    background: #fff;
  }
}
