/* Los paneles se superponen: el lienzo no cambia de tamaño al abrirlos. */
[hidden]{display:none!important}
/* El documento conserva el desplazamiento y la recarga nativos del navegador. */
html{width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:auto}
body{width:100%;min-height:100%;overflow:visible}
#app{width:100%;min-height:100%}
html:has(body.map-fullscreen){overflow:hidden;overscroll-behavior-y:none}
.workspace{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--style-paper)}
.workspace-header{display:flex;align-items:center;gap:24px;padding:10px 24px;min-height:72px;flex-shrink:0;border-bottom:1px solid var(--line);background:var(--style-surface);z-index:5}
.workspace-header .menu-toggle{padding:9px 11px;min-height:40px}
.home-brand{display:flex;align-items:center;gap:9px;border:0;background:none;font-size:21px;letter-spacing:-.8px;font-weight:650;padding:0}
.home-brand img{width:30px;height:30px}
.workspace-context{min-width:0;max-width:440px;text-align:left;border:0;border-left:1px solid var(--line);background:none;padding:0 0 0 24px;line-height:1.5}
.workspace-context small,.workspace-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-context small{font-size:11px;color:var(--muted);font-weight:400}
.workspace-context strong{font-size:14px;font-weight:600}
.workspace-context .icon{width:15px;height:15px;margin-left:6px}
.workspace-account{margin-left:auto;display:flex;align-items:center;gap:16px;flex-shrink:0}
.workspace-header{position:relative}
.workspace-context.quick-menu{flex-shrink:1}
.workspace-context>summary{min-height:40px;padding:0;color:var(--text);font:inherit}
.workspace-context>summary>span{min-width:0;width:100%}
.workspace-context .theme-quick-list{top:calc(100% + 4px);left:16px;z-index:20;max-height:min(460px,calc(100dvh - 150px))}
.theme-quick-list button>span{white-space:normal;overflow-wrap:anywhere;min-width:0}
.theme-quick-list button.change-meeting{border-top:1px solid var(--line);border-radius:0;margin-top:5px;padding-top:14px;justify-content:flex-start}
.theme-quick-list button.change-meeting>.icon:last-child{margin-left:auto}
.topic-checks,.selection-checks{border:1px solid var(--line);border-radius:10px;min-width:0;padding:12px 14px;margin:8px 0;display:grid;gap:10px}
.topic-checks legend,.selection-checks legend{font-size:13px;font-weight:600;padding:0 5px}
.profile-access{display:inline-flex;align-items:center;gap:9px;min-width:0;flex-shrink:0;padding:2px;border:0;border-radius:24px;background:transparent;color:var(--style-ink);font:600 12px/1.2 "Segoe UI",Arial,sans-serif;text-decoration:none}.profile-access:hover .profile-name{text-decoration:underline}.profile-avatar{position:relative;display:inline-flex;flex:0 0 auto}.profile-name{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.organizer-profile-mark{position:absolute;right:-5px;bottom:-4px;display:block;width:20px;height:20px;color:var(--style-amber);filter:drop-shadow(0 0 1px var(--style-surface)) drop-shadow(0 0 1px var(--style-surface))}.organizer-profile-mark .icon{display:block;width:20px;height:20px;stroke-width:2.4}
.workspace-profile{display:flex;gap:9px;align-items:center;padding:2px;border:0;background:transparent;font-size:12px}
.workspace-profile .avatar{width:38px;height:38px}
.request-shortcut{position:relative;border:0;background:var(--style-surface);border-radius:50%;width:38px;height:38px}
.request-count{position:absolute;top:-4px;right:-5px;border:2px solid var(--style-surface);min-width:19px;height:19px;border-radius:20px;background:var(--green);color:var(--style-surface);font-size:10px;display:grid;place-items:center}
.workspace-main{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden}
.home-map{height:100%;display:flex;flex-direction:column;min-width:0;background:var(--style-canvas)}
.home-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;flex-shrink:0}
.home-toolbar-actions{display:flex;gap:14px;align-items:center;min-width:0}
.home-toolbar .segments{padding:4px;background:var(--style-soft);border:0}
.home-toolbar .segment{padding:8px 16px;font-size:12px;min-height:35px}
.home-toolbar .segment.active{background:var(--style-surface);box-shadow:0 1px 5px color-mix(in srgb,var(--style-shadow) 8%,transparent);color:var(--green)}
.home-toolbar .quick-view{font-size:12px}
.selection-shortcut{background:var(--style-soft)!important;border-color:var(--style-line)!important;min-height:40px}
.selection-numbers{border-left:1px solid var(--style-line);padding-left:8px;font-size:11px;white-space:nowrap}
.pending-dot{width:7px;height:7px;border-radius:50%;background:var(--gold)}
.map-notices:empty{display:none}
.map-notices{padding:0 24px;flex-shrink:0;max-height:24%;overflow:auto}
.map-notices .notice{margin-bottom:8px;padding:8px 12px}
.map-update{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:6px 10px;border:1px solid var(--style-line);border-radius:8px;font-size:11px;background:var(--style-amber-soft);color:var(--style-amber);text-align:left}
.map-update .icon{width:15px;height:15px}
.home-map .graph-wrap{position:relative;flex:1;min-height:0;overflow:hidden;background-color:var(--style-canvas);background-image:radial-gradient(color-mix(in srgb,var(--style-line) 44%,transparent) .8px,transparent .8px);background-size:22px 22px}
.home-map .graph-canvas{height:100%;width:100%;min-height:0;aspect-ratio:auto}
.home-map .network-svg{width:100%;height:100%;max-height:none;min-height:0}
.map-floating{position:absolute;bottom:14px;left:24px;right:24px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;pointer-events:none}
.map-primary-controls,.map-zoom-controls{display:flex;align-items:center;gap:7px;pointer-events:auto}
.map-floating .btn,.map-zoom-controls{background:color-mix(in srgb,var(--style-surface) 96%,transparent);box-shadow:0 2px 10px color-mix(in srgb,var(--style-shadow) 7%,transparent)}
.map-floating .btn{min-height:40px}
.map-zoom-controls{border:1px solid var(--line);border-radius:9px;padding:3px;gap:3px}
.map-zoom-controls .icon-button{width:36px;height:36px;min-height:36px;background:none;border:0}
.mobile-selection{display:none!important}
#motion-toggle>span:first-child{font-size:13px;width:14px;display:inline-block;text-align:center}
.home-footer{padding:12px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:46px;flex-shrink:0;border-top:1px solid var(--line);background:var(--style-surface)}
.home-legend{display:flex;gap:18px;font-size:11px;color:var(--style-primary-soft-text);flex-wrap:wrap}
.home-legend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.summary-toggle{font-size:11px;background:none;border:0;display:flex;align-items:center;gap:4px;padding:4px 0;color:var(--green);white-space:nowrap}
.summary-toggle .icon{width:14px;height:14px}
.map-empty{position:absolute;inset:0;display:grid;align-content:center;justify-content:center;background:var(--style-canvas)}
.work-panel{position:absolute;z-index:15;right:16px;top:10px;bottom:12px;width:380px;max-width:calc(100% - 32px);display:flex;flex-direction:column;background:var(--style-surface);border:1px solid var(--style-line);border-radius:14px;box-shadow:0 12px 48px color-mix(in srgb,var(--style-shadow) 15%,transparent);overflow:hidden}
.work-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);flex-shrink:0}
.work-panel-header h2{font-size:17px}
.work-panel-header .icon-button{width:36px;height:36px;min-height:36px}
.work-panel-body{padding:20px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:thin}
.work-panel-body .panel-intro{margin:0 0 5px}
.work-panel-body>.card{margin-top:20px;box-shadow:none}
.work-panel-body .detail-top{padding:15px 12px;gap:12px}
.work-panel-body .detail-top h2{font-size:17px}
.work-panel-body .detail-top .large-avatar{width:55px;height:55px}
.work-panel-body .detail-section{padding:16px}
.work-panel-body .graph-arrangement{padding:0;border:0;background:none;display:grid;gap:12px}
.work-panel-body .graph-arrangement>label{font-size:12px}
.work-panel-body .graph-arrangement select{width:100%;font-size:13px}
.work-panel-body .graph-arrangement p{font-size:12px;line-height:1.7}
.work-panel-body .role-size-control{width:100%;margin:0;min-width:0}
.work-panel-body .dynamic-controls{display:flex;gap:9px;padding:15px 0 0;margin-top:6px;border-top:1px solid var(--line);flex-wrap:wrap}
.work-panel-body .dynamic-controls>span{flex-basis:100%;font-size:11px;margin-bottom:3px}
.panel-settings{display:grid;gap:14px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.panel-settings .check-inline{font-size:12px}
.work-panel .view-labels-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:16px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--style-surface);font-size:13px}
.view-labels-toggle input{width:20px;height:20px;margin:0;accent-color:var(--green);flex-shrink:0}
/* La casilla controla los nombres también en pantallas estrechas. */
.home-map .network-svg .node-name{display:block}
.panel-gesture-note{font-size:11px;line-height:1.6;background:var(--style-surface);border-radius:8px;padding:12px;color:var(--style-muted)}
.panel-actions{display:flex;gap:10px;flex-wrap:wrap}
.panel-actions .btn{flex-grow:1}
.profile-panel-head{display:flex;gap:14px;align-items:center;margin-bottom:6px}
.selection-state{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:8px;background:var(--style-amber-soft);color:var(--style-amber);font-size:12px;margin-bottom:20px}
.selection-state.current{background:var(--style-soft);color:var(--style-primary-soft-text)}
.selection-state .icon{width:17px;height:17px}
.panel-footnote{font-size:11px;color:var(--muted);line-height:1.7;margin-top:20px}
.network-summary{margin:20px 0 26px}
.network-summary>div{display:flex;align-items:baseline;gap:12px;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 0}
.network-summary dt{font-size:12px;color:var(--muted)}
.network-summary dd{margin:0;font-size:18px;font-weight:600;white-space:nowrap}
.section-page{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.section-back{position:sticky;top:0;display:flex;align-items:center;gap:20px;padding:10px 32px;background:color-mix(in srgb,var(--style-paper) 96%,transparent);backdrop-filter:blur(12px);z-index:2;border-bottom:1px solid var(--line)}
.section-back>span{font-size:12px;color:var(--muted)}
.back-arrow{transform:rotate(180deg)}
.page-content{padding:28px 32px 50px;max-width:1450px;margin:auto}
.workspace-shade{position:fixed;inset:0;z-index:30;background:color-mix(in srgb,var(--style-shadow) 25%,transparent);backdrop-filter:blur(2px)}
.workspace-menu{position:absolute;left:0;top:0;bottom:0;width:310px;max-width:90vw;z-index:31;background:var(--style-surface);box-shadow:12px 0 60px color-mix(in srgb,var(--style-shadow) 15%,transparent);padding:20px;display:flex;flex-direction:column;gap:24px;overflow:auto;overscroll-behavior:contain}
.workspace-menu>header{display:flex;justify-content:space-between;align-items:center}
.workspace-menu>header>strong{font-size:23px;letter-spacing:-.8px}
.workspace-menu .nav{display:grid;gap:6px}
.workspace-menu .nav-item{min-height:44px;width:100%}
.workspace-menu-bottom{margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}
.workspace-menu-bottom>p{font-size:11px;color:var(--muted);padding:0 12px 16px}
.workspace .btn{line-height:1.35}
@media(max-width:900px){
 .workspace-header{gap:16px;padding:10px 16px}.home-brand span{display:none}.workspace-context{padding-left:16px}.home-toolbar,.home-footer{padding-left:16px;padding-right:16px}.motion-label{display:none}#motion-toggle{width:40px;padding:0;justify-content:center}.summary-coverage,.legend-edge{display:none!important}
}
@media(max-width:600px){
 .workspace-header{gap:10px;min-height:62px;padding:8px 12px}.workspace-header .menu-toggle{padding:0;width:36px;min-height:40px;justify-content:center}.menu-toggle span,.workspace-profile>.profile-name{display:none}.workspace-context{padding-left:0;border-left:0;flex:1}.workspace-context small{font-size:10px}.workspace-context strong{font-size:12px}.workspace-context .icon{width:12px;height:12px;margin:0}.workspace-profile .avatar{width:34px;height:34px}.workspace-account{gap:10px}.request-shortcut{width:30px;height:30px}.request-shortcut .icon{width:16px;height:16px}
 .home-toolbar{padding:8px 10px;gap:6px}.home-toolbar .quick-view{display:none}.home-toolbar .segments{padding:3px;gap:0}.home-toolbar .segment{padding:8px 10px;font-size:10px;min-height:34px}.home-toolbar-actions{gap:0}.home-toolbar .selection-shortcut{font-size:10px;padding:8px;gap:4px;min-height:40px}.selection-numbers{padding-left:5px;font-size:10px}.map-notices{padding:0 10px}
 .map-floating{left:10px;right:10px;bottom:10px;gap:6px}.map-primary-controls{gap:5px}.map-floating .btn{padding:8px;font-size:11px;min-height:40px;gap:5px}.map-floating .btn .icon{width:17px;height:17px}.map-search>span{display:none}.map-floating .map-search{width:40px;justify-content:center}.map-zoom-controls{padding:2px;gap:0}.map-zoom-controls .icon-button{width:32px;height:36px;min-height:36px;padding:6px}.map-zoom-controls .icon{width:18px;height:18px}
 .home-footer{padding:7px 12px;gap:4px;flex-wrap:wrap;justify-content:center;min-height:53px}.home-legend{gap:14px;font-size:10px;width:100%;justify-content:center}.summary-toggle{font-size:10px}
 .work-panel{top:auto;left:0;right:0;bottom:0;width:100%;max-width:none;max-height:72%;border-radius:18px 18px 0 0;border-width:1px 0 0;box-shadow:0 -10px 40px color-mix(in srgb,var(--style-shadow) 13%,transparent)}.work-panel-header{padding:12px 16px}.work-panel-header h2{font-size:16px}.work-panel-body{padding:16px 20px 24px}.work-panel-body .field input,.work-panel-body .field select{font-size:16px}
 .section-back{padding:8px 12px;gap:12px}.section-back>span{font-size:10px}.page-content{padding:22px 16px 40px}.page-content .page-heading{margin-bottom:22px}.page-content .two-columns,.page-content .three-columns{grid-template-columns:minmax(0,1fr)}.page-content .field input,.page-content .field select,.page-content .field textarea{font-size:16px}.workspace-menu{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:350px){.workspace-account{gap:6px}.workspace-header{gap:7px}.home-toolbar .segment{padding:8px}.home-toolbar .selection-shortcut{padding:8px 6px}.selection-numbers{display:none}.map-floating{left:7px;right:7px}.map-primary-controls{gap:3px}}
@media(max-height:500px){.workspace-header{min-height:50px;padding-top:5px;padding-bottom:5px}.home-toolbar{padding-top:5px;padding-bottom:5px}.home-footer{min-height:30px;padding-top:4px;padding-bottom:4px}.work-panel{top:4px;bottom:4px;left:auto;right:8px;max-height:none;width:360px;max-width:60%;border-radius:12px;border:1px solid var(--line)}}

/* Control compacto opcional: el mapa y la barra mantienen su posición al arrastrar. */
.role-size-isolate{display:none}
.work-panel.size-panel{top:auto;bottom:116px;height:auto;max-height:none;width:380px;max-width:calc(100% - 20px);left:auto;right:10px;border:1px solid var(--style-line);border-radius:12px;box-shadow:0 4px 24px color-mix(in srgb,var(--style-shadow) 14%,transparent)}
.size-panel .work-panel-header{position:absolute;right:8px;top:7px;padding:0;gap:4px;border:0}
.size-panel #work-panel-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.size-panel .work-panel-header .icon-button{width:40px;height:40px;min-height:40px;background:transparent;border:0}
.size-panel .work-panel-body{padding:8px 12px;overflow:visible}
.size-panel .role-size-control{display:block}
.size-panel .role-size-heading{padding-right:84px;min-height:40px;gap:8px;justify-content:space-between}
.size-panel .role-size-heading label{font-size:11px;line-height:1.3}
.size-panel .role-size-heading output{font-size:12px;min-width:40px;white-space:nowrap}
.size-panel .role-range-line{width:100%;min-width:0}
.size-panel .role-range-line input[type="range"]{height:36px;touch-action:none}
@media(max-width:600px),(max-height:500px){.role-size-isolate{display:inline-flex;flex-basis:100%;margin-top:4px}}
@media(max-width:600px){.work-panel.size-panel{left:10px;right:10px;width:auto}}
@media(max-height:500px){.work-panel.size-panel{bottom:100px;left:auto;right:10px;width:360px;max-width:calc(100% - 20px)}}

/* Las capas cambian el énfasis, sin reconstruir ni desplazar el grafo. */
.graph-edge.emphasized{stroke:var(--edge-color);stroke-width:3.5;opacity:1}
.graph-edge.emphasized[data-highlight="incoming"]{stroke-dasharray:7 3}
.graph-edge.emphasized[data-highlight="strength"]{stroke-width:4.5}
.graph-edge-overlay{stroke:var(--style-blue);stroke-width:3.5;stroke-dasharray:7 7;pointer-events:none}
.home-footer{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding-top:8px;padding-bottom:8px}
.home-footer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.map-exploration{display:flex;align-items:center;gap:12px;min-height:22px;min-width:0;font-size:11px;color:var(--style-primary-soft-text)}
.exploration-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exploration-summary strong{font-weight:600;color:var(--style-ink)}
.exploration-chips{display:flex;gap:10px;flex-shrink:0}
.exploration-chips>span{display:flex;gap:4px;align-items:center;white-space:nowrap}
.exploration-chips i{display:inline-block;width:18px;height:5px;border-radius:3px}
.route-sequence{color:var(--style-amber);overflow:auto;white-space:nowrap;scrollbar-width:thin;min-width:0}
.work-panel.size-panel{bottom:calc(var(--map-footer-height,80px) + 62px)}
@media(max-width:600px){
 .home-toolbar .segments{flex:1;display:flex;min-width:0}.home-toolbar .segment{flex:1;padding-left:5px;padding-right:5px;font-size:10px}
 .home-toolbar .selection-shortcut{padding-left:6px;padding-right:6px}.home-toolbar .selection-numbers{display:none}
 .home-footer{gap:3px;padding-top:5px;padding-bottom:5px}.home-footer-row{flex-wrap:wrap;justify-content:center;gap:0}
 .map-exploration{flex-wrap:wrap;gap:3px 9px;font-size:10px;justify-content:center;min-height:32px}
 .exploration-summary{max-width:100%;text-align:center}.route-sequence{width:100%;text-align:center;max-height:18px}
 .exploration-chips{gap:8px}.home-footer .home-legend{font-size:9px;gap:12px}.home-footer .summary-toggle{font-size:9px;padding:2px 0}
}
@media(max-width:350px){.map-floating{left:5px;right:5px}.map-primary-controls{gap:2px}.map-floating .btn{padding-left:5px;padding-right:5px}.map-zoom-controls .icon-button{width:29px}#motion-toggle{width:30px;min-width:30px}}
@media(max-height:500px){.home-footer{gap:1px;padding-top:3px;padding-bottom:3px}.map-exploration{min-height:20px}.home-footer-row{gap:8px}}

/* Shared module navigation, theme colours and face gallery. */
.module-menu{position:relative;flex-shrink:0}.module-menu summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}.module-menu summary::-webkit-details-marker{display:none}.module-menu summary small{display:block;font:10px/1.2 system-ui;letter-spacing:.08em;color:var(--style-primary-soft-text)}.module-menu summary>.icon{width:14px;height:14px}.module-menu-lead{display:inline-flex;align-items:center;gap:6px;padding-right:8px;border-right:1px solid var(--style-line);color:var(--style-muted);font:600 12px/1 system-ui;letter-spacing:0}.module-menu-lead .icon{width:19px;height:19px}.module-title{min-width:0}.module-menu nav{position:absolute;z-index:180;top:calc(100% + 12px);left:0;background:var(--style-surface);border:1px solid var(--style-line);box-shadow:0 12px 35px color-mix(in srgb,var(--style-shadow) 15%,transparent);border-radius:14px;min-width:180px;padding:8px}.module-menu nav a{display:block;padding:12px;text-decoration:none;color:var(--style-primary);border-radius:8px;font:500 15px system-ui}.module-menu nav a:hover,.module-menu nav a[aria-current]{background:var(--style-soft)}
.avatar-picker,.color-picker{border:0;padding:0;margin:12px 0;min-width:0}.avatar-picker legend,.color-picker legend{font-size:13px;margin-bottom:10px;font-weight:600}.avatar-picker>div,.color-picker>div{display:flex;flex-wrap:wrap;gap:7px}.avatar-picker label,.color-picker label{position:relative!important;display:inline-flex!important;cursor:pointer;margin:0!important;padding:3px!important}.avatar-picker input,.color-picker input{position:absolute;opacity:0;width:1px;height:1px}.avatar-picker .avatar{width:42px;height:42px;border:2px solid transparent;border-radius:50%;padding:2px}.color-picker span{display:block;width:28px;height:28px;border-radius:50%;border:3px solid var(--style-surface)}.avatar-picker input:checked+.avatar,.color-picker input:checked+span{outline:2px solid var(--style-primary);outline-offset:2px}.avatar-picker input:focus-visible+.avatar,.color-picker input:focus-visible+span{outline:3px solid var(--style-blue);outline-offset:2px}.meeting-return{display:flex;align-items:center;gap:5px;color:var(--style-primary);font-size:12px;text-decoration:none;border:1px solid var(--style-line);border-radius:20px;padding:8px}.meeting-return .icon{width:17px;height:17px}.meeting-copy{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;padding:14px;margin:10px 0;border:1px solid var(--style-line);border-radius:12px;background:var(--style-surface);color:var(--style-ink)}.meeting-copy span{font-size:12px}.theme-role-ring{fill:none;stroke-width:3;pointer-events:none}.me-tag{background:none;border:0;color:inherit;cursor:pointer}
@media(max-width:600px){.meeting-return{padding:6px;max-width:85px;font-size:10px}.module-menu .module-title{font-size:15px}.module-menu-lead{padding-right:4px;border-right:0}.module-menu-lead>span{display:none}.avatar-picker .avatar{width:38px;height:38px}.workspace-account{gap:4px!important}}

.topic-legend{display:flex;gap:12px;overflow-x:auto;max-width:min(60vw,650px);white-space:nowrap}.topic-legend>span{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}
/* Origen y publicación explícita de selecciones de reunión. */
.selection-label{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;gap:2px}.selection-label small{font-size:10px;font-weight:500;color:var(--style-primary-soft-text)}.selection-source{display:flex;gap:5px;padding:5px;border:1px solid var(--style-line);background:var(--style-soft);border-radius:12px;margin-bottom:18px}.selection-source .btn{flex:1;min-height:44px;padding:8px;font-size:13px;border-color:transparent;background:transparent;white-space:normal}.selection-source .active{background:var(--style-primary)!important;color:var(--style-surface)!important;box-shadow:0 2px 5px color-mix(in srgb,var(--style-shadow) 13%,transparent)}.publish-selection{margin:20px 0;padding:16px 0;border-top:1px solid var(--style-line);border-bottom:1px solid var(--style-line)}.publish-selection p{margin:0 0 10px}.publish-selection button+p{margin:10px 0 0}.publication-status{display:flex;flex-direction:column;gap:7px;background:var(--style-soft);padding:16px;border-radius:12px;margin-bottom:16px}.publication-status small{color:var(--style-primary-soft-text);line-height:1.5}.publication-list p{padding:12px 0;border-bottom:1px solid var(--style-line);line-height:1.6}.published-people{padding:0;list-style:none;display:grid;gap:10px;margin:12px 0 22px}.published-people li{display:flex;align-items:center;gap:10px}.published-people .avatar{flex-shrink:0}
@media(max-width:700px){.home-toolbar .selection-label{font-size:10px}.home-toolbar .selection-label small{font-size:9px}.home-toolbar .selection-shortcut{min-width:83px}.home-toolbar-actions{flex-shrink:0}.selection-source .btn{font-size:12px}}

.theme-availability{padding:14px 0;border-bottom:1px solid var(--style-line)}.theme-availability summary{cursor:pointer;padding:8px 0;font-size:13px}.theme-availability form{margin:12px 0}.help-button{border:1px solid var(--style-muted);background:var(--style-surface);border-radius:50%;width:28px;height:28px;cursor:pointer;color:var(--style-primary)}

/* Selección rápida: Modo red y Vista, con ajustes independientes. */
.home-toolbar{position:relative;z-index:4;flex-wrap:wrap}
.map-mode-control,.map-view-controls{display:flex;align-items:center;gap:8px;min-width:0}
.quick-menu{position:static;flex-shrink:0}
.quick-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:5px;min-height:40px;font-size:12px}
.quick-menu>summary::-webkit-details-marker{display:none}
.quick-menu>summary .icon{width:15px;height:15px;transform:rotate(90deg)}
.quick-menu[open]>summary .icon{transform:rotate(-90deg)}
.quick-menu-list{position:absolute;left:16px;top:calc(100% + 4px);width:min(350px,calc(100vw - 28px));max-height:min(400px,max(100px,calc(100dvh - 180px)));overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--style-surface);box-shadow:0 8px 26px color-mix(in srgb,var(--style-shadow) 20%,transparent)}
.map-view-controls .quick-menu-list{left:auto;right:16px}
.quick-menu-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;background:none;border:0;border-radius:6px;padding:11px 12px;font-size:13px;min-height:42px;color:var(--text)}
.quick-menu-list button[aria-checked="true"]{background:var(--style-soft);font-weight:600}
.quick-menu-list button:hover:not([disabled]),.quick-menu-list button:focus-visible{background:var(--style-soft)}
.quick-menu-list button:disabled{opacity:.45;cursor:not-allowed}
.quick-menu-list button .icon{width:17px;height:17px}
.active-network-mode{font-size:12px;font-weight:600;white-space:nowrap}
.view-settings{border:1px solid var(--line);border-radius:8px;width:40px;height:40px;min-height:40px}
.view-settings .icon{width:19px;height:19px}
@media(max-width:850px){.quick-view-name{display:none}.home-toolbar-actions{gap:8px}.map-view-controls{gap:5px}}
@media(max-width:700px){.home-toolbar{gap:6px}.map-mode-control{gap:5px}.active-network-mode{font-size:11px}.quick-menu>summary{padding:8px;font-size:11px}.home-toolbar-actions{gap:5px}.view-settings{width:35px;height:40px}.quick-menu-list{left:8px}.map-view-controls .quick-menu-list{right:8px}}
@media(max-width:350px){.home-toolbar{column-gap:4px}.quick-menu>summary{padding-left:5px;padding-right:5px}.map-mode-control,.map-view-controls,.home-toolbar-actions{gap:3px}.active-network-mode{font-size:10px}.view-settings{width:31px}}


