/* mivvn moderator team chat: scoped styles only. */
#mivvn-teamchat{position:fixed;right:20px;top:20px;z-index:900;width:min(var(--mivvn-chat-width,380px),calc(100vw - 40px));height:min(var(--mivvn-chat-height,480px),calc(100dvh - 40px));min-height:180px;display:flex;flex-direction:column;border:1px solid #d9e8e2;border-radius:17px;background:#fff;box-shadow:0 14px 44px rgba(20,55,47,.20);font-family:inherit;color:#263e38;box-sizing:border-box;isolation:isolate}
#mivvn-teamchat *,#mivvn-teamchat *::before,#mivvn-teamchat *::after{box-sizing:border-box}
#mivvn-teamchat[hidden]{display:none!important}
#mivvn-teamchat button,#mivvn-teamchat select,#mivvn-teamchat textarea{font-family:inherit}
#mivvn-teamchat .mtc-header{display:flex;align-items:center;gap:8px;flex:none;height:56px;min-height:56px;padding:0 9px;border-radius:16px 16px 0 0;background:#f4f9f6;border-bottom:1px solid #e0eee7}
#mivvn-teamchat .mtc-title{font-weight:750;font-size:13px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mivvn-teamchat .mtc-name{font-size:10px;color:#81978b;display:block;margin-top:2px}
#mivvn-teamchat .mtc-icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:transparent;color:#507b69;cursor:pointer;flex:none;padding:6px}
#mivvn-teamchat .mtc-icon:hover{background:#deeee7}
#mivvn-teamchat .mtc-mobile-back{display:none}
#mivvn-teamchat .mtc-icon:focus-visible,#mivvn-teamchat .mtc-send:focus-visible{outline:2px solid #328b78;outline-offset:2px}
#mivvn-teamchat .mtc-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#mivvn-teamchat .mtc-key{background:#e5f3eb;color:#277966}
#mivvn-teamchat .mtc-key.mtc-key-ready{background:#ccebdc;color:#13634d;box-shadow:inset 0 0 0 1px #73bda0}
#mivvn-teamchat .mtc-badge{display:none;font-size:10px;font-weight:800;border-radius:9px;padding:2px 5px;background:#c75d52;color:white;margin-left:2px}
#mivvn-teamchat .mtc-badge:not(:empty){display:inline}
#mivvn-teamchat .mtc-body{display:flex;flex-direction:column;flex:1;min-height:0}
#mivvn-teamchat .mtc-toolbar{display:flex;align-items:center;gap:6px;padding:9px 12px;border-bottom:1px solid #edf1ef;flex:none}
#mivvn-teamchat .mtc-room{flex:1;min-width:0;font-size:12px;color:#3c6657;background:#fff;border:1px solid #e0ebe6;border-radius:9px;padding:7px 9px;height:35px}
#mivvn-teamchat .mtc-members{font-size:11px;color:#829d8e;white-space:nowrap;cursor:pointer;background:none;border:none;padding:5px}
#mivvn-teamchat .mtc-history{flex:1;overflow-y:auto;min-height:0;padding:12px 13px;display:flex;flex-direction:column;gap:10px;background:#fff;overscroll-behavior:contain}
#mivvn-teamchat .mtc-empty{margin:auto;text-align:center;font-size:12px;color:#8a9d95;line-height:1.8;padding:12px}
#mivvn-teamchat .mtc-load{background:#eef8f3;border:0;border-radius:8px;padding:7px 12px;color:#407d65;cursor:pointer;font-size:11px;margin:0 auto}
#mivvn-teamchat .mtc-item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:90%}
#mivvn-teamchat .mtc-item.mine{align-self:flex-end;align-items:flex-end}
#mivvn-teamchat .mtc-sender{font-size:10px;color:#7a9488;margin-left:4px}
#mivvn-teamchat .mtc-bubble{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;background:#eff5f1;border-radius:12px 12px 12px 4px;padding:9px 11px;max-width:100%}
#mivvn-teamchat .mtc-item.mine .mtc-bubble{background:#e1f2e8;border-radius:12px 12px 4px 12px}
#mivvn-teamchat .mtc-meta{font-size:10px;color:#96aaa0;display:flex;align-items:center;gap:8px}
#mivvn-teamchat .mtc-delete{font:inherit;color:#9c7b76;border:0;background:none;font-size:10px;cursor:pointer;padding:0}
#mivvn-teamchat .mtc-form{display:flex;gap:8px;align-items:end;padding:11px 12px;border-top:1px solid #edf1ed;flex:none}
#mivvn-teamchat .mtc-input{flex:1;min-width:0;height:40px;min-height:40px;max-height:none;resize:none;overflow-y:hidden;box-sizing:border-box;border:1px solid #dce8e1;border-radius:12px;background:#f8fbf9;padding:10px 11px;color:#293e37;font-size:13px;line-height:1.4}
#mivvn-teamchat .mtc-send{background:#328b78;color:#fff;border:0;border-radius:11px;width:40px;height:40px;display:grid;place-items:center;cursor:pointer;flex:none}
#mivvn-teamchat .mtc-send:disabled{opacity:.45;cursor:default}
#mivvn-teamchat .mtc-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
#mivvn-teamchat .mtc-note{display:none;font-size:11px;color:#b15d54;padding:4px 12px 8px}
#mivvn-teamchat .mtc-note:not(:empty){display:block}
/* Quiet resize affordance: invisible edge hit areas + a small corner grip. */
#mivvn-teamchat .mtc-grip-left{position:absolute;left:-7px;top:65px;bottom:20px;width:14px;cursor:ew-resize;touch-action:none;z-index:2;user-select:none}
#mivvn-teamchat .mtc-grip-left::after{content:none}
#mivvn-teamchat .mtc-grip-bottom{position:absolute;bottom:-7px;left:25px;right:17px;height:14px;cursor:ns-resize;touch-action:none;z-index:2;user-select:none}
#mivvn-teamchat .mtc-grip-bottom::after{content:none}
#mivvn-teamchat .mtc-grip-corner{position:absolute;left:0;bottom:0;width:29px;height:29px;cursor:nesw-resize;touch-action:none;z-index:3;user-select:none;border-radius:0 0 0 16px}
#mivvn-teamchat .mtc-grip-corner::after{content:'';position:absolute;left:7px;bottom:7px;width:13px;height:13px;opacity:.56;background:repeating-linear-gradient(135deg,transparent 0 4px,#83a99a 4px 5.5px,transparent 5.5px 8px);clip-path:polygon(0 100%,100% 0,100% 100%);transform:rotate(90deg);transition:opacity .16s ease}
#mivvn-teamchat .mtc-grip-corner:hover::after{opacity:1}
#mivvn-teamchat.is-collapsed{height:56px!important;min-height:56px;overflow:visible}
#mivvn-teamchat.is-collapsed .mtc-header{border-radius:16px;border-bottom:0}
#mivvn-teamchat.is-collapsed .mtc-body,#mivvn-teamchat.is-collapsed .mtc-grip-left,#mivvn-teamchat.is-collapsed .mtc-grip-bottom,#mivvn-teamchat.is-collapsed .mtc-grip-corner{display:none}
/* Code dialog takes precedence over chat body; the collapsed key/header remains clickable. */
#mivvn-teamchat.is-gated{z-index:100001!important;height:56px!important;min-height:56px}
#mivvn-teamchat.is-gated .mtc-body,#mivvn-teamchat.is-gated .mtc-grip-left,#mivvn-teamchat.is-gated .mtc-grip-bottom,#mivvn-teamchat.is-gated .mtc-grip-corner{display:none}
@media(max-width:720px){
 #mivvn-teamchat{inset:0!important;right:0!important;top:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;border:none;border-radius:0;z-index:200000!important;box-shadow:none}
 #mivvn-teamchat .mtc-header{height:calc(60px + env(safe-area-inset-top,0px));min-height:calc(60px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);border-radius:0}
 #mivvn-teamchat .mtc-grip-left,#mivvn-teamchat .mtc-grip-bottom,#mivvn-teamchat .mtc-grip-corner,#mivvn-teamchat .mtc-key,#mivvn-teamchat .mtc-collapse,#mivvn-teamchat #mtc-close{display:none!important}
 #mivvn-teamchat .mtc-mobile-back{display:inline-flex!important}
 #mivvn-teamchat .mtc-form{padding-bottom:calc(11px + env(safe-area-inset-bottom,0px))}
 #mivvn-teamchat.is-collapsed,#mivvn-teamchat.is-gated{height:100dvh!important;min-height:0!important}
 #mivvn-teamchat.is-collapsed .mtc-body,#mivvn-teamchat.is-gated .mtc-body{display:flex}
}
.mtc-pin-overlay{position:fixed;inset:0;z-index:99999;background:rgba(15,34,32,.46);display:flex;align-items:center;justify-content:center;padding:20px;font-family:inherit}
.mtc-pin-overlay[hidden]{display:none!important}
.mtc-pin-card{width:min(100%,370px);background:#fff;border-radius:18px;padding:24px;box-shadow:0 20px 55px #10281c44;color:#314f42}
.mtc-pin-card h2{font-size:18px;margin:0 0 10px}
.mtc-pin-card p{font-size:13px;line-height:1.6;color:#71897c;margin:0 0 13px}
.mtc-pin-card input{box-sizing:border-box;width:100%;height:44px;border:1px solid #ccdcd3;border-radius:10px;padding:10px;font-size:18px;letter-spacing:.16em}
.mtc-pin-card .mtc-pin-error{color:#b45e50;font-size:12px;min-height:17px;margin:8px 0}
.mtc-pin-card .mtc-pin-actions{display:flex;gap:8px;justify-content:flex-end}
.mtc-pin-card button{border:0;border-radius:9px;padding:10px 18px;cursor:pointer;background:#e5efe9;color:#2c5644;font:inherit;font-size:13px}
.mtc-pin-card button.mtc-pin-primary{background:#328b78;color:#fff}

/* Desktop chat header is the collapse/expand control; the close and key buttons stay independent. */
@media(min-width:721px){
 #mivvn-teamchat .mtc-header{cursor:pointer}
 #mivvn-teamchat .mtc-header button{cursor:pointer}
 #mivvn-teamchat.is-collapsed{width:min(252px,calc(100vw - 40px))!important}
 #mivvn-teamchat.is-collapsed .mtc-header{gap:6px;padding-inline:8px}
 #mivvn-teamchat.is-collapsed .mtc-title{font-size:12px}
 #mivvn-teamchat.is-collapsed .mtc-name{font-size:10px}
}

@media(min-width:721px){#mivvn-teamchat .mtc-header{touch-action:none;user-select:none}}

/* Refined room selector and member popup */
#mivvn-teamchat .mtc-toolbar{position:relative;gap:8px}
#mivvn-teamchat .mtc-room-wrap{position:relative;flex:1;min-width:0}
#mivvn-teamchat .mtc-room-wrap::after{content:"";position:absolute;right:13px;top:50%;width:8px;height:8px;border-right:1.7px solid #426f5e;border-bottom:1.7px solid #426f5e;transform:translateY(-70%) rotate(45deg);pointer-events:none}
#mivvn-teamchat .mtc-room{display:block;width:100%;appearance:none;-webkit-appearance:none;padding:7px 32px 7px 12px;cursor:pointer}
#mivvn-teamchat .mtc-members{height:35px;min-width:85px;padding:0 12px;border:1px solid #e0ebe6;border-radius:9px;background:#fff;color:#527565;font-size:12px;font-weight:500}
#mivvn-teamchat .mtc-members:hover,#mivvn-teamchat .mtc-room:hover{background:#f7faf8}
#mivvn-teamchat .mtc-member-popover{position:absolute;right:12px;bottom:calc(100% + 7px);width:min(235px,calc(100% - 24px));max-height:min(270px,50dvh);overflow-y:auto;background:#fff;border:1px solid #dce9e2;border-radius:12px;box-shadow:0 12px 35px #173f302b;z-index:30;padding:11px}
#mivvn-teamchat .mtc-member-popover[hidden]{display:none!important}
#mivvn-teamchat .mtc-member-heading{font-size:12px;font-weight:700;color:#315e4d;padding:2px 5px 9px;border-bottom:1px solid #edf1ef}
#mivvn-teamchat .mtc-member-entry{padding:9px 6px;border-bottom:1px solid #f1f4f2;color:#455d53;font-size:12px;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-member-entry:last-child{border-bottom:0}
#mivvn-teamchat .mtc-member-empty{font-size:12px;color:#8a9b92;padding:12px 5px}

/* Kakao-style adjacent timestamps; date is shown for older messages. */
#mivvn-teamchat .mtc-message-line{display:grid;grid-template-columns:minmax(0,max-content) max-content;align-items:end;gap:5px;width:max-content;max-width:100%;min-width:0}
#mivvn-teamchat .mtc-item.mine .mtc-message-line{justify-content:flex-end}
#mivvn-teamchat .mtc-message-line .mtc-bubble{box-sizing:border-box;width:max-content;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
#mivvn-teamchat .mtc-message-line .mtc-meta{flex:0 0 auto;white-space:nowrap;font-size:10px;line-height:1.2;padding-bottom:2px}
#mivvn-teamchat .mtc-item{max-width:100%}

@media(min-width:721px){#mivvn-teamchat .mtc-header,#mivvn-teamchat.is-collapsed .mtc-header{height:56px;min-height:56px;max-height:56px;flex:0 0 56px;box-sizing:border-box}#mivvn-teamchat.is-collapsed{height:56px!important;min-height:56px!important;max-height:56px!important}}

/* Visible, subtle desktop resize handles; anchored left edge keeps right border fixed. */
@media(min-width:721px){
 #mivvn-teamchat .mtc-grip-left{left:-6px;width:13px;top:72px;bottom:32px;z-index:12;display:flex;align-items:center;justify-content:center}
 #mivvn-teamchat .mtc-grip-left::after{content:"";display:block;position:absolute;left:4px;top:50%;transform:translateY(-50%);width:4px;height:44px;border-radius:4px;background:#b8d0c5;box-shadow:0 0 0 3px #fff9;transition:background .16s,height .16s}
 #mivvn-teamchat .mtc-grip-left:hover::after,#mivvn-teamchat .mtc-grip-left:active::after{background:#328b78;height:58px}
 #mivvn-teamchat .mtc-grip-bottom{bottom:-6px;left:36px;right:36px;height:13px;z-index:12}
 #mivvn-teamchat .mtc-grip-bottom::after{content:"";position:absolute;left:50%;bottom:3px;transform:translateX(-50%);width:44px;height:4px;border-radius:4px;background:#b8d0c5;transition:background .16s,width .16s}
 #mivvn-teamchat .mtc-grip-bottom:hover::after,#mivvn-teamchat .mtc-grip-bottom:active::after{background:#328b78;width:58px}
 #mivvn-teamchat .mtc-grip-corner{z-index:13;width:28px;height:28px}
 #mivvn-teamchat .mtc-grip-corner::after{opacity:.8}
}

/* Embedded first-row dock: flat until the header is dragged into free space. */
@media(min-width:721px){
 #mivvn-teamchat.is-docked{width:var(--mivvn-docked-width,252px)!important;box-shadow:0 10px 25px rgba(22,60,49,.14),0 3px 8px rgba(22,60,49,.08)!important;border-color:#cbded5!important;transition:none!important;}
 #mivvn-teamchat.is-docked .mtc-header{background:#f4f9f6;}
 #mivvn-teamchat:not(.is-docked){box-shadow:0 18px 48px rgba(17,51,43,.17);}
}

/* Collapsed dock bar: clear lower border, distinct raised surface. */
@media (min-width:721px){
 #mivvn-teamchat.is-collapsed{
   box-sizing:border-box!important;
   height:56px!important;min-height:56px!important;max-height:56px!important;
   border:1px solid #a7c9b9!important;
   border-radius:14px!important;
   overflow:visible!important;
   background:#fff!important;
   box-shadow:0 4px 8px rgba(20,60,47,.13),0 13px 28px rgba(20,60,47,.19)!important;
 }
 #mivvn-teamchat.is-collapsed .mtc-header,
 #mivvn-teamchat.is-docked.is-collapsed .mtc-header{
   box-sizing:border-box!important;
   height:54px!important;min-height:54px!important;max-height:54px!important;
   flex:0 0 54px!important;
   border:0!important;
   border-radius:13px!important;
   background:linear-gradient(180deg,#fff 0%,#eaf5ef 100%)!important;
 }
 #mivvn-teamchat.is-docked.is-collapsed{
   box-shadow:0 4px 8px rgba(20,60,47,.13),0 13px 28px rgba(20,60,47,.19)!important;
 }
 #mivvn-teamchat.is-collapsed .mtc-title{color:#245b47;font-weight:800}
}

/* Mobile chat opens only when its shortcut is explicitly tapped. */
@media(max-width:720px){#mivvn-teamchat.is-mobile-closed{display:none!important}}

/* Member list: open below the toolbar and size to its actual text. */
#mivvn-teamchat .mtc-member-popover{
  top:calc(100% + 6px);bottom:auto;right:12px;left:auto;
  width:max-content;min-width:0;max-width:min(320px,calc(100% - 24px));
  box-sizing:border-box;
}
#mivvn-teamchat .mtc-member-heading,
#mivvn-teamchat .mtc-member-entry{white-space:nowrap;}
#mivvn-teamchat .mtc-member-entry{overflow-wrap:normal;}

/* Initial first-row dock: flat surface with a visible outline. Dragged/free chat retains elevation. */
@media (min-width:721px){
 #mivvn-teamchat.is-docked.is-collapsed{
   box-shadow:none!important;
   border:1px solid #a7c9b9!important;
   background:#fff!important;
 }
 #mivvn-teamchat.is-docked.is-collapsed .mtc-header{
   background:#f4f9f6!important;
   box-shadow:none!important;
 }
}

/* Staff space chat stays attached to the workspace; outside it closes and logs out. */
#mivvn-teamchat.is-staff-space #mtc-close{display:none!important;}

/* Staff workspace: keep a compact, tappable team-chat bar visible on mobile.
   Only an explicit tap opens the full-screen conversation. */
@media(max-width:720px){
 #mivvn-teamchat.is-staff-space.is-mobile-closed{
   display:flex!important;inset:auto!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;
   width:min(224px,calc(100vw - 24px))!important;height:52px!important;min-height:52px!important;max-height:52px!important;
   border:1px solid #a7c9b9!important;border-radius:13px!important;box-shadow:none!important;
   background:#f4f9f6!important;overflow:hidden;z-index:950!important;cursor:pointer;
 }
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-header{
   height:50px!important;min-height:50px!important;max-height:50px!important;padding:0 11px!important;
   border:0!important;border-radius:12px!important;cursor:pointer;
 }
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-mobile-back,
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-body,
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-grip-left,
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-grip-bottom,
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-grip-corner{display:none!important;}
 #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-title{font-size:12px!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}

/* Keep the desktop dock appearance and controls at every viewport width. */
#mivvn-teamchat.is-staff-space.is-mobile-closed{display:flex!important}

/* Staff workspace: collapsed dock matches the 40px navigation-back button.
   Hide the moderator nickname only in the collapsed bar. */
#mivvn-teamchat.is-staff-space.is-collapsed{height:40px!important;min-height:40px!important;max-height:40px!important}
#mivvn-teamchat.is-staff-space.is-collapsed .mtc-header{height:38px!important;min-height:38px!important;max-height:38px!important;flex:0 0 38px!important}
#mivvn-teamchat.is-staff-space.is-collapsed .mtc-name{display:none!important}

/* Staff dock: retain the navigation button's top edge, with a fuller collapsed bar. */
#mivvn-teamchat.is-staff-space.is-collapsed{height:46px!important;min-height:46px!important;max-height:46px!important;border-width:1px!important}
#mivvn-teamchat.is-staff-space.is-collapsed .mtc-header{height:44px!important;min-height:44px!important;max-height:44px!important;flex:0 0 44px!important}
#mivvn-teamchat.is-staff-space.is-collapsed .mtc-title{font-size:14px!important;font-weight:600!important;line-height:1.3}
#mivvn-teamchat.is-staff-space.is-collapsed .mtc-icon svg{stroke-width:1.55}

/* Room selection lives in the header; the rest of the header remains a close/toggle surface. */
#mivvn-teamchat .mtc-header .mtc-title{flex:1;min-width:0}
#mivvn-teamchat .mtc-header .mtc-name{display:none!important}
#mivvn-teamchat .mtc-header .mtc-room-wrap{flex:0 1 175px;min-width:95px;max-width:40%;position:relative}
#mivvn-teamchat .mtc-header .mtc-room{width:100%;height:36px;background:#fff;border:1px solid #dce9e2;border-radius:9px;font-size:12px;padding:6px 28px 6px 9px;cursor:pointer}
#mivvn-teamchat .mtc-header .mtc-room-wrap::after{right:11px}
#mivvn-teamchat.is-collapsed .mtc-header .mtc-room-wrap{display:none}
@media(max-width:480px){#mivvn-teamchat .mtc-header .mtc-room-wrap{flex-basis:115px;min-width:90px;max-width:42%}#mivvn-teamchat .mtc-header .mtc-room{font-size:11px}}

/* Keep short chat messages on one line; wrap only when the available chat width is exhausted. */
#mivvn-teamchat .mtc-item{min-width:0}
#mivvn-teamchat .mtc-message-line .mtc-meta{min-width:max-content}

/* Six-digit moderator code: visible confirmation before navigation. */
@keyframes mivvnPinVerifyPulse{0%,100%{box-shadow:0 0 0 0 rgba(41,145,120,.12)}50%{box-shadow:0 0 0 5px rgba(41,145,120,.22)}}
input.mivvn-pin-verifying{border-color:#2d927d!important;animation:mivvnPinVerifyPulse .55s ease-in-out 1;outline:2px solid rgba(45,146,125,.15);outline-offset:1px}
.mivvn-pin-verifying-label{font-size:12px;color:#2d927d;margin-top:5px;font-weight:600;min-height:15px}


/* Message rows stay inside the scroll viewport, with balanced left/right gutters.
   Bubble wraps only after using the available width; timestamp keeps its own width. */
#mivvn-teamchat .mtc-history{padding-left:16px;padding-right:16px}
#mivvn-teamchat .mtc-item{width:100%;max-width:100%;min-width:0}
#mivvn-teamchat .mtc-message-line{display:flex;align-items:flex-end;gap:5px;width:fit-content;max-width:100%;min-width:0}
#mivvn-teamchat .mtc-item.mine .mtc-message-line{align-self:flex-end;justify-content:flex-end}
#mivvn-teamchat .mtc-item:not(.mine) .mtc-message-line{align-self:flex-start}
#mivvn-teamchat .mtc-message-line .mtc-bubble{flex:0 1 auto;width:auto;min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
#mivvn-teamchat .mtc-message-line .mtc-meta{flex:0 0 auto;white-space:nowrap}

/* Modern in-panel room picker; avoid platform-native select popup styling. */
#mivvn-teamchat .mtc-room-wrap .mtc-room[hidden]{display:none!important}
#mivvn-teamchat .mtc-room-wrap{position:relative}
#mivvn-teamchat .mtc-room-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;height:36px;border:1px solid #dce9e2;border-radius:11px;background:#fff;color:#2e6259;font:inherit;font-size:12px;font-weight:600;padding:0 11px;cursor:pointer;text-align:left;transition:border-color .16s,background .16s}
#mivvn-teamchat .mtc-room-trigger:hover{background:#f5faf7;border-color:#a6cfc0}
#mivvn-teamchat .mtc-room-trigger:focus-visible{outline:2px solid #4caa91;outline-offset:2px}
#mivvn-teamchat .mtc-room-trigger svg{width:16px;height:16px;flex:none;transition:transform .18s}
#mivvn-teamchat .mtc-room-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
#mivvn-teamchat .mtc-room-trigger:disabled{cursor:default;opacity:.8}
#mivvn-teamchat .mtc-room-wrap .mtc-room-menu:not([hidden]){display:flex;flex-direction:column;gap:3px;position:absolute;top:calc(100% + 7px);right:0;width:max-content;min-width:100%;max-width:min(280px,85vw);padding:6px;border:1px solid #dce9e2;border-radius:13px;background:#fff;box-shadow:0 10px 30px rgba(24,61,50,.14);z-index:100;max-height:240px;overflow-y:auto}
#mivvn-teamchat .mtc-room-menu[hidden]{display:none!important}
#mivvn-teamchat .mtc-room-option{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#345a53;text-align:left;font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
#mivvn-teamchat .mtc-room-option:hover,#mivvn-teamchat .mtc-room-option:focus-visible{background:#eef7f2;outline:none}
#mivvn-teamchat .mtc-room-option[aria-selected="true"]{background:#e5f4ec;color:#167b66;font-weight:700}
#mivvn-teamchat .mtc-header .mtc-room-wrap::after{display:none!important}

/* Keep the room picker to one line even in narrow floating windows. */
#mivvn-teamchat .mtc-room-trigger{min-width:0;overflow:hidden}
#mivvn-teamchat .mtc-room-trigger #mtc-room-label{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mivvn-teamchat .mtc-room-trigger svg{flex:0 0 16px}

/* Mobile staff workspace: chat is a page-like fullscreen view, never a floating dock. */
@media(max-width:720px){
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed){
  position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;min-height:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;
  z-index:200000!important;display:flex!important;
 }
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed) .mtc-header{border-radius:0!important;}
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed) .mtc-mobile-back{display:inline-flex!important;}
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed) .mtc-key{display:none!important;}
 #mivvn-teamchat.is-staff-space.is-mobile-closed{display:none!important;}
}

/* Mobile: hidden attribute must override fullscreen display:flex. */
@media(max-width:720px){
 #mivvn-teamchat[hidden]{display:none!important}
}

/* Mobile team chat: short conversations grow upward from the composer. */
@media (max-width:720px){
  #mivvn-teamchat .mtc-history::before{
    content:"";
    display:block;
    flex:0 0 auto;
    margin-top:auto;
  }
}

/* The visual viewport shrinks above the software keyboard on mobile browsers. */
@media(max-width:720px){
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed){
  top:var(--mtc-visual-top,0px)!important;
  bottom:auto!important;
  height:var(--mtc-visual-height,100dvh)!important;
  max-height:var(--mtc-visual-height,100dvh)!important;
 }
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed) .mtc-body{min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed) .mtc-history{min-height:0!important;overflow-y:auto!important}
 #mivvn-teamchat.is-staff-space:not(.is-mobile-closed) .mtc-form{flex:0 0 auto!important}
}

