/* DrecuWorks 9.0.0 professional workbench */
.dw-pro-runtime{display:flex;align-items:stretch;gap:.7rem;flex-wrap:wrap}.dw-pro-runtime>div{display:flex;align-items:center;gap:.65rem;min-width:180px;flex:1;padding:.75rem .9rem;border:1px solid #e5e7eb;border-radius:14px;background:rgba(255,255,255,.86);box-shadow:0 8px 25px rgba(15,23,42,.04)}.dw-pro-runtime>div>i{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#f5f3ff;color:#7c3aed}.dw-pro-runtime strong,.dw-pro-runtime small{display:block}.dw-pro-runtime strong{font-size:.83rem}.dw-pro-runtime small{font-size:.72rem;color:#64748b;margin-top:.1rem}.dw-pro-runtime>button{align-self:center}.dw-pro-file-inspector{margin:1rem 0;padding:.85rem;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc}.dw-pro-file-inspector-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.65rem}.dw-pro-file-inspector [data-pro-file-list]{display:grid;gap:.55rem}.dw-pro-file-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.55rem .65rem;border:1px solid #e5e7eb;border-radius:12px;background:#fff}.dw-pro-file-preview{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#eef2ff;color:#6366f1;overflow:hidden}.dw-pro-file-preview img{width:100%;height:100%;object-fit:cover}.dw-pro-file-row strong,.dw-pro-file-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dw-pro-file-row strong{font-size:.82rem}.dw-pro-file-row small{font-size:.7rem;color:#64748b}.dw-pro-file-status{font-size:.7rem;padding:.25rem .45rem;border-radius:999px;background:#ecfdf5;color:#047857}.dw-pro-mobile-action{display:none}.dw-pro-toast{position:fixed;right:1rem;bottom:1rem;z-index:11000;max-width:360px;padding:.8rem 1rem;border-radius:13px;background:#0f172a;color:#fff;box-shadow:0 18px 55px rgba(15,23,42,.3);opacity:0;transform:translateY(10px);transition:.18s ease;pointer-events:none}.dw-pro-toast.is-visible{opacity:1;transform:none}.toolbox-page-v4 .form-control:focus,.toolbox-page-v4 .custom-select:focus{border-color:#8b5cf6;box-shadow:0 0 0 .2rem rgba(139,92,246,.14)}.toolbox-page-v4 [data-toolbox-dropzone]:focus-visible,.toolbox-page-v4 button:focus-visible{outline:3px solid rgba(124,58,237,.28);outline-offset:2px}.toolbox-processing-overlay{backdrop-filter:blur(6px)}@media(max-width:767px){.dw-pro-runtime{display:grid;grid-template-columns:1fr 1fr}.dw-pro-runtime>div{min-width:0}.dw-pro-runtime>button{grid-column:1/-1}.dw-pro-mobile-action{position:fixed;left:.65rem;right:.65rem;bottom:.65rem;z-index:1040;display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.65rem .7rem;border:1px solid rgba(255,255,255,.65);border-radius:16px;background:rgba(15,23,42,.94);color:#fff;box-shadow:0 16px 50px rgba(15,23,42,.34);backdrop-filter:blur(10px)}.dw-pro-mobile-action strong,.dw-pro-mobile-action small{display:block;max-width:62vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dw-pro-mobile-action strong{font-size:.78rem}.dw-pro-mobile-action small{font-size:.68rem;color:#cbd5e1}.toolbox-settings-fab{bottom:5.2rem!important}.toolbox-page-v4{padding-bottom:5.5rem}.toolbox-workbench-header h1{font-size:1.65rem}.toolbox-easy-steps{overflow-x:auto;justify-content:flex-start}.toolbox-easy-steps span{min-width:88px}.toolbox-security-strip{display:grid!important;grid-template-columns:1fr 1fr}.dw-pro-file-row{grid-template-columns:38px minmax(0,1fr)}.dw-pro-file-status{grid-column:2}.dw-pro-runtime{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.dw-pro-toast,.dw-pro-runtime>div{transition:none!important;transform:none!important}}

/* 8.8 sponsor quality gate */
.toolbox-sponsor-modal{position:fixed;inset:0;z-index:1080;background:rgba(15,23,42,.68);display:grid;place-items:center;padding:1rem}.toolbox-sponsor-modal.d-none{display:none!important}.toolbox-sponsor-dialog{position:relative;width:min(430px,100%);background:#fff;border-radius:22px;padding:2rem;text-align:center;box-shadow:0 30px 80px rgba(15,23,42,.3)}.toolbox-sponsor-dialog>i{font-size:2.4rem;color:#c026d3}.toolbox-sponsor-close{position:absolute;right:1rem;top:1rem;border:0;background:#f1f5f9;width:36px;height:36px;border-radius:50%;font-size:1.5rem}.toolbox-sponsor-timer{font-size:2rem;font-weight:800;margin:1rem 0;color:#7c3aed}.toolbox-builtin-preset-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}@media(max-width:767px){.toolbox-sponsor-dialog{padding:1.5rem}.toolbox-builtin-preset-grid{grid-template-columns:1fr}}

/* DrecuWorks 8.9 task-focused commercial UI */
.dw-pro-runtime,.toolbox-recommendations,.toolbox-live-summary,.toolbox-security-strip,.toolbox-seo-copy,.toolbox-settings-fab,.toolbox-settings-help{display:none!important}
.toolbox-workbench{max-width:1040px}.toolbox-processing-card{border:1px solid #e8eaf2!important;box-shadow:0 10px 28px rgba(15,23,42,.055)!important}.toolbox-processing-card .card-body{padding:2rem!important}.toolbox-easy-steps{margin-bottom:1rem!important}.toolbox-workbench-header{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}.toolbox-upgrade-strip{display:none!important}
.dw-enhance-console{display:grid;gap:1rem}.dw-enhance-quick{border:1px solid #e5e7eb;border-radius:18px;padding:1.1rem;background:#fff}.dw-enhance-quick small,.dw-enhance-manual small,.dw-enhance-advanced small{display:block;color:#64748b;margin-top:.15rem}.dw-enhance-profile-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}.dw-enhance-profile-chips button{border:1px solid #dfe3ee;background:#f8fafc;border-radius:999px;padding:.55rem .85rem;font-weight:700;color:#334155}.dw-enhance-profile-chips button.is-active{background:#111827;color:#fff;border-color:#111827}.dw-enhance-manual,.dw-enhance-advanced{border:1px solid #e5e7eb;border-radius:18px;background:#fff;overflow:hidden}.dw-enhance-manual summary,.dw-enhance-advanced summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:1rem 1.1rem;list-style:none}.dw-enhance-manual summary::-webkit-details-marker,.dw-enhance-advanced summary::-webkit-details-marker{display:none}.dw-enhance-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:0 1.1rem 1.1rem}.dw-enhance-control-grid label>span{display:flex;justify-content:space-between;font-weight:700;font-size:.86rem}.dw-enhance-control-grid b{color:#a21caf}.dw-enhance-switches{display:flex;flex-wrap:wrap;gap:.65rem}.dw-enhance-switches label{padding:.65rem .8rem;border:1px solid #e5e7eb;border-radius:12px;background:#fff;margin:0;font-size:.86rem}.dw-enhance-presets{border-top:1px solid #eef0f5;padding-top:1.1rem}.toolbox-template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.toolbox-template-card{min-height:78px}.toolbox-smart-analysis{border-radius:16px!important;padding:1rem!important}.toolbox-smart-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:767px){.toolbox-processing-card .card-body{padding:1rem!important}.dw-enhance-control-grid{grid-template-columns:1fr}.toolbox-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbox-smart-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dw-enhance-profile-chips{overflow-x:auto;flex-wrap:nowrap;padding-bottom:.25rem}.dw-enhance-profile-chips button{white-space:nowrap}.toolbox-easy-steps small{font-size:.7rem}}

/* DrecuWorks 9.0.0 — compact task console and reliable component styling */
.toolbox-page-v4 .toolbox-options[data-default-collapsed="0"]{display:block!important}
.toolbox-page-v4[data-tool="image-enhance"] .toolbox-options{display:block!important}
.dw-task-title{display:flex;align-items:flex-start;gap:.8rem;padding:.95rem 1rem;border-radius:15px;background:linear-gradient(135deg,#f5f3ff,#f8fafc);border:1px solid #e9e5ff}.dw-task-title>i{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#fff;color:#9333ea;box-shadow:0 8px 20px rgba(124,58,237,.1)}.dw-task-title strong,.dw-task-title small{display:block}.dw-task-title small{color:#64748b;margin-top:.2rem;line-height:1.45}.dw-engine-note{display:flex;gap:.65rem;align-items:flex-start;padding:.75rem .85rem;border-radius:12px;background:#f8fafc;color:#475569;font-size:.8rem}.dw-engine-note i{color:#7c3aed;margin-top:.15rem}.dw-background-console{display:grid;gap:.55rem}
/* The former cards inherited the browser's native button border. These rules make every profile deterministic. */
.toolbox-template-grid{display:grid;gap:.65rem}.toolbox-template-card{appearance:none;-webkit-appearance:none;width:100%;min-width:0;display:flex;align-items:flex-start;gap:.7rem;text-align:left;padding:.8rem;border:1px solid #e3e7ef!important;border-radius:13px!important;background:#fff!important;color:#1e293b!important;box-shadow:none!important;overflow:hidden;white-space:normal}.toolbox-template-card:hover{border-color:#c4b5fd!important;background:#fafaff!important;transform:translateY(-1px)}.toolbox-template-card>i{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#f5f3ff;color:#a21caf}.toolbox-template-card>span{min-width:0}.toolbox-template-card strong,.toolbox-template-card small{display:block;white-space:normal;overflow-wrap:anywhere}.toolbox-template-card strong{font-size:.82rem;line-height:1.25}.toolbox-template-card small{font-size:.69rem;line-height:1.35;color:#64748b;margin-top:.15rem}.toolbox-template-card.is-locked{opacity:.55;cursor:not-allowed}
.dw-enhance-console{padding:0;background:transparent}.dw-enhance-quick{background:linear-gradient(135deg,#fff,#fafaff)}.dw-enhance-profile-chips button{appearance:none;line-height:1.2}.dw-enhance-manual[open],.dw-enhance-advanced[open]{box-shadow:0 8px 24px rgba(15,23,42,.035)}.dw-enhance-control-grid input[type=range]{width:100%}.dw-enhance-control-grid label{min-width:0}.dw-enhance-switches input{margin-right:.35rem}.toolbox-smart-analysis{margin-bottom:.25rem}
.toolbox-media-analysis-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1rem;align-items:center;padding:.85rem;border:1px solid #dfe7f3;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#fff)}.toolbox-media-thumb{aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#111827;display:grid;place-items:center;color:#fff;font-size:1.6rem}.toolbox-media-thumb img{width:100%;height:100%;object-fit:cover}.toolbox-media-analysis-card span,.toolbox-media-analysis-card strong,.toolbox-media-analysis-card small{display:block}.toolbox-media-analysis-card>div:last-child>span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#a21caf;font-weight:800}.toolbox-media-analysis-card strong{font-size:.92rem;line-height:1.35;margin:.15rem 0}.toolbox-media-analysis-card small{color:#64748b}.toolbox-format-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem}.toolbox-format-chips span{font-size:.65rem!important;letter-spacing:0!important;text-transform:none!important;padding:.22rem .42rem;border-radius:999px;background:#ede9fe;color:#6d28d9!important}.toolbox-media-engine-note{font-size:.75rem;color:#9a3412}.toolbox-media-engine-note i{margin-right:.3rem}
.toolbox-processing-card .toolbox-url-stage{border:0;padding:0;background:transparent}.toolbox-url-stage>.form-group{padding:1rem;border:1px solid #e2e8f0;border-radius:16px;background:#fff}.toolbox-submit-button{min-height:50px}
@media(max-width:991px){.toolbox-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.toolbox-media-analysis-card{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:575px){.toolbox-template-grid{grid-template-columns:1fr!important}.toolbox-media-analysis-card{grid-template-columns:1fr}.toolbox-media-thumb{max-width:100%}.dw-enhance-quick{padding:.9rem}.dw-enhance-control-grid{padding:0 .9rem .9rem}.dw-enhance-manual summary,.dw-enhance-advanced summary{padding:.9rem}.toolbox-workbench-header h1{font-size:1.5rem}.toolbox-processing-card .card-body{padding:.85rem!important}}

/* DrecuWorks 10.0 — unified studio experience */
.toolbox-page-v4{
    --dw-border:#e6e8f0;
    --dw-ink:#121826;
    --dw-muted:#667085;
    --dw-panel:#ffffff;
    --dw-canvas:#f5f7fb;
    --dw-purple:#7c3aed;
    --dw-magenta:#c026d3;
    background:
        radial-gradient(circle at 7% 4%,rgba(124,58,237,.055),transparent 27rem),
        radial-gradient(circle at 94% 12%,rgba(14,165,233,.045),transparent 25rem),
        #f8fafc;
    color:var(--dw-ink)
}
.toolbox-page-v4 .toolbox-workbench{max-width:1220px;padding-top:2.2rem!important}
.toolbox-page-v4 .row.justify-content-center>.col-12{max-width:1180px;flex:0 0 100%}
.toolbox-page-v4 .toolbox-workbench-header{display:grid;grid-template-columns:56px minmax(0,1fr);gap:1rem;align-items:center;margin-bottom:1.25rem!important}
.toolbox-page-v4 .toolbox-workbench-icon{width:56px;height:56px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,var(--tool-accent,#7c3aed),#2563eb);color:#fff;box-shadow:0 14px 34px color-mix(in srgb,var(--tool-accent,#7c3aed) 23%,transparent);font-size:1.15rem}
.toolbox-page-v4 .toolbox-processing-card{border:1px solid rgba(226,232,240,.95)!important;border-radius:24px!important;background:rgba(255,255,255,.95);box-shadow:0 22px 60px rgba(15,23,42,.075)!important;overflow:hidden}
.toolbox-page-v4 .toolbox-processing-card .card-body{padding:clamp(1rem,3vw,2rem)!important}
.toolbox-page-v4 .toolbox-options-shell{border:0;background:transparent;padding:0}
.toolbox-page-v4 .toolbox-options-heading{padding:.85rem 0 1rem;border-bottom:1px solid var(--dw-border);margin-bottom:1rem}
.toolbox-page-v4 .toolbox-options-heading strong{font-size:1rem;color:var(--dw-ink)}
.toolbox-page-v4 .toolbox-options-heading small{font-size:.76rem;color:var(--dw-muted)}
.toolbox-page-v4 .form-control,.toolbox-page-v4 .custom-select{min-height:46px;border:1px solid #dfe3eb;border-radius:12px;background:#fff;color:var(--dw-ink);box-shadow:0 1px 2px rgba(15,23,42,.025)}
.toolbox-page-v4 textarea.form-control{min-height:96px}
.toolbox-page-v4 .form-control:hover,.toolbox-page-v4 .custom-select:hover{border-color:#c9cfda}
.toolbox-page-v4 .toolbox-submit-button{min-height:56px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--tool-accent,#7c3aed),#2563eb);box-shadow:0 13px 30px color-mix(in srgb,var(--tool-accent,#7c3aed) 24%,transparent);font-weight:800;letter-spacing:-.01em}
.toolbox-page-v4 .toolbox-submit-button:hover{transform:translateY(-1px);filter:saturate(1.06)}
.toolbox-page-v4 .toolbox-dropzone-v4{border:1.5px dashed #c9d0df;border-radius:20px;background:linear-gradient(145deg,#fff,#fafbff);min-height:285px;transition:border-color .18s,box-shadow .18s,transform .18s}
.toolbox-page-v4 .toolbox-dropzone-v4:hover,.toolbox-page-v4 .toolbox-dropzone-v4.is-dragging{border-color:var(--tool-accent,#7c3aed);box-shadow:0 0 0 5px color-mix(in srgb,var(--tool-accent,#7c3aed) 10%,transparent);transform:translateY(-1px)}
.toolbox-page-v4 .toolbox-upload-orbit{background:linear-gradient(145deg,#fff,#eef2ff);box-shadow:0 12px 35px rgba(79,70,229,.13)}
.toolbox-page-v4 .toolbox-easy-steps{border:1px solid #e8eaf1;border-radius:15px;background:rgba(255,255,255,.82);padding:.45rem .65rem;box-shadow:0 5px 18px rgba(15,23,42,.025)}
.toolbox-page-v4 .toolbox-easy-steps>span{border-radius:10px}
.toolbox-page-v4 .toolbox-membership-pill{border:1px solid #e2e8f0;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.04)}
.toolbox-page-v4 .toolbox-smart-analysis{border:1px solid #dfe6ff!important;background:linear-gradient(135deg,#f8faff,#fff)!important;box-shadow:none!important}
.toolbox-page-v4 .toolbox-smart-metrics>span{border:1px solid #e8eaf4;border-radius:12px;background:#fff;padding:.65rem}
.toolbox-page-v4 .toolbox-result-card{border:1px solid #b7ebcd;border-radius:20px;background:linear-gradient(135deg,#f0fdf4,#fff);box-shadow:0 16px 35px rgba(22,101,52,.07)}

/* Media URL experience */
.toolbox-page-v4 .toolbox-url-stage>.form-group{padding:1.15rem;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(145deg,#fff,#fafbff);box-shadow:0 8px 24px rgba(15,23,42,.035)}
.toolbox-page-v4 .toolbox-url-input{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:.55rem;border:1px solid #dfe3eb;border-radius:14px;background:#fff;padding:.35rem .4rem .35rem .8rem;box-shadow:0 5px 15px rgba(15,23,42,.035)}
.toolbox-page-v4 .toolbox-url-input>.form-control{border:0;box-shadow:none;padding-left:.2rem}
.toolbox-page-v4 .toolbox-url-input>.btn{min-height:40px;border-radius:10px}
.toolbox-media-analyze-button{display:inline-flex;align-items:center;justify-content:center;margin-top:.8rem;min-height:42px;border-radius:12px!important;font-weight:750}
.toolbox-media-analysis-card{grid-template-columns:minmax(180px,235px) minmax(0,1fr);padding:1rem;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.toolbox-media-thumb{min-height:110px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.toolbox-media-thumb-fallback{display:grid;place-items:center;gap:.35rem;text-align:center;color:#cbd5e1;font-size:.75rem}.toolbox-media-thumb-fallback i{font-size:1.7rem;color:#fff}
.toolbox-format-chips span{padding:.3rem .52rem!important;background:#eef2ff!important;color:#4338ca!important;border:1px solid #dfe3ff}

/* Image enhance live studio */
.toolbox-page-v4[data-tool-page="image-enhance"] .toolbox-workbench{max-width:1280px}
.toolbox-page-v4[data-tool-page="image-enhance"] .toolbox-processing-card>.card-body{padding:1.25rem!important}
.dw-enhance-live-preview{border:1px solid #dfe4ee;border-radius:20px;background:#0c101a;overflow:hidden;box-shadow:0 18px 45px rgba(15,23,42,.15)}
.dw-enhance-live-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;background:#fff;border-bottom:1px solid #e5e7eb}
.dw-enhance-live-head>div:first-child{display:flex;align-items:center;gap:.7rem}.dw-enhance-live-head>div:first-child>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f3e8ff;color:#9333ea}.dw-enhance-live-head strong,.dw-enhance-live-head small{display:block}.dw-enhance-live-head strong{font-size:.86rem}.dw-enhance-live-head small{font-size:.69rem;color:#64748b;margin-top:.1rem}
.dw-enhance-live-actions{display:flex;align-items:center;gap:.25rem}.dw-enhance-live-actions button{border:1px solid #e2e8f0;background:#fff;border-radius:9px;width:34px;height:34px;color:#334155}.dw-enhance-live-actions span{min-width:45px;text-align:center;font-size:.72rem;font-weight:800;color:#475569}
.dw-enhance-live-stage{position:relative;height:clamp(300px,48vw,580px);overflow:auto;background-color:#121826;background-image:linear-gradient(45deg,#182132 25%,transparent 25%),linear-gradient(-45deg,#182132 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#182132 75%),linear-gradient(-45deg,transparent 75%,#182132 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;cursor:col-resize}
.dw-enhance-live-stage>img,.dw-enhance-live-after{position:absolute;inset:0;width:100%;height:100%}.dw-enhance-live-stage img{width:100%;height:100%;object-fit:contain;transform:scale(var(--preview-zoom,1));transform-origin:center;transition:filter .14s ease,transform .14s ease}.dw-enhance-live-after{clip-path:inset(0 0 0 var(--preview-split,50%));overflow:hidden}
.dw-enhance-live-handle{position:absolute;top:0;bottom:0;left:var(--preview-split,50%);transform:translateX(-50%);width:3px;border:0;background:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.2),0 0 18px rgba(0,0,0,.35);padding:0}.dw-enhance-live-handle i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;color:#111827;box-shadow:0 8px 25px rgba(0,0,0,.3)}
.dw-preview-label{position:absolute;top:.8rem;z-index:2;padding:.28rem .55rem;border-radius:999px;background:rgba(15,23,42,.76);color:#fff;font-size:.64rem;font-weight:900;backdrop-filter:blur(6px)}.dw-preview-label.is-before{left:.8rem}.dw-preview-label.is-after{right:.8rem;background:rgba(124,58,237,.82)}
.dw-enhance-split-range{margin:0;padding:.6rem 1rem;background:#fff;border-radius:0}
.dw-enhance-live-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#e5e7eb;border-top:1px solid #e5e7eb}.dw-enhance-live-metrics span{padding:.65rem .8rem;background:#fff}.dw-enhance-live-metrics b,.dw-enhance-live-metrics small{display:block}.dw-enhance-live-metrics b{font-size:.8rem;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dw-enhance-live-metrics small{font-size:.63rem;color:#64748b;margin-top:.1rem}
.dw-enhance-console{gap:.85rem}
.dw-task-title{position:relative;display:flex;align-items:center;gap:.8rem;padding:1rem;border-radius:17px;background:linear-gradient(135deg,#f7f3ff,#f7fbff);border:1px solid #e7e2ff}.dw-task-title>div{min-width:0;flex:1}.dw-task-title>span{align-self:flex-start;white-space:nowrap;padding:.3rem .5rem;border-radius:999px;background:#fff;color:#6d28d9;border:1px solid #e9d5ff;font-size:.64rem;font-weight:800}.dw-task-title-premium>i{background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff}
.dw-enhance-profile-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.dw-enhance-profile-cards>button{appearance:none;position:relative;display:flex;align-items:flex-start;gap:.65rem;min-width:0;min-height:92px;padding:.75rem;border:1px solid #e1e5ec;border-radius:14px;background:#fff;color:#1e293b;text-align:left;transition:.16s ease;box-shadow:0 4px 13px rgba(15,23,42,.025)}
.dw-enhance-profile-cards>button:hover{border-color:#c4b5fd;transform:translateY(-1px);box-shadow:0 10px 24px rgba(124,58,237,.08)}
.dw-enhance-profile-cards>button.is-active{border-color:#7c3aed;background:linear-gradient(145deg,#faf7ff,#fff);box-shadow:0 0 0 3px rgba(124,58,237,.11),0 12px 25px rgba(124,58,237,.1)}
.dw-enhance-profile-cards>button>i:first-child{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px;background:#f3e8ff;color:#8b5cf6}.dw-enhance-profile-cards>button.is-active>i:first-child{background:#7c3aed;color:#fff}
.dw-enhance-profile-cards b,.dw-enhance-profile-cards small{display:block;line-height:1.32}.dw-enhance-profile-cards b{font-size:.77rem}.dw-enhance-profile-cards small{font-size:.63rem;color:#64748b;margin-top:.16rem}.dw-enhance-profile-cards em{position:absolute;right:.45rem;top:.4rem;color:#d97706;font-size:.58rem;font-style:normal}
.dw-enhance-primary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.dw-enhance-primary-grid>label{display:block;margin:0;padding:.7rem;border:1px solid #e4e7ee;border-radius:14px;background:#fff}.dw-enhance-primary-grid>label>span,.dw-enhance-primary-grid>label>small{display:block}.dw-enhance-primary-grid>label>span{font-size:.72rem;font-weight:800;margin-bottom:.35rem}.dw-enhance-primary-grid>label>small{font-size:.61rem;color:#64748b;margin-top:.3rem}.dw-enhance-primary-grid .form-control{min-height:42px;font-size:.76rem}
.dw-enhance-quality-bar{display:grid;grid-template-columns:minmax(150px,1fr) 48px minmax(260px,2fr);align-items:center;gap:.8rem;padding:.75rem .85rem;border:1px solid #e3e7ef;border-radius:14px;background:#fff}.dw-enhance-quality-bar label,.dw-enhance-quality-bar small{display:block}.dw-enhance-quality-bar label{font-size:.78rem;font-weight:800;margin:0}.dw-enhance-quality-bar small{font-size:.64rem;color:#64748b}.dw-enhance-quality-bar>b{display:grid;place-items:center;min-height:38px;border-radius:10px;background:#f3e8ff;color:#7e22ce;font-size:.8rem}.dw-enhance-quality-bar>b:before{content:"%"}
.dw-enhance-manual,.dw-enhance-advanced{border-radius:16px}.dw-enhance-manual summary,.dw-enhance-advanced summary{background:#fff}.dw-enhance-manual summary:hover,.dw-enhance-advanced summary:hover{background:#fcfcff}.dw-enhance-control-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:.2rem .9rem .95rem}.dw-enhance-control-grid label{padding:.65rem;border:1px solid #e6e8ef;border-radius:12px;background:#fafbfc;margin:0}.dw-enhance-control-grid label>span{font-size:.69rem}.dw-enhance-control-grid label>span b{min-width:32px;text-align:center;padding:.12rem .3rem;border-radius:6px;background:#f3e8ff;color:#7e22ce}
.dw-enhance-switches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.dw-enhance-switches label{display:flex;align-items:flex-start;gap:.55rem;padding:.7rem;border:1px solid #e4e7ee;border-radius:13px;background:#fff;margin:0}.dw-enhance-switches input{margin-top:.18rem}.dw-enhance-switches b,.dw-enhance-switches small{display:block}.dw-enhance-switches b{font-size:.7rem}.dw-enhance-switches small{font-size:.61rem;color:#64748b;line-height:1.35;margin-top:.12rem}

/* Background remover studio */
.toolbox-page-v4[data-tool-page="background-remover"] .toolbox-workbench{max-width:1160px}
.dw-background-console{gap:.8rem}
.dw-bg-model-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.dw-bg-model-grid>label{position:relative;margin:0}.dw-bg-model-grid input{position:absolute;opacity:0;pointer-events:none}.dw-bg-model-grid>label>span{display:flex;flex-direction:column;align-items:flex-start;min-height:110px;padding:.75rem;border:1px solid #e1e5ec;border-radius:14px;background:#fff;cursor:pointer;transition:.16s ease}.dw-bg-model-grid>label:hover>span{border-color:#c4b5fd;transform:translateY(-1px)}.dw-bg-model-grid>label.is-active>span,.dw-bg-model-grid input:checked+span{border-color:#7c3aed;background:linear-gradient(145deg,#faf7ff,#fff);box-shadow:0 0 0 3px rgba(124,58,237,.1)}.dw-bg-model-grid span>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f3e8ff;color:#7c3aed;margin-bottom:.5rem}.dw-bg-model-grid b,.dw-bg-model-grid small{display:block}.dw-bg-model-grid b{font-size:.76rem}.dw-bg-model-grid small{font-size:.62rem;color:#64748b;line-height:1.4;margin-top:.12rem}
.dw-bg-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.7rem}.dw-bg-controls>label{display:block;margin:0;padding:.7rem;border:1px solid #e3e6ed;border-radius:14px;background:#fff}.dw-bg-controls>label>span{display:block;font-size:.72rem;font-weight:800;margin-bottom:.35rem}.dw-bg-controls .form-control{min-height:42px;font-size:.76rem}
.dw-bg-refine-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.dw-bg-refine-grid>label{display:flex;align-items:flex-start;gap:.55rem;padding:.7rem;border:1px solid #e4e7ee;border-radius:13px;background:#fff;margin:0}.dw-bg-refine-grid input{margin-top:.18rem}.dw-bg-refine-grid b,.dw-bg-refine-grid small{display:block}.dw-bg-refine-grid b{font-size:.7rem}.dw-bg-refine-grid small{font-size:.61rem;color:#64748b;line-height:1.35;margin-top:.1rem}

/* Page-specific, non-intrusive advertising */
.drecu-ad-slot{position:relative;width:min(var(--ad-max-width,970px),100%);min-height:60px;max-height:var(--ad-max-height,120px);margin:1rem auto;overflow:hidden;border:1px solid #e8eaf0;border-radius:14px;background:#fbfcfe;display:grid;place-items:center;contain:layout paint;box-shadow:none}
.drecu-ad-slot.is-compact{min-height:54px;margin:.75rem auto}.drecu-ad-label{position:absolute;left:.55rem;top:.35rem;z-index:2;font-size:.52rem;line-height:1;text-transform:uppercase;letter-spacing:.09em;color:#98a2b3;background:#fff;padding:.2rem .3rem;border-radius:4px}.drecu-ad-content{width:100%;max-height:inherit;overflow:hidden;text-align:center}.drecu-ad-content iframe,.drecu-ad-content ins,.drecu-ad-content img{max-width:100%!important;max-height:var(--ad-max-height,120px)!important}.drecu-editor-footer-ad .drecu-ad-slot{max-width:900px}

@media(max-width:991px){
    .dw-enhance-profile-cards,.dw-enhance-primary-grid,.dw-bg-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dw-enhance-control-grid,.dw-enhance-switches,.dw-bg-refine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dw-bg-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
    .toolbox-media-analysis-card{grid-template-columns:150px minmax(0,1fr)}
}
@media(max-width:767px){
    .toolbox-page-v4 .toolbox-workbench{padding-left:.65rem;padding-right:.65rem;padding-top:1rem!important}
    .toolbox-page-v4 .toolbox-workbench-header{grid-template-columns:46px minmax(0,1fr)}
    .toolbox-page-v4 .toolbox-workbench-icon{width:46px;height:46px;border-radius:14px}
    .toolbox-page-v4 .toolbox-processing-card{border-radius:18px!important}
    .toolbox-page-v4 .toolbox-url-input{grid-template-columns:20px minmax(0,1fr)}.toolbox-page-v4 .toolbox-url-input>.btn{grid-column:1/-1;width:100%}
    .dw-enhance-live-head{align-items:flex-start}.dw-enhance-live-head small{display:none}.dw-enhance-live-stage{height:340px}.dw-enhance-live-metrics{grid-template-columns:1fr 1fr}
    .dw-enhance-quality-bar{grid-template-columns:1fr 48px}.dw-enhance-quality-bar>input{grid-column:1/-1}
    .dw-task-title>span{display:none}
    .dw-bg-controls{grid-template-columns:1fr}
    .toolbox-media-analysis-card{grid-template-columns:1fr}.toolbox-media-thumb{min-height:150px}
}
@media(max-width:520px){
    .dw-enhance-profile-cards,.dw-enhance-primary-grid,.dw-enhance-control-grid,.dw-enhance-switches,.dw-bg-model-grid,.dw-bg-refine-grid{grid-template-columns:1fr}
    .dw-enhance-profile-cards>button{min-height:76px}.dw-bg-model-grid>label>span{min-height:88px}
    .dw-enhance-live-stage{height:280px}.dw-enhance-live-actions button{width:30px;height:30px}.dw-enhance-live-metrics{gap:0}
    .dw-enhance-manual summary small,.dw-enhance-advanced summary small{display:none}
}
@media(prefers-reduced-motion:reduce){.toolbox-page-v4 *{scroll-behavior:auto!important}.dw-enhance-profile-cards>button,.dw-bg-model-grid>label>span,.toolbox-page-v4 .toolbox-submit-button,.toolbox-page-v4 .toolbox-dropzone-v4{transition:none!important;transform:none!important}}
