:root {
  --geist-background: #fafafa;
  --geist-background-glow: rgba(230, 230, 230, 0.75);
  --geist-surface: #ffffff;
  --geist-surface-soft: #fcfcfc;
  --geist-border: #e5e5e5;
  --geist-border-strong: #d4d4d4;
  --geist-foreground: #171717;
  --geist-foreground-soft: #525252;
  --geist-foreground-mute: #737373;
  --geist-accent: #0070f3;
  --geist-danger: #e5484d;
  --geist-warning: #f08c00;
  --geist-success: #0f9d58;
  --geist-inverse-bg: #111111;
  --geist-inverse-fg: #ffffff;
  --hero-bg-start: #ffffff;
  --hero-bg-end: #fcfcfc;
  --widget-surface: #ffffff;
  --widget-surface-soft: #fcfcfc;
  --widget-border: #e5e5e5;
  --widget-border-strong: #d4d4d4;
  --widget-foreground: #171717;
  --widget-foreground-soft: #525252;
  --widget-foreground-mute: #737373;
  --grid-line: rgba(23, 23, 23, 0.025);
  --sidebar-hover: #f5f5f5;
  --sidebar-active: #ebebeb;
  --sidebar-search: #fafafa;
  --sidebar-badge-bg: #eaf3ff;
  --sidebar-badge-fg: #1d4ed8;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --layout-pad: 1rem;
  --layout-gap: 0.9rem;
  --sidebar-width: 264px;
}

html[data-theme='dark'] {
  --geist-background: #0a0a0a;
  --geist-background-glow: rgba(33, 33, 33, 0.55);
  --geist-surface: #111111;
  --geist-surface-soft: #171717;
  --geist-border: #262626;
  --geist-border-strong: #3a3a3a;
  --geist-foreground: #ededed;
  --geist-foreground-soft: #b3b3b3;
  --geist-foreground-mute: #8a8a8a;
  --geist-accent: #3291ff;
  --geist-danger: #ff6369;
  --geist-warning: #f5a524;
  --geist-success: #2db36c;
  --geist-inverse-bg: #fafafa;
  --geist-inverse-fg: #111111;
  --hero-bg-start: #121212;
  --hero-bg-end: #101010;
  --widget-surface: #0a0a0a;
  --widget-surface-soft: #0a0a0a;
  --widget-border: #262626;
  --widget-border-strong: #3a3a3a;
  --widget-foreground: #ededed;
  --widget-foreground-soft: #b3b3b3;
  --widget-foreground-mute: #8a8a8a;
  --grid-line: rgba(255, 255, 255, 0.038);
  --sidebar-hover: #1a1a1a;
  --sidebar-active: #1f1f1f;
  --sidebar-search: #151515;
  --sidebar-badge-bg: rgba(50, 145, 255, 0.2);
  --sidebar-badge-fg: #93c5fd;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
}

html[data-theme='light'] {
  color-scheme: light;
}

html[data-theme='dark'] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--geist-foreground);
  background:
    radial-gradient(circle at 0% 0%, var(--geist-background-glow) 0%, transparent 38%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    var(--geist-background);
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bg-glow {
  display: none;
}

.app-layout {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--layout-gap);
  align-items: start;
}

.glass {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-lg);
  background: var(--geist-surface);
  box-shadow: var(--shadow-sm);
}

.sidebar {
  width: var(--sidebar-width);
  font-size: 14px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  max-height: none;
  overflow-y: auto;
  border-radius: 0;
  border-left: 0;
}

.sidebar-header {
  display: grid;
  gap: 0.45rem;
}

.scope-chip {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--geist-border);
  border-radius: 999px;
  padding: 0 0.45rem;
  background: var(--geist-surface);
  cursor: pointer;
}

.scope-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  overflow: hidden;
  place-content: center;
  font-size: 0.67rem;
  font-weight: 700;
  border: 1px solid var(--geist-border-strong);
  background: var(--geist-surface-soft);
}

.scope-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scope-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.scope-badge {
  margin-left: auto;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  color: var(--sidebar-badge-fg);
  background: var(--sidebar-badge-bg);
}

