:root {
  --bg: #07141a;
  --bg-strong: #030712;
  --panel: rgba(10, 24, 32, 0.82);
  --panel-strong: #111827;
  --panel-soft: #1a2235;
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #e5eef3;
  --muted: #96aabd;
  --accent: #2dd4bf;
  --available: #4ade80;
  --in-use: #f87171;
  --fast: #f59e0b;
  --mid: #38bdf8;
  --slow: #a3e635;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 24%),
    linear-gradient(180deg, #0b1720 0%, var(--bg) 56%, #030712 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 132px;
}

body.ads-disabled {
  padding-bottom: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

button,
input,
select,
a {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button,
input,
select,
textarea,
th,
td,
label,
strong,
p,
h1,
h2,
h3,
span,
div {
  color: inherit;
}

.hidden {
  display: none !important;
}

.maintenance-overlay {
  position: sticky;
  top: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 0 20px 20px;
}

.maintenance-card {
  width: min(520px, 100%);
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(102, 80, 54, 0.12);
  box-shadow: var(--shadow);
  text-align: center;
}

.maintenance-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.maintenance-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.maintenance-actions {
  justify-content: center;
}

body.maintenance-mode main,
body.maintenance-mode .ad-rail,
body.maintenance-mode .ad-bottom-wrap {
  display: none !important;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  position: relative;
  z-index: 1;
}

.single-column-layout {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.page-shell strong {
  color: var(--text);
}

.ad-rail {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 180px;
  z-index: 2;
}

.ad-bottom-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 18px;
  z-index: 4;
  pointer-events: none;
}

.ad-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 24, 32, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(12px);
}

.ad-card-bottom {
  max-width: 980px;
  margin: 0 auto;
  pointer-events: auto;
}

.ad-label {
  margin: 0;
  padding: 12px 14px 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Space Mono", monospace;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.ad-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(56, 189, 248, 0.12), transparent 36%);
  pointer-events: none;
}

.ad-slot span,
.ad-slot small {
  position: relative;
  z-index: 1;
}

.ad-slot span {
  display: block;
  font-weight: 800;
}

.ad-slot small {
  display: block;
  color: var(--muted);
}

.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: inherit;
}

.ad-slot.is-loading::after {
  content: "광고를 불러오는 중입니다.";
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.ad-slot-side {
  min-height: 600px;
  padding: 18px 14px 22px;
}

.ad-slot-bottom {
  min-height: 90px;
  padding: 16px 18px 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--panel-border);
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Space Mono", monospace;
}

.hero h1,
.section-head h2,
.dialog-head h3 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hero-card,
.panel,
.dialog-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.14), rgba(15, 23, 42, 0.88)),
    var(--panel);
}

.hero-card span,
.summary-pill,
.count-chip,
.slot-type,
.excel-table th,
.spot-mono {
  font-family: "Space Mono", monospace;
}

.hero-card span,
.hero-card p,
.helper-text,
.table-subtext {
  color: var(--muted);
}

.hero-card strong {
  margin-top: 12px;
  font-size: 1.7rem;
  font-family: "Space Mono", monospace;
}

.panel {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(10, 24, 32, 0.88));
}

.layout {
  display: grid;
  gap: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2,
.dialog-head h3 {
  letter-spacing: -0.02em;
}

.primary-link,
.ghost-link,
.ghost-button,
.primary-button,
.icon-button,
.stepper button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-link,
.ghost-link,
.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
}

.primary-link,
.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--mid));
  color: #f8fbff;
  box-shadow: 0 12px 24px rgba(45, 212, 191, 0.22);
  font-weight: 800;
}

.ghost-link,
.ghost-button {
  background: rgba(26, 34, 53, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text);
}

.primary-link:hover,
.ghost-link:hover,
.ghost-button:hover,
.primary-button:hover,
.icon-button:hover,
.stepper button:hover,
.slot-card:hover {
  transform: translateY(-1px);
}

.summary-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid rgba(45, 212, 191, 0.14);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-grid.compact-mobile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.map-floor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96)),
    rgba(2, 6, 23, 0.88);
  min-height: 360px;
  touch-action: none;
  cursor: default;
  user-select: none;
}

.public-map-canvas {
  min-height: 420px;
}

.map-pan-surface {
  position: relative;
  width: 100%;
  max-width: 100%;
  will-change: transform;
  transform-origin: center center;
}

.map-canvas-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.map-marker-layer {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--marker-scale, 1));
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.85);
  background: rgba(15, 23, 42, 0.98);
  color: #f8fbff;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 0 rgba(2, 6, 23, 0.75),
    0 0 6px rgba(2, 6, 23, 0.45);
  box-shadow:
    0 0 0 2px rgba(2, 6, 23, 0.62),
    0 10px 24px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(3px);
  cursor: pointer;
  z-index: 1;
}

