/* Santa Semente workspace. Preserves native controls and message transport. */
body.cpd-theme-light .mx_RoomView { background: #f3f5f7; }

body.cpd-theme-light .mx_RoomView_body {
    --cpd-color-bg-canvas-default: #f3f5f7;
    background: #f3f5f7;
}
body.cpd-theme-light .mx_RoomHeader,
body.cpd-theme-light .mx_MessageComposer {
    --cpd-color-bg-canvas-default: #ffffff;
    background: #ffffff;
}
body.cpd-theme-light .mx_RoomHeader { border-bottom: 1px solid #bfccd5; }
body.cpd-theme-light .mx_MessageComposer { border-top: 1px solid #bfccd5; }
body.cpd-theme-light .mx_LeftPanel,
body.cpd-theme-light .mx_RoomListPanel {
    background: #ffffff;
    border-inline-end: 1px solid #bfccd5;
}
body.cpd-theme-light .mx_SpacePanel { background: #edf2f1; }
body.cpd-theme-light .mx_EventTile[data-layout="bubble"] .mx_EventTile_line {
    box-shadow: 0 0 0 1px rgb(113 134 146 / 20%), 0 2px 3px rgb(30 50 60 / 5%);
}

body.cpd-theme-light .mx_SpacePanel { border-inline-end: 1px solid #bfccd5; }
body.cpd-theme-light .mx_RoomListItem[aria-selected="true"] { background: #dcebe5; }
#santa-alerts-control{position:fixed;bottom:10px;left:78px;z-index:1000;border:1px solid #bccfc7;border-radius:8px;background:#fff;color:#145743;padding:6px 10px;font:12px system-ui;cursor:pointer}#santa-alerts-control[hidden]{display:none}@media(max-width:650px){#santa-alerts-control{left:12px;bottom:68px}}
/* Workspace design v2. Native virtual-list item heights are deliberately preserved. */
body.cpd-theme-light{--santa-ink:#203832;--santa-muted:#60756e;--santa-border:#d4dfda;--santa-canvas:#f0f4f2;--eventbubble-self-bg:#dfede5;--eventbubble-others-bg:#fff;--eventbubble-bg-hover:#e8efeb}
body.cpd-theme-light .mx_MatrixChat{background:#edf2ef;color:var(--santa-ink)}
body.cpd-theme-light .mx_LeftPanel{background:#fff;border-inline-end:1px solid var(--santa-border)}
body.cpd-theme-light .mx_LeftPanel_roomListContainer{background:#fff;min-height:0}
body.cpd-theme-light .mx_RoomListPanel{background:#fff;flex:1;height:auto;min-height:0;padding-top:8px;border:0}
body.cpd-theme-light .mx_SpacePanel{background:#e4ece7;border-inline-end:1px solid #cbd8d0}
.santa-brand{display:flex;align-items:center;gap:11px;flex-shrink:0;padding:20px 18px 18px;border-bottom:1px solid var(--santa-border,#d4dfda)}
.santa-brand-mark{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;background:#194e3f;border-radius:12px;color:#fff}
.santa-brand-mark svg{width:24px;height:24px}
.santa-brand strong{display:block;font:650 16px/1.3 system-ui;letter-spacing:-.35px}
.santa-brand small{display:block;margin-top:3px;font:11px/1.4 system-ui;letter-spacing:1.4px;text-transform:uppercase;color:#60756e}
body.cpd-theme-light .mx_RoomListItemView{border-radius:12px;transition:background .15s}
body.cpd-theme-light .mx_RoomListItemView_selected,body.cpd-theme-light .mx_RoomListItemView[aria-selected=true]{background:#e2eee7;box-shadow:inset 3px 0 #24785c}
body.cpd-theme-light .mx_RoomListItemView:not(.mx_RoomListItemView_selected):hover{background:#f1f5f3}
body.cpd-theme-light .mx_RoomListItemView [data-testid=room-name]{font-weight:600;color:#203832}
.santa-workspace-nav{display:flex;flex-direction:column;gap:8px;padding:14px;border-top:1px solid var(--santa-border,#d4dfda);flex-shrink:0;background:var(--cpd-color-bg-canvas-default,#fff)}
.santa-workspace-nav a,.santa-workspace-nav #santa-alerts-control{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;min-height:42px;padding:10px 12px;border:1px solid #d4dfda;border-radius:10px;background:#f7faf8;color:#254f40;text-decoration:none;font:600 13px/1.4 system-ui;text-align:left;cursor:pointer}
.santa-workspace-nav svg{width:18px;height:18px;flex-shrink:0}
.santa-workspace-nav #santa-alerts-control{position:static;margin:0;z-index:auto}
.santa-workspace-nav [hidden],#santa-alerts-control[hidden]{display:none!important}
.santa-workspace-nav a:hover,.santa-workspace-nav #santa-alerts-control:hover{background:#eaf2ed;border-color:#a9c4b5}
body.cpd-theme-light .mx_RoomHeader{height:76px;min-height:76px;padding-inline:24px;background:#fff;border-bottom:1px solid #cbd9d1;gap:10px}
body.cpd-theme-light .mx_RoomHeader_info{padding-right:12px;min-width:0}
body.cpd-theme-light .mx_RoomHeader_infoWrapper{min-width:0}
body.cpd-theme-light .mx_RoomHeader_heading{font-weight:650;letter-spacing:-.2px}
body.cpd-theme-light .mx_RoomHeader button:not(.mx_RoomHeader_infoWrapper):not(#santa-open-case){border-radius:10px}
body.cpd-theme-light .mx_RoomView,body.cpd-theme-light .mx_RoomView_body{background:var(--santa-canvas);--cpd-color-bg-canvas-default:var(--santa-canvas)}
body.cpd-theme-light .mx_RoomView_body[data-layout=bubble] .mx_RoomView_timeline,body.cpd-theme-light .mx_RoomView_body[data-layout=bubble] .mx_RoomView_statusArea{max-width:1080px}
body.cpd-theme-light .mx_RoomView_MessageList{padding-bottom:18px}
body.cpd-theme-light .mx_EventTile[data-layout=bubble]{--cornerRadius:14px;--maxWidth:78%;--EventTile_bubble-margin-inline-start:52px;--EventTile_bubble-margin-inline-end:42px}
body.cpd-theme-light .mx_EventTile[data-layout=bubble]:not(.mx_EventTile_info):not(.mx_EventTile_noBubble):not(.mx_EventTile_alignedBetweenBubbles)>.mx_EventTile_line{--EventBubbleTile_line-max-width:78%;border-radius:14px;box-shadow:0 1px 2px #193e2710;border:1px solid #d5e1da;line-height:1.5}
body.cpd-theme-light .mx_EventTile[data-layout=bubble][data-self=true]{--backgroundColor:#dfede5}
body.cpd-theme-light .mx_EventTile[data-layout=bubble][data-self=false]{--backgroundColor:#fff}
body.cpd-theme-light .mx_EventTile[data-layout=bubble] .mx_EventTile_content{color:#203832;min-width:0;font-size:14px;line-height:1.5}
body.cpd-theme-light .mx_EventTile[data-layout=bubble] .mx_MTextBody{overflow-wrap:anywhere}
body.cpd-theme-light .mx_EventTile[data-layout=bubble] .mx_EventTile_content a{color:#17634e;text-underline-offset:3px}
/* Explicit receipt owns its own row, never a competing flex column. */
body .mx_EventTile[data-layout=bubble]>.mx_EventTile_line:has(>.santa-read-status):not(.mx_EventTile_mediaLine){flex-wrap:wrap;padding-right:12px!important}
body .mx_EventTile[data-layout=bubble]>.mx_EventTile_line:has(>.santa-read-status):not(.mx_EventTile_mediaLine)>.mx_EventTile_content{flex-basis:100%}
body .mx_EventTile_line>.santa-read-status{flex:0 0 100%;box-sizing:border-box;min-width:0;padding-right:46px;white-space:normal;text-align:right;font:11px/1.4 system-ui;color:#62776d;margin:2px 0 0}
body .mx_EventTile_line>.santa-read-status[data-read=true]{color:#21664f}
body .mx_EventTile_mediaLine>.santa-read-status{position:absolute;bottom:4px;right:8px;background:#fff;border-radius:5px;padding:2px 5px;max-width:calc(100% - 70px);margin-right:48px;font-size:10px}
body.cpd-theme-light .mx_EventTile[data-layout=bubble] .mx_MessageTimestamp{color:#657b70;font-size:10px;white-space:nowrap}
body.cpd-theme-light .mx_EventTile[data-layout=bubble][data-self=true]>.mx_EventTile_avatar{display:none}
body.cpd-theme-light .mx_EventTile[data-layout=bubble]>.mx_EventTile_avatar{border-color:#f0f4f2}
body.cpd-theme-light .mx_EventTile[data-layout=bubble]>.mx_DisambiguatedProfile{font-size:12px;color:#527364}
body.cpd-theme-light .mx_DateSeparator{color:#5e7569}
body.cpd-theme-light .mx_RoomView_body[data-layout=bubble] .mx_MessageComposer{width:calc(100% - 48px);max-width:1000px;margin:10px auto 18px;padding:0;border:1px solid #bfd0c5;border-radius:16px;background:#fff;--cpd-color-bg-canvas-default:#fff;box-shadow:0 5px 20px #1b41390a}
body.cpd-theme-light .mx_MessageComposer_wrapper{border-top:0;padding-inline:38px 14px}
body.cpd-theme-light .mx_MessageComposer_input{min-width:0}
body.cpd-theme-light .mx_MessageComposer:focus-within{border-color:#458e6d;box-shadow:0 0 0 3px #2f805e14}
body #santa-open-case{margin:0 0 0 8px;padding:11px 15px;border:1px solid #1e654d;border-radius:10px;background:#1c654e;color:#fff;font:600 13px/1.3 system-ui;min-height:42px;box-shadow:0 2px 3px #194e3f12}
body #santa-open-case:hover{background:#154e3c}
.santa-mobile-back{display:none}
.santa-workspace-nav :focus-visible,.santa-mobile-back:focus-visible{outline:3px solid #389a73;outline-offset:3px}
body #santa-case-dialog,body #santa-alert-dialog{border-radius:20px;box-shadow:0 24px 80px #132d3240}
@media(max-width:1000px){body.cpd-theme-light .mx_RoomHeader{padding-inline:14px;gap:6px}body.cpd-theme-light .mx_EventTile[data-layout=bubble]{--EventTile_bubble-margin-inline-start:44px;--EventTile_bubble-margin-inline-end:24px}body.cpd-theme-light .mx_EventTile[data-layout=bubble]>.mx_EventTile_line{--EventBubbleTile_line-max-width:86%!important}}
@media(max-width:700px){body.santa-room-open .mx_LeftPanel_outerWrapper{display:none!important}body.santa-room-open .santa-mobile-back{display:grid;place-items:center;flex-shrink:0;width:38px;height:42px;border:1px solid #d4dfda;border-radius:10px;color:inherit;text-decoration:none}.santa-mobile-back svg{width:20px;height:20px}body.santa-mobile-home .mx_LeftPanel_outerWrapper{width:100%!important;max-width:100%!important;flex:1!important}body.santa-mobile-home .mx_LeftPanel_wrapper--user{width:100%!important}body.santa-mobile-home .mx_MatrixChat_middlePanel{display:none}body.cpd-theme-light .mx_RoomHeader{height:auto;min-height:68px;padding:10px;flex-wrap:wrap}body.cpd-theme-light .mx_RoomHeader_infoWrapper{flex:1}body .mx_RoomHeader #santa-open-case{margin:0;padding:9px 12px;min-height:38px;font-size:12px}body.cpd-theme-light .mx_RoomView_body[data-layout=bubble] .mx_MessageComposer{width:calc(100% - 20px);margin:8px auto max(10px,env(safe-area-inset-bottom));border-radius:14px}body.cpd-theme-light .mx_MessageComposer_wrapper{padding-inline:26px 8px}body.cpd-theme-light .mx_MessageComposer_actions{gap:1px}body.cpd-theme-light .mx_EventTile[data-layout=bubble]{--EventTile_bubble-margin-inline-start:38px;--EventTile_bubble-margin-inline-end:18px}body.cpd-theme-light .mx_EventTile[data-layout=bubble]>.mx_EventTile_line{--EventBubbleTile_line-max-width:94%!important}body .mx_EventTile_line>.santa-read-status{font-size:10px}.santa-brand{padding:15px}}
@media(prefers-reduced-motion:reduce){.mx_RoomListItemView{transition:none!important}}
/* Typography and compact-screen header grid. */
body .mx_MatrixChat{font-family:Inter,"Segoe UI",system-ui,sans-serif}
body .mx_EventTile_content,body .mx_MTextBody{font-family:Inter,"Segoe UI",system-ui,sans-serif}
body.cpd-theme-light .mx_EventTile[data-layout=bubble]:not(.mx_EventTile_info):not(.mx_EventTile_noBubble):not(.mx_EventTile_alignedBetweenBubbles)>.mx_EventTile_line:not(.mx_EventTile_mediaLine){padding:10px 60px 10px 12px}
body.cpd-theme-light .mx_EventTile[data-layout=bubble].mx_EventTile_continuation{padding-top:5px}
body.cpd-theme-light .mx_RoomListItemView_selected>div{background:#e2eee7!important}
@media(max-width:700px){body .mx_RoomHeader_infoWrapper{flex:1 1 calc(100% - 54px)!important;max-width:calc(100% - 48px);order:1}body .mx_RoomHeader>.santa-mobile-back{order:0}body .mx_RoomHeader>button:not(.mx_RoomHeader_infoWrapper){order:2}body .mx_RoomHeader>#santa-open-case{margin-left:auto}body .mx_RoomHeader_info{overflow:hidden;padding-right:0}body .mx_RoomHeader_heading{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body .mx_RoomHeader_infoWrapper .mx_RoomHeader_truncated{word-break:normal}}
body .mx_RoomListItemView,body .mx_RoomHeader,body .mx_RoomHeader button{font-family:Inter,"Segoe UI",system-ui,sans-serif}
@media(max-width:700px){body.cpd-theme-light .mx_RoomHeader{flex-shrink:0}body .mx_RoomHeader_infoWrapper{height:auto;min-height:44px}}
