
/* Publishing: one task per screen, with the same controls and spacing throughout. */
dialog.release-wizard:has(#liveReviewForm){width:min(760px,calc(100vw - 32px));height:min(740px,calc(100dvh - 48px));min-height:0;border:1px solid #e7e7e4;border-radius:18px;color:#171717}
dialog.release-wizard:has(#liveReviewForm)>h2{font-size:23px;line-height:1.3;font-weight:600;padding:26px 28px 0;margin-bottom:20px}
dialog.release-wizard:has(#liveReviewForm)>.release-steps{padding:0 28px;margin-bottom:8px}
dialog.release-wizard:has(#liveReviewForm)>.release-progress{padding:0 28px 18px;margin:0;border-bottom:1px solid #e8e8e6;color:#777;font-size:12px}
dialog.release-wizard .release-steps button{cursor:pointer;line-height:1.4;gap:7px}
dialog.release-wizard .release-steps button:hover{color:#171717}
dialog.release-wizard #liveReviewForm .publish-body{padding:24px 28px;line-height:1.5}
dialog.release-wizard [data-release-panel]{padding:0}
dialog.release-wizard [data-release-panel]>h3{font-size:21px;line-height:1.3;font-weight:600;margin:0 0 18px}
dialog.release-wizard [data-release-panel]>p,dialog.release-wizard fieldset>p,dialog.release-wizard .live-credit-status>p{font-size:13px;line-height:1.6;color:#777;margin:0 0 18px}
dialog.release-wizard label{font-size:14px;font-weight:500}
dialog.release-wizard input:not([type=checkbox]):not([type=range]):not([type=file]),dialog.release-wizard textarea,dialog.release-wizard select{border-radius:10px;padding:12px;font-size:14px;font-weight:400;line-height:1.5;margin-bottom:20px}
dialog.release-wizard .publish-preview{border-radius:12px;overflow:hidden;background:#f7f7f5;margin-top:20px}
dialog.release-wizard .publish-preview img,dialog.release-wizard .publish-preview video{max-height:290px;object-fit:contain}
dialog.release-wizard .publish-version-note{font-size:12px!important}
dialog.release-wizard .publication-experience>legend{display:none}
dialog.release-wizard .publication-experience p{font-size:12px;line-height:1.6}
dialog.release-wizard .publish-credits{margin:22px 0 24px}
dialog.release-wizard .publish-credits legend{font-size:14px;font-weight:600}
dialog.release-wizard .publish-credits label{min-height:60px;padding:12px 0;gap:12px;border-bottom:1px solid #e8e8e6;font-weight:400;cursor:pointer}
dialog.release-wizard .publish-credits label:first-of-type{border-top:1px solid #e8e8e6}
dialog.release-wizard .release-contributor-avatar{display:inline-flex;width:32px;height:32px;flex:0 0 32px}
dialog.release-wizard .release-contributor-avatar>.avatar{width:32px;height:32px;min-width:32px;margin:0}
dialog.release-wizard .release-contributor-avatar>.avatar>img:first-child{width:100%;height:100%;object-fit:cover}
dialog.release-wizard .release-contributor-name{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;overflow-wrap:anywhere}
dialog.release-wizard .release-contributor-name small{font-size:11px;color:#888;font-weight:400}
dialog.release-wizard .live-credit-status{padding-top:22px;border-top:1px solid #e8e8e6;margin:24px 0}
dialog.release-wizard .live-credit-status>h3{font-size:15px;font-weight:600;margin:0 0 8px}
dialog.release-wizard .live-credit-status .credit-request{padding:0;background:none;border:0;border-radius:0}
dialog.release-wizard .live-credit-status .credit-eyebrow,dialog.release-wizard .live-credit-status .credit-request-heading{display:none}
dialog.release-wizard .credit-people{margin:16px 0}
dialog.release-wizard .credit-person{padding:8px 0;font-size:13px}
dialog.release-wizard .credit-answer{padding-top:16px;margin-top:16px}
dialog.release-wizard .release-tools{border-top:1px solid #e8e8e6;border-bottom:1px solid #e8e8e6;padding:16px 0;margin:24px 0}
dialog.release-wizard .release-tools summary{cursor:pointer;font-size:14px;font-weight:500}
dialog.release-wizard .release-tools summary span{font-size:12px;color:#888;margin-left:6px;font-weight:400}
dialog.release-wizard .release-tools .tool-picker{margin:18px 0 0}
dialog.release-wizard .release-tools .tool-picker>legend{display:none}
dialog.release-wizard .publish-qa{padding:20px!important;margin:0!important;border:1px solid #dce4e8!important;border-radius:12px;background:#f1f5f7}
dialog.release-wizard .publish-qa-heading{gap:12px;align-items:center}
dialog.release-wizard .publish-qa-heading h3{font-size:14px;font-weight:500;color:#596872;margin:0}
dialog.release-wizard .publish-qa button{width:auto;flex:none;min-height:40px;padding:8px 12px;border:1px solid #ced6da;border-radius:8px;background:white;font:500 12px/1.4 Inter,Arial,sans-serif;cursor:pointer}
dialog.release-wizard .publish-qa [data-qa-status]{font-size:18px;line-height:1.45;font-weight:600;color:#25343c;margin:18px 0 0}
dialog.release-wizard .publish-qa[data-qa-state=passed]{background:#f1f6f2;border-color:#dce7dd}
dialog.release-wizard .publish-qa[data-qa-state=failed]{background:#fcf5ef;border-color:#ebd9ca}
dialog.release-wizard .publish-qa .publish-qa-scope{font-size:12px;line-height:1.6;color:#6e777b;margin:14px 0 0}
dialog.release-wizard .qa-findings{margin-top:16px;padding-top:14px;border-top:1px solid #ddded9}
dialog.release-wizard .qa-findings h4{margin:0;font-size:13px;color:#333}
dialog.release-wizard .publish-qa ul{padding-left:18px;margin:10px 0 0;font-size:13px;line-height:1.6;color:#555}
dialog.release-wizard .publish-qa li+li{margin-top:6px}
dialog.release-wizard .qa-notes{margin-top:16px}
dialog.release-wizard .qa-notes summary{font-size:12px;cursor:pointer;color:#58656d}
dialog.release-wizard .qa-manual{margin-top:24px;padding:0 2px}
dialog.release-wizard .qa-manual h4{font-size:14px;font-weight:600;margin:0 0 8px}
dialog.release-wizard .qa-manual p{font-size:13px;line-height:1.6;color:#777;margin:0;max-width:58ch}
dialog.release-wizard #liveReviewForm .publish-actions{padding:16px 28px 20px;background:#fff}
dialog.release-wizard .release-save-note{font-size:11px;margin:0 0 6px;color:#888}
dialog.release-wizard #publishStatus{font-size:12px;line-height:1.5;margin-bottom:14px}
dialog.release-wizard #liveReviewForm .publish-actions>div{gap:10px;flex-wrap:nowrap}
dialog.release-wizard #liveReviewForm .publish-actions button{width:auto;flex:0 0 auto;min-height:44px;padding:10px 18px;border-radius:10px;line-height:1.4;font-size:13px}
dialog.release-wizard #liveReviewForm .publish-actions [data-release-back]{padding-left:0;margin-right:auto}
dialog.release-wizard button:disabled{cursor:default;opacity:.5}
dialog.release-wizard button:focus-visible,dialog.release-wizard summary:focus-visible{outline:2px solid #6a818e;outline-offset:3px}
dialog.release-wizard .release-card{max-width:100%;display:grid;grid-template-columns:180px minmax(0,1fr);column-gap:20px;align-items:start;margin-bottom:24px}
dialog.release-wizard .release-card-image{grid-row:1 / span 2;border-radius:10px}
dialog.release-wizard .release-card strong{font-size:17px;font-weight:600;margin:0 0 8px}
dialog.release-wizard .release-card p{margin:0;font-size:13px;overflow-wrap:anywhere}
dialog.release-wizard .release-requirements button:hover span:first-child{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){
dialog.release-wizard:has(#liveReviewForm){width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}
dialog.release-wizard:has(#liveReviewForm)>h2{padding:20px 20px 0;font-size:22px;margin-bottom:20px}
dialog.release-wizard:has(#liveReviewForm)>.release-steps,dialog.release-wizard:has(#liveReviewForm)>.release-progress{padding-left:20px;padding-right:20px}
dialog.release-wizard:has(#liveReviewForm)>.release-progress{padding-top:8px;padding-bottom:16px}
dialog.release-wizard #liveReviewForm .publish-body{padding:20px}
dialog.release-wizard #liveReviewForm .publish-actions{padding:14px 20px max(16px,env(safe-area-inset-bottom))}
dialog.release-wizard #liveReviewForm .publish-actions button{padding:10px 12px;font-size:12px}
dialog.release-wizard input:not([type=checkbox]):not([type=range]):not([type=file]),dialog.release-wizard textarea,dialog.release-wizard select{font-size:16px}
dialog.release-wizard .publish-qa{padding:16px!important}
dialog.release-wizard .publish-qa [data-qa-status]{font-size:17px}
dialog.release-wizard .release-card{grid-template-columns:1fr;gap:12px}
dialog.release-wizard .release-card-image{grid-row:auto}
dialog.release-wizard .release-card strong{margin:0}
}

@media(max-width:600px){dialog.release-wizard .release-steps button{height:40px!important;min-height:40px;padding:0!important;border-radius:8px}dialog.release-wizard .release-steps button>span{display:inline-flex!important;align-items:center;justify-content:center;width:28px;height:28px;font-size:13px!important;line-height:1!important;border:0!important;background:transparent!important}dialog.release-wizard .release-steps button[aria-current=step]>span{color:#fff!important}}

/* Compact, explicit tech selection. */
.publication-cover [data-cover-adjust]{margin-left:14px!important}
dialog.release-wizard .tool-picker.compact-tech{display:block;margin:24px 0;padding:20px 0 0;border:0;border-top:1px solid #e8e8e6;min-width:0;position:relative}
.tool-picker.compact-tech>legend{display:block!important;font-size:15px;font-weight:600;padding:0;margin-bottom:16px}
.compact-tech>legend .muted{font-size:12px;font-weight:400;margin-left:4px}
.tool-picker.compact-tech .tech-search-label{display:block;padding:0;border:0;font-size:12px;color:#777;background:none}
.tool-picker.compact-tech [data-tech-search]{width:100%;margin:7px 0 12px!important;background:#fff;padding:12px 14px!important;border:1px solid #ddd;border-radius:10px;font:inherit;color:#171717}
.tool-picker.compact-tech .tech-category-strip{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:0 0 10px;scrollbar-width:thin}
.tool-picker.compact-tech .tech-category-strip button{flex:0 0 auto;display:flex;align-items:center;gap:10px;white-space:nowrap;background:#fff;border:1px solid #ddd;border-radius:8px;padding:9px 12px;min-height:38px;font:400 12px/1.4 Inter,Arial,sans-serif;color:#444;cursor:pointer}
.tool-picker.compact-tech .tech-category-strip button[aria-expanded=true]{border-color:#222;color:#171717;background:#f5f5f3}
.tool-picker.compact-tech .tech-menu{background:#fff;border:1px solid #ddd;border-radius:12px;box-shadow:0 6px 18px #0000000c;margin:0 0 14px;overflow:hidden}
.tool-picker.compact-tech .tech-menu[hidden]{display:none!important}
.tool-picker.compact-tech .tech-menu-title{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #eee;font-size:12px;color:#777}
.tool-picker.compact-tech .tech-menu-title button{background:transparent;border:0;cursor:pointer;font-size:20px;padding:0 6px;min-height:24px;color:#777}
.tool-picker.compact-tech .tech-menu-list{max-height:224px;overflow-y:auto;overscroll-behavior:contain;padding:4px}
.tool-picker.compact-tech .tech-menu-list>button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;border:0;border-radius:7px;padding:8px 10px;background:#fff;text-align:left;font:400 14px/1.4 Inter,Arial,sans-serif;color:#171717;cursor:pointer}
.tool-picker.compact-tech .tech-menu-list>button:hover,.tool-picker.compact-tech .tech-menu-list>button:focus-visible{background:#f5f5f3}
.tool-picker.compact-tech .tech-menu-list>button[aria-checked=true]{background:#f5f7f6}
.tool-picker.compact-tech .tech-menu-list img{width:24px;height:24px;object-fit:contain;flex:0 0 24px;border-radius:4px}
.tool-picker.compact-tech .tech-menu-list .tech-check{margin-left:auto;width:20px;text-align:center;font-weight:600}
.tool-picker.compact-tech .tech-menu-list>p{padding:10px;font-size:13px;color:#777}
.tool-picker.compact-tech .tech-selected{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;position:static}
.tool-picker.compact-tech .tech-selected>button{display:inline-flex;align-items:center;gap:8px;background:#f7f7f5;border:1px solid #e2e2df;border-radius:8px;padding:7px 10px;font:400 13px/1.4 Inter,Arial,sans-serif;color:#333;min-height:36px;cursor:pointer}
.tool-picker.compact-tech .tech-selected img{width:20px;height:20px;object-fit:contain;border-radius:3px}
.tool-picker.compact-tech .tech-confirm-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.tool-picker.compact-tech .tech-picker-status{font-size:12px;color:#777;margin:0;line-height:1.5}
.tool-picker.compact-tech [data-confirm-tech]{width:auto;min-height:40px;padding:9px 16px;border-radius:8px;background:white;border:1px solid #ddd;font:500 13px/1.4 Inter,Arial,sans-serif;cursor:pointer}
.tool-picker.compact-tech .tech-committed{display:none!important}
@media(max-width:600px){.tool-picker.compact-tech [data-tech-search]{font-size:16px}.tool-picker.compact-tech .tech-menu-list{max-height:200px}.tool-picker.compact-tech .tech-category-strip button{min-height:44px}}

/* Clear result first; retry and diagnostic detail are secondary. */
dialog.release-wizard .publish-qa{background:#fff!important;border-color:#dedfdf!important}
dialog.release-wizard .publish-qa-heading{display:flex;justify-content:space-between;flex-wrap:wrap}
dialog.release-wizard [data-qa-badge]{font-size:11px;font-weight:600;padding:5px 9px;background:#edf2f4;border-radius:6px;color:#50616a}
dialog.release-wizard [data-qa-state=passed] [data-qa-badge]{background:#eaf1e8;color:#435c42}
dialog.release-wizard [data-qa-state=failed] [data-qa-badge]{background:#f6ece3;color:#795337}
dialog.release-wizard .qa-check-actions{display:flex;gap:16px;align-items:start;flex-wrap:wrap;border-top:1px solid #e8e8e6;margin-top:20px;padding-top:16px}
dialog.release-wizard .qa-scope{flex:1;min-width:160px;font-size:12px;padding-top:10px;color:#666}
dialog.release-wizard .qa-scope summary{cursor:pointer}
dialog.release-wizard .qa-findings li{padding:6px 0}