.map-marker.mobile-tight {
  min-width: 24px;
  min-height: 24px;
  padding: 2px 5px;
  border-width: 1.5px;
  font-size: 0.58rem;
  box-shadow:
    0 0 0 1px rgba(2, 6, 23, 0.62),
    0 8px 18px rgba(2, 6, 23, 0.32);
}

.map-marker.fast50 {
  background: rgba(153, 27, 27, 0.96);
  border-color: rgba(254, 202, 202, 0.95);
}

.map-marker.slow7 {
  background: rgba(30, 64, 175, 0.96);
  border-color: rgba(191, 219, 254, 0.95);
}

.map-marker.slow3 {
  background: rgba(202, 138, 4, 0.96);
  color: #f8fafc;
  border-color: rgba(254, 240, 138, 0.96);
  text-shadow:
    0 1px 0 rgba(15, 23, 42, 0.44),
    0 0 4px rgba(2, 6, 23, 0.24);
}

.map-marker.unavailable {
  filter: grayscale(0.2) brightness(0.82);
  border-style: dashed;
}

.map-marker.occupied {
  background: rgba(203, 213, 225, 0.96);
  color: #f8fafc;
  border-width: 3px;
  border-color: #ffffff;
  text-shadow:
    0 1px 0 rgba(15, 23, 42, 0.54),
    0 0 6px rgba(2, 6, 23, 0.28);
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.74),
    0 0 0 5px rgba(248, 250, 252, 0.3),
    0 12px 26px rgba(2, 6, 23, 0.36);
  z-index: 2;
}

.map-marker.active {
  outline: 3px solid rgba(56, 189, 248, 0.82);
  outline-offset: 3px;
  z-index: 3;
}

.map-marker:hover {
  transform: translate(-50%, -50%) scale(calc(var(--marker-scale, 1) * 1.08));
  box-shadow:
    0 0 0 2px rgba(2, 6, 23, 0.7),
    0 0 0 5px rgba(248, 250, 252, 0.16),
    0 14px 28px rgba(2, 6, 23, 0.48);
}

.map-canvas.is-draggable {
  cursor: grab;
}

.map-canvas.is-dragging {
  cursor: grabbing;
}

.map-editor-shell {
  max-width: 1680px;
}

.compact-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 420px);
}

.map-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
}

.map-slot-list {
  display: grid;
  gap: 10px;
  max-height: min(72vh, 860px);
  overflow: auto;
  padding-right: 4px;
}

.map-slot-button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.map-slot-button:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.36);
}

.map-slot-button.active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(56, 189, 248, 0.18));
  border-color: rgba(45, 212, 191, 0.34);
}

.stat-card,
.setting-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.setting-card::before,
.zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), transparent);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  font-family: "Space Mono", monospace;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.setting-card h3 {
  margin: 0 0 6px;
}

.setting-card p {
  margin: 0;
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  cursor: pointer;
}

.toggle-label {
  font-weight: 700;
  color: var(--text);
}

.toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f8fbff;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.28);
  transition: transform 0.18s ease;
}

.toggle-input:checked + .toggle-slider {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.34), rgba(56, 189, 248, 0.34));
  border-color: rgba(45, 212, 191, 0.42);
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(25px);
}

.toggle-input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.stepper button,
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(26, 34, 53, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text);
}

.count-chip {
  min-width: 54px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  text-align: center;
  font-weight: 800;
}

.zones {
  display: grid;
  gap: 18px;
}

.zones.compact-mobile {
  gap: 14px;
}

.zone {
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  overflow: hidden;
}

.zone.compact-mobile {
  padding: 14px;
  border-radius: 18px;
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.zone-header h3 {
  margin: 0;
}

.zone-header span {
  color: var(--muted);
}

.zone-header strong {
  color: var(--text);
  font-family: "Space Mono", monospace;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.slots.compact-mobile {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.slot-card {
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
  color: var(--text);
}

.slot-card.compact-mobile {
  padding: 12px;
  border-radius: 16px;
}

.slot-card.empty {
  border-color: rgba(74, 222, 128, 0.22);
  background: linear-gradient(180deg, rgba(10, 24, 32, 0.98), rgba(15, 23, 42, 0.96) 62%);
}

.slot-card.occupied {
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(180deg, rgba(69, 16, 28, 0.82), rgba(15, 23, 42, 0.96) 62%);
}

.slot-card.unavailable {
  border-color: rgba(239, 68, 68, 0.38);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.9), rgba(15, 23, 42, 0.96) 62%);
}

.slot-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.12);
}