/* Two independent, server-authorized conversation channels in the existing popup. */
#mivvn-teamchat .mtc-channel-tabs{display:flex;flex:0 0 auto;gap:5px;padding:8px 11px;background:#f8faf9;border-bottom:1px solid #e7eeea}
#mivvn-teamchat .mtc-channel-tab{display:flex;align-items:center;justify-content:center;flex:1 1 50%;min-width:0;height:34px;border:1px solid transparent;border-radius:9px;background:transparent;color:#7b8e87;font:inherit;font-size:12px;font-weight:650;cursor:pointer;transition:background .14s ease,border-color .14s ease}
#mivvn-teamchat .mtc-channel-tab:hover:not(.is-active){background:#edf2ef}
#mivvn-teamchat .mtc-channel-tab.is-active{color:#236c57;background:#fff;border-color:#dce9e1}
#mivvn-teamchat .mtc-channel-tab:focus-visible{outline:2px solid #328b78;outline-offset:1px}
#mivvn-teamchat .mtc-channel-tab[hidden]{display:none!important}


/* --- mivvn / Team chat dark skin (2026-11-14) ---
   Scoped to the team-chat widget; does not change the workspace page theme.
   The dock, channels, messages and composer share the same graphite palette. */
#mivvn-teamchat{
  color-scheme:dark;
  --mtc-night:#232429;
  --mtc-night-top:#292b31;
  --mtc-night-soft:#303239;
  --mtc-night-line:#464850;
  --mtc-night-muted:#a1a4ae;
  --mtc-night-text:#ebeaf0;
  background:var(--mtc-night);
  border-color:#45474e;
  color:var(--mtc-night-text);
  box-shadow:0 16px 44px rgba(9,10,16,.35);
}
#mivvn-teamchat .mtc-header,
#mivvn-teamchat.is-docked .mtc-header{
  background:var(--mtc-night-top);
  border-bottom-color:#3b3d46;
}
#mivvn-teamchat .mtc-title{color:#e8eaf0}
#mivvn-teamchat .mtc-name{color:var(--mtc-night-muted)}
#mivvn-teamchat .mtc-icon{color:#c8cbd4;transition:background-color .16s ease,color .16s ease}
#mivvn-teamchat .mtc-icon:hover{background:#393b44;color:#fff}
#mivvn-teamchat .mtc-key{background:#3a3d49;color:#cdd6f1}
#mivvn-teamchat .mtc-key.mtc-key-ready{background:#354b47;color:#bbdfce;box-shadow:inset 0 0 0 1px #587b72}
#mivvn-teamchat .mtc-body{background:var(--mtc-night)}
#mivvn-teamchat .mtc-channel-tabs{background:var(--mtc-night-top);border-bottom-color:#3c3e47}
#mivvn-teamchat .mtc-channel-tab{color:#adb0ba}
#mivvn-teamchat .mtc-channel-tab:hover:not(.is-active){background:#373940}
#mivvn-teamchat .mtc-channel-tab.is-active{color:#f0f1f5;background:#3b3e47;border-color:#4c5059}
#mivvn-teamchat .mtc-history{background:var(--mtc-night);scrollbar-color:#50525d transparent}
#mivvn-teamchat .mtc-empty{color:#a1a4b0}
#mivvn-teamchat .mtc-load{background:#343640;color:#d7d9e4;transition:background-color .16s ease}
#mivvn-teamchat .mtc-load:hover{background:#3e414c}
#mivvn-teamchat .mtc-sender{color:#acafba;font-size:11px}
/* Bubble geometry: equal left corners, separately rounded right top/bottom. */
#mivvn-teamchat .mtc-bubble,
#mivvn-teamchat .mtc-item.mine .mtc-bubble{
  border-radius:23px 18px 10px 23px;
  padding:11px 15px;
  line-height:1.55;
  color:#eef0f5;
  box-shadow:none;
  background:#35373f;
}
#mivvn-teamchat .mtc-item.mine .mtc-bubble{
  background:#414550;
  color:#f3f3f8;
}
#mivvn-teamchat .mtc-meta{color:#9295a0}
#mivvn-teamchat .mtc-delete{color:#dcb4ae}
/* One unified rounded composer, like a chat assistant input, with only Send. */
#mivvn-teamchat .mtc-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  column-gap:6px;
  row-gap:3px;
  margin:10px 12px 12px;
  padding:11px 11px 10px;
  flex:0 0 auto;
  border:1px solid #555761;
  border-radius:25px;
  background:#34363d;
  box-shadow:none;
  transition:border-color .18s ease,background-color .18s ease;
}
#mivvn-teamchat .mtc-form:focus-within{border-color:#737887;background:#363941}
#mivvn-teamchat .mtc-input{
  grid-column:1 / -1;
  grid-row:1;
  display:block;
  width:100%;
  min-width:0;
  min-height:40px;
  max-height:155px;
  margin:0;
  padding:5px 7px 2px;
  border:0;
  border-radius:9px;
  outline:none;
  background:transparent;
  box-shadow:none;
  color:#f0f1f5;
  caret-color:#e7eaf5;
  font-size:14px;
  line-height:1.5;
}
#mivvn-teamchat .mtc-input::placeholder{color:#adb0ba;opacity:1}
#mivvn-teamchat .mtc-input:focus{border:0;outline:none;box-shadow:none;background:transparent}
#mivvn-teamchat .mtc-send{
  grid-column:2;
  grid-row:2;
  place-self:end;
  width:36px;
  height:36px;
  padding:0;
  border-radius:50%;
  border:0;
  background:#49619a;
  color:#eef2ff;
  transition:background-color .16s ease,opacity .16s ease;
}
#mivvn-teamchat .mtc-send:hover:not(:disabled){background:#5871ad}
#mivvn-teamchat .mtc-send:disabled{opacity:.38;background:#596078;color:#d3d6e0}
#mivvn-teamchat .mtc-send svg{width:20px;height:20px;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
#mivvn-teamchat .mtc-note{color:#e2a8a4}
#mivvn-teamchat .mtc-room,
#mivvn-teamchat .mtc-header .mtc-room,
#mivvn-teamchat .mtc-room-trigger,
#mivvn-teamchat .mtc-members{
  background:#34363e;
  color:#e2e4eb;
  border-color:#4a4d57;
}
#mivvn-teamchat .mtc-room-wrap::after{border-color:#d5d7e0}
#mivvn-teamchat .mtc-room-trigger:hover,
#mivvn-teamchat .mtc-members:hover,
#mivvn-teamchat .mtc-room:hover{background:#3b3d47;border-color:#666975}
#mivvn-teamchat .mtc-room-trigger:focus-visible,
#mivvn-teamchat .mtc-icon:focus-visible,
#mivvn-teamchat .mtc-send:focus-visible,
#mivvn-teamchat .mtc-channel-tab:focus-visible{outline-color:#8d9fd1}
#mivvn-teamchat .mtc-room-wrap .mtc-room-menu:not([hidden]),
#mivvn-teamchat .mtc-member-popover{
  background:#30323a;
  border-color:#535661;
  color:#e9eaf0;
  box-shadow:0 12px 30px rgba(0,0,0,.4);
}
#mivvn-teamchat .mtc-room-option{color:#dcdfe8}
#mivvn-teamchat .mtc-room-option:hover,
#mivvn-teamchat .mtc-room-option:focus-visible{background:#40434c}
#mivvn-teamchat .mtc-room-option[aria-selected="true"]{background:#424d60;color:#edf2ff}
#mivvn-teamchat .mtc-member-heading{color:#e3e6ed;border-bottom-color:#484b54}
#mivvn-teamchat .mtc-member-entry{color:#c9cbd4;border-bottom-color:#454750}
#mivvn-teamchat .mtc-member-empty{color:#a8aab5}
@media(min-width:721px){
  #mivvn-teamchat.is-docked{border-color:#4b4d56!important;box-shadow:0 8px 24px rgba(0,0,0,.22)!important}
  #mivvn-teamchat:not(.is-docked){box-shadow:0 18px 48px rgba(0,0,0,.38)}
  #mivvn-teamchat.is-collapsed,
  #mivvn-teamchat.is-docked.is-collapsed{
    background:#292b31!important;
    border-color:#4c4e56!important;
    box-shadow:0 5px 14px rgba(0,0,0,.25)!important;
  }
  #mivvn-teamchat.is-collapsed .mtc-header,
  #mivvn-teamchat.is-docked.is-collapsed .mtc-header{
    background:#292b31!important;
    border-color:#4c4e56!important;
    box-shadow:none!important;
  }
  #mivvn-teamchat.is-collapsed .mtc-title{color:#f0f1f6!important}
  #mivvn-teamchat .mtc-grip-left::after,
  #mivvn-teamchat .mtc-grip-bottom::after{background:#656976;box-shadow:0 0 0 3px rgba(27,28,34,.28)}
  #mivvn-teamchat .mtc-grip-left:hover::after,
  #mivvn-teamchat .mtc-grip-bottom:hover::after{background:#9297a9}
}
@media(max-width:720px){
  #mivvn-teamchat .mtc-form{margin:9px 12px 8px;padding-bottom:10px}
  #mivvn-teamchat .mtc-form{margin-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  #mivvn-teamchat .mtc-header{background:#292b31;border-color:#3b3d46}
  #mivvn-teamchat.is-staff-space.is-mobile-closed{
    background:#292b31!important;border-color:#4c4e56!important;
  }
  #mivvn-teamchat.is-staff-space.is-mobile-closed .mtc-header{
    background:#292b31!important;color:#eeeef3!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #mivvn-teamchat .mtc-form,#mivvn-teamchat .mtc-send,#mivvn-teamchat .mtc-icon{transition:none}
}

