.ebp-shell { display: flex; flex-direction: column; gap: 16px; }
.ebp-filters { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, var(--surface)); }
.ebp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ebp-pill { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--surface)); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.ebp-pill.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ebp-subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ebp-picker-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ebp-select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 22%, var(--surface)); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.ebp-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.ebp-stats strong { color: var(--ink); }
.ebp-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; }
.ebp-stage { display: flex; flex-direction: column; gap: 12px; }
.ebp-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg); }
.ebp-name { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.ebp-hint { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
.ebp-tier { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--primary); color: var(--surface); }
.ebp-tier[data-tier="2"] { background: var(--ink); }
.ebp-tier[data-tier="3"] { background: var(--accent); }
.ebp-canvas-wrap { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--ink) 22%, var(--surface)); background: var(--bg); overflow: hidden; }
.ebp-canvas { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.ebp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ebp-side { display: flex; flex-direction: column; gap: 16px; }
.ebp-card { padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 12%, var(--bg)); }
.ebp-card-title { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.2; }
.ebp-big { font-family: 'Fraunces', Georgia, serif; font-size: 36px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.ebp-history { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ebp-hist-row { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px; background: var(--surface); font-size: 14px; }
@media (max-width: 640px) {
  .ebp-grid { grid-template-columns: 1fr; }
  .ebp-actions .btn { flex: 1 1 auto; }
}