/* ═══════════════════════════════════════════════
   PRISM — STYLES
   Light theme · Amber accent · Vanilla CSS
   ═══════════════════════════════════════════════ */

:root {
  --bg:          #f8fafc;
  --bg-surface:  #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-input:    #ffffff;
  --border:      #94a3b8;
  --border-muted:#c4cdd8;

  --text:        #0f172a;
  --text-dim:    #1e293b;
  --text-muted:  #475569;

  --accent:      #c026d3;
  --accent-dim:  #a21caf;
  --accent-faint:#fdf4ff;

  --diamond-gradient: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 50%, #be185d 100%);

  --green:       #15803d;
  --green-faint: #f0fdf4;
  --red:         #dc2626;
  --red-faint:   #fef2f2;
  --amber:       #c026d3;
  --amber-faint: #fdf4ff;

  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;

  --shadow:      0 1px 8px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 4px 24px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);

  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --mono:        'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --transition:  0.18s ease;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ HEADER ═══ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Fake Y-axis rotation using scaleX — inner diamond only */
@keyframes diamond-spin {
  0%   { transform: scaleX(1.00); }
  12%  { transform: scaleX(0.68); }
  25%  { transform: scaleX(0.02); }
  38%  { transform: scaleX(0.68); }
  50%  { transform: scaleX(1.00); }
  62%  { transform: scaleX(0.68); }
  75%  { transform: scaleX(0.02); }
  88%  { transform: scaleX(0.68); }
  100% { transform: scaleX(1.00); }
}

.app-prism-icon {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prism-logo-svg {
  width: 100%;
  height: 100%;
}

.diamond-outer {
  fill: none;
  stroke: var(--text);
  stroke-width: 3;
}

.diamond-inner {
  fill: #1d4ed8;
  animation: diamond-spin 9s linear infinite;
  will-change: transform;
  transform-box: fill-box;
  transform-origin: center;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.app-name {
  display: flex;
  justify-content: space-between;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1;
  width: 100%;
}

.app-tagline {
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
  white-space: nowrap;
}

/* ═══ MAIN ═══ */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ═══ ISSUE AREA ═══ */
.issue-area {
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.recent-wrap {
  position: relative;
}

.issue-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  box-shadow: var(--shadow);
}

.issue-textarea::placeholder { color: var(--text-muted); }

.issue-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}

.context-textarea { min-height: 72px; }

/* Character counter */
.char-counter {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
  transition: color var(--transition);
  padding-right: 2px;
}
.char-counter.warn { color: var(--amber); font-weight: 600; }
.char-counter.limit { color: var(--red); font-weight: 700; }

.issue-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-analyze {
  font-size: 16px;
  padding: 13px 48px;
}

/* ═══ BUTTONS ═══ */
.btn-analyze {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 28px;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.btn-analyze:hover:not(:disabled) { background: var(--accent-dim); transform: translateY(-1px); }
.btn-analyze:active:not(:disabled) { transform: translateY(0); }

.btn-analyze:disabled {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-analyze svg { flex-shrink: 0; }

/* Incomplete state — button is clickable and shows guidance message on tap */
.btn-analyze.btn-not-ready {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
}
/* All 3 lenses chosen but no question yet — amber outline signals "almost ready" */
.btn-analyze.slots-ready {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  opacity: 0.85;
}

@keyframes btn-shimmer {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(450%); }
}

/* Analyzing state — override :disabled gray, add sweeping shimmer */
.btn-analyze.analyzing,
.btn-analyze.analyzing:disabled {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important;
  cursor: wait !important;
  position: relative;
  overflow: hidden;
  transform: none;
}

.btn-analyze.analyzing::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  animation: btn-shimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 20px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-clear:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.btn-clear:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* Card expand / collapse — all screen sizes */
.section-collapsed { display: none; }

.card-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border-muted);
  color: var(--accent);
  padding: 10px;
  cursor: pointer;
  transition: background var(--transition);
}
.card-expand-btn:hover { background: var(--bg-elevated); }

