:root{
    font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    color:#17171a;
    background:#f4f5f7;
    font-size:14px;
    --red:#d71920;
    --ink:#151519;
    --muted:#737780;
    --line:#e8e9ed;
    --sidebar:256px;
    --top:70px
}

*{box-sizing:border-box}
body{margin:0}
a{color:#b71920;text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer}
button:focus-visible,a:focus-visible{outline:2px solid #ec343c}

/* SIDEBAR */

.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;padding:20px 16px 16px;background:radial-gradient(ellipse at 0 100%,#361217 0,transparent 45%),#141418;color:#fff;z-index:20;border-right:1px solid #2e2e32}
.brand{display:flex;align-items:center;gap:7px;color:white;padding:0 0 22px;text-decoration:none!important}
.brand img{width:51px;height:51px;object-fit:contain}
.brand strong{font-size:20px;letter-spacing:-.7px;white-space:nowrap}
.brand strong span,.auth-brand h1 span{color:#ff454b}
.brand small{display:block;font-size:8.5px;color:#a9a9b1;letter-spacing:.9px;margin-top:4px}
.workspace{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #39393f;border-radius:10px;background:#212126;margin-bottom:20px}
.workspace-icon{display:grid;place-items:center;width:34px;height:34px;background:#3b2226;color:#ff888c;border-radius:8px;font-weight:800}
.workspace b{font-size:11px;letter-spacing:.3px}
.workspace small,.side-bottom small{display:block;font-size:11px;color:#a0a0aa;margin-top:4px}
.sidebar nav{overflow:auto;flex:1;scrollbar-width:thin}
.nav-label{font-size:10px;color:#8f909a;letter-spacing:1.3px;font-weight:700;margin:17px 10px 8px}
.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 11px;border-radius:8px;color:#dbdbe1;font-weight:550;margin:3px 0;text-decoration:none}
.sidebar nav a:hover{background:#292930}
.sidebar nav a.active{background:linear-gradient(100deg,#a90c15,#e1242d);box-shadow:0 5px 18px #e4212929;color:white}
.ico{width:20px;height:20px;flex:none}
.side-bottom{border-top:1px solid #35353c;padding:16px 7px 0;margin-top:14px}
.side-bottom a{color:#d8d8dd;display:block;margin:12px 0;font-size:12px}
.status-line{display:flex;align-items:center;gap:7px;font-size:12px;color:#f2c2a0}
.status-line i,.pill i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}

/* HEADER */

.content-shell{margin-left:var(--sidebar)}
.topbar{position:fixed;top:0;left:var(--sidebar);right:0;height:var(--top);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 27px;gap:12px;z-index:10}
.crumb{color:#777b84;font-size:13px}
.crumb span{padding:0 8px;color:#afb0b8}
.crumb b{color:#24252a}
.top-right{display:flex;align-items:center;gap:11px}
.timezone{font-size:12px;color:var(--muted);margin-right:12px}
.avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:50%;background:#fce6e8;color:#ba1820;font-weight:800}
.profile b{font-size:13px}
.profile small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.mobile-menu{display:none}

/* MAIN CONTENT */

.main{padding:calc(var(--top) + 26px) 27px 22px;max-width:1600px;margin:auto}
.heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.heading h1{margin:5px 0 0;font-size:30px;letter-spacing:-1px}
.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#9a6266}
.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;font-size:11px;font-weight:650;border-radius:6px;background:#f0f1f4;color:#5f636e;white-space:nowrap}
.pill.pending{background:#fff2e3;color:#9a5318}
.pill.good{background:#e4f5eb;color:#167144}

/* DASHBOARD HERO */

.hero{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:220px;padding:28px 34px;background:radial-gradient(ellipse at 100% 15%,#92212a 0,transparent 42%),linear-gradient(115deg,#151519,#25252a 65%,#411219);color:white;border-radius:14px;overflow:hidden;margin-bottom:20px;box-shadow:0 5px 16px #14141812}
.hero .eyebrow{color:#d1a3a7}
.hero h2{font-size:36px;line-height:1.02;letter-spacing:-1.3px;margin:12px 0}
.hero h2 span{color:#ff6268}
.hero p{color:#d0cbd0;margin:0 0 20px}
.hero img{width:min(25%,210px);filter:drop-shadow(0 10px 20px #0008)}

/* BUTTONS */

.primary,.ghost{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:10px 15px;font-weight:650;font-size:13px;white-space:nowrap;line-height:1.3;text-decoration:none!important}
.primary{background:#d71920;color:white;border:1px solid #d71920}
.primary:hover{background:#b70e17}
.ghost{background:white;color:#45464e;border:1px solid #dfe0e5}
.ghost:hover{background:#f3f3f5}

/* METRIC CARDS */

.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.metric,.panel{background:white;border:1px solid #e5e6ea;border-radius:11px;box-shadow:0 3px 9px #18191d05}
.metric{padding:17px;position:relative;min-width:0}
.metric-icon{display:grid;place-items:center;width:35px;height:35px;background:#fff0f0;color:var(--red);border-radius:8px;margin-bottom:12px}
.metric p{margin:0;color:#646873;font-size:12px;font-weight:600}
.metric strong{display:block;margin:6px 0;font-size:30px;letter-spacing:-.9px}
.metric small{color:#888b95;font-size:11px}
.dash-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:15px}

/* PANELS */

.panel{margin-bottom:17px;min-width:0;overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px;border-bottom:1px solid var(--line)}
.panel-head h2{font-size:15px;margin:0;letter-spacing:-.2px}
.panel-head a{font-size:12px;font-weight:650}

/* TABLES */

.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}
th{color:#777b86;font-size:11px;font-weight:650;background:#fafafb}
th,td{padding:14px 16px;border-bottom:1px solid #f0f0f3}
td a{font-weight:600}
tbody tr:last-child td{border-bottom:0}
.empty{text-align:center;color:#888d98;padding:34px 15px}
.status-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-bottom:1px solid #f0f0f2}
.status-item:last-child{border:0}
.status-item b{font-size:13px}
.status-item small,.mapping small{display:block;font-size:11px;color:#858994;margin-top:5px}

/* QUICK ACTIONS */

.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:17px}
.quick-grid a{display:flex;align-items:center;gap:8px;background:#fafafa;border:1px solid #ececf0;border-radius:8px;color:#24252a;padding:13px;font-size:12px}
.quick-grid a .ico{color:#c21b22}
.quick-grid a span{margin-left:auto;color:#a0a0aa}

/* NOTICES */

.notice{background:#fff8ed;color:#784b1f;border:1px solid #f3dfc0;border-radius:8px;padding:12px 14px;margin-bottom:16px;font-size:13px;line-height:1.5}
.notice.error{background:#fff0f1;color:#9f1b24;border-color:#f5c7cc}
.muted{color:var(--muted);line-height:1.5}
.small{font-size:12px}
.pad{padding:20px}

/* FORMS */

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.form-grid label{display:flex;flex-direction:column;gap:7px;color:#34353b;font-size:12px;font-weight:650}
.wide{grid-column:1/-1}
input,select,textarea{width:100%;min-width:0;background:white;border:1px solid #dcdde3;border-radius:7px;color:#25252a;padding:11px 12px}
input:focus,textarea:focus,select:focus{border-color:#d71920;outline:1px solid #d71920}
textarea{resize:vertical}
.actions,.search{display:flex;align-items:center;gap:10px}
.search input{max-width:180px}
.mapping{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}
.mapping:last-child{border:0}
dl{display:grid;grid-template-columns:170px 1fr;gap:15px;line-height:1.5}
dt{color:#737780}
dd{margin:0;overflow-wrap:anywhere}
footer{display:flex;justify-content:space-between;gap:15px;color:#868995;font-size:11px;padding:10px 0}

/* LOGIN */

.auth-layout{min-height:100vh;display:grid;grid-template-columns:.85fr 1fr}
.auth-brand{background:radial-gradient(ellipse at 25% 75%,#4e171c,transparent 60%),#151519;color:white;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center}
.auth-brand img{width:190px;max-width:60%}
.auth-brand h1{font-size:37px;letter-spacing:-1.3px;margin:12px 0 0}
.auth-brand p{font-size:15px;color:#dedee2}
.auth-brand small{color:#9696a0}
.auth-panel{display:grid;place-items:center;padding:25px}
.auth-card{width:100%;max-width:550px;background:white;padding:32px;border:1px solid #e6e6ec;border-radius:14px;box-shadow:0 12px 35px #00000008}
.auth-card h1{font-size:29px;margin:10px 0;letter-spacing:-1px}
.auth-card form{margin-top:22px}
.auth-card .small{margin-top:22px}

/* RESPONSIVE BASE */

@media(max-width:1150px){
    .quick-grid{grid-template-columns:repeat(2,1fr)}
    .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dash-grid{grid-template-columns:1fr}
    .timezone{display:none}
}

@media(max-width:780px){
    :root{--top:62px}
    .sidebar{transform:translateX(-100%);transition:transform .2s}
    .sidebar.open{transform:translateX(0);box-shadow:15px 0 60px #0005}
    .content-shell{margin-left:0}
    .topbar{left:0;padding:0 14px;justify-content:flex-start}
    .top-right{margin-left:auto}
    .profile,.crumb span,.crumb b{display:none}
    .mobile-menu{display:inline-flex;background:#fff;border:1px solid #ddd;border-radius:6px;padding:7px 10px;font-size:18px;position:relative;z-index:21}
    .sidebar.open{top:var(--top)}
    .main{padding:calc(var(--top) + 17px) 14px 18px}
    .heading{align-items:flex-start}
    .heading h1{font-size:24px}
    .heading .pill{white-space:normal;font-size:10px}
    .hero{padding:22px;min-height:190px}
    .hero h2{font-size:28px}
    .hero p{font-size:12px}
    .hero img{width:25%}
    .metric{padding:13px}
    .metric strong{font-size:25px}
    .form-grid{grid-template-columns:1fr}
    .mapping{grid-template-columns:1fr}
    .mapping button{justify-self:start}
    .panel-head{flex-wrap:wrap;padding:15px}
    .pad{padding:15px}
    dl{grid-template-columns:1fr;gap:5px}
    dd{margin-bottom:10px}
    .auth-layout{grid-template-columns:1fr}
    .auth-brand{padding:20px}
    .auth-brand img{width:85px}
    .auth-brand h1{font-size:26px}
    .auth-brand p{margin:5px 0}
    .auth-panel{padding:15px}
    .auth-card{padding:23px}
    .quick-grid{gap:7px;padding:12px}
    .quick-grid a{padding:10px}
    footer{flex-direction:column}
}

/* COMPACT DASHBOARD & IMPORT CONTROLS */

.hero{min-height:150px;padding:22px 28px}
.hero h2{font-size:30px;line-height:1.15;margin:8px 0}
.hero p{margin-bottom:13px}
.hero img{width:min(19%,135px)}
.import-actions{display:flex;align-items:flex-end}
.export-form{margin-top:12px}
.metric{padding:15px}
.metric-icon{margin-bottom:8px}
.sidebar nav{min-height:0}
.sidebar .brand,.sidebar .workspace,.sidebar .side-bottom{flex-shrink:0}

@media(max-width:780px){
    .hero{min-height:140px;padding:18px}
    .hero h2{font-size:24px}
    .hero img{width:23%}
    .metric{padding:13px}
    .import-actions{align-items:flex-start}
}

/* CUSTOMER INBOX */

.inbox-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(260px,2.1fr) minmax(160px,.9fr);min-height:570px;background:#fff}
.inbox-list,.inbox-details{min-width:0;border-right:1px solid var(--line)}
.inbox-details{border-right:0;border-left:1px solid var(--line)}
.inbox-thread{min-width:0;display:flex;flex-direction:column}
.chat-link{display:flex;align-items:center;gap:10px;padding:12px;color:#222;border-top:1px solid var(--line);overflow-wrap:anywhere}
.chat-link.selected{background:#fff0f1;border-left:3px solid #d71920}
.chat-link small{display:block;color:#777;font-size:11px;margin-top:4px}
.inbox-new{margin-top:10px;width:100%}
.chat-messages{display:flex;flex-direction:column;gap:12px;padding:18px;background:#f5f5f7;min-height:330px;max-height:480px;overflow:auto;flex:1}
.bubble{max-width:85%;padding:11px 14px;border:1px solid #e6e6e9;background:white;border-radius:12px;align-self:flex-start;overflow-wrap:anywhere;white-space:normal}
.bubble.agent,.bubble.bot{align-self:flex-end;background:#fff0f1;border-color:#efd7d9}
.bubble small{display:block;color:#777;font-size:10px;margin:4px 0}
.chat-compose .actions{margin-top:10px;flex-wrap:wrap}
.quick-reply{display:block;width:100%;margin-bottom:8px;white-space:normal;text-align:left}
.form-grid .inline-check{display:flex;flex-direction:row;align-items:center}
.inline-check input{width:auto}
.sidebar nav{overflow-y:auto}
.chat-link .avatar{flex-shrink:0}

@media(max-width:1100px){
    .inbox-grid{grid-template-columns:minmax(160px,1fr) minmax(230px,2fr)}
    .inbox-details{grid-column:1/-1;border-top:1px solid var(--line)}
}

@media(max-width:700px){
    .inbox-grid{grid-template-columns:1fr}
    .inbox-list{max-height:320px;overflow:auto}
    .inbox-thread{border-top:1px solid var(--line)}
    .inbox-details{grid-column:auto}
}

/* VISUAL FLOW BUILDER */

.flow-workspace{display:grid;grid-template-columns:minmax(155px,.8fr) minmax(275px,2fr) minmax(150px,.8fr);gap:14px;margin-top:20px;align-items:start}
.flow-palette,.flow-preview{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff}
.flow-palette label,.flow-field{display:block;font-weight:600;font-size:12px;margin-top:12px}
.flow-palette select,.flow-field select,.flow-field input,.flow-field textarea{width:100%;padding:10px;border:1px solid #dcdde3;border-radius:7px;margin-top:5px;background:#fff;color:#17171a}
.flow-add{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:8px;text-align:left}
.flow-add span{color:var(--red);font-size:18px}
.flow-canvas{border:1px solid var(--line);border-radius:12px;background-color:#f3f4f6;background-image:radial-gradient(#d5d6dc 1px,transparent 1px);background-size:15px 15px;min-height:380px;padding:14px}
.flow-canvas-head,.flow-footer{display:flex;justify-content:space-between;align-items:center;gap:10px}
.flow-canvas-head{padding:5px 2px 14px}
.flow-nodes{display:grid;gap:13px}
.flow-node{border:1px solid #dcdde2;border-left:3px solid var(--red);border-radius:10px;padding:13px;background:#fff;box-shadow:0 3px 10px #14141809}
.flow-node-head{display:flex;align-items:center;gap:5px}
.flow-node-head b{flex:1;min-width:0}
.flow-grip{cursor:grab;border:0;background:none;font-size:20px;color:#72747e;padding:2px}
.flow-mini{padding:4px 7px!important;min-width:26px}
.flow-map-root{padding:10px;background:#151519;color:white;border-radius:7px;font-size:12px;margin-bottom:10px}
.flow-map-item{padding:9px 8px;border:1px solid var(--line);border-radius:7px;margin-bottom:8px;font-size:12px;overflow-wrap:anywhere}
.flow-map-item small{display:block;margin-top:6px}
.flow-footer{margin-top:20px;flex-wrap:wrap}
.flow-footer .primary:disabled{opacity:.5;cursor:not-allowed}

@media(max-width:1100px){
    .flow-workspace{grid-template-columns:minmax(145px,.7fr) minmax(230px,1.5fr)}
    .flow-preview{grid-column:1/-1}
    .flow-preview #flow-map{display:flex;flex-wrap:wrap;gap:8px}
    .flow-map-root,.flow-map-item{margin:0}
}

@media(max-width:700px){
    .flow-workspace{grid-template-columns:1fr}
    .flow-preview{grid-column:auto}
    .flow-palette{display:block}
    .flow-canvas{min-height:260px}
}

/* CAMPAIGN PLANNER */

.cp-progress{display:grid;gap:10px;margin-bottom:16px}
.cp-progress progress{width:100%;height:12px;accent-color:#d71920}
.cp-template{padding:16px;background:#f5f5f7;border:1px solid #e4e4e8;border-radius:10px;overflow-wrap:anywhere}
.cp-template p{margin-bottom:0}
.cp-actions{margin:16px 0;flex-wrap:wrap}
.cp-recipient-list{max-height:360px;overflow:auto;margin:12px 0}
.cp-check{width:18px!important;height:18px!important;min-height:0!important;accent-color:#d71920;vertical-align:middle}
.cp-attest{display:flex;align-items:flex-start;gap:10px;margin:18px 0}
.cp-attest input{flex-shrink:0}
.main button:disabled{opacity:.55;cursor:not-allowed}

/* STAFF WORKSPACE */

.staff-wrap{max-width:1250px;margin:28px auto;padding:0 22px}
.staff-logo{width:46px;height:46px;object-fit:contain}
.staff-wrap header.actions{justify-content:space-between;display:flex;align-items:center}
.staff-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,3fr);gap:18px}
.staff-messages{min-height:320px;max-height:55vh;overflow:auto;background:#f5f5f7;display:flex;flex-direction:column;gap:12px}
.staff-message{padding:12px 15px;border:1px solid #e2e2e7;background:white;border-radius:12px;max-width:88%;align-self:flex-start;overflow-wrap:anywhere}
.staff-message.agent,.staff-message.bot{align-self:flex-end;background:#fceff0;border-color:#f1d5d9}
.staff-message small{display:block;color:#777;margin-bottom:5px}
.sidebar nav{overscroll-behavior:contain;scrollbar-gutter:stable}

@media(max-width:720px){
    .staff-grid{grid-template-columns:1fr}
    .staff-wrap{margin:12px auto;padding:0 12px}
}

/* WHATSAPP NUMBER REGISTRY */

.number-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}
.number-grid .panel{min-width:0}
.number-qr{display:grid;gap:16px}
.qr-preview{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #e3e4e8;border-radius:12px;padding:12px}
.qr-preview canvas{width:min(100%,300px);height:auto;image-rendering:pixelated}
.number-qr input{width:100%}
.number-grid h3{margin:4px 0;font-size:15px}
.number-grid label small{font-weight:400}
.number-grid .actions{flex-wrap:wrap}
.sidebar nav a{padding-top:10px;padding-bottom:10px}
.sidebar nav .nav-label{margin-top:17px}

@media(max-width:1050px){
    .number-grid{grid-template-columns:1fr}
}

/* ==========================================
   SDD CONNECT PREMIUM UI REVISION
   PRESENTATION ONLY
========================================== */

:root{
    --sidebar:248px;
    --top:66px;
    --line:#e3e5e9;
    --red:#c91520;
    background:#f3f4f6;
    color:#17181c;
    font-size:14px
}

body{line-height:1.5}

[hidden]{display:none!important}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.sidebar{padding:17px 12px 12px;background:linear-gradient(170deg,#18191e 0%,#141418 70%,#25191d 100%)}
.brand{padding:1px 5px 16px;gap:8px}
.brand strong{font-size:19px}
.brand img{width:43px;height:43px}
.brand small{font-size:7.8px;letter-spacing:.7px}
.workspace{margin:0 3px 12px;padding:10px;background:#202126}
.nav-filter{padding:0 3px 6px;flex:none}
.nav-filter input{background:#23242a;border-color:#393b42;color:#fff;padding:8px 10px;font-size:12px}
.nav-filter input::placeholder{color:#a7a9b2}
.sidebar nav a{padding:9px 10px;gap:10px;font-size:13px;margin:2px 0;line-height:1.35}
.sidebar nav a .ico{width:17px;height:17px}
.sidebar nav .nav-label{margin:12px 9px 5px;font-size:9px;letter-spacing:1.4px}
.side-bottom{padding:10px 6px 0;margin-top:8px}
.side-bottom a{margin:5px 0}
.topbar{padding:0 26px}
.main{padding:calc(var(--top) + 22px) 26px 24px}
.heading{margin-bottom:16px}
.heading h1{font-size:29px;line-height:1.2;letter-spacing:-.9px}
.eyebrow{font-size:9px;color:#777b85;letter-spacing:1.45px}
.hero{border-radius:16px;min-height:155px;background:radial-gradient(ellipse at 96% 15%,#801923 0,transparent 54%),linear-gradient(110deg,#141519,#24242a 65%,#3a151a);padding:24px 28px}
.hero h2{font-size:32px;letter-spacing:-1.25px}
.hero .ghost{background:transparent;color:white;border-color:#77747b}
.hero .primary,.hero .ghost{display:inline-flex;margin:3px 4px 0 0}
.hero img{width:min(19%,140px)}
.metrics{gap:14px;margin-bottom:16px}
.metric,.panel{border-radius:13px;box-shadow:0 2px 6px #18191d04;border-color:#e3e5e9}
.metric{padding:17px}
.metric-icon{border-radius:10px;margin-bottom:11px}
.metric strong{font-size:32px;line-height:1.15;font-variant-numeric:tabular-nums}
.metric small{font-size:11px;color:#6c707b}
.panel{margin-bottom:16px;scroll-margin-top:calc(var(--top) + 14px)}
.panel-head{padding:15px 19px}
.panel-head h2{font-size:15px;font-weight:750}
.pad{padding:18px 19px}
.form-grid{gap:16px}
.form-grid>label{gap:6px}
.form-grid label:has(input[type=checkbox]){display:block}
.form-grid label>span:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:9px}
.form-grid label>span:has(input[type=checkbox]) input{margin-top:3px;flex:none}

input[type=checkbox],input[type=radio]{
    width:16px!important;
    height:16px!important;
    min-height:0!important;
    vertical-align:middle;
    accent-color:var(--red);
    padding:0;
    margin:0 5px 0 0;
    flex:none
}

input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:8px;border-color:#d9dce2}
.actions{flex-wrap:wrap}
.actions form:has(label){display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.actions form label{font-size:12px}
.primary,.ghost{border-radius:8px}
.module-info{border:1px solid #e0e3e9;background:#fafbfc;color:#535966;border-radius:9px;margin:0 0 14px;padding:9px 12px;font-size:12px}
.module-info summary{cursor:pointer;font-weight:650;color:#515766}
.module-info p{margin:8px 0 2px;line-height:1.6}
.module-info[open]{background:#fff}
.module-info summary:focus-visible{outline:2px solid #c91520}
.notice:not(.error){background:#f6f8fa;border-color:#dce1e7;color:#444c5b}
.notice.error{background:#fff0f1;color:#9f1b24}
.readiness-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:15px 19px 0}
.readiness-grid>div{border:1px solid var(--line);padding:10px 12px;border-radius:9px;display:flex;align-items:flex-start;flex-direction:column;gap:6px}
.readiness-grid small{color:#656a75;font-weight:600}
.dashboard-readiness>p{padding:0 19px 13px;margin:9px 0 0}
.module-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px;background:#fff;border:1px solid var(--line);padding:8px;border-radius:11px}
.module-tabs a{padding:8px 13px;border-radius:7px;font-size:13px;font-weight:650;color:#444}
.module-tabs a.selected{background:#fcecef;color:#ac121d}
.module-tabs .muted{margin-left:auto;padding:0 8px}
.chat-messages,.staff-messages{background-color:#f1f2f5;background-image:radial-gradient(#dfe1e7 0.65px,transparent 0.65px);background-size:16px 16px}
.bubble,.staff-message{box-shadow:0 2px 4px #17181c07}
.bubble.agent,.bubble.bot,.staff-message.agent,.staff-message.bot{background:#fff0f1}
.chat-link.selected{background:#fcecef}
.auth-card{border-radius:18px;padding:36px}
.staff-wrap .panel{border-radius:14px}
.quick-grid a{background:white;border-radius:10px}
.quick-grid a:hover{border-color:#d71920;text-decoration:none}
.pill{border-radius:6px}
.top-right .ghost{white-space:nowrap}
code{overflow-wrap:anywhere}
textarea{resize:vertical}

@media(max-width:1100px){
    .main{padding-left:18px;padding-right:18px}
    .readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .hero h2{font-size:28px}
}

@media(max-width:780px){
    :root{--top:62px}
    .sidebar{padding:12px;top:0}
    .sidebar.open{top:var(--top);bottom:0;max-height:calc(100dvh - var(--top))}
    .topbar{padding:0 12px}
    .main{padding:calc(var(--top) + 15px) 12px 18px}
    .heading h1{font-size:23px}
    .heading{flex-wrap:wrap;gap:7px}
    .hero{padding:17px;min-height:130px}
    .hero h2{font-size:24px}
    .hero img{width:22%}
    .metric{padding:12px}
    .metric strong{font-size:26px}
    .metrics{gap:9px}
    .panel-head,.pad{padding:13px}
    .readiness-grid{padding:12px 13px 0;gap:8px}
    .dashboard-readiness>p{padding:0 13px 12px}
    .module-tabs .muted{margin-left:0}
    .auth-card{padding:23px}
    .timezone{display:none}
    .top-right{gap:7px}
    .topbar .avatar{width:30px;height:30px}
    .actions form:has(label){align-items:flex-start;flex-direction:column}
}

@media(prefers-reduced-motion:reduce){
    *{scroll-behavior:auto!important;transition:none!important}
}

/* ==========================================
   SDD CONNECT — PREMIUM UI STEP 01
   BLACK + WHITE + RED + SILVER
   PRESENTATION ONLY
========================================== */

.shell .content-shell {
    min-width: 0;
    min-height: 100vh;
    background: #f5f6f8;
}

.shell .sidebar {
    background: #15161b;
    border-right: 1px solid #303138;
}

.shell .sidebar nav a.active {
    background: #c91520;
    box-shadow: 0 4px 12px #c9152026;
}

.shell .topbar {
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
}

.shell .main {
    max-width: 1600px;
}

.shell .heading h1 {
    font-weight: 750;
    letter-spacing: -.85px;
}

/* COMPACT PREMIUM HERO */

.shell .main > .hero {
    min-height: 132px;
    padding: 20px 26px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: linear-gradient(
        110deg,
        #15161b 0%,
        #24252b 72%,
        #451820 100%
    );
    border: 1px solid #34343c;
    box-shadow: 0 5px 14px #16171a0c;
}

.shell .main > .hero h2 {
    font-size: clamp(23px,2.3vw,32px);
    line-height: 1.18;
    letter-spacing: -1px;
    margin: 7px 0;
}

.shell .main > .hero p {
    margin: 0 0 10px;
    color: #dedee5;
}

.shell .main > .hero img {
    width: min(18%,112px);
    height: auto;
    flex-shrink: 0;
}

.shell .main > .hero .ghost {
    border-color: #8c8c96;
}

/* COMPACT METRIC CARDS */

.shell .main > .hero + .metrics .metric {
    min-height: 116px;
    padding: 17px 15px;
    padding-right: 52px;
}

.shell .main > .hero + .metrics .metric-icon {
    position: absolute;
    top: 15px;
    right: 13px;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid #f4d8dc;
    background: #fff1f2;
}

.shell .main > .hero + .metrics .metric strong {
    font-size: 29px;
    line-height: 1.15;
    margin: 7px 0 5px;
}

/* PROFESSIONAL PANELS */

.shell .main .metric,
.shell .main .panel {
    border: 1px solid #e1e4e9;
    border-radius: 12px;
    box-shadow: 0 3px 10px #17181c05;
}

.shell .main .panel-head {
    background: #fff;
    border-bottom-color: #e7e9ed;
    min-height: 52px;
}

.shell .main .panel-head h2 {
    font-size: 15px;
    font-weight: 750;
}

/* TABLE OVERFLOW FIX */

.shell .main .table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.shell .main .table-wrap td {
    max-width: 400px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.shell .main .table-wrap th {
    background: #f7f8fa;
}

.shell .main .table-wrap tbody tr:hover {
    background: #fafafb;
}

/* READINESS */

.shell .main .readiness-grid > div {
    background: #f8f9fb;
    border-color: #e5e7eb;
    border-radius: 9px;
}

/* QUICK ACTIONS */

.shell .main .quick-grid a {
    min-width: 0;
    border-color: #e1e4e9;
    overflow-wrap: anywhere;
}

.shell .main .quick-grid a:hover {
    background: #fff7f7;
    border-color: #c91520;
}

/* MOBILE RESPONSIVE */

@media (max-width: 780px) {

    .shell .main > .hero {
        padding: 17px;
        min-height: 0;
    }

    .shell .main > .hero img {
        width: 20%;
    }

    .shell .main > .hero + .metrics .metric {
        min-height: 108px;
        padding: 12px;
        padding-right: 38px;
    }

    .shell .main > .hero + .metrics .metric-icon {
        right: 8px;
        top: 10px;
        width: 26px;
        height: 26px;
    }

    .shell .main > .hero + .metrics .metric-icon .ico {
        width: 16px;
        height: 16px;
    }

    .shell .main > .hero + .metrics .metric strong {
        font-size: 25px;
    }

    .shell .main .table-wrap td {
        max-width: 250px;
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {

    .shell .main > .hero img {
        display: none;
    }

    .shell .main > .hero + .metrics .metric {
        padding-right: 12px;
    }

    .shell .main > .hero + .metrics .metric-icon {
        position: static;
        margin-bottom: 6px;
    }
}

/* END — SDD CONNECT PREMIUM UI */


/* SDD CONNECT Premium V2 — shared presentation, no sending changes. */
:root{--sidebar:260px;--top:70px;--red:#c90020;--line:#d5d9df;--ink:#14161b;--muted:#626b78;background:#eef0f3}
.shell .content-shell{background:#eef0f3}
.shell .sidebar{background:#14161b;border-color:#2b2d33;padding:17px 12px 12px}
.shell .brand{padding:4px 4px 16px}.shell .brand img{width:43px;height:43px}
.shell .workspace{border-radius:13px;background:#22252b;border-color:#353942}
.shell .nav-filter input{border-radius:10px;background:#202329;border-color:#3b3e46}
.shell .sidebar nav a{min-height:39px;padding:10px 11px;border-radius:10px;font-size:13px;line-height:1.35}
.shell .sidebar nav a.active{background:#c90020;box-shadow:0 4px 12px #c9002038}
.shell .sidebar .nav-label{color:#a7aab3;letter-spacing:1.25px}
.shell .topbar{border-bottom:1px solid #d5d9df;box-shadow:0 2px 8px #14161b06}
.shell .heading{margin-bottom:19px}.shell .heading h1{font-size:30px;letter-spacing:-1px;font-weight:800}
.shell .main{padding-top:calc(var(--top) + 23px)}
.shell .main .metric,.shell .main .panel{border:1.5px solid #d5d9df;border-radius:16px;box-shadow:0 3px 9px #14161b06}
.shell .main .panel-head{padding:17px 19px;border-bottom-color:#e1e4e9;flex-wrap:wrap}
.shell .main .panel-head h2{font-size:16px;font-weight:750;line-height:1.3}
.shell .main .panel-head a{color:#a9001c}
.shell .main .primary,.shell .main .ghost,.shell .topbar .ghost{border-radius:999px;min-height:36px;padding:9px 16px;white-space:normal}
.shell .main .primary{background:#c90020;border-color:#c90020;color:white}.shell .main .primary:hover{background:#aa001b}
.shell .main input:not([type=checkbox]):not([type=radio]):not([type=file]),.shell .main select,.shell .main textarea{border-radius:10px;border-color:#cfd4dc}
.shell .main .pill{border-radius:999px;white-space:normal;line-height:1.4}
.shell .main .table-wrap th{background:#f1f3f6;color:#555e6a;text-transform:uppercase;letter-spacing:.35px;font-size:10px}
.shell .main .table-wrap td{border-bottom-color:#e9ebef}
.shell .main .quick-grid a{border:1.5px solid #d5d9df;border-radius:12px;min-height:58px}
.shell .main .readiness-grid>div{border:1.5px solid #d5d9df;border-radius:12px}
.shell .main > .hero{border-radius:18px;padding:24px 28px;background:linear-gradient(120deg,#15161b,#25272e 72%,#401821);border:1px solid #343741;min-height:145px}
.shell .main > .hero h2{font-weight:800;letter-spacing:-1px}.shell .main > .hero img{width:min(18%,116px)}
.premium-dashboard .dash-jump{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 21px}
.premium-dashboard .dash-jump a{display:inline-flex;align-items:center;gap:7px;border:1.5px solid #d5d9df;border-radius:999px;background:white;color:#292d36;padding:8px 13px;font-size:12px;font-weight:650}
.premium-dashboard .dash-jump a:hover{border-color:#c90020;color:#c90020;text-decoration:none}.premium-dashboard .dash-jump .ico{width:16px;height:16px;color:#c90020}
.premium-dashboard .dash-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:21px 0 12px}
.premium-dashboard .dash-section-head h2{font-size:19px;line-height:1.25;margin:0;letter-spacing:-.35px;font-weight:800}.premium-dashboard .dash-section-head p{font-size:12px;color:#626b78;margin:4px 0 0}
.premium-dashboard [id]{scroll-margin-top:calc(var(--top) + 15px)}
.shell .premium-dashboard .premium-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.shell .premium-dashboard .premium-metrics .metric{padding:15px;min-height:140px;display:flex;flex-direction:column;align-items:flex-start}
.shell .premium-dashboard .premium-metrics .metric-icon{position:static;width:34px;height:34px;flex:none;border-radius:10px;background:#fff0f2;color:#c90020;margin:0 0 10px;border:1px solid #f6d9df}
.shell .premium-dashboard .premium-metrics .metric p{font-weight:700;line-height:1.35;color:#4d5561}.shell .premium-dashboard .premium-metrics .metric strong{font-size:30px;margin:5px 0;line-height:1.15;letter-spacing:-.7px;overflow-wrap:anywhere}.shell .premium-dashboard .premium-metrics .metric small{font-size:11px;color:#626b78;line-height:1.35;overflow-wrap:anywhere}
.trend-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#626b78}.trend-legend span{display:flex;align-items:center;gap:6px}.trend-legend i{width:10px;height:10px;border-radius:3px;background:#8993a2}.trend-legend span+span i{background:#c90020}
.premium-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:15px 0 10px}.trend-day{text-align:center;min-width:0}.trend-bars{display:flex;justify-content:center;align-items:flex-end;gap:5px;height:138px;background:repeating-linear-gradient(to top,transparent 0,transparent 33px,#e9ebef 33px,#e9ebef 34px);border-bottom:1px solid #d5d9df}.trend-bar{width:26%;max-width:25px;border-radius:5px 5px 0 0}.trend-bar.incoming{background:#8993a2}.trend-bar.outgoing{background:#c90020}.trend-day strong,.trend-day small{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.trend-day small{color:#626b78}.trend-day strong{margin-top:5px}
.auth-card{border:1.5px solid #d5d9df;border-radius:22px;box-shadow:0 10px 35px #14161b0b}.auth-card .primary{background:#c90020;border-color:#c90020;border-radius:999px;min-height:44px}
@media(max-width:1100px){.shell .premium-dashboard .premium-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .main .dash-grid{grid-template-columns:1fr}}
@media(max-width:780px){:root{--top:62px}.shell .main{padding:calc(var(--top) + 14px) 12px 18px}.shell .heading h1{font-size:24px}.shell .main > .hero{padding:17px;min-height:0}.shell .main .panel-head{padding:13px}.shell .premium-dashboard .premium-metrics{gap:9px}.shell .premium-dashboard .premium-metrics .metric{padding:12px;min-height:133px}.shell .premium-dashboard .premium-metrics .metric strong{font-size:26px}.premium-dashboard .dash-section-head h2{font-size:17px}.premium-dashboard .dash-jump{gap:6px}.premium-dashboard .dash-jump a{padding:7px 10px}.trend-bars{height:100px;gap:3px}.premium-chart{gap:4px}.shell .topbar .ghost{padding:7px 10px}.shell .topbar .crumb{min-width:0;overflow-wrap:anywhere}}
@media(max-width:360px){.shell .topbar .profile{display:none}.shell .main > .hero img{display:none}.shell .premium-dashboard .premium-metrics .metric{padding:10px}.trend-day strong,.trend-day small{font-size:10px}}

/* Premium V2.1 — sign-in and workspace chrome. Presentation only. */
.auth-layout{min-height:100vh;min-height:100dvh;grid-template-columns:minmax(0,.82fr) minmax(0,1fr);background:#eef0f3}
.auth-layout .auth-brand{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 12% 90%,#4c1520 0,transparent 52%),linear-gradient(140deg,#15161b,#22252d);border-right:1px solid #30333a;padding:40px 24px;gap:12px}
.auth-layout .auth-brand:before,.auth-layout .auth-brand:after{content:"";position:absolute;z-index:-1;pointer-events:none;border:1px solid #ffffff13;border-radius:50%;width:460px;height:460px;right:-220px;top:-200px}
.auth-layout .auth-brand:after{width:560px;height:560px;right:-270px;top:-250px}
.auth-layout .auth-brand img{width:150px;max-width:45%;height:auto;object-fit:contain;filter:drop-shadow(0 12px 22px #0005)}
.auth-layout .auth-brand h1{font-size:clamp(26px,3.2vw,46px);font-weight:800;line-height:1.1;letter-spacing:-1.4px;margin:0;overflow-wrap:anywhere}
.auth-layout .auth-brand h1 span{color:#ff5265}
.auth-layout .auth-brand p{font-size:15px;letter-spacing:.3px;margin:0;color:#e1e3e7}
.auth-layout .auth-brand small{font-size:11px;letter-spacing:1px;color:#bfc3ca;margin-top:12px}
.auth-layout .auth-panel{padding:32px;min-width:0;background:radial-gradient(ellipse at top right,#ffffff 0,transparent 65%),#eef0f3}
.auth-layout .auth-card{position:relative;overflow:hidden;width:100%;max-width:460px;padding:36px;border:1.5px solid #d5d9df;border-radius:24px;background:#fff;box-shadow:0 15px 45px #14161b0c}
.auth-layout .auth-card:before{content:"";display:block;width:46px;height:4px;border-radius:10px;background:#c90020;margin-bottom:21px}
.auth-layout .auth-card .eyebrow{color:#9e001a;font-size:10px;letter-spacing:1.4px}
.auth-layout .auth-card h1{font-size:32px;font-weight:800;letter-spacing:-1.1px;margin:9px 0 7px;line-height:1.2}
.auth-layout .auth-card .muted{color:#626b78}
.auth-layout .auth-card form{margin-top:24px;gap:18px}
.auth-layout .auth-card label{color:#30343d;font-size:13px;font-weight:650;gap:8px}
.auth-layout .auth-card input{min-height:49px;border:1.5px solid #cfd4dc;border-radius:11px;background:#fafbfc;padding:12px 14px;font-size:16px}
.auth-layout .auth-card input:focus{background:white;border-color:#c90020;outline:2px solid #c9002022;outline-offset:1px}
.auth-layout .auth-card .primary{min-height:49px;border-radius:999px;background:#c90020;border-color:#c90020;font-size:14px;box-shadow:0 5px 12px #c9002020}
.auth-layout .auth-card .primary:hover{background:#a9001c}
.auth-layout .auth-card .small{border-top:1px solid #e2e5e9;padding-top:17px;margin:23px 0 0;text-align:center;font-size:11px;line-height:1.6}
.shell .sidebar .workspace-icon{flex:none;border:1px solid #69404a;background:#42232c;color:#ff96a3;border-radius:11px}
.shell .sidebar .workspace{margin-bottom:11px;padding:11px 10px}
.shell .sidebar .nav-filter input{min-height:37px;padding:9px 10px}
.shell .sidebar nav a{position:relative;gap:10px;transition:background .15s,color .15s;overflow-wrap:anywhere}
.shell .sidebar nav a.active:before{content:"";position:absolute;left:3px;top:10px;bottom:10px;width:3px;border-radius:3px;background:#fff9}
.shell .sidebar nav a:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.shell .sidebar nav{scrollbar-color:#52545c transparent;scroll-padding:8px}
.shell .sidebar .side-bottom{padding:11px 7px 0;margin-top:9px}
.shell .topbar .top-right{min-width:0}
.shell .topbar .avatar{flex:none;border:1px solid #f5cdd5}
.shell .topbar .profile{min-width:0;max-width:150px}
.shell .topbar .profile b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shell .topbar .mobile-menu{align-items:center;justify-content:center;width:40px;height:40px;flex:none;border:1.5px solid #d5d9df;border-radius:12px;color:#14161b}
@media(max-width:780px){
 .auth-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
 .auth-layout .auth-brand{padding:23px 16px 22px;gap:7px;border-right:0;border-bottom:1px solid #30333a}
 .auth-layout .auth-brand img{width:66px;max-width:30%}
 .auth-layout .auth-brand h1{font-size:26px;letter-spacing:-.7px}
 .auth-layout .auth-brand p{font-size:12px}
 .auth-layout .auth-brand small{font-size:10px;margin-top:3px}
 .auth-layout .auth-panel{padding:18px 14px 25px;align-items:start}
 .auth-layout .auth-card{padding:25px 22px;border-radius:20px}
 .auth-layout .auth-card h1{font-size:27px}
 .auth-layout .auth-card:before{margin-bottom:16px}
 .auth-layout .auth-card form{gap:15px;margin-top:20px}
 .shell .sidebar{width:min(var(--sidebar),88vw);visibility:hidden;transition:transform .2s,visibility .2s}
 .shell .sidebar.open{visibility:visible}
 .shell .topbar .timezone{display:none}
 .shell .topbar .crumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
 .shell .topbar .crumb b{display:inline}
 .shell .topbar .crumb span{display:inline;padding:0 3px}
 .shell .topbar .top-right{flex:none;gap:6px;margin-left:0}
 .shell .topbar .ghost{font-size:11px;white-space:nowrap;padding:7px 10px}
}
@media(max-width:400px){.shell .topbar .crumb span,.shell .topbar .avatar{display:none}.shell .topbar .crumb{font-size:0}.shell .topbar .crumb b{font-size:13px}.auth-layout .auth-card{padding:21px 17px}}
@media(prefers-reduced-motion:reduce){.shell .sidebar,.shell .sidebar nav a{transition:none}}

/* SDD CONNECT V2.2 — Luxury silver / graphite / crimson finish.
   Visual overrides only. Existing routes, controls and responsive layout retained. */
:root{--line:#d0d2d7;--red:#c90020}
.shell .content-shell{background:radial-gradient(ellipse at 85% 0%,#fff 0,transparent 42%),linear-gradient(125deg,#e3e5e9,#f4f5f7 48%,#e8eaee);}
.shell .sidebar{background:radial-gradient(ellipse at 115% 92%,#75101e55,transparent 43%),linear-gradient(145deg,#212126 0%,#111114 48%,#1b1b20 100%);border-right:2px solid #4d4e55;box-shadow:4px 0 18px #10101424;}
.shell .brand{padding:6px 4px 17px;}.shell .brand img{filter:drop-shadow(0 4px 7px #0008)}
.shell .sidebar .workspace{background:linear-gradient(145deg,#303036,#19191e);border:1.5px solid #55565d;border-radius:15px;box-shadow:inset 0 1px 0 #ffffff12,0 5px 12px #0003;}
.shell .sidebar .nav-filter input{background:linear-gradient(#19191e,#25252b);border:1.5px solid #4a4b52;border-radius:12px;box-shadow:inset 0 2px 5px #0003;}
.shell .sidebar .nav-label{font-weight:750;color:#c1c1c8;}
.shell .sidebar nav a{border:1px solid transparent;min-height:40px;}
.shell .sidebar nav a:hover{background:#2c2d33;border-color:#40414a;}
.shell .sidebar nav a.active{background:linear-gradient(155deg,#ee1638 0%,#c50022 45%,#870014 100%);border:1px solid #ff667a;box-shadow:inset 0 1px 0 #ffffff40,0 4px 12px #be001e55;}
.shell .sidebar nav a.active:before{background:#fff;box-shadow:0 0 6px #fff6;}
.shell .topbar{background:linear-gradient(180deg,#fff,#f0f1f3);border-bottom:2px solid #cdd0d5;box-shadow:0 4px 15px #16171b13;}
.shell .topbar .avatar{background:linear-gradient(145deg,#db1737,#800012);border:1px solid #f45b70;color:white;box-shadow:0 3px 7px #96001824;}
.shell .topbar .ghost{background:linear-gradient(#35363b,#141418);border:1.5px solid #777980;color:#fff;box-shadow:inset 0 1px 0 #ffffff38,0 3px 7px #14141828;}
.shell .main .heading h1{font-weight:800;letter-spacing:-1.1px;}
.shell .main .panel,.shell .main .metric{border:2px solid #c8cbd1;border-radius:18px;box-shadow:inset 0 1px 0 #fff,0 3px 0 #a6a9b126,0 8px 20px #181b2420;background:#fff;}
.shell .main .panel-head{background:linear-gradient(135deg,#fff,#f0f1f3);border-bottom:1.5px solid #d3d5db;}
.shell .main .panel-head h2{font-weight:800;letter-spacing:-.3px;}
.shell .main .primary{background:linear-gradient(155deg,#e91737,#be0021 58%,#a0001a);border:1.5px solid #e82e49;color:#fff;box-shadow:inset 0 1px 0 #ffffff35,0 3px 7px #ad001d24;}
.shell .main .primary:hover{background:linear-gradient(155deg,#d71130,#970017);}
.shell .main .ghost{background:linear-gradient(#fff,#eceef1);border:1.5px solid #bfc2c9;box-shadow:inset 0 1px 0 #fff,0 2px 5px #14161b12;}
.shell .main button:disabled,.shell .main input:disabled,.shell .main select:disabled{opacity:.58;cursor:not-allowed;}
.shell .main input:not([type=checkbox]):not([type=radio]):not([type=file]),.shell .main select,.shell .main textarea{border:1.5px solid #c8cbd2;border-radius:11px;}
.shell .main .quick-grid a,.shell .main .readiness-grid>div{border:1.5px solid #c8cbd2;background:linear-gradient(145deg,#fff,#f3f4f6);box-shadow:0 3px 6px #15151a0d;border-radius:13px;}
.shell .main .pill.good{border:1px solid #b4dcc4;}.shell .main .pill.pending{border:1px solid #edcda7;}
/* Dashboard hero: layered CSS lighting, actual existing logo retained. */
.shell .premium-dashboard > .hero{position:relative;isolation:isolate;overflow:hidden;min-height:180px;padding:26px 29px;border:2px solid #d5d6db;border-radius:21px;background:radial-gradient(ellipse at 88% 85%,#7f001d 0,transparent 42%),linear-gradient(112deg,#101013 0%,#252529 49%,#33040e 100%);box-shadow:inset 0 1px 0 #ffffff38,0 4px 0 #77798245,0 10px 23px #18151d33;}
.shell .premium-dashboard > .hero:before{content:"";position:absolute;z-index:-1;pointer-events:none;width:75%;height:260%;right:-24%;top:-180%;border-radius:50%;border:2px solid #ff3d5a9c;background:linear-gradient(140deg,#ffffff24,transparent 55%,#e6002930);box-shadow:0 10px 38px #e9003c45;transform:rotate(-22deg);}
.shell .premium-dashboard > .hero:after{content:"";position:absolute;z-index:-1;pointer-events:none;width:62%;height:65%;right:-16%;bottom:-45%;border-radius:50%;border-top:2px solid #e83351;box-shadow:0 -7px 25px #f0003850;transform:rotate(-9deg);}
.shell .premium-dashboard > .hero>div{min-width:0;}
.shell .premium-dashboard > .hero h2{font-size:clamp(26px,3vw,39px);line-height:1.12;letter-spacing:-1.3px;margin:8px 0 10px;}
.shell .premium-dashboard > .hero h2 span{color:#ff4960;}
.shell .premium-dashboard > .hero .eyebrow{color:#e2d2d5;letter-spacing:2px;}
.shell .premium-dashboard > .hero p{color:#e0e0e6;margin-bottom:16px;}
.shell .premium-dashboard > .hero img{width:min(23%,155px);filter:drop-shadow(0 12px 16px #0009) drop-shadow(0 5px 13px #ed002c55);}
.shell .premium-dashboard > .hero .ghost{background:linear-gradient(#39393e,#151518);color:#fff;border-color:#a5a6af;box-shadow:inset 0 1px 0 #ffffff28,0 3px 8px #0004;}
.premium-dashboard .dash-jump a{border:1.5px solid #c5c8ce;background:linear-gradient(#fff,#f0f1f3);box-shadow:inset 0 1px 0 #fff,0 3px 7px #191b2420;padding:9px 14px;font-weight:700;}
.premium-dashboard .dash-section-head h2{font-size:21px;letter-spacing:-.6px;}
/* Dark metallic metric cards — confined to the dashboard. */
.shell .premium-dashboard .premium-metrics{gap:15px;}
.shell .premium-dashboard .premium-metrics .metric{isolation:isolate;overflow:hidden;min-height:158px;padding:16px;border:2px solid #c9cbd1;border-radius:17px;background:radial-gradient(ellipse at 113% 115%,#85051d 0,transparent 48%),linear-gradient(140deg,#37373d 0%,#1b1b20 38%,#131316 74%,#25252b 100%);box-shadow:inset 0 0 0 1px #ffffff29,0 3px 0 #8b8d9580,0 7px 15px #17182029;}
.shell .premium-dashboard .premium-metrics .metric:after{content:"";position:absolute;z-index:-1;pointer-events:none;width:125px;height:125px;border:1px solid #fa2f4d80;border-radius:50%;right:-79px;bottom:-48px;box-shadow:0 0 20px #e6002b28;}
.shell .premium-dashboard .premium-metrics .metric-icon{width:36px;height:36px;border:1px solid #f15a70;background:linear-gradient(145deg,#e21b39,#920017);color:#fff;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff42,0 3px 8px #0005;margin-bottom:10px;}
.shell .premium-dashboard .premium-metrics .metric p{color:#f5f5f7;font-size:13px;font-weight:700;}
.shell .premium-dashboard .premium-metrics .metric strong{color:#fff;font-size:34px;font-weight:800;letter-spacing:-1px;}
.shell .premium-dashboard .premium-metrics .metric small{color:#d1d2d8;font-size:12px;}
/* Silver table shell, graphite column headings, readable data rows. */
.shell .main .table-wrap th{background:linear-gradient(#35363d,#202126);color:#f7f7f9;border-bottom:1px solid #53545e;letter-spacing:.75px;}
.shell .main .table-wrap td{border-bottom-color:#dfe1e6;}
.shell .main .table-wrap tbody tr:nth-child(even){background:#f7f8fa;}
.shell .main .table-wrap tbody tr:hover{background:#fff1f3;}
.shell .premium-dashboard .panel>.table-wrap{width:auto;margin:0 9px 9px;border:1px solid #c9ccd2;border-radius:10px;}
.auth-layout .auth-card{border:2px solid #c8cbd1;box-shadow:inset 0 1px 0 #fff,0 5px 0 #afb1b835,0 15px 35px #17181b20;}
.auth-layout .auth-card .primary{background:linear-gradient(155deg,#e91737,#a0001a);border:1.5px solid #e82e49;box-shadow:inset 0 1px 0 #ffffff35,0 4px 10px #ad001d30;}
@media(max-width:1100px){.shell .premium-dashboard .premium-metrics{gap:12px;}}
@media(max-width:780px){.shell .premium-dashboard > .hero{min-height:0;padding:17px;border-radius:17px;}.shell .premium-dashboard > .hero h2{font-size:26px;}.shell .premium-dashboard > .hero img{width:20%;}.shell .premium-dashboard .premium-metrics{gap:10px;}.shell .premium-dashboard .premium-metrics .metric{min-height:146px;padding:12px;border-radius:15px;}.shell .premium-dashboard .premium-metrics .metric strong{font-size:28px;}.shell .premium-dashboard .premium-metrics .metric p{font-size:12px;}.shell .premium-dashboard .premium-metrics .metric small{font-size:11px;}.shell .main .panel{border-radius:15px;}.premium-dashboard .dash-jump a{padding:8px 10px;}.premium-dashboard .dash-section-head h2{font-size:18px;}.shell .premium-dashboard > .hero .primary,.shell .premium-dashboard > .hero .ghost{margin-top:5px;}.shell .premium-dashboard .panel>.table-wrap{margin:0 6px 6px;}}
@media(max-width:360px){.shell .premium-dashboard > .hero img{display:none;}.shell .premium-dashboard .premium-metrics .metric{padding:10px;}.shell .premium-dashboard .premium-metrics .metric strong{font-size:26px;}}
@media(prefers-reduced-motion:reduce){.shell *{transition:none!important;scroll-behavior:auto!important;}}

/* V2.3 remaining modules, visual-only; approved V2.2 rules above unchanged. */
.shell .batch-workspace .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.shell .batch-workspace .metrics .metric{padding:15px;min-height:140px;display:flex;flex-direction:column;align-items:flex-start}
.shell .batch-workspace .metrics .metric-icon{position:static;width:34px;height:34px;flex:none;border-radius:10px;background:#fff0f2;color:#c90020;margin:0 0 10px;border:1px solid #f6d9df}
.shell .batch-workspace .metrics .metric p{font-weight:700;line-height:1.35;color:#4d5561}.shell .batch-workspace .metrics .metric strong{font-size:30px;margin:5px 0;line-height:1.15;letter-spacing:-.7px;overflow-wrap:anywhere}.shell .batch-workspace .metrics .metric small{font-size:11px;color:#626b78;line-height:1.35;overflow-wrap:anywhere}
.shell .batch-workspace .metrics{gap:15px;}
.shell .batch-workspace .metrics .metric{isolation:isolate;overflow:hidden;min-height:158px;padding:16px;border:2px solid #c9cbd1;border-radius:17px;background:radial-gradient(ellipse at 113% 115%,#85051d 0,transparent 48%),linear-gradient(140deg,#37373d 0%,#1b1b20 38%,#131316 74%,#25252b 100%);box-shadow:inset 0 0 0 1px #ffffff29,0 3px 0 #8b8d9580,0 7px 15px #17182029;}
.shell .batch-workspace .metrics .metric:after{content:"";position:absolute;z-index:-1;pointer-events:none;width:125px;height:125px;border:1px solid #fa2f4d80;border-radius:50%;right:-79px;bottom:-48px;box-shadow:0 0 20px #e6002b28;}
.shell .batch-workspace .metrics .metric-icon{width:36px;height:36px;border:1px solid #f15a70;background:linear-gradient(145deg,#e21b39,#920017);color:#fff;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff42,0 3px 8px #0005;margin-bottom:10px;}
.shell .batch-workspace .metrics .metric p{color:#f5f5f7;font-size:13px;font-weight:700;}
.shell .batch-workspace .metrics .metric strong{color:#fff;font-size:34px;font-weight:800;letter-spacing:-1px;}
.shell .batch-workspace .metrics .metric small{color:#d1d2d8;font-size:12px;}
.shell .batch-workspace .module-hero{margin-bottom:22px;min-height:170px}.shell .batch-workspace .module-hero .actions{gap:9px;flex-wrap:wrap}.shell .batch-workspace .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.shell .batch-workspace .metric{min-width:0}.shell .batch-workspace .metric strong{overflow-wrap:anywhere}.shell .batch-workspace .panel{margin-bottom:18px;min-width:0}.shell .batch-workspace .panel-head{gap:12px;flex-wrap:wrap}.shell .batch-workspace .panel-head h2{min-width:0;overflow-wrap:anywhere}.shell .batch-workspace .form-grid{gap:16px}.shell .batch-workspace .form-grid>label{min-width:0}.shell .batch-workspace input:not([type=checkbox]):not([type=radio]),.shell .batch-workspace textarea,.shell .batch-workspace select{max-width:100%}.shell .batch-workspace .module-tabs{gap:8px;flex-wrap:wrap}.shell .batch-workspace .module-tabs a{border:1.5px solid #bfc2c9;border-radius:999px;padding:10px 14px;background:linear-gradient(#fff,#eceef1)}.shell .batch-workspace .module-tabs a.selected{background:linear-gradient(145deg,#e91737,#a0001a);color:#fff;border-color:#e82e49}.shell .batch-workspace .cp-template{border:2px solid #c8cbd1;border-radius:15px;background:linear-gradient(145deg,#fff,#f0f1f3);padding:16px;box-shadow:0 4px 10px #17181b12;overflow-wrap:anywhere}.shell .batch-workspace .cp-progress progress{width:100%;accent-color:#c90020}.shell .batch-workspace .module-info{border:1.5px solid #c8cbd1;border-radius:13px}.shell .batch-workspace .batch-report-section{scroll-margin-top:calc(var(--top) + 15px)}
@media(max-width:1100px){.shell .batch-workspace .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:780px){.shell .batch-workspace .module-hero{min-height:0}.shell .batch-workspace .metrics{gap:10px}.shell .batch-workspace .metrics .metric{min-height:140px;padding:12px;border-radius:15px}.shell .batch-workspace .metrics .metric strong{font-size:28px}.shell .batch-workspace .metrics .metric p{font-size:12px}.shell .batch-workspace .metrics .metric small{font-size:11px}.shell .batch-workspace .panel-head{align-items:flex-start}.shell .batch-workspace .cp-template{padding:12px}}