.slot-type {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.slot-type.fast {
  background: rgba(245, 158, 11, 0.12);
  color: var(--fast);
}

.slot-type.mid {
  background: rgba(2, 132, 199, 0.12);
  color: var(--mid);
}

.slot-type.slow {
  background: rgba(101, 163, 13, 0.14);
  color: var(--slow);
}

.slot-name {
  margin: 14px 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: "Space Mono", monospace;
}

.slot-card.compact-mobile .slot-name {
  margin: 10px 0 6px;
  font-size: 0.84rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.slot-meta,
.slot-subtext {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.slot-card.compact-mobile .slot-meta {
  font-size: 0.74rem;
  line-height: 1.35;
}

.slot-card.compact-mobile .slot-subtext {
  display: none;
}

.slot-status {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

.slot-card.compact-mobile .slot-status {
  margin-top: 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.slot-compact-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.slot-status.available {
  color: var(--available);
}

.slot-status.in-use {
  color: var(--in-use);
}

.slot-status.unavailable {
  color: #fca5a5;
}

.slot-current-time {
  margin: 8px 0 0;
  color: #f87171;
  font-weight: 700;
  line-height: 1.4;
  font-size: 0.88rem;
}

.slot-current-time.hidden {
  display: none;
}

.slot-dialog {
  width: min(720px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

.slot-dialog::backdrop {
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(6px);
}

.dialog-card {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(10, 24, 32, 0.92));
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 20px;
}

.dialog-image-wrap {
  margin-bottom: 18px;
}

.image-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: min(60vh, 520px);
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.38);
  touch-action: none;
  cursor: default;
  user-select: none;
}

.location-image {
  display: block;
  max-width: 100%;
  max-height: min(54vh, 460px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.image-stage.is-draggable {
  cursor: grab;
}

.image-stage.is-dragging {
  cursor: grabbing;
}

.notice-dialog-card {
  max-width: 720px;
}

.profile-dialog .dialog-card {
  max-width: 560px;
  margin: 0 auto;
}

.notice-content-wrap {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.3);
}

.notice-content-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text);
}

.notice-setting-card {
  display: grid;
  gap: 14px;
}

.notice-field {
  display: grid;
  gap: 8px;
}

.notice-field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.notice-textarea {
  min-height: 180px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  outline: none;
  resize: vertical;
  color: var(--text);
  caret-color: var(--text);
}

.notice-textarea:focus,
.notice-field input:focus {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.notice-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  outline: none;
  color: var(--text);
  caret-color: var(--text);
}

.notice-textarea::placeholder,
.notice-field input::placeholder {
  color: var(--muted);
}

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

.form-grid label,
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid label[data-required="true"] span::after {
  content: " *";
  color: #f87171;
}

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

.departure-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 8px;
  align-items: center;
}

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

.form-grid span,
.auth-form span {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-grid input,
.form-grid select,
.auth-form input,
.excel-table input,
.excel-table select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  outline: none;
  caret-color: var(--text);
  color-scheme: dark;
}

.form-grid select option,
.excel-table select option {
  background: var(--panel-strong);
  color: var(--text);
}

.excel-table td,
.setting-card h3,
.zone-header h3,
.dialog-head h3,
.auth-panel h2,
.section-head h2 {
  color: var(--text);
}

.form-grid input::placeholder,
.auth-form input::placeholder,
.excel-table input::placeholder {
  color: var(--muted);
}

.form-grid input:focus,
.form-grid select:focus,
.auth-form input:focus,
.excel-table input:focus,
.excel-table select:focus {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.form-grid label.field-invalid span {
  color: #fca5a5;
}

.form-grid label.field-invalid input,
.form-grid label.field-invalid select {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.auth-panel {
  max-width: 620px;
}

.monitor-panel {
  width: 100%;
}

.browser-compat-panel,
.guide-step,
.guide-quickstart,
.guide-note {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.browser-compat-panel {
  margin-bottom: 16px;
}

.browser-compat-title,
.guide-step h3,
.guide-quickstart h3,
.guide-note h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.browser-compat-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}

.guide-grid,
.guide-image-grid {
  display: grid;
  gap: 16px;
}

.guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guide-image-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-step p,
.guide-quickstart p,
.guide-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-step ol,
.guide-note ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}

.guide-shot {
  display: grid;
  gap: 10px;
}

.guide-shot img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.32);
}

.guide-shot figcaption {
  color: var(--muted);
  line-height: 1.6;
}

.highlight-groups,
.highlight-item-grid {
  display: grid;
  gap: 16px;
}

.highlight-group {
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.highlight-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.highlight-group-head strong {
  color: var(--text);
  font-family: "Space Mono", monospace;
}

.highlight-item-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(10, 24, 32, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.highlight-item h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.highlight-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.chat-message-list {
  display: grid;
  gap: 14px;
}

.chat-message-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.chat-message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.chat-message-body {
  margin: 10px 0 0;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text);
}

.chat-form {
  display: grid;
  gap: 14px;
}

.mode-switch-panel {
  padding: 16px 18px;
}

.public-view-actions {
  margin-top: 0;
}

.slot-card.readonly {
  cursor: default;
}

.slot-card.readonly:hover {
  transform: none;
  border-color: var(--panel-border);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.qr-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  display: grid;
  gap: 12px;
}

.qr-card h4 {
  margin: 0;
  color: var(--text);
}

.qr-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
}

.qr-card-actions {
  display: flex;
  gap: 10px;
}

.qr-link-text {
  word-break: break-all;
}

.auth-form button {
  align-self: end;
}

.social-auth {
  margin-top: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(102, 80, 54, 0.16);
}

.excel-wrap {
  overflow-x: auto;
}

.excel-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
}

