[hidden] { display: none !important; }
.gate { min-height: 100dvh; padding: 2rem 1rem; display: grid; place-items: center; }
.gate-card { background: #fff; border: 1px solid #dce4ef; border-radius: 18px; padding: clamp(1.25rem, 5vw, 2.5rem); width: min(100%, 29rem); box-shadow: 0 12px 45px #21375a12; }
.gate-brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.gate-card h1 { margin: 1.25rem 0 .4rem; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; }
.gate-card p { margin: .5rem 0 1rem; color: #405069; }
#gate-status:not(:empty) { background: #eef4ff; border-radius: 8px; padding: .7rem .85rem; overflow-wrap: anywhere; }
.gate-card form, #gate-code-field, #gate-login-field, #gate-password-field { display: grid; gap: .65rem; }
.gate-card label { font-weight: 650; }
.gate-card input { width: 100%; border: 1px solid #aab7c9; background: white; color: #15233c; border-radius: 8px; padding: .7rem .85rem; font: inherit; }
.gate-card .button { justify-content: center; margin-top: .3rem; }
.gate-card button:disabled { cursor: wait; opacity: .6; }
.gate-links { display: flex; justify-content: space-between; gap: .65rem; flex-wrap: wrap; }
.gate-link { background: none; border: 0; padding: .3rem 0; color: #164aab; text-decoration: underline; text-underline-offset: .17em; font: inherit; cursor: pointer; }
#portal-exit { margin-left: auto; white-space: nowrap; }
#owner-open:not([hidden]) + #portal-exit { margin-left: 0; }
#owner-panel { color: inherit; border: 1px solid #dce4ef; width: min(32rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); border-radius: 14px; padding: 0; }
#owner-panel::backdrop { background: #0b1918a6; }
.owner-inner { padding: clamp(1rem, 4vw, 1.5rem); }
.owner-inner header, .owner-code-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.owner-inner h2 { margin: 0 0 .5rem; }
.owner-code-row input { border: 1px solid #aab7c9; border-radius: 8px; padding: .55rem; flex: 1; min-width: 0; font: inherit; }
.owner-list { list-style: none; margin: .75rem 0 0; padding: 0; }
.owner-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; border-top: 1px solid #dce4ef; padding: .5rem 0; }
.owner-list strong { overflow-wrap: anywhere; }
.owner-list small { margin-right: auto; }
