
:root {
  color-scheme: dark;
  --bg: #10131c;
  --surface: #191e2a;
  --surface2: #202737;
  --border: #30394b;
  --text: #f2f5fb;
  --muted: #98a4ba;
  --accent: #9b8cff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, sans-serif;
}
button, textarea, input { font: inherit; }
button { cursor: pointer; color: inherit; }
.sidebar {
  width: 245px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 25px 16px;
  background: #141925;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 6px 35px;
}
.brand b { color: var(--accent); }
.brand-icon {
  background: var(--accent);
  color: #151425;
  border-radius: 11px;
  padding: 7px 12px;
  font-size: 22px;
}
.nav-label, .muted { color: var(--muted); }
.nav-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  margin: 12px 8px 3px;
}
.nav {
  color: inherit;
  text-decoration: none;
  text-align: left;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 12px;
  display: flex;
  gap: 12px;
}
.nav:hover, .nav.active { background: var(--surface2); }
.nav.active { color: #c2baff; }
.sidebar-bottom {
  margin-top: auto;
  padding: 14px 8px;
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #50d6a0;
  border-radius: 50%;
  margin-right: 5px;
}
.status-dot.pending { background: #d6ad58; }
.main { margin-left: 245px; padding: 30px clamp(20px, 4vw, 55px); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.topbar h1 { font-size: 28px; margin: 2px 0; }
.topbar .muted { font-size: 11px; letter-spacing: 1.4px; }
.domain {
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
}
.hero {
  min-height: 260px;
  padding: 35px;
  border: 1px solid #35304f;
  border-radius: 20px;
  background: radial-gradient(ellipse at 80% 20%, #39305e 0, transparent 45%), #1b2030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.eyebrow { color: #c2b8ff; font-size: 11px; letter-spacing: 1.5px; }
.hero h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 12px 0; }
.hero p { color: var(--muted); }
.hero-art { font-size: 120px; font-weight: 900; color: #c3baff; opacity: .8; }
.hero-art span { color: #8cddce; }
.primary, .secondary {
  padding: 10px 15px;
  border-radius: 9px;
  border: 1px solid var(--border);
  margin: 4px 4px 4px 0;
}
.primary { background: var(--accent); color: #171528; border-color: var(--accent); font-weight: 700; }
.secondary { background: var(--surface2); }
.primary:hover { filter: brightness(1.08); }
.secondary:hover, .app-card:hover { border-color: var(--accent); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 15px; }
.section-heading h2 { font-size: 19px; margin: 0; }
.section-heading .muted { font-size: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card {
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  text-align: left;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-height: 175px;
}
.app-card strong { margin-top: 4px; }
.app-card > span:not(.app-icon) { font-size: 12px; color: var(--muted); }
.app-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; }
.purple { background: #3a315f; color: #c2b5ff; }
.blue { background: #233f62; color: #9fcaff; }
.green { background: #23483e; color: #8de5c2; }
.orange { background: #503b2b; color: #ffca98; }
.teal { background: #20464b; color: #8fe4e9; }
.available, .planned { font-size: 11px; }
.available { color: #6de0ae; }
.planned { color: #e3bd70; }
.notice, .panel, .tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px;
  margin-top: 18px;
}
.notice { border-left: 3px solid var(--accent); }
.notice p, .panel p { color: var(--muted); margin-bottom: 0; }
.hidden { display: none !important; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tool-tab { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 13px; }
.tool-tab.active { border-color: var(--accent); color: #c2baff; }
.tool-panel h3 { margin-top: 0; }
textarea {
  display: block;
  width: 100%;
  min-height: 155px;
  resize: vertical;
  padding: 13px;
  background: #101520;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin: 12px 0;
}
.output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 48px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #101520;
  color: #bdebd7;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col label { color: var(--muted); }
#color-input { width: 90px; height: 50px; }
.project-list { list-style: none; padding: 0; }
.project-list li { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.project-list li div { flex: 1; }
.project-list p { margin: 2px 0 0; font-size: 12px; }
.project-list li > span:last-child { color: var(--muted); font-size: 12px; }
footer { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; margin-top: 40px; }
.map-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 20px; }
.map-intro h2 { margin: 5px 0; font-size: 25px; }
.map-intro p { margin: 0; color: var(--muted); }
.demo-badge, .unknown-status { display: inline-flex; align-items: center; border: 1px solid #715d35; background: #332b1e; color: #e4c581; border-radius: 999px; padding: 7px 11px; font-size: 10px; letter-spacing: .7px; white-space: nowrap; }
.map-toolbar { display: flex; align-items: end; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px 13px 0 0; }
.store-search { display: flex; flex-direction: column; gap: 5px; flex: 1; color: var(--muted); font-size: 11px; }
.store-search input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: #101520; color: var(--text); padding: 10px 12px; outline: none; }
.store-search input:focus { border-color: #55c9d7; box-shadow: 0 0 0 2px #55c9d722; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 510px; background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 13px 13px; overflow: hidden; }
.map-canvas-wrap { position: relative; min-height: 510px; background: #182634; }
#store-map { position: absolute; inset: 0; min-height: 510px; }
.map-message { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #d2dce8; background: #182634; z-index: 2; }
.map-message.hidden { pointer-events: none; }
.store-details { padding: 22px 18px; border-left: 1px solid var(--border); background: #171d29; }
.store-details h3 { margin: 10px 0; font-size: 18px; }
.store-details p { color: var(--muted); font-size: 13px; }
.detail-kicker { color: #75d2dc; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.store-note { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; }
.unknown-status { margin-top: 8px; font-size: 9px; letter-spacing: .2px; }
.store-marker { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid #d6ffff; border-radius: 50%; background: #19aabb; color: #061a20; font-size: 10px; font-weight: 800; box-shadow: 0 3px 12px #0009; cursor: pointer; }
.store-marker.selected { background: #9b8cff; border-color: white; z-index: 2; }
.store-marker.marker-hidden { display: none; }
.store-list-panel { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.store-list-panel .section-heading { margin: 0 0 12px; }
.store-list-panel h3 { margin: 0; font-size: 16px; }
.table-scroll { overflow-x: auto; }
.store-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.store-table th { color: var(--muted); font-weight: 500; }
.store-table th, .store-table td { padding: 11px 9px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-select { border: 1px solid var(--border); border-radius: 7px; color: #a9eaf0; background: var(--surface2); padding: 5px 9px; }
.map-attribution-note { color: var(--muted); font-size: 10px; margin: 10px 2px; }
.maplibregl-ctrl-group { overflow: hidden; }
@media (max-width: 950px) {
  .sidebar { width: 195px; }
  .main { margin-left: 195px; padding: 22px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .sidebar { position: static; width: auto; padding: 12px; }
  .brand { padding-bottom: 8px; }
  .sidebar .nav-label, .sidebar-bottom { display: none; }
  .sidebar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .brand { grid-column: 1 / -1; }
  .nav { padding: 9px 6px; justify-content: center; font-size: 12px; }
  .nav span { display: none; }
  .main { margin-left: 0; padding: 16px; }
  .hero { padding: 22px; }
  .hero-art { font-size: 65px; }
  .app-grid, .two-col { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 23px; }
  .map-intro { align-items: flex-start; flex-direction: column; }
  .map-toolbar { align-items: stretch; flex-wrap: wrap; }
  .store-search { flex-basis: 100%; }
  .map-layout { grid-template-columns: 1fr; }
  .map-canvas-wrap, #store-map { min-height: 55vh; }
  .store-details { border-left: 0; border-top: 1px solid var(--border); min-height: 160px; }
}
