*{box-sizing:border-box}body{margin:0;background:#f6f7fa;color:#132448;font:16px/1.55 system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}header{background:white;border-bottom:1px solid #dddfe6}.bar,main,footer{max-width:1320px;margin:auto;padding:0 clamp(18px,4vw,62px)}.bar,nav,.brand,footer,.actions,.split,.sectionhead{display:flex;align-items:center}.bar{min-height:78px;gap:32px;justify-content:space-between}.brand{gap:10px;line-height:1.1}.brand img{border-radius:50%;width:45px}.brand b{font:600 22px Georgia}.brand em{display:block;color:#756027;font:600 10px system-ui;letter-spacing:.26em;text-transform:uppercase}.profile,.btn,button{border:1px solid #c6ccd9;border-radius:7px;padding:10px 16px;font-weight:650;cursor:pointer;background:white;color:#18356b}.profile{background:#152e65;color:white;border:none}nav{gap:25px}nav a{font-size:14px;font-weight:600;color:#526079;padding:8px 0}nav a.active{color:#142f69;border-bottom:2px solid #b79850}main{padding-top:30px;min-height:72vh}.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.25fr .8fr;align-items:center;background:radial-gradient(ellipse at 73% 110%,#244a9a,transparent 62%),linear-gradient(110deg,#0b1e47,#162f72 72%,#102452);color:white;border-radius:17px;padding:clamp(27px,4vw,55px);min-height:334px}.hero:after{content:"";position:absolute;z-index:-1;inset:0;background:repeating-radial-gradient(ellipse at 90% 130%,transparent 0 25px,#9cb7ff18 26px,transparent 27px 34px);mask-image:linear-gradient(100deg,transparent 42%,black)}.eyebrow{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.16em;color:#826421}.hero .eyebrow{color:#f0d396}.hero h1,h1,h2,h3,.sealword{font-family:Georgia,serif;font-weight:normal;line-height:1.07}.hero h1{font-size:clamp(48px,5.1vw,82px);margin:14px 0 15px;letter-spacing:-.042em}.hero h1 em{color:#ebcd89}.hero p{color:#e4e9f6;max-width:490px;margin:0 0 24px}.actions{gap:12px;flex-wrap:wrap}.gold{background:#f0d28d;color:#172747;border-color:transparent}.glass{color:white;border:1px solid #8797ba;background:#ffffff0a}.seal{margin:auto;display:grid;place-items:center;width:clamp(174px,18vw,250px);aspect-ratio:1;border:1px solid #be9c54;border-radius:50%;box-shadow:0 0 0 8px #28427c,0 0 0 9px #d2b16e80,0 10px 35px #030d2e55;background:radial-gradient(circle,#304a8c,#12295d);position:relative}.seal img{border-radius:50%;width:68%;aspect-ratio:1}.seal small,.sealword{position:absolute;color:#e8d296;letter-spacing:.17em;font-size:10px}.seal small{top:5%}.sealword{bottom:6%;font:600 10px system-ui}.sectionhead,.split{justify-content:space-between;gap:16px}.sectionhead{margin:28px 0 14px}.sectionhead h2,h2{font-size:clamp(26px,2.7vw,37px);margin:0}.sectionhead a,.more{font-size:14px;color:#254c89;font-weight:650}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card,.panel,details,.banner{border:1px solid #dce0e8;background:#fff;border-radius:12px;padding:22px}.card{display:flex;flex-direction:column;align-items:flex-start;transition:.18s}.card:hover{border-color:#9daec8;transform:translateY(-2px)}.icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:#e8edf9;color:#284c91}.icon svg{width:25px;height:25px}.card:nth-child(2) .icon{background:#f6edda;color:#876427}.card:nth-child(3) .icon{background:#e8f0ee;color:#326559}.card h3,.panel h3{font-size:25px;margin:17px 0 6px}.card p,.panel p,.intro{color:#526077;margin:0 0 16px}.more{margin-top:auto}.banner{display:flex;align-items:center;gap:22px;background:#f3eddf;border-color:#e4d6b6;margin:22px 0}.banner h3{margin:4px 0;font-size:26px}.banner .btn{margin-left:auto;white-space:nowrap}.date{text-align:center;color:#56421d;border-right:1px solid #d2c19b;padding-right:20px;font-size:12px;letter-spacing:.13em}.date b{font:40px Georgia;display:block}.back{display:inline-block;color:#476085;font-size:14px}.page{padding:18px 0}.page h1{font-size:clamp(38px,5vw,62px);margin:8px 0 12px}.cols{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.panel{margin:12px 0}.panel h2{margin-bottom:16px}.form{display:grid;gap:15px}label{display:grid;gap:5px;font-weight:600;font-size:14px}input,select,textarea{width:100%;border:1px solid #adb8ca;padding:10px;border-radius:6px;color:#162a50;background:white}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.primary{background:#193977;color:white}.result{background:#edf2f8;padding:15px;border-radius:8px;white-space:pre-line;overflow-wrap:anywhere}.result:empty{display:none}details{margin:10px 0}summary{cursor:pointer;font-weight:650}details p{margin-bottom:0}.list{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));padding:0;list-style:none}.list li{padding:9px;border-bottom:1px solid #e0e5ed}.status{color:#70551c;background:#faf1dd;padding:5px 9px;border-radius:5px;font-size:13px}.tab{background:#eef2f9}.sectionhead small{color:#526177}footer{gap:18px;flex-wrap:wrap;border-top:1px solid #dce0e8;padding-top:22px;padding-bottom:24px;margin-top:32px;font-size:13px;color:#526177}footer a{margin-left:auto}.metric{font:34px Georgia}.muted{color:#576780}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #af882e;outline-offset:3px}
@media(max-width:840px){.bar{gap:14px}nav{gap:12px}.brand b{font-size:18px}.grid{gap:10px}.card{padding:15px}.cols{grid-template-columns:1fr}}@media(max-width:680px){.bar{flex-wrap:wrap;padding-top:10px;gap:5px}.profile{font-size:14px;padding:8px 12px}nav{order:3;width:100%;justify-content:space-between}.hero{grid-template-columns:1fr;padding:24px 20px}.hero .seal{position:absolute;width:88px;right:15px;top:22px}.seal small,.sealword{display:none}.hero h1{font-size:42px;max-width:calc(100% - 88px)}.hero .eyebrow{max-width:65%;font-size:10px}.hero p{margin:13px 0 17px}.actions{gap:7px}.btn,button{padding:8px 12px}.grid{grid-template-columns:1fr}.card{display:grid;grid-template-columns:44px 1fr;column-gap:14px}.card .icon{grid-row:1/4}.card h3{margin:0;font-size:23px}.card p{margin:3px 0 5px}.banner{flex-wrap:wrap;padding:16px;gap:12px}.banner>div:nth-child(2){flex:1}.banner .btn{margin-left:0}.sectionhead{align-items:baseline}.brand img{width:36px}.sectionhead h2{font-size:28px}main{padding-top:15px}.sectionhead a{font-size:12px}.panel{padding:16px}footer a{margin-left:0}}
.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;margin:14px 0}th,td{padding:9px 8px;border-bottom:1px solid #dde3ec;vertical-align:top}th,dt{font-weight:650;color:#29477a}.draft,.sourceText{white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0}.draft:not(:empty){padding:16px;background:#f2f5fa;border-radius:8px}.sourceText{max-height:55vh;overflow:auto;padding:12px;background:#f6f8fa}.extras .panel{margin:0}.extras h2{font-size:25px}.extras p{margin:10px 0 16px}dd{margin:0 0 10px}summary small{color:#685320;padding-left:8px}@media(max-width:680px){.tablewrap{font-size:14px}th,td{padding:8px 5px}}
.founding>p{max-width:80ch}.founding-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.founding-pair h3{margin-top:0}.founding-pair ul{margin:0;color:#526077;padding-left:1.4em}@media(max-width:680px){.founding-pair{grid-template-columns:1fr;gap:0}}

/* Sapphire royal glass */
:root{color-scheme:light;--royal:#123caa;--deep:#0a1d55;--gold:#d4aa50;--ink:#132750}
body{background:radial-gradient(circle at 90% 10%,#dfd2fa 0,transparent 28%),radial-gradient(circle at 3% 42%,#cce9ff 0,transparent 28%),linear-gradient(145deg,#f5f8ff,#e9efff 52%,#f8eff9);color:var(--ink)}
header{background:linear-gradient(115deg,#091d55ed,#1745a1ed);border-bottom:1px solid #d8b868;box-shadow:0 8px 30px #0c225533;color:white}
.brand em{color:#f2d787}nav a{color:#ecf3ff}nav a.active{color:#fff1c2;border-color:#efce78}
.hero{background:radial-gradient(ellipse at 72% 20%,#3883eb 0,transparent 42%),radial-gradient(ellipse at 85% 100%,#783e9b 0,transparent 38%),linear-gradient(125deg,#091b55,#174cc3 57%,#10266a);border:1px solid #e4c67b;box-shadow:inset 0 1px 0 #ffffff90,0 17px 35px #1b347342}
.hero h1{text-shadow:0 3px 14px #06133f90}.hero h1 em{color:#ffe099}.hero .eyebrow{color:#ffe4a0}
.card,.panel,details{background:linear-gradient(145deg,#ffffffed,#eef4fff0);border:1px solid #ffffff;box-shadow:inset 0 1px 0 #fff,0 8px 24px #1a3d8320;backdrop-filter:blur(16px)}
.card{border-top:3px solid #d6b35f}.card:nth-child(3n+2){border-top-color:#966bc7}.card:nth-child(3n){border-top-color:#4ca9bd}
.banner{background:linear-gradient(120deg,#fff6dc,#f3dca8 50%,#e8dcfa);border:1px solid #d3b970;box-shadow:inset 0 1px #fff,0 10px 24px #876b3826}
.icon{background:linear-gradient(145deg,#e0ecff,#b8d4ff);box-shadow:inset 0 1px 2px #fff,0 4px 9px #1a44902b}
.profile,.btn,button{display:inline-flex;align-items:center;justify-content:center;position:relative;border:1px solid #b99547;border-radius:10px;background:linear-gradient(160deg,#fff4c8 0%,#f5d681 42%,#c99a3c 100%);color:#18264a;box-shadow:inset 0 1px 1px #fff, inset 0 -2px 0 #a67523,0 4px 0 #8c682d,0 8px 16px #132c6340;text-shadow:0 1px #ffffff80;transition:transform .16s ease,box-shadow .16s ease}
.profile,.primary{background:linear-gradient(160deg,#6296ff,#1b50c2 48%,#102c7b);color:white;border-color:#a6c3ff;box-shadow:inset 0 1px #ffffffa0,inset 0 -2px #0b286a,0 4px 0 #102c69,0 8px 16px #132c6340;text-shadow:0 1px 2px #071a56}
.glass{background:linear-gradient(145deg,#ffffff42,#ffffff14);color:white;border-color:#d0dfff;box-shadow:inset 0 1px #ffffffb0,0 4px 0 #0d2b71,0 8px 16px #08183d55;text-shadow:0 1px 2px #071a56}
.profile:hover,.btn:hover,button:hover{filter:brightness(1.08);transform:translateY(-2px)}
.profile:active,.btn:active,button:active{transform:translateY(3px);box-shadow:inset 0 2px 5px #24335b44,0 1px 0 #80642e}
button:disabled{opacity:.55;cursor:not-allowed;transform:none}
a.card:hover{box-shadow:inset 0 1px #fff,0 14px 27px #1a3d8340}
summary{padding:9px 12px;border-radius:8px;background:linear-gradient(145deg,#fff,#e2ecff);box-shadow:inset 0 1px #fff,0 3px 7px #1a3d8320}
input:not([type=checkbox]),select,textarea{border-color:#a8bade;background:#fffffff2;box-shadow:inset 0 2px 5px #10265a15;border-radius:8px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b77a00;outline-offset:3px}
footer{border-color:#aebfe0;color:#293e65}
@media(max-width:680px){nav{gap:4px}nav a{font-size:12px}.bar{row-gap:8px}.card:not(a){display:block}.hero{min-height:300px}.profile,.btn,button{min-height:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

.install-help{max-width:1196px;margin:24px auto;padding:12px 16px;border-radius:14px}
.install-help summary{color:#18376f}
.install-content{padding:12px 8px 2px;color:#344765}
.install-content p{margin:6px 0 12px}
.install-content button[hidden]{display:none}
@media(max-width:680px){
 body{background:radial-gradient(circle at 85% 8%,#f0e8ff,transparent 22%),linear-gradient(155deg,#f6f9ff,#e9f0ff 55%,#faf4fc)}
 .bar,main,footer{padding-left:16px;padding-right:16px}
 header .bar{padding-top:9px;padding-bottom:8px;column-gap:8px}
 .brand b{font-size:17px}.brand em{font-size:10px}.brand img{width:38px}
 nav{overflow-x:auto;justify-content:flex-start;gap:6px;scrollbar-width:none;padding:4px 0}
 nav a{font-size:13px;white-space:nowrap;padding:6px 9px;border-radius:9px;background:#ffffff12}
 nav a.active{background:#ffffff24}
 main{padding-top:14px}.hero{border-radius:18px;min-height:0;padding:27px 20px}
 .hero h1{font-size:clamp(37px,10vw,44px);line-height:1.05;margin:12px 0}
 .hero p{font-size:15px;line-height:1.55}.hero .seal{width:75px;right:17px;top:23px}
 .hero .eyebrow{font-size:11px;line-height:1.45}
 .profile,.btn,button{font-size:14px;line-height:1.3;min-height:44px;padding:9px 13px;border-radius:11px}
 .profile{min-height:40px;padding:8px 12px}
 .actions{gap:10px}.actions .btn{flex:0 1 auto}
 .sectionhead{margin:25px 0 12px}.sectionhead h2,h2{font-size:26px;line-height:1.16}
 .grid{gap:10px}.card,.panel,details{border-radius:15px}
 .card{padding:16px}.card h3,.panel h3{font-size:22px;line-height:1.15}
 .card p,.panel p,.intro{font-size:15px;line-height:1.55}
 .card:not(a){display:block}.card:not(a) h3{margin:0 0 7px}
 .page h1{font-size:38px;line-height:1.08}.page{padding:14px 0}
 .panel{padding:17px}.panel h2{margin-bottom:12px}
 label{font-size:14px}input:not([type=checkbox]),select,textarea{font-size:16px;min-height:44px}
 .list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}.list li{overflow-wrap:anywhere;font-size:14px}
 .banner{border-radius:15px}.install-help{margin:22px 16px;padding:10px}
 footer{font-size:13px}
}

/* Sapphire lists and opened panels */
details[open]{border-color:#d3b35f;background:linear-gradient(150deg,#ffffff,#e5edff);box-shadow:inset 0 1px #fff,0 9px 24px #112d7024}
summary{color:#173c8e;border:1px solid #d2b364;background:linear-gradient(145deg,#fff8e6,#dceaff);line-height:1.4}
details[open]>summary{color:#fff;background:linear-gradient(135deg,#193b91,#255bb8);border-color:#c9a858}
.royal-list{list-style:none;padding:0;margin:14px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.royal-list li,.list li{background:linear-gradient(145deg,#fff,#edf3ff);border:1px solid #d9e3f8;border-left:3px solid #c9a34e;border-radius:9px;padding:9px 11px;color:#19396f;box-shadow:0 3px 8px #18397112}
.list{gap:8px}.tablewrap{border:1px solid #ccd9f1;border-radius:10px}
th{background:#193d8c;color:#fff}td{background:#f9fbff;color:#21395e}tbody tr:nth-child(even) td{background:#edf3ff}
@media(max-width:680px){.royal-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.royal-list li{font-size:14px;line-height:1.35}.tablewrap th,.tablewrap td{padding:10px 8px}}
.portrait{width:112px;height:112px;object-fit:cover;border-radius:50%;border:3px solid #d4aa50;box-shadow:0 5px 15px #173b7a33}.portrait-mini{width:42px;height:42px;object-fit:cover;border-radius:50%;border:2px solid #d4aa50}.roster-person{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.portrait-editor{margin-top:12px}
.queen-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.queen-tile{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #d7ba74;border-radius:12px;background:linear-gradient(145deg,#fffdf6,#e7efff);color:#17396f}.portrait-placeholder{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#dfebff}
.welcome-card{margin:18px 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px;border:1px solid #d5b562;border-radius:18px;background:linear-gradient(135deg,#fff9e9,#e8efff);box-shadow:0 8px 24px #183b8026}.welcome-card h2{font-size:27px;margin:0}.welcome-card p{margin:0;color:#41567b}.welcome-portrait{width:150px;height:150px;object-fit:cover;border-radius:20px;border:3px solid #d5b562;box-shadow:0 8px 22px #12346a3a}.welcome-portrait[hidden]{display:none}a.profile:not([href]){cursor:default;overflow-wrap:anywhere}@media(max-width:680px){.welcome-card{padding:14px;gap:10px}.welcome-card h2{font-size:23px}.welcome-card p{width:100%;font-size:14px}.welcome-portrait{width:120px;height:120px}.bar .profile{max-width:55%;font-size:12px;line-height:1.3}}
.queen-name{font-family:"Brush Script MT","Snell Roundhand","Apple Chancery","Segoe Script",cursive!important;font-weight:700!important;letter-spacing:.01em;color:#95620d!important;background:linear-gradient(180deg,#fffbe6 0%,#ffeaa0 25%,#d5a530 55%,#fff1ab 72%,#a36a0d 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 1px 0 #fff3ae,0 2px 2px #73470590,0 4px 8px #3e280d50;line-height:1.3!important}
.profile.queen-name{font-size:clamp(24px,3vw,33px);background-color:#12377e;box-shadow:inset 0 1px #fff8,0 3px 0 #142c66;padding:7px 18px}
.welcome-card .queen-name{font-size:clamp(34px,6vw,55px)}
.claim-top{font-weight:800}
@media(max-width:680px){.hero .actions .claim-top{width:100%;min-height:48px;font-size:16px}.profile.queen-name{font-size:25px;max-width:62%;padding:6px 12px}.welcome-card .queen-name{font-size:39px}}
.roster-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0}.roster-card{min-width:0;padding:12px;border:1px solid #d4b15c;border-radius:14px;background:linear-gradient(140deg,#fff,#e5edff);display:grid;gap:8px}.roster-photo{overflow:hidden;border-radius:10px;background:#10275f}.roster-photo>img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain}.photo-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(125deg,#1458c8,#12236f 55%,#7a2ca2);border-top:2px solid #e5bf60;padding:8px 12px;color:#ffe6a1;font:700 27px "Brush Script MT","Snell Roundhand",cursive;line-height:1.2}.photo-banner img{width:45px;height:45px;object-fit:cover;border-radius:50%}.roster-card .actions{gap:8px}.roster-card button{font-size:14px}.roster-card button[hidden],.roster-photo[hidden]{display:none}@media(max-width:680px){.roster-gallery{grid-template-columns:1fr}.roster-photo>img{max-height:500px}}
.recognition-panel{border:1px solid #d4b05a;background:linear-gradient(145deg,#fffdf5,#e8efff)}.recognition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.recognition-card{overflow:hidden;border-radius:14px;background:white;border:1px solid #d8b65c;box-shadow:0 5px 18px #1a367c26}.recognition-card img{display:block;width:100%;height:auto}.recognition-card>div{padding:14px}.recognition-card h3{color:#1c3c88;margin:7px 0}.recognition-card small{color:#665017}.recognition-card p{margin:8px 0 0}

/* Refined Sapphire glass */
:root{--sapphire:#173d9a;--sapphire-deep:#0b1e51;--queen-gold:#d8b35e}
body{background:radial-gradient(ellipse at 90% 8%,#efeaff 0,transparent 34%),linear-gradient(160deg,#f7f9ff 0%,#eef3ff 65%,#fbf8fd 100%)}
header{background:linear-gradient(110deg,#0b205a,#183d91 65%,#224999);box-shadow:0 5px 20px #0c225524}
.hero{border-radius:22px;border-color:#d9bb73;background:radial-gradient(ellipse at 80% 12%,#578be8a8 0,transparent 42%),radial-gradient(ellipse at 92% 102%,#7e4b9985 0,transparent 39%),linear-gradient(120deg,#0b1e52,#1748a6 63%,#182b70);box-shadow:inset 0 1px 0 #ffffff8a,0 15px 32px #192f6a33}
.hero:after{opacity:.48}
.card,.panel,details{border-radius:17px;background:linear-gradient(150deg,#fffffffa,#f1f5ffed);border:1px solid #fff;box-shadow:inset 0 1px 0 #fff,0 8px 22px #203d7920}
.card{border-top:2px solid #d6b35f}.card h3,.panel h3{line-height:1.2}
.profile,.btn,button{border-radius:11px;box-shadow:inset 0 1px 1px #ffffffd0,inset 0 -1px 0 #a6752380,0 3px 0 #9b793d,0 6px 12px #132c6328}
.profile,.primary{box-shadow:inset 0 1px #ffffffa0,inset 0 -1px #10265a,0 3px 0 #102c69,0 6px 12px #132c6328}
.glass{box-shadow:inset 0 1px #ffffffa0,0 3px 0 #0d2b71,0 6px 12px #08183d44}
.profile:hover,.btn:hover,button:hover{transform:translateY(-1px)}
.sectionhead h2,.page h1{color:#10265a}
input:not([type=checkbox]),select,textarea{background:#fff;border:1px solid #a9bcdf;box-shadow:inset 0 1px 4px #152c5110}
.recognition-card,.roster-card{box-shadow:0 8px 20px #1736721c}
@media(max-width:680px){
 .bar{min-height:0}.brand b{font-size:17px}.brand img{width:38px}
 .hero{padding:24px 18px;border-radius:19px}.hero h1{font-size:clamp(36px,10vw,44px)}
 .profile,.btn,button{min-height:44px;font-size:14px}
 .card,.panel,details{border-radius:15px}.card{padding:15px}.panel{padding:16px}
 .sectionhead{margin-top:23px}.sectionhead h2,h2{font-size:25px}
 .recognition-card>div{padding:13px}.welcome-card{border-radius:16px}
}
.social-post{border:1px solid #d7b865;border-radius:12px;padding:14px;margin:12px 0;background:linear-gradient(145deg,#fff,#edf3ff)}.social-post img{max-width:100%;height:auto;border-radius:10px}.social-post audio{max-width:100%}
.floating-chat{position:fixed;z-index:100;right:16px;bottom:18px}.chat-toggle{border-radius:999px;background:linear-gradient(145deg,#2a72e7,#132d80);color:white;border:2px solid #ebc967;gap:7px;padding:6px 12px}.chat-toggle img{width:34px;height:34px;border-radius:50%}.chat-badge{background:#1984ff;color:#fff;border-radius:50%;min-width:23px;line-height:23px;text-align:center}.chat-badge[hidden],.chat-window[hidden]{display:none}.chat-window{position:absolute;bottom:65px;right:0;width:min(390px,calc(100vw - 28px));height:min(610px,70dvh);display:flex;flex-direction:column;overflow:hidden;border:1px solid #e1bd69;border-radius:18px;background:#f2f5ff;box-shadow:0 18px 55px #07174270}.chat-header{display:flex;align-items:center;justify-content:space-between;color:white;background:linear-gradient(115deg,#12265f,#254fa9);padding:10px 14px}.chat-close{min-height:38px;padding:4px 13px}.chat-stream{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column-reverse;gap:8px}.chat-bubble{background:white;border:1px solid #d5def2;border-radius:14px;padding:10px 12px;overflow-wrap:anywhere}.chat-bubble strong{color:#19458e}.chat-bubble p{margin:4px 0;white-space:pre-wrap}.chat-bubble small{color:#576780}.chat-bubble img,.chat-bubble audio{max-width:100%;display:block}.chat-compose{padding:10px;display:grid;gap:6px;background:white}.chat-compose label{font-size:12px}.chat-compose textarea{min-height:44px;max-height:85px}.chat-compose input{font-size:12px}.chat-compose button{justify-self:end}.chat-compose output{color:#9a2931}.chat-badge[hidden]{display:none}
.chat-window{border:2px solid #d7b665;background:radial-gradient(circle at 80% 10%,#214aae,#101d57 70%);box-shadow:0 18px 55px #05113799}.chat-header{background:linear-gradient(120deg,#0c1d54,#244ba4);border-bottom:1px solid #d9b762}.chat-stream{background:linear-gradient(155deg,#132e78,#101b4e)}.chat-bubble{background:linear-gradient(150deg,#fff,#e6ddfa);border:1px solid #e7d4ff;color:#1d2852;box-shadow:0 4px 12px #040f3a55}.chat-bubble strong{color:#8c620d}.chat-compose{background:#101f56;color:#fff}.chat-toggle{box-shadow:0 4px 0 #795d2c,0 8px 20px #0b1e5f80}.chat-stream small{color:#4d5982}
.party-front{margin:22px 0;border:1px solid #d0a74c;background:linear-gradient(130deg,#fff8df,#e9d094,#f9e6b3);box-shadow:inset 0 1px #fff,0 8px 20px #6d542633}.party-front summary{color:#47310a;background:linear-gradient(140deg,#fff6d5,#e4bd62);border-color:#c69c43}.party-front[open]>summary{color:#39260a;background:linear-gradient(140deg,#ffefb6,#d7aa49)}.party-panel fieldset{border:1px solid #d9c185;border-radius:12px;padding:14px}.party-panel fieldset .check{padding:6px 0}.party-panel #partyShare .btn{margin:6px}
@media(max-width:680px){.chat-window{width:50vw;height:50dvh;min-width:0;bottom:62px}.chat-header{padding:6px;gap:3px}.chat-header strong{font-size:12px;line-height:1.2}.chat-header button{padding:4px 7px;min-height:32px}.chat-stream{padding:5px;gap:5px}.chat-bubble{font-size:13px;padding:7px}.chat-compose{padding:6px;gap:3px;overflow-y:auto}.chat-compose label{font-size:11px}.chat-compose textarea{min-height:40px}.chat-compose input{min-height:32px;font-size:10px}.chat-compose button{min-height:36px;padding:6px 10px}}
.account-actions{display:flex;align-items:center;gap:8px;min-width:0}.signout{color:#fff;font-size:13px;font-weight:650;white-space:nowrap;border:1px solid #d7b866;border-radius:9px;padding:7px 10px;background:#ffffff19}.profile-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0;padding:15px 18px;border-radius:15px;border:1px solid #dfc580;background:linear-gradient(130deg,#fff9e7,#e9f0ff)}.profile-prompt p{margin:4px 0;color:#465a7c}@media(max-width:680px){.account-actions{max-width:60%}.account-actions .profile{max-width:70%}.signout{font-size:12px;padding:6px}.profile-prompt{align-items:flex-start;flex-wrap:wrap}.profile-prompt .btn{min-height:40px}}

.private-message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-link{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;font-size:22px;border:1px solid #d7b866;border-radius:11px;background:linear-gradient(145deg,#2459ad,#102761);box-shadow:0 3px 0 #836527}
.inbox-link[hidden],.inbox-badge[hidden]{display:none}.inbox-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 4px;border-radius:99px;background:#1685ff;color:white;font:700 12px/20px system-ui;text-align:center;border:1px solid white}
/* Sapphire faceted banner */
header{position:relative;background:linear-gradient(155deg,#123cae 0%,#071b61 38%,#102d91 67%,#061943 100%);border-bottom:4px solid #d8a732;box-shadow:inset 0 2px #fff8,inset 0 -2px #ffeaab,0 8px 22px #0c1f6245;color:#fff}
header:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,transparent 15%,#5ca9ff2a 16%,transparent 28%),linear-gradient(35deg,transparent 58%,#ffffff18 59%,transparent 69%)}
header .bar{position:relative;gap:15px;min-height:88px}header .brand img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 3px 5px #0007)}header .brand b{color:#fff0c5;text-shadow:0 2px 4px #06123b;font-family:Georgia,serif;font-size:21px}header .brand em{color:#f6d57e;letter-spacing:.16em}header nav a{background:#ffffff17;border:1px solid #a7c9ff3b;border-radius:9px;padding:6px 9px}header .profile.queen-name{font-family:'Brush Script MT',cursive;font-size:26px;color:#ffdf84;text-shadow:0 2px 4px #000,0 0 9px #e8b84c}header .header-portrait{width:43px;height:43px;object-fit:cover;border:2px solid #edc66a;border-radius:50%}header .header-portrait[hidden]{display:none}
@media(max-width:680px){header .bar{min-height:0;gap:6px;padding-top:10px;padding-bottom:9px}header .brand{gap:5px;flex:1 1 auto;min-width:0}header .brand img{width:44px;height:44px}header .brand b{font-size:16px;line-height:1.1}header .account-actions{max-width:67%;gap:4px}header .profile.queen-name{font-size:21px}header .header-portrait{width:34px;height:34px}header .signout{padding:6px;font-size:12px}header .inbox-link{min-width:36px;min-height:36px}header nav{padding-top:4px}header nav a{font-size:13px}}
/* Deep gold names and a compact refresh control */
.queen-name,header .profile.queen-name{font-family:"Brush Script MT","Snell Roundhand","Apple Chancery","Segoe Script",cursive!important;font-weight:900!important;background-image:linear-gradient(180deg,#fff1a6 0%,#e7b735 20%,#a76206 38%,#ffd75c 52%,#b77709 72%,#814801 100%)!important;background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;-webkit-text-stroke:.45px #875004;text-shadow:0 1px 0 #fff2b8,0 2px 1px #764300a0,0 3px 4px #4b2c0060!important;overflow-wrap:anywhere}
.queen-tile .queen-name{font-size:23px;line-height:1.15!important}
.refresh-page{flex:0 0 auto;min-width:40px;min-height:40px;padding:4px 10px;color:#fff4c4;background:linear-gradient(145deg,#2354b8,#10275e);font-size:23px;line-height:1;border:1px solid #d4ae4f;border-radius:10px}
.pull-refresh-notice{position:fixed;z-index:200;left:50%;top:8px;transform:translateX(-50%);background:#153b91;color:#fff;border:1px solid #eac56d;border-radius:99px;padding:7px 14px;font-size:14px;box-shadow:0 5px 18px #0b215a55;pointer-events:none;white-space:nowrap}.pull-refresh-notice:empty{display:none}
html{overscroll-behavior-y:contain}
@media(max-width:680px){header .refresh-page{min-width:36px;min-height:36px;padding:3px 7px;font-size:20px}header .bar{column-gap:4px}header .account-actions{max-width:62%}}
.app-search-button{flex:0 0 auto;min-width:40px;min-height:40px;padding:5px 8px;background:linear-gradient(145deg,#2457ba,#10265e);border:1px solid #e2bd61;border-radius:10px;font-size:19px;color:white}.app-search-panel[hidden]{display:none}.app-search-panel{position:fixed;z-index:400;inset:0;background:#071534b8;display:flex;align-items:flex-start;justify-content:center;padding:clamp(15px,5vh,60px) 14px}.app-search-card{width:min(600px,100%);max-height:85dvh;overflow:auto;padding:20px;border:1px solid #e3c26d;border-radius:20px;background:linear-gradient(155deg,#fffdf6,#edf3ff);box-shadow:0 20px 60px #030c2da0}.app-search-head{display:flex;align-items:center;justify-content:space-between;font-size:22px;color:#102d70}.app-search-close{min-width:40px;min-height:40px;font-size:22px}.app-search-card label{display:block;margin-top:12px;font-weight:700}.app-search-input{display:block;width:100%;margin-top:6px;padding:11px}.app-search-count{margin:10px 0;color:#485b7c}.app-search-results{display:grid;gap:8px}.app-search-results a{display:grid;gap:2px;padding:10px 13px;color:#183365;border:1px solid #d5bf81;border-radius:10px;background:#fff;box-shadow:0 3px 9px #1b346821}.app-search-results a:focus-visible{outline:3px solid #976400}.app-search-results span{font-size:14px;color:#4c5d79}@media(max-width:680px){header .app-search-button{min-width:36px;min-height:36px;padding:3px 6px;font-size:17px}}
.chat-expiry{margin:0;padding:5px 10px;background:#eef3ff;color:#243e74;font-size:12px;line-height:1.35}
.wizard-choices{border:1px solid #c9d6ef;border-radius:12px;padding:10px 13px;display:grid;gap:7px}.wizard-choices legend{font-weight:700;color:#18366b}.wizard-option{display:flex;align-items:flex-start;gap:8px;font-size:15px}.wizard-option input{flex:0 0 auto;width:20px;height:20px;accent-color:#185bd0}
.birthday-card{margin:14px 0;padding:20px;text-align:center;color:#fff;background:radial-gradient(circle at 50% 20%,#3572e0,#112b73 48%,#061331);border:3px solid #dfb95d;border-radius:20px;box-shadow:inset 0 1px #fff9,0 8px 24px #14296450}.birthday-card img{width:144px;height:144px;object-fit:cover;border-radius:50%;border:4px solid #e8c86f}.birthday-card h3,.birthday-card strong{display:block;color:#ffdc83;font-family:Georgia,serif}.birthday-card strong{font-size:32px}.birthday-card p{color:#fff}.birthday-heading{color:#ffe59e;font-weight:800;letter-spacing:.08em;margin-bottom:12px}
/* Compact floating chat, with independently scrollable messages and composer. */
.floating-chat .chat-window{width:min(330px,calc(100vw - 24px));height:min(560px,65dvh)}
.floating-chat .chat-header{flex:none;gap:6px;padding:7px 9px}
.floating-chat .chat-header strong{flex:1;font-size:14px;line-height:1.2}
.floating-chat .chat-header button{flex:none;min-width:36px;min-height:36px;padding:4px 8px;font-size:16px;box-shadow:0 2px 0 #8c682d}
.floating-chat .chat-expiry{flex:none;margin:0;padding:5px 9px;background:#edf2ff;color:#253a69;font-size:12px;line-height:1.3}
.floating-chat .chat-stream{flex:1 1 0;min-height:90px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.floating-chat .chat-compose{flex:0 1 auto;min-height:0;max-height:48%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px;gap:5px}
.floating-chat .chat-compose label{font-size:12px;line-height:1.25}
.floating-chat .chat-compose textarea{width:100%;min-height:42px;font-size:16px}
.floating-chat .chat-compose input[type=file]{width:100%;min-width:0;min-height:36px;padding:5px;font-size:12px}
.floating-chat .voice-recorder{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.floating-chat .voice-recorder p{width:100%;margin:2px 0;font-size:12px;line-height:1.3}
.floating-chat .chat-compose button{min-height:36px;padding:5px 8px;font-size:12px;line-height:1.2;box-shadow:0 2px 0 #8c682d}
.floating-chat .voice-recorder [role=status]{width:100%;font-size:12px;line-height:1.3}
.floating-chat .voice-recorder audio{width:100%;max-width:100%;height:36px}
@media(max-width:680px){.floating-chat{right:12px;bottom:12px}.floating-chat .chat-window{bottom:58px;width:min(300px,calc(100vw - 24px));height:min(500px,62dvh)}.floating-chat .chat-toggle{min-height:44px;padding:4px 10px;font-size:13px}.floating-chat .chat-toggle img{width:30px;height:30px}}
/* Keep the send action visible while the chat and input controls scroll. */
.floating-chat .chat-window{width:min(290px,calc(100vw - 24px));height:min(470px,56dvh)}
.floating-chat .chat-stream{min-height:64px}
.floating-chat .chat-compose{display:flex;flex-direction:column;overflow:hidden;max-height:53%;gap:4px;padding:6px}
.floating-chat .chat-compose-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:grid;gap:5px}
.floating-chat .chat-compose>button[type=submit]{flex:none;align-self:flex-end;min-height:36px}
.floating-chat .chat-compose>output{flex:none;font-size:12px;line-height:1.2}
@media(max-width:680px){.floating-chat .chat-window{width:min(260px,calc(100vw - 24px));height:min(430px,52dvh)}}
/* A more compact, readable type scale on phones. */
@media(max-width:680px){
 body{font-size:15px;line-height:1.48}
 main h1{font-size:clamp(1.85rem,8vw,2.3rem);line-height:1.12}
 main h2,.sectionhead h2{font-size:1.45rem;line-height:1.16}
 main h3{font-size:1.2rem;line-height:1.2}
 main p,main li{font-size:0.95rem}
 main label,main button,main .btn,main select{font-size:0.875rem}
 main input:not([type=checkbox]):not([type=radio]),main textarea,main select{font-size:16px}
 .floating-chat .chat-bubble{font-size:0.875rem}
}

/* Compact phone header: keep the identity readable and place tools in their own row. */
@media(max-width:680px){
 header .bar{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;align-items:center;gap:7px;padding:8px 12px}
 header .brand{grid-column:1;grid-row:1;min-width:0}
 header .refresh-page{grid-column:2;grid-row:1}
 header .app-search-button{grid-column:3;grid-row:1}
 header .account-actions{grid-column:1 / -1;grid-row:2;max-width:none;width:100%;gap:8px;min-width:0}
 header .account-actions .profile{flex:1 1 auto;min-width:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;justify-content:flex-start}
 header .account-actions .profile.queen-name{font-size:22px;white-space:nowrap;overflow-wrap:normal}
 header .account-actions .inbox-link,header .account-actions .header-portrait,header .account-actions .signout{flex:0 0 auto}
 header nav{grid-column:1 / -1;grid-row:3;min-width:0;width:100%;overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap;padding-top:1px}
 header nav a{flex:0 0 auto}
}

/* Public entrance: a calm 5D Sapphire experience for visitors and Sapphire Queens. */
.public-home{max-width:1200px;margin:auto;padding:20px clamp(16px,4vw,48px) 50px}.public-intro{padding:clamp(28px,5vw,64px);border-radius:24px;color:white;background:radial-gradient(circle at 75% 25%,#2c63c2 0,transparent 38%),linear-gradient(135deg,#071c54,#123d91);box-shadow:inset 0 1px #ffffff60,0 12px 28px #071c5440}.public-intro h1{font-family:Georgia,serif;font-size:clamp(2.1rem,5vw,4.3rem);line-height:1.05;margin:12px 0;color:white}.public-intro h1 em{color:#f0cf7b;font-style:normal}.public-intro p{max-width:640px;color:#e6eeff;font-size:1.05rem}.public-features{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 28px}.public-feature{position:relative;overflow:hidden;border:1px solid #d8bd77;border-radius:20px;padding:clamp(22px,3vw,36px);background:linear-gradient(145deg,#fff,#eaf0ff);box-shadow:inset 0 1px #fff,0 10px 22px #122a5730}.public-feature h2{margin:8px 0;color:#112c68}.public-feature p{max-width:30rem}.cycle-feature{background:linear-gradient(145deg,#183e99,#0a2058);color:#fff;border-color:#83aaff}.cycle-feature h2,.cycle-feature p{color:white}.cycle-feature .eyebrow{color:#f5d983}.feature-mark{position:absolute;right:28px;bottom:18px;color:#e8c875;opacity:.5;font-size:4rem}.public-feature .btn{position:relative;z-index:1}.public-hero-header .bar{min-height:68px}@media(max-width:680px){.public-hero-header .bar{display:flex;flex-wrap:nowrap;padding:8px 14px}.public-hero-header .brand{flex:1 1 auto}.public-home{padding:14px 14px 35px}.public-intro{padding:24px 20px;border-radius:18px}.public-intro h1{font-size:2rem}.public-intro .actions{display:flex;flex-wrap:wrap;gap:8px}.public-intro .actions .btn{flex:1 1 150px}.public-features{grid-template-columns:1fr;gap:12px;margin:12px 0 22px}.public-feature{padding:22px;border-radius:17px}}

/* A compact, accessible account control leaves room for the essentials. */
header .account-actions .header-portrait{display:none!important}
header .account-actions .profile,header .account-actions .profile.queen-name{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;font-size:0;line-height:1;border:1px solid #d7b866;border-radius:10px;background:#ffffff19;text-shadow:none}
header .account-actions .profile::before{content:"";width:21px;height:21px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8dd91' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c.5-4 3-6 7-6s6.5 2 7 6'/%3E%3C/svg%3E")}
@media(max-width:680px){header .bar{grid-template-columns:minmax(42px,1fr) 40px 40px auto;column-gap:5px;row-gap:6px}header .brand{grid-column:1;grid-row:1}header .brand b{display:none}header .refresh-page{grid-column:2}header .app-search-button{grid-column:3}header .account-actions{grid-column:4;grid-row:1;width:auto;max-width:none;gap:5px}header .account-actions .profile,header .account-actions .profile.queen-name{flex:0 0 40px;width:40px;max-width:40px;justify-content:center;font-size:0}header nav{grid-row:2;grid-column:1/-1}}

/* Keep the top bar clear of the extra profile circle. */
header .account-actions .profile,header .account-actions .profile.queen-name{display:none!important}