.scope-caret {
  color: var(--geist-foreground-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scope-chip:hover {
  border-color: var(--geist-border-strong);
}

.scope-chip:focus-visible {
  outline: none;
  border-color: var(--geist-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--geist-accent), transparent 80%);
}

.profile-menu {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1px;
  padding: 0.3rem;
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu-link {
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.55rem;
  text-decoration: none;
  color: var(--geist-foreground-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.profile-menu-button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
}

.profile-menu-text {
  font-weight: 500;
}

.theme-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--geist-border-strong);
  transition: background-color 0.2s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--geist-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu-button[aria-pressed='true'] .theme-switch {
  background: var(--geist-accent);
}

.profile-menu-button[aria-pressed='true'] .theme-switch-thumb {
  transform: translateX(14px);
}

.profile-menu-link:hover {
  background: var(--sidebar-hover);
  color: var(--geist-foreground);
}

.sidebar-search {
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  width: 100%;
  height: 36px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--sidebar-search);
  color: var(--geist-foreground-soft);
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0 0.55rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.sidebar-search:hover {
  border-color: var(--geist-border-strong);
  transform: none;
}

.search-icon {
  color: var(--geist-foreground-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-label {
  flex: 1;
  text-align: left;
}

.sidebar-search kbd {
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  border: 1px solid var(--geist-border-strong);
  border-radius: 6px;
  display: grid;
  place-content: center;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  color: var(--geist-foreground-mute);
  background: var(--geist-surface);
}

.sidebar-head {
  padding: 0.2rem 0.35rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--geist-foreground-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subhead {
  margin: 0.55rem 0 0;
  color: var(--geist-foreground-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.side-nav {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--geist-border);
  border-bottom: 1px solid var(--geist-border);
  padding: 0.45rem 0;
}

.side-nav-secondary {
  margin-top: -0.1rem;
  border-top: 0;
}

.nav-link {
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: var(--geist-foreground-soft);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  padding: 0 0.3rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link.active {
  color: var(--geist-foreground);
  background: var(--sidebar-active);
  font-weight: 500;
}

.nav-link:hover {
  opacity: 1;
  background: var(--sidebar-hover);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--geist-foreground-mute);
}

.nav-link.active .nav-icon {
  color: var(--geist-foreground);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-card {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: var(--geist-surface-soft);
}

#scanForm {
  display: grid;
  gap: 0.55rem;
}

.scan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.scan-csv-actions {
  margin-top: 0.45rem;
}

.csv-export-menu-wrap {
  position: relative;
}

.csv-export-trigger {
  width: 100%;
}

.csv-export-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  width: 100%;
  min-width: 210px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  box-shadow: var(--shadow-sm);
  padding: 0.3rem;
  display: grid;
  gap: 1px;
  z-index: 12;
}

.csv-export-menu[hidden] {
  display: none;
}

.csv-export-option {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--geist-foreground-soft);
  text-align: left;
  padding: 0 0.55rem;
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.csv-export-option:hover {
  background: var(--sidebar-hover);
  color: var(--geist-foreground);
}

.sidebar-bottom-actions {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--geist-border);
  background: var(--geist-surface);
  position: sticky;
  bottom: 0;
}

.scan-action {
  height: 34px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  color: var(--geist-foreground-soft);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.scan-action:hover {
  border-color: var(--geist-border-strong);
  color: var(--geist-foreground);
}

.scan-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.scan-action:focus-visible {
  outline: none;
  border-color: var(--geist-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--geist-accent), transparent 80%);
}

.scan-import-input {
  display: none;
}

label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--geist-foreground-soft);
  font-size: 0.8rem;
  font-weight: 500;
}

input,
select,
#scanButton,
#contentExtractButton,
.nav-link,
.sidebar-search {
  height: 40px;
  border-radius: var(--radius-sm);
}

input,
select {
  border: 1px solid var(--geist-border);
  background: var(--geist-surface-soft);
  color: var(--geist-foreground);
  padding: 0 0.72rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--geist-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--geist-accent), transparent 80%);
  background: var(--geist-surface);
}

#scanButton {
  border: 1px solid var(--geist-inverse-bg);
  background: var(--geist-inverse-bg);
  color: var(--geist-inverse-fg);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

#scanButton:hover {
  transform: translateY(-1px);
}

#scanButton.is-cancel {
  border-color: color-mix(in srgb, var(--geist-danger), transparent 35%);
  background: color-mix(in srgb, var(--geist-danger), transparent 90%);
  color: var(--geist-danger);
}

#scanButton.is-cancel:hover {
  transform: none;
  background: color-mix(in srgb, var(--geist-danger), transparent 84%);
}