/* Role-gated recruitment document embedded in the existing decision conversation. */
#mivvn-teamchat .mtc-recruitment-attachment{margin:6px 0 0;min-width:0;width:min(100%,360px);border:1px solid #555c6d;border-radius:12px;background:#32353e;color:#e7eaf2;box-sizing:border-box;font-size:12px}
#mivvn-teamchat .mtc-recruitment-attachment-head{padding:11px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#mivvn-teamchat .mtc-recruitment-attachment-head strong{color:#f1f3f8;font-size:12px;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-recruitment-attachment button{font:inherit;cursor:pointer;border:1px solid #646c7e;border-radius:8px;background:#424856;color:#f3f4f9;padding:7px 9px;transition:background .15s ease}
#mivvn-teamchat .mtc-recruitment-attachment button:hover{background:#4d5260}
#mivvn-teamchat .mtc-recruitment-details{border-top:1px solid #4a4f5c;padding:11px;min-width:0}
#mivvn-teamchat .mtc-recruitment-details[hidden]{display:none!important}
#mivvn-teamchat .mtc-recruitment-person{font-size:13px;color:#fff}
#mivvn-teamchat .mtc-recruitment-subtitle{font-size:11px;color:#aeb7cb;font-weight:650;margin-top:11px}
#mivvn-teamchat .mtc-recruitment-answer,#mivvn-teamchat .mtc-recruitment-vote p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:4px 0 8px}
#mivvn-teamchat .mtc-recruitment-muted{font-size:11px;color:#b2bbc9;line-height:1.55;margin:6px 0}
#mivvn-teamchat .mtc-recruitment-results{font-weight:650;border-top:1px solid #4d5260;margin-top:12px;padding-top:11px}
#mivvn-teamchat .mtc-recruitment-vote{background:#3a3e4a;border-radius:8px;padding:9px;margin-top:8px;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-recruitment-vote strong{font-size:11px}
#mivvn-teamchat .mtc-recruitment-choices{display:flex;gap:6px;margin:8px 0}
#mivvn-teamchat .mtc-recruitment-choices button{flex:1}
#mivvn-teamchat .mtc-recruitment-choices button[aria-pressed=true]{background:#52699c;border-color:#8297c3;color:white}
#mivvn-teamchat .mtc-recruitment-form textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #666d7b;background:#272b35;color:#fff;border-radius:9px;padding:9px;font-size:12px;line-height:1.5;min-height:65px}
#mivvn-teamchat .mtc-recruitment-form textarea:focus{outline:2px solid #798fc5;outline-offset:1px}
#mivvn-teamchat .mtc-recruitment-form .mtc-recruitment-submit{margin-top:8px;width:100%;background:#49639d;border-color:#607ab1;color:white}
#mivvn-teamchat .mtc-recruitment-form button:disabled{opacity:.55;cursor:wait}
#mivvn-teamchat .mtc-recruitment-feedback{color:#f4aaa8;font-size:11px;margin-top:6px}
#mivvn-teamchat .mtc-recruitment-refresh{margin-top:10px;background:transparent!important;border:0!important;color:#b5c5e6!important;padding:4px 0!important;text-decoration:underline;text-underline-offset:3px}

