/* ═══════════════════════════════════════════════════════════════════════════
   Scribe — AI Blog Creator
   Accent : #f59e0b  (amber)
   Dark bg: #0d0800
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.scribe-page {
    background: #0d0800;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: -96px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.scribe-header {
    background: linear-gradient(140deg, #1a0f00 0%, #261700 55%, #1c1200 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    position: relative;
    height: auto;
    margin: -60px 0 -110px 0;
}

/* Glow orb */
.scribe-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.scribe-header__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.scribe-badge {
    display: inline-flex;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 12px;
}

.scribe-hiw-btn {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}
.scribe-hiw-btn:hover { background: rgba(245, 158, 11, 0.22); }

.scribe-header__left { flex: 1; min-width: 0; }

.scribe-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.scribe-header__subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.50);
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

.scribe-header__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-self: flex-end;
}

.scribe-chip {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.20);
    color: rgba(255, 200, 80, 0.80);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    white-space: nowrap;
}

/* ── Body ────────────────────────────────────────────────────────────────── */
.scribe-body {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 1 — Seed + Refinements
   ═══════════════════════════════════════════════════════════════════════════ */
.scribe-seed {
    max-width: 820px;
    margin: 0 auto;
}

/* ── Input ───────────────────────────────────────────────────────────────── */
.scribe-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.scribe-input-icon {
    position: absolute;
    left: 18px;
    font-size: 1.15rem;
    color: rgba(245, 158, 11, 0.45);
    pointer-events: none;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

.scribe-input {
    width: 100%;
    background: rgba(245, 158, 11, 0.06);
    border: 1.5px solid rgba(245, 158, 11, 0.22);
    border-radius: 14px;
    padding: 16px 52px 16px 48px;
    font-size: 1.02rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.18s, background 0.18s;
    font-family: inherit;
}
.scribe-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.scribe-input:focus {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.09);
}
.scribe-input:disabled { opacity: 0.55; cursor: not-allowed; }

.scribe-input-spinner {
    position: absolute;
    right: 18px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245, 158, 11, 0.22);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: scribe-spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes scribe-spin { to { transform: rotate(360deg); } }

/* ── Refinement chips ────────────────────────────────────────────────────── */
.scribe-refinements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    animation: scribe-fade-up 0.28s ease;
}

@keyframes scribe-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.scribe-refine-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.scribe-refine-label {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    min-width: 70px;
    flex-shrink: 0;
    padding-top: 7px;
}

.scribe-refine-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.scribe-refine-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    font-size: 0.80rem;
    font-weight: 500;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}
.scribe-refine-chip:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.38);
    color: #fbbf24;
}
.scribe-refine-chip.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.52);
    color: #fbbf24;
    font-weight: 700;
}

/* ── Config: tone + count ────────────────────────────────────────────────── */
.scribe-config {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 26px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.scribe-config-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scribe-config-label {
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    min-width: 44px;
    flex-shrink: 0;
}

.scribe-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scribe-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 4px 13px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scribe-pill:hover {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.32);
    color: #fbbf24;
}
.scribe-pill.active {
    background: rgba(245, 158, 11, 0.20);
    border-color: rgba(245, 158, 11, 0.52);
    color: #f59e0b;
    font-weight: 700;
}

.scribe-count-btns { display: flex; gap: 6px; }

.scribe-count-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 18px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scribe-count-btn:hover {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.32);
    color: #fbbf24;
}
.scribe-count-btn.active {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.55);
    color: #f59e0b;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */
.scribe-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.scribe-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.96rem;
    font-weight: 700;
    padding: 13px 28px;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.30);
}
.scribe-cta-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.40);
}
.scribe-cta-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.scribe-btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: scribe-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.scribe-cta-context {
    font-size: 0.77rem;
    color: rgba(245, 158, 11, 0.65);
    margin: 0;
    font-style: italic;
}

.scribe-error {
    color: #fca5a5;
    font-size: 0.84rem;
    margin: 10px 0 0;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.20);
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 2 — Blog Plan
   ═══════════════════════════════════════════════════════════════════════════ */
.scribe-plan-section { animation: scribe-fade-up 0.32s ease; }

.scribe-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.scribe-section-title {
    font-size: 1.30rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.scribe-section-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
    margin: 0;
}

.scribe-plan-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.scribe-back-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.60);
    border-radius: 10px;
    font-size: 0.83rem;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scribe-back-btn:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }

.scribe-gen-btn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 22px;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 3px 14px rgba(217, 119, 6, 0.28);
}
.scribe-gen-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.scribe-gen-btn:disabled { opacity: 0.50; cursor: not-allowed; transform: none; box-shadow: none; }

/* Plan grid */
.scribe-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.scribe-plan-card {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 16px;
    transition: border-color 0.18s, opacity 0.22s;
    align-items: flex-start;
}
.scribe-plan-card:hover:not(.excluded) { border-color: rgba(245, 158, 11, 0.28); }
.scribe-plan-card.excluded {
    opacity: 0.35;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}

