*{box-sizing:border-box}
 :root{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:var(--foreground);background:var(--muted);font-synthesis:none}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer;border:0;background:none;color:inherit}
button:disabled{opacity:.45;cursor:wait}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.stage{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:100px;padding:30px;background:radial-gradient(ellipse at 70% 20%,var(--muted),transparent 55%)}
.controls{width:310px}
.brand{font-size:30px;font-weight:800;color:var(--primary)}
.brand span{font-weight:400}
.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted-foreground);margin-top:25px}
h1{font-size:40px;line-height:1.4;letter-spacing:-1px;margin:20px 0}
.controls p{color:var(--muted-foreground);line-height:1.8}
.controls section{margin:30px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.controls label{grid-column:1/-1;font-size:12px;color:var(--muted-foreground)}
.controls select{grid-column:1/-1;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:12px}
.controls button{background:var(--border);border-radius:9px;padding:12px;font-size:12px}
.controls small{font-size:11px;line-height:1.9;color:var(--muted-foreground)}
.phone{width:393px;height:830px;max-height:94dvh;background:var(--card);position:relative;border:8px solid var(--foreground);border-radius:49px;overflow:hidden;box-shadow:0 30px 70px var(--shadow-color)}
.statusbar{height:43px;padding:15px 22px 7px;display:flex;justify-content:space-between;font-size:12px;font-weight:700}
.homebar{height:17px;background:var(--card)}
.homebar:after{content:'';display:block;width:125px;height:4px;border-radius:5px;background:var(--foreground);margin:7px auto}
#app{height:calc(100% - 60px);display:flex;flex-direction:column}
.top{display:flex;align-items:center;gap:12px;padding:12px 17px;border-bottom:1px solid var(--muted);flex-shrink:0}
.back{font-size:26px;padding:4px 9px}
.avatar{display:grid;place-items:center;color:var(--card);background:linear-gradient(135deg,var(--primary),var(--primary));width:34px;height:34px;border-radius:12px}
.title{flex:1;font-weight:700}
.title small{display:block;font-size:10px;color:var(--muted-foreground);font-weight:400;margin-top:4px}
.pill{background:var(--muted);color:var(--primary);border-radius:20px;padding:8px 11px;font-size:11px}
.demo{text-align:center;background:var(--card);color:var(--muted-foreground);font-size:10px;padding:7px}
.scroll{overflow-y:auto;flex:1;padding:22px 18px;overscroll-behavior:contain}
.hero{padding:20px 2px}
.spark{font-size:35px;color:var(--primary)}
.hero h2{font-size:24px;margin:18px 0 10px}
.hero p{font-size:13px;line-height:1.8;color:var(--muted-foreground)}
.primary{background:var(--primary);color:var(--card);padding:14px 17px;border-radius:13px;font-weight:600;width:100%;font-size:14px}
.scan-invite{border:1px solid var(--border);border-radius:20px;padding:19px;background:linear-gradient(140deg,var(--muted),var(--card));margin:8px 0 20px}
.scan-invite h3{font-size:16px;margin:0 0 8px}
.scan-invite p{font-size:12px;line-height:1.7;color:var(--muted-foreground);margin-bottom:17px}
.suggest{display:block;padding:13px;border:1px solid var(--border);border-radius:12px;margin:9px 0;width:100%;text-align:left;font-size:12px}
.suggest:after{content:'↗';float:right;color:var(--muted-foreground)}
.composer{padding:12px 14px 7px;border-top:1px solid var(--muted);background:var(--card)}
.input-wrap{display:flex;border:1px solid var(--border);border-radius:16px;padding:7px;background:var(--card);gap:8px}
.input-wrap input{border:0;min-width:0;background:transparent;flex:1;padding:8px;font-size:13px;outline:none}
.send{background:var(--primary);color:var(--card);border-radius:11px;min-width:38px}
.footnote{text-align:center;font-size:9px;color:var(--muted-foreground);margin:7px 0 0}
.bubble{font-size:13px;line-height:1.85;margin-bottom:18px;padding:14px;border-radius:16px;background:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.bubble.user{margin-left:45px;background:var(--muted);color:var(--primary)}
.report{border:1px solid var(--border);border-radius:18px;padding:17px;margin-bottom:20px}
.report h3{font-size:17px;margin:10px 0}
.report p{font-size:12px;line-height:1.8;color:var(--muted-foreground)}
.tag{font-size:10px;color:var(--success);background:var(--muted);padding:5px 8px;border-radius:6px}
.tag.warn{color:var(--warning);background:var(--muted)}
.result-row{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;padding:15px 0;border-top:1px solid var(--muted);font-size:13px}
.result-row small{display:block;color:var(--muted-foreground);font-size:10px;margin-top:6px}
.result-row em{font-size:10px;font-style:normal;color:var(--primary)}
.secondary{font-size:12px;color:var(--primary);padding:12px;border:1px solid var(--border);border-radius:10px;width:100%;margin-top:8px}
.wallet{padding:20px;flex:1;background:linear-gradient(var(--card),var(--card) 60%)}
.wallet-head{display:flex;justify-content:space-between;align-items:center;font-size:14px}
.balance{margin:35px 0 26px}
.balance small{color:var(--muted-foreground);font-size:12px}
.balance h2{font-size:37px;margin:12px 0}
.wallet-actions{display:flex;justify-content:space-between;border-bottom:1px solid var(--muted);padding-bottom:28px}
.wallet-actions span{font-size:12px;text-align:center}
.wallet-actions b{display:block;background:var(--card);padding:14px;border-radius:18px;color:var(--primary);font-size:22px;margin-bottom:8px}
.ai-entry{width:100%;background:var(--muted);border:1px solid var(--border);border-radius:18px;text-align:left;padding:18px;margin:24px 0;display:flex;gap:13px;align-items:center}
.ai-entry strong{font-size:16px}
.ai-entry small{display:block;color:var(--muted-foreground);font-size:11px;margin-top:6px}
.token{padding:20px 0;border-bottom:1px solid var(--muted);display:flex;justify-content:space-between;font-size:14px}
.token small{display:block;font-size:11px;color:var(--muted-foreground);margin-top:7px}
.nav{display:flex;justify-content:space-around;color:var(--muted-foreground);font-size:11px;padding:18px}
.nav b{color:var(--primary)}
dialog{position:absolute;top:auto;bottom:0;margin:0;width:100%;max-width:none;max-height:90%;border:0;border-radius:25px 25px 0 0;padding:24px 20px;box-shadow:0 -10px 50px var(--shadow-color);overflow:auto}
dialog::backdrop{background:var(--shadow-color)}
dialog h2{font-size:20px;margin:7px 0 14px}
dialog p,dialog li{font-size:12px;line-height:1.9;color:var(--muted-foreground)}
.close{float:right;font-size:21px}
.evidence{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--muted);padding:14px;border-radius:12px;font-size:11px;line-height:2}
.pay-options{display:flex;gap:6px}
.pay-options button{flex:1;padding:14px 5px;border:1px solid var(--border);border-radius:12px;font-size:11px}
.pay-options .selected{color:var(--primary);border-color:var(--primary);background:var(--muted)}
.quote{background:var(--card);border-radius:14px;padding:14px;margin:16px 0;font-size:12px;line-height:2.2}
.quote strong{font-size:25px}
.toast{color:var(--warning);font-size:12px;line-height:1.6}
.progress{height:5px;background:var(--muted);border-radius:10px;overflow:hidden;margin-top:14px}
.progress div{height:100%;background:var(--primary);transition:width .3s}
.record{border-bottom:1px solid var(--muted);padding:10px;font-size:12px}
.mobile-controls{display:none}
@media(max-width:700px){.stage{padding:0;display:block}
.controls{width:100%;padding:10px 14px}
.controls> .brand,.controls>p,.controls>h1,.controls>small{display:none}
.controls section{margin:0;display:flex;gap:6px}
.controls label{display:none}
.controls select{min-width:0;width:30%;font-size:10px;padding:7px}
.controls button{font-size:10px;padding:7px}
.phone{width:100%;height:calc(100dvh - 51px);max-height:none;border:0;border-radius:0;box-shadow:none}
.statusbar{display:none}
#app{height:calc(100% - 17px)}
.composer{padding-bottom:max(7px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}
}

.stage{padding:18px;gap:0;background:var(--muted)}
.phone{height:850px;max-height:calc(100dvh - 36px)}
.discover{padding:16px 15px;overflow-y:auto;flex:1;min-height:0}
.searchbar{display:flex;align-items:center;gap:10px;background:var(--muted);border-radius:13px;color:var(--muted-foreground);font-size:12px;height:39px;padding:8px 12px;margin-bottom:8px}
.searchbar span:first-child{font-size:25px;color:var(--foreground)}
.searchbar span:nth-child(2){flex:1}
.searchbar b{font-size:24px;color:var(--foreground)}
.discovery-banner,.discovery-promos{display:block;width:100%;border-radius:12px}
.discover-tabs{display:flex;align-items:center;gap:20px;font-size:17px;color:var(--muted-foreground);margin:18px 0 16px}
.discover-tabs strong{color:var(--foreground)}
.demo-settings{margin-left:auto;font-size:9px;color:var(--muted-foreground);padding:5px}
.dapps{display:grid;grid-template-columns:repeat(5,1fr);gap:18px 8px;margin-bottom:25px}
.dapp{padding:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;color:var(--foreground);min-width:0;line-height:1.35}
.app-icon,.tp-icon{width:48px;height:48px;border-radius:12px;display:block;flex-shrink:0}
.tp-icon{background:var(--primary);color:var(--card);font-size:20px;font-weight:800;display:grid;place-content:center;line-height:1}
.tp-icon small{font-size:11px;margin-top:3px;letter-spacing:3px}
.app-icon{background-repeat:no-repeat;background-position:var(--pos) center;background-size:auto 48px}
.top-icon{background-image:url('../assets/icons-top.png')}
.bottom-icon{background-image:url('../assets/icons-bottom.png')}
.discovery-promos{margin-bottom:23px}
.earn-title{display:flex;justify-content:space-between;align-items:center;font-size:18px;color:var(--foreground)}
.earn-title span{font-size:12px;color:var(--muted-foreground)}
.earn-caption{font-size:10px;color:var(--muted-foreground);line-height:1.6;margin:6px 0 18px}
.earn-row{display:flex;gap:12px;align-items:center;padding:0 0 23px}
.earn-icon{background:var(--border);width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:25px}
.earn-row strong{font-size:14px;font-weight:500}
.earn-row small{font-size:10px;color:var(--muted-foreground);display:block;margin-top:5px}
.earn-row em{font-size:10px;color:var(--primary);font-style:normal;border:1px solid;border-radius:3px;padding:2px}
.nav{border-top:1px solid var(--muted);flex-shrink:0;padding:9px 0 2px;color:var(--muted-foreground);font-size:26px;background:var(--card)}
.nav>*{text-align:center;font-weight:400}
.nav small{font-size:10px;display:block;margin-top:3px}
.nav b{color:var(--primary)}
.scroll{min-height:0}
.demo{border:0;width:100%;cursor:pointer;font-size:9px;background:var(--card);padding:5px;color:var(--muted-foreground)}
#modal-layer{position:absolute;inset:0;z-index:20;background:var(--shadow-color);display:flex;align-items:flex-end}
#modal-layer[hidden]{display:none}
#sheet{width:100%;max-height:90%;overflow-y:auto;background:var(--card);padding:22px 20px max(20px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;box-shadow:0 -10px 40px var(--shadow-color)}
#sheet h2{font-size:20px;margin:8px 0 16px}
#sheet h3{font-size:14px}
#sheet p{font-size:12px;line-height:1.8;color:var(--muted-foreground)}
#sheet label{display:block;font-size:12px;margin:16px 0 8px}
#sheet select{display:block;width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
#sheet .primary{margin-top:12px}
@media(max-width:700px){.stage{padding:0}
.phone{height:100dvh;max-height:none;width:100%;border:0;border-radius:0}
.discover{padding-top:16px}
.dapp{font-size:11px}
.app-icon,.tp-icon{width:48px;height:48px}
#app{height:calc(100% - 17px)}
}

.address-input{display:block;width:100%;border:1px solid var(--border);border-radius:10px;padding:12px;font-size:13px;min-width:0}

.risk-overview{padding:17px;border-radius:14px;background:var(--muted);color:var(--foreground);margin-bottom:15px}
.risk-overview.medium{background:var(--muted);color:var(--warning)}
.risk-overview.high{background:var(--muted);color:var(--destructive)}
.risk-overview.unknown{background:var(--muted);color:var(--muted-foreground)}
.risk-caption{font-size:11px}
.report .risk-overview h3{font-size:25px;margin:7px 0 12px}
.report .risk-overview p{color:inherit;margin-bottom:5px}
.risk-scale{display:flex;gap:5px}
.risk-scale span{flex:1;border-radius:4px;background:var(--shadow-color);text-align:center;font-size:10px;padding:5px;color:var(--muted-foreground)}
.risk-scale .active{background:currentColor;font-weight:700;position:relative;color:inherit;box-shadow:inset 0 0 0 1px currentColor;background:var(--card)}
.rating-rule{font-size:10px;color:inherit;padding:5px 0}
.section-label{font-weight:600}
.result-row>span{flex:1;min-width:0;padding-right:10px}
.result-row small{line-height:1.6;color:var(--muted-foreground)}
.result-row em{flex-shrink:0}
.level-high{color:var(--destructive)!important}
.level-medium{color:var(--warning)!important}
.level-low{color:var(--foreground)!important}
.level-unknown{color:var(--muted-foreground)!important}
.mini-risk{margin-top:9px;font-size:9px;color:var(--success);display:flex;align-items:center;gap:8px}
.mini-risk.medium{color:var(--warning)}
.mini-risk.high{color:var(--destructive)}
.mini-track{height:4px;background:var(--border);flex:1;border-radius:5px;overflow:hidden}
.mini-track i{display:block;height:100%;background:currentColor}
.aml-score{display:flex;justify-content:space-between;align-items:center;color:var(--success);margin:18px 0}
.aml-score.medium{color:var(--warning)}
.aml-score.high{color:var(--destructive)}
.aml-score strong{font-size:42px;display:block;margin-top:5px}
.aml-score small{font-size:11px;font-weight:400}
.aml-score strong small{font-size:15px;margin-left:5px}
.aml-score b{font-size:16px}
.score-spectrum{height:10px;position:relative;background:linear-gradient(to right,var(--success) 0% 30%,var(--warning) 30% 70%,var(--destructive) 70% 100%);border-radius:8px}
.score-spectrum i{position:absolute;top:-4px;height:18px;width:3px;background:var(--foreground);border:1px solid var(--card);border-radius:3px}
.score-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted-foreground);margin-top:8px}
.risk-tags{display:flex;gap:7px;flex-wrap:wrap}
.risk-tags span{background:var(--muted);font-size:11px;border-radius:6px;padding:7px}
.exposure{border:1px solid var(--border);border-radius:12px;padding:12px}
.exposure-heading{display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between;font-size:12px}
.exposure-heading>span{font-size:10px;color:var(--muted-foreground)}
.exposure-stats{display:flex;justify-content:space-between;margin:15px 0}
.exposure-stats b{font-size:17px;display:block}
.exposure-stats small{font-size:9px;color:var(--muted-foreground)}
.exposure-bar{height:5px;border-radius:5px;background:var(--muted);overflow:hidden}
.exposure-bar i{display:block;height:100%;background:var(--primary)}
.fund-path{margin:18px 0 0}
.path-node{display:flex;gap:12px;position:relative;padding-bottom:17px}
.path-node:not(:last-child):before{content:'';position:absolute;top:11px;bottom:0;left:4px;width:1px;background:var(--primary)}
.path-dot{height:9px;width:9px;border-radius:50%;background:var(--primary);flex-shrink:0;margin-top:4px}
.path-node small{font-size:9px;color:var(--muted-foreground)}
.path-address{display:block;font-size:11px;overflow-wrap:anywhere;line-height:1.6}
.rule-row{border-top:1px solid var(--border);padding-top:13px}
.rule-row b{font-size:13px}

