/* PetCheck — real build. Professional, RE-like. Green #15803d, system sans. */
:root { --green:#15803d; --green-dark:#166534; --green-tint:#dcfce7; --ink:#0f172a; --muted:#64748b; --line:#e2e8f0; --bg:#f8fafc; --card:#fff; --red:#b91c1c; --red-tint:#fef2f2; --amber:#b45309; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:var(--bg); color:var(--ink); line-height:1.45; }
.wrap { max-width:560px; margin:0 auto; padding:16px 16px 48px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; margin-top:16px; }
h1 { font-size:1.4rem; margin:0; } h2 { font-size:1.1rem; margin:0 0 8px; }
p { margin:8px 0; } .muted { color:var(--muted); font-size:.9rem; }
.topbar { display:flex; align-items:center; gap:10px; }
.logo { width:40px; height:40px; border-radius:50%; background:var(--green); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.logo svg { width:24px; height:24px; }
.logo.large { width:72px; height:72px; } .logo.large svg { width:44px; height:44px; }
.badge { margin-left:auto; font-size:.75rem; font-weight:700; letter-spacing:.04em; padding:4px 8px; border-radius:999px; border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
.badge.green { background:var(--green-tint); border-color:#bbf7d0; color:var(--green-dark); }
.badge.red { background:var(--red-tint); border-color:#fecaca; color:var(--red); }
.badge.amber { background:#fef3c7; border-color:#fde68a; color:var(--amber); }
.status { background:var(--green-tint); border:1px solid #bbf7d0; border-radius:10px; padding:12px 14px; margin-top:16px; }
.status.paused { background:#fef3c7; border-color:#fde68a; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
button.act, button.primary, button.secondary { min-height:4.25rem; font-size:1rem; font-weight:600; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; padding:10px; }
button.act { background:var(--green); border-color:var(--green); color:#fff; }
button.act:hover { background:var(--green-dark); }
button.primary { background:var(--green); border-color:var(--green); color:#fff; min-height:3rem; width:100%; }
button.secondary { min-height:3rem; width:100%; }
button:disabled { opacity:.55; cursor:not-allowed; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.chip { min-height:2.25rem; padding:6px 14px; border-radius:999px; border:1px solid var(--line); background:#fff; cursor:pointer; font-size:.95rem; }
.chip.on { background:var(--green); border-color:var(--green); color:#fff; }
.petcard { display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; margin-top:10px; cursor:pointer; font-size:1rem; }
.petcard:hover { border-color:var(--green); }
.petcard .avatar { width:40px; height:40px; border-radius:50%; background:var(--green-tint); color:var(--green-dark); display:flex; align-items:center; justify-content:center; font-weight:700; flex:none; }
.petcard small { color:var(--muted); display:block; }
.log { list-style:none; margin:12px 0 0; padding:0; }
.log li { display:flex; gap:8px; align-items:baseline; padding:8px 0; border-top:1px solid var(--line); font-size:.95rem; }
.log li .dot { width:8px; height:8px; border-radius:50%; background:var(--green); flex:none; transform:translateY(-1px); }
.log time { color:var(--muted); font-size:.85rem; margin-left:auto; white-space:nowrap; }
.log button { background:none; border:none; color:var(--red); cursor:pointer; font-size:.85rem; padding:0; }
.backlink { background:none; border:none; color:var(--green); cursor:pointer; font-size:.95rem; padding:0; margin-top:12px; }
footer { margin-top:24px; text-align:center; color:var(--muted); font-size:.85rem; }
footer a { color:var(--muted); }
input[type=text], textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; font:inherit; margin-top:6px; }
.modal { position:fixed; inset:0; background:rgba(15,23,42,.55); display:flex; align-items:flex-end; justify-content:center; z-index:10; }
.modal .sheet { background:#fff; max-width:560px; width:100%; max-height:85vh; overflow:auto; border-radius:16px 16px 0 0; padding:20px; }
.modal h2 { margin-top:0; }
.expired { text-align:center; }
.expired .padlock { width:64px; height:64px; border-radius:50%; background:var(--red-tint); color:var(--red); display:flex; align-items:center; justify-content:center; margin:12px auto; font-size:1.6rem; }
.upgrade { border:1px solid var(--line); border-radius:12px; padding:16px; margin-top:16px; text-align:center; }
.demo { background:#fef3c7; border:1px solid #fde68a; border-radius:10px; padding:10px 12px; margin-top:16px; font-size:.9rem; }
.hidden { display:none !important; }
