:root {
  color-scheme: dark;
  --bg: #121018;
  --surface: #1a1520;
  --surface-soft: #252030;
  --ink: #f5f5f5;
  --muted: #a0a0a0;
  --line: rgba(139, 92, 246, 0.2);
  --teal: #8B5CF6;
  --teal-dark: #A78BFA;
  --blue: #7C3AED;
  --indigo: #8B5CF6;
  --violet: #A78BFA;
  --orange: #ea7a1f;
  --red: #dc2626;
  --green: #16a34a;
  --sidebar: #121018;
  --sidebar-soft: #1a1520;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.geo-body {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 280px;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef2ff;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease;
}

.sidebar-header,
.sidebar-footer {
  padding: 20px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0f172a;
  background: linear-gradient(135deg, #5eead4, #fbbf24);
  font-weight: 900;
}

.sidebar-brand-text {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.sidebar-close,
.sidebar-toggle-mobile {
  border: 0;
  background: transparent;
}

.sidebar-close {
  display: none;
  color: #fff;
  font-size: 28px;
}

.sidebar-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 14px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link,
.sidebar-dropdown-item,
.sidebar-account-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sidebar-link:hover,
.sidebar-dropdown-item:hover,
.sidebar-account-link:hover,
.sidebar-link.active,
.sidebar-dropdown-item.active {
  color: #fff;
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(45, 212, 191, 0.18);
}

.sidebar-icon {
  width: 22px;
  color: #5eead4;
  text-align: center;
}

.sidebar-caret {
  margin-left: auto;
}

.sidebar-dropdown-menu {
  display: none;
  padding: 4px 0 4px 32px;
}

.sidebar-dropdown-menu.show {
  display: grid;
  gap: 4px;
}

.sidebar-dropdown-item {
  min-height: 36px;
  font-size: 14px;
}

.sidebar-support-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-support-email {
  color: #94a3b8;
  font-size: 13px;
}

.sidebar-toggle-mobile {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--sidebar);
  box-shadow: var(--shadow);
}

.sidebar-toggle-mobile span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.geo-shell {
  min-height: 100vh;
  margin-left: 280px;
  padding: 28px;
  min-width: 0;
}

.geo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.geo-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.geo-eyebrow,
.panel-kicker {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geo-topbar h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
}

.status-pill,
.mode-chip,
.signal-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #0f766e;
  background: #dff7f2;
  border: 1px solid #b9ece3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.tone-warning,
.mode-chip.tone-warning {
  color: #b45309;
  background: #fff4d8;
  border-color: #f7d38a;
}

.geo-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.query-panel,
.result-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.query-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

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

.field span,
.platform-title span {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.12);
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.platform-block {
  display: grid;
  gap: 10px;
}

.platform-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost-button,
.secondary-button,
.primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.ghost-button {
  min-height: 30px;
  padding: 5px 10px;
  color: var(--teal-dark);
  background: #e8faf7;
  border-color: #b9ece3;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  padding: 12px 16px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.secondary-button {
  color: #1f2937;
  background: #fff;
  border-color: #cbd5e1;
  padding: 9px 12px;
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.history-panel {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.history-waterfall {
  column-count: 2;
  column-gap: 10px;
}

.history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.history-card {
  width: 100%;
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 10px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.history-card:hover,
.history-card.active {
  border-color: #67d9ca;
  box-shadow: 0 10px 24px rgba(15, 159, 143, 0.11);
  transform: translateY(-2px);
}

.history-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.history-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.history-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.history-score {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 13px;
  font-weight: 900;
}

.history-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.history-keywords span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 7px;
  color: #0f766e;
  background: #e8faf7;
  font-size: 11px;
  font-weight: 800;
}

.history-meta {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

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

.platform-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.platform-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.crawl-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.platform-check small {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
}

.result-panel {
  min-height: 640px;
  padding: 20px;
}

.result-empty {
  min-height: 598px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  border: 1px dashed #bfd5dd;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 159, 143, 0.06), rgba(234, 122, 31, 0.06));
}

.empty-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  font-weight: 900;
  font-size: 24px;
}

.result-empty h2,
.result-empty p {
  margin: 0;
}

.result-empty p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}

.result-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-tile,
.insight-tile {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.metric-tile span,
.insight-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-tile strong,
.insight-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.metric-tile small,
.insight-tile small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tabs,
.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-button {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  color: #334155;
  background: #fff;
  font-weight: 800;
}

.tab-button.active {
  color: #fff;
  border-color: transparent;
  background: #1f2937;
}

.tab-panel {
  display: none;
  min-width: 0;
}

.tab-panel.active {
  display: block;
}

.score-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef7f5);
}

.score-ring {
  --score: 0;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), #e2e8f0 0);
}

.score-ring div {
  display: grid;
  justify-items: center;
}

.score-ring strong {
  font-size: 44px;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-weight: 800;
}

.score-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.score-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.recommendation-strip {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.rec-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid #d7ebe7;
  border-radius: 8px;
  background: #f5fbf9;
}

.rec-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.rec-item strong {
  display: block;
  margin-bottom: 4px;
}

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

.platform-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.platform-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.platform-card h3 {
  margin: 0;
  font-size: 16px;
}

