:root { --accent: #e74c3c; --bg: #f7f7f8; --ok: #1e9e5a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; background: var(--bg); color: #222; }
header { background: #fff; padding: 14px 16px; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 50; }
.hbar { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hbar h1 { margin: 0; font-size: 19px; flex: 1; }
.hbar a { color: var(--accent); font-size: 13px; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 18px 14px 60px; }
.btn { border: none; border-radius: 6px; padding: 10px 16px; font-size: 14px; cursor: pointer; background: var(--accent); color: #fff; }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn.sub { background: #fff; color: #444; border: 1px solid #bbb; }
.btn.small { padding: 6px 10px; font-size: 12px; }
.panel { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 16px; }
.panel h2 { margin: 0 0 10px; font-size: 17px; }
.note { font-size: 12px; color: #777; }
.err { color: var(--accent); font-size: 13px; margin: 8px 0; white-space: pre-wrap; }
.msg { background: #e8f6ee; color: #146c3d; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.warnbox { background: #fff6e5; border-left: 4px solid #e67e22; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
input[type=text], input[type=email], input[type=search], input[type=tel] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
label.f { display: block; font-size: 13px; font-weight: bold; margin: 12px 0 6px; }
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #eee; }
.rowlist .pri { min-width: 64px; font-weight: bold; font-size: 13px; }
.rowlist .nm { flex: 1; font-size: 14px; word-break: break-all; }
.rowlist .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f0f0f0; color: #666; white-space: nowrap; }
.rowlist .tag.lock { background: #f5e8e8; color: #c0392b; }
.rowlist .tag.win { background: #e8f6ee; color: var(--ok); font-weight: bold; }
.rowlist .ctl button { border: 1px solid #ccc; background: #fff; border-radius: 4px; width: 32px; height: 32px; font-size: 14px; cursor: pointer; margin-left: 2px; }
.rowlist .ctl button:disabled { opacity: .3; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hbar h1 { white-space: nowrap; }
@media (max-width: 480px) { .hbar h1 { flex-basis: 100%; font-size: 16px; } }
