: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;
}

body.auth-pending {
  visibility: hidden;
}

.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;
  position: relative;
}

.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 {
  position: absolute;
  top: calc(38px + 0.45rem);
  left: 0;
  right: 0;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem;
  z-index: 20;
  max-height: min(68vh, 460px);
  overflow-y: auto;
}

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

.profile-menu-section {
  display: grid;
  gap: 1px;
}

.profile-menu-section + .profile-menu-section {
  border-top: 1px solid var(--geist-border);
  padding-top: 0.35rem;
}

.profile-menu-workspace {
  gap: 0.38rem;
}

.profile-menu-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--geist-foreground-mute);
  font-weight: 600;
}

.profile-menu-workspace-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.38rem;
}

.profile-menu-workspace-controls select {
  width: 100%;
  height: 34px;
  font-size: 13px;
}

.profile-menu-ghost-button {
  height: 34px;
  border: 1px solid var(--geist-border);
  border-radius: 6px;
  background: var(--geist-surface-soft);
  color: var(--geist-foreground-soft);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  padding: 0 0.7rem;
  cursor: pointer;
}

.profile-menu-ghost-button:hover {
  border-color: var(--geist-border-strong);
  color: var(--geist-foreground);
}

.profile-menu-session {
  margin: 0;
  font-size: 0.75rem;
  color: var(--geist-foreground-mute);
  line-height: 1.35;
}

.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-link[hidden] {
  display: none !important;
}

.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;
}

.recent-scans-field-header {
  margin-top: 0.45rem;
}

.recent-scans-wrap-header {
  position: relative;
}

.recent-scans-trigger-header {
  min-height: 44px;
  height: auto;
  justify-content: flex-start;
  padding: 0.45rem 0.55rem;
}

.recent-scans-trigger-copy-header {
  flex: 1;
}

.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;
}

.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);
  min-width: 0;
}

#scanForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

#scanForm > * {
  min-width: 0;
}

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

.scan-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.scan-settings {
  position: relative;
  width: 40px;
  min-width: 40px;
  justify-self: end;
}

.scan-settings-button {
  width: 40px;
  max-width: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  color: var(--geist-foreground-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#scanForm .scan-settings-button {
  width: 40px;
  max-width: 40px;
}

.scan-settings-button svg {
  width: 16px;
  height: 16px;
  display: block;
  overflow: visible;
  pointer-events: none;
}

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

.scan-settings-button: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-settings-button[aria-expanded='true'] {
  color: var(--geist-foreground);
  border-color: var(--geist-accent);
  background: color-mix(in srgb, var(--geist-accent), transparent 94%);
}

.scan-settings-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, #000, transparent 58%);
  z-index: 33;
}

.scan-settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100vh;
  border: 1px solid var(--geist-border);
  border-right: 0;
  border-radius: 0;
  background: var(--geist-surface);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14);
  padding: 0.95rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  z-index: 34;
}

.scan-settings-drawer-backdrop[hidden],
.scan-settings-drawer[hidden] {
  display: none;
}

.scan-settings-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid var(--geist-border);
  padding-bottom: 0.75rem;
}

.scan-settings-drawer-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.scan-settings-drawer-subhead {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: var(--geist-foreground-mute);
}

.scan-settings-drawer-close {
  height: 30px;
  border: 1px solid var(--geist-border);
  border-radius: 7px;
  background: var(--geist-surface-soft);
  color: var(--geist-foreground-soft);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0 0.7rem;
  cursor: pointer;
}

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

.scan-settings-drawer-body {
  display: grid;
  gap: 0.75rem;
  overflow-y: auto;
  align-content: start;
}

.scan-settings-field {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-surface-soft);
  padding: 0.7rem;
}

.scan-settings-field label {
  font-size: 0.78rem;
  font-weight: 500;
}

.scan-settings-field input[type='number'] {
  height: 38px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  color: var(--geist-foreground);
  padding: 0 0.65rem;
  font: inherit;
}

.scan-settings-field input[type='number']:focus-visible {
  outline: none;
  border-color: var(--geist-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--geist-accent), transparent 82%);
}

.scan-settings-help {
  margin: 0;
  color: var(--geist-foreground-mute);
  font-size: 0.72rem;
  line-height: 1.45;
}