.platform-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.evidence-link {
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}

.evidence-link:hover {
  text-decoration: underline;
}

.platform-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.platform-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.platform-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}

.data-table td {
  color: #475569;
  font-size: 14px;
}

.tone-positive {
  color: var(--green);
}

.tone-warning {
  color: var(--orange);
}

.tone-risk {
  color: var(--red);
}

.report-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.geo-report {
  color: #1e293b;
  background: #fff;
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
}

.report-hero {
  padding: 44px 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(20, 184, 166, 0.06), rgba(255, 255, 255, 0));
}

.report-hero h1 {
  margin: 0 0 10px;
  color: #4f46e5;
  font-size: clamp(30px, 5vw, 48px);
}

.report-hero p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.report-section {
  padding: 28px;
  border-top: 1px solid #e2e8f0;
  min-width: 0;
}

.report-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 20px;
}

.report-section h2::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f46e5, #14b8a6);
}

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

.report-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.report-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.report-card strong {
  display: block;
  margin-top: 8px;
  color: #1e293b;
  font-size: 20px;
}

.report-score {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.report-score-number {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#14b8a6 var(--score-deg), #e2e8f0 0);
  font-size: 36px;
  font-weight: 900;
}

.report-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.report-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 13px;
}

.report-table th {
  color: #334155;
  background: #f8fafc;
}

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

.report-list li {
  padding: 12px;
  border: 1px solid #d7ebe7;
  border-radius: 8px;
  background: #f6fbfa;
  line-height: 1.7;
}

.report-disclaimer {
  padding: 18px 28px 32px;
  color: #64748b;
  text-align: right;
  font-size: 12px;
}

/* PixDances dark application shell. The generated report itself stays white. */
.sidebar-logo-mark {
  color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.sidebar-link:hover,
.sidebar-dropdown-item:hover,
.sidebar-account-link:hover,
.sidebar-link.active,
.sidebar-dropdown-item.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(167, 139, 250, 0.28);
}

.sidebar-icon {
  color: #A78BFA;
}

.geo-topbar h1,
.panel-heading h2,
.history-head h2,
.score-copy h2,
.platform-card h3 {
  color: var(--ink);
}

.status-pill,
.mode-chip,
.signal-pill {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(167, 139, 250, 0.28);
}

.status-pill.tone-warning,
.mode-chip.tone-warning {
  color: #ffd89a;
  background: rgba(234, 122, 31, 0.16);
  border-color: rgba(234, 122, 31, 0.32);
}

.query-panel,
.result-panel {
  background: rgba(26, 21, 32, 0.96);
  border-color: rgba(139, 92, 246, 0.2);
}

.field span,
.platform-title span {
  color: #d8d2e6;
}

.field input,
.field textarea,
.field select {
  background: #252030;
  border-color: rgba(139, 92, 246, 0.28);
  color: #f5f5f5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8f879f;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.ghost-button {
  color: #f5f5f5;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.secondary-button,
.tab-button {
  color: #f5f5f5;
  background: #252030;
  border-color: rgba(139, 92, 246, 0.28);
}

.secondary-button:hover,
.ghost-button:hover,
.tab-button:hover {
  border-color: #A78BFA;
  background: rgba(139, 92, 246, 0.18);
}

.tab-button.active {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.primary-button,
.history-score,
.rec-index {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.22);
}

.platform-check,
.history-card,
.metric-tile,
.insight-tile,
.platform-card,
.score-layout,
.rec-item {
  background: #252030;
  border-color: rgba(139, 92, 246, 0.22);
}

.history-card:hover,
.history-card.active {
  border-color: #A78BFA;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.16);
}

.history-keywords span {
  color: #d8d2e6;
  background: rgba(139, 92, 246, 0.18);
}

.crawl-note,
.platform-card-status {
  color: #a99fbb;
}

.evidence-link {
  color: #a78bfa;
}

.result-empty {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.06));
}

.empty-mark {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.score-ring {
  background:
    radial-gradient(circle at center, #252030 0 58%, transparent 59%),
    conic-gradient(#A78BFA calc(var(--score) * 1%), #3b3449 0);
}

.data-table-wrap {
  border-color: rgba(139, 92, 246, 0.22);
}

.data-table {
  background: #1a1520;
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(139, 92, 246, 0.18);
}

.data-table th {
  color: #d8d2e6;
  background: #252030;
}

.data-table td {
  color: #cfc9dc;
}

.report-preview {
  border-color: rgba(139, 92, 246, 0.22);
}

@media (max-width: 1180px) {
  .geo-workspace {
    grid-template-columns: 1fr;
  }

  .query-panel {
    position: static;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-close,
  .sidebar-toggle-mobile {
    display: block;
  }

  .geo-shell {
    margin-left: 0;
    padding: 76px 16px 20px;
  }
}

@media (max-width: 680px) {
  .geo-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .geo-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .split-fields,
  .summary-strip,
  .insight-grid,
  .platform-results,
  .report-grid,
  .score-layout,
  .report-score {
    grid-template-columns: 1fr;
  }

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

  .history-waterfall {
    column-count: 1;
  }

  .result-panel,
  .query-panel,
  .report-section {
    padding: 16px;
  }
}