.network-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.network-chips button{border:1px solid var(--border);background:var(--card);color:var(--primary);border-radius:20px;padding:9px 12px;font-size:12px}
.network-chips button:disabled{opacity:.45;cursor:default}

/* Compact conversational report: one surface, no nested colored cards. */
.report-clean{border:1px solid var(--muted);border-radius:18px;padding:0;background:var(--card);box-shadow:0 3px 14px var(--shadow-color);overflow:hidden;margin-top:4px}
.report-clean .risk-overview{background:none;border-radius:0;margin:0;padding:20px 18px 13px;color:var(--success)}
.report-clean .risk-overview.medium{color:var(--warning)}
.report-clean .risk-overview.high{color:var(--destructive)}
.report-clean .risk-overview.unknown{color:var(--muted-foreground)}
.report-heading{display:flex;gap:11px;align-items:center}
.report-symbol{height:40px;width:40px;display:grid;place-items:center;background:var(--muted);border-radius:12px;flex-shrink:0}
.high .report-symbol{background:var(--card)}
.medium .report-symbol{background:var(--muted)}
.report-symbol svg{width:25px;height:25px}
.report-kicker{font-size:10px;color:var(--muted-foreground);letter-spacing:.5px}
.report-clean .risk-overview h3{font-size:22px;line-height:1.3;margin:2px 0 0;letter-spacing:-.5px;font-weight:650}
.report-clean .risk-overview p{margin:13px 0 0;font-size:12px;line-height:1.7;color:var(--muted-foreground)}
.report-clean .rating-rule{margin-left:auto;align-self:flex-start;padding:4px;color:var(--muted-foreground);font-size:15px;min-width:26px;min-height:28px}
.report-account{margin:0 18px 12px;color:var(--muted-foreground);font-size:10px}
.report-account summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;min-height:28px}
.report-account summary::-webkit-details-marker{display:none}
.report-account summary>span:nth-child(2){margin-left:auto;font-variant-numeric:tabular-nums}
.report-account>div{overflow-wrap:anywhere;font-size:10px;line-height:1.7;padding:7px 0;color:var(--muted-foreground)}
.chain-dot{height:5px;width:5px;background:var(--muted-foreground);border-radius:50%}
.account-expand{color:var(--muted-foreground)}
.check-list{margin:0 18px;border-top:1px solid var(--muted)}
.clean-row{gap:11px;padding:16px 0;align-items:flex-start;border-top:0;border-bottom:1px solid var(--muted)}
.clean-row:last-child{border-bottom:0}
.clean-row .check-icon{width:19px;height:19px;flex:0 0 19px;display:grid;place-items:center;border-radius:50%;font-size:11px;line-height:1;background:var(--muted);color:var(--success);padding:0;margin-top:1px}
.clean-row .check-icon.high{background:var(--muted);color:var(--destructive)}
.clean-row .check-icon.medium{background:var(--muted);color:var(--warning)}
.clean-row .check-icon.unknown{background:var(--muted);color:var(--muted-foreground)}
.clean-row .check-copy{padding:0;flex:1;min-width:0}
.check-copy strong{font-size:12px;font-weight:600;color:var(--foreground)}
.clean-row small{font-size:10px;line-height:1.65;color:var(--muted-foreground);margin-top:5px}
.clean-row .row-arrow{padding:0;flex:0 0 9px;color:var(--muted-foreground);font-size:18px;line-height:18px}
.report-clean .mini-risk{margin-top:8px;font-size:9px;gap:9px}
.report-clean .mini-track{max-width:112px;height:3px}
.report-actions{display:flex;gap:8px;border:0;margin-top:2px}
.report-actions button{flex:1;display:flex;justify-content:center;gap:16px;align-items:center;padding:14px 8px;color:var(--muted-foreground);font-size:11px}
.report-actions button span{color:var(--muted-foreground)}
.composer{padding:11px 14px 9px}
.bubble.user{font-size:12px}
.report-clean .risk-scale{display:none}


.authorization-link{display:block;margin-top:7px;color:var(--primary);font-size:10px}
.native-demo{font-size:10px;color:var(--muted-foreground)}
.authorization-page{flex:1;min-height:0;overflow:auto;background:var(--card);padding:22px 17px}
.authorization-overview>small{font-size:11px;color:var(--muted-foreground)}
.authorization-overview h2{font-size:21px;letter-spacing:-.5px;margin:9px 0 20px}
.authorization-counts{display:flex;gap:30px;font-size:12px}
.authorization-counts b{font-size:30px;font-weight:650;margin-right:5px}
.authorization-counts .high{color:var(--destructive)}
.authorization-counts .medium{color:var(--warning)}
.authorization-overview p{font-size:12px;color:var(--muted-foreground);margin:16px 0 24px}
.authorization-filters{display:flex;gap:5px;margin-bottom:14px}
.authorization-filters button{padding:10px 8px;border-radius:9px;font-size:11px;color:var(--muted-foreground);flex:1;white-space:nowrap}
.authorization-filters button.active{color:var(--primary);background:var(--muted);font-weight:600}
.approval-record{background:var(--card);border:1px solid var(--muted);border-radius:14px;margin:10px 0;overflow:hidden}
.approval-record summary{list-style:none;display:flex;align-items:center;gap:10px;padding:17px 12px;cursor:pointer}
.approval-record summary::-webkit-details-marker{display:none}
.token-monogram{width:32px;height:32px;display:grid;place-items:center;background:var(--muted);color:var(--success);border-radius:50%;font-size:15px}
.approval-record summary strong{font-size:12px;display:block;font-weight:600}
.approval-record summary small{display:block;font-size:10px;color:var(--muted-foreground);margin-top:6px}
.approval-record summary em{margin-left:auto;font-size:10px;font-style:normal;white-space:nowrap}
.approval-chevron{color:var(--muted-foreground)}
.approval-record[open] .approval-chevron{transform:rotate(180deg)}
.approval-body{border-top:1px solid var(--muted);padding:0 14px 12px}
.approval-body p{font-size:12px;line-height:1.8;color:var(--muted-foreground)}
.approval-body dl{font-size:10px;line-height:1.7}
.approval-body dt{color:var(--muted-foreground);margin-top:9px}
.approval-body dd{margin:4px 0;overflow-wrap:anywhere;color:var(--muted-foreground)}
.approval-body .approval-advice{color:var(--primary);font-size:11px}
.approval-note,.approval-empty{font-size:10px;color:var(--muted-foreground);text-align:center;margin:22px 0;line-height:1.6}


