/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f4f6f8;
  --ink:      #18120e;
  --ink2:     #4a4540;
  --ink3:     #9b9088;
  --surface:  #ffffff;
  --border:   #dde5ec;
  --border2:  #c5d0da;
  --green:    #16a34a;
  --red:      #dc2626;
  --blue:     #2563eb;
  --gold:     #b7791f;
  --sans:     'Instrument Sans', sans-serif;
  --serif:    'Instrument Serif', serif;
  --mono:     'JetBrains Mono', monospace;
  --r:        8px;
  --r2:       8px;

  /* Slot colour palette */
  --s1:  #d4420a; --s1l: #fff3ee; --s1m: #ffc9a8; --s1dk: #6e1a00;
  --s2:  #1a5fc8; --s2l: #eef4ff; --s2m: #b8d0f8; --s2dk: #0a2d6e;
  --s3:  #1a8040; --s3l: #edfaf3; --s3m: #a8f0c0; --s3dk: #0a3d1e;
  --s4:  #7930e8; --s4l: #f5f0ff; --s4m: #d4b8fc; --s4dk: #380a80;
  --s5:  #b84d08; --s5l: #fff7ed; --s5m: #fcd498; --s5dk: #5c2000;
  --s6:  #0a7a94; --s6l: #ecfcff; --s6m: #9ce8f7; --s6dk: #053d4d;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
  overflow-anchor: none;
}

body.theme-night {
  --bg:       #111827;
  --ink:      #f8fafc;
  --ink2:     #d8e0ea;
  --ink3:     #9aa8b8;
  --surface:  #182231;
  --border:   #2a3a4f;
  --border2:  #3a4b62;
  --green:    #4ade80;
  --red:      #f87171;
  --blue:     #60a5fa;
  --gold:     #fbbf24;
  --s1l: #321b16; --s2l: #13233e; --s3l: #132d20;
  --s4l: #261d3d; --s5l: #342211; --s6l: #102c35;
}

body.theme-night input,
body.theme-night textarea,
body.theme-night .panel,
body.theme-night .slot-card,
body.theme-night .hist-item,
body.theme-night .usage-item,
body.theme-night .url-preview-card {
  background: var(--surface);
  color: var(--ink);
}

body.theme-night input::placeholder,
body.theme-night textarea::placeholder { color: #64748b; }

body.theme-night .right,
body.theme-night .dev-credit { background: #0f172a; }

body.theme-night .group-head,
body.theme-night .group-footer {
  background: #162033;
}

body.theme-night .json-editor { background: #020617; }
body.theme-night .json-box {
  background: transparent;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: #e5edf8;
}

body.theme-night .url-panel,
body.theme-night .global-cta-panel,
body.theme-night .theme-panel,
body.theme-night .usage-panel {
  background: var(--surface);
}

body.theme-night .segmented {
  background: rgba(255,255,255,0.05);
}

.hub-home-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.hub-home-btn:hover { border-color: rgba(147,197,253,0.55); color: #bfdbfe; }
.feature-access {
  position: relative;
}
.feature-access-btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.chrome-install-btn {
  height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(96,165,250,0.38);
  border-radius: 7px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(37,99,235,0.24);
}
.chrome-install-btn:hover {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: rgba(147,197,253,0.65);
}
.chrome-install-btn svg {
  flex: 0 0 auto;
}
.feature-access-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15,23,42,0.18);
}
.feature-access-popover.show {
  display: grid;
  gap: 8px;
}
.feature-access-popover input,
.feature-access-popover button {
  width: 100%;
}
.feature-access-popover button {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.notes-popover {
  width: 280px;
}
.notes-title {
  color: var(--ink);
  font-size: 12px;
}
.notes-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.55;
}
.notes-list li + li {
  margin-top: 5px;
}
.locked-feature {
  display: none !important;
}
.theme-toggle {
  min-width: 64px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: rgba(147,197,253,0.55);
  color: #bfdbfe;
}
.pill {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 11px;
  border-radius: 20px;
}
.pill.accent { color: #4ade80; border-color: rgba(74,222,128,0.3); }
.pill.version { color: #93c5fd; border-color: rgba(147,197,253,0.35); }
.pill strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* ── SHELL ── */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  flex: 1;
  min-height: 0;
}
.tool-workspace[hidden],
.tool-hub[hidden] {
  display: none !important;
}
.tool-hub {
  flex: 1;
  overflow-y: auto;
  padding: 34px 36px 58px;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.04), transparent 36%),
    var(--bg);
}
.hub-hero {
  max-width: 1180px;
  margin: 0 auto 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.hub-kicker {
  margin-bottom: 8px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hub-hero h1,
.tool-page-head h1 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}
.hub-hero p {
  max-width: 620px;
  margin-top: 9px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.55;
}
.hub-theme-toggle {
  background: var(--surface);
  color: var(--ink2);
  border-color: var(--border);
}
.tool-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.36);
  box-shadow: 0 26px 62px rgba(15,23,42,0.13);
}
.tool-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
}
.tool-card-copy { flex: 1; }
.tool-card-copy span {
  color: var(--ink3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.tool-card-copy h2 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 25px;
  letter-spacing: 0;
}
.tool-card-copy p {
  margin-top: 8px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.55;
}
.tool-card button,
.back-btn {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.tool-card button:hover { background: #2563eb; }
.left {
  padding: 28px 36px 54px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.right {
  padding: 28px 24px 54px;
  overflow-y: auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── PANEL (right col cards) ── */
.panel {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(26, 34, 44, 0.04);
}
.panel-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.out-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.global-cta-panel {
  background: #f8fffb;
  border-color: rgba(22,163,74,0.24);
}
.theme-panel {
  background: #f8fbff;
  border-color: rgba(37,99,235,0.2);
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.03);
}
.segmented button {
  min-width: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.segmented button.on {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 6px rgba(15,23,42,0.12);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink2);
  cursor: pointer;
}
.check-row input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
}

/* ── URL LOOKUP PANEL ── */
.url-panel {
  border-color: rgba(37,99,235,0.24);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.address-lookup-panel {
  border-color: rgba(245,158,11,0.42);
  background:
    linear-gradient(180deg, rgba(255,247,237,0.96), #ffffff);
}
.beta-note {
  display: none;
  margin: 0 0 12px;
  padding: 10px 11px;
  border: 1px solid rgba(245,158,11,0.45);
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.beta-note.show {
  display: block;
  animation: betaPulse 0.45s ease;
}
@keyframes betaPulse {
  0% { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.geo-desc {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.6;
  margin-bottom: 12px;
}
.geo-search-btn {
  width: 100%;
  padding: 10px;
  background: var(--blue);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.14s;
  margin-top: 16px;
  margin-bottom: 6px;
}
.geo-search-btn:hover { background: #1d4ed8; }
.geo-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lookup-loading {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 8px;
  background: rgba(37,99,235,0.07);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.lookup-loading.show { display: flex; }
.lookup-loading span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.2);
  border-top-color: var(--blue);
  animation: lookupSpin 0.85s linear infinite;
  flex: 0 0 auto;
}
@keyframes lookupSpin {
  to { transform: rotate(360deg); }
}

/* ── VIDEO DOWNLOADER ── */
@keyframes toolFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Preview card */
.url-preview-card {
  background: #fff;
  border: 1.5px solid rgba(37,99,235,0.24);
  border-radius: var(--r2);
  padding: 14px;
  margin-top: 12px;
}
.url-preview-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-family: var(--mono);
  margin-bottom: 10px;
}
.url-preview-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.pf-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.5;
}
.pf-key {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  min-width: 56px;
  flex-shrink: 0;
}
.pf-val {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.pf-val.empty { color: var(--ink3); font-weight: 400; font-style: italic; }
.pf-val.coords { color: var(--blue); }

.url-preview-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.url-edit-toggle {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.03em;
  padding: 6px 11px;
  background: rgba(0,0,0,0.04);
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.12s;
}
.url-edit-toggle:hover { border-color: var(--ink); }
.url-add-btn {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.03em;
  padding: 6px 11px;
  background: rgba(37,99,235,0.08);
  border: 1.5px solid rgba(37,99,235,0.28);
  border-radius: 8px;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
}
.url-add-btn:hover { background: rgba(37,99,235,0.15); }
.url-save-btn {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.03em;
  padding: 6px 11px;
  background: #1a7a3c;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
}
.url-save-btn:hover { background: #145c2f; }

/* Edit override form */
.url-edit-form {
  background: rgba(0,0,0,0.03);
  border: 1.5px dashed var(--border2);
  border-radius: var(--r2);
  padding: 14px;
  margin-top: 10px;
}
.url-edit-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  font-family: var(--mono);
  margin-bottom: 10px;
}

/* ── JSON OUTPUT ── */
.json-box {
  background: #1c1a18;
  border-radius: 12px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  min-height: 140px;
}
.json-box.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  color: #555;
  font-size: 12px;
  min-height: 100px;
}
.jk  { color: #7dd3fc; }
.js  { color: #86efac; }
.jn  { color: #fbbf24; }
.jb  { color: #6b7280; }
.jnl { color: #f87171; }

/* ── COPY BUTTON ── */
.copy-sm {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans);
  padding: 5px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.12s;
}
.copy-sm:hover { border-color: var(--ink); color: var(--ink); }
.copy-sm.ok    { border-color: #16a34a; color: #16a34a; background: #edfaf3; }

/* ── HISTORY ── */
.hist-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 6px;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.11s;
}
.hist-item:hover { border-color: var(--border2); }
.hi-id {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
.hi-label { flex: 1; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-city  { font-size: 10px; font-family: var(--mono); color: var(--ink3); white-space: nowrap; }
.hi-del   { background: none; border: none; cursor: pointer; color: var(--ink3); font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 4px; transition: color 0.1s; }
.hi-del:hover { color: #dc2626; }
.empty-hist { text-align: center; padding: 20px; color: var(--ink3); font-size: 11px; font-family: var(--mono); }

.export-all-btn {
  width: 100%;
  padding: 9px;
  margin-top: 10px;
  background: transparent;
  border: 1.5px dashed var(--border2);
  border-radius: var(--r);
  color: var(--ink3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.13s;
}
.export-all-btn:hover { border-color: var(--s2); color: var(--s2); border-style: solid; }

.usage-panel { background: #fffaf1; border-color: rgba(183,121,31,0.28); }
.usage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid rgba(183,121,31,0.18);
  border-radius: 8px;
  margin-bottom: 6px;
}
.usage-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usage-meta {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 10px;
  white-space: nowrap;
}
/* ── GROUP CARD ── */
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 26px rgba(26, 34, 44, 0.045);
}
.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.group-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink3);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.group-title { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.group-logo {
  width: 74px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}
.group-meta  { font-size: 11px; font-family: var(--mono); color: var(--ink3); }

/* CLOSE GROUP BUTTON */
.group-close-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink3);
  font-size: 16px;
  line-height: 1;
  transition: all 0.12s;
  flex-shrink: 0;
}
.group-close-btn:hover { background: #fee2e2; border-color: #dc2626; color: #dc2626; }

.group-slots { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }

/* ── SLOT CARD ── */
.slot-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.15s;
}
.slot-card.open { box-shadow: 0 2px 14px rgba(0,0,0,0.06); }

/* Filled colour states */
.slot-card.f1 { border-color: var(--s1); background: var(--s1l); }
.slot-card.f2 { border-color: var(--s2); background: var(--s2l); }
.slot-card.f3 { border-color: var(--s3); background: var(--s3l); }
.slot-card.f4 { border-color: var(--s4); background: var(--s4l); }
.slot-card.f5 { border-color: var(--s5); background: var(--s5l); }
.slot-card.f6 { border-color: var(--s6); background: var(--s6l); }

.slot-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  cursor: pointer;
  user-select: none;
}
.slot-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--border);
  color: var(--ink3);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.f1 .slot-dot { background: var(--s1); color: #fff; }
.f2 .slot-dot { background: var(--s2); color: #fff; }
.f3 .slot-dot { background: var(--s3); color: #fff; }
.f4 .slot-dot { background: var(--s4); color: #fff; }
.f5 .slot-dot { background: var(--s5); color: #fff; }
.f6 .slot-dot { background: var(--s6); color: #fff; }

.slot-info   { flex: 1; min-width: 0; }
.slot-name   { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-sub    { font-size: 11px; color: var(--ink3); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }

.f1 .slot-name { color: var(--s1dk); } .f1 .slot-sub { color: var(--s1); }
.f2 .slot-name { color: var(--s2dk); } .f2 .slot-sub { color: var(--s2); }
.f3 .slot-name { color: var(--s3dk); } .f3 .slot-sub { color: var(--s3); }
.f4 .slot-name { color: var(--s4dk); } .f4 .slot-sub { color: var(--s4); }
.f5 .slot-name { color: var(--s5dk); } .f5 .slot-sub { color: var(--s5); }
.f6 .slot-name { color: var(--s6dk); } .f6 .slot-sub { color: var(--s6); }

.slot-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1.5px solid;
  font-family: var(--mono);
  flex-shrink: 0;
}
.empty-badge { color: var(--ink3); border-color: var(--border2); background: transparent; }
.f1 .slot-badge { color: var(--s1); border-color: var(--s1m); background: rgba(212,66,10,0.07); }
.f2 .slot-badge { color: var(--s2); border-color: var(--s2m); background: rgba(26,95,200,0.07); }
.f3 .slot-badge { color: var(--s3); border-color: var(--s3m); background: rgba(26,128,64,0.07); }
.f4 .slot-badge { color: var(--s4); border-color: var(--s4m); background: rgba(121,48,232,0.07); }
.f5 .slot-badge { color: var(--s5); border-color: var(--s5m); background: rgba(184,77,8,0.07); }
.f6 .slot-badge { color: var(--s6); border-color: var(--s6m); background: rgba(10,122,148,0.07); }

.slot-clr-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink3);
  font-size: 17px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  transition: color 0.1s;
  flex-shrink: 0;
}
.slot-clr-btn:hover { color: #dc2626; }
.slot-remove-btn {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: 50%;
  background: rgba(15,23,42,0.18);
}

.chevron { color: var(--ink3); font-size: 12px; transition: transform 0.2s; flex-shrink: 0; }
.slot-card.open .chevron { transform: rotate(180deg); }

/* ── SLOT FORM ── */
.slot-form {
  display: none;
  padding: 0 15px 15px;
  border-top: 1px solid var(--border);
}
.slot-card.open .slot-form { display: block; }
.slot-card[class*="f"] .slot-form { border-top-color: rgba(0,0,0,0.07); }

/* Tabs inside slot */
.tabs-mini {
  display: flex;
  gap: 3px;
  margin: 12px 0 10px;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 3px;
}
.tmb {
  flex: 1;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink3);
  transition: all 0.12s;
  letter-spacing: 0.02em;
}
.tmb.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.tc { display: none; }
.tc.on { display: block; }

/* Form fields */
.fg { margin-bottom: 9px; }
.lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
  font-family: var(--mono);
}
input, textarea, select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
  resize: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
input::placeholder, textarea::placeholder { color: #c0bdb8; }
.r2g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r3g { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }

.hint {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--ink3);
  margin-top: 4px;
  line-height: 1.5;
}
.hint.ok   { color: #16a34a; }
.hint.er   { color: #dc2626; }
.hint.load { color: var(--blue); }

.parse-btn {
  width: 100%;
  padding: 7px;
  margin: 5px 0 9px;
  background: rgba(0,0,0,0.04);
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  color: var(--ink2);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.parse-btn:hover { background: rgba(0,0,0,0.08); }

.geo-inline-btn {
  width: 100%;
  padding: 7px;
  margin-top: 4px;
  background: rgba(37,99,235,0.06);
  border: 1.5px solid rgba(37,99,235,0.3);
  border-radius: 8px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.geo-inline-btn:hover { background: rgba(37,99,235,0.12); }
.geo-inline-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* SAVE SLOT BUTTON */
.save-slot-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.14s, transform 0.1s;
  color: #fff;
}
.save-slot-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.save-slot-btn:active { transform: none; }
.sc1 { background: var(--s1); }
.sc2 { background: var(--s2); }
.sc3 { background: var(--s3); }
.sc4 { background: var(--s4); }
.sc5 { background: var(--s5); }
.sc6 { background: var(--s6); }

/* ── SLOT ADD BUTTON ── */
.add-slot-btn {
  width: 100%;
  padding: 8px;
  border: 1.5px dashed var(--border2);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.13s;
  margin-top: 2px;
}
.add-slot-btn:hover { border-color: var(--blue); color: var(--blue); border-style: solid; }

/* ── GROUP FOOTER: DOWNLOAD ── */
.group-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(to bottom, #f8fafc, #eef3f7);
}
.dl-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.14s;
}
.dl-btn:hover { background: var(--ink); color: #fff; }
.dl-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.dl-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── NEW GROUP BUTTON ── */
.new-group-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border2);
  border-radius: 8px;
  background: transparent;
  color: var(--ink3);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}
.new-group-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37,99,235,0.04);
  border-style: solid;
}

.dev-credit {
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  color: var(--ink3);
  background: #fff;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  body { height: auto; overflow: visible; }
  .shell { grid-template-columns: 1fr; }
  .left, .right { padding: 20px 16px 36px; overflow-y: visible; }
  .right { border-top: 1px solid var(--border); }
  .r2g, .r3g { grid-template-columns: 1fr; }
  .slot-trigger { align-items: flex-start; }
  .slot-badge, .hi-city, .usage-meta { display: none; }
}

/* ── STUDIO REDESIGN ── */
:root {
  --studio-bg: #0f1117;
  --studio-rail: #151922;
  --studio-panel: #1c222d;
  --studio-panel-2: #242b36;
  --studio-line: #343d4d;
  --studio-text: #eef2f7;
  --studio-muted: #98a4b5;
  --studio-blue: #2f7df6;
  --studio-cyan: #13b8d8;
  --studio-green: #22c55e;
  --studio-red: #ef4444;
  --studio-warn: #f59e0b;
}

body {
  background: var(--studio-bg);
  color: var(--studio-text);
}

.boot-screen,
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
}
.boot-screen {
  align-content: center;
  gap: 18px;
  background: #0b0e14;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.splash-screen {
  padding: 24px;
  background:
    radial-gradient(circle at 50% 44%, rgba(56,189,248,0.14), transparent 28%),
    linear-gradient(135deg, #081527 0%, #0d1b30 48%, #071120 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 30%, rgba(47,125,246,0.08));
  pointer-events: none;
}
.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-card {
  position: relative;
  z-index: 1;
  width: min(440px, 92vw);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 38px 28px;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 18px;
  background: rgba(8,15,28,0.78);
  box-shadow: 0 34px 110px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  animation: splashCardIn 0.85s cubic-bezier(.2,.8,.2,1) both;
}
.splash-photo-wrap {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  padding: 4px;
  background: #cff44a;
  box-shadow: 0 22px 60px rgba(207,244,74,0.28);
  animation: splashPhotoIn 0.9s 0.12s cubic-bezier(.2,.8,.2,1) both;
}
.splash-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid #0f172a;
}
.splash-kicker {
  color: #cff44a;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  animation: splashTextIn 0.8s 0.28s both;
}
.splash-credit {
  color: #cff44a;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  animation: splashTextIn 0.8s 0.42s both;
}
.splash-team {
  color: #9fb4cc;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: splashTextIn 0.8s 0.52s both;
}
.splash-line {
  width: min(220px, 64vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148,163,184,0.16);
  animation: splashTextIn 0.8s 0.58s both;
}
.splash-line span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #cff44a, #e4ff78, #ffffff);
  transform-origin: left;
  animation: splashLine 2.45s 0.35s ease-in-out both;
}
@keyframes splashCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashPhotoIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes splashLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.boot-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47,125,246,0.42);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(47,125,246,0.24), rgba(19,184,216,0.08));
  box-shadow: 0 0 32px rgba(47,125,246,0.22);
}
.boot-mark span {
  color: #dbeafe;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
}
.boot-copy {
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.boot-bar {
  width: min(260px, 72vw);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #1f2937;
}
.boot-bar span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--studio-blue), var(--studio-cyan));
  animation: bootMove 1.1s ease-in-out infinite alternate;
}
@keyframes bootMove {
  from { transform: translateX(-20%); }
  to { transform: translateX(135%); }
}

.timer-pill {
  min-width: 64px;
  text-align: center;
}
@keyframes healthPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.42), 0 0 14px rgba(34,197,94,0.8); }
  60% { transform: scale(1.28); box-shadow: 0 0 0 11px rgba(34,197,94,0), 0 0 22px rgba(34,197,94,0.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(34,197,94,0.08), 0 0 16px rgba(34,197,94,0.72); }
}
.pill {
  border-color: #303b4d;
  border-radius: 7px;
  background: #151c28;
  color: #a7b2c4;
}
.pill strong { color: #e5edf8; }
.pill.version { color: #93c5fd; border-color: #294c7d; }
.pill.version {
  background: linear-gradient(135deg, rgba(47,125,246,0.2), rgba(19,184,216,0.12));
  color: #dbeafe;
  border-color: rgba(147,197,253,0.42);
}
.feature-access-btn {
  background: #151c28;
  border-color: #3b4658;
  color: #cbd5e1;
}
.feature-access-btn:hover {
  border-color: #60a5fa;
  color: #bfdbfe;
}
.feature-access-popover {
  background: #151c28;
  border-color: #3b4658;
  box-shadow: 0 18px 42px rgba(0,0,0,0.35);
}
.feature-access-popover button {
  background: var(--studio-blue);
}
.notes-title {
  color: #e5edf8;
}
.notes-list {
  color: #a7b2c4;
}
.pill.accent { color: #86efac; border-color: #265c3d; }
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a7f3d0;
  border-color: rgba(34,197,94,0.36);
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(19,184,216,0.06));
  position: relative;
  overflow: hidden;
}
.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--studio-green);
  box-shadow: 0 0 12px rgba(34,197,94,0.85);
  animation: onlineBlink 5s ease-in-out infinite;
  position: relative;
}
.online-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(34,197,94,0.35);
  animation: apiPulse 5s ease-in-out infinite;
}
@keyframes onlineBlink {
  0%, 80%, 100% { opacity: 1; transform: scale(1); }
  86% { opacity: 0.35; transform: scale(0.72); }
  92% { opacity: 1; transform: scale(1.12); }
}
@keyframes apiPulse {
  0%, 78%, 100% { opacity: 0; transform: scale(0.7); }
  86% { opacity: 1; transform: scale(1.25); }
  96% { opacity: 0; transform: scale(1.8); }
}