.member-grid-table {
  min-width: 1680px;
}

.member-grid-table th,
.member-grid-table td {
  font-size: 0.92rem;
}

.excel-table th,
.excel-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

.excel-table th {
  background: rgba(15, 23, 42, 0.96);
  position: sticky;
  top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-cell {
  display: grid;
  gap: 10px;
}

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

.table-image {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.compact-button {
  padding: 10px 12px;
}

.danger-button {
  background: rgba(180, 30, 30, 0.85);
  border: 1px solid rgba(220, 80, 80, 0.4);
  color: #fff;
}

.danger-button:hover {
  background: rgba(200, 40, 40, 0.95);
  border-color: rgba(220, 80, 80, 0.7);
  color: #fff;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-row-has-parking {
  background: linear-gradient(180deg, rgba(69, 16, 28, 0.38), rgba(10, 24, 32, 0.78));
}

.member-row-has-parking td {
  background: transparent;
}

.danger-text {
  color: var(--in-use);
}

input[type="file"] {
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(26, 34, 53, 0.94);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .map-editor-layout {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }
}

@media (max-width: 1480px) {
  .excel-wrap {
    overflow-x: visible;
  }

  .excel-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 14px;
  }

  .excel-table thead {
    display: none;
  }

  .excel-table tbody {
    display: grid;
    gap: 14px;
  }

  .excel-table tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(10, 24, 32, 0.74);
  }

  .excel-table td {
    display: grid;
    gap: 8px;
    padding: 0;
    border-bottom: 0;
  }

  .excel-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-actions-cell {
    align-items: start;
  }

  .table-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 14 / 9;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 14px 40px;
  }

  body {
    padding-bottom: 124px;
  }

  body.ads-disabled {
    padding-bottom: 0;
  }

  .panel,
  .dialog-card,
  .hero-card {
    border-radius: 22px;
  }

  .section-head,
  .dialog-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .map-floor-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-canvas,
  .public-map-canvas {
    min-height: 280px;
  }

  .map-canvas-image {
    min-height: 280px;
  }

  .stats-grid.compact-mobile .stat-card {
    padding: 12px 10px;
    border-radius: 16px;
    text-align: center;
  }

  .stats-grid.compact-mobile .section-label {
    margin-bottom: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .stats-grid.compact-mobile .stat-card strong {
    margin-top: 4px;
    font-size: 1.05rem;
  }

  .stats-grid.compact-mobile .stat-card span {
    margin-top: 4px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .zone.compact-mobile .zone-header {
    margin-bottom: 10px;
    align-items: start;
  }

  .zone.compact-mobile .zone-header h3 {
    font-size: 0.98rem;
  }

  .zone.compact-mobile .zone-header span,
  .zone.compact-mobile .zone-header strong {
    font-size: 0.74rem;
  }

  .slot-card.compact-mobile .slot-type {
    padding: 4px 7px;
    font-size: 0.64rem;
  }

  .slot-card.compact-mobile {
    min-height: 98px;
  }

  .form-grid,
  .auth-form {
    grid-template-columns: 1fr;
  }

  .input-with-action {
    grid-template-columns: 1fr;
  }

  .departure-controls {
    grid-template-columns: 1fr;
  }

  .table-input-action {
    grid-template-columns: 1fr;
  }

  .ad-bottom-wrap {
    padding: 10px 12px 12px;
  }

  .ad-card,
  .ad-card-bottom {
    border-radius: 16px;
  }

  .ad-slot-bottom {
    min-height: 72px;
    padding: 12px 14px 14px;
  }
}
