:root{--daily-green:#4fdbac;--daily-amber:#efbf60;--daily-red:#ff9292;--daily-blue:#8cb9f5}
:root[data-theme="light"]{--daily-green:#246344;--daily-amber:#765016;--daily-red:#a2372d;--daily-blue:#365f7b}
.ceo-stat.tone-active strong,.ceo-buyer-numbers .tone-active b,.daily-project-counts .tone-active b{color:var(--daily-green)!important}
.ceo-stat.tone-launches strong,.ceo-buyer-numbers .tone-launches b,.daily-project-counts .tone-launches b{color:var(--daily-amber)!important}
.ceo-stat.tone-projects strong{color:var(--daily-blue)!important}.ceo-stat.tone-budget.has-value strong,.daily-project-counts .tone-budget.has-value b{color:var(--daily-red)!important}
#buyerSide,#buyerTop,#buyerOverview{display:none}
body.norella-buyer-mode .dashboard{display:grid;grid-template-columns:208px minmax(0,1fr);gap:20px 28px;align-items:start;padding:0 28px 28px 0;max-width:none}
body.norella-buyer-mode .dashboard>*{grid-column:2;min-width:0}
body.norella-buyer-mode #buyerSide{display:block;grid-column:1;grid-row:1/span 30;position:sticky;top:0;padding:24px 12px;background:var(--theme-surface);border-right:1px solid var(--theme-border);min-height:95vh;box-sizing:border-box}
.daily-brand{font-size:21px;font-weight:750;padding:0 10px 22px}.daily-brand small{display:block;color:var(--theme-muted);font-size:10px;font-weight:400;margin-top:8px}
#buyerSide nav button,#buyerSideTools>button,#buyerSideTools>.w-account-wrap{display:flex;align-items:center;gap:12px;width:100%;margin:3px 0;padding:11px;border:0;background:transparent;border-radius:9px;text-align:left;color:var(--theme-text);font-size:13px;cursor:pointer}
#buyerSide button.active{background:var(--theme-active)}#buyerSide summary{padding:13px 11px;color:var(--theme-muted);cursor:pointer;font-size:12px}#buyerSideTools{margin-top:20px;padding-top:14px;border-top:1px solid var(--theme-border)}#buyerSideTools .w-account-wrap{padding:0}#buyerSideTools #wAccountToggle{width:100%;text-align:left}#buyerSideTools .w-account-menu{left:0;top:44px}
#buyerMenuToggle{display:none}body.norella-buyer-mode #buyerTop{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:24px;padding-bottom:18px;border-bottom:1px solid var(--theme-border)}#buyerTop small{display:block;color:var(--theme-muted);margin-top:7px;font-size:12px}#buyerTopActions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.norella-buyer-mode .page-header,body.norella-buyer-mode .w-mainnav{display:none!important}body.norella-buyer-mode #ceoSide,body.norella-buyer-mode #ceoTop{display:none!important}
body.norella-buyer-mode[data-buyer-view="overview"] #buyerOverview{display:block;width:100%;max-width:1440px}
body.norella-buyer-mode:not([data-buyer-view="projects"]) #dashboardView>.metrics-grid,body.norella-buyer-mode:not([data-buyer-view="projects"]) #crmMainGrid,body.norella-buyer-mode:not([data-buyer-view="projects"]) .month-bar{display:none!important}
body.norella-buyer-mode[data-buyer-view="overview"] #wExtraView{display:none!important}
.daily-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:16px}.daily-heading h1{font-size:28px;margin:0 0 8px}.daily-heading p{color:var(--theme-muted);margin:0}
.daily-panel{background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:14px;padding:22px;margin-bottom:18px}.daily-panel h2,.daily-dialog h2,#dailyQuick h2{font-size:17px;margin:0 0 15px}.daily-panel>header{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.daily-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px}.daily-empty{color:var(--theme-muted);font-size:13px;padding:10px 0}
:is(#buyerOverview,.daily-dialog,#dailyQuick) button{color:var(--theme-text);background:var(--theme-surface2);border:1px solid var(--theme-border);border-radius:9px;padding:10px 14px;cursor:pointer;font:inherit;font-size:13px}button:disabled{cursor:default}
.daily-task{padding:16px 0;border-top:1px solid var(--theme-border)}.daily-task strong{font-size:15px}.daily-task small{display:block;margin:8px 0 14px;color:var(--theme-muted)}.daily-task>div{display:flex;gap:8px}.task-priority{font-size:11px;border-radius:6px;padding:4px 7px;margin-left:9px;background:var(--theme-surface2)}.task-priority.priority-urgent,.is-overdue strong{color:var(--daily-red)}.task-priority.priority-high{color:var(--daily-amber)}
.daily-event{display:flex!important;flex-direction:column;gap:7px;width:100%;text-align:left;margin:8px 0;padding:14px!important;overflow-wrap:anywhere}.daily-event span,.daily-event small{color:var(--theme-muted);font-size:12px}.daily-event.is-unread{border-left:3px solid var(--daily-blue)!important;background:var(--theme-active)!important}.daily-event.is-unread strong:before{content:'● ';color:var(--daily-blue);font-size:10px}
.daily-project-counts{display:flex;gap:14px;margin-bottom:12px}.daily-project-counts button{flex:1;text-align:left}.daily-project-counts b{display:block;font-size:26px;margin-bottom:8px}
[data-inbox-count]{display:inline-block!important;background:#9a3434;color:#fff!important;min-width:18px;border-radius:10px;padding:2px 5px;font-size:11px;margin-left:7px;text-align:center}[data-inbox-count][hidden]{display:none!important}
.daily-dialog{background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:16px;padding:24px;width:min(720px,90vw);max-height:85vh;box-sizing:border-box}.daily-dialog::backdrop{background:#0008}.daily-dialog header,#dailyQuick header{display:flex;justify-content:space-between;align-items:center;gap:18px}.daily-dialog header button,#dailyQuick header button{font-size:20px}.daily-dialog p{color:var(--theme-muted);line-height:1.5}.daily-notification-body{white-space:pre-wrap}.daily-inbox-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.daily-inbox-toolbar [aria-pressed="true"]{background:var(--theme-active)!important}.daily-inbox footer{display:flex;justify-content:space-between;margin-top:16px}.daily-inbox select{max-width:150px;background:var(--theme-input);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:8px}
#dailyQuick{position:fixed;z-index:1200;top:85px;right:28px;width:min(420px,calc(100vw - 28px));padding:18px;background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:14px;box-shadow:0 14px 50px #0004;max-height:75vh;overflow:auto;box-sizing:border-box}
#dailyToast{position:fixed;z-index:2000;bottom:24px;right:24px;display:flex;align-items:center;gap:18px;padding:16px;background:var(--theme-active);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:12px;box-shadow:0 8px 30px #0003}#dailyToast button{background:transparent;color:inherit;border:0;text-decoration:underline;cursor:pointer}
.norella-chat-attachment{display:flex;gap:12px;align-items:center;border:1px solid var(--theme-border);border-radius:9px;padding:10px;margin:8px 0;color:var(--theme-text);background:var(--theme-surface2)}.norella-chat-attachment span{flex:1}.norella-chat-attachment[hidden]{display:none}.norella-bubble-text .norella-go-project{display:block;padding:12px!important;margin:0 0 10px;text-decoration:none!important;border:1px solid var(--theme-border)!important;border-radius:9px!important;background:var(--theme-surface2)!important;text-align:left;white-space:normal;overflow-wrap:anywhere}.norella-inbox-compose textarea{min-height:48px!important;max-height:140px!important;resize:none!important}.lead-reception-state{display:inline-block;font-size:11px;font-weight:600;background:var(--theme-surface2);padding:5px 8px;border-radius:6px;margin-left:8px;color:var(--theme-text)}
@media(max-width:1000px){.daily-columns{grid-template-columns:1fr}}
@media(max-width:700px){body.norella-buyer-mode .dashboard{display:block;padding:0 14px 20px}body.norella-buyer-mode #buyerSide{position:static;min-height:0;border:0;padding:14px 0;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.daily-brand{padding:0}#buyerMenuToggle{display:block}#buyerSide>nav,#buyerSideTools{display:none;width:100%}#buyerSide[data-open="true"]>nav,#buyerSide[data-open="true"] #buyerSideTools{display:block}#buyerTop{flex-wrap:wrap}#buyerTopActions{gap:6px}.daily-heading{align-items:flex-start}.daily-panel{padding:15px}.daily-project-counts{flex-wrap:wrap}.daily-project-counts button{min-width:110px}.daily-dialog{padding:16px;width:94vw}#dailyQuick{right:14px}.daily-inbox-toolbar button{padding:8px}.norella-chat-attachment{font-size:12px}}

#buyerMenuToggle{background:var(--theme-surface2);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:9px;padding:9px 12px;font:inherit;font-size:13px}.daily-task-highlight{outline:2px solid var(--daily-blue);outline-offset:4px}

/* Checkbox and its label form one compact, clickable control. */
#wSoundMenu .w-sound-enabled{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:fit-content!important;max-width:100%;grid-template-columns:none!important;cursor:pointer}
#wSoundMenu .w-sound-enabled input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;margin:0!important;padding:0!important}

/* Material destinations are compact cards; actions stay with their project. */
.w-storage-projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),380px));gap:14px;align-items:start}
.w-storage-projects>.w-listrow{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:14px!important;margin:0!important;padding:18px!important;min-width:0;box-sizing:border-box}
.w-storage-projects>.w-listrow>div{min-width:0;width:100%}
.w-storage-projects strong{display:block;overflow-wrap:anywhere;line-height:1.4}
.w-storage-projects small{display:block;margin-top:6px;line-height:1.5;color:var(--theme-muted)}
.w-storage-projects .w-action{align-self:flex-start;max-width:100%;margin:0!important}
@media(max-width:700px){.w-storage-projects{grid-template-columns:minmax(0,1fr)}}

#ncOverlay.nc-work-context .nc-side{display:none!important}#ncOverlay.nc-work-context .nc-main{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
