/* EquiDiario — Pulse */
:root{--green:#3153d8;--muted:#728099;--bg:#f2f5fa;--line:#e3e9f3;--ink:#17243d;--mint:#c5f86f;--violet:#5268e6}body{background:#f2f5fa;color:#17243d;font-family:'DM Sans',system-ui,-apple-system,sans-serif}aside{background:#121e34;border:0;color:#fff;padding-top:36px}.brand{font-size:27px;color:#fff}.brand span{color:#c5f86f}.tagline{color:#7e91ad;letter-spacing:2.6px;font-size:9px}nav button{color:#91a1bc;border:0;border-radius:13px}nav button:hover{background:#1c2c46;color:#fff}nav button.active{background:#c5f86f;color:#1e321e;box-shadow:0 4px 20px #c5f86f12}aside footer{color:#798ca9}aside footer b{color:#cbd6e8}main{max-width:1560px}.top{border-color:#dce4f0}.top>div small{color:#7a89a2!important}.stable-name{font:700 21px/1.3 'DM Sans',system-ui,sans-serif;color:#1e2c46;letter-spacing:-.5px}.top .pill{border:1px solid #dde5f1;background:#fff;color:#677996;border-radius:10px}.head{margin:34px 0 25px}.eyebrow{font-size:9px;letter-spacing:2.1px;color:#6d7d97}h1{font:700 clamp(34px,3.7vw,47px)/1.06 'DM Sans',system-ui,sans-serif;letter-spacing:-2px;color:#18243b;margin:12px 0}h2{font:700 23px/1.25 'DM Sans',system-ui,sans-serif;letter-spacing:-.8px;color:#1f2d47}h3{color:#26344f}.head p{font-size:14px;color:#77849a}.primary{background:#3558e3;color:#fff;border-radius:12px;padding:14px 20px;box-shadow:0 6px 16px #3558e320;min-height:48px;font-weight:600}.primary:hover{background:#2746c4}.secondary{border:1px solid #d9e3f0;background:#fff;color:#3c5282;border-radius:10px}.secondary:hover{background:#edf2ff;border-color:#b2c1ec}.textbutton{color:#4261bd}.hero{background:#172943;border:0;border-radius:23px;padding:34px 36px;position:relative;isolation:isolate;min-height:232px;box-shadow:0 12px 30px #182b4310;overflow:hidden}.hero::before{content:'';position:absolute;right:-75px;top:-95px;width:390px;height:390px;background:radial-gradient(circle,#5c7da866 0,transparent 68%);z-index:-1}.hero::after{content:'';position:absolute;right:38px;top:26px;width:175px;height:175px;border:1px solid #b7cbef26;border-radius:50%;box-shadow:0 0 0 27px #b7cbef08,0 0 0 54px #b7cbef05;z-index:-1}.hero .eyebrow{display:inline-block;padding:6px 10px;border-radius:6px;background:#b8deff12;border:1px solid #d1e4ff25;color:#b9cce8;letter-spacing:1.7px;font-size:9px}.hero h2{font:700 36px/1.05 'DM Sans',system-ui,sans-serif;letter-spacing:-1.8px;color:#fff;max-width:500px;margin:16px 0 12px}.hero p{font-size:13px;color:#a5b9d6;line-height:1.8;max-width:420px}.hero .secondary{background:#c5f86f;border:0;border-radius:10px;color:#213923;font-weight:700;font-size:12px;padding:12px 16px;box-shadow:0 5px 16px #00000015}.hero .secondary:hover{background:#d4ff90}.hero .horse{font-size:120px;filter:none;color:#c5f86f;opacity:1;padding:0 23px;transform:rotate(-7deg);text-shadow:0 10px 30px #0b172c40}.stats{gap:17px;margin:24px 0 28px}.stat{padding:23px;border:1px solid #e0e7f1;border-top:0!important;border-radius:18px;background:#fff;box-shadow:0 4px 14px #1e3f6704}.stat-label{font-size:12px;font-weight:600;color:#73829b;line-height:1.5}.stat strong{font:700 39px/1 'DM Sans',system-ui,sans-serif;letter-spacing:-1.7px;color:#1b2c49;margin:17px 0 10px}.stat small{font-size:10px;color:#8291a8}.stat:nth-child(1){background:#e9edff;border-color:#e0e5ff}.stat:nth-child(1) strong{color:#4960cd}.stat:nth-child(2){background:#ecf5df;border-color:#e2edd2}.stat:nth-child(2) strong{color:#577d2f}.stat:nth-child(3){background:#fff;border-color:#e0e7f1}.stat:nth-child(1) .stat-label{color:#6d7cbb}.stat:nth-child(2) .stat-label{color:#728c58}.stat-link:hover{background:#fff;border-color:#91a3ed;box-shadow:0 10px 25px #344b8510;transform:translateY(-3px)}.card{border:1px solid #e3e9f2;border-radius:19px;padding:25px;background:#fff;box-shadow:0 3px 14px #17355a03}.cardtitle h2{font-size:22px}.cardtitle .pill{background:#f0f3f9;color:#78859b;border-radius:7px;font-size:10px}.cardtitle .textbutton{font-size:11px}.entry{border-color:#edf0f7;padding:21px 0;gap:12px}.entry .icon{background:#eef1ff;color:#6177c3;border-radius:12px}.entry strong{color:#2c3d58;font-size:13px}.entry small{color:#8491a7;font-size:11px}.entry .badge{border-radius:6px;background:#fff0df;color:#ab7742;font-size:9px}.entry .secondary{color:#5470c0;background:#f7f9ff;border-color:#e1e8fa;border-radius:9px}.task{border-color:#edf0f7}.task label{font-size:13px;color:#42536d}.task .textbutton{color:#5e75ad}.task .delete{color:#ae6d7e}.task.done span{color:#8c9d85}input[type=checkbox]{accent-color:#4266d8}.treatment-status{color:#a37c39;background:#fff6e2;border:1px solid #f3e6c4;border-radius:9px}.treatment-status.completed{background:#edf6e1;color:#698b3c;border-color:#dfeacb}.note,.empty{color:#8290a6}.horse-profile:hover{border-color:#8ea4e7;box-shadow:0 10px 30px #1e396a0b}.horse-photo{border-radius:12px;filter:none;height:220px}.horse-profile h2{font-size:24px;font-weight:700}.horse-edit{background:#f3f6fe;border-color:#e2e9f7;color:#5773b2}.photo-preview{background:#f0f4fb}.pill{background:#edf3ff;color:#6680af}.stable-name:hover{color:#4263cf}label{color:#596a83}input:not([type=checkbox]),select,textarea{background:#fafbfe;border-color:#dce4f0;border-radius:11px;color:#253653;outline-color:#5471dc}dialog{border-radius:22px;background:#fff;border-color:#e3eaf6;color:#3b4b64;padding:28px}dialog::backdrop{background:#0c1d3985;backdrop-filter:blur(7px)}dialog h2{font:700 26px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:-.9px;color:#243650}.actions{background:#fff;box-shadow:none}.toast{background:#1c304e;border:1px solid #ffffff16;color:#e9f1ff;border-radius:12px}.detail-lines{color:#526780}.horse-card-open:focus-visible,a:focus-visible,button:focus-visible{outline-color:#7692f0}.brand-mark{width:32px;height:32px;vertical-align:-7px;margin-right:7px;border-radius:9px}
@media(max-width:1100px){.hero{padding:30px}.hero h2{font-size:32px}.stat{padding:18px}.head>.primary{font-size:12px}}
@media(max-width:760px){body{background:#f2f5fa}aside{background:none;padding:0;border:0}main{padding:20px 18px calc(112px + env(safe-area-inset-bottom))}.top{gap:12px}.top>div small{font-size:8px!important;letter-spacing:1.5px!important}.stable-name{font-size:19px;letter-spacing:-.6px}.top .pill{background:#fff;border:1px solid #e0e7f1;font-size:9px;border-radius:9px;max-width:110px;color:#7687a0}.head{margin-top:26px;margin-bottom:20px}.head .eyebrow{font-size:8px;letter-spacing:1.7px;color:#8a98ad}h1{font-size:34px;letter-spacing:-1.6px;line-height:1.07;margin:12px 0}.head p{font-size:12px;line-height:1.7;color:#8090a8}.head>.primary{border-radius:11px;min-height:49px;font-size:13px;background:#3558e3;margin-top:19px;box-shadow:0 6px 16px #3558e31a}.hero{padding:24px 21px;border-radius:19px;min-height:0;margin-bottom:20px;gap:0}.hero h2{font-size:28px;line-height:1.06;letter-spacing:-1.3px;margin:15px 0 12px;max-width:245px}.hero p{font-size:11px;line-height:1.8;max-width:220px;color:#acbeda}.hero .eyebrow{font-size:7px;letter-spacing:1px;padding:5px 7px}.hero .horse{font-size:78px;align-self:center;padding:0;margin-left:-4px;margin-top:10px;color:#c5f86f;transform:rotate(-7deg)}.hero::before{right:-90px;top:-40px;width:270px;height:270px}.hero::after{right:-28px;top:37px;width:120px;height:120px;box-shadow:0 0 0 20px #b7cbef08,0 0 0 40px #b7cbef05}.hero .secondary{font-size:10px;min-height:44px;padding:11px 12px;border-radius:8px;background:#c5f86f;color:#233d22}.stats{gap:8px;margin:20px 0 23px}.stat{padding:14px 10px;border-radius:13px;min-width:0}.stat-label{font-size:10px;min-height:45px;line-height:1.5}.stat strong{font-size:31px;letter-spacing:-1px;margin:10px 0 9px}.stat small{font-size:8px;line-height:1.6}.grid{gap:18px}.card{padding:22px 18px;border-radius:17px}.card h2,.cardtitle h2{font:700 20px/1.2 'DM Sans',system-ui,sans-serif;letter-spacing:-.6px}.cardtitle .textbutton{font-size:10px;color:#637fc3}.entry .icon{width:32px;height:35px;border-radius:9px}.entry strong{font-size:12px}.entry small{font-size:11px}.entry .badge{font-size:9px;background:#fff1e1;color:#b08451;max-width:67px}.entry .secondary{font-size:11px!important;border-radius:8px}.task label{font-size:12px}.task .textbutton,.task .delete{font-size:10px}.pill{font-size:9px}.horse-photo{height:230px}.horse-profile h2{font-size:26px;letter-spacing:-.8px}.horse-edit{font-size:12px;min-height:48px}.photo-actions button{font-size:12px}nav{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));background:#152640f5;backdrop-filter:blur(18px);border:1px solid #ffffff12;padding:7px;gap:4px;border-radius:19px;box-shadow:0 9px 25px #182e4b25}nav button{color:#8fa3c2;border:0;margin:0;min-height:54px;border-radius:12px;padding:7px 1px;gap:5px}nav button.active{background:#c5f86f;color:#243e25;box-shadow:none}.nav-icon{font-size:23px}nav button:hover{background:#253d5c;color:#fff}.nav-text{font-size:10px;font-weight:600}dialog{border-radius:22px;padding:25px 20px}dialog h2{font-size:25px;letter-spacing:-.9px}.actions{bottom:-25px;background:#fff;box-shadow:0 -8px 10px #fff}.actions .primary{background:#3558e3;border-radius:10px}.toast{bottom:calc(104px + env(safe-area-inset-bottom));background:#213855;color:#f4f7ff}main>button.textbutton{background:#fff;border-color:#dde5f2;color:#617bac;border-radius:10px;font-size:11px}.note{font-size:11px;line-height:1.8;color:#8a98ac}}
@media(max-width:360px){.hero h2{font-size:25px}.hero .horse{font-size:61px}.hero{padding:22px 18px}.hero .eyebrow{font-size:6px}h1{font-size:30px}.stat{padding:12px 8px}.stat-label{font-size:9px}.stable-name{font-size:17px}}
.header-tools{display:flex;align-items:center;gap:14px;flex-shrink:0}.language-picker{display:flex;gap:3px;padding:4px;background:#e8edf6;border:1px solid #dbe3ef;border-radius:12px}.language-picker button{display:flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;border-radius:8px;min-height:40px;min-width:55px;padding:8px;color:#71829e;font-size:10px;font-weight:700}.language-picker button[aria-pressed=true]{background:#fff;color:#2949b2;box-shadow:0 2px 7px #182b4310}.language-picker img{border-radius:3px;box-shadow:0 0 0 1px #0000000b;object-fit:cover}.language-picker button:focus-visible{outline:2px solid #5471dc;outline-offset:2px}@media(max-width:760px){.header-tools{gap:6px;flex-direction:column;align-items:flex-end}.header-tools .pill{font-size:8px;padding:4px 7px;max-width:none;border:0;background:none}.language-picker{gap:2px;padding:3px;border-radius:10px}.language-picker button{min-height:40px;min-width:45px;padding:7px 6px;gap:4px;font-size:9px}.language-picker img{width:20px;height:14px}.top>div:first-child{flex:1;min-width:0}.stable-name{font-size:18px}}
.backup-indicator{display:inline-block;font-size:10px;border-radius:7px;background:#e8edf5;color:#6e7d94;padding:6px 9px;margin:0 8px}.backup-active{color:#537631!important;background:#edf5df;border-radius:5px;padding:3px 6px}.backup-warning{background:#f4f6fb;color:#63738d;border:1px solid #e3e9f3;border-radius:10px;padding:12px;font-size:12px;line-height:1.7}.backup-folder{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e1e8f2;padding:12px;border-radius:11px;font-size:13px}.backup-folder span{min-width:0;overflow-wrap:anywhere}.backup-folder button{flex-shrink:0;font-size:12px}.backup-summary{border:1px solid #e3e9f3;border-radius:12px;padding:12px 16px;margin-top:18px;background:#fafbfe;font-size:12px}.backup-summary p{margin:8px 0;overflow-wrap:anywhere}.backup-controls{display:flex;gap:8px;flex-wrap:wrap}.backup-controls button{flex:1;font-size:11px}button:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}.backup-indicator+button{margin-left:0}@media(max-width:760px){.backup-indicator{display:block;width:fit-content;margin:8px 0}.backup-controls button{flex-basis:100%}.backup-folder{flex-wrap:wrap}.backup-folder button{width:100%}}
