:root{color-scheme:dark}body.guest-page{margin:0;background:#050d1b;color:#eaf3ff;font-family:Inter,Segoe UI,Arial,sans-serif;line-height:1.65;background-image:radial-gradient(ellipse at 90% 5%,#13346280,transparent 45%),radial-gradient(ellipse at 0% 65%,#12295065,transparent 50%)}.guest-shell,.guest-preview-shell{--g-line:#27415e;--g-muted:#a4bad1;--g-blue:#95d8ff;--g-panel:#0c1a2c;color:#eaf3ff;font-family:Inter,Segoe UI,Arial,sans-serif;line-height:1.65;overflow-wrap:anywhere}.guest-shell{max-width:1180px;margin:auto;padding:0 36px 40px}.guest-shell *, .guest-preview-shell *{box-sizing:border-box}.guest-shell button,.guest-preview-shell button{font:inherit;cursor:pointer;color:inherit}.guest-shell button:focus-visible,.guest-preview-shell button:focus-visible{outline:3px solid #bceaff;outline-offset:4px}.guest-shell input,.guest-shell textarea,.guest-shell select,.guest-preview-shell input{font:inherit;color:inherit;background:#071323;border:1px solid var(--g-line);border-radius:12px;padding:12px;width:100%}.guest-shell h1,.guest-shell h2,.guest-shell h3,.guest-preview-shell h1,.guest-preview-shell h2,.guest-preview-shell h3{font-family:Georgia,serif;font-weight:400;line-height:1.15;color:#eff6ff;margin:0}.guest-shell h1,.guest-preview-shell h1{font-size:clamp(36px,5.5vw,72px);letter-spacing:-.035em}.guest-shell h2,.guest-preview-shell h2{font-size:clamp(26px,3vw,38px)}.guest-shell h3,.guest-preview-shell h3{font-size:25px}.guest-shell p,.guest-preview-shell p{color:var(--g-muted)}.guest-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0;border-bottom:1px solid var(--g-line)}.guest-brand{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;font-family:Georgia,serif!important;font-size:23px!important;padding:0}.guest-brand img{width:54px;height:54px;object-fit:contain}.guest-brand-sub{display:block;color:var(--g-muted);font:9px Segoe UI,sans-serif;letter-spacing:.25em}.guest-write-link{background:transparent;border:1px solid var(--g-line);border-radius:30px;padding:9px 16px;font-size:13px!important}.guest-write-link span{margin-left:15px;color:var(--g-blue)}.guest-hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:48px;min-height:405px;padding:55px 0}.guest-eyebrow{font-size:10px;letter-spacing:.19em;color:var(--g-blue)!important;margin:0 0 18px;text-transform:uppercase}.guest-intro{font-size:16px;max-width:520px;white-space:pre-wrap}.guest-rule{display:flex;align-items:center;gap:14px;width:160px;margin:20px 0;color:var(--g-blue)}.guest-rule:before,.guest-rule:after{content:'';height:1px;background:var(--g-line);flex:1}.guest-primary{background:#aadfff!important;border:1px solid #d0efff!important;border-radius:9px;padding:12px 22px;color:#091729!important;font-weight:600!important}.guest-primary span{margin-left:25px}.guest-orbit{position:relative;display:grid;place-items:center;min-height:300px;background:radial-gradient(ellipse,#3760a144,transparent 65%)}.guest-orbit img{width:200px;max-width:70%;filter:drop-shadow(0 0 24px #6bb7ff50)}.guest-orbit-ring{position:absolute;width:270px;height:270px;max-width:95%;border:1px solid #48698980;border-radius:50%;transform:rotate(-25deg)}.guest-orbit-ring:before{content:'✧';position:absolute;top:11px;right:28px;color:#b0dcff;font-size:28px}.guest-orbit-ring:after{content:'';position:absolute;inset:15px;border:1px dashed #36516f77;border-radius:50%}.guest-orbit-caption{position:absolute;bottom:-5px;font-size:9px;letter-spacing:.22em;color:var(--g-muted)}.guest-statbar{display:flex;gap:36px;border-top:1px solid var(--g-line);border-bottom:1px solid var(--g-line);padding:20px 0;font-size:13px;color:var(--g-muted)}.guest-statbar strong{color:#d9edff;font:25px Georgia,serif;margin-right:9px}.guest-section{margin-top:54px}.guest-section-title{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}.guest-section-title .guest-eyebrow{margin-bottom:10px}.guest-section-title>span{font-size:12px;white-space:nowrap;color:var(--g-muted)}.guest-search{width:270px;max-width:100%}.guest-search input{font-size:13px!important}.guest-character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.guest-character-card{text-align:left;padding:0!important;background:var(--g-panel);border:1px solid var(--g-line);border-radius:16px;overflow:hidden;transition:transform .2s,border-color .2s;min-width:0}.guest-character-card:hover{transform:translateY(-4px);border-color:#7ca9cf}.guest-card-art{height:180px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse at center,#1d4375,#0b1b32 80%);overflow:hidden}.guest-card-art:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 35%,#071222cf)}.guest-card-art img{width:100%;height:100%;object-fit:cover}.guest-card-art img.guest-card-crest{width:90px;height:90px;object-fit:contain;opacity:.8}.guest-card-world{position:absolute;bottom:14px;left:20px;z-index:1;color:#d7ebff;font-size:11px;letter-spacing:.08em}.guest-card-copy{padding:21px}.guest-card-copy p{font-size:12px;margin:9px 0 22px}.guest-card-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--g-line);padding-top:13px;font-size:11px;color:var(--g-muted)}.guest-card-foot>span:last-child{font-size:20px;color:var(--g-blue)}.guest-houses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.guest-house-card{display:flex;align-items:center;gap:17px;text-align:left;background:var(--g-panel);border:1px solid var(--g-line);border-radius:14px;padding:24px;min-width:0}.guest-house-card>span:nth-child(2){flex:1;min-width:0}.guest-house-card strong,.guest-house-card small,.guest-house-card .guest-eyebrow,.guest-house-card>span>span{display:block}.guest-house-card .guest-eyebrow{font-size:9px;margin:0 0 6px}.guest-house-card strong{font:23px Georgia,serif;margin-bottom:9px}.guest-house-card small,.guest-house-card>span>span:not(.guest-eyebrow){font-size:12px;color:var(--g-muted)}.guest-estate-mark{font-size:40px;line-height:1;color:#81afdb}.guest-arrow{color:var(--g-blue)}.guest-house-thumb{width:60px;height:65px;object-fit:cover;border-radius:8px}.guest-breadcrumb{display:flex;gap:14px;align-items:center;margin-top:30px;font-size:13px;color:var(--g-muted)}.guest-breadcrumb button{border:0;background:none;padding:0;color:var(--g-blue)}.guest-character-hero{display:flex;align-items:center;gap:35px;padding:40px 0;border-bottom:1px solid var(--g-line)}.guest-portrait{width:180px;height:220px;flex-shrink:0;border-radius:90px 90px 15px 15px;overflow:hidden;background:radial-gradient(#234879,#0c1c32);border:1px solid #759ac4;display:grid;place-items:center;padding:6px}.guest-portrait img{width:100%;height:100%;object-fit:cover;border-radius:85px 85px 10px 10px}.guest-portrait img[src*='journal-icon']{object-fit:contain}.guest-world{color:#badfff!important}.guest-chips{display:flex;flex-wrap:wrap;gap:10px}.guest-chips span,.guest-chips button{border:1px solid var(--g-line);background:#10233a;padding:7px 13px;border-radius:20px;font-size:12px}.guest-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.guest-photo{padding:0;background:var(--g-panel);border:1px solid var(--g-line);border-radius:12px;overflow:hidden;text-align:left}.guest-photo img{display:block;width:100%;height:210px;object-fit:cover;background:#102037}.guest-photo span{display:block;padding:12px 15px;font-size:12px;color:var(--g-muted)}.guest-empty{padding:24px;border:1px dashed var(--g-line);border-radius:12px;font-size:14px}.guest-estate-hero{text-align:center;padding:40px 0;border-bottom:1px solid var(--g-line)}.guest-moon{color:var(--g-blue);font:60px Georgia,serif}.guest-message-section{margin-top:65px;padding-top:45px;border-top:1px solid var(--g-line)}.guest-message-heading{max-width:700px;margin-bottom:28px}.guest-message-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start}.guest-note{border:1px solid var(--g-line);border-radius:12px;padding:23px;background:#0c1b2d;margin-bottom:16px}.guest-note p{white-space:pre-wrap;margin:12px 0}.guest-note small{color:var(--g-muted);font-size:11px}.guest-note strong{font:22px Georgia,serif}.guest-message-form{background:linear-gradient(135deg,#122943,#0b182b);border:1px solid #365879;border-radius:16px;padding:27px}.guest-message-form h3{font-size:25px;margin-bottom:18px}.guest-message-form label{display:block;font-size:12px;color:var(--g-muted);margin:12px 0}.guest-message-form textarea{resize:vertical;min-height:125px}.guest-message-form p{font-size:11px}.guest-message-form button{width:100%}.guest-shell footer{border-top:1px solid var(--g-line);margin-top:65px;padding-top:25px;font-size:11px;color:var(--g-muted);text-align:center;letter-spacing:.07em}.guest-status{font-size:12px;color:var(--g-muted);min-height:1.5em}.guest-lightbox{max-width:min(1100px,95vw);max-height:95vh;background:#081325;color:#eaf3ff;border:1px solid #4c718f;border-radius:14px;padding:16px}.guest-lightbox::backdrop{background:#020811e8}.guest-lightbox img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}.guest-lightbox button{display:block;margin-left:auto;background:#173655;color:#eaf3ff;border:1px solid #53718f;padding:10px 20px;border-radius:8px;cursor:pointer}.guest-lightbox p{font:14px Segoe UI,sans-serif;white-space:pre-wrap}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.guest-shell [hidden],.guest-preview-shell [hidden]{display:none!important}.guest-shell details{border:1px solid var(--g-line);border-radius:12px;padding:20px}.guest-shell summary{cursor:pointer;color:var(--g-blue)}.guest-shell .empire-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.guest-shell .profile-panel{background:var(--g-panel);padding:18px;border:1px solid var(--g-line);border-radius:12px}.guest-shell .bar{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.guest-shell .bar>*{flex:1;min-width:140px}.guest-shell .collection-item h3{font-size:18px}.guest-shell .collection-item p{font-size:12px}#guestManage[open]{display:flex;flex-direction:column;width:min(1120px,95vw);max-height:92dvh;overflow:hidden;padding:0}#guestManage>.guest-manage-head,#guestManage>.guest-manage-foot{flex:none;padding:18px 24px;background:#102036;border-bottom:1px solid #2b4565;margin:0}#guestManage>.guest-manage-foot{border-top:1px solid #2b4565;border-bottom:0;position:static;display:flex;justify-content:flex-end;gap:12px}#guestManage>.guest-manage-body{overflow:auto;padding:24px;min-height:0}#guestPreview{background:#050d1b;border:1px solid #2b4565;border-radius:14px;margin-top:18px;padding:0 20px 25px;max-height:650px;overflow:auto}#guestPreview .guest-hero{min-height:280px;gap:20px;padding:30px 0}#guestPreview h1{font-size:38px}#guestPreview .guest-orbit{min-height:210px}#guestPreview .guest-orbit-ring{width:180px;height:180px}#guestPreview .guest-orbit img{width:135px}#guestPreview .guest-topbar{padding:16px 0}#guestPreview .guest-character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#guestPreview .guest-write-link{display:none}#guestPhotoChoices label{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #2b4565;border-radius:12px}#guestPhotoChoices img{border-radius:8px;flex-shrink:0}#guestPhotoChoices input{flex-shrink:0}#guestManageStatus{white-space:pre-wrap}#guestLink{width:100%}
@media(max-width:720px){.guest-shell{padding:0 20px 28px}.guest-hero{gap:12px;min-height:0;padding:40px 0;grid-template-columns:1fr}.guest-orbit{display:none}.guest-statbar{gap:12px;justify-content:space-between;font-size:10px}.guest-statbar strong{font-size:20px;margin-right:4px}.guest-section-title{align-items:start;flex-direction:column;gap:16px}.guest-search{width:100%}.guest-character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.guest-card-art{height:135px}.guest-card-copy{padding:15px}.guest-card-copy h3{font-size:21px}.guest-card-foot{font-size:10px}.guest-houses,.guest-message-layout{grid-template-columns:1fr}.guest-character-hero{gap:20px;align-items:start}.guest-portrait{width:100px;height:140px}.guest-character-hero h1{font-size:34px}.guest-character-hero .guest-eyebrow{font-size:8px}.guest-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-photo img{height:160px}.guest-write-link{font-size:11px!important;padding:7px 10px}.guest-write-link span{display:none}.guest-brand{font-size:19px!important}.guest-brand img{width:42px;height:42px}.guest-section{margin-top:38px}.guest-shell .empire-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#guestPreview .guest-hero{grid-template-columns:1fr}#guestPreview .guest-orbit{display:none}#guestManage>.guest-manage-body{padding:14px}#guestPreview{padding:0 12px 20px}#guestPreview .guest-character-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.guest-character-card{transition:none}.guest-character-card:hover{transform:none}}
#guestManage .guest-choice,#guestManage .guest-account-choice{border:1px solid #30445e;border-radius:10px;margin:10px 0;padding:12px}#guestManage .guest-choice-fields{padding:12px 4px}#guestManage .guest-choice-fields>label{display:block;margin:9px 0}#guestManage .guest-choice summary label{display:inline-flex;align-items:center;gap:10px;cursor:pointer}#guestManage .guest-pick-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}#guestManage .guest-pick-photos label{display:flex;align-items:center;gap:10px;padding:10px;background:#102137;border:1px solid #30445e;border-radius:10px;font-size:12px}#guestManage .guest-pick-photos img{width:80px;height:80px;object-fit:cover;border-radius:7px}#guestManage summary small{font-size:12px;color:#9eafc3}#guestManage #guestLinks{margin-top:25px}.guest-private-actions{flex-basis:100%;margin-top:12px}#guestManage .guest-manage-foot{position:static!important;transform:none!important}
.guest-private-actions{grid-column:1/-1}
#guestManage>.guest-manage-head{min-height:0!important;height:auto;padding:18px 24px!important;justify-content:flex-start;isolation:auto}#guestManage>.guest-manage-head:before,#guestPreview header:before{display:none!important}#guestPreview header.guest-topbar{min-height:0!important;height:auto;background:none!important;padding:16px 0!important;overflow:visible;isolation:auto}#guestPreview .guest-topbar .guest-brand{background:none;border:0;color:#eaf3ff;padding:0;text-align:left}#guestManage .guest-manage-foot{align-items:center;flex-wrap:nowrap}#guestClose{white-space:nowrap;flex:none}#guestCreate{min-width:0}#guestManage .guest-manage-head h2{margin:0;font-size:25px}

#guestManage .guest-bulk-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0;justify-content:flex-start}#guestManage .guest-bulk-actions button{white-space:normal;text-align:center;max-width:100%}

#guestManage>.guest-manage-foot{flex-wrap:wrap}#guestManageStatus{flex:1 1 100%;margin:0;max-height:6em;overflow:auto;font:14px/1.4 Segoe UI,sans-serif;color:#d6ecff;text-align:left}#guestManageStatus:empty{display:none}#guestManage[aria-busy=true] #guestManageStatus{color:#a9dbff}

#guestMessageAlert{margin:16px auto;padding:14px 20px;max-width:1120px;border:1px solid #6096c3;border-radius:12px;background:#122d48;color:#dcf0ff;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}#guestMessageAlert[hidden]{display:none}#guestInboxDialog{width:min(850px,94vw);max-height:90dvh;overflow:auto;background:#102036;color:#eaf3ff;border:1px solid #40628a;border-radius:16px;padding:24px}#guestInboxDialog::backdrop{background:#020811c9}.guest-inbox{min-width:0}.guest-inbox-toolbar,.guest-inbox-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.guest-inbox-scroll{max-height:420px;max-height:min(420px,50dvh);overflow:auto;overscroll-behavior:contain;padding:4px;scrollbar-gutter:stable}.guest-inbox-card{border:1px solid #345574;border-radius:12px;padding:18px;margin:0 0 12px;background:#102036;color:#eaf3ff;overflow-wrap:anywhere}.guest-message-origin{display:flex;flex-direction:column;gap:5px;color:#b2ddff}.guest-message-state{font-size:12px;color:#bdcddd}.guest-message-text,.guest-owner-reply p{white-space:pre-wrap}.guest-owner-reply{margin:16px 0 4px;padding:14px 18px;border-left:3px solid #94d8ff;background:#19355080;border-radius:0 10px 10px 0}.guest-owner-reply strong{font-size:16px!important}.guest-reply-editor{margin-top:12px}.guest-reply-editor textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:85px;background:#081525;color:#eaf3ff;padding:10px;border:1px solid #54718d;border-radius:8px}.guest-inbox [data-inbox-status]{white-space:pre-wrap;color:#cde8ff}.guest-character-messages{margin:24px 0}.guest-inbox button{white-space:normal;max-width:100%}.guest-inbox [hidden]{display:none!important}

.guest-message-layout>#notes{max-height:min(560px,65dvh);overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:10px;align-self:start}.guest-inbox .guest-inbox-scroll{height:auto;max-height:min(420px,50dvh)!important;overflow-y:auto!important;min-height:0}.guest-message-layout>#notes:focus-visible,.guest-inbox-scroll:focus-visible{outline:2px solid #a9ddff;outline-offset:3px}

/* Published character headers reuse the owner's selected image and crop. */
.guest-character-hero.guest-has-header{position:relative;isolation:isolate;overflow:hidden;border-radius:20px;padding:clamp(20px,4vw,42px)}
.guest-character-hero>.guest-header-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}
.guest-character-hero.guest-has-header:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(9,17,33,.94),rgba(9,17,33,.7));pointer-events:none}
.guest-character-hero.guest-has-header>div{position:relative;z-index:1}
