*{box-sizing:border-box}
body{font-family:system-ui,sans-serif;margin:0 auto;max-width:1240px;padding:16px 20px 60px;background:#f5f5f4;color:#222}
h1{margin:0 0 4px} .sub,.muted{color:#666;font-size:14px} h2{margin-top:30px}
nav{margin:10px 0} nav a{margin-right:16px;text-decoration:none;color:#1d4ed8;padding:4px 0} nav a.on{border-bottom:2px solid #1d4ed8;font-weight:600}
.bar{position:sticky;top:0;z-index:5;background:#f5f5f4f2;padding:10px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e5e5e5}
.bar input:not([type=checkbox]){padding:6px 8px;border:1px solid #ccc;border-radius:8px;font-size:14px;margin-left:4px;width:190px}
.bar label{font-size:14px} .grow{flex:1}
button{padding:7px 12px;border-radius:8px;border:1px solid #ccc;background:#fff;cursor:pointer;font-size:14px}
button.primary{background:#1d4ed8;color:#fff;border-color:#1d4ed8} button:hover{filter:brightness(.95)}
.msg{min-height:1.2em;font-size:14px;margin:6px 0} .msg.ok{color:#15803d} .msg.err,.err{color:#b91c1c}
.howto{background:#fff;border-radius:12px;padding:10px 14px;font-size:14px;margin:8px 0 4px;box-shadow:0 1px 3px #0001}
.g{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:16px}
.c{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px #0002;display:flex;flex-direction:column;border:3px solid transparent}
.c.ap{border-color:#22c55e} .c.fav{border-color:#f59e0b}
.c img{width:100%;height:175px;object-fit:cover;display:block;background:#ddd}
.b{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.k{font-size:12px;color:#888;text-transform:uppercase;display:flex;justify-content:space-between;gap:6px}
.bd{background:#eee;color:#777;border-radius:8px;padding:1px 7px;text-transform:none;white-space:nowrap} .bd.ok{background:#dbeafe;color:#1d4ed8}
h3{font-size:16px;margin:0} .s{font-size:13px;color:#555}
.tr{font-size:12px;color:#555;background:#fafaf9;border-radius:6px;padding:5px 7px}
.od{font-size:12.5px;background:#fef3c7;border-radius:6px;padding:5px 7px} .od a{color:#1d4ed8;cursor:pointer}
table.p{width:100%;border-collapse:collapse;font-size:13px} table.p th{font-weight:500;color:#888;text-align:left;font-size:12px}
table.p td{padding:4px 2px;border-top:1px solid #eee;vertical-align:top} small{display:block;color:#888;font-size:11px}
td a{color:#174;text-decoration:none;font-weight:600} .na{color:#bbb}
.vote{display:flex;gap:8px;margin-top:auto;padding-top:6px}
.vote label{flex:1;text-align:center;border:1px solid #ddd;border-radius:8px;padding:7px 4px;cursor:pointer;font-size:14px;user-select:none}
.vote input{display:none} .vote label.on.a{background:#dcfce7;border-color:#22c55e} .vote label.on.f{background:#fef3c7;border-color:#f59e0b}
body.only12 .c[data-12="0"]{display:none}
.box{background:#fff;border-radius:12px;padding:16px 20px;box-shadow:0 1px 4px #0002;font-size:14px}
.res{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;font-size:14px}
.res td,.res th{padding:8px 10px;border-top:1px solid #eee;text-align:left;vertical-align:middle} .res img{width:90px;height:60px;object-fit:cover;border-radius:6px}
.barw{background:#eee;border-radius:4px;height:8px;width:140px} .barw div{background:#22c55e;height:8px;border-radius:4px}
.who{font-size:12px;color:#666}
dialog{max-width:760px;width:94vw;border:none;border-radius:14px;padding:18px 22px;box-shadow:0 10px 40px #0004}
dialog h3{margin-top:14px} dialog .rec{background:#eff6ff;border-radius:8px;padding:8px 12px} dialog li{margin:4px 0}
.fl{border:1px solid #eee;border-radius:8px;padding:8px 10px;margin:6px 0;font-size:14px} .fl a{margin-right:8px}
.tt{border-collapse:collapse;font-size:13px;background:#fff} .tt td,.tt th{padding:6px 8px;border-top:1px solid #eee;text-align:center;white-space:nowrap}
.tt td.ar{text-align:left;white-space:normal;min-width:260px;max-width:380px} .tt td.best{background:#dcfce7;font-weight:600}
.tw{overflow-x:auto;border-radius:12px;box-shadow:0 1px 4px #0002}
body.login{display:flex;align-items:center;justify-content:center;min-height:90vh}
body.login .box{max-width:360px;width:100%} body.login input{width:100%;padding:9px;margin:8px 0;border:1px solid #ccc;border-radius:8px;font-size:15px}
body.login button{width:100%;background:#1d4ed8;color:#fff;border:none;padding:9px}
