/* 십성 입력칸(.wg-cell·.wg-input·.wg-info·.wg-mark)·십성 패드(.wg-pad) 공용 스타일 — /study/wonguk(실전 1)와 /study/wonguk3(실전 3).
   실전 1 페이지 인라인 스타일에서 값 그대로 옮겨왔다. 동작은 /study-tengod-pad.js. */

.wg-board table.pillars td.tg-input-cell { padding: 3px 2px; vertical-align: top; }
.wg-cell { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.wg-input { width: 100%; min-width: 0; height: 32px; text-align: center; font-size: 13px; font-weight: 700; border: 1.5px solid #bbb; border-radius: 6px; background: #fff; color: #111; padding: 0 1px; caret-color: var(--study-accent); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; font-family: inherit; }
.wg-input::placeholder { color: #bbb; font-weight: 400; }
.wg-input:focus { outline: none; border-color: var(--study-accent); box-shadow: 0 0 0 2px rgba(31, 42, 68, 0.2); }
.wg-fixed { height: 32px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #888; }
.wg-info { position: absolute; top: -6px; right: -4px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #bbb; background: #fff; color: #888; font-size: 10px; line-height: 15px; text-align: center; padding: 0; cursor: pointer; }
.wg-cell.st-correct .wg-input { background: var(--study-correct-bg); border-color: var(--study-correct-text); color: var(--study-correct-text); }
.wg-cell.st-wrong .wg-input { background: var(--study-wrong-bg); border-color: var(--study-wrong-text); color: var(--study-wrong-text); }
.wg-cell.st-empty .wg-input { background: #ececec; border-color: #bbb; }
.wg-cell.st-hint .wg-input { border-style: dotted; }
.wg-cell.st-revealed .wg-input { border-style: dashed; }
.wg-mark { font-size: 10px; text-align: center; color: #888; line-height: 1.25; }
.wg-mark:empty { display: none; }
.wg-cell.st-wrong .wg-mark { color: var(--study-wrong-text); font-weight: 700; }
.wg-cell.st-correct .wg-mark { color: var(--study-correct-text); }

.wg-pad { border: 1px solid var(--study-border); border-radius: 10px; padding: 8px; margin-bottom: 10px; background: var(--study-card-bg); }
.wg-pad[hidden] { display: none; }
.wg-pad-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--study-muted); margin-bottom: 6px; gap: 6px; }
.wg-pad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wg-pad-btn { padding: 9px 4px; border: 1px solid var(--study-border); border-radius: 8px; background: var(--study-card-bg); color: var(--study-text); font-size: 14px; cursor: pointer; }
.wg-pad-btn.is-cand { border: 2px solid var(--study-accent); font-weight: 700; }
.wg-pad-btn.is-dim { opacity: 0.35; }
.wg-pad-small { background: none; border: 1px solid var(--study-border); border-radius: 6px; color: var(--study-muted); font-size: 11.5px; padding: 3px 7px; cursor: pointer; }

/* 흑백: 색 대신 테두리 굵기·기호로 채점 결과 구분 */
:root[data-theme="mono"] .wg-cell.st-correct .wg-input { border: 2px solid #000; }
:root[data-theme="mono"] .wg-cell.st-wrong .wg-input { border: 3px double #000; }
:root[data-theme="mono"] .wg-cell.st-empty .wg-input { background: #fff; border: 1.5px dashed #000; }

@media (max-width: 380px) {
  .wg-input { font-size: 12px; height: 30px; }
}
