.dw{font:15px/1.5 'Segoe UI',Arial,sans-serif;color:#1b305f;background:#f5f8fc;padding:20px;border:1px solid #cfdceb;border-top:4px solid #4dc8ef;border-radius:14px;margin:16px 0}.dw-heading,.dw-controls,.dw-actions,.dw-card-top,.dw-card-buttons,.dw-pills{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dw h3,.dw h4{margin:0 0 8px}.dw p{margin:8px 0 15px}.dw button,.dw-dialog button{border:1px solid #c4d3e6;border-radius:9px;padding:9px 13px;background:white;color:#1b305f;cursor:pointer;font:inherit}.dw button:disabled{opacity:.55;cursor:default}.dw button:hover:not(:disabled){background:#eaf7fe}.dw button:focus-visible,.dw-dialog button:focus-visible{outline:3px solid #1686ba;outline-offset:2px}.dw-controls{background:#fff;padding:12px;border-radius:12px;margin:14px 0}.dw label,.dw-dialog label{display:flex;flex-direction:column;gap:4px}.dw input,.dw select,.dw-dialog input,.dw-dialog select,.dw-dialog textarea{font:inherit;padding:9px;border:1px solid #bacde0;border-radius:8px;color:#1b305f;background:#fff;max-width:100%}.dw-search{flex:1;min-width:170px}.dw .dw-check,.dw-dialog .dw-pick{flex-direction:row;align-items:center}.dw-pills button{border-radius:999px}.dw-pills button[aria-pressed=true]{background:#1b305f;color:white}.dw-actions{margin:15px 0;padding:12px;background:#e8f3fc;border-radius:10px}.dw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}.dw-card{padding:17px;background:white;border:1px solid #d3dfec;border-left:4px solid #4dc8ef;border-radius:12px}.dw-flag{border-left-color:#e8397d}.dw-quick_inquiry{border-left-color:#7652b8}.dw-card-top{font-size:12px;margin-bottom:10px}.dw-state{padding:4px 8px;border-radius:999px;background:#eaf2fa}.dw-state-unprepared{background:#fff0d5;color:#865200}.dw-state-unknown{background:#fff0f2;color:#a22c48}.dw-state-sent{background:#e9f5e2;color:#316a23}.dw-company{font-weight:600;color:#385d82}.dw-note{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;padding:12px 0}.dw-card-buttons{margin-top:12px}.dw-warning{padding:12px;border:1px solid #e8b756;background:#fff5dc;border-radius:8px}.dw-empty{padding:20px;background:#fff;border-radius:10px}.dw-dialog{font:15px/1.5 'Segoe UI',Arial,sans-serif;color:#1b305f;box-sizing:border-box;width:min(900px,94vw);max-height:88vh;border:1px solid #c3d4e6;border-radius:16px;padding:24px;overflow:auto}.dw-dialog::backdrop{background:#172a4c80}.dw-dialog .dw-heading{justify-content:space-between}.dw-dialog .dw-controls{align-items:end}.dw-question{padding:18px;background:#f5f8fc;border:1px solid #cadceb;border-left:4px solid #4dc8ef;border-radius:12px;margin:16px 0}.dw-question label{margin-top:12px}.dw-question textarea{min-height:110px;width:100%;box-sizing:border-box}.dw-pick{padding:10px;border-bottom:1px solid #d8e3ed}.dw-dialog select{max-width:100%;min-width:0}#dw-composer-work{margin:10px 0}#dw-email-list h3{font-size:18px;margin:20px 0 12px}@media(max-width:650px){.dw{padding:12px}.dw-controls>*{width:100%}.dw-controls .dw-check{width:auto}.dw-dialog{padding:16px}.dw-card-buttons button{flex:1}.dw-actions button{width:100%}} .dw-client-group{padding:18px;background:#fff;border:1px solid #cedbea;border-radius:14px;margin:18px 0}.dw-client-group>h3{padding:12px;background:#1b305f;color:white;border-radius:9px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.dw-client-group>h3 span{font-size:12px;font-weight:400}.dw-client-emails{padding:14px 0}.dw-client-emails>summary{font-size:16px;font-weight:700;padding:10px;background:#edf5fc;border-radius:9px}.dw-client-emails .email{padding:12px;border:1px solid #d5e1ee;margin-top:10px;border-radius:10px} .dw-fyi{border-left-color:#6ab04c}.dw-package{border-left-color:#f5a623}
/* Draft preparation uses matching dark surfaces and readable semantic states. */
@media screen {
html[data-portal-theme="dark"] .dw,html[data-portal-theme="dark"] .dw-dialog{color:#e4edf8;background:#192b40;border-color:#405772}
html[data-portal-theme="dark"] :is(.dw-controls,.dw-card,.dw-client-group,.dw-empty,.dw-question,.dw-client-emails .email){background:#20344b;color:#e4edf8;border-color:#405772}
html[data-portal-theme="dark"] :is(.dw-actions,.dw-client-emails>summary){background:#29445e;color:#e4edf8}
html[data-portal-theme="dark"] :is(.dw,.dw-dialog) :is(h3,h4,strong,summary,label){color:#f0f5fc}
html[data-portal-theme="dark"] .dw-company{color:#b7d6f5}
html[data-portal-theme="dark"] :is(.dw,.dw-dialog) :is(button,input,select,textarea){background:#17283d;color:#e4edf8;border-color:#506782}
html[data-portal-theme="dark"] .dw button:hover:not(:disabled){background:#304d69}
html[data-portal-theme="dark"] .dw-pills button[aria-pressed=true]{background:#a2e7ff;color:#102b40}
html[data-portal-theme="dark"] .dw-state{background:#304b68;color:#e4edf8}
html[data-portal-theme="dark"] :is(.dw-state-unprepared,.dw-warning){background:#49391c;color:#ffda89;border-color:#9b762e}
html[data-portal-theme="dark"] .dw-state-unknown{background:#532d3a;color:#ffc0d0}
html[data-portal-theme="dark"] .dw-state-sent{background:#203f31;color:#a5e6b8}
}
