:root {
  font-family: "Quantico", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #f4f4f0;
  background: #0a0a0a;
  font-synthesis: none;
  --panel: rgba(18,18,18,.92);
  --line: rgba(255,255,255,.12);
  --muted: #9b9b96;
  --accent: linear-gradient(225deg, #00C9FF 0%, #92FE9D 100%);
  --accent-slider: #92FE9D;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { height: 100%; display: grid; grid-template-rows: 64px 1fr; }
header { display:flex; align-items:center; justify-content:space-between; padding: 0 22px; border-bottom:1px solid var(--line); background:#0a0a0a; z-index:10; }
.brand { display:flex; align-items:center; gap:12px; font-weight:700; letter-spacing:-.02em; }
.brand-mark { width:22px; height:22px; border:2px solid var(--accent); border-radius:50%; position:relative; }
.brand-mark::after { content:""; position:absolute; inset:5px; background:var(--accent); border-radius:50%; }
.status { font-size:12px; color:var(--muted); }
.status a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}
.status a:hover {
    opacity: .8;
}
.workspace { min-height:0; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr); }
.map-wrap, .preview-wrap { position:relative; min-width:0; min-height:0; }
#map, #preview { position:absolute; inset:0; }
#preview canvas {display: block;width: 100%;height: 100%;}
.preview-wrap { border-left:1px solid var(--line); background:radial-gradient(circle at 50% 35%, #292929 0%, #101010 52%, #080808 100%); }
.viewer-switch {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(10px);
}

.viewer-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.viewer-switch button.active {
  background: var(--accent);
  color: #111;
}
.searchbar {
    position: absolute;
    top: 18px;
    left: 18px;
    width: min(50%, 600px);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;

  display: none;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(15, 15, 15, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.search-suggestions.show {
  display: block;
}

.search-suggestions .search-suggestion {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;

  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  background: transparent;
  color: #fff;

  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;

  cursor: pointer;
  overflow: hidden;
}

.search-suggestions .search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestions .search-suggestion:hover,
.search-suggestions .search-suggestion.active {
  background: rgba(217, 255, 67, 0.12);
}

.search-suggestions .search-suggestion strong {
  display: block;
  overflow: hidden;

  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-suggestions .search-suggestion span {
  display: block;
  overflow: hidden;
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;

  white-space: nowrap;
  text-overflow: ellipsis;
}
.searchbar input { flex:1; height:46px; border:1px solid var(--line); border-radius:12px; background:rgba(15,15,15,.94); color:white; padding:0 14px; outline:none; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.searchbar button, .primary, .secondary { border:0; border-radius:12px; min-height:46px; padding:0 16px; font-weight:700; }
.searchbar button, .primary { background:var(--accent); color:#111; }
.secondary { background:#252525; color:white; border:1px solid var(--line); }
.panel { position:absolute; z-index:4; left:18px; bottom:18px; width:min(390px,calc(100% - 36px)); background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:16px; backdrop-filter: blur(16px); box-shadow:0 20px 60px rgba(0,0,0,.35); }
.panel h2 { font-size:14px; margin:0 0 14px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field { display:grid; gap:6px; }
.field.full { grid-column:1/-1; }
.field label { display:flex; justify-content:space-between; gap:10px; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.field input[type="range"] { width:100%; accent-color:var(--accent-slider); }
.field select { width:100%; height:38px; background:#222; color:#fff; border:1px solid var(--line); border-radius:9px; padding:0 10px; }
.meta { margin-top:12px; padding-top:12px; border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.meta div { font-size:11px; color:var(--muted); }
.meta strong { display:block; margin-top:3px; font-size:13px; color:#fff; font-weight:650; }
.actions { display:flex; gap:8px; margin-top:14px; }
.actions button { flex:1; }
.preview-label { position:absolute; z-index:3; top:18px; left:18px; padding:9px 11px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; background:rgba(15,15,15,.72); border:1px solid var(--line); border-radius:10px; backdrop-filter:blur(10px); }
.progress { position:absolute; inset:0; z-index:8; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.64); backdrop-filter:blur(7px); }
.progress.show { display:flex; }
.progress-card { width:min(360px,80%); padding:22px; border:1px solid var(--line); border-radius:16px; background:#141414; text-align:center; }
.progress-card strong { display:block; margin-bottom:8px; }
.progress-card span { color:var(--muted); font-size:13px; }
.toast { position:fixed; z-index:20; top:76px; left:50%; transform:translate(-50%,-12px); opacity:0; pointer-events:none; background:#171717; color:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 14px; font-size:13px; transition:.25s; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.token-screen { height:100%; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 50% 20%, #252525, #090909 55%); }
.token-card { max-width:620px; border:1px solid var(--line); border-radius:20px; padding:28px; background:#111; }
.token-card h1 { margin:0 0 10px; font-size:30px; }
.token-card p { color:var(--muted); line-height:1.55; }
.token-card code { display:block; padding:14px; background:#050505; border-radius:10px; color:var(--accent); overflow:auto; }
.mapboxgl-ctrl-bottom-right { bottom:4px; }
@media (max-width: 900px) {
  .workspace { grid-template-columns:1fr; grid-template-rows:55% 45%; }
  .preview-wrap { border-left:0; border-top:1px solid var(--line); }
  .panel { width:min(360px,calc(100% - 24px)); left:12px; bottom:12px; padding:12px; }
  .searchbar { left:12px; right:12px; top:12px; }
  header { padding:0 14px; }
}
