/* Shared visual baseline: Facebook / WhatsApp / customer groups. */
:root{--orange:#ff932a;--deep:#e67d17;--soft:#fff5e9;--ink:#303640;--muted:#8a919e;--line:#e9ebef;--bg:#f6f7fb;--orange-dark:var(--deep);--orange-soft:var(--soft);--text:var(--ink);--head:#f7f8fa;--side:var(--bg);--line2:#eff1f4;--ui-radius:9px;--ui-field-radius:4px;--ui-sidebar-width:206px;--ui-header-height:57px}
.menu a.local-page-link{color:inherit;text-decoration:none;font-size:12px}.menu a.local-page-link:hover{color:var(--deep)}
/* Adapt the existing customer-group shell without changing its menus or flows. */
.legacy-workspace{font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);overflow:auto}
.legacy-workspace .app{height:auto;min-height:100vh;display:block}
.legacy-workspace .top{height:var(--ui-header-height);padding:0 24px;gap:30px}
.legacy-workspace .brand{display:flex;align-items:center;gap:7px;font-size:21px;font-weight:750;letter-spacing:-.7px;min-width:191px}
.legacy-workspace .brand-mark{color:var(--orange);font-size:33px;font-weight:850;line-height:1}
.legacy-workspace .brand small{font-size:11px;font-weight:400;letter-spacing:0;background:#f8f9fa;padding:4px 7px;margin-left:3px;color:#7d848d}
.legacy-workspace .top nav{display:flex;height:100%;gap:29px;font-size:14px;font-weight:600}.legacy-workspace .top nav span{display:flex;align-items:center}.legacy-workspace .top nav .active{color:var(--deep);border-bottom:2px solid var(--orange)}
.legacy-workspace .top-right{gap:9px;color:#666f7c;font-size:12px}.legacy-workspace .demo-tag{border:1px solid #f2d9b8;background:#fffaf3;color:#b17a33;border-radius:4px;padding:3px 9px;margin-right:15px}.legacy-workspace .avatar{display:grid;place-items:center;background:#eef1f7;color:#8b94a3;width:27px;height:27px;border-radius:50%;font-size:11px}
.legacy-workspace .shell{grid-template-columns:var(--ui-sidebar-width) minmax(0,1fr);min-height:calc(100vh - var(--ui-header-height))}
.legacy-workspace .side{padding:18px 18px 12px;overflow:visible;position:relative}.legacy-workspace .section{padding:0;margin-bottom:23px}.legacy-workspace .section-title{font-size:13px;font-weight:600;margin-bottom:12px;color:var(--ink)}.legacy-workspace .menu-grid{gap:13px 8px;padding-left:14px;font-size:12px;color:#68717e}.legacy-workspace .menu-grid .active:before{left:-8px;top:3px;height:13px;width:2px}.legacy-workspace .wg-link{text-decoration:none;color:inherit}
.legacy-workspace .work{display:block;padding:0 18px;overflow:visible}
.legacy-workspace .tabs{height:47px;gap:6px;padding:0;margin-bottom:16px;background:transparent;overflow:auto}.legacy-workspace .tab{height:30px;padding:6px 19px;font-size:12px;background:#f0f2f6;color:#717985;border-radius:3px;text-decoration:none}.legacy-workspace .tab.active{background:#fff0de;color:var(--deep);border-bottom:0}
.legacy-workspace main{padding:0;overflow:visible}.legacy-workspace .page{border-radius:var(--ui-radius);padding:22px 22px 0;min-height:600px}.legacy-workspace .page-title{height:auto;min-height:35px;margin-bottom:20px;gap:10px}.legacy-workspace .page-title h1{font-size:18px;font-weight:650;line-height:27px}
.legacy-workspace .btn{height:35.5px;padding:7px 14px;border-color:#dfe3e9;border-radius:var(--ui-field-radius);color:#505865;line-height:19.5px;white-space:nowrap}.legacy-workspace .btn-orange{background:var(--orange);border-color:var(--orange);color:white}.legacy-workspace .btn-orange:hover{background:#ef841e}.legacy-workspace button:disabled{opacity:.45;cursor:not-allowed}
.legacy-workspace .field{height:34px;border:1px solid #dfe3e9;border-radius:var(--ui-field-radius);color:#535c69}.legacy-workspace input:focus,.legacy-workspace select:focus,.legacy-workspace textarea:focus{outline:0;border-color:var(--orange);box-shadow:0 0 0 2px #ff932a12}.legacy-workspace input::placeholder{color:#acb1ba}
.legacy-workspace .filters{background:none;padding:0;margin:0 0 18px;gap:10px}.legacy-workspace .summary{height:auto;min-height:22px;margin-bottom:12px;font-size:12px;color:var(--muted)}.legacy-workspace .data-wrap{border-radius:5px;max-height:none}.legacy-workspace table{font-size:12px}.legacy-workspace th{height:42px;padding:0 13px;font-weight:500;color:#69717e;background:#f7f8fa;border-right:0}.legacy-workspace td{height:76px;padding:16px 13px;border-right:0;border-bottom:1px solid #eff1f4;color:var(--ink)}.legacy-workspace tr:last-child td{border-bottom:0}.legacy-workspace .row-actions{gap:14px}.legacy-workspace .row-actions button{color:var(--deep)}.legacy-workspace .bottom{height:67px}.legacy-workspace .pager{font-size:12px;color:#8b939d}.legacy-workspace .pager .btn{height:25px;padding:2px 8px}.legacy-workspace .page-no{border-color:var(--orange);color:var(--deep)}
.workspace-caption{display:flex;justify-content:space-between;font-size:11px;color:#a7adb6;padding:18px 5px}
/* New dialogs use the existing WhatsApp account dialog's geometry. */
.wg-dialog{width:650px;max-width:calc(100vw - 40px);max-height:88vh;border-radius:var(--ui-radius);color:var(--ink);box-shadow:0 15px 70px #18233433}.wg-dialog.wg-wide{width:920px}.wg-dialog::backdrop{background:#222c4059;backdrop-filter:blur(1px)}.wg-dialog header{padding:19px 24px;border-bottom:1px solid var(--line);font-size:16px;font-weight:600}.wg-dialog #wg-close{padding:0 2px;height:auto;border:0;background:transparent;color:#9ba1aa;font-size:22px;line-height:1}.wg-content{padding:22px 24px;max-height:calc(88vh - 139px)}.wg-dialog footer{background:#fdfdfe;border-top:1px solid var(--line)}.wg-dialog footer .btn{min-width:85px}
.wg-form{display:flex;flex-direction:column;align-items:stretch;gap:8px}.wg-form>label{font-weight:500;text-align:left;padding:0;margin-top:12px}.wg-form>label:first-child{margin-top:0}.wg-form input:not([type=checkbox]):not([type=radio]),.wg-form select{height:38px;padding:0 10px;border:1px solid #dfe3e9;border-radius:4px}.wg-form textarea{border:1px solid #dfe3e9;border-radius:4px;padding:10px;resize:vertical}.wg-form small{font-size:12px;color:var(--muted);margin-top:5px}.wg-form input[type=checkbox],.wg-form input[type=radio]{accent-color:var(--orange)}.wg-modes{gap:18px;padding:4px 0}.wg-members th,.wg-members td{padding:12px 13px!important}.wg-members td{height:60px}.wg-badge{background:#f0f7f3;color:#438762}.wg-count,.wg-action{color:var(--deep)}.wg-error{font-size:12px;color:#c84e48}.wg-form .required{color:#dc645e}
#groupTable tr[data-group-id] td:first-child{min-width:190px}.wg-form .plain-value{padding:4px 0}.wg-inline-help{font-size:12px;color:var(--muted);margin:0 0 12px}
@media(max-width:900px){.legacy-workspace .shell{grid-template-columns:0 minmax(0,1fr)}.legacy-workspace .side{display:none}.legacy-workspace .work{padding:0 12px}.legacy-workspace .filters{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy-workspace .top-right .demo-tag{display:none}.legacy-workspace .brand{min-width:160px}.legacy-workspace .top{gap:15px}.legacy-workspace .page{padding:18px 18px 0}}

/* Shared navigation: no page-specific Unicode icons or duplicated menu lists. */
#workspace-nav{display:block;box-sizing:border-box;width:var(--ui-sidebar-width);min-width:0;padding:18px 18px 12px;background:var(--bg);border:0;position:sticky;top:0;align-self:start;height:calc(100vh - var(--ui-header-height));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d9dde4 transparent;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}
#workspace-nav .workspace-nav-section{margin:0 0 23px;padding:0;border:0}
#workspace-nav .workspace-nav-heading{display:flex;align-items:center;gap:6px;width:100%;height:20px;margin:0 0 12px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink);font:600 13px/20px -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;text-align:left;cursor:pointer}
#workspace-nav .workspace-nav-icon{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#workspace-nav .workspace-nav-chevron{width:12px;height:12px;margin-left:auto;fill:none;stroke:#929aa6;stroke-width:1.4;transition:transform .15s}
#workspace-nav .workspace-nav-heading[aria-expanded="false"] .workspace-nav-chevron{transform:rotate(180deg)}
#workspace-nav .workspace-nav-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 8px;padding:0 0 0 14px;margin:0}
#workspace-nav .workspace-nav-items[hidden]{display:none}
#workspace-nav .workspace-nav-item{position:relative;display:block;box-sizing:border-box;margin:0;padding:0;width:auto;height:18px;border:0;background:transparent;box-shadow:none;color:#68717e;text-align:left;text-decoration:none;white-space:nowrap;font:400 12px/18px -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
#workspace-nav a.workspace-nav-item{cursor:pointer}
#workspace-nav .workspace-nav-item[aria-disabled]{cursor:default}
#workspace-nav a.workspace-nav-item:hover,#workspace-nav .workspace-nav-item.current{color:var(--deep)}
#workspace-nav .workspace-nav-item.current:before{content:"";position:absolute;left:-8px;top:3px;width:2px;height:13px;background:var(--orange)}
#workspace-nav .is-current .workspace-nav-icon{color:var(--deep)}
#workspace-nav a:focus-visible,#workspace-nav button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
@media(max-width:900px){.legacy-workspace .shell{grid-template-columns:var(--ui-sidebar-width) minmax(0,1fr)}}

/* WhatsApp groups share the existing switch and right-side association pattern. */
.wg-form .wg-status-switch{appearance:none;-webkit-appearance:none;display:block;width:43px;height:22px;margin:4px 0;border:0;border-radius:12px;background:#c5cad2;position:relative;cursor:pointer;transition:background .15s}
.wg-form .wg-status-switch:checked{background:var(--orange,#ff9600)}
.wg-form .wg-status-switch:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}
.wg-form .wg-status-switch:checked:after{transform:translateX(21px)}
.wg-form .wg-status-switch:focus-visible{outline:2px solid #ad6000;outline-offset:3px}
.wg-counter{text-align:right}
dialog.wg-dialog.wg-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(920px,94vw);max-width:94vw;height:100dvh;max-height:100dvh;border-radius:0}
dialog.wg-dialog.wg-drawer[open]{display:flex;flex-direction:column}
.wg-drawer .wg-content{flex:1;max-height:none;overflow:auto}.wg-drawer header,.wg-drawer footer{flex-shrink:0}
.wg-drawer .wg-tools{flex-wrap:wrap}.wg-drawer .wg-tools>span{margin-left:auto}
#wg-group-form{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px 14px;align-items:start}
#wg-group-form>label{text-align:right;margin:0;padding-top:9px}
#wg-group-form textarea{min-height:64px;height:64px}
#wg-group-form .wg-modes{padding-top:8px;gap:14px}
dialog.wg-dialog.wg-drawer{width:min(920px,82vw)}
@media(max-width:600px){#wg-group-form{grid-template-columns:1fr;gap:8px}#wg-group-form>label{text-align:left}dialog.wg-dialog.wg-drawer{width:94vw}}
/* The same phase-one navigation on both workspace shells; wrap instead of hiding items. */
.work-tabs.workspace-shortcuts,.legacy-workspace .tabs.workspace-shortcuts{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;height:auto;min-height:56px;padding:10px 0;margin:0 0 16px;overflow:visible;border-bottom:1px solid var(--line);background:transparent}
.workspace-shortcuts>.workspace-shortcut,.legacy-workspace .workspace-shortcuts>.workspace-shortcut{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;height:32px;min-width:76px;margin:0;padding:0 14px;border:1px solid #dfe3e9;border-radius:4px;background:#fff;color:#606977;font:400 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;white-space:nowrap;text-decoration:none;cursor:pointer;box-shadow:none}
.workspace-shortcuts>.workspace-shortcut:hover{border-color:var(--orange);color:var(--deep)}
.workspace-shortcuts>.workspace-shortcut[aria-current="page"],.legacy-workspace .workspace-shortcuts>.workspace-shortcut[aria-current="page"]{border-color:#ffdec0;background:var(--soft);color:var(--deep)}
.workspace-shortcuts>.workspace-shortcut:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.workspace-shortcuts>#help-top{margin:0 0 0 auto;height:32px;padding:0 10px;font-size:12px}
