/* Shared SAGE v1.1 recipes, ATS-MSG-000065 September 28 reference authority.
   These rules supersede the earlier portal presentation, not its access behavior. */
.portal{background:#fff;--navy:#123C62;--blue:#075B9C;--border:#E0EDF5;color:var(--navy)}
.portal header{background:#fff url('/sage-frame.svg') center/100% 100% no-repeat;min-height:96px;border-bottom:1px solid var(--border);padding:18px 28px}
.portal header img{width:100px;max-height:70px;object-fit:contain}.portal header #session-state{margin-left:auto;font-size:13px}
.portal footer{background:#fff url('/sage-frame.svg') bottom/100% 100% no-repeat;min-height:95px;padding-top:36px}
.portal .qualification{background:#fff;color:#52677B;border-bottom:1px solid var(--border);font-size:12px}
.portal .intro{background:white;border:1px solid var(--border);padding:24px;min-height:0}.portal .intro::after{display:none}
.portal main{max-width:1200px}.portal #navigation{padding:4px 0 12px;border-bottom:1px solid var(--border)}.portal #notice:empty{display:none}
.portal .card,.portal .state{border-radius:14px;border-color:var(--border);box-shadow:0 3px 16px #16467008}
.portal .workspace-links{display:flex;justify-content:space-between;gap:16px;margin:18px 0;font-size:13px}.portal .workspace-heading h1{margin:4px 0 20px;font-size:24px;line-height:1.25;overflow-wrap:anywhere}
.portal .entity-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:18px}.portal .information-workspace{min-width:0}
.portal .room-card{border-top:1px solid var(--border)}.portal .room-snapshot{width:100%;max-height:560px;object-fit:contain;background:white;border:1px solid var(--border);border-radius:12px}
.portal .expanded-snapshot .room-card{padding:20px}.portal .expanded-snapshot .room-card h2{font-size:20px;line-height:1.4}.portal .room-context{font-size:14px}.portal .snapshot-empty{padding:28px 16px;border:1px dashed var(--border);text-align:center}
.portal .sage-section{--helper:#DEE9F8;background:#fff;border:1px solid var(--border);border-radius:12px;margin:0 0 10px;overflow:hidden}
.portal .helper-space,.portal .helper-zone,.portal .helper-floor{--helper:#D9ECFA}.portal .helper-door{--helper:#E6DEF8}.portal .helper-barrier{--helper:#DFF3E6}.portal .helper-finding{--helper:#FDE3E8}.portal .helper-asset{--helper:#D8F1EF}.portal .helper-suite{--helper:#E7F4EB}.portal .helper-stair{--helper:#E6ECF4}
.portal .sage-section>summary{display:flex;position:relative;isolation:isolate;align-items:center;gap:12px;padding:10px 14px 10px 9px;min-height:60px;cursor:pointer;list-style:none;font-weight:600;background:#fff;color:#104A7D}
.portal .sage-section>summary::-webkit-details-marker{display:none}.portal .sage-section>summary::before{content:'';position:absolute;z-index:-1;inset:0;background:var(--helper);mask:url('/sage-watercolor.svg') left center/100% 100% no-repeat}
.portal .helper-mark{display:grid;place-items:center;width:42px;min-width:42px;height:40px}.portal .helper-icon{width:28px;height:28px}.portal .section-title{flex:1;min-width:0;overflow-wrap:anywhere}.portal .section-count{display:grid;place-items:center;min-width:30px;height:30px;border-radius:8px;background:#F3F9FD;color:#155684;font-size:14px}.portal .section-chevron{font-size:26px;font-weight:400;transition:transform .15s}.portal .sage-section[open]>summary .section-chevron{transform:rotate(90deg)}
.portal .sage-section[open]>summary{border-bottom:1px solid var(--border)}.portal .section-body{padding:14px;background:white}.portal .section-body .sage-section:last-child{margin-bottom:0}
.portal .entity-fields{margin:0}.portal .entity-fields>div{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.3fr);gap:12px;padding:9px 0;border-bottom:1px solid #EDF4F8;font-size:14px;line-height:1.5}.portal .entity-fields>div:last-child{border:0}.portal .entity-fields dt{font-weight:500;color:#476984}.portal .entity-fields dd{margin:0;white-space:pre-line}
.portal .context-navigation{display:flex;gap:10px;align-items:stretch}.portal .context-navigation a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--border);background:white;min-width:90px;flex:1;gap:5px;text-align:center}.portal .context-navigation small{font-size:11px;line-height:1.3;max-width:180px}.portal .context-navigation a:hover{background:#F5FAFD}.portal .open-workspace{display:inline-block;padding:12px 0;font-weight:600}
@media(max-width:760px){.portal header{padding:12px 16px;min-height:80px;gap:10px}.portal header img{width:78px}.portal header #session-state{font-size:11px}.portal main{padding:14px}.portal .entity-workspace{grid-template-columns:1fr;gap:12px}.portal .workspace-heading h1{font-size:21px}.portal .context-navigation{gap:6px}.portal .context-navigation a{min-width:75px}.portal .sage-section>summary{gap:8px}.portal .section-body{padding:11px}.portal .expanded-snapshot .room-card{padding:16px}.portal .room-snapshot{max-height:480px}.portal .workspace-links{font-size:12px}}
@media(prefers-reduced-motion:reduce){.portal .section-chevron{transition:none}}

.portal{min-height:100vh}.portal .sage-section{padding:0}.portal .entity-fields{display:block}.portal #navigation a{border-color:var(--border)}.portal .section-chevron{flex:0 0 14px;text-align:center}.portal .room-card h2 a{text-decoration:none}.portal .room-card h2 a:hover{text-decoration:underline}

