@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --red-900:#8E1B1B; --red-700:#C62828; --red-600:#E53935; --red-400:#EF5350;
  --red-tint:#FDECEA; --red-tint-2:#FBD9D5;
  --bg:#FAFAFA; --card:#FFFFFF; --ink:#212121; --ink-2:#5A5A5A; --ink-3:#8A8A8A;
  --line:#E9E4E2; --green:#2E7D32; --green-tint:#E8F3E9; --orange:#F57C00; --orange-tint:#FDF1E2;
  --mono:'IBM Plex Mono', ui-monospace, monospace;
  --display:'Fraunces', Georgia, serif;
  --body:'Public Sans', -apple-system, sans-serif;
  --shadow:0 1px 2px rgba(33,33,33,.05), 0 8px 28px rgba(33,33,33,.07);
  --shadow-lg:0 2px 4px rgba(33,33,33,.06), 0 18px 50px rgba(142,27,27,.13);
  --r:14px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body,#root{height:100%;}
body{background:var(--bg); color:var(--ink); font-family:var(--body); -webkit-font-smoothing:antialiased;}
.mr-app{min-height:100vh; background:var(--bg); color:var(--ink); font-family:var(--body); font-size:15px; line-height:1.55;}
button{font-family:var(--body); cursor:pointer;}
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible{outline:3px solid rgba(198,40,40,.45); outline-offset:2px; border-radius:6px;}
h1,h2,h3{font-family:var(--display); font-weight:700; line-height:1.12; letter-spacing:-.01em;}
.mono{font-family:var(--mono);}

/* ---------- shared ---------- */
.btn{border:none; border-radius:10px; font-weight:700; font-size:15px; padding:13px 22px; transition:transform .12s ease, box-shadow .12s ease, background .12s ease; display:inline-flex; align-items:center; gap:8px;}
.btn:active{transform:translateY(1px);}
.btn-red{background:var(--red-700); color:#fff; box-shadow:0 6px 18px rgba(198,40,40,.30);}
.btn-red:hover{background:var(--red-600);}
.btn-ghost{background:transparent; color:var(--ink); border:1.5px solid var(--line);}
.btn-ghost:hover{border-color:var(--red-400); color:var(--red-700);}
.btn-quiet{background:var(--red-tint); color:var(--red-700);}
.btn-quiet:hover{background:var(--red-tint-2);}
.btn-sm{padding:8px 14px; font-size:13.5px; border-radius:8px;}
.chip{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 10px; border-radius:999px;}
.chip-red{background:var(--red-tint); color:var(--red-700);}
.chip-green{background:var(--green-tint); color:var(--green);}
.chip-orange{background:var(--orange-tint); color:var(--orange);}
.chip-gray{background:#F0EDEC; color:var(--ink-2);}
.card{background:var(--card); border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow);}
.eyebrow{font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--red-700);}
.hr{height:1px; background:var(--line); border:none;}

/* ---------- landing ---------- */
.land-nav{position:sticky; top:0; z-index:40; background:rgba(250,250,250,.88); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);}
.land-nav-in{max-width:1160px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; gap:28px;}
.land-nav a{color:var(--ink-2); text-decoration:none; font-weight:600; font-size:14px;}
.land-nav a:hover{color:var(--red-700);}
.land-navlink{background:none; border:0; padding:0; cursor:pointer; color:var(--ink-2); font-family:var(--body); font-weight:600; font-size:14px;}
.land-navlink:hover{color:var(--red-700);}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:900; font-size:20px; color:var(--ink);}
.logo .cross{width:30px; height:30px; border-radius:8px; background:var(--red-700); display:grid; place-items:center; color:#fff; font-family:var(--body); font-weight:800; font-size:16px; box-shadow:0 4px 12px rgba(198,40,40,.35);}
.hero{max-width:1160px; margin:0 auto; padding:72px 24px 40px; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;}
.hero h1{font-size:clamp(38px,4.6vw,58px); font-weight:900;}
.hero h1 em{font-style:italic; color:var(--red-700);}
.hero p.sub{margin:20px 0 30px; font-size:17.5px; color:var(--ink-2); max-width:52ch;}
.trustrow{display:flex; flex-wrap:wrap; gap:10px; margin-top:30px;}
.trust{display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--ink-2); background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 14px;}
.trust svg{color:var(--red-700);}

