/* 피시방.kr 토큰 — 홈페이지 index.html :root 와 같은 값. 호박색·연한 민트·회색 바탕만 새로 더했다. */
:root {
  --paper: #FBF7F0;
  --paper-2: #FFFDF9;
  --ink: #1B1A1F;
  --ink-deep: #0E0D11;
  --muted: #665F6B;
  --line: rgba(27, 26, 31, 0.16);
  --coral: #FF4D5E;
  --accent: #C9202F;      /* 글자·위험 표시용 진한 코랄(밝은 바탕 대비 5:1 이상) */
  --accent-deep: #A51726;
  --teal: #0B6B58;
  --teal-deep: #08503F;
  --amber: #F2B33D;       /* 확인 필요·TEST 띠 — 먹색 글자 9.3:1 */
  --done-bg: #E4F2ED;     /* 발행완료 칩 — 민트 글자 5.6:1 */
  --grey-bg: #ECE7DF;
  --kr: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--kr); font-size: 15px; line-height: 1.5;
  word-break: keep-all; overflow-wrap: break-word; }  /* 한글은 낱말 단위로 줄을 바꾼다(「주세/요」 방지) */
a { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 버튼 — 2px 먹선 + 딱 떨어지는 그림자(홈페이지 버튼 체계). 주 버튼은 먹색, 코랄은 위험 표시에만 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; font: inherit; font-weight: 700; line-height: 1.25;
  color: var(--ink); background: var(--paper-2); border: 2px solid var(--ink); border-radius: 0;
  box-shadow: 2px 2px 0 var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn.pri { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--ink-deep); }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; border-width: 1.5px; box-shadow: none; }
.btn.ghost { box-shadow: none; }
.btn.danger { color: var(--accent-deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
@media (hover: hover) {
  .btn:not(:disabled):not(.sm):not(.ghost):hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
  .btn.pri:not(:disabled):hover { box-shadow: 5px 5px 0 var(--ink-deep); }
  .btn.sm:not(:disabled):hover, .btn.ghost:not(:disabled):hover { background: var(--grey-bg); }
}
.btn:not(:disabled):active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }  /* hover 블록 뒤에 둔다 */
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* 입력 칸 — --line 테두리는 대비가 모자라 먹선을 쓴다 */
.in {
  width: 100%; min-height: 40px; padding: 8px 10px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--ink); border-radius: 0;
}
.in:focus { outline: 2px solid var(--teal); outline-offset: 1px; }  /* 초점은 민트 — 코랄(오류 칸)과 구분 */
.in.bad { border-color: var(--accent); background: #FFF6F6; }
select.in { padding-right: 6px; }
label.f { display: block; font-weight: 700; margin: 0 0 4px; }
.err { color: var(--accent-deep); font-size: 14px; margin: 4px 0 0; }

/* 상태 칩: 꽉 찬 바탕 = 문제, 테두리 = 내가 할 일, 연한 색 = 기다리는 중이거나 끝남. 글자로도 늘 구분한다 */
.chip { display: inline-block; padding: 1px 8px; font-size: 13px; font-weight: 700; border: 1.5px solid transparent; white-space: nowrap; }
.chip.link { color: var(--muted); border: 1.5px dashed var(--muted); }
.chip.review, .chip.ready { border-color: var(--ink); }
.chip.sending, .chip.issuing { background: var(--grey-bg); }
.chip.done { background: var(--done-bg); color: var(--teal-deep); }
.chip.failed { background: var(--accent); color: #fff; }
.chip.check { background: var(--amber); color: var(--ink); }
.chip.canceled, .chip.external { color: var(--muted); }
.chip.test { background: var(--amber); color: var(--ink); }
.chip.live { background: var(--accent); color: #fff; }

/* 띠 */
.band { padding: 8px 16px; font-weight: 700; font-size: 14px; }
.band.test, .band.warn { background: var(--amber); color: var(--ink); }
.band.live, .band.err { background: var(--accent); color: #fff; }

/* 카드·창·알림 */
.card { background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 13, 17, .45); }
.dialog { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 20px; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.dialog h2 { margin: 0 0 12px; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions.end { justify-content: flex-end; }
.note { margin: 10px 0; padding: 10px 12px; font-size: 14px; background: #fff; border: 1.5px solid var(--ink); }
.note.bad { border-color: var(--accent); background: #FFF4F4; }
.note.warn { border-color: #B98200; background: #FFF8E6; }
.note.ok { border-color: var(--teal); background: var(--done-bg); }
.note p { margin: 2px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; font-weight: 700; color: #fff; background: var(--ink); box-shadow: 3px 3px 0 var(--coral); }