.ai-floating-bubble{position:absolute;right:18px;bottom:calc(32px + env(safe-area-inset-bottom));width:58px;height:58px;border-radius:50%;background:linear-gradient(145deg,var(--primary),var(--primary));color:var(--card);box-shadow:0 5px 18px var(--shadow-color);border:2px solid var(--card);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;z-index:5}
.ai-floating-bubble>span{font-size:22px;line-height:1}
.ai-floating-bubble small{font-size:9px;font-weight:600}
.authorization-page{padding-bottom:100px}


.aml-chat{--aml-color:var(--success);border:1px solid var(--muted);border-radius:18px;background:var(--card);padding:18px;margin:6px 0 16px}
.aml-chat.medium{--aml-color:var(--warning)}
.aml-chat.high{--aml-color:var(--destructive)}
.aml-chat-title{font-size:13px;font-weight:600;display:flex;justify-content:space-between;align-items:center}
.aml-chat-title>span{font-size:9px;color:var(--muted-foreground);font-weight:400}
.aml-visual{display:flex;gap:20px;align-items:center;margin:24px 0}
.aml-ring{width:100px;height:100px;border-radius:50%;background:conic-gradient(var(--aml-color) var(--score),var(--muted) 0);padding:7px;flex-shrink:0}
.aml-ring>div{background:var(--card);width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.aml-ring strong{font-size:31px;color:var(--aml-color);font-weight:650;line-height:1.15}
.aml-ring small{font-size:10px;color:var(--muted-foreground);margin-top:4px}
.aml-visual b{font-size:20px;color:var(--aml-color)}
.aml-visual p{font-size:10px;color:var(--muted-foreground);line-height:1.6;margin:8px 0}
.aml-visual>div>small{font-size:9px;color:var(--muted-foreground)}
.aml-metrics{display:flex;border-top:1px solid var(--muted);border-bottom:1px solid var(--muted);padding:15px 0}
.aml-metrics>div{flex:1;display:flex;align-items:center;justify-content:center;gap:10px}
.aml-metrics>div+div{border-left:1px solid var(--muted)}
.aml-metrics b{font-size:21px;font-weight:600}
.aml-metrics small{font-size:10px;color:var(--muted-foreground)}
.aml-labels{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
.aml-labels span{font-size:10px;color:var(--aml-color);background:var(--card);padding:7px 9px;border-radius:6px}
.aml-more{display:flex;justify-content:space-between;width:100%;padding:17px 0 0;font-size:11px;color:var(--primary)}
.aml-clear{font-size:10px;color:var(--muted-foreground);padding-top:16px}
.aml-clear>span{color:var(--aml-color);margin-right:7px}
.aml-flow{margin-top:20px}
.aml-flow>strong{font-size:12px;display:block}
.aml-flow>small{font-size:10px;color:var(--muted-foreground);display:block;margin-top:5px}
.aml-flow .fund-path{background:var(--card);border-radius:12px;padding:15px 15px 0}
.aml-flow .path-node{padding-bottom:16px}
.aml-volume{display:flex;justify-content:space-between;margin:16px 0 12px}
.aml-volume b{font-size:20px;font-weight:600;display:block}
.aml-volume small{font-size:9px;color:var(--muted-foreground);display:block;margin-top:5px}
.aml-flow .exposure-bar i{background:var(--aml-color)}
.aml-context{font-size:10px;color:var(--muted-foreground);line-height:1.7;margin:16px 0 10px}
.aml-source{font-size:9px;color:var(--muted-foreground)}
.aml-source summary{cursor:pointer;padding:5px 0}
.aml-source p{line-height:1.8}
.aml-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:25px;color:var(--muted-foreground)}
.aml-empty>span{font-size:35px}
.aml-empty strong{font-size:15px}
.aml-empty small{font-size:11px}


.inline-findings{padding:0 0 12px 30px}
.inline-findings>div{display:flex;gap:8px;margin:0 0 12px}
.finding-level{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;background:var(--card);border-radius:5px;font-size:9px}
.inline-findings p{margin:0!important;line-height:1.6}
.inline-findings b{font-size:10px;font-weight:500;color:var(--muted-foreground)}
.inline-findings small{display:block;font-size:9px;color:var(--muted-foreground);margin-top:3px}
.authorization-chat .authorization-counts{margin:20px 0}
.authorization-chat .approval-record{margin:12px 0 0}
.permission-status{font-size:21px;font-weight:600;margin-top:20px}
.permission-summary{font-size:11px;color:var(--muted-foreground);line-height:1.7}
.permission-group{background:var(--card);border-radius:12px;padding:13px;margin:12px 0}
.permission-group header{display:flex;justify-content:space-between;font-size:12px;margin-bottom:15px}
.permission-group header>span{font-size:10px;color:var(--muted-foreground)}
.permission-key{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:13px;font-size:11px}
.permission-key b{font-size:10px;color:var(--muted-foreground);font-weight:500}
.permission-key small{grid-column:1/-1;font-size:9px;color:var(--muted-foreground)}
.permission-group>p{font-size:9px;color:var(--muted-foreground);margin:14px 0 0}
.permission-history{font-size:10px;display:flex;flex-direction:column;gap:6px;margin-top:17px;color:var(--muted-foreground)}
.permission-history strong{font-weight:500;color:var(--muted-foreground)}

/* TP2.0 mobile tokens: source is src/design-tokens.json. */
:root{--tp-primary:var(--primary);--tp-text:var(--foreground);--tp-secondary:var(--foreground);--tp-muted:var(--muted-foreground);--tp-page:var(--muted);--tp-border:var(--muted);--tp-danger:var(--destructive);--tp-warning:var(--warning);--tp-success:var(--success);font-family:"PingFang SC","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tp-text)}

.stage{gap:48px;align-items:flex-start;padding:24px;background:var(--muted)}
.phone{width:409px;height:868px;max-height:calc(100dvh - 48px);flex-shrink:0}
.top{min-height:60px;padding:8px 12px;gap:8px}
.back,.close,.rating-rule{min-width:44px!important;min-height:44px!important}
.top .title{font-size:16px;line-height:23px}
.title small{font-size:10px;line-height:14px;color:var(--tp-muted)}
.pill{min-height:44px;font-size:12px;background:var(--card);color:var(--tp-primary)}
.demo{font-size:10px;color:var(--tp-muted);min-height:28px}
.scroll{padding:16px;background:var(--card)}
.primary{min-height:48px;background:var(--tp-primary);border-radius:8px;font-size:16px;line-height:23px}
.secondary,.suggest{min-height:44px;border-radius:8px;font-size:14px}
.bubble,.bubble.user{font-size:14px;line-height:20px;border-radius:8px}
.bubble.user{background:var(--muted)}
.hero h2{font-size:22px;line-height:31px}
.hero p,.scan-invite p{font-size:14px;line-height:20px;color:var(--tp-muted)}
.scan-invite{border-radius:8px;background:var(--card);padding:16px}
.composer{padding:12px 16px}
.input-wrap{border-radius:6px;border-color:var(--tp-border)}
#question{font-size:14px;min-width:0}
.send{min-width:44px;min-height:44px;border-radius:8px;background:var(--tp-primary)}
.report-clean,.aml-chat{border-radius:8px;border-color:var(--tp-border);box-shadow:none}
.report-clean .risk-overview{padding:16px}
.report-clean .risk-overview h3{font-size:22px;line-height:31px}
.report-clean .risk-overview p{font-size:12px;line-height:17px;color:var(--tp-muted)}
.report-kicker{font-size:10px;color:var(--tp-muted)}
.report-account{font-size:12px;margin:0 16px 12px}
.report-account summary{min-height:44px}
.check-list{margin:0 16px}
.clean-row{padding:16px 0;min-height:44px}
.check-copy strong{font-size:14px;line-height:20px;color:var(--tp-text)}
.clean-row small{font-size:12px;line-height:17px;color:var(--tp-muted)}
.authorization-link{font-size:12px;color:var(--tp-primary)}
.report-actions button{font-size:12px;min-height:44px}
.inline-findings b{font-size:12px;line-height:17px;color:var(--tp-secondary)}
.inline-findings small{font-size:12px;line-height:17px;color:var(--tp-muted)}
.finding-level{font-size:10px;width:20px;height:20px;flex-basis:20px}
.mini-risk,.report-clean .mini-risk{font-size:10px}
.level-high{color:var(--tp-danger)!important}
.level-medium{color:var(--warning)!important}
.level-low{color:var(--success)!important}
.aml-chat{padding:16px}
.aml-chat-title{font-size:14px;line-height:20px}
.aml-chat-title>span{font-size:10px;color:var(--tp-muted)}
.aml-visual p,.aml-visual>div>small,.aml-metrics small,.aml-clear,.aml-labels span,.aml-flow>small,.aml-volume small,.aml-context,.aml-source{font-size:12px;line-height:17px;color:var(--tp-muted)}
.aml-more{font-size:14px;min-height:44px;color:var(--tp-primary)}
.aml-flow>strong,.path-address{font-size:12px;line-height:17px}
.path-node small{font-size:10px}
.aml-source summary{min-height:44px;display:flex;align-items:center}
.approval-record{border-radius:8px}
.approval-record summary{min-height:44px;padding:16px 12px}
.approval-record summary strong{font-size:14px}
.approval-record summary small,.approval-record summary em,.approval-body dl,.approval-body .approval-advice{font-size:12px;line-height:17px}
.approval-body p,.permission-summary,.permission-key,.permission-group header,.permission-history,.permission-group>p{font-size:12px;line-height:17px}
.permission-key small,.permission-key b,.permission-group header>span{font-size:12px}
.permission-group{border-radius:8px}
.permission-summary,.permission-key small,.permission-group>p{color:var(--tp-muted)}
#sheet{border-radius:16px 16px 0 0;padding:24px 16px}
#sheet h2{font-size:20px;line-height:28px}
#sheet p,#sheet label,.quote,.pay-options button,.record,.toast{font-size:12px;line-height:17px}
.quote{padding:16px;line-height:1.9;border-radius:8px}
.pay-options button{min-height:48px;border-radius:8px}
.network-chips button{min-height:44px;font-size:14px}
.evidence{font-size:12px;line-height:20px;border-radius:8px}
#modal-layer{background:var(--scrim)}

#preview-console{width:280px;max-height:calc(100dvh - 48px);overflow:auto;flex-shrink:0;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px}
.preview-title{display:flex;justify-content:space-between;align-items:center}
.preview-title>span{font-size:20px;font-weight:700}
.preview-title>small{font-size:11px;color:var(--muted-foreground)}
#preview-console h2{font-size:16px;margin:26px 0 6px}
#preview-console>p{font-size:12px;color:var(--muted-foreground);margin:0 0 22px}
#preview-console h3{font-size:11px;color:var(--muted-foreground);font-weight:500;margin:20px 0 10px}
#preview-console section>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#preview-console button{min-height:44px;padding:8px;font-size:12px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--muted-foreground);text-align:left}
#preview-console button.active{color:var(--primary);border-color:var(--primary);background:var(--card)}
.preview-note{font-size:10px;color:var(--muted-foreground);margin-top:24px;line-height:1.7}
#preview-mobile{display:none}

@media(max-width:760px){#preview-console{display:none}
#preview-mobile{height:56px;display:flex;align-items:center;justify-content:space-between;padding:6px 16px;gap:16px;background:var(--muted);border-bottom:1px solid var(--border)}
#preview-mobile label{font-size:12px;color:var(--muted-foreground);white-space:nowrap}
#preview-mobile select{font-size:14px;height:44px;min-width:0;flex:1;max-width:250px;background:var(--card);border:1px solid var(--border);border-radius:6px;padding:8px}
.stage{padding:0;display:block}
.phone{width:100%;height:calc(100dvh - 56px);max-height:none;border:0;border-radius:0}
.composer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}


/* Calibrated against market-watchlist-edit mobile reference. */
.top{height:52px;min-height:52px;padding:0 12px}
.top .title{font-size:18px;font-weight:600}
.scroll{color:var(--foreground)}
.clean-row{min-height:66px}
.check-copy strong{font-weight:500}
.report-clean .check-list{border-color:var(--muted)}
.clean-row{border-color:var(--muted)}
.network-chips button{background:var(--muted);border:0;border-radius:7px;color:var(--muted-foreground)}
.network-chips button:hover{background:var(--muted);color:var(--primary)}
.permission-group{background:var(--muted)}
.report-account,.report-kicker{color:var(--muted-foreground)}
#preview-console .preview-groups{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}
#preview-console .preview-groups button{width:auto;min-height:38px;padding:8px 10px;border:0;border-radius:7px;font-size:12px;font-weight:400;background:var(--muted);color:var(--muted-foreground)}
#preview-console .preview-groups button.active{background:var(--muted);color:var(--primary);font-weight:600}
#preview-console section[hidden]{display:none}
#preview-console section>div>button{font-weight:600;border-color:var(--border);color:var(--foreground)}
#preview-console section>div>button.active{background:var(--muted);color:var(--primary);border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--shadow-color)}
#preview-console section>div>button:hover{background:var(--card);color:var(--primary);border-color:var(--primary)}

.guide-chat{padding:16px;border:1px solid var(--muted);border-radius:8px;margin:8px 0 16px;background:var(--card)}
.guide-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.guide-title strong{font-size:16px;line-height:23px}
.guide-title small{font-size:10px;color:var(--muted-foreground);white-space:nowrap}
.guide-chat>p{font-size:14px;line-height:20px;color:var(--foreground);margin:14px 0}
.guide-chat ol{padding:0 0 0 20px;margin:0}
.guide-chat li{font-size:12px;line-height:19px;color:var(--muted-foreground);margin:12px 0;padding-left:3px}
.guide-chat li::marker{color:var(--primary);font-weight:600}
.reply-choices{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.reply-choices button{min-height:44px;background:var(--muted);color:var(--primary);padding:8px 12px;border-radius:7px;font-size:12px;text-align:left}
.reply-choices button:disabled{opacity:.5;cursor:default}
.bubble{white-space:pre-line}
.bubble .reply-choices{white-space:normal}
.guide-chat{overflow-wrap:anywhere}

.payment-chat{border:1px solid var(--muted);border-radius:8px;background:var(--card);padding:16px;margin:8px 0 16px}
.payment-chat header{display:flex;justify-content:space-between;gap:12px;align-items:center}
.payment-chat header strong{font-size:16px;line-height:23px}
.payment-chat header small{font-size:10px;color:var(--muted-foreground)}
.payment-chat p{font-size:12px;line-height:19px;color:var(--muted-foreground)}
.payment-methods{display:grid;gap:8px;margin:16px 0}
.payment-methods button,.payment-bottom button{min-height:44px;text-align:left;font-size:12px;border-radius:8px;padding:10px 12px;background:var(--muted);color:var(--primary)}
.payment-bottom{display:flex;gap:8px;margin-top:12px}
.payment-bottom button{background:none;color:var(--muted-foreground);padding:8px 0;margin-right:12px}
.payment-price{font-size:26px;font-weight:600;margin:20px 0 12px}
.payment-facts{font-size:12px;line-height:21px;color:var(--muted-foreground)}
.payment-chat .payment-status{color:var(--muted-foreground);background:var(--muted);padding:10px 12px;border-radius:6px}
.payment-chat details{margin-top:16px;font-size:12px;color:var(--muted-foreground)}
.payment-chat summary{min-height:44px;cursor:pointer;display:flex;align-items:center}
.balance-grid{display:flex;gap:36px;margin:20px 0}
.balance-grid div{display:flex;flex-direction:column;gap:5px}
.balance-grid b{font-size:24px}
.balance-grid span{font-size:12px;color:var(--muted-foreground)}
.payment-chat .record{display:flex;justify-content:space-between}

/* Address-risk chat: identical structure across service risk levels. */
.address-risk{--cp-0:var(--chart-1);--cp-1:var(--chart-2);--cp-2:var(--chart-3);--cp-3:var(--chart-4);--cp-4:var(--chart-5);--cp-5:var(--chart-6)}
.address-risk.unknown{--aml-color:var(--muted-foreground)}
.aml-subject{font-size:11px;color:var(--tp-muted);margin-top:6px}
.address-risk .aml-visual{gap:18px;margin:22px 0}
.address-risk .aml-ring{width:88px;height:88px;padding:6px}
.address-risk .aml-ring strong{font-size:28px}
.aml-unknown{background:var(--muted)}
.aml-section{border-top:1px solid var(--tp-border);padding:16px 0 0;margin-top:16px}
.aml-section h4{font-size:14px;font-weight:600;margin:0 0 10px;display:flex;justify-content:space-between}
.aml-section h4 small{font-size:12px;font-weight:400;color:var(--tp-muted)}
.aml-reasons .aml-labels{margin:0;gap:6px}
.aml-reasons .aml-labels span{padding:5px 7px;background:var(--muted);font-size:11px;line-height:17px;color:var(--muted-foreground)}
.aml-attribution{font-size:10px!important;line-height:16px!important;color:var(--muted-foreground)!important;margin:10px 0 0!important}
.aml-empty-note{font-size:12px;color:var(--tp-muted)}
.exposure-item{display:block;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid var(--muted);min-height:44px}
.exposure-item:last-child{border:0}
.exposure-top{display:flex;gap:8px;align-items:center}
.exposure-top strong{font-size:14px;font-weight:600;flex:1;overflow-wrap:anywhere}
.exposure-type{font-size:10px;padding:3px 6px;background:var(--muted);color:var(--muted-foreground);border-radius:4px;white-space:nowrap}
.exposure-chevron{color:var(--muted-foreground);font-size:20px}
.exposure-relation{display:block;font-size:11px;line-height:17px;color:var(--muted-foreground);margin:5px 0}
.exposure-numbers{display:flex;align-items:center;justify-content:space-between;margin:10px 0 7px;font-size:12px}
.exposure-numbers b{font-size:14px;font-weight:500}
.exposure-numbers>span{color:var(--muted-foreground)}
.exposure-item .exposure-bar{display:block;height:3px}
.exposure-item .exposure-bar i{background:var(--aml-color)}
.aml-caption{font-size:11px!important;line-height:17px!important;color:var(--muted-foreground)!important;margin:10px 0!important}
.aml-next{display:flex;gap:10px;background:var(--card);border-radius:8px;padding:12px;margin:16px 0}
.aml-next>span{color:var(--primary);font-size:11px;line-height:18px;white-space:nowrap}
.aml-next p{font-size:12px;line-height:18px;margin:0;color:var(--muted-foreground)}
.aml-support{border-top:1px solid var(--tp-border)}
.aml-support summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:12px;font-weight:500}
.aml-support summary>span{font-size:11px;font-weight:400;color:var(--muted-foreground)}
.counterparty-stack{display:flex;height:8px;overflow:hidden;border-radius:8px;margin:14px 0}
.counterparty-stack i{height:100%}
.counterparty-row{display:grid;grid-template-columns:7px 1fr auto;gap:5px 8px;padding:8px 0;align-items:center;font-size:12px}
.counterparty-row>i{width:7px;height:7px;border-radius:50%}
.counterparty-row>b{font-weight:500}
.counterparty-row>small{grid-column:2 / 4;color:var(--muted-foreground);font-size:11px}
.overview-row{display:grid;gap:7px;padding:10px 0;font-size:12px}
.overview-row small{color:var(--muted-foreground);font-size:11px}
.address-risk .aml-source{border-top:1px solid var(--tp-border)}
.address-risk .aml-source summary{justify-content:space-between;font-size:12px}
.address-risk .aml-empty{padding:18px 4px;gap:7px}
.address-risk .aml-empty>span{font-size:22px}
.address-risk .aml-empty strong{font-size:12px;font-weight:500}
.address-risk .aml-empty small{font-size:11px}
.address-risk .aml-clear{padding:0;margin:0;font-size:12px}
.aml-flow h3{font-size:17px;margin:18px 0 4px}
.aml-flow .aml-volume{gap:8px}
.aml-flow .aml-volume b{font-size:17px}
.aml-flow .aml-volume small{font-size:10px}
.association-levels{background:var(--card);border-radius:8px;padding:12px;margin-top:14px}
.association-levels .path-node{display:grid;grid-template-columns:45px 1fr;gap:8px;padding:10px 0}
.association-levels .path-node:not(:last-child){border-bottom:1px solid var(--muted)}
.association-levels .path-node:before{display:none}
.association-levels .path-node small{font-size:11px}
.association-levels .path-address{font-size:12px;line-height:18px}
.known-association{display:grid;gap:10px;font-size:12px}
.known-association>b{font-size:11px;color:var(--muted-foreground);font-weight:400}

.aml-extra summary{min-height:44px;color:var(--primary);display:flex;justify-content:space-between;align-items:center;font-size:12px;cursor:pointer}
.counterparty-stack{background:var(--muted)}
.address-risk.low .aml-empty{display:block;padding:4px 0 6px}
.address-risk.low .aml-empty>span{display:none}
.address-risk.low .aml-empty>small{display:block;margin-top:5px}
.address-risk.low .aml-reasons{display:none}

/* Compact phone rhythm: 8/12/16 spacing; retain 44px interactive targets. */
.top{gap:6px;padding:0 8px}
.header-settings{width:44px;height:44px;flex-shrink:0;font-size:22px;color:var(--muted-foreground)}
.title small{white-space:nowrap;margin-top:1px}
.pill{padding:6px 10px}
.scroll{padding:12px 16px}
.hero{padding:14px 0 12px}
.hero .spark{font-size:26px;line-height:30px}
.hero h2{font-size:22px;line-height:30px;margin:10px 0 4px}
.hero p{margin:0;line-height:20px}
.scan-invite{margin:8px 0 12px;padding:12px;background:var(--card);border-color:var(--muted)}
.scan-invite h3{font-size:15px;line-height:21px;margin:0 0 4px}
.scan-invite p{font-size:12px;line-height:18px;margin:0 0 10px}
.scan-invite .primary{font-size:14px;min-height:44px;padding:10px 14px;width:auto}
.suggest{display:inline-flex;align-items:center;gap:8px;width:auto;margin:0 6px 8px 0;padding:8px 12px;min-height:44px;font-size:13px;border:0;background:var(--muted)}
.suggest:after{font-size:12px}
.bubble{padding:10px 12px;margin:6px 0 10px;line-height:20px}
.bubble.user{padding:10px 12px;margin-bottom:10px}
.composer{padding:8px 16px}
.input-wrap{padding:5px}
.report-clean{margin:6px 0 12px}
.report-clean .risk-overview{padding:12px;margin-bottom:0}
.report-clean .report-heading{margin-bottom:4px}
.report-clean .risk-overview h3{font-size:20px;line-height:27px;margin:0}
.report-clean .risk-overview p{margin:6px 0 0}
.report-symbol{width:34px;height:34px}
.report-account{margin:0 12px 4px}
.check-list{margin:0 12px}
.clean-row{padding:10px 0;min-height:58px}
.clean-row .check-copy small{margin-top:4px}
.inline-findings{padding:0 0 4px 28px}
.inline-findings>div{margin-bottom:8px;gap:6px}
.inline-findings small{margin-top:2px}
.report-actions{margin-top:0}
.report-actions button{min-height:44px}
.aml-chat,.guide-chat,.payment-chat{padding:12px;margin:6px 0 12px}
.address-risk .aml-visual{margin:14px 0;gap:14px}
.address-risk .aml-ring{width:76px;height:76px;padding:5px}
.address-risk .aml-ring strong{font-size:26px}
.aml-section{margin-top:12px;padding-top:12px}
.aml-section h4{margin-bottom:6px}
.aml-attribution{margin-top:6px!important}
.exposure-item{padding:10px 0}
.exposure-relation{margin:3px 0}
.exposure-numbers{margin:6px 0}
.aml-next{padding:10px;margin:12px 0}
.aml-support summary{min-height:44px}
.aml-caption{margin:6px 0!important}
.counterparty-row{padding:6px 0;gap:3px 8px}
.counterparty-stack{margin:10px 0}
.aml-flow .aml-volume{margin:12px 0}
.aml-flow h3{margin:12px 0 4px}
.aml-flow .aml-volume b{font-size:16px;overflow-wrap:anywhere}
.guide-chat>p{margin:10px 0}
.guide-chat li{margin:8px 0}
.reply-choices{gap:6px;margin-top:8px}
.reply-choices button{padding:8px 10px}
.payment-methods{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.payment-methods button{padding:8px 10px}
.payment-price{font-size:24px;margin:12px 0 8px}
.payment-facts{line-height:19px}
.payment-bottom{margin-top:4px;gap:12px}
.payment-bottom button{margin:0}
.payment-chat details{margin-top:8px}
.balance-grid{gap:24px;margin:12px 0}
.balance-grid b{font-size:22px}
.payment-chat .payment-status{padding:8px 10px}
.authorization-chat .authorization-counts{margin:12px 0}
.approval-record summary{padding:10px}
.permission-status{margin-top:12px;font-size:20px}
.permission-group{padding:10px;margin:8px 0}
.permission-group header{margin-bottom:8px}
.permission-key{margin-top:8px}
.permission-group>p{margin-top:8px}
.permission-history{margin-top:12px}
#sheet{padding:16px 16px max(16px,env(safe-area-inset-bottom))}
#sheet h2{margin:8px 0 12px;font-size:18px;line-height:25px}
.quote{padding:12px;line-height:1.7}
.quote strong{font-size:22px}
.exposure-top strong{min-width:0}
.exposure-type{max-width:110px;white-space:normal;flex-shrink:0}
.exposure-numbers{gap:8px;flex-wrap:wrap}
.counterparty-row>span{overflow-wrap:anywhere}
.aml-chat-title{gap:8px}
.aml-chat-title>span{max-width:48%;text-align:right}
.aml-subject{overflow-wrap:anywhere}
@media(max-width:760px){.composer{padding-bottom:max(8px,env(safe-area-inset-bottom))}
}

/* Formal UI-kit adaptation: compact, legible, semantic, keyboard accessible. */
body{font-variant-numeric:tabular-nums}
button,input,select{touch-action:manipulation}
.stage{background:var(--background);gap:var(--space-8);padding:var(--space-6)}
.phone{box-shadow:none}
.avatar,.tp-icon{background:var(--primary)}
.scan-invite{background:var(--primary-surface)}
.primary,.send{color:var(--primary-foreground);background:var(--primary)}
.title small,.report-kicker,.aml-chat-title>span,.aml-subject,.aml-attribution,.aml-caption,.exposure-relation,.exposure-type,.aml-volume small,.aml-ring small,.counterparty-row>small,.aml-support summary>span,.guide-title small,.payment-chat header small,.path-node small,.preview-note{font-size:var(--font-caption)!important;line-height:1.5!important;color:var(--muted-foreground)!important}
.aml-ring small{font-size:12px!important}
.aml-attribution{font-size:12px!important}
.report-clean,.aml-chat,.guide-chat,.payment-chat,.scan-invite{border-radius:var(--radius-card)}
.suggest,.primary,.secondary,.input-wrap,.reply-choices button,.payment-methods button{border-radius:var(--radius-control)}
.scroll{padding:var(--space-3) var(--gutter-mobile)}
.aml-chat,.guide-chat,.payment-chat{padding:var(--space-3);margin:var(--space-2) 0 var(--space-3)}
.bubble{margin:var(--space-2) 0 var(--space-3);padding:var(--space-2) var(--space-3);line-height:1.5}
.bubble.user{margin-left:var(--space-8);margin-bottom:var(--space-3)}
.top{gap:var(--space-2)}
.title small{font-size:10px!important}
.hero{padding:var(--space-4) 0 var(--space-3)}
.hero h2{margin:var(--space-2) 0 var(--space-1)}
.scan-invite .primary{min-height:var(--touch-target)}
.suggest{margin:0 var(--space-1) var(--space-2) 0}
.aml-visual b{font-size:20px;line-height:1.4}
.address-risk .aml-visual{margin:var(--space-4) 0;gap:var(--space-4)}
.aml-reasons .aml-labels span{font-size:12px;line-height:1.5;padding:var(--space-1) var(--space-2)}
.exposure-item{padding:var(--space-2) 0}
.exposure-type{background:var(--muted)}
.exposure-numbers{margin:var(--space-2) 0;gap:var(--space-2)}
.exposure-top{gap:var(--space-2)}
.aml-next{padding:var(--space-3);gap:var(--space-2);background:var(--primary-surface)}
.aml-next>span{font-size:12px}
.aml-next p{font-size:12px;line-height:1.5}
.counterparty-row{padding:var(--space-2) 0;gap:var(--space-1) var(--space-2)}
.exposure-relation{margin:var(--space-1) 0}
.exposure-numbers b{font-size:14px}
.aml-support summary,.aml-source summary{min-height:var(--touch-target)}
.aml-extra summary{font-size:14px;min-height:var(--touch-target)}
.clean-row{padding:var(--space-3) 0}
.payment-price{margin:var(--space-3) 0 var(--space-2)}
.payment-methods{gap:var(--space-2);margin:var(--space-3) 0}
.reply-choices{gap:var(--space-2);margin-top:var(--space-2)}
.permission-group{padding:var(--space-3);margin:var(--space-2) 0}
.top .pill{font-size:12px;white-space:nowrap}
.balance-grid{gap:var(--space-6)}
.report-clean .risk-overview.high,.aml-chat.high{--aml-color:var(--destructive)}
.aml-chat.medium{--aml-color:var(--warning)}
.aml-chat.low{--aml-color:var(--success)}
.level-high,.high{color:var(--destructive)}
.level-medium{color:var(--warning)!important}
.level-low{color:var(--success)!important}
.check-icon.low{color:var(--success);background:var(--success-surface)}
.check-icon.medium{color:var(--warning);background:var(--warning-surface)}
.check-icon.high{color:var(--destructive);background:var(--destructive-surface)}
#sheet{border-radius:var(--radius-overlay) var(--radius-overlay) 0 0}
#question:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
button:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.result-row:focus-visible{outline-offset:-2px}
.mini-risk,.report-clean .mini-risk{font-size:12px}
.risk-overview.high{color:var(--destructive)}
.risk-overview.medium{color:var(--warning)}
.risk-overview.low{color:var(--success)}
.risk-overview.unknown{color:var(--muted-foreground)}
.aml-chat.unknown{--aml-color:var(--muted-foreground)}
.aml-chat .aml-empty{color:var(--muted-foreground)}
.aml-visual p{margin:var(--space-1) 0}
.aml-clear{color:var(--muted-foreground)}
#preview-console .preview-groups button{min-height:44px}
#preview-console p,#preview-console h3,#preview-console .preview-note{font-size:12px;color:var(--muted-foreground)}
.discovery-banner,.discovery-promos{object-fit:contain}
.statusbar,.homebar{flex-shrink:0}
@media(min-width:761px) and (max-width:850px){.stage{gap:16px;padding:16px}
.phone{width:393px}
#preview-console{width:calc(100vw - 441px);min-width:240px;padding:12px}
}
@media(max-width:760px){.stage{padding:0}
.top{gap:4px}
.composer{padding:8px 16px max(8px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

.avatar{background:var(--brand)}
.payment-chat [data-pay="review"]{background:var(--primary);color:var(--primary-foreground)}
.payment-chat .reply-choices [data-pay="choose"]{background:transparent;color:var(--muted-foreground)}

.phone{container-type:inline-size}
.avatar{flex-shrink:0}
@container(max-width:280px){.top{flex-wrap:wrap;height:auto;min-height:52px;padding:4px 8px}
.top .avatar{display:none}
.top .title{font-size:16px;min-width:0}
.top .title small{white-space:normal}
.top .pill{order:4;width:100%;min-height:44px}
.header-settings{width:44px}
.aml-visual{flex-wrap:wrap}
.aml-chat-title{flex-wrap:wrap}
.aml-chat-title>span{max-width:100%}
.exposure-top{flex-wrap:wrap}
.exposure-numbers{display:grid;gap:4px}
.aml-volume{flex-wrap:wrap}
.counterparty-row{grid-template-columns:7px 1fr}
.counterparty-row>b{grid-column:2}
.payment-price{overflow-wrap:anywhere}
.bubble.user{margin-left:0}
.balance-grid{flex-wrap:wrap}
}


/* Layout audit: one gutter, task actions beside the composer, facts in aligned rows. */
.top{min-height:52px;height:52px;padding:0 var(--space-2)}
.scroll.is-empty{display:flex;flex-direction:column;justify-content:flex-end}
.quick-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
.quick-questions .suggest{width:100%;margin:0;min-height:44px;font-size:14px;justify-content:space-between;padding:var(--space-2) var(--space-3);gap:var(--space-1)}
.quick-questions .suggest:first-child{grid-column:1/-1;color:var(--primary);background:var(--primary-surface);font-weight:600}
.quick-questions .suggest small{font-size:12px}
.quick-questions .suggest:after{margin-left:auto}
.composer{padding-top:var(--space-2);padding-bottom:var(--space-2)}
.input-wrap{padding:var(--space-1)}
.report-clean,.aml-chat,.guide-chat,.payment-chat{border:0;border-radius:0;padding:0;margin:var(--space-2) 0 var(--space-4);background:var(--card)}
.report-clean .risk-overview{padding:var(--space-2) 0 var(--space-3)}
.report-account{margin:0}
.check-list{margin:0}
.clean-row{gap:var(--space-2);padding:var(--space-3) 0}
.report-actions{margin-top:var(--space-2)}
.report-actions button{font-size:14px}
.address-risk .aml-visual{margin:var(--space-3) 0}
.aml-reasons .aml-labels{display:block}
.aml-reasons .aml-labels span{display:inline;padding:0;background:transparent;border:0;border-radius:0}
.aml-reasons .aml-labels span:not(:last-child):after{content:'；'}
.aml-section{margin-top:var(--space-3);padding-top:var(--space-3)}
.aml-section h4{font-size:14px;margin-bottom:var(--space-2)}
.exposure-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,45%) 16px;gap:var(--space-2);align-items:center;padding:var(--space-3) 0;min-height:44px}
.exposure-copy{min-width:0}
.exposure-top strong{font-size:14px;line-height:20px;font-weight:600}
.exposure-type{display:block;max-width:none;background:transparent;padding:0;margin-top:var(--space-1);font-size:12px!important;line-height:18px!important}
.exposure-relation{margin:0;font-size:12px!important;line-height:18px!important}
.exposure-numbers{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:var(--space-1);margin:0;min-width:0;font-size:12px}
.exposure-numbers b{font-size:14px;line-height:20px;overflow-wrap:anywhere;max-width:100%;text-align:right}
.exposure-numbers>span{text-align:right;max-width:100%}
.exposure-numbers .exposure-bar{width:100%;height:3px;margin-top:var(--space-1)}
.exposure-chevron{align-self:center}
.aml-next{background:transparent;border-left:2px solid var(--border);border-radius:0;padding:0 0 0 var(--space-3);margin:var(--space-3) 0}
.counterparty-row{grid-template-columns:8px minmax(0,1fr) auto;gap:0 var(--space-2);padding:var(--space-2) 0;font-size:14px;line-height:20px}
.counterparty-row>small{grid-column:3;text-align:right;line-height:18px!important}
.counterparty-row>span{grid-row:span 2}
.payment-methods{display:grid;grid-template-columns:1fr;gap:var(--space-2)}
.payment-methods button{font-size:14px;min-height:44px}
.payment-bottom{margin-top:var(--space-2)}
#sheet .quote{padding:0;background:transparent}
@container(max-width:280px){.quick-questions{grid-template-columns:1fr}.quick-questions .suggest:first-child{grid-column:auto}.exposure-item{grid-template-columns:minmax(0,1fr) 16px}.exposure-copy{grid-column:1}.exposure-numbers{grid-column:1;align-items:flex-start}.exposure-chevron{grid-column:2;grid-row:1/3}.counterparty-row{grid-template-columns:8px minmax(0,1fr)}.counterparty-row>small,.counterparty-row>b{grid-column:2;text-align:left}.counterparty-row>span{grid-row:auto}}
.report-clean{overflow:visible}
.clean-row .row-arrow{flex-basis:16px;line-height:20px;text-align:right}
.address-risk,.aml-flow{color:var(--foreground)}
.address-risk .aml-visual b,.address-risk .aml-ring strong{color:var(--aml-color)}

/* Conversation roles: compact right-aligned questions, left-aligned AI responses. */
.message{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0;margin:0 0 8px}
.message.group-start:not(:first-child){margin-top:20px}
.message-user{align-items:flex-end}
.message-author{font-size:12px;line-height:18px;font-weight:600;color:var(--muted-foreground);margin-bottom:8px}
.message>.bubble{width:fit-content;max-width:90%;margin:0;padding:8px 12px;overflow-wrap:anywhere;border-radius:8px;background:var(--muted);color:var(--foreground)}
.message-user>.bubble.user{width:fit-content;max-width:85%;margin:0;background:var(--primary-surface);color:var(--foreground);border-radius:8px 8px 2px 8px}
.message-ai>.bubble{border-radius:2px 8px 8px 8px}
.message>article,.message>.report,.message>.guide-chat,.message>.payment-chat,.message>.aml-chat{width:100%;min-width:0;margin:0}
.message .reply-choices{justify-content:flex-start}
.message .reply-choices button{flex:0 1 auto;text-align:left}
.message .progress{min-width:180px;max-width:100%}

/* Long responses remain navigable without leaving the conversation. */
.composer{position:relative}
.jump-latest{position:absolute;bottom:calc(100% + 8px);left:calc(50% - 22px);width:44px;height:44px;min-height:44px;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--foreground);font-size:24px;line-height:1;z-index:2}
.jump-latest[hidden]{display:none}

/* Compact chat typography; preserve touch targets and caption legibility. */
.top .title{font-size:16px;line-height:22px;font-weight:500}
.message>.bubble,.message-user>.bubble.user{font-size:13px;line-height:20px;font-weight:400}
.message-author{font-weight:500}
.report-clean .risk-overview h3{font-size:17px;line-height:24px;font-weight:600}
.check-copy strong,.aml-chat-title,.aml-section h4,.guide-title h3,.payment-chat header strong{font-size:13px;line-height:20px;font-weight:500}
.quick-questions .suggest,.report-actions button,.payment-methods button,.aml-extra summary,.reply-choices button{font-size:13px;line-height:20px}
.quick-questions .suggest:first-child{font-weight:500}
.address-risk .aml-ring strong{font-size:22px;line-height:28px;font-weight:600}
.aml-visual b{font-size:17px;line-height:24px;font-weight:500}
.payment-price,.balance-grid b,.quote strong{font-size:20px;line-height:28px;font-weight:600}
.permission-status{font-size:17px;line-height:24px;font-weight:500}
.exposure-top strong,.exposure-numbers b,.counterparty-row{font-size:13px;line-height:20px}
.exposure-top strong,.exposure-numbers b,.counterparty-row b{font-weight:500}
.guide-chat p,.payment-chat>p{font-size:13px;line-height:20px}
#sheet h2{font-size:16px;line-height:24px;font-weight:600}

/* Indeterminate AI wait; no implied percentage or tool-stage completion. */
.thinking{display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;color:var(--muted-foreground);min-height:28px}
.thinking-mark{color:var(--primary);font-size:18px;line-height:24px;animation:thinking-breathe 1.6s ease-in-out infinite}
@keyframes thinking-breathe{0%,100%{opacity:.45}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.thinking-mark{animation:none}}
/* Entry prompts read as questions, matching the conversation-first reference. */
.quick-questions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.quick-questions .suggest{width:100%;max-width:100%;min-height:44px;justify-content:flex-start;padding:8px 12px;border:1px solid var(--border);background:var(--card);font-weight:400}
.quick-questions .suggest:first-child{font-weight:400;background:var(--primary-surface);border-color:transparent}
.quick-questions .suggest:after{display:none}

/* iPhone 17 Pro: 402 × 874 logical-pixel screen; frame is outside the screen. */
:root{--device-width:402px;--device-height:874px}
@media(min-width:761px){.phone{box-sizing:content-box;width:var(--device-width);height:var(--device-height);max-height:none}.stage{overflow:visible}}
.device-preview #preview-mobile,.device-preview #preview-console{display:none}
.device-preview .stage{padding:0;display:flex;min-height:100dvh;align-items:flex-start;justify-content:center}
.device-preview .phone{box-sizing:content-box;width:min(var(--device-width),100vw);height:min(var(--device-height),100dvh);max-height:none;border:0;border-radius:0}
.device-preview .statusbar{display:flex}
.device-preview #app{height:calc(100% - 60px)}
.device-link{display:inline-flex;align-items:center;min-height:44px;color:var(--primary);font-size:12px;text-decoration:none}

/* Core findings have one clear boundary; evidence and follow-up sit outside. */
.result-core{width:100%;min-width:0;padding:16px;border:1px solid var(--border);border-radius:var(--radius-result);background:var(--muted)}
.report-clean .result-core .risk-overview{padding:0 0 12px}
.result-core .report-symbol{background:var(--card)}
.result-core .report-account{border-bottom:1px solid var(--border)}
.result-core .check-list{border:0}
.result-core .clean-row{background:transparent;border-color:var(--border)}
.result-core .clean-row:last-child{padding-bottom:0;border-bottom:0}
.result-core .mini-track{background:var(--border)}
.report-support{padding-top:20px}
.report-support>h3{margin:0 0 16px;font-size:15px;line-height:22px;font-weight:600}
.report-evidence{margin-top:16px}
.report-evidence>h4{margin:0 0 8px;font-size:13px;line-height:20px;font-weight:500}
.report-evidence .inline-findings{margin:0;padding:0;border:0;background:transparent}
.report-clean .report-actions{margin-top:16px;border-top:0}
.address-risk .result-core .aml-reasons{padding-top:12px;margin-top:12px;border-color:var(--border)}
.address-risk>.aml-exposures{border-top:0;margin-top:20px;padding-top:0}
.authorization-chat .result-core .approval-record{background:transparent;border:0;border-top:1px solid var(--border);border-radius:0;margin:8px 0 0}
.authorization-chat .result-core .approval-record summary{padding:12px 0;gap:8px}
.authorization-chat .result-core .approval-body{padding:0;border-top:0}
.permission-chat .result-core .permission-group{padding:12px 0;background:transparent;border-top:1px solid var(--border);border-radius:0}
.permission-chat>.aml-context{margin-top:12px}
.approval-record-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:16px;font-size:12px;line-height:20px}
.approval-record-heading strong{font-size:13px;font-weight:500}
.approval-record-heading>span{white-space:nowrap}
.approval-data{margin:12px 0 16px;font-size:12px;line-height:18px}
.approval-data>div{display:flex;justify-content:space-between;gap:12px;margin-top:8px}
.approval-data dt{color:var(--muted-foreground);flex-shrink:0}
.approval-data dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}
.approval-data>.approval-contract{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;margin:0 0 12px}
.approval-contract dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.authorization-chat .approval-record-heading{padding-top:12px}
.authorization-chat .approval-data{margin:8px 0 12px}
.authorization-chat .approval-contract{margin-bottom:8px}
.approval-manage{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:16px;border-top:1px solid var(--border);color:var(--primary);font-size:13px;line-height:20px}
.approval-manage .ui-icon{width:16px;height:16px}
.authorization-chat .authorization-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.authorization-counts>span{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.authorization-counts b{font-size:24px;line-height:32px;margin:0}
.authorization-counts .low{color:var(--success)}
.approval-empty{font-size:13px;line-height:20px;margin:16px 0;color:var(--muted-foreground)}
.approval-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--primary);font-size:13px;cursor:pointer;list-style:none;border-top:1px solid var(--border)}
.approval-more>summary::-webkit-details-marker{display:none}
.approval-more .when-open,.approval-more[open] .when-closed{display:none}
.approval-more[open] .when-open{display:inline}
.approval-more>summary .ui-icon{width:16px;height:16px}
.approval-more[open]>summary .ui-icon{transform:rotate(180deg)}
.authorization-chat .authorization-actions{margin-top:16px;border:0}
.authorization-actions .approval-manage{margin:0;color:var(--muted-foreground)}
.authorization-actions .approval-manage:disabled{opacity:.45;cursor:default}
.approval-confirm-list{max-height:38dvh;overflow:auto;font-size:12px;line-height:18px}
.approval-confirm-list>div{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-top:1px solid var(--border)}
.approval-confirm-list strong{font-weight:500}
.approval-confirm-list small{grid-column:1/-1;font-size:12px;overflow-wrap:anywhere;color:var(--muted-foreground)}
.approval-manager-top .title{flex:1}
.approval-manager-top>span,.approval-wallet{font-size:12px;color:var(--muted-foreground)}
.approval-manager-scroll{padding-bottom:88px}
.manager-record{border:1px solid var(--border);border-radius:12px;margin:12px 0;padding:0 12px}
.manager-record.selected{border-color:var(--primary);background:var(--primary-surface)}
.manager-select{display:flex;align-items:center;gap:8px;min-height:48px;width:100%;font-size:12px;text-align:left}
.manager-select strong{flex:1;font-size:13px;font-weight:500}
.manager-select>span:last-child{white-space:nowrap}
.selection-mark{display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--border);border-radius:50%;color:var(--primary)}
.selection-mark .ui-icon{width:16px;height:16px}
.approval-manager-footer{padding:8px 16px;border-top:1px solid var(--border);background:var(--card)}
.approval-manager-footer .primary{margin:0;font-size:13px;line-height:20px}
.ai-floating{position:absolute;right:16px;bottom:96px;width:56px;height:56px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border-radius:50%;background:var(--primary);color:var(--primary-foreground);box-shadow:0 4px 12px var(--shadow-color);font-size:10px;z-index:3}

