*{box-sizing:border-box}
:root{--navy:#071e3e;--green:#087865;--muted:#526577;--line:#d7e3e5;color-scheme:light;font:100%/1.55 Manrope,Arial,sans-serif;color:var(--navy);background:#f4f8f8}
body{margin:0}
.frame{width:min(1120px,calc(100% - 3rem));margin-inline:auto}
.masthead{background:white;border-bottom:1px solid var(--line)}
.masthead .frame{display:flex;align-items:center;gap:1.5rem;min-height:76px}
.masthead img{width:104px;height:auto}
.masthead span{border-left:1px solid var(--line);padding-left:1.5rem;font-size:.94rem;font-weight:650}
.portal-layout{display:grid;grid-template-columns:1.12fr 1fr;align-items:stretch;gap:clamp(1rem,3vw,3rem);margin-block:clamp(2rem,8vh,6rem)}
.intro{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;padding:clamp(1.6rem,4vw,3.5rem);display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(130deg,#e2f4ec,#d9ecef);min-width:0}
.intro:after{content:"";position:absolute;z-index:-1;width:80%;aspect-ratio:1;border:1px solid #fff9;border-radius:50%;bottom:-35%;right:-16%;box-shadow:0 0 0 35px #ffffff30,0 0 0 70px #ffffff22}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(2rem,4vw,3.6rem);line-height:1.08;letter-spacing:-.055em;max-width:12ch}
.intro p{margin-top:1rem;max-width:34ch;color:#355963}
.equipment-art{align-self:flex-end;width:min(80%,320px);height:auto}
#panel{min-width:0;align-self:center;display:grid;gap:1rem}
.shop-card,.shop-form,.account,.notice{padding:clamp(1.15rem,3vw,2rem);border:1px solid var(--line);border-radius:18px;background:white}
.shop-form{display:grid;gap:1rem}
h2{font-size:1.4rem;letter-spacing:-.035em;line-height:1.25}
h3{font-size:1.08rem}
label{display:grid;gap:.35rem;font-size:.9rem;font-weight:650}
input{min-width:0;width:100%;font:inherit;font-size:1rem;font-weight:450;color:var(--navy);background:white;border:1px solid #aebfc7;border-radius:9px;padding:.75rem}
input:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #189c88;outline-offset:3px}
.shop-action{font-family:inherit;cursor:pointer;min-height:44px}
button[type=submit]{background:var(--green);border-color:var(--green);color:white}
.shop-action:hover{filter:brightness(.95)}
.shop-action:disabled{opacity:.65;cursor:wait}
.auth-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem .75rem;border-top:1px solid var(--line);padding-top:.6rem}
.auth-actions button{background:transparent;border:0;padding:.25rem 0}
.form-error{color:#982039}
.portal.signed .portal-layout{grid-template-columns:1fr;margin-block:2rem}
.signed .intro{flex-direction:row;align-items:center;gap:1rem;padding:1.5rem 2rem}
.signed h1{max-width:none;font-size:clamp(1.7rem,3vw,2.4rem)}
.signed .intro p{max-width:none;margin-top:.4rem}
.signed .equipment-art{width:100px;align-self:center}
.account{display:flex;align-items:center;justify-content:space-between;gap:1rem;overflow-wrap:anywhere;padding:1rem 1.4rem}
.signed .shop-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.shop-form :is(h2,output,button[type=submit],.form-error){grid-column:1/-1}
.signed .shop-form button[type=submit]{justify-self:start}
.shop-card summary{font-weight:700;cursor:pointer;color:var(--green)}
.shop-card .shop-form{margin-top:1rem;background:#f7faf9}
.shop-card .shop-action{margin:.5rem .5rem 0 0}
.shop-facts{margin:1rem 0;gap:.45rem 1rem}
output,.notice{color:var(--muted)}
output{background:#edf6f3;padding:.8rem;border-radius:8px}
@media(max-width:720px){
.frame{width:calc(100% - 2rem)}
.masthead .frame{min-height:60px;gap:1rem}
.masthead span{padding-left:1rem;font-size:.85rem}
.portal-layout,.portal.signed .portal-layout{grid-template-columns:1fr;margin-block:1rem 2rem}
.intro,.signed .intro{flex-direction:row;align-items:center;padding:1.25rem;gap:.4rem}
.intro p{font-size:.9rem;margin-top:.5rem}
.equipment-art,.signed .equipment-art{width:24%;align-self:center}
.signed .shop-form{grid-template-columns:1fr}
.account{flex-wrap:wrap}
}
