/* v1.3.12 top bar: logo-only brand, site controls moved out of chat. */
:root{--topbar-height:58px}
.topbar{
  position:relative;z-index:80;height:var(--topbar-height);display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:0 14px;border-bottom:1px solid var(--border);background:rgba(8,10,13,.95);backdrop-filter:blur(18px);box-shadow:0 8px 30px rgba(0,0,0,.18)
}
.brand{display:flex;align-items:center;min-width:44px;height:100%}
.brand-mark{display:block;width:44px;height:44px;object-fit:contain;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 5px 12px rgba(0,0,0,.28))}
.brand-mark-halloween{display:none}
body.theme-spooktober .brand-mark-default{display:none}
body.theme-spooktober .brand-mark-halloween{display:block}
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.menu-wrap{position:relative}
.top-button,.account-pill,.top-settings-button{height:34px;border:1px solid var(--border);border-radius:8px;background:#10141a;color:#cbd2db;transition:.14s ease}
.top-button:hover,.account-pill:hover,.top-settings-button:hover{border-color:#394553;background:#171d25;color:#fff}
.top-button{display:flex;align-items:center;gap:7px;padding:0 10px;font-size:11px;font-weight:800}
.top-button-glyph{color:var(--accent);font-size:13px}.top-caret{color:#727d8a;font-size:8px}
.color-button{min-width:68px;justify-content:center}
.color-button-swatch{width:12px;height:12px;flex:0 0 auto;border-radius:4px;border:1px solid rgba(255,255,255,.34);background:var(--accent);box-shadow:0 0 0 1px rgba(0,0,0,.35) inset}
.color-dropdown{width:316px}
.header-color-editor{padding:7px 8px 8px}
.header-color-editor .field-label{margin:0 0 6px}
.header-color-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center}.header-color-row+.inline-color-editor{margin-top:7px}
.header-color-row .hex-color-input{width:100%;min-width:0;height:42px;border:1px solid var(--border);border-radius:8px;background:#0a0d11;color:var(--text);padding:0 10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.04em;outline:none}.header-color-row .hex-color-input:focus{border-color:#4a5868;box-shadow:0 0 0 2px rgba(126,231,135,.08)}
.header-color-save{margin-top:10px}
.header-color-status{min-height:16px;margin:7px 0 0!important}
.account-pill{display:flex;align-items:center;gap:8px;max-width:180px;padding:0 10px 0 6px}
.account-avatar{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:6px;background:#171d25;border:1px solid #303946;color:#adb7c3;font-size:9px;font-weight:950;text-transform:uppercase}
.account-avatar.owner{background:#201b0c;border-color:rgba(245,200,76,.28);color:var(--owner)}
.account-avatar.moderator{background:#0c1d25;border-color:rgba(121,215,255,.25);color:var(--mod)}
.account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:850}
.top-settings-button{width:34px;display:grid;place-items:center;padding:0;font-size:16px}
.top-dropdown{position:absolute;z-index:160;top:42px;right:0;width:220px;padding:6px;border:1px solid #303946;border-radius:10px;background:rgba(14,17,22,.99);box-shadow:0 18px 48px rgba(0,0,0,.55);backdrop-filter:blur(15px)}
.top-menu-head{padding:8px 9px 7px;border-bottom:1px solid var(--border);margin-bottom:5px}.top-menu-head strong{display:block;font-size:11px}.top-menu-head span{display:block;margin-top:3px;color:var(--muted);font-size:9px}
.top-menu-item{width:100%;height:36px;border:0;border-radius:7px;background:transparent;color:#d9dee4;padding:0 9px;text-align:left;font-size:11px}.top-menu-item:hover{background:#1a2028}

/* The prior full-viewport rules intentionally hid the old unused header. The real header now owns 58px. */
.app-shell{height:100vh;min-height:0}
.stage{height:calc(100vh - var(--topbar-height));min-height:0;overflow:hidden}
.content-column{height:100%;min-height:0}
.player-shell{height:100%;max-height:100%;min-height:0}
.chat-panel{height:100%;min-height:0}
.chat-resize-handle{height:100%}
body.chat-collapsed .player-shell{height:100%}
body.theater .topbar{display:none}
body.theater .stage,body.theater .content-column,body.theater .player-shell{height:100vh;max-height:100vh}

@media(max-width:820px){
  .topbar{padding:0 10px}
  .brand-mark{width:40px;height:40px}
  .stage{height:calc(100dvh - var(--topbar-height))}
  .content-column,.player-shell{height:100%}
  .chat-panel,body.chat-overlay .chat-panel{position:fixed;z-index:90;inset:var(--topbar-height) 0 0 0;height:calc(100dvh - var(--topbar-height))}
  .host-controls-button .button-label{display:none}.host-controls-button{width:34px;padding:0;justify-content:center}.host-controls-button .top-caret{display:none}
  .account-pill{max-width:130px}
}
@media(max-width:520px){
  .topbar{padding:0 8px}.brand-mark{width:38px;height:38px}
  .top-actions{gap:5px}.account-pill{max-width:94px;padding-right:7px}.account-name{font-size:10px}
  .color-button{min-width:64px;padding:0 8px;gap:6px}
  .color-dropdown{position:fixed;top:52px;left:8px;right:8px;width:auto}
}
@media(max-width:360px){
  .topbar{padding:0 6px;gap:7px}.brand{min-width:34px}.brand-mark{width:34px;height:34px}
  .top-actions{gap:4px}.color-button{min-width:58px;padding:0 6px;gap:5px}.account-pill{max-width:82px;padding-right:5px}
  .top-button,.account-pill,.top-settings-button{height:32px}.top-settings-button,.host-controls-button{width:32px}
}

/* v1.3.14 settings/readability + composer alignment cleanup */
.host-controls-button{gap:7px}
.composer-row-media.has-giphy{grid-template-columns:36px 36px minmax(0,1fr) 58px;align-items:center}
.composer-icon,.composer-gif-button{align-self:center;justify-self:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;margin:0;transform:none;line-height:36px;text-align:center}
.composer-gif-button{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;letter-spacing:.02em}
.composer-icon{display:flex;align-items:center;justify-content:center;line-height:1}
.composer-icon{font-size:0}
.composer-icon-svg{display:block;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex:0 0 auto}

/* Settings are intentionally one clear reading column instead of a dense two-column control wall. */
.settings-card{
  width:min(940px,calc(100vw - 42px));
  max-height:min(88vh,900px);
  grid-template-columns:minmax(0,1fr);
  row-gap:0;
  padding:24px 28px 28px;
  background:#10141a;
}
.settings-card>.eyebrow,.settings-card>h3,.settings-card>.settings-nav,.settings-card>.settings-page-header,
.settings-card>.settings-section,.settings-card>.settings-actions{grid-column:1!important}
.settings-card>h3{font-size:26px;margin-bottom:12px;color:#f7f9fb}
.settings-nav{gap:7px;padding:6px;margin:0 0 16px;background:#0a0d11;border-color:#2b3440}
.settings-nav-button{height:38px;padding:0 15px;font-size:12px;color:#a9b2be}
.settings-nav-button.active{color:#fff;background:#202833;border-color:#3a4654}
.settings-page-header{padding:2px 2px 15px;margin-bottom:2px}
.settings-page-copy{gap:5px}.settings-page-copy strong{font-size:17px;color:#f5f7fa}.settings-page-copy span{font-size:12px;line-height:1.55;color:#aeb7c3}
.settings-card>.settings-section.settings-page-active,
.settings-card>.owner-dashboard-section.settings-page-active,
.settings-card>.owner-access-section.settings-page-active{
  width:100%;margin:12px 0 0;padding:17px 18px!important;border:1px solid #2d3743!important;border-radius:12px;background:#0c1015;
}
.settings-card .settings-section-title{margin-bottom:13px;padding-bottom:9px;border-bottom:1px solid #222a34;font-size:14px;color:#f0f3f6}
.settings-card .settings-section-title>span:first-child{font-size:14px;font-weight:900;letter-spacing:.005em}
.settings-card .field-label{font-size:12.5px;color:#e0e5eb;font-weight:800;margin:14px 0 7px}
.settings-card .setting-note{font-size:12px!important;line-height:1.55;color:#a8b1bd!important;margin-top:8px!important}
.settings-card .toggle-row{min-height:44px;padding:9px 11px;font-size:12.5px;line-height:1.4;background:#090c10;border-color:#29323d}
.settings-card .secondary-button,.settings-card .danger-button,.settings-card .tiny-button{min-height:36px;font-size:11.5px}
.settings-card input:not([type=checkbox]):not([type=color]),.settings-card select{font-size:12px}
.settings-card .stream-config-grid{gap:10px}.settings-card .stream-config-grid>div{padding:11px;background:#090c10}.settings-card .stream-config-grid strong,.settings-card .stream-config-grid code{font-size:12px;line-height:1.45}
.settings-card .privilege-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.settings-card .privilege-card{padding:13px;background:#090c10}.settings-card .privilege-title{font-size:13px}.settings-card .privilege-card p{font-size:11.5px;line-height:1.55;color:#aab3bf}
.settings-card .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.settings-card .dashboard-card{padding:12px}.settings-card .dashboard-label{font-size:10px;color:#9aa5b2}.settings-card .dashboard-card strong{font-size:14px}.settings-card .dashboard-card small{font-size:10.5px;color:#a2acb8}
.settings-card .health-pill{font-size:10.5px;padding:6px 9px}.settings-card .dashboard-backup-row strong{font-size:12px}.settings-card .dashboard-backup-row small{font-size:10.5px;line-height:1.45}
.settings-card .access-control-grid,.settings-card .access-lists-grid{gap:12px}.settings-card .access-control-card{padding:13px}.settings-card .access-party-row,.settings-card .access-subhead{font-size:12px}.settings-card .access-list-row{font-size:11px;padding:9px}.settings-card .access-list-main strong{font-size:12px}.settings-card .access-list-main small{font-size:10.5px;color:#a5afbb}
.settings-card .user-manager-entry{padding:11px}.settings-card .user-manager-name{font-size:12.5px}.settings-card .status-pill{font-size:9.5px}.settings-card .timeout-select{font-size:10.5px}
.settings-card .owner-locked-note{font-size:12px;line-height:1.5}
.settings-card>.settings-page-actions.settings-page-active{margin-top:12px;padding:14px 16px}

/* Upload is available to both privileged chat roles; removal remains Owner-only. */
.picker-toolbar.owner-locked #uploadEmoteBtn{display:inline-flex}

@media(max-width:820px){
  .composer-row-media.has-giphy{grid-template-columns:42px 42px minmax(0,1fr) 60px;align-items:center}
  .composer-icon,.composer-gif-button{width:42px;height:42px;min-width:42px;min-height:42px}
  .host-controls-button{width:auto;padding:0 9px;justify-content:center}
  .host-controls-button .button-label{display:inline}
  .host-controls-button .top-caret{display:none}
  .settings-card{width:min(700px,calc(100vw - 24px));max-height:90vh;padding:20px 18px 22px}
  .settings-card .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-card .privilege-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .settings-card{width:calc(100vw - 14px);padding:17px 12px 18px}
  .settings-card>.settings-section.settings-page-active,.settings-card>.owner-dashboard-section.settings-page-active,.settings-card>.owner-access-section.settings-page-active{padding:14px!important}
  .settings-page-copy strong{font-size:15px}.settings-page-copy span{font-size:11.5px;max-width:none}
  .settings-card .dashboard-grid{grid-template-columns:1fr 1fr}
  .settings-card .access-control-grid,.settings-card .access-lists-grid{grid-template-columns:1fr}
}
/* Keep status/details readable instead of clipping them inside Settings cards. */
.settings-card .dashboard-card strong,.settings-card .dashboard-card small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4}
.settings-card .access-list-main small{white-space:normal;line-height:1.4}
.settings-card .current-role-badge{font-size:10.5px}
.settings-card .dashboard-warning-box{font-size:11.5px;line-height:1.55;padding:10px 11px}
.settings-card .generated-invite code,.settings-card .public-url-row code{font-size:11.5px;line-height:1.4}
.settings-card .settings-actions-label{font-size:11px}
/* Locked owner-only settings stay readable; only interaction is blocked. */
.settings-card .owner-settings-section.locked{opacity:1;pointer-events:none}

/* v1.3.17 login and stream-state polish */
.auth-brand{display:flex;justify-content:center;align-items:center;margin:0 28px 20px}
.auth-brand::before{content:none!important}
.auth-brand img{display:block;width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 10px 24px rgba(0,0,0,.34))}
.password-field{position:relative;width:100%}
.password-field input{padding-right:48px!important}
.password-toggle{position:absolute;right:5px;top:5px;width:36px;height:32px;display:grid;place-items:center;border:0;border-radius:6px;background:#171c23;color:#aeb7c2}
.password-toggle:hover{background:#202731;color:#f0f3f6}
.password-eye{position:relative;display:block;width:17px;height:11px;border:1.7px solid currentColor;border-radius:70% 30% 70% 30%;transform:rotate(45deg)}
.password-eye::after{content:'';position:absolute;width:5px;height:5px;left:4.2px;top:1.2px;border-radius:50%;background:currentColor}
.password-toggle.revealed .password-eye::before{content:'';position:absolute;left:6.4px;top:-4px;width:1.8px;height:19px;border-radius:2px;background:#ff7e89;transform:rotate(-45deg);box-shadow:0 0 0 1px rgba(10,13,17,.55)}
.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled,.tiny-button:disabled{opacity:.58;cursor:not-allowed}

.stream-placeholder-logo{display:block;width:74px;height:74px;object-fit:contain;margin:0 auto 14px;opacity:.34;filter:grayscale(.08) drop-shadow(0 10px 26px rgba(0,0,0,.35))}
.stream-connection-note{margin:-10px 0 14px!important;color:#b5bec9!important;font-size:12px!important}
.stream-auto-check{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:30px;padding:6px 10px;border:1px solid rgba(255,255,255,.07);border-radius:999px;background:rgba(255,255,255,.035);color:#7f8a97;font-size:10px;font-weight:750}
.stream-auto-dot{width:6px;height:6px;border-radius:50%;background:#64707d;animation:streamAutoPulse 1.8s ease-in-out infinite}
@keyframes streamAutoPulse{0%,100%{opacity:.35;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}
.placeholder-center #retryStreamBtn{margin-top:12px}
.player-shell.stream-inactive .player-controls{display:none!important}
.player-connection-overlay{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;gap:9px;pointer-events:none;background:rgba(0,0,0,.06);color:#e8edf2;font-size:12px;font-weight:800;text-shadow:0 2px 9px rgba(0,0,0,.9)}
.player-connection-overlay>span:last-child{padding:8px 11px 8px 0}
.connection-spinner{width:17px;height:17px;margin-left:11px;border:2px solid rgba(255,255,255,.28);border-top-color:#fff;border-radius:50%;animation:connectionSpin .8s linear infinite}
@keyframes connectionSpin{to{transform:rotate(360deg)}}
@media(max-width:520px){.auth-brand img{width:56px;height:56px}.stream-placeholder-logo{width:62px;height:62px}.stream-connection-note{font-size:11px!important}}

/* v1.3.29 themed account-action dialogs + account detail history */
.action-confirm-card{width:min(440px,100%);border-color:#303a46;background:linear-gradient(180deg,#11161d,#0b0f14)}
.action-confirm-card.is-danger{border-color:#5a2d33;box-shadow:0 24px 80px rgba(0,0,0,.62),0 0 0 1px rgba(255,125,137,.08) inset}
.action-confirm-card.is-danger #actionConfirmEyebrow{color:#ff8d97}
.action-confirm-message{margin:7px 0 0!important;color:#b7c0ca!important;line-height:1.55}
.action-confirm-target{margin-top:13px;padding:10px 11px;border:1px solid #303a46;border-radius:8px;background:#090d12;color:#aeb8c4;font-size:11px}
.action-confirm-target strong{color:var(--text);overflow-wrap:anywhere}
.action-confirm-input-wrap{display:block;margin-top:12px}
.action-confirm-input-wrap input{width:100%}
.action-confirm-input-wrap.invalid input{border-color:#72404a;box-shadow:0 0 0 2px rgba(255,125,137,.08)}
.action-confirm-result-wrap{margin-top:12px}
.action-confirm-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.action-confirm-result-row input{width:100%;font-family:Consolas,"Courier New",monospace;letter-spacing:.03em}
.action-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.action-confirm-actions .secondary-button,.action-confirm-actions .danger-button,.action-confirm-actions .primary-button{min-width:92px}
.user-detail-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.user-detail-info-item{padding:8px;border:1px solid var(--border);border-radius:7px;background:#090d12;min-width:0}
.user-detail-info-item span{display:block;color:#778391;font-size:8.5px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.user-detail-info-item strong{display:block;margin-top:4px;color:#c7d0da;font-size:10.5px;font-weight:700;overflow-wrap:anywhere}
.user-manager-toolbar{grid-template-columns:minmax(0,1fr) 135px 135px 150px}
@media(max-width:900px){.user-manager-toolbar{grid-template-columns:1fr 1fr}.user-manager-toolbar input{grid-column:1/-1}}
@media(max-width:500px){.user-detail-info-grid{grid-template-columns:1fr}.action-confirm-result-row{grid-template-columns:1fr}.action-confirm-actions{flex-direction:column-reverse}.action-confirm-actions button{width:100%}}

@media(max-width:500px){.user-manager-toolbar{grid-template-columns:1fr}.user-manager-toolbar input{grid-column:auto}}

/* v1.3.29 - action confirmations must stay above Settings/chat/menus */
#actionConfirmModal{z-index:30000}


/* v1.3.29 - wider, denser desktop Settings workspace */
@media (min-width:981px){
  .settings-card{
    width:min(1180px,calc(100vw - 48px));
    max-height:min(90vh,960px);
    display:grid;
    grid-template-columns:184px minmax(0,1fr) minmax(0,1fr);
    grid-auto-rows:min-content;
    column-gap:16px;
    row-gap:12px;
    align-content:start;
    overflow-y:auto;
    padding:24px 28px 28px;
  }
  .settings-card>.eyebrow,.settings-card>h3{grid-column:1/-1!important}
  .settings-card>.eyebrow{margin-bottom:-8px}
  .settings-card>h3{margin:0 0 2px}
  .settings-card>.settings-nav{
    grid-column:1!important;
    grid-row:3 / span 40;
    align-self:start;
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:5px;
    margin:0;
    padding:7px;
    overflow:visible;
  }
  .settings-card .settings-nav-button{
    width:100%;
    height:40px;
    padding:0 12px;
    text-align:left;
    justify-content:flex-start;
    border-radius:8px;
  }
  .settings-card>.settings-page-header{
    grid-column:2/-1!important;
    grid-row:3;
    margin:0;
    min-height:62px;
    padding:3px 4px 13px;
  }
  .settings-card>.settings-section.settings-page-active,
  .settings-card>.owner-dashboard-section.settings-page-active,
  .settings-card>.owner-access-section.settings-page-active,
  .settings-card>.settings-page-actions.settings-page-active{
    grid-column:2/-1!important;
    width:auto;
    min-width:0;
    margin:0;
    align-self:start;
  }

  /* These pages benefit from paired cards; large admin surfaces remain full width. */
  .settings-card>#ownerStreamingSection.settings-page-active{grid-column:2!important}
  .settings-card>#publicAccessSection.settings-page-active{grid-column:3!important}
  .settings-card>#ownerEmoteStorageSection.settings-page-active{grid-column:2!important}
  .settings-card>.emote-library-section.settings-page-active{grid-column:3!important}
  .settings-card>#ownerSettingsSection.settings-page-active{grid-column:2!important}
  .settings-card>#ownerGiphySection.settings-page-active{grid-column:3!important}
  .settings-card>.chat-display-section.settings-page-active{grid-column:2!important}
  .settings-card>#ownerSettingsActions.settings-page-active{grid-column:3!important;margin-top:0}

  /* Make the wide account manager use the room it has. */
  .settings-card .user-manager-layout{grid-template-columns:minmax(300px,.78fr) minmax(430px,1.22fr);gap:14px}
  .settings-card .user-manager-list{max-height:470px}
  .settings-card .user-manager-detail{max-height:530px}
  .settings-card .user-manager-toolbar{grid-template-columns:minmax(220px,1fr) 145px 145px 165px}
}

@media (max-width:980px){
  .settings-card{
    display:block;
    width:min(820px,calc(100vw - 24px));
    max-height:90vh;
    overflow-y:auto;
  }
  .settings-card>.settings-nav{
    position:static;
    display:flex;
    flex-direction:row;
    align-items:center;
    overflow-x:auto;
  }
  .settings-card .settings-nav-button{width:auto;text-align:center}
  .settings-card>.settings-section.settings-page-active,
  .settings-card>.owner-dashboard-section.settings-page-active,
  .settings-card>.owner-access-section.settings-page-active,
  .settings-card>.settings-page-actions.settings-page-active{width:100%;margin-top:12px}
}


/* SleepyZone Change Log header control. */
.change-log-link{display:flex!important;align-items:center;visibility:visible!important;opacity:1!important;flex:0 0 auto;text-decoration:none!important;white-space:nowrap}
.change-log-glyph{position:relative;width:13px;height:15px;flex:0 0 auto;border:1.5px solid currentColor;border-radius:2px;opacity:.9}
.change-log-glyph::before,.change-log-glyph::after{content:"";position:absolute;left:2.5px;right:2.5px;height:1.5px;border-radius:2px;background:currentColor}
.change-log-glyph::before{top:4px;box-shadow:0 3.5px 0 currentColor}
.change-log-glyph::after{top:11px;right:5px}
@media(max-width:620px){.change-log-link .button-label{display:none}.change-log-link{width:34px;padding:0;justify-content:center}}

/* SleepyZone 1.0.4 - Settings declutter pass. Keep the existing visual language while making each tab task-focused. */

/* Overview */
.settings-card .dashboard-primary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-subsection{margin-top:12px;padding-top:11px;border-top:1px solid #222a34}
.dashboard-subsection-label{margin-bottom:7px;color:#8f9aa7;font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.dashboard-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dashboard-secondary-grid .dashboard-card{min-height:68px}

/* Access */
.access-invite-section{margin-top:13px}
.access-invite-list{max-height:250px}
.access-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:13px;padding:11px 12px;border:1px solid #4b2b31;border-radius:9px;background:#130d0f}
.access-danger-zone>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.access-danger-zone strong{font-size:11.5px;color:#f1d8dc}
.access-danger-zone span{font-size:10.5px;line-height:1.4;color:#9f8f93}
.invite-row-actions{gap:6px}
.invite-expiry-select{height:32px;min-width:112px;border:1px solid var(--border);border-radius:7px;background:#11161d;color:#cbd3dc;padding:0 8px;font-size:10.5px}

/* Streaming */
.stream-server-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.stream-server-copy,.stream-source-summary{display:flex;min-width:0;flex-direction:column;gap:5px;border:1px solid var(--border);border-radius:9px;background:#090c10;padding:11px}
.stream-server-copy code{color:#d6dee8;font:11.5px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.stream-source-summary{margin-top:8px}
.stream-source-summary strong{font-size:12px;color:#eef2f6}
.stream-actions-row{display:flex;align-items:center;gap:10px;margin-top:9px;min-width:0}
.stream-actions-row .setting-note{margin:0!important;min-width:0}
.stream-help-details{margin-top:10px;border-top:1px solid #222a34;padding-top:4px}
.stream-help-details summary{cursor:pointer;list-style:none;padding:9px 0 4px;color:#9ba6b3;font-size:11px;font-weight:850}
.stream-help-details summary::-webkit-details-marker{display:none}
.stream-help-details summary::after{content:' +';color:#6f7b88}
.stream-help-details[open] summary::after{content:' −'}
.stream-help-grid{margin-bottom:4px!important}

/* Users */
.privileges-compact>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;color:#eef2f6;font-size:12.5px;font-weight:900}
.privileges-compact>summary::-webkit-details-marker{display:none}
.privileges-compact>summary>span:first-child::after{content:' +';color:#718091;font-weight:600}
.privileges-compact[open]>summary>span:first-child::after{content:' −'}
.privileges-compact[open] .privilege-grid{margin-top:13px}
.accounts-moderation-compact[open]>.user-tools-panel{margin-top:13px}
.accounts-moderation-actions{display:flex;justify-content:flex-end;align-items:center;margin:0 0 9px}
.user-manager-stats{align-items:center;justify-content:space-between;gap:8px;margin:5px 0 10px}
.user-manager-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#9fa9b5;font-size:10.5px}
.user-manager-summary strong{color:#dfe5eb;font-size:11px}
.user-manager-summary>span:nth-child(even){color:#56616e}
.user-manager-alert-stats{display:flex;gap:6px;flex-wrap:wrap}

/* Emotes & Chat */
.emote-subsection,.chat-subsection{padding:12px 0;border-bottom:1px solid #222a34}
.emote-subsection:first-of-type,.chat-subsection:first-of-type{padding-top:0}
.emote-subsection:last-child,.chat-subsection:last-child{border-bottom:0;padding-bottom:0}
.emote-subsection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.emote-subsection-head strong{font-size:11.5px;color:#dfe5eb}
.emote-subsection-actions{display:flex;justify-content:flex-end;margin-top:9px}
.local-display-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #222a34}
.local-display-row span{color:#8e99a6;font-size:10.5px;line-height:1.4}
.emote-danger-actions{align-items:center;justify-content:space-between;margin-top:12px;padding-top:11px;border-top:1px solid #472a30}
.emote-danger-actions .settings-actions-label{color:#d99aa2}

@media (min-width:981px){
  .settings-card>.emotes-group-section.settings-page-active{grid-column:2!important}
  .settings-card>#ownerGiphySection.settings-page-active{grid-column:3!important}
  .settings-card>.chat-tools-section.settings-page-active{grid-column:2/-1!important}
}
@media(max-width:820px){
  .settings-card .dashboard-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-secondary-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .settings-card .dashboard-primary-grid,.dashboard-secondary-grid{grid-template-columns:1fr 1fr}
  .access-danger-zone,.local-display-row{align-items:stretch;flex-direction:column}
  .access-danger-zone button,.local-display-row button{width:100%}
  .stream-server-row{grid-template-columns:1fr}
  .stream-server-row button{width:100%}
  .stream-actions-row{align-items:stretch;flex-direction:column}
  .stream-actions-row button{width:100%}
  .user-manager-stats{align-items:flex-start;flex-direction:column}
}

/* SleepyZone 1.0.6 - website Moderation Log presentation removed; account controls remain in Users. */


/* SleepyZone 1.1.8 - keyboard/chat isolation.
   A focused composer may move chat into view, but must never resize/reposition the
   app shell, stage, content column, player shell or video. Native HLS stays untouched. */
@media(max-width:820px){
  body.mobile-composer-focused #schedulePage{display:none!important}
  body.mobile-composer-focused{overscroll-behavior:contain}
  html:not(.chat-only-page) body.mobile-composer-focused:not(.theater) .chat-panel{z-index:5}
  html:not(.chat-only-page) body.mobile-composer-focused:not(.theater) .chat-composer{position:relative;z-index:7}
}

/* SleepyZone 1.0.7 - mobile watch + chat permanent stack.
   Phone watch mode is intentionally simple: 16:9 video -> chat -> composer.
   Chat is a normal layout region, never a drawer or overlay over the player. */
@media(max-width:820px){
  html:not(.chat-only-page) body:not(.theater) .stage{
    position:relative;
    display:grid!important;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    height:calc(var(--pp-mobile-viewport-height,100dvh) - var(--topbar-height));
    min-height:0;
    overflow:hidden;
    background:#000;
  }
  html:not(.chat-only-page) body:not(.theater) .content-column{
    position:relative;
    z-index:2;
    grid-column:1;
    grid-row:1;
    width:100%;
    height:auto!important;
    min-width:0;
    min-height:0;
    padding:0;
    overflow:hidden;
    background:#000;
    isolation:isolate;
  }
  html:not(.chat-only-page) body:not(.theater) .player-shell{
    width:100%;
    height:auto!important;
    min-width:0;
    min-height:0;
    max-height:none;
    aspect-ratio:16/9;
    overflow:hidden;
  }
  html:not(.chat-only-page) body:not(.theater) .chat-panel,
  html:not(.chat-only-page) body:not(.theater).chat-overlay .chat-panel,
  html:not(.chat-only-page) body:not(.theater).chat-collapsed .chat-panel{
    position:relative!important;
    z-index:1;
    grid-column:1;
    grid-row:2;
    inset:auto!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    display:flex!important;
    flex-direction:column;
    width:100%;
    height:100%!important;
    min-width:0;
    min-height:0;
    max-height:none;
    border:0;
    border-top:1px solid #2a333e;
    border-radius:0;
    box-shadow:none;
    transform:none!important;
    transition:none;
    backdrop-filter:none;
    background:#0b0e12;
    padding-top:0;
    overflow:hidden;
    isolation:isolate;
  }
  html:not(.chat-only-page) body:not(.theater) .chat-header{display:none!important}
  html:not(.chat-only-page) body:not(.theater) #collapseChatBtn{display:none!important}
  html:not(.chat-only-page) body:not(.theater) .chat-scrim{display:none!important;pointer-events:none!important}
  html:not(.chat-only-page) body:not(.theater) .messages{flex:1 1 auto;min-height:0}
  html:not(.chat-only-page) body:not(.theater) .chat-composer{flex:0 0 auto;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  html:not(.chat-only-page) body:not(.theater) .chat-panel .giphy-picker{
    position:absolute!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:68px!important;
    width:auto!important;
    max-height:min(62%,520px)!important;
  }
}

@media(max-width:920px) and (orientation:landscape) and (max-height:520px){
  html:not(.chat-only-page) body:not(.theater) .stage{
    grid-template-columns:minmax(0,1fr) min(390px,46vw);
    grid-template-rows:minmax(0,1fr);
  }
  html:not(.chat-only-page) body:not(.theater) .content-column{
    grid-column:1;grid-row:1;width:100%;height:100%!important;
  }
  html:not(.chat-only-page) body:not(.theater) .player-shell{
    width:100%;height:100%!important;aspect-ratio:auto;
  }
  html:not(.chat-only-page) body:not(.theater) #collapseChatBtn{display:grid!important}
  html:not(.chat-only-page) body:not(.theater) .chat-panel,
  html:not(.chat-only-page) body:not(.theater).chat-overlay .chat-panel,
  html:not(.chat-only-page) body:not(.theater).chat-collapsed .chat-panel{
    grid-column:2;grid-row:1;width:100%;height:100%!important;border-top:0;border-left:1px solid #2a333e;
  }
  html:not(.chat-only-page) body:not(.theater).chat-collapsed .stage{
    grid-template-columns:minmax(0,1fr)!important;
  }
  html:not(.chat-only-page) body:not(.theater).chat-collapsed .chat-panel{
    display:none!important;
  }
  html:not(.chat-only-page) body:not(.theater).chat-collapsed .content-column{
    grid-column:1 / -1!important;width:100%!important;height:100%!important;
  }
}

/* 1.1.8 username solid/gradient editor */
.username-color-mode{width:100%;height:38px;border:1px solid var(--border);border-radius:8px;background:#0a0d11;color:var(--text);padding:0 10px;font-size:11px;font-weight:800;outline:none}.username-color-mode:focus{border-color:#4a5868;box-shadow:0 0 0 2px rgba(126,231,135,.08)}
.username-gradient-controls{margin-top:9px;padding-top:9px;border-top:1px solid #222a34}.username-gradient-controls[hidden]{display:none!important}.username-gradient-controls .field-label{margin:10px 0 6px}.username-third-toggle{display:flex;align-items:center;gap:7px;margin:10px 0 0;color:#b7c0cb;font-size:10px;font-weight:800;cursor:pointer}.username-third-toggle input{accent-color:var(--accent)}

/* 1.1.8 Supporter Gradient entitlement */
.supporter-gradient-note{margin-top:8px}
.status-pill.supporter{border-color:rgba(49,169,255,.42);background:rgba(49,169,255,.12);color:#8fd1ff}
.supporter-feature-section .user-detail-muted{display:block;margin-top:8px}


/* SleepyZone 1.1.8 - iPad chat composer focus reliability.
   Large iPads can have desktop-width viewports while still using WebKit touch/keyboard
   behavior. Keep the trusted touch target fix, but do not resize the media surface. */
html.ipados-touch-ui .chat-composer{position:relative;z-index:6}
html.ipados-touch-ui .chat-input-wrap{position:relative;z-index:2;pointer-events:auto;touch-action:manipulation}
html.ipados-touch-ui #chatInput{position:relative;z-index:2;pointer-events:auto;touch-action:manipulation;-webkit-user-select:text;user-select:text;font-size:16px}
html.ipados-touch-ui #giphySearch{font-size:16px}
html.ipados-touch-ui:not(.chat-only-page) body.mobile-composer-focused:not(.theater){overscroll-behavior:contain}
html.ipados-touch-ui:not(.chat-only-page) body.mobile-composer-focused:not(.theater) .chat-panel{z-index:5}

/* SleepyZone 1.1.8 signed-in account compact layout.
   Keep every account control in one card without adding an internal scrollbar. */
#authModal:not(.auth-entry){padding:12px}
#authModal:not(.auth-entry) .auth-card{
  width:min(430px,100%);
  padding:15px 18px 14px;
  max-height:none;
  overflow:visible;
}
#authModal:not(.auth-entry) .auth-brand{margin:0 28px 7px}
#authModal:not(.auth-entry) .auth-brand img{width:48px;height:48px}
#accountPanel .eyebrow{font-size:9px;line-height:1.15;letter-spacing:.15em}
#accountPanel h3{margin:3px 0 4px;font-size:21px;line-height:1.1}
#accountPanel .account-role-row{margin:8px 0;padding:7px 9px;font-size:10.5px}
#accountPanel .current-role-badge{padding:4px 8px;font-size:9px}
#accountPanel .account-profile-button{margin:7px 0 1px;padding:6px 10px;min-height:31px;font-size:11px}
#accountPanel .account-color-block{margin:8px 0 9px;padding:9px 11px}
#accountPanel .account-color-block .field-label{margin:6px 0 4px;font-size:10.5px;line-height:1.2}
#accountPanel .account-color-block>.field-label:first-child{margin-top:0}
#accountPanel .username-color-mode{height:35px;padding:0 9px;font-size:11px}
#accountPanel .hex-color-row{grid-template-columns:38px minmax(0,1fr);gap:7px}
#accountPanel .color-picker{width:38px!important;height:36px!important;padding:3px!important;border-radius:7px!important}
#accountPanel .hex-color-input{height:36px!important;padding:0 10px!important;font-size:11px}
#accountPanel .username-gradient-controls{margin-top:6px;padding-top:6px}
#accountPanel .username-gradient-controls .field-label{margin:6px 0 4px}
#accountPanel .username-third-toggle{gap:6px;margin:6px 0 0;font-size:9.5px;line-height:1.2}
#accountPanel .username-color-preview{margin-top:6px;font-size:9.5px;line-height:1.2}
#accountPanel .username-color-preview strong{font-size:12px}
#accountPanel .username-style-save{margin-top:7px;padding:6px 10px;min-height:31px;font-size:11px}
#accountPanel .setting-note{margin-top:4px!important;font-size:9.25px!important;line-height:1.25}
#accountPanel .supporter-gradient-note{margin-top:4px}
#accountPanel>p{margin:7px 0 6px!important;font-size:10.5px!important;line-height:1.32}
#accountPanel #logoutBtn{margin-top:6px;padding:7px 10px;min-height:32px;font-size:11px}
#accountPanel .inline-color-editor{margin:5px 0 6px;padding:7px}
#accountPanel .inline-color-spectrum{height:84px}
#accountPanel .inline-color-hue-wrap{margin-top:6px}
#accountPanel .inline-color-presets{gap:4px;margin-top:6px}
@media(max-width:520px){
  #authModal:not(.auth-entry){padding:8px}
  #authModal:not(.auth-entry) .auth-card{padding:12px 14px 11px}
  #authModal:not(.auth-entry) .auth-brand{margin-bottom:5px}
  #authModal:not(.auth-entry) .auth-brand img{width:44px;height:44px}
  #accountPanel .account-color-block{padding:8px 9px}
}
@media(max-height:760px){
  #authModal:not(.auth-entry) .auth-card{padding-top:10px;padding-bottom:10px}
  #authModal:not(.auth-entry) .auth-brand{margin-bottom:4px}
  #authModal:not(.auth-entry) .auth-brand img{width:40px;height:40px}
  #accountPanel .account-role-row{margin:6px 0;padding:6px 8px}
  #accountPanel .account-profile-button{margin-top:5px}
  #accountPanel .account-color-block{margin:6px 0 7px;padding-top:7px;padding-bottom:7px}
  #accountPanel .account-color-block .field-label,#accountPanel .username-gradient-controls .field-label{margin-top:4px;margin-bottom:3px}
  #accountPanel .username-gradient-controls{margin-top:4px;padding-top:4px}
  #accountPanel .username-third-toggle{margin-top:4px}
  #accountPanel>p{margin:5px 0!important;font-size:10px!important}
}


/* 1.2.0 browser-local Change Log unread marker. */
.change-log-new-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:16px;padding:0 5px;border:1px solid rgba(49,169,255,.55);border-radius:999px;background:rgba(49,169,255,.14);color:#83ccff;font-size:8px;font-weight:950;letter-spacing:.08em;line-height:1}.change-log-new-badge[hidden]{display:none!important}@media(max-width:620px){.change-log-new-badge{position:absolute;top:1px;right:1px;min-width:7px;width:7px;height:7px;padding:0;border:0;background:#31a9ff;color:transparent}.change-log-link{position:relative}}
