:root { --bg: #f6f7f9; --card: #fff; --text: #1d2430; --muted: #5b6573; --line: #d9dee5; --accent: #1f5fbf; --err: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --bg: #14171c; --card: #1d2229; --text: #e6e9ee; --muted: #9aa4b2; --line: #333b46; --accent: #6ea2ff; --err: #ff8a80; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
header h1 { font-size: 18px; margin: 0; } header small { color: var(--muted); font-weight: normal; margin-left: 6px; }
nav { display: flex; gap: 14px; align-items: center; } nav a { color: var(--accent); text-decoration: none; }
main, #login { max-width: 980px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 14px; padding: 10px 12px; }
legend { font-weight: 600; padding: 0 6px; }
label { display: block; margin: 6px 0; } .row label { display: inline-block; margin-right: 14px; vertical-align: top; }
input, select, textarea { display: block; width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; }
input[type=radio] { display: inline; width: auto; margin-right: 4px; }
.row input, .row select { max-width: 220px; }
textarea { max-width: 100%; font-family: ui-monospace, Menlo, monospace; }
button { padding: 7px 14px; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; cursor: pointer; margin: 4px 8px 4px 0; }
button[type=button] { background: transparent; color: var(--accent); }
.road { border-top: 1px dashed var(--line); padding-top: 6px; }
.note { color: var(--muted); font-size: 13px; } .err { color: var(--err); }
table { border-collapse: collapse; width: 100%; margin: 8px 0; } th, td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
table.kv th { width: 9em; color: var(--muted); font-weight: normal; }
progress { width: 100%; height: 10px; }
@media (max-width: 600px) { .row label { display: block; margin-right: 0; } .row input, .row select { max-width: 100%; } }