/* Shared member notes are distinguished from moderator-authored chat. */
#mtc-history .mtc-public-note .mtc-bubble{border:1px solid #c8d8e2;background:#f5f9fc;color:#344e62}
#mtc-history .mtc-public-note .mtc-sender{font-weight:700;color:#4e6b86}
#mtc-history .mtc-public-note-label{font-size:11px;color:#5c7994;font-weight:700;margin-bottom:8px;line-height:1.45}
#mtc-history .mtc-public-note .mtc-bubble div:last-child{white-space:pre-wrap;overflow-wrap:anywhere}

#mivvn-teamchat .mtc-message-controls{display:flex;justify-content:flex-end;gap:5px;margin-top:3px}
#mivvn-teamchat .mtc-action{border:0;background:transparent;color:#879a92;font-size:17px;padding:1px 7px;cursor:pointer;border-radius:7px}
#mivvn-teamchat .mtc-action:hover{background:#edf1ef}
#mivvn-teamchat .mtc-edited{font-size:10px;color:#909f99;margin-left:4px}

/* Compact per-message remaining-read count and opt-in six-emoji reactions. */
#mivvn-teamchat .mtc-read-count{font-size:10px;font-weight:750;color:#a98749;align-self:flex-end;white-space:nowrap;margin:0 3px 4px}
#mivvn-teamchat .mtc-reactions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;position:relative;margin:4px 0 0;padding:0 3px}
#mivvn-teamchat .mtc-reactions-mine{justify-content:flex-end}
#mivvn-teamchat .mtc-reaction-chip,#mivvn-teamchat .mtc-reaction-add,#mivvn-teamchat .mtc-reaction-option{font-family:inherit;border:1px solid #e0e8e2;box-shadow:none!important;cursor:pointer;transition:background .14s ease,border-color .14s ease}
#mivvn-teamchat .mtc-reaction-chip{border-radius:999px;padding:4px 7px;background:#f7faf8;font-size:11px;line-height:1.2;color:#526d61}
#mivvn-teamchat .mtc-reaction-chip.is-mine{background:#e9f3ed;border-color:#b9d8c7;color:#2b7256}
#mivvn-teamchat .mtc-reaction-add{width:25px;height:24px;border-radius:50%;background:#fff;color:#889c90;font-size:15px;line-height:1}
#mivvn-teamchat .mtc-reaction-chip:hover,#mivvn-teamchat .mtc-reaction-add:hover,#mivvn-teamchat .mtc-reaction-option:hover{background:#edf3ee}
#mivvn-teamchat .mtc-reaction-picker{display:flex;gap:4px;flex-wrap:wrap;width:max-content;max-width:min(280px,80vw);padding:7px;border-radius:12px;border:1px solid #e2eae4;background:#fff;box-shadow:0 5px 16px #152e2515;z-index:5}
#mivvn-teamchat .mtc-reaction-picker[hidden]{display:none!important}
#mivvn-teamchat .mtc-reaction-option{width:31px;height:30px;border-radius:8px;background:#fff;font-size:17px}