#scanButton:disabled {
  opacity: 0.75;
  cursor: wait;
}

#contentExtractButton {
  border: 1px solid var(--geist-inverse-bg);
  background: var(--geist-inverse-bg);
  color: var(--geist-inverse-fg);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0.85rem;
  white-space: nowrap;
}

#contentExtractButton:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status {
  margin: 0.65rem 0 0;
  font-size: 0.83rem;
  color: var(--geist-foreground-mute);
}

.main-content {
  grid-column: 2;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding: var(--layout-pad);
}

.hero {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--hero-bg-start), var(--hero-bg-end));
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  letter-spacing: -0.02em;
}

.view {
  --geist-surface: var(--widget-surface);
  --geist-surface-soft: var(--widget-surface-soft);
  --geist-border: var(--widget-border);
  --geist-border-strong: var(--widget-border-strong);
  --geist-foreground: var(--widget-foreground);
  --geist-foreground-soft: var(--widget-foreground-soft);
  --geist-foreground-mute: var(--widget-foreground-mute);
  display: none;
  gap: 0.75rem;
}

.view.active {
  display: grid;
}

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

.metric {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-surface);
  padding: 0.8rem;
}

.metric p {
  margin: 0;
  color: var(--geist-foreground-mute);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric h3 {
  margin: 0.35rem 0 0;
  font-size: 1.26rem;
  letter-spacing: -0.02em;
}

.filter-bar {
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-group label {
  margin-bottom: 0.38rem;
}

.filter-group select {
  width: 100%;
}

.filter-group select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.panel {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.panel.wide {
  grid-column: span 2;
}

.panel-head {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--geist-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-copy-actions {
  gap: 0.45rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.og-mode-toggle,
.content-copy-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 2px;
  border: 1px solid var(--geist-border-strong);
  border-radius: 999px;
  background: var(--geist-surface-soft);
}

.og-mode-button,
.content-copy-mode-button {
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--geist-foreground-mute);
  padding: 0 0.55rem;
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.og-mode-button.active,
.content-copy-mode-button.active {
  background: var(--geist-surface);
  color: var(--geist-foreground);
}

.og-mode-button:focus-visible,
.content-copy-mode-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--geist-accent), transparent 65%);
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--geist-border-strong);
  padding: 0.18rem 0.5rem;
  color: var(--geist-foreground-mute);
  font-size: 0.74rem;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.panel-body {
  padding: 0.8rem 0.95rem;
  overflow: auto;
  max-height: 560px;
}

.panel-foot {
  padding: 0.58rem 0.95rem;
  border-top: 1px solid var(--geist-border);
  background: var(--geist-surface-soft);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.content-copy-button {
  height: 30px;
  width: auto;
}

.content-copy-button:disabled {
  opacity: 0.6;
}

.content-extractor-body {
  display: grid;
  gap: 0.75rem;
  overflow: visible;
  max-height: none;
}

.content-extractor-form {
  display: grid;
  gap: 0.45rem;
}

.content-extractor-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.content-document {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-surface-soft);
  padding: 1rem;
  height: auto;
}

.content-document-head {
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--geist-border);
  display: grid;
  gap: 0.35rem;
}

.content-document-title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
}

.content-document-meta {
  margin: 0;
  color: var(--geist-foreground-mute);
  font-size: 0.76rem;
}

.content-document-source {
  color: var(--geist-accent);
  font-size: 0.74rem;
  word-break: break-all;
  text-decoration: none;
}

.content-document-source:hover {
  text-decoration: underline;
}

.content-document-body {
  display: grid;
  gap: 0.65rem;
}

