.result-wrap {
  display: none;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

/* Score bar — equal-column metric grid */
.score-bar {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.score-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.score-val.high { color: var(--green); }
.score-val.mid { color: var(--gold); }
.score-val.low { color: var(--red); }

.score-divider {
  display: none;
}

.score-bar-right {
  grid-column: -1;
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}

.verdict-pill {
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.verdict-pill.approved {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--green);
}

.verdict-pill.needs_fix {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: var(--gold);
}

.verdict-pill.rejected {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: var(--red);
}

/* Tabs Navigation */
.tabs-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}

.tab-btn {
  padding: 14px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface2);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

.approved-banner {
  margin: 0;
  padding: var(--space-3) var(--space-5);
  background: rgba(5, 150, 105, 0.06);
  border-bottom: 1px solid rgba(5, 150, 105, 0.15);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: none;
  flex-shrink: 0;
}

.tab-content {
  display: none;
  flex: 1;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}

/* ── BLOG TAB CMS PREVIEW ── */
.blog-area {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.blog-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.meta-chip.t { color: var(--gold); background: rgba(217, 119, 6, 0.05); }
.meta-chip.m { color: var(--teal); background: rgba(13, 148, 136, 0.05); }
.meta-chip.p { color: var(--accent); background: rgba(79, 70, 229, 0.05); }
.meta-chip.g { color: var(--green); background: rgba(5, 150, 105, 0.05); }

.blog-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.blog-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.blog-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
  color: var(--text);
  margin: 24px 0 10px;
  font-weight: 700;
}
.blog-content h1 { font-size: 20px; letter-spacing: -0.01em; }
.blog-content h2 { font-size: 16px; }
.blog-content h3 { font-size: 13px; color: var(--muted); }
.blog-content p { margin-bottom: 14px; }
.blog-content strong { color: var(--text); }
.blog-content em { color: var(--gold); font-style: normal; font-weight: 600; }
.blog-content ul, .blog-content ol { padding-left: 20px; margin-bottom: 14px; }
.blog-content li { margin-bottom: 6px; }
.blog-content code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent2);
}
.blog-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}
.blog-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.blog-content a:hover {
  text-decoration: underline;
}

.kw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.kw-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 6px;
}

.kw-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid rgba(5, 150, 105, 0.15);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 99px;
}

.cta-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}