/* A/B moderation polls. Neutral controls keep focus on the answer and disclosure. */
#mivvn-teamchat .mtc-poll-topbar{display:flex;justify-content:flex-end;flex:0 0 auto;padding:5px 12px;border-bottom:1px solid #edf1ef;background:#fafcfb}
#mivvn-teamchat .mtc-poll-topbar:has(#mtc-poll-create[hidden]){display:none}
#mivvn-teamchat #mtc-poll-create{border:1px solid #d6e6dd;background:#f1f7f3;color:#396e59;border-radius:8px;padding:5px 10px;font-size:11px;font-weight:700;cursor:pointer}
#mivvn-teamchat #mtc-poll-create[hidden]{display:none!important}
#mivvn-teamchat #mtc-poll-create:hover{background:#e9f2ec}
#mivvn-teamchat .mtc-poll-card{width:min(100%,330px);padding:12px;border:1px solid #dce9e2;background:#fbfdfb;border-radius:13px;display:flex;flex-direction:column;gap:7px;color:#345145}
#mivvn-teamchat .mtc-poll-head{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}
#mivvn-teamchat .mtc-poll-question{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-poll-state{flex-shrink:0;font-size:10px;background:#eaf4ed;color:#54806b;border-radius:7px;padding:4px 6px}
#mivvn-teamchat .mtc-poll-identity{margin:0;font-size:10.5px;color:#718479;line-height:1.6}
#mivvn-teamchat .mtc-poll-option{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:40px;width:100%;text-align:left;border:1px solid #dce7df;border-radius:9px;padding:8px 9px;cursor:pointer;background:#fff;color:#315749;box-shadow:none;isolation:isolate}
#mivvn-teamchat .mtc-poll-option:disabled{opacity:1;cursor:default}
#mivvn-teamchat .mtc-poll-option:not(:disabled):hover{border-color:#accfba;background:#f5faf6}
#mivvn-teamchat .mtc-poll-option.is-chosen{border-color:#79b596}
#mivvn-teamchat .mtc-poll-fill{position:absolute;inset:0 auto 0 0;z-index:-1;background:#e2f1e8;transition:width .25s ease}
#mivvn-teamchat .mtc-poll-option-label{font-weight:650;font-size:11px;overflow-wrap:anywhere;line-height:1.5}
#mivvn-teamchat .mtc-poll-score{font-size:10px;color:#47755c;white-space:nowrap}
#mivvn-teamchat .mtc-poll-voters{font-size:10px;color:#718679;padding:0 4px 3px;overflow-wrap:anywhere;line-height:1.5}
#mivvn-teamchat .mtc-poll-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#789084}
#mivvn-teamchat .mtc-poll-bottom small{font-size:10px}
#mivvn-teamchat .mtc-poll-close{border:0;border-radius:7px;padding:5px 9px;font-size:10px;background:#eef1ef;color:#556c60;cursor:pointer}
#mivvn-teamchat .mtc-poll-close:hover{background:#e3ece6}
#mivvn-teamchat .mtc-poll-overlay{position:absolute;inset:0;z-index:55;background:rgba(25,47,39,.35);display:flex;align-items:center;justify-content:center;padding:12px}
#mivvn-teamchat .mtc-poll-overlay[hidden]{display:none!important}
#mivvn-teamchat .mtc-poll-dialog{width:100%;max-width:400px;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:18px;background:#fff;border-radius:14px;box-shadow:0 16px 45px #1b392c2b;color:#294739}
#mivvn-teamchat .mtc-poll-dialog h3{font-size:15px;margin:0 0 3px}
#mivvn-teamchat .mtc-poll-dialog label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;color:#456456}
#mivvn-teamchat .mtc-poll-dialog input{width:100%;min-width:0;height:40px;border:1px solid #d9e5de;border-radius:9px;padding:9px 10px;font-size:12px;color:#274637;background:#fff}
#mivvn-teamchat .mtc-poll-form-note{font-size:11px;color:#a25154;min-height:13px}
#mivvn-teamchat .mtc-poll-form-buttons{display:flex;justify-content:flex-end;gap:7px}
#mivvn-teamchat .mtc-poll-form-buttons button{border:1px solid #dce6e0;border-radius:8px;padding:9px 13px;background:#f3f7f4;color:#4e6d5c;font-size:11px;cursor:pointer}
#mivvn-teamchat #mtc-poll-submit{background:#338270;border-color:#338270;color:white;font-weight:750}
#mivvn-teamchat #mtc-poll-submit:disabled{opacity:.6}
@media(max-width:720px){#mivvn-teamchat .mtc-poll-dialog{max-width:430px;max-height:calc(100dvh - 90px)}#mivvn-teamchat .mtc-poll-card{width:min(100%,360px)}}


/* Chat ergonomics: equal corner geometry; anchored top-right send control. */
@media(min-width:721px){
  #mivvn-teamchat:not(.is-collapsed):not(.is-gated){border-radius:24px!important}
  #mivvn-teamchat:not(.is-collapsed):not(.is-gated) .mtc-header{border-radius:23px 23px 0 0!important}
  #mivvn-teamchat:not(.is-collapsed):not(.is-gated) .mtc-body{border-radius:0 0 23px 23px;overflow:hidden}
}
#mivvn-teamchat .mtc-form{display:block;position:relative;padding:11px 11px 10px;min-height:65px}
#mivvn-teamchat .mtc-input{display:block;width:100%;min-width:0;padding:5px 48px 5px 7px;min-height:40px}
#mivvn-teamchat .mtc-send{position:absolute;top:11px;right:12px;width:36px;height:36px;margin:0;z-index:1}
#mivvn-teamchat .mtc-recruitment-attachment-head strong{font-weight:500!important;letter-spacing:0}
#mivvn-teamchat .mtc-recruitment-person{font-weight:400}
#mivvn-teamchat .mtc-recruitment-subtitle{font-weight:500}
/* Reaction picker overlays rather than consuming a row when the message has no reactions. */
#mivvn-teamchat .mtc-message-line{position:relative;overflow:visible}
#mivvn-teamchat .mtc-message-line .mtc-bubble{cursor:pointer;user-select:text;touch-action:pan-y}
#mivvn-teamchat .mtc-message-line .mtc-bubble:focus-visible{outline:2px solid #8599c7;outline-offset:2px}
#mivvn-teamchat .mtc-quick-reactions{display:none;position:absolute;top:calc(100% - 1px);left:0;z-index:30;align-items:center;gap:3px;padding:5px;border:1px solid #555964;background:#343640;border-radius:13px;box-shadow:0 8px 22px #10111566;white-space:nowrap}
#mivvn-teamchat .mtc-item.mine .mtc-quick-reactions{left:auto;right:0}
#mivvn-teamchat .mtc-quick-reactions .mtc-reaction-option{width:31px;height:30px;border:1px solid #51535e;border-radius:9px;background:#393c45;color:#fff;line-height:1.2;padding:0;font-size:18px}
#mivvn-teamchat .mtc-quick-reactions .mtc-reaction-option:hover{background:#494d59;border-color:#6c7080}
@media(hover:hover) and (min-width:721px){
  #mivvn-teamchat .mtc-message-line:not(.is-menu-open):hover .mtc-quick-reactions,
  #mivvn-teamchat .mtc-message-line:not(.is-menu-open):focus-within .mtc-quick-reactions{display:flex}
}
#mivvn-teamchat .mtc-message-line.is-reaction-open .mtc-quick-reactions{display:flex}
#mivvn-teamchat .mtc-context-menu{display:none;position:absolute;right:0;top:calc(100% - 1px);z-index:35;padding:5px;gap:3px;align-items:center;white-space:nowrap;background:#343640;border:1px solid #555964;border-radius:11px;box-shadow:0 10px 24px #0b0c1166}
#mivvn-teamchat .mtc-message-line.is-menu-open .mtc-context-menu{display:flex}
#mivvn-teamchat .mtc-context-menu button,#mivvn-teamchat .mtc-mobile-message-actions button{cursor:pointer;border:0;border-radius:8px;background:transparent;color:#eaebf3;font:inherit;font-size:11px;font-weight:500;padding:8px 10px;white-space:nowrap}
#mivvn-teamchat .mtc-context-menu button:hover,#mivvn-teamchat .mtc-mobile-message-actions button:hover{background:#464a55}
#mivvn-teamchat .mtc-mobile-message-actions{display:none}
#mivvn-teamchat .mtc-reactions{margin:1px 0 0;padding:0 2px;gap:4px;flex-wrap:wrap}
#mivvn-teamchat .mtc-reaction-chip{background:#363a44;border:1px solid #535867;color:#e6e8f2;font-size:11px;padding:3px 7px}
#mivvn-teamchat .mtc-reaction-chip.is-mine{background:#434d65;color:#eef1ff;border-color:#637aa9}
#mivvn-teamchat .mtc-reaction-chip:hover{background:#484e5a}
#mivvn-teamchat .mtc-bubble .mtc-reply-quote{display:flex;flex-direction:column;gap:3px;margin:0 0 7px;padding:6px 9px;background:#292b33;border-left:2px solid #8599ce;border-radius:6px;max-width:100%;white-space:normal}
#mivvn-teamchat .mtc-reply-quote strong{font-weight:600;font-size:11px;color:#b7c6ef}
#mivvn-teamchat .mtc-reply-quote span{font-size:11px;color:#c0c4d0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#mivvn-teamchat .mtc-reply-preview{display:flex;align-items:center;gap:8px;margin:0 4px 10px 4px;padding:6px 8px 6px 10px;border-left:2px solid #88a1de;background:#3d414b;border-radius:7px;color:#eaecf3}
#mivvn-teamchat .mtc-reply-preview[hidden]{display:none!important}
#mivvn-teamchat .mtc-reply-preview-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#mivvn-teamchat .mtc-reply-preview-text strong{font-size:11px;font-weight:600;color:#c3d0ee}
#mivvn-teamchat .mtc-reply-preview-text span{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#c2c5d0}
#mivvn-teamchat .mtc-reply-cancel{border:0;background:transparent;color:#d2d7e2;font-size:18px;cursor:pointer;flex:none;padding:3px 6px}
@media(max-width:720px){
  #mivvn-teamchat .mtc-message-line.is-reaction-open .mtc-quick-reactions{display:flex;flex-wrap:wrap;max-width:min(285px,calc(100vw - 35px));white-space:normal}
  #mivvn-teamchat .mtc-quick-reactions .mtc-reaction-option{width:32px;height:32px}
  #mivvn-teamchat .mtc-mobile-message-actions{display:flex;gap:3px;align-items:center;flex-basis:100%;border-top:1px solid #4d505b;padding-top:3px}
  #mivvn-teamchat .mtc-context-menu{display:none!important}
  #mivvn-teamchat .mtc-form{min-height:62px}
}

/* Keep controls reachable beside the last visible message. */
#mivvn-teamchat .mtc-message-line.mtc-overlay-upward .mtc-quick-reactions,
#mivvn-teamchat .mtc-message-line.mtc-overlay-upward .mtc-context-menu{
  top:auto;bottom:calc(100% - 1px);
}
/* Poll composer inherits the same dark surface as the decision channel. */
#mivvn-teamchat .mtc-poll-topbar{background:#292b31;border-color:#3b3d46}
#mivvn-teamchat #mtc-poll-create{background:#343842;border-color:#545b67;color:#dfe5f1}
#mivvn-teamchat #mtc-poll-create:hover{background:#3d424d}