.shell {
  grid-template-columns: minmax(0, 1fr) 473px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(47,125,246,0.06), transparent 28%),
    var(--studio-bg);
}
.left {
  padding: 18px;
  border-right: 1px solid #273244;
  background: #151a24;
}

.group-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  flex-wrap: wrap;
}
.undo-btn {
  padding: 7px 12px;
  border: 1px solid #3b4658;
  border-radius: 7px;
  background: #151c28;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.undo-btn:hover:not(:disabled) {
  border-color: #60a5fa;
  color: #bfdbfe;
}
.undo-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.right {
  padding: 18px;
  background: #121821;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.panel,
.group-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) var(--studio-panel);
  border: 1px solid rgba(92,109,137,0.5);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
  background-clip: padding-box;
}
.panel { padding: 14px; }
.panel-title,
.lbl {
  color: var(--studio-muted);
  letter-spacing: 0.08em;
}
.panel-title { font-size: 12px; }
.geo-desc,
.hint,
.slot-sub,
.empty-hist {
  color: var(--studio-muted);
}

input,
textarea,
select {
  background: #121821;
  border-color: #3b4658;
  color: var(--studio-text);
  border-radius: 7px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--studio-blue);
  box-shadow: 0 0 0 3px rgba(47,125,246,0.16);
}
input::placeholder,
textarea::placeholder { color: #64748b; }
.custom-cta-input {
  margin-top: 8px;
}

.theme-panel,
.global-cta-panel,
.url-panel,
.usage-panel,
.feedback-panel {
  background: var(--studio-panel);
  border-color: var(--studio-line);
}
.address-lookup-panel {
  background:
    linear-gradient(180deg, rgba(245,158,11,0.08), rgba(255,255,255,0)) var(--studio-panel);
  border-color: rgba(245,158,11,0.36);
}
.beta-note {
  border-color: rgba(245,158,11,0.38);
  background: rgba(120,53,15,0.34);
  color: #fde68a;
}
.segmented {
  background: #121821;
  border-color: #333d50;
}
.segmented button.on {
  background: #263248;
  color: #93c5fd;
  box-shadow: none;
}
.check-row { color: #cbd5e1; }

.feedback-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 10% 10%, rgba(244,63,94,0.16), transparent 30%),
    linear-gradient(135deg, rgba(47,125,246,0.11), transparent 42%),
    linear-gradient(180deg, #1c222d, #171d27);
}
.feedback-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.like-btn {
  min-width: 148px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(244,63,94,0.34);
  border-radius: 999px;
  background:
    linear-gradient(#151d2b, #151d2b) padding-box,
    linear-gradient(135deg, #f97316, #f43f5e, #a855f7) border-box;
  color: #e2e8f0;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s, background 0.14s;
}
.like-btn:hover {
  transform: translateY(-1px) scale(1.015);
  border-color: rgba(244,63,94,0.72);
}
.like-btn span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(244,63,94,0.1);
  font-size: 22px;
  line-height: 1;
  color: #f43f5e;
  transition: transform 0.18s;
}
.like-btn strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.like-btn em {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(244,63,94,0.16);
  color: #fecdd3;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
}
.like-btn.liked {
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(244,63,94,0.25), rgba(168,85,247,0.16)) padding-box,
    linear-gradient(135deg, #f97316, #f43f5e, #a855f7) border-box;
}
.like-btn.liked span {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f43f5e, #a855f7);
  transform: scale(1.08);
}
.feedback-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feedback-meta span {
  color: #e5edf8;
  font-size: 12px;
  font-weight: 800;
}
.feedback-meta b {
  color: var(--studio-muted);
  font-family: var(--mono);
  font-size: 10px;
}
.feedback-send {
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #2f7df6, #13b8d8);
  color: #dbeafe;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.feedback-send:hover { filter: brightness(1.08); }
.feedback-thanks {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  color: #a7f3d0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}
.feedback-thanks.show {
  max-height: 40px;
  opacity: 1;
}

.group-card {
  overflow: hidden;
  position: relative;
  border-radius: 18px;
  border-color: rgba(96,165,250,0.22);
}
.group-card::before {
  display: none;
}
.group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(15,23,42,0.2)), #202735;
  border-bottom-color: #333d50;
  border-radius: 17px 17px 0 0;
  padding: 14px 16px;
}
.group-title,
.slot-name { color: #eef2f7; }
.group-num,
.group-meta { color: var(--studio-muted); }
.group-slots {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.slot-card {
  background: linear-gradient(180deg, rgba(21,31,48,0.92), rgba(17,24,38,0.94));
  border-color: rgba(96,116,148,0.58);
  border-radius: 16px;
  overflow: hidden;
}
.slot-card.is-selected {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147,197,253,0.18), 0 18px 44px rgba(37,99,235,0.18);
}
.slot-card.f1,
.slot-card.f2,
.slot-card.f3,
.slot-card.f4,
.slot-card.f5,
.slot-card.f6 {
  background: linear-gradient(180deg, rgba(31,41,55,0.92), rgba(21,28,40,0.92));
}
.slot-card.f1 { border-color: rgba(251,113,133,0.62); }
.slot-card.f2 { border-color: rgba(96,165,250,0.62); }
.slot-card.f3 { border-color: rgba(52,211,153,0.62); }
.slot-card.f4 { border-color: rgba(167,139,250,0.62); }
.slot-card.f5 { border-color: rgba(251,191,36,0.62); }
.slot-card.f6 { border-color: rgba(45,212,191,0.62); }
.f1 .slot-name,
.f2 .slot-name,
.f3 .slot-name,
.f4 .slot-name,
.f5 .slot-name,
.f6 .slot-name {
  color: #f8fafc;
}
.f1 .slot-sub,
.f2 .slot-sub,
.f3 .slot-sub,
.f4 .slot-sub,
.f5 .slot-sub,
.f6 .slot-sub {
  color: #b8c4d6;
}
.slot-card.open {
  grid-column: 1 / -1;
  box-shadow: 0 0 0 1px rgba(47,125,246,0.16);
}
.slot-card.is-filled {
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
.slot-trigger {
  min-height: 92px;
  padding: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  cursor: default;
}
.slot-info {
  flex-basis: calc(100% - 44px);
}
.slot-badge {
  margin-left: 44px;
}
.chevron {
  margin-left: auto;
}
.slot-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(148,163,184,0.16);
}
.slot-preview-grid {
  display: grid;
  gap: 7px;
  padding-top: 12px;
}
.slot-preview-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.slot-preview-row span {
  color: #8fa0b6;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slot-preview-row b {
  min-width: 0;
  color: #dbeafe;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.readonly-value {
  display: block;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(96,116,148,0.52);
  border-radius: 9px;
  background: rgba(15,23,42,0.36);
  color: #e5edf8;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.slot-map {
  width: 100%;
  min-height: 240px;
  flex: 1;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px;
  background: #101620;
  overflow: hidden;
}
.interactive-map {
  position: relative;
  cursor: grab;
  isolation: isolate;
}
.interactive-map:active,
.interactive-map.panning {
  cursor: grabbing;
}
.map-tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 4px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 5px 15px rgba(15,23,42,0.42), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translate(-50%, -100%) rotate(-45deg);
  cursor: grab;
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}
.map-pin.dragging {
  cursor: grabbing;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.map-hand-tool {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(15,23,42,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: #1e293b;
  box-shadow: 0 4px 16px rgba(15,23,42,0.18);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}
.interactive-map:hover .map-hand-tool {
  opacity: 1;
  transform: translateY(0);
}
.interactive-map.panning .map-hand-tool {
  opacity: 1;
  transform: translateY(0) scale(0.98);
  background: #dbeafe;
  color: #1d4ed8;
}
.map-hand-tool svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.map-hand-tool span {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #e2e8f0;
  font: 800 11px/1 var(--mono);
}
.map-zoom-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 4px 16px rgba(15,23,42,0.18);
}
.map-zoom-btn {
  width: 38px;
  height: 36px;
  border: 0;
  border-bottom: 1px solid rgba(15,23,42,0.12);
  background: transparent;
  color: #1e293b;
  font: 800 24px/1 var(--sans);
  cursor: pointer;
}
.map-zoom-btn:last-child {
  border-bottom: 0;
}
.map-zoom-btn:hover {
  background: #e2e8f0;
}
.map-attribution {
  position: absolute;
  left: 8px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255,255,255,0.86);
  color: #334155;
  font: 10px/1.3 var(--sans);
}
.slot-map-empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  padding: 16px;
}
.gmap-embed-label {
  margin-left: auto;
  color: var(--ink3);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  font-size: 11px;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gmap-embed-block {
  margin-top: 14px;
}
.gmap-embed-block .lbl {
  display: flex;
  align-items: center;
}
.gmap-embed-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px;
  background: #101620;
  overflow: hidden;
}
.gmap-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gmap-embed-frame.is-visible {
  opacity: 1;
}
.gmap-embed-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  padding: 16px;
}
.gmap-embed-empty.is-hidden {
  display: none;
}
.slot-dot {
  border-radius: 7px;
  background: #242f43;
  color: #bfdbfe;
}
.slot-form {
  border-top-color: #333d50;
  padding: 0 12px 12px;
}
.tabs-mini {
  background: #101620;
  border-radius: 7px;
}
.tmb { color: var(--studio-muted); }
.tmb.on {
  background: #283349;
  color: #e5edf8;
  box-shadow: none;
}
.parse-btn,
.geo-inline-btn,
.add-slot-btn,
.copy-sm,
.export-all-btn {
  border-color: #3b4658;
  background: #151c28;
  color: #cbd5e1;
  border-radius: 7px;
}
.add-slot-btn {
  grid-column: 1 / -1;
}
.parse-btn:hover,
.geo-inline-btn:hover,
.add-slot-btn:hover,
.copy-sm:hover,
.export-all-btn:hover {
  border-color: var(--studio-blue);
  color: #bfdbfe;
  background: #1b2535;
}
.save-slot-btn,
.geo-search-btn,
.dl-btn {
  border: 0;
  border-radius: 7px;
  background: var(--studio-blue);
  color: #fff;
}
.save-slot-btn:hover,
.geo-search-btn:hover,
.dl-btn:hover {
  background: #1f6be6;
  color: #fff;
}
.dl-btn:disabled,
.geo-search-btn:disabled {
  background: #2a3342;
  color: #778397;
}
body.theme-night .lookup-loading {
  border-color: rgba(56,189,248,0.28);
  background: rgba(8,47,73,0.34);
  color: #bae6fd;
}
body.theme-night .lookup-loading span {
  border-color: rgba(186,230,253,0.22);
  border-top-color: #38bdf8;
}
.modern-loader {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
}
.modern-loader span {
  width: 6px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
  animation: modernPulse 0.72s ease-in-out infinite;
}
.modern-loader span:nth-child(2) { animation-delay: 0.12s; }
.modern-loader span:nth-child(3) { animation-delay: 0.24s; }
@keyframes modernPulse {
  0%, 100% { transform: scaleY(0.42); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}
.group-footer {
  background: #202735;
  border-top-color: #333d50;
  padding: 14px;
  border-radius: 0 0 17px 17px;
}
.footer-actions {
  display: grid;
  grid-template-columns: minmax(128px, 0.26fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

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

.campaign-field label {
  color: #cff44a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  color: #12204d;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
}

.campaign-field input:focus {
  outline: none;
  border-color: #4460de;
  box-shadow: 0 0 0 3px rgba(68,96,222,0.26);
}

.recent-history-panel {
  order: 98;
  padding: 12px;
  border-color: rgba(207,244,74,0.36);
  border-radius: 12px;
  background: #cff44a;
  box-shadow: none;
}

.recent-history-panel .panel-title {
  color: #071225 !important;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.recent-history-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.recent-history-item {
  padding: 10px 12px;
  border: 1px solid rgba(7,18,37,0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.recent-history-item div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.recent-history-item b {
  color: #4460de;
  font-size: 13px;
}

.recent-history-item span {
  color: #667191;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.recent-history-item p {
  margin: 8px 0 0;
  color: #12204d;
  font-size: 15px;
  line-height: 1.34;
}
.folder-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #cff44a;
  border-radius: 7px;
  background: #cff44a;
  color: #000000;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.folder-btn:hover {
  border-color: #dfff72;
  color: #000000;
  background: #dfff72;
}
.new-group-btn {
  margin-left: 56px;
  width: calc(100% - 56px);
  border-color: #3b4658;
  color: #cbd5e1;
  background: #151c28;
}
.json-box {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 1px solid #263248;
  border-radius: 8px;
  color: transparent;
  caret-color: #e5edf8;
  min-height: 300px;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.75;
  overflow-y: auto;
  overflow-x: hidden;
}
.json-box::placeholder { color: #64748b; }
.json-editor {
  position: relative;
  min-height: 300px;
  border-radius: 8px;
  background: #030817;
}
.json-highlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #778397;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  pointer-events: none;
}
textarea.json-box {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: #e5edf8;
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
textarea.json-box.empty {
  display: block;
  min-height: 300px;
  text-align: left;
  white-space: pre-wrap;
}
.json-key { color: #7ed8ff; }
.json-string { color: #7dffa9; }
.json-number { color: #ffc400; }
.json-literal { color: #ffc400; }
.json-bracket { color: #7f8797; }
.json-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.json-tabs button {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid #3b4658;
  border-radius: 7px;
  background: #151c28;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.json-tabs button.filled {
  color: #bfdbfe;
  border-color: rgba(96,165,250,0.42);
}
.json-tabs button.on {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37,99,235,0.26);
}
.hist-item,
.usage-item {
  background: #151c28;
  border-color: #333d50;
}
.url-preview-card,
.url-edit-form {
  background: #151c28;
  border-color: #3b4658;
}
.url-preview-title,
.pf-val.coords { color: #93c5fd; }
.pf-val { color: #e5edf8; }
.url-add-btn,
.url-save-btn,
.url-edit-toggle {
  border-radius: 7px;
}
.dev-credit {
  background: #10151f;
  border-top-color: #283244;
  color: #94a3b8;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(12px);
}
.success-modal.show { display: grid; }
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(12px);
}
.install-modal.show { display: grid; }
.install-card {
  position: relative;
  width: min(460px, 92vw);
  padding: 28px;
  border: 1px solid rgba(96,165,250,0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,41,59,0.97), rgba(15,23,42,0.97));
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
  color: #f8fafc;
  animation: splashCardIn 0.35s ease both;
}
.install-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 50%;
  background: rgba(15,23,42,0.42);
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.install-close:hover {
  color: #ffffff;
  border-color: rgba(147,197,253,0.45);
}
.install-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #bfdbfe;
  background: rgba(37,99,235,0.16);
  border: 1px solid rgba(96,165,250,0.32);
}
.install-title {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.install-copy {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.install-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
}
.install-steps b {
  color: #ffffff;
}
.install-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.install-actions button {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.install-actions button:hover {
  background: #1d4ed8;
}
.install-actions .install-secondary {
  background: rgba(148,163,184,0.14);
  color: #dbeafe;
  border: 1px solid rgba(148,163,184,0.22);
}
.install-actions .install-secondary:hover {
  background: rgba(148,163,184,0.22);
}
.success-card {
  width: min(420px, 92vw);
  padding: 28px;
  border: 1px solid rgba(96,165,250,0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,41,59,0.96), rgba(15,23,42,0.96));
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
  text-align: center;
  animation: splashCardIn 0.35s ease both;
}
.success-icon {
  font-size: 42px;
  margin-bottom: 10px;
}
.success-title {
  color: #f8fafc;
  font-size: 26px;
  font-weight: 850;
  margin-bottom: 6px;
}
.success-copy {
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.success-card button {
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

body.theme-day {
  --studio-bg: #e8ecf2;
  --studio-rail: #eef2f7;
  --studio-panel: #ffffff;
  --studio-panel-2: #f7f9fc;
  --studio-line: #c9d3e0;
  --studio-text: #172033;
  --studio-muted: #64748b;
}
body.theme-day .left,
body.theme-day .right,
body.theme-day .group-head,
body.theme-day .group-footer,
body.theme-day .dev-credit {
  background: #eef2f7;
}
body.theme-day input,
body.theme-day textarea,
body.theme-day select,
body.theme-day .slot-card,
body.theme-day .hist-item,
body.theme-day .usage-item,
body.theme-day .segmented,
body.theme-day .like-btn {
  background: #f8fafc;
  color: #172033;
}
body.theme-day .group-title,
body.theme-day .slot-name,
body.theme-day .feedback-meta span { color: #172033 !important; }
body.theme-day .feedback-panel {
  background: #ffffff;
  border-color: #c9d3e0;
}
body.theme-day .feedback-meta b {
  color: #64748b;
}
body.theme-day .slot-card.f1,
body.theme-day .slot-card.f2,
body.theme-day .slot-card.f3,
body.theme-day .slot-card.f4,
body.theme-day .slot-card.f5,
body.theme-day .slot-card.f6 {
  background: #ffffff;
}
body.theme-day .slot-card.f1 { border-color: rgba(225,88,55,0.7); }
body.theme-day .slot-card.f2 { border-color: rgba(37,99,235,0.62); }
body.theme-day .slot-card.f3 { border-color: rgba(22,163,74,0.62); }
body.theme-day .slot-card.f4 { border-color: rgba(124,58,237,0.58); }
body.theme-day .slot-card.f5 { border-color: rgba(202,138,4,0.64); }
body.theme-day .slot-card.f6 { border-color: rgba(8,145,178,0.62); }
body.theme-day .f1 .slot-name,
body.theme-day .f2 .slot-name,
body.theme-day .f3 .slot-name,
body.theme-day .f4 .slot-name,
body.theme-day .f5 .slot-name,
body.theme-day .f6 .slot-name {
  color: #172033;
}
body.theme-day .f1 .slot-sub,
body.theme-day .f2 .slot-sub,
body.theme-day .f3 .slot-sub,
body.theme-day .f4 .slot-sub,
body.theme-day .f5 .slot-sub,
body.theme-day .f6 .slot-sub {
  color: #64748b;
}
body.theme-day .slot-preview {
  border-top-color: rgba(100,116,139,0.22);
}
body.theme-day .slot-preview-row span {
  color: #64748b;
}
body.theme-day .slot-preview-row b {
  color: #172033;
}
body.theme-day .slot-map {
  border-color: #c9d3e0;
  background: #eef2f7;
}
body.theme-day .slot-map-empty {
  color: #64748b;
}
body.theme-day .gmap-embed-frame-wrap {
  border-color: #c9d3e0;
  background: #eef2f7;
}
body.theme-day .gmap-embed-empty {
  color: #64748b;
}
body.theme-day .pill { background: #ffffff; border-color: #c9d3e0; color: #64748b; }
body.theme-day .pill strong { color: #172033; }
body.theme-day .json-editor { background: #0f172a; }
body.theme-day .json-box {
  background: transparent;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: #e5edf8;
}
body.theme-day .json-tabs button {
  background: #f8fafc;
  border-color: #c9d3e0;
  color: #64748b;
}
body.theme-day .json-tabs button.filled {
  color: #2563eb;
  border-color: rgba(37,99,235,0.36);
}
body.theme-day .json-tabs button.on {
  background: #2563eb;
  color: #ffffff;
}
body.theme-day .theme-toggle {
  background: #ffffff;
  border-color: #c9d3e0;
  color: #172033;
}
body.theme-day .chrome-install-btn {
  border-color: rgba(37,99,235,0.32);
  box-shadow: 0 8px 16px rgba(37,99,235,0.18);
}
body.theme-day .undo-btn {
  background: #ffffff;
  border-color: #c9d3e0;
  color: #64748b;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .left {
    background: #151a24;
    padding: 14px;
  }
  .right { padding: 14px; }
  .group-card,
  .new-group-btn {
    margin-left: 0;
    width: 100%;
  }
  .group-card::before { display: none; }
  .group-slots {
    grid-template-columns: 1fr;
  }
  .footer-actions {
    grid-template-columns: 1fr;
  }
  .slot-card.open {
    grid-column: auto;
  }
  .feedback-top { align-items: stretch; flex-direction: column; }
  .like-btn { width: 100%; }
  .chrome-install-btn {
    flex: 1 1 140px;
    justify-content: center;
  }
  .install-card {
    padding: 24px;
  }
}

/* ── BRAND THEME OVERRIDES ── */
:root {
  --brand-blue: #388fde;
  --brand-green: #409347;
  --brand-teal: #1a9270;
  --brand-navy: #041c3b;
  --brand-white: #fefefe;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(56,143,222,0.15), transparent 28%),
    linear-gradient(135deg, #061f42 0%, #041c3b 48%, #0a2b4f 100%);
}

body.theme-day {
  background:
    radial-gradient(circle at 14% 10%, rgba(56,143,222,0.16), transparent 28%),
    linear-gradient(135deg, #fefefe 0%, #eef7ff 50%, #eefaf6 100%);
}

body.theme-night {
  --bg: #041c3b;
  --ink: #fefefe;
  --ink2: #d8e6f5;
  --ink3: #98b3cd;
  --surface: #08284f;
  --border: rgba(56,143,222,0.32);
  --border2: rgba(254,254,254,0.22);
  --blue: #388fde;
  --green: #409347;
  --gold: #1a9270;
  background:
    radial-gradient(circle at 18% 10%, rgba(56,143,222,0.18), transparent 30%),
    linear-gradient(135deg, #041c3b 0%, #062750 52%, #03152d 100%);
}

.pill,
body.theme-day .pill,
body.theme-night .pill,
.feature-access-btn,
.theme-toggle {
  border-color: rgba(56,143,222,0.36);
  background: rgba(254,254,254,0.08);
  color: #dbeafe;
}

.pill strong,
body.theme-day .pill strong,
body.theme-night .pill strong {
  color: var(--brand-white);
}

.pill.version {
  color: #d9edff;
  border-color: rgba(56,143,222,0.58);
  background: rgba(56,143,222,0.16);
}

.pill.accent {
  color: #d9fbe1;
  border-color: rgba(64,147,71,0.52);
  background: rgba(64,147,71,0.16);
}

.chrome-install-btn,
.geo-search-btn,
.feature-access-popover button,
.success-card button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: var(--brand-white);
}

button.geo-search-btn:disabled {
  background-color: rgba(56,143,222,0.16);
  background-image: linear-gradient(135deg, rgba(56,143,222,0.20), rgba(26,146,112,0.18));
  color: #9fb7cf;
}

.chrome-install-btn:hover,
.geo-search-btn:hover,
.feature-access-popover button:hover,
.success-card button:hover {
  background: linear-gradient(135deg, #2f7ec4, var(--brand-green));
}

.left {
  background:
    linear-gradient(180deg, rgba(4,28,59,0.98), rgba(6,34,69,0.98));
  border-right-color: rgba(56,143,222,0.24);
}

.right {
  background:
    linear-gradient(180deg, rgba(4,28,59,0.94), rgba(6,34,69,0.94));
}

body.theme-day .left,
body.theme-day .right {
  background: #f4f9ff;
}

.panel,
.group-card {
  border-color: rgba(56,143,222,0.34);
}

body.theme-night .panel,
body.theme-night .slot-card,
body.theme-night .hist-item,
body.theme-night .usage-item,
body.theme-night .url-preview-card {
  background: #08284f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(56,143,222,0.16);
}

.json-tabs button.on,
body.theme-day .json-tabs button.on {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
}

.pill,
body.theme-day .pill,
body.theme-night .pill,
.feature-access-btn,
.theme-toggle,
body.theme-day .theme-toggle,
body.theme-night .theme-toggle {
  background: #fefefe;
  color: var(--brand-navy);
  border-color: rgba(4,28,59,0.16);
  box-shadow: 0 4px 12px rgba(4,28,59,0.06);
}

.pill strong,
body.theme-day .pill strong,
body.theme-night .pill strong {
  color: var(--brand-navy);
}

.pill.version {
  color: var(--brand-blue);
  border-color: rgba(56,143,222,0.32);
  background: rgba(56,143,222,0.08);
}

.pill.accent {
  color: var(--brand-green);
  border-color: rgba(64,147,71,0.32);
  background: rgba(64,147,71,0.08);
}

.chrome-install-btn {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: var(--brand-white);
  border-color: rgba(56,143,222,0.34);
}

.feature-access-btn:hover,
.theme-toggle:hover {
  border-color: rgba(56,143,222,0.42);
  color: var(--brand-blue);
}

/* ── SAAS ADDRESS LOOKUP PANEL ── */
.address-lookup-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,247,237,0.98), rgba(255,255,255,0.96)) padding-box,
    linear-gradient(135deg, rgba(249,115,22,0.34), rgba(245,158,11,0.24)) border-box;
  box-shadow:
    0 18px 44px rgba(4,28,59,0.10),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.address-lookup-panel::before,
.address-lookup-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.address-lookup-panel::before {
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--address-stroke-angle, 0deg),
    rgba(249,115,22,0.08),
    rgba(249,115,22,0.95),
    rgba(245,158,11,0.90),
    rgba(251,191,36,0.72),
    rgba(249,115,22,0.08)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: addressStrokeSpin 4.8s linear infinite;
}

.address-lookup-panel::after {
  inset: -36%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,0.24), transparent 34%),
    radial-gradient(circle at 76% 72%, rgba(245,158,11,0.20), transparent 32%);
  filter: blur(26px);
  opacity: 0.85;
  animation: addressGlowDrift 5.6s ease-in-out infinite alternate;
}

.address-lookup-panel > * {
  position: relative;
  z-index: 1;
}

.address-lookup-panel .panel-title {
  margin-bottom: 14px;
  color: var(--brand-navy);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.address-lookup-panel .panel-title-icon {
  width: 22px;
  height: 22px;
  padding: 5px;
  border: 1px solid rgba(56,143,222,0.22);
  border-radius: 7px;
  background: rgba(56,143,222,0.10);
  color: var(--brand-blue);
}

.new-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(249,115,22,0.30);
  border-radius: 999px;
  background: rgba(249,115,22,0.12);
  color: #c2410c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
}


body.theme-night .address-lookup-panel textarea {
  background: rgba(4,28,59,0.82);
  border-color: rgba(56,143,222,0.34);
}

@keyframes addressStrokeSpin {
  to { --address-stroke-angle: 360deg; }
}

@property --address-stroke-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes addressGlowDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

/* ── FINAL ORANGE FEATURE POLISH ── */
body,
.left,
.right,
.panel,
.group-card,
.slot-card,
.json-editor,
input,
textarea,
select,
button,
.dev-credit {
  transition:
    background-color 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.json-tabs button {
  border-color: #3b4658;
  background: #151c28;
  color: #8b93a5;
}

.json-tabs button.filled {
  border-color: rgba(96,165,250,0.55);
  background: #12233d;
  color: #93c5fd;
}

body.theme-day .json-tabs button {
  border-color: rgba(37,99,235,0.28);
  background: #eff6ff;
  color: #3b5a82;
}

body.theme-day .json-tabs button.filled {
  border-color: rgba(37,99,235,0.5);
  background: rgba(37,99,235,0.14);
  color: #1d4ed8;
}

.json-tabs button.on,
body.theme-day .json-tabs button.on,
body.theme-night .json-tabs button.on {
  border-color: rgba(96,165,250,0.74);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37,99,235,0.28);
}

.slot-dot,
.f1 .slot-dot,
.f2 .slot-dot,
.f3 .slot-dot,
.f4 .slot-dot,
.f5 .slot-dot,
.f6 .slot-dot {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(249,115,22,0.24);
}

.slot-card.is-selected {
  border-color: rgba(249,115,22,0.72);
  box-shadow: 0 16px 36px rgba(249,115,22,0.18);
}

.add-phone-btn:disabled {
  opacity: 1;
  border-color: rgba(249,115,22,0.34);
  background: #ffffff;
  color: #c2410c;
  box-shadow: 0 8px 18px rgba(249,115,22,0.10);
}

.left,
body.theme-day .left,
body.theme-night .left {
  border-right-color: transparent !important;
}

.group-head-tools .pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148,163,184,0.32);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(8,40,79,0.82);
  color: #e8f3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(4,28,59,0.12);
}

.native-cta-choice {
  display: none !important;
}

.cta-quick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.76fr);
  gap: 12px;
  align-items: stretch;
}

.cta-quick-row input {
  min-height: 44px;
  background: #0f172a;
  color: #ffffff;
  border-color: rgba(148,163,184,0.42);
  font-size: 13px;
  font-weight: 800;
}

.cta-custom-btn {
  min-height: 44px;
  border: 1px solid rgba(15,23,42,0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.cta-custom-btn:hover,
.cta-custom-btn.active {
  border-color: rgba(249,115,22,0.48);
  background: #fff7ed;
  color: #111827;
}

.url-panel .custom-cta-input {
  margin-top: 10px;
}
.custom-cta-input.is-hidden {
  display: none !important;
}
.json-output-panel.is-hidden {
  display: none !important;
}

/* ── Download JSON button colour: #2f7df6 → #4460de ── */
.dl-btn {
  background: #4460de !important;
}
.dl-btn:hover {
  background: #3a52bd !important;
}

/* ── Address slot "01" badge: orange stroke/glow → #4460de, no glow ── */
.slot-dot,
.f1 .slot-dot,
.f2 .slot-dot,
.f3 .slot-dot,
.f4 .slot-dot,
.f5 .slot-dot,
.f6 .slot-dot {
  background: #4460de !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.slot-card.is-selected {
  border-color: #4460de !important;
  box-shadow: none !important;
}

.address-lookup-panel::before,
.address-lookup-panel::after {
  display: none;
}

.address-lookup-panel {
  border-color: rgba(249,115,22,0.34);
}

.address-lookup-panel {
  background:
    linear-gradient(180deg, rgba(240,253,244,0.98), rgba(255,255,255,0.96)) padding-box,
    linear-gradient(135deg, rgba(34,197,94,0.38), rgba(20,184,166,0.24)) border-box;
  border-color: rgba(34,197,94,0.36);
  box-shadow:
    0 18px 44px rgba(20,184,166,0.12),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.address-lookup-panel .panel-title-icon {
  border-color: rgba(34,197,94,0.24);
  background: rgba(34,197,94,0.12);
  color: #15803d;
}

.new-tag {
  margin-left: 12px;
  border-color: rgba(34,197,94,0.30);
  background: rgba(34,197,94,0.12);
  color: #15803d;
}

.json-highlight .json-string {
  color: #86efac;
}

.json-highlight .json-key {
  color: #93c5fd;
}

.json-phone-tools {
  margin: 8px 0 10px;
  display: grid;
  gap: 8px;
}

.json-more-toggle {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 8px;
  background: rgba(15,23,42,0.28);
  color: #dbeafe;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.json-more-toggle:hover,
.json-more-toggle.active {
  border-color: rgba(96,165,250,0.55);
  background: rgba(37,99,235,0.24);
  color: #ffffff;
}

.json-more-panel {
  display: grid;
  gap: 8px;
}

.json-more-panel.is-hidden,
.phone-field.is-hidden {
  display: none !important;
}

.json-field-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 8px;
  background: rgba(15,23,42,0.18);
}

.json-field-option span {
  display: block;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.json-field-option small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 10px;
}

.json-field-option b {
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.json-field-option button,
.phone-save-btn {
  min-height: 30px;
  border: 1px solid rgba(96,165,250,0.32);
  border-radius: 7px;
  background: rgba(59,130,246,0.16);
  color: #dbeafe;
  padding: 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.json-field-option button:hover,
.phone-save-btn:hover {
  border-color: rgba(249,115,22,0.5);
  background: rgba(249,115,22,0.18);
  color: #ffffff;
}

.phone-field {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 8px;
  background: rgba(15,23,42,0.16);
}

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

.phone-save-row input {
  min-height: 38px;
  margin: 0;
}

.url-panel .geo-search-btn {
  border: 1px solid rgba(15,23,42,0.16);
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 26px rgba(15,23,42,0.14);
}

.url-panel .geo-search-btn:hover {
  background: #fff7ed;
  color: #111827;
  border-color: rgba(249,115,22,0.44);
}

.url-panel .geo-search-btn:disabled {
  background: rgba(255,255,255,0.48);
  color: rgba(17,24,39,0.48);
  border-color: rgba(255,255,255,0.24);
}


body.theme-day .asset-filter {
  background: rgba(255,255,255,0.90);
  color: #075985;
  border-color: rgba(14,165,233,0.18);
}

body.theme-night .address-lookup-panel {
  background:
    linear-gradient(180deg, rgba(6,78,59,0.96), rgba(5,46,22,0.96)) padding-box,
    linear-gradient(135deg, rgba(34,197,94,0.48), rgba(20,184,166,0.34)) border-box;
}


.address-lookup-panel textarea,
body.theme-night .address-lookup-panel textarea {
  border-color: rgba(255,237,213,0.42);
  background: rgba(2,6,23,0.62);
  color: #fff7ed;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}

.address-lookup-panel textarea:focus {
  border-color: rgba(255,247,237,0.82);
  box-shadow:
    0 0 0 3px rgba(255,247,237,0.16),
    0 12px 26px rgba(0,0,0,0.18);
}

.new-tag {
  border-color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}

.address-lookup-panel .geo-search-btn {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(249,115,22,0.28);
}

.address-lookup-panel .geo-search-btn:disabled {
  background: rgba(255,247,237,0.12);
  color: rgba(255,247,237,0.54);
  border: 1px solid rgba(255,237,213,0.20);
}

.address-lookup-panel,
body.theme-night .address-lookup-panel,
body.theme-day .address-lookup-panel {
  background: #ffffff;
  border: 1px solid rgba(203,213,225,0.86);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}

.address-lookup-panel .panel-title,
body.theme-night .address-lookup-panel .panel-title,
body.theme-day .address-lookup-panel .panel-title {
  color: #111827;
}

.address-lookup-panel .panel-title-icon,
body.theme-night .address-lookup-panel .panel-title-icon,
body.theme-day .address-lookup-panel .panel-title-icon {
  border-color: rgba(148,163,184,0.24);
  background: rgba(248,250,252,0.92);
  color: #111827;
}


.address-lookup-panel textarea,
body.theme-night .address-lookup-panel textarea,
body.theme-day .address-lookup-panel textarea {
  border-color: rgba(148,163,184,0.34);
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.address-lookup-panel textarea:focus,
body.theme-night .address-lookup-panel textarea:focus,
body.theme-day .address-lookup-panel textarea:focus {
  border-color: rgba(56,143,222,0.68);
  box-shadow: 0 0 0 3px rgba(56,143,222,0.12);
}

.address-lookup-panel .new-tag,
body.theme-night .address-lookup-panel .new-tag,
body.theme-day .address-lookup-panel .new-tag {
  border-color: rgba(34,197,94,0.30);
  background: rgba(34,197,94,0.12);
  color: #15803d;
}

.address-lookup-panel .geo-search-btn,
body.theme-night .address-lookup-panel .geo-search-btn,
body.theme-day .address-lookup-panel .geo-search-btn {
  border: 1px solid rgba(15,23,42,0.16);
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 26px rgba(15,23,42,0.14);
}

.address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-night .address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-day .address-lookup-panel .geo-search-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: rgba(56,143,222,0.42);
}

.address-lookup-panel .geo-search-btn:disabled,
body.theme-night .address-lookup-panel .geo-search-btn:disabled,
body.theme-day .address-lookup-panel .geo-search-btn:disabled {
  background: rgba(255,255,255,0.48);
  color: rgba(17,24,39,0.48);
  border: 1px solid rgba(148,163,184,0.24);
  box-shadow: none;
}

.url-panel {
  position: relative;
}

.url-panel::after {
  display: none;
}

.accuracy-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #15803d;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.url-panel .panel-title,
.address-lookup-panel .panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.address-map-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.accuracy-primary {
  border-color: rgba(249,115,22,0.34);
  background: rgba(249,115,22,0.12);
  color: #c2410c;
}

.address-lookup-panel .accuracy-tag,
body.theme-night .address-lookup-panel .accuracy-tag,
body.theme-day .address-lookup-panel .accuracy-tag {
  color: #111827;
}

body.theme-night .accuracy-tag {
  border-color: rgba(187,247,208,0.46);
  background: rgba(34,197,94,0.22);
  color: #dcfce7;
}

body.theme-night .accuracy-primary {
  color: #fed7aa;
}

.dl-btn.is-ready:not(:disabled) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  animation: downloadReadyPulse 1.55s ease-in-out infinite;
}

.dl-btn.is-ready:not(:disabled)::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -40%;
  z-index: -1;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.48), transparent);
  animation: downloadReadySweep 1.9s ease-in-out infinite;
}

@keyframes downloadReadyPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes downloadReadySweep {
  0% { left: -46%; }
  58%, 100% { left: 106%; }
}

.success-card > button:last-child {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 28px rgba(249,115,22,0.28);
}

.success-card > button:last-child:hover {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  transform: translateY(-1px);
}

.success-copy {
  color: #dbeafe;
}

.success-copy::first-line {
  color: #fff7ed;
  font-weight: 900;
}

/* ── TOOL HUB + VIDEO DOWNLOADER FINAL OVERRIDES ── */

@media (prefers-reduced-motion: reduce) {
  .dl-btn.is-ready:not(:disabled),
  .dl-btn.is-ready:not(:disabled)::before {
    animation: none;
  }
}

.success-card {
  width: min(500px, 92vw);
  padding: 30px;
  background: linear-gradient(180deg, rgba(30,41,59,0.98), rgba(15,23,42,0.98));
  box-shadow: 0 30px 95px rgba(0,0,0,0.48);
}

.success-visual {
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,247,237,0.08);
  border: 1px solid rgba(255,237,213,0.16);
  box-shadow: 0 16px 34px rgba(245,158,11,0.20);
}

.success-visual img {
  width: 68px;
  height: 68px;
  display: block;
  border-radius: 18px;
}

.success-title {
  font-size: 30px;
}

.success-copy {
  margin-bottom: 18px;
}


/* Address sync from V5 Map. */
.address-lookup-panel,
body.theme-night .address-lookup-panel,
body.theme-day .address-lookup-panel {
  overflow: visible;
  background: linear-gradient(180deg, rgba(4,28,59,0.98), rgba(6,34,69,0.98));
}

.address-lookup-panel::before,
.address-lookup-panel::after {
  display: none !important;
}

.address-lookup-panel .panel-title,
body.theme-night .address-lookup-panel .panel-title,
body.theme-day .address-lookup-panel .panel-title {
  color: #e5edf8;
}

.address-lookup-panel .panel-title-icon,
body.theme-night .address-lookup-panel .panel-title-icon,
body.theme-day .address-lookup-panel .panel-title-icon {
  border-color: rgba(148,163,184,0.28);
  background: rgba(15,23,42,0.22);
  color: #bfdbfe;
}

.address-lookup-panel .new-tag,
body.theme-night .address-lookup-panel .new-tag,
body.theme-day .address-lookup-panel .new-tag {
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}


.json-tab-combo {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  overflow: hidden;
  border: 1px solid #3b4658;
  border-radius: 7px;
  background: #151c28;
}

.json-tab-main {
  text-align: center;
}

.json-tab-copy {
  width: auto;
  border-left: 0 !important;
  border-top: 1px solid rgba(148,163,184,0.26) !important;
  color: #bfdbfe !important;
  font-size: 8px !important;
  line-height: 1.15;
  white-space: normal;
  padding: 6px 5px !important;
}

.json-tab-copy:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.json-tab-copy.ok {
  color: #bbf7d0 !important;
  background: rgba(34,197,94,0.16);
}

.json-tab-combo:has(.json-tab-main.filled) {
  border-color: rgba(96,165,250,0.5);
}

.json-tab-combo:has(.json-tab-main.on) {
  border-color: rgba(96,165,250,0.78);
}

.url-panel .panel-title .panel-title-icon,
.address-lookup-panel .panel-title .panel-title-icon,
body.theme-night .url-panel .panel-title .panel-title-icon,
body.theme-night .address-lookup-panel .panel-title .panel-title-icon,
body.theme-day .url-panel .panel-title .panel-title-icon,
body.theme-day .address-lookup-panel .panel-title .panel-title-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.22));
}

.url-panel .panel-title .map-pin-icon,
body.theme-night .url-panel .panel-title .map-pin-icon,
body.theme-day .url-panel .panel-title .map-pin-icon {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

.group-card .group-head,
body.theme-night .group-card .group-head,
body.theme-day .group-card .group-head {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(56,143,222,0.22);
  box-shadow: inset 0 -1px 0 rgba(15,23,42,0.04);
}

.group-card .group-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.group-card .group-logo {
  height: 52px;
  object-fit: contain;
  display: block;
}

.group-card .partner-logo {
  width: 52px;
}

.group-card .mapjson-logo {
  width: 82px;
}

.group-card .group-logo-divider {
  width: 1px;
  height: 42px;
  flex: 0 0 1px;
  background: rgba(15,23,42,0.18);
}

.group-card .group-head-tools {
  gap: 14px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.group-card .group-meta,
body.theme-night .group-card .group-meta,
body.theme-day .group-card .group-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-3px);
}

.url-filled-meta {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.group-card .timer-pill,
body.theme-night .group-card .timer-pill,
body.theme-day .group-card .timer-pill {
  min-width: 88px;
  min-height: 38px;
  flex: 0 0 auto;
  border-color: rgba(148,163,184,0.28);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15,23,42,0.10);
  font-size: 13px;
}

.group-card .undo-btn,
body.theme-night .group-card .undo-btn,
body.theme-day .group-card .undo-btn {
  min-height: 38px;
  min-width: 72px;
  border-color: rgba(148,163,184,0.24);
  background: #f8fafc;
  color: #334155;
}

.group-card .undo-btn:disabled,
body.theme-night .group-card .undo-btn:disabled,
body.theme-day .group-card .undo-btn:disabled {
  opacity: 0.45;
}

.url-panel .panel-title,
.address-lookup-panel .panel-title,
body.theme-night .url-panel .panel-title,
body.theme-night .address-lookup-panel .panel-title,
body.theme-day .url-panel .panel-title,
body.theme-day .address-lookup-panel .panel-title {
  color: #e5edf8;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.json-tabs {
  gap: 10px;
  margin-bottom: 12px;
}

.json-tab-copy {
  min-height: 34px;
  background: rgba(15,23,42,0.18) !important;
  color: #94a3b8 !important;
  font-size: 10px !important;
  letter-spacing: 0.08em;
}

.json-tab-copy:not(:disabled):hover {
  color: #ffffff !important;
  background: rgba(37,99,235,0.24) !important;
}

.json-editor {
  margin-top: 10px;
}

/* ── CONSISTENCY FIX: left column bg matched to right panel (night theme); Address Details panel stroke/radius/shadow matched to other panels ── */
body.theme-night .left {
  background: #0f172a;
}

.address-lookup-panel,
body.theme-night .address-lookup-panel,
body.theme-day .address-lookup-panel {
  background: #08284f;
  border: 1px solid rgba(92,109,137,0.5);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Map Preview: hidden until a URL is present; Open-in-Maps CTA next to panel title ── */
.gmap-embed-block.is-hidden {
  display: none;
}

.gmap-open-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(56,143,222,0.36);
  border-radius: 999px;
  background: rgba(56,143,222,0.10);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gmap-open-cta:hover {
  background: rgba(56,143,222,0.18);
  border-color: rgba(56,143,222,0.52);
}

.gmap-open-cta.is-hidden {
  display: none;
}

/* ── PRIMARY CTA COLOR: #4460de (Extract/Search buttons, Custom URL, Open in Maps, Save, Undo/Redo) ── */
.geo-search-btn,
.url-panel .geo-search-btn,
.address-lookup-panel .geo-search-btn,
body.theme-night .address-lookup-panel .geo-search-btn,
body.theme-day .address-lookup-panel .geo-search-btn,
.gmap-open-cta,
.cta-custom-btn,
.phone-save-btn,
.undo-btn,
.group-card .undo-btn,
body.theme-night .group-card .undo-btn,
body.theme-day .group-card .undo-btn {
  background: #4460de;
  border-color: #4460de;
  color: #ffffff;
}

.geo-search-btn:hover:not(:disabled),
.url-panel .geo-search-btn:hover:not(:disabled),
.address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-night .address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-day .address-lookup-panel .geo-search-btn:hover:not(:disabled),
.gmap-open-cta:hover,
.cta-custom-btn:hover,
.cta-custom-btn.active,
.phone-save-btn:hover,
.json-field-option button:hover,
.undo-btn:hover:not(:disabled),
.group-card .undo-btn:hover:not(:disabled),
body.theme-night .group-card .undo-btn:hover:not(:disabled),
body.theme-day .group-card .undo-btn:hover:not(:disabled) {
  background: #3a52bd;
  border-color: #3a52bd;
  color: #ffffff;
}

.geo-search-btn:disabled,
.url-panel .geo-search-btn:disabled,
.address-lookup-panel .geo-search-btn:disabled,
body.theme-night .address-lookup-panel .geo-search-btn:disabled,
body.theme-day .address-lookup-panel .geo-search-btn:disabled,
.undo-btn:disabled,
.group-card .undo-btn:disabled,
body.theme-night .group-card .undo-btn:disabled,
body.theme-day .group-card .undo-btn:disabled {
  background: rgba(68,96,222,0.28);
  border-color: rgba(68,96,222,0.28);
  color: rgba(255,255,255,0.72);
  opacity: 0.6;
}

/* ── Address slot "01" badge: white stroke, no orange glow ── */
.f1 .slot-badge {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

/* ── PREVIEW: Google Maps URL card in a white theme, buttons inverted (dark) ── */
.url-panel,
body.theme-night .url-panel,
body.theme-day .url-panel {
  background: #ffffff;
  border-color: rgba(15,23,42,0.12);
  color: #0f172a;
}
.url-panel .panel-title,
body.theme-night .url-panel .panel-title,
body.theme-day .url-panel .panel-title {
  color: #0f172a;
}
.url-panel .lbl,
.url-panel label.lbl,
.url-panel .check-row span,
.url-panel .gmap-embed-block .lbl {
  color: #475569;
}
.url-panel .hint {
  color: #64748b;
}
.url-panel textarea,
.url-panel input,
.url-panel select {
  background: #f8fafc;
  border-color: rgba(15,23,42,0.14);
  color: #0f172a;
}
.url-panel textarea::placeholder,
.url-panel input::placeholder {
  color: #94a3b8;
}
.url-panel .geo-search-btn,
.url-panel .cta-custom-btn,
.url-panel .gmap-open-cta {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.url-panel .geo-search-btn:hover:not(:disabled),
.url-panel .cta-custom-btn:hover,
.url-panel .cta-custom-btn.active,
.url-panel .gmap-open-cta:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
   THEME UPDATE — unified #4460de card theme for the 3 right-side
   panels (Google Maps URL / Address Details / Latest JSON Output),
   with opposite-colour CTAs so they stay visible, and a tiny
   redesigned "Address N + Copy Map URL" tab combo.
   ══════════════════════════════════════════════════════════════════ */

.url-panel,
.address-lookup-panel,
.json-output-panel,
body.theme-night .url-panel,
body.theme-day .url-panel,
body.theme-night .address-lookup-panel,
body.theme-day .address-lookup-panel,
body.theme-night .json-output-panel,
body.theme-day .json-output-panel,
body.theme-night .panel.json-output-panel {
  background: #4460de !important;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(37,53,140,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}
.url-panel::before,
.url-panel::after,
.address-lookup-panel::before,
.address-lookup-panel::after {
  display: none;
}

/* Titles, labels, hints — light text on the blue card */
.url-panel .panel-title,
.address-lookup-panel .panel-title,
.json-output-panel .panel-title,
.json-output-panel .out-hdr .panel-title,
body.theme-night .url-panel .panel-title,
body.theme-day .url-panel .panel-title,
body.theme-night .address-lookup-panel .panel-title,
body.theme-day .address-lookup-panel .panel-title {
  color: #ffffff;
}
.url-panel .lbl,
.address-lookup-panel .lbl,
.json-output-panel .lbl,
.url-panel label.lbl,
.url-panel .check-row span,
.url-panel .gmap-embed-block .lbl {
  color: rgba(255,255,255,0.78);
}
.url-panel .hint,
.address-lookup-panel .hint,
.json-output-panel .hint {
  color: rgba(255,255,255,0.72);
}
.url-panel .geo-desc,
.address-lookup-panel .geo-desc {
  color: rgba(255,255,255,0.72);
}
.url-panel .new-tag,
.address-lookup-panel .new-tag {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

/* Panel-title icons get a soft chip so they read clearly on blue */
.url-panel .panel-title .panel-title-icon,
.address-lookup-panel .panel-title .panel-title-icon,
body.theme-night .url-panel .panel-title .panel-title-icon,
body.theme-night .address-lookup-panel .panel-title .panel-title-icon,
body.theme-day .url-panel .panel-title .panel-title-icon,
body.theme-day .address-lookup-panel .panel-title .panel-title-icon,
.address-lookup-panel .panel-title-icon {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 7px;
  padding: 3px;
  box-sizing: content-box;
  filter: none;
}

/* Inputs stay light so they're still easy to read/type in */
.url-panel textarea,
.url-panel input,
.url-panel select,
.address-lookup-panel textarea,
.address-lookup-panel input,
body.theme-night .url-panel textarea,
body.theme-day .url-panel textarea,
body.theme-night .url-panel input,
body.theme-day .url-panel input,
body.theme-night .address-lookup-panel textarea,
body.theme-day .address-lookup-panel textarea,
body.theme-night .address-lookup-panel input,
body.theme-day .address-lookup-panel input {
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(255,255,255,0.4);
  color: #12204d !important;
}
.url-panel textarea::placeholder,
.url-panel input::placeholder,
.address-lookup-panel textarea::placeholder,
body.theme-night .url-panel textarea::placeholder,
body.theme-day .url-panel textarea::placeholder {
  color: #7b88ad;
}
.url-panel textarea:focus,
.address-lookup-panel textarea:focus,
body.theme-night .url-panel textarea:focus,
body.theme-night .address-lookup-panel textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.28);
}
.cta-quick-row input,
body.theme-night .cta-quick-row input,
body.theme-day .cta-quick-row input {
  background: rgba(255,255,255,0.96) !important;
  color: #12204d !important;
  border-color: rgba(255,255,255,0.4);
}

/* ── OPPOSITE-COLOUR CTAs: white on the #4460de card so every
   action button stays clearly visible against the new theme ── */
.url-panel .geo-search-btn,
.address-lookup-panel .geo-search-btn,
body.theme-night .address-lookup-panel .geo-search-btn,
body.theme-day .address-lookup-panel .geo-search-btn,
.url-panel .cta-custom-btn,
.url-panel .gmap-open-cta,
.address-lookup-panel .phone-save-btn,
.json-output-panel .phone-save-btn,
.json-output-panel .copy-sm,
.json-output-panel .json-more-toggle,
.json-output-panel .json-field-option button {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #3450c8 !important;
  box-shadow: none !important;
}
.url-panel .geo-search-btn:hover:not(:disabled),
.address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-night .address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-day .address-lookup-panel .geo-search-btn:hover:not(:disabled),
.url-panel .cta-custom-btn:hover,
.url-panel .cta-custom-btn.active,
.url-panel .gmap-open-cta:hover,
.address-lookup-panel .phone-save-btn:hover,
.json-output-panel .phone-save-btn:hover,
.json-output-panel .copy-sm:hover,
.json-output-panel .json-more-toggle:hover,
.json-output-panel .json-more-toggle.active,
.json-output-panel .json-field-option button:hover {
  background: #e7ebff;
  border-color: #e7ebff;
  color: #2c3fa8;
}
.url-panel .geo-search-btn:disabled,
.address-lookup-panel .geo-search-btn:disabled {
  background: #b7c2f4 !important;
  border-color: #b7c2f4 !important;
  color: #45549e !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.url-panel .geo-search-btn,
.address-lookup-panel .geo-search-btn,
body.theme-night .address-lookup-panel .geo-search-btn,
body.theme-day .address-lookup-panel .geo-search-btn {
  background: #14532d !important;
  border-color: rgba(34,197,94,0.62) !important;
  color: #dcfce7 !important;
}

.url-panel .geo-search-btn:hover:not(:disabled),
.address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-night .address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-day .address-lookup-panel .geo-search-btn:hover:not(:disabled) {
  background: #166534 !important;
  border-color: #86efac !important;
  color: #f0fdf4 !important;
}

.url-panel .geo-search-btn:disabled,
.address-lookup-panel .geo-search-btn:disabled,
body.theme-night .address-lookup-panel .geo-search-btn:disabled,
body.theme-day .address-lookup-panel .geo-search-btn:disabled {
  background: rgba(20,83,45,0.42) !important;
  border-color: rgba(34,197,94,0.28) !important;
  color: rgba(220,252,231,0.58) !important;
}
.json-output-panel .copy-sm.ok {
  background: #ffffff;
  border-color: #16a34a;
  color: #16a34a;
}

/* ── Tiny, unique "Address N + Copy Map URL" tab combo — split 50/50 ── */
.json-output-panel .json-tab-combo {
  display: flex;
  align-items: stretch;
  grid-template-columns: none;
  grid-template-rows: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.json-output-panel .json-tab-main {
  flex: 1 1 50%;
  min-width: 0;
  padding: 7px 4px;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.24) !important;
  border-radius: 0;
  background: transparent !important;
  color: rgba(255,255,255,0.82);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.json-output-panel .json-tab-main.filled {
  background: #ffffff !important;
  color: #3450c8;
}
.json-output-panel .json-tab-main.on {
  background: #13233e !important;
  color: #ffffff;
  box-shadow: none;
}
.json-output-panel .json-tab-main.filled:not(.on) {
  background: #ffffff !important;
  color: #3450c8;
}
.json-output-panel .json-tab-copy {
  flex: 1 1 50%;
  width: auto !important;
  height: auto;
  margin: 0;
  padding: 7px 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 0 !important;
}
.json-output-panel .json-tab-copy svg {
  width: 11px;
  height: 11px;
}
.json-output-panel .json-tab-copy:not(:disabled):hover {
  background: rgba(255,255,255,0.26) !important;
  color: #ffffff !important;
}
.json-output-panel .json-tab-copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.json-output-panel .json-tab-copy.ok {
  background: #16a34a !important;
  color: #ffffff !important;
}
.json-output-panel .json-tab-combo:has(.json-tab-main.filled) {
  border-color: #ffffff;
  background: rgba(255,255,255,0.14);
}
.json-output-panel .json-tab-combo:has(.json-tab-main.on) {
  border-color: #ffffff;
  background: rgba(255,255,255,0.14);
}
.json-output-panel .json-tabs {
  gap: 8px;
}

.url-panel .geo-search-btn,
.address-lookup-panel .geo-search-btn,
body.theme-night .address-lookup-panel .geo-search-btn,
body.theme-day .address-lookup-panel .geo-search-btn {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
}

.url-panel .geo-search-btn:hover:not(:disabled),
.address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-night .address-lookup-panel .geo-search-btn:hover:not(:disabled),
body.theme-day .address-lookup-panel .geo-search-btn:hover:not(:disabled) {
  background: #dfff72 !important;
  border-color: #dfff72 !important;
  color: #000000 !important;
}

.url-panel .geo-search-btn:disabled,
.address-lookup-panel .geo-search-btn:disabled,
body.theme-night .address-lookup-panel .geo-search-btn:disabled,
body.theme-day .address-lookup-panel .geo-search-btn:disabled {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.json-output-panel .json-tab-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.json-tab-pin {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.86;
}

.json-output-panel .json-tab-main span {
  line-height: 1;
}

.json-output-panel .json-tab-main:not(.on) {
  background: #ffffff !important;
  color: #000000 !important;
}

.json-output-panel .json-tab-main.on,
.json-output-panel .json-tab-main.filled.on {
  background: #cff44a !important;
  color: #000000 !important;
}

.json-output-panel .json-tab-main.on .json-tab-pin {
  opacity: 1;
}

.json-output-panel .json-tab-main.filled:not(.on) {
  background: #ffffff !important;
  color: #000000 !important;
}

.json-output-panel .json-tab-combo:has(.json-tab-main.on) .json-tab-copy {
  color: #ffffff !important;
}

.json-output-panel .json-tab-copy,
.json-output-panel .json-tab-copy.filled,
.json-output-panel .json-tab-copy:disabled,
.json-output-panel .json-tab-copy:not(:disabled):hover,
.json-output-panel .json-tab-copy.ok,
.json-output-panel .json-tab-combo:has(.json-tab-main.on) .json-tab-copy {
  color: #ffffff !important;
}

.json-output-panel .json-tab-copy svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor;
}

.undo-btn,
.group-card .undo-btn,
body.theme-night .group-card .undo-btn,
body.theme-day .group-card .undo-btn {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.undo-btn:hover:not(:disabled),
.group-card .undo-btn:hover:not(:disabled),
body.theme-night .group-card .undo-btn:hover:not(:disabled),
body.theme-day .group-card .undo-btn:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #f8fafc !important;
  color: #000000 !important;
}

.undo-btn:disabled,
.group-card .undo-btn:disabled,
body.theme-night .group-card .undo-btn:disabled,
body.theme-day .group-card .undo-btn:disabled {
  background: rgba(255,255,255,0.52) !important;
  border-color: rgba(255,255,255,0.52) !important;
  color: rgba(0,0,0,0.48) !important;
}

.group-card .timer-pill,
body.theme-night .group-card .timer-pill,
body.theme-day .group-card .timer-pill {
  background: #4460de !important;
  border-color: #4460de !important;
  color: #ffffff !important;
}

.header-play-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  border: 2px solid #4460de;
  border-radius: 8px;
  background: #cff44a;
  color: #000000;
  cursor: pointer;
}

.header-play-btn span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.header-play-btn:hover {
  background: #dfff72;
}

.header-play-btn.is-active {
  background: #ffffff;
  color: #4460de;
}

.header-map-cta,
body.theme-night .header-map-cta,
body.theme-day .header-map-cta {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

.header-map-cta img {
  width: 18px;
  height: 18px;
}

.group-head-tools {
  gap: 12px;
}

.dl-btn,
.dl-btn.is-ready:not(:disabled) {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
}

.dl-btn:hover:not(:disabled),
.dl-btn.is-ready:not(:disabled):hover {
  background: #dfff72 !important;
  border-color: #dfff72 !important;
  color: #000000 !important;
}

.dl-btn:disabled {
  background: rgba(207,244,74,0.38) !important;
  border-color: rgba(207,244,74,0.3) !important;
  color: rgba(0,0,0,0.5) !important;
}

.dl-btn.is-hidden {
  display: none !important;
}

.slot-card,
.slot-card.f1,
.slot-card.f2,
.slot-card.f3,
.slot-card.f4,
.slot-card.f5,
.slot-card.f6 {
  position: relative;
  border-color: #ffffff !important;
}

.slot-card.is-selected,
.slot-card.f1.is-selected,
.slot-card.f2.is-selected,
.slot-card.f3.is-selected,
.slot-card.f4.is-selected,
.slot-card.f5.is-selected,
.slot-card.f6.is-selected {
  border-color: #cff44a !important;
  box-shadow: none !important;
}

.slot-card .slot-trigger {
  position: relative;
  padding: 18px 54px 14px 16px;
}

.slot-card .slot-info {
  flex-basis: calc(100% - 44px);
  padding-right: 0;
}

.slot-card .slot-badge {
  order: 3;
  margin: 8px 0 0 44px !important;
}

.slot-card .slot-clr-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 20px;
}

.slot-card .slot-clr-btn:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #dc2626;
}

.slot-card .slot-badge:not(.empty-badge) {
  border-color: rgba(255,255,255,0.76) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #cff44a !important;
}

.slot-card.is-filled,
.slot-card.f1.is-filled,
.slot-card.f2.is-filled,
.slot-card.f3.is-filled,
.slot-card.f4.is-filled,
.slot-card.f5.is-filled,
.slot-card.f6.is-filled {
  background: #cff44a !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.slot-card.is-filled.is-selected,
.slot-card.f1.is-filled.is-selected,
.slot-card.f2.is-filled.is-selected,
.slot-card.f3.is-filled.is-selected,
.slot-card.f4.is-filled.is-selected,
.slot-card.f5.is-filled.is-selected,
.slot-card.f6.is-filled.is-selected {
  border-color: #cff44a !important;
}

.slot-card.is-filled .slot-trigger {
  border-bottom-color: rgba(0,0,0,0.16) !important;
}

.slot-card.is-filled .slot-dot,
.slot-card.f1.is-filled .slot-dot,
.slot-card.f2.is-filled .slot-dot,
.slot-card.f3.is-filled .slot-dot,
.slot-card.f4.is-filled .slot-dot,
.slot-card.f5.is-filled .slot-dot,
.slot-card.f6.is-filled .slot-dot {
  background: #000000 !important;
  color: #cff44a !important;
}

.slot-card.is-filled .slot-name,
.slot-card.is-filled .slot-sub,
.slot-card.f1.is-filled .slot-name,
.slot-card.f1.is-filled .slot-sub,
.slot-card.f2.is-filled .slot-name,
.slot-card.f2.is-filled .slot-sub,
.slot-card.f3.is-filled .slot-name,
.slot-card.f3.is-filled .slot-sub,
.slot-card.f4.is-filled .slot-name,
.slot-card.f4.is-filled .slot-sub,
.slot-card.f5.is-filled .slot-name,
.slot-card.f5.is-filled .slot-sub,
.slot-card.f6.is-filled .slot-name,
.slot-card.f6.is-filled .slot-sub {
  color: #000000 !important;
}

.slot-card.is-filled .slot-preview {
  border-top-color: rgba(0,0,0,0.16) !important;
}

.slot-card.is-filled .slot-preview-row span {
  color: rgba(0,0,0,0.66) !important;
}

.slot-card.is-filled .readonly-value {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(0,0,0,0.18) !important;
  color: #000000 !important;
}

.slot-card.is-filled .slot-clr-btn {
  border-color: rgba(0,0,0,0.32);
  background: rgba(0,0,0,0.08);
  color: #000000;
}

.slot-card.is-filled .slot-clr-btn:hover {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.slot-card.is-filled .slot-trigger {
  min-height: 0 !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 20px 58px 18px 22px !important;
}

.slot-card.is-filled .slot-info {
  flex: 1 1 auto !important;
  flex-basis: auto !important;
}

.slot-card.is-filled .slot-name {
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

.slot-card.is-filled .slot-sub {
  margin-top: 7px !important;
  color: #101820 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

.slot-card.is-filled .slot-preview {
  padding-top: 18px !important;
}

.slot-card.is-filled .slot-preview-grid {
  padding-top: 0 !important;
  gap: 12px !important;
}

.slot-card.is-filled .slot-preview-row span {
  color: #1f2937 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 0 currentColor;
}

.slot-card.is-filled .readonly-value {
  color: #020617 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.slot-card.is-filled .slot-json-editor {
  position: relative;
  min-height: 295px;
  border: 1px solid rgba(0,0,0,0.34);
  border-radius: 8px;
  background: #030817;
  overflow: hidden;
}

.slot-card.is-filled .slot-json-highlight,
.slot-card.is-filled .slot-json-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.slot-card.is-filled .slot-json-highlight {
  z-index: 1;
  color: #778397;
  overflow: hidden;
  pointer-events: none;
}

.slot-card.is-filled .slot-json-box {
  z-index: 2;
  display: block;
  min-height: 295px;
  background: transparent;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: #e5edf8;
  resize: vertical;
  overflow: auto;
}

.slot-card.is-filled .slot-json-box:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(68,96,222,0.72);
}

.slot-card.is-filled .slot-json-box {
  -ms-overflow-style: none;
  scrollbar-width: none;
  resize: none !important;
}

.slot-card.is-filled .slot-json-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.slot-card .slot-dot,
.slot-card.f1 .slot-dot,
.slot-card.f2 .slot-dot,
.slot-card.f3 .slot-dot,
.slot-card.f4 .slot-dot,
.slot-card.f5 .slot-dot,
.slot-card.f6 .slot-dot {
  background: #cff44a !important;
  color: #000000 !important;
}

.slot-card.is-filled .slot-json-hint {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(3,8,23,0.86);
  color: #e5edf8 !important;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}

.slot-card.is-filled .slot-json-hint:empty {
  display: none;
}

.url-panel .cta-custom-btn,
.url-panel .cta-custom-btn.active {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
}

.url-panel .cta-custom-btn:hover {
  background: #dfff72 !important;
  border-color: #dfff72 !important;
  color: #000000 !important;
}

.url-panel .gmap-open-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px !important;
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: none !important;
}

.url-panel .gmap-open-cta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.url-panel .gmap-open-cta:hover {
  background: #dfff72 !important;
  border-color: #dfff72 !important;
  color: #000000 !important;
}

.url-panel .gmap-open-cta.is-disabled {
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.empty-workspace-placeholder {
  display: none;
  min-height: clamp(360px, 48vh, 620px);
  place-items: center;
  padding: 34px 18px;
}

.empty-workspace-placeholder img {
  width: min(360px, 54vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 46px rgba(0,0,0,0.18));
}

.tutorial-panel {
  margin-top: 18px;
  background: #4460de !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 16px 40px rgba(37,53,140,0.28), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.tutorial-panel.is-hidden {
  display: none !important;
}

.tutorial-panel.is-focused {
  outline: 2px solid #cff44a;
  outline-offset: 3px;
}

.tutorial-panel .panel-title {
  color: #ffffff !important;
}

.tutorial-topic {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
}

.tutorial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tutorial-item {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: #ffffff;
}

.tutorial-topic span {
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.tutorial-topic b {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 7px;
  background: #4460de;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tutorial-topic:hover {
  background: #f1f5ff;
}

.tutorial-video {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #020617;
  aspect-ratio: 16 / 9;
  max-width: none;
}

.tutorial-video.is-hidden {
  display: none;
}

.tutorial-video video {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  display: block;
  object-fit: cover;
}

@media (max-width: 980px) {
  .tutorial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tutorial-list {
    grid-template-columns: 1fr;
  }
}

.left {
  scrollbar-gutter: stable;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.left::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.json-output-panel .json-phone-tools {
  margin: 12px 0 0;
  gap: 10px;
}

.json-output-panel .json-more-panel {
  gap: 10px;
}

.json-output-panel .json-field-option {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.json-output-panel .json-field-option > b {
  display: none;
}

.json-output-panel .json-field-option > div:first-child {
  min-width: 0;
}

.json-output-panel .json-field-option span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.json-output-panel .json-field-option small {
  margin-top: 5px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  line-height: 1.25;
}

.json-output-panel .json-field-actions {
  display: grid;
  grid-template-columns: repeat(2, 86px);
  gap: 8px;
  align-items: center;
}

.json-output-panel .json-field-option button {
  width: 86px;
  min-height: 36px;
  height: 36px;
  padding: 0 14px !important;
  border-radius: 8px;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #3450c8 !important;
  font-size: 12px;
  font-weight: 950;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: center;
  opacity: 1 !important;
}

.json-output-panel .json-field-option button:hover {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
}

.json-output-panel .json-field-option.is-active {
  border-color: rgba(207,244,74,0.72);
  background: rgba(207,244,74,0.12);
}

@media (max-width: 760px) {
  .json-output-panel .json-field-option {
    grid-template-columns: 1fr;
  }

  .json-output-panel .json-field-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .json-output-panel .json-field-option button {
    width: 100%;
  }
}

/* ── FINAL RESPONSIVE PASS ─────────────────────────────────── */
@media (max-width: 980px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .shell {
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    overflow: visible;
  }

  .left,
  .right {
    width: 100%;
    min-width: 0;
    padding: 14px !important;
    overflow: visible;
  }

  .left {
    display: contents;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .right {
    order: 1;
    display: contents;
  }

  .url-panel {
    order: 2;
  }

  .address-lookup-panel {
    order: 3;
  }

  .json-output-panel {
    order: 5;
  }

  .usage-panel {
    order: 99;
  }

  #groups-container {
    display: contents;
  }

  .tutorial-panel {
    order: 6;
  }

  .group-card {
    display: contents;
  }

  .group-head {
    order: 1;
    position: sticky !important;
    top: 0;
    z-index: 80;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    border-radius: 0 !important;
  }

  .group-head .group-meta {
    display: none !important;
  }

  .group-slots {
    order: 4;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
  }

  .group-footer {
    order: 7;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
  }

  .group-slots {
    grid-template-columns: 1fr !important;
  }

  .footer-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-actions .folder-btn {
    grid-column: 1 / -1;
  }

  .footer-actions .undo-btn {
    width: 100%;
  }

  .footer-actions .dl-btn {
    grid-column: 1 / -1;
  }

  .url-panel,
  .address-lookup-panel,
  .json-output-panel,
  .tutorial-panel {
    width: 100%;
    max-width: none;
    margin: 0 14px 14px;
    width: calc(100% - 28px);
  }

  .left {
    padding-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .tool-hub {
    padding: 18px 14px 32px;
  }

  .hub-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .group-head {
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .group-logo-row {
    min-width: 0;
  }

  .group-card .group-logo {
    height: 42px;
    max-width: 88px;
    object-fit: contain;
  }

  .group-head-tools {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .group-meta {
    width: 100%;
    font-size: 12px;
  }

  .timer-pill {
    min-height: 38px;
    padding: 0 14px;
  }

  .header-play-btn {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .slot-card .slot-trigger,
  .slot-card.is-filled .slot-trigger {
    padding: 14px 48px 14px 14px !important;
    gap: 10px !important;
  }

  .slot-card.is-filled .slot-name {
    font-size: 16px !important;
  }

  .slot-card.is-filled .slot-sub {
    font-size: 12px !important;
  }

  .slot-card.is-filled .slot-preview {
    padding: 12px !important;
  }

  .slot-card.is-filled .slot-json-editor,
  .slot-card.is-filled .slot-json-box {
    min-height: 245px;
  }

  .slot-card.is-filled .slot-json-highlight,
  .slot-card.is-filled .slot-json-box {
    padding: 13px;
    font-size: 12px;
    line-height: 1.65;
  }

  .slot-map,
  .gmap-embed-frame-wrap {
    min-height: 220px;
  }

  .panel {
    border-radius: 14px;
  }

  .panel-title {
    gap: 10px;
    font-size: 18px !important;
    line-height: 1.2;
  }

  .url-panel .panel-title,
  .address-lookup-panel .panel-title {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .url-panel .gmap-open-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .cta-quick-row,
  .phone-save-row {
    grid-template-columns: 1fr !important;
  }

  .json-tabs {
    grid-template-columns: 1fr !important;
  }

  .json-tab-combo {
    min-height: 54px;
  }

  .tutorial-list {
    grid-template-columns: 1fr !important;
  }

  button,
  input,
  textarea,
  select {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .left,
  .right {
    padding: 10px !important;
  }

  .url-panel,
  .address-lookup-panel,
  .json-output-panel,
  .tutorial-panel,
  .group-head,
  .group-slots,
  .group-footer {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
  }

  .group-head {
    flex-direction: column;
  }

  .panel-title {
    font-size: 16px !important;
  }

  .slot-card.is-filled .slot-json-editor,
  .slot-card.is-filled .slot-json-box {
    min-height: 220px;
  }
}

/* Compact Latest JSON Output: the editable JSON now lives on the left card,
   so this panel should behave like a small control strip, not a large block. */
.json-output-panel,
body.theme-night .json-output-panel,
body.theme-day .json-output-panel,
body.theme-night .panel.json-output-panel {
  padding: 14px !important;
  border-radius: 12px !important;
}

.json-output-panel .out-hdr {
  margin-bottom: 10px !important;
}

.json-output-panel .panel-title,
.json-output-panel .out-hdr .panel-title {
  font-size: 17px !important;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.json-output-panel .json-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
}

.json-output-panel .json-tab-combo {
  min-height: 46px;
  border-radius: 8px;
}

.json-output-panel .json-tab-main,
.json-output-panel .json-tab-copy {
  padding: 6px 4px !important;
}

.json-output-panel .json-tab-main {
  font-size: 13px !important;
}

.json-output-panel .json-tab-pin {
  width: 14px;
  height: 14px;
}

.json-output-panel .optional-phone,
.json-output-panel .json-phone-tools {
  margin-top: 0 !important;
}

.json-output-panel .json-more-toggle {
  min-height: 46px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1.1 !important;
  text-align: center;
}

.json-output-panel .json-more-panel {
  margin-top: 10px !important;
  gap: 8px !important;
}

@media (max-width: 640px) {
  .json-output-panel {
    padding: 12px !important;
  }

  .json-output-panel .json-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .json-output-panel .json-tab-combo {
    min-height: 42px;
  }

  .json-output-panel .panel-title,
  .json-output-panel .out-hdr .panel-title {
    font-size: 15px !important;
  }
}

/* Collapsible panels for secondary inputs/output. */
.dropdown-panel,
body.theme-night .dropdown-panel,
body.theme-day .dropdown-panel,
body.theme-night .panel.dropdown-panel {
  padding: 0 !important;
  overflow: hidden;
}

.dropdown-panel > summary.dropdown-summary {
  min-height: 62px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  margin: 0 !important;
}

.dropdown-panel > summary.dropdown-summary::-webkit-details-marker {
  display: none;
}

.dropdown-panel .dropdown-summary .panel-title {
  margin: 0 !important;
}

.dropdown-panel .dropdown-content {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.dropdown-panel:not([open]) .dropdown-content {
  display: none;
}

.dropdown-panel .dropdown-chevron {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #caff2f;
  color: #071225;
  transition: transform 0.22s ease, background 0.18s ease;
  flex: 0 0 auto;
}

.dropdown-panel .dropdown-chevron::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  border-radius: 2px;
}

.dropdown-panel[open] .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-panel.json-output-panel .out-hdr {
  margin-bottom: 0 !important;
}

.dropdown-panel.json-output-panel[open] .out-hdr {
  margin-bottom: 0 !important;
}

.dropdown-panel.json-output-panel .json-tabs {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .dropdown-panel > summary.dropdown-summary {
    min-height: 54px;
    padding: 14px 16px;
  }

  .dropdown-panel .dropdown-content {
    padding: 14px 16px 16px;
  }
}

.group-head .header-map-cta,
body.theme-night .group-head .header-map-cta,
body.theme-day .group-head .header-map-cta {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px !important;
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none !important;
}

.group-head .header-map-cta img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.group-head .header-map-cta:hover {
  background: #dfff72 !important;
  border-color: #dfff72 !important;
  color: #000000 !important;
}

.group-head .header-undo-btn,
body.theme-night .group-head .header-undo-btn,
body.theme-day .group-head .header-undo-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px !important;
  background: #4460de !important;
  border-color: #4460de !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.group-head .header-undo-btn:hover:not(:disabled) {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
}

.group-head .header-undo-btn:hover {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.group-head .header-undo-btn:active,
.group-head .header-undo-btn:focus-visible {
  background: #cff44a !important;
  border-color: #cff44a !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.group-head .header-undo-btn:disabled {
  opacity: 0.42 !important;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .group-head .header-map-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0;
  }

  .group-head .header-undo-btn {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  .group-head .header-map-cta img {
    width: 20px;
    height: 20px;
  }
}

/* Dropdown scroll/clip fix. Keep opened secondary cards fully usable. */
.dropdown-panel,
body.theme-night .dropdown-panel,
body.theme-day .dropdown-panel,
body.theme-night .panel.dropdown-panel,
.address-lookup-panel.dropdown-panel,
.json-output-panel.dropdown-panel {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.dropdown-panel[open] .dropdown-content {
  display: block !important;
  overflow: visible !important;
}

.address-lookup-panel.dropdown-panel[open] .geo-search-btn,
.json-output-panel.dropdown-panel[open] .json-more-toggle,
.json-output-panel.dropdown-panel[open] .json-field-option button {
  display: inline-flex !important;
}

@media (min-width: 981px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  .shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .right {
    display: flex !important;
    height: 100%;
    min-height: 0;
    max-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 980px) {
  body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

/* Keep campaign input visually aligned with the Google Maps URL field. */
.campaign-field input,
body.theme-night .campaign-field input,
body.theme-day .campaign-field input {
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #12204d !important;
}

.campaign-field input::placeholder,
body.theme-night .campaign-field input::placeholder,
body.theme-day .campaign-field input::placeholder {
  color: #7b88ad !important;
}

.campaign-field input:focus,
body.theme-night .campaign-field input:focus,
body.theme-day .campaign-field input:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.28) !important;
}

/* Final Recent History skin: overrides generic panel/theme rules. */
.recent-history-panel,
body.theme-night .recent-history-panel,
body.theme-day .recent-history-panel,
body.theme-night .panel.recent-history-panel,
body.theme-day .panel.recent-history-panel {
  background: #cff44a !important;
  border-color: rgba(207,244,74,0.36) !important;
  border-radius: 12px !important;
}

.recent-history-panel .panel-title,
body.theme-night .recent-history-panel .panel-title,
body.theme-day .recent-history-panel .panel-title {
  color: #071225 !important;
}

.recent-history-panel .recent-history-item,
body.theme-night .recent-history-panel .recent-history-item,
body.theme-day .recent-history-panel .recent-history-item {
  background: #ffffff !important;
  border-color: rgba(7,18,37,0.24) !important;
}