.card-collapse-btn { display: none; }

.panel-expanded .section-collapsed { display: block; }
.panel-expanded .card-expand-btn { display: none; }
.panel-expanded .card-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border-muted);
  color: var(--text-muted);
  padding: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.panel-expanded .card-collapse-btn:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-dim); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  color: var(--text-dim);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-faint);
}

.btn-outline.btn-sm { font-size: 13px; padding: 6px 12px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.btn-text:hover { color: var(--text); background: var(--bg-elevated); }
.btn-text.btn-sm { font-size: 12px; padding: 4px 6px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  width: 32px;
  height: 32px;
}
.btn-icon:hover { color: var(--text); background: var(--bg-elevated); }

/* ═══ RECENT DROPDOWN ═══ */
.recent-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.recent-dropdown.open { display: block; }

.recent-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background var(--transition), color var(--transition);
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: var(--bg-elevated); color: var(--text); }
.recent-item .recent-q { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item .recent-time { font-size: 11px; color: var(--text-muted); }
.recent-empty { padding: 14px; font-size: 14px; color: var(--text-muted); text-align: center; }

/* ═══ PANELS ═══ */
.panels-section { margin-bottom: 32px; }

.panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .panels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .panels-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.panel:hover {
  border-color: #a0aec0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.panel-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.panel-empty-icon {
  font-size: 32px;
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Empty lens slot — "Choose your lens" prompt */
.panel-choose-lens {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 140px;
  padding: 36px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-muted);
  cursor: pointer;
  text-align: center;
  transition: background var(--transition);
}
.panel-choose-lens:hover {
  background: var(--accent-faint);
}
.panel-choose-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  transition: background var(--transition), border-color var(--transition);
}
.panel-choose-lens:hover .panel-choose-icon {
  background: var(--accent-faint);
  border-style: solid;
}
.panel-choose-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.panel-choose-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Slot pill with no lens chosen */
.slot-pill-empty {
  border-style: dashed !important;
  opacity: 0.65;
}

/* Active slot overrides the faded/dashed empty state */
.slot-pill.active {
  border-style: solid !important;
  border-width: 2px !important;
  opacity: 1 !important;
  font-weight: 600;
}
.slot-pill.active.slot-pill-empty {
  color: #fff !important;
}

/* Panel Header */
.panel-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.panel-title {
  flex: 1;
  min-width: 0;
}

.panel-lens-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.panel-lens-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-faint);
}