/* Ambos roles en móvil vertical: marca y perfil arriba; reunión y tema debajo. */
@media(max-width:700px) and (orientation:portrait){
 .workspace-header{display:grid;grid-template-columns:36px minmax(0,1fr) 40px 34px;gap:10px 8px;min-height:0;padding:10px 12px}
 .workspace-header>.menu-toggle{grid-column:1;grid-row:1;width:36px;padding:0;min-height:40px;justify-content:center}
 .workspace-header .menu-toggle span{display:none}
 .workspace-header>.module-menu{grid-column:2;grid-row:1;min-width:0;justify-self:start}
 .workspace-header .home-brand{display:flex;gap:7px;font-size:15px}
 .workspace-header .home-brand>span{display:block;font-size:15px}
 .workspace-header .home-brand img{width:30px;height:30px;flex-shrink:0}
 .workspace-header .workspace-account{display:contents}
 .workspace-header .style-mode-toggle{grid-column:3;grid-row:1;justify-self:end;width:40px;min-width:40px;height:40px;padding:8px}
 .workspace-header .style-mode-toggle span{display:none!important}
 .workspace-header .workspace-profile{grid-column:4;grid-row:1;justify-self:end}
 .workspace-header .workspace-profile>.profile-name{display:none}
 .workspace-header .workspace-profile .avatar{width:34px;height:34px}
 .workspace-header .workspace-context{grid-column:1 / -1;grid-row:2;min-width:0;max-width:none;width:100%;padding:8px 0 0;border-left:0;border-top:1px solid var(--line)}
 .workspace-header .workspace-context small,.workspace-header .workspace-context strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
 .workspace-header .workspace-context small{font-size:12px}
 .workspace-header .workspace-context strong{font-size:14px}
 .workspace-header .workspace-context .icon{width:14px;height:14px}
 .workspace-header .meeting-return{grid-column:4;grid-row:2;align-self:center;justify-self:end;justify-content:center;width:34px;height:36px;max-width:none;padding:6px}
 .workspace-header .meeting-return>span{display:none}
 .workspace-header .request-shortcut{grid-column:3;grid-row:2;align-self:center;justify-self:end;width:40px;height:36px}
 .workspace-header:has(.meeting-return) .workspace-context{grid-column:1 / 4}
 .workspace-header:has(.request-shortcut) .workspace-context{grid-column:1 / 3}
}

