*{box-sizing:border-box}body{margin:0;font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f4f6f8;color:#1f2933;padding-bottom:70px}
header{position:sticky;top:0;z-index:5;background:#0f766e;color:#fff;padding:12px 16px;display:flex;gap:10px;align-items:center}
.brand{color:#fff;font-weight:700;text-decoration:none;font-size:18px}#hdr{opacity:.9;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
main{padding:12px;max-width:760px;margin:auto}
.card{background:#fff;border-radius:12px;padding:12px;margin:0 0 10px;box-shadow:0 1px 2px #0001}
h1{font-size:20px;margin:6px 0 10px}h2{font-size:16px;margin:4px 0 8px}
input,select,textarea{width:100%;font:inherit;padding:9px;border:1px solid #cbd2d9;border-radius:8px;margin:3px 0 8px;background:#fff}
textarea{min-height:80px}label{font-size:13px;color:#52606d}
button,.btn{font:inherit;border:0;border-radius:8px;padding:9px 12px;background:#0f766e;color:#fff;cursor:pointer;text-decoration:none;display:inline-block;margin:2px 0}
button.s,.btn.s{background:#e4e7eb;color:#1f2933}button.d{background:#b91c1c}button.sm{padding:5px 9px;font-size:14px}
.row{display:flex;gap:8px;align-items:center}.row>*{flex:1}.grow{flex:1}.nf{flex:0 0 auto}
.list a.item{display:flex;justify-content:space-between;gap:8px;color:inherit;text-decoration:none;padding:10px 4px;border-bottom:1px solid #eef}
.muted{color:#7b8794;font-size:13px}.pill{font-size:12px;padding:2px 8px;border-radius:99px;background:#e4e7eb;white-space:nowrap}
.pill.visited{background:#d1fae5;color:#065f46}.pill.skip{background:#fde2e2;color:#9b1c1c}.pill.tovisit{background:#fef3c7;color:#92400e}
.demo{background:#fff7d6;border:1px dashed #d4a017;padding:8px;border-radius:8px;font-size:14px;margin-bottom:10px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat{background:#fff;border-radius:12px;padding:12px;text-align:center}.stat b{display:block;font-size:22px;color:#0f766e}
.bar{height:12px;background:#e4e7eb;border-radius:99px;overflow:hidden}.bar i{display:block;height:100%;background:#0f766e}
.next{outline:3px solid #f59e0b}.stars button{background:none;color:#d4a017;font-size:26px;padding:0 3px}
nav#tabs{position:fixed;bottom:0;left:0;right:0;display:flex;background:#fff;border-top:1px solid #ddd;padding-bottom:env(safe-area-inset-bottom)}
nav#tabs a{flex:1;text-align:center;padding:10px 0;color:#52606d;text-decoration:none;font-size:13px}nav#tabs a.on{color:#0f766e;font-weight:700}
.photos{display:flex;flex-wrap:wrap;gap:6px}.photos img{width:90px;height:90px;object-fit:cover;border-radius:8px}
table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:4px;border-bottom:1px solid #eee;text-align:left}
#toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#1f2933;color:#fff;padding:8px 14px;border-radius:8px;display:none}
.seg{display:flex;gap:4px}.seg button{flex:1}.seg button.on{outline:3px solid #f59e0b}
@media print{header,nav,.noprint{display:none!important}body{background:#fff;padding:0}.card{box-shadow:none;border:1px solid #ccc}}
