/* Sound library inherits Studio typography, colour and the existing V7 perimeter primitive. */
.sfx{--sfx-ink:#20211f;--sfx-muted:#6d6e68;--sfx-line:#deded8;--sfx-blue:#3032d8;color:var(--sfx-ink);font-size:13px;min-width:0}

.sfx *,.sfx-player *,.sfx-dialog *{box-sizing:border-box}

.sfx button,.sfx input,.sfx select,.sfx-player button,.sfx-player input,.sfx-dialog button{font:inherit;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}

.sfx button,.sfx-player button,.sfx-dialog button{cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

.sfx button:disabled,.sfx-dialog button:disabled{opacity:.4;cursor:default}

.sfx button:active:not(:disabled),.sfx-player button:active:not(:disabled){opacity:.65}

.sfx .text-button,.sfx-player .text-button,.sfx-dialog .text-button{border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;padding:0;min-height:44px}

.sfx :is(button,input,select):focus-visible,.sfx-player :is(button,input):focus-visible{outline:2px solid var(--sfx-blue,#3032d8);outline-offset:4px}

.sfx-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:none}

.sfx [hidden],.sfx-player[hidden],.sfx-player [hidden]{display:none!important}

.sfx-heading{margin-bottom:20px}
.sfx-heading .eyebrow{font-size:10px;color:var(--sfx-muted);letter-spacing:.07em;margin-bottom:10px}
.sfx-heading h1{font-size:36px;letter-spacing:-.055em;font-weight:550;line-height:1.4;margin:0 0 9px}
.sfx-heading>p:last-child{font-size:13px;color:var(--sfx-muted);margin:0}

.sfx-summary{display:flex;gap:22px;color:var(--sfx-muted);font-size:11px;margin-bottom:20px}
.sfx-rights{display:flex;align-items:center;gap:14px;border-block:1px solid var(--sfx-line);min-height:51px}
.sfx-rights>span{font-size:11px;color:var(--sfx-blue);white-space:nowrap}
.sfx-rights p{font-size:12px;color:var(--sfx-muted);margin:0}
.sfx-rights .text-button{margin-left:auto;font-size:11px;color:var(--sfx-muted);white-space:nowrap}

.sfx-search-tools{display:flex;gap:12px;margin-top:24px}
.sfx .managed-search.sfx-search{display:flex;align-items:center;gap:11px;border:1px solid #d4d4cf;border-radius:4px;min-height:50px;padding:0 15px;background:#fff;flex:1;min-width:0;margin:0}
.sfx-search svg{width:17px;color:#787973}
.sfx .sfx-search input{width:100%;min-width:0;padding:13px 0;border:0;background:transparent;outline:none;font-size:13px}
.sfx-search kbd{font:10px inherit;white-space:nowrap;color:#93948c}
.sfx-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 15px;border:1px solid #cecec8;border-radius:4px;background:#f8f8f5;font-size:12px;white-space:normal}
.sfx-download-all{min-width:164px}
.sfx-quick{display:flex;align-items:center;flex-wrap:wrap;gap:0 20px;margin:4px 0 17px;min-height:48px;font-size:11px}
.sfx-quick>span{color:#92938c}
.sfx-quick .text-button{font-size:11px;color:#74756f}
.sfx-quick button[aria-pressed=true]{color:var(--sfx-blue)}
.sfx-clear{margin-left:auto}

.sfx-browse{display:grid;grid-template-columns:145px minmax(0,1fr);gap:28px}
.sfx-categories h2{font-size:12px;font-weight:550;margin:0 0 13px}
.sfx-categories .sfx-category{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;min-height:37px;padding-right:8px;text-align:left;font-size:12px;color:#777870;position:relative}
.sfx-category small{font-size:10px;font-variant-numeric:tabular-nums;color:#9a9b93}
.sfx-category[aria-pressed=true],.sfx-category[aria-pressed=true] small{color:var(--sfx-blue)}
.sfx-category[aria-pressed=true]:before{content:'';position:absolute;left:-10px;top:13px;width:2px;height:12px;background:var(--sfx-blue)}
.sfx-categories>p{color:#91928b;font-size:10px;line-height:1.9;padding-top:16px;margin:0}
.sfx-results{min-width:0}
.sfx-mobile-category{display:none}
.sfx-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.sfx-toolbar h2{font-size:13px;font-weight:550;line-height:1.5;margin:0}
.sfx-filters{display:flex;gap:15px}
.sfx .vg-filter-select{border:1px solid #d9d9d2;border-radius:4px;background:#f8f8f5}
.sfx-filters select{border:0;padding:8px 20px 8px 8px;background:transparent;font-size:11px;color:#797a72;min-height:40px;max-width:144px;cursor:pointer}
.sfx-column-labels{display:grid;grid-template-columns:minmax(170px,1fr) 140px 47px 44px;gap:13px;padding:10px 0 10px 57px;background:#efefeb;color:#92938a;font-size:10px;border-block:1px solid #dfdfd9}
.sfx-column-labels span:nth-child(3){text-align:right}
.sfx-row{display:grid;grid-template-columns:44px minmax(170px,1fr) 140px 47px 44px;align-items:center;gap:13px;min-height:111px;padding:16px 0;border-bottom:1px solid var(--sfx-line)}
.sfx-row.is-playing{background:#f0f0f8}
.sfx-row-play{width:40px;height:40px;border:1px solid #d7d7d1;border-radius:50%;display:grid;place-items:center;background:#fbfbf8;padding:0}
.sfx-row-play svg{width:13px;height:13px}
.sfx-row.is-playing .sfx-row-play{color:var(--sfx-blue);border-color:var(--sfx-blue)}
.sfx-copy{min-width:0}
.sfx-copy .sfx-name{font-size:13px;font-weight:500;text-align:left;line-height:1.6;display:block;width:max-content;max-width:100%;overflow-wrap:anywhere;min-height:24px}
.sfx-original{display:block;font-size:10px;line-height:1.6;color:#96978d;overflow-wrap:anywhere;margin:4px 0}
.sfx-tags{display:flex;flex-wrap:wrap;gap:0 10px;align-items:center;font-size:10px;color:#85867d}
.sfx-tags .text-button{font-size:10px;min-height:24px;color:#77786f}
.sfx-tags>span{padding-left:9px;border-left:1px solid #d5d5cd;line-height:1.4}
.sfx-tags small{font-size:10px;color:#91928a}
.sfx-wave{width:140px;height:38px;display:block;color:#b4b5ad}
.sfx-wave rect{fill:currentColor}
.sfx-wave rect.is-heard{fill:var(--sfx-blue)}
.sfx-wave-button{min-width:0;width:100%;height:44px;text-align:left}
.sfx-wave-unavailable{font-size:10px;color:#92938a}
.sfx-duration{font-size:11px;font-variant-numeric:tabular-nums;color:#88897f;text-align:right}
.sfx-row-download{width:44px;height:44px;padding:0;display:grid;place-items:center;background:none;border:0;color:#8a8b82}
.sfx-row-download svg{width:17px}
.sfx-pagination{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:20px;min-height:44px;font-size:11px;color:#818279}
.sfx-pagination>span:first-child{margin-right:auto}
.sfx-pagination .text-button{font-size:11px;min-height:44px}
.sfx-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;color:#96978e;font-size:10px;margin-top:32px;padding-top:17px;border-top:1px solid var(--sfx-line)}
.sfx-footer .text-button{font-size:11px}
.sfx-gate{text-align:center;padding:65px 22px;color:var(--sfx-muted);border-bottom:1px solid var(--sfx-line)}
.sfx-gate :is(h2,h3){font-size:20px;font-weight:500;color:var(--sfx-ink);margin:0 0 12px}
.sfx-gate p{font-size:13px;line-height:1.9;margin:0}
.sfx-gate-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:22px}

body[data-sfx-player] .studio-workspace{padding-bottom:calc(var(--sfx-player-height,112px) + 16px)}

.sfx-player{position:fixed;bottom:0;left:var(--sfx-workspace-left,220px);right:0;z-index:80;display:flex;align-items:center;gap:15px;min-height:91px;padding:16px 30px calc(16px + env(safe-area-inset-bottom,0px));background:rgba(251,251,248,.98);border-top:1px solid #cccce2;box-shadow:0 -7px 26px #23233d05;color:#20211f;font-size:12px}

.sfx-playing-copy{width:210px;min-width:0;margin-right:auto}
.sfx-playing-copy>.eyebrow{font-size:9px;color:#3032d8}
.sfx-playing-copy strong{display:block;font-size:12px;font-weight:500;line-height:1.55;overflow-wrap:anywhere}
.sfx-playing-copy small{display:block;font-size:9px;color:#93948c;max-height:30px;overflow:hidden;overflow-wrap:anywhere}
.sfx-player-toggle{width:40px;height:40px;display:grid;place-items:center;border:1px solid #d7d7d1;border-radius:50%;padding:0;background:none;color:#3032d8;flex:none}
.sfx-player-toggle svg{width:14px}
.sfx-time{font-size:10px;color:#8b8c83;font-variant-numeric:tabular-nums}
.sfx-seek{flex:1;max-width:400px;min-width:50px}
.sfx-seek input,.sfx-volume input{width:100%;height:22px;accent-color:#3032d8;cursor:pointer}
.sfx-volume{display:flex;align-items:center;gap:8px;width:95px}
.sfx-volume svg{width:16px;color:#919289}
.sfx-volume input{width:64px}
.sfx-player .sfx-player-download,.sfx-player .sfx-player-close{width:44px;height:44px;display:grid;place-items:center;flex:none}
.sfx-player-close{font-size:25px!important}
.sfx-player-notice{position:absolute;left:30px;right:30px;bottom:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:8px 15px;background:#fff;border:1px solid #deded8;font-size:12px}
.sfx-player-notice p{margin:0}
.sfx-player-notice button{font-size:11px;white-space:nowrap;color:#3032d8}
.sfx-loading{width:13px;height:13px;display:block;border:1px solid #aaa;border-top-color:#3032d8;border-radius:50%;animation:sfx-turn .65s linear infinite}

@keyframes sfx-turn{to{transform:rotate(360deg)}
}

.sfx-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.sfx-dialog p{font-size:13px;line-height:1.9;color:#6d6e68}
.sfx-dialog h3{font-size:14px;margin-top:24px}
.sfx-dialog .sfx-detail-original{font-size:11px;color:#93948a}
.sfx-detail-tags{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:11px;color:#77786e}
.sfx-dialog dl{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px 15px;margin:24px 0;padding:20px 0;border-block:1px solid #deded8;font-size:12px}
.sfx-dialog dt{color:#94958b}
.sfx-dialog dd{margin:0;overflow-wrap:anywhere}
.sfx-detail-note{padding-top:16px;border-top:1px solid #deded8}
.sfx-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}
.sfx-dialog-actions .sfx-button{font-size:12px}
.sfx-dialog-actions small{font-size:10px;color:#6d6e68}

@media(hover:hover) and (pointer:fine){.sfx-row:hover{background:#f1f1ed}
.sfx-row.is-playing:hover{background:#ececf6}
.sfx :is(.sfx-name,.sfx-category,.sfx-tags button,.sfx-quick button):hover{color:#3032d8}
.sfx-row-play:hover{border-color:#3032d8;color:#3032d8}
.sfx-row-download:hover{color:#3032d8}
}

@media(max-width:1250px){.sfx-browse{grid-template-columns:125px minmax(0,1fr);gap:21px}
.sfx-row{grid-template-columns:44px minmax(145px,1fr) 105px 40px 44px;gap:10px}
.sfx-column-labels{grid-template-columns:minmax(145px,1fr) 105px 40px 44px;gap:10px;padding-left:54px}
.sfx-wave{width:105px}
.sfx-playing-copy{width:160px}
.sfx-volume{display:none}
}

@media(max-width:1000px){.sfx-browse{grid-template-columns:1fr}
.sfx-categories{display:none}
.sfx-mobile-category{display:flex;gap:15px;align-items:center;margin-bottom:17px;font-size:12px;color:#6d6e68}
.sfx-mobile-category select{min-height:44px;flex:1;min-width:0;border:1px solid #deded8;background:#f8f8f5;border-radius:4px;padding:8px 12px}
.sfx-heading h1{font-size:31px}
.sfx-player{gap:12px;padding-inline:24px}
.sfx-rights{gap:10px;flex-wrap:wrap;padding-block:5px}
.sfx-rights .text-button{font-size:11px}
}

@media(max-width:700px){html[data-sound-library=true] .studio-nav{display:flex;overflow-x:auto;scrollbar-width:none;gap:23px;margin:14px 0 0}
html[data-sound-library=true] .studio-nav>button{width:auto;min-width:max-content;min-height:44px;padding:10px 0;flex-direction:row;border-radius:0;font-size:12px;background:transparent}
html[data-sound-library=true] .studio-nav>button .studio-icon{display:none}
html[data-sound-library=true] .studio-nav>button[aria-current]{color:#3032d8;box-shadow:inset 0 -2px #3032d8}
.sfx-heading h1{font-size:28px}
.sfx-heading>p:last-child{font-size:12px}
.sfx-summary{font-size:10px;gap:20px;margin-bottom:16px}
.sfx-rights{gap:5px 11px}
.sfx-rights p{font-size:10px}
.sfx-rights .text-button{font-size:10px;min-height:32px}
.sfx-search-tools{margin-top:20px;gap:9px}
.sfx .sfx-search input{font-size:16px}
.sfx-search input::placeholder{font-size:11px}
.sfx-search kbd{display:none}
.sfx-download-all{min-width:46px;width:46px;padding:0}
.sfx-download-all>span{display:none}
.sfx-quick{gap:0 18px;font-size:10px;margin-bottom:12px}
.sfx-quick>span{display:none}
.sfx-quick .text-button{font-size:10px}
.sfx-browse{margin-top:10px}
.sfx-toolbar{flex-wrap:wrap;gap:8px}
.sfx-filters{gap:8px;margin-left:auto}
.sfx-filters select{max-width:132px;font-size:12px;padding-inline:8px;min-height:44px}
.sfx-toolbar h2{font-size:12px}
.sfx-column-labels{display:none}
.sfx-row{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px 10px;align-items:start;padding:18px 0}
.sfx-row-play{width:44px;height:44px}
.sfx-copy .sfx-name{font-size:12px}
.sfx-original{font-size:9px;margin-top:4px}
.sfx-tags{font-size:9px;gap:0 9px}
.sfx-tags .text-button{font-size:10px}
.sfx-tags>span{padding-left:0;border:0}
.sfx-tags small{font-size:9px}
.sfx-wave-button{grid-column:2;grid-row:2;width:100%;min-height:44px!important;padding:0;margin-top:-8px}
.sfx-wave{width:100%;max-width:250px;height:26px}
.sfx-duration{grid-column:3;grid-row:2;font-size:10px;align-self:center}
.sfx-row-download{grid-column:3;grid-row:1}
.sfx-pagination{font-size:10px;gap:12px;justify-content:space-between}
.sfx-pagination>span:first-child{margin-right:0}
.sfx-pagination .text-button{font-size:10px}
.sfx-footer{display:block;font-size:10px;line-height:1.9;margin-top:24px}
.sfx-footer .text-button{margin-top:6px}
.sfx-player{left:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:8px 10px;padding:12px max(18px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));min-height:120px}
.sfx-playing-copy{grid-column:2;grid-row:1;width:auto}
.sfx-playing-copy strong{font-size:11px}
.sfx-playing-copy small{display:none}
.sfx-playing-copy>.eyebrow{font-size:8px}
.sfx-player-toggle{grid-column:1;grid-row:1;width:44px;height:44px}
.sfx-player-download{grid-column:3;grid-row:1}
.sfx-player-close{grid-column:4;grid-row:1}
.sfx-player>[data-sfx-current]{grid-column:1;grid-row:2}
.sfx-player>[data-sfx-total]{grid-column:4;grid-row:2;text-align:right}
.sfx-seek{grid-column:2/4;grid-row:2;max-width:none}
.sfx-player-notice{left:16px;right:16px;font-size:11px;padding:8px 12px;gap:12px}
.sfx-player-notice button{white-space:normal;min-width:72px}
.sfx-dialog dl{grid-template-columns:75px minmax(0,1fr);font-size:11px}
.sfx-dialog p{font-size:12px}
}

@media(pointer:coarse){.sfx :is(input,select),.sfx .sfx-search input,.sfx .sfx-filters select,.sfx .sfx-mobile-category select{font-size:16px}
.sfx .sfx-category{min-height:44px}
.sfx-tags .text-button{min-height:44px}
.sfx-quick .text-button{min-height:44px}
}

@media(prefers-reduced-motion:reduce){.sfx-loading{animation:none;border-color:#3032d8;opacity:.7}
.sfx,.sfx-player{scroll-behavior:auto}
}

@media(forced-colors:active){.sfx-row-play,.sfx-player-toggle{border-color:ButtonText}
.sfx-wave rect{fill:CanvasText}
.sfx-wave rect.is-heard{fill:Highlight}
.sfx-row.is-playing{outline:1px solid Highlight}
}


.sfx-download-error{padding:13px 0;margin:8px 0 16px;border-block:1px solid #deded8;font-size:12px;color:#6d6e68}
.sfx-download-error p{margin:0;line-height:1.8}
.sfx-download-error>div{display:flex;gap:20px;flex-wrap:wrap}
.sfx-download-error .text-button{color:#3032d8;font-size:12px;min-height:44px}
/* Additional sibling destinations must keep account controls reachable on short screens. */
html[data-sound-library=true] .studio-sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
@media(max-width:700px){html[data-sound-library=true] .studio-sidebar{overflow:visible}}

.sfx-preview-scope{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--sfx-line,#deded8);background:#f8f8f5;border-radius:4px;padding:18px 20px;margin:18px 0}
.sfx-preview-scope strong{font-size:14px;font-weight:600}.sfx-preview-scope p{font-size:12px;line-height:1.7;color:var(--sfx-muted,#6d6e68);margin:5px 0 0}
.sfx-preview-scope>.text-button{flex:none;min-height:44px;text-align:left}
.sfx-row-play:disabled,.sfx-wave-button:disabled{opacity:.38;cursor:default}
.sfx-dialog .managed-preview-membership{margin:0;border:0;padding:0;background:transparent}
.sfx-dialog .managed-preview-membership .eyebrow{display:none}
.sfx-dialog .managed-preview-membership h2{font-size:20px;line-height:1.5}
.sfx-download-error .managed-preview-membership{margin:0;padding:14px 0;border:0;background:transparent}
.sfx-download-error .managed-preview-membership h2{font-size:17px}
.sfx-dialog :is(button,a,input):focus-visible{outline:2px solid var(--sfx-blue,#3032d8);outline-offset:4px}
.sfx-dialog :is(button,a){touch-action:manipulation}
@media(max-width:700px){.sfx-preview-scope{display:block;padding:16px}.sfx-preview-scope>.text-button{margin-top:8px}.sfx-dialog .managed-membership-actions{align-items:stretch}.sfx-dialog .managed-membership-actions .button{white-space:normal;text-align:center}}