/* Consistent line icons; semantic labels remain real text. */
.ui-icon{display:inline-block;width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.back,.header-settings,.send,.jump-latest,.close,.rating-rule{display:inline-flex;align-items:center;justify-content:center}
.avatar,.thinking-mark,.check-icon,.finding-level{display:inline-flex;align-items:center;justify-content:center}
.row-arrow .ui-icon,.account-expand .ui-icon,.approval-chevron .ui-icon,.exposure-chevron .ui-icon,.aml-support summary .ui-icon,.aml-source summary .ui-icon,.aml-extra summary .ui-icon{width:16px;height:16px}
.check-icon .ui-icon,.finding-level .ui-icon{width:16px;height:16px}
.report-actions button{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;border:1px solid var(--border);border-radius:var(--radius-result);background:var(--card)}
.report-actions .ui-icon,.device-link .ui-icon{width:16px;height:16px}
.device-link{gap:8px}

/* Fit the whole desktop phone into the window at browser zoom 100%. */
.phone-viewport{display:contents}
@media(min-width:761px){
 .stage{height:100dvh;min-height:0;overflow:hidden}
 .phone-viewport{display:block;position:relative;flex-shrink:0;width:418px;height:890px}
 .phone-viewport>.phone{position:absolute;left:0;top:0;transform:scale(var(--preview-scale,1));transform-origin:top left}
 .device-preview .stage{padding:16px;min-height:0}
 .device-preview .phone{width:var(--device-width);height:var(--device-height)}
}

/* Result replies: overview, explanation, actions, supplementary links. */
.result-description{margin:12px 0;color:var(--foreground);font-size:13px;line-height:20px;overflow-wrap:anywhere}
.result-description>p{margin:0 0 12px}
.result-description .report-support{margin:12px 0 0;padding:0;border:0}
.result-links{margin-top:12px;color:var(--muted-foreground);font-size:12px;line-height:18px}
.result-links>button{display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--muted-foreground);font-size:12px;text-align:left}
.result-links>button .ui-icon{width:14px;height:14px}
.result-links .aml-exposures{margin-top:0}
.result-links .aml-support,.result-links .aml-source{border:0;border-top:1px solid var(--border);border-radius:0;background:transparent}
.result-reply .result-core>p{margin:8px 0 0;font-size:13px;line-height:20px}
.result-reply .reply-choices{margin-top:12px}
.result-reply .reply-choices button{border:1px solid var(--border);border-radius:var(--radius-result);background:var(--card)}