/* 2026-11-15: distinct minimize/close actions and decision request composer. */
@media (min-width:721px){
  #mivvn-teamchat.is-staff-space #mtc-close{display:inline-flex!important}
  #mivvn-teamchat.is-collapsed #mtc-minimize{display:inline-flex!important}
  #mivvn-teamchat .mtc-header .mtc-room-wrap{max-width:43%;flex-basis:145px}
}
#mivvn-teamchat .mtc-minimize,#mivvn-teamchat .mtc-close-window{width:28px;height:28px;padding:5px}
#mivvn-teamchat .mtc-minimize svg,#mivvn-teamchat .mtc-close-window svg{width:17px;height:17px}
#mivvn-teamchat .mtc-form{position:relative}
#mivvn-teamchat .mtc-request-wrap{position:relative;grid-column:1;grid-row:2;place-self:end start;z-index:22}
#mivvn-teamchat .mtc-request-wrap[hidden],#mivvn-teamchat .mtc-request-menu[hidden],#mivvn-teamchat .mtc-request-overlay[hidden],#mivvn-teamchat .mtc-request-field[hidden]{display:none!important}
#mivvn-teamchat .mtc-request-trigger{display:grid;place-items:center;width:35px;height:35px;border:1px solid #606470;border-radius:50%;background:#3d414a;color:#e9edf6;font:inherit;font-size:25px;line-height:1;cursor:pointer;padding:0;transition:background-color .15s}
#mivvn-teamchat .mtc-request-trigger:hover,#mivvn-teamchat .mtc-request-trigger[aria-expanded=true]{background:#4b505b}
#mivvn-teamchat .mtc-request-menu{position:absolute;bottom:calc(100% + 9px);left:0;min-width:168px;max-width:min(230px,80vw);display:flex;flex-direction:column;gap:2px;background:#34363f;color:#eceef4;border:1px solid #5a5e6c;border-radius:12px;padding:5px;box-shadow:0 12px 24px rgba(0,0,0,.4);z-index:95}
#mivvn-teamchat .mtc-request-menu button{display:block;text-align:left;width:100%;padding:10px 12px;background:transparent;border:0;border-radius:8px;color:#e8eaf1;font:inherit;font-size:12px;font-weight:500;cursor:pointer}
#mivvn-teamchat .mtc-request-menu button:hover{background:#454a56}
#mivvn-teamchat .mtc-request-menu button[hidden]{display:none!important}
#mivvn-teamchat .mtc-request-overlay{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(8,9,13,.77);overflow-y:auto}
#mivvn-teamchat .mtc-request-dialog{display:flex;flex-direction:column;gap:12px;width:min(100%,370px);max-height:100%;overflow-y:auto;padding:19px;border:1px solid #565d6b;border-radius:16px;background:#30333c;color:#edf0f7;box-shadow:0 16px 40px rgba(0,0,0,.34)}
#mivvn-teamchat .mtc-request-dialog h3{margin:0;font-size:16px;font-weight:650}
#mivvn-teamchat .mtc-request-help{margin:0;color:#bac2d0;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-request-field{display:flex;flex-direction:column;gap:7px;color:#dbe0eb;font-size:12px;font-weight:600}
#mivvn-teamchat .mtc-request-field select,#mivvn-teamchat .mtc-request-field input,#mivvn-teamchat .mtc-request-field textarea{width:100%;min-width:0;padding:10px 11px;background:#262a32;color:#edf1f7;border:1px solid #5b6271;border-radius:9px;outline:none;font:inherit;font-size:13px;font-weight:400;line-height:1.45}
#mivvn-teamchat .mtc-request-field :is(select,input,textarea):focus{border-color:#91a8db}
#mivvn-teamchat .mtc-request-field textarea{resize:vertical;min-height:65px}
#mivvn-teamchat .mtc-request-feedback{margin:0;color:#f0b5b1;font-size:11px;line-height:1.5;min-height:0}
#mivvn-teamchat .mtc-request-actions{display:flex;gap:8px;justify-content:flex-end}
#mivvn-teamchat .mtc-request-actions button{padding:9px 14px;border:1px solid #646b7b;border-radius:9px;background:#434753;color:#edf0f7;font:inherit;font-size:12px;cursor:pointer}
#mivvn-teamchat .mtc-request-actions button[type=submit]{background:#506aa4;border-color:#5f79b6}
#mivvn-teamchat .mtc-request-actions button:disabled{opacity:.5;cursor:default}
#mivvn-teamchat .mtc-recruitment-preview-notice{margin:8px 0;font-size:11px;line-height:1.55;color:#b8c9e9;background:#333c50;border-radius:8px;padding:8px}
@media(max-width:720px){
  #mivvn-teamchat:not(.is-mobile-closed) #mtc-close,#mivvn-teamchat:not(.is-mobile-closed) #mtc-minimize{display:inline-flex!important}
  #mivvn-teamchat.is-mobile-closed #mtc-close,#mivvn-teamchat.is-mobile-closed #mtc-minimize{display:none!important}
  #mivvn-teamchat .mtc-header .mtc-room-wrap{max-width:38%;min-width:72px}
  #mivvn-teamchat .mtc-request-overlay{align-items:center;padding:14px}
}
#mivvn-teamchat .mtc-request-success-toast{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:130;max-width:calc(100% - 32px);padding:11px 17px;border-radius:12px;background:#3e4654;color:#f3f6fc;border:1px solid #68758b;font:inherit;font-size:12px;font-weight:550;line-height:1.5;text-align:center;box-shadow:0 8px 22px rgba(0,0,0,.35);pointer-events:none}

