
.cw-panel,.cw-modal,.cw-card{color:#e9d5ff;background:linear-gradient(145deg,#150a20,#09050f);border:1px solid #b47939;border-radius:18px;padding:clamp(12px,2.4vw,24px);box-shadow:0 12px 40px #09050f88,0 0 22px #e11d481a;min-width:0;overflow-wrap:anywhere}
.cw-panel{margin:18px 0}.cw-panel h2,.cw-modal h2,.cw-card h3{margin:.5em 0;color:#ffe1ed}.cw-tag{display:inline-block;font-size:12px;padding:5px 10px;border:1px solid #f59e0b66;border-radius:99px;color:#f5cf90;background:#150a20;margin:2px}.cw-primary,.cw-btn{border:1px solid #f59e0b88;border-radius:10px;padding:10px 15px;cursor:pointer;color:#ffe7f5;background:#26122f;font:inherit;white-space:normal}.cw-primary{background:linear-gradient(120deg,#9f1239,#be185d);color:white;font-weight:700;box-shadow:0 0 18px #e11d4833}.cw-good{background:#075e48;border-color:#10b981;color:#d1fae5}.cw-modal{width:min(690px,calc(100vw - 24px));max-height:88dvh;overflow:auto;position:fixed;inset:0;margin:auto;z-index:10001}.cw-modal::backdrop{background:#09050fcc;backdrop-filter:blur(4px)}.cw-modal form,.cw-quote-form{display:grid!important;grid-template-columns:1fr;gap:12px;margin:12px 0;align-items:stretch}.cw-quote-form[hidden]{display:none!important}.cw-modal label,.cw-quote-form label{display:grid;gap:5px;font-weight:600}.cw-modal input,.cw-modal textarea,.cw-quote-form input,.cw-quote-form textarea{width:100%;min-width:0;color:#e9d5ff;background:#150a20;border:1px solid #9a6a8d;border-radius:10px;padding:10px;font:inherit;box-sizing:border-box}.cw-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cw-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.cw-drop{border:1px dashed #f59e0b;border-radius:12px;padding:14px;text-align:center}.cw-file-row{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px;border-bottom:1px solid #ffffff22;overflow-wrap:anywhere}.cw-status{min-height:1.5em;color:#f9b9df}.cw-card{margin:8px 0;white-space:normal}.cw-card p{white-space:pre-wrap}.cw-money{font-size:clamp(23px,5vw,36px);font-variant-numeric:tabular-nums;color:#fbd38d;font-weight:800}.cw-why{white-space:pre-wrap;background:#ffffff09;border-radius:12px;padding:12px}.cw-stamp,.cw-alert{color:#6ee7b7;font-weight:700}.cw-stepper{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.cw-stepper span{border:1px solid #60435f;border-radius:10px;padding:8px;font-size:12px;color:#d5b8d0;flex:1;min-width:80px;text-align:center}.cw-stepper .passed{border-color:#f59e0b;color:#fbd38d}.cw-msg{width:min(100%,520px);max-width:100%!important}.cw-preview-image{display:block;max-width:100%;max-height:180px;border-radius:10px;margin:8px 0;cursor:zoom-in}.cw-lightbox{max-width:95vw;max-height:90vh;background:#09050f;color:#e9d5ff;border:1px solid #f59e0b;border-radius:12px}.cw-lightbox img{display:block;max-width:85vw;max-height:76vh;object-fit:contain}
@media(max-width:600px){.cw-two{grid-template-columns:1fr}.cw-actions>*{max-width:100%}.cw-modal,.cw-card{padding:12px}.cw-stepper span{min-width:70px}}
@media(prefers-reduced-motion:no-preference){.cw-primary:hover{box-shadow:0 0 24px #f472b655;transition:box-shadow .2s}.cw-alert{animation:cw-glow 2s ease-in-out infinite alternate}@keyframes cw-glow{to{text-shadow:0 0 10px #10b981}}}

/* Scoped custom-work entry and creation dialog; chat/quote cards are unchanged. */
#cw-entry{display:flex;align-items:center;gap:clamp(16px,3vw,40px);width:100%;box-sizing:border-box;background:radial-gradient(ellipse at 92% 10%,#a62d5730,transparent 58%),linear-gradient(145deg,#150a20,#09050f)}
#cw-entry .cw-entry-left{flex:1;min-width:0}#cw-entry .cw-entry-right{flex:0 0 280px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:12px;min-width:0}
#cw-entry h2,.cw-create-modal .cw-create-heading h2{display:flex;align-items:center;gap:10px;color:#ffe1ed;line-height:1.15}
#cw-entry h2{font-size:clamp(24px,3vw,36px);margin:10px 0}
#cw-entry p{margin:8px 0 12px;line-height:1.5;color:#d9bfdc;max-width:65ch}
#cw-entry .cw-entry-tags{margin:0;gap:6px}
#cw-entry .cw-tag{display:inline-flex;align-items:center;gap:6px;margin:0}
#cw-entry .cw-ui-icon,.cw-create-modal .cw-ui-icon{width:18px;height:18px;flex:none;color:#f7ce8c;filter:drop-shadow(0 0 4px #d9488266)}
#cw-entry h2 .cw-ui-icon,.cw-create-modal h2 .cw-ui-icon{width:30px;height:30px}
#cw-entry .cw-entry-steps{list-style:none;padding:10px 14px;margin:0;background:#ffffff09;border:1px solid #e8ba7950;border-radius:13px;display:grid;gap:8px}
#cw-entry .cw-entry-steps li{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.3;color:#f3d9e8}
#cw-entry .cw-step-number{font-variant-numeric:tabular-nums;color:#fbd38d;font-weight:700;font-size:12px;border:1px solid #d6a25f55;border-radius:7px;padding:4px 6px;background:#a6274e22}
#cw-entry .cw-primary,.cw-create-modal .cw-primary{width:100%;min-height:44px;background:linear-gradient(115deg,#761436,#ad2554 65%,#8d2853);border:1px solid #dca35f;color:#fff4e5;transition:box-shadow .2s,border-color .2s}
#cw-entry .cw-primary:hover,.cw-create-modal .cw-primary:hover:not(:disabled){box-shadow:0 0 22px #ed699c66,0 0 8px #f4c57855;border-color:#ffe0a2}
.cw-modal.cw-create-modal{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-width:620px;max-height:calc(100dvh - 24px);padding:18px 22px;scrollbar-width:thin;scrollbar-color:#b4793988 transparent}
.cw-create-modal::-webkit-scrollbar{width:6px}.cw-create-modal::-webkit-scrollbar-thumb{background:#b4793988;border-radius:8px}.cw-create-modal::-webkit-scrollbar-track{background:transparent}
.cw-create-modal .cw-create-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0 0 12px;border-bottom:1px solid #d6a25f44;background:none;position:static}
.cw-create-modal .cw-create-heading{min-width:0}
.cw-create-modal .cw-create-heading h2{margin:0;font-size:clamp(21px,4vw,27px);white-space:nowrap}
.cw-create-modal .cw-create-heading p{margin:5px 0 0;color:#c3a9c5;font-size:12px;line-height:1.4}
.cw-create-modal .cw-create-close{flex:none;width:36px;height:36px;padding:0;display:grid;place-items:center;font-size:24px;line-height:1;background:#ffffff0b}
.cw-create-modal form{gap:12px;margin:12px 0 0}
.cw-create-modal label{font-size:13px;gap:5px;line-height:1.35}
.cw-create-modal input,.cw-create-modal textarea{font-size:14px;padding:9px 10px;line-height:1.4}
.cw-create-modal input::placeholder,.cw-create-modal textarea::placeholder{color:#b4a0b7;opacity:1}
.cw-create-modal input:focus,.cw-create-modal textarea:focus{outline:2px solid #eab87999;outline-offset:1px}
.cw-create-modal .cw-deadline-chips{margin:0;gap:5px}
.cw-create-modal .cw-deadline-chip{padding:6px 9px;font-size:12px;border-color:#8b657b;background:#ffffff08}
.cw-create-modal .cw-deadline-chip.is-active{background:linear-gradient(120deg,#a3295a55,#d9a74b22);border-color:#f7c77f;color:#ffe3a8;box-shadow:0 0 9px #f3ad6533}
.cw-create-modal .cw-deadline-chip.is-active::before{content:'✓ ';color:#fbd38d}
.cw-create-modal .cw-description-wrap{position:relative;min-width:0}
.cw-create-modal textarea{height:96px;min-height:96px;resize:vertical;padding-bottom:24px;display:block}
.cw-create-modal .cw-description-count{position:absolute;bottom:6px;right:12px;color:#bba0bd;font-size:10px;pointer-events:none;background:#150a20;padding:0 3px}
.cw-create-modal .cw-create-guidance,.cw-create-modal .cw-create-note{font-size:11px;line-height:1.45;color:#c7afc9}
.cw-create-modal .cw-drop{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px;background:#ffffff06;border-color:#d6a25f88;transition:background .18s,border-color .18s}
.cw-create-modal .cw-drop.is-dragging{background:#bc43613d;border-color:#ffdc95;box-shadow:inset 0 0 20px #f3b35b33,0 0 16px #f76ba944}
.cw-create-modal .cw-drop-title{font-size:13px}.cw-create-modal .cw-drop small{font-size:11px;color:#c7afc9}
.cw-create-modal .cw-drop .cw-btn{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;font-size:12px}
.cw-create-modal .cw-file-count{font-size:11px;color:#e8c99a}
.cw-create-modal .cw-create-files{display:grid;gap:6px}.cw-create-modal .cw-create-files:empty{display:none}
.cw-create-modal .cw-file-row{padding:5px 7px;border:1px solid #ffffff20;background:#ffffff08;border-radius:9px;justify-content:flex-start;min-width:0}
.cw-create-modal .cw-ext{font-size:10px;color:#e8ceff;background:#7851ab44;border:1px solid #b68bdf88;border-radius:5px;padding:5px;flex:none}
.cw-create-modal .cw-ext[data-ext=PDF]{background:#bb294744;color:#ffd2d2;border-color:#e66a7a}.cw-create-modal .cw-ext[data-ext=DOCX]{background:#285ba144;color:#b7d9ff;border-color:#709bdf}.cw-create-modal .cw-ext[data-ext=PNG],.cw-create-modal .cw-ext[data-ext=JPG],.cw-create-modal .cw-ext[data-ext=WEBP]{background:#237a6444;color:#b7f4df;border-color:#60bba4}.cw-create-modal .cw-ext[data-ext=ZIP]{background:#ad7c2244;color:#ffdfaa;border-color:#cba15b}
.cw-create-modal .cw-local-preview{width:36px;height:36px;border-radius:5px;object-fit:cover;flex:none}
.cw-create-modal .cw-file-meta{flex:1;min-width:0;display:grid;gap:3px}.cw-create-modal .cw-file-meta strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cw-create-modal .cw-file-meta small{font-size:10px;color:#bcaac3}
.cw-create-modal .cw-file-remove{padding:0;width:28px;height:28px;flex:none}
.cw-create-modal .cw-field-error{font-size:11px;color:#ff9db7}.cw-create-modal .cw-field-error[hidden]{display:none}
.cw-create-modal .cw-invalid input,.cw-create-modal .cw-invalid textarea{border-color:#ff648e;box-shadow:0 0 0 2px #e11d482b}
.cw-create-modal .cw-status{margin:0;font-size:12px;min-height:0}.cw-create-modal .cw-status:empty{display:none}
.cw-create-modal[aria-busy=true] .cw-primary{cursor:wait;opacity:.72}.cw-create-modal[aria-busy=true] .cw-drop,.cw-create-modal[aria-busy=true] .cw-create-files{pointer-events:none;opacity:.65}
@media(prefers-reduced-motion:no-preference){.cw-create-modal .cw-shake{animation:cw-create-shake .28s ease-in-out}@keyframes cw-create-shake{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}}
@media(max-width:819px){#cw-entry{flex-direction:column;align-items:stretch;gap:16px}#cw-entry .cw-entry-right{flex:0 0 auto}}
@media(max-width:600px){.cw-modal.cw-create-modal{padding:14px}.cw-create-modal form{gap:10px}.cw-create-modal .cw-two{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#cw-entry .cw-primary,.cw-create-modal .cw-primary,.cw-create-modal .cw-drop{transition:none}}
