:root{color:#17211c;background:#f8faf9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--safe-top: env(safe-area-inset-top);--safe-bottom: env(safe-area-inset-bottom)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-shell{min-height:100vh;padding:calc(16px + var(--safe-top)) 16px calc(28px + var(--safe-bottom));background:linear-gradient(180deg,#2a7f6214,#f8faf900 220px),#f8faf9}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.brand-row{display:flex;align-items:center;gap:9px}h1,h2,p{margin:0}h1{font-size:24px;line-height:1.1;letter-spacing:0}h2{font-size:16px;line-height:1.25;letter-spacing:0}.topbar p,.address-item p,.event-item p,small{color:#68766f}.topbar p{margin-top:5px;font-size:13px}.connection{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:34px;padding:0 10px;border:1px solid #e2e8e5;border-radius:8px;background:#fff;color:#99731f;font-size:13px;font-weight:700}.connection.online{color:#16724d}.notice{display:flex;align-items:center;gap:8px;min-height:42px;margin-bottom:14px;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:650}.notice.error{border:1px solid #f1b7a7;background:#fff1ed;color:#9e3723}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}.metric{min-width:0;padding:12px;border:1px solid #e2e8e5;border-radius:8px;background:#fff}.metric span{display:block;margin-bottom:6px;color:#68766f;font-size:12px}.metric strong{display:block;overflow-wrap:anywhere;font-size:17px;line-height:1.15}.address-form,.section{margin-bottom:16px;padding:12px;border:1px solid #dce5e0;border-radius:8px;background:#fff}.segmented{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:12px;padding:4px;border-radius:8px;background:#edf2ef}.segmented button{height:38px;border:0;border-radius:6px;background:transparent;color:#596960;font-weight:800}.segmented button.active{background:#fff;color:#176a4a;box-shadow:0 1px 4px #17211c14}label{display:block;margin-bottom:10px}label span{display:block;margin-bottom:6px;color:#45544c;font-size:13px;font-weight:700}input{width:100%;height:44px;padding:0 12px;border:1px solid #d5dfda;border-radius:8px;background:#fbfcfb;color:#17211c;outline:none}input:focus{border-color:#2c9b70;box-shadow:0 0 0 3px #2c9b7024}.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;height:44px;border:0;border-radius:8px;background:#1d7c58;color:#fff;font-weight:800}.section-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.address-list,.event-list{display:grid;gap:8px}.address-item,.event-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:74px;padding:10px;border:1px solid #e3e9e5;border-radius:8px;background:#fbfcfb}.address-item.disabled{opacity:.55}.item-line{display:flex;align-items:center;gap:8px;min-width:0}.item-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.address-item p,.event-item p{margin-top:6px;overflow-wrap:anywhere;font-size:12px;line-height:1.35}small{display:block;margin-top:6px;font-size:12px}.chain-badge{flex:0 0 auto;padding:3px 6px;border-radius:6px;background:#e2f3eb;color:#176a4a;font-size:11px;font-weight:900}.item-actions{display:grid;grid-auto-flow:column;align-content:start;gap:6px}.item-actions button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #dce5e0;border-radius:8px;background:#fff;color:#394940}.event-item{grid-template-columns:42px minmax(0,1fr)}.risk-score{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:8px;background:#ffe8dd;color:#a73b20;font-weight:900}.event-item a{display:inline-flex;align-items:center;gap:5px;margin-top:7px;color:#1b6d96;font-size:12px;font-weight:750;text-decoration:none}.empty-row{display:flex;align-items:center;min-height:54px;padding:0 10px;border:1px dashed #ccd8d2;border-radius:8px;color:#6b7972;font-size:13px;font-weight:700}@media (min-width: 760px){.app-shell{max-width:860px;margin:0 auto;padding-inline:24px}.address-form{display:grid;grid-template-columns:170px minmax(220px,1fr) minmax(160px,.55fr) 120px;align-items:end;gap:10px}.segmented,label{margin-bottom:0}}
