/* Kocehind Studio UI R1 — presentation only. Load after each site's styles. */
:root{--ui-radius:16px;--ui-space:8px;--ui-focus:#c4b5fd;--ui-line:rgba(148,163,184,.18);--ui-ease:cubic-bezier(.2,.8,.2,1)}
html{scroll-padding-top:88px}
.skip-link{position:fixed;left:16px;top:-100px;z-index:2000;background:#fff;color:#090a10;padding:12px 18px;border-radius:10px;font-weight:700}.skip-link:focus{top:12px}
body{font-feature-settings:'ss01' on;line-height:1.6}
button,a,input,select,textarea{touch-action:manipulation}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid var(--ui-focus);outline-offset:4px}
button:disabled{cursor:not-allowed}
.btn{min-height:44px;border-radius:12px;font-weight:750;box-shadow:none}
.btn.primary{background:#7c3aed;border:1px solid #9d73f2;box-shadow:0 4px 14px #7c3aed25}
.btn.primary:hover:not(:disabled){background:#6d28d9;box-shadow:0 6px 20px #7c3aed35}
.btn.danger{color:#fda4af}
.icon-btn{min-width:44px;min-height:44px;border-radius:12px}
input:not([type=range]):not([type=checkbox]):not([type=radio]),textarea,select{min-height:46px;border-radius:12px;line-height:1.5}
input::placeholder,textarea::placeholder{opacity:1}
label{line-height:1.6}
.form-error:not(:empty){padding:12px 14px;border:1px solid #fb71854d;border-radius:10px;background:#fb718510;color:#fda4af}
.modal{border-radius:24px;border-color:var(--ui-line);box-shadow:0 32px 100px #0009}
.modal header{padding:20px 24px;background:var(--surface);position:sticky;top:0;z-index:2}
.modal .dialog-body{padding:24px}
.modal h2{font-size:20px;letter-spacing:-.5px}
.modal::backdrop{background:#02040bc9;backdrop-filter:blur(8px)}
#toast{bottom:max(24px,env(safe-area-inset-bottom));border-color:#ffffff24;border-radius:14px;box-shadow:0 12px 40px #0007}
.empty{line-height:1.7;text-wrap:pretty}
.empty h2{letter-spacing:-.6px}
[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Social app: restrained chrome, media first, legible utility surfaces. */
body:has(.app-header){--bg:#090a10;--surface:#14151f;--surface-2:#1c1e2a;--muted:#a4a9bd;--border:#2b2d3f;background:var(--bg);font-size:14px}
.app-header{height:72px;padding:0 28px;background:#090a10f2;border-color:var(--ui-line);gap:24px;box-shadow:none}
.app-header .logo{letter-spacing:-1px;font-size:26px}
.app-header .logo img{box-shadow:none;border-radius:11px}
.app-header .logo>span{border:0;background:#7c3aed26;color:#c4b5fd}
#search-form{background:#1a1b26;border-color:#ffffff0c;max-width:460px}
#search-form input{font-size:14px;min-height:44px}
#search-form input::placeholder{color:#a4a9bd}
.sidebar{top:72px;width:232px;background:#0e0f16;padding:24px 16px;border-color:var(--ui-line);backdrop-filter:none}
.sidebar nav{gap:6px}
.sidebar nav a{min-height:48px;padding:12px 14px;border:1px solid transparent;border-radius:12px;font-size:15px;font-weight:650;color:#acafc2}
.sidebar nav a.active{background:#7c3aed1f;border-color:#a78bfa30;color:#e4d9ff;box-shadow:none}
.sidebar nav a.active::before{content:'';position:absolute;left:-16px;top:14px;bottom:14px;width:3px;border-radius:0 4px 4px 0;background:#a78bfa}
.sidebar nav a svg{width:23px;height:23px}
.sidebar-footer,.sidebar-footer p{color:#9196ad;font-size:11px}
#sidebar-account{margin-top:28px}
.account-mini{border-radius:14px;padding:10px;background:#ffffff04}
#content{margin-top:72px;margin-left:232px;margin-right:280px;padding:0 28px;min-height:calc(100dvh - 72px)}
.discovery-aside{top:72px;width:280px;border:0;background:transparent;padding:30px 22px}
.aside-title{color:#a4a9bd;letter-spacing:.12em}
.trend{padding:10px 8px;margin:4px 0;min-height:58px}
.trend strong{font-size:14px}.trend small{color:#9b9fb5;font-size:12px}
.trend .hash{border:0;background:#1c1e2b;color:#bbb0e5;border-radius:10px}
.download-note{background:linear-gradient(145deg,#201831,#14151f);border:1px solid #a78bfa30;box-shadow:none;border-radius:18px;padding:22px}
.download-note a{background:#7c3aed}.download-note p,.aside-bottom{color:#a4a9bd}
.feed-header{height:64px;max-width:700px}
.feed-tabs{border:0;background:transparent;padding:0;gap:24px;border-radius:0;height:100%}
.feed-tabs a{position:relative;padding:20px 0;background:transparent!important;border-radius:0;font-size:15px;color:#9b9fb5;box-shadow:none!important}
.feed-tabs a.active{color:#fff}.feed-tabs a.active::after{content:'';position:absolute;bottom:8px;left:0;right:0;height:3px;background:#a78bfa;border-radius:4px}
.fresh-label{display:none}
.feed-header button{min-height:40px;border-radius:10px;color:#a4a9bd}
.feed-scroll{height:calc(100dvh - 136px);scrollbar-width:thin;scrollbar-color:#393b50 transparent}
.post{height:calc(100dvh - 136px);min-height:calc(100dvh - 136px);max-width:700px;gap:20px;padding:8px 0 24px;grid-template-columns:minmax(0,1fr) 64px}
.video-stage{border-radius:18px;border-color:#ffffff10;box-shadow:0 12px 40px #0005;background:#030407}
.video-overlay{background:linear-gradient(transparent,#030407e6);padding-top:80px}
.author-line>a{font-size:16px;letter-spacing:-.2px}.caption{font-size:14px;line-height:1.6;max-width:54ch}
.sound-link{font-size:12px;background:#ffffff14;border:1px solid #ffffff12;border-radius:20px;padding:5px 10px;width:fit-content;max-width:100%}
.post-actions{gap:16px}.post-actions button{min-width:48px;min-height:44px;font-size:12px;gap:7px}
.post-actions button .circle{width:48px;height:48px;background:#1c1e2b;border:1px solid #ffffff08;box-shadow:none}
.post-actions button:hover .circle{background:#2b2640;border-color:#a78bfa40;transform:translateY(-2px)}
.post-actions button.active .circle{background:#ff2e631a;border-color:#ff2e6333}
.player-controls{background:#080910a6;border:1px solid #ffffff12;border-radius:10px;min-height:36px}
.player-controls button{min-width:32px;min-height:32px}
.section-top{padding:32px 0 22px}.section-top h1{font-size:29px;letter-spacing:-1px}.section-top p{color:#a4a9bd;max-width:60ch}
.tabs{gap:6px;padding:5px;background:#14151f;border:1px solid var(--ui-line);border-radius:14px;overflow-x:auto}
.tabs a,.tabs button{min-height:42px;border-radius:9px;white-space:nowrap}.tabs .active{background:#302448;color:#e4d9ff;box-shadow:none}
.grid{gap:18px}.grid-cover{border-radius:14px;border:1px solid #ffffff0a;background:#14151f}.grid-card p{font-size:14px;line-height:1.5}.grid-card .grid-author{color:#a4a9bd;font-size:12px}.grid-cover .views{font-size:12px;font-weight:700}
.profile-hero{padding:32px 24px 24px;margin:24px 0;background:linear-gradient(115deg,#1a1628,#12131c 70%);border:1px solid var(--ui-line);border-radius:22px}
.profile-top{gap:24px}.profile-top h1{font-size:30px;letter-spacing:-1px}.profile-top h2{color:#aaa7bf}.profile-top .buttons{gap:8px;flex-wrap:wrap}
.profile-stats{background:transparent;border:0;padding:20px 0 12px;gap:28px}.profile-stats strong{font-size:20px}.profile-stats button{color:#a4a9bd}.profile-bio{font-size:14px;line-height:1.7}.profile-share{color:#a4a9bd}
.settings-panel,.trust-card,.studio-section,.wallet-card{border-color:var(--ui-line);border-radius:18px;box-shadow:none;background:#14151f}
.settings-panel{padding:24px;margin-bottom:16px}.settings-panel h2{letter-spacing:-.4px}.settings-panel p{color:#acafc2;line-height:1.7}
.switch-row{min-height:64px;padding:14px 0;gap:20px}.switch-row input{accent-color:#a78bfa}
.activity{border-radius:14px;border:1px solid transparent;margin:4px 0;padding:16px}.activity:hover{background:#ffffff04}.activity.unread{background:#7c3aed12;border-color:#a78bfa20}.activity small{color:#9b9fb5}
.chat-layout{border:1px solid var(--ui-line);border-radius:20px;overflow:hidden}.chat-head{background:#14151f}.messages{background:#0d0e16}.message p{background:#1d2030;border-radius:4px 16px 16px}.message.mine p{background:#5931a0;border-radius:16px 4px 16px 16px}.message small{color:#a4a9bd}.message-form{padding:16px;background:#14151f}
.comments-dialog{top:72px;height:calc(100dvh - 72px);background:#11121bf7;border-color:var(--ui-line)}.comments-head{padding:22px}.comments-head h2{font-size:19px}.comment-meta{color:#a4a9bd}.comment-form{background:#14151f;border-color:var(--ui-line)}
.upload-preview{border:2px dashed #8b5cf64d;border-radius:20px;background:#7c3aed08}.upload-note{color:#a4a9bd}
.studio-metric{border:1px solid var(--ui-line);border-radius:16px;background:#171923}.studio-metric span{color:#acafc2}.studio-metric strong{letter-spacing:-1px}.studio-table th{color:#acafc2;background:#1c1e2a}.studio-table td{border-color:var(--ui-line)}
.live-setup,.live-summary{border-radius:20px}.live-tag{letter-spacing:.08em}.live-controls .btn{min-height:44px}.live-top{gap:12px}.live-conversation{border-color:var(--ui-line)}
.coin-package{transition:border-color .18s,background .18s}.coin-package:hover{border-color:#a78bfa}.wallet-balances{gap:12px}.wallet-row{line-height:1.6}.sandbox-notice{border-radius:12px}
@media(min-width:1500px){.sidebar{width:252px}#content{margin-left:252px;margin-right:300px}.discovery-aside{width:300px}}
@media(max-width:1150px){.discovery-aside{display:none}#content{margin-right:0}.post{max-width:680px}}
@media(min-width:541px) and (max-width:800px){.sidebar{width:80px;padding:20px 12px}.sidebar nav a{padding:12px;justify-content:center}.sidebar nav a.active::before{left:-12px}#content{margin-left:80px;padding:0 20px}.app-header{padding:0 20px;gap:14px}.app-header .logo{font-size:22px}}
@media(max-width:540px){
 .app-header{height:60px;padding:0 12px;gap:8px}.app-header .logo{font-size:21px}.app-header .logo img{width:30px;height:30px}.app-header .logo>span{display:none}
 #header-actions{gap:6px}#header-actions .btn{min-height:36px;padding:6px 10px;font-size:12px}#header-actions .avatar{width:32px;height:32px}
 .sidebar{top:auto;bottom:0;height:calc(64px + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);background:#0b0c13f5;width:100%;border-top:1px solid var(--ui-line);z-index:35}
 .sidebar nav{display:flex;gap:0;height:64px;justify-content:space-around}.sidebar nav a{flex:1;min-width:0;width:auto;padding:8px 2px 6px;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:56px;font-size:9px;border:0;background:transparent;border-radius:0}
 .sidebar nav a .nav-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
 .sidebar nav a[data-nav=following],.sidebar nav a[data-nav=saved],.sidebar nav a[data-nav=help],.sidebar nav a[data-nav=settings]{display:none}
 .sidebar nav a.active{color:#d3bcff;background:transparent;border:0}.sidebar nav a.active::before{display:none}.sidebar nav a.active svg{color:#c4b5fd}.sidebar nav svg{width:23px;height:23px}.nav-dot{position:absolute;top:8px;right:calc(50% - 18px);width:6px;height:6px}
 #content{margin:60px 0 calc(64px + env(safe-area-inset-bottom));padding:0 16px;min-height:calc(100dvh - 124px)}
 .feed-header{height:48px;padding:0 4px}.feed-tabs{gap:24px}.feed-tabs a{font-size:14px;padding:12px 0}.feed-tabs a.active::after{bottom:3px}.feed-header button{font-size:0;min-width:40px;padding:8px}.feed-header button svg{width:18px;height:18px}
 .feed-scroll{height:calc(100dvh - 172px - env(safe-area-inset-bottom));margin:0 -16px;scrollbar-width:none}.post{height:calc(100dvh - 172px - env(safe-area-inset-bottom));min-height:calc(100dvh - 172px - env(safe-area-inset-bottom));padding:0;display:block;position:relative}
 .video-stage{border:0;border-radius:0;box-shadow:none}.video-overlay{padding:70px 82px 12px 16px;bottom:42px}.author-line>a{font-size:15px}.caption{font-size:13px;line-height:1.5}.sound-link{font-size:11px;padding:3px 8px}
 .post-actions{right:9px;bottom:80px;gap:12px;padding:0}.post-actions button{font-size:11px;gap:4px;min-height:44px}.post-actions button .circle{width:42px;height:42px;background:#10111b80;border:0;backdrop-filter:blur(6px)}.post-actions .more-action{display:flex;min-height:24px}.follow-bubble .avatar{width:40px;height:40px}
 .player-controls{bottom:7px;left:10px;right:10px}.player-time{font-size:10px}
 .section-top{padding:24px 0 18px}.section-top h1{font-size:25px}.section-top p{font-size:13px}
 .profile-hero{margin:16px 0;padding:22px 16px;border-radius:18px}.profile-top{gap:14px;align-items:flex-start}.profile-top h1{font-size:23px;overflow-wrap:anywhere}.profile-top h2{font-size:12px}.profile-top .buttons .btn{font-size:12px;padding:8px 12px;min-height:40px}.profile-stats{gap:20px;padding:18px 0 8px}.profile-stats strong{font-size:18px}.profile-stats button{font-size:11px}.profile-bio{font-size:13px}
 .grid{gap:10px}.grid-cover{border-radius:10px}.grid-card p{font-size:12px}.grid-card .grid-author{font-size:11px}
 .settings-panel{padding:20px 16px;border-radius:16px}.settings-panel .buttons{gap:8px}.tabs{border-radius:12px}.tabs a,.tabs button{font-size:12px}
 .comments-dialog{top:auto;bottom:calc(64px + env(safe-area-inset-bottom));height:52dvh;border-radius:22px 22px 0 0}.comments-head{padding:16px 20px}.comments-head::before{content:'';position:absolute;top:6px;left:calc(50% - 18px);width:36px;height:4px;background:#45485c;border-radius:4px}
 .detail-view{margin:0 -16px}.chat-layout{border-radius:16px}.message-form{padding:12px}.message-form input{min-width:0}.modal{max-height:88dvh;border-radius:22px}.modal .dialog-body{padding:20px}.modal header{padding:16px 20px}#toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:13px}
}
/* Public site and control center share spacing and control tokens, not media geometry. */
body:has(.workspace){--muted:#a4a9bd;--border:#2b2d3f;background:#0b0c13}
.workspace .topbar{box-shadow:none;border-color:var(--ui-line);background:#101119}
.workspace #content{min-width:0;margin:0 auto;padding:32px 38px;min-height:0}.workspace :where(.card,.panel,.stat-card,.metric,.settings-panel){border-radius:16px;box-shadow:none;border-color:var(--ui-line)}
.workspace table{border-collapse:collapse;font-size:13px}.workspace th{letter-spacing:.04em;font-size:11px;text-transform:uppercase}.workspace td{padding-top:15px;padding-bottom:15px}.workspace :where(th,td){border-color:var(--ui-line)}
.workspace .breadcrumb{font-size:13px}.workspace footer{color:#a4a9bd}
body:has(.workspace) #sidebar{background:#101119;border-color:var(--ui-line)}
body:has(.workspace) #navigation a{min-height:46px;border-radius:10px}
@media(max-width:540px){.workspace #content{margin:0;padding:18px 14px}.workspace table{min-width:560px}.workspace :where(.table-wrap,.table-scroll){overflow-x:auto}.workspace .topbar{gap:12px}.workspace .breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
