/* Shared compact operational directories. */
.table-scroll{overflow-x:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:12px 14px;border-bottom:1px solid #334a61;vertical-align:top}th{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#a8c8df;background:#102132}tbody tr:nth-child(even){background:#ffffff04}tbody tr:hover{background:#1a8aa51a}td small{display:block;color:#a8bcd0;margin-top:5px}td button{min-width:0;text-align:left}td .primary{white-space:nowrap}.compact-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0}.compact-filters label{flex:1;min-width:150px}.compact-filters button{margin-bottom:0}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #334a61;margin-bottom:20px}.admin-tabs [aria-pressed=true]{background:#087e9c;color:white}.member-focus{border-left:4px solid #16b3ca;padding:20px;background:#112b3d;margin:20px 0}.report-kpis button{display:flex;flex-direction:column;align-items:start;gap:6px;text-align:left;padding:20px}.report-kpis button strong{font-size:2rem}.report-distribution{width:100%;text-align:left;cursor:pointer}.notification-readiness{padding:20px;border:1px solid #35536c;border-radius:12px;margin:20px 0}.notification-reminder{padding:12px;background:#173f51;border-radius:8px}.notification-settings{width:min(650px,94vw)}#workspace-admin-link{display:inline-flex!important;align-items:center;padding:12px 18px;background:#087d9c;color:#fff!important;font-weight:700;border:1px solid #37bfd6;border-radius:8px;text-decoration:none;line-height:1.4}#workspace-admin-link[hidden]{display:none!important}#incident-list .incident-row{display:inline-block;width:auto;margin:0;padding:4px;border:0;background:transparent;min-height:0;color:#73d7ee}.command-grid{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)}.incident-table button{color:#8de0ed}.selected{background:#137d9733}#editor{width:min(1100px,96vw);max-height:90vh;overflow:auto}#manage details{margin:14px 0}#manage summary{cursor:pointer;padding:12px;background:#153047;border-radius:8px}#manage [data-panel]{padding-top:12px}#queue-search{width:100%;margin:10px 0}
@media(max-width:760px){.compact-filters{display:grid;grid-template-columns:1fr 1fr}.compact-filters label:first-child{grid-column:1/-1}.compact-filters label{min-width:0}.incident-table thead{display:none}.incident-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #334a61;margin:10px 0;border-radius:10px;padding:8px}.incident-table td{border:0;padding:8px}.incident-table td:first-child{grid-column:1/-1}.table-scroll{max-width:100%}.network-table{min-width:720px}.admin-tabs button{flex:1}.command-grid{display:block}}
@media print{.admin-tabs,.compact-filters,[data-network-filters]{display:none}}
.user-page th,.administrator-page th{color:#31586d;background:#e7f1f5}.user-page th,.user-page td,.administrator-page th,.administrator-page td{border-color:#d1e0e7}.user-page td small,.administrator-page td small{color:#526d7d}.user-page td button,.administrator-page td button{color:#08647b}.user-page tbody tr:nth-child(even),.administrator-page tbody tr:nth-child(even){background:#eaf4f7}.user-page .member-focus,.administrator-page .member-focus{background:#e6f5f7}.user-page .notification-reminder{background:#dff3f5;color:#12384a}.administrator-page #incident-list .incident-row{color:#08647b}.administrator-page .command-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}
@media(max-width:1000px){.administrator-page .command-grid{grid-template-columns:1fr}.administrator-page .detail{min-height:0}}
/* Referral explorer: referrer to recruits, left to right. */
.network-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.network-heading h2{margin:6px 0}.network-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;align-items:center}.network-breadcrumbs button{background:transparent;border:0;padding:6px;color:#73d2e5}.referral-explorer{display:flex;align-items:flex-start;gap:32px;overflow-x:auto;padding:18px 4px 26px;max-width:100%;scroll-snap-type:x proximity}.referral-column{position:relative;flex:0 0 260px;scroll-snap-align:start;min-height:180px}.referral-column:not(:last-child):after{content:'→';position:absolute;right:-27px;top:90px;color:#51bcd1;font-size:26px}.referral-column h3{font-size:13px;text-transform:uppercase;letter-spacing:.07em;color:#b5c8d8}.referral-person{display:flex;flex-direction:column;align-items:start;gap:10px;text-align:left;width:100%;padding:18px;margin:10px 0;border:1px solid #3a5d75;border-radius:12px;background:#122b3c;color:#eef6fc;min-height:105px;box-shadow:0 6px 18px #0002}.referral-person:hover,.referral-person:focus-visible{border-color:#58d1de;background:#183d50}.referral-person strong{font-size:16px}.referral-person small{color:#b4c9d6;line-height:1.5}.selected-column .referral-person{border:2px solid #51c8d7;background:#153c4d}.member-status{display:inline-block;border-radius:20px;padding:3px 9px;font-size:12px;font-weight:700;background:#344454;color:#e0ebf1}.member-status.active{background:#143e31;color:#9ce3bc}.member-status.pending{background:#493a19;color:#ffdf85}.member-status.suspended{background:#4f252d;color:#ffb7ba}.role-chip{display:inline-block;font-size:12px;padding:3px 7px;margin:2px;border-radius:5px;background:#244154;color:#c6e6f1}.member-status-filters{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.member-status-filters [aria-pressed=true]{outline:2px solid #4ec5d5}.admin-tabs button{background:transparent;border-color:transparent;color:inherit;box-shadow:none}.admin-tabs [aria-pressed=true]{background:#173b4e;border-bottom:3px solid #40c5d6}.member-table td{padding:10px 12px}.member-table td button{padding:6px 10px;min-height:34px}.member-table td small{font-size:12px}.network-help{margin:18px 0}.network-pagination{align-items:center;justify-content:space-between}.responder-guidance{font-size:.9rem}.user-page .referral-person{background:#fff;color:#12384a;border-color:#bfd6df}.user-page .referral-person small,.user-page .referral-column h3{color:#476b7d}.user-page .selected-column .referral-person{background:#e4f5f7}.user-page .member-status.active{background:#d7f0e1;color:#195c3a}.user-page .member-status.pending{background:#fff0c4;color:#775b00}.user-page .member-status.suspended{background:#fbe0e0;color:#9d2834}
@media(max-width:700px){.referral-explorer{display:block}.referral-column{width:100%;min-height:0}.referral-column.context-column{display:none}.referral-column:not(:last-child):after{display:none}.referral-person{min-height:80px}.network-heading .admin-tabs{width:100%}.network-heading .admin-tabs button{flex:1;min-width:120px}.network-pagination{justify-content:flex-start}}
body:has(.referral-explorer) main{max-width:1440px}.referral-column{border:0;margin:0;padding:0;background:transparent}.member-drawer{position:fixed;margin:0 0 0 auto;right:0;top:0;height:100dvh;max-height:100dvh;width:min(560px,96vw);max-width:96vw;border:1px solid #385269;padding:24px;border-radius:12px 0 0 12px;background:#102235;color:#e6f0f8;overflow:auto}.member-drawer::backdrop{background:#0008}.member-drawer .member-focus{margin:14px 0;padding:16px}.member-drawer [data-close-member]{float:right}.member-drawer h4{clear:both}

/* v0.13.1: contrast and focused operational navigation */
.workspace-loading #public-access,.workspace-loading #user-workspace,.workspace-loading>footer{display:none!important}
.user-page .report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.user-page .report-kpis button{background:#fff;color:#123b4e;border:1px solid #abc8d5;border-top:4px solid #087e94;border-radius:12px;min-height:145px;box-shadow:0 4px 16px #123b4e0c}
.user-page .report-kpis button small,.user-page .report-kpis button span{color:#31596a}.user-page .report-kpis button strong{color:#103747;font-size:2.2rem}
.user-page .report-kpis button:hover{background:#e7f6f8;border-color:#087e94}.user-page .report-kpis button:focus-visible{outline:3px solid #087e94;outline-offset:3px}
.report-register-wrap{scroll-margin-top:110px}.report-register-wrap:focus{outline:2px solid #168aa0;outline-offset:8px}
.notification-settings{background:#fff;color:#163b4e;border:1px solid #aac8d5;border-radius:18px;padding:24px;max-height:88dvh;overflow:auto;box-shadow:0 20px 80px #071e3555}.notification-settings::backdrop{background:#071e35aa}.notification-settings label,.notification-settings p,.notification-settings summary{color:#163b4e}.notification-settings button,.device-notification-link{background:#087e94;color:white;border:1px solid #39a9bd;border-radius:8px;padding:11px 16px;min-height:44px;font:inherit;cursor:pointer}.notification-settings label{display:block;margin:18px 0}.notification-settings input[type=checkbox]{width:auto}.notification-settings button:disabled{opacity:.5;cursor:default}.notification-settings pre{white-space:pre-wrap}.notification-readiness{border:0;margin:8px 0;padding:0}.notification-readiness summary{font-size:1.5rem;font-weight:750}.notification-settings [data-status]{background:#e8f5f7;padding:14px;border-radius:8px}.notification-settings [data-status]:focus{outline:2px solid #168aa0}
.planning-group{display:flex;flex-direction:column;gap:4px}.planning-group h3{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#3c6779;margin:20px 12px 8px}.planning-group button{text-align:left}.urban-heading h1{letter-spacing:-.025em}
@media(max-width:650px){.notification-settings{width:calc(100vw - 24px);padding:16px}.notification-settings button{width:100%;margin:5px 0}.user-page .report-kpis{grid-template-columns:1fr 1fr}.urban-shell nav{display:block}.planning-group{display:block}.planning-group button{display:block;width:100%}}

.activation-summary{padding:16px;background:#123e51;border-left:4px solid #46d0dc;border-radius:10px;margin:16px 0}.activation-summary h4{margin:0 0 8px}.referral-person{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left}.user-page .referral-column{background:#f2f8fa;color:#15394c;border:1px solid #bed5df;border-radius:12px;padding:18px;min-width:230px}.user-page .referral-person{background:#fff;color:#15394c;border:1px solid #a8cbd6;border-left:4px solid #11869b;border-radius:10px;padding:16px;margin:10px 0;width:100%}.user-page .referral-person small{color:#365f71}.user-page .referral-person:hover{background:#e5f5f7}.referral-explorer{display:flex;gap:20px;overflow-x:auto;padding:12px 0}.referral-explorer .referral-column{flex:1;min-width:220px}

/* RC7 compact referral explorer */
.referral-tree{display:grid;gap:12px;padding:10px 0 16px;color:#17384b;font-size:14px}
.referral-tree .tree-level{position:relative;text-align:center;margin:0;padding:4px 0}
.referral-tree .tree-level+.tree-level::before{content:"";position:absolute;top:-12px;left:50%;height:12px;border-left:2px solid #598993}
.referral-tree h3{font-size:13px;margin:0 0 5px;color:#33566a}
.referral-tree .tree-node{display:inline-grid;gap:2px;min-height:44px;padding:8px 12px;background:#fff;color:#16394b;border:1px solid #a9c5cb;border-radius:8px;text-align:left;font-size:14px;margin:0}
.referral-tree .tree-node small{color:#33566a;font-size:12px}
.referral-tree .selected-column .tree-node,.referral-tree .tree-selected .tree-node{background:#e7f5f3;border:2px solid #007483}
.tree-children,.referral-tree .recruits-column{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.referral-tree .recruits-column h3{flex-basis:100%}
.tree-toggle{display:flex;align-items:center;gap:6px;font-size:13px}
.tree-toggle input{width:auto}
.tree-toggle:has(input:checked)+.referral-tree .tree-level{text-align:left;padding-left:12px;border-left:2px solid #598993}
.tree-toggle:has(input:checked)+.referral-tree .tree-level::before{display:none}
.tree-toggle:has(input:checked)+.referral-tree .tree-children{justify-content:flex-start;flex-direction:column}
[data-member-focus] .member-focus{background:#f1f7f6!important;color:#153649!important;padding:14px;font-size:14px}
[data-member-focus] .member-focus :is(h3,p,summary){color:#153649!important}
[data-member-focus] .member-focus summary,.network-help summary{background:#e4f1f2!important;color:#153649!important}
@media(max-width:640px){.referral-tree .tree-level{text-align:left;padding-left:12px;border-left:2px solid #598993}.referral-tree .tree-level::before{display:none}.tree-children,.referral-tree .recruits-column{align-items:flex-start;justify-content:flex-start;flex-direction:column}}
.referral-tree .tree-initials{display:inline-grid;place-items:center;width:25px;height:25px;background:#e0eff1;color:#17384b;border-radius:50%;font-weight:700;font-size:11px}
.referral-tree .tree-children>.tree-node,.referral-tree .recruits-column>.tree-node{position:relative}
.referral-tree .tree-children>.tree-node::before,.referral-tree .recruits-column>.tree-node::before{content:"";position:absolute;top:-6px;left:50%;height:5px;border-left:1px solid #598993}
