:root{
  color-scheme:light;
  --bg:#f8f7f4;
  --surface:#fffdfa;
  --line:#ded9d1;
  --edge:#c9c1b6;
  --text:#252525;
  --muted:#5d574f;
  --accent:#302d29;
  --on-accent:#fffdfa;
  --deep:#eeebe5;
  --selected:#e6ded3;
  --error:#a32e40;
  --online:#35744e;
  --scrim:#211e1aa6;
  --header:73px;
  font:16px Inter,system-ui,sans-serif;
}
:root[data-color-theme=dark]{
  color-scheme:dark;
  --bg:#000;
  --surface:#111;
  --line:#383838;
  --edge:#777;
  --text:#f5f5f5;
  --muted:#bcbcbc;
  --accent:#e6e6e6;
  --on-accent:#111;
  --deep:#1b1b1b;
  --selected:#292929;
  --error:#ff9fa9;
  --online:#83c79a;
  --scrim:#000c;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
button,input{font:inherit}
button{cursor:pointer;color:inherit;background:none;border:0}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
button:disabled{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}
svg{display:block;width:21px;height:21px}
[hidden]{display:none!important}
.header{height:var(--header);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 max(22px,calc((100vw - 1290px)/2));position:sticky;top:0;z-index:4;background:var(--bg)}
.brand{display:flex;align-items:center;gap:10px;font-size:27px;font-weight:800;letter-spacing:-1px}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--accent);color:var(--on-accent);border-radius:12px;font-weight:900;line-height:1}
#search-form{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);padding:10px 14px;border-radius:12px;width:min(35vw,360px);color:var(--muted)}
#search{background:transparent;border:0;outline:none;color:var(--text);min-width:0;width:100%;font-size:14px}
.language{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:9px 12px}
.layout{display:grid;grid-template-columns:205px minmax(360px,560px) 265px;gap:48px;max-width:1250px;margin:0 auto;padding:28px 24px}
.sidebar{position:sticky;top:calc(var(--header) + 28px);align-self:start}
nav{display:grid;gap:7px}
.nav{display:flex;align-items:center;gap:12px;text-align:left;padding:13px 14px;border-radius:10px;color:var(--muted);font-weight:650}
.nav:hover,.nav.active{color:var(--accent);background:var(--deep)}
.nav.active{background:var(--selected);color:var(--text)}
.nav.create{margin-top:12px;color:var(--accent);border:1px solid var(--edge);text-align:center}
.edition{display:block;margin:37px 14px;color:var(--muted)}
.section-heading{height:54px;display:flex;justify-content:space-between;align-items:start;gap:12px}
h1,h2,p{margin:0}
h1{font-size:29px;line-height:1.25;letter-spacing:-.7px}
h2{font-size:18px;letter-spacing:-.25px}
.feed-tabs{display:flex;gap:5px}
.feed-tabs button{color:var(--muted);padding:8px 10px;border-radius:8px;font-weight:650;font-size:14px;white-space:nowrap}
.feed-tabs .selected{background:var(--selected);color:var(--text)}
.author{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:11px}
.author strong{font-size:16px}
.author button{padding:5px 9px;font-size:13px;color:var(--accent);border:1px solid var(--edge);border-radius:8px;background:var(--surface)}
.author button[aria-pressed=true]{background:var(--deep)}
.author-label{display:grid;line-height:1.1}
.author-label small{margin-top:4px;font-size:13px;color:var(--muted)}
.caption p{line-height:1.55}
.discover{padding-top:54px;display:grid;gap:17px;align-content:start}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:17px}
.panel p,.empty p,.room p{color:var(--muted);line-height:1.5;margin:9px 0 14px}
.room-art{height:77px;display:grid;place-items:center;margin-bottom:15px;position:relative;overflow:hidden;border-radius:10px;background:linear-gradient(125deg,#272623,#403c36 55%,#645b51)}
.room-art svg{width:43px;height:43px;color:#f3e9dc;transform:rotate(-12deg);z-index:1}
.room-art i{position:absolute;width:116px;height:116px;top:-22px;left:25px;border:1px solid #fff7ed3b;border-radius:31px;transform:rotate(34deg)}
.room-art i:last-child{left:auto;right:-10px;top:8px}
.primary{background:var(--accent);color:var(--on-accent);border-radius:9px;padding:10px 13px;font-weight:750}
.room-card .primary{width:100%}
.creators h2{margin-bottom:10px}
.creator{display:flex;align-items:center;gap:9px;padding:9px 0}
.avatar{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:800;color:#302d29;background:var(--avatar,#e6ded3)}
.creator-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.creator button{margin-left:auto;color:var(--accent);font-size:13px;font-weight:700;padding:6px 0 6px 4px}
.empty,.room{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.game-board{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:300px;margin:16px 0}
.game-board button{aspect-ratio:1;background:var(--deep);border:1px solid var(--edge);border-radius:12px;font-size:2rem;font-weight:800;color:var(--accent)}
.game-board button:disabled{opacity:1}
.room .room-status{margin:16px 0 0;color:var(--text);font-weight:700}
dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px;width:min(460px,calc(100% - 28px));max-height:82dvh;overflow:auto;padding:18px}
dialog::backdrop{background:var(--scrim)}
.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.dialog-header button{padding:6px}
.dialog-form{display:grid;gap:10px;margin-top:15px}
.dialog-form input{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;width:100%}
.comment-list{padding:0;margin:0;list-style:none}
.comment-list li{line-height:1.45;padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.comment-list strong{display:block;font-size:14px;color:var(--accent)}
.dialog-note{color:var(--muted);line-height:1.4;margin-bottom:10px}
.language-option{display:block;width:100%;text-align:left;padding:12px;border-radius:10px}
.language-option[aria-current=true],.language-option:hover{background:var(--deep);color:var(--accent)}
.notice{position:fixed;z-index:6;bottom:20px;left:50%;transform:translateX(-50%);background:var(--accent);color:var(--on-accent);padding:9px 14px;border-radius:10px;font-size:14px;width:max-content;max-width:90vw}
@media(max-width:1130px){.layout{gap:28px;grid-template-columns:175px minmax(305px,1fr) 220px}}
@media(max-width:920px){.layout{grid-template-columns:165px minmax(0,540px);justify-content:center}.discover{display:none}}
@media(max-width:650px){:root{--header:60px}.header{padding:0 12px;gap:8px}.brand{font-size:21px;gap:6px}.brand-mark{width:30px;height:30px;border-radius:9px}.language{font-size:13px;padding:7px;gap:4px}#search-form{width:auto;min-width:0;flex:1;padding:7px 8px}#search-form svg{width:17px}.layout{display:block;padding:14px 12px 82px;max-width:520px}.section-heading{height:46px}h1{font-size:25px}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;background:var(--bg);border-top:1px solid var(--line);z-index:4;padding:3px 4px max(5px,env(safe-area-inset-bottom))}.sidebar nav{grid-template-columns:repeat(4,1fr);gap:2px}.nav{padding:7px 2px;display:grid;justify-items:center;gap:4px;font-size:12px}.nav.create{border:0;margin:0}.edition{display:none}.notice{bottom:70px}}
.header-actions,.account-actions{display:flex;gap:8px;align-items:center}
.header-actions{margin-inline-start:auto}
.theme-picker{min-height:42px;padding:7px 9px;border:1px solid var(--edge);border-radius:9px;background:var(--surface);color:var(--text);font:650 14px Inter,system-ui,sans-serif;cursor:pointer}
.theme-picker:hover{background:var(--deep)}
.theme-picker:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:650px){.theme-picker{min-height:44px;padding-inline:5px}}
@media(max-width:360px){.header #phone-qr-link{display:none}}
.account-button{padding:9px 12px;border:1px solid var(--edge);border-radius:12px;color:var(--accent);white-space:nowrap;font-weight:700}
.signup-button{background:var(--accent);color:var(--on-accent)}
#account-dialog{
  --auth-accent:#156959;
  --auth-highlight:#e0f1eb;
  width:min(450px,calc(100% - 32px));
  max-height:calc(100dvh - 32px);
  padding:clamp(18px,5vw,32px);
  border-radius:20px;
  box-shadow:0 22px 64px #0005;
}
:root[data-color-theme=dark] #account-dialog{--auth-accent:#9ddbc8;--auth-highlight:#233b34}
.account-dialog-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;margin-bottom:22px}
.account-dialog-heading .brand-mark{width:42px;height:42px;border-radius:11px;background:var(--auth-highlight);color:var(--auth-accent)}
#account-title{grid-row:2;grid-column:1/-1;margin:0;font-size:clamp(24px,6vw,31px);line-height:1.12;letter-spacing:-.035em}
#close-account{grid-row:1;grid-column:2;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--deep)}
.account-email-option{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;
  width:100%;min-height:62px;padding:10px 14px;
  text-align:left;font-weight:750;
  color:var(--text);background:var(--bg);border:1px solid var(--edge);border-radius:12px;
}
.account-email-option:hover{background:var(--auth-highlight);border-color:var(--auth-accent)}
.account-email-option:disabled{opacity:1;color:var(--muted)}
.account-email-option:disabled:hover{background:var(--bg);border-color:var(--edge)}
.account-methods{display:grid;gap:8px}
.account-methods .account-email-option{min-height:54px;padding:8px 12px}
.account-method-status{max-width:9ch;text-align:right;font-size:11px;font-weight:650;color:var(--muted)}
.account-method-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:8px;background:var(--auth-highlight);color:var(--auth-accent)}
.account-method-arrow{color:var(--auth-accent)}
#account-dialog[data-screen=signup-methods] .account-dialog-heading{grid-template-columns:38px minmax(0,1fr) 38px;text-align:center}
#account-dialog[data-screen=signup-methods] .brand-mark{grid-column:2;justify-self:center}
#account-dialog[data-screen=signup-methods] #close-account{grid-column:3}
#account-dialog[data-screen=signup-methods] .account-email-option{border-radius:16px;border-color:var(--auth-accent)}
#account-dialog[data-screen=signup-methods] .account-footer{text-align:center}
.account-back{padding:5px 0;margin:-8px 0 14px;color:var(--auth-accent);font-size:14px;font-weight:700}
.account-back:hover{text-decoration:underline}
#account-form{gap:9px;margin-top:0}
#account-form input{min-height:44px}
#account-form .dialog-note{margin:0}
#account-form .primary{min-height:44px;margin-top:5px}
.account-footer{margin-top:22px;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.account-switch{padding:6px;color:var(--auth-accent);font-weight:750;text-decoration:underline;text-underline-offset:3px}
.account-forgot{justify-self:end;padding:4px 0;font-size:14px}
.account-error{color:var(--error);line-height:1.4}
@media(max-width:650px){.header-actions,.account-actions{gap:4px}.account-button{padding:7px 6px;font-size:13px}#language-name{display:none}.language svg{width:18px;height:18px}}
.reply-button{color:var(--accent);font-size:14px;font-weight:700;padding:6px}
.comment-list .reply-button{display:block;padding-left:0}
.comment-replies{border-left:1px solid var(--line);margin:4px 0 0 8px;padding-left:14px;list-style:none}
.comment-replies li:last-child{border-bottom:0}
#reply-context{color:var(--muted);font-size:14px}
.create-types,.photo-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.create-types button,.photo-pick,.compare-photo{display:block;background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:9px;text-align:center;font-weight:650}
.create-types button[aria-pressed=true],.compare-photo[aria-pressed=true]{background:var(--deep);color:var(--accent);border-color:var(--accent)}
#video-fields{display:grid;gap:8px}
.photo-pick{position:relative;cursor:pointer;font-size:14px;overflow:hidden;color:var(--accent)}
.photo-pick:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.dialog-form .photo-pick input{position:absolute;inset:0;opacity:0;cursor:pointer}
#photo-placeholder{margin-top:8px}
#photo-editor{display:grid;gap:11px;margin-top:12px;min-width:0}
#photo-preview{display:block;width:100%;height:clamp(180px,36dvh,330px);object-fit:contain;background:#1f1e1c;border-radius:12px}
.filter-bar{display:flex;gap:7px;overflow-x:auto;padding:4px 3px}
.filter-bar button{display:grid;justify-items:center;gap:5px;padding:4px;border:1px solid transparent;border-radius:8px;font-size:12px;color:var(--muted)}
.filter-bar button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.filter-bar canvas{width:54px;height:46px;display:block;border-radius:5px}
.photo-adjust label{display:flex;justify-content:space-between;font-size:14px}
.photo-adjust input{accent-color:var(--accent)}
.compare-photo{justify-self:start;font-size:14px}
#dialog:has(#photo-fields:not([hidden])){width:min(560px,calc(100% - 28px))}
#photo-fields{min-width:0}
.filter-bar button{flex:0 0 auto}
.outline-action,.option-list button{border:1px solid var(--line);border-radius:9px;padding:9px 12px;text-align:center;font-weight:650;background:var(--bg)}
.outline-action[aria-pressed=true],.outline-action:hover,.option-list button:hover{background:var(--deep);color:var(--accent)}
.account-tools,.gallery-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.option-list{display:grid;gap:8px}
.dialog-form textarea,.dialog-form select,.share-url{background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;width:100%;font:inherit}
.dialog-form .inline-check{display:flex;align-items:center;gap:9px;line-height:1.3}
.dialog-form .inline-check input{width:auto;accent-color:var(--accent)}
.community-row,.room-line{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.community-row button,.translation-original{color:var(--accent);font-weight:650;padding:4px 0;font-size:14px}
.caption .translation-original{color:var(--accent);text-decoration:underline}
.profile-card{margin-bottom:14px}
.profile-title{display:flex;gap:12px;align-items:center}
.profile-title p{margin:4px 0 0}
.profile-avatar{flex:0 0 46px;width:46px;height:46px;font-size:20px}
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
.post-tile{min-width:0;display:flex;position:relative;align-items:end;text-align:left;isolation:isolate;overflow:hidden;color:#fffdfa;aspect-ratio:3/4;border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:10px}
.post-tile img,.post-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.post-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 40%, #1d1b18ed);z-index:-1}
.tile-kind{position:absolute;top:8px;left:8px;background:#211e1bd9;border-radius:6px;color:white;padding:4px 6px;font-size:12px}
.tile-caption{min-width:0;display:grid;gap:5px}
.tile-caption strong,.tile-caption small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-caption small{color:#eae3d8}
.room-call,.room-chat{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}
.call-previews{display:grid;grid-template-columns:2fr 1fr;gap:8px}
.call-previews video{width:100%;aspect-ratio:16/10;object-fit:cover;background:#1f1e1c;border-radius:9px}
.video-panel-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.video-panel-header h2{margin:0;margin-right:auto;font-size:16px;overflow-wrap:anywhere;min-width:0}
.video-drag{cursor:grab;touch-action:none;user-select:none;padding:8px;border-radius:6px;background:var(--deep);font-size:13px;font-weight:650}
.video-drag:active{cursor:grabbing}
.floating-video{position:fixed;z-index:5;right:16px;bottom:16px;width:min(360px,calc(100% - 16px));max-height:calc(100dvh - 16px);overflow:auto;margin:0;padding:12px;background:var(--surface);border:1px solid var(--edge);border-radius:14px;box-shadow:0 8px 28px #0005}
.floating-video .broadcast-video{max-height:42dvh}
@media(max-width:650px){.floating-video{right:8px;bottom:76px;width:min(300px,calc(100% - 16px));max-height:calc(100dvh - 84px)}}
.room-chat ul{max-height:175px;overflow:auto}
@media(max-width:650px){.sidebar nav{grid-template-columns:repeat(5,1fr)}.feed-tabs button{padding:7px 5px;font-size:12px}.section-heading{gap:4px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#video-edit{display:grid;gap:10px}
#video-preview{width:100%;max-height:220px;background:#1f1e1c;border-radius:10px}
.trim-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.trim-fields label{font-size:14px}
.trim-fields input{margin-top:5px}
.photo-tools{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.photo-tools select{width:auto;max-width:100%}

/* Home */
.home-layout{grid-template-columns:190px minmax(0,1fr);max-width:1270px;column-gap:32px}
.home-layout>.discover{display:none}
.profile-signin{padding:20px 0;max-width:420px}
.profile-signin p{margin:8px 0 16px;color:var(--muted);line-height:1.5}
.studio-home{width:min(100%,920px);margin-inline:auto}
[data-studio-theme]{--studio-dark:#302d29;--studio-tint:#e9e1d6;--studio-accent:#e6ded3;--studio-ink:#302d29;--studio-highlight:#eee8df;--studio-cover:radial-gradient(ellipse at 76% 18%,#ded1bf 0,transparent 34%),radial-gradient(ellipse at 20% 110%,#7a6e60,transparent 62%),linear-gradient(132deg,#35312c,#685f54 63%,#ac9e8e)}
[data-studio-theme=bloom]{--studio-dark:#582c50;--studio-tint:#f9e1f0;--studio-accent:#ffd1e3;--studio-ink:#632e52;--studio-highlight:#fbe7f1;--studio-cover:radial-gradient(ellipse at 74% 10%,#ffe5b7 0,transparent 39%),radial-gradient(ellipse at 12% 96%,#c699ec 0,transparent 60%),linear-gradient(135deg,#703d7e,#e89abb 62%,#f6c0ca)}
[data-studio-theme=slate]{--studio-dark:#202d48;--studio-tint:#dce6f6;--studio-accent:#cbe3ff;--studio-ink:#263e63;--studio-highlight:#e9f2ff;--studio-cover:radial-gradient(ellipse at 77% 10%,#a5e8ed 0,transparent 36%),radial-gradient(ellipse at 11% 105%,#3b7cb2 0,transparent 60%),linear-gradient(132deg,#1d2946,#5072a7 68%,#82baca)}
.studio-header{padding-bottom:15px;border-bottom:1px solid var(--line)}
.studio-cover{height:clamp(100px,17vw,172px);overflow:hidden;border-radius:12px;background:var(--studio-cover)}
.studio-cover-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.studio-header-body{padding:0 0 14px}
.studio-identity{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:15px}
.studio-avatar,.profile-avatar{position:relative;overflow:hidden}
.studio-avatar{width:78px;height:78px;display:grid;place-items:center;border-radius:50%;background:var(--studio-accent);color:var(--studio-ink);font-weight:825;font-size:31px}
.studio-avatar img,.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.studio-name :is(h1,h2){line-height:1.08;margin:0;font-size:clamp(25px,3.6vw,44px);letter-spacing:-.045em;overflow-wrap:anywhere}
.studio-name p{margin:4px 0;color:var(--muted);overflow-wrap:anywhere}
.studio-profile-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.studio-edit{min-height:40px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;white-space:nowrap;color:var(--text);font-weight:650}
.studio-edit:hover{background:var(--deep)}
.studio-edit.studio-customize{border-color:transparent;color:var(--muted)}
.studio-bio{margin:10px 0 0;color:var(--text);line-height:1.5;overflow-wrap:anywhere}
.studio-stats{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0}
.studio-stats div{display:flex;flex-direction:row-reverse;align-items:baseline;gap:4px}
.studio-stats dt{color:var(--muted);font-size:13px}
.studio-stats dd{margin:0;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.studio-tabs{display:flex;flex-wrap:wrap;gap:4px 10px;margin:0 0 12px;border-bottom:1px solid var(--line)}
.studio-tabs button{min-height:42px;padding:6px 8px;border-bottom:2px solid transparent;color:var(--muted);font-weight:650}
.studio-tabs [aria-pressed=true]{border-color:var(--accent);color:var(--text)}
.studio-create-post{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;border-color:transparent}
.studio-create-post svg{width:16px;height:16px}
.studio-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));gap:10px}
.studio-tile-wrap{position:relative;min-width:0}
.studio-tile-wrap .studio-tile{padding:9px;border-radius:8px;aspect-ratio:4/5;background:#36322e}
.studio-tile-info{min-width:0;display:grid;gap:4px;width:100%}
.studio-tile-info strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:14px}
.studio-tile-format{display:inline-flex;align-items:center;gap:3px;font-size:11px}
.studio-tile-format svg{width:13px;height:13px}
.studio-pinned{z-index:1;pointer-events:none;position:absolute;top:8px;left:8px;border-radius:6px;padding:3px 6px;background:var(--studio-accent);color:var(--studio-ink);font-size:11px;font-weight:750}
.studio-empty{margin:0;padding:20px 12px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
.studio-spotlight .studio-tile-wrap:first-child{grid-column:span 2}
.studio-spotlight .studio-tile-wrap:first-child .studio-tile{aspect-ratio:8/5}
.studio-public>.gallery-filters{margin-top:16px}
.studio-style-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:0;border:0}
.studio-style-picker legend{margin-bottom:7px;font-weight:650}
.studio-style-picker label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:7px;border:1px solid var(--line);border-radius:11px;cursor:pointer;font-size:13px}
.studio-style-picker label:has(input:checked){border-color:var(--studio-dark);background:var(--studio-highlight)}
.studio-style-picker input{width:auto;margin:0;accent-color:var(--studio-dark)}
.studio-swatch{grid-column:1/-1;grid-row:1;height:38px;border-radius:6px;background:var(--studio-cover)}
.studio-cover-form{border-top:1px solid var(--line);padding-top:13px}
@media(max-width:980px){
  .home-layout{grid-template-columns:145px minmax(0,1fr);gap:20px}
}
@media(max-width:650px){
  .home-layout{display:block}
  .studio-header-body{padding-bottom:12px}
  .studio-identity{grid-template-columns:58px minmax(0,1fr);gap:10px}
  .studio-avatar{width:58px;height:58px;font-size:24px}
  .studio-edit{font-size:13px}
  .studio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .studio-tile-wrap .studio-tile{padding:6px}
  .studio-tile-info strong{font-size:12px}
  .studio-tabs button{padding-inline:6px;font-size:13px}
}

.nav.create{margin:0;border:0}
.nav.active{background:var(--deep)}
body:has(.preview-notice) .sidebar :is(#create,[data-go-live],[data-feed-filter]){display:none}

/* Post viewer */
.header{background:var(--surface)}
.header-icon{display:none}
.watch-layout{--watch-margins:78px;grid-template-columns:190px minmax(0,1fr);max-width:1580px;column-gap:24px;padding-top:12px}
.watch-layout>.discover{display:none}
.watch-layout>main{width:100%;min-width:0}
.watch-layout .section-heading{height:46px;align-items:center;margin-bottom:8px}
.watch-layout #story-strip{margin-top:18px;scroll-margin-top:calc(var(--header) + 12px)}
.watch-deck{width:100%}
.watch-main{min-width:0}
.watch-back{display:inline-flex;align-items:center;gap:5px;min-height:40px;margin-bottom:8px;color:var(--muted);font-weight:650}
.watch-back svg{width:16px;height:16px}
.watch-track{position:relative;display:flex;flex-direction:column;height:max(280px,calc(100dvh - var(--header) - var(--watch-margins) - var(--live-strip-height, 0px)));overflow:hidden auto;scroll-snap-type:y mandatory;scrollbar-width:none;border-radius:14px}
.watch-deck:has(.watch-back) .watch-track{height:max(280px,calc(100dvh - var(--header) - var(--watch-margins) - 48px))}
.watch-track[data-changing-post]{overflow-anchor:none}
.watch-track[data-changing-post] .watch-details{display:none}
.watch-track[data-sliding-post]{overflow-y:hidden;scroll-snap-type:none}
.watch-track::-webkit-scrollbar{display:none}
.watch-slide{scroll-snap-align:start;scroll-snap-stop:always;flex:0 0 100%;display:grid;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;overflow:hidden;background:#292724;color:white}
.watch-frame{position:relative;min-height:0}
.watch-frame :is(img,video){position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.watch-selected{background:linear-gradient(160deg,var(--watch-top,#4b453c),var(--watch-bottom,#292724))}
.watch-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ffffff20;margin-top:8px}
.watch-nav{
  display:flex;
  align-items:center;
  flex-shrink:0;
  color:#fff;
}
.watch-step{display:grid;place-items:center;width:40px;height:44px;border-radius:7px;color:inherit}
.watch-step:hover:enabled{background:#ffffff2e}
.watch-step svg{width:17px;height:17px}
.watch-position{min-width:40px;white-space:nowrap;font-size:12px;text-align:center;font-variant-numeric:tabular-nums}
.watch-details{
  padding:10px clamp(9px,2vw,20px) 0;
  background:#201d1b;
  color:#fff;
}
.watch-details :is(button,a):focus-visible{
  outline-color:#fffdfa;
  outline-offset:-2px;
}
.watch-details .author{gap:7px;margin-bottom:4px}
.watch-details .author-label{min-width:0;overflow-wrap:anywhere}
.watch-details .author-label small{margin-top:2px;color:#eee7de;font-size:11px}
.watch-avatar{flex-basis:30px;width:30px;height:30px;background:#e9e0d3;font-size:12px}
:root[data-color-theme=dark] :is(.watch-slide,.watch-selected,#photo-preview,#video-preview,.call-previews video,.broadcast-video,.story-viewer img,.story-viewer video){background:var(--bg)}
:root[data-color-theme=dark] .watch-details{background:var(--surface)}
:root[data-color-theme=dark] .watch-details .author-label small{color:var(--muted)}
:root[data-color-theme=dark] .watch-avatar{background:var(--accent)}
.watch-details .author button{padding:4px 6px;background:#ffffff17;border-color:#ffffff49;color:inherit}
.watch-details .author button:hover{background:#ffffff32}
.watch-details .author .post-place{margin-left:0}
.watch-details .post-place svg{width:13px;height:13px}
.watch-details .caption p{
  max-height:3.2em;
  overflow:auto;
  font-size:15px;
  line-height:1.45;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.watch-details .caption .translation-original{color:inherit}
.video-actions{display:flex;flex-wrap:wrap;gap:3px}
.video-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:44px;
  min-width:44px;
  padding:4px 7px;
  border-radius:7px;
  font-size:13px;
  font-weight:700;
  color:inherit;
}
.video-actions button:hover,.video-actions button[aria-pressed=true]{background:#ffffff22}
.video-actions button[aria-pressed=true] svg{fill:currentColor}
.watch-queue{margin-top:8px;border-bottom:1px solid var(--line)}
.watch-queue summary{padding:12px 2px;cursor:pointer;color:var(--muted);font-size:13px;font-weight:680}
.queue-item{display:grid;grid-template-columns:75px minmax(0,1fr);gap:8px;align-items:center;width:100%;padding:7px;border-radius:10px;text-align:left}
.queue-item[aria-current],.queue-item:hover{background:var(--deep)}
.queue-item[aria-current]{box-shadow:inset 3px 0 var(--accent)}
.queue-image{height:51px;overflow:hidden;border-radius:7px;background:#403a33}
.queue-image img,.queue-image video{width:100%;height:100%;display:block;object-fit:cover}
.queue-label{min-width:0}
.queue-label strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:14px;line-height:1.22}
.queue-label small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
body>.preview-notice{background:var(--deep);color:var(--text)}
@media(max-width:1050px){
  .watch-layout{grid-template-columns:144px minmax(0,1fr);gap:18px}
}
@media(max-width:650px){
  .header-icon{display:grid;place-items:center;min-width:44px;height:44px;border-radius:8px;color:var(--accent)}
  .header-icon:hover,.header-icon[aria-expanded=true]{background:var(--deep)}
  .header-icon svg{width:18px;height:18px}
  .header #search-form{display:none}
  .header.search-open #search-form{display:flex;position:absolute;top:calc(var(--header) + 4px);left:12px;right:12px;background:var(--surface);padding:10px;box-shadow:0 8px 24px #29272420}
  .header #search{font-size:16px}
  .watch-layout{--watch-margins:calc(225px + env(safe-area-inset-bottom));display:block;max-width:none;padding-inline:8px}
  .watch-layout .section-heading{height:auto;min-height:44px;align-items:center;margin-bottom:4px;flex-wrap:wrap}
  .watch-layout .feed-tabs{gap:0}
  .watch-layout .feed-tabs button{min-height:40px;font-size:12px;padding:6px 8px}
  .watch-controls{flex-wrap:wrap;gap:0}
  .watch-nav{margin-left:auto}
  .watch-details .caption p{font-size:14px}
}

/* Around */
.around-layout{
  grid-template-columns:190px minmax(0,1fr);
  max-width:1270px;
  column-gap:32px;
  padding-top:8px;
}
.around-layout>.discover{display:none}
.around-map-panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.around-map-title,#around-search .place-search-label{
  position:absolute;
  width:1px;
  height:1px;
  margin:0;
  clip-path:inset(50%);
  overflow:hidden;
  white-space:nowrap;
}
.around-map-stage{
  position:relative;
  isolation:isolate;
  height:clamp(420px,calc(100dvh - var(--header) - 48px),940px);
  overflow:hidden;
  background:#cfe6e9;
}
.around-map-surface{position:absolute;inset:0;touch-action:none}
.around-map-controls,.around-show-activity,.around-my-location{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  box-shadow:0 3px 14px #29272421;
}
.around-map-controls button,.around-show-activity,.around-my-location{padding:7px 10px;font-size:13px;font-weight:700;min-height:40px}
.around-map-controls button{border-radius:7px;white-space:nowrap}
.around-map-controls button:hover,.around-show-activity:hover,.around-my-location:hover{background:var(--deep)}
.around-map-styles{top:14px;right:14px}
.around-map-styles button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
.around-map-views{bottom:14px;left:14px}
.around-map-zoom{right:14px;bottom:68px;flex-direction:column}
.around-map-zoom button{width:40px;padding:4px;font-size:18px;line-height:1}
.around-my-location{right:14px;bottom:160px;gap:6px}
.around-my-location::before{
  content:'';
  width:10px;
  height:10px;
  border:2px solid #2c67af;
  border-radius:50%;
}
.around-show-activity{right:14px;bottom:14px;gap:7px}
.around-show-activity span{font-size:16px;line-height:1}
#around-canvas{display:block;width:100%;height:100%;cursor:grab}
#around-canvas,.map-marker{touch-action:none}
#around-canvas:active{cursor:grabbing}
#around-canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
#around-markers{position:absolute;inset:0;pointer-events:none}
#around-device-location{
  position:absolute;
  inset:0 auto auto 0;
  width:16px;
  height:16px;
  border:2px solid #fffdfa;
  border-radius:50%;
  background:#2c67af;
  box-shadow:0 0 0 6px #2c67af40;
  pointer-events:none;
}
.around-location-dialog{padding:22px;border-radius:16px}
.around-location-dialog::backdrop{background:var(--scrim)}
.around-location-emblem{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin-bottom:12px;
  border-radius:12px;
  background:#e6eef9;
}
.around-location-emblem::after{
  content:'';
  width:15px;
  height:15px;
  background:#2c67af;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 3px #a8c2e4;
}
.around-location-dialog h2{font-size:22px}
.around-location-dialog p{margin-top:8px;color:var(--muted);line-height:1.5}
.around-location-status:empty{display:none}
.around-location-status:not(:empty){padding:8px 10px;border-radius:8px;background:var(--deep)}
.around-location-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.around-location-actions button{min-height:44px}
.map-marker{position:absolute;left:0;top:0;display:grid;justify-items:center;grid-template-rows:28px 1fr;gap:3px;padding:0;min-width:32px;pointer-events:auto;color:var(--text)}
.map-marker-dot{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--on-accent);border:2px solid #fffdfa;font-size:12px;font-weight:800;box-shadow:0 1px 5px #25211d60}
.map-marker-label{white-space:nowrap;background:var(--surface);border-radius:6px;padding:3px 5px;font-weight:720;font-size:12px;box-shadow:0 1px 5px #25211d30}
.map-marker--compact .map-marker-label{display:none}
.map-marker[aria-pressed=true] .map-marker-dot{background:var(--selected);color:var(--text);border-color:#655b50}
.around-map-credit{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;padding:7px 11px;font-size:12px;color:var(--muted)}
#around-tiles-credit[hidden]+span{display:none}
#around-maptiler-logo{position:absolute;z-index:2;bottom:66px;left:14px;padding:4px 6px;border-radius:5px;background:white}
#around-maptiler-logo img{display:block;width:78px;height:auto}
.around-city-bar{display:flex;gap:7px;margin:0 0 13px;padding:4px;overflow-x:auto;scrollbar-width:thin}
.around-city-bar button{flex:none}
#around-cities{display:flex;gap:7px}
.city-filter{display:flex;gap:7px;align-items:center;white-space:nowrap;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 11px;font-size:14px;font-weight:650}
.city-filter[aria-pressed=true]{background:var(--deep);border-color:#a99e91}
.city-filter span:last-child:not(:first-child){font-size:12px;color:var(--muted)}
.around-results{
  margin-top:18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
}
.around-results-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.around-results-heading h2{font-size:21px;scroll-margin-top:calc(var(--header) + 14px)}
#around-post-count{font-size:13px;color:var(--muted);white-space:nowrap}
.around-post-reminder{margin:0 0 8px;color:var(--muted);font-size:13px;line-height:1.45}
.around-results .post-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.feed-live-check-ins{margin-top:16px}
.feed-live-check-ins h2,#around-live-check-ins h3{font-size:16px;margin:0 0 8px}
.feed-live-check-ins h3{font-size:14px;margin:10px 0 5px}
.broadcast-bar{display:flex;justify-content:space-between;align-items:center;gap:8px}
.broadcast-bar h2{margin:0}
.broadcast-list{margin-top:8px}
.broadcast-list button[data-watch-broadcast]{text-align:left;padding:3px 0}
.broadcast-badge{display:inline-block;background:#a9253a;color:#fffdfa;border-radius:5px;padding:2px 5px;font-weight:750;font-size:12px}
.feed-broadcasts{margin-bottom:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.feed-broadcasts h2{font-size:15px;margin:0 0 5px}
.feed-broadcasts ul{display:flex;gap:8px;overflow-x:auto;margin:0;padding:2px 2px 5px;list-style:none}
.feed-broadcasts li{flex:none;max-width:100%}
.profile-broadcast{margin:8px 0}
.broadcast-link{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);text-align:left}
.broadcast-link strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.broadcast-watch{color:var(--muted);font-size:12px}
button.broadcast-link{cursor:pointer}
button.broadcast-link:hover{background:var(--selected)}
.watch-layout:has(#feed-broadcasts:not([hidden])){--live-strip-height:94px}
.broadcast-video{display:block;width:100%;max-height:55vh;object-fit:contain;background:#1f1e1c;border-radius:12px;margin:12px 0}
.map-marker.map-marker-live .map-marker-dot{width:40px;background:#a9253a;color:#fffdfa}
.map-post-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px}
.map-post-actions .outline-action{padding:3px 7px;font-size:12px}
#broadcast-map-fields select{width:100%}
#around-live-check-ins{margin:10px 0 16px}
.live-check-in-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.live-check-in-list li{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.live-check-in-list li>a:first-child{font-weight:700}
.live-check-in-list .place-link{display:inline-flex;align-items:center;gap:4px;color:var(--accent);text-decoration:underline}
.live-check-in-list .place-link svg{width:16px;height:16px}
[data-check-in]{padding:12px;border:1px solid var(--line);border-radius:10px;margin:12px 0}
[data-check-in] summary{cursor:pointer;font-weight:650}
[data-check-in] form{margin-top:10px}
#post-map-fields label{display:block;margin-bottom:4px}
.post-map-setting{display:grid;gap:6px;padding:9px 0;border-block:1px solid var(--line)}
#post-map-fields{display:grid;gap:6px}
#post-map-fields select{width:100%}
.around-post{min-width:0}
.around-post .post-tile{width:100%;aspect-ratio:4/3;border-radius:9px}
.around-post .map-post-actions{min-height:34px;padding:3px 2px;color:var(--muted)}
.around-post .map-post-actions .outline-action{background:transparent}
.around-post .map-post-actions .outline-action:hover{background:var(--deep)}
.author .post-place{display:flex;align-items:center;gap:4px;margin-left:auto;padding:5px 7px}
.post-place svg{width:15px;height:15px}
.map-form-note{margin:0}
@media(max-width:1050px){.around-layout{grid-template-columns:144px minmax(0,1fr);gap:18px}}
@media(max-width:900px){
  .around-map-styles{top:68px;left:14px;right:auto}
}
@media(max-width:650px){
  .around-layout{display:block}
  .around-map-stage{height:clamp(350px,calc(100dvh - var(--header) - 155px),680px)}
  .around-map-styles{top:65px;left:9px}
  .around-map-views,#around-maptiler-logo{left:9px}
  .around-map-zoom,.around-show-activity,.around-my-location{right:9px}
  .around-map-views,.around-show-activity{bottom:9px}
  .around-map-zoom,#around-maptiler-logo{bottom:60px}
  .around-my-location{bottom:152px}
  .around-location-dialog{margin:auto 10px max(12px,env(safe-area-inset-bottom));width:auto;max-width:none}
  .around-results{margin-top:12px;padding:10px}
  .around-results .post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .around-post .post-tile{aspect-ratio:1}
}

/* Detailed maps and place search */
#around-tiles{position:absolute;inset:0;pointer-events:none}
#around-tiles img{position:absolute;top:0;left:0;visibility:hidden;max-width:none;user-select:none}
#around-tiles .is-loaded{visibility:visible}
.around-map-credit a{text-decoration:underline;text-underline-offset:2px}
.place-search{margin:0 0 12px;min-width:0}
.place-search-label{display:block;margin:0 0 6px;font-weight:680}
.place-search-line{display:flex;gap:7px}
.place-search input{width:100%;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:9px 10px}
.place-search-line button{flex-shrink:0}
.place-search-results{display:grid;gap:4px;max-height:200px;overflow:auto;color:var(--muted);font-size:14px}
.place-search-results:not(:empty){padding-top:6px}
.place-search-results button{display:grid;gap:3px;text-align:left;padding:8px 10px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:8px}
.place-search-results button:hover{background:var(--deep)}
.place-search-results small{color:var(--muted)}
#around-search{
  position:absolute;
  top:14px;
  left:14px;
  z-index:3;
  width:min(380px,calc(100% - 270px));
  margin:0;
}
#around-search .place-search-line{
  gap:0;
  padding:3px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  box-shadow:0 3px 14px #29272421;
}
#around-search input{min-height:40px;border:0;background:transparent}
#around-search input:focus-visible{outline-offset:-2px}
#around-search [data-place-search]{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
#around-search .place-search-results:not(:empty){
  margin-top:5px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 3px 14px #29272421;
}
#around-search .place-search-results button{text-align:left}
@media(max-width:900px){
  #around-search{width:min(380px,calc(100% - 28px))}
}
@media(max-width:650px){
  .around-map-credit{font-size:11px}
  .place-search input{font-size:16px}
  #around-search{top:9px;left:9px;width:calc(100% - 18px)}
}

/* Stories */
.stories-bar{
  --story-focus:var(--accent);
  --story-muted:var(--muted);
  --story-hover:var(--deep);
  padding:2px 0 8px;
  background:transparent;
  color:var(--text);
}
.stories-heading-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.story-audience-button{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:4px 7px;border-radius:7px;color:var(--story-muted);font-size:12px}
.story-audience-button svg{width:15px;height:15px;flex:none}
.story-audience-button:hover{background:var(--story-hover)}
.story-audience-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:0;
  padding-top:8px;
  border-top:1px solid var(--line);
}
.story-audience-stats div{display:flex;flex-direction:column-reverse;gap:2px}
.story-audience-stats div + div{padding-left:11px;border-left:1px solid var(--line)}
.story-audience-stats dt{font-size:12px;color:var(--muted)}
.story-audience-stats dd{margin:0;font-size:20px;font-weight:720;line-height:1.1;font-variant-numeric:tabular-nums}
#main > #story-strip .stories-bar{margin-bottom:12px}
.studio-cover--stories{
  position:relative;
  display:grid;
  align-items:center;
  height:auto;
  min-height:0;
}
.studio-cover--stories .studio-cover-image{position:absolute;inset:0}
.studio-cover--stories:not(.studio-cover--photo){background:var(--studio-highlight)}
:root[data-color-theme=dark] .studio-cover--stories:not(.studio-cover--photo){background:color-mix(in srgb,var(--surface) 87%,var(--studio-highlight))}
.studio-cover--stories.studio-cover--photo::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,var(--studio-dark),#211e1bb8 74%);
  pointer-events:none;
}
.studio-cover--stories #story-strip{
  position:relative;
  z-index:1;
  min-width:0;
  padding:4px 12px;
}
.studio-cover--photo .stories-bar{
  --story-focus:var(--studio-accent);
  --story-muted:#f3ede5;
  --story-hover:#ffffff1c;
  color:#fffdfa;
}
.stories-heading{margin:0;font-size:17px;line-height:1.25;font-weight:720;letter-spacing:-.015em}
.story-hint{margin:6px 0 0;color:var(--muted);font-size:13px}
.story-empty{margin:10px 4px 2px;color:var(--story-muted);font-size:13px}
.story-rail{
  display:flex;
  gap:6px;
  overflow-x:auto;
  margin:0;
  padding:4px;
  list-style:none;
  scroll-padding-inline:4px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:#a89b8a transparent;
}
.story-rail li{flex:0 0 78px;min-width:0;scroll-snap-align:start}
.story-card{
  display:grid;
  justify-items:center;
  align-content:start;
  gap:6px;
  width:100%;
  height:100%;
  padding:4px 3px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:inherit;
  text-align:center;
}
.story-card:hover{background:var(--story-hover)}
.stories-bar .story-card:focus-visible{outline:2px solid var(--story-focus);outline-offset:1px}
.story-thumbnail{
  display:grid;
  place-items:center;
  width:48px;
  aspect-ratio:1;
  padding:3px;
  overflow:hidden;
  border:1px solid #a99e91;
  border-radius:50%;
  background:#484036;
  color:#f3e9dc;
}
.story-thumbnail svg{width:21px;height:21px}
.story-thumbnail img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center 38%}
.story-add .story-thumbnail{background:var(--selected);color:var(--text);border-color:transparent}
.story-add .story-thumbnail svg{width:24px;height:24px}
.story-card-details{display:grid;gap:2px;width:100%;min-width:0;line-height:1.25}
.story-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}
.story-time{white-space:nowrap;font-size:11px;color:var(--story-muted)}
.stories-controls{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}
.presence-dot{display:inline-block;width:7px;height:7px;border-radius:50%;border:1px solid currentColor;vertical-align:1px;flex:none}
.presence-dot.is-online{background:var(--online);border-color:var(--online)}
.activity-card .story-title{max-width:100%}
.activity-card .story-time{display:flex;gap:4px;align-items:center}
.activity-live-label{padding:2px 6px;border-radius:4px;background:#f0e3db;color:#7b3924;font-weight:750;font-size:10px;line-height:1.2}
:root[data-color-theme=dark] .activity-live-label{background:#4a3027;color:#ffc5a6}
.watch-layout #story-strip .stories-bar{margin-bottom:14px;padding:0 0 8px;border-bottom:1px solid var(--line)}
.watch-layout .story-rail{gap:8px}
.watch-layout .story-rail li{flex-basis:78px}
.watch-layout .story-card{gap:5px;padding:4px 5px}
.watch-layout .story-thumbnail{width:52px;font-weight:750;font-size:17px}
.watch-layout .activity-live .story-thumbnail{background:#684432;border:2px solid #9d522f}
.watch-layout .activity-online .story-thumbnail{background:#e6ede2;color:#2b5740;border-color:#829982}
.watch-layout .activity-story .story-thumbnail{border:2px solid #776651}
.watch-layout .story-add .story-thumbnail{border:1px dashed #978a78;background:transparent}
@media(max-width:650px){
  .watch-layout #story-strip .stories-bar{margin-bottom:8px;padding-bottom:5px}
  .watch-layout .story-rail{gap:3px}
  .watch-layout .story-rail li{flex-basis:65px}
  .watch-layout .story-thumbnail{width:43px}
  .watch-layout .stories-heading{font-size:15px}
  .watch-layout .story-audience-button{padding-inline:3px;font-size:11px}
  .watch-layout .story-audience-button svg{width:13px;height:13px}
}
.story-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.story-picker button{display:flex;align-items:center;gap:10px;min-height:60px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--accent);font-weight:700}
.story-picker button:hover{background:var(--deep)}
.story-picker svg{width:23px;height:23px;flex:none}
.story-duration{display:flex;flex-wrap:wrap;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:9px}
.story-duration legend{padding:0 4px}
.story-duration label{display:inline-flex;align-items:center;gap:5px}
.story-duration input{width:auto}
#story-file-field label{display:block;margin-bottom:4px}
.story-viewer{display:grid;gap:10px;min-width:0}
.story-viewer-time{margin:0;color:var(--muted);font-size:13px}
.story-viewer img,.story-viewer video{display:block;width:100%;max-height:52dvh;object-fit:contain;background:#1f1e1c;border-radius:12px}
.story-body{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.story-link{color:var(--accent);font-weight:750;text-decoration:underline;overflow-wrap:anywhere}
.story-viewer-actions{display:flex;justify-content:space-between;gap:8px}
.story-viewer [data-story-delete]{justify-self:start}
@media(max-width:650px){
  .stories-bar{padding:0 0 6px}
  .studio-cover--stories #story-strip{padding:3px 8px}
  .story-rail li{flex-basis:70px}
}

.chat-layout{grid-template-columns:190px minmax(0,1fr);max-width:1400px;gap:26px}
.chat-layout>.discover{display:none}
.chat-layout #main{min-width:0}
.chat-shell{
  --chat-base:#fffdfa;
  --chat-panel:#f6f3fa;
  --chat-ink:#242036;
  --chat-secondary:#666071;
  --chat-border:#dfd9e9;
  --chat-accent:#5534a9;
  --chat-on-accent:#fff;
  --chat-active:#eee6ff;
  --chat-bubble:#f1edf5;
  --chat-mine:#50339b;
  --chat-on-mine:#fff;
  --chat-danger:#992941;
  color:var(--chat-ink)
}
:root[data-color-theme=dark] .chat-shell{
  --chat-base:#211e29;
  --chat-panel:#282434;
  --chat-ink:#f6f1fc;
  --chat-secondary:#c2b8ce;
  --chat-border:#453b54;
  --chat-accent:#c5afff;
  --chat-on-accent:#231337;
  --chat-active:#382a50;
  --chat-bubble:#332d40;
  --chat-mine:#c6afff;
  --chat-on-mine:#24163f;
  --chat-danger:#ffadba
}
.chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.chat-workspace{display:grid;grid-template-columns:clamp(237px,27%,315px) minmax(0,1fr);height:clamp(530px,calc(100dvh - var(--header) - 107px),880px);overflow:hidden;border:1px solid var(--chat-border);border-radius:24px;background:var(--chat-base);box-shadow:0 20px 54px #20133214}
.chat-rail{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:16px;min-width:0;padding:22px 12px 14px;background:var(--chat-panel);border-inline-end:1px solid var(--chat-border)}
.chat-rail-header{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:0 7px}
.chat-rail-header h2{font-size:1.1rem;white-space:nowrap}
.chat-primary,.chat-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 13px;border-radius:12px;font-weight:700;white-space:nowrap}
.chat-primary{background:var(--chat-accent);color:var(--chat-on-accent)}
.chat-primary:hover:enabled{filter:brightness(1.12)}
.chat-tool{border:1px solid var(--chat-border);color:var(--chat-ink)}
.chat-tool:hover:enabled,.chat-tool[aria-expanded=true]{background:var(--chat-active)}
.chat-primary svg,.chat-tool svg,.chat-search svg{width:17px;height:17px;flex:none}
.chat-rail-header .chat-primary{padding-inline:9px;font-size:.84rem}
.chat-shell input{width:100%;min-width:0;background:var(--chat-base);color:var(--chat-ink)}
.chat-shell :is(button,input,ol):focus-visible{outline:2px solid var(--chat-accent);outline-offset:2px}
.chat-shell input::placeholder{color:var(--chat-secondary);opacity:1}
.chat-search{display:flex;align-items:center;gap:8px;margin:0 7px;padding:0 10px;border-radius:11px;border:1px solid var(--chat-border);background:var(--chat-base);color:var(--chat-secondary)}
.chat-search:focus-within{box-shadow:0 0 0 1px var(--chat-accent)}
.chat-search input{min-height:43px;border:0;outline:none!important;font-size:.92rem}
.chat-room-list,.chat-messages,.chat-members{margin:0;padding:0;list-style:none}
.chat-room-list{overflow:auto;scrollbar-width:thin;padding:3px}
.chat-room-list li+li{margin-top:4px}
.chat-room-row{display:grid;width:100%;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 8px;border-radius:14px;text-align:start;min-height:67px}
.chat-room-row:hover,.chat-room-row[aria-current=true]{background:var(--chat-active)}
.chat-room-row[aria-current=true]{box-shadow:inset 3px 0 var(--chat-accent)}
.chat-avatar{display:grid;flex:none;place-items:center;width:41px;height:41px;border-radius:13px;background:#e5d8fc;color:#462587;font-size:.83rem;font-weight:800;overflow:hidden}
.chat-avatar[data-tone="1"]{background:#d6eee9;color:#16564c}
.chat-avatar[data-tone="2"]{background:#f5dfcd;color:#864719}
.chat-avatar[data-tone="3"]{background:#d9e5fa;color:#2c4b83}
.chat-avatar--room{width:46px;height:46px}
.chat-avatar--message{width:32px;height:32px;border-radius:10px;font-size:.74rem}
.chat-room-label{min-width:0;display:grid;gap:4px}
.chat-room-label :is(strong,span){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-room-label strong{font-size:.96rem}
.chat-room-label span,.chat-room-row time,.chat-list-empty{color:var(--chat-secondary);font-size:.8rem}
.chat-room-row time{align-self:start;margin-top:3px;font-variant-numeric:tabular-nums}
.chat-list-empty{padding:14px}
.chat-join{justify-content:flex-start;margin-inline:7px;color:var(--chat-accent);font-size:.89rem}
.chat-stage{min-width:0;min-height:0;position:relative}
.chat-empty-stage,.chat-thread-empty{display:grid;place-content:center;justify-items:center;gap:11px;padding:26px;text-align:center;line-height:1.5}
.chat-empty-stage{height:100%;min-height:220px;background:radial-gradient(ellipse at 75% 0,var(--chat-active),transparent 58%)}
.chat-empty-stage h2{font-size:clamp(1.5rem,3vw,2.25rem);letter-spacing:-.04em}
.chat-empty-stage p,.chat-thread-empty p{color:var(--chat-secondary);max-width:32ch}
.chat-empty-stage button{margin-top:5px}
.chat-login{border:1px solid var(--chat-border);border-radius:24px;background-color:var(--chat-base);min-height:385px}
.chat-emblem{display:grid;place-items:center;width:68px;height:68px;border-radius:24px;background:var(--chat-active);color:var(--chat-accent)}
.chat-emblem svg{width:32px;height:32px}
.chat-thread{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;position:relative}
.chat-thread-header{display:flex;align-items:center;gap:11px;min-width:0;padding:17px 20px;border-bottom:1px solid var(--chat-border);background:linear-gradient(110deg,var(--chat-active),var(--chat-base) 72%)}
.chat-room-heading{flex:1;min-width:0}
.chat-room-heading h2{font-size:1.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-room-heading p{font-size:.79rem;color:var(--chat-secondary);margin-top:3px}
.chat-back{display:none}
.chat-popover{position:absolute;z-index:2;top:74px;right:15px;width:min(calc(100% - 30px),355px);max-height:calc(100% - 165px);overflow:auto;overscroll-behavior:contain;padding:16px;display:grid;gap:12px;background:var(--chat-base);border:1px solid var(--chat-border);border-radius:16px;box-shadow:0 14px 40px #20133238}
.chat-popover h3,.chat-thread-empty h3{margin:0;font-size:1rem}
.chat-popover p{color:var(--chat-secondary);font-size:.88rem}
.chat-popover label{font-weight:700}
.chat-popover input,.chat-room-dialog input{min-height:44px;padding:10px;border:1px solid var(--chat-border);border-radius:9px}
.chat-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.chat-code-row input{font-family:monospace}
.chat-members li{display:flex;align-items:center;gap:9px;min-width:0;padding:6px 0;overflow-wrap:anywhere}
.chat-members .chat-avatar{width:30px;height:30px;border-radius:9px;font-size:.7rem}
.chat-danger{justify-self:start;color:var(--chat-danger)}
.chat-messages{display:flex;flex-direction:column;gap:14px;min-height:0;padding:18px 22px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.chat-thread-empty{margin:auto;color:var(--chat-ink)}
.chat-thread-empty .chat-emblem{width:50px;height:50px;border-radius:17px}
.chat-thread-empty .chat-emblem svg{width:25px;height:25px}
.chat-day{align-self:center;padding:4px 11px;border:1px solid var(--chat-border);border-radius:999px;color:var(--chat-secondary);font-size:.75rem}
.chat-message{align-self:start;display:flex;align-items:flex-end;gap:8px;max-width:min(83%,62ch);min-width:0}
.chat-message--mine{align-self:end}
.chat-message-content{min-width:0}
.chat-message-meta{display:flex;align-items:center;gap:7px;color:var(--chat-secondary);font-size:.76rem;flex-wrap:wrap;margin:0 4px 3px}
.chat-message--mine .chat-message-meta{justify-content:flex-end}
.chat-message-meta strong{overflow-wrap:anywhere}
.chat-message p{padding:9px 13px;border-radius:15px 15px 15px 4px;background:var(--chat-bubble);color:var(--chat-ink);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-message--mine p{background:var(--chat-mine);color:var(--chat-on-mine);border-radius:15px 15px 4px 15px}
.chat-remove{display:inline-grid;place-items:center;color:var(--chat-secondary);min-width:28px;min-height:24px;padding:2px;border-radius:8px}
.chat-remove:hover{background:var(--chat-active)}
.chat-remove svg{width:15px;height:15px}
.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;border-top:1px solid var(--chat-border);padding:13px 18px;background:var(--chat-base)}
.chat-compose input{min-height:48px;padding:10px 14px;background:var(--chat-panel);border:1px solid var(--chat-border);border-radius:13px}
.chat-feedback{margin:8px 5px 0;color:var(--chat-secondary);font-size:.88rem}
.chat-feedback:empty,.chat-form-status:empty{display:none}
.chat-room-dialog{width:min(420px,calc(100% - 28px));padding:22px;background:var(--chat-base);color:var(--chat-ink);border:1px solid var(--chat-border);border-radius:20px;box-shadow:0 18px 64px #190d2d55}
.chat-room-dialog::backdrop{background:#2016299c}
.chat-room-dialog form{display:grid;gap:12px}
.chat-room-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chat-room-dialog label{font-weight:700}
.chat-form-status{color:var(--chat-danger);font-size:.89rem}
@media(max-width:1000px) and (min-width:651px){.chat-layout{grid-template-columns:150px minmax(0,1fr);gap:16px;padding-inline:15px}.chat-layout .nav{gap:7px;padding-inline:9px}}
@media(max-width:820px){
  .chat-workspace{grid-template-columns:minmax(0,1fr)}
  .chat-rail{border:0}
  .chat-stage{display:none}
  .chat-workspace--open .chat-rail{display:none}
  .chat-workspace--open .chat-stage{display:block}
  .chat-back{display:inline-flex;padding:8px}
}
@media(max-width:650px){
  .chat-layout{max-width:none;padding-bottom:calc(162px + env(safe-area-inset-bottom))}
  .chat-workspace{height:clamp(330px,calc(100dvh - var(--header) - 205px - env(safe-area-inset-bottom)),700px);border-radius:17px}
  .chat-rail,.chat-thread-header{padding-inline:11px}
  .chat-thread-header{gap:6px;padding-block:11px}
  .chat-thread-header .chat-avatar--room{display:none}
  .chat-thread-header .chat-tool,.chat-thread-header .chat-primary{padding-inline:7px}
  .chat-details-toggle svg,.chat-invite-button svg{display:none}
  .chat-messages,.chat-compose{padding-inline:11px}
  .chat-popover{top:63px}
}

.people-results{margin:0 0 24px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.people-results>h2{margin-bottom:10px}
.people-results>ul{display:grid;gap:3px;padding:0;margin:0;list-style:none}
.people-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0}
.people-profile{display:flex;align-items:center;gap:11px;min-width:0;color:var(--text);text-decoration:none}
.people-profile:hover strong{text-decoration:underline}
.people-avatar{position:relative;display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:13px;overflow:hidden;background:var(--selected);font-weight:780}
.people-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.people-identity{display:grid;gap:3px;min-width:0}
.people-identity :is(strong,span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.people-identity span{color:var(--muted);font-size:.85rem}
.people-follow{flex:none;min-height:38px}
.people-follow[aria-pressed=true]{background:var(--deep)}
.people-results>.outline-action{margin-top:8px}
.search-posts-title{margin-bottom:9px}

.studio-stat-button{padding:4px 0;border-radius:4px;color:var(--muted);text-align:start}
.studio-stat-button span{color:var(--text);font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.studio-stat-button:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.connections-switch{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.connections-switch>[aria-pressed=true]{background:var(--selected);border-color:var(--accent)}
.connections-status{color:var(--muted);margin:10px 0}
.connections-status:empty{display:none}
.connections-list{max-height:min(50dvh,420px);overflow:auto;padding:3px 4px;margin:0;list-style:none;scrollbar-width:thin}
.connections-list .people-profile{width:100%;padding:3px 4px;border-radius:10px}
.connections-list .people-profile:hover{background:var(--deep)}
.connections-dialog>[data-connection-more]{margin-top:10px}
@media(max-width:650px){
  .studio-stat-button,.connections-switch>button,.connections-list .people-profile{min-height:44px}
}

.hub-trigger{display:inline-flex;align-items:center;gap:6px}
.hub-trigger svg{width:17px;height:17px}
#hub-dialog{
  --hub-accent:#244b43;
  --hub-on-accent:#fff9ec;
  --hub-wash:#e4eee6;
  --hub-store:#f2e3d3;
  --hub-store-ink:#68442e;
  position:fixed;inset:12px 12px 12px auto;margin:0;
  width:min(455px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);
  padding:0 20px 20px;border-radius:23px;border-color:var(--edge);overscroll-behavior:contain;
  box-shadow:0 20px 75px #1a18134d;color:var(--text)
}
:root[data-color-theme=dark] #hub-dialog{
  --hub-accent:#a6d1bc;--hub-on-accent:#152b23;--hub-wash:#2a4135;
  --hub-store:#4a3427;--hub-store-ink:#f4d4b5
}
.hub-header{position:sticky;top:0;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:18px 0 14px;background:var(--surface);border-bottom:1px solid var(--line)}
.hub-header h2{font-size:1.35rem;letter-spacing:-.04em}
.hub-header p{margin-top:2px;color:var(--muted);font-size:.85rem;overflow:hidden;text-overflow:ellipsis}
.hub-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--hub-wash);color:var(--hub-accent)}
.hub-close{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--deep)}
.hub-close:hover{background:var(--selected)}
.hub-work,.hub-section{padding:17px 0 0}
.hub-section{margin-top:14px;border-top:1px solid var(--line)}
.hub-work h3,.hub-section h3,.hub-recent h3{font-size:.95rem;margin:0 0 9px}
.hub-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hub-tile{display:grid;gap:5px;padding:12px;min-height:104px;text-align:start;border-radius:15px;align-content:start;text-decoration:none}
.hub-tile>span:first-child{margin-bottom:3px}
.hub-tile>span:last-child{font-size:.8rem;line-height:1.35}
.hub-tile--studio{background:var(--hub-wash);color:var(--hub-accent)}
.hub-tile--store{background:var(--hub-store);color:var(--hub-store-ink)}
.hub-tile:hover{box-shadow:inset 0 0 0 1px currentColor}
.hub-quick{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.hub-quick button,.hub-back{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;border:1px solid var(--line);padding:7px 10px;border-radius:10px;font-size:.86rem;font-weight:700}
.hub-quick button:hover,.hub-back:hover{background:var(--deep)}
.hub-quick svg,.hub-back svg{width:16px;height:16px}
.hub-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:46px;width:100%;padding:4px;border-radius:10px;text-align:start;font-size:.9rem}
button.hub-row:hover{background:var(--deep)}
.hub-row-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--deep)}
.hub-row svg{width:17px;height:17px}
.hub-row .theme-picker{min-height:38px}
.hub-row-value{color:var(--muted);max-width:10ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hub-detail{padding-top:12px}
#hub-detail-content{margin-top:12px}
.hub-loading{padding:12px 0;color:var(--muted);line-height:1.45}
.hub-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 18px}
.hub-metrics>div{display:flex;flex-direction:column-reverse;gap:3px;background:var(--hub-wash);border-radius:14px;padding:10px 13px;color:var(--hub-accent)}
.hub-metrics dt{font-size:.82rem;font-weight:650}
.hub-metrics dd{margin:0;font-weight:800;font-size:1.48rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.hub-recent-heading{display:flex;align-items:baseline;justify-content:space-between;gap:7px}
.hub-recent ul{list-style:none;padding:0;margin:4px 0 0}
.hub-post{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 5px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--text)}
.hub-post:hover{background:var(--deep)}
.hub-post-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--deep)}
.hub-post>span:nth-child(2){display:grid;min-width:0;gap:4px}
.hub-post strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-post>span:nth-child(2)>span{font-size:.79rem;color:var(--muted)}
.hub-post svg{width:16px;height:16px}
.hub-help details{border-bottom:1px solid var(--line);padding:11px 0}
.hub-help summary{font-weight:700;cursor:pointer}
.hub-help p{line-height:1.5;margin:8px 0;color:var(--muted)}
body:has(.preview-notice) #hub-dialog [data-hub-write]{display:none}
@media(max-width:650px){
  .header-actions>.theme-picker{display:none}
  #hub-dialog{inset:6px 6px 6px auto;width:min(455px,calc(100% - 12px));max-height:calc(100dvh - 12px);padding-inline:14px}
  .hub-trigger{min-width:42px;justify-content:center}
}

.settings-trigger{display:inline-flex;align-items:center;gap:6px}
.settings-trigger svg{width:17px;height:17px}
.settings-trigger[aria-current=page]{text-decoration:underline;text-underline-offset:5px}
#hub-menu a.hub-row{color:var(--text);text-decoration:none}
#hub-menu a.hub-row:hover{background:var(--deep)}
.settings-layout{grid-template-columns:190px minmax(0,820px);max-width:1310px;gap:clamp(24px,5vw,78px)}
.settings-layout>.discover{display:none}
.settings-layout #main{min-width:0}
.settings-layout .section-heading{height:auto;margin-bottom:8px}
body:has(.settings-layout) .header :is(.account-button,.theme-picker){border-color:transparent;background:transparent;color:var(--text);font-weight:600}
body:has(.settings-layout) .header :is(.account-button,.theme-picker):hover{background:var(--deep)}
.settings-jumps{display:flex;flex-wrap:wrap;gap:0 20px;border-bottom:1px solid var(--line);padding:0 0 4px}
.settings-jumps button{min-height:40px;padding:0;font-size:.9rem;font-weight:550;color:var(--muted)}
.settings-jumps button:hover{color:var(--text);text-decoration:underline;text-underline-offset:4px}
.settings-section{display:grid;grid-template-columns:minmax(135px,1fr) minmax(0,3fr);gap:18px;
  padding:19px 0;border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--header) + 14px)}
.settings-section h2{font-size:1rem;line-height:1.35;margin:12px 0 0;font-weight:730}
.settings-section-body{min-width:0}
.settings-section-body form{margin:0}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:13px;min-height:44px;
  width:100%;padding:8px 0;text-align:start;color:var(--text);font-size:.94rem;line-height:1.35;border-bottom:1px solid var(--line)}
.settings-section-body > .settings-row:last-child,
.settings-section-body > form:last-child .settings-row:last-child{border-bottom:0}
.settings-row--link{text-decoration:none;font-weight:550}
.settings-row--link svg{width:15px;height:15px;flex:none;color:var(--muted)}
.settings-row--link:hover>span,.settings-save:hover{text-decoration:underline;text-underline-offset:3px}
.settings-row--choice small{display:block;margin-top:4px;color:var(--muted);font-size:.82rem;line-height:1.4}
.settings-row select{flex:none;max-width:min(49%,14rem);min-height:36px;border:0;border-bottom:1px solid var(--edge);
  border-radius:0;background:transparent;color:var(--text);padding:4px 0;font:inherit;cursor:pointer}
.settings-row input[role=switch]{appearance:none;display:block;position:relative;flex:none;width:35px;height:20px;
  margin:0;border:1px solid var(--edge);border-radius:999px;background:var(--deep);cursor:pointer}
.settings-row input[role=switch]::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--muted)}
.settings-row input[role=switch]:checked{background:var(--accent);border-color:var(--accent)}
.settings-row input[role=switch]:checked::after{transform:translateX(15px);background:var(--on-accent)}
.settings-row :is(select,input):focus-visible,.settings-keywords textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.settings-save{min-height:40px;padding:5px 0;color:var(--accent);font-weight:720}
.settings-note{color:var(--muted);line-height:1.45;font-size:.85rem;margin:5px 0}
.settings-note:empty{display:none}
.settings-keywords{display:grid;justify-items:start;padding-top:13px;gap:3px}
.settings-keywords label{font-size:.94rem}
.settings-keywords textarea{width:100%;min-height:58px;resize:vertical;padding:7px 8px;background:var(--bg);color:var(--text);
  border:1px solid var(--line);border-radius:5px;font:inherit;line-height:1.5}
.settings-time{display:flex;gap:24px;margin:0;padding:8px 0 12px;border-bottom:1px solid var(--line)}
.settings-time dt{color:var(--muted);font-size:.82rem}
.settings-time dd{margin:3px 0 0;font-weight:720;font-variant-numeric:tabular-nums}
:root[data-ztalk-contrast]{--text:#13110e;--muted:#3d3327;--edge:#726551;--line:#857661}
:root[data-ztalk-contrast][data-color-theme=dark]{--text:#fff;--muted:#ededed;--edge:#b0b0b0;--line:#969696}
:root[data-ztalk-reduce-motion] *, :root[data-ztalk-reduce-motion] *::before, :root[data-ztalk-reduce-motion] *::after{
  scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important
}
@media(max-width:1000px) and (min-width:651px){.settings-layout{grid-template-columns:150px minmax(0,1fr);gap:16px;padding-inline:15px}.settings-layout .nav{gap:7px;padding-inline:9px}}

@media(max-width:650px){.settings-trigger{min-width:40px;justify-content:center}.settings-trigger span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.settings-layout{max-width:none;padding-bottom:calc(162px + env(safe-area-inset-bottom))}.settings-section{grid-template-columns:1fr;gap:6px;padding:14px 0}.settings-section h2{margin:0}.settings-jumps{gap:0 14px}}

.sidebar .mobile-more,.hub-mobile-navigation,.hub-phone-link{display:none}

@media (max-width:650px) {
  :root{--header:58px;--mobile-nav-height:68px}
  .header{justify-content:flex-start;gap:8px;padding-inline:14px}
  .header .brand{font-size:23px}
  .header .brand-mark{width:34px;height:34px}
  .header :is(.settings-trigger,.hub-trigger,#phone-qr-link,#signup-button){display:none}
  .header #account-button{min-height:42px;padding-inline:12px}
  .header.search-open #search-form{left:8px;right:8px;min-height:48px}
  body>.preview-notice{
    margin:0;
    padding:6px 12px;
    border-bottom:1px solid var(--line);
    font-size:12px;
    line-height:1.4;
  }

  .layout{
    padding:12px 12px calc(var(--mobile-nav-height) + 14px + env(safe-area-inset-bottom));
  }
  .sidebar{
    padding:5px 8px calc(5px + env(safe-area-inset-bottom));
    background:var(--surface);
    box-shadow:0 -3px 16px #211e1a14;
  }
  .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .sidebar nav>.nav{
    display:none;
    align-content:center;
    min-height:54px;
    padding:4px 1px;
    border-radius:12px;
    font-size:11px;
    font-weight:700;
  }
  .sidebar nav>:is([data-mode="feed"],[data-mode="explore"],[data-mode="home"],#create,.mobile-more){display:grid}
  .sidebar nav>.nav svg{width:21px;height:21px}
  .sidebar nav>.nav span:last-child{line-height:1.2;text-align:center}
  .sidebar nav>.nav:is([aria-current=page],.active,[aria-expanded=true]){background:var(--selected);color:var(--accent)}
  .sidebar #create span[data-icon]{padding:2px 8px;border-radius:8px;background:var(--accent);color:var(--on-accent)}
  body:has(.preview-notice) .sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  .notice,.floating-video{bottom:calc(var(--mobile-nav-height) + 8px + env(safe-area-inset-bottom))}

  .watch-layout{--watch-margins:calc(152px + env(safe-area-inset-bottom))}
  body:has(.preview-notice) .watch-layout{--watch-margins:calc(180px + env(safe-area-inset-bottom))}
  .watch-layout .section-heading{min-height:46px;margin-bottom:8px}
  .section-heading h1{font-size:23px}
  .watch-layout .feed-tabs{
    display:flex;
    align-items:center;
    gap:3px;
    padding:2px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
  }
  .watch-layout .feed-tabs button{min-height:40px;padding:4px 8px;border:0;border-radius:9px;font-size:12px}
  .watch-layout .feed-tabs .selected{background:var(--accent);color:var(--on-accent)}
  .watch-layout .feed-tabs #watch-stories{color:var(--muted)}
  .watch-layout:has(#feed-broadcasts:not([hidden])){--live-strip-height:72px}
  .feed-broadcasts{padding:6px 8px}
  .feed-broadcasts h2{font-size:13px;margin-bottom:2px}
  .feed-broadcasts ul{padding-bottom:2px}
  .feed-broadcasts .broadcast-link{min-height:36px}
  .watch-track{border-radius:18px}
  .watch-details{padding:9px 10px 4px}
  .watch-details .author button{min-height:34px}
  .watch-details .post-place{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .watch-nav{margin-left:auto}
  .watch-step{width:36px}
  .watch-position{min-width:32px}
  .video-actions{gap:0}
  .video-actions button{min-width:40px}

  .studio-header-body{padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
  .studio-name :is(h1,h2){font-size:26px}
  .studio-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .studio-stats>div{
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    justify-content:center;
    min-height:52px;
    gap:1px;
    border-radius:10px;
    background:var(--bg);
  }
  .studio-stats dt{font-size:11px}
  .studio-stats div:has(button) dt{width:100%;height:100%}
  .studio-stat-button{
    display:grid;
    place-content:center;
    justify-items:center;
    width:100%;
    min-height:52px;
    gap:2px;
    font-size:11px;
    border-radius:10px;
  }
  .studio-stat-button span,.studio-stats dd{font-size:16px}
  .studio-header .studio-cover{margin-top:8px;border-radius:14px}
  .studio-tabs{gap:3px;flex-wrap:nowrap;overflow:auto}
  .studio-tabs button{flex:1 0 auto;padding-inline:8px}
  .studio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .studio-tile-wrap .studio-tile{border-radius:11px}
  .studio-tile-info strong{font-size:13px}

  #hub-dialog{
    inset:auto 0 0;
    width:min(100%,520px);
    max-height:calc(88dvh - env(safe-area-inset-top));
    margin-inline:auto;
    padding:0 15px calc(18px + env(safe-area-inset-bottom));
    border-radius:22px 22px 0 0;
  }
  #hub-dialog .hub-header{padding:10px 0}
  #hub-dialog .hub-close{width:44px;height:44px}
  .hub-mobile-navigation{display:block;margin-top:0;border-top:0;padding-top:12px}
  .hub-browse-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .hub-browse-grid .hub-row{
    grid-template-columns:auto minmax(0,1fr);
    min-height:52px;
    padding:6px;
    border:1px solid var(--line);
    overflow-wrap:anywhere;
  }
  body:has(#phone-qr-link:not([hidden])) .hub-phone-link{display:grid}
  .mobile-create-options{display:grid;gap:8px}
  .mobile-create-options button{display:flex;align-items:center;gap:9px;min-height:48px;text-align:left}
}
