/* Approved CRM shell, scoped to authenticated workspace. Public auth remains intact. */
body.crm-ready{--ink:#292832;--muted:#777581;--line:#eeedf2;--paper:#f8f8fa;background:var(--paper);font-size:14px;line-height:1.5}
.crm-ready>header.topbar,.crm-ready>.downloads,.crm-ready>footer{display:none}
.crm-ready main,.crm-ready.workspace-storefront main,.crm-ready.storefront-editor-active main{display:block;max-width:none;padding:0;margin:0}
.crm-ready main>.panel{border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}
.crm-ready #profile-panel>.eyebrow,.crm-ready #workspace-toolbar{display:none!important}
.crm-ready #workspace-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:0;align-items:start;min-height:100dvh}
.crm-ready #workspace-layout>.workspace-content{padding:0 28px 30px;min-width:0;max-width:1700px;width:100%;margin:0 auto}
.crm-ready .crm-sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:27px 14px 15px;background:white;border-right:1px solid var(--line);z-index:45;overflow:auto}
.crm-ready .crm-brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:20px;font-weight:700;text-decoration:none;letter-spacing:-.7px;white-space:nowrap}
.crm-brand img{width:34px;height:34px;border-radius:10px}.crm-sidebar-caption{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin:8px 0 31px 43px}
.crm-ready #workspace-nav{display:flex!important;flex-direction:column;flex:0 0 auto;gap:5px;margin:0;padding:0;background:none;border-radius:0;overflow:visible}
.crm-ready #workspace-nav[hidden]{display:none!important}
.crm-ready #workspace-nav button{display:flex;align-items:center;gap:12px;flex:0 0 auto;text-align:left;min-height:44px;padding:11px 13px;background:none;border:0;border-radius:9px;box-shadow:none;color:#706c7a;font-size:13px;font-weight:500;white-space:nowrap}
.crm-ready #workspace-nav button:hover{background:#f7f4f7}.crm-ready #workspace-nav button[aria-current=page]{background:#fceef4;color:#be2868}.crm-nav-icon{width:19px;font-size:19px;text-align:center;flex-shrink:0}
.crm-ready .crm-help{margin-top:auto;padding:35px 13px 12px;color:var(--muted);font-size:12px;text-decoration:none}.crm-ready .crm-collapse{background:none;border:0;padding:12px 13px;text-align:left;color:var(--muted);font-size:12px}
.crm-profile{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:17px 3px 4px;margin-top:8px;min-width:0}.crm-profile>div{min-width:0;flex:1}.crm-profile strong{font-size:12px;display:block;font-weight:600;overflow-wrap:anywhere}.crm-profile small{display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.crm-avatar{display:grid;place-items:center;flex-shrink:0;background:#f2e7dc;border-radius:50%;width:32px;height:32px;color:#906c52}.crm-profile-badge{color:#b52968;background:#fceef4;border-radius:5px;font-size:9px;font-weight:700;padding:3px 5px}
.crm-ready #logout{margin:6px 0 0;padding:9px;text-align:left;color:var(--muted);font-size:11px;background:none;border:0}.crm-ready .crm-topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;color:var(--ink);font-size:13px;margin-bottom:20px}.crm-topbar-note{margin-left:auto;color:var(--muted);font-size:11px}
.crm-menu-toggle,.crm-veil{display:none}.crm-ready #workspace-billing,.crm-ready #workspace-orders{background:white;border:1px solid var(--line);border-radius:13px;padding:25px}.crm-ready #workspace-billing .profile-heading{display:flex}.crm-ready #workspace-billing .access-card{display:flex}
.crm-ready #subscription-panel{margin-left:0}.crm-ready #message{position:relative;margin:0 28px}.crm-ready #message:empty{display:none}.crm-ready #workspace-message{font-size:13px}.crm-ready .workspace-order{background:white;border:1px solid var(--line);border-radius:10px;padding:18px}.crm-ready .workspace-order h3{font-size:16px}.crm-ready .orders-filter{gap:12px}.crm-ready .orders-filter label{font-size:12px}.crm-ready .orders-filter input,.crm-ready .orders-filter select{font-size:14px}
.crm-ready.crm-sidebar-collapsed #workspace-layout{grid-template-columns:76px minmax(0,1fr)}.crm-sidebar-collapsed .crm-brand>span,.crm-sidebar-collapsed .crm-sidebar-caption,.crm-sidebar-collapsed .crm-nav-label,.crm-sidebar-collapsed .crm-profile>div,.crm-sidebar-collapsed .crm-profile-badge{display:none}.crm-sidebar-collapsed .crm-help{font-size:10px;padding:30px 0 12px;text-align:center}.crm-sidebar-collapsed .crm-brand,.crm-sidebar-collapsed .crm-profile{justify-content:center}.crm-ready.crm-sidebar-collapsed #workspace-nav button{justify-content:center;padding:11px}.crm-sidebar-collapsed .crm-collapse{text-align:center}
.crm-ready .crm-page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:6px 0 24px}.crm-page-heading h2{font-size:28px;line-height:1.25;letter-spacing:-.8px;margin:8px 0}.crm-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.7px;color:#be2868}.crm-ready .crm-muted{font-size:12px;color:var(--muted);margin:5px 0;line-height:1.6}.crm-ready .crm-button{background:white;border:1px solid #e6e3eb;border-radius:8px;padding:9px 14px;font-size:12px;color:var(--ink);white-space:nowrap}
.crm-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 22px}.crm-metric{background:white;border:1px solid var(--line);border-radius:12px;padding:18px}.crm-metric strong{display:block;font-size:27px;letter-spacing:-.6px;font-weight:650;font-variant-numeric:tabular-nums;margin:8px 0}.crm-metric small{font-size:10px;color:var(--muted)}.crm-home-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:20px;align-items:start}.crm-card{background:white;border:1px solid var(--line);border-radius:13px;min-width:0;overflow:hidden}.crm-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 22px 17px}.crm-card h3{font-size:17px;font-weight:650;margin:0}.crm-calendar-tools{display:flex;align-items:center;justify-content:space-between;padding:0 22px 15px}.crm-calendar-tools h4{margin:0;font-size:15px;text-transform:capitalize}.crm-ready .crm-calendar-tools button{background:none;border:0;border-radius:6px;min-width:32px;min-height:32px;font-size:23px;color:var(--muted);margin:0}.crm-ready .crm-segment{display:flex;background:#f5f3f6;border-radius:7px;padding:3px}.crm-ready .crm-segment button{background:none;border:0;border-radius:5px;padding:6px 9px;margin:0;color:var(--muted);font-size:11px}.crm-ready .crm-segment button[aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 4px #29283212}
.crm-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:0 15px 12px}.crm-weekday{text-align:center;font-size:10px;color:var(--muted);padding:5px 0 10px}.crm-ready .crm-date{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-height:64px;border:0;background:transparent;border-radius:8px;padding:7px 1px;margin:0;color:var(--ink);font-size:12px}.crm-date>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%}.crm-date small{font-size:9px;color:var(--muted);line-height:1.3;white-space:normal}.crm-date.other-month{opacity:.55}.crm-date.is-off{background:#f7f7f9}.crm-ready .crm-date[aria-pressed=true]{background:#fceef4}.crm-date[aria-pressed=true]>span{background:#be2868;color:white}.crm-date.is-today>span{outline:1px solid #ce97b0}.crm-load-label{font-size:8px!important;overflow-wrap:anywhere}.crm-legend{font-size:10px;color:var(--muted);padding:15px 20px;border-top:1px solid var(--line);margin:0}
.crm-order-list{padding:0 22px}.crm-order-row{padding:17px 0;border-top:1px solid var(--line)}.crm-order-meta,.crm-order-amount{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.crm-order-meta{color:var(--muted);margin-bottom:9px}.crm-ready .crm-order-title{display:block;padding:0;background:none;border:0;text-align:left;font-size:14px;font-weight:600;color:var(--ink);margin:0;line-height:1.6;overflow-wrap:anywhere}.crm-ready .crm-order-title:hover{color:#be2868}.crm-order-amount{margin-top:13px;font-variant-numeric:tabular-nums}.crm-order-amount strong{white-space:nowrap}.crm-order-amount .crm-muted{font-size:10px;text-align:right}.crm-badge{background:#f1edf6;color:#79688c;font-size:9px;border-radius:5px;padding:4px 7px}.crm-badge--approved{background:#edf6f1;color:#398268}.crm-badge--pending{background:#fcf4e6;color:#a07831}.crm-upcoming{margin-top:22px}.crm-upcoming .crm-order-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px}.crm-updated{font-size:10px;line-height:1.7;color:var(--muted);margin-top:18px}.crm-empty{padding:30px 5px;color:var(--muted);font-size:13px;line-height:1.8}.crm-message:empty{display:none}.crm-message{font-size:13px;line-height:1.6}.crm-message.error{color:#a52e4c}
.crm-order-dialog{position:fixed;inset:0 0 0 auto;max-height:100dvh;height:100dvh;width:min(460px,100%);max-width:100%;margin:0;border:0;padding:25px 28px;background:white;color:var(--ink);box-shadow:-15px 0 70px #29283218}.crm-order-dialog::backdrop{background:#29283255}.crm-detail-header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);letter-spacing:1.2px}.crm-ready .crm-dialog-close{border:0;background:none;font-size:25px;color:var(--muted);min-height:36px;min-width:36px}.crm-detail-title{font-size:26px;line-height:1.3;letter-spacing:-.5px;margin:25px 0 12px}.crm-detail-fields{display:grid;grid-template-columns:1fr;gap:6px;margin-top:24px}.crm-detail-fields dt{font-size:11px;color:var(--muted);margin-top:12px}.crm-detail-fields dd{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1100px){.crm-ready #workspace-layout{grid-template-columns:195px minmax(0,1fr)}.crm-ready #workspace-layout>.workspace-content{padding:0 20px 25px}.crm-ready .crm-brand{font-size:17px}.crm-ready #workspace-nav button{font-size:12px;gap:8px}.crm-sidebar-caption{font-size:8px}.crm-home-grid{grid-template-columns:minmax(0,1fr)}.crm-page-heading h2{font-size:25px}.crm-metric{padding:14px}.crm-upcoming .crm-order-list{grid-template-columns:1fr}}
@media(max-width:840px){.crm-ready #workspace-layout,.crm-ready.crm-sidebar-collapsed #workspace-layout{display:block}.crm-ready .crm-sidebar{position:fixed;left:0;top:0;width:224px;transform:translateX(-100%);transition:transform .2s}.crm-mobile-open .crm-sidebar{transform:translateX(0)}.crm-ready .crm-menu-toggle{display:block;border:0;background:none;font-size:20px;min-width:36px;min-height:36px;margin:0;padding:0}.crm-mobile-open .crm-veil{display:block;position:fixed;inset:0;border:0;background:#29283255;z-index:44}.crm-ready .crm-collapse{display:none}.crm-ready .crm-sidebar .crm-nav-label,.crm-ready .crm-sidebar .crm-brand>span,.crm-ready .crm-sidebar .crm-sidebar-caption,.crm-ready .crm-sidebar .crm-profile>div,.crm-ready .crm-sidebar .crm-profile-badge{display:block}.crm-ready .crm-sidebar #workspace-nav button{justify-content:flex-start}.crm-topbar-note{font-size:10px}.crm-ready .crm-topbar{height:58px}.crm-profile-badge[hidden]{display:none!important}}
@media(max-width:600px){.crm-ready #workspace-layout>.workspace-content{padding:0 14px 20px}.crm-page-heading h2{font-size:23px}.crm-page-heading{align-items:flex-start}.crm-page-heading .crm-muted{font-size:11px}.crm-metrics{gap:8px}.crm-metric{padding:12px 10px}.crm-metric .crm-muted{font-size:10px}.crm-metric strong{font-size:21px;overflow-wrap:anywhere}.crm-metric small{font-size:9px}.crm-card-heading{padding:18px}.crm-card h3{font-size:16px}.crm-ready .crm-segment button{font-size:10px;padding:5px 7px}.crm-ready .crm-date{min-height:58px}.crm-topbar-note{display:none}.crm-ready #workspace-billing,.crm-ready #workspace-orders{padding:18px}.crm-ready .orders-filter{grid-template-columns:1fr}.crm-load-label{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){.crm-sidebar{transition:none!important}}
.crm-dashboard [data-home="month"][hidden],.crm-dashboard [data-home="week"][hidden],.crm-dashboard [data-home="prev"][hidden],.crm-dashboard [data-home="next"][hidden]{display:none!important}
.crm-dashboard .crm-home-grid>section:first-child{order:2}.crm-dashboard .crm-home-grid>section:nth-child(2){order:1}.crm-dashboard [data-home="open-calendar"]{margin-top:12px}
.crm-ready .crm-date--available{box-shadow:inset 0 0 0 1px #28a745}.crm-ready .crm-date--low_capacity{box-shadow:inset 0 0 0 1px #f0a500}.crm-ready .crm-date--full{box-shadow:inset 0 0 0 1px #e53935}.crm-ready .crm-date--closed{box-shadow:inset 0 0 0 1px #8a8d98}
.crm-home-grid .crm-card>.crm-button{margin:0 15px 15px}

/* Dashboard calendar shares the full calendar's status colours and selected day. */
.crm-dashboard .crm-home-grid>section:first-child{background:linear-gradient(135deg,#fffafd,#faf7fc 60%,#f6f8fc);border-color:#eee3ec}
.crm-dashboard .crm-calendar-tools{padding-bottom:12px}
.crm-dashboard .crm-month-grid{gap:7px;padding:0 20px 15px}
.crm-dashboard .crm-weekday{font-size:10px;font-weight:700;letter-spacing:.06em;padding:2px 0 5px}
.crm-ready .crm-dashboard .crm-date{min-width:0;min-height:84px;justify-content:center;gap:5px;padding:8px 3px;border-radius:11px;background:#ffffffb8;box-shadow:inset 0 0 0 1.5px #d9d6dd;transition:background .15s,transform .15s}
.crm-ready .crm-dashboard .crm-date:hover{background:#fff;transform:translateY(-2px)}
.crm-ready .crm-dashboard .crm-date>span{width:auto;height:auto;font-size:19px;font-weight:700;line-height:1.2}
.crm-ready .crm-dashboard .crm-date small{font-size:10px;line-height:1.2;color:#766c79}
.crm-ready .crm-dashboard .crm-date--available{box-shadow:inset 0 0 0 1.5px #28a745}
.crm-ready .crm-dashboard .crm-date--low_capacity{box-shadow:inset 0 0 0 1.5px #f0a500}
.crm-ready .crm-dashboard .crm-date--full{box-shadow:inset 0 0 0 1.5px #e53935}
.crm-ready .crm-dashboard .crm-date--closed{box-shadow:inset 0 0 0 1.5px #8a8d98;background:repeating-linear-gradient(135deg,#fff,#fff 6px,#f2f0f3 6px,#f2f0f3 7px)}
.crm-ready .crm-dashboard .crm-date--day_off{box-shadow:inset 0 0 0 1.5px #68bdeb;background:#ddf3ff}
.crm-ready .crm-dashboard .crm-date--vacation{box-shadow:inset 0 0 0 1.5px #e4c358;background:#fff4c7}
.crm-ready .crm-dashboard .crm-date[aria-pressed=true]{background:#ffe9f3;box-shadow:inset 0 0 0 2px #d63384}
.crm-ready .crm-dashboard .crm-date[aria-pressed=true]>span{background:none;color:#ae1b5b}
.crm-ready .crm-dashboard .crm-date.is-today>span{outline:0;color:#ae1b5b}
.crm-dashboard .crm-legend{display:flex;flex-wrap:wrap;gap:8px 14px;padding:12px 20px;border-top:1px solid #eee3ec}
.crm-key{white-space:nowrap}.crm-key:before{content:'●';margin-right:5px;color:#8a8d98}.crm-key--available:before{color:#28a745}.crm-key--low:before{color:#f0a500}.crm-key--full:before{color:#e53935}.crm-key--off:before{color:#68bdeb}
@media(max-width:600px){.crm-dashboard .crm-month-grid{gap:4px;padding:0 12px 12px}.crm-ready .crm-dashboard .crm-date{min-height:66px;padding:5px 2px}.crm-ready .crm-dashboard .crm-date>span{font-size:16px}.crm-ready .crm-dashboard .crm-date small{font-size:9px}.crm-dashboard .crm-legend{gap:6px 10px;padding:10px 12px}}
.crm-upcoming .crm-delivery-list{gap:14px;padding:0 22px 22px}.crm-delivery-card{border:1px solid #eee4ea;border-radius:16px;background:#fff;padding:16px;min-width:0}.crm-delivery-body{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:start}.crm-delivery-photo{width:82px;height:82px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#f9eff4;color:#ad899b;font-size:11px}.crm-delivery-photo img{width:100%;height:100%;object-fit:cover}.crm-delivery-details{min-width:0}.crm-delivery-details p{margin:4px 0;overflow-wrap:anywhere}.crm-client-name{font-size:12px;font-weight:600;color:#564651}.crm-delivery-info,.crm-delivery-description{font-size:11px;line-height:1.5;color:#756a72}.crm-delivery-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.crm-delivery-card .crm-order-amount{border-top:1px solid #f2eaf0;padding-top:12px}.crm-delivery-card .crm-order-meta{font-weight:600}.crm-delivery-card .crm-order-title{font-size:15px}
@media(max-width:600px){.crm-upcoming .crm-delivery-list{padding:0 16px 16px}.crm-delivery-body{grid-template-columns:64px minmax(0,1fr);gap:11px}.crm-delivery-photo{width:64px;height:64px}}
/* Photo fades into the card surface; text starts beyond the strongest part. */
.crm-delivery-card{position:relative;isolation:isolate;overflow:hidden;min-height:166px}
.crm-delivery-body{display:block}
.crm-delivery-photo{position:absolute;z-index:-1;inset:0 auto 0 0;width:58%;height:100%;border-radius:0;background:transparent;pointer-events:none;mask-image:linear-gradient(to right,#000 0%,#000 30%,transparent 100%);-webkit-mask-image:linear-gradient(to right,#000 0%,#000 30%,transparent 100%)}
.crm-delivery-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.crm-delivery-card.has-photo .crm-order-meta,.crm-delivery-card.has-photo .crm-delivery-details,.crm-delivery-card.has-photo .crm-order-amount{margin-left:52%}
.crm-delivery-card.has-photo .crm-order-meta,.crm-delivery-card.has-photo .crm-delivery-details,.crm-delivery-card.has-photo .crm-order-amount{position:relative}
@media(max-width:600px){.crm-delivery-photo{width:53%;height:100%}.crm-delivery-card.has-photo .crm-order-meta,.crm-delivery-card.has-photo .crm-delivery-details,.crm-delivery-card.has-photo .crm-order-amount{margin-left:48%}}