.scan-settings-toggle-row {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-surface-soft);
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.scan-settings-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
}

.scan-settings-toggle-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
}

.scan-settings-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scan-settings-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.scan-settings-switch-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--geist-border-strong);
  background: var(--geist-surface);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.scan-settings-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--geist-foreground-soft);
  transition: transform 160ms ease, background-color 160ms ease;
}

.scan-settings-switch input:checked + .scan-settings-switch-track {
  border-color: color-mix(in srgb, var(--geist-accent), transparent 20%);
  background: color-mix(in srgb, var(--geist-accent), transparent 84%);
}

.scan-settings-switch input:checked + .scan-settings-switch-track .scan-settings-switch-thumb {
  transform: translateX(18px);
  background: var(--geist-accent);
}

.scan-settings-switch input:focus-visible + .scan-settings-switch-track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--geist-accent), transparent 82%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.recent-scans-field {
  display: grid;
  gap: 0.2rem;
}

.recent-scans-wrap {
  position: relative;
}

.recent-scans-trigger {
  min-height: 52px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface-soft);
  color: var(--geist-foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  cursor: pointer;
  text-align: left;
}

.recent-scans-trigger:hover {
  border-color: var(--geist-border-strong);
}

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

.recent-scans-trigger-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.recent-scans-trigger-title {
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-scans-trigger-meta {
  font-size: 0.72rem;
  color: var(--geist-foreground-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.recent-scans-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  box-shadow: var(--shadow-sm);
  padding: 0.38rem;
  display: grid;
  gap: 0.3rem;
  z-index: 14;
}

.recent-scans-wrap-header .recent-scans-dropdown {
  top: calc(100% + 0.4rem);
}

.recent-scans-dropdown[hidden] {
  display: none;
}

.recent-scans-list {
  display: grid;
  gap: 0.3rem;
  max-height: 360px;
  overflow-y: auto;
  min-width: 0;
  grid-auto-rows: max-content;
  align-content: start;
}

.scan-option {
  border: 1px solid var(--geist-border);
  border-radius: 7px;
  background: var(--geist-surface-soft);
  color: var(--geist-foreground);
  width: 100%;
  padding: 0.52rem 0.58rem;
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}

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

.scan-option.is-active {
  border-color: color-mix(in srgb, var(--geist-accent), transparent 45%);
  background: color-mix(in srgb, var(--geist-accent), var(--geist-surface) 94%);
}

.scan-spotlight .scan-option.is-keyboard-active {
  border-color: color-mix(in srgb, var(--geist-accent), transparent 45%);
  background: color-mix(in srgb, var(--geist-accent), var(--geist-surface) 95%);
}

.scan-option-main {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-option-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.scan-status {
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--geist-border);
  color: var(--geist-foreground-soft);
  background: var(--geist-surface);
}

.scan-status-completed {
  color: var(--geist-success);
  border-color: color-mix(in srgb, var(--geist-success), transparent 60%);
  background: color-mix(in srgb, var(--geist-success), transparent 92%);
}

.scan-status-running {
  color: var(--geist-accent);
  border-color: color-mix(in srgb, var(--geist-accent), transparent 55%);
  background: color-mix(in srgb, var(--geist-accent), transparent 92%);
}

.scan-status-queued {
  color: var(--geist-foreground-soft);
}

.scan-status-failed,
.scan-status-canceled {
  color: var(--geist-danger);
  border-color: color-mix(in srgb, var(--geist-danger), transparent 58%);
  background: color-mix(in srgb, var(--geist-danger), transparent 92%);
}

.scan-option-time {
  min-width: 0;
  font-size: 0.69rem;
  color: var(--geist-foreground-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-scans-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--geist-foreground-mute);
  padding: 0.2rem;
}

.recent-scans-see-all {
  height: 34px;
  border: 1px solid var(--geist-border);
  border-radius: 7px;
  background: var(--geist-surface-soft);
  color: var(--geist-foreground-soft);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.recent-scans-see-all:hover {
  border-color: var(--geist-border-strong);
  color: var(--geist-foreground);
}

.recent-scans-see-all:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scan-spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, #000, transparent 56%);
  z-index: 58;
}

.scan-spotlight {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 2rem));
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-background);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
}

