*{box-sizing:border-box}body{margin:0;font-family:system-ui,Segoe UI,sans-serif;background:#fff;color:#000;font-size:18px}
header{padding:14px 16px;border-bottom:2px solid #000;display:flex;justify-content:space-between;align-items:center}
header h1{margin:0;font-size:1.4rem}header a{color:#000}
main{max-width:760px;margin:0 auto;padding:12px}
details{border:2px solid #000;border-radius:8px;margin:10px 0}summary{padding:16px;font-size:1.25rem;font-weight:600;cursor:pointer}
.item{display:block;width:100%;text-align:left;padding:16px;font-size:1.1rem;background:#fff;color:#000;border:0;border-top:1px solid #000;cursor:pointer}
.row{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #ccc;flex-wrap:wrap}
.row .nm{flex:1 1 160px;font-weight:600}.row small{display:block;font-weight:400;color:#444;font-size:.8rem}
input[type=number],input[type=text]{font-size:1.2rem;padding:10px;border:2px solid #000;border-radius:6px;width:90px;text-align:center}
input[type=text]{width:auto;flex:1;text-align:left}
button{font-size:1.05rem;padding:10px 14px;border-radius:6px;border:2px solid #000;background:#fff;color:#000;cursor:pointer;min-height:46px;min-width:46px}
.save{background:#1a7f37;color:#fff;border-color:#1a7f37}.flag{background:#d97706;color:#fff;border-color:#d97706}
.del{background:#c62828;color:#fff;border-color:#c62828}.add{background:#1565c0;color:#fff;border-color:#1565c0}
.card{border:2px solid #000;border-radius:8px;padding:12px 16px;margin:10px 0}
.flagged{font-weight:700}.msg{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:#000;color:#fff;padding:10px 18px;border-radius:6px;display:none}
