/* Final portal surfaces. Keep standalone tools outside this stylesheet. */
:root{--field:var(--surface);--control:var(--surface2);--line:color-mix(in srgb,var(--text) 17%,transparent);--soft-shadow:0 14px 40px #0002;--radius:22px}
html[data-theme=light]{--field:#fff;--control:#e5e3e8;--line:#c7c4cd;--soft-shadow:0 14px 36px #25203212}
body :is(input,textarea,select){background:var(--field);color:var(--text);border-color:var(--line);border-radius:10px;accent-color:var(--accent)}
body option{background:var(--field);color:var(--text)}
body :is(.close-button,.attachment-remove,.tag-remove,.post-controls button,.comment-tools button,.profile-feed-more){background:var(--control);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:none}
body dialog{background:var(--surface);color:var(--text);border-color:var(--line);border-radius:24px;box-shadow:0 30px 100px #0006}
body dialog>header{background:var(--surface);color:var(--text);border-color:var(--line)}
body :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
[data-team=blackjack]{--team:#a6b891}
[data-team=origin]{--team:#d4ad68}
[data-team=beacon]{--team:#88b2c9}
[data-team=shield]{--team:#b293cc}
.directory-grid{gap:26px;align-items:stretch}
.directory-grid>.directory-card{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,color-mix(in srgb,var(--team) 9%,var(--surface)),var(--surface) 70%);box-shadow:var(--soft-shadow),inset 0 1px 0 #ffffff28;transform:none;overflow:hidden;transition:transform .25s,box-shadow .25s}
.directory-grid>.directory-card:hover{transform:translateY(-5px);box-shadow:0 22px 45px #0003}
.directory-card .directory-visual{height:260px;margin:20px 0 24px;border-radius:14px;border:0;background:var(--control);overflow:hidden;isolation:isolate}
.directory-card .directory-visual img{transform:none!important;filter:saturate(.7);border:0!important;height:100%;object-fit:cover;object-position:50% 25%;}
.directory-card .directory-number{font-size:64px;opacity:.65;z-index:2;right:14px;top:12px}
.directory-card .directory-window-label{background:color-mix(in srgb,var(--team) 75%,#151719);color:#fff;padding:9px 14px;letter-spacing:.13em}
.directory-card .directory-title h2{font-size:clamp(26px,3vw,40px);line-height:1.2;letter-spacing:-.05em}
.directory-card .directory-title small{font-size:13px;letter-spacing:.02em;margin-top:9px;color:var(--muted)}
.directory-card>p{font-size:14px;line-height:1.85;color:var(--muted);max-width:48ch}
.directory-meta{flex-wrap:wrap;gap:12px;font-size:12px}
.directory-card .avatar-stack{padding-top:16px;border-top:1px solid var(--line);margin-top:22px}
.organization-note{border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);padding:32px}
.unit-masthead{border-radius:26px;overflow:hidden;padding:36px;background:linear-gradient(120deg,color-mix(in srgb,var(--team) 15%,var(--surface)),var(--surface));border:1px solid var(--line);box-shadow:var(--soft-shadow);gap:32px}
.unit-masthead .unit-contact-sheet{border-radius:18px;overflow:hidden;transform:none;box-shadow:0 12px 24px #0003}
.unit-contact-sheet img{transform:none!important;filter:saturate(.8);border:0!important}
.unit-masthead h2{font-size:clamp(32px,5vw,64px);letter-spacing:-.06em;line-height:1.15}
.unit-masthead p{max-width:52ch;line-height:1.9}
body .person-card .card-face{border-radius:20px!important;clip-path:inset(0 round 20px);border:1px solid color-mix(in srgb,var(--team) 40%,var(--line))!important;box-shadow:inset 0 1px 0 #ffffff40,0 14px 30px #0003!important;background:linear-gradient(145deg,color-mix(in srgb,var(--team) 10%,var(--surface)),var(--surface))!important;color:var(--text)}
.person-card .id-card-head{background:transparent;color:var(--muted);font-size:9px;letter-spacing:.08em}
.person-card .id-photo{border-radius:13px!important;overflow:hidden;margin:4px 12px 0}
.person-card .id-caption{background:transparent!important;color:var(--text);border:0!important;margin:0;padding:20px 18px 16px;min-height:100px}
.person-card .person-title{flex-wrap:wrap;gap:5px 10px}
.person-card .card-code{font-size:clamp(24px,2.4vw,35px)}
.person-card .id-caption small{font-size:10px;color:var(--muted)}
.person-card .id-card-foot{background:transparent;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.person-card .card-index{font-size:28px;opacity:.75}
.person-card .card-index small,.person-card .hologram{display:none}
.profile-stage{border-radius:18px;overflow:hidden}
.profile-stage .profile-photo-window{border-radius:16px!important;overflow:hidden;border:1px solid var(--line)}
.profile-stage .profile-document{background:var(--surface);color:var(--text);padding:28px;border-radius:16px}
.profile-stage .facts>div{border-color:var(--line)}
.profile-stage .profile-photo-index{position:static;transform:none;margin:12px 0 0;padding:12px;border-radius:10px;background:var(--control);color:var(--text)}
.profile-community-link{display:block;padding:14px 0;color:var(--accent)}
/* Artist labels: cinematic image fades with explicit playback controls. */
.agency-site{border-radius:24px;overflow:hidden}
.agency-hero{position:relative;isolation:isolate;min-height:780px;overflow:hidden;padding:48px;color:#fff;background:#101116}
.agency-spotlight{position:absolute;inset:0;z-index:-2;background:#15151c}
.spotlight-frame{position:absolute;inset:0;background-size:cover;background-position:50% 28%;opacity:0;transform:scale(1.035);transition:opacity 1.5s,transform 7s}
.spotlight-frame.active{opacity:1;transform:scale(1)}
.agency-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#08090cd9,transparent 90%),linear-gradient(0deg,#08090c,transparent 65%);pointer-events:none}
.agency-hero-grid{display:none}
.agency-hero h1{font-size:clamp(48px,8vw,108px);letter-spacing:-.07em;margin:20px 0;line-height:1.05;text-shadow:0 4px 30px #0006}
.agency-hero .agency-wordmark{width:min(480px,65%);max-height:150px;object-fit:contain;object-position:left;margin:20px 0 40px;filter:drop-shadow(0 4px 12px #0008)}
.agency-hero .agency-lineup{display:flex;gap:12px;margin-top:80px;max-width:560px}
.agency-lineup button{flex:1;min-width:0;height:170px;transform:none!important;overflow:hidden;border-radius:12px;border:1px solid #ffffff45;box-shadow:0 8px 20px #0004;background:#222}
.agency-lineup button img{height:100%;width:100%;object-fit:cover;object-position:top;filter:none}
.agency-lineup button span{background:linear-gradient(transparent,#000c);color:#fff;padding:12px;font-size:14px}
.agency-hero-foot{position:relative;display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-top:30px;color:#fff}
.spotlight-controls{display:flex;gap:12px;align-items:center}
.spotlight-controls button{border:1px solid #fff5;background:#12121880;color:#fff;border-radius:24px;padding:8px 14px;font-size:12px}
.spotlight-controls span{font-size:11px;letter-spacing:.14em}
.artist-roster,.agency-gallery{padding:40px;background:var(--surface);color:var(--text)}
.artist-strip{border-color:var(--line);background:transparent;color:var(--text);border-radius:12px}
.artist-strip:hover{background:var(--control)}
.gallery-grid button{border-radius:16px;overflow:hidden;box-shadow:var(--soft-shadow)}
.label-directory{gap:26px}
.label-directory .label-showcase{border-radius:24px;overflow:hidden;transform:none;padding:24px;background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--soft-shadow)}
.label-showcase .label-portraits{border-radius:16px;overflow:hidden}
.label-showcase .label-portraits span,.label-showcase .label-portraits img{transform:none!important;border:0!important;filter:none}
.label-showcase .label-wordmark{max-width:85%;width:400px;max-height:140px;object-fit:contain;margin:20px auto;display:block}
/* Fan communities keep their branded appearance; other routes restore the saved mode. */
html[data-theme][data-community-theme=lucky],html[data-theme][data-community-theme=lucky] body[data-page=community][data-viewer]{color-scheme:light;--bg:#faf3f7;--surface:#fff;--surface2:#f6e8f0;--field:#fff;--control:#f4e5ee;--text:#382b35;--muted:#715664;--accent:#a53673;--line:#e6d6df;--nav:#fff;--on-accent:#fff;background-color:var(--bg);color:var(--text)}
html[data-theme][data-community-theme=obsidus],html[data-theme][data-community-theme=obsidus] body[data-page=community][data-viewer]{color-scheme:dark;--bg:#111215;--surface:#1d1f24;--surface2:#292c32;--field:#17191d;--control:#303239;--text:#e9e8e5;--muted:#bdbbc0;--accent:#d5bb83;--line:#45474f;--nav:#1d1f24;--on-accent:#17191d;background-color:var(--bg);color:var(--text)}
body[data-page=community] :is(.site-header,.sidebar,.mobile-nav){background:var(--surface);color:var(--text);border-color:var(--line)}
.fan-community{max-width:1120px;margin:auto;background:none;color:var(--text);--fan-text:var(--text);--fan-muted:var(--muted);--fan-panel:var(--surface);--fan-accent:var(--accent)}
.fan-community:before,.fan-community:after,.fan-hero:before,.fan-hero:after{display:none}
.community-switch{border:0;background:transparent;padding:6px 0 20px;gap:10px;flex-wrap:wrap}
.community-switch a{border:0;border-radius:24px;padding:10px 18px;background:transparent;color:var(--muted);box-shadow:none}
.community-switch a[aria-current=page]{background:var(--control);color:var(--text)}
.fan-community .fan-hero{min-height:0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 0 38px;background:none;border:0;box-shadow:none;border-radius:0;color:var(--text)}
.community-brand-copy>span{font-size:11px;letter-spacing:.18em;color:var(--muted)}
.community-brand-copy h1{font-size:clamp(30px,4vw,48px);margin:10px 0;letter-spacing:-.05em}
.community-brand-copy p{font-size:14px;color:var(--muted)}
.fan-community .fan-hero-art{position:static;transform:none;width:38%;height:130px;min-height:0;border:0;background:none;box-shadow:none;clip-path:none}
.fan-hero-art img{width:100%;height:100%;object-fit:contain;transform:none}
.fan-community .fan-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;align-items:start}
.fan-community .fan-sidebar{position:sticky;top:100px;background:none;display:grid;gap:20px}
.fan-community .member-panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:none;padding:18px;overflow:hidden}
.fan-panel-bar{background:none;border:0;color:var(--muted);padding:0 0 12px;font-size:11px}
.fan-panel-bar>span{display:none}
#community-members{display:grid;gap:4px;max-height:560px;overflow:auto}
#community-members button{background:transparent;color:var(--text);border:0;box-shadow:none;border-radius:10px;text-align:left;padding:10px 6px;transform:none}
#community-members button:hover{background:var(--control)}
#member-search{width:100%;min-width:0;margin:12px 0}
.fan-community .fan-feed{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:none}
.fan-community .fan-feed-tabs{background:none;border:0;border-bottom:1px solid var(--line);padding:0;gap:4px;overflow-x:auto;display:flex}
.fan-feed-tabs button{background:none;color:var(--muted);border:0;border-radius:0;padding:14px 10px;white-space:nowrap;box-shadow:none;font-size:12px}
.fan-feed-tabs button[aria-selected=true],.fan-feed-tabs button.active{color:var(--accent);background:none;border-bottom:2px solid var(--accent)}
.fan-feed-heading{padding:20px 0 10px}
.fan-feed-heading h2{font-size:22px}
#feed-kicker{display:none}
.board-search{margin:10px 0 20px;gap:8px}
.board-search input{background:var(--field);border:1px solid var(--line);border-radius:10px}
.board-search button,.fan-community .primary{border-radius:10px;box-shadow:none}
.fan-community .fan-post-list{gap:0}
.fan-community .post-row{padding:22px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);box-shadow:none;transform:none}
.fan-community .post-row:hover{background:color-mix(in srgb,var(--accent) 4%,var(--surface))}
.post-row h3{font-size:18px;line-height:1.5;margin:16px 0 8px}
.fan-author time,.feed-counts,.feed-body{color:var(--muted)}
.feed-counts b{display:none}
.fan-community .fan-empty{border:0;background:none;padding:48px 12px;color:var(--muted)}
.board-connection{font-size:11px;background:none;border:0;color:var(--muted);padding:0 0 12px}
.community-profile{max-width:680px;margin:auto;text-align:left;padding:20px}
.community-profile>.fan-avatar{width:90px;height:90px;border-radius:50%;margin-bottom:16px}
.profile-team{display:block;font-size:11px;letter-spacing:.12em;color:var(--accent)}
.community-profile>p{white-space:pre-wrap;line-height:1.8;color:var(--muted)}
.profile-admin-link{font-size:12px;color:var(--muted)}
.profile-feed{margin-top:30px;border-top:1px solid var(--line);padding-top:20px}
.profile-feed-items{display:grid}
.profile-feed-post{display:grid;gap:9px;text-align:left;padding:20px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);white-space:normal}
.profile-feed-post small,.profile-feed-post p{color:var(--muted);margin:0}
@media(max-width:700px){.directory-grid,.label-directory{grid-template-columns:1fr}.directory-grid>.directory-card{padding:20px}.unit-masthead{padding:24px;gap:20px}.agency-hero{padding:24px;min-height:650px}.agency-hero .agency-lineup{margin-top:70px;gap:7px}.agency-lineup button{height:130px}.agency-lineup button span{font-size:11px;padding:7px}.agency-hero-foot>span{display:none}.artist-roster,.agency-gallery{padding:24px 16px}.fan-community .fan-layout{grid-template-columns:minmax(0,1fr);gap:18px}.fan-community .fan-sidebar{position:static}.fan-community #community-members{display:flex;overflow:auto;max-height:180px}.fan-community #community-members button{min-width:130px;flex:0 0 130px}.fan-community .member-panel{padding:12px}.fan-community .fan-feed{padding:16px}.fan-community .fan-hero{gap:12px;padding:20px 0}.fan-community .fan-hero-art{height:100px;width:40%}.community-brand-copy p{font-size:12px}.community-switch a{padding:9px 12px;font-size:11px}.profile-stage .profile-document{padding:18px}.community-profile{padding:8px}.spotlight-controls{gap:7px}.spotlight-controls button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.spotlight-frame,.directory-grid>.directory-card{transition:none;transform:none}}
html[data-motion=off] .spotlight-frame{transition:none;transform:none}
html[data-community-theme] body[data-page=community] :is(.agency-strip,.site-nav,.site-footer){background:var(--surface);color:var(--text);border-color:var(--line)}

body .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body .directory-grid>.directory-card,body .unit-masthead{color:var(--text);--muted:inherit;--line:inherit;--accent:inherit;}
body .directory-grid>.directory-card{}
body .directory-grid .directory-title{color:var(--text)}
body .person-card{--card-text:var(--text);--card-muted:var(--muted);--card-line:var(--line);--card-accent:var(--team)}
body .fan-community .fan-hero-art{padding:0}
body .fan-community .fan-hero-art:before{display:none}
body .fan-community .fan-hero-art>img{width:100%;height:100%;transform:scale(1.6)}
body .fan-community .fan-feed-tabs{border-radius:0;box-shadow:none}
body .fan-community .fan-feed-tabs button{box-shadow:none;background:transparent;color:var(--muted)}
body .fan-community .fan-feed-tabs button[aria-pressed=true]{color:var(--accent);border-bottom:2px solid var(--accent)}
body .fan-community .community-switch a{box-shadow:none}
body .agency-site .agency-hero{text-align:left}
body .agency-site .agency-lineup{margin-left:0}
body .agency-site .agency-hero h1{margin-left:0}
html[data-theme=light] body :is(.close-button,.attachment-remove){background:#ebe7ec!important;color:#332c35!important;border:1px solid #c8c1ca}
html[data-theme=light] body :is(.board-form,.coordinate-inputs,.report-map-controls,.staff-fields) :is(input,select,textarea){background:var(--field)!important;color:var(--text)!important}
@media(max-width:700px){body .directory-grid{grid-template-columns:1fr}body .fan-community .fan-hero-art>img{transform:scale(1.4)}}

/* Contrast follows the surface, including fixed-material cards and community dialogs. */
body .fan-community[data-community],body dialog[data-kind="community-post"][data-community]{--fan-bg:var(--bg);--fan-paper:var(--surface);--fan-ink:var(--text);--fan-muted:var(--muted);--fan-line:var(--line);--fan-accent:var(--accent);--fan-soft:var(--surface2);--fan-metal:var(--control);color:var(--text)}
body .fan-community.staff{background:var(--bg)}
body :is(.fan-community,[data-kind="community-post"]) .primary{background:var(--accent);color:var(--on-accent,#172126);border-color:var(--accent)}
:root[data-theme=light]:not([data-community-theme]) body{--on-accent:#fff}
html[data-theme=light] body .fan-community.staff{--on-accent:#fff}
body .floating-comms #comms-hide{background:var(--control);color:var(--text)}
html[data-theme][data-community-theme] body :is(.close-button,.attachment-remove){background:var(--control)!important;color:var(--text)!important;border-color:var(--line)}
body :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
body .page-heading .eyebrow{color:var(--accent)}
body .unit-status,body .unit-status[data-status]{color:var(--text)}
body .directory-card .directory-title h2{color:var(--text)}
body .person-card .card-face{--card-text:var(--text);--card-muted:var(--muted)}
body .person-card :is(.card-code,.fixed-code){color:var(--text)}
body .person-card .id-card-head>span{color:inherit}
body .forensic-desk{--text:#e4dfe0;--muted:#bdb1b5;--control:#30282b;--field:#1d181c;color:var(--text)}
body .forensic-desk .vault-heading p{color:var(--muted)}
body .forensic-desk .sealed-folder{color:#e2ddca;background-color:#20201d}
body .forensic-desk .folder-stamp{color:#ec9296}
body .forensic-desk .vault-heading>.eyebrow{color:#e49da3}
body .hashtag-editor small{color:var(--muted)}
body .hashtag-input,body .selected-hashtag,body .hashtag-editor .hashtag-add{background:var(--field);color:var(--text);border-color:var(--line)}
body .selected-hashtag button{color:var(--text)}
body .hashtag-suggestions button{background:var(--surface);color:var(--text)}
body .hashtag-suggestions button:is(:hover,[aria-selected=true]){background:var(--control);color:var(--text)}
.agency-site .agency-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;background:#151619;color:#f5f2e9;padding:16px 24px}
.agency-site .agency-nav>a:last-child{text-align:right}
.agency-nav-logo{display:block;width:clamp(140px,20vw,270px);height:100px;object-fit:contain}
@media(max-width:700px){.agency-site .agency-nav{gap:8px;padding:12px}.agency-site .agency-nav a{font-size:8px;letter-spacing:.02em;overflow-wrap:normal}.agency-nav-logo{width:140px;height:76px}}

html[data-theme=light]{--muted:#5b535f}
html[data-theme=light] body[data-viewer=staff]:not([data-unit]):not([data-page=community]){--muted:#5b535f}
body .staff-channel-nav,body .staff .fan-post-list{background:var(--surface);color:var(--text)}
body .staff .fan-post-list .post-row:hover{background:var(--control)}

:root[data-theme=light] body[data-viewer=staff]{--muted:#5b535f}

/* Community mastheads — type-led, independent of the global color mode. */
body .fan-community .fan-hero.community-masthead {position:relative;display:flex;align-items:center;justify-content:space-between;min-height:0;padding:clamp(28px,5vw,68px);margin:20px 0 32px;border:0;border-radius:24px;overflow:hidden;background:linear-gradient(120deg,#f6d5e6,#fff5fa 62%,#edd5ed);color:#53243e;box-shadow:inset 0 1px 0 #fff9,0 12px 36px #7537530b;}
body .fan-community.obsidus .fan-hero.community-masthead {background:radial-gradient(ellipse at 95% 0,#65553655,transparent 55%),linear-gradient(120deg,#292c31,#131417);color:#ece9e2;box-shadow:inset 0 1px 0 #ffffff22,0 12px 36px #0002;}
body .community-masthead .community-brand-copy {position:relative;z-index:1;min-width:0;}
body .community-masthead .community-brand-copy>span {display:block;font:600 10px/1.6 var(--mono,monospace);letter-spacing:.18em;color:inherit;opacity:.8;}
body .community-masthead .community-brand-copy h1 {font-family:Arial,sans-serif;font-size:clamp(30px,6.5vw,88px);font-weight:900;line-height:1.1;letter-spacing:-.065em;color:inherit;margin:14px 0 12px;white-space:nowrap;text-shadow:none;}
body .community-masthead .community-brand-copy p {margin:0;font-size:clamp(12px,1.3vw,16px);color:inherit;opacity:.8;}
body .community-masthead .masthead-symbol {font-size:clamp(64px,12vw,160px);line-height:1;color:#ac477b;flex:none;margin-left:20px;}
body .obsidus .community-masthead .masthead-symbol {color:#cbb888;}
@media(max-width:600px){body .fan-community .fan-hero.community-masthead{padding:26px 20px;border-radius:18px; margin:16px 0 24px;}body .community-masthead .masthead-symbol{position:absolute;right:-12px;bottom:-18px;opacity:.12;font-size:130px;}body .community-masthead .community-brand-copy h1{font-size:clamp(29px,8.2vw,46px);}}

/* Community reading and editorial archive */
.fan-post-card.artist-feed-compact { position:relative; padding:22px; border:0; border-radius:16px; box-shadow:0 2px 14px #00000008; }
.feed-title-line { display:flex; gap:16px; align-items:baseline; justify-content:space-between; min-width:0; }
.feed-title-line h3,.feed-title-line h5 { flex:1; min-width:0; margin:12px 0; overflow-wrap:anywhere; }
.feed-title-line time { flex-shrink:0; color:var(--muted); font-size:11px; font-weight:400; }
.feed-thumbnail { display:block; width:112px; height:112px; background-position:center; background-size:contain; background-repeat:no-repeat; border-radius:10px; overflow:hidden; margin:8px 0 14px; }
.artist-feed-compact .feed-counts { font-size:12px; margin-top:12px; padding:0; border:0; }
.profile-feed-post { border:0!important; border-bottom:1px solid color-mix(in srgb,currentColor 12%,transparent)!important; border-radius:0; padding:18px 0; }
.profile-feed-post .feed-title-line time { float:none; margin:0; }
.translation-controls { margin:8px 0 14px; font-size:12px; }
.translation-controls .translation-toggle { border:0; padding:2px 0; background:none; color:inherit; font-size:12px; font-weight:400; text-decoration:underline; text-underline-offset:3px; box-shadow:none; }
.translation-controls small { display:block; color:var(--muted); margin-top:4px; }
.translation-controls .translated-copy { white-space:pre-wrap; line-height:1.8; margin:10px 0; font-size:14px; }
.comments-more { display:block; margin:18px auto; border-radius:20px; }
.comments-more[hidden] { display:none; }
.agency-gallery .gallery-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.gallery-filters button { border:0; border-radius:999px; padding:10px 18px; color:inherit; background:color-mix(in srgb,currentColor 7%,transparent); }
.gallery-filters button[aria-pressed=true] { background:var(--text); color:var(--bg); }
.agency-gallery .gallery-grid { display:block; columns:3; column-gap:20px; }
.agency-gallery .gallery-grid>button { display:block; width:100%; break-inside:avoid; margin:0 0 24px; padding:0; border:0; border-radius:16px; overflow:hidden; background:color-mix(in srgb,currentColor 5%,transparent); transform:none; }
.agency-gallery .gallery-grid img { width:100%; height:auto; aspect-ratio:auto; display:block; object-fit:contain; border-radius:0; }
.agency-gallery .gallery-grid>button>span { position:static; display:flex; justify-content:space-between; padding:14px 16px; background:none; color:inherit; font-size:11px; }
.agency-gallery .gallery-grid>button:hover { box-shadow:0 10px 30px #0002; }
@media(max-width:800px) { .agency-gallery .gallery-grid { columns:2; column-gap:12px; } .agency-gallery .gallery-grid>button { margin-bottom:14px; border-radius:12px; } }
@media(max-width:480px) { .feed-title-line { flex-wrap:wrap; gap:0 8px; } .feed-title-line time { margin-left:auto; } .feed-title-line h3,.feed-title-line h5 { flex-basis:100%; } .agency-gallery .gallery-grid>button>span { padding:10px; font-size:9px; } }

/* Quiet surfaces and clear actions for conversation. */
.fan-community .fan-panel-bar{border:0;background:transparent;padding:16px 18px;color:inherit}
.fan-community .fan-panel-bar>span{display:none}
.fan-community .member-panel{border:0;border-radius:22px;overflow:hidden;box-shadow:0 8px 30px #00000006}
.fan-community .fan-feed-tabs{border:0;border-radius:16px;padding:5px;gap:3px}
.fan-community .fan-feed-tabs button{border:0;border-radius:12px;transition:background .2s,color .2s}
.fan-community .post-row{cursor:pointer;transition:background .2s,box-shadow .2s;outline-offset:3px}
.fan-community .post-row:focus-visible{outline:2px solid currentColor}
.member-avatar-link{display:inline-flex!important;flex:none!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:inherit!important;box-shadow:none!important;cursor:pointer}
.member-avatar-link .fan-avatar{margin:0}
.community-loading{min-height:200px;display:grid;place-content:center;justify-items:center;gap:16px;color:var(--text)}
.loading-orbit{width:30px;height:30px;border:3px solid #80808030;border-top-color:currentColor;border-radius:50%;animation:community-spin .8s linear infinite}
@keyframes community-spin{to{transform:rotate(360deg)}}
@keyframes conversation-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
html[data-motion=on] body #comment-compose-panel:not([hidden]),html[data-motion=on] body .reply-list,html[data-motion=on] body .fan-post-detail{animation:conversation-enter .2s ease-out}
.fan-community.staff .staff-masthead{padding:28px 0 24px;border:0;background:transparent}
.fan-community.staff .staff-wordmark{font-size:clamp(28px,4vw,42px);letter-spacing:-1.5px}
.fan-community.staff .fan-layout{grid-template-columns:220px minmax(0,1fr);gap:32px}
.fan-community.staff .staff-channel-nav{border:0;border-radius:16px;padding:12px;box-shadow:none}
.fan-community.staff .staff-channel-nav a{border:0;border-radius:10px;padding:12px;line-height:1.6}
.fan-community.staff .staff-channel-nav a[aria-current=page]{background:var(--control);color:var(--text)}
.fan-community.staff .staff-channel-note{display:none}
.fan-community.staff .fan-feed{border:0;background:var(--surface);color:var(--text);border-radius:20px;padding:24px;box-shadow:0 6px 25px #00000005}
.fan-community.staff .fan-feed-heading{padding:0 0 18px}
.fan-community.staff #feed-kicker{display:none}
.fan-community.staff .staff-tag-filter{display:inline-flex;align-items:center;gap:12px;margin-bottom:12px;font-size:12px}
.fan-community.staff .staff-tag-filter select{width:auto;max-width:200px}
.fan-community.staff .fan-post-card{border:0;border-bottom:1px solid color-mix(in srgb,var(--text) 12%,transparent);border-radius:0;padding:22px 4px;box-shadow:none;background:transparent;color:var(--text)}
.fan-community.staff .fan-post-card h3{font-size:17px;line-height:1.55;margin:12px 0 6px;letter-spacing:-.3px}
.fan-community.staff .feed-body{font-size:14px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 10px;color:var(--text);opacity:.8}
.fan-community.staff .feed-counts{border:0;padding:8px 0 0;font-size:12px;opacity:.72}
.fan-community.staff .feed-counts>b{display:none}
.fan-community.staff .member-panel{margin-top:16px;max-height:430px;overflow:auto;padding:12px}
.fan-community.staff .fan-author .fan-avatar{width:28px;height:28px}
@media(max-width:760px){.fan-community.staff .fan-layout{grid-template-columns:1fr;gap:16px}.fan-community.staff .fan-feed{padding:18px 14px}.fan-community.staff .staff-channel-nav{display:flex;gap:6px}.fan-community.staff .staff-channel-nav>small{display:none}.fan-community.staff .staff-channel-nav a{flex:1}.fan-community.staff .fan-sidebar .member-panel{max-height:180px}.fan-community.staff #community-members{display:flex;overflow-x:auto}.fan-community.staff .member-button{min-width:125px}}
@media(prefers-reduced-motion:reduce){.loading-orbit,.reply-list,.fan-post-detail,#comment-compose-panel{animation:none!important}.fan-community .post-row{transition:none}}

/* Compact portal controls and stable mobile forms. */
.site-header{gap:16px;flex-wrap:wrap}
.site-header>.language-controls{margin-left:auto;flex-shrink:0}
.site-header>.header-controls{margin-left:0;min-width:0}
.site-header .header-controls #music-library-open{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:var(--control);color:var(--text);text-decoration:none;box-shadow:inset 0 1px 0 #ffffff18;transition:background .2s,box-shadow .2s}
.site-header #sound-toggle[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 22%,var(--control));border-color:var(--accent);box-shadow:inset 0 2px 5px #0004;color:var(--text)}
body[data-page=playlists] .staff-ribbon{display:none!important}
#records-workspace .receiver{min-width:0}
#records-workspace .receiver>div:first-child h2{font-size:14px;font-weight:500;letter-spacing:.03em}
#records-workspace .receiver label{min-width:0;max-width:100%;overflow:hidden}
#records-workspace #frequency{width:100%;min-width:0;margin-inline:0;box-sizing:border-box}
#records-workspace #frequency-label{font-size:clamp(22px,5vw,30px)!important;white-space:nowrap;font-variant-numeric:tabular-nums;min-height:1.3em}
#records-workspace #signal-quality{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;min-width:8em;line-height:1.5;color:#66d5a2}
#records-workspace #signal-quality::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
#records-workspace #signal-quality[data-state=unstable]{color:#ff8585}
#document-dialog:has(#incident-form){width:760px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none}
#document-dialog:has(#incident-form) #document-body,#incident-form,#incident-form *{box-sizing:border-box;min-width:0}
#incident-form{width:100%;max-width:100%;overflow-x:clip}
#incident-form .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
#incident-form :is(input,textarea,select){max-width:100%;width:100%}
#incident-form :is(input[type=checkbox],input[type=radio]){width:auto;flex-shrink:0}
#incident-form textarea{resize:vertical}
#incident-form label{overflow-wrap:anywhere}
#report-error:empty{display:none}

/* Conversation hierarchy: readable content, quiet actions, distinct replies. */
.fan-community .fan-post-card{border-radius:20px;box-shadow:none}
.fan-community .fan-author{gap:10px;min-width:0}
.fan-community .fan-author time{font-size:11px;font-weight:400;line-height:1.5}
.fan-community .feed-counts{gap:20px;padding-top:14px}
.fan-post-detail .post-body{font-size:15px;line-height:1.85;padding-block:14px 22px;overflow-wrap:anywhere}
.fan-post-detail>.post-controls{border-top:1px solid var(--fan-line,var(--line));border-bottom:1px solid var(--fan-line,var(--line));padding:14px 0;margin:16px 0 24px;gap:12px}
.fan-post-detail :is(.post-controls,.comment-tools) button{background:transparent;border:0;border-radius:8px;padding:7px 9px;color:inherit;font-size:12px;box-shadow:none}
.fan-post-detail :is(.post-controls,.comment-tools) button[aria-pressed=true]{color:var(--fan-accent,var(--accent));background:color-mix(in srgb,var(--fan-accent,var(--accent)) 12%,transparent)}
.fan-post-detail .fan-author>span{min-width:0}
.fan-post-detail .fan-author b{overflow-wrap:anywhere}
.fan-post-detail .record-edit-links{margin-left:auto;flex:none;align-self:flex-start}
.fan-post-detail .record-edit-links button{font-size:11px;padding:3px 5px}
.fan-post-detail .comments .comment-row{border:1px solid var(--fan-line,var(--line));border-radius:18px;padding:16px 18px;margin:12px 0;background:var(--fan-surface,var(--surface));box-shadow:none}
.fan-post-detail .comments .comment-row p{font-size:14px;line-height:1.8;margin:10px 0 12px}
.fan-post-detail .comments .comment-row.is-reply{margin-left:28px;background:color-mix(in srgb,var(--fan-accent,var(--accent)) 5%,var(--fan-surface,var(--surface)))}
.fan-post-detail .comment-tools{gap:14px}
.fan-post-detail .reply-thread>summary{padding:8px 0 10px 28px;font-size:12px}
.fan-post-detail[data-community=staff] .comments .comment-row{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 4px;margin:0;background:transparent}
.fan-post-detail[data-community=staff] .comments .comment-row.is-reply{margin-left:20px;padding:18px 16px;border-radius:12px;background:var(--control)}
.fan-community.staff .fan-post-card .fan-author{color:var(--muted)}
.fan-community.staff .fan-post-card h3{font-weight:650}
@media(max-width:760px){
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 8px;padding:16px 14px}
 .site-header>.brand{min-width:0;gap:7px}
 .site-header>.brand img{width:32px;height:32px}
 .site-header>.brand b{font-size:24px}
 .site-header>.brand small{display:none}
 .site-header>.language-controls{grid-column:2;grid-row:1;justify-self:end;margin:0;gap:0;padding:3px;flex-wrap:nowrap;width:auto}
 .site-header>.language-controls button{font-size:10px;padding:7px 6px;min-width:0;min-height:32px;white-space:nowrap}
 .site-header>.header-controls{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;width:100%}
 .site-header .header-controls>button,.site-header .header-controls #music-library-open{min-height:34px;font-size:11px;padding:7px 11px}
 .fan-community .fan-sidebar .member-panel{max-height:none!important;padding:10px 12px;overflow:hidden!important;margin-top:12px;border-radius:16px}
 .fan-community .member-panel>h2,.fan-community .member-panel .fan-panel-bar{display:none}
 .fan-community #member-search{height:32px;padding:6px 10px;font-size:12px;margin:0 0 8px}
 .fan-community #community-members{display:flex;flex-wrap:nowrap;gap:8px;max-height:none;height:auto;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;padding:3px 0 8px;align-items:center;scrollbar-width:thin}
 .fan-community #community-members .member-button{display:flex;align-items:center;flex:0 0 auto;min-width:0;width:auto;min-height:48px;margin:0;padding:6px 10px;gap:8px;border-radius:12px}
 .fan-community #community-members .member-button .fan-avatar{width:32px;height:32px;flex:none}
 .fan-community #community-members .member-button span{display:block;min-width:0;white-space:nowrap}
 .fan-community #community-members .member-button b{font-size:12px;line-height:1.5}
 .fan-community #community-members .member-button small{font-size:10px;line-height:1.4}
 .fan-community #community-members .member-button em{display:none}
 .fan-post-detail .comments .comment-row{padding:14px 12px;border-radius:15px}
 .fan-post-detail .comments .comment-row.is-reply{margin-left:16px}
 .fan-post-detail .fan-author{gap:8px;align-items:flex-start}
 .fan-post-detail .fan-author .fan-avatar{width:30px!important;height:30px!important}
 .fan-post-detail .fan-author time{font-size:10px}
 .fan-post-detail .post-body{font-size:14px}
}
@media(max-width:480px){#incident-form .form-row{grid-template-columns:minmax(0,1fr)}#document-dialog:has(#incident-form){padding:22px 16px}#records-workspace .receiver{gap:10px!important;padding:14px!important}}