.scan-spotlight[hidden],
.scan-spotlight-backdrop[hidden] {
  display: none;
}

.scan-spotlight-head {
  padding: 0.55rem;
  border-bottom: 1px solid var(--geist-border);
}

.scan-spotlight-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface);
  color: var(--geist-foreground);
  padding: 0 0.72rem;
  font: inherit;
}

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

.scan-spotlight-list {
  max-height: min(56vh, 520px);
  overflow-y: auto;
  padding: 0.5rem;
  display: grid;
  gap: 0.36rem;
  grid-auto-rows: max-content;
  align-content: start;
}

.scan-spotlight-empty {
  margin: 0;
  color: var(--geist-foreground-mute);
  padding: 0 0.8rem 0.2rem;
  font-size: 0.82rem;
}

.scan-spotlight-footer {
  border-top: 1px solid var(--geist-border);
  padding: 0.52rem;
}

.scan-spotlight-footer .recent-scans-see-all {
  width: 100%;
}

.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.sidebar-upgrade-action {
  width: 100%;
  margin-bottom: 0.55rem;
  border-color: var(--geist-inverse-bg);
  background: var(--geist-inverse-bg);
  color: var(--geist-inverse-fg);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.scan-action.sidebar-upgrade-action:hover {
  border-color: color-mix(in srgb, var(--geist-inverse-bg), black 8%);
  background: color-mix(in srgb, var(--geist-inverse-bg), black 10%);
  color: var(--geist-inverse-fg);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--geist-inverse-bg), transparent 80%);
}

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

.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);
}

.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;
}

.seo-tabs-shell {
  padding: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.seo-tabs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.seo-tabs-list {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--geist-border);
  background: transparent;
}

.seo-tab-trigger {
  height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--geist-foreground-mute);
  padding: 0 0.7rem;
  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;
  white-space: nowrap;
  margin-bottom: -1px;
}

.seo-tab-trigger:hover {
  color: var(--geist-foreground-soft);
}

.seo-tab-trigger.active {
  color: var(--geist-foreground);
  border-bottom-color: var(--geist-foreground);
}

.seo-tab-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--geist-accent), transparent 74%);
  border-radius: 6px;
}

.seo-tab-search-shell {
  width: min(220px, 100%);
  height: 32px;
  border: 1px solid var(--geist-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--geist-foreground-soft);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding-left: 0.5rem;
  padding-right: 0.35rem;
}

.seo-tab-search-shell:focus-within {
  border-color: var(--geist-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--geist-accent), transparent 78%);
}

.seo-tab-search-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--geist-foreground-soft);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.seo-tab-search-input::placeholder {
  color: var(--geist-foreground-mute);
}

.seo-tab-search-input:focus-visible {
  outline: none;
}

.seo-tab-search-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.seo-tab-search-kbd {
  min-width: 38px;
  height: 22px;
  border: 1px solid var(--geist-border);
  border-bottom-color: color-mix(in srgb, var(--geist-border-strong), transparent 25%);
  border-radius: 6px;
  background: var(--geist-surface);
  color: var(--geist-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0 0.34rem;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  line-height: 1;
}

.seo-tab-panels {
  display: grid;
}

.seo-tab-panel {
  min-height: 280px;
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-lg);
  background: var(--geist-surface);
  box-shadow: var(--shadow-sm);
}

.seo-tab-panel[hidden] {
  display: none;
}

.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;
}

.panel-list-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.panel-filter-input,
.panel-sort-select {
  height: 28px;
  border: 1px solid var(--geist-border-strong);
  border-radius: 999px;
  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: 0.72rem;
  line-height: 1;
}

.panel-filter-input {
  min-width: 140px;
  width: min(190px, 42vw);
  padding: 0 0.72rem;
}

.panel-sort-select {
  min-width: 132px;
  padding: 0 0.62rem;
}

.panel-filter-input::placeholder {
  color: var(--geist-foreground-mute);
}

.panel-filter-input:focus-visible,
.panel-sort-select:focus-visible {
  outline: none;
  border-color: var(--geist-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--geist-accent), transparent 75%);
}

.panel-filter-input:disabled,
.panel-sort-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.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;
}

