/* V3: keep the deployed palette and shell; reduce only workspace nesting. */
#mainArea .v3-inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#mainArea .v3-note,.v3-note{color:#647084;font-size:13px;line-height:1.7}
#mainArea .v3-error,.v3-error{color:#9c342d;white-space:pre-wrap;line-height:1.7}
#mainArea .v3-stale{color:#805013;background:#fff5e6;padding:12px 16px;border-radius:12px}
#mainArea .v3-placeholder:disabled{opacity:.55;cursor:not-allowed}
/* Result actions size to their label; a disabled placeholder must not claim the row. */
#mainArea .creation-v1-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px}
#mainArea .creation-v1-actions>.btn{width:auto;min-width:max-content;flex:1 1 auto;white-space:nowrap;margin:0;padding:12px 20px;min-height:46px;line-height:1.5}
#mainArea .creation-v1-actions>.v3-placeholder{flex:0 1 auto}
#mainArea .v3-inline-actions>.btn,.v3-dialog .v3-inline-actions>.btn,.v3-dialog footer>.btn{width:auto;flex:0 1 auto;white-space:nowrap;margin:0}
#mainArea .creation-v1-actions>.btn:disabled,.v3-dialog button:disabled,#mainArea .creation-v1-feedback button:disabled{cursor:not-allowed;transform:none;box-shadow:none}
@media(max-width:600px){#mainArea .creation-v1-actions>.btn{padding:11px 14px}#mainArea .creation-v1-actions>.v3-placeholder{flex-basis:100%}}
#mainArea .v3-sentence{display:inline;border:0;border-radius:4px;padding:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;white-space:pre-wrap;cursor:text}
#mainArea .v3-sentence:hover,#mainArea .v3-sentence:focus-visible{background:#eaf0f7;outline:2px solid #b7c5d8;outline-offset:2px}
#mainArea .creation-v1-block-copy{white-space:pre-wrap}
#mainArea .selected-gravity-card{box-shadow:none;border:0;background:transparent;padding:18px;min-height:160px;justify-content:center;gap:12px}
#mainArea .selected-gravity-card p{margin:0;color:#536071;line-height:1.6}
.v3-dialog{box-sizing:border-box;margin:auto;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:1px solid #dce3ed;border-radius:20px;padding:0;color:#263346;background:#fff;box-shadow:0 24px 90px #16203333;overflow:auto}
.v3-dialog::backdrop{background:#18213166}
.v3-dialog header,.v3-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid #edf0f4}
.v3-dialog footer{border-bottom:0;border-top:1px solid #edf0f4;justify-content:flex-end;flex-wrap:wrap}
.v3-dialog header h3{font-size:20px;margin:0}.v3-dialog section{padding:20px 24px}.v3-dialog label{display:block;margin:12px 0 8px;font-weight:600;font-size:14px}
.v3-dialog textarea,.v3-dialog input,.v3-dialog select{box-sizing:border-box;width:100%;border:1px solid #ced8e5;border-radius:10px;padding:12px 14px;background:#f8fafc;color:#263346;font:inherit;line-height:1.8}
.v3-dialog textarea{min-height:140px;resize:vertical}.v3-dialog .v3-inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.v3-dialog button{font:inherit}.v3-dialog .v3-original{white-space:pre-wrap;line-height:1.85;padding:12px 14px;background:#f5f7fa;border-radius:10px}
.v3-dialog .v3-close{border:0;background:transparent;font-size:24px;width:36px;height:36px;cursor:pointer}
.v3-advanced{border:1px solid #e1e7ef;border-radius:14px;padding:12px 16px;margin:12px 0;background:#fff}
.v3-advanced>summary{cursor:pointer;font-size:14px;font-weight:600;min-height:28px}
@media(min-width:761px){
 #mainArea #tool-create .create-main-pane,#mainArea #tool-create #dualInputs,#mainArea #tool-create #singleInput{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
 #mainArea #tool-create .smart-input-field{box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important}
 #mainArea #tool-create .smart-input-shell{border:1px solid #dce3ed!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
 #mainArea #tool-create #dualInputs{gap:22px!important;margin-top:22px!important}
 #mainArea #tool-create .smart-input-head{padding:0 0 12px!important}
 #mainArea #tool-create .smart-input-foot{padding:10px 0 0!important}
 #mainArea #tool-create .domain-engine-picker{display:none!important}
 #mainArea #tool-create .prompt-profile-picker{box-shadow:none!important;border:0!important;padding:12px 0!important;background:transparent!important}
 #mainArea #tool-create .create-main-pane textarea{min-height:240px}
 #mainArea #tool-create .v3-advanced{order:3}
 #mainArea #tool-create .create-side-card{box-shadow:none!important;padding:0!important;background:transparent!important;border:0!important}
}
@media(max-width:760px){.v3-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.v3-dialog header,.v3-dialog section,.v3-dialog footer{padding:16px}.v3-dialog footer .btn{flex:1}.v3-sentence{min-height:32px}}
#mainArea .v3-product-card{padding:22px;background:#fff;border:1px solid #e3e8ef;border-radius:18px;margin-bottom:14px}
#mainArea .v3-product-open{display:flex;gap:20px;width:100%;border:0;padding:0;background:transparent;text-align:left;cursor:pointer;color:inherit}
#mainArea .v3-product-open img,#mainArea .v3-product-image-empty{width:96px;height:96px;object-fit:cover;border-radius:12px;flex:none;background:#f1f4f8;display:grid;place-items:center;color:#6c7789;font-size:13px}
#mainArea .v3-product-open h3{font-size:18px;margin:0 0 8px}.v3-product-open p{font-size:14px;line-height:1.7;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#mainArea .v3-product-card>.v3-inline-actions{justify-content:flex-end;margin-top:14px}.v3-product-reader{width:min(900px,calc(100vw - 32px))}.v3-product-heading{display:flex;align-items:center;gap:20px}.v3-product-heading img{height:120px;width:120px;object-fit:cover;border-radius:14px}.v3-product-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:16px}.v3-product-changes{background:#f8fafc;padding:18px;border-radius:12px;margin-top:24px}.v3-product-changes input[type=radio],.v3-dialog input[type=radio]{width:auto;margin-right:8px}.v3-product-task{padding:20px;border:1px solid #dce3ed;border-radius:14px;margin-bottom:14px;background:#f5f7fa}.v3-pick-row{display:block;width:100%;text-align:left;padding:16px 0;border:0;border-bottom:1px solid #e1e7ef;background:transparent;color:#263346;cursor:pointer}.v3-pick-row b,.v3-pick-row span{display:block}.v3-pick-row span{white-space:pre-wrap;font-size:14px;line-height:1.7;color:#647084;margin-top:6px}.v3-library-select{max-width:150px;min-height:38px;border:1px solid #cbd5e1;border-radius:12px;background:white;padding:6px 10px;margin:8px}
#mainArea #tool-compliance textarea{width:100%;box-sizing:border-box;min-height:240px;padding:20px;border:1px solid #dce3ed;border-radius:14px;font:inherit;line-height:1.8;margin:12px 0 18px}
#mainArea .v3-health-prose{white-space:pre-wrap;font-size:18px;line-height:2;padding:24px;background:#fff;border:1px solid #e1e7ef;border-radius:14px;margin:18px 0}.v3-mark{padding:2px 3px;border-radius:3px;background:transparent}.v3-mark.high,.v3-health-annotation.high{color:#8d242e;background:#ffe7e8}.v3-mark.medium,.v3-health-annotation.medium{color:#5b2b77;background:#f2e7fa}.v3-mark.low,.v3-health-annotation.low{color:#6e4a00;background:#fff4c7}.v3-rewritten{border-bottom:2px solid #8bb69f;background:#eff8f1}.v3-health-annotation,.v3-health-check{padding:18px 20px;border:1px solid #e1e7ef;border-radius:12px;background:#fff;margin:12px 0;font-size:15px;line-height:1.8}.v3-health-annotation h4,.v3-health-annotation p{margin:8px 0}.v3-history-row{display:flex;align-items:center;gap:20px;border-bottom:1px solid #e1e7ef}.v3-history-row>.v3-pick-row{flex:1;border:0}.v3-input-label{font-weight:600;font-size:15px}
#mainArea .work-reading-card{box-shadow:none!important;border:1px solid #e1e7ef!important;background:#fff!important;border-radius:16px!important;margin-bottom:14px!important}
#mainArea .work-reading-open p{white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#566479;line-height:1.8}
#mainArea .work-reading-footer{display:flex;gap:12px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid #edf0f4}
#mainArea .work-reading-footer>span{flex:1;min-width:140px}
#mainArea #crExtraWrap{margin:16px 0}#mainArea #crExtraWrap input{background:#fff;border:1px solid #dce3ed;border-radius:12px;padding:12px;width:100%;box-sizing:border-box}
#mainArea #v3Advanced #tagContainer{display:block!important;max-height:none!important;overflow:visible!important;padding:12px 0!important}
#mainArea #v3Advanced .tag-group{box-shadow:none}
@media(min-width:761px){#mainArea #tool-create .v3-advanced{order:initial}}
#mainArea #toggleTagsBtn[hidden]{display:none!important}
.v3-product-images{display:flex;flex-wrap:wrap;gap:12px}.v3-product-images img{width:120px;height:120px;object-fit:cover;border-radius:10px}.v3-product-images a{display:block}
.v3-confirm{width:min(480px,calc(100vw - 32px));height:fit-content;inset:0;margin:auto}.v3-confirm footer .btn{width:auto;min-width:96px;flex:0 1 auto;margin:0}.v3-confirm-message{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.v3-confirm button:focus-visible{outline:3px solid #879fbd;outline-offset:3px}

@media(max-width:760px){#mainArea .v3-product-card{grid-column:1/-1;padding:16px}#mainArea .v3-product-open>div:last-child{min-width:0;flex:1;overflow-wrap:anywhere}}

/* Shared semantic icons; do not change runtime visibility or tool availability. */
#mainArea .dyl-tool-icon{display:inline-block!important;width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
#mainArea #panel-tools .subtab[data-v3-icon]{gap:8px!important;align-items:center;min-height:44px}
#mainArea #panel-tools .subtab .dyl-tool-icon{width:18px;height:18px;opacity:.85}
#mainArea #panel-tools .subtab.active .dyl-tool-icon{opacity:1}
#mainArea.app-shell>.tabs .tab[data-v3-icon],body.pc-ratio-preview.app-authed #mainArea.app-shell>.tabs .tab[data-v3-icon]{display:flex;align-items:center;justify-content:center;gap:10px}
#mainArea.app-shell>.tabs .tab[data-v3-icon]::before,body.pc-ratio-preview.app-authed #mainArea.app-shell>.tabs .tab[data-v3-icon]::before{display:none!important;content:none!important}
#mainArea :is(.mobile-tool-icon,.mobile-line-icon) .dyl-tool-icon{width:24px;height:24px;stroke-width:1.7}
#mainArea [data-v3-icon]{transition:background-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
#mainArea [data-v3-icon]:hover:not(:disabled):not([aria-disabled=true]) .dyl-tool-icon{opacity:1}
#mainArea [data-v3-icon]:focus-visible{outline:3px solid #78a9d3!important;outline-offset:3px}
#mainArea [data-v3-icon]:disabled,#mainArea [data-v3-icon][aria-disabled=true]{opacity:.5;cursor:not-allowed;transform:none!important}
@media(min-width:981px){#mainArea.app-shell>.topbar .mobile-top-title{display:none}}
@media(prefers-reduced-motion:reduce){#mainArea [data-v3-icon]{transition:none}}
/* Restore native selected-state rendering after the shared input reset. */
.v3-dialog input[type=radio]{appearance:auto;-webkit-appearance:radio;accent-color:#263346;width:18px;height:18px;min-height:0;padding:0;border-radius:50%;vertical-align:middle}
.v3-dialog input[type=radio]:focus-visible{outline:2px solid #527fa6;outline-offset:3px}
