:root {
  --og-bg: #f8fafc;
  --og-surface: #ffffff;
  --og-card: #ffffff;
  --og-border: #e2e8f0;
  --og-border-focus: #2563eb;
  --og-blue: #2563eb;
  --og-blue-hover: #1d4ed8;
  --og-teal: #0f766e;
  --og-text: #0f172a;
  --og-muted: #64748b;
  --og-radius: 8px;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.og-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.og-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--og-border);
  background: #ffffff;
}

.og-breadcrumbs {
  font-size: 0.875rem;
  color: var(--og-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.og-breadcrumbs a {
  color: var(--og-blue);
  text-decoration: none;
  font-weight: 600;
}

.og-breadcrumbs a:hover {
  text-decoration: underline;
}

.og-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--og-text);
  letter-spacing: -0.025em;
}

.og-subtitle {
  font-size: 1.0625rem;
  color: var(--og-muted);
  margin: 0;
}

.og-main {
  padding: 32px 0 60px;
}

/* Workspace Grid */
.og-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .og-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.og-card {
  background: var(--og-card);
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.og-sec-title {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--og-text);
  margin: 0 0 16px;
}

.og-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.og-card-head .og-sec-title {
  margin: 0;
}

.og-presets {
  display: flex;
  align-items: center;
  gap: 6px;
}

.og-preset-lbl {
  font-size: 0.75rem;
  color: var(--og-muted);
  font-weight: 600;
}

.og-chip {
  background: #ffffff;
  color: var(--og-muted);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.og-chip:hover {
  border-color: var(--og-blue);
  color: var(--og-blue);
}

/* Form Fields */
.og-group {
  margin-bottom: 16px;
}

.og-lbl {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--og-text);
}

.og-lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.og-char-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--og-muted);
}

.og-input, .og-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--og-text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  margin-top: 4px;
}

.og-input:focus, .og-textarea:focus {
  outline: none;
  border-color: var(--og-border-focus);
}

.og-coords-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Tabs */
.og-tabs-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.og-tab-btn {
  background: #ffffff;
  color: var(--og-muted);
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.og-tab-btn:hover {
  border-color: var(--og-blue);
  color: var(--og-blue);
}

.og-tab-btn.active {
  background: var(--og-blue);
  color: #ffffff;
  border-color: var(--og-blue);
}

/* Mockups */
.og-mockup-wrapper {
  background: #f1f5f9;
  border: 1px solid var(--og-border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.og-mockup-item {
  display: none;
  width: 100%;
}

.og-mockup-item.active {
  display: block;
}

/* Twitter Card */
.og-mockup-box.twitter {
  background: #ffffff;
  border: 1px solid #cfd9de;
  border-radius: 12px;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.og-mockup-img-wrap {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  background: #e2e8f0;
  overflow: hidden;
}

.og-mockup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.og-mockup-content {
  padding: 12px;
}

.og-m-domain {
  display: block;
  font-size: 0.75rem;
  color: var(--og-muted);
  margin-bottom: 2px;
}

.og-m-domain.uppercase {
  text-transform: uppercase;
}

.og-m-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--og-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.og-m-desc {
  font-size: 0.8125rem;
  color: var(--og-muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Google SERP */
.og-mockup-box.google {
  background: #ffffff;
  border: 1px solid var(--og-border);
  border-radius: 8px;
  padding: 16px;
  max-width: 550px;
  margin: 0 auto;
}

.og-g-url-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.og-g-site {
  font-size: 0.75rem;
  color: #202124;
  font-weight: 600;
}

.og-g-url {
  font-size: 0.6875rem;
  color: #4d5156;
}

.og-g-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a0dab;
  margin: 2px 0 4px;
  line-height: 1.3;
}

.og-g-desc {
  font-size: 0.8125rem;
  color: #4d5156;
  margin: 0;
  line-height: 1.5;
}

/* Discord */
.og-mockup-box.discord {
  background: #ffffff;
  border: 1px solid #e3e5e8;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.og-d-accent {
  width: 4px;
  background: #5865f2;
}

.og-d-content {
  padding: 12px;
  flex: 1;
}

.og-d-site {
  font-size: 0.6875rem;
  color: var(--og-muted);
  font-weight: 600;
}

.og-d-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #006ce7;
  margin: 2px 0 6px;
}

.og-d-desc {
  font-size: 0.8125rem;
  color: #4e5058;
  margin: 0 0 10px;
}

.og-d-img-wrap {
  width: 100%;
  max-height: 200px;
  border-radius: 4px;
  overflow: hidden;
}

.og-d-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Code Output */
.og-code-section {
  background: #f8fafc;
  border: 1px solid var(--og-border);
  border-radius: 6px;
  padding: 14px;
}

.og-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.og-code-lbl {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--og-muted);
}

.og-btn-copy {
  background: #ffffff;
  color: var(--og-text);
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.og-btn-copy:hover {
  background: #f1f5f9;
  border-color: var(--og-blue);
}

.og-pre {
  margin: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #0f766e;
  line-height: 1.45;
}

/* Ad slots */
.og-ad-container {
  width: 100%;
  margin: 36px 0;
  display: flex;
  justify-content: center;
}

.og-ad-box {
  width: 100%;
  max-width: 728px;
  min-height: 280px;
  background: #ffffff;
  border: 1px dashed var(--og-border);
  border-radius: var(--og-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content */
.og-content-section {
  margin-top: 48px;
}

.og-content-section h2 {
  font-size: 1.5rem;
  color: var(--og-text);
  margin-bottom: 16px;
}

.og-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.og-feature-card {
  background: #ffffff;
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  padding: 20px;
}

.og-feature-card h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--og-blue);
}

.og-feature-card p {
  font-size: 0.875rem;
  color: var(--og-muted);
  margin: 0;
}

.og-footer {
  background: #ffffff;
  border-top: 1px solid var(--og-border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--og-muted);
}

.og-footer a {
  color: var(--og-blue);
  text-decoration: none;
  font-weight: 600;
}

.og-consent-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.og-consent-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0;
}

.og-consent-actions {
  display: flex;
  gap: 8px;
}

.og-btn-consent-yes {
  background: var(--og-blue);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.og-btn-consent-no {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.og-check-card {
  margin-bottom: 28px;
}

.og-check-hint {
  font-size: 0.8125rem;
  color: var(--og-muted);
  margin: -8px 0 12px;
}

.og-check-row {
  display: flex;
  gap: 10px;
}

.og-check-row .og-input {
  flex: 1;
}

.og-btn-primary {
  background: var(--og-blue);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.og-btn-primary:hover {
  background: var(--og-blue-hover);
}

.og-btn-primary:disabled {
  opacity: 0.75;
  cursor: wait;
}

.og-check-status {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--og-muted);
}

.og-check-status-error {
  color: #b45309;
}

.og-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: og-spin 0.6s linear infinite;
}

@keyframes og-spin {
  to { transform: rotate(360deg); }
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --og-bg: var(--tf-surface);
  --og-surface: var(--tf-surface);
  --og-card: var(--tf-surface);
  --og-border: var(--tf-surface);
  --og-border-focus: #819dda;
  --og-blue: #819dda;
  --og-blue-hover: #8198da;
  --og-teal: #59cfc6;
  --og-text: var(--tf-ink);
  --og-muted: var(--tf-ink-faint);
}
