*{box-sizing:border-box}
:root{
  --bg:#f4f6fa;--surface:#fff;--surface-soft:#f8fafc;
  --sidebar:#0c1424;--sidebar-soft:#152033;--sidebar-line:#26334a;
  --text:#172033;--muted:#697386;--line:#e4e8ef;
  --accent:#243b64;--accent-hover:#1d3154;
  --success:#16835a;--success-soft:#edf9f4;
  --warning:#9d651b;--warning-soft:#fff7e9;
  --danger:#a53c3c;--danger-soft:#fff1f1;
  --shadow:0 14px 36px rgba(26,38,64,.08)
}
html,body{
  margin:0;min-height:100%;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);background:var(--bg)
}
body{min-height:100vh}
button,textarea,input{font:inherit}
.login-screen{
  display:grid;min-height:100vh;place-items:center;padding:32px;
  background:
    radial-gradient(circle at 12% 16%,rgba(83,119,175,.24),transparent 30%),
    radial-gradient(circle at 88% 82%,rgba(26,131,90,.12),transparent 28%),
    #0c1424
}
.login-panel{
  width:min(100%,520px);padding:32px;color:var(--text);background:rgba(255,255,255,.98);
  border:1px solid rgba(255,255,255,.45);border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.26)
}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:30px}
.login-brand .brand-subtitle{color:var(--muted)}
.login-copy h1{margin:5px 0 8px;font-size:27px;letter-spacing:-.02em}
.login-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.login-form{display:grid;gap:14px;margin-top:24px}
.login-form label{display:grid;gap:6px}
.login-form label>span{color:#4d5b70;font-size:11px;font-weight:750}
.login-form input{
  width:100%;padding:11px 12px;color:var(--text);background:#fff;border:1px solid #d7deE8;
  border-radius:10px;outline:none
}
.login-form input:focus{border-color:#6782aa;box-shadow:0 0 0 3px rgba(60,91,137,.12)}
.login-form>button{
  padding:11px 14px;color:#fff;font-weight:750;cursor:pointer;background:var(--accent);
  border:0;border-radius:10px
}
.login-form>button:disabled{cursor:wait;opacity:.58}
.login-error{padding:9px 11px;color:#8d3434;font-size:11px;background:var(--danger-soft);border:1px solid #efcccc;border-radius:9px}
.demo-account-divider{display:flex;align-items:center;gap:10px;margin:24px 0 12px;color:#8390a2;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.demo-account-divider::before,.demo-account-divider::after{content:"";height:1px;flex:1;background:#e2e7ee}
.demo-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.demo-account{
  display:flex;gap:9px;align-items:center;padding:10px;text-align:left;cursor:pointer;background:#f8fafc;
  border:1px solid #e1e6ed;border-radius:11px
}
.demo-account:hover{background:#f1f5f9;border-color:#cdd6e2}
.demo-account-mark{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;color:#fff;font-size:10px;font-weight:850;border-radius:9px}
.demo-account-mark.bank{background:#244d7c}.demo-account-mark.telecom{background:#476071}
.demo-account strong,.demo-account small{display:block}.demo-account strong{font-size:10px}.demo-account small{margin-top:2px;color:var(--muted);font-size:8px}
.login-footnote{margin:15px 0 0;color:#8994a3;font-size:9px;line-height:1.5;text-align:center}
.app-shell{display:grid;grid-template-columns:286px 1fr;min-height:100vh}
.sidebar{
  display:flex;flex-direction:column;gap:22px;padding:22px 18px;color:#fff;
  background:radial-gradient(circle at 0 0,rgba(73,103,153,.24),transparent 34%),var(--sidebar)
}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  display:grid;place-items:center;width:42px;height:42px;border-radius:12px;
  background:linear-gradient(145deg,#fff,#dbe4f3);color:#111b2d;
  font-weight:850;box-shadow:0 7px 18px rgba(0,0,0,.16)
}
.brand-mark{overflow:hidden}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}
.brand-title{font-size:15px;font-weight:760}
.brand-subtitle{margin-top:2px;color:#98a5b9;font-size:12px}
.new-chat-btn{
  display:flex;align-items:center;gap:8px;width:100%;padding:11px 13px;color:#fff;
  text-align:left;cursor:pointer;background:#172237;border:1px solid #2a3850;border-radius:10px
}
.new-chat-btn:hover{background:#1d2a40}
.side-section{display:flex;flex-direction:column;gap:8px}
.section-title{
  margin:0 3px 3px;color:#7f8da3;font-size:10px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase
}
.destination-card{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;
  padding:11px;cursor:pointer;border:1px solid transparent;border-radius:11px
}
.destination-card:hover,.destination-card.active{background:var(--sidebar-soft);border-color:var(--sidebar-line)}
.destination-card input{accent-color:#fff}
.destination-title{font-size:13px;font-weight:650}
.destination-subtitle{margin-top:2px;color:#8e9bb0;font-size:11px}
.route-pill{padding:3px 7px;color:#9ba8bb;font-size:9px;border:1px solid #34425a;border-radius:999px}
.route-online{color:#66d9a5;border-color:rgba(52,211,153,.28)}
.sidebar-spacer{flex:1}
.tenant-summary{padding:12px;background:rgba(19,32,52,.88);border:1px solid #25334b;border-radius:12px}
.tenant-summary-label{margin-bottom:6px;color:#7f8da3;font-size:8px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.tenant-summary strong{display:block;font-size:12px}.tenant-summary>span{display:block;margin-top:3px;color:#9ba8ba;font-size:9px}
.tenant-summary-meta{display:flex;justify-content:space-between;gap:6px;margin-top:10px;padding-top:9px;color:#7f91a8;font-size:8px;border-top:1px solid #293750}
.security-card{
  display:flex;gap:11px;align-items:flex-start;padding:13px;background:rgba(19,32,52,.88);
  border:1px solid #25334b;border-radius:12px
}
.shield-icon,.mini-shield{
  display:grid;place-items:center;flex:0 0 auto;color:#64deb0;font-weight:800;background:#123b31;border-radius:9px
}
.shield-icon{width:31px;height:31px}
.security-title{font-size:12px;font-weight:720}
.security-subtitle{margin-top:3px;color:#8998ad;font-size:10px;line-height:1.4}
.main{display:flex;flex-direction:column;min-width:0;min-height:100vh}
.topbar{
  display:flex;flex:0 0 82px;align-items:center;justify-content:space-between;padding:0 30px;
  background:rgba(255,255,255,.92);border-bottom:1px solid var(--line)
}
.eyebrow{
  margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase
}
.topbar h1{margin:0;font-size:19px}
.top-status{
  display:flex;gap:8px;align-items:center;padding:7px 11px;color:#197b56;font-size:12px;font-weight:700;
  background:var(--success-soft);border:1px solid #d9f1e8;border-radius:999px
}
.admin-control-link{
  padding:7px 10px;color:#31506f;font-size:11px;font-weight:750;text-decoration:none;
  background:#eef4fb;border:1px solid #d9e6f3;border-radius:9px;white-space:nowrap
}
.status-dot{width:8px;height:8px;background:#2ec68d;border-radius:50%;box-shadow:0 0 0 3px rgba(46,198,141,.11)}
.chat-area{flex:1;padding:34px 30px 22px;overflow-y:auto}
.empty-state{max-width:650px;margin:11vh auto 0;text-align:center}
.hero-icon{
  display:grid;place-items:center;width:56px;height:56px;margin:0 auto 17px;color:#fff;font-size:25px;
  background:linear-gradient(145deg,#2d4878,#1b2e50);border-radius:17px;box-shadow:var(--shadow)
}
.empty-state h2{margin:0 0 8px;font-size:27px}
.empty-state>p{max-width:570px;margin:0 auto;color:var(--muted);font-size:14px;line-height:1.65}
.tenant-policy-profile{
  margin:20px auto 0;padding:14px 16px;text-align:left;background:#fff;border:1px solid var(--line);
  border-radius:13px;box-shadow:0 7px 22px rgba(24,36,60,.045)
}
.tenant-policy-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tenant-policy-profile-heading span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.tenant-policy-profile-heading strong{font-size:12px}
.tenant-policy-profile p{margin:7px 0 10px;color:var(--muted);font-size:11px;line-height:1.45}
.tenant-policy-routes{display:flex;gap:7px;flex-wrap:wrap}
.tenant-policy-route{padding:5px 8px;color:#35506f;font-size:9px;font-weight:700;background:#edf3fa;border-radius:999px}
.tenant-policy-route[data-action="PRIVATE_ROUTE"]{color:#176b51;background:#e7f5ee}
.tenant-policy-route[data-action="SANITIZE_AND_ROUTE"]{color:#725619;background:#fff2d6}
.tenant-policy-route[data-action="BLOCK"]{color:#8b3535;background:#fdecec}
.starter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:27px}
.starter{
  padding:14px;text-align:left;cursor:pointer;background:var(--surface);border:1px solid var(--line);
  border-radius:12px;box-shadow:0 5px 16px rgba(24,36,60,.035)
}
.starter:hover{transform:translateY(-1px);border-color:#cfd7e3}
.starter strong{display:block;margin-bottom:3px;font-size:12px}
.starter span{color:var(--muted);font-size:10px}
.message{display:flex;max-width:900px;margin:0 auto 20px;flex-direction:column}
.message.user{align-items:flex-end}
.message.assistant{align-items:flex-start}
.message-header{display:flex;gap:8px;align-items:center;margin:0 3px 6px;color:var(--muted);font-size:10px}
.message-role{color:#36445c;font-weight:700}
.message-destination{padding:2px 6px;color:#526683;background:#edf2f8;border-radius:999px}
.bubble{font-size:14px;line-height:1.65;border-radius:16px}
.user .bubble{
  max-width:74%;padding:13px 16px;color:#fff;white-space:pre-wrap;background:var(--accent);
  box-shadow:0 8px 18px rgba(36,59,100,.13);border-bottom-right-radius:5px
}
.assistant .bubble{
  width:min(88%,820px);padding:16px 18px;background:var(--surface);border:1px solid var(--line);
  box-shadow:0 5px 18px rgba(25,35,55,.04);border-bottom-left-radius:5px
}
.message.blocked .bubble{color:#842f2f;background:var(--danger-soft);border-color:#f1cccc}

/* Decision card */
.decision-card{
  width:min(92%,850px);margin:4px auto 24px;padding:17px;background:#fff;border:1px solid #dce3ec;
  border-radius:15px;box-shadow:0 12px 32px rgba(23,34,55,.07)
}
.decision-top{display:flex;gap:11px;align-items:flex-start;margin-bottom:13px}
.decision-icon{
  display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;color:#8a5a18;
  background:#fff0d0;border-radius:10px;font-weight:850
}
.decision-title{font-size:14px;font-weight:760}
.decision-message{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.5}
.decision-detections{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 13px 45px}
.decision-badge{
  padding:4px 8px;color:#76591f;font-size:9px;background:#fff2d6;border:1px solid #f0dfbd;border-radius:999px
}
.transform-preview{
  margin:0 0 14px 45px;padding:10px 11px;background:#f6f9fd;border:1px solid #e0e8f2;border-radius:10px
}
.transform-preview-title{
  margin-bottom:7px;color:#60728d;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase
}
.transform-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:10px}
.transform-type{font-weight:720;color:#3e526e}
.transform-arrow{color:#8a99ac}
.transform-token{
  padding:3px 6px;font-family:"SFMono-Regular",Consolas,monospace;font-size:9px;
  color:#31506f;background:#e6eef8;border-radius:5px
}
.decision-question{margin:12px 0 8px;font-size:11px;font-weight:720}
.option-grid{display:grid;gap:8px}
.option-button{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;width:100%;padding:12px;
  text-align:left;cursor:pointer;background:#fafbfd;border:1px solid #e2e7ee;border-radius:11px
}
.option-button:hover{border-color:#bfcbd9;background:#f7f9fc}
.option-radio{width:16px;height:16px;border:2px solid #a7b2c1;border-radius:50%}
.option-title{display:block;font-size:11px;font-weight:740}
.option-description{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45}
.option-tag{padding:3px 7px;color:#287050;font-size:8px;font-weight:720;background:#e8f5ef;border-radius:999px}
.option-button.cancel .option-title{color:#8f4141}

/* New post-choice protection card */
.protection-card{
  width:min(88%,820px);margin:-5px 0 12px;padding:14px;background:#f7fbff;
  border:1px solid #d9e6f3;border-radius:12px
}
.protection-card.private{
  background:#f5faf7;border-color:#d9eadf
}
.protection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.protection-head-left{display:flex;gap:9px;align-items:center}
.protection-symbol{
  display:grid;place-items:center;width:28px;height:28px;color:#376286;background:#e5eff9;border-radius:8px;font-weight:850
}
.protection-card.private .protection-symbol{color:#26704f;background:#e0f1e7}
.protection-head strong{display:block;font-size:11px}
.protection-head span{display:block;margin-top:2px;color:var(--muted);font-size:9px}
.protection-destination{
  padding:4px 7px;color:#536b87;font-size:8px;background:#edf3f9;border-radius:999px
}
.protection-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}
.protection-cell{
  min-height:56px;padding:9px;background:#fff;border:1px solid #e5ebf1;border-radius:8px
}
.protection-label{
  display:block;margin-bottom:5px;color:var(--muted);font-size:8px;letter-spacing:.05em;text-transform:uppercase
}
.protection-value{font-size:10px;font-weight:700;color:#354861}
.protection-token{
  display:inline-block;padding:3px 6px;font-family:"SFMono-Regular",Consolas,monospace;font-size:9px;
  color:#31506f;background:#e8f0fa;border-radius:5px
}
.protection-arrow{color:#7388a1;font-size:18px}
.protection-foot{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px
}
.protection-foot-item{
  padding:8px 9px;color:#5d6d80;font-size:9px;line-height:1.4;background:#fff;border:1px solid #e5ebf1;border-radius:8px
}
.protection-foot-item strong{display:block;margin-bottom:2px;color:#3a4d65;font-size:8px;text-transform:uppercase}

/* Existing security notice */
.security-notice{
  display:grid;grid-template-columns:auto 1fr;gap:11px;width:min(88%,820px);margin:-8px 0 11px;
  padding:11px 13px;border:1px solid;border-radius:11px
}
.notice-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;font-weight:800}
.notice-copy strong{display:block;margin-bottom:2px;font-size:11px}
.notice-copy span{display:block;font-size:10px;line-height:1.45}
.notice-protected,.notice-safe{color:#27684f;background:var(--success-soft);border-color:#d6eee4}
.notice-protected .notice-icon,.notice-safe .notice-icon{color:#177954;background:#dff3ea}
.notice-approval{color:#805519;background:var(--warning-soft);border-color:#f2dfbb}
.notice-blocked{color:#8d3434;background:var(--danger-soft);border-color:#efcccc}

.typing{display:inline-flex;gap:4px;align-items:center;min-height:22px}
.typing span{width:6px;height:6px;background:#8591a3;border-radius:50%;animation:typing 1.2s infinite ease-in-out}
.typing span:nth-child(2){animation-delay:.14s}.typing span:nth-child(3){animation-delay:.28s}
@keyframes typing{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}

.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}
.markdown p{margin:.7em 0}.markdown h1,.markdown h2,.markdown h3{margin:1.2em 0 .55em;line-height:1.25}
.markdown h1{font-size:20px}.markdown h2{font-size:17px}.markdown h3{font-size:15px}
.markdown ul,.markdown ol{margin:.7em 0;padding-left:1.45em}.markdown li{margin:.3em 0}
.markdown code{padding:2px 5px;color:#273953;font-family:"SFMono-Regular",Consolas,monospace;font-size:12px;background:#eef2f7;border-radius:5px}
.markdown pre{margin:.9em 0;padding:14px;overflow:auto;color:#eaf0f8;background:#111827;border-radius:10px}
.markdown pre code{padding:0;color:inherit;background:transparent}
.markdown table{width:100%;margin:1em 0;font-size:12px;border-collapse:collapse;border:1px solid var(--line)}
.markdown th,.markdown td{padding:8px 9px;text-align:left;vertical-align:top;border:1px solid var(--line)}
.markdown th{background:#f4f7fa;font-weight:700}

.security-panel{
  width:calc(100% - 60px);max-width:900px;margin:0 auto 14px;overflow:hidden;background:var(--surface);
  border:1px solid var(--line);border-radius:13px
}
.security-toggle{
  display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 13px;
  color:var(--text);cursor:pointer;background:transparent;border:0
}
.security-toggle-left{display:flex;gap:9px;align-items:center;text-align:left}
.security-toggle-left>div{display:flex;flex-direction:column}
.security-toggle-left strong{font-size:11px}
.security-toggle-left span:not(.mini-shield){margin-top:2px;color:var(--muted);font-size:9px}
.mini-shield{width:27px;height:27px;color:#23805d;background:#e4f5ed;font-size:11px}
.chevron{color:#7b8799;transition:transform .16s ease}.chevron.open{transform:rotate(180deg)}
.security-details{padding:15px;border-top:1px solid var(--line)}
.choice-summary{
  margin-bottom:12px;padding:10px 11px;background:#eef5ff;border:1px solid #dbe8f7;border-radius:9px
}
.choice-summary span,.protection-detail-title{
  display:block;margin-bottom:3px;color:#647896;font-size:8px;letter-spacing:.06em;text-transform:uppercase
}
.choice-summary strong{font-size:10px;color:#365275}
.protection-detail{
  margin-bottom:12px;padding:10px 11px;background:#f8fbfe;border:1px solid #e1eaf3;border-radius:9px
}
.protection-detail-row{
  display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;padding:5px 0;font-size:9px
}
.protection-detail-row:not(:last-child){border-bottom:1px solid #edf1f5}
.protection-detail-source{font-weight:700;color:#445b76}
.protection-detail-arrow{color:#8192a7}
.protection-detail-target{
  justify-self:start;padding:3px 6px;font-family:"SFMono-Regular",Consolas,monospace;color:#31506f;background:#e8f0fa;border-radius:5px
}
.security-flow{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center}
.flow-heading{
  margin:0 0 8px 2px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase
}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.detail-item{min-width:0;padding:9px;background:var(--surface-soft);border:1px solid #eef1f5;border-radius:8px}
.detail-item span,.detections>span{
  display:block;margin-bottom:3px;color:var(--muted);font-size:8px;letter-spacing:.05em;text-transform:uppercase
}
.detail-item strong{display:block;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.flow-arrow{color:#67809e;text-align:center}.flow-arrow span{display:block;margin-bottom:3px;font-size:8px;text-transform:uppercase}
.flow-arrow div{font-size:20px}
.detections{margin-top:7px;padding:9px;background:#fff9ed;border:1px solid #f3e4c2;border-radius:8px}
.badge-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.badge{
  display:inline-flex;align-items:center;padding:4px 7px;color:#78591e;font-size:9px;
  background:#f9ebca;border:1px solid #efdba9;border-radius:999px
}
.request-id{margin-top:11px;color:var(--muted);font-size:9px}
.request-id code{margin-left:5px;padding:2px 5px;color:#526078;background:#f1f4f8;border-radius:4px}

.composer-wrap{padding:9px 30px 20px;background:var(--bg)}
.composer{
  display:flex;gap:10px;align-items:flex-end;max-width:900px;margin:0 auto;padding:9px;background:#fff;
  border:1px solid #dce2ea;border-radius:17px;box-shadow:var(--shadow)
}
.composer textarea{flex:1;max-height:180px;padding:9px 10px;color:var(--text);resize:none;background:transparent;border:0;outline:none}
.composer button{
  display:flex;gap:7px;align-items:center;padding:9px 13px;color:#fff;cursor:pointer;background:var(--accent);
  border:0;border-radius:10px;font-size:11px;font-weight:720
}
.composer button:disabled{cursor:wait;opacity:.55}
.send-arrow{display:grid;place-items:center;width:18px;height:18px;color:var(--accent);background:#fff;border-radius:6px}
.composer-note{max-width:900px;margin:7px auto 0;color:var(--muted);text-align:center;font-size:9px}
.hidden{display:none!important}
@media(max-width:980px){
  .security-flow{grid-template-columns:1fr}.flow-arrow{transform:rotate(90deg)}
}
@media(max-width:820px){
  .app-shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{padding:0 18px}
  .chat-area{padding:26px 15px 18px}.composer-wrap{padding:8px 15px 17px}
  .security-panel{width:calc(100% - 30px)}.starter-grid{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:1fr 1fr}.decision-card{width:100%}
  .protection-grid{grid-template-columns:1fr}.protection-arrow{transform:rotate(90deg);justify-self:center}
  .protection-foot{grid-template-columns:1fr}
}


/* v4 security drawer */
.topbar-actions{display:flex;align-items:center;gap:10px}
.identity-card{display:flex;align-items:center;gap:8px;padding:5px 6px 5px 7px;background:#f7f9fc;border:1px solid #e0e6ee;border-radius:11px}
.identity-avatar{display:grid;place-items:center;width:28px;height:28px;color:#fff;font-size:8px;font-weight:850;background:#38577f;border-radius:8px}
.identity-copy{display:flex;min-width:116px;flex-direction:column;gap:1px}.identity-copy strong{font-size:9px}.identity-copy span{color:var(--muted);font-size:8px}
.logout-button{padding:5px 7px;color:#5f6f84;font-size:8px;font-weight:700;cursor:pointer;background:#fff;border:1px solid #dce3ec;border-radius:7px}
.logout-button:hover{color:#8d3434;background:#fff6f6;border-color:#efcccc}
.security-drawer-button{
  display:flex;align-items:center;gap:7px;padding:7px 11px;color:#38516f;font-size:11px;
  font-weight:700;background:#f3f6fa;border:1px solid #dce3ec;border-radius:10px;cursor:pointer
}
.security-drawer-button:hover:not(:disabled){background:#eaf0f6}
.security-drawer-button:disabled{opacity:.45;cursor:not-allowed}
.drawer-shield{
  display:grid;place-items:center;width:19px;height:19px;color:#1c7c58;background:#dff2e9;
  border-radius:6px;font-size:9px;font-weight:850
}
.response-meta{display:flex;align-items:center;gap:7px;margin:8px 2px 0}
.response-meta-chip{padding:4px 7px;color:#5c6f86;font-size:9px;background:#eef3f8;border-radius:999px}
.response-security-link{
  padding:4px 7px;color:#315f82;font-size:9px;font-weight:700;background:#eef6fc;
  border:1px solid #d7e6f2;border-radius:999px;cursor:pointer
}
.response-security-link:hover{background:#e4f0f9}
.drawer-backdrop{
  position:fixed;inset:0;background:rgba(14,24,40,.24);z-index:40;backdrop-filter:blur(1px)
}
.security-drawer{
  position:fixed;top:0;right:0;z-index:50;width:390px;max-width:94vw;height:100vh;
  background:#fff;border-left:1px solid #dfe5ed;box-shadow:-18px 0 44px rgba(20,32,52,.12);
  transform:translateX(105%);transition:transform .22s ease;overflow-y:auto
}
.security-drawer.open{transform:translateX(0)}
.drawer-header{
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;
  padding:20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)
}
.drawer-eyebrow{margin-bottom:3px;color:#7d899a;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.drawer-header h2{margin:0;font-size:20px}
.drawer-close{
  display:grid;place-items:center;width:34px;height:34px;color:#66758a;font-size:22px;
  background:#f4f6f9;border:1px solid #e1e6ed;border-radius:10px;cursor:pointer
}
.drawer-close:hover{background:#edf1f6}
.drawer-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:90px 28px;text-align:center;color:#748196}
.drawer-empty-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:6px;color:#28815d;background:#e7f5ee;border-radius:14px;font-weight:850}
.drawer-empty strong{color:#3c4a5f;font-size:13px}
.drawer-empty span{font-size:10px}
.drawer-content{padding:16px}
.drawer-section{margin-bottom:14px;padding:13px;background:#fbfcfe;border:1px solid #e6ebf1;border-radius:12px}
.drawer-section-title{margin-bottom:10px;color:#78869a;font-size:8px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.timeline{display:grid;gap:0}
.timeline-item{display:grid;grid-template-columns:24px 1fr;gap:9px;min-height:48px}
.timeline-rail{display:flex;flex-direction:column;align-items:center}
.timeline-dot{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:9px;font-weight:850}
.timeline-dot.complete{color:#1b7654;background:#dff2e9;border:1px solid #cae8db}
.timeline-dot.skipped{color:#8793a3;background:#eef1f5;border:1px solid #e1e5eb}
.timeline-line{width:1px;flex:1;background:#dfe5ec}
.timeline-item:last-child .timeline-line{display:none}
.timeline-copy{padding-bottom:11px}
.timeline-copy strong{display:block;font-size:10px;color:#34445b}
.timeline-copy span{display:block;margin-top:2px;color:#7d8999;font-size:9px;line-height:1.4}
.runtime-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.runtime-card,.drawer-field{padding:9px;background:#fff;border:1px solid #e7ebf0;border-radius:8px}
.runtime-card span,.drawer-field>span,.request-id-card>span{display:block;margin-bottom:4px;color:#7d8999;font-size:7px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.runtime-card strong,.drawer-field strong{font-size:9px;color:#34465e;word-break:break-word}
.drawer-choice{padding:10px;color:#355575;font-size:10px;font-weight:700;background:#eef5fc;border-radius:8px}
.drawer-treatment{display:grid;gap:6px}
.drawer-treatment-row{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center;padding:8px;background:#fff;border:1px solid #e7ebf0;border-radius:8px;font-size:9px}
.drawer-treatment-row strong{color:#425a76}.drawer-treatment-arrow{color:#8392a5}
.drawer-treatment-token{justify-self:start;padding:3px 5px;font-family:"SFMono-Regular",Consolas,monospace;color:#31506f;background:#e8f0fa;border-radius:5px}
.decision-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.decision-column{display:grid;gap:7px}.decision-heading{color:#556980;font-size:9px;font-weight:850;text-transform:uppercase}
.drawer-badges{display:flex;flex-wrap:wrap;gap:4px}.drawer-badge{display:inline-flex;padding:3px 6px;color:#76591f;font-size:8px;background:#fff0ce;border-radius:999px}
.request-id-card{padding:10px;background:#fff;border:1px solid #e7ebf0;border-radius:8px}
.request-id-card code{display:block;color:#4c617b;font-size:9px;word-break:break-all}
@media(max-width:820px){.security-drawer{width:100%;max-width:100vw}}

@media(max-width:720px){
  .login-screen{padding:16px}.login-panel{padding:23px}.demo-account-grid{grid-template-columns:1fr}
  .identity-copy{display:none}.top-status{display:none}
}


/* Provider Boundary v4.0.1 */

.boundary-flow{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.boundary-node{
  border:1px solid rgba(148,163,184,.20);
  border-radius:12px;
  padding:11px 12px;
  background:rgba(255,255,255,.025);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.boundary-node span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.055em;
  opacity:.62;
}

.boundary-node strong{
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.boundary-provider{
  border-style:dashed;
}

.boundary-separator{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.52;
}

.boundary-separator::before,
.boundary-separator::after{
  content:"";
  height:1px;
  flex:1;
  background:currentColor;
  opacity:.25;
}

@media (max-width:640px){
  .boundary-node{
    padding:10px;
  }
}


/* v4.1 document attachments */

.attachment-strip{
  max-width:900px;
  margin:0 auto 8px;
}

.attachment-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  background:#fff;
  border:1px solid #dce3ec;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(24,36,60,.035);
}

.attachment-strip.error .attachment-chip{
  background:var(--danger-soft);
  border-color:#efcaca;
}

.attachment-icon{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  min-width:38px;
  height:34px;
  padding:0 5px;
  color:#31506f;
  font-size:9px;
  font-weight:850;
  letter-spacing:.04em;
  background:#edf3f8;
  border-radius:9px;
}

.attachment-copy{
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  gap:2px;
}

.attachment-copy strong{
  overflow:hidden;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.attachment-copy span{
  color:var(--muted);
  font-size:9px;
}

.attachment-remove{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:27px;
  height:27px;
  padding:0;
  color:#68778b;
  font-size:17px;
  line-height:1;
  cursor:pointer;
  background:transparent;
  border:0;
  border-radius:8px;
}

.attachment-remove:hover{
  color:#953d3d;
  background:#f8eded;
}

.composer .attach-btn{
  display:flex;
  align-items:center;
  align-self:stretch;
  gap:6px;
  padding:8px 10px;
  color:#53677e;
  background:#f4f7fa;
  border:1px solid #e1e7ee;
  border-radius:10px;
}

.composer .attach-btn:hover:not(:disabled){
  color:#294867;
  background:#eaf0f6;
}

.composer .attach-btn:disabled{
  cursor:wait;
  opacity:.55;
}

.attach-symbol{
  font-size:14px;
}

.attach-label{
  font-size:10px;
  font-weight:720;
}

.user-file-card{
  display:flex;
  align-items:center;
  gap:9px;
  max-width:74%;
  margin:0 0 7px;
  padding:9px 11px;
  color:#33465f;
  background:#fff;
  border:1px solid #dce3ec;
  border-radius:12px;
  box-shadow:0 5px 14px rgba(24,36,60,.04);
}

.user-file-icon{
  display:grid;
  place-items:center;
  min-width:37px;
  height:32px;
  padding:0 4px;
  color:#31506f;
  font-size:8px;
  font-weight:850;
  background:#edf3f8;
  border-radius:8px;
}

.user-file-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}

.user-file-copy strong{
  overflow:hidden;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.user-file-copy span{
  color:#778599;
  font-size:8px;
}

#drawerFileName,
#drawerFileTreatment{
  overflow-wrap:anywhere;
}

@media(max-width:620px){
  .attach-label{
    display:none;
  }

  .composer .attach-btn{
    padding:8px;
  }

  .user-file-card{
    max-width:90%;
  }
}

dialog{border:1px solid #d5dde7;border-radius:16px;padding:28px;max-width:440px;width:90%}dialog::backdrop{background:#10203588}dialog label{display:block;margin:14px 0}dialog input{display:block;width:100%;padding:10px;margin-top:6px}dialog button{padding:10px;margin-right:8px}

.identity-card button{white-space:nowrap;flex-shrink:0}.topbar h1{white-space:nowrap}
