/* Relationship — celestial atlas, lightweight action hierarchy, tangible profile cards. */
.stage.rel-stage{min-height:100svh;height:auto;overflow:auto;isolation:isolate;color:#f4ead6}.rel-stage>.art{position:fixed;filter:brightness(.48) saturate(.9);object-fit:cover;inset:0;width:100%;height:100%}.rel-stage>.shade{position:fixed;inset:0;background:linear-gradient(110deg,#122436a6,#16273955 55%,#142337b0);pointer-events:none}.rel-shell,.rel-home{position:relative;z-index:2;width:min(1080px,92vw);margin:0 auto;padding:78px 0 32px}.rel-heading,.rel-home>header{margin:0 0 20px;text-align:center}.rel-heading>small,.rel-home>header>small{font:10px/1.3 system-ui,sans-serif;letter-spacing:.18em;color:#d7c7a5}.rel-heading h1,.rel-home h1{font:italic clamp(30px,4vw,50px)/1.1 Georgia,serif;margin:9px 0;color:#fff3db;text-shadow:0 2px 16px #121b29}.rel-home{max-width:900px}.rel-orbits{display:flex;justify-content:space-between;align-items:center;gap:24%;position:relative;width:min(650px,100%);margin:auto}.rel-orbits>svg{position:absolute;width:100%;height:100%;inset:0;filter:drop-shadow(0 0 6px #d8b66d)}.rel-island{position:relative;flex:1;text-align:center;min-width:0}.rel-island img{width:100%;aspect-ratio:1.2;object-fit:cover;border-radius:50%;mask-image:radial-gradient(ellipse,#000 52%,transparent 73%);filter:drop-shadow(0 4px 10px #0006)}.rel-island span{display:block;font:18px Georgia,serif;color:#f2e4c7;margin-top:-7px}.rel-connection{margin:16px auto;max-width:750px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-block:1px solid #cdb88d55;padding:13px 0}.rel-connection small{font:10px system-ui;letter-spacing:.12em;color:#cbbfa5}.rel-connection select{display:block;margin-top:5px;background:#233a47;border:1px solid #b9a47d70;color:#f3e6cc;border-radius:4px;padding:9px 13px;font:19px Georgia;width:auto;min-width:155px}.rel-connection p{font:12px system-ui;color:#d4c9b5;margin:6px 0}.rel-connection-actions,.rel-foot,.rel-card-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}.stage button.rel-primary,.stage button.rel-secondary{font:14px/1.25 system-ui,sans-serif;border-radius:5px;padding:10px 15px;letter-spacing:.01em;box-shadow:none;width:auto;min-height:38px}.stage button.rel-primary{background:#4c6558;border:1px solid #c3bd8b;color:#fff1d9}.stage button.rel-secondary{background:#243746c9;border:1px solid #bfa67b66;color:#e9ddc6}.stage button.rel-primary:hover,.stage button.rel-secondary:hover{background:#647e68;box-shadow:0 0 10px #b5ac7660}.rel-home-actions{display:grid;grid-template-columns:1fr 1fr;gap:15px;max-width:750px;margin:18px auto}.stage .rel-door{display:flex;gap:14px;align-items:center;text-align:left;padding:0 14px 0 0;overflow:hidden;color:#f7ebd2;background:#1b3243d9;border:1px solid #d9bc8055;border-radius:7px;min-width:0}.rel-door img{width:104px;height:90px;object-fit:cover;flex:none}.rel-door span{flex:1}.rel-door strong,.rel-door small{display:block}.rel-door strong{font:21px Georgia,serif}.rel-door small{font:11px system-ui;color:#c9c7bc;margin-top:5px}.rel-door b{font-weight:400;color:#d7bf89}.rel-foot{margin-top:16px}.rel-types{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;width:min(740px,100%);margin:0 auto}.stage .rel-type{background:linear-gradient(115deg,#20394bea,#27374ee0);border:1px solid #b8a78270;color:#f6ebd4;border-radius:6px;padding:14px 17px;display:flex;align-items:center;text-align:left;gap:15px;min-height:72px;box-shadow:none}.rel-type strong{font:20px Georgia;display:block}.rel-type small{font:11px system-ui;display:block;color:#d1c5ae;margin-top:5px}.rel-symbol{font-size:27px;color:#d9bf85;min-width:32px;text-align:center}.rel-check{margin-left:auto;color:#d7bb7d}.stage .rel-type.chosen,.stage .rel-type:hover{border-color:#dfc58b;background:#4b6055}.rel-note{text-align:center;font:12px/1.5 system-ui;color:#d5c9b4;max-width:680px;margin:16px auto}.rel-scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:790px;margin:25px auto}.stage .rel-scope-card{position:relative;overflow:hidden;border:1px solid #dfc58b85;border-radius:8px;background:#243b4b;text-align:left;color:#fff1db;padding:0;box-shadow:0 8px 26px #0004}.rel-scope-card img{display:block;width:100%;height:220px;object-fit:cover}.rel-scope-card div{padding:14px 18px}.rel-scope-card h2{font:27px Georgia;margin:0 0 5px}.rel-scope-card p{font:14px system-ui;margin:4px 0}.rel-scope-card span{display:block;color:#dbc590;font:12px system-ui;margin-top:12px}.rel-atlas{position:relative;width:min(960px,100%);margin:auto;border:1px solid #c9ae7a;padding:10px;background:#273c46;border-radius:12px;box-shadow:0 10px 40px #0006,inset 0 0 0 3px #bfa36d22}.rel-atlas svg{width:100%;height:auto;display:block}.stage .rel-map-pin{position:absolute;transform:translate(-50%,-50%);background:#172b3be6;color:#ffefd0;border:1px solid #d4b981aa;border-radius:4px;font:clamp(10px,1.1vw,15px) Georgia,serif;padding:6px 9px;display:flex;align-items:center;gap:6px;white-space:nowrap;box-shadow:0 2px 8px #0005}.rel-map-pin i{width:7px;height:7px;border-radius:50%;background:#ffe0a0;box-shadow:0 0 8px #ffe0a0;flex:none}.stage .rel-map-pin:hover{background:#546d5a;box-shadow:0 0 16px #e3c78b55}.rel-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px;max-width:900px;margin:auto}.rel-person{border:1px solid #d8bb8466;border-radius:8px;overflow:hidden;background:#eee1c8 url(./assets/paper.webp) center/cover;color:#493e32;box-shadow:0 12px 35px #0004;display:flex;flex-direction:column}.rel-person:only-child{max-width:430px;width:100%;justify-self:center}.rel-portrait{height:230px;position:relative;overflow:hidden;background:#738778}.rel-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 42%}.rel-portrait small{position:absolute;right:10px;bottom:10px;color:#f6e9cc;background:#182a36c9;padding:5px 8px;font:10px system-ui;border-radius:3px}.rel-person section{padding:18px;flex:1;display:flex;flex-direction:column}.rel-person-meta,.rel-languages{font:12px system-ui;color:#796851}.rel-person h2{font:32px Georgia;margin:7px 0}.rel-person h2 small{font:17px Georgia;color:#8f7b60}.rel-person p{font:15px/1.5 Georgia;min-height:62px;margin:12px 0}.rel-tags{display:flex;gap:6px;flex-wrap:wrap}.rel-person .rel-tags span{background:#d8c7aa70;border:1px solid #9c8a6a40;color:#594e3f;font:11px system-ui;padding:5px 7px;border-radius:3px}.rel-person .rel-tags span.common{background:#c3d2ad;color:#375545}.rel-common{font:11px system-ui;color:#57724c;margin:8px 0}.rel-card-actions{margin-top:auto;padding-top:16px;justify-content:flex-end}.rel-empty{text-align:center;padding:50px 20px;grid-column:1/-1}.rel-empty span{font:48px Georgia;color:#d7b985}.rel-empty h2{font:26px Georgia}.rel-empty p{font:14px system-ui;color:#c9c6b8}.rel-envelope{display:grid;grid-template-columns:1fr .65fr;max-width:750px;margin:auto;align-items:center;gap:25px}.rel-letter{padding:24px;background:#eddec1 url(./assets/paper.webp) center/cover;color:#554333;border-radius:4px;box-shadow:0 12px 30px #0004}.rel-letter h2{font:italic 26px Georgia}.rel-letter textarea{background:repeating-linear-gradient(transparent 0 26px,#ac947756 26px 27px);width:100%;height:140px;resize:vertical;border:0;font:16px/27px Georgia;color:#443c30}.rel-letter p{font:11px system-ui}.rel-letter-art{font:130px Georgia;color:#d5be86;text-align:center;filter:drop-shadow(0 5px 12px #0007)}.rel-invite-list{max-width:800px;margin:auto;display:grid;gap:12px}.rel-invite-list article{display:flex;align-items:center;gap:15px;border:1px solid #c4ad7b55;background:#193245d9;padding:10px;border-radius:7px;flex-wrap:wrap}.rel-invite-list article img{width:76px;height:76px;object-fit:cover;border-radius:4px}.rel-invite-list article div{flex:1}.rel-invite-list h2{font:23px Georgia;margin:0}.rel-invite-list p,.rel-invite-list small{font:12px system-ui;color:#d2c7ae;margin:5px 0}.rel-settings{max-width:690px;margin:auto;padding:22px;border-block:1px solid #c4ad7b55;background:#1d3447c9;border-radius:8px}.rel-settings h2{font:22px Georgia;margin:16px 0 9px}.rel-settings p{font:12px/1.5 system-ui;color:#d3c8b5}.rel-settings label{display:block;font:13px system-ui;color:#e7dcca;margin:10px 0}.rel-settings input{background:#233b4b;border:1px solid #bfa67b88;color:#fff1d7;padding:9px 12px;border-radius:4px;width:100%;box-sizing:border-box}.rel-permission{display:flex;gap:10px;align-items:center;background:transparent;color:#efdfbf;border:0;text-align:left;font:14px system-ui;padding:8px 0}.rel-permission span{font:20px Georgia;color:#e4c582}.rel-record-types{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 15px}.rel-record-fields input,.rel-record-fields textarea{width:100%;border:0;border-bottom:1px solid #aa916a;background:transparent;color:#503d2e;font:16px Georgia;padding:10px 2px;box-sizing:border-box}.rel-record-fields textarea{resize:vertical;line-height:26px;background:repeating-linear-gradient(transparent 0 25px,#ad916c50 25px 26px);margin-top:12px}.stage .c41 .compass-link[data-action="universe"]{font-size:clamp(8px,.9vw,11px)}
@media(max-width:650px){.rel-shell,.rel-home{padding:76px 0 24px;width:92vw}.rel-types,.rel-scope-grid,.rel-home-actions{grid-template-columns:1fr}.rel-type small{display:none}.stage .rel-type{min-height:48px;padding:9px 12px}.rel-heading h1{font-size:32px}.rel-connection{align-items:flex-start;flex-direction:column;gap:8px}.rel-connection-actions{justify-content:flex-start}.rel-door img{width:80px;height:68px}.rel-door strong{font-size:19px}.rel-scope-card img{height:135px}.rel-envelope{grid-template-columns:1fr}.rel-letter-art{display:none}.rel-atlas{padding:4px}.stage .rel-map-pin{font-size:9px;padding:3px;gap:2px}.rel-map-pin i{width:4px;height:4px}.rel-portrait{height:220px}.rel-island span{font-size:14px}.rel-settings{padding:13px}.rel-connection select{font-size:17px}}
