/* RC13: Name Forge opens over Identity rather than leaving an unsaved character. */
body.v5-name-forge-open{overflow:hidden}
.v5-name-forge-overlay{position:fixed;inset:0;z-index:100200;display:grid;place-items:center;padding:clamp(7px,2vw,20px);background:rgba(1,7,17,.83)}
.v5-name-forge-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(1160px,100%);height:min(94dvh,900px);overflow:hidden;border:2px solid #5796c6;border-radius:15px;background:#061526;box-shadow:0 15px 75px #000;color:#eaf6ff}
.v5-name-forge-hero{display:flex;align-items:center;gap:clamp(12px,2vw,20px);min-height:112px;padding:14px 20px;border-bottom:2px solid #d2a856;background:linear-gradient(90deg,rgba(3,13,28,.82),rgba(3,16,34,.34)),url('assets/page-headers/creator-dialog-artwork_2400x600.webp') center/cover}
.v5-name-forge-hero img{width:min(35%,310px);height:auto;max-height:68px;object-fit:contain}
.v5-name-forge-hero h2{margin:0;font-size:clamp(19px,2.3vw,30px);font-weight:900;text-shadow:0 2px 5px #000}
.v5-name-forge-hero p{margin:5px 0 0;font-size:clamp(12px,1.15vw,15px);text-shadow:0 2px 4px #000}
.v5-name-forge-close{margin-left:auto;padding:10px 14px;min-width:88px;background:#102e4e;border:1px solid #89caff;color:white;border-radius:8px;font-weight:900;cursor:pointer}
.v5-name-forge-panel iframe{border:0;width:100%;height:100%;background:#071426;min-height:0}
.v5-name-forge-note{padding:10px 15px;margin:0;background:#0c283f;color:#d0edff;font-size:13px}
.v5-name-applied{padding:10px 14px;background:#0d423f;border:1px solid #65d4b1;border-radius:8px;font-size:14px;font-weight:750;color:#dffef5}
@media(max-width:640px){.v5-name-forge-overlay{padding:0}.v5-name-forge-panel{height:100dvh;border-radius:0}.v5-name-forge-hero{flex-wrap:wrap;min-height:100px;padding:8px}.v5-name-forge-hero img{width:46%}.v5-name-forge-hero p{display:none}.v5-name-forge-close{min-width:70px;padding:8px}}

/* RC13 readable captions: raise small explanatory text without changing title sizes or controls. */
main :is(small,.muted,.help,.hint,.caption,.fine-print,.disclaimer){font-size:max(13px,.86rem);line-height:1.5}
.v5-construction-notice{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:17px 19px;margin:14px 0 23px;border:2px solid #e8ad4f;border-radius:13px;background:linear-gradient(100deg,rgba(64,40,11,.95),rgba(13,33,54,.96));color:#fff5e3;box-shadow:0 8px 26px rgba(0,0,0,.26)}
.v5-construction-notice .v5-construction-icon{display:grid;place-items:center;width:63px;height:63px;flex:0 0 63px;border:1px solid #ffcd6e;border-radius:13px;font-size:36px;color:#ffd36f;background:#172f42}
.v5-construction-notice>div{flex:1 1 280px}.v5-construction-notice strong{display:block;font-size:clamp(17px,1.75vw,22px);color:#ffe1a0}.v5-construction-notice p{font-size:clamp(13px,1.1vw,15px);line-height:1.6;margin:5px 0 0}
.v5-construction-notice>a{flex:0 0 auto;display:inline-block;color:#fff;border:1px solid #b6d9ec;border-radius:8px;background:#175278;text-decoration:none;padding:10px 12px;font-size:13px;font-weight:900}
.v5-construction-notice>a:focus-visible{outline:3px solid #e8ba59;outline-offset:2px}
@media(max-width:700px){.v5-construction-notice>a{width:100%;text-align:center}}

/* RC14: optional naming comes before Identity without a destructive page transition. */
.v5-name-stage{display:flex;flex-direction:column;gap:14px;border:1px solid #3679ad;border-radius:13px;padding:clamp(12px,2vw,22px);background:linear-gradient(145deg,rgba(6,22,43,.97),rgba(8,41,64,.92));color:#e7f6ff}
.v5-name-stage-head h3{font-size:clamp(23px,2.3vw,32px);margin:6px 0 10px}.v5-name-stage-head p{font-size:clamp(14px,1.3vw,17px);line-height:1.55;max-width:86ch}
.v5-name-context-chip{background:rgba(16,67,95,.75);padding:12px 14px;border-left:4px solid #e3ba58;border-radius:8px;color:#e6faff}
.v5-name-stage iframe{display:block;width:100%;height:min(960px,78dvh);min-height:560px;border:1px solid rgba(110,184,228,.65);border-radius:10px;background:#071729}
.v5-name-stage-foot{font-size:14px;color:#c4ddea}.v5-name-stage [data-module-step]{align-self:flex-start;min-height:44px;font-weight:800}
@media(max-width:720px){.v5-name-stage iframe{height:75dvh;min-height:560px}.v5-name-stage{padding:10px}}
