.referrals{--referral-accent:#197b8d;--referral-soft:#e9f5f6;color:var(--ink);min-width:0;font-size:.84rem}.referrals *{box-sizing:border-box}.referrals button{font:inherit;cursor:pointer}.referrals button:disabled{opacity:.45;cursor:default}.referrals button:focus-visible,.referrals input:focus-visible,.referrals select:focus-visible,.referral-graph:focus-visible{outline:2px solid var(--referral-accent);outline-offset:3px}.referrals button:not(.primary-button){color:var(--ink);border:1px solid var(--line);background:var(--surface);border-radius:7px;min-height:36px;padding:8px 11px}.referral-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px;display:flex}.referral-tabs{align-self:stretch;align-items:center;gap:4px;margin-right:auto;display:flex}.referral-tabs button:not(.primary-button){color:var(--muted);background:0 0;border:0;border-radius:0;padding:12px 10px}.referral-tabs button[aria-pressed=true]{box-shadow:inset 0 -2px var(--referral-accent);color:var(--referral-accent);font-weight:600}.referral-search{flex:1;min-width:180px;max-width:340px;position:relative}.referral-search input{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;font:inherit;color:var(--ink);border-radius:8px;margin:0;padding:10px 12px;display:block}.referral-search-results{z-index:8;background:var(--surface);border:1px solid var(--line);border-radius:9px;max-height:350px;position:absolute;top:calc(100% + 5px);left:0;right:0;overflow:auto;box-shadow:0 8px 24px #1a35451a}.referral-search-results button:not(.primary-button){text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:4px;width:100%;padding:11px 12px;display:grid}.referral-search-results small,.referral-followup-list small{color:var(--muted);margin-top:4px;font-size:.73rem;display:block}.referral-search-results p{padding:10px 12px}.referral-summary{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px 20px;margin:0 0 14px;font-size:.74rem;display:flex}.referral-summary button:not(.primary-button){text-align:left;min-height:28px;color:var(--muted);background:0 0;border:0;padding:3px 0}.referral-workspace{border:1px solid var(--line);background:var(--surface);border-radius:12px;grid-template-columns:minmax(0,1fr);min-height:520px;display:grid;overflow:hidden}.referral-main{min-width:0}.referral-detail{border-left:1px solid var(--line);overflow-wrap:anywhere;min-width:0;padding:21px 18px}.referral-detail h2{margin:0;font-size:1rem}.referral-detail-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.referral-detail-head button:not(.primary-button){background:0 0;border:0;min-width:32px;padding:0;font-size:1.4rem}.referral-detail-empty p,.referral-student-meta{color:var(--muted);margin:6px 0 0;font-size:.77rem;line-height:1.7}.referral-detail-section{margin-top:24px}.referral-detail h3{margin:0 0 6px;font-size:.82rem;font-weight:600}.referral-detail h3>span{color:var(--muted);margin-left:5px;font-weight:400}.referral-relation{border-bottom:1px solid var(--line);padding:12px 0}.referral-relation:last-child{border-bottom:0}.referral-relation-title:not(.primary-button){text-align:left;line-height:1.6;color:var(--referral-accent)!important;background:0 0!important;border:0!important;padding:0!important}.referral-relation-title span{color:var(--muted);margin:0 5px}.referral-benefit-pair{grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 0;font-size:.7rem;line-height:1.5;display:grid}.referral-benefit-pair dt{color:var(--muted);margin-bottom:3px}.referral-benefit-pair dd{margin:0}.referral-view-controls{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 15px;display:flex}.referral-view-controls>div{gap:3px;display:flex}.referral-view-controls button:not(.primary-button){color:var(--muted);background:0 0;border:0;padding:7px 9px;font-size:.76rem}.referral-view-controls button[aria-pressed=true],.referral-default-graph{background:var(--referral-soft)!important;color:var(--referral-accent)!important}.referral-note{color:var(--muted);margin:8px 0;font-size:.74rem;line-height:1.65}.referral-graph-wrap>.referral-note{margin:0;padding:0 15px 10px}.referral-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:400px;padding:35px 22px;display:flex}.referral-empty h2{margin:0 0 7px;font-size:1rem;font-weight:500}.referral-empty p{color:var(--muted);margin:0 0 17px;font-size:.8rem;line-height:1.7}.referral-list-display{padding:4px 16px 20px}.referral-list-caption{color:var(--muted);padding:12px 0 0;font-size:.73rem}.referral-list-display.referral-display-auto,.referral-list-display.referral-display-graph,.referral-graph-display.referral-display-list{display:none}.referral-followup-filters{border-bottom:1px solid var(--line);flex-wrap:wrap;gap:12px;padding:14px 16px;display:flex}.referral-followup-filters label{color:var(--muted);gap:5px;font-size:.7rem;display:grid}.referral-followup-filters select{font:inherit;border:1px solid var(--line);background:var(--surface);min-height:36px;color:var(--ink);border-radius:6px;margin:0;padding:6px 9px;font-size:.78rem}.referral-followup-list{padding:0 16px}.referral-followup-list>button:not(.primary-button){border:0;border-bottom:1px solid var(--line);text-align:left;border-radius:0;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:15px 0;font-size:.77rem;line-height:1.5;display:flex}.referral-followup-list>button>span{overflow-wrap:anywhere;min-width:0}.referral-followup-list strong{font-weight:500}.referral-record{border-top:1px solid var(--line);margin-top:22px;padding-top:20px;font-size:.77rem;line-height:1.7}.referral-record>p{white-space:pre-wrap}.referral-grant{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.referral-grant h4{margin:0 0 6px;font-size:.77rem}.referral-grant p{margin:6px 0}.referral-grant>strong{font-weight:500}.referral-redemption{justify-content:space-between;gap:10px;padding:5px 0;font-size:.7rem;display:flex}.referral-record button:not(.primary-button){margin-top:5px;font-size:.74rem}.referral-history{margin-top:20px}.referral-history>div{border-bottom:1px solid var(--line);padding:10px 0}.referral-history strong{font-size:.72rem;font-weight:500}.referral-history small{color:var(--muted);font-size:.68rem;display:block}.referral-history p{white-space:pre-wrap;margin:4px 0;font-size:.72rem}.referral-text-button:not(.primary-button){color:var(--referral-accent)!important;background:0 0!important;border:0!important;padding:10px 0!important;font-size:.74rem!important}.referral-claims{border-top:1px solid var(--line);padding:15px;font-size:.78rem}.referral-claims>div{padding:12px 0}.referral-claims p{white-space:pre-wrap;color:var(--muted)}.referral-error,.referral-error-bar{color:#934b38;font-size:.8rem;line-height:1.6}.referral-error-bar{background:#fff7ee;border:1px solid #e8d5bf;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 13px;display:flex}.referral-loading-canvas{background:var(--background);min-height:520px;color:var(--muted);justify-content:center;align-items:center;font-size:.8rem;display:flex}.referral-loading-search{background:var(--background);border:1px solid var(--line);border-radius:8px;width:260px;height:38px}.referral-tabs>span{padding:10px}.referral-skeleton{background:var(--background);border-radius:4px;width:80%;height:12px;margin:10px 0 20px}.referral-skeleton:nth-child(2){width:55%}.referral-editor{width:min(520px,100vw - 24px);color:var(--ink)}.referral-editor fieldset{border:0;gap:16px;min-width:0;margin:0;padding:0;display:grid}.referral-editor label{gap:7px;font-size:.82rem;display:grid}.referral-editor select,.referral-editor input,.referral-editor textarea{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;font:inherit;color:var(--ink);border-radius:7px;margin:0;padding:10px 11px}.referral-editor textarea{resize:vertical}.referral-editor-actions{justify-content:flex-end;gap:10px;margin-top:22px;display:flex}.referral-editor-actions button:not(.primary-button){border:1px solid var(--line);color:var(--ink);background:var(--surface);font:inherit;cursor:pointer;border-radius:7px;padding:9px 14px;font-size:.82rem}.referral-editor-actions button:disabled{opacity:.5;cursor:default}.referral-editor summary,.referrals summary{cursor:pointer;min-height:36px;padding:8px 0}.referral-editor p{overflow-wrap:anywhere}@media (max-width:1000px){.referral-workspace.has-detail{grid-template-columns:minmax(0,1fr) 270px}.referral-toolbar{gap:8px}.referral-refresh{font-size:.73rem!important}.referral-search{max-width:none}.referral-summary{gap:4px 13px}}@media (max-width:760px){.referrals{font-size:.82rem}.referral-toolbar{grid-template-columns:minmax(0,1fr) auto;display:grid}.referral-tabs{grid-column:1/-1}.referral-search{grid-column:1/-1;min-width:0;max-width:none}.referral-search input{min-height:44px;font-size:16px}.referral-toolbar>.primary-button{justify-self:start}.referral-toolbar>button,.referral-view-controls button:not(.primary-button),.referral-detail button:not(.primary-button),.referral-search-results button:not(.primary-button){min-height:44px}.referral-summary{gap:1px;font-size:.73rem;display:grid}.referral-summary button:not(.primary-button){min-height:34px}.referral-workspace,.referral-workspace.has-detail{grid-template-columns:minmax(0,1fr);min-height:0}.referral-detail{border-left:0;border-top:1px solid var(--line);padding:20px 16px}.referral-detail-empty{padding:0}.referral-empty{min-height:290px;padding:30px 16px}.referral-view-controls{gap:0;padding:9px}.referral-view-controls button:not(.primary-button){padding:8px;font-size:.72rem}.referral-list-display.referral-display-auto{display:block}.referral-graph-display.referral-display-auto{display:none}.referral-default-graph{color:var(--muted)!important;background:0 0!important}.referral-default-list{background:var(--referral-soft)!important;color:var(--referral-accent)!important}.referral-graph{height:430px}.referral-graph-tools{gap:6px;padding:10px}.referral-graph-tools button:not(.primary-button){min-height:40px;padding:6px 9px;font-size:.72rem}.referral-followup-filters{gap:10px;padding:12px}.referral-followup-filters label{flex:1;min-width:0}.referral-followup-filters select{width:100%;min-height:44px;font-size:16px}.referral-followup-list{padding:0 13px}.referral-followup-list>button:not(.primary-button){gap:6px;padding:15px 0;display:grid}.referral-followup-list>button>span:last-child{font-size:.74rem}.referral-error-bar{align-items:flex-start}.referral-error-bar button{flex-shrink:0}.referral-loading-canvas{min-height:340px}.referral-loading-search{grid-column:1/-1;width:100%}.referral-editor{width:calc(100vw - 20px)}.referral-editor .parent-dialog-body{padding:18px 16px}.referral-editor select,.referral-editor input,.referral-editor textarea{min-height:44px;font-size:16px}.referral-editor-actions button{min-height:44px}.referral-student-meta{font-size:.8rem}.referral-benefit-pair{font-size:.73rem}.referral-history small{font-size:.72rem}}@media (prefers-reduced-motion:reduce){.referrals *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.referral-group-controls{flex-wrap:wrap;gap:6px 14px;padding:0 14px 10px;display:flex}.referral-group-controls>div{color:var(--muted);align-items:center;gap:8px;font-size:.72rem;display:flex}.referral-group-controls button:not(.primary-button){min-height:36px;padding:5px 9px;font-size:.72rem}@media (max-width:760px){.referral-group-controls{padding:0 10px 8px}.referral-group-controls>div{flex-wrap:wrap}.referral-group-controls button:not(.primary-button){min-height:44px}}.referral-sample-note{color:#715e40;background:#fbf7ee;border-left:3px solid #b89a69;margin:0 0 12px;padding:9px 12px;font-size:.75rem;line-height:1.6}.referral-school-note{color:var(--muted);border-bottom:1px solid var(--line);margin:0;padding:11px 15px;font-size:.73rem;line-height:1.65}.referral-school-list-group{border-bottom:1px solid var(--line);padding:15px 0}.referral-school-list-group:last-child{border-bottom:0}.referral-school-list-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.referral-school-list-heading h3{overflow-wrap:anywhere;margin:0;font-size:.83rem;font-weight:600;line-height:1.6}.referral-school-list-heading h3 span{color:var(--muted);white-space:nowrap;margin-left:5px;font-size:.72rem;font-weight:400}.referral-school-list-heading button:not(.primary-button){flex-shrink:0;font-size:.73rem}.referral-school-list-group ul{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:7px;margin:10px 0 0;padding:0;list-style:none;display:grid}.referral-school-list-group li{min-width:0}.referral-school-list-group li button:not(.primary-button){text-align:left;overflow-wrap:anywhere;gap:4px;width:100%;min-height:60px;padding:10px 12px;display:grid}.referral-school-list-group li strong{font-size:.8rem;font-weight:500}.referral-school-list-group li span{color:var(--muted);font-size:.71rem}.referral-school-list-group li button[aria-pressed=true]{border-color:var(--referral-accent);background:var(--referral-soft)}@media (max-width:760px){.referral-school-note{padding:10px 12px;font-size:.73rem}.referral-school-list-group ul{grid-template-columns:minmax(0,1fr)}.referral-school-list-heading button:not(.primary-button){min-height:44px}.referral-sample-note{font-size:.73rem}}@media (min-width:1001px){.referral-workspace.has-detail{grid-template-columns:minmax(0,1fr) 300px}}.referral-graph-wrap{background:var(--surface);color:var(--ink)}.referral-graph-tools{color:var(--muted);border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;font-size:.74rem;display:flex}.referral-graph-tools>div{flex-wrap:wrap;gap:5px;display:flex}.referrals .referral-graph-tools button:not(.primary-button),.referrals .referral-group-controls button:not(.primary-button){border-color:var(--line);min-height:34px;color:var(--ink);background:var(--surface);padding:6px 10px;font-size:.74rem}.referrals .referral-graph-tools button:hover,.referrals .referral-group-controls button:hover{background:var(--referral-soft)}.referral-canvas{background:var(--background);position:relative;overflow:hidden}.referral-graph{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;width:100%;height:600px;display:block}.referral-graph:active{cursor:grabbing}.referral-graph:focus-visible{outline:2px solid var(--referral-accent);outline-offset:-3px}.referral-cluster{pointer-events:none}.referral-cluster-halo{fill:var(--bubble-color);fill-opacity:.035;stroke:var(--bubble-color);stroke-opacity:.23;stroke-width:1px;stroke-dasharray:3 6}.referral-group-label{fill:var(--muted);paint-order:stroke;stroke:var(--background);stroke-width:4px;stroke-linejoin:round;font:12px system-ui,sans-serif}.referral-cluster.is-dimmed{opacity:.3}.referral-group-toggle{pointer-events:auto;cursor:pointer;outline:none}.referral-collapsed-core{fill:color-mix(in srgb,var(--bubble-color) 10%,var(--surface));stroke:var(--bubble-color);stroke-width:2px}.referral-collapsed-ring{fill:none;stroke:var(--bubble-color);stroke-opacity:.35;stroke-dasharray:3 5}.referral-collapsed-count{fill:var(--ink);font:600 25px system-ui,sans-serif}.referral-collapsed-hint{fill:var(--muted);font:12px system-ui,sans-serif}.referral-group-toggle:focus-visible .referral-collapsed-core{stroke:var(--referral-accent);stroke-width:4px}.referral-edge{stroke:#7c949e;stroke-width:1.5px;fill:none;opacity:.75;pointer-events:none}.referral-edge.is-selected{stroke:var(--referral-accent);stroke-width:2px;opacity:1}.referral-edge.is-dimmed{opacity:.15}.referral-node{cursor:grab;outline:none}.referral-node.is-dimmed{opacity:.27}.referral-node-hit{fill:#0000;stroke:none}.referral-node-core{fill:color-mix(in srgb,var(--bubble-color) 12%,var(--surface));stroke:var(--bubble-color);stroke-opacity:.84;stroke-width:2px}.referral-node-halo{fill:var(--bubble-color);fill-opacity:.04;stroke:none}.referral-node-initials,.referral-node-name{pointer-events:none}.referral-node.is-unlinked .referral-node-core{stroke-opacity:.7;stroke-width:1.7px}.referral-node:hover .referral-node-core,.referral-node[aria-pressed=true] .referral-node-core{stroke-opacity:1;stroke-width:3px}.referral-node[aria-pressed=true] .referral-node-halo,.referral-node:focus-visible .referral-node-halo{fill-opacity:.1;stroke:var(--bubble-color);stroke-opacity:.5;stroke-width:1px}.referral-node:focus-visible .referral-node-core{stroke:var(--referral-accent);stroke-width:3.5px}.referral-node-initials{fill:var(--ink);font:500 14px system-ui,sans-serif}.referral-node-name{fill:var(--ink);paint-order:stroke;stroke:var(--background);stroke-width:5px;stroke-linejoin:round;font:500 14px system-ui,sans-serif}.referral-node-tooltip{z-index:2;border:1px solid var(--line);background:var(--surface);width:280px;max-width:calc(100% - 16px);color:var(--ink);pointer-events:none;overflow-wrap:anywhere;border-radius:8px;padding:11px 13px;font-size:.79rem;line-height:1.55;position:absolute;box-shadow:0 4px 18px #17343e18}.referral-node-tooltip strong{font-weight:600;display:block}.referral-node-tooltip span{color:var(--muted);margin-top:3px;display:block}.referral-graph-legend{color:var(--muted);border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;gap:8px 20px;padding:11px 16px;font-size:.7rem;display:flex}.referral-graph-legend>span{align-items:center;gap:7px;display:flex}.referral-graph-legend>span:last-child{margin-left:auto}.referral-graph-legend i{border:1.5px solid #87979e;border-radius:50%;width:9px;height:9px;display:inline-block}.referral-graph-wrap .referral-group-controls{background:var(--surface);color:var(--muted);border-bottom:1px solid var(--line);padding:10px 16px;font-size:.74rem}.referral-loading-canvas{background:var(--background);min-height:700px;color:var(--muted)}@media (max-width:760px){.referral-graph{height:470px}.referral-graph-tools{padding:11px 12px}.referrals .referral-graph-tools button:not(.primary-button),.referrals .referral-group-controls button:not(.primary-button){min-height:42px}.referral-graph-legend{padding:10px 12px}.referral-loading-canvas{background:var(--surface);min-height:340px;color:var(--muted)}}
