/*==========================================================
STORYBOOK VOICES — VOICE & PITCH STUDIO
SECTION 01 — ROOM — BEGIN
==========================================================*/
:root{--ink:#18223c;--muted:#66718b;--line:#dce2f3;--purple:#716cff;--glass:rgba(255,255,255,.88)}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:18px Arial,sans-serif;background:linear-gradient(135deg,#fff2f8,#f2f6ff 52%,#edfbf7);background-attachment:fixed}button,input,select{font:inherit}nav{position:sticky;z-index:20;top:0;padding:12px max(18px,calc((100% - 1320px)/2));background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(20px)}nav a{display:inline-block;margin-right:8px;padding:10px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#40318e;text-decoration:none;font-weight:700}main{width:min(1320px,calc(100% - 28px));margin:15px auto 60px}.panel{margin-bottom:15px;padding:22px;border:1px solid rgba(255,255,255,.94);border-radius:25px;background:var(--glass);box-shadow:0 15px 40px rgba(50,60,105,.13);backdrop-filter:blur(24px)}h1,h2,p{margin-top:0}h1{margin-bottom:7px;font-size:clamp(32px,5vw,48px)}h2{font-size:25px}.eyebrow{margin-bottom:6px;color:#6f58c3;font-size:13px;font-weight:900;letter-spacing:.14em}.hero{display:grid;grid-template-columns:70px 1fr 240px;align-items:center;background:linear-gradient(120deg,rgba(255,144,194,.78),rgba(255,210,123,.72),rgba(139,227,235,.67))}.hero>div{font-size:44px}.hero p:last-child{margin:0}.hero aside{padding:14px;border-radius:17px;background:rgba(255,255,255,.72)}.hero aside span,.hero aside strong{display:block}.hero aside span{color:var(--muted);font-size:14px}.heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.heading output{padding:11px 17px;border-radius:15px;background:#17213a;color:#fff;font-size:23px;font-variant-numeric:tabular-nums}.buttons{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.buttons button,.marker-controls button,.practice-controls button{min-height:45px;padding:9px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}.buttons .primary{background:linear-gradient(135deg,#6d77ff,#a15ed0);color:#fff}.buttons .record{background:linear-gradient(135deg,#ff5b7b,#d12d53);color:#fff}.check{display:flex;align-items:center;gap:8px;padding:8px}.check input{width:21px;height:21px}.timeline-wrap{padding:32px 8px 20px}.timeline-wrap #timeline{position:relative;height:70px;border:1px solid #cdd5ec;border-radius:17px;background:repeating-linear-gradient(90deg,#fff 0,#fff calc(5% - 1px),#dce2f0 calc(5% - 1px),#dce2f0 5%)}#selectedArea{position:absolute;top:0;bottom:0;background:rgba(103,115,245,.16)}#playhead{position:absolute;z-index:3;top:-8px;bottom:-8px;width:4px;border-radius:3px;background:#ed4368;left:0}.marker{position:absolute!important;z-index:4;top:-30px!important;min-height:29px!important;padding:4px 9px!important;border:0!important;color:#fff;font-size:12px;font-weight:900;cursor:ew-resize}.marker.start{left:0;background:#169d62}.marker.end{right:0;background:#d83e5d}.marker-controls,.practice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}.marker-controls label,.practice-controls label{padding:8px;border-radius:13px;background:#f8f9ff;color:var(--muted)}.marker-controls input{width:90px;padding:7px;border:1px solid var(--line);border-radius:10px}.practice-controls input[type=range]{vertical-align:middle;accent-color:var(--purple)}.practice-controls select{padding:8px;border:1px solid var(--line);border-radius:11px}.saved-sections button{margin:10px 8px 0 0;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.note-name{display:grid;width:120px;height:95px;place-items:center;border:3px solid #afa8e4;border-radius:24px;background:#fff;color:#3c2c79;font-size:40px;font-weight:900}.note-name.good{border-color:#23a765;background:#eafff2;color:#08733d;box-shadow:0 0 25px rgba(36,180,105,.3)}.pitch-meter{display:grid;grid-template-columns:55px 1fr 60px;align-items:center;gap:12px;margin:20px 0 12px;color:var(--muted);font-weight:800}.pitch-meter>div{position:relative;height:34px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(90deg,#ffdbe1,#fff1b9 42%,#dcfbea 50%,#fff1b9 58%,#ffdbe1)}.pitch-meter b{position:absolute;left:50%;top:3px;width:4px;height:27px;background:#159b5d}.pitch-meter i{position:absolute;z-index:2;left:50%;top:-7px;width:9px;height:47px;border-radius:5px;background:#352863;transform:translateX(-50%);transition:left .08s}.readouts{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:14px}.readouts article{min-height:108px;padding:15px;border:1px solid var(--line);border-radius:17px;background:#fafaff}.readouts span,.readouts small{display:block;color:var(--muted)}.readouts strong{display:block;margin:8px 0;color:#4f3d91;font-size:23px}.readouts meter{width:100%;height:23px;margin:9px 0}canvas{display:block;width:100%;border:1px dashed #ccd4eb;border-radius:18px;background:#fff}#pitchCanvas{height:280px}#singingStaff{height:190px;margin-top:10px}.status{margin-bottom:0;color:#5b4996;font-weight:800}.record-setup{display:flex;flex-wrap:wrap;gap:15px}.record-setup label{color:var(--muted)}.record-setup input,.record-setup select{min-height:43px;margin-left:7px;padding:7px 11px;border:1px solid var(--line);border-radius:12px;background:#fff}.takes{display:grid;gap:11px;margin-top:15px}.take{padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff}.take h3{margin:0 0 6px}.take small{color:var(--muted)}.take audio{width:100%;margin-top:9px}.take-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.take-actions button{padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}.take-actions .tracks{background:#7868e8;color:#fff}#kisses{position:fixed;z-index:50;inset:0;pointer-events:none;overflow:hidden}.kiss{position:absolute;bottom:-30px;font-size:35px;animation:kiss 2.2s ease-out forwards}@keyframes kiss{to{transform:translate(var(--drift),-105vh) rotate(35deg);opacity:0}}
@media(max-width:760px){body{font-size:17px}main{width:calc(100% - 18px)}.panel{padding:17px;border-radius:21px}.hero{grid-template-columns:1fr}.hero>div{display:none}.hero aside{margin-top:10px}.readouts{grid-template-columns:1fr}.heading{align-items:flex-start}.note-name{width:92px;height:75px;font-size:31px}.marker-controls,.practice-controls{display:grid;grid-template-columns:1fr 1fr}.buttons button{flex:1 1 145px}#pitchCanvas{height:220px}#singingStaff{height:150px}.record-setup label{width:100%}.record-setup input,.record-setup select{display:block;width:100%;margin:6px 0 0}}
/* SECTION 01 — END */

/*==========================================================
SECTION 02 — MY SONG WORDS — BEGIN
Append this to static/css/voice-pitch.css
==========================================================*/
.song-words-panel{background:linear-gradient(135deg,rgba(255,249,252,.94),rgba(247,249,255,.94))}
.song-words-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.song-words-heading h2{margin-bottom:5px}
.song-words-heading p:last-child{margin-bottom:0;color:var(--muted)}
.song-words-heading aside{min-width:210px;padding:10px 13px;border:1px solid var(--line);border-radius:14px;background:#fff}
.song-words-heading aside span,.song-words-heading aside small{display:block;color:var(--muted);font-size:13px}
.song-words-heading aside strong{display:block;margin:4px 0;color:#4d3b91}
#songWords{display:block;width:100%;min-height:190px;margin-top:14px;padding:15px 17px;resize:vertical;border:1px solid #cfd7ec;border-radius:17px;background:#fff;color:var(--ink);font:18px/1.55 Arial,sans-serif;box-shadow:inset 0 2px 7px rgba(55,65,105,.05)}
#songWords:focus{outline:3px solid rgba(113,108,255,.16);border-color:#9d99ee}
.song-words-buttons{margin-bottom:8px}
@media(max-width:760px){
  .song-words-heading{display:block}
  .song-words-heading aside{margin-top:10px}
  #songWords{min-height:220px;font-size:17px}
}
/* SECTION 02 — END */