.result-evidence>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--muted-foreground)}
.result-evidence>summary .ui-icon{width:14px;height:14px;margin-left:6px}
.result-evidence>summary::-webkit-details-marker{display:none}

/* Two-line detection rows; the whole row opens complete details. */
.clean-row .check-copy{min-width:0;flex:1}
.clean-row .check-summary{display:flex;align-items:center;gap:8px;min-width:0;margin-top:4px;line-height:18px}
.clean-row .check-summary small{display:block;flex:1;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}
.report-clean .check-summary .mini-risk{display:inline;flex:none;margin:0;font-size:12px;line-height:18px;white-space:nowrap}

.report-heading .report-address{margin-left:auto;flex:none;color:var(--muted-foreground);font-size:12px;line-height:18px;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums}

.approval-project{display:flex;align-items:center;gap:8px;min-width:0;white-space:normal}
.approval-project strong{min-width:0;overflow-wrap:anywhere}
.project-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border-radius:7px;background:var(--border);color:var(--muted-foreground);overflow:hidden}
.project-icon svg{width:20px;height:20px;fill:currentColor;opacity:.65}
.project-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--card)}
.project-icon-pancake{background-image:url('../assets/icons-bottom.png');background-size:auto 24px;background-position:left center;background-repeat:no-repeat}
.manager-select>.approval-project{flex:1}
.approval-record-heading>.approval-project{white-space:normal}

