/* Standalone Mivvn Dark: retain the exact chat palette and component treatment. */
:root{color-scheme:dark;font-family:'NanumBarunGothic','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;line-height:1.5}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#24262c;color:#edf0f7}
body{overscroll-behavior:none;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.team-root{width:100%;min-height:100dvh;display:flex;align-items:center;justify-content:center;position:relative}
.team-splash{display:flex;align-items:center;justify-content:center;gap:12px;color:#d3d7e2;font-size:15px;font-weight:650}
.team-splash-icon img{width:40px;height:40px;object-fit:contain;border-radius:11px}
.team-entry{position:fixed;inset:0;z-index:600;background:#24262c;display:none;align-items:center;justify-content:center;padding:20px}
.team-entry.is-visible{display:flex}
.team-entry-card{width:min(100%,420px);padding:30px;background:#2e3139;border:1px solid #444955;border-radius:26px;box-shadow:0 18px 50px rgba(0,0,0,.15)}
.team-brand{display:flex;gap:12px;align-items:center;margin-bottom:30px}
.team-brand-icon{width:48px;height:48px;display:grid;place-items:center;background:#08090c;border:1px solid #555b65;border-radius:14px;overflow:hidden}
.team-brand-icon img{width:100%;height:100%;object-fit:cover}
.team-brand>div{display:flex;flex-direction:column;gap:2px}
.team-brand strong{font-size:18px;color:#f1f3fa;font-weight:750}
.team-brand span:not(.team-brand-icon){font-size:11px;letter-spacing:.07em;color:#b3bfd9}
.team-entry h1{margin:0 0 9px;font-size:24px;letter-spacing:-.025em;font-weight:750}
.team-entry .team-intro{margin:0 0 26px;font-size:13px;line-height:1.7;color:#b5bccb}
.team-entry form{display:flex;flex-direction:column;gap:10px}
.team-entry label{font-size:12px;color:#c4cad7;font-weight:650}
.team-entry input{height:49px;border:1px solid #555b6b;border-radius:12px;padding:0 14px;background:#252830;color:#f0f2fa;outline:0;letter-spacing:.13em}
.team-entry input:focus{border-color:#899dd1;box-shadow:0 0 0 1px #899dd188}
.team-entry input::placeholder{color:#777f90;letter-spacing:normal}
.team-entry #team-login{height:49px;border:1px solid #617bba;border-radius:12px;background:#485f98;color:#fff;font-weight:700;margin-top:2px;transition:background .17s}
.team-entry #team-login:hover{background:#536da9}
.team-entry #team-login:disabled{opacity:.56;cursor:default}
.team-auth-error{margin:0;min-height:0;color:#f2aeb2;font-size:12px;line-height:1.5}
.team-auth-error:empty{display:none}
.team-entry-footer{text-align:center;margin:27px 0 0;color:#aebbd0;font-size:12px}
/* A chat window filling the app frame: not a floating popup, but visually identical. */
body.mivvn-team-app #mivvn-teamchat,
body.mivvn-team-app #mivvn-teamchat.is-staff-space,
body.mivvn-team-app #mivvn-teamchat.is-staff-space:not(.is-mobile-closed){
  display:flex!important;position:fixed!important;
  left:max(14px,calc((100vw - 1050px)/2))!important;right:auto!important;
  top:14px!important;bottom:auto!important;
  width:min(calc(100vw - 28px),1050px)!important;max-width:none!important;
  height:calc(100dvh - 28px)!important;max-height:none!important;min-height:0!important;
  transform:none!important;border:1px solid #50535d!important;border-radius:25px!important;
  box-shadow:0 18px 60px rgba(0,0,0,.22)!important;overflow:hidden!important;z-index:20!important;
}
body.mivvn-team-app #mivvn-teamchat[hidden]{display:none!important}
body.mivvn-team-app #mivvn-teamchat .mtc-header{touch-action:auto;cursor:default;flex:none}
body.mivvn-team-app #mivvn-teamchat .mtc-body{flex:1 1 auto!important;min-height:0!important;overflow:hidden}
body.mivvn-team-app #mivvn-teamchat .mtc-history{flex:1 1 auto;min-height:0!important;overflow:auto}
body.mivvn-team-app #mivvn-teamchat #mtc-minimize,
body.mivvn-team-app #mivvn-teamchat #mtc-close,
body.mivvn-team-app #mivvn-teamchat #mtc-back,
body.mivvn-team-app #mivvn-teamchat .mtc-grip-left,
body.mivvn-team-app #mivvn-teamchat .mtc-grip-bottom,
body.mivvn-team-app #mivvn-teamchat .mtc-grip-corner{display:none!important}
body.mivvn-team-app #mivvn-teamchat .mtc-standalone-logout{width:32px;height:32px;display:grid;place-items:center;flex:none;padding:6px;border:1px solid transparent;border-radius:9px;background:transparent;color:#b9becc}
body.mivvn-team-app #mivvn-teamchat .mtc-standalone-logout svg{width:20px;height:20px}
body.mivvn-team-app #mivvn-teamchat .mtc-standalone-logout:hover{background:#393c45;color:#f0f2f8}
body.mivvn-team-app #mivvn-teamchat .mtc-standalone-logout:focus-visible{outline:2px solid #9eb0dd;outline-offset:2px}
body.mivvn-team-app #mivvn-teamchat .mtc-header .mtc-title{min-width:0}
body.mivvn-team-app #mivvn-teamchat .mtc-header .mtc-room-wrap{max-width:45%}
#team-install{position:fixed;right:18px;bottom:18px;z-index:650;background:#454c60;color:#fff;border:1px solid #6a7387;border-radius:12px;padding:11px 15px;font-size:12px}
#team-install[hidden]{display:none}
@media(max-width:720px){
 body.mivvn-team-app #mivvn-teamchat,
 body.mivvn-team-app #mivvn-teamchat.is-staff-space,
 body.mivvn-team-app #mivvn-teamchat.is-staff-space:not(.is-mobile-closed){
   left:0!important;top:var(--mtc-visual-top,0px)!important;right:0!important;bottom:auto!important;
   width:100vw!important;height:var(--mtc-visual-height,100dvh)!important;
   max-height:var(--mtc-visual-height,100dvh)!important;
   border:0!important;border-radius:0!important;box-shadow:none!important;
 }
 body.mivvn-team-app #mivvn-teamchat .mtc-header{border-radius:0!important}
 .team-entry{padding:18px}
 .team-entry-card{padding:25px 22px;border-radius:23px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
/* Explicitly honor native hidden states over decorative flex layouts. */
.team-splash[hidden],.team-entry[hidden],#team-install[hidden]{display:none!important}
