:root {
  --ink: #1d2125;
  --muted: #6b7480;
  --line: #dfe3e8;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #2f6f4f;
  --err: #a8322c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: 1.25rem; margin: 16px 0 12px; }
h2 { font-size: 1rem; margin: 0 0 12px; color: var(--muted); font-weight: 600; }
a { color: var(--accent); }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.bar nav { display: flex; align-items: center; gap: 14px; }
.bar nav form { margin: 0; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; margin-bottom: 16px;
}
.narrow { max-width: 380px; margin: 48px auto; }

label { display: block; margin: 12px 0 4px; font-size: 0.85rem; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 9px 10px; font: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button {
  padding: 9px 14px; font: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.button {
  display: inline-block; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; text-decoration: none;
}

.muted { color: var(--muted); font-size: 0.85rem; }
.err { color: var(--err); }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 12px 0; }
.done-all { padding: 24px; text-align: center; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); text-decoration: none; font-size: 0.85rem; color: var(--ink);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
td, th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
td.month { width: 62px; color: var(--muted); white-space: nowrap; }
.wide { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.wide td, .wide th { padding: 10px; }
.wide form { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.docmeta { margin: 0 0 10px; word-break: break-all; }
.ocr {
  white-space: pre-wrap; word-break: break-word;
  background: #fafbfc; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px; max-height: 60vh; overflow: auto;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* 폰에서는 원문을 먼저 보여준다 — 원본을 보고 값을 고치는 순서라서. */
@media (max-width: 760px) {
  .split > section:last-child { order: -1; }
}

/* ── 계정 관리 · 비밀번호 변경 (2026-09-23) ───────────────────────── */
.who { color: var(--muted); font-size: 0.85rem; }
.notice {
  background: #eef4ff; border: 1px solid #c6d8f5; color: #23416e;
  border-radius: 6px; padding: 9px 11px; font-size: 0.88rem; margin: 0 0 14px;
}
.warn {
  background: #fff6e5; border: 1px solid #e8c98a; color: #6b4a06;
  border-radius: 6px; padding: 10px 12px; font-size: 0.9rem; margin: 0 0 16px;
}
.tag {
  display: inline-block; font-size: 0.72rem; padding: 1px 6px; border-radius: 10px;
  background: #fff1d6; border: 1px solid #e8c98a; color: #6b4a06; vertical-align: middle;
}
.rowform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.rowform label { margin: 0 0 4px; }
.rowform input[type="text"] { width: 170px; }
.rowform .checks { display: flex; gap: 12px; align-items: center; }
.rowform .checks label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.rowform .checks input { width: auto; }
table.accounts, table.logins { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
table.accounts td, table.accounts th, table.logins td, table.logins th { padding: 8px 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
tr.off { opacity: 0.55; }
tr.bad td { color: var(--err); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.acts form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; }
.acts form.inline input[type="text"] { width: 140px; padding: 4px 6px; font-size: 0.82rem; }
.acts form.inline label { display: inline-flex; align-items: center; gap: 3px; margin: 0; font-size: 0.78rem; }
.acts form.inline input[type="checkbox"] { width: auto; }
.acts button { font-size: 0.8rem; padding: 4px 9px; }
