@font-face{font-family:DM Sans;src:url(fonts/dm-sans.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:Instrument Serif;src:url(fonts/instrument.woff2) format("woff2");font-display:swap}
@font-face{font-family:Instrument Serif;src:url(fonts/instrument-italic.woff2) format("woff2");font-style:italic;font-display:swap}
:root{font-family:"DM Sans",system-ui,sans-serif;--ink:#232a22;--muted:#566356;--forest:#253d31;--paper:#f6f3eb;--white:#fffdf7;--line:#e0ded3;--sage:#deeadb;--peach:#f6ddd2;--plum:#763f32;color:var(--ink);background:var(--paper);font-size:16px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:300px}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #af6039;outline-offset:3px}
[hidden]{display:none!important}.skip{position:absolute;left:12px;top:-100px;background:white;padding:10px;z-index:3}.skip:focus{top:10px}
.top{height:75px;background:var(--white);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 max(5vw,calc((100vw - 1240px)/2));gap:12px}
.brand{display:flex;gap:11px;align-items:center;font-family:"Instrument Serif",Georgia,serif;font-size:34px;text-decoration:none;line-height:1;white-space:nowrap}
.logo{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#cfe1cd;color:#234335;font-family:Georgia,serif;font-weight:bold;font-size:25px}
.shell{max-width:1290px;margin:0 auto;padding:34px 25px 60px}.auth-layout{display:grid;grid-template-columns:1.27fr 1fr;min-height:640px;border-radius:30px;overflow:hidden;background:var(--white);border:1px solid var(--line);box-shadow:0 20px 54px #33271911}
.auth-photo{position:relative;display:flex;flex-direction:column;justify-content:end;padding:52px;min-height:600px;color:#fffaf0;background:#4e5944 url(hogar.jpg) center/cover}
.auth-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#15251800 22%,#16291a99 55%,#172a1af5 100%)}
.auth-photo>*{position:relative}.auth-photo h1{font-size:clamp(57px,7vw,104px);line-height:.84;max-width:570px;margin:18px 0}.auth-photo em{color:#dce8ca;font-weight:400}.auth-photo p{max-width:360px;font-size:19px;margin:12px 0 0}
.eyebrow{font-size:12px;letter-spacing:.15em;text-transform:uppercase;font-weight:700}.auth-panel{display:grid;align-content:center;padding:clamp(25px,5vw,70px)}h1,h2,h3{margin:0;font-weight:500}h1,h2,.numeric{font-family:"Instrument Serif",Georgia,serif}h1{font-size:clamp(53px,7vw,87px);letter-spacing:-.02em;line-height:.95}h2{font-size:clamp(38px,4.1vw,56px);line-height:1}h3{font-size:20px;font-weight:700}p{line-height:1.5}
.auth-panel p{margin:8px 0 18px}.muted{color:var(--muted)}.small{font-size:14px}
.tabs,.toolbar,.action-row,.section-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tabs{margin:0 0 17px;background:#eeeee3;padding:5px;border-radius:13px}.tabs button{flex:1;border:0;background:transparent;padding:10px;border-radius:9px;color:var(--muted);font-weight:700}.tabs button[aria-pressed=true]{background:var(--white);box-shadow:0 1px 4px #0001;color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 17px;border:1px solid transparent;border-radius:12px;text-decoration:none;font-weight:700;background:var(--forest);color:white;white-space:normal}
.btn:hover{background:#375746}.btn.alt{background:var(--white);color:var(--forest);border-color:var(--line)}.btn.alt:hover{background:var(--sage)}.btn.soft{background:var(--sage);color:#284335}.btn.warm{background:var(--peach);color:var(--plum)}.btn.link{min-height:38px;padding:4px 8px;background:transparent;color:var(--forest);text-decoration:underline}.btn.icon{width:44px;min-height:44px;padding:0;background:var(--white);color:var(--ink);border-color:var(--line);font-size:23px}
.nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.nav button{background:transparent;color:var(--muted);border:0;padding:10px 14px;border-radius:11px;font-weight:700}.nav button[aria-current=page]{background:#e1e8db;color:var(--forest)}
.dash-hero{border-radius:24px;overflow:hidden;min-height:275px;display:flex;align-items:center;padding:34px clamp(22px,5vw,54px);color:#fffdf3;background:#304e3d linear-gradient(90deg,#253c30 0%,#253c30 35%,#253c3008 100%);position:relative;isolation:isolate}.dash-hero::after{content:"";position:absolute;inset:0 0 0 31%;z-index:-1;background:linear-gradient(90deg,#253c30,transparent 75%),url(hogar.jpg) center 49%/cover}.dash-hero h1{margin:12px 0 11px}.dash-hero p{font-size:18px;max-width:470px;margin:0;color:#f1f3e8}.dash-hero .eyebrow{color:#daedce}
.section-title{justify-content:space-between;margin-bottom:17px}.section-title p{margin:7px 0 0}.section{margin-top:28px}.quick{padding:14px 0 2px}.quick .btn{flex:1;min-width:138px;font-size:16px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:18px 19px;min-width:0}.metric:nth-child(2){background:#ebf2e4}.metric:nth-child(4){background:#f7e8dd}.metric .numeric{display:block;font-size:clamp(32px,4vw,54px);line-height:1.05;margin:6px 0;overflow-wrap:anywhere}.metric small{color:var(--muted)}
.panels{display:grid;grid-template-columns:1.18fr 1fr;gap:16px}.card{background:var(--white);border:1px solid var(--line);border-radius:19px;padding:clamp(17px,3vw,28px);min-width:0}.card h2{font-size:40px}.forecast{background:#e4eddc}.forecast.risk{background:#f5e0d4}.forecast .numeric{display:block;font-size:62px;line-height:1;margin:11px 0;overflow-wrap:anywhere}.forecast p{margin:8px 0 14px}.timeline,.rows{list-style:none;padding:0;margin:14px 0 0}.rows li,.timeline li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #78867640}.rows strong,.timeline strong{display:block;overflow-wrap:anywhere}.rows small,.timeline small{display:block;color:var(--muted);margin-top:4px}.rows li>div:first-child,.timeline li>div:first-child{min-width:0}.rows .action-row{justify-content:flex-end}.entry-amount{font-weight:700;white-space:nowrap}.positive{color:#246346}.negative{color:var(--plum)}
.empty{border:1px dashed #a3ad9a;padding:16px;border-radius:12px;color:var(--muted);margin:14px 0 0}.warning{background:#fae9df;border-radius:11px;padding:11px 13px;color:#6c2e23}.demo{background:#f6e5b8;border-radius:12px;padding:11px 15px;margin-bottom:13px;font-weight:600}.kicker{color:#49644e;margin-bottom:10px}
form{display:grid;gap:12px}label{display:grid;gap:6px;font-weight:700;color:var(--ink)}input,select{width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #a9b1a4;background:#fffefa;border-radius:10px;color:var(--ink)}input[readonly]{background:#f1f3e9}label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px}input[type=checkbox]{width:19px;min-height:20px}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error{color:#872f26;font-size:15px;margin:0;min-height:0}.error:empty{display:none}form .btn{margin-top:5px}.field-help{font-weight:400;font-size:13px;color:var(--muted)}.auth-panel .escape{margin-top:14px}
dialog{border:1px solid var(--line);border-radius:20px;padding:25px;width:min(530px,calc(100% - 26px));max-height:90dvh;background:var(--white);color:var(--ink);box-shadow:0 20px 70px #14271955}dialog::backdrop{background:#1b2b21a6}dialog h2{font-size:40px}
.notice{position:fixed;z-index:5;right:16px;bottom:16px;max-width:min(410px,calc(100% - 32px));background:var(--forest);color:white;padding:13px 18px;border-radius:10px;box-shadow:0 4px 20px #0003}
.pill{font-size:13px;padding:5px 9px;border-radius:30px;background:var(--sage);color:#294333;font-weight:700}.pill.danger{color:#762e21;background:#f7ddd2}
@media(max-width:890px){.auth-photo{padding:33px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-panel{padding:25px}.dash-hero::after{inset-inline-start:10%;background:linear-gradient(90deg,#253c30 12%,#253c3044 100%),url(hogar.jpg) center/cover}}
@media(max-width:650px){.top{height:63px;padding:0 14px}.brand{font-size:29px}.logo{width:32px;height:32px}.shell{padding:17px 13px 43px}.auth-layout,.panels{grid-template-columns:1fr}.auth-photo{min-height:225px;padding:24px}.auth-photo h1{font-size:55px;margin:7px 0}.auth-photo p{font-size:15px;margin-top:7px}.auth-panel{padding:23px 18px}.auth-layout{border-radius:19px}.dash-hero{min-height:220px;padding:24px 17px}.dash-hero h1{font-size:52px}.dash-hero p{font-size:16px}.nav{gap:4px;margin-bottom:12px}.nav button{padding:10px 8px;font-size:14px}.grid,.panels{gap:9px}.metric{padding:14px 12px}.metric .numeric{font-size:36px}.quick .btn{min-width:42%}.rows li{flex-wrap:wrap}.section{margin-top:22px}.forecast .numeric{font-size:52px}.section-title{gap:8px}}
