/* Studio signature: real identity first, no fabricated status. */
html body header.topbar #opcBrandBtn{--ci-bg:#f7f9fc;--ci-ink:#1b293d;--ci-muted:#475b73;--ci-line:#c3d0de;display:flex!important;align-items:center!important;gap:12px!important;max-width:100%;padding:9px 13px!important;border:1px solid var(--ci-line)!important;border-radius:14px;background:var(--ci-bg)!important;color:var(--ci-ink)!important;-webkit-text-fill-color:currentColor;box-shadow:0 3px 12px #182c4310!important;text-align:left;cursor:pointer;transition:box-shadow .16s,border-color .16s;font-family:var(--koozhen-font)}
html[data-theme]:not([data-theme="light"]):not([data-theme="day"]) body #opcBrandBtn{--ci-bg:#202d40;--ci-ink:#f1f5fc;--ci-muted:#bfcee0;--ci-line:#51637b}
html body header.topbar #opcBrandBtn:hover{border-color:var(--ci-muted)!important;box-shadow:0 5px 20px #182c4326!important}
html body header.topbar #opcBrandBtn:focus-visible{outline:2px solid var(--ci-ink);outline-offset:3px}
.company-identity-seal{display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid var(--ci-line);border-radius:12px;background:var(--ci-ink);color:var(--ci-bg);font-size:21px;font-weight:700;box-shadow:inset 0 0 0 3px var(--ci-bg)}
.company-identity-copy{display:grid;gap:2px;min-width:0}
.company-identity-label{font-size:10px;line-height:1.3;letter-spacing:.12em;font-weight:600;color:var(--ci-muted)}
html body header.topbar #opcBrandBtn #opcBrandStudio{display:block;font-size:18px!important;font-weight:700!important;letter-spacing:-.02em;line-height:1.35;color:var(--ci-ink)!important;opacity:1;margin:0;max-width:320px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-transform:none}
html body header.topbar #opcBrandBtn #opcBrandWho:not([hidden]){display:block!important;font-size:11px!important;color:var(--ci-muted);opacity:1;border:0;padding:0;margin:0;max-width:280px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.company-identity-arrow{font-size:20px;color:var(--ci-muted);padding-left:4px;flex:none}
#companyHomeOverlay{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:24px;background:#101d3266;backdrop-filter:blur(8px);font-family:var(--koozhen-font)}
#companyHomeOverlay[hidden]{display:none!important}
.company-home-panel{display:flex;flex-direction:column;width:min(1240px,100%);height:min(900px,94vh);overflow:hidden;border:1px solid #c3d0de;border-radius:22px;background:#f7f9fc;color:#1b293d;box-shadow:0 30px 90px #0714264d}
.company-home-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid #c3d0de;flex:none}
.company-home-header>div:first-child{min-width:0}.company-home-kicker{font-size:10px;letter-spacing:.12em;color:#475b73;font-weight:600}
#companyHomeTitle{font-size:22px;line-height:1.4;margin:3px 0 0;overflow-wrap:anywhere}
.company-home-actions{display:flex;gap:8px;flex:none}.company-home-actions button{border:1px solid #a7b8cc;border-radius:9px;padding:9px 13px;background:#fff;color:#24364e;font:500 13px var(--koozhen-font);cursor:pointer}
.company-home-actions button:focus-visible{outline:2px solid #4273a8;outline-offset:2px}.company-home-actions [data-company-close]{background:#24364e;color:#fff}
.company-home-content{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
#companyHomeOverlay #page-company{display:block!important;height:auto;min-height:100%}
html[data-theme]:not([data-theme="light"]):not([data-theme="day"]) .company-home-panel{background:#172235;color:#f1f5fc;border-color:#51637b}html[data-theme]:not([data-theme="light"]):not([data-theme="day"]) .company-home-header{border-color:#51637b}html[data-theme]:not([data-theme="light"]):not([data-theme="day"]) .company-home-kicker{color:#bfcee0}

/* One identity line; the original company header owns all actions. */
html body header.topbar #opcBrandBtn{padding:5px 10px!important;gap:9px!important;height:42px!important;width:auto;max-width:100%;border-radius:11px}
.company-identity-seal{flex-basis:28px;width:28px;height:28px;border-radius:8px;font-size:16px;box-shadow:none}
.company-identity-copy{display:flex;align-items:center;min-width:0}
.company-identity-label,html body header.topbar #opcBrandBtn #opcBrandWho:not([hidden]){display:none!important}
html body header.topbar #opcBrandBtn #opcBrandStudio{font-size:16px!important;line-height:24px;max-width:300px}
body.hi-home-active header.topbar{height:68px!important;min-height:0!important;padding-top:10px!important;padding-bottom:10px!important}
#companyHomeOverlay{padding:16px}
.company-home-panel{width:min(1440px,100%);height:calc(100dvh - 32px);max-height:1000px;border-radius:18px}
.company-home-content{overflow:auto}
html body #companyHomeOverlay #page-company{height:auto;min-height:100%;padding:12px 24px 24px!important;box-sizing:border-box;overflow:visible}
#companyHomeOverlay .opc-ck-head{flex:none;gap:12px;margin:0!important;padding:0 0 12px!important}
#companyHomeOverlay .opc-ck-head-l{min-width:0;flex:1}
#companyHomeOverlay #ckCoName{font-size:23px;line-height:1.25}
#companyHomeOverlay .company-home-actions{align-items:center;gap:6px}
#companyHomeOverlay .company-home-actions button{padding:7px 10px;font-size:12px;white-space:nowrap}
#companyHomeOverlay .company-home-actions [data-company-close]{font-size:24px;line-height:24px;width:32px;height:32px;padding:0;background:transparent;color:inherit;border-color:transparent}


@media(max-width:900px){
 .company-home-content{overflow:auto}
 html body #companyHomeOverlay #page-company{height:auto;min-height:100%;overflow:visible}
 #companyHomeOverlay .opc-ck-head{flex-wrap:wrap;gap:8px}
 #companyHomeOverlay .opc-ck-head-l{flex-basis:55%}
 #companyHomeOverlay #ckStats{order:2;width:100%}
}
@media(max-width:640px){
 body.hi-home-active header.topbar{height:auto!important;padding:10px 12px!important;gap:8px!important;flex-wrap:wrap}
 body.hi-home-active .topbar-left{flex:1 1 auto;min-width:0}
 body.hi-home-active .topbar-right{margin-left:auto}
 html body header.topbar #opcBrandBtn #opcBrandStudio{max-width:210px;font-size:15px!important}
 #companyHomeOverlay{padding:6px}.company-home-panel{height:calc(100dvh - 12px);border-radius:12px}
}

/* Override cockpit skin spacing only inside the integrated dialog. */
html body #companyHomeOverlay #page-company .opc-ck-head{padding:0 0 10px!important;gap:10px!important}
html body #companyHomeOverlay #page-company #ckCoName{font-size:22px!important;line-height:1.25!important}
html body #companyHomeOverlay #page-company #ckCoSub{margin-top:3px!important;font-size:12px!important}


/* Identity keeps its meaning on one line, even for a numeric studio name. */
html body header.topbar #opcBrandBtn .company-identity-copy{display:flex!important;align-items:center;gap:12px;white-space:nowrap}
html body header.topbar #opcBrandBtn .company-identity-label{display:block!important;flex:none;font-size:12px;letter-spacing:0;line-height:20px;color:var(--ci-muted);border-left:1px solid var(--ci-line);padding-left:12px}
@media(max-width:640px){
 html body header.topbar #opcBrandBtn{gap:6px!important;padding:6px 8px!important}
 html body header.topbar #opcBrandBtn .company-identity-copy{gap:6px}
 html body header.topbar #opcBrandBtn .company-identity-label{font-size:10px;padding-left:6px}
 html body header.topbar #opcBrandBtn #opcBrandStudio{max-width:80px}
 html body header.topbar #opcBrandBtn .company-identity-seal{display:none!important}
}

/* Editing occupies the original company-header action slot. */
html body #page-company .opc-ck-head #ckSpaceBtn.opc-ck-space-btn[hidden]{display:none!important}

/* Company dialog is a plain surface; home scenery stays untouched. */
html body #companyHomeOverlay #page-company.page{background:none!important}

/* Both header actions share the same control height. */
html body #page-company .opc-ck-head :is(#ckPosterBtn,#ckEditProfileBtn).opc-ck-poster{height:32px;box-sizing:border-box}

/* One welcome heading contains the live company entry; saved names stay untouched. */
html body.hi-home-active header.topbar{position:fixed!important;inset:0 0 auto!important;height:28px!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;z-index:40;-webkit-app-region:drag;pointer-events:none}
.home-studio-name{display:none}
html[data-theme] body.hi-home-active #page-home #homeWelcome{width:min(100%,840px)!important;max-width:100%!important;text-align:left!important;overflow-wrap:anywhere;font-weight:400!important}
html body #page-home #homeWelcome #opcBrandBtn{display:inline!important;max-width:100%;height:auto!important;min-height:0;padding:0!important;border:0!important;border-radius:3px;background:transparent!important;box-shadow:none!important;color:inherit!important;-webkit-text-fill-color:currentColor;font:inherit!important;letter-spacing:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer;vertical-align:baseline;-webkit-app-region:no-drag}
html body #page-home #homeWelcome #opcBrandBtn .company-identity-copy{display:inline!important;white-space:normal}
html body #page-home #homeWelcome #opcBrandBtn :is(.company-identity-seal,.company-identity-label,#opcBrandWho,#opcBrandStudio){display:none!important}
html body #page-home #homeWelcome .home-studio-name{display:inline;font-weight:600;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px;text-decoration-color:currentColor}
html body #page-home #homeWelcome .home-studio-core{color:#975021;-webkit-text-fill-color:currentColor}
html[data-theme]:not([data-theme="light"]):not([data-theme="day"]) body #page-home #homeWelcome .home-studio-core{color:#efb884}
html body #page-home #homeWelcome #opcBrandBtn .company-identity-arrow{display:inline!important;padding:0 0 0 .25em;font-size:.48em;color:inherit;opacity:.6;white-space:nowrap}
html body #page-home #homeWelcome #opcBrandBtn:hover .home-studio-name{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
html body #page-home #homeWelcome #opcBrandBtn:hover .company-identity-arrow{opacity:1}
html body #page-home #homeWelcome #opcBrandBtn:focus-visible{outline:2px solid currentColor;outline-offset:5px}

/* Closing returns the real company panel to its homepage identity. */
#companyHomeOverlay.is-returning{background:transparent!important;backdrop-filter:none!important;pointer-events:none}
#companyHomeOverlay.is-returning .company-home-panel{transform-origin:0 0;pointer-events:none}
.company-return-hint{position:fixed;z-index:16000;max-width:min(280px,calc(100vw - 24px));padding:10px 14px;border-radius:10px;background:#1d2939;color:#fff;box-shadow:0 6px 24px #0003;font:13px/1.5 system-ui,sans-serif;pointer-events:none}
.company-return-hint[hidden]{display:none!important}
.company-entry-arrived{animation:company-entry-pulse 1.1s ease-out 2}
@keyframes company-entry-pulse{50%{filter:drop-shadow(0 0 8px #52b89f);opacity:.72}}
@media(prefers-reduced-motion:reduce){.company-entry-arrived{animation:none}}
