.portal-public{margin:0;background:#0d1b2b;color:#f5f8fc;font-family:system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}.portal-public *,.portal-admin *{box-sizing:border-box}.portal-header{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(18px,4vw,70px);gap:20px;flex-wrap:wrap;background:#11263d}.portal-brand{font-weight:750;font-size:clamp(22px,3vw,34px);letter-spacing:.08em;text-decoration:none;color:#fff}.portal-header nav,.portal-languages,.portal-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.portal-header nav a,.portal-preview a{color:inherit;text-decoration:none;padding:9px 13px;border:1px solid #6b829b;border-radius:6px}.portal-languages button{background:transparent;border:1px solid transparent;padding:5px;border-radius:5px;cursor:pointer}.portal-languages button[aria-pressed=true]{border-color:#abc7ec}.portal-languages img{width:26px;height:18px;display:block}.portal-main{width:100%;margin:auto}.portal-carousel,.portal-cover,.portal-slide{position:relative;background:#173650;overflow:hidden}.portal-slide,.portal-cover{min-height:clamp(340px,65vh,800px);display:grid;place-items:center;isolation:isolate}.portal-slide[hidden],.portal-live img[hidden],.portal-mobile-preview[hidden]{display:none!important}.portal-slide picture,.portal-cover picture{position:absolute;inset:0;z-index:-1}.portal-slide picture img,.portal-cover picture img{width:100%;height:100%;object-fit:cover}.portal-caption{width:100%;align-self:stretch;display:grid;place-items:center;padding:55px clamp(50px,9vw,140px);text-align:center;background:linear-gradient(90deg,rgba(0,0,0,.37),rgba(0,0,0,.46),rgba(0,0,0,.37));overflow-wrap:anywhere}.portal-caption h1{font-size:clamp(32px,5vw,68px);line-height:1.13;margin:0 0 16px}.portal-caption h2{font-size:clamp(20px,2.4vw,34px);margin:0 0 12px;font-weight:500}.portal-caption p{font-size:clamp(15px,1.4vw,21px);white-space:pre-wrap;max-width:800px;margin:12px auto}.portal-cta{display:inline-block;color:white;border:1px solid #fff;border-radius:6px;padding:12px 24px;text-decoration:none;margin-top:12px;background:#1a4777}.portal-prev,.portal-next{position:absolute;top:50%;transform:translateY(-50%);background:#10263cc9;color:white;border:1px solid #ffffff50;border-radius:7px;padding:12px;cursor:pointer;font-size:20px}.portal-prev{left:12px}.portal-next{right:12px}.portal-dots{display:flex;gap:10px;align-items:center;justify-content:center;position:absolute;bottom:15px;left:0;right:0}.portal-dots button{border:1px solid white;background:#182c45;cursor:pointer;color:#fff;border-radius:50%;width:14px;height:14px;padding:0}.portal-dots button[aria-current=true]{background:white}.portal-dots .portal-pause{border-radius:5px;width:28px;height:28px}.portal-preview{padding:14px;background:#664d13;text-align:center}.portal-empty{display:grid;place-content:center;text-align:center;min-height:60vh;background:linear-gradient(125deg,#142c46,#203e5c)}.portal-empty h1{font-size:clamp(40px,7vw,80px);margin:0;letter-spacing:.08em}.portal-empty a{color:#d1e5ff}.portal-shell-link{color:inherit;text-decoration:none;white-space:nowrap;font-size:13px;border:1px solid currentColor;border-radius:5px;padding:6px 9px}.portal-admin{max-width:1350px;margin:0 auto;padding:16px}.portal-admin-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:20px}.portal-admin-header h1{margin:0}.portal-admin-header p{margin:5px 0}.portal-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #8794a5;border-radius:6px;background:transparent;color:inherit;padding:8px 12px;text-decoration:none;cursor:pointer;font:inherit;font-size:14px}.portal-btn.primary{background:#22588b;color:white;border-color:#22588b}.portal-btn.danger{color:#c44f4f}.portal-group{padding:16px;border:1px solid #8794a560;border-radius:10px;margin-bottom:18px}.portal-group h2{font-size:19px;margin:0}.portal-help{font-size:13px;opacity:.8}.portal-admin-row{display:flex;align-items:center;gap:12px;border:1px solid #8794a550;border-radius:7px;padding:9px;margin:8px 0}.portal-admin-row.dragging{opacity:.5}.portal-grip{cursor:grab;font-size:24px}.portal-thumb{width:100px;height:64px;object-fit:cover;border-radius:5px;flex-shrink:0}.portal-placeholder{display:grid;place-items:center;background:#8794a530}.portal-row-text{flex:1;min-width:100px;display:grid;gap:4px;overflow-wrap:anywhere}.portal-on,.portal-off{font-size:12px}.portal-on{color:#248b68}.portal-off{opacity:.8}.portal-admin-empty{border:1px dashed #8794a5;padding:35px;text-align:center;border-radius:8px}.portal-edit-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;margin-bottom:20px}.portal-edit label{display:grid;gap:6px;margin-bottom:12px;font-weight:500}.portal-edit input:not([type=checkbox]),.portal-edit select,.portal-edit textarea{width:100%;padding:8px;border:1px solid #8794a5;border-radius:5px;background:transparent;color:inherit;font:inherit}.portal-edit select option{color:#111;background:white}.portal-edit .portal-check{display:flex;align-items:center;gap:8px}.portal-validation{color:#d75858}.portal-live{position:relative;min-height:220px;aspect-ratio:16/9;background:#173650;border-radius:8px;overflow:hidden;color:#fff;display:grid;place-items:center}.portal-live img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.portal-live-caption{position:relative;text-align:center;padding:15px;background:#0005;width:100%;overflow-wrap:anywhere}.portal-live-caption h2{font-size:24px}.portal-mobile-preview{max-width:220px;max-height:300px;object-fit:contain}.portal-edit-media{min-width:0}.portal-public button:focus-visible,.portal-public a:focus-visible{outline:3px solid #ffdb75;outline-offset:3px}@media(max-width:780px){.portal-edit-grid{grid-template-columns:1fr}.portal-admin-row{flex-wrap:wrap}.portal-admin-row .portal-actions{width:100%}.portal-header{gap:10px}.portal-caption{padding:50px 45px}.portal-thumb{width:74px;height:52px}}

/* REV02: use the same welcome-stage image and sizing as Account/Login. */
.portal-with-welcome .portal-header{position:absolute;inset:0 0 auto;z-index:5;background:linear-gradient(#06162ee8,transparent);padding:16px clamp(16px,4vw,48px)}
.portal-with-welcome .portal-carousel .portal-slide{min-height:100vh;min-height:100dvh}
.portal-with-welcome .portal-carousel .portal-welcome-slide{background:var(--welcome-background)}
.portal-with-welcome .portal-carousel .portal-caption{padding-top:120px;padding-bottom:72px}
@media(max-width:600px){.portal-with-welcome .portal-carousel .portal-welcome-slide{background-size:cover}.portal-with-welcome .portal-carousel .portal-caption{padding-top:160px}}
.portal-public{background:var(--portal-primary,#06162e)}.portal-header{background:var(--portal-primary,#06162e)}.portal-cta{background:var(--portal-secondary,#156ac2)}.portal-brand{display:flex;align-items:center;gap:12px}.portal-logo{max-height:48px;max-width:130px;object-fit:contain}.portal-language-combo{position:relative;z-index:10}.portal-language-combo summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;border:1px solid #6b829b;padding:9px;border-radius:6px}.portal-language-combo summary::-webkit-details-marker{display:none}.portal-language-combo form{position:absolute;right:0;top:100%;min-width:150px;padding:5px;background:var(--portal-primary,#06162e);border:1px solid #6b829b;border-radius:6px}.portal-language-combo button{display:flex;align-items:center;gap:8px;width:100%;padding:8px;color:white;background:transparent;border:0;text-align:left;cursor:pointer}.portal-language-combo button[aria-current=true]{background:var(--portal-secondary,#156ac2)}.portal-contact{padding:24px;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}.settings-preview{color:white;border-radius:8px;overflow:hidden}.settings-preview-header{padding:12px;display:flex;gap:10px;align-items:center}.settings-preview-header img{width:50px;height:40px;object-fit:contain}.settings-preview-header span{margin-left:auto;padding:6px 10px;border-radius:5px}.settings-preview>img{width:100%;height:auto;display:block}.settings-preview p{padding:12px;white-space:pre-wrap}.settings-preview [hidden]{display:none!important}.portal-edit fieldset{min-width:0}.portal-edit fieldset label{display:block;margin:10px 0}.portal-edit fieldset label.portal-check{display:flex}

/* Optional complete-artwork portal layout. */
.portal-artwork{background:#edf5fb url(../images/portal-background.webp) center/cover fixed no-repeat;color:#07345b}.portal-artwork .portal-header,.portal-artwork.portal-with-welcome .portal-header{background:var(--portal-primary,#07345b);color:white;position:relative}.portal-artwork.portal-with-welcome .portal-carousel .portal-slide{min-height:clamp(280px,calc(100dvh - 85px),1000px)}.portal-artwork.portal-with-welcome .portal-carousel .portal-welcome-slide{background-size:contain,cover;padding:0}.portal-artwork .portal-slide,.portal-artwork .portal-cover{background:#edf5fb url(../images/portal-background.webp) center/cover no-repeat}.portal-artwork .portal-slide picture img,.portal-artwork .portal-cover picture img{object-fit:contain}.portal-artwork .portal-caption{color:white}.portal-artwork .portal-contact{background:#ffffffc9;color:#07345b}

/* REV04: public artwork is independent of the authentication layout. */
.portal-header nav .portal-login-link{background:var(--portal-secondary,#156ac2);border-color:#ffffff75;color:#fff;font-weight:650}.portal-header nav .portal-login-link:hover{filter:brightness(1.12)}
