:root{color-scheme:light;--ink:#142b44;--muted:#52677c;--nav:#102942;--paper:#fff;--bg:#f0f4f9;--line:#dce6ef;--accent:#1d5481;--soft:#e8f2fb;--gold:#e9c583;--radius:19px;font:15px/1.52 "Segoe UI",Arial,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--ink:#edf4ff;--muted:#aebfd3;--paper:#172a40;--bg:#0d1c2d;--line:#32455c;--accent:#a4d3fb;--soft:#233b54}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{background:var(--soft);border:1px solid var(--line);border-radius:9px;padding:8px 12px;cursor:pointer;font-weight:650}
button:hover{filter:brightness(.95)}
:focus-visible{outline:3px solid #aa7a33;outline-offset:3px}
input,textarea,select{border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--paper);width:100%;min-width:0}
textarea{resize:vertical}
label{display:grid;gap:4px;font-size:13px;font-weight:650}
form{display:grid;gap:12px}
form[data-form=register][hidden]{display:none}
.auth.terms-page{display:block;max-width:780px}
h1,h2,h3,p{margin:0 0 .65em}
h1{font-family:Georgia,serif;font-size:clamp(29px,4vw,45px);line-height:1.1;letter-spacing:-.035em}
h2{font-size:19px;line-height:1.2}
h3{font-size:15px}
small,.muted{color:var(--muted)}
.primary{background:#1b507c;color:white;border-color:transparent}
.gold{background:var(--gold);color:#152940;border-color:transparent}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.between{justify-content:space-between}
.stack{display:grid;gap:14px;align-content:start;min-width:0}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:17px;overflow-wrap:anywhere}
.top{position:sticky;top:0;z-index:3;background:var(--nav);color:#fff}
.top-inner{max-width:1380px;margin:auto;min-height:68px;padding:10px 22px;display:flex;align-items:center;gap:20px}
.brand{display:inline-flex;align-items:center;gap:9px;color:#fff;font:700 22px Georgia,serif;white-space:nowrap}
.brand img{width:35px;height:35px}
.top nav{display:flex;align-items:center;gap:15px}
.top nav a{color:#e5eef8;font-weight:600;font-size:13px}
.top form{flex:1;display:flex;min-width:105px}
.top input{background:#1f3b57;border-color:#39516a;color:#fff}
.top input::placeholder{color:#cfdeed}
.top button{background:#25425e;color:#f5f8fc;border-color:#476078;font-size:12px}
.layout{display:grid;grid-template-columns:216px minmax(0,1fr) 280px;gap:20px;max-width:1335px;margin:auto;padding:24px 20px 92px}
.side-nav{display:grid;gap:4px;margin-top:12px}
.side-nav a{padding:7px 10px;border-radius:8px;color:var(--ink);font-weight:600}
.side-nav a[aria-current=page]{background:var(--soft);color:var(--accent)}
.avatar{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:50%;background:#dceafb;color:#193958;font-size:15px;font-weight:750;text-transform:uppercase}
.avatar.large{width:62px;height:62px;font-size:24px}
.person{display:flex;gap:10px;align-items:center}
.person p{margin:0}
.identity{display:block;font-size:12px;color:var(--muted)}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:204px;display:grid;align-content:center;border-radius:var(--radius);padding:26px;background:radial-gradient(ellipse at 88% 105%,#287398 0%,#153a60 40%,#0d2744 75%);color:white}
.hero p{color:#d9eaf8;max-width:60%;margin-bottom:0}
.hero .eyebrow{color:#edcc8d;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:750;margin-bottom:10px}
.orbit{position:absolute;z-index:-1;right:-26px;bottom:-106px;width:295px;height:295px;border:1px solid #9de1f296;border-radius:50%;box-shadow:inset 0 0 45px #abe6ff47,0 0 45px #56c0f359;transform:rotate(-25deg)}
.orbit::before,.orbit::after{content:'';position:absolute;inset:0;border:1px solid #b0dcec80;border-radius:50%;transform:scaleX(.57)}
.orbit::after{transform:scaleY(.53)}
.genesis{display:grid;justify-content:start;padding:15px 20px;margin:12px 0;border-radius:12px;border:1px solid #b68c45;background:radial-gradient(ellipse at 74% 98%,#674c25,#161517 60%);color:#f3d595}.genesis span{font-size:12px}
.post-photo{display:block;max-width:100%;max-height:540px;object-fit:contain;border-radius:12px;margin:8px auto 12px}.post-photo[hidden]{display:none}.preview{max-height:160px}
.layout:has(.owner-tabs){grid-template-columns:minmax(180px,1fr) minmax(0,4.31fr)}.layout:has(.owner-tabs) .right{display:none}.owner-table{overflow:auto;max-width:100%}.owner-table table{border-collapse:collapse;width:100%;min-width:850px;text-align:left;font-size:13px}.owner-table th,.owner-table td{border-bottom:1px solid var(--line);padding:9px;vertical-align:top}.owner-table th{background:var(--soft)}.owner-table form{min-width:140px;gap:5px}.suspension-fields{margin:0;padding:7px;border:1px solid var(--line);border-radius:8px}.suspension-fields label+label{margin-top:6px}.suspension-screen{width:min(540px,92%);margin:12vh auto;text-align:center}.suspension-screen .card{padding:32px}.suspension-screen p:last-child{margin:0}.owner-table select,.owner-table button{padding:5px 7px}.danger{color:#9c1f30}:root[data-theme=dark] .danger{color:#ffacbc}
.post-text{white-space:pre-wrap;margin:12px 0}
#main:has(>.profile-page-header){min-width:0;grid-template-columns:minmax(0,1fr)}
.profile-page-header{padding:0;overflow:visible;min-width:0}
 .profile-page-cover{height:clamp(160px,29vw,350px);position:relative;overflow:hidden;border-radius:22px 22px 0 0;background:url('/profile-cover.webp') center/cover}
.profile-page-cover img{width:100%;height:100%;object-fit:cover}
.profile-page-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 20px 16px}
.profile-page-portrait>.avatar{width:clamp(116px,15vw,170px);height:auto;aspect-ratio:1;border:4px solid var(--paper);margin-top:clamp(-60px,-5vw,-38px)}
.profile-page-portrait>.member-emblem{width:clamp(190px,28vw,344px);margin-top:clamp(-66px,-6vw,-46px)}
.profile-page-portrait>.founder-thumb{width:clamp(190px,28vw,344px);height:auto;aspect-ratio:288 / 164;margin-top:clamp(-66px,-6vw,-46px)}
.profile-page-portrait>.founder-thumb>.avatar{width:35.5%;height:auto;aspect-ratio:1;font-size:2rem}
.profile-page-portrait>:is(.avatar,.member-emblem,.founder-thumb){max-width:100%;position:relative;align-self:start}
.profile-page-portrait>.avatar{overflow:hidden}
.profile-plaque{position:relative;container-type:inline-size;width:min(100%,540px);margin:8px 0 0}
.profile-plaque img{display:block;width:100%;height:auto}
.profile-plaque-serial{position:absolute;left:71%;top:60%;width:12%;padding-inline:1%;height:16%;display:flex;align-items:center;box-sizing:border-box;white-space:nowrap;font:700 3.25cqw Georgia,serif;letter-spacing:.11em;color:#dcf0ff;text-shadow:0 .11em .18em #000;background:linear-gradient(90deg,#090f20 80%,transparent)}
.profile-plaque[data-tier=gold] .profile-plaque-serial{color:#ffd474;background:linear-gradient(90deg,#1c1309 80%,transparent)}
.profile-plaque[data-tier=silver] .profile-plaque-serial{color:#e1e8f1;background:linear-gradient(90deg,#111923 80%,transparent)}
.profile-plaque[data-tier=bronze] .profile-plaque-serial{color:#ffc18e;background:linear-gradient(90deg,#21130d 80%,transparent)}
.profile-page-portrait{display:grid;justify-items:center;align-self:start;min-width:0;gap:4px}
.profile-page-username{margin:0;max-width:100%;font-size:clamp(1.02rem,1.55vw,1.25rem);font-weight:800;text-align:center;overflow-wrap:anywhere;color:var(--handle-color,var(--accent))}
.profile-page-username[data-frame=founder-gold]{--handle-color:#85500a;--handle-dark:#ffd27c}
.profile-page-username[data-frame=founder-crystal]{--handle-color:#194b80;--handle-dark:#b8e2ff}
.profile-page-username[data-frame=founding-pink]{--handle-color:#a52565;--handle-dark:#ffaacf}
.profile-page-username[data-frame=founding-blue]{--handle-color:#075ca7;--handle-dark:#92d4ff}
.profile-page-username[data-frame*="green"]{--handle-color:#196e47;--handle-dark:#8be4af}
:root[data-theme=dark] .profile-page-username{color:var(--handle-dark,var(--accent))}
.profile-page-identity{min-width:0;overflow-wrap:anywhere}
.profile-page-counts{display:flex;flex-wrap:wrap;gap:2px 10px;margin:5px 0 7px}
.profile-page-counts>span{white-space:nowrap}
.profile-page-identity :is(h1,p){margin:0 0 4px}
.profile-page-identity h1{font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.15;overflow-wrap:break-word}
.profile-page-actions{justify-content:flex-end;max-width:100%}
.profile-artwork{scroll-margin-top:80px}
.profile-page-own-actions{flex-direction:column;align-items:stretch}
.profile-page-own-actions .pill{text-align:center}
.profile-editor-heading h2{margin:0}
.profile-theme-toggle{display:inline-flex;align-items:center;gap:8px}
.profile-theme-toggle[aria-checked=true] .toggle{justify-content:flex-end}
.profile-page-tabs{display:flex;align-items:center;gap:8px;padding:0 12px;border-top:1px solid var(--line)}
.profile-page-tabs nav{display:flex;flex:1;min-width:0;overflow:auto;white-space:nowrap}
.profile-page-tabs nav a{padding:12px 10px;text-decoration:none;border-bottom:3px solid transparent}
.profile-page-tabs nav a[aria-current=page]{border-color:var(--accent);font-weight:700}
.profile-menu{position:relative;flex:none}
.profile-menu summary{padding:8px 10px;border-radius:9px;background:var(--soft);cursor:pointer;list-style:none}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-menu[open]>:not(summary){position:absolute;right:0;top:100%;z-index:4;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:8px;white-space:nowrap;box-shadow:0 4px 18px #08243a33}
.profile-menu>div button{display:block;width:100%}
.profile-page-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:12px;align-items:start}
.profile-photo-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.profile-photo-grid figure,.collectible-grid figure{margin:0;min-width:0}
.profile-photo-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}
@media(max-width:850px){.profile-page-overview{grid-template-columns:1fr}}
.member-emblem{display:inline-block;position:relative;isolation:isolate;width:76px;aspect-ratio:2;flex:none;vertical-align:middle}
.member-emblem>.avatar{position:absolute;top:44.7%;left:49.7%;transform:translate(-50%,-50%);width:37.5%;height:auto;aspect-ratio:1;font-size:clamp(9px,4vw,24px)}
.member-emblem-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.member-profile{display:grid;justify-items:center;position:relative;isolation:isolate;overflow:hidden;width:100%;background:var(--paper);border-radius:18px;color:var(--ink)}
.member-profile-cover{width:100%;height:clamp(65px,10vw,125px);position:relative;background:url('/profile-cover.webp') center/cover}
.member-profile>.member-emblem{width:min(94%,248px);margin-top:-36px}
.member-profile-caption{display:grid;text-align:center;padding:2px 8px 12px;min-width:0;overflow-wrap:anywhere}
.frame-option .member-profile .member-emblem{margin-top:-25px}
.dock-chat .chat-line>.member-emblem{width:92px}
.dock-chat-header .person .member-emblem{width:84px}
.dock-chat .person .member-emblem>.avatar,.dock-chat .member-emblem>.avatar{width:37.5%;height:auto;font-size:11px}
.dock-chat .chat-line>.avatar{width:40px;height:40px}
.post-author{--post-portrait:clamp(46px,8vw,58px);gap:clamp(8px,2vw,16px)}
.post-author>div{min-width:0;overflow-wrap:anywhere}
.post-author>.avatar{width:var(--post-portrait);height:var(--post-portrait);flex:none}
.post-author .founder-thumb{width:clamp(126px,25vw,166px);height:auto;aspect-ratio:76 / 49}
.post-author .founder-thumb>.avatar{width:38%;height:auto;aspect-ratio:1;font-size:1rem}
.post-options{margin:6px 0;text-align:end;font-size:.82rem}
.post-options .row{justify-content:flex-end;margin:6px 0}
.post-footer{display:flex;align-items:center;gap:4px;min-width:0;border-top:1px solid var(--line);padding-top:4px}
.post-footer>button,.post-footer .emote-picker>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;background:transparent;border:0;padding:3px 6px;color:var(--ink);font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums;box-shadow:none}
.post-footer :is(summary,button):focus-visible{outline:2px solid currentColor;outline-offset:1px}
.post-footer svg{width:clamp(22px,5vw,26px);height:clamp(22px,5vw,26px);flex:none;stroke-width:2.4}
.post-footer :is(svg,path){stroke-linecap:round;stroke-linejoin:round}
.post-footer>button:hover,.post-footer .emote-picker>summary:hover{background:var(--soft)}
.post-footer .emote-widget{margin:0}
.post-footer .emote-picker{position:relative}
.post-footer .emote-picker[open]>.emote-options{position:absolute;z-index:4;bottom:100%;left:0;display:flex;flex-wrap:nowrap;width:max-content;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 14px #08243a33}
.post-reaction-summary{margin-inline-start:auto}
.post-reaction-summary .chat-reaction-totals:not([hidden]){margin:0;padding:0;background:transparent;gap:2px;font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums}
.post-reaction-summary .emote-totals img,.post-footer .emote-options img{width:clamp(20px,5vw,24px);height:clamp(20px,5vw,24px)}
.post-reaction-summary .emote-totals>span{margin-inline-start:3px}
.notice{padding:18px;background:var(--soft);border-radius:13px}
.messages{display:grid;gap:9px;max-height:55vh;overflow:auto;padding:8px 2px}
.bubble{background:var(--soft);border-radius:15px;padding:10px 13px;justify-self:start;max-width:83%;min-width:110px}
.bubble.mine{background:#1c4b74;color:#fff;justify-self:end}
.bubble.mine small{color:#e1edfa}
.bubble p{margin:0;white-space:pre-wrap}
.tr-note{font-size:12px;color:var(--muted);margin:4px 0}
.tr-note button{padding:2px 5px;font-size:11px}
.auth{max-width:1040px;margin:7vh auto 0;padding:20px;display:grid;grid-template-columns:1.15fr 1fr;gap:16px}
.auth .hero{min-height:410px;padding:44px}
.auth .hero h1{font-size:clamp(42px,6vw,72px)}
.auth .hero p{max-width:80%}
.auth .card{padding:24px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mobile{display:none}
#toast:not(:empty){position:fixed;z-index:5;right:16px;bottom:78px;max-width:min(320px,90vw);background:#102942;color:white;padding:11px 16px;border-radius:10px}
@media(max-width:1060px){.layout{grid-template-columns:185px minmax(0,1fr) 224px;gap:12px}.top-inner{gap:12px}}
@media(max-width:850px){.layout{grid-template-columns:170px minmax(0,1fr)}.right{display:none}}
@media(max-width:650px){.top-inner{padding:8px 10px;flex-wrap:wrap;gap:7px}.top nav{gap:10px}.top nav .desktop{display:none}.top form{order:3;flex-basis:100%}.layout{display:block;padding:12px 10px 86px}.left{display:none}.mobile{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:3;justify-content:space-around;gap:2px;background:var(--paper);border-top:1px solid var(--line);padding:10px 2px calc(10px + env(safe-area-inset-bottom));font-size:11px;font-weight:700}.auth{grid-template-columns:1fr;margin:0 auto;padding:10px}.auth .hero{min-height:222px;padding:22px}.hero{min-height:182px}.orbit{right:-105px}.auth .card{padding:17px}.primary,.gold{min-height:40px}}
@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .14s,filter .14s}}

/* Sunrise identity */
:root{--ink:#071d49;--muted:#254977;--nav:#e8f5ff;--paper:#f8fbff;--bg:#bbe6fa;--line:#e3f3fe;--accent:#075faf;--soft:#d7eeff;--radius:25px}
:root[data-theme=dark]{--nav:#142f4b;--ink:#edf4ff;--muted:#b7cee3;--accent:#9bd6ff;--paper:#172d47;--soft:#243f5b;--line:#3f5b78;--bg:#10243b}
:root{--day-sky:linear-gradient(#9bdbf52b,#c4e9fc87),url('/sky.webp') center top/cover fixed,var(--bg)}
body{background:var(--day-sky)}
:root[data-theme=dark] body{background:linear-gradient(#07192bcb,#0d2236ed),url('/sky.webp') center top/cover fixed,var(--bg)}
h1,h2,h3{font-family:"Segoe UI",Arial,sans-serif;letter-spacing:-.035em}
.glyph{width:22px;height:22px;display:inline-block;vertical-align:middle;flex:none}
.top{width:min(94%,1780px);margin-inline:auto;border-radius:0 0 22px 22px;background:linear-gradient(105deg,#ffffffed,#edf8ffd9 58%,#83cef79e);color:var(--ink);backdrop-filter:blur(14px);box-shadow:0 6px 24px #1182d31c}
.top-inner{max-width:none;min-height:76px;padding:5px 20px;gap:clamp(10px,1.5vw,28px)}
.brand{font:800 clamp(23px,2.25vw,40px)/1 "Segoe UI",Arial,sans-serif;color:var(--ink);letter-spacing:-.06em;gap:5px}
.brand>span{position:relative;padding-bottom:8px}
.brand>span>span{color:#006bd5}
.brand>span:after{content:'';position:absolute;left:0;bottom:0;width:100%;height:5px;border-top:3px solid #f4b624;border-radius:50%}
.brand img{width:clamp(45px,4.5vw,78px);height:auto;mix-blend-mode:multiply;border-radius:30%}
.top nav{gap:clamp(4px,.8vw,16px);flex-shrink:0}
.top nav a,.side-nav a,.mobile a{display:flex;align-items:center;gap:8px;text-decoration:none}
.top nav a{color:var(--ink);padding:10px 11px;border-radius:40px;font-size:14px;font-weight:720}
.top nav a[aria-current=page]{color:white;background:linear-gradient(#08a9f5,#0060d5);box-shadow:0 6px 12px #0b83da42}
.top input{background:transparent;color:var(--ink);border:0;padding:11px 5px}
.top input::placeholder{color:var(--muted)}
.top form{gap:6px;align-items:center;background:var(--paper);border-radius:32px;padding:0 14px;box-shadow:0 4px 12px #1680c829}
.top button{background:var(--paper);color:var(--ink);border:0;padding:9px 12px;border-radius:32px;white-space:nowrap;display:flex;align-items:center;gap:7px}
.top button .glyph,.top form .glyph{color:var(--accent)}
.toggle{width:36px;height:20px;background:#a4bfd4;border-radius:20px;display:inline-flex;align-items:center;padding:2px}
.toggle:before{content:'';width:16px;height:16px;background:white;border-radius:50%}
[aria-pressed=true] .toggle{justify-content:flex-end;background:#0075e6}
.account-chip{flex:none;border-radius:50%;box-shadow:0 2px 8px #1680c829}
.layout{max-width:1780px;width:94%;padding:clamp(14px,1.3vw,22px) 0 90px;grid-template-columns:minmax(188px,1fr) minmax(0,3.08fr) minmax(228px,1.23fr);gap:clamp(12px,1vw,20px)}
.stack{gap:12px}
.card,.friends-hero,.shortcuts a{border:2px solid #f9fdff;box-shadow:0 7px 14px #006cb52b}
.profile-rail{padding:0 0 20px;overflow:hidden}
.rail-cover,.connection-cover{background:center/cover no-repeat;height:clamp(92px,7.3vw,140px)}
 .avatar{position:relative;overflow:hidden}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#dceafb}
.rail-cover,.profile-hero{position:relative;overflow:hidden}.profile-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-hero .profile-cover-image{z-index:-2}.profile-hero:has(.profile-cover-image){background:none;color:white}.profile-hero:has(.profile-cover-image)::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071d49a8,transparent 80%)}.profile-hero:has(.profile-cover-image) p{color:white}.profile-artwork .fields{gap:16px}.profile-artwork form{min-width:0;align-content:start}.profile-artwork input{max-width:100%}
@media(max-width:500px){.profile-artwork .fields{grid-template-columns:1fr}}
.rail-cover{background-image:url('/profile-cover.webp');border-radius:0 0 20px 20px}
.rail-person{text-align:center;display:grid;justify-items:center;gap:4px}
.rail-person .avatar{margin-top:-39px;width:clamp(62px,5vw,91px);height:clamp(62px,5vw,91px);border:3px solid #84cefd;box-shadow:inset 0 0 0 4px #e9f7ff;font-size:clamp(22px,2.1vw,38px)}
.rail-person h3{margin:1px 0 0;font-size:clamp(17px,1.35vw,24px)}
.rail-person .identity,.rail-person small{font-size:14px;color:var(--ink)}
.side-nav{margin:19px 12px 0}
.side-nav a{padding:9px 11px;font-weight:730}
.side-nav a .glyph{color:var(--accent)}
.side-nav a[aria-current=page]{background:#ade0fd;color:#071d49}
.hero,.friends-hero{background:linear-gradient(90deg,#e3f4ffbd 0%,#e0f3ff45 53%,transparent 78%),url('/sunrise.webp') center center/cover;color:#071d49}
.hero .orbit{display:none}
.hero p{color:#0b3563}
.hero .eyebrow{color:#14538e}
.friends-hero{min-height:clamp(175px,13.6vw,270px);padding:clamp(19px,2.3vw,44px);align-content:center}
.friends-hero h1{font-size:clamp(36px,4vw,73px);margin:0 0 6px;font-weight:820}
.friends-hero h1 .glyph{color:#0089db;width:.94em;height:.94em;vertical-align:-.05em}
.friends-hero p{font-size:clamp(15px,1.4vw,27px);font-weight:600;max-width:75%;color:#0b2854}
.friends-hero p:after{content:'';display:block;width:min(74%,270px);height:8px;border-top:4px solid #f5b123;border-radius:50%;margin-top:11px;transform:rotate(-.8deg)}
.shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.shortcuts a{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--paper);border-radius:21px;padding:12px 8px;color:var(--ink);font-size:clamp(12px,1vw,17px);font-weight:740;text-decoration:none;line-height:1.25;min-height:clamp(66px,4.8vw,94px)}
.shortcuts .glyph{color:var(--accent);width:clamp(22px,2.55vw,49px);height:clamp(22px,2.55vw,49px)}
.shortcuts span{max-width:13ch}
.earth-card{text-align:center;background:radial-gradient(ellipse at 50% 69%,#f7fcfffa 4%,#e9f7fff2 24%,transparent 68%),url('/earth.webp') center 48%/cover;color:#071d49;display:grid;justify-items:center;align-content:center;min-height:clamp(218px,16vw,325px)}
 .layout:has(.studio-space){grid-template-columns:minmax(165px,1fr) minmax(0,4.31fr)}.layout:has(.studio-space) .right{display:none}
.studio-space{min-width:0}.studio-header{background:linear-gradient(120deg,var(--paper),var(--soft));border-bottom:3px solid #eab452}.studio-header h1{margin:0 0 5px}.studio-header p{color:var(--muted);margin:0 0 10px}.studio-menu{display:flex;gap:7px;flex-wrap:wrap}.studio-menu .pill{padding:6px 11px;font-size:13px}.studio-panel{display:grid;gap:13px}.studio-panel :is(h2,h3){margin:0}.studio-panel button{width:fit-content}.studio-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.studio-wide{grid-column:1/-1}.studio-fields [hidden],.studio-replacement[hidden]{display:none}.studio-panel input[type=checkbox]{width:auto;min-width:auto}.studio-drop{border:2px dashed #80b0d5;background:var(--soft);border-radius:15px;text-align:center;padding:21px 10px;justify-items:center;cursor:pointer}.studio-drop[data-drag=true]{border-color:#b98721;background:#ffeaba;color:#233245}.studio-drop input{width:min(100%,350px)}.studio-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:7px}.studio-stat-grid div{display:grid;text-align:center;border-radius:12px;background:var(--soft);padding:9px}.studio-stat-grid strong{font-size:24px}.studio-stat-grid span{font-size:12px}.studio-preview-grid,.studio-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:11px}.studio-library-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.studio-upload-item,.studio-library-item{min-width:0;padding:9px;border:1px solid var(--line);border-radius:12px;display:grid;gap:8px}.studio-upload-preview{display:grid;justify-items:center;gap:5px}.studio-upload-preview img,.studio-card-image,.studio-replacement,.studio-collection-image{width:100%;object-fit:contain;background:#0e223e;border-radius:10px}.studio-upload-preview img{height:165px}.studio-card-image{aspect-ratio:5/7}.studio-placeholder{display:grid;place-content:center;text-align:center;color:#f3cb77;font-size:34px;gap:4px}.studio-placeholder small{font-size:9px;color:#f4e7d2}.studio-replacement,.studio-collection-image{max-height:140px}.studio-library-table .studio-card-image{width:50px}.studio-card-edit{display:grid;grid-template-columns:minmax(110px,215px) minmax(0,1fr);gap:14px;align-items:start}.studio-item-status{margin:0;color:var(--accent);font-size:12px}.card-art-uploaded{padding:0;outline:none;background:#100e17}.card-art-uploaded img{object-fit:contain;z-index:0}.card-art-uploaded::after{display:none}.album-card-back{display:block;max-width:min(100%,145px);max-height:205px;object-fit:contain;margin-top:8px;border-radius:8px}.collection-cover .album-collection-logo{vertical-align:middle;width:25px;height:25px;object-fit:contain;margin-right:6px}.collection-cover.theme-sky>span{background:radial-gradient(#77bded,#173659)}.collection-cover.theme-midnight>span{background:radial-gradient(#5c55a5,#100d24)}.collection-cover.theme-forest>span{background:radial-gradient(#557f62,#11271e)}
@media(max-width:650px){.studio-card-edit{grid-template-columns:1fr}.studio-card-edit>.studio-card-image{width:min(67%,235px);margin:auto}.studio-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-menu .pill{font-size:12px}}
.layout:has(.collection-space){grid-template-columns:minmax(180px,1fr) minmax(0,4.31fr)}.layout:has(.collection-space) .right{display:none}
.collection-space{--album-ink:#fff2db;--album-muted:#ccbfa8;--album-gold:#f4c977;--album-line:#655130;border:1px solid #7a603a;border-radius:25px;padding:clamp(12px,2vw,25px);background:radial-gradient(ellipse at 85% 5%,#40301b,#17151c 42%,#101019 72%);color:var(--album-ink)}
.collection-space a{color:var(--album-gold)}.collection-space .primary{color:white}.collection-space small,.collection-space .muted{color:var(--album-muted)}
.collection-heading{padding:8px 5px}.collection-heading h1{font-family:Georgia,serif;color:var(--album-gold);font-weight:normal;margin:0 0 5px}.collection-heading p{margin:0}
.collection-panel{border:1px solid var(--album-line);border-radius:17px;padding:clamp(12px,2vw,20px);display:grid;gap:12px;background:#151520e0;min-width:0}.collection-panel h2{color:var(--album-gold);margin:0}
.collection-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;gap:8px}.collection-totals div{display:grid;gap:2px}.collection-totals strong{font-size:30px;font-family:Georgia,serif;color:var(--album-gold)}.collection-totals span{font-size:12px}
.world-progress{display:grid;gap:5px}.world-progress progress{appearance:none;width:100%;height:7px;border:0;border-radius:20px;overflow:hidden;background:#39343f}.world-progress progress::-webkit-progress-bar{background:#39343f}.world-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#a67124,#f4c977);border-radius:20px;animation:progress-grow .4s ease-out}.world-progress progress::-moz-progress-bar{background:#f4c977}
.country-progress{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.country-progress>.world-progress:first-child{grid-column:1/3}.country-progress img{width:32px;height:45px;object-fit:cover;border-radius:5px}.country-progress a{font-size:11px}
.collection-covers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.collection-cover{border:1px solid var(--album-line);border-radius:15px;overflow:hidden;display:grid;grid-template-rows:minmax(85px,14vw) auto;text-decoration:none;background:#221d24;color:#fff2db!important}.collection-cover>span{font:normal clamp(40px,6vw,95px)/1 Georgia,serif;display:grid;place-items:center;color:#f7cd76}.collection-cover img{width:100%;height:100%;object-fit:cover}.collection-cover>div{display:grid;padding:10px;gap:2px}.collection-cover strong{font-size:clamp(13px,2vw,19px)}
.cover-world>span{background:linear-gradient(#0d1c4055,#082b5a99),url('/earth.webp') center/cover}.cover-creed>span{background:radial-gradient(#906128,#170e0a 70%)}.cover-exclusive>span{background:radial-gradient(#404ab0,#0a0c2e 70%)}.cover-achievement>span{background:radial-gradient(#655326,#171313 66%)}
.collectible-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}@media(min-width:1200px){.collectible-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(min-width:1500px){.collectible-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}.card-country{display:block;font:600 10px/1.2 'Segoe UI',sans-serif;color:#fff0cf!important;margin-top:3px}.collectible-tile{display:grid;gap:3px;text-decoration:none;min-width:0}.card-caption{font-weight:720;font-size:13px}.collectible-tile small{font-size:11px}
.card-art{position:relative;isolation:isolate;aspect-ratio:5/7;overflow:hidden;border:2px solid #d0a655;outline:1px solid #ffe2a76b;outline-offset:-7px;border-radius:12px;display:grid;grid-template-rows:auto 1fr auto;align-items:center;text-align:center;gap:4px;padding:11px 9px;background:radial-gradient(ellipse,#345478,#081f40 63%);color:#fff0cf;box-shadow:0 6px 13px #0505096b}.card-art-creed{background:radial-gradient(#8b5925,#181009 66%)}.card-art-exclusive{background:radial-gradient(#403d8d,#10112f 65%)}.card-art-achievement{background:radial-gradient(#7a602c,#241a1a 65%)}.card-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.card-art:has(img)::after{content:'';position:absolute;inset:0;background:linear-gradient(#060818b3,transparent 27%,transparent 67%,#060715e6);z-index:-1}.card-series{font-size:9px;text-transform:uppercase;letter-spacing:.075em}.card-emblem{font:normal clamp(29px,4vw,52px)/1 Georgia,serif;text-shadow:0 0 12px #ffcb6c82}.temporary-art{position:absolute;bottom:35px;left:0;right:0;font-size:8px;color:#f9ddb1}.card-art strong{align-self:end;font-family:Georgia,serif;font-size:clamp(12px,1.5vw,18px);line-height:1.13}
.collection-preview{display:grid;grid-template-columns:minmax(125px,235px) minmax(0,1fr);align-items:start;gap:16px}.collection-preview code{overflow-wrap:anywhere}.collection-filters{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));align-items:end}.collection-space form input,.collection-space form select,.collection-space form textarea,.collection-space button{background:#242331;color:var(--album-ink);border-color:var(--album-line)}.collection-space button.primary{color:white;background:linear-gradient(#97651e,#744412)}.reveal-card{animation:collectible-reveal .45s ease-out}.collection-space form+form{border-top:1px solid var(--album-line);padding-top:12px}
@keyframes collectible-reveal{from{transform:translateY(10px) rotateY(35deg) scale(.95);opacity:.5}to{transform:none;opacity:1}}@keyframes progress-grow{from{transform:scaleX(.15);transform-origin:left}to{transform:none}}
@media(prefers-reduced-motion:reduce){.reveal-card,.world-progress progress::-webkit-progress-value{animation:none}}
@media(max-width:650px){.collectible-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-preview{grid-template-columns:1fr}.reveal-card{width:min(60%,220px);margin:auto}.mobile{font-size:clamp(8px,1.75vw,11px)}.mobile a{gap:2px}.collection-space{border-radius:16px}.collection-covers{grid-template-columns:repeat(2,minmax(0,1fr))}}
.studio-hide-previews .studio-upload-preview img,.studio-gift-preview[hidden]{display:none}.studio-gift-preview{max-width:min(100%,225px);max-height:315px;object-fit:contain;border-radius:12px}.community-heading{display:flex;align-items:center;gap:12px}.community-heading :is(h1,h2,.post-text){margin:0}.community-photo{width:66px;height:66px;flex:none;object-fit:cover;border-radius:13px}.community-heading .tr-note{font-size:11px;letter-spacing:normal}.trade-form,.trade-exchange{display:grid;gap:10px;align-items:end;grid-template-columns:repeat(2,minmax(0,1fr))}.trade-exchange{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}.trade-exchange>span{font-size:28px;color:var(--album-gold)}.trade-offer{display:grid;gap:9px;padding:10px;border:1px solid var(--album-line);border-radius:12px}.trade-face{display:flex;gap:8px;align-items:center;min-width:0}.trade-face div{display:grid;min-width:0;overflow-wrap:anywhere}.trade-face img,.trade-emblem{width:42px;height:59px;object-fit:contain;background:#35283f;border-radius:6px;flex:none}.trade-emblem{display:grid;place-items:center;color:#f4c977}.trade-face small:last-child{font-size:9px}.trade-space .collection-heading .pill{margin-top:8px}
@media(max-width:500px){.trade-form{grid-template-columns:1fr}.trade-face{display:grid}.trade-face img,.trade-emblem{width:38px;height:52px}}
.localized-file-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.localized-file-control>span{overflow-wrap:anywhere;font-weight:500}.localized-file-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden;clip-path:inset(50%)}.localized-file-native:focus+.localized-file-control button{outline:2px solid #99702b;outline-offset:2px}
 .founder-thumb{position:relative;display:inline-grid;place-items:center;flex:none;width:76px;height:49px;isolation:isolate}.founder-thumb>.avatar{width:29px;height:29px;position:absolute;inset-inline-start:50%;top:39%;transform:translate(-50%,-50%);font-size:11px}.founder-thumb-diamond>.avatar{top:37.5%}.founder-thumb .founder-thumb-overlay{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.chat-line{display:flex;gap:8px;align-items:flex-end;justify-self:start;max-width:min(92%,640px);min-width:0}.chat-line.chat-line-mine{flex-direction:row-reverse;justify-self:end}.chat-line .bubble{min-width:0;max-width:none;overflow-wrap:anywhere}.chat-line>.avatar{width:30px;height:30px;font-size:10px}.comment-entry>.person{margin-bottom:4px}[dir=rtl] .founder-thumb>.avatar{transform:translate(50%,-50%)}@media(max-width:400px){.founder-thumb{width:64px;height:44px}.founder-thumb>.avatar{width:24px;height:24px}.chat-line{max-width:99%}}
.country-flag{display:inline-block;width:1.25em;height:1.25em;vertical-align:-.29em;flex:none}.identity .country-flag{margin-inline-end:1px}.profile-hero p .identity{color:inherit;font-size:inherit}.framed-identity{position:relative;width:100%;aspect-ratio:1198/1313;isolation:isolate;container-type:inline-size;color:var(--ink)}.frame-backdrop{position:absolute;inset:0;background:var(--paper);clip-path:inset(var(--frame-opening,4.5% 3.5% 7.5%) round 9% / 8%)}.framed-identity:is([data-frame=founding-blue],[data-frame=founding-pink]){--frame-opening:4.8% 3.8% 6%}.frame-cover{position:absolute;inset:0 0 auto;height:49%;overflow:hidden;background:url('/profile-cover.webp') center/cover}.frame-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.frame-avatar{position:absolute;inset-inline-start:50%;top:42%;width:28%;aspect-ratio:1;transform:translate(-50%,-50%)}[dir=rtl] .frame-avatar{transform:translate(50%,-50%)}.frame-avatar .avatar{width:100%;height:100%;font-size:10cqw}.frame-caption{position:absolute;inset:66.5% 9% 8% 9%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;overflow-wrap:anywhere;text-align:center;line-height:1.17;font-size:clamp(9px,5.25cqw,21px)}.frame-caption small,.frame-caption .identity{font-size:.76em}.frame-caption strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.frame-overlay{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:2;object-fit:contain}.profile-rail>.framed-identity{margin:6px auto 0;width:calc(100% - 12px)}.profile-rail:has(.framed-identity){background:transparent;border-color:transparent;box-shadow:none}.profile-rail:has(.framed-identity) .side-nav{margin-top:0;background:var(--paper);padding:8px;border-radius:16px}.profile-hero-framed{min-height:auto;padding:clamp(8px,2vw,20px);justify-items:center;background-position:center}.profile-hero-framed .framed-identity{width:min(100%,365px);filter:drop-shadow(0 8px 14px #09295148)}.frame-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr));gap:10px}.frame-option{border:1px solid var(--line);border-radius:14px;padding:8px;min-width:0;display:grid;gap:8px;align-content:start}.frame-option button{align-self:end}.frame-option .framed-identity{min-width:0}.frame-wait,.frame-classic-preview{display:grid;place-items:center;aspect-ratio:1198/1313;background:var(--soft);text-align:center;border-radius:10px;font-size:12px}.frame-classic-preview .avatar{width:44%;height:auto;aspect-ratio:1}.frame-upload{margin-top:4px}.frame-upload form{padding-top:10px}.frame-gender{max-width:380px}.frame-gender button{width:fit-content}.frame-upload button{max-width:fit-content}
@media(max-width:650px){.profile-hero-framed .framed-identity{width:min(85%,340px)}.frame-options{grid-template-columns:repeat(2,minmax(0,1fr))}.side-nav a{min-height:44px}.layout{padding-bottom:calc(88px + env(safe-area-inset-bottom))}.top{padding-top:env(safe-area-inset-top)}}
@media(min-width:651px) and (max-width:880px){.top nav .desktop{display:none}.top form{min-width:0}.top button{flex-shrink:0}}
@media(max-width:350px){.frame-option{padding:5px}.frame-option button{padding-inline:5px}}
.header-inbox-actions{display:flex;align-items:center;gap:5px;flex:none}.top .header-icon{width:38px;height:38px;display:grid;place-items:center;padding:0;border-radius:50%;position:relative;background:var(--paper);color:var(--accent);text-decoration:none}.header-count{background:#be2345;color:white;border-radius:20px;min-width:16px;height:16px;display:inline-grid;place-items:center;padding:0 4px;font-size:10px;font-weight:800;line-height:1}.header-count[hidden]{display:none}.header-icon .header-count{position:absolute;inset-inline-end:-3px;top:-3px}.chat-popover{position:fixed;z-index:12;inset-inline-end:max(3vw,10px);top:78px;width:min(360px,94vw);max-height:min(75vh,700px);overflow:auto;border-radius:17px;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 14px 34px #123d6f55;padding:13px}.chat-popover[hidden]{display:none}.chat-popover label{margin:8px 0}.chat-unread-filter{display:flex;align-items:center;gap:8px}.chat-unread-filter input{width:auto}.chat-roster-entry{display:grid;gap:4px;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-top:1px solid var(--line);padding:8px 0}.chat-roster-entry small:last-child{grid-column:1/-1}.chat-roster-entry button{font-size:12px}.chat-popover>a{display:block;margin-top:8px}
.chat-windows{position:fixed;z-index:10;inset-inline:0 16px;bottom:0;display:flex;align-items:end;gap:8px;overflow-x:auto;pointer-events:none;padding:0 0 env(safe-area-inset-bottom)}.chat-windows>:first-child{margin-inline-start:auto}.dock-chat{width:min(315px,90vw);flex:none;pointer-events:auto;box-shadow:0 10px 28px #1a406755;background:var(--paper);border:1px solid var(--line);border-radius:14px 14px 0 0;overflow:hidden}.dock-chat-header{display:flex;justify-content:space-between;align-items:center;gap:6px;background:var(--soft);padding:6px 7px}.dock-chat-header .person{gap:5px;min-width:0}.dock-chat-header .person .avatar{width:30px;height:30px;font-size:10px}.dock-chat-header .person>div{min-width:0}.dock-chat-header .person a{overflow-wrap:anywhere}.dock-chat-header .person .founder-thumb{width:64px;height:auto;aspect-ratio:288 / 164}.dock-chat-header .person .founder-thumb>.avatar{width:35.5%;height:auto;aspect-ratio:1}.dock-chat-controls{display:flex;align-items:center;gap:3px;flex:none}.dock-chat-controls button,.dock-chat-controls a{width:24px;height:25px;padding:0;display:grid;place-items:center;text-decoration:none}.dock-chat-body{display:grid;min-width:0}.dock-chat-body .messages{height:clamp(165px,38vh,330px);max-height:none;overflow-y:auto;padding:8px}.dock-chat-body .chat-line{max-width:100%;gap:5px}.dock-chat-body .bubble{font-size:13px;padding:7px}.dock-chat-body form{display:flex;align-items:flex-end;gap:5px;padding:8px;border-top:1px solid var(--line)}.dock-chat-body label{flex:1;min-width:0}.dock-chat-body textarea{padding:5px 8px}.dock-chat.chat-minimized{width:min(180px,48vw)}.dock-chat.chat-minimized .dock-chat-body,.dock-chat.chat-minimized .identity,.dock-chat.chat-minimized .person small{display:none}
@media(max-width:1050px){.top .header-icon{width:31px;height:31px}}@media(max-width:650px){.header-inbox-actions{gap:3px}.top .header-icon{width:28px;height:28px}.top .header-icon .glyph{width:16px;height:16px}.chat-popover{top:92px}.chat-windows{inset-inline:4px;bottom:calc(48px + env(safe-area-inset-bottom));flex-wrap:wrap-reverse;justify-content:flex-end}.dock-chat:not(.chat-minimized){width:100%;order:-1}.dock-chat.chat-minimized{width:min(148px,46vw)}}
.dock-chat-compact{display:none;min-width:0}.dock-chat.chat-minimized .dock-chat-expanded{display:none}.dock-chat.chat-minimized .dock-chat-compact{display:block;flex:1}.dock-chat.chat-minimized .dock-chat-compact .person{flex-wrap:nowrap}.dock-chat.chat-minimized .dock-chat-compact .person strong{display:none}.dock-chat.chat-minimized .dock-chat-compact .person small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:12px;font-weight:700}.dock-chat.chat-minimized .dock-chat-compact .avatar{width:26px;height:26px}.dock-chat-expanded{min-width:0}.dock-chat-settings{padding:4px 8px;font-size:11px;border-bottom:1px solid var(--line)}.dock-chat-settings form{border:0;padding:5px 0}.dock-chat-settings button{font-size:11px}.dock-chat-settings button[hidden]{display:none}
.emote-widget{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;vertical-align:middle}.emote-picker>summary{display:inline-flex;align-items:center;gap:4px;cursor:pointer;font-size:13px;font-weight:700;border:1px solid var(--line);background:var(--soft);border-radius:9px;padding:5px 8px;color:var(--ink);list-style:none}.emote-picker>summary::-webkit-details-marker{display:none}.emote-options{display:flex;gap:3px;flex-wrap:wrap;padding:4px 0}.emote-picker:not([open])>.emote-options{display:none}.emote-options button{display:grid;justify-items:center;gap:1px;font-size:10px;padding:2px 5px;border-radius:7px;background:var(--paper);color:var(--ink)}.emote-options button[aria-pressed=true]{border-color:#bd8c13}.emote-widget img{vertical-align:middle;object-fit:contain;max-width:100%}.emote-totals{display:inline-flex;gap:4px;align-items:center;font-size:11px}.emote-totals span{display:inline-flex;gap:2px;align-items:center}.emote-totals img{width:15px;height:15px}.dock-chat-body .emote-widget{margin-top:3px;display:flex}.dock-chat-body .emote-picker>summary{font-size:10px;padding:2px 4px}.dock-chat-body .emote-picker>summary img{width:17px;height:17px}.dock-chat-body .emote-options button img{width:17px;height:17px}.dock-chat-body .emote-options button{font-size:9px;padding:2px 4px}

.dock-chat-body .messages{grid-template-columns:minmax(0,1fr);align-content:start}
.dock-chat-body .chat-line{width:fit-content;max-width:100%;align-items:center;gap:4px}
.dock-chat-body .chat-line .bubble{order:2;min-width:0;overflow-wrap:anywhere;-webkit-touch-callout:none}
.dock-chat-body .chat-line-mine .bubble{order:1}
.dock-chat-body .chat-line>:is(.avatar,.founder-thumb){flex:none}
.dock-chat-body .chat-line .founder-thumb{width:98px;height:auto;aspect-ratio:288 / 164}
.dock-chat-body .chat-line .founder-thumb>.avatar{width:35.5%;height:auto;aspect-ratio:1;font-size:11px}
.message-actions{order:1;display:flex;align-items:center;gap:0;flex:none;color:inherit;opacity:0;pointer-events:none}
.dock-chat-body .chat-line-mine .message-actions{order:2;flex-direction:row-reverse}
@media (hover:hover){.chat-line:hover .message-actions{opacity:1;pointer-events:auto}}
.chat-line:is(:focus-within,.chat-actions-active) .message-actions,.message-actions:has(details[open]){opacity:1;pointer-events:auto}
.chat-reaction-totals:not([hidden]){display:flex;width:max-content;max-width:100%;margin:4px 0 0 auto;padding:2px 4px;border-radius:12px;background:var(--paper);color:var(--ink);gap:3px}
.chat-reaction-totals[hidden]{display:none}
.dock-chat-body .message-actions .emote-picker[open]>.emote-options{position:fixed;z-index:1005;display:flex;flex-wrap:nowrap;width:max-content;padding:4px;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:0 4px 20px #08243a40}
.dock-chat-body .message-actions .emote-options button{background:transparent;border-radius:14px;padding:4px 5px;min-width:33px}
.dock-chat-body .message-actions .emote-options button img{width:22px;height:22px}
.dock-chat-body .message-actions .emote-widget{margin:0;align-items:center}
.dock-chat-body .message-actions :is(.emote-picker>summary,.message-more>summary,button[data-dock=reply]){display:grid;place-items:center;list-style:none;width:24px;height:28px;padding:2px;background:transparent;border:0;box-shadow:none;color:inherit;cursor:pointer}
.message-actions summary::-webkit-details-marker{display:none}
.message-actions svg{width:17px;height:17px}
.chat-icon-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.message-more[open] .message-menu{position:fixed;z-index:1005;display:grid;min-width:105px;padding:4px;background:#edf8ff;color:#153955;border:1px solid #80c2ea;border-radius:10px;box-shadow:0 4px 20px #08243a40}
.message-menu button{border:0;background:transparent;color:inherit;text-align:start;padding:6px 9px;cursor:pointer}
.message-menu button:hover,.message-actions :is(summary,button):focus-visible{outline:2px solid #48aaf0;outline-offset:-2px}
.chat-line .bubble blockquote,.chat-pinned,.chat-reply-draft{border-inline-start:3px solid #58bafa;margin:0;padding:4px 7px;font-size:.8rem;overflow-wrap:anywhere}
.chat-pinned,.chat-reply-draft span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-reply-draft:not([hidden]){display:flex;align-items:center;justify-content:space-between}
.chat-reply-draft button{padding:2px 7px}

.earth-actions{justify-content:center}.invite-milestones{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}#friend-invite-result[hidden]{display:none}
.earth-card h2{font-size:clamp(28px,2.7vw,45px);margin:0 0 6px}
.earth-card p{font-size:clamp(15px,1.25vw,22px);line-height:1.2;max-width:35ch}
.pill{display:flex;width:fit-content;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:50px;font-weight:750;text-decoration:none}
.pill:hover,.shortcuts a:hover{text-decoration:none;filter:brightness(.97)}
.primary{background:linear-gradient(#00a8f7,#0062d4);color:white;box-shadow:0 3px 7px #0078cc29}
.secondary{background:var(--soft);color:var(--ink)}
.connection-card{padding:0;overflow:hidden}
.connection-cover{background-image:url('/connection-cover.webp');height:clamp(77px,6.3vw,127px)}
.connection-body{padding:13px 16px 15px;display:grid;gap:8px}
.connection-body h2{font-size:clamp(19px,1.6vw,27px);margin:0}
.connection-body p{font-size:clamp(14px,1.15vw,20px);line-height:1.28;margin:0 0 3px}
.connection-body .pill{width:100%;font-size:clamp(12px,1.05vw,18px);padding-inline:7px}
.connection-body .primary .glyph{color:#ffce58}
.verse{margin:0;background:linear-gradient(#e3f8ffa3,#e3f8ffc4 55%,transparent),url('/sunrise.webp') left bottom/175% auto;color:#071d49;text-align:center;padding:clamp(21px,2.6vw,49px) 10px;min-height:clamp(157px,13.5vw,250px)}
.verse blockquote{font-size:clamp(16px,1.3vw,23px);font-style:italic;line-height:1.25;margin:0 auto 12px;max-width:24ch}
.verse figcaption{text-transform:uppercase;font-weight:750;font-size:clamp(11px,.85vw,16px)}
.verse figcaption:before,.verse figcaption:after{content:'';display:inline-block;vertical-align:middle;width:16px;height:2px;background:#f8b822;margin:0 5px}
:root[data-theme=dark] .top{background:#142f4bef}
:root[data-theme=dark] .brand img{mix-blend-mode:normal}
:root[data-theme=dark] .card:not(.earth-card,.verse),:root[data-theme=dark] .shortcuts a{border-color:var(--line)}
@media(max-width:1170px){.top-inner{gap:9px;padding-inline:9px}.top nav a{padding-inline:7px}.top nav a .glyph{width:17px}.top nav .desktop:nth-child(3){display:none}}
@media(max-width:880px){.layout{grid-template-columns:minmax(155px,1fr) minmax(0,3fr)}.right{display:none}}
@media(max-width:650px){.top{width:100%;border-radius:0 0 15px 15px}.top-inner{min-height:0;padding:5px 9px 8px}.brand img{width:40px}.brand{font-size:22px}.top nav a{padding:5px 0;font-size:11px}.top nav a .glyph,.top button .glyph{width:15px}.top button{padding:5px 6px;gap:4px;font-size:10px}.toggle{width:25px;height:15px}.toggle:before{width:11px;height:11px}.account-chip{margin-left:auto}.account-chip .avatar{width:28px;height:28px;font-size:10px}.top form{flex-basis:100%;padding-inline:9px}.top input{padding-block:6px}.layout{width:calc(100% - 20px)}.mobile a{flex-direction:column;gap:2px}.mobile a .glyph{width:16px;height:16px}.shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.shortcuts a{min-height:44px;border-radius:12px}.shortcuts span{max-width:none}.friends-hero{min-height:153px;background-position:57% center}.earth-card{min-height:220px}}
@media(max-width:375px){.top nav a>span{display:none}.top nav a .glyph{width:18px}.top-inner{gap:6px}}
.post-compose-tools{display:flex;align-items:center;gap:8px}
.post-compose-tools button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:12px}
.post-compose-tools [data-mode=photo]{color:#13764b}
.post-compose-tools [data-mode=emoji]{color:#9b5711}
.post-compose-tools [data-mode=location]{color:#a92b48}
:root[data-theme=dark] .post-compose-tools [data-mode=photo]{color:#80e9a9}
:root[data-theme=dark] .post-compose-tools [data-mode=emoji]{color:#ffd492}
:root[data-theme=dark] .post-compose-tools [data-mode=location]{color:#ff9ab1}
.post-compose-tools [aria-expanded=true]{outline:2px solid currentColor}
.post-compose-tools .glyph{stroke-width:2.1}
.post-composer input[hidden],.post-photo-draft[hidden],.post-location-draft[hidden],.post-emoji-picker[hidden]{display:none}
.post-photo-draft,.post-location-draft{display:grid;gap:8px}
.post-photo-draft button,.post-location-draft button{justify-self:start}
.post-emoji-picker{display:flex;flex-wrap:wrap;gap:4px}
.post-emoji-picker button{min-width:40px;min-height:40px;padding:3px;font-size:1.2rem}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:2px 9px}
.post-location{display:inline-flex;align-items:center;gap:4px;min-width:0;color:var(--muted);overflow-wrap:anywhere}
.post-location .glyph{width:14px;height:14px}
.feed-tabs{gap:6px}
.feed-tabs a{padding:7px 12px;border:1px solid var(--line);border-radius:20px;background:var(--paper);text-decoration:none;font-weight:650}
.feed-tabs a[aria-current=page]{background:var(--soft);color:var(--accent)}
.dock-chat-body form.chat-composer{display:block;padding:8px 9px}
.chat-compose-row{display:flex;align-items:flex-end;gap:6px;min-width:0}
.chat-compose-tools,.chat-tool-buttons{display:flex;align-items:center;gap:2px;flex:none}
.chat-compose-tools button,.chat-send{display:grid;place-items:center;width:32px;height:36px;padding:2px;border-radius:12px}
.chat-compose-tools button{background:transparent;border:0;color:var(--accent);font-weight:800}
.chat-compose-tools button:hover{background:var(--soft)}
.chat-compose-tools svg,.chat-send svg{width:20px;height:20px}
.chat-compose-tools [data-dock=pick-gif] span{font-size:10px;border:1px solid currentColor;border-radius:4px;padding:1px}
.chat-compose-tools [data-dock=attachment-tools]{display:none;font-size:22px}
.chat-composer.has-draft:not(.recording) [data-dock=attachment-tools]{display:grid}
.chat-composer.has-draft:not(.tools-open,.recording) .chat-tool-buttons{display:none}
.chat-compose-tools [data-dock=record][aria-pressed=true]{background:#a52340;color:white}
 .chat-compose-tools input[hidden]{display:none}
.chat-send{flex:0 0 38px;min-width:38px}
.chat-composer textarea{flex:1 1 0;width:0;min-width:0;min-height:36px;resize:none;background:var(--soft);border-radius:16px;padding:8px 10px}
.chat-attachment-draft:not([hidden]){display:flex;align-items:start;gap:6px;padding:4px 0}
.chat-media{display:block;max-width:100%;margin:4px 0;border-radius:9px}
img.chat-media{width:auto;max-height:230px;object-fit:contain}
audio.chat-media{width:220px;min-width:0;height:36px}
.chat-attachment-draft img{max-height:76px}
.chat-gif-picker:not([hidden]){display:grid;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--paper);min-height:0}
.chat-gif-picker .row{gap:5px;flex-wrap:nowrap}
.chat-gif-picker input{flex:1;min-width:0}
.chat-gif-picker small{color:var(--muted)}
.chat-gif-picker [data-gif-status]:empty{display:none}
.chat-gif-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:min(180px,25vh);overflow:auto;overscroll-behavior:contain}
.chat-gif-results button{padding:0;overflow:hidden;background:var(--soft);border-radius:8px}
.chat-gif-results img{display:block;width:100%;height:65px;object-fit:contain}
@media(min-width:901px) and (pointer:fine){
  .top:has(.mobile-tools){width:100%;border-radius:0;border-bottom:1px solid var(--line)}
  .top-inner:has(.mobile-tools){min-height:65px;max-width:1780px;padding-inline:16px}
  .top-inner:has(.mobile-tools)>form{order:1;flex:0 1 240px;min-width:110px}
  .top-inner:has(.mobile-tools)>nav{order:2;flex:1;justify-content:center}
  .top-inner:has(.mobile-tools)>nav .desktop{display:inline}
  .top-inner:has(.mobile-tools)>nav a{padding:9px 11px;border-radius:9px}
  .top-inner:has(.mobile-tools)>nav a[aria-current=page]{background:var(--soft);color:var(--accent)}
  .top-inner:has(.mobile-tools)>.header-inbox-actions{order:3}
  .top-inner:has(.mobile-tools)>[data-action=translate-toggle]{order:4}
  .top-inner:has(.mobile-tools)>.account-chip{order:5}
  .layout:not(:has(.owner-tabs,.studio-space,.collection-space,.profile-page-header)){
    grid-template-columns:minmax(168px,1fr) minmax(0,690px) minmax(194px,1fr);align-items:start;
  }
  .layout>.left,.layout>.right{position:sticky;top:77px;max-height:calc(100vh - 90px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .layout>.left{grid-auto-rows:max-content}
  .home-welcome{display:none}
  .post-composer .mobile-composer{display:flex;align-items:center;gap:8px}
  .post-composer .mobile-composer button:first-of-type{flex:1;text-align:start;border-radius:20px}
  .post-composer:has(.mobile-composer):not(.composer-open) form{display:none}
  .post-composer.composer-open form{margin-top:12px}
  .chat-windows{justify-content:flex-end;flex-wrap:wrap-reverse;overflow:visible;inset-inline:10px 18px;bottom:0}
  .dock-chat:not(.chat-minimized){width:clamp(365px,35vw,455px);display:grid;grid-template-rows:auto minmax(0,1fr);max-height:calc(100dvh - 80px);border-radius:18px 18px 0 0}
  .dock-chat-body{display:flex;flex-direction:column;min-height:0}
  .dock-chat-body .messages{height:clamp(200px,45dvh,430px);min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px}
  .dock-chat-body .chat-line .bubble{font-size:14px;padding:8px 11px}
  .dock-chat-header{padding:8px 10px}
}
@media(min-width:901px) and (max-width:1170px) and (pointer:fine){
  .top-inner:has(.mobile-tools)>nav a span,.top-inner:has(.mobile-tools)>[data-action=translate-toggle]>span:not(.toggle){display:none}
}
.top :is(.header-icon,.mobile-tools a[data-alert-counter]),.top nav a[href="#home"]{background:#005da6;color:white;box-shadow:0 2px 7px #063e6a65}
.top nav a[href="#home"][aria-current=page]{background:#004985;color:white;outline:2px solid #8bd2ff;outline-offset:2px}
.top :is(.header-icon,.mobile-tools a[data-alert-counter]):hover,.top nav a[href="#home"]:hover{background:#004985;color:white}
.top .header-icon .glyph,.top .mobile-tools a[data-alert-counter] .glyph,.top nav a[href="#home"] .glyph{color:inherit;stroke-width:2.5}
.photo-position-editor{margin-top:12px}
.photo-position-editor>summary{cursor:pointer;font-weight:700}
.photo-position-editor>form{padding-top:10px;max-width:640px}
.photo-position-preview.profile-page-cover{height:clamp(100px,23vw,190px);border-radius:12px}
.photo-position-portrait{display:grid;place-items:center;padding:9px;background:var(--soft);border-radius:12px}
.photo-position-portrait .avatar.large,.photo-position-portrait>.avatar{width:125px;height:125px}
.photo-position-portrait>.member-emblem,.photo-position-portrait>.founder-thumb{width:min(100%,310px);height:auto;aspect-ratio:2}
.photo-position-portrait>.founder-thumb{aspect-ratio:288 / 164}
.photo-position-portrait .founder-thumb>.avatar{width:35.5%;height:auto;aspect-ratio:1}
.mobile-tools,.mobile-composer{display:none}
.inbox-screen{width:min(100%,720px);margin-inline:auto;display:grid;gap:12px}
.inbox-screen-heading{display:grid;gap:12px}
.inbox-screen-heading>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
.inbox-screen-heading h1{margin:0}
.inbox-unread{display:flex;align-items:center;gap:8px;width:max-content}
.inbox-unread input{width:auto}
.inbox-list{display:grid}
.inbox-entry{display:flex;align-items:center;gap:10px;width:100%;min-height:68px;padding:8px 2px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:start;color:var(--ink)}
.inbox-entry[hidden]{display:none}
.inbox-entry:hover,.inbox-entry:focus-visible{background:var(--soft)}
.inbox-name{min-width:0;flex:1;display:grid;gap:2px;overflow-wrap:anywhere}
.inbox-name small,.inbox-entry time{color:var(--muted);font-size:.75rem}
.inbox-open-chat{flex:none;display:grid;place-items:center;min-height:39px;padding:5px 9px;border-radius:9px;color:var(--ink);background:var(--soft);font-size:.78rem;white-space:nowrap}
.inbox-entry:hover .inbox-open-chat,.inbox-entry:focus-visible .inbox-open-chat{background:var(--accent);color:#fff}
.inbox-unread-count{padding:3px 6px;border-radius:12px;background:var(--accent);color:white;font-size:.75rem}
@media(max-width:900px),(pointer:coarse) and (max-width:1400px){
  .top-inner:has(.mobile-tools){min-height:58px;flex-wrap:nowrap;justify-content:space-between;gap:3px;padding:6px 10px}
  .top-inner:has(.mobile-tools)>:is(nav,form,.header-inbox-actions,.account-chip,[data-action=translate-toggle]){display:none}
  .mobile-tools{display:flex;align-items:center;gap:2px}
  .mobile-tools :is(a,button){position:relative;display:grid;place-items:center;width:clamp(34px,10vw,44px);height:44px;padding:0;border:0;border-radius:12px;color:var(--ink);background:transparent}
  .mobile-tools :is(a,button) .glyph{width:21px;height:21px}
  .mobile-tools .header-count,.mobile>a .header-count{position:absolute;inset-block-start:0;inset-inline-end:0}
  .layout{width:min(100%,780px);display:block;padding:10px 10px calc(83px + env(safe-area-inset-bottom))}
  .layout>.left,.layout>.right,.home-welcome{display:none}
  .mobile{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;gap:2px;position:fixed;z-index:9;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--line);padding:5px 5px calc(5px + env(safe-area-inset-bottom));font-size:clamp(9px,2.3vw,12px);font-weight:700}
  .mobile>a,.mobile-more>summary{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:48px;gap:2px;padding:2px;border-radius:10px;text-align:center;text-decoration:none;color:var(--ink);cursor:pointer}
  .mobile>a[aria-current=page]{background:var(--soft);color:var(--accent)}
  .mobile>a .glyph,.mobile-more>summary .glyph{width:21px;height:21px}
  .mobile>a .avatar{width:25px;height:25px;font-size:9px}
  .mobile-more>summary{list-style:none}
  .mobile-more>summary::-webkit-details-marker{display:none}
  .mobile-more[open]>div{position:absolute;inset-inline-end:8px;bottom:calc(100% + 5px);width:min(240px,85vw);padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:0 6px 22px #092d5744}
  .mobile-more>div a{display:flex;flex-direction:row;justify-content:flex-start;gap:8px;padding:10px}
  .mobile-composer{display:flex;align-items:center;gap:8px}
  .mobile-composer .avatar{width:36px;height:36px}
  .mobile-composer button{min-height:44px}
  .mobile-composer button:first-of-type{flex:1;text-align:start}
  .post-composer:has(.mobile-composer):not(.composer-open) form{display:none}
  .post-composer.composer-open form{margin-top:12px}
  .profile-page-summary{gap:12px}
  .inbox-screen{min-height:calc(100dvh - 148px);align-content:start}
  body:has(.chat-windows>.dock-chat:not(.chat-minimized)){overflow:hidden}
  .chat-windows:has(>.dock-chat:not(.chat-minimized)){inset:var(--chat-view-top,0px) 0 auto;height:var(--chat-view-height,100dvh);display:block;overflow:hidden;padding:0;background:var(--paper)}
  .chat-windows>.dock-chat.chat-minimized{display:none}
  .chat-windows>.dock-chat:not(.chat-minimized){width:100%;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);border:0;border-radius:0;margin:0;padding-bottom:env(safe-area-inset-bottom)}
  .dock-chat-header{padding:calc(7px + env(safe-area-inset-top)) 10px 7px}
  .dock-chat-controls [data-dock=minimize]{display:none}
  .dock-chat-controls [data-dock=close]{width:44px;height:44px;font-size:25px}
  .dock-chat-body{display:flex;flex-direction:column;min-height:0}
  .dock-chat-body .messages{flex:1;height:auto;min-height:0}
  .dock-chat-body .chat-line .bubble{font-size:15px}
  .dock-chat-body .chat-line .bubble textarea,.dock-chat-body textarea{font-size:16px}
}
@media(max-width:560px){
  .profile-page-header>.profile-page-cover{height:clamp(125px,40vw,210px)}
  .profile-page-summary{grid-template-columns:auto minmax(0,1fr);gap:8px 10px;padding:10px 12px 12px}
  .profile-page-portrait>.avatar{width:clamp(82px,24vw,118px);margin-top:-34px;border-width:3px}
  .profile-page-portrait>:is(.member-emblem,.founder-thumb){width:clamp(118px,38vw,184px);margin-top:-39px}
  .profile-page-summary>.profile-page-actions{grid-column:1/-1;justify-content:flex-start}
  .profile-page-identity h1{font-size:clamp(1.12rem,4.6vw,1.45rem)}
}

@media(min-width:561px) and (max-width:740px){
  .profile-page-summary{grid-template-columns:auto minmax(0,1fr)}
  .profile-page-summary>.profile-page-actions{grid-column:2;justify-content:flex-start}
}

.trade-workbench h3 { margin: 0 0 10px; color: var(--album-gold); }
.trade-inventories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.trade-inventory, .trade-review > section { min-width: 0; padding: 14px; border: 1px solid var(--album-line); border-radius: 12px; background: #1e1c27; }
.trade-inventory label { display: grid; gap: 5px; }
.trade-friend-results { display: grid; gap: 4px; max-height: 10rem; overflow: auto; margin-block: 6px; }
.trade-friend-results button { text-align: start; overflow-wrap: anywhere; }
.trade-friend-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trade-friend-details { min-width: 0; overflow-wrap: anywhere; }
.trade-friend-details .identity { display: flex; align-items: center; gap: 4px; font-weight: 400; }
[data-trade-partner] { padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--album-line); border-radius: 9px; }
.trade-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,92px),1fr)); align-items: start; gap: 7px; max-height: 420px; overflow: auto; padding: 4px; }
.trade-card-grid > p { grid-column: 1/-1; margin: 0; }
.trade-pick { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 6px; border-radius: 8px; text-align: start; overflow-wrap: anywhere; }
.trade-pick[aria-pressed="true"] { outline: 2px solid var(--album-gold); background: #43301e; }
.trade-pick img,.trade-pick .trade-emblem { width: 100%; height: auto; aspect-ratio: 5/7; object-fit: contain; border-radius: 5px; }
.trade-pick strong { font-size: .76rem; line-height: 1.25; }
.trade-review { display: grid; align-content: start; gap: 10px; min-width: 0; }
.trade-workbench [hidden] { display: none; }
.trade-inventory-shell { min-width: 0; }
.trade-tabs, .trade-pages { display: flex; gap: 6px; align-items: center; }
.trade-tabs button { flex: 1; border-radius: 10px 10px 0 0; }
.trade-tabs button[aria-pressed="true"] { color: #22190f; background: var(--album-gold); }
.trade-pages { justify-content: center; margin-top: 8px; }
.trade-selected { grid-template-columns: repeat(auto-fill,minmax(min(100%,72px),1fr)); max-height: 270px; }
.trade-activity-cards { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.trade-review > button { align-self: center; }
.trade-review strong { overflow-wrap: anywhere; }
.trade-status { margin: 8px 0 0; }
.trade-status:empty { display: none; }
@media(max-width:680px){
  .trade-inventories { grid-template-columns: 1fr; }
  .trade-card-grid { max-height: 280px; }
  .trade-review { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trade-review > button { grid-column: 1/-1; }
}

.notification-anchor { position: relative; }
.top:has(.notification-panel:not([hidden])) { z-index: 20; }
.notification-panel { position: absolute; inset-block-start: calc(100% + 12px); inset-inline-end: -12px; width: min(410px,85vw); max-height: calc(100dvh - 85px); overflow: auto; overscroll-behavior: contain; padding: 0 10px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 45px #071b3c65; }
.notification-panel[hidden],.notification-panel [hidden] { display: none; }
.notice-panel-head { position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 10px 3px 8px; border-bottom: 1px solid var(--line); }
.notice-panel-head h2 { margin: 0; }
.notice-panel-tools { display: flex; gap: 5px; align-items: center; margin-top: 6px; }
.top .notice-panel-tools button { font-size: .77rem; padding: 5px 9px; }
.notice-panel-tools button[aria-pressed=true] { background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.notice-panel-tools button:last-child { margin-inline-start: auto; }
.notification-row { padding: 7px 6px; border-radius: 11px; }
.notification-row[data-unread],.notification-row:hover { background: var(--soft); }
.notice-link { display: grid; grid-template-columns: 49px minmax(0,1fr) auto; gap: 9px; align-items: center; text-decoration: none; color: inherit; }
.notice-link small { display: block; margin-top: 3px; color: var(--accent); }
.notice-avatar { position: relative; display: inline-flex; }
.notice-avatar .avatar { width: 43px; height: 43px; }
.notice-badge { position: absolute; display: grid; place-items: center; width: 23px; height: 23px; inset-inline-end: 0; bottom: -2px; border-radius: 50%; border: 2px solid var(--paper); background: #176dba; color: white; }
.top .notice-badge .glyph { width: 13px; height: 13px; }
.notice-badge-art { background: transparent; border: 0; }
.notice-badge img { width: 100%; height: 100%; object-fit: contain; }
.notice-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.notification-panel .notice-actions { padding-inline-start: 58px; }
.top .notice-actions button { font-size: .77rem; padding: 5px 12px; }
.notice-full-feed { display: block; text-align: center; border-top: 1px solid var(--line); padding: 9px 4px 2px; }

@media (any-pointer: coarse) { html { overscroll-behavior-y: none; } }
html.touch-refresh { overscroll-behavior-y: none; }
#refresh-screen[hidden], #refresh-hint[hidden] { display: none; }
#refresh-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: linear-gradient(#e7f7ff66,#b8e3faaa),url('/sky.webp') center/cover,#b8e3fa; }
#refresh-screen .refresh-brand{display:grid;justify-items:center;gap:clamp(14px,3vh,28px);width:min(80vw,420px);text-align:center;color:#071d49}
#refresh-screen img{display:block;width:100%;height:auto}
.refresh-spinner{width:42px;aspect-ratio:1;border:4px solid #b0d8f2;border-top-color:#006adc;border-radius:50%;animation:refresh-brand-spin 1s linear infinite}
.refresh-brand p{margin:0;font-weight:700}
@keyframes refresh-brand-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.refresh-spinner{animation:none}}
#refresh-hint { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 50%; z-index: 21; transform: translateX(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ff; color: #005c9f; box-shadow: 0 3px 12px #09396a50; pointer-events: none; }
#refresh-hint.refresh-ready { background: #0067bd; color: #fff; }

.post-gallery{display:grid;gap:3px;margin-block:10px;overflow:hidden;border-radius:12px;background:var(--soft)}
.post-gallery:not([data-count="1"]){grid-template-columns:repeat(2,minmax(0,1fr))}
.post-gallery button{display:block;border:0;border-radius:0;padding:0;min-width:0;background:transparent}
.post-gallery .post-photo{display:block;width:100%;max-height:min(65vh,650px);margin:0;border-radius:0;object-fit:contain}
.post-gallery:not([data-count="1"]) .post-photo{height:auto;aspect-ratio:4/5;object-fit:cover}
.post-gallery[data-count="3"] button:last-child{grid-column:1/-1}
.post-gallery[data-count="3"] button:last-child img{aspect-ratio:2/1}
body:has(.post-overlay[open]){overflow:hidden}
.post-overlay{box-sizing:border-box;position:fixed;border:0;padding:0;max-width:none;max-height:none;overflow:hidden;color:var(--ink)}
.post-overlay::backdrop{background:#020815b8}
.post-overlay[open]{display:grid}
.post-overlay header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px}
.post-overlay header button[data-overlay-close]{width:42px;height:42px;padding:0;font-size:28px}
.post-photo-viewer{inset:var(--post-viewport-top,0px) 0 auto;margin:0;width:100%;height:var(--post-viewport-height,100dvh);background:#080c14;color:#f2f7ff;grid-template-rows:auto minmax(0,1fr)}
.post-photo-viewer>header{padding-top:max(8px,env(safe-area-inset-top));position:relative;z-index:2}
.post-photo-viewer header button[data-overlay-close]{border:0;background:transparent;color:#fff;font-weight:800;box-shadow:none}
.viewer-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.viewer-photo-page{display:grid;height:100%;grid-template-rows:minmax(0,1fr) auto}
.viewer-comments{width:min(100%,760px);margin-inline:auto;background:var(--paper);color:var(--ink);border-radius:16px 16px 0 0;min-height:45%}
.viewer-comments h2{margin:0;padding:14px}
.viewer-comments .post-comments-content{display:block}
.viewer-comments .comment-list{overflow:visible}
.post-photo-viewer footer{padding:8px max(14px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-bottom));width:min(100%,760px);justify-self:center}
.post-photo-viewer .post-footer button,.post-photo-viewer .post-footer summary{color:inherit}
.post-photo-viewer .emote-options{color:var(--ink)}
.viewer-menu{position:relative;margin-inline-start:auto;z-index:1}
.viewer-menu summary{list-style:none;padding:10px 7px;cursor:pointer}
.viewer-menu>div{position:absolute;inset-inline-end:0;top:100%;padding:6px;display:grid;gap:4px;border:1px solid #364765;border-radius:10px;background:#18253e}
.viewer-menu button{width:100%;white-space:nowrap}
.viewer-caption{margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.viewer-caption:empty{display:none}
.viewer-photo-stage{position:relative;display:grid;place-items:center;min-height:0;touch-action:pan-y pinch-zoom}
.viewer-photo-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.viewer-photo-stage button{position:absolute;top:50%;transform:translateY(-50%);border-radius:50%;width:40px;height:40px;padding:0;background:#18253eea;color:white;font-size:24px}
.viewer-photo-stage button[data-photo-step="-1"]{left:8px}
.viewer-photo-stage button[data-photo-step="1"]{right:8px}
.viewer-photo-stage button:disabled{visibility:hidden}
.post-comment-view{background:var(--paper);grid-template-rows:auto minmax(0,1fr);width:min(100%,680px);height:min(var(--post-viewport-height,100dvh),740px);border-radius:18px}
.post-comment-view header{justify-content:flex-start;border-bottom:1px solid var(--line)}
.post-comment-view h2{margin:0}
.post-comment-view [data-dismiss-comment-keyboard]{margin-inline-start:auto;min-width:42px;min-height:42px;visibility:hidden}
.post-comment-view:has(textarea:focus) [data-dismiss-comment-keyboard]{visibility:visible}
.post-comments-content{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}
.post-comments-content .comment-list{align-content:start;overflow-y:auto;overscroll-behavior:contain;padding:12px}
.post-comments-content .comment-entry{border-radius:14px}
.post-comments-content .comment-reply{margin-inline-start:clamp(12px,4vw,30px);border-inline-start:2px solid var(--line)}
.post-comments-content form{display:flex;align-items:end;gap:8px;padding:8px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.post-comments-content form label{flex:1;min-width:0}
.post-comments-content textarea{min-height:42px;font-size:16px}
.post-comment-sheet{inset:auto 0 max(0px,calc(100dvh - var(--post-viewport-top,0px) - var(--post-viewport-height,100dvh)));margin:0 auto;height:min(calc(var(--post-viewport-height,100dvh) - 66px),620px);border-radius:18px 18px 0 0}
@media(max-width:700px){
 .post-comment-page{inset:var(--post-viewport-top,0px) 0 auto;margin:0;height:var(--post-viewport-height,100dvh);border-radius:0}
 .post-comment-page header{padding-top:max(8px,env(safe-area-inset-top))}
 .post-gallery{margin-inline:-8px}
}

@media(min-width:901px) and (pointer:fine){
  .viewer-scroll{display:grid;grid-template-columns:minmax(0,1fr) clamp(345px,30vw,470px);grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  .viewer-photo-page{display:contents}
  .viewer-photo-stage{grid-column:1;grid-row:1/3;min-width:0}
  .post-photo-viewer footer,.viewer-comments{width:100%;margin:0;border-radius:0;background:var(--paper);color:var(--ink);border-inline-start:1px solid var(--line)}
  .post-photo-viewer footer{grid-column:2;grid-row:1;padding:12px 14px;border-block-end:1px solid var(--line)}
  .post-photo-viewer .post-footer button,.post-photo-viewer .post-footer summary{color:var(--accent)}
  .viewer-comments{grid-column:2;grid-row:2;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
  .viewer-comments .post-comments-content{display:grid}
  .viewer-comments .comment-list{overflow-y:auto;min-height:0}
  .viewer-comments .post-comments-content form{background:var(--paper)}
}

:root[data-theme=dark]{--nav:#071725;--bg:#071522;--ink:#f5f6fb;--muted:#c4cfdb;--paper:#0d2233;--soft:#192e3e;--line:#9b722d;--accent:#ffda79}
:root[data-theme=dark] body{
  background:radial-gradient(ellipse at 11% 90%,#ba621e58,transparent 30%),
    radial-gradient(ellipse at 80% 18%,#173a5885,transparent 40%),
    linear-gradient(#061522d9,#061019e8),url('/sky.webp') center top/cover fixed,var(--bg);
}
:root[data-theme=dark] .top{background:linear-gradient(105deg,#04131f,#0b2230 63%,#061724);border-bottom:1px solid #a77932}
:root[data-theme=dark] .profile-page-header,
:root[data-theme=dark] .profile-artwork,
:root[data-theme=dark] .profile-page-overview>.card,
:root[data-theme=dark] .profile-rail,
:root[data-theme=dark] .connection-card{
  background:radial-gradient(ellipse at 86% 75%,#163a53a0,transparent 72%),linear-gradient(145deg,#071824,#102737);
  border:1px solid #d7a54a;
  box-shadow:0 0 0 1px #ffd37426,0 12px 32px #01070db0,inset 0 0 24px #080f18a0;
}
:root[data-theme=dark] .profile-page-cover{box-shadow:inset 0 0 0 1px #ffcf67}
:root[data-theme=dark] .profile-page-portrait>.avatar{border-color:#ffdc83}
:root[data-theme=dark] .profile-page-tabs a[aria-current],
:root[data-theme=dark] .side-nav a[aria-current]{
  color:#ffe08c;background:#3a2b14;border-color:#dfad47;box-shadow:inset 0 0 12px #f8b72143;
}
:root[data-theme=dark] .viewer-comments{background:linear-gradient(155deg,#122c40,var(--paper));border-inline-start-color:var(--line)}
:root[data-theme=christmas] :is(.viewer-comments,.post-photo-viewer footer){--paper:#14362e;--ink:#fff5dc;--soft:#21483a;--line:#b66c5d;--accent:#ffdf90;color:var(--ink);background:var(--paper)}

:root[data-theme=dark]{
  --night-control:linear-gradient(180deg,#ffe3a1 0%,#f5c669 53%,#d59624 100%);
  --night-control-text:#261807;
  --night-control-edge:#eabc66;
  --night-icon:#ffe197;
}
:root[data-theme=dark] button:not(.header-icon,[data-overlay-close],[data-action=post-photo-view],.trade-pick,.reaction-option),
:root[data-theme=dark] .pill,
:root[data-theme=dark] input::file-selector-button {
  background:var(--night-control);color:var(--night-control-text);border-color:var(--night-control-edge);
}
:root[data-theme=dark] .post-compose-tools button[data-action=post-tool]{
  background:transparent;border-color:transparent;box-shadow:none;
}
:root[data-theme=dark] .post-compose-tools button[data-action=post-tool]:is(:hover,:focus-visible,[aria-expanded=true]){
  background:var(--soft);border-color:var(--line);
}
:root[data-theme=dark] button:disabled{opacity:.55}
:root[data-theme=dark] button.danger{border-color:#ff8473;color:#671d16}
:root[data-theme=dark] :is(.top,.side-nav,.mobile) .glyph{color:var(--night-icon)}
:root[data-theme=dark] :is(.top,.mobile) a[aria-current=page],
:root[data-theme=dark] .side-nav a[aria-current=page]{
  color:#fff1c7;background:linear-gradient(#4a2e10,#251909);box-shadow:inset 0 0 0 1px #dfad47,inset 0 0 12px #ffc14966;
}
:root[data-theme=dark] :is(.top .header-icon,.top .mobile-tools button,[data-action=translate-toggle],.profile-theme-toggle){
  background:#0c2030;color:var(--night-icon);border:1px solid #b98a3c;
}
:root[data-theme=dark] :is(.mobile-tools button,[data-action=translate-toggle]) .glyph{color:inherit}
:root[data-theme=dark] [data-action=translate-toggle][aria-pressed=true] .toggle,
:root[data-theme=dark] .profile-theme-toggle[aria-checked=true] .toggle{
  background:linear-gradient(110deg,#986114,#ecab1b);box-shadow:0 0 8px #ffc65a8c;
}

.profile-information{display:grid;gap:16px}
.profile-information>section+section,.profile-information>form{padding-top:14px;border-top:1px solid var(--line)}
.profile-information h2,.profile-friends-card h2{margin:0 0 8px;font-size:1.2rem}
.profile-information p{margin:6px 0}
.profile-info-line{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere}
.profile-info-line .glyph{flex:none;color:var(--accent)}
.profile-friends-count{margin:0 0 12px;color:var(--muted)}
.profile-friends-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.profile-friend-tile{display:grid;align-content:start;gap:3px;min-width:0;overflow-wrap:anywhere;text-decoration:none}
.profile-friend-tile .avatar{width:100%;height:auto;aspect-ratio:1;border-radius:12px;overflow:hidden;font-size:clamp(1rem,4vw,2rem)}
.profile-friend-tile .avatar img{width:100%;height:100%;object-fit:cover}
.profile-friend-tile small{color:var(--muted)}
.profile-friend-tile strong{line-height:1.25}
@media(min-width:851px){#main>.profile-friends-card .profile-friends-grid{grid-template-columns:repeat(auto-fill,minmax(112px,145px))}}

.post-youtube{margin:12px 0;border-radius:14px;overflow:hidden;background:var(--soft)}
.post-youtube-player{display:grid;place-items:center;background:#0a0e17}
.post-youtube-player :is(button,iframe){display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0}
.post-youtube-player button[data-action=play-youtube]{position:relative;padding:0;overflow:hidden;border-radius:0;background:#0a0e17}
.post-youtube-player button img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.post-youtube-player button span{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);padding:9px 19px;border-radius:14px;background:#a91026;color:#fff;font-size:1.3rem}
.post-youtube-short .post-youtube-player :is(button,iframe){max-width:340px;max-height:70dvh;aspect-ratio:9/16}
.post-youtube-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:7px 12px;font-size:.83rem;overflow-wrap:anywhere}
.post-youtube-actions[hidden],.post-youtube-actions [hidden],.post-youtube-actions small:empty{display:none}
.post-youtube-actions a{font-weight:650}

.brand img{width:clamp(120px,11vw,190px);height:auto;border-radius:0;mix-blend-mode:normal}
:root:not([data-theme=dark]) :is(.brand, .refresh-brand) img[src="/iogbe-logo-night.webp"]{filter:drop-shadow(0 1px 1px #071d4980)}
:root[data-theme=dark] #refresh-screen{background:linear-gradient(#061522d9,#061019ed),url('/sky.webp') center/cover,#071522}
:root[data-theme=dark] #refresh-screen .refresh-brand{color:var(--accent)}
:root[data-theme=dark] .refresh-spinner{border-color:#614719;border-top-color:#ffc744}
@media(max-width:650px){.brand img{width:clamp(105px,29vw,148px)}}

/* Give the invitation shortcut a little more prominence in each navigation. */
a.pill.secondary[href="#invite"],
:is(.side-nav,.mobile-more) a[href="#invite"]:not([aria-current]) {
  background: var(--soft);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 800;
}
:is(a.pill.secondary,.side-nav a,.mobile-more a)[href="#invite"]:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.guest-header{display:flex;justify-content:center;padding:calc(12px + env(safe-area-inset-top)) 12px 4px}
.guest-header .brand img{width:clamp(190px,32vw,320px);filter:drop-shadow(0 2px 3px #071d49)}
.guest-auth{margin-top:clamp(6px,2vw,24px)}
.guest-auth .guest-hero{min-height:0;padding:clamp(20px,4vw,38px);text-align:center}
.guest-auth .guest-hero h1{font-size:clamp(2rem,5vw,3.75rem);overflow-wrap:anywhere}
.guest-auth .guest-hero p{max-width:48ch;margin-inline:auto}
.guest-hero .eyebrow{text-align:center}
.guest-actions{margin-top:20px}
.guest-actions a{font-weight:750}
@media(max-width:760px){.guest-auth{grid-template-columns:minmax(0,1fr);max-width:580px}}

/* Match the sticky header to the page sky, including while the feed scrolls. */
:root:not([data-theme=dark]) .top {
  background:var(--day-sky);
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
  width:100%;
}

.post-tag-picker[hidden]{display:none}
.post-tag-picker{display:grid;gap:8px}
.post-tag-picker :is([data-tag-results],[data-mention-results]){display:grid;gap:4px;max-height:230px;overflow:auto}
.post-tag-picker :is([data-tag-results],[data-mention-results]) button{display:flex;align-items:center;gap:8px;text-align:start}
.post-tag-picker .avatar{width:32px;height:32px;flex:none}
.post-compose-tools [data-mode=tag]{color:var(--accent)}

.post-mention-suggestions{padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.post-mention-suggestions button{width:100%;overflow-wrap:anywhere}

.verified-badge{display:inline-block;width:.88em;height:.88em;object-fit:contain;margin-inline-start:.28em;vertical-align:-.04em}

.comment-node{min-width:0;overflow-wrap:anywhere}
.comment-thread>summary{width:fit-content;padding:6px 10px;color:var(--accent);font-weight:650;font-size:.86rem;cursor:pointer}
.comment-branch{margin-inline-start:clamp(8px,2vw,20px);padding-inline-start:clamp(5px,1vw,12px);border-inline-start:2px solid var(--line)}
.comment-branch .comment-branch{margin-inline-start:0;padding-inline-start:5px}
.post-comments-content [data-action=cancel-comment-reply][hidden]{display:none}
.comment-page{display:contents}

.comment-thread>summary{display:flex;align-items:center;gap:7px;list-style:none;min-height:32px}
.comment-thread>summary::-webkit-details-marker{display:none}
.reply-chevron{width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.comment-thread[open]>summary>.reply-chevron{transform:rotate(225deg)}
.comment-thread[open]>summary>.reply-expand-label,.comment-thread:not([open])>summary>.reply-collapse-label{display:none}
.comment-thread[open]>summary>.reply-collapse-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.post-edit-dialog{width:min(920px,calc(100% - 24px));max-height:calc(var(--post-viewport-height,100dvh) - 24px);margin:auto;border:1px solid var(--line);border-radius:22px;background:var(--paper);grid-template-rows:auto minmax(0,1fr) auto;box-shadow:0 18px 60px #0005}
.post-edit-dialog header,.post-edit-dialog footer{padding:12px 16px}
.post-edit-dialog header{border-bottom:1px solid var(--line)}
.post-edit-dialog h2,.post-edit-dialog h3{margin:0}
.post-edit-content{min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px;padding:16px}
.post-edit-preview{display:grid;gap:8px;min-width:0;overflow-wrap:anywhere}
.post-edit-preview .card{background:var(--bg);padding:12px}
.post-edit-preview .post-gallery .post-photo{max-height:320px}
.post-edit-preview .post-gallery[data-count="3"]>div:last-child{grid-column:1/-1}
.post-edit-dialog textarea{width:100%;min-height:180px;resize:vertical;font-size:16px}
.post-edit-dialog footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line)}
.post-edit-error{color:var(--ink);border-inline-start:3px solid #d65768;padding-inline-start:8px}
@media(max-width:650px){
  .post-edit-dialog{inset:var(--post-viewport-top,0) 0 auto;width:100%;height:var(--post-viewport-height,100dvh);max-height:none;margin:0;border-radius:0}
  .post-edit-content{grid-template-columns:minmax(0,1fr);align-content:start}
  .post-edit-dialog footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