.lens-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  margin-top: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* External link departure trigger (used on source items) */
.ext-link {
  color: #3b5bdb;
  text-decoration: none;
  border-bottom: 1px dotted #a5b4fc;
  transition: color var(--transition), border-color var(--transition);
}
.ext-link:hover { color: #1e40af; border-bottom-color: #1e40af; }

/* Departure modal footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-muted);
}
.btn-primary {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-dark, #a21caf); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* Lens-fit badge */
.fit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.fit-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.fit-strong {
  background: var(--green-faint);
  color: var(--green);
  border: 1px solid rgba(21,128,61,0.20);
}
.fit-partial {
  background: var(--amber-faint);
  color: var(--amber);
  border: 1px solid rgba(192,38,211,0.20);
}
.fit-conflict {
  background: var(--red-faint);
  color: var(--red);
  border: 1px solid rgba(220,38,38,0.20);
}

/* Panel Content */
.panel-content {
  padding: 4px 0 8px;
}

.analysis-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-muted);
}
.analysis-section:last-child { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.section-blind .section-label { color: var(--red); }
.section-echo .section-label { color: var(--text-muted); }

.section-bottom-line {
  background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
  border-bottom: 1px solid #ddd6fe;
}
.section-bottom-line .section-label {
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-bottom-line .section-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ═══ FOOTER ═══ */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(248,250,252,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-muted);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-pills {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-pill-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  padding: 4px;
}

.footer-pill-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.footer-pill-item:hover {
  color: var(--text);
  background: var(--bg-surface);
  text-decoration: none;
}

.footer-pill-group .footer-pill-sep {
  width: 1px;
  height: 14px;
  background: var(--border-muted);
  flex-shrink: 0;
}

/* Combined AI Limits | Privacy pill */
.footer-pill-split { gap: 0; padding-left: 12px; padding-right: 12px; }
.footer-pill-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
  pointer-events: none;
}
#privacy-btn-inner { cursor: pointer; }

/* ═══ SKELETON LOADING ═══ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, #e8edf2 50%, var(--bg-elevated) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}

.skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.skeleton-text { height: 14px; margin-bottom: 6px; }
.skeleton-text-sm { height: 12px; width: 60%; }
.skeleton-tag { height: 18px; width: 70px; border-radius: 4px; margin-top: 4px; }
.skeleton-badge { height: 20px; width: 110px; border-radius: 20px; }
.skeleton-label { height: 10px; width: 80px; margin-bottom: 8px; }
.skeleton-para { height: 13px; margin-bottom: 6px; }
.skeleton-para-sm { height: 13px; width: 70%; }

.skeleton-panel-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-muted);
}
.skeleton-section:last-child { border-bottom: none; }

.skeleton-status {
  margin: 4px 18px 0;
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
}

/* ═══ PANEL ERROR ═══ */
.panel-error {
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.panel-error-icon { font-size: 28px; color: var(--red); }
.panel-error-msg { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.panel-error-retry {
  background: none;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition);
}
.panel-error-retry:hover { background: var(--red-faint); }

/* ═══ BOTTOM BAR ═══ */
.bottom-bar {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding-bottom: 24px;
}

/* ═══ THREAD ═══ */
.thread-container {
  max-width: 1200px;
  margin: 0 auto;
}

.thread-round {
  margin-bottom: 32px;
}

.thread-round-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color var(--transition);
}
.thread-round-header:hover { border-color: var(--accent); }

.thread-round-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.thread-round-q {
  font-size: 15px;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-round-chevron {
  color: var(--text-muted);
  transition: transform var(--transition);
}
.thread-round-chevron.open { transform: rotate(180deg); }

.thread-round-panels {
  display: none;
}
.thread-round-panels.open {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) { .thread-round-panels.open { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .thread-round-panels.open { grid-template-columns: 1fr; } }

/* Follow-up area */
.followup-area {
  max-width: 800px;
  margin: 0 auto 32px;
}
.followup-area.hidden { display: none; }

.followup-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.followup-inner .issue-textarea { flex: 1; min-height: 72px; }

/* ═══ MODALS ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-sm { max-width: 440px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-muted);
  flex-shrink: 0;
}

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

.modal-close {
  color: var(--text-muted);
  font-size: 16px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body p { font-size: 15px; color: var(--text-dim); line-height: 1.65; }

.modal-hint {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-muted);
  flex-shrink: 0;
}

/* ═══ PODCLASH PROMO MODAL ═══ */
.podclash-modal {
  background: #0f0b1e;
  border: 1px solid rgba(167,139,250,0.35);
  box-shadow: 0 8px 40px rgba(88,28,203,0.35), var(--shadow-lg);
}
.podclash-modal-header {
  border-bottom: none;
  padding: 24px 24px 0;
}
.podclash-modal-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #cbd5e1;
}
.podclash-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.podclash-modal-close:hover { color: #fff; background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%); }

.podclash-modal-body { padding: 18px 24px 4px; gap: 10px; }
.podclash-modal-body p { color: #cbd5e1; font-size: 14px; line-height: 1.65; }
.podclash-eyebrow,
.podclash-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a78bfa;
  margin-top: 6px;
}

.podclash-modal-footer {
  border-top: none;
  justify-content: center;
  padding: 12px 24px 24px;
}
.podclash-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7 0%, #6366f1 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font);
  transition: opacity var(--transition);
}
.podclash-open-btn:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* Modal Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-muted);
  flex-shrink: 0;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tab-panel { display: none; flex-direction: column; gap: 10px; }
.tab-panel.active { display: flex; }

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input, .form-select {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; }

/* Lens Modal (legacy classes kept for safety) */
.lens-modal-body { gap: 20px; }

.lens-slot-group {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot-number {
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-lens-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.custom-lens-fields.hidden { display: none; }

/* Image Upload */
.image-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.image-drop-zone:hover, .image-drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-faint);
}
.image-drop-zone p { font-size: 15px; color: var(--text-dim); }

.image-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.image-preview-wrap.hidden { display: none; }

.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
}

