/* =========================================================
   WAHAI v6.8 - Classic UI Integration
   Visual baseline: Pusat_Wangsaf_Percakapan_01-08-2026
   Functional baseline: v6.7 Delivery & Recovery
   ========================================================= */
:root{
  --navy:#122e76;
  --navy2:#0b1f55;
  --navy-2:#0b1f55;
  --yellow:#f7cb2d;
  --ink:#172033;
  --muted:#697386;
  --line:#e7eaf0;
  --bg:#f4f6fa;
  --panel:#fff;
  --green:#14804a;
  --blue:#335db8;
  --red:#c83232;
  --amber:#b17c00;
  --purple:#6e44c8;
  --shadow:0 18px 50px rgba(18,46,118,.09);
  --radius:22px;
  --sidebar:260px;
  --top:88px;
}
html,body{background:var(--bg);color:var(--ink)}
body{letter-spacing:-.01em}
.overline,.eyebrow{margin:0 0 7px;font-size:11px;letter-spacing:.17em;font-weight:900;color:var(--navy)}
.overline.light,.eyebrow.light{color:#d8e4ff}
.muted{color:var(--muted)}

/* Buttons - classic visual grammar */
.btn{border-radius:12px;font-weight:850;transition:.18s transform,.18s background,.18s box-shadow}
.btn.primary{background:var(--navy);color:#fff}
.btn.primary:hover{background:#0b245f;transform:translateY(-1px);box-shadow:0 10px 24px rgba(18,46,118,.2)}
.btn.secondary{background:#eef3ff;color:var(--navy)}
.btn.secondary:hover{background:#dfe8ff}
.btn.subtle{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn.light,.hero-primary{background:var(--yellow)!important;color:var(--navy)!important}
.hero-secondary{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.19)!important;color:#fff!important}
.text-btn{color:var(--navy)}
.icon-btn.bordered{background:#fff;border:1px solid var(--line)}

/* Login - restores the preferred classic composition */
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);background:radial-gradient(circle at 20% 15%,rgba(247,203,45,.24),transparent 30%),linear-gradient(135deg,var(--navy2),var(--navy) 58%,#214aa9)}
.login-brand{padding:8vw;display:flex;flex-direction:column;justify-content:center;color:#fff;position:relative;overflow:hidden}
.login-brand:after{content:"WA";position:absolute;right:-30px;bottom:-95px;font-size:300px;font-weight:1000;color:rgba(255,255,255,.035);line-height:1}
.brand-mark{width:78px;height:78px;border-radius:24px;background:#fff;display:grid;place-items:center;margin-bottom:26px;box-shadow:0 18px 50px rgba(0,0,0,.2)}
.brand-mark img{width:58px;height:58px;object-fit:contain}
.login-brand h1{font-size:clamp(48px,6vw,84px);line-height:.96;margin:0 0 24px;letter-spacing:-.065em;max-width:690px}
.login-brand h1 span{color:var(--yellow)}
.login-brand .eyebrow{color:#d8e4ff}
.login-copy{font-size:18px;line-height:1.75;color:#dbe5ff;max-width:650px;margin:0}
.login-points{display:flex;gap:12px;margin-top:42px;flex-wrap:wrap}
.login-points div{min-width:140px;padding:16px 20px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.07);backdrop-filter:blur(12px)}
.login-points b{display:block;font-size:16px}.login-points span{font-size:11px;color:#c8d7ff}
.login-panel-classic{display:grid;place-items:center;background:#fff;min-width:0}
.login-card{background:#fff;margin:auto;width:min(430px,calc(100% - 40px));padding:44px;border:0;border-radius:28px;box-shadow:0 30px 80px rgba(0,0,0,.22)}
.login-card h2{font-size:32px;margin:0 0 8px}.login-card>p.muted{margin:0 0 28px;line-height:1.6}
.login-card label{font-weight:800;font-size:13px;margin-bottom:18px}
.login-card input{border-radius:13px;padding:13px 14px}
.password-wrap{display:flex;position:relative}.password-wrap input{padding-right:48px}.password-wrap .classic-eye{position:absolute;right:6px;top:6px}
.login-note{text-align:center;color:var(--muted);font-size:11px;margin:20px 0 0}

/* Sidebar - removes dashboard-like section headers and restores simple nav */
.sidebar{width:260px;background:var(--navy2);padding:22px 16px;color:#fff}
.sidebar-brand{display:flex;align-items:center;gap:12px;padding:5px 8px 24px;border-bottom:1px solid rgba(255,255,255,.1)}
.sidebar-brand img{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:13px;padding:4px}
.sidebar-brand b,.sidebar-brand span{display:block}.sidebar-brand b{font-size:16px}.sidebar-brand span{font-size:11px;color:#aebfe8;margin-top:3px}
.main-nav{display:grid;gap:5px;padding:20px 0;overflow:auto}
.main-nav>p{display:none!important}
.main-nav button{height:auto;min-height:44px;border:0;background:transparent;color:#c4d1ef;text-align:left;padding:12px 13px;border-radius:12px;font-weight:750;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:12px}
.main-nav button:hover,.main-nav button.active{background:rgba(255,255,255,.1);color:#fff}
.main-nav button.active{box-shadow:inset 3px 0 var(--yellow)}
.main-nav button b{font-size:12px;font-weight:750}.nav-icon{width:22px;text-align:center;font-size:18px}
.sidebar-foot{margin-top:auto;display:grid;gap:9px}.service-chip{display:flex;gap:10px;align-items:center;padding:11px 12px;background:rgba(255,255,255,.07);border-radius:13px;min-width:0}.service-chip b,.service-chip small{display:block}.service-chip b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.service-chip small{color:#aebfe8;font-size:9px}.realtime-service>i{width:9px;height:9px;border-radius:50%;background:#d99820;box-shadow:0 0 0 4px rgba(217,152,32,.12)}.realtime-service>i.online{background:#32d27f;box-shadow:0 0 0 5px rgba(50,210,127,.12)}
.sidebar .btn.subtle{background:rgba(255,255,255,.04);color:#fff;border-color:rgba(255,255,255,.12)}

/* Main chrome */
.main-area{margin-left:260px;min-height:100vh}.topbar{height:88px;padding:0 30px;background:rgba(244,246,250,.9);backdrop-filter:blur(12px);border-bottom:1px solid rgba(222,226,235,.8)}
.topbar-title{flex:1}.topbar .eyebrow{margin:0 0 4px}.topbar h1{font-size:25px;margin:0}.menu-button{display:none;border:1px solid var(--line);background:#fff;width:40px;height:40px;border-radius:11px}
.topbar-actions{gap:10px}.time-chip{font-size:12px;font-weight:800;color:var(--muted);padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:11px}.user-chip{display:flex;align-items:center;gap:10px;padding-left:10px}.user-chip>div:last-child{display:grid}.user-chip b{font-size:12px}.user-chip span{font-size:9px;color:var(--muted);letter-spacing:.08em;font-weight:800}.avatar{background:var(--yellow);color:var(--navy);border-radius:12px}
.content{padding:28px;max-width:1600px;margin:auto}.view.active{animation:classicFade .14s ease}@keyframes classicFade{from{opacity:.4;transform:translateY(2px)}}

/* Dashboard */
.hero-panel{min-height:290px;padding:40px 46px;border-radius:28px;background:linear-gradient(120deg,#0b245f,#173b91);color:#fff;display:grid;grid-template-columns:1.2fr .8fr;overflow:hidden;position:relative;box-shadow:var(--shadow)}
.hero-panel:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(247,203,45,.28),transparent 68%);right:-100px;top:-200px}
.hero-copy{position:relative;z-index:2}.hero-panel h2{font-size:clamp(32px,4vw,56px);letter-spacing:-.055em;line-height:1.03;margin:0 0 16px;max-width:700px}.hero-panel p:not(.eyebrow){color:#d5e1ff;max-width:650px;line-height:1.7}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.hero-live-line{margin-top:20px;display:flex;align-items:center;gap:11px;width:max-content;max-width:100%;padding:10px 13px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.06);border-radius:13px}.hero-live-line span{display:grid}.hero-live-line b{font-size:11px}.hero-live-line small{font-size:9px;color:#bfd0ed;margin-top:2px}
.hero-visual{display:grid;place-items:center;position:relative;z-index:2}.phone{width:245px;border:8px solid rgba(255,255,255,.25);background:#e5ddd5;border-radius:34px;padding:15px;transform:rotate(4deg);box-shadow:0 30px 60px rgba(0,0,0,.25)}.phone-head{margin:-15px -15px 15px;padding:16px;background:#075e54;color:#fff;border-radius:26px 26px 0 0;display:flex;gap:8px;align-items:center}.phone-head span{width:28px;height:28px;border-radius:50%;background:#fff}.phone-head i{margin-left:auto}.bubble{font-size:11px;line-height:1.45;padding:9px 10px;border-radius:10px;margin:10px 0;box-shadow:0 1px 2px rgba(0,0,0,.12);color:#172033}.bubble.left{background:#fff;margin-right:25px}.bubble.right{background:#dcf8c6;margin-left:30px}.phone-status{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:14px}.phone-status span{background:rgba(255,255,255,.86);border-radius:10px;padding:8px;color:#607069;font-size:8px;text-align:center}.phone-status b{display:block;color:#075e54;font-size:16px}.phone-input{margin-top:10px;background:#fff;color:#8a8a8a;border-radius:20px;padding:10px;font-size:10px}.phone-input b{float:right;color:#075e54}
.stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:20px 0}.stat-grid article{background:#fff;border:1px solid var(--line);padding:19px 15px;border-radius:18px;display:flex;gap:11px;align-items:center;box-shadow:0 6px 20px rgba(18,46,118,.04);min-width:0}.stat-grid article.clickable-stat{cursor:pointer}.stat-grid article.clickable-stat:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(18,46,118,.08)}.stat-grid p,.stat-grid small{margin:0;color:var(--muted)}.stat-grid p{font-size:10px;font-weight:800}.stat-grid b{font-size:27px;display:block;margin:2px 0}.stat-grid small{font-size:8px}.stat-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:950;flex:0 0 42px}.stat-icon.blue{background:#eaf0ff;color:#335db8}.stat-icon.green{background:#e8f8ef;color:#17854f}.stat-icon.red{background:#fff0f0;color:#c83232}.stat-icon.yellow{background:#fff8d9;color:#9c7900}.stat-icon.purple{background:#f1ebff;color:#6e44c8}.stat-icon.orange{background:#fff1e8;color:#c45c16}
.two-column{display:grid;grid-template-columns:1.4fr .8fr;gap:18px}.workflow{list-style:none;padding:0;margin:0;display:grid;gap:3px}.workflow li{display:grid;grid-template-columns:34px 1fr;gap:11px;padding:12px 0;border-top:1px solid var(--line)}.workflow li:first-child{border-top:0}.workflow li>b{width:32px;height:32px;border-radius:10px;background:#eef3ff;color:var(--navy);display:grid;place-items:center;font-size:11px}.workflow strong,.workflow span{display:block}.workflow strong{font-size:11px}.workflow span{font-size:9px;color:var(--muted);margin-top:3px;line-height:1.45}

/* Panels / cards */
.panel{border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 8px 28px rgba(18,46,118,.045)}.panel-head h2,.panel-head h3{font-size:19px}.panel-head p{color:var(--muted)}.section-intro{margin-bottom:18px}.section-intro h2{margin:4px 0 5px}.count-badge{background:#eef3ff;color:var(--navy)}
.entity-card,.template-card,.user-card,.health-card{border-radius:16px;border-color:var(--line);box-shadow:0 5px 18px rgba(18,46,118,.035)}
.search-box{background:#f7f8fb;border-color:var(--line)}
.filter-tabs button{background:#f4f6fa;color:#697386}.filter-tabs button.active{background:#eef3ff;color:var(--navy)}
.segmented{background:#f4f6fa;border-radius:13px}.segmented button.active{background:#fff;color:var(--navy);box-shadow:0 3px 12px rgba(18,46,118,.08)}
.choice-card,.recipient-item{border-color:var(--line);border-radius:12px}.choice-card:has(input:checked),.recipient-item.selected{border-color:#8ba4de;background:#f6f8ff}

/* Compose - retain v6.7 media/location capability, but classic card feel */
.compose-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px}.compose-form{box-shadow:0 8px 28px rgba(18,46,118,.045)}.form-section{border-color:var(--line)}.form-section-title>span{background:#eef3ff;color:var(--navy)}.preview-panel{top:110px}.phone-preview{border-radius:20px;border:1px solid var(--line);overflow:hidden}.phone-top{background:#075e54}.phone-wall{background-color:#e5ddd5}.preview-message{background:#dcf8c6}

/* Queue */
.table-wrap{border:1px solid var(--line);border-radius:15px}.data-table th,.queue-table th{background:#f7f8fb;color:#596476}.status-pill{font-weight:900}.status-queued,.status-retry,.status-sending,.status-scheduled,.status-pending_dispatch{background:#fff7d6;color:#846500}.status-sent{background:#e8f8ef;color:#16784a}.status-failed,.status-cancelled{background:#fff0f0;color:#b32d2d}

/* Inbox - visually returns to the old WhatsApp-like workspace while keeping v6.7 controls */
.inbox-view{margin:0}.inbox-shell{height:calc(100vh - 144px);min-height:590px;display:grid;grid-template-columns:360px minmax(0,1fr) 290px;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 8px 28px rgba(18,46,118,.045)}
.inbox-list-pane{border-right:1px solid var(--line);background:#fff}.inbox-pane-head{height:auto;min-height:72px;padding:16px 16px 9px}.inbox-pane-head h2{font-size:19px}.conversation-list{border-top:1px solid #f4f5f8}.conversation-item{border-top:0;border-bottom:1px solid var(--line);padding:13px 14px;grid-template-columns:44px 1fr auto}.conversation-item:hover,.conversation-item.active{background:#f2f6ff}.conversation-item.unread{background:#f6f9ff}.conversation-avatar{width:44px;height:44px;border-radius:15px;background:#e8f8ef;color:#147748}.conversation-item.unread .conversation-avatar{background:#eaf0ff;color:#335db8}.unread-count{background:#16a34a}.conversation-main{background:#efeae2}.conversation-empty{color:#647087}.empty-orbit{border-radius:24px;background:#fff;color:var(--navy)}.conversation-header{height:68px;background:#fff}.conversation-title b{font-size:12px}.conversation-messages{background-color:#efeae2;background-image:radial-gradient(rgba(0,0,0,.035) 1px,transparent 1px);background-size:14px 14px;padding:22px}.message-bubble{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12);border-radius:12px 12px 12px 3px}.message-row.out .message-bubble{background:#d9fdd3;border-radius:12px 12px 3px 12px}.message-status.read{color:#16804a}.reply-composer{background:#fff;padding:12px 14px}.reply-composer textarea{border-radius:13px;min-height:58px}.contact-detail-pane{border-left:1px solid var(--line);background:#fff;padding:20px 16px}.detail-callout{background:#f2f6ff;border-color:#dce7ff}.helpdesk-section{border-color:var(--line)}.thread-jump-bottom{border-color:#d8e0e9;color:var(--navy)}.unread-divider{color:var(--navy)}.unread-divider span{background:#eef3ff;border-color:#d6e3ff}

/* Native group workspace harmonization */
.native-group-manager,.group-workspace,.group-chat-card,.group-helpdesk-card{border-radius:16px;border-color:var(--line)}.group-chat-messages{background-color:#efeae2;background-image:radial-gradient(rgba(0,0,0,.035) 1px,transparent 1px);background-size:14px 14px}.group-message-bubble{background:#fff}.group-message-row.out .group-message-bubble{background:#d9fdd3}.group-workspace-tabs button.active{color:var(--navy);border-color:var(--navy)}

/* System / performance */
.system-grid,.health-grid{gap:14px}.health-card{background:#fff}.architecture span{background:#eef3ff;color:var(--navy);border-color:#dae4ff}.performance-bar i{color:var(--navy);background:var(--navy)}.role-strip span{background:#f7f8fb;border-color:var(--line)}

/* Dialogs */
dialog .dialog-card{border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.2)}.ux-dialog::backdrop,dialog::backdrop{background:rgba(5,15,30,.48);backdrop-filter:blur(3px)}

/* Mobile keeps the simple classic hierarchy, while preserving bottom shortcuts */
.mobile-bottom-nav{border-top-color:var(--line);box-shadow:0 -8px 28px rgba(18,46,118,.06)}.mobile-bottom-nav button.active{color:var(--navy)}
@media(max-width:1280px){.stat-grid{grid-template-columns:repeat(3,1fr)}.inbox-shell{grid-template-columns:330px minmax(0,1fr)}.contact-detail-pane{display:none}.two-column{grid-template-columns:1fr}.compose-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1000px){.compose-layout{grid-template-columns:1fr}.preview-panel{position:static}.stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){:root{--sidebar:270px;--top:76px}.sidebar{width:270px;transform:translateX(-105%);transition:.2s transform;box-shadow:20px 0 50px rgba(0,0,0,.25)}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0;padding-bottom:66px}.menu-button{display:grid;place-items:center;flex:0 0 40px}.topbar{height:76px;padding:0 18px;gap:12px}.content{padding:18px}.hero-panel{grid-template-columns:1fr}.hero-visual{display:none}.inbox-shell{height:calc(100vh - 160px);grid-template-columns:1fr;border-radius:18px}.conversation-main{position:absolute;inset:0;z-index:20;display:none}.conversation-main.mobile-open{display:flex}.inbox-shell{position:relative}.conversation-back{display:grid}.topbar-actions .time-chip{display:none}.top-logout{display:none}.user-chip>div:last-child{display:none}.message-bubble,.group-message-bubble{max-width:92%}.contact-detail-pane.open{display:block}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.login-shell{display:block;background:#fff}.login-brand{padding:38px 24px 80px;min-height:340px}.login-brand h1{font-size:52px}.login-copy{font-size:14px}.login-points{display:none}.brand-mark{width:60px;height:60px}.brand-mark img{width:44px}.login-panel-classic{display:block}.login-card{margin:-45px auto 30px;padding:28px;border:1px solid var(--line);position:relative;z-index:2}.topbar .eyebrow{display:none}.topbar h1{font-size:19px}.content{padding:13px}.hero-panel{padding:28px 24px;min-height:260px;border-radius:22px}.hero-panel h2{font-size:38px}.stat-grid{grid-template-columns:repeat(2,1fr)}.panel{padding:17px;border-radius:18px}.panel-head.responsive{align-items:flex-start;flex-direction:column}.toolbar{width:100%;flex-wrap:wrap}.inbox-shell{height:calc(100vh - 155px)}.conversation-messages{padding:13px}.message-bubble{max-width:88%}.reply-toolbar{align-items:stretch;flex-direction:column}.reply-send{justify-content:space-between}.toast-host{left:12px;right:12px;top:12px}.toast{min-width:0;width:100%}}
@media(max-width:460px){.stat-grid{grid-template-columns:1fr 1fr}.stat-grid article{padding:14px 12px}.stat-icon{width:36px;height:36px;flex-basis:36px}.stat-grid b{font-size:22px}.hero-panel h2{font-size:33px}.topbar-actions #refreshButton{display:none}.sidebar{width:min(88vw,290px)}.mobile-bottom-nav b{font-size:8px}}

/* v6.8.1 - scroll percakapan tetap berada di panel pesan */
.inbox-shell{min-height:0}
.conversation-main{min-height:0;overflow:hidden}
.conversation-active{height:100%;min-height:0;overflow:hidden}
.conversation-scroll-wrap{flex:1;min-height:0;overflow:hidden}
.conversation-scroll-wrap>.conversation-messages{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.group-chat-card{min-height:0;overflow:hidden}
.group-chat-scroll-wrap{min-height:0;overflow:hidden}
.group-chat-scroll-wrap>.group-chat-messages{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}


/* v6.8.2 - perapihan login, kirim pesan, dan ruang percakapan */
.mini-logo{display:none!important;width:54px;height:54px;border:1px solid var(--line);border-radius:15px;place-items:center}
.mini-logo img{width:40px!important;height:40px!important;object-fit:contain!important}

.picker-wrap{min-width:0}
.picker-toolbar{display:flex;justify-content:flex-end;align-items:center;min-height:38px;padding:0 2px 8px}
.recipient-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;max-height:310px;overflow-y:auto;padding:3px!important;align-content:start}
.compose-form .recipient-option{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:10px!important;min-height:58px;margin:0!important;padding:11px 12px!important;border:1px solid var(--line)!important;border-radius:12px;background:#fff;cursor:pointer;transition:.16s ease}
.compose-form .recipient-option:hover{border-color:#aebfe8!important;background:#f8faff}
.compose-form .recipient-option:has(input:checked){border-color:#7895d5!important;background:#f1f5ff}
.compose-form .recipient-option input{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;flex:0 0 16px!important;margin:0!important;padding:0!important;accent-color:var(--navy)}
.compose-form .recipient-option span{display:grid!important;gap:2px!important;min-width:0!important;line-height:1.25}
.compose-form .recipient-option b{font-size:11px!important;white-space:normal;overflow-wrap:anywhere}
.compose-form .recipient-option small{font-size:8px!important;color:var(--muted);white-space:normal}

body.conversation-mode{overflow:hidden}
body.conversation-mode .main-area{height:100dvh;overflow:hidden}
body.conversation-mode .content{height:calc(100dvh - var(--top));min-height:0;overflow:hidden}
body.conversation-mode #view-conversations{height:100%;min-height:0;overflow:hidden}
body.conversation-mode #view-conversations .inbox-shell{height:100%;min-height:0;max-height:none}
.inbox-list-pane,.conversation-main,.conversation-active,.conversation-scroll-wrap{min-height:0;overflow:hidden}
.conversation-list,.conversation-scroll-wrap>.conversation-messages{overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none!important}
.conversation-list::-webkit-scrollbar,.conversation-scroll-wrap>.conversation-messages::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.conversation-scroll-wrap>.conversation-messages{height:auto!important;flex:1 1 auto!important;touch-action:pan-y}
.group-workspace-tabs button[data-group-tab="members"]{cursor:pointer}
.group-workspace-tabs button[data-group-tab="members"] i{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#eef3ff;color:var(--navy);font-style:normal;font-size:9px;font-weight:900}

@media(max-width:700px){.recipient-picker{grid-template-columns:1fr!important}.login-card{overflow:hidden}}

.group-member-summary{display:flex;align-items:center;color:var(--muted);font-size:10px;margin-top:4px}.group-member-count-link{border:0;background:transparent;color:var(--navy);padding:0;font:inherit;font-weight:900;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.group-member-count-link:hover{text-decoration-style:solid}


/* v6.8.3 - scroll native stabil: panel kiri dan isi chat benar-benar bisa mencapai batas atas */
body.conversation-mode #view-conversations .inbox-shell{
  display:grid!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.conversation-mode .inbox-list-pane{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.conversation-mode .conversation-list{
  flex:1 1 0!important;
  height:0!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  scroll-behavior:auto!important;
  scroll-snap-type:none!important;
  scrollbar-width:thin!important;
  scrollbar-gutter:stable!important;
  overflow-anchor:none!important;
  touch-action:pan-y!important;
}
body.conversation-mode .conversation-main{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.conversation-mode .conversation-active{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body.conversation-mode .conversation-scroll-wrap{
  flex:1 1 0!important;
  height:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.conversation-mode .conversation-scroll-wrap>.conversation-messages{
  flex:1 1 auto!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  scroll-behavior:auto!important;
  scroll-snap-type:none!important;
  scrollbar-width:thin!important;
  scrollbar-gutter:stable!important;
  overflow-anchor:none!important;
  touch-action:pan-y!important;
}
body.conversation-mode .conversation-list::-webkit-scrollbar,
body.conversation-mode .conversation-scroll-wrap>.conversation-messages::-webkit-scrollbar,
.recipient-picker::-webkit-scrollbar{width:8px!important;height:8px!important;display:block!important}
body.conversation-mode .conversation-list::-webkit-scrollbar-thumb,
body.conversation-mode .conversation-scroll-wrap>.conversation-messages::-webkit-scrollbar-thumb,
.recipient-picker::-webkit-scrollbar-thumb{background:#c7ceda;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
body.conversation-mode .conversation-list::-webkit-scrollbar-track,
body.conversation-mode .conversation-scroll-wrap>.conversation-messages::-webkit-scrollbar-track,
.recipient-picker::-webkit-scrollbar-track{background:transparent}
.recipient-picker{
  min-height:0!important;
  max-height:310px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  scroll-behavior:auto!important;
  scroll-snap-type:none!important;
  scrollbar-width:thin!important;
  scrollbar-gutter:stable!important;
  overflow-anchor:none!important;
  touch-action:pan-y!important;
}
.thread-load-older{position:relative;z-index:2;flex:0 0 auto}


/* v6.8.4 - viewport percakapan presisi pada zoom 100% */
body.conversation-mode{
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.conversation-mode #appView{
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.conversation-mode .main-area{
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:var(--top) minmax(0,1fr)!important;
}
body.conversation-mode .topbar{
  position:relative!important;
  top:auto!important;
  height:var(--top)!important;
  min-height:var(--top)!important;
  max-height:var(--top)!important;
}
body.conversation-mode .content{
  height:auto!important;
  min-height:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:12px 16px 16px!important;
  overflow:hidden!important;
}
body.conversation-mode #view-conversations{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.conversation-mode #view-conversations .inbox-shell{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
}
body.conversation-mode .inbox-list-pane,
body.conversation-mode .conversation-main,
body.conversation-mode .conversation-active,
body.conversation-mode .conversation-scroll-wrap{
  min-height:0!important;
}
body.conversation-mode .conversation-active[hidden],
body.conversation-mode .conversation-empty[hidden]{
  display:none!important;
}
body.conversation-mode .conversation-header{
  flex:0 0 68px!important;
  min-height:68px!important;
}
body.conversation-mode .reply-composer{
  flex:0 0 auto!important;
}
body.conversation-mode .conversation-scroll-wrap{
  flex:1 1 auto!important;
  height:auto!important;
}
body.conversation-mode .conversation-scroll-wrap>.conversation-messages{
  height:100%!important;
  min-height:0!important;
}
body.conversation-mode .conversation-list{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
}
@media(max-width:900px){
  body.conversation-mode .content{padding:8px!important}
  body.conversation-mode #view-conversations .inbox-shell{border-radius:14px!important}
}

/* v6.8.6: login klasik + ruang target respons */
.login-shell{min-height:100dvh}
.login-shell>.login-card{align-self:center;justify-self:center}
.sla-settings-panel>label:not(.switch-row){margin:18px 0 20px}
.sla-settings-panel>.btn{margin-top:10px}
@media(max-width:700px){.login-shell>.login-card{margin:-45px auto 30px;align-self:auto;justify-self:auto}}
