/* Shared workspace chrome and motion; never changes the underlying record layout. */
:root{--ws-surface:var(--card,#fff);--ws-text:var(--txt,#302d32);--ws-border:var(--line,#e6e0df);--ws-muted:var(--muted,#716b72);--ws-accent:var(--accent,#b52636);--ws-soft:var(--accent-soft,#faeceb)}
html[data-theme=dark]{--ws-surface:var(--card,#24242b);--ws-text:var(--txt,#efedf2);--ws-border:var(--line,#3a3943);--ws-muted:var(--muted,#b5afbb);--ws-accent:var(--accent,#ff7c86);--ws-soft:var(--accent-soft,#34252d)}
.ws-theme{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--ws-border);background:var(--ws-surface);color:var(--ws-text);border-radius:11px;padding:9px 12px;min-height:44px;font:600 12px/1.2 system-ui;cursor:pointer;white-space:nowrap}.ws-theme>span:first-child{font-size:20px;line-height:1}.ws-theme:focus-visible,.ws-switcher :is(button,a):focus-visible,.ws-context a:focus-visible{outline:2px solid var(--ws-accent);outline-offset:3px}.suitebar .ws-theme{background:#ffffff0c;color:#fff;border-color:#ffffff2c;min-width:40px;padding:8px}.suitebar .ws-theme-label{display:none}
.ws-switcher{position:relative;flex:none}.ws-switch-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid #ffffff35;background:#ffffff0c;color:#fff;font:650 12px/1.2 system-ui;cursor:pointer}.ws-switch-button svg{height:17px;width:17px}.ws-switch-button:hover{background:#ffffff20}.ws-switch-menu{position:absolute;z-index:300;top:calc(100% + 8px);left:0;width:270px;max-width:calc(100vw - 24px);padding:8px;border:1px solid var(--ws-border);border-radius:16px;background:var(--ws-surface);color:var(--ws-text);box-shadow:0 18px 55px #0003;animation:ws-enter .18s ease-out}.ws-switch-menu[hidden]{display:none}.ws-switch-menu a{display:flex;gap:11px;align-items:center;min-height:54px;border-radius:10px;padding:10px 12px;color:inherit;text-decoration:none;white-space:normal}.ws-switch-menu a:hover,.ws-switch-menu a[aria-current=page]{background:var(--ws-soft);color:var(--ws-accent)}.ws-switch-menu strong{display:block;font-size:13px}.ws-switch-menu small{display:block;margin-top:4px;color:var(--ws-muted);font-size:10px;line-height:1.4}.ws-switch-menu .ws-switch-home{border-top:1px solid var(--ws-border);border-radius:0;margin-top:7px;padding-top:13px}.ws-switch-menu svg{width:20px;height:20px;flex:none}
.ws-context{border:1px solid var(--ws-border);border-radius:14px;padding:16px;margin:16px 0;background:var(--ws-surface);color:var(--ws-text)}.ws-context h3{margin:0 0 5px!important;padding:0!important;font-size:13px!important;font-weight:700}.ws-context p{margin:5px 0 12px;color:var(--ws-muted);font-size:12px;line-height:1.5}.ws-context-links{display:flex;gap:8px;flex-wrap:wrap}.ws-context a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;border:1px solid var(--ws-border);border-radius:9px;font:600 11px/1.4 system-ui;color:var(--ws-text);text-decoration:none;overflow-wrap:anywhere}.ws-context a:hover{background:var(--ws-soft);border-color:var(--ws-accent);color:var(--ws-accent)}.ws-related{display:grid;gap:7px;margin-top:12px}.ws-related a{justify-content:space-between}.ws-related small{color:var(--ws-muted);font-weight:400}.ws-context [role=status]{font-size:11px;color:var(--ws-muted);margin-top:10px}.ws-context [hidden]{display:none}.ws-connected-note{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 24px;max-width:720px}
@keyframes ws-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){.workspace-panel:not([hidden]),.sp-workspace,.view>.panel,.ws-context{animation:ws-enter .25s ease-out}.ws-theme,.ws-context a{transition:background .16s,border-color .16s,color .16s}.app-card:hover,.sp-record:hover{transition:transform .18s,box-shadow .18s}.drawer.on{animation:ws-enter .2s ease-out}}
@media(max-width:760px){.suitebar .ws-switcher{grid-column:1;grid-row:1}.suitebar .ws-switch-button{min-height:44px;padding:8px}.suitebar .ws-switch-button>span{max-width:54px;overflow:hidden;text-overflow:ellipsis}.suitebar .ws-switch-menu{position:fixed;top:calc(60px + env(safe-area-inset-top,0px));left:12px}.ws-theme{padding:9px;min-width:44px}.header-actions .ws-theme-label{display:none}.ws-context{padding:14px}.ws-context-links{display:grid;grid-template-columns:1fr}.ws-context a{min-height:44px;font-size:12px}.ws-related a{align-items:flex-start;flex-wrap:wrap}.suitebar .sb-brand,.suitebar>.sb-logo{max-width:100px}}
@media(prefers-reduced-motion:reduce){.ws-switch-menu,.ws-context,.ws-theme,.workspace-panel{animation:none!important;transition:none!important}}
@media print{.ws-switcher,.ws-theme,.ws-context{display:none!important}}
/* Coral text remains readable on graphite; filled action buttons retain white contrast. */
html.sp-workspace-enabled.dark-theme{--accent:#ff8b95;--accent-soft:rgba(255,139,149,.12);--accent-line:rgba(255,139,149,.32);--i-ring:rgba(255,139,149,.35)}
html.sp-workspace-enabled.dark-theme :is(.att-ic,.q-badge,.crm-ic),html.sp-workspace-enabled.dark-theme .ord[style*="var(--accent)"],html.sp-workspace-enabled.dark-theme :is(.dr-sec-btn,.dc-x):hover,html.sp-workspace-enabled.dark-theme table.grid tr.sel .selbox{color:#281b20}