.extracting-state {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
  padding: 12px;
}
.extracting-state.hidden { display: none; }

/* ═══ FEEDBACK / STAR RATING ═══ */
.star-rating {
  display: flex;
  gap: 6px;
}

.star {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  padding: 0;
  line-height: 1;
}
.star:hover, .star.active { color: var(--accent); transform: scale(1.15); }

/* ═══ INFO MODAL ═══ */
.info-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border-muted);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.info-item strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.info-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.info-body p { font-size: 15px; }

.info-indicators-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-indicators-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.info-indicator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.info-indicator-row strong { color: var(--text); }
.info-ind-badge { flex-shrink: 0; }
.info-ind-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}
.info-ind-src {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  border: none;
  color: var(--bg-surface);
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-action-btn {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: inherit;
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.toast-action-btn:hover { background: rgba(255,255,255,0.28); }


/* ═══ CONTENT GUARD OVERLAY ═══ */
.content-guard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1800;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.content-guard-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.content-guard-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.content-guard-icon {
  font-size: 36px;
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-guard-card p {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.content-guard-card .btn-primary {
  width: 100%;
  margin-top: 4px;
}

/* ═══ TOS OVERLAY ═══ */
.tos-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tos-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.tos-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tos-icon {
  font-size: 28px;
  background: var(--diamond-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tos-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-align: center;
}
.tos-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  width: 100%;
}
.tos-body p { margin: 0 0 12px; }
.tos-body ul {
  margin: 0 0 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tos-body li { list-style: disc; }
.tos-footer-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px !important;
}
.tos-accept-btn {
  display: block;
  margin: 8px auto 0;
  padding: 13px 48px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  background: var(--diamond-gradient);
  color: #fff;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.15s;
}
.tos-accept-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ═══ SPINNER ═══ */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══ UTILITY ═══ */
.hidden { display: none !important; }

strong { color: var(--text); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══ PORTRAIT LOCK OVERLAY ═══ */
.rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.rotate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
}
.rotate-inner svg { opacity: 0.5; animation: spin 2s linear infinite; }
.rotate-inner p { font-size: 16px; max-width: 220px; line-height: 1.5; }
@media (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .rotate-overlay { display: flex; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
  /* Header */
  .header-inner { padding: 10px 14px; }
  .app-prism-icon { width: 64px; height: 64px; }
  .app-name { font-size: 26px; }
  .app-tagline { font-size: 13px; }
  .header-brand { gap: 10px; }

  /* Main */
  .app-main { padding: 28px 12px 80px; }


  /* Issue area */
  .issue-toolbar { margin-bottom: 8px; }
  .issue-textarea { font-size: 15px; }

  /* Pills row — equal-width, never overflow the card */
  .issue-actions { gap: 5px; flex-wrap: nowrap; }
  .issue-actions > button,
  .issue-actions .recent-wrap #recent-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 3px !important;
    font-size: 11px !important;
    gap: 3px !important;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
  }
  .issue-actions > button svg,
  .issue-actions .recent-wrap #recent-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
  .resonance-info-overlay { max-height: 60%; }

  /* Panels */
  .panels-grid { gap: 12px; }
  .panel-header { padding: 14px 14px 10px; }
  .panel-avatar { width: 36px; height: 36px; font-size: 13px; }
  .lens-name { font-size: 14px; }
  .analysis-section { padding: 12px 14px; }
  .section-text { font-size: 14px; }
  .panel-choose-lens { min-height: 110px; padding: 28px 16px; gap: 8px; }
  .panel-choose-icon { width: 38px; height: 38px; }
  .panel-choose-text { font-size: 14px; }

  /* Modals — slide up from bottom */
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; width: 100%; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  #lens-modal { max-height: 92vh; }

  /* Lens picker */
  .slot-pills { gap: 6px; }
  .slot-pill { font-size: 11px; padding: 5px 10px 5px 6px; }
  .category-tile { padding: 9px 10px; gap: 8px; }
  .category-tile-label { font-size: 11px; }
  .category-tile-icon { font-size: 16px; }
  .lens-card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Thread */
  .followup-inner { flex-direction: column; }
  .thread-round-header { flex-wrap: wrap; gap: 6px; }


  /* TOS card */
  .tos-card { padding: 24px 20px 20px; }
  .tos-title { font-size: 18px; }
  .tos-body { font-size: 13px; }
}

/* ═══ LENS PICKER ═══ */
#lens-modal { max-width: 680px; }

.lens-picker-body {
  gap: 14px;
  padding: 16px 20px;
}

/* Slot pills */
.slot-pills {
  display: flex;
  gap: 8px;
}

.slot-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  flex: 1;
  min-width: 0;
  justify-content: center;
  text-align: center;
}
.slot-pill:hover { border-color: var(--accent); color: var(--accent); }

.slot-pill-num {
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slot-pill.active .slot-pill-num {
  background: var(--accent);
  color: #fff;
}

.slot-pill-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.slot-pill-cat {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.2;
}

/* Search */
/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
}

.category-tile {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.category-tile:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.category-tile-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}
.category-tile-info {
  flex: 1;
  min-width: 0;
}
.category-tile-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.category-tile-count {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.category-tile-arrow {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.5;
  transition: color var(--transition), opacity var(--transition);
}
.category-tile:hover .category-tile-arrow {
  color: var(--accent);
  opacity: 1;
}

/* Lenses view */
.picker-back-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.picker-back-btn:hover { opacity: 0.8; }

.picker-category-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.lens-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
@media (max-width: 480px) {
  .lens-card-grid { grid-template-columns: 1fr; }
}

.lens-card-wrapper {
  position: relative;
}

.lens-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: left;
  width: 100%;
}
.lens-card:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.lens-card.selected {
  border-color: var(--accent);
  background: var(--accent-faint);
  box-shadow: 0 0 0 2px var(--accent);
}

.lens-card-wiki {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}
.lens-card-wiki .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}
.lens-card-wrapper:hover .lens-card-wiki {
  opacity: 1;
}
.lens-card-wiki:hover {
  background: var(--accent-dark, #a21caf);
  transform: scale(1.08);
}
.lens-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  display: block;
}
.lens-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}

/* Search results */
.search-results { display: flex; flex-direction: column; gap: 14px; }
.search-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.search-no-results {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

/* Custom fields in picker */
.picker-custom-fields {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.picker-custom-fields.hidden { display: none; }

.custom-field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.custom-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
/* ── Onboarding card ── */
.onboarding-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: #fae8ff;
  border: 1.5px solid #e879f9;
  border-radius: var(--radius);
  margin-bottom: 14px;
  color: #3b0764;
}
.onboarding-card.hidden { display: none; }

.ob-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.ob-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-step-text {
  font-size: 13px;
  font-weight: 500;
  color: #3b0764;
  white-space: nowrap;
}
.ob-arrow {
  font-size: 13px;
  color: var(--accent);
  opacity: .55;
  flex-shrink: 0;
}
.ob-divider {
  border: none;
  border-top: 1px dashed #e879f9;
  margin: 0;
}
.ob-try-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-try-label {
  font-size: 12px;
  font-weight: 700;
  color: #3b0764;
  flex-shrink: 0;
}
.ob-today-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
  flex-shrink: 0;
}
.ob-chip-row {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ob-nav {
  background: none;
  border: none;
  font-size: 18px;
  color: #3b0764;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  opacity: .65;
  flex-shrink: 0;
}
.ob-nav:hover { opacity: 1; }
.ob-chip {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #3b0764;
  border: 1.5px dashed #e879f9;
  border-radius: 20px;
  padding: 4px 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.ob-chip:hover { background: rgba(192,38,211,.06); }
.ob-go-btn {
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.ob-go-btn:hover { opacity: .88; }
.ob-dismiss-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: #7e22ce;
  border: 1.5px solid #e879f9;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.ob-dismiss-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Mobile: stacked card */
@media (max-width: 700px) {
  .onboarding-card { padding: 16px; gap: 14px; }
  .ob-steps { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ob-arrow { display: none; }
  .ob-step-text { font-size: 14px; }
  .ob-try-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .ob-try-label { text-align: center; font-size: 13px; }
  .ob-today-label { text-align: center; font-size: 11px; }
  .ob-chip-row { justify-content: center; }
  .ob-chip {
    flex: 0 1 auto;
    max-width: 260px;
    font-size: 14px;
    padding: 6px 14px;
    text-align: center;
  }
  .ob-go-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: var(--radius);
    text-align: center;
  }
  .ob-dismiss-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    text-align: center;
  }
}

/* ── Unified issue input card ── */
.issue-card {
  border: 1.5px solid #334155;
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
}

.issue-card-steps {
  padding: 16px 20px 14px;
  justify-content: center;
}

.issue-card .ob-step-num {
  background: #1e293b;
}

.issue-card .ob-step-text {
  color: var(--text);
}

.issue-card .ob-arrow {
  color: #64748b;
  opacity: 1;
}

.issue-card-divider {
  border: none;
  border-top: 1.5px solid #000;
  margin: 0;
}

.issue-card .issue-textarea {
  border: none;
  border-radius: 0;
  box-shadow: none;
  resize: none;
  background: transparent;
}

.issue-card .issue-textarea:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.issue-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 10px;
}

.surprise-btn {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: 1.5px solid #334155;
  border-radius: var(--radius);
  padding: 5px 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.surprise-btn:hover:not(:disabled) {
  background: #334155;
  color: #fff;
}

.surprise-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .issue-card-steps { padding: 14px 16px 12px; }
  .issue-card .ob-step-text { font-size: 14px; }
}

/* ── Nudge strip (post-analysis) ── */
.hint-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fae8ff;
  border: 1.5px solid #e879f9;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: #3b0764;
}
.hint-strip.hidden { display: none; }
.hint-dismiss {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #e879f9;
  border-radius: 20px;
  background: transparent;
  color: #3b0764;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}
.hint-dismiss:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Combo quick-start pills ── */
.combo-section {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.combo-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}
.combo-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.combo-pill {
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, color .15s, background .15s;
}
.combo-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }

/* ── Empty slot hint ── */
.panel-choose-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-save-lens {
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-save-lens:hover {
  background: var(--accent);
  color: #fff;
}
.saved-lens-delete {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}
.saved-lens-delete:hover { color: #dc2626; background: #fee2e2; }
.category-tile-mine { border-color: var(--accent); }
.category-tile-mine .category-tile-icon { color: var(--accent); }

/* Further Reading (sources) section */
.section-sources .section-label { color: var(--text-muted); }
.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sources-list li { font-size: 13px; line-height: 1.5; }
.source-link {
  color: #3b5bdb;
  text-decoration: none;
  border-bottom: 1px dotted #a5b4fc;
  transition: color var(--transition), border-color var(--transition);
}
.source-link:hover { color: #1e40af; border-bottom-color: #1e40af; }


/* ── Shared analysis banner ── */
.shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-faint);
  border: 1px solid rgba(192,38,211,0.20);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.shared-banner.hidden { display: none; }

/* ── Share URL row in modal ── */
.share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-url-input {
  flex: 1;
  font-size: 13px;
  color: var(--text-dim);
  cursor: text;
  min-width: 0;
}

/* ── Privacy modal ── */
.privacy-body { gap: 0; padding: 0; }
.privacy-body .privacy-scroll {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.privacy-updated {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.privacy-scroll p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 10px;
}
.privacy-scroll h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 8px;
}
.privacy-scroll ul {
  margin: 0 0 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.privacy-scroll li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  list-style: disc;
}
.privacy-delete-section {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--red-faint);
  border: 1px solid rgba(220,38,38,0.18);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy-delete-section h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.privacy-delete-section p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.btn-delete-data {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}
.btn-delete-data:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* ═══ RESONANCE MAP — Split Orbit ═══ */

.resonance-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 100%;
}

.resonance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  gap: 8px;
  border-bottom: 1px solid var(--border-muted);
}

.resonance-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resonance-title-icon { color: var(--accent); font-size: 17px; }

.resonance-title-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* ── Two-column body ── */

.resonance-body {
  display: flex;
}

.resonance-half {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.resonance-half-divider {
  width: 1px;
  background: var(--border-muted);
  flex-shrink: 0;
}

.resonance-half-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-muted);
}

