:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243026;background:#f6f1e9}
body{margin:0}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;background:#fff;border-bottom:1px solid #eadfce;position:sticky;top:0}
.brand{font-weight:800;color:#2f5133;text-decoration:none;font-size:20px}
nav a{margin-left:16px;color:#375f3c;text-decoration:none;font-weight:600}
.container{max-width:1100px;margin:32px auto;padding:0 18px}
.hero,.card{background:#fff;border:1px solid #eadfce;border-radius:24px;box-shadow:0 12px 30px rgba(60,40,20,.06);padding:28px;margin-bottom:22px}
.hero{background:linear-gradient(135deg,#fff,#e8f4df)}
h1,h2,h3{margin-top:0}
.grid{display:grid;gap:22px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.narrow{max-width:520px;margin-left:auto;margin-right:auto}
label{display:block;margin:14px 0 6px;font-weight:700}
input,textarea,select{width:100%;box-sizing:border-box;border:1px solid #d8cbb8;border-radius:14px;padding:12px;font:inherit;background:#fffdf9}
button,.button{display:inline-block;background:#3d7b45;color:#fff;border:0;border-radius:14px;padding:12px 16px;font-weight:800;text-decoration:none;cursor:pointer}
.secondary{background:#6f7d51}
.small{padding:7px 10px;font-size:13px}
.alert{background:#ffe2df;color:#84251e;border:1px solid #ffc3bc;border-radius:14px;padding:14px;margin-bottom:18px}
.success{background:#e2f6dd;color:#235828;border:1px solid #bbe5b4;border-radius:14px;padding:12px}
.social-login{display:grid;gap:10px;margin:0 0 16px}
.button.social{display:block;text-align:center}
.button.google{background:#1a73e8}
.button.facebook{background:#1877f2}
.pet-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.pet-card{display:flex;flex-direction:column;gap:6px;border:1px solid #eadfce;border-radius:18px;padding:18px;text-decoration:none;color:inherit;background:#fffdf9}
.avatar{font-size:36px}
.item{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #eee2d2}
.item:last-child{border-bottom:0}
.item-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:8px}
.timeline{border-left:4px solid #a3c98f;padding-left:16px;margin:18px 0}
.timeline time{font-weight:800;color:#608052}
.memory-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:12px}
.memory-attachments img,.memory-attachments video{width:100%;max-height:260px;object-fit:cover;border-radius:14px;border:1px solid #eadfce;background:#000}
.memory-reactions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.reaction-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef5e8;color:#35553b;font-size:13px;font-weight:700}
.task.done{opacity:.55;text-decoration:line-through}
code{background:#f4eadc;padding:2px 6px;border-radius:6px}
.job-status{margin-top:16px;padding:16px;border:1px solid #cfe0c4;border-radius:18px;background:#f7fbf3}
.job-status.failed{border-color:#f0b2ad;background:#fff2f0;color:#7f2c22}
.job-status-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px;font-weight:700}
.progress-track{height:10px;border-radius:999px;background:#e5eadf;overflow:hidden}
.progress-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#3d7b45,#68a85f);transition:width .2s ease}
.job-entry{margin-top:18px;padding-top:18px;border-top:1px solid #eadfce}
.job-entry-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px}
.job-log{white-space:pre-wrap;background:#0f1a10;color:#d7f0da;border-radius:16px;padding:14px;overflow:auto;max-height:320px;font-size:13px;line-height:1.5}
.toggle-card{padding-top:0}
.toggle-card summary{list-style:none;cursor:pointer;font-weight:800;font-size:20px;padding:28px 0 8px;display:flex;align-items:center;gap:12px}
.toggle-card summary::before{content:'▸';font-size:30px;line-height:1;font-weight:900;transform:translateY(-1px);transition:transform .2s ease}
.toggle-card[open] summary::before{transform:rotate(90deg) translateX(1px)}
.toggle-card summary::-webkit-details-marker{display:none}
.toggle-card[open] summary{padding-bottom:16px;border-bottom:1px solid #eadfce;margin-bottom:10px}
@media(max-width:760px){
  .grid.two{grid-template-columns:1fr}
  .topbar{align-items:flex-start;gap:12px;flex-direction:column}
  nav a{margin-left:0;margin-right:12px}
}
