/* =================================================================
   extras.css — supporting artboards
   ================================================================= */

/* Shared artboard scaffolding (for non-shell screens) */
.sm-pad {
  padding: 32px 36px;
  height: 100%;
  overflow: auto;
  display: flex; flex-direction: column; gap: 22px;
}
.sm-head { display: flex; flex-direction: column; gap: 6px; }
.sm-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sm-sub { font-size: 13px; color: var(--text-muted); max-width: 720px; line-height: 1.5; }

.sm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }

.sm-col { display: flex; flex-direction: column; gap: 10px; }
.sm-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--text-muted);
}
.sm-token {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.sm-token .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

/* =================================================================
   Empty state
   ================================================================= */
.ai-empty {
  padding: 32px 18px 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.ai-empty-art { margin-bottom: 18px; opacity: 0.95; }
.ai-empty-title {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.ai-empty-sub {
  font-size: 12.5px; color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 18px;
}
.ai-empty-hints {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; max-width: 320px;
}
.ai-empty-hint {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  font-size: 12.5px; color: var(--text-soft);
  transition: all .15s ease;
}
.ai-empty-hint:hover {
  border-color: oklch(0.71 0.16 295 / 0.4);
  background: var(--violet-bg);
  color: var(--violet);
}

/* =================================================================
   Copilot full-screen loader
   ================================================================= */
.cp-loader-overlay {
  position: absolute; inset: 0;
  background: oklch(0.10 0.005 60 / 0.55);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
}
.cp-loader {
  width: 100%; max-width: 460px;
  padding: 36px 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 50px 120px -30px oklch(0 0 0 / 0.75),
              0 0 80px -10px var(--violet-glow);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.cp-loader-ring {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.cp-loader-ring .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid oklch(0.71 0.16 295 / 0.18);
}
.cp-loader-ring .ring.r1 {
  border-top-color: var(--violet);
  animation: cpl-spin 2.4s linear infinite;
  box-shadow: 0 0 24px var(--violet-glow);
}
.cp-loader-ring .ring.r2 {
  inset: 8px;
  border-top-color: oklch(0.71 0.16 295 / 0.6);
  animation: cpl-spin 1.6s linear infinite reverse;
}
.cp-loader-ring .ring.r3 {
  inset: 16px;
  border-top-color: oklch(0.71 0.16 295 / 0.9);
  animation: cpl-spin 1.0s linear infinite;
}
@keyframes cpl-spin { to { transform: rotate(360deg); } }
.cp-loader-ring .dot {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--violet);
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 0 24px var(--violet-glow-2);
}
.cp-loader-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cp-loader-tag {
  width: 100%;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 16px;
}
.cp-loader-tag .tag {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.005em;
}
.cp-loader-tag .tag .check {
  width: 14px; text-align: center;
  font-size: 11px;
}
.cp-loader-tag .tag.active {
  color: var(--text);
}
.cp-loader-tag .tag.active .check {
  color: var(--violet);
  animation: cpl-pulse 1.2s ease-in-out infinite;
}
@keyframes cpl-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.cp-loader-foot {
  font-size: 11.5px; color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

/* =================================================================
   Button states strip
   ================================================================= */
.bs-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.bs-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--text);
  align-self: center;
}
.bs-cells {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.bs-cell {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.bs-state {
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.bs-render {
  display: flex; align-items: center;
  min-height: 48px;
}

/* =================================================================
   Inline error (prompt overflow / inline warnings — kept for future)
   ================================================================= */
.ai-inline-error {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: oklch(0.70 0.18 25 / 0.07);
  border: 1px solid oklch(0.70 0.18 25 / 0.35);
  border-radius: var(--r);
  color: var(--text);
}
.ai-inline-error-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: oklch(0.70 0.18 25 / 0.18);
  color: oklch(0.85 0.12 25);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.ai-inline-error-body { flex: 1; min-width: 0; }
.ai-inline-error-title {
  font-size: 12.5px; font-weight: 500;
  color: oklch(0.88 0.10 25);
}
.ai-inline-error-title .num { font-family: var(--font-mono); }
.ai-inline-error-sub {
  font-size: 11.5px; color: var(--text-muted);
  margin-top: 2px;
}
