:root{color-scheme:light;--navy:#07152f;--deep:#112b4b;--gold:#dfb75e;--cream:#fffaf0;--muted:#60728b}*{box-sizing:border-box}body{margin:0;background:#eaf0f7;color:#122440;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}a{color:inherit}button{cursor:pointer}.header{background:linear-gradient(115deg,#041227,#133a5b);min-height:83px;padding:12px clamp(15px,4vw,36px);display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:2px solid #c6a15a}.brand{display:flex;align-items:center;gap:7px;color:#f8f6f2;text-decoration:none;font-size:clamp(22px,4vw,30px);font-weight:900;letter-spacing:-.065em}.brand img{width:44px;height:51px;object-fit:contain}.brand b,.brand sup{color:#e8bc69}.brand sup{font-size:11px;vertical-align:super}.headerBack{font-weight:800;text-decoration:none;font-size:13px;white-space:nowrap;color:#eaf0fa}.layout{width:min(850px,calc(100% - 28px));margin:19px auto 45px}.hero{position:relative;overflow:hidden;padding:29px clamp(19px,4vw,40px);background:linear-gradient(128deg,#fffefb,#fff8e8);border:1px solid #d9b66e;border-radius:22px 22px 0 0}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:900;color:#9c701b}.hero h1{margin:10px 0;font-size:clamp(30px,4.8vw,43px);line-height:1.13;letter-spacing:-.045em;font-family:Georgia,serif;color:var(--navy)}.hero p{font-size:15px;color:#526988;max-width:490px;margin:0}.heroOrnament{position:absolute;right:27px;top:35px;color:#e5c880;font-size:40px;opacity:.55}.access,.profilePanel,.previewSection{background:#fff;padding:25px clamp(19px,4vw,39px);border:1px solid #dbe3eb;border-top:0}.access{border-radius:0 0 22px 22px}.profilePanel{border-radius:0 0 22px 22px}.profilePanel[hidden],.previewSection[hidden],.access[hidden]{display:none!important}.access h2,.panelTitle h2,.previewSection h2{margin:0;font-family:Georgia,serif;font-size:28px;letter-spacing:-.03em}.access>p{color:var(--muted);font-size:14px}.access form{display:grid;gap:13px}.hint{font-size:12px;color:var(--muted);line-height:1.55}.note{font-size:13px;font-weight:650;line-height:1.5}.note.error{color:#9b2c3b}.note.success{color:#17684d}.button{border-radius:14px;padding:14px 19px;min-height:49px;border:1px solid transparent;font-weight:850;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.button.gold{background:linear-gradient(120deg,#f4d686,#ddb052);color:#142c49;border-color:#d5ad62}.button.dark{background:#071b36;color:#fff;border:1px solid #d1a95a}.button.outline{background:#fffaf0;color:#7b4e16;border-color:#dfb866}.button:disabled{opacity:.6;cursor:progress}label{display:grid;gap:7px;color:#526b8c;font-weight:850;font-size:11px;letter-spacing:.07em}input,select,textarea{display:block;width:100%;min-width:0;background:#fff;color:#152943;border:1px solid #cbd4df;border-radius:12px;padding:12px 13px;outline:none;font-weight:500;font-size:15px;line-height:1.4;letter-spacing:0}input:focus,select:focus,textarea:focus{border-color:#bc9042;box-shadow:0 0 0 3px #efcd863c}textarea{resize:vertical;min-height:100px}.panelTitle{display:flex;gap:15px;margin-bottom:21px}.approvalNotice{color:#8b6325;font-size:12px;margin:8px 0 0}.identityRow{display:grid;grid-template-columns:166px minmax(0,1fr);gap:23px;align-items:start;padding-bottom:23px;border-bottom:1px solid #e6e8ee}.photoWrap{position:relative;display:flex;align-items:center;flex-direction:column;gap:8px}.avatar{border-radius:50%;width:142px;height:142px;border:3px solid #dbbb74;overflow:hidden;background:#092846;display:grid;place-items:center;color:#f0c66e;font-size:54px;font-family:Georgia,serif}.avatar img,.previewAvatar img{width:100%;height:100%;object-fit:cover;display:block}.cameraButton{position:absolute;top:103px;right:8px;display:grid;place-items:center;color:#ffdc84;background:#082543;border:2px solid #ebc577;border-radius:50%;width:48px;height:48px;font-size:19px;cursor:pointer;box-shadow:0 4px 15px #0d294755}.photoCaption{font-size:11px;color:#697b90;letter-spacing:0}.identityFields{display:grid;gap:13px}.rolePill,.chip{display:inline-flex;width:fit-content;max-width:100%;color:#79520d;font-size:12px;font-weight:800;background:#fff6e7;padding:7px 11px;border:1px solid #e6c581;border-radius:999px;letter-spacing:0}.fieldRow,.twoFields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.twoFields{margin-top:22px}.stack{display:grid;gap:15px}.interestField{margin-top:22px;color:#8f6617}.interestField textarea{background:#fffbf1}.photoTip{padding:13px 16px;background:#f1f6fb;border:1px solid #d2e0ed;border-radius:12px;font-size:12px;color:#526c88;line-height:1.55;margin-top:19px}.actions{display:flex;gap:11px;margin-top:20px;flex-wrap:wrap}.actions .button{flex:1;min-width:170px}.previewSection{margin-top:20px;border:1px solid #d6c49d;border-radius:22px;background:linear-gradient(180deg,#fffdfa,#ffffff)}.previewSection h2{margin:5px 0 20px}.previewCard{border:1px solid #ead8b6;border-radius:19px;background:#fff;box-shadow:0 9px 29px #12335013;padding:19px}.previewTop{display:flex;align-items:center;gap:16px}.previewAvatar{border-radius:50%;width:93px;height:93px;flex:none;background:#091c35;color:#ecc66f;display:grid;place-items:center;font-family:Georgia,serif;font-size:32px;overflow:hidden;border:2px solid #d7b268}.chips{display:flex;gap:6px;flex-wrap:wrap}.previewCard h3{margin:6px 0 0;font:700 29px/1.2 Georgia,serif;color:#0d2444}.previewCard p{color:#526880;font-size:15px;line-height:1.6;margin:16px 0}.previewLooking{padding:11px;border-radius:12px;background:#fff8e9;color:#805a20!important}.previewBottom{border-top:1px solid #e1e7ef;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap}.previewBottom>span:first-child{color:#657b94;font-size:12px}.exampleAction{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#07152f;color:#fff;padding:11px 15px;border-radius:999px;border:1px solid #d4b469;font-weight:800;font-size:12px;text-decoration:none;cursor:pointer}.exampleAction:focus-visible{outline:3px solid #bd9344;outline-offset:3px}footer{max-width:850px;padding:10px 21px 32px;margin:auto;font-size:12px;color:#607489}footer a{margin-left:14px}#profilePanel[hidden]+#previewSection{display:none}@media(max-width:600px){.header{min-height:74px}.brand{font-size:22px}.layout{margin-top:13px}.heroOrnament{display:none}.identityRow{grid-template-columns:105px minmax(0,1fr);gap:14px}.avatar{width:100px;height:100px;font-size:40px}.cameraButton{width:38px;height:38px;top:67px;right:0}.photoCaption{max-width:100px;text-align:center}.fieldRow{grid-template-columns:repeat(2,minmax(0,1fr))}.twoFields{grid-template-columns:1fr}.previewAvatar{width:75px;height:75px}.previewCard h3{font-size:25px}.previewBottom .exampleAction{width:100%;justify-content:center}.actions{flex-direction:column}.actions .button{width:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
.removePicture{border:0;background:none;color:#8b422d;font-size:11px;font-weight:800;text-decoration:underline;min-height:30px;padding:4px 8px;cursor:pointer}.removePicture[hidden]{display:none!important}.removePicture:focus-visible{outline:2px solid #b58a40;outline-offset:2px}
.gpsClearStored{justify-self:start;display:inline-block;padding:7px 4px;border:0;background:transparent;color:#805c28;text-decoration:underline;font:700 11px/1.4 system-ui;cursor:pointer;text-align:left}.gpsClearStored[hidden]{display:none!important}.gpsClearStored:focus-visible{outline:2px solid #c29b4c;outline-offset:2px}

/* Form audit: preserve readable controls at narrow iPhone widths. */
#profileForm input:not([type=checkbox]),#profileForm select,#profileForm textarea,#requestLinkForm input{min-width:0;font-size:16px}
#profileForm .fieldRow>label,#profileForm .twoFields>label{min-width:0}
#profileForm button:disabled,#requestLinkForm button:disabled{opacity:.6;cursor:wait}
@media(max-width:420px){#profileForm .identityRow{grid-template-columns:1fr}#profileForm .photoWrap{justify-self:center}#profileForm .fieldRow{grid-template-columns:1fr}}

#connectAccount label{display:block;margin:12px 0}#connectAccount input[type=checkbox]{width:auto;margin-right:8px}.connectRequest{padding:18px 0;border-bottom:1px solid #a8a8a855;overflow-wrap:anywhere}.connectRequest .button{margin:4px;white-space:normal}#connectAccount form{margin:18px 0}#profileLanguage{max-width:80px}.header{flex-wrap:wrap}#connectAccount input,#connectAccount textarea{max-width:100%}@media(prefers-color-scheme:dark){body{background:#09182b;color:#e6ecf5}.access,.profilePanel,.previewCard{background:#11263e;color:#e6ecf5}input,textarea,select{background:#09182b;color:#e6ecf5}h1,h2,h3,label,.hero p{color:inherit}}

[hidden]{display:none!important}
@media(prefers-color-scheme:dark){
:root{color-scheme:dark;--muted:#bdcbe0}
.hero,.access,.profilePanel,.previewSection,.previewCard{background:#11263e!important;color:#e5ecf6!important;border-color:#806c48}
.hero h1,.hero h2,.previewSection h2,.previewCard h3{color:#f3e4c4!important}
.hero p,.hint,.previewCard p,.previewBottom>span:first-child,.photoCaption,.approvalNotice{color:#bdcbe0!important}
#profileForm input,#profileForm textarea,#profileForm select,#requestLinkForm input,#profileLanguage,#connectAccount input:not([type=checkbox]),#connectAccount textarea{background:#091b30!important;color:#edf2fa!important;border-color:#75859a;appearance:none}
#profileForm input[type=file][hidden]{display:none!important}
#profileForm label{color:#e1c58e}.photoTip,.previewLooking{background:#1e354e!important;color:#dbe6f5!important;border-color:#75859a}
input::placeholder,textarea::placeholder{color:#b5c2d5;opacity:1}
}