.workspace-menu-bottom .nav-item.export-current{background:var(--style-action);color:var(--style-action-ink);font-weight:650}
.workspace-menu-bottom .nav-item.export-current:hover{background:var(--style-action-hover)}
.workspace-menu-bottom .nav-item.export-current:disabled{opacity:.5;cursor:not-allowed}
/* Comparación privada de difusión y espiral personal. */
.phoning-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:14px}.phoning-settings .form-actions,.phoning-settings .form-error{grid-column:1/-1}.phoning-status{margin:18px 0}.phoning-current,.phoning-common,.phoning-table{margin:18px 0}.phoning-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.phoning-results>.card{min-width:0;overflow-wrap:anywhere}.phoning-results h3{margin:0 0 12px}.phoning-metrics{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;margin:16px 0}.phoning-metrics dt{font-size:14px}.phoning-metrics dd{margin:0;text-align:right;font-weight:650}.phoning-plan{margin-top:16px;font-size:14px}.phoning-plan ol{padding-left:20px}.phoning-plan li{margin-bottom:9px}.phoning-table summary,.phoning-plan summary{cursor:pointer;font-weight:650}.phoning-table table{min-width:660px;width:100%;font-size:14px}.phoning-person-metric{display:flex;flex-direction:column;gap:7px;border:1px solid var(--line,#d9e2db);border-radius:10px;padding:15px;margin-top:14px}.phoning-person-metric span,.phoning-person-metric small{font-size:14px}.phoning-current p{overflow-wrap:anywhere}
@media(max-width:1000px){.phoning-results{grid-template-columns:1fr}}@media(max-width:550px){.phoning-settings{grid-template-columns:1fr}.phoning-settings .form-actions{justify-content:flex-start}.phoning-results,.phoning-settings{gap:14px}}
.phoning-settings .phoning-initial-emission{grid-column:1/-1}.phoning-settings select{max-width:100%;min-width:0}

/* Propuestas del motor Phonings. Las cifras del gráfico conservan el contraste
   aprobado incluso con el tema oscuro del resto de la aplicación. */
.phoning-team-proposals{display:grid;gap:14px;margin-top:18px}.phoning-team-card{border:1px solid var(--line,#ddd);border-radius:14px;padding:12px;min-width:0}.phoning-team-card.selected{border-color:#dc7c25;box-shadow:0 0 0 1px #dc7c25}.phoning-proposal-choice{display:flex;align-items:center;gap:8px;background:none;border:0;color:inherit;padding:0;text-align:left;width:100%;cursor:pointer}.phoning-proposal-choice:disabled{opacity:1;cursor:default}.phoning-proposal-choice small{margin-left:auto;font-size:11px}.phoning-choice-dot{width:14px;height:14px;flex:none;border:1px solid #aaa;border-radius:50%}.selected .phoning-choice-dot{border:4px solid #d77823}.phoning-team-stats{display:flex;flex-wrap:wrap;gap:5px 13px;font-size:12px;margin:12px 0 4px}.phoning-team-stats strong{font-size:16px}.phoning-round-chart{margin:8px 0 10px;background:white;color:#111;border-radius:9px;padding:4px 0 6px}.phoning-chart-scroll{overflow-x:auto}.phoning-round-chart svg{display:block;width:100%;height:auto}.phoning-round-chart text{text-anchor:middle;font-family:inherit;font-size:12px}.phoning-round-chart .round-total{fill:#111;font-weight:650}.phoning-round-chart .round-added{fill:#b94f08;font-weight:600}.phoning-round-chart .round-name,.phoning-round-chart .round-empty{fill:#777;font-size:10px}.phoning-round-chart figcaption{text-align:center;font-size:10px;color:#777}.round-key-total{color:#111}.round-key-added{color:#b94f08}.phoning-rate-change{font-size:12px;border-left:3px solid #ed8b36;padding-left:8px}.phoning-team-card details{font-size:12px}.phoning-advanced .field{margin-top:12px}
