/* OpLoop 어필리에이트 대시보드.
   본채(oploop.app)의 문서 CSS와 같은 결 — Work Sans, 절제된 브루탈리즘 한 방울
   (검정 테두리·납작 그림자·#FCCB05 액센트). 의존성 없음. */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #111111;
  --muted: #5A5A5A;
  --rule: #111111;
  --accent: #FCCB05;
  --error: #BA1A1A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Work Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 640px; margin: 0 auto; padding: 0 20px; width: 100%; }

.site-head { border-bottom: 2px solid var(--rule); background: var(--surface); }
.site-head .container { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 26px; height: 26px; }
.head-tag {
  font-family: "Space Mono", monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--rule); color: #fff; padding: 2px 8px;
  transform: skew(-10deg);
}
#logout { margin-left: auto; }

main { flex: 1; padding: 32px 0 48px; }

.card {
  background: var(--surface);
  border: 2px solid var(--rule);
  box-shadow: 4px 4px 0 var(--rule);
  padding: 24px;
  margin-bottom: 24px;
}

h1 { font-size: 22px; margin-bottom: 6px; }
h2 { font-size: 16px; margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input[type="email"], input[type="text"], input[inputmode="numeric"] {
  width: 100%;
  border: 2px solid var(--rule);
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 14px;
  background: var(--surface);
}
input:focus { outline: 3px solid var(--accent); outline-offset: 0; }

button {
  font: inherit; font-weight: 700;
  background: var(--accent);
  border: 2px solid var(--rule);
  box-shadow: 3px 3px 0 var(--rule);
  padding: 10px 18px;
  cursor: pointer;
}
button:active { transform: translate(3px, 3px); box-shadow: none; }
button.ghost { background: transparent; box-shadow: none; padding: 6px 12px; font-weight: 600; }
button.ghost:active { transform: none; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 16px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rule); }
.check a { color: var(--text); }

.linkrow { display: flex; gap: 10px; align-items: stretch; }
.linkrow code {
  flex: 1;
  font-family: "Space Mono", monospace; font-size: 14px;
  border: 2px solid var(--rule); background: var(--bg);
  padding: 10px 12px;
  overflow-x: auto; white-space: nowrap;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.stat { border: 2px solid var(--rule); padding: 12px; text-align: center; }
.stat .num { display: block; font-family: "Space Mono", monospace; font-size: 24px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: var(--muted); }

.msg { padding: 12px 0; font-size: 14px; }
.msg.error { color: var(--error); font-weight: 600; }

.site-foot { border-top: 2px solid var(--rule); padding: 16px 0; background: var(--surface); }
.site-foot .container { display: flex; gap: 18px; font-size: 13px; }
.site-foot a { color: var(--muted); }

.hidden { display: none !important; }