.scribe-plan-card__num {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.55);
    letter-spacing: 0.06em;
    flex-shrink: 0;
    padding-top: 4px;
    min-width: 22px;
}

.scribe-plan-card__content {
    flex: 1;
    min-width: 0;
}

/* Inline-editable title — looks like text, acts like input */
.scribe-plan-card__title {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 0.90rem;
    font-weight: 600;
    padding: 0 0 6px;
    margin-bottom: 8px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s;
    line-height: 1.4;
}
.scribe-plan-card__title:focus { border-color: rgba(245, 158, 11, 0.50); }
.scribe-plan-card__title::placeholder { color: rgba(255, 255, 255, 0.28); }

.scribe-plan-card__hook {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
    margin: 0 0 10px;
    line-height: 1.55;
}

.scribe-plan-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.scribe-plan-tag {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 9px;
    white-space: nowrap;
}
.scribe-plan-tag--muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.42);
}

/* Include/exclude toggle */
.scribe-plan-toggle {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    border: 1px solid;
    line-height: 1;
}
.scribe-plan-toggle.on {
    background: rgba(245, 158, 11, 0.20);
    border-color: rgba(245, 158, 11, 0.48);
    color: #f59e0b;
}
.scribe-plan-toggle.off {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.35);
}
.scribe-plan-toggle.on:hover  { background: rgba(245, 158, 11, 0.32); }
.scribe-plan-toggle.off:hover { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.28); color: #fbbf24; }

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 3 — Blog Output
   ═══════════════════════════════════════════════════════════════════════════ */
.scribe-output-section { animation: scribe-fade-up 0.32s ease; }

.scribe-output-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.scribe-action-btn {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scribe-action-btn:hover { background: rgba(245, 158, 11, 0.24); }
.scribe-action-btn.copied {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.28);
    color: #4ade80;
}
.scribe-action-btn.ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.55);
}
.scribe-action-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

/* Blog list */
.scribe-blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.scribe-blog-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.18s;
}
.scribe-blog-card:not(.loading):hover { border-color: rgba(245, 158, 11, 0.22); }
.scribe-blog-card.loading { border-color: rgba(245, 158, 11, 0.12); }
.scribe-blog-card.errored { border-color: rgba(239, 68, 68, 0.25); }

.scribe-blog-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    min-height: 60px;
}
.scribe-blog-card.loading .scribe-blog-card__head { cursor: default; }

.scribe-blog-num {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.52);
    letter-spacing: 0.06em;
    flex-shrink: 0;
    min-width: 20px;
}

.scribe-blog-info {
    flex: 1;
    min-width: 0;
}

.scribe-blog-title {
    font-size: 0.93rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scribe-blog-title--error { color: #fca5a5; font-style: italic; }

.scribe-blog-meta {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

.scribe-blog-card__btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.scribe-copy-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    font-size: 0.77rem;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.scribe-copy-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.30);
    color: #fbbf24;
}
.scribe-copy-btn.copied {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #4ade80;
}

.scribe-chevron {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.30);
    transition: transform 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.scribe-chevron.open { transform: rotate(180deg); }

/* Loading pulse dot */
.scribe-blog-pulse {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: scribe-pulse-dot 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes scribe-pulse-dot {
    0%, 100% { opacity: 0.35; transform: scale(1);   }
    50%       { opacity: 1;    transform: scale(1.35); }
}

/* Skeleton shimmer */
.scribe-skeleton {
    display: block;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.10) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    animation: scribe-shimmer 1.5s infinite;
    border-radius: 4px;
}
.scribe-skeleton--title { height: 17px; width: 60%; }
.scribe-skeleton--meta  { height: 11px; width: 28%; margin-top: 5px; }
@keyframes scribe-shimmer {
    from { background-position: 200% 0;  }
    to   { background-position: -200% 0; }
}

/* Expanded blog body */
.scribe-blog-card__body {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px 24px 24px;
}

/* SEO meta row */
.scribe-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 8px;
}
.scribe-meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #f59e0b;
    white-space: nowrap;
    padding-top: 2px;
    flex-shrink: 0;
}
.scribe-meta-text {
    font-size: 0.81rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
    line-height: 1.55;
}

/* Blog content — rendered as clean pre-formatted markdown */
.scribe-blog-content {
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.80;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════════
   How It Works Modal
   ═══════════════════════════════════════════════════════════════════════════ */
.scribe-hiw-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: scribe-fade-up 0.20s ease;
}

.scribe-hiw-modal {
    background: #1a1100;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 18px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.15) transparent;
}

.scribe-hiw-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    font-size: 0.80rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.scribe-hiw-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.scribe-hiw-top { margin-bottom: 22px; }

.scribe-hiw-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f59e0b;
    margin: 0 0 6px;
}
.scribe-hiw-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.scribe-hiw-desc {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.52);
    margin: 0;
    line-height: 1.6;
}

