@font-face{font-family:"Bebas Neue";src:url('/assets/bebas-neue-regular.woff') format('woff');font-display:swap}
.portal-loading .sidebar,.portal-loading .workspace{visibility:hidden}.portal-loading-screen{position:fixed;inset:0;display:grid;place-items:center;background:#f3f7f3;color:#15462f;font:1rem Arial,sans-serif}.portal-loading-screen img{width:64px;display:block;margin:0 auto 1rem}body:not(.portal-loading) .portal-loading-screen{display:none}
.portal-hero{position:relative;overflow:hidden;padding:2.5rem;background:#123d2e;color:#fff;border-radius:10px;margin-bottom:1.5rem}.portal-hero:after{content:'';position:absolute;right:-60px;bottom:-120px;width:360px;height:360px;border:60px solid #65a34344;border-radius:50%;pointer-events:none}.portal-kicker{font-size:.875rem;letter-spacing:.14em;font-weight:700;color:#9ad96f;margin-bottom:1rem}.portal-hero h1{font-family:"Bebas Neue",Arial,sans-serif;font-size:clamp(2.4rem,5vw,4rem);font-weight:400;line-height:1.05;max-width:45rem}.portal-hero>p:not(.portal-kicker){font-size:1rem;line-height:1.65;max-width:40rem;margin:1rem 0 1.5rem;color:#deeadf}.portal-hero .button{position:relative;z-index:1;font-size:1rem;min-height:44px;background:#a2e476;color:#123d2e;border-color:#a2e476}
.portal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.portal-stat{padding:1.5rem;background:white;border:1px solid #dde7dd;border-radius:8px;font-size:.875rem;line-height:1.6;color:#4b6252;overflow-wrap:anywhere}.portal-stat strong{display:block;color:#15462f;font:2.5rem "Bebas Neue",Arial,sans-serif}.portal-stat.account strong{font:700 1rem Arial,sans-serif;margin-bottom:.75rem}.portal-stat.account span{font-size:.875rem}
.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.portal-tile{background:white;border:1px solid #dde7dd;border-radius:8px;padding:1.5rem;text-align:left;min-height:160px;color:#15462f}.portal-tile:hover{border-color:#008000;background:#f5fbf4}.portal-tile b{display:block;font:1.8rem "Bebas Neue",Arial,sans-serif;margin-bottom:.6rem;font-weight:400}.portal-tile span{display:block;font-size:.95rem;line-height:1.6;color:#597160}.portal-section-title{font:2rem "Bebas Neue",Arial,sans-serif;color:#15462f;margin:1.8rem 0 1rem}.portal-own-work{padding:1.25rem 0;font-size:.95rem;line-height:1.7;color:#597160}
.portal-sync-notice{margin:0 0 1.5rem;padding:1rem;border:1px solid #b6cba8;border-left:4px solid #008000;border-radius:6px;background:#f4faef;font-size:.95rem;line-height:1.6}.portal-sync-notice button{font-size:.875rem;margin-top:.75rem;min-height:44px}
.portal-admin-intro{font-size:1rem!important;line-height:1.7;max-width:48rem!important}.portal-admin-panels{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:1.5rem;align-items:start}.portal-admin-panel{background:white;border:1px solid #dde7dd;border-radius:8px;padding:1.5rem}.portal-admin-panel h2{font:1.8rem "Bebas Neue",Arial,sans-serif;color:#15462f;margin-bottom:1rem}.portal-admin-panel form{display:grid;gap:1rem}.portal-admin-panel label{display:grid;gap:.45rem;font-size:.875rem;font-weight:700;color:#365b42}.portal-admin-panel input,.portal-admin-panel select{font-size:1rem;min-height:44px;max-width:100%;width:100%;box-sizing:border-box}.portal-admin-panel .button{font-size:.875rem;min-height:44px}.portal-admin-panel p{font-size:.95rem;line-height:1.7;color:#597160}.portal-small{font-size:.875rem!important;line-height:1.7}.portal-admin-note{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid #dde7dd}.portal-user{padding:1.25rem 0;border-top:1px solid #e1e9e1}.portal-user:first-child{border-top:0}.portal-user-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.portal-user-heading strong{display:block;font-size:1rem;color:#173f2d}.portal-user-heading span{display:block;margin-top:.4rem;font-size:.875rem;color:#5e7464;overflow-wrap:anywhere}.portal-user p{margin:.75rem 0}.portal-user-controls{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}.portal-user-controls label{flex:1;min-width:120px}.portal-user-controls button{font-size:.875rem;min-height:44px}.portal-badge{display:inline-block;padding:.3rem .6rem;border-radius:4px;background:#e8f4e3;color:#286039;font-size:.75rem;white-space:nowrap}.portal-badge.blocked{background:#f9e9e6;color:#923727}#portalAdminMessage{font-size:.95rem;line-height:1.7;margin-bottom:1rem;color:#325c3d}
.portal-gate{margin:0;min-height:100vh;display:grid;place-items:center;background:#123d2e;color:white;font:1rem/1.7 Arial,sans-serif;padding:1.5rem;box-sizing:border-box}.portal-gate main{max-width:530px;padding:2rem}.portal-gate img{width:70px;margin-bottom:1.5rem}.portal-gate h1{font:4rem/1 "Bebas Neue",Arial,sans-serif;margin:1rem 0}.portal-gate p{color:#dfebdf}.portal-primary{display:inline-block;margin-top:1rem;padding:.8rem 1.2rem;background:#a2e476;color:#123d2e;text-decoration:none;border-radius:5px;font-weight:700}
.portal-account-toolbar{display:flex;align-items:center;gap:1rem;font-size:.875rem}.portal-account-toolbar a{color:#245e37;text-decoration:underline;text-underline-offset:3px}.portal-account-toolbar a:focus-visible,.portal-tile:focus-visible{outline:3px solid #008000;outline-offset:3px}
@media(max-width:1100px){.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-admin-panels{grid-template-columns:1fr}.portal-stat{padding:1rem}.portal-account-toolbar{gap:.65rem}.topbar .storage-status{max-width:180px;font-size:.75rem}}
@media(max-width:760px){.portal-hero{padding:1.5rem}.portal-stats{grid-template-columns:1fr 1fr}.portal-stat.account{grid-column:1/-1}.portal-grid{grid-template-columns:1fr}.portal-tile{min-height:120px}.portal-user-heading{flex-wrap:wrap}.portal-admin-panel{padding:1.1rem}.portal-account-toolbar{font-size:.8rem}.topbar{height:auto;min-height:52px;padding-top:.6rem;padding-bottom:.6rem;gap:.75rem;flex-wrap:wrap}.portal-hero h1{font-size:2.6rem}.portal-account-toolbar a{min-height:30px;display:flex;align-items:center}.portal-gate main{padding:1rem}.portal-gate h1{font-size:3.2rem}.has-account .workspace{padding-top:68px}}

.portal-invitation{padding:24px;border:1px solid #aacb98;background:#f0f7e9;border-radius:8px;margin:0 0 24px}.portal-invitation h2{font-size:20px;margin-bottom:12px}.portal-invitation>p{font-size:14px;line-height:1.6;margin:10px 0}.portal-invitation label{font-size:14px;font-weight:700;display:grid;gap:8px;margin:18px 0}.portal-invitation input{font-size:14px;min-height:44px;background:white;padding:12px;width:100%;box-sizing:border-box}.portal-invitation-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.portal-invitation-actions .button{font-size:14px;padding:12px 16px}.portal-user-controls .button{white-space:normal}.portal-invitation[hidden]{display:none}
.portal-user-controls .button{font-size:14px;min-height:44px}.portal-admin-panel #portalUserSubmit{font-size:14px;min-height:44px}
