@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/Poppins-400.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/Poppins-500.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/Poppins-600.woff2') format('woff2')}
@font-face{font-family:Poppins;font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/Poppins-700.woff2') format('woff2')}
:root{
 font-family:Poppins,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
 font-synthesis:none;color:#020617;background:#f8fafc;line-height:1.5;
 --blue:#2463eb;--action:#02457a;--ink:#020617;--muted:#64748b;
 --line:#e2e8f0;--surface:#fff;--pale:#eef7ff;
}
*{box-sizing:border-box}
body{margin:0;min-width:320px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:9px 13px;color:var(--ink);font-size:12px;line-height:1.5;transition:background .15s,border-color .15s,color .15s}
button:hover{background:#f1f5f9;border-color:#cbd5e1}
button:disabled{opacity:.55;cursor:not-allowed}
a{color:var(--blue);text-underline-offset:3px}
a:hover{color:var(--action)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
input,select,textarea{border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:11px 12px;color:var(--ink);width:100%;min-width:0;font-size:13px}
input:focus,select:focus,textarea:focus{outline:2px solid #d5e5ff;border-color:var(--blue);outline-offset:1px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--blue)}
input[readonly],textarea[readonly]{background:#f8fafc}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--blue)}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){display:flex;align-items:center;gap:9px;min-height:32px;cursor:pointer}
label>input[type=checkbox],label>input[type=radio]{margin:0;flex-shrink:0}
input[type=file]{font-size:12px;padding:10px;background:#f8fafc}
input[type=file]::file-selector-button{border:0;border-radius:5px;background:#e2e8f0;color:#0f172a;margin-right:12px;padding:7px 10px;cursor:pointer;font:inherit}
textarea{resize:vertical;min-height:100px;line-height:1.6}
label{display:block;font-size:12px;font-weight:500;margin-bottom:18px;color:#334155}
label input,label select,label textarea{margin-top:7px}
label small{display:block;margin-top:6px;line-height:1.6;font-weight:400}
h1{font-size:28px;letter-spacing:-.8px;line-height:1.3;margin:0;font-weight:600}
h2{font-size:17px;letter-spacing:-.35px;line-height:1.4;font-weight:600}
h3{font-size:14px;font-weight:600}
p{line-height:1.65}
small,.quiet{color:var(--muted)}
.quiet{font-size:12px;line-height:1.7}
hr{border:0;border-top:1px solid var(--line);margin:26px 0}
pre,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}
pre{overflow:auto;max-width:100%;padding:16px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;line-height:1.7}
.primary{background:var(--action);border-color:var(--action);color:#fff;font-weight:500}
.primary:hover{background:#013761;border-color:#013761;color:#fff}
.secondary{background:#f1f5f9;border-color:var(--line);color:var(--ink);font-weight:500}
.secondary:hover{background:#e2e8f0}
.danger{color:#b91c1c}
.brand{display:flex;align-items:center;font-size:24px;font-weight:700;letter-spacing:-.75px;gap:0;color:#020f12;white-space:nowrap}
.brand-word{display:block;color:#020f12}
.brand-word>span{color:var(--blue)}
.logo{display:block;object-fit:contain;flex-shrink:0;width:37px;height:36px;margin-right:9px;background:transparent;border-radius:0;font-size:0}
/* App shell in the AveCRM style: a white 76px icon rail that opens to 256px (pinned, or as a hover overlay) and a 64px top bar. */
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sidebar{position:fixed;inset:0 auto 0 0;width:76px;background:#fff;border-right:1px solid #ececec;display:flex;flex-direction:column;z-index:10;transition:width .2s linear,box-shadow .2s linear}
.sidebar.is-expanded{width:256px}
.sidebar.is-hovering{z-index:50;box-shadow:8px 0 32px -12px rgba(2,6,23,.18)}
.sidebar-brand{display:flex;align-items:center;justify-content:center;height:64px;flex-shrink:0;border-bottom:1px solid #ececec;text-decoration:none;font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1;white-space:nowrap;overflow:hidden}
.sidebar.is-expanded .sidebar-brand{justify-content:flex-start;padding:0 20px}
.sidebar-brand .logo{width:36px;height:34px;margin:0}
.sidebar.is-expanded .sidebar-brand .logo{width:30px;height:28px;margin-right:10px}
.sidebar-brand .brand-word{display:none}
.sidebar.is-expanded .sidebar-brand .brand-word{display:block}
#nav{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:16px 0;display:flex;flex-direction:column;align-items:center;gap:4px;scrollbar-width:thin;scrollbar-color:#d1d5dc transparent}
.sidebar.is-expanded #nav{align-items:stretch;padding:16px}
.nav-group,.user-menu{margin:0;flex-shrink:0}
:is(.nav-group,.user-menu)>summary{margin:0}
#nav .nav-top,.nav-group>summary,#sidebar-pin{display:flex;align-items:center;justify-content:center;gap:12px;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#344054;font-size:14px;font-weight:500;line-height:1.25;list-style:none;user-select:none;cursor:pointer;flex-shrink:0;transition:background .15s,color .15s}
.nav-group>summary::-webkit-details-marker{display:none}
.sidebar :is(.nav-top,.nav-group>summary)>.icon:first-child{width:22px;height:22px}
.sidebar.is-expanded :is(.nav-top,.nav-group>summary,#sidebar-pin){width:100%;justify-content:flex-start;padding:0 12px}
.sidebar.is-expanded :is(.nav-top,.nav-group>summary)>.icon:first-child{width:20px;height:20px}
.nav-label{display:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar.is-expanded .nav-label{display:block}
.nav-group>summary .chevron{display:none;margin-left:auto;width:16px;height:16px;color:#99a1af;transition:transform .2s}
.sidebar.is-expanded .nav-group>summary .chevron{display:block}
.nav-group[open]>summary .chevron{transform:rotate(90deg)}
:is(#nav .nav-top,.nav-group>summary,#sidebar-pin):hover{background:#f9fafb;color:#020617}
/* The rail lights the whole section; the open sidebar marks the exact page in the tree. */
#nav .nav-top.selected,.sidebar:not(.is-expanded) .nav-group.active-category>summary{background:#e4ebf1;color:#02457a}
.sidebar.is-expanded .nav-group.active-category>summary{color:#02457a}
.nav-group-items{display:none}
.sidebar.is-expanded .nav-group[open]>.nav-group-items{display:flex;flex-direction:column;gap:2px;margin:4px 0 6px 21px;padding:2px 0;border-left:1px solid #e5e7eb}
.nav-group-items button{position:relative;display:block;width:calc(100% - 10px);height:36px;margin-left:10px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:#4a5565;font-size:14px;font-weight:400;line-height:36px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.nav-group-items button::before{content:'';position:absolute;left:-10px;top:50%;width:10px;height:1px;background:#e5e7eb}
.nav-group-items button:hover{background:#f9fafb;color:#020617}
.nav-group-items button.selected{background:#e4ebf1;color:#02457a;font-weight:500}
.nav-rule{width:36px;height:1px;margin:8px auto;background:#ececec;flex-shrink:0}
.sidebar.is-expanded .nav-rule{width:auto;margin:8px 4px}
.sidebar-foot{display:flex;align-items:center;height:64px;padding:0 16px;flex-shrink:0;border-top:1px solid #ececec}
#sidebar-pin{color:#6a7282}
#sidebar-pin .pin-close,body.sidebar-pinned #sidebar-pin .pin-open{display:none}
body.sidebar-pinned #sidebar-pin .pin-close{display:block}
.mobile-menu-close,.mobile-menu-backdrop{display:none}
main{margin-left:76px;padding:0 30px 18px;max-width:1840px;min-width:0;transition:margin-left .2s linear}
body.sidebar-pinned main{margin-left:256px}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;height:64px;margin:0 -30px 28px;padding:0 24px;background:#fff;border-bottom:1px solid #ececec}
.topbar-left{display:flex;align-items:center;gap:8px;min-width:0}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#99a1af}
.icon-button:hover{background:#f9fafb;color:#364153}
.icon-button .icon{width:18px;height:18px}
#mobile-menu-toggle{display:none;width:40px;height:40px;color:#4a5565}
#mobile-menu-toggle .icon{width:20px;height:20px}
.breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0;list-style:none;font-size:15px;color:#6a7282}
.breadcrumb li{display:flex;align-items:center;min-width:0;white-space:nowrap}
.crumb-sep{color:#d1d5dc}
.crumb-sep .icon{width:16px;height:16px}
#crumb-page{overflow:hidden;text-overflow:ellipsis;font-weight:500;color:#364153}
body:not(.crumb-has-group) :is(#crumb-group,.crumb-group-sep){display:none}
.topbar-right{display:flex;align-items:center;gap:16px;flex-shrink:0}
.engine{display:inline-flex;align-items:center;padding:4px 10px;border:1px solid #ececec;border-radius:9999px;background:#f9fafb;color:#4a5565;font-size:12px;white-space:nowrap}
#presence{width:140px;padding:8px 10px;font-size:13px}
#open-phone{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;font-size:14px;white-space:nowrap}
#open-phone .icon{width:16px;height:16px}
.topbar-divider{width:1px;height:32px;background:#ececec}
.user-menu{position:relative}
.user-menu>summary{display:flex;align-items:center;gap:10px;padding:4px 6px;border-radius:8px;list-style:none;cursor:pointer}
.user-menu>summary::-webkit-details-marker{display:none}
.user-menu>summary:hover{background:#f9fafb}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e4ebf1;color:#02457a;font-size:13px;font-weight:600;flex-shrink:0}
.user-menu-name strong{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500;color:#020617}
.user-menu .chevron{width:16px;height:16px;color:#99a1af}
.user-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:220px;padding:6px;background:#fff;border:1px solid #ececec;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.user-menu-head{padding:8px 10px 10px;margin-bottom:6px;border-bottom:1px solid #ececec}
.user-menu-head strong{display:block;font-size:14px;font-weight:600}
.user-menu-head small{font-size:12px}
#logout{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:#344054;font-size:14px}
#logout:hover{background:#f2f5f9}
#logout .icon{width:18px;height:18px}
.page-head{margin-bottom:24px}
.welcome{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(110deg,#eef7ff,#f8fbff);border:1px solid #dbe8f6;border-radius:12px;padding:20px 23px;margin-bottom:23px}
.welcome h2{margin:0 0 5px;color:#020617;font-size:20px}
.welcome p{margin:0;color:#475569;font-size:12px}
.welcome-mark{font-size:35px;color:var(--blue);line-height:1}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}
.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:19px 20px;min-width:0}
.stat-label,.stat>span{font-size:10px;color:#64748b;font-weight:500}
.stat strong{display:block;font-size:29px;font-weight:600;letter-spacing:-.8px;margin:10px 0 4px;line-height:1.3;font-variant-numeric:tabular-nums}
.stat small{font-size:10px;line-height:1.6;display:block}
.compact-stats{padding:20px 22px 0;margin-bottom:0}
.compact-stats .stat{padding:16px 18px;background:#f8fafc}
.compact-stats .stat strong{font-size:25px;margin-bottom:0}
.diagnosis{font-size:12px;line-height:1.7;padding:12px 14px;border:1px solid #dbe8f6;border-left:3px solid var(--blue);border-radius:8px;background:#f8fbff;margin:0 0 12px}
.diagnosis strong{display:block;font-size:10px;letter-spacing:.45px;margin-bottom:4px}
.diagnosis.warning{background:#fff7ed;border-color:#fed7aa;border-left-color:#d97706;color:#7c2d12}
.diagnosis.error{background:#fef2f2;border-color:#fecaca;border-left-color:#dc2626;color:#991b1b}
.diagnostic-log{max-height:360px;white-space:pre-wrap;overflow-wrap:anywhere;background:#0f172a;color:#e2e8f0;border-color:#1e293b}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:21px;overflow:hidden;min-width:0}
.card-head{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}
.card-head h2{margin:0}
.card-head p{margin:5px 0 0;font-size:11px;color:#64748b}
.card-head>.primary{white-space:nowrap;flex-shrink:0;font-size:11px}
.card-content{padding:22px}
.card>label:not(.card-content){margin:0;padding:18px 22px;border-bottom:1px solid var(--line)}
form.card-content,.card-content form{max-width:740px}
#ops-network,#ops-segment,#ops-capture{max-width:none}
.form-grid,#integration-email,#integration-webhook,:is(form[data-advanced-form=queue-options],form[data-advanced-form=storage]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 23px;max-width:none}
.form-grid>p,.form-grid>.form-wide,#integration-email>p,#integration-email>details,#integration-webhook>p,#integration-webhook>label:has(input[name=secret]),:is(form[data-advanced-form=queue-options],form[data-advanced-form=storage])>.form-error{grid-column:1/-1}
.form-grid>button,#integration-email>button,#integration-webhook>button,:is(form[data-advanced-form=queue-options],form[data-advanced-form=storage])>button{justify-self:start;align-self:start}
.grid-two{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:21px}
.grid-two>div,.team-layout>section,.stats>div{min-width:0}
.badge{display:inline-flex;align-items:center;font-size:10px;font-weight:500;border-radius:6px;padding:4px 8px;background:#f1f5f9;color:#475569;white-space:nowrap;line-height:1.5}
.badge.green{background:#ecfdf3;color:#15803d}
.badge.blue{background:#eef7ff;color:#2463eb}
.badge.red{background:#fef2f2;color:#b91c1c}
.badge.yellow,.badge.warning{background:#fff7ed;color:#b45309}
table{border-collapse:collapse;width:100%;text-align:left;font-size:11px;line-height:1.6}
th{padding:12px 20px;background:#f8fafc;color:#64748b;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;white-space:nowrap}
td{padding:15px 20px;border-top:1px solid #eef2f6;vertical-align:middle;color:#334155}
td strong{font-size:11px;font-weight:600;color:#0f172a}
tbody tr:hover{background:#fbfdff}
.number{display:inline-block;font-variant-numeric:tabular-nums;background:#eef7ff;color:var(--action);font-weight:600;border-radius:6px;padding:5px 8px;min-width:40px;text-align:center}
.table-wrap{overflow:auto;max-width:100%;scrollbar-width:thin}
.empty{text-align:center;padding:38px 22px;color:#64748b;font-size:12px;line-height:1.8}
.empty .empty-symbol{font-size:28px;color:#94a3b8;display:block;margin-bottom:10px}
.row-action{font-size:10px;padding:6px 9px;white-space:nowrap}
.inline-form{display:flex;align-items:center;gap:8px;margin:0;min-width:150px}
.inline-form select{font-size:11px;padding:7px 9px;min-width:85px}
.inline-form button{flex-shrink:0}
.supervision-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
form[data-advanced-form^="permission/"]{max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px;border-bottom:1px solid var(--line)}
form[data-advanced-form^="permission/"]:last-child{border-bottom:0}
form[data-advanced-form^="permission/"] h3{grid-column:1/-1;margin:0 0 4px}
form[data-advanced-form^="permission/"] label{margin-bottom:6px}
form[data-advanced-form^="permission/"] .form-error{grid-column:1/-1}
form[data-advanced-form^="permission/"] button{justify-self:start}
.list-row{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid #eef2f6}
.list-row:last-child{border:0}
.list-row>div{min-width:0}
.list-row p{margin:0;font-size:11px;color:#0f172a;overflow-wrap:anywhere}
.list-row small{font-size:10px}
.list-row .badge{margin-left:auto}
.quick{display:grid;gap:10px}
.quick button{display:flex;align-items:center;justify-content:space-between;font-size:11px;text-align:left;padding:13px;border-color:#e2e8f0}
.quick button span{font-size:17px;color:var(--blue)}
footer{display:flex;gap:16px;color:#64748b;font-size:9px;margin-top:28px;border-top:1px solid var(--line);padding-top:16px;align-items:center;flex-wrap:wrap}
footer span:last-child{margin-left:auto}
.auth{min-height:100dvh;display:grid;place-items:center;padding:32px 0;background:radial-gradient(ellipse at 80% 10%,#e7f1ff,transparent 65%),linear-gradient(120deg,#fff,#f0f6ff)}
.auth-panel{background:#fff;border:1px solid #edf2f8;padding:42px;width:460px;max-width:calc(100vw - 32px);border-radius:24px;box-shadow:0 16px 70px #2463eb08}
.auth .brand{margin-bottom:37px;font-size:26px}
.auth .logo{width:41px;height:40px}
.auth h1{font-size:29px;font-weight:600;letter-spacing:-.9px}
.auth .eyebrow{font-size:9px;color:#64748b;margin-bottom:12px}
.auth-panel>p:not(.eyebrow){font-size:12px;color:#64748b;margin:12px 0}
.auth form{margin-top:28px}
.auth form label{font-size:12px;font-weight:400;margin-bottom:19px}
.auth input{padding:13px 12px;border-color:#d9e1ec;box-shadow:0 2px 3px #02061703}
.auth .primary{width:100%;padding:13px;background:var(--blue);border-color:var(--blue);font-size:12px}
.auth .primary:hover{background:#1c50c8}
.auth-foot{font-size:9px!important;text-align:center;margin-top:27px!important;line-height:1.8}
.auth [role=alert],#form-error,#phone-error{color:#b91c1c;font-size:11px;min-height:16px;line-height:1.7}
#password-help{display:block;font-weight:400;margin-top:8px;font-size:10px}
.phone{position:fixed;right:25px;bottom:23px;width:330px;background:#fff;border:1px solid #d9e1ec;border-radius:13px;box-shadow:0 16px 70px #02457a26;z-index:10;max-height:calc(100dvh - 95px);overflow-y:auto}
.phone-header{background:var(--action);color:#fff;border-radius:12px 12px 0 0;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:500}
.phone-header button{background:transparent;border:0;color:#fff;font-size:21px;padding:0 4px}
.phone-body{padding:20px}
.phone-body label{font-size:10px;margin-bottom:14px}
.phone-body>.secondary{width:100%}
.phone-status{text-align:center;padding:17px 0 10px;font-size:11px;color:#475569}
.dial-number{text-align:center;font-size:24px;letter-spacing:1px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:14px;font-variant-numeric:tabular-nums}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.keypad button{font-size:19px;background:#f8fafc;border:1px solid #eef2f6;padding:10px;font-weight:500}
.keypad button:hover{background:#eef7ff}
.phone-actions{display:flex;gap:7px;margin-top:13px}
.phone-actions button{flex:1;font-size:10px;padding:10px 6px;min-width:0}
.call{background:#15803d;color:#fff;border-color:#15803d}
.call:hover{background:#166534;color:#fff}
.hangup{background:#fef2f2;color:#b91c1c;border-color:#fee2e2}
.phone-body>.quiet{font-size:10px;text-align:center}
#consult-controls{background:#eef7ff;padding:10px;border-radius:8px;margin-top:12px}
dialog{border:1px solid var(--line);border-radius:16px;padding:26px;width:510px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 22px 90px #02457a26}
dialog::backdrop{background:#0f172a66;backdrop-filter:blur(2px)}
dialog:has(select[name^="key_"]){width:730px}
#fields:has(select[name^="key_"]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
#fields:has(select[name^="key_"])>label:not(:has(select[name^="key_"])){grid-column:1/-1}
#fields:has(select[name^="key_"])>label:has(input[name=number]),#fields:has(select[name^="key_"])>label:has(input[name=name]){grid-column:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:14px}
.modal-head h2{margin:0;font-size:19px}
.modal-head button{border:0;font-size:23px;padding:0 5px;color:#64748b}
dialog .primary{width:100%}
#activation-link{font-size:11px;overflow-wrap:anywhere;color:#02457a}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:13px 21px;border-radius:9px;font-size:11px;z-index:30;box-shadow:0 5px 25px #02061720;max-width:calc(100vw - 32px);line-height:1.6}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.team-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px}
.team-person{display:flex;align-items:center;gap:11px;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;padding:16px 19px}
.team-person small{display:block;font-size:10px;margin-top:4px;font-weight:400}
.team-person.selected{background:#eef7ff}
.messages{height:370px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:14px}
.message{align-self:flex-start;max-width:85%;padding:12px 15px;border-radius:9px;background:#f1f5f9;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:#334155}
.message.mine{align-self:flex-end;background:#eef7ff;color:#02457a}
.message small{display:block;font-size:9px;margin-top:7px}
.compose{display:flex;padding:16px;border-top:1px solid var(--line);gap:9px}
.compose input{flex:1;min-width:0}
.evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.evidence-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}
.evidence-card h3{margin-top:0}
.evidence-card p{font-size:11px;color:#64748b}
.evidence-card code{display:block;font-size:10px;overflow-wrap:anywhere;color:#02457a;background:#f8fafc;padding:10px;border-radius:6px}
.architecture{display:flex;flex-wrap:wrap;justify-content:center;gap:11px;padding:20px}
.architecture>div{padding:16px;border:1px solid #dbe8f6;border-radius:9px;text-align:center;background:#f8fbff;font-size:11px}
.architecture>div small{display:block;margin-top:6px;font-size:10px}
.settings-list{display:grid;grid-template-columns:170px minmax(0,1fr);gap:18px;font-size:12px;line-height:1.6}
.settings-list dt{color:#64748b}
.settings-list dd{margin:0;overflow-wrap:anywhere;color:#334155}
details{margin-bottom:20px}
summary{cursor:pointer;color:var(--action);font-size:12px;margin-bottom:14px;font-weight:500}
.report-filter{display:flex;gap:14px;align-items:end;flex-wrap:wrap;max-width:none!important}
.report-filter label{margin-bottom:0;min-width:145px}
audio{max-width:100%;width:230px;height:40px}
[hidden]{display:none!important}
@media(min-width:1800px){main{padding:34px 40px 20px}}
@media(max-width:1150px){main{padding:0 25px 25px}.topbar{margin:0 -25px 28px}.stats{gap:10px}.grid-two{grid-template-columns:1fr}.team-layout{grid-template-columns:260px minmax(0,1fr)}.card-head{padding:18px 20px}}
@media(max-width:920px){.team-layout{grid-template-columns:1fr}.team-layout>.card:first-child{max-height:235px;overflow:auto}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.evidence-grid{grid-template-columns:1fr}.card-head h2{font-size:16px}}
@media(max-width:720px){
 #workspace{min-height:100dvh}
 body.navigation-open{overflow:hidden}
 .sidebar,.sidebar.is-expanded{width:min(300px,calc(100vw - 44px));z-index:22;transform:translateX(-100%);visibility:hidden;pointer-events:none;transition:transform .18s}
 .sidebar.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}
 .sidebar-foot{display:none}
 .mobile-menu-close{display:inline-flex;align-items:center;justify-content:center;position:absolute;right:10px;top:10px;width:44px;height:44px;padding:0;border:0;background:transparent;color:#4a5565}
 .mobile-menu-backdrop{display:block;position:fixed;inset:0;border:0;border-radius:0;background:#0f172a66;z-index:21;width:100%;height:100%;padding:0;cursor:default}
 .mobile-menu-backdrop:hover{background:#0f172a66}
 #nav .nav-top,.nav-group>summary{min-height:44px}
 .nav-group-items button{height:44px;line-height:44px}
 main,body.sidebar-pinned main{margin-left:0;padding:0 16px 17px;width:100%;max-width:none}
 .topbar{margin:0 -16px 20px;padding:0 12px;gap:8px}
 #mobile-menu-toggle{display:inline-flex}
 :is(.crumb-home,.crumb-sep,#crumb-group,.engine,.topbar-divider,.user-menu-name),body.crumb-has-group :is(#crumb-group,.crumb-group-sep){display:none}
 .topbar-right{gap:8px}
 #presence{width:120px}
 #open-phone{padding:0 12px}
 #open-phone span{display:none}
 h1{font-size:25px}
 .welcome{padding:18px;margin-bottom:20px}
 .welcome h2{font-size:18px}
 .welcome p{font-size:11px}
 .welcome-mark{display:none}
 .stats{gap:10px;margin-bottom:20px}
 .stat{padding:16px 14px}
 .stat strong{font-size:27px;margin-top:8px}
 .stat-label,.stat>span{font-size:9px}
 .stat small{font-size:9px}
 .compact-stats{padding:18px 18px 0}
 .card{margin-bottom:18px}
 .card-head{padding:17px 18px;align-items:flex-start;flex-wrap:wrap;gap:12px}
 .card-head h2{font-size:16px}
 .card-head p{font-size:10px}
 .card-content{padding:18px}
 .card>label:not(.card-content){padding:16px 18px}
 .form-grid,#integration-email,#integration-webhook,:is(form[data-advanced-form=queue-options],form[data-advanced-form=storage]){grid-template-columns:1fr;gap:0}
 form[data-advanced-form^="permission/"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
 th{padding:11px 15px;font-size:9px}
 td{padding:13px 15px;font-size:11px}
 .row-action{padding:8px 10px}
 .grid-two,.evidence-grid,.team-layout{gap:17px;grid-template-columns:1fr}
 .phone{right:12px;bottom:12px;width:330px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 84px)}
 .phone-body{padding:18px}
 .phone-actions button{min-height:38px}
 dialog{padding:23px;max-height:calc(100dvh - 32px)}
 #fields:has(select[name^="key_"]){grid-template-columns:1fr;gap:0}
 .settings-list{grid-template-columns:120px minmax(0,1fr);gap:15px;font-size:11px}
 footer{font-size:9px;gap:10px;margin-top:24px}
 footer span:nth-child(2){display:none}
 .auth-panel{padding:33px 27px;border-radius:22px}
 .auth h1{font-size:27px}
 .auth .brand{margin-bottom:31px}
 .auth .eyebrow{font-size:8px}
 button,input,select{min-height:44px}
 input,select,textarea,.inline-form select,#presence{font-size:16px}
 input[type=checkbox],input[type=radio]{min-height:0}
 label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