/* Address-risk overview, matching the approved visual hierarchy. */
.aml-score-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 16px}
.aml-level{display:flex;align-items:center;gap:10px;color:var(--aml-color);min-width:0}
.aml-level>.ui-icon{width:36px;height:36px;flex:none}
.aml-level strong{font-size:20px;line-height:28px;font-weight:600}
.aml-score{display:block;flex:none;margin:0}
.aml-score>span{display:block;font-size:12px;line-height:18px;color:var(--muted-foreground)}
.aml-score>div{display:flex;align-items:baseline;gap:5px}
.aml-score strong{margin:0;font-size:38px;line-height:46px;font-weight:600;letter-spacing:-1px;color:var(--aml-color)}
.aml-score small{font-size:14px;line-height:20px;color:var(--muted-foreground)}
.aml-scale{height:8px;border-radius:8px;position:relative;background:linear-gradient(to right,var(--chart-2),var(--chart-3),var(--chart-4));margin:4px 6px 0}
.aml-scale>span{position:absolute;top:50%;transform:translate(-50%,-50%);width:14px;height:14px;border:2px solid var(--card);border-radius:50%;background:var(--aml-color)}
.aml-scale.is-unknown{background:var(--border)}
.aml-scale-caption{font-size:12px;line-height:18px;color:var(--muted-foreground);margin:10px 0 16px}
.aml-record-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:12px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:13px;text-align:left;background:transparent}
.aml-record-link strong{font-weight:500;color:var(--foreground)}
.aml-record-link>span{display:flex;align-items:center;gap:8px;color:var(--muted-foreground);font-size:13px}
.aml-record-link .ui-icon{width:16px;height:16px}
.address-risk .result-core .aml-reasons{margin:0;padding:14px 0 0;border:0}
.address-risk .aml-reasons h4{margin:0 0 8px;color:var(--muted-foreground);font-size:12px;font-weight:400}
.address-risk .aml-reasons .aml-labels{display:flex;flex-wrap:wrap;gap:6px}
.address-risk .aml-reasons .aml-labels span{display:block;padding:5px 8px;border-radius:6px;line-height:18px;font-size:12px;background:var(--destructive-surface);color:var(--destructive);overflow-wrap:anywhere}
.address-risk.medium .aml-reasons .aml-labels span{background:var(--warning-surface);color:var(--warning)}
.address-risk .aml-reasons .aml-labels span:after{content:none}