/* 2026-11-15: per-channel staff counts and responsive inline recruitment expansion. */
#mivvn-teamchat .mtc-item.mine{align-items:flex-end;align-self:stretch}
#mivvn-teamchat .mtc-item:not(.mine){align-items:flex-start;align-self:stretch}
#mivvn-teamchat .mtc-item.mine .mtc-message-line{margin-left:auto;align-self:flex-end;justify-content:flex-end}
#mivvn-teamchat .mtc-item:not(.mine) .mtc-message-line{margin-right:auto;align-self:flex-start;justify-content:flex-start}
#mivvn-teamchat .mtc-item .mtc-recruitment-attachment{
  width:100%;max-width:100%;min-width:0;align-self:stretch;
  margin-top:7px;container-type:inline-size;
}
#mivvn-teamchat .mtc-recruitment-attachment-head{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:8px;padding:11px 12px;
}
#mivvn-teamchat .mtc-recruitment-attachment-head strong{min-width:0;line-height:1.5;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-recruitment-attachment-head button{white-space:nowrap;flex:none;font-size:11px}
#mivvn-teamchat .mtc-recruitment-attachment.is-expanded .mtc-recruitment-attachment-head{
  border-bottom:1px solid #4a4f5c;
}
#mivvn-teamchat .mtc-recruitment-attachment.is-expanded .mtc-recruitment-details{border-top:0}
#mivvn-teamchat .mtc-recruitment-details{max-width:100%;overflow-wrap:anywhere}
#mivvn-teamchat .mtc-recruitment-details .mtc-recruitment-choices{flex-wrap:wrap}
#mivvn-teamchat .mtc-recruitment-details .mtc-recruitment-choices button{min-width:95px}
@container (max-width:285px){
  #mivvn-teamchat .mtc-recruitment-attachment-head{grid-template-columns:minmax(0,1fr);gap:7px}
  #mivvn-teamchat .mtc-recruitment-attachment-head button{justify-self:start}
  #mivvn-teamchat .mtc-recruitment-details{padding:10px}
}