.content-document-heading {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.content-document-paragraph {
  margin: 0;
  color: var(--geist-foreground-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.content-document-list-item {
  color: var(--geist-foreground-soft);
  line-height: 1.75;
}

.content-document-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.list {
  display: grid;
  gap: 0.48rem;
}

.item {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  padding: 0.6rem 0.68rem;
}

.item .url {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.77rem;
  color: var(--geist-foreground);
  word-break: break-word;
}

.url-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.url-row .url {
  flex: 1;
  min-width: 0;
}

.go-link {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--geist-border-strong);
  border-radius: 6px;
  color: var(--geist-foreground-mute);
  background: var(--geist-surface);
  text-decoration: none;
}

.go-link:hover {
  color: var(--geist-foreground);
  border-color: var(--geist-foreground-mute);
}

.go-link svg {
  display: block;
}

.item .meta {
  margin-top: 0.34rem;
  color: var(--geist-foreground-mute);
  font-size: 0.78rem;
}

.tree {
  margin: 0.42rem 0 0;
  padding-left: 0.84rem;
  border-left: 1px dashed var(--geist-border-strong);
  display: grid;
  gap: 0.3rem;
}

.tree-node {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.84rem;
}

.tree-node .tag {
  min-width: 28px;
  border-radius: 999px;
  text-align: center;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  padding: 0.03rem 0.33rem;
  border: 1px solid var(--geist-border-strong);
  color: var(--geist-foreground-mute);
}

.issue {
  margin-top: 0.45rem;
  display: inline-block;
  font-size: 0.71rem;
  border-radius: 999px;
  padding: 0.11rem 0.45rem;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid transparent;
}

.issue.ok {
  color: var(--geist-success);
  border-color: color-mix(in srgb, var(--geist-success), transparent 65%);
}

.issue.warn {
  color: var(--geist-warning);
  border-color: color-mix(in srgb, var(--geist-warning), transparent 65%);
}

.issue.danger {
  color: var(--geist-danger);
  border-color: color-mix(in srgb, var(--geist-danger), transparent 70%);
}

.og-fields {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.28rem;
}

.og-preview-list {
  display: grid;
  gap: 0.48rem;
}

.og-preview-item {
  display: grid;
  gap: 0.55rem;
}

.og-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.og-preview-header .meta {
  margin-top: 0;
}

.og-preview-header .issue {
  margin-top: 0;
}

.og-preview-card {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--geist-surface-soft);
}

.og-preview-image {
  height: 170px;
  background: color-mix(in srgb, var(--geist-surface-soft), var(--geist-border) 40%);
  display: grid;
  place-content: center;
  overflow: hidden;
}

.og-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.og-preview-image-placeholder {
  color: var(--geist-foreground-mute);
  font-size: 0.78rem;
}

.og-preview-content {
  padding: 0.68rem;
  display: grid;
  gap: 0.3rem;
}

.og-preview-site {
  font-size: 0.69rem;
  color: var(--geist-foreground-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.og-preview-title {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--geist-foreground);
}

.og-preview-description {
  margin: 0;
  color: var(--geist-foreground-soft);
  font-size: 0.81rem;
  line-height: 1.45;
}

.og-preview-url {
  color: var(--geist-foreground-mute);
  font-size: 0.74rem;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-word;
}

.og-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.77rem;
}

.og-key {
  color: var(--geist-foreground-mute);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.og-value {
  color: var(--geist-foreground-soft);
  word-break: break-word;
}

.og-missing {
  color: var(--geist-danger);
}

.empty {
  color: var(--geist-foreground-mute);
  font-size: 0.85rem;
}

.pagination-controls {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.pagination-summary {
  font-size: 0.7rem;
  color: var(--geist-foreground-mute);
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.pagination-button {
  border: 1px solid var(--geist-border-strong);
  border-radius: 999px;
  background: var(--geist-surface-soft);
  color: var(--geist-foreground-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  min-width: 58px;
  height: 28px;
  padding: 0 0.6rem;
  cursor: pointer;
}

.pagination-button:hover:enabled {
  color: var(--geist-foreground);
  border-color: var(--geist-foreground-mute);
}

.pagination-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pagination-page {
  font-size: 0.72rem;
  color: var(--geist-foreground-soft);
  min-width: 74px;
  text-align: center;
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
    padding: var(--layout-pad);
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    border-left: 1px solid var(--geist-border);
    border-radius: var(--radius-lg);
  }

  .main-content {
    grid-column: 1;
    padding: 0;
  }

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

  .sidebar-bottom-actions {
    position: static;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    background: transparent;
  }
}

@media (max-width: 930px) {
  .panel-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .summary-grid,
  .panel-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .panel.wide {
    grid-column: auto;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}

.structured-data-body {
  display: grid;
  gap: 0.75rem;
  overflow: visible;
  max-height: none;
}

.structured-data-results {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-surface-soft);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.structured-data-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.45rem;
}

.structured-data-entity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.structured-data-finding .issue {
  margin-top: 0;
}

.structured-data-message,
.structured-data-recommendation {
  margin: 0.45rem 0 0;
  color: var(--geist-foreground-soft);
  line-height: 1.5;
  font-size: 0.85rem;
}