.permission-group-name{color:var(--muted-foreground);font-size:12px;margin:6px 0 10px;overflow-wrap:anywhere}
.permission-key-address{min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:18px}
.permission-scope{font-size:12px;line-height:18px;color:var(--muted-foreground);margin-top:10px}
.permission-scope summary{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer}
.permission-scope .ui-icon,.permission-chat .result-links .ui-icon{width:14px;height:14px}
.permission-scope ul{padding-left:18px;overflow-wrap:anywhere}
.permission-chat .result-links a{display:flex;align-items:center;gap:6px;min-height:44px;color:var(--muted-foreground);text-decoration:none}

.permission-chat .result-core .permission-disclosure{padding:0}
.permission-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 0;list-style:none;cursor:pointer;font-size:13px;line-height:20px}
.permission-disclosure>summary::-webkit-details-marker{display:none}
.permission-disclosure>summary strong{font-weight:500;min-width:0;overflow-wrap:anywhere}
.permission-disclosure>summary>span{display:flex;align-items:center;gap:8px;flex:none;color:var(--muted-foreground);font-size:12px}
.permission-disclosure>summary .ui-icon{width:14px;height:14px}
.permission-disclosure[open]>summary .ui-icon{transform:rotate(90deg)}
.permission-details{padding-bottom:12px}
.permission-operation-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.permission-operation-list>span{padding:4px 7px;background:var(--card);border-radius:6px;font-size:12px;line-height:18px;color:var(--muted-foreground);overflow-wrap:anywhere;max-width:100%}