.for-title     { color: #1d4ed8; }
.against-title { color: #b45309; justify-content: flex-end; }

/* ── 3D Orbit Canvas ── */

.resonance-orbit-container {
  position: relative;
  width: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
  min-height: 280px;
  flex: 1;
}

.resonance-orbit-container canvas {
  display: block;
  width: 100% !important;
}

/* ── Node Labels (DOM overlay) ── */

.resonance-labels {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.resonance-node-label,
.label-half {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  pointer-events: none;
  line-height: 1;
}

.resonance-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Info Overlay (slides up from bottom of each half on node click) ── */

.resonance-info-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: auto;
  max-height: 60%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-muted);
  padding: 12px 16px 14px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
  overflow: hidden;
}

/* Badge is redundant with the half-title — hide it in the overlay */
.resonance-info-overlay .resonance-panel-badge { display: none; }

.resonance-info-overlay.active { display: flex; }

.resonance-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.resonance-panel-close {
  width: 22px; height: 22px;
  border: 1px solid var(--border-muted);
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.resonance-panel-close:hover { background: var(--border); color: var(--text); }

.resonance-panel-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  align-self: flex-start;
}

.badge-aligned {
  background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe;
}
.badge-opposed {
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
}

/* Overlay text matches main analysis card typography */
.resonance-panel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.resonance-panel-domain {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.resonance-panel-reason {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  overflow-y: auto;
}

/* ── Skeleton ── */

.resonance-skeleton { padding: 0; }

.resonance-skeleton-bar {
  display: block;
  width: 100%;
  height: 380px;
  border-radius: 0;
}

/* ── Error ── */

.resonance-error {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-elevated);
}

.resonance-error p { margin-bottom: 14px; }

/* ── Mobile: stack halves vertically ── */

@media (max-width: 600px) {
  .resonance-body { flex-direction: column; }
  .resonance-half-divider { width: 100%; height: 1px; }
  .resonance-orbit-container { min-height: 240px; }
  .resonance-info-overlay { max-height: 60%; }
  .resonance-node-label, .label-half { font-size: 10px; }
  .resonance-skeleton-bar { height: 260px; }
}

/* ── Rotating Example Issues ── */

.rotating-issue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 0;
  margin-bottom: 14px;
}

