/* ATEMPO song resources — black + cherry, responsive, scoped to the independent panel. */
#atempo-song-materials{border:1px solid #4d3840;border-radius:19px;padding:0;width:min(960px,calc(100vw - 22px));max-width:960px;max-height:92vh;overflow:auto;background:#f8f6f6;color:#252025;box-shadow:0 35px 95px #12090eaa}
#atempo-song-materials::backdrop{background:#100d10d6;backdrop-filter:blur(4px)}
#atempo-song-materials *{box-sizing:border-box}
.atempo-material-head{position:sticky;top:0;z-index:2;background:#1c181c;color:#fff;padding:23px clamp(18px,4vw,32px);display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.atempo-material-head .sub{color:#e0a9ba;font-size:10px;letter-spacing:.18em;font-weight:800;text-transform:uppercase}
.atempo-material-head h2{font-size:clamp(21px,3vw,29px);letter-spacing:-.04em;margin:6px 0}
.atempo-material-head p{font-size:12px;color:#ccb8c0;line-height:1.5;margin:0}
.atempo-material-close{border:1px solid #634a55;background:#382b31;border-radius:9px;color:#fff;font-size:23px;padding:4px 12px;cursor:pointer}
.atempo-material-body{padding:clamp(15px,3vw,30px);display:grid;gap:22px}
.atempo-material-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-radius:11px;background:#fff;padding:13px 16px;border:1px solid #e2d9dd}
.atempo-material-summary strong{font-size:13px}
.atempo-material-summary span{font-size:11px;color:#776b71}
.atempo-material-section{background:#fff;border:1px solid #e7dce0;border-radius:13px;padding:clamp(15px,2.5vw,22px)}
.atempo-material-section h3{margin:0 0 7px;font-size:19px;letter-spacing:-.025em}
.atempo-material-section .detail{font-size:11px;color:#766d72;margin:0 0 14px;line-height:1.55}
.atempo-material-row{display:flex;gap:13px;align-items:flex-start;border-top:1px solid #eee5e8;padding:14px 0}
.atempo-material-row:first-of-type{border-top:0}
.atempo-material-row .media-symbol{flex:none;background:#f8e8ee;border-radius:10px;color:#831b3d;width:37px;height:37px;display:grid;place-items:center;font-size:18px;font-weight:800}
.atempo-material-row .media-copy{flex:1;min-width:0}
.atempo-material-row strong{display:block;font-size:13px;overflow-wrap:anywhere}
.atempo-material-row small{display:block;color:#77686f;font-size:10px;margin:3px 0}
.atempo-material-row p{white-space:pre-wrap;margin:6px 0;color:#534b50;font-size:11px;line-height:1.7}
.atempo-material-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:start}
.atempo-material-actions button,.atempo-material-section button{font:inherit}
.atempo-material-action{border:1px solid #cfb6c0;border-radius:8px;background:#fff;color:#6c1934;font-weight:800;font-size:11px;padding:9px 11px;cursor:pointer}
.atempo-material-action.primary{background:#8c183e;color:#fff;border-color:#8c183e}
.atempo-material-action.danger{background:#fff4f6;color:#932645;border-color:#f1c6d1}
.atempo-material-action:disabled{opacity:.5;cursor:wait}
.atempo-material-player{margin:10px 0;width:100%;max-width:390px}
.atempo-material-player audio{width:100%;height:36px}
.atempo-material-voice{font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:850;background:#eee6ea;color:#68364a;border-radius:5px;padding:4px 7px;display:inline-block}
.atempo-material-empty{background:#f9f7f7;border:1px dashed #e1d2da;border-radius:9px;color:#74656d;font-size:12px;padding:17px}
.atempo-material-form{background:#fff;border:1px solid #e2d4dc;border-radius:13px;padding:clamp(15px,2.5vw,23px);display:grid;gap:14px}
.atempo-material-form h3{font-size:19px;letter-spacing:-.04em;margin:0}
.atempo-material-form .form-description{font-size:11px;line-height:1.7;color:#78676e;margin:0}
.atempo-material-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.atempo-material-fields label{display:grid;gap:6px;color:#40313a;font-size:11px;font-weight:750}
.atempo-material-fields .wide{grid-column:1 / -1}
.atempo-material-fields input,.atempo-material-fields select,.atempo-material-fields textarea{font:inherit;font-weight:500;font-size:13px;padding:11px 12px;border:1px solid #d6c7ce;border-radius:9px;background:#fff;color:#241c21;min-width:0;width:100%}
.atempo-material-fields textarea{min-height:78px;resize:vertical}
.atempo-material-fields input[type=file]{padding:9px}
.atempo-material-fields .material-hint{font-size:10px;color:#80717a;line-height:1.5}
.atempo-material-feedback{font-size:12px;color:#76183a;border-radius:9px;background:#fff1f5;padding:11px 13px;margin:0;line-height:1.55}
.atempo-material-feedback.good{color:#146943;background:#e8f7ee}
.atempo-material-submit{padding:13px 17px;border-radius:9px;border:0;background:#861b40;color:#fff;font-weight:800;font-size:12px;cursor:pointer}
.atempo-material-submit:disabled{opacity:.55;cursor:wait}
.atempo-material-trigger{display:inline-flex;align-items:center;gap:5px;max-width:100%;white-space:normal!important;text-align:left;line-height:1.3}
.atempo-material-inline{display:inline-block;color:#8b2747;background:none;border:0;padding:7px 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:11px;font-weight:800}
.atempo-material-legal{font-size:10px;line-height:1.5;color:#807078}
@media(max-width:740px){.atempo-material-row{flex-wrap:wrap}.atempo-material-actions{width:100%;padding-left:50px}.atempo-material-fields{grid-template-columns:1fr}.atempo-material-summary{align-items:flex-start}.atempo-material-head{position:relative}}

.atempo-voice-group{margin-top:14px;padding-top:5px}.atempo-voice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-radius:8px;background:#f3e9ee;color:#6f2442;font-size:12px;font-weight:850;letter-spacing:.02em;margin:4px 0 9px}.atempo-voice-heading span{font-size:10px;line-height:1;padding:5px 7px;border-radius:15px;background:#e6d0da;color:#671333}
