/* ---------------------------------------------------------------------------
   Prism free tools — shared chrome for the deterministic (no-AI) visual makers.
   Dark surface, Prism violet/cyan accents. Used by the chart/diagram/flowchart/
   card maker pages and the shared PrismVisualResult component.
--------------------------------------------------------------------------- */
.prism-tool { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1rem 4rem; color: #e2e8f0; }

.prism-badge {
    display: inline-block; border: 1px solid rgba(139, 92, 246, .45); color: #c4b5fd;
    border-radius: 14px; padding: 2px 12px; font-size: .8rem; font-weight: 700; margin-bottom: .75rem;
}
.prism-h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: #f8fafc; margin: 0 0 .6rem; letter-spacing: -.02em; }
.prism-h1 .grad {
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.prism-sub { color: #94a3b8; max-width: 760px; line-height: 1.65; }

.prism-card {
    background: rgba(15, 23, 42, .55); border: 1px solid rgba(34, 211, 238, .14);
    border-radius: 14px; padding: 1.5rem; margin-top: 1.25rem;
}
.prism-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.prism-grow { flex: 1 1 260px; min-width: 220px; }

.prism-actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.prism-muted { color: #64748b; font-size: .85rem; }

/* Step rows for diagram / flowchart makers */
.prism-steps { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.prism-step {
    display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
    background: rgba(2, 6, 23, .5); border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 10px; padding: .6rem .7rem;
}
.prism-step-num {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px; font-weight: 800; font-size: .8rem;
    display: flex; align-items: center; justify-content: center; color: #0a0e1a;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
}

/* Result pane (PrismVisualResult) */
.prism-result {
    background: rgba(15, 23, 42, .55); border: 1px solid rgba(34, 211, 238, .14);
    border-radius: 14px; padding: 1.25rem; margin-top: 1.25rem;
}
.prism-result-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.prism-result-tag {
    display: inline-block; border: 1px solid rgba(34, 211, 238, .35); color: #67e8f9;
    border-radius: 12px; padding: 2px 10px; font-size: .8rem; font-weight: 700;
}
.prism-result-actions { display: flex; gap: .6rem; align-items: center; }
.prism-download {
    display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
    border: 1px solid rgba(139, 92, 246, .5); color: #c4b5fd; background: transparent;
    border-radius: 8px; padding: 5px 12px; font-size: .82rem; font-weight: 600;
}
.prism-download:hover { background: rgba(139, 92, 246, .12); }

.prism-preview {
    background: #ffffff; color: #0f172a; border-radius: 10px; padding: 1.5rem;
    margin-top: .9rem; max-height: 560px; overflow: auto; display: flex; justify-content: center;
}
.prism-preview figure { margin: 0 !important; }
.prism-raw {
    width: 100%; min-height: 120px; margin-top: .9rem; background: #0b1120; color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .2); border-radius: 10px; padding: .75rem;
    font-family: monospace; font-size: .8rem;
}
.prism-attrib { color: #94a3b8; font-size: .85rem; margin: .9rem 0 0; line-height: 1.6; }
.prism-attrib a { color: #22d3ee; }

.prism-links { margin-top: 1.5rem; color: #64748b; font-size: .85rem; }
.prism-links a { color: #22d3ee; text-decoration: none; }
.prism-links a:hover { text-decoration: underline; }