.rotating-issue-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
}

.rotating-issue-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.rotating-issue-nav {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  padding: 0 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s;
  user-select: none;
}
.rotating-issue-nav:hover { color: var(--accent); }

.rotating-issue-chip {
  flex: 1;
  min-width: 0;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1.4;
}
.rotating-issue-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192, 38, 211, 0.04);
}

.rotating-issue-go {
  display: block;
  width: 100%;
  background: none;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  padding: 8px 16px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.rotating-issue-go:hover {
  background: var(--accent);
  color: #fff;
}

/* Terms dropdown menu */
.footer-pill-menu-wrap {
  position: relative;
}
.footer-pill-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 4px;
  display: none;
  flex-direction: column;
  min-width: 180px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  z-index: 400;
}
.pdf-menu-divider {
  border-top: 1px solid var(--border-muted);
  margin: 4px 0;
}
.footer-pill-menu.open { display: flex; }
.footer-pill-menu-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background var(--transition);
}
.footer-pill-menu-item:hover,
.footer-pill-menu-item:active { background: var(--bg-surface); }
#terms-menu-btn.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-surface);
}

/* Info modal credit */
.info-credit {
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}
.info-credit a {
  color: var(--text-muted);
  text-decoration: none;
}
.info-credit a:hover { color: var(--text); }

