:root{color-scheme:light;--bg:#f4f5f0;--panel:#fffefb;--ink:#203c35;--muted:#77817a;--line:#e4e8df;--green:#224e42;--soft:#eaf0e5;--gold:#dfb566;--shadow:0 12px 36px #173e3606}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body.dark{color-scheme:dark;--bg:#111e1b;--panel:#1b2b26;--ink:#ecf0e6;--muted:#a4b4a9;--line:#34473e;--green:#b9d7b5;--soft:#293e31;--gold:#dfb566;--shadow:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:10px 16px;background:var(--panel);color:var(--ink)}button:hover{border-color:var(--green)}button.primary{background:var(--green);color:var(--panel);border-color:var(--green);font-weight:650}button.danger{color:#b45447}a{color:var(--green)}button:disabled{opacity:.5;cursor:wait}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:11px 12px}textarea{min-height:95px;resize:vertical}label{display:block;font-size:13px;font-weight:600;margin:14px 0 5px}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-size:36px;font-weight:500;letter-spacing:-1px;line-height:1.2}h2{font-size:18px;font-weight:650}h3{font-size:16px}p{color:var(--muted)}small,.muted{color:var(--muted)}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{padding:32px 20px;background:var(--panel);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;width:230px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-family:Georgia,serif;font-size:23px;line-height:1.15}.brand img{width:43px}.brand small{font:10px sans-serif;letter-spacing:2px;text-transform:uppercase}.sidepet{display:flex;gap:12px;align-items:center;padding:26px 10px}.avatar{width:46px;height:46px;object-fit:cover;object-position:45% 40%;border-radius:50%}.nav{display:flex;flex-direction:column;gap:5px}.nav button{border:0;text-align:left;background:transparent;color:var(--muted);padding:12px 15px;display:flex;gap:12px;align-items:center}.nav button.active{background:var(--soft);color:var(--ink);font-weight:650}.nav .symbol{width:19px;font-size:19px}.sidefoot{margin-top:auto;padding-top:25px;font-size:12px}.sidefoot button{padding:7px 10px;font-size:12px}.main{grid-column:2;padding:28px 44px 50px;max-width:1500px;width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;font-size:12px;color:var(--muted)}.topbar .actions{display:flex;align-items:center;gap:10px}.topbar button{padding:7px 11px}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 25px}.eyebrow{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:2px;color:var(--muted);margin-bottom:9px}.heading h1{margin-bottom:7px}.heading p{margin:0}.hero{border-radius:18px;background:#213f35;color:#fff7e8;display:grid;grid-template-columns:1.4fr 1fr;overflow:hidden;min-height:260px;margin-bottom:24px}.herotext{padding:35px 38px;display:flex;flex-direction:column;justify-content:center}.herotext h2{font:36px/1.12 Georgia,serif;max-width:350px;font-weight:400;margin-bottom:14px}.herotext p{color:#ccd7c8;max-width:360px;font-size:14px}.hero img{width:100%;height:290px;object-fit:cover;object-position:45% 42%;mask-image:linear-gradient(to right,transparent,black 18%)}.pill{display:inline-block;padding:4px 10px;background:var(--soft);border-radius:20px;color:var(--ink);font-size:11px;font-weight:600;margin:3px 4px 0 0}.hero .pill{background:#ffffff19;color:#edeedc;width:max-content}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{padding:21px;background:var(--panel);border:1px solid var(--line);border-radius:13px}.stat small{font-size:12px}.stat b{display:block;font:29px Georgia,serif;margin:6px 0}.stat span{font-size:11px;color:var(--muted)}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:var(--shadow);margin-bottom:22px;min-width:0}.cardhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.cardhead h2{margin:0}.textbtn{background:none;border:0;padding:0;font-size:12px;color:var(--green)}.empty{padding:32px 15px;text-align:center;border:1px dashed var(--line);border-radius:10px}.empty .emptyicon{font-size:28px;color:var(--muted);margin-bottom:8px}.empty p{margin:5px 0 16px;font-size:13px}.chart{width:100%;height:220px;overflow:visible}.chart text{fill:var(--muted);font-size:10px}.chart line{stroke:var(--line)}.chart polyline{stroke:var(--green);fill:none;stroke-width:3}.chart circle{fill:var(--green);stroke:var(--panel);stroke-width:2}.record{padding:16px 0;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:15px}.record:last-child{border:0}.record .content{flex:1;min-width:0}.record h3{margin:0 0 5px}.record p{margin:5px 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.record .mini{font-size:11px;padding:4px 8px}.datebox{background:var(--soft);border-radius:9px;padding:8px;min-width:48px;text-align:center;font-size:10px;line-height:1.3}.datebox b{font-size:20px;display:block}.toolbar{display:flex;gap:12px;margin-bottom:20px}.toolbar input{max-width:400px}.photogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.photocard{border:1px solid var(--line);border-radius:12px;overflow:hidden}.photocard img{width:100%;height:210px;object-fit:cover}.photocard div{padding:12px}.photocard p{font-size:12px;margin:0}.formrow{display:grid;grid-template-columns:1fr 1fr;gap:15px}.formactions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.notice{background:var(--soft);padding:14px 16px;border-radius:10px;font-size:13px;margin-bottom:18px}.error{color:#bd584b;font-size:13px;margin-top:12px;white-space:pre-wrap}.authwrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.authphoto{background:linear-gradient(0deg,#152d26a0,#152d2600),url('/static/jake.jpg') 45% 40%/cover;display:flex;align-items:end;padding:55px;color:white}.authphoto h1{font-size:46px;max-width:380px}.authform{display:flex;align-items:center;justify-content:center;padding:35px}.authinner{max-width:390px;width:100%}.authinner .brand{margin-bottom:45px}.authinner button.primary{width:100%;margin-top:22px}.authinner h1{font-size:30px}dialog{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:18px;padding:28px;width:560px;max-width:calc(100% - 24px);max-height:90vh;overflow:auto}dialog::backdrop{background:#081b167d;backdrop-filter:blur(3px)}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--panel);padding:12px 22px;border-radius:12px;z-index:100;display:none;max-width:90vw}.answer{white-space:pre-wrap;padding:20px;background:var(--soft);border-radius:10px;margin-top:20px}.full{grid-column:1/-1}code{overflow-wrap:anywhere;user-select:all}pre{white-space:pre-wrap}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}@media(min-width:1600px){.main{margin:auto}}@media(max-width:1100px){.main{padding:25px}.sidebar{width:200px;padding:25px 14px}.shell{grid-template-columns:200px 1fr}.stats{gap:10px}.stat{padding:16px}.grid{grid-template-columns:1fr}.hero{grid-template-columns:1.2fr 1fr}.herotext{padding:25px}.photogrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;width:auto;border:0;padding:18px 18px 0}.brand{font-size:20px}.brand img{width:36px}.sidepet,.sidefoot{display:none}.nav{flex-direction:row;overflow:auto;margin-top:20px;padding-bottom:10px;gap:4px}.nav button{white-space:nowrap;padding:9px 12px;font-size:12px}.nav .symbol{display:none}.main{padding:20px 17px}.topbar{margin-bottom:22px}.heading h1{font-size:29px}.heading{align-items:flex-start}.heading p{font-size:12px}.heading button{font-size:12px;padding:9px 11px}.hero{min-height:220px;grid-template-columns:1.2fr 1fr}.hero img{height:235px}.herotext{padding:22px 0 22px 22px}.herotext h2{font-size:27px}.herotext p{font-size:12px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat b{font-size:27px}.card{padding:20px}.authwrap{display:block}.authphoto{height:210px;padding:25px;background-position:45% 38%}.authphoto h1{font-size:30px;max-width:230px}.authform{padding:28px}.authinner .brand{margin-bottom:25px}.photogrid{grid-template-columns:1fr 1fr}.photocard img{height:150px}.formrow{grid-template-columns:1fr;gap:0}.toolbar{flex-wrap:wrap}.record{gap:10px}.record .mini{padding:6px}.topbar .today{display:none}}
@media(max-width:720px){.chart text{font-size:15px}.heading>button{flex-shrink:0;max-width:105px}.herotext h2{font-size:25px}.hero .eyebrow{font-size:9px;letter-spacing:1.5px}}
.sidebar{overflow-y:auto}.sidebar .brand{font-size:20px}.brand img{flex-shrink:0}.brand small{font-size:8px;letter-spacing:1.5px;white-space:nowrap}.sidebar .nav{flex-shrink:0}.sidefoot{flex-shrink:0}
.connectiontest{margin-top:16px}.connectiontest p{font-size:13px;margin:10px 0;overflow-wrap:anywhere}.connection-success{color:var(--green)}
#petselect{width:auto;max-width:160px;padding:7px 10px}.wide{width:900px}.importitem{border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0}.importitem summary{display:flex;gap:12px;cursor:pointer;font-weight:600}.importitem input[type=checkbox],#confirm-pet{width:auto;margin-right:8px}.evidence{font-size:12px;background:var(--soft);border-radius:8px;padding:12px;max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.importitem textarea{min-height:65px}.topbar .actions{flex-wrap:wrap}.full{min-width:0}
.record h3{overflow-wrap:anywhere}.importitem>details{margin:12px 0;font-size:12px}