/* Team-chat header spacing and recruitment card interaction. */
#mivvn-teamchat .mtc-header .mtc-title{padding-left:10px;box-sizing:border-box}
#mivvn-teamchat .mtc-recruitment-attachment-head{cursor:pointer;user-select:none}
#mivvn-teamchat .mtc-recruitment-attachment-head:focus-visible{outline:2px solid #8da3d7;outline-offset:-2px;border-radius:10px}
#mivvn-teamchat .mtc-recruitment-attachment-head button{min-width:97px}
@media(max-width:720px){#mivvn-teamchat .mtc-header .mtc-title{padding-left:7px}}

/* Role request launcher: aligned inside the input container rather than consuming a separate row. */
#mivvn-teamchat .mtc-form:has(.mtc-request-wrap:not([hidden])) .mtc-input{padding-left:46px!important}
#mivvn-teamchat .mtc-request-wrap:not([hidden]){position:absolute!important;left:12px;top:13px;z-index:45;display:block!important;grid-column:auto;grid-row:auto}
#mivvn-teamchat .mtc-request-trigger{width:33px;height:33px;font-size:22px;border-color:#656b78;background:#414650}
#mivvn-teamchat .mtc-request-menu{bottom:calc(100% + 8px)}

/* Compact unread viewer, visible only after the numeric badge is pressed. */
#mivvn-teamchat .mtc-read-wrap{display:inline-flex;align-items:flex-end;position:relative;flex:none;z-index:8}
#mivvn-teamchat .mtc-read-count{border:0;background:transparent;padding:2px 4px;cursor:pointer;font:inherit;color:#d7ae67;font-weight:650;font-size:10px;line-height:1.4;border-radius:5px}
#mivvn-teamchat .mtc-read-count:hover,#mivvn-teamchat .mtc-read-count[aria-expanded="true"]{background:#46464f}
#mivvn-teamchat .mtc-read-popover{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);width:max-content;max-width:min(255px,75vw);padding:10px 12px;background:#292b33;border:1px solid #555864;color:#edf0f7;border-radius:10px;box-shadow:0 8px 26px #0006;line-height:1.55;white-space:normal;z-index:50;text-align:left}
#mivvn-teamchat .mtc-read-popover[hidden]{display:none!important}
#mivvn-teamchat .mtc-read-popover strong{display:block;font-size:11px;font-weight:650;margin-bottom:4px}
#mivvn-teamchat .mtc-read-people{display:block;font-size:11px;color:#cbd1df;overflow-wrap:anywhere}
/* Pinned decision card stays above the message composer while voting is pending. */
#mivvn-teamchat .mtc-pinned-recruitments{flex:0 1 auto;max-height:57%;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px 12px;background:#2b2e37;border-top:1px solid #505460}
#mivvn-teamchat .mtc-pinned-recruitments[hidden]{display:none!important}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment{width:100%!important;max-width:100%!important;margin:0 0 5px!important}
#mivvn-teamchat .mtc-recruitment-attachment-head{flex-wrap:nowrap!important}
#mivvn-teamchat .mtc-recruitment-attachment-head button{border:0!important;min-width:24px!important;width:26px!important;height:26px!important;padding:0!important;background:transparent!important;font-size:19px!important;font-weight:400!important;line-height:1!important}
#mivvn-teamchat .mtc-recruitment-attachment-head button:hover{background:#414651!important}
@media(max-width:720px){#mivvn-teamchat .mtc-pinned-recruitments{max-height:52%}}

/* 2026-11-15: floating glass recruitment card, without the solid pinned strip. */
#mivvn-teamchat .mtc-pinned-recruitments{
  flex:0 1 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:57%;
  min-height:0;
  padding:12px 14px 10px;
  overflow-x:hidden;
  overflow-y:auto;
  background:transparent;
  border:0;
  box-shadow:none;
  scrollbar-width:thin;
  scrollbar-color:#666b78 transparent;
}
#mivvn-teamchat .mtc-pinned-recruitments[hidden]{display:none!important}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment{
  box-sizing:border-box;
  flex:0 0 auto;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  overflow:hidden;
  color:#e9ecf5;
  background:linear-gradient(145deg,rgba(88,94,110,.65),rgba(57,62,75,.72));
  border:1px solid rgba(204,214,236,.25);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(8,10,18,.26),inset 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(16px) saturate(115%);
  backdrop-filter:blur(16px) saturate(115%);
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head{
  padding:14px 15px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 22px;
  gap:9px;
  min-height:54px;
  align-items:center;
  background:transparent;
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head strong{
  font-size:13px;
  font-weight:500!important;
  line-height:1.5;
  color:#f2f4fa;
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:22px!important;
  width:22px!important;
  height:22px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:6px;
  color:#c7cfdf;
  box-shadow:none!important;
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head button svg{
  display:block;width:17px;height:17px;stroke:currentColor;fill:none;
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head button:hover{color:#fff;background:rgba(255,255,255,.06)!important}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment.is-expanded .mtc-recruitment-attachment-head{
  border-bottom:1px solid rgba(214,224,242,.15);
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-details{
  padding:12px 15px 15px;
  background:transparent;
  border:0;
}
@media(max-width:720px){
  #mivvn-teamchat .mtc-pinned-recruitments{max-height:52%;padding:10px 11px 9px}
  #mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head{padding:12px 13px}
}

/* 2026-11-15: recruitment documents anchor above chat history and expand downward. */
#mivvn-teamchat .mtc-pinned-recruitments{
  order:0; flex:0 1 auto; max-height:calc(100% - 105px);
  padding-top:12px; padding-bottom:11px; overflow-y:auto;
}
#mivvn-teamchat .mtc-history{order:1;flex:1 1 auto;min-height:42px}
#mivvn-teamchat .mtc-form{order:2}
#mivvn-teamchat .mtc-note{order:3}
#mivvn-teamchat .mtc-pinned-recruitments:has(.mtc-recruitment-attachment.is-expanded){
  flex:1 1 78%; max-height:78%; min-height:0;
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head{
  grid-template-columns:minmax(0,1fr) 22px;
}
#mivvn-teamchat .mtc-recruitment-label-group{min-width:0;display:flex;flex-direction:column;gap:5px}
#mivvn-teamchat .mtc-recruitment-eyebrow{font-size:10px;line-height:1.2;letter-spacing:.02em;color:#b7bfd1;font-weight:500}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head strong{display:block;min-width:0}
#mivvn-teamchat .mtc-recruitment-choice-divider{border-top:1px solid rgba(203,211,226,.24);margin:16px 0 12px}
#mivvn-teamchat .mtc-recruitment-choice-divider + .mtc-recruitment-subtitle{margin-top:0}
@media(max-width:720px){
 #mivvn-teamchat .mtc-pinned-recruitments:has(.mtc-recruitment-attachment.is-expanded){max-height:76%}
}

/* 2026-11-15: recruitment expanded panel uses the full space above composer.
   Previous 78% cap left an empty, scroll-clipped history strip. */
#mivvn-teamchat .mtc-pinned-recruitments:has(.mtc-recruitment-attachment.is-expanded){
  flex:1 1 0!important;
  max-height:none!important;
  min-height:0!important;
  overflow-y:auto;
  overflow-x:hidden;
  padding-top:12px;
  padding-bottom:12px;
}
#mivvn-teamchat .mtc-body:has(.mtc-pinned-recruitments .mtc-recruitment-attachment.is-expanded) .mtc-history{
  flex:0 0 0px!important;
  min-height:0!important;
  height:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:hidden!important;
  gap:0;
}
/* Focus ring follows the card radius; no squared header ring is clipped by overflow:hidden. */
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment-head:focus-visible{
  outline:none!important;
  border-radius:0!important;
}
#mivvn-teamchat .mtc-pinned-recruitments .mtc-recruitment-attachment:has(.mtc-recruitment-attachment-head:focus-visible){
  border-color:#8da3d7;
  box-shadow:0 0 0 1px #8da3d7, 0 10px 28px rgba(8,10,18,.26);
}
@media(max-width:720px){
 #mivvn-teamchat .mtc-pinned-recruitments:has(.mtc-recruitment-attachment.is-expanded){max-height:none!important}
}

/* Inline participant roster triggers, one per channel, with read-only drop-down. */
#mivvn-teamchat .mtc-channel-tabs{position:relative;z-index:25;overflow:visible;gap:7px}
#mivvn-teamchat .mtc-channel-group{display:flex;position:relative;flex:1 1 0;min-width:0;align-items:center;gap:5px}
#mivvn-teamchat .mtc-channel-group[hidden]{display:none!important}
#mivvn-teamchat .mtc-channel-group .mtc-channel-tab{flex:1 1 auto;min-width:0;padding:0 4px;white-space:nowrap}
#mivvn-teamchat .mtc-channel-members{display:grid;place-items:center;flex:0 0 30px;width:30px;height:34px;padding:6px;border:1px solid transparent;border-radius:9px;background:transparent;color:#aeb1bd;cursor:pointer;transition:background-color .15s ease,color .15s ease}
#mivvn-teamchat .mtc-channel-members:hover,#mivvn-teamchat .mtc-channel-members[aria-expanded="true"]{background:#3b3e47;color:#eef0f7}
#mivvn-teamchat .mtc-channel-members:focus-visible{outline:2px solid #8d9fd1;outline-offset:1px}
#mivvn-teamchat .mtc-channel-members svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#mivvn-teamchat .mtc-channel-members-menu:not([hidden]){display:flex;position:absolute;top:calc(100% + 9px);left:0;z-index:35;width:max(210px,100%);max-width:min(290px,calc(100vw - 54px));max-height:min(340px,55vh);overflow-y:auto;flex-direction:column;gap:3px;padding:8px;border:1px solid #545865;border-radius:14px;background:#30323a;box-shadow:0 14px 34px rgba(8,9,14,.42);color:#eef0f6}
#mivvn-teamchat #mtc-decision-members-menu{left:auto;right:0}
#mivvn-teamchat .mtc-channel-members-heading{padding:8px 8px 9px;font-size:11px;color:#b7bdcd;font-weight:650;border-bottom:1px solid #4a4d59;margin-bottom:3px}
#mivvn-teamchat .mtc-channel-member-entry{display:flex;align-items:center;gap:10px;min-height:36px;padding:4px 7px;font-size:12px;color:#eef0f6;cursor:default;user-select:text}
#mivvn-teamchat .mtc-channel-member-avatar{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:50%;background:#444957;color:#d9e4ff;font-size:11px;font-weight:700}
#mivvn-teamchat .mtc-channel-member-order{margin-left:auto;font-size:10px;color:#9096a5;font-variant-numeric:tabular-nums}
#mivvn-teamchat .mtc-channel-member-empty{font-size:12px;color:#b1b5c1;padding:11px 8px}
@media(max-width:460px){#mivvn-teamchat .mtc-channel-tabs{gap:4px;padding-inline:7px}#mivvn-teamchat .mtc-channel-group{gap:2px}#mivvn-teamchat .mtc-channel-members{width:26px;flex-basis:26px;padding:4px}#mivvn-teamchat .mtc-channel-group .mtc-channel-tab{font-size:11px}}