.permission-operations>summary{display:flex;align-items:center;gap:6px;min-height:44px;font-size:12px;color:var(--muted-foreground);cursor:pointer;list-style:none}
.permission-operations>summary::-webkit-details-marker{display:none}
.permission-operations>summary .ui-icon{width:14px;height:14px}
.permission-operations[open]>summary .ui-icon{transform:rotate(90deg)}

/* Association detail: entity, metrics, and relationship in distinct sections. */
.association-entity{display:flex;align-items:center;gap:14px;margin:24px 0;min-width:0}
.association-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:none;border-radius:12px;background:var(--border);color:var(--muted-foreground)}
.association-icon .ui-icon{width:28px;height:28px}
.association-entity>div{min-width:0}.aml-flow .association-entity h3{margin:0 0 8px;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.association-tags{display:flex;flex-wrap:wrap;gap:6px}.association-tags>span{padding:4px 9px;border-radius:20px;background:var(--border);color:var(--muted-foreground);font-size:12px}
.association-tags>.association-type{color:var(--destructive);background:var(--destructive-surface)}
.association-metrics{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;padding:22px 0;border-block:1px solid var(--border)}
.association-metrics>div+div{border-left:1px solid var(--border);padding-left:16px}
.association-metrics small{display:block;color:var(--muted-foreground);font-size:12px;margin-bottom:8px}
.association-metrics strong{display:block;font-size:22px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.association-relation h4,.association-advice h4{font-size:15px;margin:20px 0 16px}
.association-diagram{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:6px 0}
.association-endpoint{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px}
.association-connector{padding-top:5px;text-align:center;color:var(--muted-foreground);font-size:12px;line-height:18px}
.association-connector i{display:block;border-top:2px dashed var(--border);margin-top:12px;width:100%}
.association-relation>.aml-caption{text-align:center;margin:16px 0 0}
.association-level-details summary{display:flex;align-items:center;gap:6px;min-height:44px;color:var(--muted-foreground);cursor:pointer;list-style:none}
.association-level-details summary::-webkit-details-marker{display:none}.association-level-details[open]>summary .ui-icon{transform:rotate(90deg)}
.association-advice ol{list-style:none;counter-reset:advice;padding:0;margin:0;display:grid;gap:10px}
.association-advice li{display:flex;align-items:baseline;gap:12px;counter-increment:advice}
.association-advice li:before{content:counter(advice);display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--primary-surface);color:var(--primary);font-size:13px}
.aml-flow .aml-attribution{margin-top:20px}

/* Shared payment card hierarchy. */
.payment-heading{display:flex;align-items:center;gap:12px}
.payment-heading-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;background:var(--card);border:1px solid var(--border);border-radius:12px}
.payment-heading-icon .ui-icon{width:23px;height:23px}.payment-chat .payment-heading strong{font-size:16px;font-weight:600}
.payment-heading small{margin-left:auto;padding:4px 9px;background:var(--border);border-radius:20px;white-space:nowrap}
.payment-chat .payment-price{font-size:42px;line-height:1.2;letter-spacing:-1px;margin:24px 0 10px;font-weight:700}
.payment-price>span{font-size:19px;letter-spacing:0;white-space:nowrap}
.payment-scope{color:var(--muted-foreground);margin:0 0 20px;font-size:13px;line-height:1.6}
.payment-fact-list{border-top:1px solid var(--border);padding-top:12px}.payment-fact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;font-size:13px}.payment-fact-row>span{display:flex;align-items:center;gap:8px;color:var(--muted-foreground)}.payment-fact-row strong{text-align:right;font-weight:500}
.payment-chat .payment-methods{margin:20px 0 0;gap:10px}.payment-methods button{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);border:1px solid var(--border);padding:14px 16px;text-align:left;border-radius:12px}.payment-methods button>span{display:grid;gap:5px}.payment-methods strong{font-weight:600;color:var(--foreground)}.payment-methods small{font-size:12px;color:var(--muted-foreground)}.payment-methods .ui-icon{flex:none;color:var(--muted-foreground)}
.payment-chat .payment-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.payment-chat .payment-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;margin:0;border:1px solid var(--border);border-radius:12px;font-weight:600}.payment-chat .payment-actions [data-pay="review"]{border-color:var(--primary)}.payment-chat .payment-actions [data-pay="choose"]{color:var(--foreground);background:var(--card)}
.payment-chat .payment-bottom{display:flex;justify-content:center;gap:16px;margin-top:14px}.payment-bottom button{min-height:44px;color:var(--muted-foreground);background:transparent;border:0}
.payment-success{color:var(--success);background:var(--success-surface)}
#sheet:has([data-action="confirm"]) .quote{border:1px solid var(--border);border-radius:16px;background:var(--muted);padding:20px;line-height:1.9}
#sheet:has([data-action="confirm"]) .quote strong{display:inline-block;font-size:30px;line-height:1.3;margin-bottom:12px}
#sheet:has([data-action="confirm"]) .primary,#sheet:has([data-action="confirm"]) .secondary{min-height:48px;border-radius:12px}

.credit-custom{margin-top:24px}.credit-custom label{display:block;font-size:13px;margin-bottom:10px}.credit-quantity-field{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:12px;background:var(--card);padding:12px}.credit-quantity-field input{width:100%;min-width:0;border:0;background:transparent;color:var(--foreground);font-size:20px;outline:none}.credit-quantity-field:focus-within{outline:2px solid var(--ring)}.credit-quantity-field>span,.credit-custom>p{color:var(--muted-foreground);font-size:12px}.credit-custom>p{line-height:1.6}.credit-custom .payment-fact-row{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}

.session-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:44px;flex:none;background:transparent;border:0;color:var(--foreground)}
#modal-layer.sessions-layer{align-items:stretch;background:var(--scrim)}
.sessions-layer #sheet{position:relative;display:flex;flex-direction:column;width:82%;max-height:100%;height:100%;overflow:visible;border-radius:0 24px 24px 0;padding:60px 18px 36px;box-shadow:none}
.sessions-layer #sheet>.close{position:absolute;top:55px;right:-54px;width:42px;height:42px;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--foreground)}
.session-heading{display:flex;align-items:center;gap:12px;font-size:20px;margin-bottom:28px}.session-heading .avatar{width:42px;height:42px}
.sessions-layer #sheet h2{font-size:13px;color:var(--muted-foreground);font-weight:500;margin:0 0 12px}
.session-list{flex:1;overflow:auto;min-height:0}.session-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:14px 10px;min-height:48px;text-align:left;background:transparent;border:0;border-radius:10px;color:var(--foreground);margin-bottom:5px}
.session-list button[aria-current]{background:var(--muted)}.session-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.session-list small{font-size:11px;color:var(--muted-foreground);flex:none}
.session-new{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin-top:20px;border:0;border-radius:28px;background:var(--muted);color:var(--foreground);font-size:16px;font-weight:600}

/* Wallet AI opens as a bottom panel, leaving the wallet visible above it. */
.wallet-backdrop,.chat-backdrop-close{display:none}
.chat-panel-open .wallet-backdrop{display:flex;flex-direction:column;position:absolute;inset:43px 0 17px;overflow:hidden;pointer-events:none;z-index:0}
.chat-panel-open .chat-backdrop-close{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;background:var(--scrim);z-index:1;border-radius:0}
.phone.chat-panel-open #app{position:absolute;top:8%;bottom:17px;height:auto;width:100%;background:var(--card);border-radius:26px 26px 0 0;overflow:hidden;z-index:2}
.chat-panel-handle{display:flex;align-items:center;justify-content:center;min-height:22px;height:22px;flex:none;width:100%;padding:0;border:0;background:transparent}
.chat-panel-handle span{display:block;width:38px;height:4px;border-radius:4px;background:var(--border)}
.chat-panel-open .homebar{position:absolute;bottom:0;width:100%;z-index:2}
.chat-panel-open #modal-layer{top:8%;border-radius:26px 26px 0 0;overflow:hidden}
.chat-panel-open .sessions-layer #sheet{padding-top:28px}.chat-panel-open .sessions-layer #sheet>.close{top:25px}

.chat-panel-top{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;border-bottom:0;padding:0 14px;height:54px;min-height:54px}
.chat-brand{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--primary);pointer-events:none}.chat-brand strong{font-size:17px;font-weight:600}.chat-brand>span{display:flex}.chat-brand .ui-icon{width:25px;height:25px}
.chat-panel-top .session-toggle,.new-chat-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--foreground)}
.chat-panel-top .session-toggle .ui-icon{width:24px;height:24px}.new-chat-toggle{color:var(--muted-foreground)}.new-chat-toggle .ui-icon{width:23px;height:23px}
.session-settings{position:absolute;right:18px;top:25px;min-height:44px;border:0;background:transparent;color:var(--muted-foreground);font-size:12px}

/* Keep the assistant within reach while the wallet action is in progress. */
.approval-wallet-nav{min-height:60px;height:60px;margin:0;box-sizing:border-box}
.approval-manager-footer{padding:8px 16px;min-height:66px;display:flex;align-items:center}.approval-manager-footer .primary{width:100%}
.ai-floating{width:44px;height:44px;right:18px;bottom:155px;padding:0;border:2px solid var(--card);border-radius:50%;gap:0;box-shadow:0 3px 12px var(--shadow-color)}
.ai-floating .ui-icon{width:22px;height:22px}.approval-manager-scroll{padding-bottom:24px}
.ai-minimized .ai-floating{animation:ai-bubble-appear .18s ease-out}
@keyframes ai-bubble-appear{from{opacity:0;transform:scale(.75)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.ai-minimized .ai-floating{animation:none}}
