/* Studio work list: quiet chrome, generous rows, clear selected/playback states. */
@media(min-width:851px){
 body:has(.studio-shell){--side:184px;}
 .studio-shell .creation-studio{grid-template-columns:minmax(0,1.08fr) minmax(390px,1fr);}
 .studio-shell .creation-compose-pane{padding:26px 28px 32px;}
 .studio-shell .creation-results-pane{padding:28px 22px 24px;}
 .studio-shell .creation-compose-head{gap:16px;}
 .studio-shell .creation-form-stack{gap:20px;}
 .studio-shell .creation-form-card-direction textarea,.studio-shell .creation-form-card-lyrics .brief-lyrics-input{height:240px;}
 .studio-shell .creation-compose-head .project-destination{width:160px;}
 .studio-shell .studio-mode-tabs{gap:18px;}
}
.studio-shell .creation-results-head{padding-bottom:20px;margin-bottom:8px;}
.studio-shell .creation-results-list{gap:12px;overflow-x:hidden;}
.studio-shell .creation-results-pane .work-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;grid-template-rows:1fr;align-items:center;gap:16px;min-height:124px;padding:17px 14px;border:1px solid transparent;border-radius:14px;background:transparent;position:relative;transition:background .18s ease,border-color .18s ease;}
.studio-shell .creation-results-pane .work-row:hover,.studio-shell .creation-results-pane .work-row:focus-within{background:#1a1a1a;}
.studio-shell .creation-results-pane .work-row.is-selected,.studio-shell .creation-results-pane .work-row.is-current-track{background:#222;border-color:#393939;}
.studio-shell .creation-results-pane .work-row.is-selected::before,.studio-shell .creation-results-pane .work-row.is-current-track::before{content:"";position:absolute;left:-1px;top:20px;bottom:20px;width:3px;border-radius:3px;background:var(--blue, #4f8cff);}
.studio-shell .creation-results-pane .work-row .project-track-play{width:88px;height:88px;grid-row:1;border-radius:9px;}
.studio-shell .creation-results-pane .work-row .project-track-play-icon{width:32px;height:32px;bottom:28px;right:28px;opacity:0;transition:opacity .16s ease,transform .16s ease;}
.studio-shell .creation-results-pane .work-row:hover .project-track-play-icon,.studio-shell .creation-results-pane .work-row:focus-within .project-track-play-icon,.studio-shell .creation-results-pane .work-row.is-current-track .project-track-play-icon{opacity:1;}
.studio-shell .creation-results-pane .work-row .project-track-copy{padding:0;min-width:0;}
.studio-shell .creation-results-pane .work-row .project-track-name{font-size:15px;line-height:1.45;font-weight:550;margin:0 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.studio-shell .creation-results-pane .work-row .project-track-meta{font-size:12px;line-height:1.6;}
.work-style{font-size:12px;line-height:1.6;color:#8e8e96;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.work-duration{position:absolute;bottom:5px;left:5px;padding:2px 5px;border-radius:5px;background:#080808d9;color:#fff;font-size:10px;line-height:1.3;}
.studio-shell .creation-results-pane .work-actions{position:static;display:flex;gap:8px;align-items:center;justify-content:flex-end;}
.work-action-menu{position:relative;}
.work-action-menu>summary{display:flex;align-items:center;justify-content:center;gap:7px;list-style:none;cursor:pointer;border:1px solid #363636;border-radius:24px;min-height:38px;padding:9px 12px;background:#292929;color:#f4f4f4;font-size:12px;line-height:1.2;white-space:nowrap;}
.work-action-menu>summary::-webkit-details-marker{display:none;}
.work-action-menu>summary .icon{width:15px;height:15px;}
.work-more-menu>summary{width:38px;padding:9px;border-color:transparent;background:#202020;}
.work-action-menu:not(.work-more-menu){opacity:0;pointer-events:none;transition:opacity .16s ease;}
.work-row:hover .work-action-menu,.work-row:focus-within .work-action-menu,.work-row.is-selected .work-action-menu,.work-row.is-current-track .work-action-menu,.work-action-menu[open]{opacity:1;pointer-events:auto;}
.work-action-menu[open]>summary{background:#343434;border-color:#555;}
.work-action-popover{position:fixed;z-index:300;width:max-content;min-width:224px;max-width:min(320px,calc(100vw - 16px));padding:6px;border:1px solid #3c3c3c;border-radius:13px;background:#232323;box-shadow:0 12px 40px #0008;}
/* Opened in the top layer (popover): undo the browser's centred popover defaults. */
.work-action-popover[popover]{inset:auto;margin:0;height:auto;overflow:visible;color:inherit;}
.studio-shell .work-action-popover .work-menu-item,.studio-shell .work-action-popover .project-track-action{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:36px;gap:11px;padding:8px 12px;font-weight:400;border:0;border-radius:8px;background:transparent;color:#eee;font-size:13px;text-align:left;}
.studio-shell .work-action-popover button:hover{background:#343434;}
.studio-shell .work-action-popover .project-track-action>span:not(.icon){display:inline;}
.studio-shell .work-action-popover .audio-download-controls{display:flex;width:100%;}
.studio-shell .work-action-popover .audio-download-controls>.project-track-action{flex:1;}
.studio-shell .work-action-popover .download-formats{align-self:center;}
.studio-shell .work-action-popover .icon{width:16px;height:16px;color:#a8a8a8;}
.work-menu-separator{height:1px;margin:4px 6px;background:#353535;}
.studio-shell .work-action-popover button:has(>.icon-trash),.studio-shell .work-action-popover button:has(>.icon-trash) .icon{color:#ff8a85;}
.studio-shell .work-action-popover button:has(>.icon-trash):hover{background:#3a2626;}
@media(hover:none){.work-action-menu:not(.work-more-menu){opacity:1;pointer-events:auto;}.studio-shell .creation-results-pane .work-row .project-track-play-icon{opacity:1;}}
@media(max-width:1100px) and (min-width:851px){.studio-shell .creation-studio{grid-template-columns:minmax(0,1.05fr) minmax(340px,1fr);}.studio-shell .creation-compose-pane{padding-inline:22px;}.studio-shell .creation-results-pane{padding-inline:12px;}.studio-shell .creation-results-pane .work-row{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:14px;min-height:120px;}.studio-shell .creation-results-pane .work-row .project-track-play{width:68px;height:68px;}.studio-shell .creation-results-pane .work-row .project-track-play-icon{right:18px;bottom:18px;}.studio-shell .creation-results-pane .work-actions{grid-column:2;justify-content:flex-start;margin-top:-4px;}.work-action-menu:not(.work-more-menu){opacity:1;pointer-events:auto;}}
@media(max-width:850px){.studio-shell .creation-results-pane{padding:24px 16px;}.studio-shell .creation-results-pane .work-row{grid-template-columns:76px minmax(0,1fr) auto;gap:12px;padding:14px 10px;min-height:106px;}.studio-shell .creation-results-pane .work-row .project-track-play{width:76px;height:76px;}.studio-shell .creation-results-pane .work-row .project-track-play-icon{right:22px;bottom:22px;}.work-action-menu:not(.work-more-menu){opacity:1;pointer-events:auto;}}
@media(max-width:500px){.studio-shell .creation-results-pane .work-row{grid-template-columns:64px minmax(0,1fr);}.studio-shell .creation-results-pane .work-row .project-track-play{width:64px;height:64px;grid-row:1 / 3;}.studio-shell .creation-results-pane .work-row .project-track-play-icon{right:16px;bottom:16px;}.studio-shell .creation-results-pane .work-actions{grid-column:2;justify-content:flex-start;}.studio-shell .creation-results-pane .work-row .project-track-name{font-size:14px;}.work-action-menu>summary{min-height:34px;padding:8px 11px;}.work-more-menu>summary{width:34px;}}
@media(prefers-reduced-motion:reduce){.work-row,.work-action-menu,.project-track-play-icon{transition:none!important;}}
.studio-shell .creation-results-pane .work-row>.project-track-copy{grid-column:2;grid-row:1;}
.studio-shell .creation-results-pane .work-row>.work-actions{grid-column:3;grid-row:1;padding:0;}
@media(max-width:1100px) and (min-width:851px){.studio-shell .creation-results-pane .work-row>.work-actions{grid-column:2;grid-row:2;}.studio-shell .creation-results-pane .work-row>.project-track-play{grid-row:1 / 3;}}
@media(max-width:500px){.studio-shell .creation-results-pane .work-row>.work-actions{grid-column:2;grid-row:2;}}

/* Studio landing reuses the exact Create recent-works pane and detail flow. */
.music-edit-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.9fr);width:100%;height:100%;min-width:0;background:#101010;}
.music-edit-stage{height:100%;min-width:0;overflow:hidden;}
.studio-shared-library{height:100%;min-width:0;overflow:hidden;border-left:1px solid #252525;background:#101010;}
.studio-shared-library>.creation-results-pane{position:static;width:100%;height:100%;max-height:none;padding:30px 24px;border:0;border-radius:0;overflow:hidden;background:#101010;}
.studio-shared-library .creation-results-list{height:calc(100% - 72px);max-height:none;overflow-y:auto;}
.studio-editor-active .music-edit-layout{display:block;}
.studio-editor-active .studio-shared-library{display:none;}
@media(max-width:1100px){.music-edit-layout{grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);}.studio-shared-library>.creation-results-pane{padding-inline:16px;}}
@media(max-width:850px){.music-edit-layout{display:block;overflow-y:auto;}.music-edit-stage{height:auto;min-height:100%;}.studio-shared-library{height:auto;min-height:460px;border-top:1px solid #252525;border-left:0;}.studio-shared-library>.creation-results-pane{height:auto;min-height:460px;}.studio-shared-library .creation-results-list{height:auto;max-height:none;}}
/* Plaza publish state on result rows and in track details: "未发布 · 发布到广场" / "已发布 · 取消发布". */
/* 2026-11-18: one quiet line under the song ("Not published · Publish to Plaza"); the action is a
   plain text link that lights up on hover, so a list of songs is not a column of blue pills. */
.plaza-publish{display:flex;align-items:center;gap:6px;margin:6px 0 0;font-size:12px;line-height:1.4;min-width:0;color:#7d7d86;}
.plaza-publish-status{color:inherit;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;}
.plaza-publish.is-published .plaza-publish-status{color:#9fdcbc;}
.plaza-publish.is-published .plaza-publish-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#5fcf95;flex:none;}
.plaza-publish-action{appearance:none;border:0;background:transparent;color:#a3a3ad;padding:0;font:inherit;cursor:pointer;white-space:nowrap;text-decoration:none;text-underline-offset:3px;}
.plaza-publish-action::before{content:"·";color:#55555c;margin-right:6px;text-decoration:none;display:inline-block;}
.plaza-publish-action:hover:not(:disabled){color:#cfe0ff;text-decoration:underline;}
.plaza-publish-action:focus-visible{outline:2px solid #4f8cff;outline-offset:2px;border-radius:3px;}
.plaza-publish-action:disabled{opacity:.55;cursor:default;}
/* The details pane keeps a real (neutral) button: it is the one place the choice is made on purpose. */
.track-details-scroll>.plaza-publish{margin:12px 0;}
.track-details-scroll>.plaza-publish .plaza-publish-action{border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:4px 12px;color:#e6e6ea;}
.track-details-scroll>.plaza-publish .plaza-publish-action::before{content:none;}
.track-details-scroll>.plaza-publish .plaza-publish-action:hover:not(:disabled){border-color:rgba(255,255,255,.34);text-decoration:none;color:#fff;}

/* Share (2026-11-14): the row's share button and the share sheet (a centred dialog on desktop, a
   bottom sheet on phones). */
.work-share-button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #363636;border-radius:24px;min-height:38px;padding:9px 12px;background:#292929;color:#f4f4f4;font-size:12px;line-height:1.2;white-space:nowrap;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .16s ease;}
.work-share-button .icon{width:15px;height:15px;}
.work-share-button:hover{background:#343434;border-color:#555;}
.work-row:hover .work-share-button,.work-row:focus-within .work-share-button,.work-row.is-selected .work-share-button,.work-row.is-current-track .work-share-button{opacity:1;pointer-events:auto;}
@media(hover:none),(max-width:1100px){.work-share-button{opacity:1;pointer-events:auto;}}
@media(max-width:500px){.work-share-button{min-height:34px;padding:8px 11px;}}
.track-details-share{grid-column:1 / -1;}

.share-sheet{width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid #2e2e2e;border-radius:20px;background:#191919;color:#f3f3f3;box-shadow:0 24px 80px rgba(0,0,0,.6);overflow:auto;}
.share-sheet::backdrop{background:rgba(0,0,0,.6);}
.share-sheet-shell{display:flex;flex-direction:column;gap:20px;padding:24px;}
.share-sheet-grabber{display:none;}
.share-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.share-sheet-head h2{margin:0;font-size:18px;font-weight:600;}
.share-sheet-close{width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#242424;color:#a3a3a3;cursor:pointer;}
.share-sheet-close:hover{background:#2e2e2e;color:#f3f3f3;}
.share-sheet-close .icon{width:16px;height:16px;}
.share-sheet-song{display:flex;align-items:center;gap:14px;min-width:0;}
.share-sheet-song img,.share-sheet-cover{width:64px;height:64px;border-radius:12px;object-fit:cover;background:#2a3550;flex:none;}
.share-sheet-song div{display:flex;flex-direction:column;gap:4px;min-width:0;}
.share-sheet-song strong{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.share-sheet-song span{font-size:13px;color:#a3a3a3;}
.share-sheet-body{display:flex;flex-direction:column;gap:18px;}
.share-sheet-body[aria-busy="true"]{cursor:progress;}
.share-sheet-loading,.share-sheet-error{margin:0;color:#a3a3a3;font-size:14px;}
.share-sheet-error{color:#e77c79;}
.share-visibility{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0;min-width:0;}
.share-visibility legend{grid-column:1 / -1;margin-bottom:10px;padding:0;font-size:13px;color:#a3a3a3;}
.share-sheet .share-visibility-option{display:flex;flex-direction:row;gap:10px;align-items:flex-start;min-width:0;margin:0;padding:14px;border:1px solid #333;border-radius:14px;cursor:pointer;color:#f3f3f3;font-size:inherit;}
.share-visibility-option.is-selected{border-color:#4f8cff;background:rgba(79,140,255,.08);box-shadow:inset 0 0 0 .5px #4f8cff;}
.share-sheet .share-visibility-option input{width:16px;height:16px;min-height:0;margin:3px 0 0;padding:0;border:0;accent-color:#4f8cff;flex:none;appearance:auto;}
.share-sheet .share-visibility-option span{display:flex;flex-direction:column;gap:3px;min-width:0;}
.share-visibility-option strong{font-size:14px;font-weight:600;}
.share-visibility-option small{font-size:12px;color:#a3a3a3;line-height:1.5;}
.share-link-row{display:flex;gap:10px;}
.share-link-field{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border:1px solid #2e2e2e;border-radius:12px;background:#111;color:#a3a3a3;}
.share-link-field .icon{width:16px;height:16px;flex:none;}
.share-link-input{flex:1;min-width:0;border:0;background:transparent;color:#f3f3f3;font:inherit;font-size:14px;outline:none;}
.share-link-row .button{height:44px;border-radius:12px;padding:0 18px;white-space:nowrap;}
.share-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;}
.share-channel{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0;border:0;border-radius:14px;background:#202020;color:#f3f3f3;font:inherit;font-size:12px;cursor:pointer;}
.share-channel:hover{background:#282828;}
.share-channel:focus-visible,.share-stop:focus-visible{outline:2px solid #4f8cff;outline-offset:2px;}
.share-channel-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#2b2b2b;color:#fff;font-size:14px;}
.share-channel-icon b{font-weight:700;}
.share-channel-icon .icon{width:18px;height:18px;}
.share-channel.is-wechat .share-channel-icon{background:#07c160;}
.share-channel.is-weibo .share-channel-icon{background:#e6162d;}
.share-channel.is-x .share-channel-icon{background:#000;border:1px solid #444;}
.share-channel.is-facebook .share-channel-icon{background:#1877f2;font-size:20px;}
.share-channel.is-whatsapp .share-channel-icon{background:#25d366;}
.share-qr{display:flex;align-items:center;gap:18px;padding:14px;border-radius:14px;background:#141414;border:1px solid #262626;}
.share-qr svg{border-radius:8px;flex:none;}
.share-qr div{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#a3a3a3;line-height:1.6;}
.share-qr strong{color:#f3f3f3;font-size:15px;}
.share-sheet .share-toggle{display:flex;flex-direction:row;margin:0;align-items:center;justify-content:space-between;gap:12px;font-size:14px;cursor:pointer;}
.share-toggle>span{display:flex;flex-direction:column;gap:2px;}
.share-toggle small{font-size:12px;color:#a3a3a3;}
.share-sheet .share-toggle input{width:20px;height:20px;min-height:0;margin:0;padding:0;accent-color:#4f8cff;flex:none;appearance:auto;}
.share-sheet-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid #262626;font-size:13px;color:#a3a3a3;}
.share-stop{padding:6px 0;border:0;background:transparent;color:#e77c79;font:inherit;font-size:13px;cursor:pointer;}
.share-stop:hover{text-decoration:underline;}
.share-stopped{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border-radius:14px;background:#141414;border:1px solid #262626;font-size:13px;color:#a3a3a3;}
.share-stopped strong{color:#f3f3f3;font-size:15px;}
.share-stopped .button{margin-top:6px;}
@media(max-width:640px){
  .share-sheet{width:100vw;max-width:100vw;max-height:88vh;margin:auto 0 0;border-radius:22px 22px 0 0;border-width:1px 0 0;}
  .share-sheet-shell{padding:10px 16px calc(24px + env(safe-area-inset-bottom));gap:16px;}
  .share-sheet-grabber{display:block;align-self:center;width:40px;height:5px;border-radius:3px;background:#3a3a3a;}
  .share-visibility{grid-template-columns:minmax(0,1fr);}
  .share-visibility-option{padding:12px 14px;}
  .share-channels{grid-template-columns:repeat(auto-fit,minmax(56px,1fr));}
  .share-channel{background:transparent;padding:6px 0;}
  .share-channel-icon{width:52px;height:52px;}
  .share-qr{flex-direction:column;text-align:center;}
}
.share-sheet .share-visibility-option:only-of-type{grid-column:1 / -1;}
/* MusicX Version 2 on the free plan: preview + upgrade (app.js lockedVersionRow). */
.locked-version-row .project-track-play img{filter:saturate(.75) brightness(.85);}
.locked-version-title{display:flex;align-items:center;gap:8px;min-width:0;}
.locked-version-title .project-track-name{min-width:0;}
.locked-version-badge{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 8px;border-radius:999px;border:1px solid rgba(214,169,93,.45);background:rgba(214,169,93,.12);color:#e9c88a;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap;}
.locked-version-badge svg{width:12px;height:12px;}
.locked-version-cta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px;}
.locked-version-note{color:var(--muted,#8ca39e);font-size:13px;}
.locked-version-upgrade{white-space:nowrap;}
/* The works list also narrows when the song details panel opens or the panes are resized, not only
   when the window does. The viewport media queries above missed that, so the action column kept its
   ~216px and squeezed titles down to one letter ("深."). Below 600px of list width the actions go
   under the title, as in the 851-1100px layout (QA 2026-11-18). */
.studio-shell .creation-results-pane .creation-results-list{container:results-list / inline-size;}
@container results-list (max-width:600px){.studio-shell .creation-results-pane .work-row{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:14px;min-height:120px;}.studio-shell .creation-results-pane .work-row .project-track-play{width:68px;height:68px;}.studio-shell .creation-results-pane .work-row .project-track-play-icon{right:18px;bottom:18px;}.studio-shell .creation-results-pane .work-row>.work-actions{grid-column:2;grid-row:2;justify-content:flex-start;margin-top:-4px;}.studio-shell .creation-results-pane .work-row>.project-track-play{grid-row:1 / 3;}}
