@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--ink:#20352b;--muted:#7a847e;--green:#1e4433;--lime:#c8f564;--line:#e5e9e2;--canvas:#f7f8f4;--white:#fff;--soft:#f1f5ec;--danger:#b14936;--radius:18px;font-family:'DM Sans',sans-serif;color:var(--ink);font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--canvas)}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg,a svg{pointer-events:none}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'Manrope','DM Sans',sans-serif}h1{font-size:34px;font-weight:750;letter-spacing:-1.5px;line-height:1.3}h2{font-weight:750;letter-spacing:-.6px}h3{font-size:15px;font-weight:750;letter-spacing:-.3px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #739c43;outline-offset:4px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #82ac48;outline-offset:2px}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:34px 20px 20px;z-index:30}.brand{display:flex;align-items:center;gap:10px;margin:0 10px 47px}.brand>span{font-family:'Manrope',sans-serif;font-size:31px;letter-spacing:-1.8px;font-weight:800;line-height:1}.brand-dot{color:#639b35}.workspace-label{font-size:10px;letter-spacing:1.3px;font-weight:700;color:#92998f;margin:0 14px 14px}.protocol-label{margin-top:35px}.nav-item{display:flex;align-items:center;gap:13px;color:#768178;padding:13px 14px;margin:5px 0;font-size:13px;font-weight:550;border-radius:9px;transition:background .18s,color .18s}.nav-item:hover{background:#f7f9f3;color:var(--ink)}.nav-item.active{color:#34552c;background:#edf4e2;font-weight:650}.nav-item svg{width:18px;height:18px}.nav-external{margin-left:auto;width:14px!important;color:#879583}.nav-count{margin-left:auto;padding:1px 6px;background:#d6eac0;border-radius:5px;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:70px}.sidebar-note{background:#f7f8f3;border:1px solid #e9edde;border-radius:12px;padding:18px 16px}.small-mark{display:grid;place-items:center;border:1px solid #d7e3c8;background:#ebf2df;border-radius:50%;width:30px;height:30px;color:#537343;font-size:22px;margin-bottom:15px}.sidebar-note h3{font-size:14px;line-height:1.6;letter-spacing:-.3px}.sidebar-note p{font-size:11px;color:var(--muted);margin-top:5px}.sidebar-note a{font-size:10px;font-weight:650;display:flex;gap:8px;align-items:center;margin-top:22px}.sidebar-note a svg{width:13px;height:13px}.sidebar-status{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted);padding:22px 8px 0}.status-dot{height:6px;width:6px;background:#80aa58;border-radius:50%;display:inline-block;flex-shrink:0}.version{margin-left:auto;color:#a0a69d}.main-shell{margin-left:224px;flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:12px;color:#8c948c}.breadcrumb strong{color:#425046;font-weight:500}.breadcrumb-slash{color:#c4cac1;font-size:15px}.topbar-actions{display:flex;align-items:center;gap:22px}.demo-chip{display:flex;align-items:center;gap:8px;color:#687669;font-size:11px}.demo-chip>span{height:7px;width:7px;background:#85a26b;border-radius:50%;box-shadow:0 0 0 3px #edf3e7}.wallet-button{display:flex;gap:9px;align-items:center;justify-content:center;border:1px solid #dfe5d8;background:#f5f8ee;border-radius:8px;padding:11px 16px;font-size:12px;font-weight:650;transition:background .2s}.wallet-button:hover{background:#e9f2dc}.wallet-button svg{width:16px;height:16px}.wallet-button.connected{background:#edf4e2}main{padding:32px 38px 20px;max-width:1530px;width:100%;margin:auto;flex:1;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#809078;margin-bottom:11px}.page-heading>div>p:last-child{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.6}.text-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:550}.text-link:hover{color:#68913c}.text-link svg{width:15px;height:15px}.heading-link{align-self:flex-end;padding-bottom:7px;font-size:11px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--line);padding:18px 22px 17px;border-radius:13px}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#778176}.stat-icon{display:grid;place-items:center;width:28px;height:28px;background:#f5f7f1;border-radius:8px;color:#7a8b6e}.stat-icon svg{width:15px;height:15px}.stat-value{font-family:'Manrope',sans-serif;font-size:31px;font-weight:650;letter-spacing:-1.5px;margin:2px 0 13px;line-height:1.3}.stat-value>span{color:#b0b8a9;font-size:26px}.stat-bottom{display:flex;gap:7px;align-items:center;font-size:10px;color:#969e91}.mini-dot{height:4px;width:4px;background:#a7b49d;border-radius:50%}.tiny-tag{background:#f0f5e8;border:1px solid #e7efda;padding:3px 6px;color:#6f8759;font-size:9px;border-radius:4px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(350px,.88fr);gap:24px}.overview-left{display:flex;flex-direction:column;gap:20px}.hero-card{overflow:hidden;position:relative;min-height:255px;border-radius:16px;background:#1d3f2f;padding:27px 29px;color:white;isolation:isolate}.hero-card::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 96% 40%,#42633150,transparent 65%);z-index:-1}.hero-content{position:relative;z-index:2;width:70%}.hero-chip{font-size:8px;letter-spacing:1.25px;display:flex;align-items:center;gap:7px;color:#bdc9a9}.hero-chip>span{height:4px;width:4px;background:#c8f564;border-radius:50%}.hero-card h2{font-size:29px;letter-spacing:-1.1px;line-height:1.35;margin-top:17px;font-weight:650}.hero-card h2 span{color:#d0ec9b}.hero-card p{font-size:11px;line-height:1.65;color:#aebdac;margin-top:11px}.hero-link{display:inline-flex;gap:9px;align-items:center;margin-top:22px;font-size:10px;color:#d8ecc0}.hero-link svg{width:14px;height:14px}.hero-link:hover{color:white}.hero-art{position:absolute;right:-26px;bottom:-9px;width:260px;height:260px;stroke:none;z-index:1}.asset-card,.positions-card{background:white;border:1px solid var(--line);border-radius:14px;padding:21px 23px}.asset-title,.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-title h2{font-size:17px}.asset-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:21px}.asset-identity{display:flex;align-items:center;gap:12px}.asset-identity img{border-radius:13px;width:38px;height:38px}.asset-identity>div,.asset-balance{display:flex;flex-direction:column;gap:5px}.asset-identity strong{font-size:12px;font-weight:600}.asset-identity span{font-size:10px;color:#8d978a}.asset-divider{padding:0 5px}.asset-balance{text-align:right}.asset-balance strong{font-size:12px;font-weight:600}.asset-balance span{font-size:10px;color:#8d978a}.muted{color:var(--muted)}.small{font-size:10px}.inline-count{display:inline-block;padding:1px 6px;background:#f0f3ed;color:#8c9c80;font-size:10px;border-radius:4px;margin-left:5px;vertical-align:middle}.positions-card{flex:1;min-height:165px}.empty-positions{display:flex;align-items:center;justify-content:center;gap:13px;padding:28px 0 10px}.empty-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;border:1px dashed #dce5d2;background:#f8faf5;color:#91a47f}.empty-icon svg{width:17px;height:17px}.empty-positions strong{font-size:11px;font-weight:550}.empty-positions p{color:#929b8e;font-size:10px;margin-top:5px}.borrow-card{background:white;border:1px solid var(--line);border-radius:16px;padding:25px 26px 0;overflow:hidden}.borrow-title{display:flex;justify-content:space-between;gap:15px;align-items:center}.borrow-title h2{font-size:19px;letter-spacing:-.6px}.borrow-title p{font-size:10px;color:#8b9486;margin-top:6px}.borrow-title-icon{width:34px;height:34px;display:grid;place-items:center;background:#f2f6eb;color:#789357;border-radius:10px}.borrow-title-icon svg{width:17px;height:17px}.tab-switch{display:flex;background:#f4f6f0;border:1px solid #eef1e8;border-radius:8px;padding:4px;gap:4px;margin:23px 0}.tab-switch button{flex:1;border:0;background:transparent;padding:9px;color:#8a9284;font-size:11px;border-radius:5px}.tab-switch button.active{background:white;color:#3b5134;box-shadow:0 2px 5px #263e2e09;font-weight:650}.field-label{display:flex;justify-content:space-between;font-size:10px;color:#7b8872;margin-bottom:12px}.field-label>span{font-size:9px;color:#a1aa98}.amount-field{display:flex;align-items:center;gap:5px;border:1px solid #e1e7d7;border-radius:10px;padding:14px 15px;background:#fdfefb}.currency-prefix{font-family:Manrope,sans-serif;font-size:31px;color:#a8b397;font-weight:500}.amount-field input{font-family:Manrope,sans-serif;font-size:32px;letter-spacing:-1px;font-weight:600;width:100%;min-width:0;outline:0;border:0;background:transparent;color:#3d5132;-moz-appearance:textfield;appearance:textfield;padding:0}.amount-field input:focus-visible{outline:0}.amount-field:focus-within{border-color:#8bac63;box-shadow:0 0 0 2px #e6f0d7}.amount-field input::-webkit-inner-spin-button{appearance:none}.currency-badge{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:550;white-space:nowrap}.currency-badge>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:white;background:#6083b3;font-size:15px}.slider-wrap{margin:18px 0 22px}input[type=range]{appearance:none;width:100%;height:4px;border-radius:8px;background:linear-gradient(to right,#83a85d var(--range-fill,10%),#edf0e8 var(--range-fill,10%));cursor:pointer;display:block;margin:0}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border:3px solid white;border-radius:50%;background:#6c8f47;box-shadow:0 0 0 1px #84a461}input[type=range]::-moz-range-thumb{width:8px;height:8px;border:3px solid white;border-radius:50%;background:#6c8f47;box-shadow:0 0 0 1px #84a461}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:#99a18f;margin-top:11px}.range-labels button{border:0;padding:0;background:transparent;color:#78915d;font-size:9px}.range-labels button span{color:#939f88;margin-left:3px}.collateral-box{background:#f5f8ef;border:1px solid #e7eddd;border-radius:10px;padding:15px}.collateral-box-header{display:flex;justify-content:space-between;align-items:center;color:#889879;font-size:10px}.collateral-box-header svg{width:13px;height:13px}.collateral-amount{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:13px}.collateral-amount>div{display:flex;align-items:center;gap:8px}.collateral-amount img{border-radius:8px;width:24px;height:24px}.collateral-amount strong{font-size:15px;font-weight:600;letter-spacing:-.4px}.collateral-amount strong span{color:#879776;font-size:11px;letter-spacing:0}.collateral-amount>strong{font-size:12px;font-weight:500;color:#788e63}.collateral-caption{display:flex;justify-content:space-between;font-size:8px;color:#9bab8c;gap:8px;margin-top:12px}.quote-details{padding:21px 0 17px}.quote-details>div{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;margin-bottom:15px}.quote-details>div>span{color:#8a9483;display:flex;align-items:center;gap:5px}.quote-details strong{font-weight:550}.inline-info{border:0;background:transparent;padding:0;display:inline-flex;color:#afb6a5}.inline-info svg{width:11px;height:11px}.fee-tag{font-size:8px;border:1px solid #e5e9dc;border-radius:4px;padding:1px 3px;color:#899776;margin-left:2px}.quote-details>.total-row{border-top:1px dashed #e3e8da;padding-top:16px;margin-bottom:0}.total-row>span{color:#55684a!important;font-weight:550}.total-row strong{font-size:19px;letter-spacing:-.5px;font-weight:650;font-family:Manrope,sans-serif}.total-row strong span{font-size:9px;letter-spacing:0;color:#98a48a;font-family:'DM Sans',sans-serif;font-weight:400}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 18px;border-radius:8px;font-size:11px;font-weight:650;border:1px solid transparent;transition:background .2s,transform .2s}.primary-button{background:var(--lime);color:#304321;border-color:#bfeb5f}.primary-button:hover{background:#b7e552}.primary-button:active{transform:translateY(1px)}.primary-button svg,.secondary-button svg{width:15px;height:15px}.secondary-button{background:white;border-color:#dce4d3;color:#60724d}.secondary-button:hover{background:#f4f8ee}.full-width{width:100%}.full-width svg{margin-left:auto}.borrow-footnote{display:flex;align-items:center;justify-content:center;gap:6px;font-size:8px;color:#a0ab92;margin:13px 0 17px}.borrow-footnote svg{height:11px;width:11px}.demo-notice{margin:0 -26px;padding:11px;background:#fafbf7;border-top:1px solid #edf0e6;display:flex;align-items:center;justify-content:center;gap:6px;font-size:8px;color:#a1ab96}.demo-notice .status-dot{width:4px;height:4px;background:#a9ba8e}.field-error{font-size:11px;color:var(--danger);padding:0 0 12px;line-height:1.6}.bottom-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0 0}.bottom-strip>div{display:flex;align-items:center;gap:12px}.strip-icon{border:1px solid #dfe6d6;border-radius:9px;background:#eff4e9;display:grid;place-items:center;width:32px;height:32px;color:#789266}.strip-icon svg{width:16px;height:16px}.bottom-strip p{display:flex;flex-direction:column;gap:5px;font-size:10px}.bottom-strip strong{font-weight:550;color:#6e7f60}.bottom-strip p>span{color:#a0a996;font-size:9px}.bottom-strip>.text-link{font-size:10px;color:#82966d}.app-footer{padding:25px 38px;display:flex;align-items:center;justify-content:space-between;color:#a3ac9a;font-size:9px;margin-top:10px}.app-footer>div{display:flex;align-items:center;gap:14px}.footer-divider{color:#c2cabb}.footer-arrow{color:#7c9266;margin-left:3px}.icon-button{width:34px;height:34px;border:1px solid #e2e7db;background:white;border-radius:8px;display:inline-grid;place-items:center;color:#7e906c}.icon-button:hover{background:#f5f8f0}.icon-button svg{width:16px;height:16px}.mobile-menu{display:none}.pill{display:inline-flex;align-items:center;gap:7px;font-size:9px;background:#f1f5e9;border:1px solid #e5ebda;padding:6px 9px;border-radius:5px;color:#8a9b77;white-space:nowrap}.pill svg{width:13px;height:13px}.loan-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px 0 35px}.loan-summary>div{padding:24px;background:white;border:1px solid var(--line);border-radius:13px}.loan-summary span{display:block;font-size:11px;color:#84917b}.loan-summary strong{display:block;margin-top:10px;font-family:Manrope,sans-serif;font-size:29px;letter-spacing:-1px}.loan-section-title{margin-bottom:18px}.large-empty{text-align:center;border:1px solid var(--line);background:white;border-radius:16px;padding:65px 25px}.large-empty .empty-icon{margin:0 auto 20px;width:52px;height:52px}.large-empty h2{font-size:21px}.large-empty p{color:#95a08b;margin:10px auto 22px;max-width:340px;line-height:1.7;font-size:12px}.loan-list{display:grid;gap:15px}.loan-item{background:white;border:1px solid var(--line);border-radius:13px;padding:21px}.loan-item-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.loan-item-heading{display:flex;align-items:center;gap:12px}.loan-item-heading img{width:33px;height:33px;border-radius:10px}.loan-item-heading strong{font-size:12px}.loan-item-heading p{font-size:9px;color:#929e87;margin-top:5px}.status-tag{background:#f0f6e7;color:#769653;font-size:9px;padding:5px 8px;border-radius:4px}.status-tag.repaid{background:#f3f5f0;color:#98a28e}.loan-item-details{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;border-top:1px solid #edf0e6;padding-top:19px}.loan-item-details span{display:block;font-size:10px;color:#8e9b82}.loan-item-details strong{display:block;margin-top:7px;font-size:13px;font-weight:550}.loan-item-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed #e5ebdb;padding-top:17px;margin-top:20px}.loan-item-actions p{font-size:10px;color:#91a17e}.mini-loan{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf1e6;padding-top:18px;margin-top:19px;gap:12px}.mini-loan strong{font-size:13px;font-weight:550}.mini-loan p{margin-top:5px;font-size:9px;color:#94a287}.mini-loan .secondary-button{padding:8px 11px;font-size:9px}.repay-empty{text-align:center;padding:36px 6px 52px}.repay-empty>.empty-icon{margin:0 auto 19px}.repay-empty h3{font-size:16px}.repay-empty p{font-size:11px;line-height:1.7;color:#91a182;margin:12px 0 23px}.repay-select-label{display:block;font-size:10px;margin-bottom:9px;color:#839275}.repay-select{width:100%;padding:12px;background:#f9fbf5;border:1px solid #e0e8d5;border-radius:8px;font-size:12px;margin-bottom:20px;color:#4e663b}.repay-balance{display:flex;justify-content:space-between;font-size:10px;color:#91a17d;padding-bottom:17px}.unlock-note{display:flex;align-items:center;gap:10px;padding:15px;background:#f6f9ef;border:1px solid #e4ebd7;border-radius:9px;margin-bottom:19px}.unlock-note img{width:26px;height:26px}.unlock-note strong{display:block;font-size:11px;font-weight:550}.unlock-note span{display:block;margin-top:4px;font-size:9px;color:#99a78a}.activity-card,.faq-card{background:white;border:1px solid var(--line);border-radius:15px;padding:25px}.activity-table{width:100%;border-collapse:collapse;margin-top:20px;font-size:11px}.activity-table th{text-align:left;padding:13px 12px;font-size:9px;font-weight:550;color:#95a287;border-bottom:1px solid var(--line)}.activity-table td{padding:18px 12px;border-bottom:1px solid #edf1e7}.activity-table tr:last-child td{border-bottom:0}.activity-action{display:flex;align-items:center;gap:11px}.activity-action .stat-icon{width:30px;height:30px}.activity-action strong{font-size:11px;font-weight:550}.activity-action span{display:block;font-size:8px;color:#9ca992;margin-top:4px}.activity-amount{font-weight:550}.activity-time{color:#95a187;font-size:9px;white-space:nowrap}.activity-empty{padding:65px 15px;text-align:center;color:#96a389;font-size:12px;line-height:1.8}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:33px}.guide-step{position:relative;padding:27px;background:white;border:1px solid var(--line);border-radius:16px}.step-number{position:absolute;right:25px;top:26px;font-family:Manrope,sans-serif;font-size:21px;color:#c2cdb5}.guide-step>svg{width:35px;height:35px;display:block;margin-bottom:30px;color:#779d4e;padding:7px;box-sizing:content-box;background:#f0f6e5;border-radius:14px}.guide-step h2{font-size:20px}.guide-step p{font-size:12px;color:#8b9a7c;line-height:1.8;margin:15px 0 25px}.guide-detail{font-size:9px;color:#789558;background:#f1f6e9;padding:8px 9px;border-radius:5px;display:inline-block}.example-card{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:32px;background:#1d3f2f;color:white;margin:24px 0;border-radius:16px}.example-card h2{font-size:25px;color:#ebf5dd}.example-card .eyebrow{color:#a8bc8f}.example-card p:last-child{font-size:11px;color:#a4b691;margin-top:10px}.example-equation{display:flex;align-items:center;gap:24px}.example-equation>div{display:flex;flex-direction:column;gap:8px;text-align:center}.example-equation strong{font-family:Manrope,sans-serif;font-size:30px;letter-spacing:-1px;color:#dbf7ad}.example-equation span{font-size:9px;color:#afbe9d}.example-equation>svg{width:17px;height:17px;color:#799365}.faq-card h2{font-size:21px;margin-bottom:10px}.faq-card details{border-bottom:1px solid #e8eddf;padding:17px 0}.faq-card details:last-child{border-bottom:0}.faq-card summary{font-size:12px;font-weight:550;cursor:pointer}.faq-card details p{font-size:11px;line-height:1.8;color:#8e9e7f;max-width:750px;padding:12px 0 0}.admin-banner{display:flex;gap:13px;align-items:center;border:1px solid #dbe5cf;background:#eff5e7;padding:17px 20px;border-radius:12px;margin-bottom:25px}.admin-banner>svg{color:#819966}.admin-banner strong{font-size:11px;font-weight:550}.admin-banner p{font-size:10px;color:#93a080;line-height:1.7;margin-top:4px}.admin-grid{display:grid;grid-template-columns:minmax(290px,.8fr) minmax(380px,1.2fr);gap:24px}.config-card,.decisions-card,.prompt-card{background:white;border:1px solid var(--line);border-radius:15px;padding:24px}.config-card h2{font-size:16px}.config-card form{margin-top:23px}.config-card label{display:block;font-size:10px;color:#7f9072;margin:17px 0 8px}.config-card label>span{float:right;font-size:8px;color:#a6b09b}.config-card input,.config-card select{width:100%;padding:12px 10px;font-size:10px;color:#5e7450;border:1px solid #e0e7d7;border-radius:7px;background:#fbfcf8}.config-card input::placeholder{color:#a9b39f}.config-two{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.fixed-terms{background:#f7faf2;border:1px solid #e6edda;border-radius:9px;padding:15px;margin:23px 0 19px}.fixed-terms>div{display:flex;justify-content:space-between;gap:10px;font-size:9px;margin-bottom:11px;color:#93a180}.fixed-terms>div:last-child{margin:0}.fixed-terms strong{font-weight:550;color:#677e53}.config-note{text-align:center;color:#a2ae93;font-size:8px;line-height:1.6;margin-top:12px}.decisions-card{margin-top:20px;padding:21px}.decisions-card h3{font-size:13px}.decisions-card p{font-size:10px;color:#92a080;margin-top:9px}.decisions-card ul{padding-left:16px;font-size:10px;line-height:2.1;color:#82956d;margin-bottom:0}.prompt-card{padding:0;overflow:hidden;align-self:start}.prompt-header{display:flex;align-items:center;justify-content:space-between;padding:24px}.prompt-header>div{display:flex;gap:13px;align-items:center}.claude-monogram{font-size:30px;color:#b27b50;line-height:1}.prompt-header h2{font-size:17px}.prompt-header p{font-size:9px;color:#93a183;margin-top:5px}.prompt-tabs{background:#f5f7f0;display:flex;align-items:center;justify-content:space-between;padding:13px 24px;font-family:monospace;font-size:10px;color:#8f9e7c;border-top:1px solid #e7eddf;border-bottom:1px solid #e7eddf}.prompt-dot{width:5px;height:5px;background:#99b976;border-radius:50%}.prompt-card textarea{font-family:Consolas,monospace;color:#687e53;font-size:10px;line-height:1.9;background:#fdfefb;width:100%;height:618px;border:0;padding:23px;resize:vertical;min-height:250px;display:block;scrollbar-color:#d4dfc5 transparent}.prompt-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 24px;border-top:1px solid #e7eddd}.prompt-actions>span{font-size:8px;color:#a1ad93}.prompt-references{display:flex;gap:12px;flex-wrap:wrap;padding:0 24px 20px;font-size:8px;color:#a2af91}.prompt-references a{color:#839b66}.admin-footer{display:flex;align-items:center;justify-content:space-between;margin-top:35px;gap:15px;padding:20px 0;border-top:1px solid var(--line)}.admin-footer h3{font-size:13px}.admin-footer p{font-size:10px;color:#9aa78b;margin-top:8px}dialog{border:1px solid #dce5cf;background:#fff;border-radius:18px;padding:30px;max-width:440px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 20px 100px #142a2740}dialog::backdrop{background:#18312670;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.dialog-top h2{font-size:22px}.dialog-intro{font-size:12px;line-height:1.8;color:#8b9b7b;margin-bottom:24px}.dialog-summary{background:#f7faf2;border:1px solid #e3ebd6;border-radius:10px;padding:17px;margin-bottom:22px}.dialog-summary>div{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:11px;padding:10px 0;color:#8d9d7c}.dialog-summary strong{font-weight:600;color:#4e663e}.dialog-summary>.dialog-total{border-top:1px solid #e2e8d8;margin-top:5px;padding-top:17px}.dialog-total strong{font-family:Manrope,sans-serif;font-size:20px}.dialog-terms{display:flex;gap:10px;align-items:flex-start;font-size:10px;line-height:1.8;color:#8b9d77;margin-bottom:20px}.dialog-terms input{accent-color:#648a40;margin-top:3px}.dialog-demo-note{font-size:9px;color:#98a78a;text-align:center;margin-top:15px}.wallet-option{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #e2ead7;background:#f8fbf2;border-radius:11px;padding:17px;margin-top:12px;text-align:left}.wallet-option img{width:35px;height:35px}.wallet-option strong{display:block;font-size:13px;font-weight:600}.wallet-option span{display:block;font-size:10px;color:#94a380;margin-top:5px}.wallet-option>svg{margin-left:auto;color:#8ea876;width:17px;height:17px}.dialog-success{text-align:center}.success-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#eef8da;color:#759d44;margin:0 auto 22px}.success-icon svg{width:29px;height:29px}.dialog-success h2{font-size:24px;margin-bottom:12px}.dialog-success p{color:#8a9d76;font-size:12px;line-height:1.8;margin-bottom:24px}.dialog-success .primary-button{margin-top:8px}.wallet-balances{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.wallet-balances>div{background:#f5f9ef;border:1px solid #e3ebd6;border-radius:10px;padding:18px}.wallet-balances span{font-size:10px;color:#8ea077;display:block}.wallet-balances strong{display:block;margin-top:9px;font-size:18px;font-family:Manrope,sans-serif}.wallet-dialog-actions{display:flex;gap:10px}.wallet-dialog-actions button{flex:1}.toast{position:fixed;bottom:26px;left:calc(50% + 112px);transform:translateX(-50%);max-width:calc(100% - 35px);padding:15px 20px;background:#244433;color:#e6f1dc;border:1px solid #567048;border-radius:10px;box-shadow:0 10px 40px #16261525;font-size:11px;z-index:100;line-height:1.6}.nav-backdrop{display:none}.page{animation:page-in .3s ease-out}@keyframes page-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1650px){main{padding:42px 50px 28px}.hero-card{min-height:290px}.hero-art{width:290px;height:290px;right:-10px}.hero-card h2{font-size:34px}.hero-card p{font-size:12px}.borrow-card{padding-top:29px}.stats-grid{margin-bottom:28px}.stat-card{padding:22px 25px}}
@media(max-width:1200px){.sidebar{width:198px;padding-left:14px;padding-right:14px}.main-shell{margin-left:198px}.topbar{padding:0 25px}main{padding:28px 25px 15px}h1{font-size:29px}.workspace-grid{gap:18px;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr)}.hero-card{padding:25px 23px}.hero-art{right:-55px;width:225px;height:225px;bottom:10px;opacity:.9}.hero-content{width:80%}.hero-card h2{font-size:26px}.borrow-card{padding-left:20px;padding-right:20px}.demo-notice{margin-left:-20px;margin-right:-20px}.asset-card,.positions-card{padding:20px}.stat-card{padding:16px 18px}.stat-bottom{font-size:9px}.admin-grid{grid-template-columns:minmax(270px,.8fr) minmax(320px,1fr)}.prompt-actions{flex-wrap:wrap}.example-equation{gap:15px}.example-card h2{font-size:22px}.example-equation strong{font-size:25px}.guide-step{padding:22px}.guide-step h2{font-size:18px}.guide-step p{font-size:11px}.guide-detail{font-size:8px}.toast{left:calc(50% + 99px)}}
@media(max-width:1000px){.sidebar{width:185px;padding-left:12px;padding-right:12px}.brand{margin-left:8px}.main-shell{margin-left:185px}main{padding:27px 23px}.topbar{padding:0 23px}.stats-grid{gap:12px}.stat-card{padding:13px 14px}.stat-value{font-size:27px}.stat-value>span{font-size:23px}.stat-bottom{font-size:8px}.stat-top{font-size:10px}.stat-icon{width:24px;height:24px}.heading-link{display:none}.workspace-grid{grid-template-columns:minmax(0,1fr)}.overview-left{display:grid;grid-template-columns:1fr 1fr;gap:18px}.hero-card{grid-column:1/-1;min-height:235px}.hero-art{right:8px;width:250px;height:250px;bottom:-8px}.hero-content{width:70%}.hero-card h2{font-size:30px}.asset-card{align-self:stretch}.asset-row{flex-wrap:wrap;margin-top:20px}.asset-balance{text-align:left;padding-left:50px}.positions-card{min-height:165px}.empty-positions{justify-content:flex-start;gap:10px;flex-wrap:wrap;padding-top:20px}.borrow-card{max-width:none;display:block;padding:26px 26px 0}.borrow-title h2{font-size:21px}.demo-notice{margin:0 -26px}.borrow-footnote{font-size:10px}.borrow-title p,.field-label,.quote-details>div{font-size:12px}.collateral-box-header{font-size:11px}.collateral-caption{font-size:10px}.borrow-card .primary-button{font-size:12px}.borrow-card .primary-button.full-width{padding:15px}.guide-grid{grid-template-columns:1fr}.guide-step{padding:25px}.guide-step>svg{margin-bottom:22px}.guide-step h2{font-size:22px}.guide-step p{font-size:12px;margin:13px 0 18px}.guide-detail{font-size:10px}.example-card{flex-direction:column;align-items:flex-start}.example-equation{width:100%;justify-content:space-between}.admin-grid{grid-template-columns:1fr}.prompt-card textarea{height:500px}.loan-item-details{grid-template-columns:1fr 1fr}.activity-card{padding:18px}.activity-table td,.activity-table th{padding-left:6px;padding-right:6px}.activity-table .activity-time{font-size:8px}.app-footer{padding:22px 23px;font-size:8px}.bottom-strip>.text-link{display:none}.toast{left:calc(50% + 92px)}}
@media(max-width:720px){.sidebar{transform:translateX(-100%);width:224px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#13271d60;border:0;z-index:25}.main-shell{margin-left:0}.topbar{height:69px;padding:0 20px}.mobile-menu{display:inline-grid;margin-right:2px}.breadcrumb{gap:9px;font-size:10px}.breadcrumb>span:first-of-type,.breadcrumb-slash{display:none}.topbar-actions{gap:12px}.demo-chip{font-size:9px;gap:5px}.wallet-button{padding:9px 11px;font-size:10px;gap:7px}.wallet-button svg{width:14px;height:14px}main{padding:25px 20px 15px}.eyebrow{font-size:8px;letter-spacing:1.2px}h1{font-size:27px;letter-spacing:-1.2px}.page-heading{margin-bottom:23px;align-items:flex-start;gap:12px}.page-heading>div>p:last-child{font-size:11px;line-height:1.7;max-width:280px}.page-heading>.primary-button,.page-heading>.secondary-button{padding:10px 11px;font-size:9px;white-space:nowrap}.stats-grid{gap:9px;margin-bottom:18px}.stat-card{padding:13px 12px;border-radius:10px}.stat-top{font-size:8px}.stat-icon{display:none}.stat-value{font-size:24px;letter-spacing:-1px;margin:13px 0 9px}.stat-value>span{font-size:16px}.stat-bottom{font-size:7px;line-height:1.5;gap:4px;align-items:flex-start;min-height:21px}.tiny-tag{font-size:6px;padding:1px 2px;white-space:nowrap}.stat-bottom .mini-dot{display:none}.hero-card{border-radius:13px;padding:25px;min-height:245px}.hero-art{width:215px;height:215px;right:-42px;bottom:-4px;opacity:.9}.hero-content{width:85%}.hero-card h2{font-size:29px}.hero-card p{font-size:11px}.overview-left{display:flex;gap:16px}.workspace-grid{gap:18px}.asset-row{flex-wrap:nowrap;margin-top:19px}.asset-balance{padding-left:0;text-align:right}.empty-positions{flex-wrap:nowrap;justify-content:center}.asset-card,.positions-card{padding:21px}.borrow-card{padding:24px 23px 0;border-radius:14px}.demo-notice{margin:0 -23px}.borrow-title h2{font-size:19px}.borrow-title p{font-size:10px}.field-label,.quote-details>div{font-size:11px}.collateral-caption{font-size:9px}.borrow-footnote{font-size:9px}.bottom-strip{padding-top:22px}.bottom-strip p>span{font-size:8px;line-height:1.6}.bottom-strip p{font-size:9px}.app-footer{padding:23px 20px;font-size:8px}.app-footer>div>span:last-child{display:none}.loan-summary{gap:9px;margin:23px 0}.loan-summary>div{padding:17px 12px}.loan-summary span{font-size:8px}.loan-summary strong{font-size:21px}.loan-item-actions{gap:12px}.loan-item-actions p{font-size:9px;line-height:1.6}.activity-card{padding:17px 13px}.activity-table th{font-size:8px}.activity-table td{font-size:10px}.activity-table th:nth-child(3),.activity-table td:nth-child(3){display:none}.activity-action{gap:7px}.activity-action strong{font-size:9px}.activity-action .stat-icon{display:grid;width:25px;height:25px}.activity-time{font-size:7px!important;white-space:normal;line-height:1.6}.activity-table td{padding:17px 5px}.guide-grid{gap:16px}.guide-step{padding:25px}.example-card{padding:27px 23px}.example-equation{gap:10px}.example-equation strong{font-size:25px}.example-equation span{font-size:8px}.example-equation>svg{width:14px;height:14px}.admin-banner{padding:16px}.admin-banner p{font-size:9px}.config-card{padding:21px}.admin-pill{display:none}.prompt-header{padding:21px}.prompt-card textarea{padding:21px;font-size:9px}.prompt-actions{padding:18px 21px}.prompt-references{padding-left:21px}.admin-footer{align-items:flex-start}.admin-footer h3{font-size:12px}.admin-footer p{font-size:9px;line-height:1.6}.admin-footer .secondary-button{white-space:nowrap;font-size:9px;padding:10px 12px}.toast{left:50%;bottom:18px;font-size:10px;width:max-content;max-width:calc(100% - 36px)}.empty-positions p{line-height:1.6}.large-empty{padding:45px 22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep financial labels and supporting copy readable on pale surfaces. */
:root{--muted:#687361}.stat-top{font-size:11px;color:#68765f}.stat-bottom{color:#77836c}.stat-value>span{color:#818d77}.page-heading>div>p:last-child{font-size:12px}.asset-identity span,.asset-balance span{color:#748167}.borrow-title p{color:#718064;font-size:11px}.field-label{font-size:11px;color:#6e805e}.field-label>span{color:#7b886f}.range-labels{color:#78886a}.range-labels button span{color:#78886a}.collateral-box-header{color:#71865d;font-size:11px}.collateral-caption{color:#71855d;font-size:9px}.quote-details>div{font-size:11px}.quote-details>div>span{color:#71825e}.fee-tag{color:#71855d}.total-row strong span{color:#748a5e}.borrow-footnote{color:#738762;font-size:9px}.demo-notice{font-size:9px;color:#778865}.sidebar-status,.sidebar-note p{color:#748065}.eyebrow{color:#708461}.workspace-label{color:#7b8670}.bottom-strip p>span{color:#78876b}.app-footer{color:#7c876f}.repay-empty p,.dialog-intro{color:#75876a}.dialog-summary>div,.dialog-terms{color:#728463}.dialog-demo-note{color:#7b8b6b}.config-card label,.config-card label>span{color:#718461}.config-note,.admin-banner p,.prompt-actions>span,.prompt-references{color:#778a65}.config-card input::placeholder{color:#81936f}.prompt-header p{color:#77886a}.fixed-terms>div{color:#788c63}.loan-item-details span,.loan-item-heading p,.loan-item-actions p,.mini-loan p{color:#78896a}.guide-step p,.faq-card details p{color:#718265}.activity-time{color:#778866}.success-icon{color:#658b37}.dialog-success p{color:#748768}
@media(max-width:720px){.page-heading>div>p:last-child{font-size:11px}.stat-top{font-size:8px}.stat-bottom{font-size:8px}.borrow-title p{font-size:10px}.collateral-box-header{font-size:10px}.collateral-caption{font-size:9px}.quote-details>div{font-size:11px}.demo-notice{font-size:8px}.hero-art{width:140px;height:140px;right:-15px;bottom:-3px}.hero-content{width:100%}}
/* Compact application layout. Protocol explanations live in Docs. */
.brand{margin-bottom:35px}.sidebar nav{margin-top:5px}.protocol-label{margin-top:26px}.topbar{height:72px}.breadcrumb strong{font-size:13px}.page-heading{margin-bottom:24px}h1{font-size:30px;letter-spacing:-1px}.stat-card{padding:22px}.stat-top{font-size:12px}.stat-value{margin:12px 0 0;font-size:34px}.stat-value>span{font-size:28px}.workspace-grid{grid-template-columns:minmax(0,1fr) minmax(350px,.9fr);align-items:start}.overview-left{gap:20px}.positions-card{flex:initial;min-height:144px}.asset-card{padding:23px}.asset-row+.asset-row{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.asset-identity strong,.asset-balance strong{font-size:13px}.asset-identity span,.asset-balance span{font-size:11px}.usd-mark{width:38px;height:38px;display:grid;place-items:center;border:1px solid #dfe5dc;border-radius:12px;background:#f5f7f2;color:#617255;font-size:23px;font-weight:500}.borrow-card{padding:25px 26px;border-radius:14px}.borrow-title h2{font-size:19px}.field-label,.quote-details>div{font-size:12px}.collateral-box-header{font-size:12px}.empty-positions{padding:28px 0 14px}.empty-positions strong{color:#87947c;font-size:12px;font-weight:400}.repay-empty{padding:32px 0}.repay-empty h3{margin-bottom:20px;font-size:15px;font-weight:600}.loan-item-actions{justify-content:flex-end}.loan-item-actions:empty{display:none}.loan-item-details span{font-size:11px}.loan-item-details strong{font-size:14px}.large-empty .primary-button{margin-top:22px}.config-note{font-size:10px}.config-card label{font-size:11px}.config-card input,.config-card select{font-size:12px}.prompt-card textarea{height:450px;font-size:11px;line-height:1.8}.prompt-header h2{font-size:17px}.prompt-actions{justify-content:flex-start}.admin-footer{padding-bottom:0}.primary-button,.secondary-button{font-size:12px}.docs-content{max-width:800px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 32px 25px}.docs-content>section{padding:27px 0;border-bottom:1px solid var(--line)}.docs-content>section:last-child{border:0;padding-bottom:0}.docs-content h2{font-size:18px;margin-bottom:14px;letter-spacing:-.4px}.docs-content p,.docs-content li{font-size:13px;line-height:1.9;color:#6b7863}.docs-content p+p{margin-top:12px}.docs-content ol{padding-left:21px;margin:0 0 12px}.docs-content li+li{margin-top:8px}.docs-content a{color:#395a2f;text-decoration:underline;text-underline-offset:3px}.docs-table{width:100%;border-collapse:collapse;margin-top:20px;font-size:12px}.docs-table th,.docs-table td{padding:13px 0;border-bottom:1px solid #edf0e8;text-align:left}.docs-table tr:last-child>*{border:0}.docs-table th{width:48%;font-weight:500;color:#738168}.docs-table td{color:#3d5134}.dialog-top{margin-bottom:20px}.dialog-top h2{font-size:21px}.wallet-dialog{max-width:420px;padding:26px;border:1px solid #e2e8db;box-shadow:0 24px 90px #172a2245}.wallet-dialog::backdrop{background:#14271f65;backdrop-filter:blur(7px)}dialog[open]{animation:dialog-in .18s ease-out}@keyframes dialog-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.wallet-intro{font-size:13px;color:#798570;margin-bottom:24px}.wallet-list{display:grid;gap:10px}.provider-option{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #e5eadd;background:#fff;width:100%;border-radius:12px;text-align:left;transition:border-color .16s,background .16s}.provider-option:hover{border-color:#99b578;background:#f7faf3}.provider-option:disabled{opacity:.75;cursor:wait}.provider-option>img{width:40px;height:40px;border-radius:11px;object-fit:contain}.provider-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eef4e6;color:#739650}.provider-icon svg{width:22px;height:22px}.provider-option>span:not(.provider-icon):not(.wallet-spinner){display:flex;flex-direction:column;gap:5px}.provider-option strong{font-size:14px;font-weight:600}.provider-option small{font-size:11px;color:#8b977e}.provider-option>svg,.provider-option>.wallet-spinner{margin-left:auto;color:#849672;width:17px;height:17px}.wallet-spinner{border:2px solid #e3ebd9;border-top-color:#789e4f;border-radius:50%;animation:wallet-spin .8s linear infinite}@keyframes wallet-spin{to{transform:rotate(360deg)}}.wallet-empty{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #e6ebdf;border-radius:13px;background:#fafcf7;padding:30px 18px}.wallet-empty-icon{display:grid;place-items:center;height:46px;width:46px;background:#eef4e5;border-radius:14px;color:#81996a;margin-bottom:17px}.wallet-empty-icon svg{width:24px;height:24px}.wallet-empty strong{font-size:14px;font-weight:550}.wallet-empty p{font-size:12px;color:#88967a;line-height:1.7;margin-top:9px;max-width:240px}.wallet-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:20px 1px;font-size:11px;color:#7d906a}.wallet-modal-footer a{display:flex;gap:5px;align-items:center}.wallet-modal-footer a svg{width:12px;height:12px}.wallet-modal-footer button{padding:0;background:none;border:0;font-size:11px;color:#7d906a}.preview-link{border:0;background:none;width:100%;text-align:center;border-top:1px solid #e8ede0;padding:17px 0 0;color:#8f9b83;font-size:11px}.preview-link:hover{color:#4e6c37}.connected-provider{display:flex;align-items:center;gap:12px;padding-bottom:25px}.connected-provider img{width:40px;height:40px;border-radius:11px}.connected-provider strong{font-size:14px;font-weight:600}.connected-provider span{display:block;color:#83a363;font-size:11px;margin-top:5px}.wallet-account{padding:17px;border:1px solid #e2e9d9;background:#f7faf2;border-radius:11px}.wallet-account label{font-size:10px;color:#81956c}.wallet-account>div{display:flex;align-items:center;gap:10px;margin-top:8px}.wallet-account code{word-break:break-all;line-height:1.7;font-size:11px;color:#5c724a}.wallet-account .icon-button{flex-shrink:0;background:transparent;border:0}.wallet-chain{display:flex;justify-content:space-between;font-size:12px;padding:22px 1px;color:#889779}.wallet-chain strong{font-weight:500;color:#5d734b}.wallet-dialog .field-error{padding-top:16px}.wallet-dialog-actions{margin-top:5px}
@media(max-width:1000px){.workspace-grid{grid-template-columns:1fr}.overview-left{display:flex}.asset-row{flex-wrap:nowrap}.asset-balance{padding-left:0;text-align:right}.borrow-card{order:-1}.positions-card{min-height:130px}.stat-card{padding:18px}.stat-value{font-size:30px}.stat-value>span{font-size:24px}}
@media(max-width:720px){.topbar{height:65px}.breadcrumb strong{font-size:12px}.topbar-actions{gap:0}.wallet-button{font-size:11px}.page-heading{margin-bottom:22px}h1{font-size:27px}.stat-card{padding:15px 12px}.stat-top{font-size:10px;line-height:1.5}.stat-value{font-size:24px;margin-top:11px}.stat-value>span{font-size:18px}.borrow-card{padding:22px}.collateral-box-header{font-size:11px}.quote-details>div{font-size:12px}.asset-card{padding:21px}.docs-content{padding:0 22px 23px}.docs-content h2{font-size:17px}.docs-content p,.docs-content li{font-size:12px}.docs-table{font-size:11px}.docs-table th{width:47%;padding-right:12px}.prompt-card textarea{height:360px;font-size:10px}.wallet-dialog{padding:24px}.wallet-intro{font-size:12px}.provider-option{padding:12px}.provider-option strong{font-size:13px}.wallet-button{max-width:190px}}

/* Shared controls and the loan form. */
.primary-button,.secondary-button,.wallet-button{
  min-height:44px;padding:12px 18px;border-radius:11px;
  font-size:13px;font-weight:600;line-height:1.4;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;
}
.primary-button{background:#244b37;border-color:#244b37;color:#fff;box-shadow:0 2px 3px #20352b0d}
.primary-button:hover{background:#193d2b;border-color:#193d2b;box-shadow:0 3px 8px #20352b18}
.primary-button:active,.secondary-button:active,.wallet-button:active{transform:translateY(1px)}
.primary-button:disabled{opacity:1;color:#859080;background:#edf0e9;border-color:#e4e9df;box-shadow:none}
.secondary-button{border-color:#e0e6dc;color:#415a39;background:#fff}
.secondary-button:hover{background:#f4f7ef;border-color:#cbd8bf}
.full-width{justify-content:center;gap:10px}
.full-width svg{margin-left:0;width:18px;height:18px}
.wallet-button{padding:10px 15px;min-height:40px;font-size:12px;background:#fff;color:#3c5134}
.wallet-button:hover{border-color:#bacbab;background:#f6f9f2}
.borrow-card{padding:26px;border-radius:20px;overflow:visible;box-shadow:0 3px 15px #20352b03}
.borrow-title h2{font-size:20px;letter-spacing:-.6px}
.tab-switch{padding:4px;gap:4px;border-radius:12px;background:#f2f5ee;border-color:#edf0e7;margin:22px 0 26px}
.tab-switch button{min-height:39px;padding:9px 12px;font-size:13px;font-weight:500;border-radius:9px;color:#829078;transition:background .18s,color .18s,box-shadow .18s}
.tab-switch button:hover{color:#34502b;background:#eaf0e2}
.tab-switch button.active{background:#fff;color:#294630;font-weight:650;box-shadow:0 1px 5px #243e2810}
.field-label{color:#69765f;font-size:12px;font-weight:500;margin-bottom:11px}
.amount-field{min-height:82px;padding:16px 18px;gap:7px;border-radius:13px;background:#fff;border-color:#e0e6d9}
.currency-prefix{font-size:32px;color:#a7b098}
.amount-field input{font-size:34px;font-weight:600;color:#2b432e;letter-spacing:-1.2px}
.currency-badge{font-size:12px;gap:7px;background:#f3f6ee;border:1px solid #e8eddf;padding:7px 9px;border-radius:8px;color:#617255}
.currency-badge>span{background:none;color:#73905d;width:auto;height:auto;font-size:15px}
.slider-wrap{margin:23px 0 25px}
.range-labels{align-items:center;margin-top:8px;font-size:10px}
.range-labels button{font-size:10px;border:1px solid #e6ecde;padding:4px 7px;border-radius:5px;background:#fafcf7}
.collateral-box{margin-top:22px;padding:17px 18px;border-radius:13px;background:#f7f9f3;border-color:#e9eedf}
.slider-wrap:not([hidden])+.collateral-box{margin-top:0}
.collateral-box-header{font-size:12px;color:#849477}
.collateral-amount{margin-top:14px}
.collateral-amount img{width:29px;height:29px;border-radius:9px}
.collateral-amount strong{font-size:17px;font-weight:600}
.collateral-amount strong span{font-size:11px;font-weight:500}
.collateral-amount>strong{font-size:13px;color:#738766;font-weight:500}
.quote-details{padding:24px 0}
.quote-details>div{margin-bottom:17px;font-size:12px}
.quote-details>div>span{color:#7b8a70}
.quote-details>.total-row{border-top:1px solid #e9eee2;padding-top:19px}
.total-row strong{font-size:23px;letter-spacing:-.7px;color:#2e452f}
.total-row strong span{font-size:10px}
#borrow-submit,#repay-submit{min-height:49px;font-size:13px;border-radius:12px}
.wallet-dialog-actions{display:flex;gap:10px}
.wallet-dialog-actions>button{flex:1;font-size:12px;padding:11px}
@media(max-width:720px){
  .borrow-card{padding:22px;border-radius:17px}
  .amount-field{min-height:78px;padding:14px 16px}
  .tab-switch{margin-top:20px;margin-bottom:23px}
  .collateral-box{padding:16px}
  .currency-badge{padding:6px 8px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Live protocol: transaction steps, exact amounts and links. */
.tx-steps{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:4px}
.tx-step{display:flex;gap:12px;align-items:flex-start;padding:11px 12px;border-radius:11px;border:1px solid transparent}
.tx-step.active{background:#f6f9f1;border-color:#e3ebd6}
.tx-step-dot{flex-shrink:0;display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border-radius:50%;border:1.5px solid #cfdac3;background:#fff;color:#fff}
.tx-step-dot svg{width:13px;height:13px;stroke-width:2.4}
.tx-step.done .tx-step-dot{background:#5f8a3a;border-color:#5f8a3a}
.tx-step.active .tx-step-dot{border-color:#789e4f;border-top-color:transparent;animation:wallet-spin .9s linear infinite}
.tx-step strong{display:block;font-size:13px;font-weight:600;color:#2e452f}
.tx-step small{display:block;margin-top:4px;font-size:11px;line-height:1.6;color:#748567}
.tx-step.done strong{color:#5d7450}
.tx-link{display:inline-flex;align-items:center;gap:3px;color:#3f6a2c;font-weight:550;text-decoration:underline;text-underline-offset:3px}
.tx-link svg{width:11px;height:11px}
.exact-note{font-size:11px;line-height:1.75;color:#728463;margin:-8px 0 18px}
.exact-note code,.address-rows code{font-family:Consolas,monospace;font-size:10.5px;color:#4e663b;background:#f3f6ee;padding:1px 4px;border-radius:4px;word-break:break-all}
.button-spinner{width:15px;height:15px;border-width:2px;margin-left:2px}
.empty-positions .secondary-button{margin-left:6px;min-height:34px;padding:7px 11px;font-size:11px}

/* Owner-only notice while a browser-saved (unpublished) deployment is active. */
.local-banner{margin-bottom:22px;border-color:#f1e1c2;background:#fdf7ea}
.local-banner>svg{color:#a0742f}
.local-banner>div{flex:1}
.local-banner .secondary-button{min-height:36px;padding:7px 12px;font-size:11.5px}

/* Admin: owner gate. */
.admin-locked{text-align:center;border:1px solid var(--line);background:#fff;border-radius:16px;padding:56px 25px}
.admin-locked .empty-icon{margin:0 auto 18px;width:52px;height:52px}
.admin-locked h2{font-size:20px}
.admin-locked p{color:#6f7f63;margin:10px auto 22px;max-width:440px;line-height:1.7;font-size:12px}

/* Admin: deploy and manage. */
.admin-banner p{margin-top:4px}
.admin-live{margin-bottom:28px}
.admin-live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:24px;align-items:start}
.admin-card h2{font-size:16px}
.admin-card .section-title{margin-bottom:6px}
.admin-copy{font-size:12px;line-height:1.75;color:#6f7f63;margin:14px 0 18px}
.admin-tabs{margin:18px 0 4px}
.admin-form{margin-top:6px}
.admin-status{font-size:11px;line-height:1.6;margin:8px 0 0;display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap}
.admin-status svg{width:14px;height:14px;margin-top:1px}
.admin-status.ok{color:#4f7a33}
.admin-status.error{color:var(--danger)}
.admin-status.muted{color:#7d8c71}
.admin-status.warn{color:#94672a}
.confirm-box{margin-top:10px;padding:12px;border:1px solid #f1e1c2;border-radius:10px;background:#fdf5e7}
.confirm-box p{margin:0 0 6px;font-size:12px;color:#5d4a2a}
.confirm-box code{word-break:break-all;font-size:11.5px}
.admin-hint{font-size:10.5px;line-height:1.7;color:#7a8a6d;margin-top:8px}
.pool-list{display:grid;gap:8px}
.pool-option{display:flex!important;gap:10px;align-items:flex-start;margin:0!important;padding:12px;border:1px solid #e3e9da;border-radius:10px;background:#fbfcf8;cursor:pointer}
.pool-option.selected{border-color:#9bb97c;background:#f4f8ec}
.pool-option input{width:auto!important;margin-top:3px;accent-color:#5f8a3a}
.pool-option strong{display:block;font-size:12px;font-weight:600;color:#33492c}
.pool-option small{display:block;margin-top:4px;font-size:10.5px;line-height:1.6;color:#768669}
.admin-inline{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.admin-inline>label,.admin-inline>input{flex:1 1 160px}
.admin-inline>label{flex-basis:100%;margin-bottom:0!important}
.admin-inline>input{min-width:0}
.admin-inline>.secondary-button{min-height:41px;padding:9px 14px}
.text-button{border:0;background:none;padding:0;margin-top:10px;font-size:11px;color:#4f7a33;text-decoration:underline;text-underline-offset:3px}
.admin-advanced{margin-top:18px;border:1px solid #e6ecdd;border-radius:10px;padding:0 14px 14px;background:#fcfdf9}
.admin-advanced summary{cursor:pointer;font-size:11px;font-weight:600;color:#5d7450;padding:13px 0 1px}
.admin-checklist{margin:0 0 16px;padding-left:18px;font-size:11px;line-height:1.8;color:#8a6a3a}
.deploy-result{margin-top:18px;padding:16px;border:1px solid #d6e5c5;border-radius:12px;background:#f3f8eb}
.deploy-result>strong{display:flex;align-items:center;gap:7px;font-size:13px;color:#3d6128}
.deploy-result>strong svg{width:16px;height:16px}
.deploy-result p{font-size:11px;line-height:1.7;color:#6b7d5e;margin:12px 0}
.address-rows{display:grid;gap:9px;margin:14px 0 4px}
.address-rows>div{display:flex;justify-content:space-between;gap:12px;font-size:11.5px;align-items:center}
.address-rows span{color:#768669}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-actions .primary-button,.admin-actions .secondary-button{min-height:38px;padding:8px 13px;font-size:11.5px}
.admin-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e9eee2;border:1px solid #e9eee2;border-radius:11px;overflow:hidden;margin:16px 0 6px}
.admin-stats>div{background:#fff;padding:12px 13px}
.admin-stats span{display:block;font-size:10px;color:#7b8a6f}
.admin-stats strong{display:block;margin-top:5px;font-size:13px;font-weight:600;color:#2f4630;word-break:break-word}
.admin-control{border-top:1px solid #edf1e7;padding-top:16px;margin-top:16px}
.admin-control h3{font-size:12px;margin-bottom:10px}
.admin-control label{margin-top:0!important}
.role-tags{display:flex;gap:8px;flex-wrap:wrap}
.asset-identity .stablecoin-logo{border-radius:50%;object-fit:contain}
.role-tag{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;padding:5px 8px;border-radius:6px;background:#f4f5f2;color:#8b9283}
.role-tag svg{width:12px;height:12px}
.role-tag.yes{background:#edf5e2;color:#4c7530}
.pill.warn{background:#fdf5e7;border-color:#f1e1c2;color:#94672a}
.danger-text{color:var(--danger)!important}
@media(max-width:720px){
  .admin-live-grid{grid-template-columns:1fr;gap:18px}
  .admin-stats{grid-template-columns:1fr}
  .address-rows>div{flex-direction:column;align-items:flex-start;gap:3px}
}
