/* Shared workspace only. Module renderers, data colours and the phone preview
   keep their own styles. Load after the existing component stylesheets. */
:root{
 --ui-font-family:Onest,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
 --ui-font-size:13px;--ui-control-height:40px;--ui-field-height:42px;
 --ui-control-radius:10px;--ui-card-radius:18px;--ui-panel-space:18px;
 --ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:24px;
 --clinic-green:#2d7a52;
 --app-bg:#f5f6f8;--app-surface:#fff;--app-surface-alt:#f4f6f8;
 --app-text:#202a35;--app-muted:#657180;--app-border:#e1e5eb;
 --app-accent:#2d7a52;--app-accent-strong:#2d7a52;--app-accent-soft:#eaf3ee;
 --app-accent-foreground:#fff;--app-nav:#fff;--app-nav-text:#566272;
 --app-shadow:0 1px 3px #18283b04;
 --ink:var(--app-text);--muted:var(--app-muted);--green:var(--app-accent-strong);
 --line:var(--app-border);--soft:var(--app-surface-alt);
 --gradient:linear-gradient(110deg,#2d7a52,#448d67)
}
body{color:var(--app-text);background:var(--app-bg)}
.muted{color:var(--app-muted)}
.crm-shell{grid-template-columns:216px minmax(0,1fr);background:var(--app-bg)}
.crm-sidebar{padding:0 8px 20px;background:var(--app-nav);border-right:1px solid var(--app-border)}
.crm-sidebar-brand{height:82px;padding:0 12px;margin-bottom:7px}
.crm-sidebar .brand{display:inline-flex;align-items:center;min-height:36px;width:fit-content;max-width:100%;font-size:16px;font-weight:650;letter-spacing:1px;color:var(--app-text);background:none}
.crm-sidebar .crm-brand-name{background:linear-gradient(105deg,#6da778 3%,#a7bc50 56%,#ee9b4d 98%);background-clip:text;-webkit-background-clip:text;color:transparent}
.crm-brand-mark{display:none}
.crm-sidebar-caption{color:#77818e;font-size:11px;margin-top:2px}
.crm-nav{gap:3px}
.crm-nav-link{position:relative;min-height:41px;padding:10px 12px;gap:10px;border-radius:8px;color:var(--app-nav-text);font-size:13px;font-weight:500;border-color:transparent;box-shadow:none}
.crm-nav-link .icon{width:20px;height:20px;opacity:.92}
.crm-nav-link:hover{background:#f6f7f9;color:#26313f;border-color:transparent;box-shadow:none}
.crm-nav-link.is-active{background:#edf0f3;color:#1d2937;border-color:transparent;box-shadow:none;font-weight:650}
.crm-nav-link.is-active::before{content:"";position:absolute;left:0;top:50%;width:3px;height:22px;transform:translateY(-50%);border-radius:0 3px 3px 0;background:var(--app-accent)}
.crm-nav-link.is-active .icon{color:var(--app-accent);opacity:1}
.crm-nav-state{padding:2px 5px;font-size:9px;color:#707a86;background:#f0f2f5;border-color:#e3e7ec;border-radius:5px}
.crm-nav-item-disabled{opacity:1;color:#8a94a0}
.crm-nav-item-disabled:hover{color:#8a94a0;background:transparent}
.crm-sidebar-toggle{display:grid;width:32px;height:32px;border-color:transparent;border-radius:8px;color:#697481;background:transparent;box-shadow:none}
.crm-sidebar-toggle:hover{color:#26313f;background:#f0f2f5;border-color:transparent}
.crm-sidebar-toggle .icon{transition:transform .18s ease}
.crm-sidebar-toggle[aria-expanded=false] .icon{transform:rotate(180deg)}
.crm-header{min-height:56px;height:56px;flex-shrink:0;padding:0 18px;background:#ffffffed;border-color:var(--app-border);gap:14px}
.crm-header-start{gap:10px}
.crm-section-title{color:#4d5a69;font-size:13px;font-weight:600}
.crm-header .avatar{background:#eef4f0;border-color:#dce8df;color:var(--app-accent)}
.crm-header .account-name{color:#26313f;font-weight:600}
.crm-header .account-role{color:#77818e}
.crm-header .text-button{color:#657180}
.crm-header .text-button:hover{color:var(--app-accent)}
.crm-header .account-buttons{border-color:var(--app-border)}
.crm-header .crm-notification-bell{background:#f3f5f7;color:#657180;border-radius:9px}
.crm-client-shortcut{background:#f5f7f9;border-color:#e3e7ed;color:#657180;border-radius:9px;box-shadow:none}
.crm-client-shortcut:hover{color:#293644;background:#f0f3f5;border-color:#cfd8df}
.crm-client-shortcut kbd{background:#fff;border-color:#e0e5eb;color:#7b8592}
.crm-page{padding:12px 18px 0}
.crm-page .breadcrumb{color:#818a96;font-size:10px;line-height:1.5;margin-bottom:6px}
.crm-page .breadcrumb a{color:#697685}
.crm-page .page-heading{gap:10px;margin-bottom:12px;align-items:center}
.crm-page .page-heading h1{font-size:23px;line-height:1.25;letter-spacing:-.6px}
.crm-page .page-heading .page-intro p{font-size:11px;line-height:1.45;margin-top:3px}
.crm-page .page-heading .page-actions{gap:7px}
.crm-page .page-heading .page-actions>.button{min-height:34px;padding:6px 11px;font-size:12px}
.page-intro p{color:#657180}
.footer-note{margin:16px 18px 12px;padding-top:9px;color:#7a8592;border-color:var(--app-border)}
.card{border-color:var(--app-border);border-radius:14px;box-shadow:var(--app-shadow)}
.button{border-color:#dce2e9;border-radius:9px;background:#fff;color:#3c4857;box-shadow:none}
.button:hover{background:#f7f9fa;border-color:#c5cfd9;box-shadow:none;transform:none}
.button:active:not(:disabled){transform:translateY(1px)}
.button.primary,.crm-shell .button.dialog-claim-button:not(:disabled){background:#2d7a52;border-color:#2d7a52;color:#fff;box-shadow:0 1px 2px #1f5f3e12}
.button.primary:hover,.crm-shell .button.dialog-claim-button:hover:not(:disabled){background:#246b47;border-color:#246b47;color:#fff;box-shadow:none}
.button.primary:disabled{background:#e1e8e4;border-color:#d9e2dc;color:#718077;box-shadow:none}
.button.danger{color:var(--app-danger)}
.field>label{color:#596573;font-weight:500}
.field input,.field select,.field textarea{border-color:#dce2e9;color:#26313f;background:#fff;border-radius:9px}
.field input::placeholder,.field textarea::placeholder{color:#929ba7}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #2d7a52;outline-offset:3px}
.login-shell{border-color:var(--app-border);box-shadow:0 16px 48px #22324708}

@media(min-width:901px){
 .crm-shell{transition:grid-template-columns .18s ease}
 .crm-shell[data-sidebar-collapsed=true]{grid-template-columns:64px minmax(0,1fr)}
 .crm-shell[data-sidebar-collapsed=true] .crm-sidebar{padding-left:8px;padding-right:8px}
 .crm-shell[data-sidebar-collapsed=true] .crm-sidebar-brand{align-items:center;padding:0;margin-bottom:7px}
 .crm-shell[data-sidebar-collapsed=true] .crm-sidebar .brand{min-height:36px;font-size:13px;letter-spacing:0}
 .crm-shell[data-sidebar-collapsed=true] .crm-brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#2d7a52;color:#fff;font-weight:650}
 .crm-shell[data-sidebar-collapsed=true] .crm-brand-name,
 .crm-shell[data-sidebar-collapsed=true] .crm-sidebar-caption,
 .crm-shell[data-sidebar-collapsed=true] .crm-nav-label,
 .crm-shell[data-sidebar-collapsed=true] .crm-nav-state{display:none}
 .crm-shell[data-sidebar-collapsed=true] .crm-nav-link{width:47px;min-height:42px;justify-content:center;gap:0;padding:10px}
 .crm-shell[data-sidebar-collapsed=true] .crm-nav-nonstandard{position:absolute;right:5px;top:2px;font-size:11px;line-height:1}
}
@media(min-width:901px) and (max-width:1180px){
 .crm-inspector{width:min(440px,calc(100vw - 240px))}
 .crm-shell[data-sidebar-collapsed=true] .crm-inspector{width:min(440px,calc(100vw - 88px))}
}
@media(max-width:900px){
 .crm-shell{grid-template-columns:minmax(0,1fr)}
 .crm-sidebar-toggle{display:none}
 .crm-sidebar{width:230px;padding:0 10px 20px;background:#fff}
 .crm-sidebar-brand{height:82px;padding-left:12px}
 .crm-nav-link{min-height:44px;font-size:13px}
 .crm-header{padding:0 18px}
 .crm-page{padding:12px 18px 0}
 .footer-note{margin:16px 18px 12px}
}
@media(max-width:540px){
 .crm-header{padding:0 13px;gap:8px}
 .crm-header-start{gap:8px}
 .crm-page{padding:10px 13px 0}
 .footer-note{margin-left:13px;margin-right:13px}
}
@media(prefers-reduced-motion:reduce){
 .crm-shell,.crm-sidebar-toggle .icon{transition:none}
}

/* Conversation panes use the available viewport; only their contents scroll. */
.crm-shell:has(.dialogs-page){height:100dvh;min-height:0;overflow:hidden}
.crm-workspace:has(>.dialogs-page){height:100%;min-height:0;overflow:hidden}
.crm-workspace:has(>.dialogs-page)>.footer-note{display:none}
.crm-workspace>.crm-page.dialogs-page{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:12px 18px}
.dialogs-page>.breadcrumb{display:none}
.dialogs-page>.dialogs-page-heading{flex:0 0 auto;margin-bottom:10px}
.dialogs-page>.dialogs-layout{flex:1;min-height:0;height:auto;grid-template-rows:minmax(0,1fr);border-radius:12px}
.dialogs-page .dialog-header{padding:10px 14px;flex:0 0 auto}
.dialogs-page .dialog-header h2{font-size:17px;line-height:1.3}
.dialogs-page .dialog-meta{margin-top:3px;font-size:10px}
.dialogs-page .dialog-older{flex:0 0 auto;padding:6px 12px 0}
.dialogs-page .dialog-older>.button{min-height:28px;padding:4px 9px;font-size:11px}
.dialogs-page .dialog-timeline{flex:1 1 0;min-height:0;height:auto;max-height:none;padding:14px 16px}
.dialogs-page .dialog-message-items{gap:10px}
.dialogs-page .dialog-composer{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px 10px;padding:10px 12px}
.dialogs-page .dialog-composer>label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dialogs-page .dialog-composer textarea{grid-column:1;grid-row:1;height:56px;min-height:56px;max-height:140px;padding:8px 10px;line-height:1.5;border-radius:9px}
.dialogs-page .dialog-composer-footer{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-end;gap:4px}
.dialogs-page .dialog-composer-footer>.muted{display:none}
.dialogs-page .dialog-composer-footer .button{min-height:34px;padding:7px 12px}
.dialogs-page .dialog-count{font-size:10px;line-height:1.3}
.dialogs-page .dialog-closed-note{grid-column:1/-1;margin:0}
.dialogs-page .dialog-queue-heading{padding:12px 14px 10px}
.dialogs-page .dialog-queue-heading h2{font-size:16px}
.dialogs-page .dialog-filters{padding:0 12px 10px;gap:8px}
.dialogs-page .dialog-filters .field input,.dialogs-page .dialog-filters .field select,.dialogs-page .dialog-filters>.button{height:34px;min-height:34px;padding-top:6px;padding-bottom:6px}
@media(min-width:761px) and (max-width:1200px){
 .dialogs-page>.dialogs-layout.has-selection{grid-template-columns:minmax(205px,.75fr) minmax(0,1.7fr);grid-template-rows:minmax(0,1fr) auto;height:auto;min-height:0}
 .dialogs-page .dialogs-layout.has-selection .dialog-context{min-height:0;max-height:min(220px,32dvh);overflow:auto}
 .dialogs-page .dialog-context-details>summary{padding:9px 14px;min-height:36px;position:sticky;top:0;z-index:1}
}
@media(max-width:760px){
 .crm-workspace>.crm-page.dialogs-page{padding:9px 10px 10px}
 .dialogs-page>.dialogs-layout,.dialogs-page>.dialogs-layout.has-selection{display:flex;flex-direction:column;flex:1;min-height:0;height:auto;overflow:hidden}
 .dialogs-page .dialogs-layout:not(.has-selection) .dialog-list{display:flex;flex:1;min-height:0}
 .dialogs-page .dialog-list-items{min-height:0;overflow:auto}
 .dialogs-page .dialogs-layout.has-selection .dialog-chat{display:flex;flex:1;min-height:0}
 .dialogs-page .dialogs-layout.has-selection .dialog-context{flex:0 1 auto;min-height:0;max-height:32dvh;overflow:auto}
 .dialogs-page .dialog-context-details>summary{min-height:42px;padding:10px 12px;position:sticky;top:0;z-index:1}
 .dialogs-page .dialog-timeline{flex:1 1 0;height:auto;min-height:0;max-height:none;padding:12px}
 .dialogs-page .dialog-header{padding:9px 12px}
 .dialogs-page .dialog-mobile-back{margin-bottom:6px}
 .dialogs-page .dialog-composer{padding:8px 10px;gap:7px}
 .dialogs-page .dialog-composer textarea{font-size:16px;height:56px;min-height:56px;max-height:120px;resize:none}
 .dialogs-page .dialog-composer-footer .button{min-height:42px;padding:8px 10px}
 .dialogs-page .dialog-filters .field input,.dialogs-page .dialog-filters .field select,.dialogs-page .dialog-filters>.button{height:42px;min-height:42px;font-size:16px}
}

/* Calm iOS conversation: the client and the clinic have clear, quiet sides. */
.dialogs-page .dialogs-layout .dialog-chat,
.dialogs-page .dialogs-layout .dialog-timeline,
.dialogs-page .dialogs-layout .dialog-older{background:var(--app-surface,#fff)}
.dialogs-page .dialogs-layout .dialog-timeline{padding:15px 20px 20px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.dialogs-page .dialog-message-items{gap:0}
.dialogs-page .dialog-day-separator{align-self:center;margin:13px 0 5px;padding:0;background:transparent;border:0;color:#6d7870;font-size:11px;line-height:1.5;font-weight:500;text-align:center;font-variant-numeric:tabular-nums}
.dialogs-page .dialogs-layout .dialog-message{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;gap:0;max-width:82%;min-width:min(148px,82%);padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#23312b}
.dialogs-page .dialogs-layout .dialog-message.admin,
.dialogs-page .dialogs-layout .dialog-message.bot{align-self:flex-end;align-items:flex-end;background:transparent;border:0;border-radius:0;box-shadow:none}
.dialogs-page .dialog-message.is-group-start{margin-top:15px}
.dialogs-page .dialog-message.is-continuation{margin-top:4px}
.dialogs-page .dialog-message-who{display:flex;align-items:center;gap:5px;min-width:0;margin:0 5px 4px;padding:0;font-size:11px;line-height:1.4;font-weight:400;color:#68756c;overflow-wrap:anywhere}
.dialogs-page .dialog-message.admin .dialog-message-who{color:var(--app-accent,#2d7a52)}
.dialogs-page .dialog-message.bot .dialog-message-who{color:#68756c}
.dialogs-page .dialog-message.is-continuation .dialog-message-who{display:none}
.dialogs-page .dialog-message-bubble{min-width:min(148px,100%);max-width:100%;padding:11px 15px 8px;border:1px solid transparent;border-radius:24px;background:#eff1f0;color:#23312b;box-shadow:none}
.dialogs-page .dialog-message.admin .dialog-message-bubble{background:var(--app-accent,#2d7a52);color:#fff}
.dialogs-page .dialog-message.bot .dialog-message-bubble{background:#f7f9f7;border-color:#e6ece7;color:#23312b}
.dialogs-page .dialog-message-text{font-size:16px;line-height:1.48;font-weight:400;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;color:inherit}
.dialogs-page .dialog-message-foot{display:flex;align-items:center;justify-content:flex-end;gap:5px 8px;flex-wrap:wrap;margin-top:4px;padding:0;font-size:11px;line-height:1.4;font-weight:400;color:#647168;font-variant-numeric:tabular-nums}
.dialogs-page .dialog-message.admin .dialog-message-foot{color:#f1f8f3}
.dialogs-page .dialog-message-details{margin-top:7px;min-width:0;color:inherit}
.dialogs-page .dialog-message-more{width:fit-content;max-width:100%;padding:2px 0;list-style-position:inside;font-size:12px;line-height:1.5;color:#64756a;cursor:pointer;overflow-wrap:anywhere}
.dialogs-page .dialog-message.admin .dialog-message-more{color:inherit}
.dialogs-page .dialog-message-details[open]>.dialog-message-more{margin-bottom:8px}
.dialogs-page .dialog-message-bubble:has(>.dialog-message-details[open])>.dialog-message-preview{display:none}
.dialogs-page .dialog-message-details .dialog-message-text{font-size:15px}
.dialogs-page .dialog-message-buttons{gap:5px;margin-top:8px;font-size:11px;line-height:1.5}
.dialogs-page .dialog-message-buttons>.muted,
.dialogs-page .dialog-buttons-caption{flex-basis:100%;color:#68756c;font-size:11px}
.dialogs-page .dialog-button-label{padding:5px 8px;border:1px solid #dbe4dd;border-radius:7px;background:#fff;color:#536159;font-size:12px;font-weight:400;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.dialogs-page .dialog-message .dialog-delivery-note{margin:7px 0 0;padding:0;font-size:12px;line-height:1.5;color:#8c5c1c}
.dialogs-page .dialog-message.admin .dialog-delivery.queued,
.dialogs-page .dialog-message.admin .dialog-delivery.sending{padding:1px 4px;border-radius:4px;background:#ffffff1a;color:#fff}
.dialogs-page .dialog-message:has(.dialog-delivery.unknown) .dialog-message-bubble{border-color:#ead6b4;background:#fff8ea;color:#4e4230}
.dialogs-page .dialog-message:has(.dialog-delivery.unknown) .dialog-message-foot{color:#77613b}
.dialogs-page .dialog-message:has(.dialog-delivery.unknown) .dialog-delivery.unknown{font-weight:500;color:#8c5c1c}
.dialogs-page .dialog-message:has(.dialog-delivery.failed) .dialog-message-bubble{border-color:#edc9c0;background:#fff7f5;color:#6b3025}
.dialogs-page .dialog-message:has(.dialog-delivery.failed) .dialog-message-foot{color:#805346}
.dialogs-page .dialog-message .dialog-delivery.failed{color:#9d3b2d;font-weight:500}
.dialogs-page .dialogs-layout .dialog-message.is-service{align-self:center;align-items:baseline;flex-direction:row;justify-content:center;flex-wrap:wrap;gap:3px 8px;max-width:96%;min-width:0;margin:6px 0;padding:2px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#6f7a72;text-align:center}
.dialogs-page .dialog-message.is-service .dialog-message-text{font-size:12px;line-height:1.5;color:inherit}
.dialogs-page .dialog-message.is-service .dialog-message-foot{margin:0;justify-content:center;font-size:11px;line-height:1.5;color:#6f7a72}
.dialogs-page .dialog-message [hidden]{display:none!important}
.dialogs-page .dialogs-layout .dialog-composer{background:var(--app-surface,#fff);box-shadow:none;border-top-color:#edf0ed;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.dialogs-page .dialogs-layout .dialog-composer textarea{border-radius:22px;background:#fff;border-color:#dce4de;padding:9px 14px;font-family:inherit;font-size:15px;line-height:1.5}
.dialogs-page .dialog-composer-footer .button{border-radius:18px}
@media(max-width:760px){
 .dialogs-page .dialogs-layout .dialog-timeline{padding:12px 11px 16px}
 .dialogs-page .dialogs-layout .dialog-message{max-width:93%;min-width:min(148px,93%)}
 .dialogs-page .dialog-message.is-group-start{margin-top:13px}
 .dialogs-page .dialog-message-bubble{padding:10px 13px 7px;border-radius:22px}
 .dialogs-page .dialogs-layout .dialog-composer textarea{font-size:16px}
 .dialogs-page .dialog-message.is-service{max-width:98%;gap:2px 6px}
 .dialogs-page .dialog-message-more{padding:5px 0;min-height:30px}
}

/* Quick replies stay close to the draft without displacing the conversation. */
.dialogs-page .dialogs-layout .dialog-composer{position:relative}
.dialogs-page .dialog-composer textarea{grid-row:2}
.dialogs-page .dialog-composer-footer{grid-row:2}
.dialogs-page .dialog-composer .dialog-closed-note{grid-row:3}
.dialogs-page .dialog-quick-toolbar{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.dialogs-page .dialog-quick-toolbar .button{min-height:27px;padding:4px 9px;border-radius:7px;font-size:11px;line-height:1.5;background:#f5f7f5;color:#42594a;border-color:#e1e7e2}
.dialogs-page .dialog-quick-toolbar .button[aria-expanded=true]{background:#eaf2ed;color:#246b47;border-color:#bfd5c7}
.dialogs-page .dialog-quick-panel{position:absolute;z-index:5;bottom:calc(100% + 1px);left:10px;right:10px;display:flex;flex-direction:column;gap:11px;max-height:min(480px,calc(100dvh - 350px));min-height:0;padding:14px;border:1px solid #d8e2db;border-radius:14px;background:#fff;color:#23312b;box-shadow:0 12px 36px #22372b20;text-align:left;font-size:13px;line-height:1.5;overflow:hidden}
.dialogs-page .dialog-quick-panel[hidden]{display:none!important}
.dialogs-page .dialog-quick-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-width:0}
.dialogs-page .dialog-quick-heading h3,.dialogs-page .dialog-quick-heading h2{margin:0;font-size:15px;font-weight:600;letter-spacing:-.2px}
.dialogs-page .dialog-quick-heading h3{margin-right:auto}
.dialogs-page .dialog-quick-heading .button[aria-label="Закрыть быстрые ответы"]{order:2}
.dialogs-page .dialog-quick-panel .button{min-width:0;min-height:31px;padding:5px 9px;border-radius:8px;font-size:12px;line-height:1.5;white-space:normal}
.dialogs-page .dialog-quick-search{flex-shrink:0;margin:0}
.dialogs-page .dialog-quick-panel input,.dialogs-page .dialog-quick-panel textarea{width:100%;min-width:0;border:1px solid #d9e2dc;border-radius:8px;background:#fff;color:#23312b;font-family:inherit;font-size:13px;line-height:1.5;padding:8px 10px}
.dialogs-page .dialog-quick-panel input{height:36px}
.dialogs-page .dialog-quick-panel input::placeholder,.dialogs-page .dialog-quick-panel textarea::placeholder{color:#89958c}
.dialogs-page .dialog-quick-categories{display:flex;gap:5px;flex-shrink:0;max-width:100%;overflow:auto;padding:2px 2px 4px;scrollbar-width:thin}
.dialogs-page .dialog-quick-categories .button{flex:0 0 auto;min-height:27px;padding:4px 8px;border-color:transparent;background:#f4f6f4;color:#5d6c62;font-size:11px;white-space:nowrap}
.dialogs-page .dialog-quick-categories .button[aria-pressed=true]{background:#eaf2ed;color:#246b47;border-color:#c6dacd}
.dialogs-page .dialog-quick-columns{display:grid;grid-template-columns:minmax(145px,.85fr) minmax(0,1.3fr);gap:12px;flex:1;min-height:0;overflow:hidden}
.dialogs-page .dialog-quick-list{display:flex;flex-direction:column;gap:4px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-width:0;min-height:0;padding:2px 4px 2px 2px;max-height:300px}
.dialogs-page .dialog-quick-list .dialog-quick-item{display:flex;flex-direction:column;gap:3px;align-items:stretch;flex-shrink:0;max-width:100%;padding:9px 10px;border:1px solid transparent;border-radius:8px;background:#fff;text-align:left;color:#23312b;white-space:normal;overflow-wrap:anywhere;font-size:12px;font-weight:400}
.dialogs-page .dialog-quick-item:hover{background:#f5f7f5}
.dialogs-page .dialog-quick-item[aria-pressed=true]{background:#edf4ef;border-color:#c5d9cc}
.dialogs-page .dialog-quick-item strong{font-size:12px;font-weight:600}
.dialogs-page .dialog-quick-item p,.dialogs-page .dialog-quick-item small,.dialogs-page .dialog-quick-item span{margin:0;color:#718076;font-size:11px;line-height:1.5}
.dialogs-page .dialog-quick-preview{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 3px 3px}
.dialogs-page .dialog-quick-preview h3,.dialogs-page .dialog-quick-preview h4{margin:0;font-size:13px;font-weight:600}
.dialogs-page .dialog-quick-text{margin:0;padding:12px 14px;border-radius:16px;background:#eff1f0;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:#23312b}
.dialogs-page .dialog-quick-variables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
.dialogs-page .dialog-quick-panel .field{margin:0;min-width:0}
.dialogs-page .dialog-quick-panel .field>label{display:block;margin-bottom:4px;font-size:11px;line-height:1.5;font-weight:500;color:#647369}
.dialogs-page .dialog-quick-actions{position:sticky;bottom:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex-shrink:0;padding:7px 0 1px;background:#fff}
.dialogs-page .dialog-quick-editor{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 3px}
.dialogs-page .dialog-quick-panel .dialog-quick-editor textarea{height:150px;min-height:130px;max-height:210px;resize:vertical;border-radius:8px;padding:10px;font-size:13px;grid-row:auto}
.dialogs-page .dialog-quick-status{font-size:12px;color:#718076;line-height:1.5;overflow-wrap:anywhere}
.dialogs-page .dialog-quick-status[role=status]{display:flex;align-items:center;gap:8px;padding:10px 0}
.dialogs-page .dialog-quick-status[role=status]::before{content:"";width:15px;height:15px;flex:0 0 auto;border:2px solid #dce7df;border-top-color:#2d7a52;border-radius:50%;animation:dialogQuickSpin .8s linear infinite}
.dialogs-page .dialog-quick-empty,.dialogs-page .dialog-quick-note{margin:0;color:#718076;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.dialogs-page .dialog-quick-editor>label{margin-bottom:-6px;font-size:11px;font-weight:500;color:#647369}
.dialogs-page .dialog-quick-panel .error{font-size:12px;line-height:1.5;margin:0}
@keyframes dialogQuickSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.dialogs-page .dialog-quick-status[role=status]::before{animation:none}}
@media(max-width:760px){
 .dialogs-page .dialog-quick-panel{left:6px;right:6px;padding:12px;gap:9px;max-height:min(490px,calc(100dvh - 430px));border-radius:12px}
 .dialogs-page .dialog-quick-columns{display:flex;flex-direction:column;gap:9px}
 .dialogs-page .dialog-quick-list{max-height:125px;flex:0 1 auto;min-height:55px;border-bottom:1px solid #e6ece7;padding-bottom:8px}
 .dialogs-page .dialog-quick-columns:has(.dialog-quick-preview h4) .dialog-quick-list{max-height:84px}
 .dialogs-page .dialog-quick-item span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .dialogs-page .dialog-quick-preview{flex:1 1 auto;min-height:90px}
 .dialogs-page .dialog-quick-panel input,.dialogs-page .dialog-quick-panel textarea{font-size:16px}
 .dialogs-page .dialog-quick-toolbar .button{min-height:30px}
}

/* Short status labels; explanatory copy opens only when requested. */
.crm-status-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.crm-status-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:100%;min-height:24px;padding:3px 9px;border:1px solid transparent;border-radius:999px;background:#f0f3f2;color:#5d6b62;font-size:11px;line-height:1.45;font-weight:500;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-decoration:none;box-shadow:none}
.crm-status-pill.is-neutral{background:#f0f3f2;color:#637168;border-color:#e5ebe7}
.crm-status-pill.is-success{background:#edf5ef;color:#2d714c;border-color:#d8e8dd}
.crm-status-pill.is-warning{background:#fff6e7;color:#856333;border-color:#f1e2c5}
.crm-status-pill.is-danger{background:#fff0ed;color:#a34234;border-color:#f0d5cf}
.crm-status-pill.is-danger::before{content:"";width:4px;height:4px;flex:0 0 auto;border-radius:50%;background:currentColor}
.crm-info-disclosure{display:inline-block;max-width:100%;min-width:0;margin:0;font-size:11px;line-height:1.55;vertical-align:middle}
.crm-info-disclosure>summary{display:inline-flex;align-items:center;gap:5px;max-width:100%;cursor:pointer;list-style:none;user-select:none}
.crm-info-disclosure>summary::-webkit-details-marker{display:none}
.crm-info-disclosure>summary::after{content:"⌄";font-size:11px;line-height:1;opacity:.7}
.crm-info-disclosure[open]>summary::after{transform:rotate(180deg)}
.crm-info-disclosure>summary:focus-visible{outline:2px solid #2d7a52;outline-offset:3px}
.crm-info-disclosure[open]{display:block}
.crm-info-content{margin-top:7px;padding:9px 11px;max-width:100%;border:1px solid #e1e7e3;border-radius:9px;background:#f8faf8;color:#67766b;font-size:11px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.crm-info-content>p{margin:0 0 5px}
.crm-info-content>p:last-child{margin-bottom:0}
.crm-status-row>.crm-info-disclosure[open]{flex-basis:100%}
.crm-status-row>.crm-info-disclosure>summary{white-space:nowrap}
.crm-status-row+.crm-status-row{margin-top:7px}
.doctors-detail .crm-info-content .doctors-meta,.crm-info-content>.doctors-meta{margin:0;padding:0;border:0;background:none}
.messaging-phone-preview{min-height:0;padding-top:0}
.messaging-phone-preview>.messaging-phone-host{margin-top:0}
.messaging-text-help{margin-top:7px}
.messaging-workspace .crm-status-pill{min-height:23px;font-size:10px}
.crm-page .page-intro>p:empty{display:none}
@media(max-width:600px){
 .crm-status-pill{min-height:25px;font-size:11px}
 .crm-info-content{padding:9px 10px}
 .messaging-phone-preview{min-height:0}
}

.dialogs-page .dialog-context-info>summary::after{content:none}

/* One visible close control for floating cards and modal forms. */
.button.crm-close-button,.crm-close-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;margin:0;padding:0;border:1px solid #dbe2df;border-radius:9px;background:#fff;color:#53615b;box-shadow:0 1px 3px #25362e0a;font-family:Arial,sans-serif;font-size:25px;font-weight:400;line-height:1;letter-spacing:0;text-decoration:none;cursor:pointer;transform:none}
.button.crm-close-button:hover,.crm-close-button:hover{border-color:#aebdb5;background:#f0f4f1;color:#233a2c;box-shadow:none;transform:none}
.crm-close-button:focus-visible{outline:2px solid #2d7a52;outline-offset:3px}
.crm-close-button:disabled{cursor:wait;opacity:.45}
.crm-dialog-close-row{position:sticky;top:0;z-index:20;display:flex;justify-content:flex-end;align-items:flex-start;height:0;min-height:0;overflow:visible;pointer-events:none}
.crm-dialog-close-row>.crm-close-button{pointer-events:auto}
.dp-dialog>.dp-close-row{height:34px;margin-bottom:8px}
.dialog>.dialog-heading{padding-right:48px;min-height:34px}
.crm-panel-close-row{position:sticky;top:14px;z-index:8;display:flex;justify-content:flex-end;align-items:flex-start;height:0;min-height:0;padding:0 14px;overflow:visible;pointer-events:none}
.crm-panel-close-row>.crm-close-button{pointer-events:auto}
.crm-panel-close-row[hidden]{display:none!important}
.appts-workspace .crm-panel-has-close .appts-detail-toolbar,.crm-panel-has-close .doctors-detail-toolbar,.crm-panel-has-close .loyalty-detail-toolbar{padding-right:60px;flex-wrap:wrap}
.crm-panel-has-close>.appts-detail-status,.crm-panel-has-close>.doctors-detail-status,.crm-panel-has-close>.loyalty-detail-status{padding-right:60px}
.clients-detail>.clients-profile-toolbar{padding:12px 16px}
.crm-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.appts-detail-toolbar .button.appts-detail-refresh{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;font-size:18px}
.appts-detail-refresh .icon{width:16px;height:16px}
@media(max-width:600px){.button.crm-close-button,.crm-close-button{flex-basis:38px;width:38px;height:38px;min-width:38px;min-height:38px}.dialog>.dialog-heading{padding-right:48px}.crm-panel-close-row{top:10px;padding-right:10px}}

/* Website booking identity, adapted to the existing CRM controls. */
:root{--ui-font-family:Manrope,system-ui,sans-serif;--clinic-lime:#c6f51e;--app-bg:#f2f3ee;--app-surface:#fff;--app-surface-alt:#f7f8f4;--app-text:#242620;--app-muted:#5a6054;--app-border:#d7dbd0;--app-accent:#39724e;--app-accent-strong:#242620;--app-accent-soft:#eff7d1;--app-accent-foreground:#fff;--app-nav:#fff;--app-nav-text:#50564b;--app-shadow:none;--ink:var(--app-text);--muted:var(--app-muted);--green:#39724e;--line:var(--app-border);--soft:var(--app-surface-alt)}
body{font-family:var(--ui-font-family);color:var(--app-text);background:var(--app-bg)}
::selection{background:#c6f51e;color:#242620}input,textarea{caret-color:#242620}*{scrollbar-color:#a6b8bf transparent}
h1,h2,h3{color:var(--app-text)}
.gradient-text,.crm-sidebar .crm-brand-name{background:none;color:var(--app-text);-webkit-text-fill-color:currentColor}
.crm-shell{background:linear-gradient(140deg,#f2eff9 0,transparent 36%),linear-gradient(20deg,#edf5f9,transparent 65%),var(--app-bg)}
.crm-sidebar{background:#fff;border-color:var(--app-border);padding-inline:12px}.crm-sidebar-brand{height:88px}.crm-sidebar .brand{letter-spacing:-.035em;font-size:19px;font-weight:650}.crm-sidebar-caption{color:var(--app-muted)}
.crm-nav{gap:4px}.crm-nav-link{border-radius:999px;color:var(--app-nav-text);padding-inline:14px}.crm-nav-link:hover{background:#f0f5f6;color:#242620}.crm-nav-link.is-active{background:#c6f51e;color:#242620;border-color:transparent;font-weight:700}.crm-nav-link.is-active::before{content:none}.crm-nav-link.is-active .icon{color:#242620}
.crm-header{background:#ffffffed;border-color:var(--app-border)}.crm-header .avatar{background:#eff7d1;color:#242620;border-color:#d3e5a0}.crm-header .account-name,.crm-section-title{color:#242620}
.crm-page{padding-top:20px}.crm-page .page-heading{margin-bottom:18px}.crm-page .page-heading h1{font-size:28px;font-weight:600;letter-spacing:-.035em}
.card,.table-wrap{border-color:var(--app-border);border-radius:16px;box-shadow:none;background:#fff}
.button,.icon-button{border-radius:999px;color:#242620;border-color:#d0d5c7;box-shadow:none}.button:hover,.icon-button:hover{background:#edf4f5;border-color:#8c9384;color:#242620;transform:none;box-shadow:none}
.button.primary,.crm-shell .button.dialog-claim-button:not(:disabled){background:#242620;color:#fff;border-color:#242620;box-shadow:none}.button.primary:hover,.crm-shell .button.dialog-claim-button:hover:not(:disabled){background:#3c4235;color:#fff;border-color:#3c4235;box-shadow:none}
.button.selected,.button[aria-pressed=true],.crm-page .reports-tabs a[aria-current=page]{background:#eff7d1;color:#242620;border-color:#c0d888}.button.primary:disabled{background:#e6e8e0;border-color:#d7dbd0;color:#63695e}.button.danger{color:var(--app-danger)}.button.small{border-radius:999px}
.field>label{color:#50564b}.field input,.field select,.field textarea{background-color:#f7f8f4;border-color:#d0d5c7;color:#242620;border-radius:12px}.field input::placeholder,.field textarea::placeholder{color:#657a83}.field input:focus,.field select:focus,.field textarea:focus{border-color:#536e79;box-shadow:0 0 0 3px #eff7d1}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #242620;outline-offset:3px}
.data-table th{background:#f7f8f4;color:#5a6054;border-color:#d7dbd0}.data-table td{border-color:#e5ecef}.data-table tbody tr:hover,.crm-enquiry-row:hover,.crm-enquiry-row:focus-within{background:#f7f8f4;box-shadow:none}.data-table tbody tr.is-selected{background:#eff7d1;box-shadow:none}.person-link{color:#242620;font-weight:650}.phone,.data-table .muted{color:#5a6054}
.crm-date{background:#f7f8f4;border-color:transparent;border-radius:12px;box-shadow:none}.crm-date-label{color:#5a6054}.crm-date-clock{color:#242620}.crm-record-id{background:#fff;border-color:#d7dbd0;color:#5a6054;border-radius:999px}
.status{border-radius:999px}.status.new{background:#eff7d1;color:#40551a}.status.booked{background:#e6f4eb;color:#306546}.badge{background:#f2f6f7;border-color:#d7dbd0;color:#5a6054;border-radius:999px}
.crm-shell[data-sidebar-collapsed=true] .crm-brand-mark{background:#c6f51e;color:#242620;border-radius:50%}.login-shell{border-radius:24px;border-color:#d7dbd0;background:#fff;box-shadow:0 16px 48px #24262010}
@media(max-width:600px){.crm-page{padding-top:14px}.crm-page .page-heading h1{font-size:24px}.crm-sidebar{padding-inline:10px}}

/* The first page is a composed work surface, rather than a full-width table. */
.crm-page:has(.workq){padding:30px 32px 0;max-width:1600px;width:100%;margin-inline:auto}
.crm-page .workq-page-heading{align-items:end;margin-bottom:30px}
.crm-page .workq-page-heading h1{font-size:46px;line-height:1.06;letter-spacing:-.04em;font-weight:500}
.workq-page-date{display:block;margin-top:13px;font-size:13px;line-height:1.5;color:#5a6054;text-transform:capitalize}
.workq-page-heading .page-actions{gap:8px;margin-bottom:3px}
.crm-page .workq-page-heading .page-actions>.button{min-height:42px;padding:10px 17px;font-size:12px}
.crm-page .workq-page-heading .workq-primary{background:#242620;color:#fff;border-color:#242620}
.workq-toolbar{display:flex;align-items:start;justify-content:space-between;gap:16px;position:relative;z-index:3}
.workq-tabs{gap:4px;margin:0;padding:5px;border-radius:999px;background:#eaece3;width:fit-content}
.button.workq-tab{min-height:36px;padding:8px 13px;border-radius:999px;font-size:12px;color:#50564b;gap:9px}
.button.workq-tab.is-active{background:#242620;color:#fff;border-color:#242620}
.workq-tab-count{min-width:20px;padding:1px 5px;border-radius:50px;background:#dce5e8;color:#50564b;font-size:10px}
.is-active>.workq-tab-count{background:#c6f51e;color:#242620}
.workq-filter-disclosure>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 16px;border:1px solid #d0d5c7;border-radius:999px;background:#fff;font-size:12px;color:#242620;white-space:nowrap}
.workq-filter-disclosure>summary::-webkit-details-marker{display:none}
.workq-filter-disclosure>summary::after{content:'+';font-size:20px;line-height:1;font-weight:400}
.workq-filter-disclosure[open]>summary::after{content:'−'}
.workq-filter-disclosure[open] .workq-filters{position:absolute;top:56px;right:0;z-index:4;width:min(780px,100%);padding:20px;box-shadow:0 12px 32px #24262018;background:#fff;border-radius:16px}
.workq-status-line{min-height:42px;justify-content:flex-start;gap:12px;margin-bottom:14px;padding:8px 2px}
.workq-sync{margin-right:auto;font-size:10px;color:#5a6054}
.workq-results{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;align-items:start}
.workq-group{margin:0;padding:24px;border:1px solid #d7dbd0;border-radius:18px;background:#fff;min-width:0}
.workq-group-heading{font-size:23px;letter-spacing:-.035em;font-weight:500;margin:0 0 20px;gap:12px;color:#242620;justify-content:space-between}
.workq-group-count{display:grid;place-items:center;min-width:27px;min-height:27px;padding:3px 8px;background:#edf2f3;border-radius:50px;color:#5a6054;font-size:12px}
.workq-group-list{border:0;border-radius:0;background:transparent;overflow:visible}
.workq-row{grid-template-columns:minmax(0,1fr) auto;gap:0 16px;min-height:0;padding:16px 0;border-bottom:1px solid #e1e9eb;box-shadow:none}
.workq-row:first-child{padding-top:0}.workq-row:last-child{padding-bottom:0}
.workq-row:hover{background:transparent}
.workq-row-link{padding:0;gap:8px;border-radius:6px}
.workq-title{font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.025em;color:#242620}
.workq-kind{font-size:10px;font-weight:500;color:#5a6054}
.workq-automatic{font-size:9px;color:#5a6054}.workq-automatic:before{background:#8ba0a9}
.workq-client{gap:6px 12px}.workq-client-name{color:#50564b;font-size:12px}.workq-phone{color:#5a6054;font-size:11px}.workq-phone>strong{color:inherit}
.workq-meta{color:#5a6054;font-size:10px}.workq-state{color:#39724e}
.workq-due{align-self:start;align-items:end;gap:4px;padding-top:1px}.workq-due-time{font-size:22px;font-weight:500;letter-spacing:-.025em;color:#242620}.workq-due-day{font-size:10px;color:#5a6054}
.workq-due.is-unscheduled>.workq-due-time{font-size:10px;color:#5a6054;max-width:80px;text-align:right}
.workq-actions{grid-column:1/-1;max-width:none;justify-content:flex-start;padding:13px 0 0;gap:6px}
.workq-actions>.button{min-height:30px;padding:6px 11px;font-size:10px;border-radius:999px;color:#50564b;border-color:#d7dbd0;background:#fff}
.workq-actions>.workq-primary{color:#242620;background:#eff7d1;border-color:#d7e8a7}.workq-actions>.workq-primary:hover{background:#c6f51e;border-color:#c6f51e}
.workq-actions>.workq-done{background:#edf6f0;color:#306546;border-color:transparent}
.workq-row.is-overdue{box-shadow:none}
.workq-group[data-workq-group=overdue]{grid-column:1/-1;background:#fff;color:#242620;padding:26px 28px 28px}
.workq-group[data-workq-group=overdue]>.workq-group-heading{color:#242620;margin-bottom:23px}
.workq-group[data-workq-group=overdue] .workq-group-count{color:#a13326;background:#ffede9}
.workq-group[data-workq-group=overdue] .workq-group-list{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.workq-group[data-workq-group=overdue] .workq-row{padding:0 0 0 28px;border:0;border-left:1px solid #d5dfe3;border-radius:0}
.workq-group[data-workq-group=overdue] .workq-row:first-child{padding-left:0;border-left:0}
.workq-group[data-workq-group=overdue] .workq-title{font-size:20px;line-height:1.3;color:#242620;font-weight:600}
.workq-group[data-workq-group=overdue] :is(.workq-kind,.workq-automatic,.workq-client-name,.workq-phone,.workq-meta,.workq-state,.workq-due-day){color:#50564b}
.workq-group[data-workq-group=overdue] .workq-due-time{color:#a13326;font-size:28px}
.workq-group[data-workq-group=overdue] .workq-actions{padding-top:20px}
.workq-group[data-workq-group=overdue] .workq-actions>.button{background:#fff;color:#343a30;border-color:#b9bfb0}
.workq-group[data-workq-group=overdue] .workq-actions>.workq-primary{background:#c6f51e;color:#242620;border-color:#c6f51e}
.workq-group[data-workq-group=overdue] .workq-actions>.workq-done{color:#242620;background:#f0f4f5;border-color:#cbd8dd}
.workq-group[data-workq-group=today]{background:#fff;}
.workq-group[data-workq-group=today] .workq-group-count{background:#c6f51e;color:#242620}
.workq-group[data-workq-group=today] .workq-due-time{font-size:32px}
.workq-group[data-workq-group=unscheduled]{grid-column:2;grid-row:2/span 2}
.workq-group[data-workq-group=later]{background:#fff;border:1px solid #d7dbd0;padding:20px 24px}
.workq-group[data-workq-group=later] .workq-group-heading{font-size:18px;margin-bottom:16px}
.workq-rules{margin-top:24px}.workq-rules>summary{color:#5a6054;font-size:11px}
@media(max-width:1180px){.crm-page:has(.workq){padding:24px 22px 0}.workq-toolbar{flex-wrap:wrap}.workq-filter-disclosure{margin-left:auto}.workq-results{gap:16px}.workq-group{padding:20px}.workq-group[data-workq-group=overdue]{padding:24px}.workq-group[data-workq-group=overdue] .workq-group-list{gap:20px}.workq-group[data-workq-group=overdue] .workq-row{padding-left:20px}.workq-group[data-workq-group=overdue] .workq-title{font-size:18px}}
@media(max-width:780px){.crm-page:has(.workq){padding:22px 16px 0}.crm-page .workq-page-heading h1{font-size:36px}.crm-page .workq-page-heading{align-items:start;gap:18px;flex-wrap:wrap;margin-bottom:22px}.workq-page-date{margin-top:9px}.workq-toolbar{gap:12px}.workq-tabs{flex-wrap:nowrap;overflow:auto;max-width:100%;width:100%;border-radius:16px}.button.workq-tab{flex-shrink:0}.workq-filter-disclosure>summary{min-height:36px;padding:6px 12px}.workq-results{grid-template-columns:1fr}.workq-group[data-workq-group=overdue]{grid-column:auto}.workq-group[data-workq-group=overdue] .workq-group-list{grid-template-columns:1fr}.workq-group[data-workq-group=overdue] .workq-row{padding:20px 0 0;border-left:0;border-top:1px solid #d5dfe3}.workq-group[data-workq-group=overdue] .workq-row:first-child{padding:0;border:0}.workq-group[data-workq-group=unscheduled]{grid-column:auto;grid-row:auto}.workq-row{grid-template-columns:minmax(0,1fr) auto;padding-inline:0}.workq-actions{padding-left:0}.workq-group-heading{font-size:23px}.workq-client{flex-direction:row}.workq-filter-disclosure[open] .workq-filters{width:100%}.workq-status-line{flex-wrap:wrap;margin-bottom:8px}.workq-sync{flex-basis:100%;max-width:none}.workq-group[data-workq-group=overdue] .workq-title{font-size:18px}.workq-group[data-workq-group=overdue] .workq-due-time{font-size:24px}}
.workq-row{grid-template-areas:"main due" "actions actions";grid-template-rows:auto auto}
.workq-due{flex-direction:column;align-items:flex-end;justify-content:flex-start}
.workq-actions{grid-area:actions;border-top:0}
.workq-event-date{color:inherit}.workq-event-time{background:#e6eef0;color:#242620}
.workq-group[data-workq-group=overdue] .workq-event-label{color:#50564b}
.workq-group[data-workq-group=overdue] .workq-event-time{background:#f0f4f5;color:#242620}
@media(max-width:780px){.workq-row{grid-template-areas:"main due" "actions actions"}}
@media(max-width:440px){.workq-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "due" "actions";row-gap:12px}.workq-due{flex-direction:row;align-items:baseline;gap:8px}.workq-due.is-unscheduled>.workq-due-time{max-width:none;text-align:left}.workq-actions{padding-top:0}.workq-group[data-workq-group=overdue] .workq-actions{padding-top:0}}
.workq-page-heading h1 mark{padding:0 .12em .04em;border-radius:5px;background:#c6f51e;color:#242620;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.workq-page-date{text-transform:none}.workq-page-date::first-letter{text-transform:uppercase}
.workq-due.is-unscheduled{display:none}
.workq-actions>.button{font-size:11px;min-height:33px}
.workq-group[data-workq-group=unscheduled] .workq-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "actions"}
/* Information stays on solid white surfaces; colour identifies actions/state. */
.crm-shell:has(.workq){background:#f2f3ee}
.crm-shell:has(.workq) .crm-header{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
.workq-row-link{gap:9px}
.workq-kind,.workq-automatic{font-size:11px;color:#50564b}
.workq-client-name{font-size:14px;font-weight:550;color:#343a30}
.workq-phone{font-size:13px;color:#50564b}
.workq-meta{font-size:12px;color:#50564b}
.workq-due-day{font-size:12px;color:#50564b}
.workq-actions>.button{font-size:12px;min-height:36px;padding:7px 13px;border-color:#b9bfb0}
.workq-actions>.workq-primary{background:#c6f51e;border-color:#c6f51e;color:#242620;font-weight:600}
.workq-actions>.workq-done{color:#235637;background:#edf6f0;border-color:#c5dccb}
.workq-group[data-workq-group=overdue] .workq-due-time{padding:3px 8px;border-radius:8px;background:#ffede9}
.workq-group[data-workq-group=overdue] .workq-title{font-size:19px}
.workq-sync{font-size:12px;color:#50564b}
.workq-page-date{color:#50564b;font-size:14px}
.workq-group[data-workq-group=later] .workq-group-heading{font-size:21px}
.workq-title{font-size:17px}
@media(max-width:780px){.workq-group[data-workq-group=overdue] .workq-title{font-size:18px}.workq-meta{font-size:11px}.workq-client{gap:5px 12px}}

/* Compact workday rhythm; keep the readable information type scale. */
.crm-page:has(.workq){padding-top:22px}
.crm-page .workq-page-heading{margin-bottom:20px}
.crm-page .workq-page-heading h1{font-size:40px}
.workq-page-date{margin-top:9px}
.workq-status-line{min-height:34px;padding-block:5px;margin-bottom:10px}
.workq-results{gap:16px}
.workq-group{padding:18px 20px}
.workq-group-heading{margin-bottom:15px;font-size:22px}
.workq-group[data-workq-group=overdue]{padding:20px 22px}
.workq-group[data-workq-group=overdue]>.workq-group-heading{margin-bottom:17px}
.workq-group[data-workq-group=overdue] .workq-group-list{gap:22px}
.workq-group[data-workq-group=overdue] .workq-row{padding-left:22px}
.workq-group[data-workq-group=overdue] .workq-row:first-child{padding-left:0}
.workq-row{padding-block:13px}
.workq-row-link{gap:6px}
.workq-actions{padding-top:10px;gap:6px}
.workq-group[data-workq-group=overdue] .workq-actions{padding-top:14px}
.workq-actions>.button{min-height:33px;padding:6px 11px}
.workq-group[data-workq-group=later]{padding:17px 20px}
.workq-group[data-workq-group=later] .workq-group-heading{margin-bottom:13px}
.workq-group[data-workq-group=today] .workq-due-time{font-size:28px}
.workq-rules{margin-top:17px}
@media(max-width:780px){
 .crm-page:has(.workq){padding-top:18px}
 .crm-page .workq-page-heading{gap:14px;margin-bottom:17px}
 .crm-page .workq-page-heading h1{font-size:33px}
 .workq-group,.workq-group[data-workq-group=overdue]{padding:18px}
 .workq-group[data-workq-group=overdue] .workq-row{padding:16px 0 0}
 .workq-group[data-workq-group=overdue] .workq-row:first-child{padding:0}
 .workq-group[data-workq-group=overdue] .workq-group-list{gap:16px}
 .workq-status-line{gap:8px}
}
@media(max-width:440px){
 .workq-row{row-gap:8px}
 .workq-actions,.workq-group[data-workq-group=overdue] .workq-actions{padding-top:0}
}