.scans-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.scans-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  border-left: 1px solid var(--geist-border);
  background: var(--geist-surface);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 31;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0.9rem;
  gap: 0.7rem;
}

.scans-drawer[hidden],
.scans-drawer-backdrop[hidden] {
  display: none;
}

.scans-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--geist-border);
  padding-bottom: 0.7rem;
}

.scans-drawer-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.scans-drawer-subhead {
  margin: 0.3rem 0 0;
  color: var(--geist-foreground-mute);
  font-size: 0.75rem;
}

.scans-drawer-close {
  height: 30px;
  border: 1px solid var(--geist-border);
  border-radius: 7px;
  background: var(--geist-surface-soft);
  color: var(--geist-foreground-soft);
  font-family: 'Geist', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0 0.7rem;
  cursor: pointer;
}

.scans-drawer-close:hover {
  color: var(--geist-foreground);
  border-color: var(--geist-border-strong);
}

.scans-drawer-list {
  overflow-y: auto;
  display: grid;
  gap: 0.35rem;
  padding-right: 0.1rem;
  grid-auto-rows: max-content;
  align-content: start;
}

.scans-drawer .scan-option {
  height: 44px;
  min-height: 44px;
  padding: 0.3rem 0.5rem;
  gap: 0.08rem;
  align-content: center;
  appearance: none;
  -webkit-appearance: none;
}

.scans-drawer .scan-option-main {
  font-size: 0.76rem;
  line-height: 1.12;
}

.scans-drawer .scan-option-meta {
  gap: 0.28rem;
  line-height: 1.08;
}

.scans-drawer .scan-status {
  font-size: 0.6rem;
  padding: 0.07rem 0.33rem;
  line-height: 1.05;
}

.scans-drawer .scan-option-time {
  font-size: 0.66rem;
  line-height: 1.08;
}

.scans-drawer-empty {
  margin: 0;
  color: var(--geist-foreground-mute);
  font-size: 0.82rem;
}

body.scans-drawer-open {
  overflow: hidden;
}

body.scan-settings-drawer-open {
  overflow: hidden;
}

@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;
  }

  .panel-list-controls {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .panel-filter-input {
    width: min(240px, 100%);
  }

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

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

  .seo-tabs-toolbar {
    align-items: stretch;
  }

  .seo-tabs-list {
    width: 100%;
    overflow-x: auto;
  }

  .seo-tab-search-shell {
    width: 100%;
  }

  .seo-tab-search-kbd {
    min-width: 36px;
  }

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

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

  .scans-drawer {
    width: 100vw;
    border-left: 0;
  }

  .scan-settings-drawer {
    width: 100vw;
  }
}

.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;
}

.billing-body {
  display: grid;
  gap: 1rem;
  overflow: visible;
  max-height: none;
}

.billing-panel .panel-body {
  padding: 1rem;
}

.billing-body > section {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.billing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.billing-section-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.billing-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.billing-actions .scan-action {
  min-width: 156px;
}

.billing-metrics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.billing-metric-card {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-sm);
  background: var(--geist-surface-soft);
  padding: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.billing-metric-card h4 {
  margin: 0;
  font-size: 0.73rem;
  color: var(--geist-foreground-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-metric-value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.billing-metric-card .meta {
  margin: 0;
  color: var(--geist-foreground-mute);
  font-size: 0.76rem;
  line-height: 1.35;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.billing-plan-card {
  border: 1px solid var(--geist-border);
  border-radius: var(--radius-md);
  background: var(--geist-surface-soft);
  padding: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.billing-plan-card.is-current {
  border-color: color-mix(in srgb, var(--geist-accent), transparent 45%);
  background: color-mix(in srgb, var(--geist-accent), var(--geist-surface) 95%);
}

.billing-plan-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.billing-plan-title-row h4 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.2;
}

.billing-plan-price {
  margin: 0.08rem 0 0;
  color: var(--geist-foreground-soft);
  font-size: 0.8rem;
  line-height: 1.3;
}

.billing-plan-limits {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
  color: var(--geist-foreground-soft);
  font-size: 0.8rem;
}

.billing-plan-limits li {
  line-height: 1.35;
}

.billing-plan-card .scan-action {
  width: 100%;
}
