/* Storyteller – intentionally uses the same visual system as the other Audio2Subtitle tools. */
.storyteller-panel{max-width:920px}
.storyteller-hero .tool-page-grid{align-items:start}

.story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.story-grid>div{min-width:0}

.storyteller-panel label{display:block;color:var(--muted);font-size:10px;margin:10px 0 5px;font-weight:700}
.storyteller-panel textarea,
.storyteller-panel input,
.storyteller-panel select{
    width:100%;
    box-sizing:border-box;
    background:#09101c;
    border:1px solid var(--line);
    border-radius:11px;
    color:#fff;
    padding:11px 12px;
    font:inherit;
    outline:none;
    -webkit-appearance:none;
    appearance:none;
    pointer-events:auto;
    position:relative;
    z-index:1;
}

.storyteller-panel select{
    min-height:43px;
    cursor:pointer;
    padding-right:38px;
    background-color:#0b1321;
    background-image:linear-gradient(45deg,transparent 50%,#98a5ba 50%),linear-gradient(135deg,#98a5ba 50%,transparent 50%);
    background-position:calc(100% - 17px) 18px,calc(100% - 12px) 18px;
    background-size:5px 5px,5px 5px;
    background-repeat:no-repeat;
}

.storyteller-panel select:hover{border-color:#ffffff22;background-color:#0e1727}
.storyteller-panel select:focus,
.storyteller-panel input:focus,
.storyteller-panel textarea:focus{border-color:#8068ff88;box-shadow:0 0 0 3px #8068ff12}
.storyteller-panel select option{background:#0f1625;color:#fff}

.storyteller-panel textarea{min-height:145px;resize:vertical}
.storyteller-panel #storyIdea{min-height:180px}

.story-result{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#ffffff06}
.story-output-head{display:flex;gap:10px;align-items:center}
.story-output-head input{font-size:18px;font-weight:800;flex:1}
.story-output-head span{font-size:10px;font-weight:800;color:var(--muted);white-space:nowrap}
.story-result textarea{min-height:110px;background:#09101c}
.edit-note{font-size:10px;color:#77849a}

.story-actions{display:flex;gap:8px;flex-wrap:wrap}
.story-actions button,.story-actions a{border:0;border-radius:11px;padding:11px 15px;font-weight:800;text-decoration:none;cursor:pointer}
.story-actions .secondary{background:#0b1321;border:1px solid var(--line)!important;color:#fff}
.story-actions .secondary:hover{background:#111b2d;border-color:#8068ff55!important}

.audio-box{margin-top:12px;display:grid;gap:10px}
.audio-box audio{width:100%}

.faq-grid{display:grid;gap:10px;max-width:900px;margin:auto}
.faq-grid details{background:#0d1422;border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.faq-grid summary{font-weight:800;cursor:pointer}
.faq-grid p{margin:10px 0 0;color:var(--muted);line-height:1.6}

.tool-error{margin-top:10px;color:#ff8f8f;font-weight:700;min-height:18px;font-size:12px}

@media(max-width:700px){
    .story-grid{grid-template-columns:1fr}
    .story-output-head{align-items:stretch;flex-direction:column}
    .storyteller-panel{padding:18px}
    .story-actions{flex-direction:column}
    .story-actions>*{width:100%}
}