/* the signature: a scanned denial letter being decoded */
.scanwrap{position:relative;}
.scan-doc{background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-lg); padding:28px 26px; position:relative; overflow:hidden; transform:rotate(.6deg);}
.scan-doc .dochead{display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;}
.scan-doc .dochead .from{font-family:var(--mono); font-size:11px; color:var(--ink-3); letter-spacing:.05em;}
.docline{height:9px; border-radius:5px; background:#EFEBE9; margin:9px 0;}
.docline.w60{width:60%;} .docline.w80{width:80%;} .docline.w45{width:45%;} .docline.w70{width:70%;}
.dochl{position:relative; display:inline-block; font-family:var(--mono); font-size:12.5px; font-weight:600; color:var(--red-900); background:linear-gradient(transparent 18%, var(--red-tint-2) 18%); padding:2px 4px; border-radius:3px; margin:5px 0;}
.scanline{position:absolute; left:0; right:0; height:54px; top:-60px; background:linear-gradient(180deg, rgba(229,57,53,0) 0%, rgba(229,57,53,.10) 45%, rgba(198,40,40,.22) 50%, rgba(229,57,53,.10) 55%, rgba(229,57,53,0) 100%); border-top:1px solid rgba(198,40,40,.25); border-bottom:1px solid rgba(198,40,40,.25); animation:scan 4.5s ease-in-out infinite;}
@keyframes scan{0%{top:-60px;} 55%{top:105%;} 100%{top:105%;}}
@media (prefers-reduced-motion: reduce){ .scanline{display:none;} .float-tag{animation:none !important;} }
.float-tag{position:absolute; background:#fff; border:1px solid var(--line); border-left:4px solid var(--red-700); border-radius:10px; box-shadow:var(--shadow-lg); padding:10px 14px; font-size:12.5px; font-weight:700; animation:bob 5s ease-in-out infinite;}
.float-tag small{display:block; font-weight:600; color:var(--ink-3); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:2px;}
.float-tag.t1{top:-18px; right:-14px;}
.float-tag.t2{bottom:64px; left:-26px; border-left-color:var(--green); animation-delay:1.2s;}
.float-tag.t3{bottom:-20px; right:26px; border-left-color:var(--orange); animation-delay:2.2s;}
@keyframes bob{0%,100%{transform:translateY(0);} 50%{transform:translateY(-7px);}}

.strip{background:var(--red-700); color:#fff;}
.strip-in{max-width:1160px; margin:0 auto; padding:26px 24px; display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.strip .num{font-family:var(--display); font-weight:900; font-size:30px;}
.strip .lbl{font-size:13px; opacity:.85; font-weight:600;}

.section{max-width:1160px; margin:0 auto; padding:74px 24px;}
.section h2{font-size:clamp(28px,3.4vw,40px); font-weight:900; max-width:26ch;}
.section .lead{color:var(--ink-2); margin-top:14px; max-width:64ch; font-size:16px;}
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:38px;}
.grid2{display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:38px;}
.feat{padding:26px; display:flex; flex-direction:column; gap:12px;}
.feat .ico{width:42px; height:42px; border-radius:11px; background:var(--red-tint); color:var(--red-700); display:grid; place-items:center;}
.feat h3{font-size:19px;}
.feat p{color:var(--ink-2); font-size:14.5px;}
.step{display:flex; gap:18px; padding:24px;}
.step .n{font-family:var(--mono); font-weight:600; color:var(--red-700); background:var(--red-tint); border-radius:10px; width:44px; height:44px; display:grid; place-items:center; font-size:16px; flex-shrink:0;}
.price-card{padding:30px; display:flex; flex-direction:column; gap:14px; position:relative;}
.price-card.hot{border:2px solid var(--red-700); box-shadow:var(--shadow-lg);}
.price-card .amt{font-family:var(--display); font-size:44px; font-weight:900;}
.price-card .amt span{font-family:var(--body); font-size:15px; font-weight:600; color:var(--ink-3);}
.price-card ul{list-style:none; display:flex; flex-direction:column; gap:10px; font-size:14.5px; color:var(--ink-2);}
.price-card ul li{display:flex; gap:10px; align-items:flex-start;}
.price-card ul li svg{flex-shrink:0; margin-top:2px; color:var(--green);}
.footer{border-top:1px solid var(--line); background:#fff;}
.footer-in{max-width:1160px; margin:0 auto; padding:40px 24px; display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between; color:var(--ink-3); font-size:13px;}

/* ---------- app shell ---------- */
.shell{display:grid; grid-template-columns:236px 1fr; min-height:100vh;}
.side{background:#fff; border-right:1px solid var(--line); padding:18px 14px; display:flex; flex-direction:column; gap:6px; position:sticky; top:0; height:100vh;}
.side .navbtn{display:flex; align-items:center; gap:11px; width:100%; border:none; background:transparent; padding:11px 12px; border-radius:10px; font-size:14px; font-weight:600; color:var(--ink-2); text-align:left;}
.side .navbtn:hover{background:var(--red-tint); color:var(--red-700);}
.side .navbtn.on{background:var(--red-700); color:#fff; box-shadow:0 6px 16px rgba(198,40,40,.28);}
.side .sec{font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); padding:14px 12px 4px;}
.main{padding:26px 30px 60px; max-width:1080px; width:100%; margin:0 auto;}
.main-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap;}
.main-head h2{font-size:28px; font-weight:900;}
.main-head p{color:var(--ink-2); margin-top:4px; font-size:14.5px;}

.statgrid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.stat{padding:18px 20px;}
.stat .k{font-size:12.5px; font-weight:700; color:var(--ink-3); text-transform:uppercase; letter-spacing:.07em;}
.stat .v{font-family:var(--display); font-size:30px; font-weight:900; margin-top:4px;}
.stat .v.green{color:var(--green);} .stat .v.red{color:var(--red-700);} .stat .v.orange{color:var(--orange);}
.stat .d{font-size:12.5px; color:var(--ink-3); margin-top:2px;}

.caserow{display:flex; align-items:center; gap:16px; padding:16px 18px; border-bottom:1px solid var(--line); background:#fff; text-align:left; width:100%; border-left:none; border-right:none; border-top:none; transition:background .12s;}
.caserow:hover{background:var(--red-tint);}
.caserow:first-child{border-radius:var(--r) var(--r) 0 0;}
.caserow:last-child{border-radius:0 0 var(--r) var(--r); border-bottom:none;}
.caserow .ic{width:40px; height:40px; border-radius:10px; display:grid; place-items:center; flex-shrink:0;}
.caserow .ic.denial{background:var(--red-tint); color:var(--red-700);}
.caserow .ic.bill{background:var(--orange-tint); color:var(--orange);}
.caserow .t{font-weight:700; font-size:15px;}
.caserow .s{font-size:13px; color:var(--ink-3);}
.caserow .amt{margin-left:auto; text-align:right;}
.caserow .amt .a{font-family:var(--mono); font-weight:600; font-size:15px;}
.caserow .amt .b{font-size:12px; color:var(--ink-3);}

.kv{display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:2px; background:var(--line); border:1px solid var(--line); border-radius:var(--r); overflow:hidden;}
.kv > div{background:#fff; padding:13px 16px;}
.kv .k{font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-3);}
.kv .v{font-family:var(--mono); font-size:14px; font-weight:600; margin-top:3px; word-break:break-word;}
.kv .v.red{color:var(--red-700);} .kv .v.green{color:var(--green);}

.panel{padding:24px;}
.panel h3{font-size:19px; margin-bottom:6px;}
.panel .sub{color:var(--ink-2); font-size:14px; margin-bottom:16px;}

.gaugewrap{display:flex; gap:26px; align-items:center; flex-wrap:wrap;}
.finding{display:flex; gap:14px; padding:15px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; margin-top:10px; align-items:flex-start;}
.finding .fic{width:34px; height:34px; border-radius:9px; display:grid; place-items:center; flex-shrink:0;}
.finding .fic.err{background:var(--red-tint); color:var(--red-700);}
.finding .fic.warn{background:var(--orange-tint); color:var(--orange);}
.finding .fic.ok{background:var(--green-tint); color:var(--green);}
.finding b{font-size:14.5px;}
.finding p{font-size:13.5px; color:var(--ink-2); margin-top:2px;}
.finding .save{margin-left:auto; text-align:right; flex-shrink:0;}
.finding .save .a{font-family:var(--mono); font-weight:600; color:var(--green); font-size:15px;}
.finding .save .b{font-size:11.5px; color:var(--ink-3);}

.fairbar{margin:14px 0 4px;}
.fairbar .row{display:flex; justify-content:space-between; font-size:13px; margin-bottom:6px;}
.fairbar .track{position:relative; height:12px; background:#EFEBE9; border-radius:99px; overflow:visible;}
.fairbar .fairzone{position:absolute; top:0; bottom:0; background:var(--green-tint); border:1px dashed var(--green); border-radius:99px;}
.fairbar .marker{position:absolute; top:-4px; width:4px; height:20px; border-radius:3px; background:var(--red-700); box-shadow:0 2px 6px rgba(198,40,40,.4);}

.tl{position:relative; margin:8px 0 0; padding-left:4px;}
.tl .titem{display:flex; gap:14px; padding:0 0 22px; position:relative;}
.tl .titem::before{content:''; position:absolute; left:11px; top:26px; bottom:0; width:2px; background:var(--line);}
.tl .titem:last-child::before{display:none;}
.tl .dot{width:24px; height:24px; border-radius:50%; border:2px solid var(--line); background:#fff; display:grid; place-items:center; flex-shrink:0; z-index:1;}
.tl .titem.done .dot{background:var(--green); border-color:var(--green); color:#fff;}
.tl .titem.now .dot{background:#fff; border-color:var(--red-700); box-shadow:0 0 0 4px var(--red-tint);}
.tl .titem.now .dot i{width:8px; height:8px; border-radius:50%; background:var(--red-700); display:block;}
.tl b{font-size:14px;}
.tl .titem.todo b{color:var(--ink-3); font-weight:600;}
.tl small{display:block; color:var(--ink-3); font-size:12.5px;}

.lettergrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; margin-top:16px;}
.letterbtn{text-align:left; padding:18px; border:1.5px solid var(--line); border-radius:12px; background:#fff; transition:border-color .12s, box-shadow .12s;}
.letterbtn:hover{border-color:var(--red-400); box-shadow:var(--shadow);}
.letterbtn b{display:block; font-size:14.5px; margin-bottom:4px;}
.letterbtn span{font-size:12.5px; color:var(--ink-2);}

.editor{width:100%; min-height:420px; border:1px solid var(--line); border-radius:12px; padding:22px 24px; font-family:var(--mono); font-size:13px; line-height:1.7; color:var(--ink); background:#fff; resize:vertical;}
.modal-bg{position:fixed; inset:0; background:rgba(33,33,33,.45); z-index:60; display:grid; place-items:center; padding:20px;}
.modal{background:var(--bg); border-radius:18px; max-width:860px; width:100%; max-height:92vh; overflow:auto; padding:26px; box-shadow:0 30px 80px rgba(0,0,0,.35);}

.chatwrap{display:flex; flex-direction:column; height:calc(100vh - 210px); min-height:480px;}
.chatlog{flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:14px; padding:20px;}
.msg{max-width:76%; padding:13px 16px; border-radius:16px; font-size:14.5px; white-space:pre-wrap;}
.msg.user{align-self:flex-end; background:var(--red-700); color:#fff; border-bottom-right-radius:5px;}
.msg.ai{align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:5px; box-shadow:var(--shadow);}
.chatin{display:flex; gap:10px; padding:14px; border-top:1px solid var(--line); background:#fff; border-radius:0 0 var(--r) var(--r);}
.chatin input{flex:1; border:1.5px solid var(--line); border-radius:10px; padding:12px 15px; font-size:14.5px; font-family:var(--body);}
.sugg{display:flex; flex-wrap:wrap; gap:8px; padding:0 20px 14px;}
.sugg button{background:#fff; border:1.5px solid var(--line); border-radius:999px; font-size:12.5px; font-weight:600; color:var(--ink-2); padding:7px 13px;}
.sugg button:hover{border-color:var(--red-400); color:var(--red-700);}

.upzone{border:2px dashed var(--red-tint-2); background:#fff; border-radius:18px; padding:56px 26px; text-align:center; transition:border-color .15s, background .15s;}
.upzone.drag{border-color:var(--red-600); background:var(--red-tint);}
.progress-steps{display:flex; flex-direction:column; gap:14px; margin-top:22px;}
.pstep{display:flex; gap:12px; align-items:center; font-size:14px; color:var(--ink-3); font-weight:600;}
.pstep.on{color:var(--ink);}
.pstep .pd{width:22px; height:22px; border-radius:50%; border:2px solid var(--line); display:grid; place-items:center; flex-shrink:0;}
.pstep.on .pd{border-color:var(--green); background:var(--green); color:#fff;}
.pstep.run .pd{border-color:var(--red-700); border-top-color:transparent; animation:spin 1s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion: reduce){ .pstep.run .pd{animation:none;} }

.deadline{display:flex; align-items:center; gap:12px; background:var(--orange-tint); border:1px solid #F5D9B8; border-radius:12px; padding:13px 16px; font-size:14px;}
.deadline b{color:var(--orange);}
.disclaimer{font-size:12px; color:var(--ink-3); border-top:1px solid var(--line); margin-top:28px; padding-top:14px;}

/* ---------- auth ---------- */
.auth{min-height:100vh; display:grid; grid-template-columns:1fr 1.15fr;}
.auth-brand{background:linear-gradient(165deg, var(--red-900) 0%, var(--red-700) 55%, var(--red-600) 100%); color:#fff; padding:44px 48px; display:flex; flex-direction:column; position:relative; overflow:hidden;}
.auth-brand::after{content:''; position:absolute; right:-140px; bottom:-140px; width:380px; height:380px; border-radius:50%; background:rgba(255,255,255,.07);}
.auth-brand::before{content:''; position:absolute; right:-40px; bottom:-40px; width:200px; height:200px; border-radius:50%; background:rgba(255,255,255,.07); z-index:1;}
.auth-brand h2{color:#fff; font-size:clamp(26px,2.6vw,36px); font-weight:900; max-width:16ch; margin-top:auto;}
.auth-brand p{opacity:.88; margin-top:14px; max-width:44ch; font-size:15px;}
.auth-quote{margin-top:34px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); border-radius:14px; padding:18px 20px; font-size:14px; max-width:440px; backdrop-filter:blur(4px); z-index:2;}
.auth-quote b{display:block; margin-top:10px; font-size:12.5px; opacity:.85; font-weight:700;}
.auth-pane{display:grid; place-items:center; padding:40px 24px; background:var(--bg);}
.auth-card{width:100%; max-width:440px;}
.auth-card h1{font-size:30px; font-weight:900; margin-bottom:6px;}
.auth-card .sub{color:var(--ink-2); font-size:14.5px; margin-bottom:24px;}
.field{margin-bottom:16px;}
.field label{display:block; font-size:13px; font-weight:700; margin-bottom:6px;}
.field input[type="text"], .field input[type="email"], .field input[type="password"]{width:100%; border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; font-size:14.5px; font-family:var(--body); background:#fff; transition:border-color .12s;}
.field input:focus{border-color:var(--red-400);}
.field .hint{font-size:12px; color:var(--ink-3); margin-top:5px;}
.field.err input{border-color:var(--red-600); background:var(--red-tint);}
.autherr{display:flex; gap:9px; align-items:flex-start; background:var(--red-tint); border:1px solid var(--red-tint-2); color:var(--red-900); border-radius:10px; padding:11px 14px; font-size:13.5px; margin-bottom:16px;}
.authok{display:flex; gap:9px; align-items:flex-start; background:var(--green-tint); border:1px solid #CBE5CD; color:var(--green); border-radius:10px; padding:11px 14px; font-size:13.5px; margin-bottom:16px; font-weight:600;}
.pwmeter{display:flex; gap:5px; margin-top:8px;}
.pwmeter i{height:5px; flex:1; border-radius:99px; background:#EFEBE9;}
.authrow{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:4px 0 18px; font-size:13px;}
.authrow label{display:flex; align-items:center; gap:7px; color:var(--ink-2); font-weight:600;}
.authrow a, .linkbtn{background:none; border:none; color:var(--red-700); font-weight:700; font-size:13px; text-decoration:underline; padding:0;}
.authswitch{text-align:center; margin-top:20px; font-size:13.5px; color:var(--ink-2);}
.otp{display:flex; gap:10px; justify-content:space-between; margin:20px 0 8px;}
.otp input{width:56px; height:64px; text-align:center; font-family:var(--mono); font-size:26px; font-weight:600; border:1.5px solid var(--line); border-radius:12px; background:#fff; transition:border-color .12s, box-shadow .12s;}
.otp input:focus{border-color:var(--red-700); box-shadow:0 0 0 4px var(--red-tint); outline:none;}
.otp.err input{border-color:var(--red-600); animation:shake .3s ease;}
@keyframes shake{0%,100%{transform:translateX(0);} 25%{transform:translateX(-5px);} 75%{transform:translateX(5px);}}
@media (prefers-reduced-motion: reduce){ .otp.err input{animation:none;} }
.demo-hint{background:var(--orange-tint); border:1px dashed #F5D9B8; border-radius:10px; padding:11px 14px; font-size:13px; color:var(--ink-2); margin-top:14px;}
.demo-hint .code{font-family:var(--mono); font-weight:600; font-size:15px; color:var(--orange); letter-spacing:.2em;}





/* ---------- claim intelligence engine ---------- */
.ci-hero{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:18px;}
.ci-hero .cih{background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; box-shadow:var(--shadow);}
.ci-hero .cih .hk{font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); display:flex; justify-content:space-between; align-items:center; gap:6px;}
.ci-hero .cih .hv{font-family:var(--display); font-size:27px; font-weight:900; margin-top:5px;}
.ci-hero .cih .hd{font-size:12px; color:var(--ink-3); margin-top:2px;}
.ci-section{margin-bottom:18px;}
.ci-section .card{padding:20px 22px;}
.ci-why{background:var(--red-tint); border-left:3px solid var(--red-700); border-radius:0 10px 10px 0; padding:10px 14px; font-size:12.5px; color:var(--ink-2); margin-top:10px;}
.ci-why b{color:var(--red-900); display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:3px;}
.ci-src{display:inline-flex; align-items:center; gap:5px; background:#F0EDEC; color:var(--ink-2); border-radius:6px; padding:2px 8px; font-size:10.5px; font-weight:700; margin:2px 3px 0 0;}
.ci-factor{display:flex; gap:9px; align-items:flex-start; font-size:13.5px; padding:7px 0;}
.ci-factor svg{flex-shrink:0; margin-top:2px;}
.ci-prob{display:flex; align-items:center; gap:24px; flex-wrap:wrap;}
.ci-bar{height:12px; border-radius:99px; background:#EFEBE9; overflow:hidden; margin-top:6px;}
.ci-bar i{display:block; height:100%; border-radius:99px;}
.ci-ev{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px;}
.ci-ev .evcol{border:1px solid var(--line); border-radius:12px; background:#fff; padding:14px 16px;}
.ci-ev .evcol h4{font-size:12px; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-3); font-family:var(--body); font-weight:800; margin-bottom:9px;}
.ci-ev .evi{display:flex; gap:8px; align-items:flex-start; font-size:13px; padding:4px 0;}
.ci-strat{display:flex; gap:13px; padding:13px 0; border-bottom:1px solid var(--line); align-items:flex-start;}
.ci-strat:last-child{border-bottom:none;}
.ci-strat .sn{width:30px; height:30px; border-radius:9px; background:var(--red-tint); color:var(--red-700); display:grid; place-items:center; font-family:var(--mono); font-weight:600; font-size:13px; flex-shrink:0;}
.ci-strat.done .sn{background:var(--green-tint); color:var(--green);}
.ci-strat .simp{margin-left:auto; flex-shrink:0; font-family:var(--mono); font-size:12px; font-weight:600; color:var(--green); white-space:nowrap;}
.ci-road{display:flex; flex-direction:column; gap:8px;}
.ci-road .ri{display:flex; gap:10px; align-items:center; font-size:13.5px; font-weight:600;}
.ci-road .ri.done{color:var(--ink);}
.ci-road .ri.warn{color:#7A4A00;}
.ci-road .ri.todo{color:var(--ink-3);}
.ci-rec{border:1px solid var(--line); border-left-width:4px; border-radius:11px; background:#fff; padding:13px 16px; margin-bottom:9px;}
.ci-rec .rhead{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.ci-rec p{font-size:13px; color:var(--ink-2); margin-top:5px;}
.ci-rec .rimp{margin-left:auto; font-family:var(--mono); font-size:12px; font-weight:600; color:var(--green);}
.ci-refresh{display:flex; gap:10px; align-items:center; background:var(--red-tint); border:1px solid var(--red-tint-2); border-radius:11px; padding:11px 14px; font-size:13px; margin-bottom:16px;}


/* ---------- claim intelligence engine ---------- */
.ci-hero{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:16px;}
.ci-hero .cih{background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; box-shadow:var(--shadow);}
.ci-hero .cih .k{font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3);}
.ci-hero .cih .v{font-family:var(--display); font-size:27px; font-weight:900; margin-top:4px;}
.ci-hero .cih .d{font-size:12px; color:var(--ink-3); margin-top:2px;}
.ci-sec{background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); margin-bottom:14px; overflow:hidden;}
.ci-sec-head{display:flex; align-items:center; gap:11px; width:100%; text-align:left; background:none; border:none; padding:16px 20px; font-family:var(--body);}
.ci-sec-head .cnum{font-family:var(--mono); font-size:11px; font-weight:600; color:var(--red-700); background:var(--red-tint); border-radius:7px; padding:4px 8px; flex-shrink:0;}
.ci-sec-head b{font-size:15.5px;}
.ci-sec-head .csig{margin-left:auto; display:flex; gap:8px; align-items:center; flex-shrink:0;}
.ci-sec-head .chev{color:var(--ink-3); transition:transform .15s;}
.ci-sec-head.open .chev{transform:rotate(180deg);}
.ci-sec-body{padding:0 20px 18px; font-size:13.5px; color:var(--ink-2); line-height:1.6;}
.ci-verdict{display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:5px 11px; border-radius:999px;}
.ci-verdict.strong{background:var(--green-tint); color:var(--green);}
.ci-verdict.moderate{background:var(--orange-tint); color:var(--orange);}
.ci-verdict.weak{background:var(--red-tint); color:var(--red-700);}
.ci-factor{display:flex; gap:10px; align-items:flex-start; padding:8px 0; font-size:13px; border-bottom:1px dashed var(--line);}
.ci-factor:last-child{border-bottom:none;}
.ci-factor .fplus{color:var(--green); flex-shrink:0; font-weight:800;}
.ci-factor .fminus{color:var(--red-700); flex-shrink:0; font-weight:800;}
.ci-explain{background:var(--bg); border:1px dashed var(--line); border-radius:10px; padding:11px 14px; font-size:12px; color:var(--ink-3); margin-top:12px;}
.ci-explain b{color:var(--ink-2); display:block; margin-bottom:3px; font-size:11px; letter-spacing:.06em; text-transform:uppercase;}
.ci-evid{display:flex; gap:9px; align-items:center; padding:8px 12px; border-radius:9px; font-size:13px; font-weight:600; margin-bottom:6px;}
.ci-evid.have{background:var(--green-tint); color:var(--green);}
.ci-evid.miss{background:var(--red-tint); color:var(--red-900);}
.ci-evid.rec{background:var(--orange-tint); color:#7A4A00;}
.ci-evid .etag{margin-left:auto; font-size:9.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:2px 7px; border-radius:99px; background:rgba(0,0,0,.07);}
.ci-road{display:flex; flex-direction:column; gap:0;}
.ci-road .ritem{display:flex; gap:12px; align-items:center; padding:9px 0; font-size:13.5px; font-weight:600;}
.ci-road .ritem .rmark{width:24px; height:24px; border-radius:8px; display:grid; place-items:center; flex-shrink:0; font-size:12px;}
.ci-road .ritem.done .rmark{background:var(--green-tint); color:var(--green);}
.ci-road .ritem.warn .rmark{background:var(--orange-tint); color:var(--orange);}
.ci-road .ritem.todo .rmark{background:#F0EDEC; color:var(--ink-3);}
.ci-road .ritem.todo{color:var(--ink-3);}
.ci-rec{border:1px solid var(--line); border-left:4px solid var(--red-700); border-radius:11px; background:#fff; padding:13px 16px; margin-bottom:9px;}
.ci-rec.p1{border-left-color:var(--red-700);}
.ci-rec.p2{border-left-color:var(--orange);}
.ci-rec.p3{border-left-color:var(--ink-3);}
.ci-rec b{font-size:13.5px;}
.ci-rec p{font-size:12.5px; color:var(--ink-2); margin-top:3px;}
.ci-rec .rimpact{font-family:var(--mono); font-size:11px; font-weight:600; color:var(--green); margin-top:5px; display:block;}
.ci-strategy{counter-reset:step;}
.ci-strategy .sstep{display:flex; gap:12px; padding:10px 0; border-bottom:1px dashed var(--line); font-size:13.5px; align-items:flex-start;}
.ci-strategy .sstep:last-child{border-bottom:none;}
.ci-strategy .sn{font-family:var(--mono); font-weight:600; color:var(--red-700); background:var(--red-tint); border-radius:8px; width:26px; height:26px; display:grid; place-items:center; font-size:12px; flex-shrink:0;}
.ci-prob-wrap{display:flex; gap:24px; align-items:center; flex-wrap:wrap;}

/* ---------- document intelligence engine ---------- */
.di-pipe{display:flex; flex-direction:column; gap:10px; margin-top:16px;}
.di-stage{display:flex; gap:12px; align-items:center; font-size:13.5px; font-weight:600; color:var(--ink-3);}
.di-stage.on{color:var(--ink);}
.di-stage .pd{width:22px; height:22px; border-radius:50%; border:2px solid var(--line); display:grid; place-items:center; flex-shrink:0;}
.di-stage.on .pd{border-color:var(--green); background:var(--green); color:#fff;}
.di-stage.run .pd{border-color:var(--red-700); border-top-color:transparent; animation:spin 1s linear infinite;}
.conf{display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10.5px; font-weight:600; padding:2px 8px; border-radius:999px;}
.conf.hi{background:var(--green-tint); color:var(--green);}
.conf.md{background:var(--orange-tint); color:var(--orange);}
.conf.lo{background:var(--red-tint); color:var(--red-700);}
.ent-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:2px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden;}
.ent-cell{background:#fff; padding:11px 14px;}
.ent-cell .ek{font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); display:flex; justify-content:space-between; gap:6px; align-items:center;}
.ent-cell .ev{font-family:var(--mono); font-size:13px; font-weight:600; margin-top:4px; word-break:break-word;}
.ent-cell.lo-conf{background:var(--red-tint);}
.di-conflict{border:1.5px solid var(--orange); background:var(--orange-tint); border-radius:12px; padding:14px 16px; margin-bottom:10px;}
.di-conflict .vrow{display:flex; gap:14px; flex-wrap:wrap; margin:8px 0; font-size:13px;}
.di-conflict .vbox{background:#fff; border:1px solid var(--line); border-radius:9px; padding:8px 12px; flex:1; min-width:160px;}
.di-conflict .vbox b{display:block; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); margin-bottom:3px;}
.di-conflict .vbox span{font-family:var(--mono); font-size:12.5px;}
.di-warn{display:flex; gap:11px; align-items:flex-start; border-radius:11px; padding:12px 14px; font-size:13.5px; margin-bottom:9px; border:1px solid;}
.di-warn.err{background:var(--red-tint); border-color:var(--red-tint-2); color:var(--red-900);}
.di-warn.warn{background:var(--orange-tint); border-color:#F5D9B8; color:#7A4A00;}
.di-warn.ok{background:var(--green-tint); border-color:#CBE5CD; color:var(--green);}
.di-warn b{display:block;}
.di-warn p{font-size:12.5px; margin-top:2px; opacity:.85;}
.readiness{display:flex; gap:16px; align-items:center; border-radius:14px; padding:18px 20px; border:1.5px solid;}
.readiness.ready{background:var(--green-tint); border-color:#CBE5CD;}
.readiness.needs{background:var(--orange-tint); border-color:#F5D9B8;}
.readiness.insuf{background:var(--red-tint); border-color:var(--red-tint-2);}
.readiness .ric{width:48px; height:48px; border-radius:13px; display:grid; place-items:center; flex-shrink:0; background:#fff;}
.link-row{display:flex; gap:10px; align-items:center; padding:11px 14px; border:1px solid var(--line); border-radius:11px; background:#fff; margin-bottom:8px; font-size:13px;}
.link-row .larrow{color:var(--red-400); flex-shrink:0;}
.di-doc-badge{display:inline-flex; align-items:center; gap:6px; background:var(--red-tint); color:var(--red-700); border-radius:8px; padding:4px 9px; font-size:11px; font-weight:800;}

/* ---------- case management system ---------- */
.cm-toolbar{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px;}
.cm-search{flex:1; min-width:220px; display:flex; align-items:center; gap:9px; background:#fff; border:1.5px solid var(--line); border-radius:11px; padding:0 14px;}
.cm-search input{flex:1; border:none; padding:12px 0; font-size:14px; font-family:var(--body); background:transparent;}
.cm-search input:focus{outline:none;}
.cm-search svg{color:var(--ink-3); flex-shrink:0;}
.cm-filter{border:1.5px solid var(--line); border-radius:10px; padding:10px 12px; font-size:13px; font-weight:600; font-family:var(--body); background:#fff; color:var(--ink-2); max-width:170px;}
.cm-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px;}
.cm-card{background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow); padding:18px; display:flex; flex-direction:column; gap:11px; border-top:4px solid var(--red-700); transition:transform .12s, box-shadow .12s; text-align:left; cursor:pointer;}
.cm-card:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg);}
.cm-card .cm-title{font-weight:800; font-size:15.5px; font-family:var(--body);}
.cm-card .cm-sub{font-size:12.5px; color:var(--ink-3);}
.cm-badges{display:flex; gap:6px; flex-wrap:wrap;}
.sbadge{display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:4px 9px; border-radius:999px;}
.pri-dot{width:8px; height:8px; border-radius:50%; display:inline-block;}
.cm-meta{display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--ink-3); font-weight:600;}
.cm-meta b{color:var(--ink); font-family:var(--mono); font-weight:600;}
.cm-prog{height:7px; background:#EFEBE9; border-radius:99px; overflow:hidden;}
.cm-prog i{display:block; height:100%; background:var(--red-700); border-radius:99px;}
.cm-actions{display:flex; gap:6px; flex-wrap:wrap; margin-top:2px;}
.cm-actions button{background:var(--red-tint); border:none; border-radius:8px; padding:7px 10px; font-size:11.5px; font-weight:700; color:var(--red-700);}
.cm-actions button:hover{background:var(--red-tint-2);}
.tagchip{display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; background:#F0EDEC; color:var(--ink-2); border-radius:999px; padding:3px 9px;}
.tagchip button{background:none; border:none; color:var(--ink-3); padding:0; font-size:11px; line-height:1;}
/* wizard */
.wiz-steps{display:flex; gap:4px; margin-bottom:24px;}
.wiz-steps i{flex:1; height:5px; border-radius:99px; background:#EAE5E3;}
.wiz-steps i.on{background:var(--red-700);}
.wiz-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px;}
.wiz-type{text-align:left; border:2px solid var(--line); border-radius:13px; background:#fff; padding:16px; transition:border-color .12s;}
.wiz-type:hover{border-color:var(--red-400);}
.wiz-type.sel{border-color:var(--red-700); box-shadow:0 0 0 4px var(--red-tint);}
.wiz-type b{display:block; font-size:14px; margin:8px 0 3px;}
.wiz-type span{font-size:12px; color:var(--ink-2);}
.wiz-review{border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; margin-bottom:12px;}
.wiz-review .wr{display:flex; padding:11px 16px; border-bottom:1px solid var(--line); font-size:13px; gap:14px;}
.wiz-review .wr:last-child{border-bottom:none;}
.wiz-review .wk{width:170px; flex-shrink:0; font-weight:700; color:var(--ink-3); font-size:12px; text-transform:uppercase; letter-spacing:.05em; padding-top:1px;}
.wiz-review .wv{font-family:var(--mono); font-size:12.5px; word-break:break-word;}
/* case detail tabs */
.cd-tabs{display:flex; gap:2px; border-bottom:2px solid var(--line); margin:18px 0 22px; overflow-x:auto; scrollbar-width:none;}
.cd-tabs::-webkit-scrollbar{display:none;}
.cd-tabs button{border:none; background:none; padding:10px 15px; font-size:13.5px; font-weight:700; color:var(--ink-3); border-bottom:3px solid transparent; margin-bottom:-2px; white-space:nowrap; font-family:var(--body);}
.cd-tabs button:hover{color:var(--red-700);}
.cd-tabs button.on{color:var(--red-700); border-bottom-color:var(--red-700);}
.note-card{background:#FFFDF5; border:1px solid #F0E6C8; border-radius:12px; padding:14px 16px; margin-bottom:10px; font-size:13.5px; white-space:pre-wrap;}
.note-card .nmeta{display:flex; gap:10px; font-size:11px; color:var(--ink-3); font-family:var(--mono); margin-top:8px; align-items:center;}
.note-card.pinned{border-color:var(--red-400); background:var(--red-tint);}
.note-card .npin{background:none; border:none; font-size:11px; font-weight:800; color:var(--red-700); padding:0; margin-left:auto;}
@media (max-width:960px){ .cm-grid{grid-template-columns:1fr;} .wiz-review .wk{width:120px;} }

/* ---------- compliance & privacy center ---------- */
.cp-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:14px;}
.cp-stat{display:flex; gap:12px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px;}
.cp-stat .cic{width:38px; height:38px; border-radius:10px; display:grid; place-items:center; flex-shrink:0; background:var(--red-tint); color:var(--red-700);}
.cp-stat .cic.ok{background:var(--green-tint); color:var(--green);}
.cp-stat .cic.warn{background:var(--orange-tint); color:var(--orange);}
.cp-stat b{display:block; font-size:14px;}
.cp-stat small{font-size:12px; color:var(--ink-3); display:block;}
.consent{display:flex; gap:14px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; background:#fff; padding:16px 18px; margin-bottom:12px;}
.consent .ctxt b{font-size:14.5px; display:block; margin-bottom:4px;}
.consent .ctxt p{font-size:13px; color:var(--ink-2);}
.consent .cmeta{font-size:11.5px; color:var(--ink-3); margin-top:6px; font-family:var(--mono);}
.switch{position:relative; width:46px; height:26px; flex-shrink:0; margin-left:auto;}
.switch input{opacity:0; width:0; height:0;}
.switch .track{position:absolute; inset:0; background:#D9D2CF; border-radius:99px; transition:background .15s; cursor:pointer;}
.switch .track::after{content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s;}
.switch input:checked + .track{background:var(--green);}
.switch input:checked + .track::after{left:23px;}
.switch input:focus-visible + .track{outline:3px solid rgba(198,40,40,.45); outline-offset:2px;}
.audit{border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden;}
.audit .arow{display:flex; gap:12px; align-items:center; padding:11px 16px; border-bottom:1px solid var(--line); font-size:13px;}
.audit .arow:last-child{border-bottom:none;}
.audit .aic{width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex-shrink:0; background:var(--red-tint); color:var(--red-700);}
.audit .aic.ok{background:var(--green-tint); color:var(--green);}
.audit .awhen{margin-left:auto; text-align:right; font-family:var(--mono); font-size:11px; color:var(--ink-3); flex-shrink:0;}
.audit .adev{font-size:11.5px; color:var(--ink-3);}
.vault-row{display:flex; gap:12px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); font-size:13.5px; background:#fff;}
.vault-row:last-child{border-bottom:none;}
.vault-row .vn{font-weight:700; word-break:break-all;}
.vault-row .vs{font-size:12px; color:var(--ink-3);}
.vault-row .vacts{margin-left:auto; display:flex; gap:6px; flex-shrink:0;}
.vault-row .vacts button{background:none; border:1px solid var(--line); border-radius:7px; padding:5px 9px; font-size:11.5px; font-weight:700; color:var(--ink-2);}
.vault-row .vacts button:hover{border-color:var(--red-400); color:var(--red-700);}
.danger-zone{border:1.5px solid var(--red-tint-2); background:linear-gradient(180deg,#fff, var(--red-tint));}
.badge-row{display:flex; flex-wrap:wrap; gap:10px;}
.cbadge{display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-size:12.5px; font-weight:700;}
.cbadge svg{color:var(--green);}
.cbadge.off svg{color:var(--ink-3);}
.cp-collapse{width:100%; text-align:left; background:none; border:none; display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:700; font-size:19px; color:var(--ink); padding:0;}
.cp-collapse .chev{margin-left:auto; transition:transform .15s; color:var(--ink-3);}
.cp-collapse.open .chev{transform:rotate(180deg);}

/* ---------- appeal packet builder ---------- */
.pk-steps{display:flex; gap:0; margin-bottom:22px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff;}
.pk-steps button{flex:1; border:none; background:#fff; padding:12px 8px; font-size:12.5px; font-weight:700; color:var(--ink-3); display:flex; align-items:center; justify-content:center; gap:7px; border-right:1px solid var(--line);}
.pk-steps button:last-child{border-right:none;}
.pk-steps button.on{background:var(--red-tint); color:var(--red-700);}
.pk-steps button.done{color:var(--green);}
.pk-steps .pkn{width:20px; height:20px; border-radius:50%; border:2px solid currentColor; display:grid; place-items:center; font-size:10.5px; flex-shrink:0;}
.enc-row{display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:#fff; margin-bottom:9px;}
.enc-row .eic{width:34px; height:34px; border-radius:9px; background:var(--red-tint); color:var(--red-700); display:grid; place-items:center; flex-shrink:0;}
.enc-row .en{font-weight:700; font-size:13.5px; word-break:break-all;}
.enc-row .es{font-size:12px; color:var(--ink-3);}
.enc-row select{border:1.5px solid var(--line); border-radius:8px; padding:7px 9px; font-size:12.5px; font-family:var(--body); background:#fff; max-width:190px;}
.enc-row .edel{margin-left:auto; background:none; border:none; color:var(--ink-3); padding:6px;}
.enc-row .edel:hover{color:var(--red-700);}
.enc-move{display:flex; flex-direction:column; gap:2px;}
.enc-move button{background:none; border:1px solid var(--line); border-radius:6px; width:24px; height:20px; display:grid; place-items:center; color:var(--ink-3); font-size:10px; padding:0;}
.enc-move button:hover:not(:disabled){color:var(--red-700); border-color:var(--red-400);}
.enc-move button:disabled{opacity:.35; cursor:default;}
.upzone-sm{border:2px dashed var(--red-tint-2); background:#fff; border-radius:14px; padding:26px 20px; text-align:center; transition:border-color .15s, background .15s; margin-bottom:14px;}
.upzone-sm.drag{border-color:var(--red-600); background:var(--red-tint);}
.mode-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-top:6px;}
.mode-card{text-align:left; border:2px solid var(--line); border-radius:14px; background:#fff; padding:18px; transition:border-color .12s, box-shadow .12s; position:relative;}
.mode-card:hover{border-color:var(--red-400);}
.mode-card.sel{border-color:var(--red-700); box-shadow:0 0 0 4px var(--red-tint);}
.mode-card .mic{width:38px; height:38px; border-radius:10px; background:var(--red-tint); color:var(--red-700); display:grid; place-items:center; margin-bottom:10px;}
.mode-card b{display:block; font-size:15px; margin-bottom:4px;}
.mode-card p{font-size:12.5px; color:var(--ink-2);}
.mode-card .mtag{position:absolute; top:12px; right:12px;}
.pk-toc{border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden;}
.pk-toc .trow{display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); font-size:13.5px;}
.pk-toc .trow:last-child{border-bottom:none;}
.pk-toc .tn{font-family:var(--mono); font-weight:600; color:var(--red-700); width:26px;}
.pk-toc .tp{margin-left:auto; font-family:var(--mono); font-size:12px; color:var(--ink-3);}
.pk-preview{background:#fff; border:1px solid var(--line); border-radius:12px; padding:26px 28px; font-family:var(--mono); font-size:11.5px; line-height:1.65; white-space:pre-wrap; max-height:340px; overflow:auto; color:var(--ink-2);}
.pk-summary{display:flex; gap:16px; flex-wrap:wrap; margin:14px 0;}
.pk-summary .pks{background:#fff; border:1px solid var(--line); border-radius:11px; padding:12px 16px; font-size:12.5px; color:var(--ink-3); font-weight:700;}
.pk-summary .pks b{display:block; font-family:var(--mono); font-size:17px; color:var(--ink); font-weight:600;}
.twofa-icon{width:58px; height:58px; border-radius:16px; background:var(--red-tint); color:var(--red-700); display:grid; place-items:center; margin-bottom:18px;}
.authsteps{display:flex; gap:6px; margin-bottom:26px;}
.authsteps i{height:4px; border-radius:99px; flex:1; background:#EAE5E3;}
.authsteps i.on{background:var(--red-700);}

.topbar{display:none;}
@media (max-width: 960px){
  .auth{grid-template-columns:1fr;}
  .auth-brand{display:none;}
  .otp input{width:100%; height:56px; font-size:22px;}
  .hero{grid-template-columns:1fr; padding-top:44px;}
  .scanwrap{max-width:460px; margin:0 auto;}
  .strip-in{grid-template-columns:repeat(2,1fr);}
  .grid3{grid-template-columns:1fr;}
  .grid2{grid-template-columns:1fr;}
  .statgrid{grid-template-columns:repeat(2,1fr);}
  .shell{grid-template-columns:1fr;}
  .side{position:fixed; left:0; top:0; bottom:0; width:250px; transform:translateX(-105%); transition:transform .2s ease; z-index:50; height:100vh;}
  .side.open{transform:translateX(0); box-shadow:0 0 60px rgba(0,0,0,.3);}
  .topbar{display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:40;}
  .main{padding:18px 16px 50px;}
  .msg{max-width:92%;}
  .land-nav-in nav{display:none;}
}

/* ---------- design elevation: reveal, hover lift, typing dots, empty states ---------- */
@keyframes reveal-in{from{opacity:0; transform:translateY(12px);} to{opacity:1; transform:translateY(0);}}
.reveal{animation:reveal-in 420ms cubic-bezier(0.22,1,0.36,1) both;}
.reveal:nth-child(2){animation-delay:60ms;}
.reveal:nth-child(3){animation-delay:120ms;}
.reveal:nth-child(4){animation-delay:180ms;}
.reveal:nth-child(5){animation-delay:240ms;}
.reveal:nth-child(6){animation-delay:300ms;}
.reveal:nth-child(7){animation-delay:360ms;}
.reveal:nth-child(8){animation-delay:420ms;}
.reveal:nth-child(n+9){animation-delay:480ms;}
.hoverlift{transition:transform .15s ease, box-shadow .15s ease;}
.hoverlift:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg);}
.msg.typing{display:inline-flex; gap:5px; align-items:center; padding:16px 18px; min-height:20px;}
.msg.typing i{width:7px; height:7px; border-radius:50%; background:var(--ink-3); animation:type-bounce 1.1s ease-in-out infinite;}
.msg.typing i:nth-child(2){animation-delay:.15s;}
.msg.typing i:nth-child(3){animation-delay:.3s;}
@keyframes type-bounce{0%,60%,100%{transform:translateY(0); opacity:.45;} 30%{transform:translateY(-5px); opacity:1;}}
.empty-state{text-align:center; padding:38px 22px; background:#fff;}
.empty-state .eico{width:52px; height:52px; border-radius:14px; background:var(--red-tint); color:var(--red-700); display:grid; place-items:center; margin:0 auto 14px;}
.empty-state h4{font-family:var(--display); font-weight:700; font-size:19px; margin-bottom:6px; color:var(--ink);}
.empty-state p{font-size:13.5px; color:var(--ink-3); max-width:44ch; margin:0 auto;}
.expand{overflow:hidden; max-height:0; transition:max-height .35s cubic-bezier(0.22,1,0.36,1);}
.expand.open{max-height:640px;}
@media (prefers-reduced-motion: reduce){
  .reveal{animation:none;}
  .msg.typing i{animation:none; opacity:.7;}
  .hoverlift, .hoverlift:hover{transform:none; transition:none;}
  .expand{transition:none;}
}
