:root { --bg: #f6f6f3; --ink: #1b2230; --muted: #747b88; --line: #e7e6e1; --accent: #0f766e; --soft: #e5f1ee; --rose: #c2412d; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.6 "Noto Sans JP", -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
#app { max-width: 1100px; margin: 0 auto; padding: 24px 18px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
input, select, textarea { font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--rose); }
.btn:disabled { opacity: .5; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--soft); color: var(--accent); }
.badge.off { background: #fbe9e5; color: var(--rose); }
#toast { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
#toast div { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
#toast div.err { background: var(--rose); }
.login { max-width: 380px; margin: 80px auto; text-align: center; }
@media (max-width: 760px) { table, thead, tbody, tr, td, th { display: block; } thead { display: none; } tr { border-bottom: 1px solid var(--line); padding: 8px 0; } td { border: 0; padding: 4px 0; } }
