:root{color:#e8eaed;--shell-panel-bg:#0a101857;--shell-panel-bg-strong:#0a10187a;--shell-panel-border:#bed0e424;--shell-panel-shadow:0 14px 34px #00000047;--shell-panel-blur:0px;background:#111418;font-family:Averia Libre,Optima,Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{color:#e8eaed;background:#111418;height:100%;min-height:100%;margin:0}body{overflow:hidden}button,input,textarea,select{font:inherit}.auth-shell{background:linear-gradient(180deg, #0a101861 0%, #0a101894 100%), var(--shell-bg-url,none) center/cover no-repeat, #111418;place-items:center;min-height:100vh;display:grid}.auth-card{border:1px solid var(--shell-panel-border);width:min(420px,100vw - 32px);box-shadow:var(--shell-panel-shadow);background:#0d131c9e;border-radius:20px;gap:12px;padding:24px;display:grid}.auth-card h1{margin:0;font-size:1.6rem}.auth-card label{color:#c5ccd4;font-size:.92rem}.auth-card input{color:#eef2f7;background:#0a101894;border:1px solid #bed0e424;border-radius:10px;width:100%;padding:11px 12px}.auth-card button{color:#fff;cursor:pointer;background:#4d8dffe0;border:0;border-radius:12px;padding:11px 14px}.auth-card button.secondary,.sidebar button.secondary,.file-upload,.logout-btn{color:#dde3ea;background:#1018228f}.app-shell{background:linear-gradient(180deg, #080c122e 0%, #080c1257 100%), var(--shell-bg-url,none) center center / cover no-repeat, #111418;grid-template-columns:clamp(168px,14vw,194px) minmax(0,1fr) 86px;gap:14px;width:100vw;height:100vh;padding:14px 12px;display:grid;position:relative}.app-shell-has-right-panel{grid-template-columns:clamp(168px,14vw,194px) minmax(0,1fr) clamp(236px,16vw,256px) 78px}.video-panel,.app-shell-main,.shell-right-panel,.hub-rail{min-height:0}.video-panel{display:flex}.video-panel-surface{grid-template-rows:repeat(5,minmax(0,1fr)) auto;gap:9px;width:100%;padding:1px 0;display:grid}.video-panel-surface:after{content:"";border:1px solid var(--shell-panel-border);min-height:34px;box-shadow:var(--shell-panel-shadow);background:#0c121a2e;border-radius:18px;display:block}.video-panel-slot{border:1px solid var(--shell-panel-border);box-shadow:var(--shell-panel-shadow);background:#0c121a2e;border-radius:20px}.video-panel-slot-feature{background:#0c121a38}.app-shell-main{min-width:0;position:relative}.center-panel{place-items:center;display:grid}.sidebar{border:1px solid var(--shell-panel-border);background:var(--shell-panel-bg);box-shadow:var(--shell-panel-shadow);border-radius:26px;flex-direction:column;height:100%;min-height:0;display:flex;overflow-y:auto}.shell-right-panel{overflow:hidden}.sidebar-top{border-bottom:1px solid #25303a;gap:12px;padding:12px 16px 16px;display:grid}.sidebar-logo-block{background:0 0;border-radius:14px;place-items:center;min-height:120px;display:grid;position:relative;overflow:hidden}.sidebar-logo-block-dm{transition:box-shadow .15s,background .15s}.sidebar-logo-block-dm.sidebar-logo-block-drag-over{background:#4d8dff0f;box-shadow:inset 0 0 0 2px #4d8dff73}.sidebar-logo-block-uploading{opacity:.72}.sidebar-logo-image{object-fit:contain;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;max-width:240px;height:auto;display:block}.sidebar-logo-fallback{background:linear-gradient(#11161b 0%,#161d25 100%);border:1px solid #2b3640;border-radius:12px;width:240px;height:120px}.avatar{color:#dce8f7;background:#24303b;border:1px solid #32404d;border-radius:50%;flex:none;place-items:center;font-weight:700;display:grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%;display:block}.avatar span{font-size:.72rem;line-height:1}.avatar-small{width:32px;height:32px}.avatar-medium{width:52px;height:52px}.profile-sub,.muted,.conversation-meta{color:#9ca7b2;font-size:.86rem}.profile-editor,.new-chat-box{gap:10px;display:grid}.profile-editor{justify-items:center}.profile-editor input,.profile-editor select,.new-chat-box input,.new-chat-box select,.chat-settings-panel input,textarea,.user-admin-row input,.user-admin-row select,.message-edit-textarea{color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:10px;padding:10px 12px}.profile-editor-name-input{text-align:center;width:100%;font-size:1.1rem;font-weight:700}.profile-editor-controls{align-items:stretch;gap:8px;width:100%;display:flex}.profile-editor-controls button{flex:auto}.profile-editor-controls select{flex:0 0 118px;width:118px}.sidebar button,.composer button,.file-upload{cursor:pointer;border:0;border-radius:10px;padding:10px 12px}.conversation-list{flex:1;gap:6px;padding:12px;display:grid;overflow:auto}.conversation-item-wrap{position:relative}.conversation-item{text-align:left;color:#edf2f8;cursor:pointer;background:#121d2a75;border:1px solid #25303a;border-radius:14px;flex-direction:column;justify-content:flex-start;width:100%;padding:8px 12px;transition:background .15s,border-color .15s,box-shadow .15s;display:flex}.conversation-item.conversation-public{border-style:solid;border-color:#4d8dff61;box-shadow:0 0 0 1px #4d8dff1f,inset 0 0 0 1px #4d8dff12}.conversation-item.conversation-private{border-style:dashed;border-color:#ab7f4785;box-shadow:0 0 0 1px #ab7f471f,inset 0 0 0 1px #ab7f4712}.conversation-item.conversation-public.active{background:#122a4ae0;border-color:#62a0fff2;box-shadow:0 0 0 1px #4d8dff70,0 0 16px #4d8dff38,inset 0 0 0 1px #4d8dff2e}.conversation-item.conversation-private.active{background:#322412d1;border-color:#c19051f0;box-shadow:0 0 0 1px #c1905166,0 0 16px #ab7f472e,inset 0 0 0 1px #c1905129}.conversation-item.conversation-public.unread{background:#18212b;border-color:#62a0fff2;box-shadow:0 0 0 2px #4d8dff94,inset 0 0 0 1px #4d8dff29}.conversation-item.conversation-private.unread{background:#1e1811e0;border-color:#c19051f0;box-shadow:0 0 0 2px #ab7f476b,inset 0 0 0 1px #c1905124}.conversation-row-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.conversation-title{min-width:0;margin-bottom:3px;font-weight:600}.conversation-unread-flag{filter:drop-shadow(0 0 6px #d53e3e52);border-left:2px solid #ffcdcdeb;flex:none;width:12px;height:16px;margin-left:auto;position:relative}.conversation-unread-flag:before{content:"";clip-path:polygon(0 0,100% 18%,68% 50%,100% 82%,0 100%);background:linear-gradient(#ff6a6afa 0%,#d53535f5 100%);border-radius:1px;width:9px;height:8px;position:absolute;top:1px;left:2px;box-shadow:0 0 0 1px #7e15157a}.conversation-unread-flag:after{content:"";background:#ffcdcdeb;border-radius:999px;width:4px;height:2px;position:absolute;bottom:0;left:0}.conversation-meta.conversation-public{color:#88b8ff}.conversation-meta.conversation-private{color:#c59a62}.logout-btn{margin:12px}.chat-panel{border:1px solid var(--shell-panel-border);background:var(--shell-panel-bg);min-width:0;height:100%;min-height:0;box-shadow:var(--shell-panel-shadow);border-radius:26px;grid-template-rows:auto 1fr auto;display:grid;position:relative;overflow:hidden}.chat-panel-workspace-open .chat-header,.chat-panel-workspace-open .messages-area,.chat-panel-workspace-open .composer{opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none}.hub-rail{z-index:60;background:0 0;flex-direction:column;align-items:stretch;gap:10px;padding:12px 0 12px 10px;display:flex;position:relative}.hub-rail:before{content:"";background:#4e5f76b8;width:1px;position:absolute;top:8px;bottom:8px;left:0}.hub-rail-tab{color:#dde3ea;cursor:pointer;-webkit-backdrop-filter:none;background:#0c131de6;border:1px solid #bed0e429;border-radius:16px;align-self:center;width:78%;min-height:53px;padding:11px 8px;font-size:.82rem;font-weight:700;line-height:1.1;box-shadow:0 10px 24px #00000038}.hub-rail-tab:hover{background:#141f2cf5}.hub-rail-tab.active{background:#162436f0;border-color:#4d8dffd1;box-shadow:inset 0 0 0 1px #4d8dff2e,0 12px 28px #0000003d}@keyframes hubRailDirectAlertPulse{0%,to{background:#0c131de6;border-color:#bed0e429;box-shadow:0 10px 24px #00000038}50%{background:#461616f5;border-color:#d24444eb;box-shadow:inset 0 0 0 1px #ff7a7a29,0 0 0 1px #d244444d,0 12px 28px #00000047,0 0 16px #d2444442}}.hub-rail-tab.hub-rail-tab-alert,.hub-rail-tab.hub-rail-tab-alert.active{animation:2.6s ease-in-out infinite hubRailDirectAlertPulse}.hub-rail-tab-icon-wrap{place-items:center;width:100%;display:grid}.hub-rail-tab-icon{width:20px;height:20px;display:block}.hub-rail-tab-calendar{padding:8px 7px}.workspace-overlay{z-index:50;box-shadow:none;background:0 0;border:0;border-radius:0;grid-template-rows:auto 1fr;gap:14px;padding:0;display:grid;position:absolute;inset:0;overflow:hidden}.workspace-overlay-header{background:#0a10182e;border-bottom:1px solid #bed0e41a;justify-content:space-between;align-items:center;gap:12px;min-height:0;padding:16px 18px 14px;display:flex}.workspace-overlay-header h3{margin:0;font-size:1.15rem}.workspace-placeholder{border:1px solid var(--shell-panel-border);color:#dde3ea;background:#0a101847;border-radius:18px;padding:18px;line-height:1.5}.workspace-placeholder p{margin:0 0 10px}.workspace-placeholder p:last-child{margin-bottom:0}.chat-header{background:#0a10182e;border-bottom:1px solid #bed0e41a;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px;display:flex;position:relative}.chat-header h2{margin:0 0 6px;font-size:1.15rem}.chat-header-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.chat-settings-panel,.online-users-panel{z-index:20;background:#171c22;border:1px solid #2b3640;border-radius:12px;gap:10px;padding:12px;display:grid;position:absolute;top:calc(100% + 8px);box-shadow:0 14px 40px #00000059}.chat-settings-panel{width:340px;max-height:520px;right:20px;overflow-y:auto}.online-users-panel{width:280px;right:20px}.chat-settings-title,.online-users-title{font-weight:700}.chat-settings-section{gap:10px;display:grid}.chat-settings-section label,.user-admin-field label{color:#9ca7b2;font-size:.8rem}.chat-settings-inline{gap:10px;display:flex}.chat-settings-inline input{flex:auto}.chat-member-list,.chat-add-user-list,.online-users-list{gap:8px;max-height:220px;display:grid;overflow:auto}.chat-member-row{background:#0a101870;border:1px solid #2f3944;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;display:flex}.chat-member-identity{align-items:center;gap:8px;min-width:0;display:flex}.chat-member-name{font-size:.92rem}.chat-member-remove,.chat-delete-btn{color:#fff;cursor:pointer;background:#7a1e1e;border:none;border-radius:8px;padding:6px 8px;font-size:.78rem}.danger-zone{padding-top:4px}.online-user-row{grid-template-columns:24px 1fr;align-items:center;gap:8px;display:grid}.online-user-check{justify-content:center;align-items:center;display:flex}.online-user-direct{text-align:left;background:#0a101870;border:1px solid #2f3944;border-radius:8px;padding:8px 10px}.online-user-identity{align-items:center;gap:10px;display:flex}.online-users-actions{justify-content:flex-end;display:flex}.messages-area{background:#080c128a;align-content:start;place-items:start stretch;gap:12px;padding:20px;display:grid;overflow:auto}.message-card{background:#0a101880;border:1px solid #2c3640;border-radius:14px;align-self:start;width:fit-content;min-width:280px;max-width:min(740px,100%);height:auto;padding:12px 14px;position:relative}.message-card.own{background:#1624368f;border-color:#365781;justify-self:end}.message-header{color:#b8c2cc;justify-content:space-between;gap:12px;margin-bottom:8px;padding-right:24px;font-size:.85rem;display:flex}.message-sender-block{align-items:center;gap:8px;min-width:0;display:flex}.message-body{white-space:pre-wrap;line-height:1.45}.message-edited-label{color:#8ea0b2;margin-top:6px;font-size:.78rem;font-style:italic}.message-meta-actions{justify-content:flex-end;margin-top:8px;display:flex}.message-edit-link{color:#5fd38d;cursor:pointer;opacity:.3;background:0 0;border:none;padding:0;font-size:.82rem}.message-edit-link:hover{opacity:1;color:#7de0a2;text-decoration:underline}.message-edit-block{gap:10px;display:grid}.message-edit-textarea{resize:vertical;width:100%;min-height:88px}.message-edit-actions{justify-content:flex-end;gap:10px;display:flex}.message-edit-save-btn{color:#ebfff3!important;background:#1f5d38!important}.message-edit-cancel-btn{color:#dde3ea!important;background:#2a3139!important}.attachment-list{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.attachment-pill{color:#dce8f7;cursor:pointer;background:#111820;border:1px solid #3b4d60;border-radius:999px;padding:7px 10px}.message-delete-btn{color:#fff;text-align:center;cursor:pointer;opacity:.65;background:#7a1e1e;border:none;border-radius:50%;width:18px;height:18px;padding:0;font-size:12px;line-height:18px;position:absolute;top:8px;right:8px}.message-delete-btn:hover:not(:disabled){opacity:1;background:#c33232}.message-delete-btn:disabled,.chat-delete-btn:disabled{cursor:default;opacity:.9;background:#5a2a2a}.composer{background:#0a10184d;border-top:1px solid #25303a;gap:10px;padding:14px 16px;display:grid;position:relative}.composer-drag-over{background:#17202a;border-top-color:#4d8dff;box-shadow:inset 0 0 0 1px #4d8dff66}.composer-drop-overlay{pointer-events:none;z-index:2;background:#0e141ce6;border:2px dashed #4d8dff;border-radius:12px;place-items:center;display:grid;position:absolute;inset:10px}.composer-drop-overlay-text{color:#dce8f7;font-size:1rem;font-weight:600}.composer textarea{resize:vertical;width:100%;min-height:82px}.composer-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.file-upload input{display:none}.file-upload.is-disabled{opacity:.7;cursor:default}.user-pick-list{background:#0a101870;border:1px solid #2f3944;border-radius:10px;gap:8px;max-height:180px;padding:6px;display:grid;overflow:auto}.user-pick-row{align-items:center;gap:8px;font-size:.95rem;display:flex}.user-admin-panel{background:#0a101870;border:1px solid #2f3944;border-radius:10px;gap:10px;max-height:400px;padding:10px;display:grid;overflow-y:auto}.user-admin-row{background:#0a10184d;border:1px solid #2a333d;border-radius:8px;gap:8px;padding:10px;display:grid}.user-admin-summary-btn{width:100%;color:inherit;text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;gap:12px;padding:0;display:flex}.user-admin-summary-chevron{color:#9ca7b2;flex:none;font-size:1.15rem;line-height:1}.user-admin-details{gap:10px;display:grid}.user-admin-avatar-row{align-items:center;gap:10px;display:flex}.user-admin-name-row{gap:2px;display:grid}.user-admin-name{font-weight:600;line-height:1.2}.user-admin-sub{color:#9ca7b2;font-size:.82rem}.user-admin-field{gap:4px;display:grid}.user-admin-active{color:#edf2f8;align-items:center;gap:8px;font-size:.88rem;display:flex}.user-admin-active input{margin:0}@media (width<=900px){.app-shell,.app-shell-has-right-panel,.app-shell-no-right-panel{grid-template-columns:1fr;padding:10px}.video-panel,.sidebar,.hub-rail{display:none}.online-users-panel,.chat-settings-panel{width:auto;left:12px;right:12px}.message-card{width:100%;min-width:0}}*{scrollbar-width:thin;scrollbar-color:#4d8dff #111418}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#111418}::-webkit-scrollbar-thumb{background:#4d8dff;border:2px solid #111418;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#6aa4ff}.attachment-image-button{cursor:pointer;text-align:left;background:#0a101870;border:1px solid #2f3944;border-radius:12px;width:min(280px,100%);max-width:100%;padding:0;display:block;overflow:hidden}.attachment-image-button.is-loading{place-items:center;min-height:140px;display:grid}.attachment-image-preview{object-fit:cover;background:#0a101870;width:100%;height:auto;max-height:280px;display:block}.attachment-image-placeholder{color:#9ca7b2;padding:18px 16px;font-size:.9rem;display:block}.message-card{position:relative}.message-sender-block{align-items:center;gap:10px;display:flex}.message-sender-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.message-reaction-summary{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;display:inline-flex}.message-reaction-chip{color:#ffffffeb;cursor:pointer;background:0 0;border:0;border-radius:999px;align-items:center;gap:4px;padding:0;font-size:12px;font-weight:700;display:inline-flex}.message-reaction-chip.is-own{background:0 0}.message-reaction-chip img{object-fit:contain;width:28px;height:28px;display:block}.reaction-picker{z-index:5000;background:#121820fa;border:1px solid #2f3944;border-radius:999px;align-items:center;gap:8px;padding:10px 12px;display:inline-flex;position:fixed;box-shadow:0 14px 32px #0000006b}.reaction-picker-option{appearance:none;cursor:pointer;width:44px;height:44px;box-shadow:none;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.reaction-picker-option:hover,.reaction-picker-option.is-own{background:#4d8dff29}.reaction-picker-option img{object-fit:contain;pointer-events:none;width:30px;height:30px;display:block}.message-reaction-summary-inline{justify-content:flex-end;gap:10px;width:100%;margin-top:6px}.message-reaction-summary-inline .message-reaction-chip img{width:28px;height:28px}.message-reaction-chip[data-reaction=haha] img{width:42px;height:42px}.reaction-picker-option[data-reaction=haha] img{width:38px;height:38px}.composer-toolbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px;display:grid}.composer-cluster{align-items:center;gap:6px;min-width:0;display:flex}.composer-cluster-dice{flex-wrap:wrap}.composer-cluster-roll{flex:280px;min-width:0}.dice-modal-header-actions{align-items:center;gap:10px;display:flex}.composer-cluster-chat{white-space:nowrap;flex:none;justify-self:end;margin-left:0}.dice-control-panel{border:2px solid #4d8dffb3;border-radius:14px;justify-self:start;align-items:center;gap:12px;width:max-content;min-width:0;max-width:100%;padding:10px 12px;display:inline-flex}.dice-quick-btn,.dice-utility-btn,.dice-theme-option,.dice-modal-close,.dice-visibility-toggle{cursor:pointer;border:0;border-radius:10px;padding:7px 9px}.dice-quick-btn{color:#edf2f8;background:#1d2530;min-width:42px;font-size:.88rem}.dice-quick-btn:hover:not(:disabled),.dice-utility-btn:hover:not(:disabled){background:#2a3644}.dice-utility-btn{padding:7px 8px;font-size:.82rem}.dice-formula-input{color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:10px;flex:120px;min-width:110px;max-width:180px;padding:7px 9px}.dice-visibility-toggle{color:#fff;min-width:66px;font-size:.82rem}.dice-visibility-toggle.public{background:#236648}.dice-visibility-toggle.private{background:#6a4b20}.dddice-overlay{z-index:5000;pointer-events:none;opacity:0;transition:opacity .18s;position:fixed;inset:0}.dddice-overlay.is-visible{opacity:1}.dddice-overlay:before{content:"";background:0 0;position:absolute;inset:0}.dddice-overlay-iframe{background:0 0;border:0;width:100%;height:100%;display:block;position:absolute;inset:0}.dddice-overlay-canvas{transform-origin:50%;background:0 0;width:100vh;height:100vw;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}.dddice-overlay-canvas-hidden{opacity:0;pointer-events:none;z-index:-1;width:1px;height:1px;position:fixed;inset:0}.dddice-overlay-caption{letter-spacing:.02em;text-shadow:0 2px 8px #000000e6;pointer-events:none;white-space:nowrap;z-index:2;background:#080c12a3;border:1px solid #e8eaed38;border-radius:999px;padding:8px 18px 9px;font-size:clamp(1rem,2vw,1.45rem);font-weight:800;position:absolute;bottom:72px;left:50%;transform:translate(-50%);box-shadow:0 10px 28px #00000057;text-align:center}.dddice-overlay-caption-name{line-height:1.05}.dddice-overlay-caption-line{color:#fff;font-size:clamp(.82rem,1.16vw,1rem);font-weight:700;line-height:1.15;margin-top:4px}.dice-visibility-locked{cursor:default;opacity:.86}.dddice-overlay-status{color:#eaf2ff;background:#0c1118d1;border:1px solid #4d8dff8c;border-radius:999px;padding:8px 14px;font-size:.9rem;position:absolute;top:26px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #00000047}.dddice-overlay-status-error{border-color:#c23c3ca6}.dice-modal-backdrop{z-index:120;background:#00000080;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dice-modal{background:#171c22;border:1px solid #2b3640;border-radius:16px;width:min(720px,100vw - 40px);max-height:min(80vh,720px);padding:16px;overflow:auto;box-shadow:0 18px 44px #0000006b}.dice-settings-modal{width:min(560px,100vw - 40px)}.dice-modal-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.dice-modal-header h3{margin:0}.dice-history-list,.dice-settings-section{gap:10px;display:grid}.dice-history-row{background:#0a101870;border:1px solid #2f3944;border-radius:10px;padding:10px 12px}.dice-history-top{justify-content:space-between;gap:12px;font-size:.92rem;display:flex}.dice-history-top-right{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:inline-flex}.dice-history-visibility-badge{letter-spacing:.02em;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-width:58px;padding:3px 8px;font-size:.74rem;font-weight:700;display:inline-flex}.dice-history-visibility-badge.public{color:#87ddb3;background:#23664838;border-color:#5fd38d59}.dice-history-visibility-badge.private{color:#f0c27b;background:#6a4b2038;border-color:#e0ad6059}.dice-history-row.is-public{box-shadow:inset 0 0 0 1px #5fd38d14}.dice-history-row.is-private{box-shadow:inset 0 0 0 1px #e0ad6014}.dice-history-meta,.dice-status-inline{color:#9ca7b2;font-size:.86rem}.dice-settings-note{color:#9ca7b2;text-align:center;font-size:.86rem}.dice-settings-label{color:#9ca7b2;font-size:.82rem}.dice-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.dice-theme-option{color:#edf2f8;background:#1d2530;border:1px solid #2f3944}.dice-theme-option.active{background:#822626;border-color:#e18f8f}@media (width<=1200px){.composer-toolbar{grid-template-columns:1fr;align-items:start}.dice-control-panel{flex-wrap:wrap;gap:10px;width:100%;max-width:100%}.composer-cluster-chat{justify-content:flex-end;place-self:start stretch;gap:8px;width:100%;max-width:100%}.composer-cluster-chat .file-upload,.composer-cluster-chat>button{min-height:40px}}@media (width<=900px){.composer-toolbar{grid-template-columns:1fr}.dice-control-panel,.composer-cluster,.composer-cluster-roll,.composer-cluster-chat{width:100%;max-width:100%}.composer-cluster-chat{flex-wrap:wrap;justify-content:stretch;justify-self:stretch}.composer-cluster-chat .file-upload,.composer-cluster-chat>button{flex:calc(50% - 4px);justify-content:center}.dice-theme-grid{grid-template-columns:1fr}}.workspace-overlay-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.workspace-overlay-header-ev{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-height:0;display:grid}.workspace-overlay-title-wrap{flex:auto;min-width:0}.workspace-overlay-dice-slot{justify-content:center;min-width:0;display:flex}.workspace-overlay-dice-panel{width:auto;max-width:100%;padding:8px 10px}.workspace-overlay-dice-panel .composer-cluster-dice{flex-wrap:nowrap}.workspace-overlay-dice-panel .dice-formula-input{max-width:160px}.workspace-overlay-actions-ev{flex:none;margin-left:auto}.workspace-overlay-actions-ev .secondary{padding:8px 12px}.workspace-overlay-ev,.workspace-overlay-maps{gap:10px;padding:10px 12px 12px}.workspace-overlay-header-maps{justify-content:space-between;align-items:center;gap:14px;min-height:0;display:flex}.workspace-overlay-actions-maps{flex:none;margin-left:auto}.workspace-maps-layout{grid-template-columns:minmax(0,1fr) 260px;gap:12px;height:100%;min-height:0;display:grid}.workspace-maps-frame-shell{min-width:0}.workspace-maps-iframe{min-height:72vh}.workspace-maps-sidebar{border:1px solid var(--shell-panel-border);background:#0a10183d;border-radius:18px;grid-template-rows:auto 1fr;gap:12px;min-height:0;padding:14px 12px;display:grid;overflow:hidden}.workspace-maps-sidebar-title{color:#dce8f7;font-size:.88rem;font-weight:700}.workspace-maps-list{align-content:start;gap:8px;min-height:0;display:grid;overflow:auto}.workspace-maps-list-item{text-align:left;color:#dde3ea;cursor:pointer;background:#121d2a75;border:1px solid #2f3944;border-radius:10px;width:100%;padding:10px 12px}.workspace-maps-list-item:hover{background:#24303d}.workspace-maps-list-item.active{background:#1624368f;border-color:#4d8dff;box-shadow:inset 0 0 0 1px #4d8dff2e}.workspace-placeholder-inline{height:100%}.workspace-frame-shell{border:1px solid var(--shell-panel-border);background:#0a101833;border-radius:20px;height:100%;min-height:0;overflow:hidden}.workspace-iframe{background:#fff;border:0;width:100%;height:100%;min-height:70vh;display:block}@media (width<=900px){.workspace-overlay{left:0}.workspace-overlay-actions{justify-content:flex-start;width:100%}.workspace-overlay-header-ev{grid-template-columns:1fr;align-items:start}.workspace-overlay-dice-slot{justify-content:flex-start}.workspace-overlay-dice-panel{width:100%}.workspace-overlay-dice-panel .composer-cluster-dice{flex-wrap:wrap}.workspace-overlay-header-maps{flex-direction:column;align-items:start}.workspace-overlay-actions-maps{margin-left:0}.workspace-maps-layout{grid-template-columns:1fr}.workspace-maps-sidebar{order:-1;max-height:220px}}.workspace-inline-note{margin-top:4px}.workspace-maps-empty{color:#9ca7b2;padding:4px 2px;font-size:.9rem}.workspace-maps-manager{border-top:1px solid #2f3944;gap:12px;min-height:0;margin-top:12px;padding-top:12px;display:grid}.workspace-maps-manager-title{color:#dce8f7;font-size:.88rem;font-weight:700}.workspace-maps-manager-form{gap:8px;display:grid}.workspace-maps-manager-form label{margin:0}.workspace-maps-manager-form input{color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:10px;padding:10px 12px}.workspace-maps-checkbox{color:#dde3ea;white-space:nowrap;flex-wrap:nowrap;justify-content:flex-start;align-self:flex-start;align-items:center;gap:8px;width:auto;max-width:100%;display:inline-flex}.workspace-maps-checkbox input{flex:none;width:auto;margin:0}.workspace-maps-manager-actions{flex-wrap:wrap;gap:8px;display:flex}.workspace-maps-manager-list{gap:8px;min-height:0;max-height:280px;display:grid;overflow:auto}.workspace-maps-manager-item{background:#171f29;border:1px solid #2f3944;border-radius:10px;gap:8px;padding:10px;display:grid}.workspace-maps-manager-item-top{grid-template-columns:1fr;align-items:start;gap:8px;display:grid}.workspace-maps-manager-item-title{color:#edf3fa;word-break:break-word;font-weight:700;line-height:1.2}.workspace-maps-manager-item-meta,.workspace-maps-manager-item-url{color:#9ca7b2;word-break:break-word;overflow-wrap:anywhere;font-size:.82rem}.workspace-maps-manager-item-controls{flex-wrap:wrap;justify-content:flex-start;gap:6px;width:100%;display:flex}.workspace-maps-manager-item-controls .secondary{padding:6px 8px}.workspace-maps-delete{color:#fff!important;background:#5a2222!important}@media (width<=900px){.workspace-maps-manager-list{max-height:none}}.workspace-maps-list-item.is-hidden-for-players{color:#8f99a4;background:#171b21;border-color:#2a313a}.workspace-maps-list-item.is-hidden-for-players:hover{background:#1d232b}.workspace-maps-list-item.is-hidden-for-players.active{color:#b0b8c2;background:#20262e;border-color:#5a6470;box-shadow:inset 0 0 0 1px #8f99a424}.workspace-list-item-title{font-weight:600;line-height:1.2;display:block}.workspace-list-item-meta{color:#8f99a4;margin-top:3px;font-size:.72rem;line-height:1.15;display:block}.workspace-notes-editor{padding:12px 14px}@media (hover:none) and (pointer:coarse){.app-shell,.sidebar{height:100svh}}.workspace-overlay-notes{overflow:hidden}.workspace-overlay-notes .workspace-maps-layout,.workspace-overlay-notes .workspace-notes-frame-shell{height:100%;min-height:0;overflow:hidden}.workspace-overlay-notes .workspace-notes-editor-shell{flex-direction:column;height:100%;min-height:0;display:flex}.workspace-overlay-notes .workspace-notes-editor-header,.workspace-overlay-notes .workspace-notes-toolbar{flex:none}.workspace-overlay-notes .workspace-notes-editor{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.workspace-overlay-notes .workspace-maps-sidebar{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;height:100%;min-height:0;overflow:auto}.workspace-overlay-notes .workspace-maps-list,.workspace-overlay-notes .workspace-maps-manager-list{max-height:none;overflow:visible}.workspace-loot-qty-col{width:120px}.workspace-loot-qty-input{text-align:right;width:100%;min-width:108px}.workspace-loot-capacity-subtitle{color:#e6edf5;margin:10px 0 6px;font-size:.82rem;font-weight:700}.workspace-loot-mini-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:.72rem}.workspace-loot-mini-table th,.workspace-loot-mini-table td{vertical-align:top;word-break:break-word;overflow-wrap:anywhere;border-bottom:1px solid #ffffff17;padding:4px 6px}.workspace-loot-mini-table th{color:#cfd6df;font-weight:700}.workspace-loot-mini-table td{color:#b9c4cf}.workspace-loot-mini-table tr:last-child td{border-bottom:none}.workspace-overlay-loot{overflow:hidden}.workspace-overlay-loot .workspace-maps-layout{height:100%;min-height:0;overflow:hidden}.workspace-overlay-loot .workspace-loot-shell{-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;overscroll-behavior-x:none;touch-action:pan-y;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden auto}.workspace-overlay-loot .workspace-maps-sidebar{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;min-width:0;height:100%;min-height:0;overflow:hidden auto}.workspace-overlay-loot .workspace-loot-capacity-table{table-layout:fixed;width:100%}.workspace-overlay-loot .workspace-loot-capacity-lbs-head,.workspace-overlay-loot .workspace-loot-capacity-lbs-cell{white-space:nowrap;word-break:normal;overflow-wrap:normal;width:7.25ch}.workspace-overlay-loot .workspace-loot-capacity-count-head,.workspace-overlay-loot .workspace-loot-capacity-count-cell{white-space:nowrap;word-break:normal;overflow-wrap:normal;text-align:center;width:4.5ch}.workspace-overlay-loot .workspace-loot-count-input{text-align:right;width:4.25ch;min-width:4.25ch;max-width:4.25ch;padding:4px 3px}.workspace-overlay-loot .workspace-maps-delete{text-align:center;opacity:.75;border:none;border-radius:50%;justify-content:center;align-items:center;width:18px;min-width:18px;height:18px;min-height:18px;font-size:12px;line-height:18px;display:inline-flex;color:#dde3ea!important;background:#2a3139!important;padding:0!important}.workspace-overlay-loot .workspace-maps-delete:hover:not(:disabled){opacity:1;color:#fff!important;background:#3a4552!important}.workspace-overlay-loot .workspace-maps-delete:disabled{opacity:.6;color:#8f99a4!important;background:#2a3139!important}.workspace-overlay-loot .workspace-loot-row-actions{justify-content:flex-end;align-items:center;gap:6px;display:flex}.workspace-overlay-loot .workspace-loot-move{text-align:center;opacity:.75;border:none;border-radius:50%;justify-content:center;align-items:center;width:18px;min-width:18px;height:18px;min-height:18px;font-size:11px;line-height:18px;display:inline-flex;color:#dde3ea!important;background:#2a3139!important;padding:0!important}.workspace-overlay-loot .workspace-loot-move:hover:not(:disabled){opacity:1;color:#fff!important;background:#3a4552!important}.workspace-overlay-loot .workspace-loot-move:disabled{opacity:.6;color:#8f99a4!important;background:#2a3139!important}.workspace-overlay-loot .workspace-loot-table{border-collapse:separate;border-spacing:0 2px;table-layout:fixed;width:100%}.workspace-overlay-loot .workspace-loot-table th,.workspace-overlay-loot .workspace-loot-table td{background:0 0}.workspace-overlay-loot .workspace-loot-table thead th{color:#aab6c3}.workspace-overlay-loot .workspace-loot-table,.workspace-overlay-loot .workspace-loot-table tbody,.workspace-overlay-loot .workspace-loot-table tr,.workspace-overlay-loot .workspace-loot-table td{touch-action:pan-y}.workspace-overlay-loot .workspace-loot-table input,.workspace-overlay-loot .workspace-loot-table textarea{color:#edf3fa;background:#111821;border:1px solid #2b3a49;border-radius:12px;width:100%;padding:10px 12px}.workspace-overlay-loot .workspace-loot-table textarea{resize:vertical;min-height:44px}\.workspace-overlay-loot \.workspace-loot-divider-row td{background:0 0!important}\.workspace-overlay-loot \.workspace-loot-divider-cell{padding:2px 0 4px;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important}\.workspace-overlay-loot \.workspace-loot-divider-input,\.workspace-overlay-loot \.workspace-loot-divider-label{text-align:left;width:100%;margin:0;padding:0;font-size:.92rem;font-weight:600;line-height:1.25;display:block;color:#8f99a4!important;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;outline:none!important}\.workspace-overlay-loot \.workspace-loot-divider-input{appearance:none}\.workspace-overlay-loot \.workspace-loot-divider-input::placeholder{color:#7b8794}.workspace-overlay-loot .workspace-loot-empty{color:#edf3fa;background:#111821;border:1px solid #2b3a49;border-radius:12px;padding:10px 12px}.workspace-loot-capacity-reference{margin-top:12px}.workspace-loot-capacity-rule{background:#8f99a459;width:100%;height:1px;margin:8px 0}.workspace-loot-capacity-note{color:#8f99a4}.workspace-overlay-loot .workspace-loot-divider-row td{background:0 0!important}.workspace-overlay-loot .workspace-loot-divider-cell{padding:2px 0 8px;box-shadow:none!important;background:0 0!important;border:none!important;border-bottom:1px solid #8f99a459!important;border-radius:0!important}.workspace-overlay-loot .workspace-loot-divider-input,.workspace-overlay-loot .workspace-loot-divider-label{text-align:left;width:100%;margin:0;padding:0;font-size:.92rem;font-weight:600;line-height:1.25;display:block;color:#8f99a4!important;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;outline:none!important}.workspace-overlay-loot .workspace-loot-divider-input{appearance:none}.workspace-overlay-loot .workspace-loot-divider-input::placeholder{color:#7b8794}.workspace-overlay-loot .workspace-loot-capacity-reference{margin-top:12px}.workspace-overlay-loot .workspace-loot-capacity-rule{background:#8f99a459;width:100%;height:1px;margin:8px 0}.workspace-overlay-loot .workspace-loot-capacity-note{color:#8f99a4}.workspace-list-divider{pointer-events:none;width:100%;margin:0;padding:2px 0 8px;display:block;box-shadow:none!important;background:0 0!important;border:none!important;border-bottom:1px solid #8f99a459!important;border-radius:0!important}.workspace-list-divider span{text-align:left;width:100%;margin:0;padding:0;font-size:.92rem;font-weight:600;line-height:1.25;display:block;color:#8f99a4!important;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;outline:none!important}.video-panel-surface-live{height:100%;min-height:0}.video-panel-surface-live:after{content:none;display:none}.video-panel-surface-live>.video-panel-slot,.video-panel-surface-live>.video-panel-controls-bar{min-height:0}.video-panel-slot{padding:0;position:relative;overflow:hidden}.video-panel-slot-empty{cursor:default}.video-panel-slot-live{cursor:pointer}.video-panel-slot:disabled{cursor:default}.video-panel-tile-inner{background:#0c121a2e;border-radius:20px;position:absolute;inset:0;overflow:hidden}.video-panel-tile-video,.video-panel-tile-avatar{object-fit:cover;object-position:center 34%;background:#0b1118;width:100%;height:100%;display:block;position:absolute;inset:0}.video-panel-tile-video{transform-origin:50% 34%;transform:scale(1.16)}.video-panel-slot-focus .video-panel-tile-video,.video-panel-slot-party .video-panel-tile-video{transform-origin:50% 32%;transform:scale(1.08)}.video-panel-tile-fallback{background:linear-gradient(#0c121a94 0%,#0a1018cc 100%);place-items:center;display:grid;position:absolute;inset:0}.video-panel-tile-initials{color:#eef2f7;background:#0a1018bd;border:1px solid #bed0e438;border-radius:999px;place-items:center;width:54px;height:54px;font-size:.95rem;font-weight:700;display:grid}.video-panel-tile-meta{align-items:center;gap:6px;min-width:0;display:flex;position:absolute;bottom:8px;left:8px;right:8px}.video-panel-tile-name,.video-panel-tile-badge{color:#eef2f7;background:#0a1018c7;border-radius:999px;padding:4px 8px;font-size:.7rem;font-weight:700;line-height:1}.video-panel-tile-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.video-panel-controls-bar{border:1px solid var(--shell-panel-border);box-shadow:var(--shell-panel-shadow);background:#0c121a3d;border-radius:18px;gap:7px;padding:8px;display:grid}.video-panel-controls-header{justify-content:space-between;align-items:baseline;gap:6px;display:flex}.video-panel-controls-title{color:#eef2f7;font-size:.82rem;font-weight:700}.video-panel-controls-status{color:#a2abb5;text-align:right;font-size:.66rem;line-height:1.15}.video-panel-controls-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.video-panel-control{border-radius:12px;min-height:32px;padding:5px 4px;font-size:.72rem;font-weight:700;transition:background .14s,border-color .14s,color .14s,opacity .14s,box-shadow .14s}.video-panel-control-on{color:#eef4ff;background:#709fdc47;border-color:#8fb5e89e;box-shadow:inset 0 0 0 1px #8fb5e829}.video-panel-control-off{opacity:.66;color:#c6d0dc;background:#606b7a24;border-color:#7b869557}.video-panel-control-label{justify-items:center;gap:1px;width:100%;line-height:1.02;display:grid}.video-panel-control-top,.video-panel-control-bottom{white-space:nowrap;display:block}.video-panel-control-top{letter-spacing:.01em;font-size:.64rem}.video-panel-control-bottom{font-size:.7rem}.video-panel-control-join{grid-column:1/-1}.video-panel-slot-overlay{width:100%;height:100%;min-height:0;display:block}.video-overlay-backdrop{z-index:80;pointer-events:auto;position:fixed;inset:14px 104px 14px calc(26px + clamp(168px,14vw,194px))}.video-overlay-shell{border:1px solid var(--shell-panel-border);width:100%;height:100%;box-shadow:var(--shell-panel-shadow);-webkit-backdrop-filter:blur(6px);background:#0a1018bd;border-radius:26px;grid-template-rows:auto 1fr;display:grid;overflow:hidden}.video-overlay-header{border-bottom:1px solid #bed0e41a;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.video-overlay-title{font-size:1rem;font-weight:700}.video-overlay-actions{justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;display:flex}.video-overlay-close{min-width:96px}.video-overlay-kick{min-width:132px;color:#ffe0e0!important;background:#66181885!important;border-color:#b256566b!important}.video-overlay-kick:hover:not(:disabled){background:#7c1c1c9e!important;border-color:#ce68688c!important}.video-overlay-kick:disabled{opacity:.72}.video-overlay-body{min-height:0;padding:16px;display:flex}.video-overlay-stage-single,.video-overlay-share-stage{width:100%;height:100%}.video-overlay-stage-single{display:flex}.video-overlay-stage-single>.video-panel-slot-overlay{flex:auto}.video-overlay-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;height:100%;display:grid}.video-overlay-share-stage{grid-template-rows:auto 1fr;gap:12px;min-height:0;display:grid}.video-overlay-share-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.video-overlay-share-meta{color:#d9e2ec;font-size:.92rem;font-weight:700}.video-overlay-share-controls{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.video-overlay-share-mode,.video-overlay-share-zoom{min-height:36px;border-radius:10px!important;padding:8px 12px!important}.video-overlay-share-mode.active{box-shadow:inset 0 0 0 1px #4d8dff2e;background:#162436f0!important;border-color:#4d8dffd1!important}.video-overlay-share-zoom:disabled{opacity:.42;cursor:default}.video-overlay-share-zoom-readout{text-align:center;color:#edf3fa;min-width:56px;font-size:.92rem;font-weight:700}.video-overlay-share-fit-wrap,.video-overlay-share-scroll-wrap,.video-overlay-share-empty{background:#0b1118;border-radius:18px;width:100%;height:100%;min-height:0}.video-overlay-share-fit-wrap{justify-content:center;align-items:center;display:flex;overflow:hidden}.video-overlay-share-scroll-wrap{min-height:0;overflow:hidden}.video-overlay-share-scroll-viewport{overscroll-behavior:contain;width:100%;height:100%;min-height:0;padding:16px;overflow:auto}.video-overlay-share-scroll-canvas{min-width:max-content;min-height:max-content;position:relative}.video-overlay-share-video{background:#0b1118;border-radius:18px;display:block}.video-overlay-share-video-fit{object-fit:contain;width:100%;height:100%}.video-overlay-share-video-scroll{object-fit:fill;width:100%;height:100%}.video-overlay-share-empty{color:#b7c1cb;place-items:center;display:grid}@media (width<=900px){.video-overlay-backdrop{inset:10px}}.notes-sidebar-list{gap:8px}.notes-list-item{align-items:flex-start;gap:10px;display:flex}.notes-item-main{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.notes-item-actions{align-items:flex-start;gap:6px;margin-left:auto;display:flex}.notes-action{color:#cfd8e3;opacity:.45;min-width:18px;padding:2px 4px;font-size:12px;line-height:1;background:0 0!important;border:1px solid #0000!important}.notes-action:hover:not(:disabled){opacity:.85}.notes-action:disabled{opacity:.18;cursor:default}.notes-header-action{padding:6px 10px}.notes-sidebar-list .workspace-maps-delete{color:#cfd8e3!important;background:0 0!important;border-color:#0000!important}.notes-list-divider{justify-content:flex-start}.notes-divider-label{text-align:left}.workspace-notes-reload{opacity:.6;color:#cfd8e3!important;background:0 0!important;border:1px solid #0000!important;min-width:auto!important;padding:2px 6px!important}.workspace-notes-reload:hover:not(:disabled){opacity:.9}.notes-drag-handle{cursor:grab;color:#cfd8e3;opacity:.9;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex}.notes-drag-handle:active{cursor:grabbing}.notes-drag-handle.disabled{cursor:default;opacity:.35}.notes-list-item.drag-over,.notes-list-divider.drag-over{outline-offset:2px;outline:2px solid #4d8dff59}.notes-list-item.dragging,.notes-list-divider.dragging{opacity:.65}.notes-item-meta2{color:#9aa8b5;font-size:11px}.notes-list-divider{justify-content:flex-start;align-items:center;gap:10px;display:flex}.notes-divider-label{text-align:left;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:1;min-width:0;display:-webkit-box;overflow:hidden}.notes-drop-end{text-align:center;color:#9aa8b5;background:#121d2a38;border:1px dashed #2f3944;border-radius:10px;margin-top:8px;padding:10px 12px}.notes-drop-end.over{color:#dbe6ff;background:#16243666;border-color:#4d8dff}.notes-sidebar-footer{margin-top:10px}.notes-divider-row{align-items:center;gap:6px;width:100%;margin:0;padding:6px 6px 8px;display:flex;box-shadow:none!important;background:0 0!important;border:none!important;border-bottom:1px solid #8f99a459!important;border-radius:0!important}.notes-divider-row .notes-divider-label{opacity:.72;text-align:left;-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;flex:auto;min-width:0;margin:0;padding:0;font-size:.92rem;font-weight:600;line-height:1.25;display:-webkit-box;overflow:hidden;color:#cfd8e3!important}.notes-divider-row.drag-over{background:#cfd8e314!important}.notes-list-divider .notes-item-actions{opacity:.14}.notes-list-divider:hover .notes-item-actions{opacity:.38}.notes-list-divider .notes-action{opacity:.32}.notes-list-divider:hover .notes-action{opacity:.7}.notes-touch .notes-list-divider .notes-item-actions,.notes-touch .notes-list-item .notes-item-actions{opacity:.55}.notes-touch .notes-list-divider .notes-action,.notes-touch .notes-list-item .notes-action{opacity:.7}.workspace-overlay-owlbear{gap:10px;padding:10px 12px 12px}.owlbear-layout{grid-template-columns:minmax(0,1fr) 320px;gap:12px;min-height:0;display:grid}.owlbear-card{border:1px solid var(--shell-panel-border);box-shadow:var(--shell-panel-shadow);background:#0a101847;border-radius:20px;min-height:0}.owlbear-card-primary{grid-template-rows:auto auto 1fr;gap:18px;padding:18px;display:grid}.owlbear-card-side{grid-template-rows:auto 1fr auto;gap:12px;min-height:0;padding:18px;display:grid}.owlbear-card-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.owlbear-eyebrow{letter-spacing:.08em;text-transform:uppercase;color:#9ca7b2;font-size:.78rem}.owlbear-title-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;display:flex}.owlbear-status-pill{border:1px solid #bed0e42e;border-radius:999px;justify-content:center;align-items:center;min-height:30px;padding:4px 10px;font-size:.84rem;font-weight:700;display:inline-flex}.owlbear-status-pill.is-active{color:#d9fbe7;background:#1f5d386b;border-color:#5fd38d6b}.owlbear-status-pill.is-inactive{color:#e7edf5;background:#26324275;border-color:#bed0e429}.owlbear-status-text{color:#dce5ef}.owlbear-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.owlbear-detail-item{background:#0c131dc7;border:1px solid #bed0e41a;border-radius:14px;gap:6px;padding:12px 14px;display:grid}.owlbear-detail-label{color:#9ca7b2;text-transform:uppercase;letter-spacing:.04em;font-size:.78rem}.owlbear-detail-value{color:#eef2f7;font-weight:600}.owlbear-actions-block{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.owlbear-primary-btn,.owlbear-action-btn,.owlbear-danger-btn{cursor:pointer;color:#eef2f7;border:0;border-radius:12px;min-height:42px;padding:10px 14px}.owlbear-primary-btn{color:#fff;background:#4d8dffe0}.owlbear-action-btn{background:#1018228f}.owlbear-danger-btn{background:#7a1e1ee0}.owlbear-primary-btn:disabled,.owlbear-action-btn:disabled,.owlbear-danger-btn:disabled{opacity:.55;cursor:default}.owlbear-user-list{gap:8px;min-height:0;display:grid;overflow:auto}.owlbear-user-chip{background:#0c131dc7;border:1px solid #bed0e41a;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.owlbear-user-chip small{color:#9ca7b2}.owlbear-side-note{color:#c9d2dc;border-top:1px solid #bed0e41a;padding-top:12px;font-size:.9rem;line-height:1.45}@media (width<=1100px){.owlbear-layout{grid-template-columns:1fr}}@media (width<=760px){.owlbear-details-grid{grid-template-columns:1fr}}.video-panel-control-party{color:#eef9ef;background:#4c8a5452;border-color:#6fb2769e;box-shadow:inset 0 0 0 1px #6fb27624}.video-panel-control-party:hover:not(:disabled){background:#58986066;border-color:#7fc286bd}.dm-quick-note-backdrop{z-index:7000;background:#0000008a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dm-quick-note-modal{background:#171c22;border:1px solid #2b3640;border-radius:18px;gap:14px;width:min(640px,100vw - 40px);max-height:min(82vh,760px);padding:16px;display:grid;overflow:auto;box-shadow:0 18px 44px #0000006b}.dm-quick-note-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.dm-quick-note-header h3{margin:0}.dm-quick-note-subtitle{color:#9ca7b2;margin-top:4px;font-size:.82rem}.dm-quick-note-folder-row{background:#0a101870;border:1px solid #2f3944;border-radius:12px;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 12px;display:flex}.dm-quick-note-folder-meta{min-width:0}.dm-quick-note-folder-label{color:#9ca7b2;margin-bottom:4px;font-size:.76rem}.dm-quick-note-folder-value{color:#edf3fa;word-break:break-word;overflow-wrap:anywhere;font-size:.92rem}.dm-quick-note-folder-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.dm-quick-note-textarea{resize:vertical;color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:12px;width:100%;min-height:220px;padding:12px 14px}.dm-quick-note-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.dm-quick-note-error{color:#ffb4b4;font-size:.86rem}.dm-quick-note-toast{z-index:6900;color:#eaf2ff;background:#0c1118f5;border:1px solid #5fd38d61;border-radius:12px;max-width:min(420px,100vw - 36px);padding:11px 14px;font-size:.88rem;position:fixed;bottom:18px;right:18px;box-shadow:0 12px 28px #00000052}@media (width<=720px){.dm-quick-note-folder-row,.dm-quick-note-header{flex-direction:column}.dm-quick-note-folder-actions,.dm-quick-note-actions{justify-content:flex-start}}.workspace-overlay-rep{gap:10px;padding:10px 12px 12px}.workspace-overlay-header-rep{justify-content:space-between;align-items:flex-start;gap:14px;min-height:0;display:flex}.workspace-overlay-actions-rep{flex:none;margin-left:auto}.workspace-rep-shell{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.rep-header-status-row{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.rep-inline-error,.rep-overfilled-flag{color:#f1a6a6}.rep-roll-strip{background:#0a10182e;border-bottom:1px solid #bed0e41a;grid-template-columns:auto auto 1fr;align-items:center;gap:12px;padding:12px 14px;display:grid}.rep-roll-strip-title{color:#cfd6df;text-transform:uppercase;letter-spacing:.04em;font-size:.82rem;font-weight:700}.rep-roll-strip-value{color:#edf3fa;min-width:48px;font-size:1.25rem;font-weight:700}.rep-roll-strip-value-even{color:#77d18a}.rep-roll-strip-value-odd{color:#d36b6b}.rep-roll-strip-result{color:#dde3ea;min-width:0}.rep-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.rep-table{border-collapse:collapse;table-layout:fixed;width:100%}.rep-table th,.rep-table td{vertical-align:middle;border-bottom:1px solid #bed0e414;padding:4px 10px}.rep-table th{z-index:2;color:#dce8f7;text-align:left;background:#131c27f5;font-size:.82rem;position:sticky;top:0}.rep-table th:first-child,.rep-table td:first-child{width:92px}.rep-table th:nth-child(2),.rep-table td:nth-child(2){width:74px}.rep-table th:nth-child(5),.rep-table td:nth-child(5){width:148px}.rep-range-cell{color:#cfd6df;font-weight:700}.rep-percent-input,.rep-text-input{color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:10px;width:100%;padding:9px 10px}.rep-percent-input{text-align:right}.rep-actions-cell{white-space:nowrap;flex-wrap:nowrap;align-items:center;gap:4px;display:flex}.rep-action-btn{justify-content:center;align-items:center;width:24px;min-width:24px;height:24px;min-height:24px;font-size:.82rem;line-height:1;display:inline-flex;border-radius:999px!important;padding:0!important}.rep-action-btn-delete{color:#fff!important;background:#6b2323!important}.rep-action-btn:hover:not(:disabled){color:#fff!important;background:#3a4552!important}.rep-action-btn:disabled{opacity:.45}.rep-empty-cell{text-align:center;color:#9ca7b2;padding:18px 12px!important}.rep-table tr.is-highlighted td{background:#4d8dff1f}.rep-reference-note{color:#c8ced6;opacity:.9;margin-top:8px;font-size:.72rem;line-height:1.35}.rep-reference-note div+div{margin-top:2px}@media (width<=900px){.workspace-overlay-header-rep{flex-direction:column;align-items:flex-start}.workspace-overlay-actions-rep{margin-left:0}.rep-roll-strip{grid-template-columns:1fr;align-items:start}.rep-table th:nth-child(4),.rep-table td:nth-child(4){width:220px}}.workspace-overlay-xp{gap:10px;padding:10px 12px 12px}.workspace-xp-shell{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.xp-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.xp-table{table-layout:fixed;width:100%;min-width:740px}.xp-table .xp-col-award{width:108px}.xp-table .xp-col-notes{width:auto}.xp-table .xp-col-total{width:82px}.xp-table .xp-col-date{width:148px}.xp-table .xp-col-actions{width:132px}.xp-table th:first-child,.xp-table td:first-child{max-width:108px;width:108px!important}.xp-table th:nth-child(2),.xp-table td:nth-child(2){min-width:0;width:auto!important}.xp-table th:nth-child(3),.xp-table td:nth-child(3){max-width:82px;width:82px!important}.xp-table th:nth-child(4),.xp-table td:nth-child(4){max-width:148px;width:148px!important}.xp-table th:nth-child(5),.xp-table td:nth-child(5){max-width:132px;width:132px!important}.xp-table th:nth-child(5){text-align:right;padding-right:18px}.xp-total-cell{color:#cfd6df;text-align:right;font-weight:700}.xp-number-input{text-align:right;width:100%;min-width:0;padding-left:6px;padding-right:6px}.xp-text-input{width:100%}.xp-date-picker-wrap{grid-template-columns:94px 30px;justify-content:start;align-items:center;gap:5px;display:grid}.xp-date-input{width:94px;min-width:0;padding-left:6px;padding-right:6px}.xp-native-date-picker{color:#0000;cursor:pointer;background:#1018228f;border:1px solid #bed0e429;border-radius:10px;width:30px;min-width:30px;height:36px;padding:5px}.xp-native-date-picker::-webkit-datetime-edit{display:none}.xp-native-date-picker::-webkit-date-and-time-value{display:none}.xp-native-date-picker::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.85;filter:invert()}.xp-actions-cell{justify-content:flex-end;gap:6px;padding-right:12px!important}.xp-awarded-check{cursor:pointer;background:#1018228f;border:1px solid #bed0e429;border-radius:999px;justify-content:center;align-items:center;width:24px;min-width:24px;height:24px;display:inline-flex}.xp-awarded-check input{width:14px;height:14px;margin:0}.xp-table tr.is-awarded td{opacity:.62}.xp-table tr.is-awarded .xp-total-cell{color:#9ca7b2}@media (width<=900px){.xp-table{min-width:680px}}.workspace-factions-title-wrap{gap:8px;display:grid}.workspace-factions-sync-meta-row{flex-wrap:wrap;align-items:center;gap:10px;min-height:20px;display:flex}.workspace-factions-sync-pill{color:#edf3fa;letter-spacing:.02em;background:#0a101870;border:1px solid #bed0e42e;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:4px 10px;font-size:.76rem;font-weight:700;display:inline-flex}.workspace-factions-sync-pill.is-requested{color:#f0c27b;border-color:#f0c27b80}.workspace-factions-sync-pill.is-running{color:#87ddb3;border-color:#5fd38d73}.workspace-factions-sync-pill.is-complete{color:#cfe9d8;border-color:#5fd38d59}.workspace-factions-sync-pill.is-error{color:#f1a6a6;border-color:#e18f8f73}.workspace-factions-sync-stamp,.workspace-factions-sync-message,.workspace-factions-sync-error{color:#c5ccd4;font-size:.78rem}.workspace-factions-sync-error{color:#f1a6a6}.workspace-factions-header-actions{flex:none;margin-left:auto}.workspace-factions-new-input{color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:10px;min-width:220px;max-width:260px;padding:9px 12px}.workspace-factions-layout{grid-template-columns:minmax(0,1fr) 340px}.workspace-factions-shell{height:100%;min-height:0;overflow:hidden}.workspace-factions-detail{grid-template-rows:auto auto 1fr;gap:12px;height:100%;min-height:0;display:grid}.workspace-factions-detail-header,.workspace-factions-panel{background:#0a10183d;border:1px solid #bed0e41f;border-radius:18px;padding:14px 14px 12px}.workspace-factions-detail-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.workspace-factions-detail-title-wrap{flex:auto;gap:10px;min-width:0;display:grid}.workspace-factions-name-input{color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:12px;width:100%;padding:10px 12px;font-size:1rem;font-weight:700}.workspace-factions-detail-meta{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.workspace-factions-status-pill{border:1px solid #bed0e429;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:4px 10px;font-size:.76rem;font-weight:700;display:inline-flex}.workspace-factions-status-pill.is-active{color:#bfe3c8;background:#26513157}.workspace-factions-status-pill.is-archived{color:#d4d9df;background:#46464657}.workspace-factions-current-label{color:#dce8f7;font-size:.86rem}.workspace-factions-detail-actions{flex-wrap:wrap;flex:none;align-items:center;gap:8px;display:flex}.workspace-factions-delete-btn{color:#fff2f2!important;background:#662222b3!important}.workspace-factions-panel{gap:10px;min-height:0;display:grid}.workspace-factions-panel-title{color:#dce8f7;font-size:.86rem;font-weight:700}.faction-relationship-bar{align-items:stretch;gap:6px;min-width:0;display:flex}.faction-relationship-bar.is-compact{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;display:grid}.faction-relationship-segment{appearance:none;text-align:center;color:#c5ccd4;cursor:pointer;background:#0a101852;border:1px solid #bed0e42e;border-radius:999px;justify-content:center;align-items:center;min-width:0;min-height:38px;padding:0 8px;transition:background .15s,border-color .15s,box-shadow .15s;display:inline-flex}.faction-relationship-bar.is-readonly .faction-relationship-segment{cursor:default}.faction-relationship-segment:hover{background:#111a2480;border-color:#bed0e452}.faction-relationship-bar.is-readonly .faction-relationship-segment:hover{background:#0a101852;border-color:#bed0e42e}.faction-relationship-segment.active{background:var(--faction-relationship-color);border-color:var(--faction-relationship-color);color:var(--faction-relationship-text-color);box-shadow:inset 0 0 0 1px #ffffff14,0 0 12px #0000001f}.faction-relationship-segment-label{white-space:nowrap;text-overflow:ellipsis;width:100%;min-width:0;font-size:.63rem;font-weight:700;line-height:1.05;display:block;overflow:hidden}.faction-relationship-bar.is-compact .faction-relationship-segment{min-height:24px;padding:0 4px}.faction-relationship-bar.is-compact .faction-relationship-segment.active{grid-column:span 2}.faction-relationship-bar.is-compact .faction-relationship-segment-label{font-size:.58rem}.faction-relationship-bar.is-compact:not(.has-compact-active-label) .faction-relationship-segment-label,.faction-relationship-bar.is-compact .faction-relationship-segment:not(.active) .faction-relationship-segment-label{display:none}.workspace-factions-notes{resize:vertical;color:#edf3fa;background:#0a101870;border:1px solid #2f3944;border-radius:12px;width:100%;min-height:180px;padding:12px;line-height:1.45}.workspace-factions-notes-meta{color:#b8c2cc;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:.76rem;display:flex}.workspace-factions-sidebar{padding:14px 12px}.workspace-factions-list{align-content:start;gap:10px;min-height:0;padding-right:2px;display:grid;overflow:auto}.workspace-factions-list-item{text-align:left;color:#edf2f8;cursor:pointer;background:#0c131da3;border:1px solid #bed0e424;border-radius:16px;gap:8px;width:100%;padding:10px 12px;display:grid}.workspace-factions-list-item:hover{background:#101822c7}.workspace-factions-list-item.active{background:#141f2cdb;border-color:#4d8dffb8;box-shadow:inset 0 0 0 1px #4d8dff29,0 0 0 1px #4d8dff2e}.workspace-factions-list-item.is-archived{opacity:.72}.workspace-factions-list-top,.workspace-factions-list-footer{justify-content:space-between;align-items:center;gap:10px;display:flex}.workspace-factions-list-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.95rem;font-weight:700;overflow:hidden}.workspace-factions-note-flag,.workspace-factions-list-footer-archived{color:#cfd6df;border:1px solid #bed0e429;border-radius:999px;flex:none;justify-content:center;align-items:center;min-height:20px;padding:2px 8px;font-size:.68rem;font-weight:700;display:inline-flex}.workspace-factions-list-footer{color:#c5ccd4;font-size:.72rem}.workspace-factions-list-footer-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}@media (width<=1180px){.workspace-factions-layout{grid-template-columns:minmax(0,1fr) 300px}.workspace-factions-header-actions{justify-content:flex-start}}@media (width<=900px){.workspace-overlay-header-factions{flex-direction:column;align-items:flex-start}.workspace-factions-layout{grid-template-columns:1fr}.workspace-factions-new-input{width:100%;min-width:0;max-width:none}.workspace-factions-detail-header{flex-direction:column}.workspace-factions-detail-actions{width:100%}}.dice-theme-option-unavailable{opacity:.48;cursor:not-allowed;filter:grayscale(.25)}.dice-theme-option-unavailable.active{opacity:.72}.dice-theme-owner-note{color:#9ca7b2;margin-top:3px;font-size:.68rem;line-height:1;display:block}.workspace-overlay-loot-note{gap:12px}.workspace-loot-note-header{flex-wrap:wrap}.workspace-loot-note-status{color:#c5d6eb}.workspace-loot-note-shell{border:1px solid var(--shell-panel-border);background:#080c1270;border-radius:18px;grid-template-rows:auto 1fr;gap:0;height:100%;min-height:0;display:grid;overflow:hidden}.workspace-loot-note-toolbar{background:#0a101852;border-bottom:1px solid #bed0e41f;flex-wrap:wrap;gap:7px;padding:10px 12px;display:flex}.workspace-loot-note-toolbar .secondary{min-height:32px;padding:6px 10px}.workspace-loot-note-editor{color:#eef2f7;background:#070b115c;border:0;border-radius:0;outline:none;height:100%;min-height:0;padding:18px 20px 32px;line-height:1.5;overflow:auto}.workspace-loot-note-editor:focus{box-shadow:inset 0 0 0 1px #4d8dff47}.workspace-loot-note-editor p{margin:0 0 12px}.workspace-loot-note-editor h1,.workspace-loot-note-editor h2,.workspace-loot-note-editor h3{color:#f5f8fc;margin:16px 0 10px}.workspace-loot-note-editor ul,.workspace-loot-note-editor ol{margin:0 0 12px 24px;padding:0}.workspace-loot-note-editor table,.workspace-loot-note-editor .loot-note-table{border-collapse:collapse;table-layout:fixed;width:100%;margin:12px 0 16px}.workspace-loot-note-editor td,.workspace-loot-note-editor th{vertical-align:top;border:1px solid #bed0e447;min-width:80px;padding:7px 9px}.workspace-loot-note-editor th{color:#f1f6ff;background:#4d8dff29;font-weight:700}.workspace-loot-note-editor hr{border:0;border-top:1px solid #bed0e43d;margin:18px 0}.workspace-color-toolbar{border-left:1px solid #bed0e429;align-items:center;gap:4px;padding-left:4px;display:inline-flex}.workspace-color-btn{place-items:center;width:28px;min-width:28px;height:28px;display:inline-grid;padding:4px!important}.workspace-color-btn span{border:1px solid #ffffffad;border-radius:999px;width:15px;height:15px;display:block;box-shadow:0 0 0 1px #0000003d}


/* Global Dice Tray V1: side drawer attached near the video rail */
.composer-toolbar > .dice-control-panel-two-row {
  display: none;
}

.composer-toolbar {
  grid-template-columns: 1fr;
}

.global-dice-tray {
  position: fixed;
  left: clamp(166px, 14vw, 195px);
  bottom: 30px;
  z-index: 4200;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.global-dice-tab,
.global-dice-panel {
  pointer-events: auto;
}

.global-dice-tab {
  width: 34px;
  height: 86px;
  border: 1px solid rgba(77, 141, 255, 0.42);
  border-radius: 0 12px 12px 0;
  background: rgba(12, 19, 29, 0.92);
  color: #eaf2ff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 7px 3px;
}

.global-dice-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.global-dice-tab-caret {
  font-size: 1.1rem;
  line-height: 1;
  transform: translateX(1px);
  transition: transform 0.18s ease;
}

.global-dice-tray.is-open .global-dice-tab-caret {
  transform: rotate(180deg) translateX(-1px);
}

.global-dice-panel {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: max-width 0.2s ease, opacity 0.16s ease, transform 0.2s ease;
}

.global-dice-tray.is-open .global-dice-panel {
  max-width: min(460px, calc(100vw - 280px));
  opacity: 1;
  transform: translateX(0);
}

.global-dice-control-panel {
  margin-left: 8px;
  background: rgba(12, 19, 29, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.global-dice-control-panel .dice-formula-input {
  min-width: 140px;
}

@media (max-width: 900px) {
  .global-dice-tray {
    left: 10px;
    bottom: 14px;
  }

  .global-dice-tray.is-open .global-dice-panel {
    max-width: calc(100vw - 54px);
  }
}

/* Global Dice Tray V2 layout stability fix: reveal a fixed two-row panel instead of reflowing while opening. */
.global-dice-panel {
  flex: 0 0 auto;
  width: 0;
  max-width: none;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-8px);
  transition: width 0.2s ease, opacity 0.16s ease, transform 0.2s ease;
}

.global-dice-tray.is-open .global-dice-panel {
  width: min(476px, calc(100vw - 280px));
  max-width: none;
  opacity: 1;
  transform: translateX(0);
}

.global-dice-control-panel.dice-control-panel-two-row {
  box-sizing: border-box;
  display: grid !important;
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 8px;
  width: 452px;
  min-width: 452px;
  max-width: none;
}

.global-dice-control-panel .dice-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.global-dice-control-panel .composer-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.global-dice-control-panel .composer-cluster-roll {
  flex: 1 1 auto;
}

.global-dice-control-panel .dice-formula-input {
  width: 100%;
  max-width: none;
}

@media (max-width: 900px) {
  .global-dice-tray.is-open .global-dice-panel {
    width: calc(100vw - 54px);
  }

  .global-dice-control-panel.dice-control-panel-two-row {
    width: calc(100vw - 70px);
    min-width: calc(100vw - 70px);
  }
}

/* Global Dice V2 DM tab visibility fix: keep the side drawer above DM note surfaces too. */
body .global-dice-tray {
  position: fixed !important;
  z-index: 7600 !important;
}

/* Global Dice V2 DM tab fix 2: the external DM notes script hides all non-DM direct children of app-shell-main. Keep the global dice drawer visible and clickable. */
body.dm-session-open .app-shell-main > .global-dice-tray,
body.dm-session-open .global-dice-tray {
  opacity: 1 !important;
  visibility: visible !important;
  position: fixed !important;
  z-index: 9100 !important;
  pointer-events: none !important;
  user-select: auto !important;
}
body.dm-session-open .global-dice-tray .global-dice-tab,
body.dm-session-open .global-dice-tray .global-dice-panel {
  pointer-events: auto !important;
}

/* DM-only rail tabs: light blue marker for DM controls (Rep, XP, Factions, DM). */
.hub-rail .hub-rail-tab[title="Rep"],
.hub-rail .hub-rail-tab[aria-label="Rep"],
.hub-rail .hub-rail-tab[title="XP"],
.hub-rail .hub-rail-tab[aria-label="XP"],
.hub-rail .hub-rail-tab[title="DM"],
.hub-rail .hub-rail-tab[aria-label="DM"],
.hub-rail .hub-rail-tab-factions,
.hub-rail .hub-rail-tab-dm-only,
.hub-rail .dm-session-rail-tab {
  color: #d8edff !important;
  background: rgba(18, 42, 74, 0.88) !important;
  border-color: rgba(98, 160, 255, 0.86) !important;
  box-shadow: inset 0 0 0 1px rgba(77, 141, 255, 0.20), 0 10px 24px rgba(0,0,0,.34) !important;
}

.hub-rail .hub-rail-tab[title="Rep"]:hover,
.hub-rail .hub-rail-tab[aria-label="Rep"]:hover,
.hub-rail .hub-rail-tab[title="XP"]:hover,
.hub-rail .hub-rail-tab[aria-label="XP"]:hover,
.hub-rail .hub-rail-tab[title="DM"]:hover,
.hub-rail .hub-rail-tab[aria-label="DM"]:hover,
.hub-rail .hub-rail-tab-factions:hover,
.hub-rail .hub-rail-tab-dm-only:hover,
.hub-rail .dm-session-rail-tab:hover {
  background: rgba(24, 58, 98, 0.94) !important;
  border-color: rgba(125, 179, 255, 0.9) !important;
}

.hub-rail .hub-rail-tab[title="Rep"].active,
.hub-rail .hub-rail-tab[aria-label="Rep"].active,
.hub-rail .hub-rail-tab[title="XP"].active,
.hub-rail .hub-rail-tab[aria-label="XP"].active,
.hub-rail .hub-rail-tab[title="DM"].active,
.hub-rail .hub-rail-tab[aria-label="DM"].active,
.hub-rail .hub-rail-tab-factions.active,
.hub-rail .hub-rail-tab-dm-only.active,
.hub-rail .dm-session-rail-tab.active,
body.dm-session-open .hub-rail .dm-session-rail-tab.active {
  color: #f2f9ff !important;
  background: rgba(18, 42, 74, 0.98) !important;
  border-color: rgba(98, 160, 255, 0.96) !important;
  box-shadow: inset 0 0 0 1px rgba(77, 141, 255, 0.30), 0 0 16px rgba(77, 141, 255, 0.30), 0 12px 28px rgba(0,0,0,.38) !important;
}


/* Battle tab rail fit: slightly smaller rail labels so Battle fits cleanly. */
.hub-rail-tab{font-size:.76rem;padding:10px 6px;}

/* Rail compactness pass: keep labels readable when the rail scroll bar is present. */
.hub-rail {
  scrollbar-gutter: stable !important;
}
.hub-rail .hub-rail-tab {
  width: calc(100% - 12px) !important;
  min-height: 42px !important;
  padding: 7px 3px !important;
  border-radius: 14px !important;
  font-size: 0.66rem !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-align: center !important;
}
.hub-rail .hub-rail-tab-icon {
  width: 18px !important;
  height: 18px !important;
}
.hub-rail .hub-rail-tab-calendar {
  padding: 6px 3px !important;
}


/* Battle Board V1.1 placeholder surface */
.workspace-overlay-battle {
  gap: 12px;
}

.workspace-battle-board-surface {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(35, 43, 54, 0.68) 0%, rgba(12, 14, 18, 0.92) 58%, rgba(4, 5, 7, 0.98) 100%),
    rgba(5, 6, 8, 0.96);
  border-color: rgba(115, 135, 160, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 18px 42px rgba(0,0,0,0.34);
}

.workspace-battle-board-surface p {
  max-width: 640px;
}

/* Battle V1.2: maximize native battle board surface. */
.workspace-overlay-battle {
  grid-template-rows: 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
}

.workspace-overlay-battle > .workspace-overlay-header {
  display: none !important;
}

.workspace-overlay-battle .workspace-battle-board-surface {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.workspace-overlay-battle .workspace-battle-board-surface p {
  max-width: min(760px, calc(100% - 48px)) !important;
}


/* Dice result oval lift: keep roll result caption above the global dice tray/panel. */
.dddice-overlay-caption {
  bottom: 150px !important;
}
@media (max-width: 900px) {
  .dddice-overlay-caption {
    bottom: 132px !important;
  }
}