/* Mobile footer */
@media (max-width: 480px) {
  .app-footer { padding: 8px 10px; }
  .footer-pills { gap: 6px; }
  .footer-pill-item { padding: 5px 10px; font-size: 11px; }
  .footer-pill-group { padding: 3px; }
}

/* Footer share pill lit state */
#footer-share-btn.share-lit {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#pdf-menu-btn.export-lit {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#pdf-menu-btn.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-surface);
}

/* PDF all-lenses progress bar */
.pdf-progress {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  z-index: 500;
  min-width: 240px;
  max-width: 320px;
  text-align: center;
}
.pdf-progress.hidden { display: none; }
#pdf-progress-text {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.pdf-progress-track {
  height: 4px;
  background: var(--border-muted);
  border-radius: 2px;
  overflow: hidden;
}
#pdf-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Recent pill inside issue-actions */
.issue-actions .recent-wrap {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}
.issue-actions .recent-wrap #recent-btn {
  width: 100%;
  justify-content: center;
}

/* Fit badge + quality dot row inside panel header */
.fit-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quality voice-authenticity dot */
.quality-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: default;
}
.quality-dot--strong  { background: #22c55e; }
.quality-dot--partial { background: #f59e0b; }
.quality-dot--weak    { background: #ef4444; }

/* Source verification badges */
.source-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}
.source-badge--verified   { background: #dcfce7; color: #166534; }
.source-badge--unverified { background: #fef9c3; color: #854d0e; }

/* Historical Echo unverified caveat */
.echo-caveat {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  font-style: italic;
}

/* ══════════════════════════════════════════
   LOAD SCREEN
   ══════════════════════════════════════════ */

.load-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s ease;
}

.load-content {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 22vh 28px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Logo */
.load-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.load-prism-icon {
  width: 110px !important;
  height: 110px !important;
}

.load-brand-text {
  align-items: center !important;
}

.load-app-name {
  font-size: 52px !important;
  width: 232px !important;
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1;
}

/* Beta badge */
.load-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-muted);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
}
.load-beta-badge:hover { opacity: 0.75; border-color: var(--accent); }
.load-beta-badge .beta-badge-underline {
  text-transform: none;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Headline + sub */
.load-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.45;
  margin: 0;
  max-width: 520px;
}

.load-sub {
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.7;
  margin: 0;
  max-width: 460px;
}

/* Rotating quotes */
.load-quotes-outer {
  width: 100%;
}

.load-quotes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.38s ease;
}

.load-issue-q {
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.load-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.load-perspectives-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0;
}

.load-lens-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.load-lens-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.load-lens-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.load-lens-quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* Entry / ToS */
.load-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding-top: 4px;
}

.load-tos-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  margin: 0;
  max-width: 400px;
}

.load-tos-link {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.load-tos-link:hover { opacity: 0.75; }

.load-enter-btn {
  display: inline-block;
  padding: 15px 60px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(192,38,211,0.28);
}
.load-enter-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(192,38,211,0.36);
}

@media (max-width: 700px) {
  .load-content { padding: 18vh 20px 52px; gap: 24px; }
  .load-prism-icon { width: 80px !important; height: 80px !important; }
  .load-app-name { font-size: 38px !important; width: 170px !important; }
  .load-headline { font-size: 19px; }
  .load-sub { font-size: 15px; }
  .load-issue-q { font-size: 15px; }
  .load-card { padding: 18px 20px; }
  .load-lens-quote { font-size: 13px; }
  .load-enter-btn { padding: 14px 44px; font-size: 15px; }
}