.scribe-hiw-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.scribe-hiw-step__icon {
    font-size: 1.05rem;
    color: #f59e0b;
    min-width: 22px;
    padding-top: 1px;
    flex-shrink: 0;
}
.scribe-hiw-step__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}
.scribe-hiw-step__body {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.52);
    margin: 0;
    line-height: 1.58;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Light theme
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .scribe-page   { background: #fffbeb; }
html[data-theme="light"] .scribe-header {
    background: linear-gradient(140deg, #fef3c7 0%, #fde68a 55%, #fef3c7 100%);
    border-bottom-color: rgba(180, 83, 9, 0.20);
}
html[data-theme="light"] .scribe-header__title    { color: #1c0f00; }
html[data-theme="light"] .scribe-header__subtitle { color: rgba(28, 15, 0, 0.58); }
html[data-theme="light"] .scribe-badge     { background: rgba(245,158,11,0.15); color: #92400e; border-color: rgba(245,158,11,0.35); }
html[data-theme="light"] .scribe-hiw-btn  { background: rgba(245,158,11,0.12); color: #92400e; border-color: rgba(245,158,11,0.30); }
html[data-theme="light"] .scribe-chip     { background: rgba(245,158,11,0.12); color: #92400e; border-color: rgba(245,158,11,0.25); }
html[data-theme="light"] .scribe-input    { background: #fff; border-color: rgba(245,158,11,0.32); color: #1c0f00; }
html[data-theme="light"] .scribe-input::placeholder { color: rgba(28,15,0,0.32); }
html[data-theme="light"] .scribe-input:focus { border-color: #f59e0b; background: #fffdf5; }
html[data-theme="light"] .scribe-input-icon   { color: rgba(180,83,9,0.45); }
html[data-theme="light"] .scribe-refine-label { color: rgba(0,0,0,0.42); }
html[data-theme="light"] .scribe-refine-chip  { background: #fff; border-color: rgba(0,0,0,0.11); color: rgba(0,0,0,0.68); }
html[data-theme="light"] .scribe-refine-chip:hover { background: rgba(245,158,11,0.10); border-color: #f59e0b; color: #92400e; }
html[data-theme="light"] .scribe-refine-chip.active { background: rgba(245,158,11,0.18); border-color: #f59e0b; color: #92400e; }
html[data-theme="light"] .scribe-config        { background: rgba(0,0,0,0.028); border-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .scribe-config-label  { color: rgba(0,0,0,0.42); }
html[data-theme="light"] .scribe-pill          { background: #fff; border-color: rgba(0,0,0,0.11); color: rgba(0,0,0,0.65); }
html[data-theme="light"] .scribe-pill.active   { background: rgba(245,158,11,0.15); border-color: #f59e0b; color: #92400e; }
html[data-theme="light"] .scribe-count-btn     { background: #fff; border-color: rgba(0,0,0,0.11); color: rgba(0,0,0,0.65); }
html[data-theme="light"] .scribe-count-btn.active { background: rgba(245,158,11,0.15); border-color: #f59e0b; color: #92400e; }
html[data-theme="light"] .scribe-section-title { color: #1c0f00; }
html[data-theme="light"] .scribe-section-sub   { color: rgba(0,0,0,0.48); }
html[data-theme="light"] .scribe-plan-card     { background: #fff; border-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .scribe-plan-card__title { color: #1c0f00; border-bottom-color: rgba(0,0,0,0.10); }
html[data-theme="light"] .scribe-plan-card__hook  { color: rgba(0,0,0,0.52); }
html[data-theme="light"] .scribe-plan-card__num   { color: rgba(180,83,9,0.60); }
html[data-theme="light"] .scribe-back-btn  { background: #fff; border-color: rgba(0,0,0,0.11); color: rgba(0,0,0,0.62); }
html[data-theme="light"] .scribe-blog-card { background: #fff; border-color: rgba(0,0,0,0.09); }
html[data-theme="light"] .scribe-blog-title  { color: #1c0f00; }
html[data-theme="light"] .scribe-blog-meta   { color: rgba(0,0,0,0.42); }
html[data-theme="light"] .scribe-blog-num    { color: rgba(180,83,9,0.55); }
html[data-theme="light"] .scribe-blog-card__body { border-top-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .scribe-blog-content { color: rgba(0,0,0,0.80); }
html[data-theme="light"] .scribe-copy-btn  { background: #f5f5f5; border-color: rgba(0,0,0,0.11); color: rgba(0,0,0,0.62); }
html[data-theme="light"] .scribe-chevron   { color: rgba(0,0,0,0.30); }
html[data-theme="light"] .scribe-meta-row  { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.20); }
html[data-theme="light"] .scribe-meta-text { color: rgba(0,0,0,0.62); }
html[data-theme="light"] .scribe-hiw-modal { background: #fff; border-color: rgba(245,158,11,0.25); }
html[data-theme="light"] .scribe-hiw-title { color: #1c0f00; }
html[data-theme="light"] .scribe-hiw-desc  { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .scribe-hiw-step  { border-top-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .scribe-hiw-step__title { color: #1c0f00; }
html[data-theme="light"] .scribe-hiw-step__body  { color: rgba(0,0,0,0.55); }
html[data-theme="light"] .scribe-hiw-close { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.45); }
html[data-theme="light"] .scribe-error { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.18); color: #991b1b; }