.cta-box strong {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Sources references list */
.sources-panel {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.sources-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.source-card {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  box-shadow: var(--shadow);
}

.source-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.source-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-url {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── REVIEW TAB ── */
.review-area {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-card-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.review-score-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.review-bar-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.review-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-issues {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.review-issues .issue {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.issue-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 6px;
  flex-shrink: 0;
}

.fixes-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.fixes-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 12px;
}

.fix-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fix-item:last-child {
  border-bottom: none;
}

.fix-num {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(217, 119, 6, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rag-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.rag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rag-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
}

.rag-verdict {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

.rag-verdict.pass {
  background: rgba(5, 150, 105, 0.08);
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.rag-verdict.fail {
  background: rgba(225, 29, 72, 0.08);
  color: var(--red);
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.rag-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.rag-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rag-sug {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rag-sug-icon {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

/* ── SOCIAL PLATFORMS MOCKUPS ── */
.social-area {
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-5);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.social-platform-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 8px;
  width: max-content;
}

.soc-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
}

.soc-tab.active.instagram {
  background: #ffffff;
  color: #e1306c;
  box-shadow: var(--shadow);
}

.soc-tab.active.linkedin {
  background: #ffffff;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.social-post-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}

/* Instagram Light Mockup Layout */
#social-instagram .social-post-card {
  border-color: #efefef;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #262626;
}

#social-instagram .social-card-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #efefef;
}

.instagram-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px;
}

.instagram-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #262626;
}

.instagram-meta {
  display: flex;
  flex-direction: column;
}

.instagram-user {
  font-size: 12px;
  font-weight: 600;
}

.instagram-loc {
  font-size: 10px;
  color: #8e8e8e;
}

.instagram-actions-bar {
  padding: 10px 14px 4px;
  display: flex;
  gap: 12px;
  font-size: 18px;
}

.instagram-actions-bar span {
  cursor: pointer;
  transition: transform 0.1s;
}
.instagram-actions-bar span:hover {
  transform: scale(1.1);
}

.instagram-likes {
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* LinkedIn Light Mockup Layout */
#social-linkedin .social-post-card {
  border-color: #e0e0e0;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: rgba(0, 0, 0, 0.9);
}

#social-linkedin .social-card-header {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.linkedin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3a3b3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.linkedin-meta {
  display: flex;
  flex-direction: column;
}

.linkedin-name {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.linkedin-name span.degree {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.linkedin-headline {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.6);
}

.linkedin-time {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}

.linkedin-follow {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #0a66c2;
  cursor: pointer;
}

.linkedin-actions-bar {
  display: flex;
  border-top: 1px solid #ebebeb;
  padding: 6px 12px;
  justify-content: space-between;
}

.linkedin-act-btn {
  flex: 1;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s;
}
.linkedin-act-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Image Wraps */
.social-image-wrap {
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

#social-instagram .social-image-wrap {
  aspect-ratio: 1 / 1;
  max-height: 420px;
}

#social-linkedin .social-image-wrap {
  aspect-ratio: 1.91 / 1;
  max-height: 320px;
}

.social-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.social-caption {
  padding: 12px 14px 16px;
}

.social-caption-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.social-caption-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.caption-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── IMAGES TAB ── */
.images-area {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-card-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.image-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.image-card-size {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.image-card-footer {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  background: var(--surface2);
}

/* ── SCHEDULE TAB ── */
.schedule-area {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.schedule-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .schedule-row {
    grid-template-columns: 1fr;
  }
}

.schedule-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-schedule {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-schedule:hover {
  background: rgba(79, 70, 229, 0.04);
}

.schedule-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  box-shadow: var(--shadow);
}

.queue-platform {
  font-size: 15px;
  flex-shrink: 0;
}

.queue-title {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.queue-status {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.queue-status.scheduled {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.queue-status.sent {
  background: rgba(5, 150, 105, 0.08);
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

/* ── BUTTONS ── */
.btn-small {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text-secondary);
  transition: var(--transition);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.btn-small:hover {
  background: var(--surface2);
  border-color: var(--muted2);
}

.btn-small.accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-small.accent:hover {
  background: rgba(79, 70, 229, 0.05);
}

.btn-small.danger {
  border-color: var(--red);
  color: var(--red);
}
.btn-small.danger:hover {
  background: rgba(225, 29, 72, 0.05);
}

.btn-small.success {
  border-color: var(--green);
  color: var(--green);
}
.btn-small.success:hover {
  background: rgba(5, 150, 105, 0.05);
}

/* ── HUMAN REVIEW GATE ── */
.human-gate {
  padding: var(--space-5);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: var(--space-5);
  box-shadow: var(--shadow);
  display: none;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.gate-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gate-icon {
  width: 32px;
  height: 32px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.gate-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.gate-sub {
  font-size: 11px;
  color: var(--muted);
}

.gate-textarea {
  min-height: 80px;
  font-size: 12px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
}

.gate-actions {
  display: flex;
  gap: 8px;
}

.btn-approve {
  flex: 1;
  padding: 10px;
  background: var(--green);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.btn-approve:hover {
  background: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-refine {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--accent2);
  border-radius: 8px;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-refine:hover {
  background: rgba(225, 29, 72, 0.04);
}

.iter-info {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Error box callouts */
.error-box {
  margin: var(--space-5);
  padding: 12px 16px;
  background: rgba(225, 29, 72, 0.06);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  display: none;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .score-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .score-bar-right {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }
  .tabs-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    flex: 0 0 auto;
    padding: 14px 16px;
  }
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
  .score-bar {
    grid-template-columns: 1fr 1fr;
  }
}
