:root {
  --night: #111218;
  --night-soft: #1b1d26;
  --paper: #f4f1e8;
  --ink: #17181d;
  --muted: #8a8c95;
  --line: #353842;
  --lime: #baff29;
  --coral: #ff7048;
  --yellow: #ffd83d;
  --display: "Arial Black", "Pretendard Variable", Pretendard, sans-serif;
  --body: "Pretendard Variable", Pretendard, "Noto Sans KR", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* .account-form의 display:flex가 브라우저 기본 [hidden] 규칙을 이겨서, 숨긴
   폼이 그대로 보였다. 숨김은 어떤 규칙보다 세야 한다. */
[hidden] { display: none !important; }
body {
  min-width: 320px; margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--night); color: var(--paper);
  font-family: var(--body); letter-spacing: 0;
}
a { color: inherit; }

.site-header { border-bottom: 1px solid var(--line); }
.shell { width: min(680px, 100% - 40px); margin: 0 auto; }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 18px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--night); background: var(--yellow); font-size: 9px; transform: rotate(-5deg); }
.header-note { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; }

.account-wrap { flex: 1; width: min(680px, 100% - 40px); margin: 0 auto; padding: 48px 0 64px; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(30px, 6vw, 44px); line-height: 1.05; }
.gate-lead, .account-meta { margin: 0 0 28px; color: #c8cad2; font-size: 14px; line-height: 1.75; }
.gate-lead b { color: var(--lime); }

.gate-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.gate-tabs button {
  padding: 9px 18px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.gate-tabs button.is-on { border-color: var(--lime); background: var(--lime); color: var(--night); }

.account-form { display: flex; flex-direction: column; gap: 16px; }
.account-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; color: #c8cad2; }
.account-form label i { color: var(--muted); font-style: normal; font-weight: 600; }
.account-form small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.account-form input[type="text"], .account-form input[type="password"], .account-form input[type="email"], .account-form input[type="tel"] {
  padding: 12px 13px; border: 1px solid var(--line); background: var(--night-soft);
  color: var(--paper); font: inherit; font-size: 15px;
}
.account-form input:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.account-form button[type="submit"], .account-actions button, .gate-tabs button {
  font-family: var(--body);
}
.account-form button[type="submit"] {
  align-self: flex-start; padding: 12px 24px; border: 0; background: var(--lime);
  color: var(--night); font-size: 14px; font-weight: 800; cursor: pointer;
}
.account-form button[disabled] { opacity: .5; cursor: progress; }
.account-check { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.6; }
.account-check input { margin-top: 3px; }
.account-check a { color: var(--lime); }
.form-note { margin: 0; min-height: 18px; font-size: 12px; color: var(--muted); }
.form-note.is-error { color: var(--coral); }
.form-note.is-ok { color: var(--lime); }

.account-growth { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); background: var(--night-soft); }
.account-growth-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.account-growth-head span { color: var(--muted); font-size: 10px; font-weight: 800; }
.account-growth-head h2 { margin: 5px 0 0; font: 900 20px/1.15 var(--display); }
.account-growth-head > strong { color: var(--yellow); font: 800 13px "IBM Plex Mono", Consolas, monospace; }
.account-growth-head > strong b { font-size: 24px; }
.account-growth-meter { height: 4px; margin: 16px 0 18px; overflow: hidden; background: var(--line); }
.account-growth-meter i { display: block; width: 0; height: 100%; background: var(--lime); transition: width .5s ease; }
.account-growth dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.account-growth dl > div { padding: 10px 11px; border-left: 2px solid var(--coral); background: var(--night); }
.account-growth dl > div:nth-child(2) { border-color: var(--yellow); }
.account-growth dl > div:nth-child(3) { border-color: var(--lime); }
.account-growth dt { color: var(--muted); font-size: 9px; font-weight: 700; }
.account-growth dd { margin: 5px 0 0; font: 750 13px "IBM Plex Mono", Consolas, monospace; }
.account-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.account-badge { padding: 6px 9px; border: 1px solid var(--line); color: #777a84; font-size: 10px; font-weight: 750; }
.account-badge.is-open { border-color: #64782e; color: var(--paper); background: rgb(186 255 41 / .06); }

.account-itty {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  min-height: 106px; margin: 0 0 30px; padding: 18px 20px; overflow: hidden;
  border: 1px solid #555a42; color: var(--paper); background: #171a18; text-decoration: none;
  transition: border-color .18s ease, transform .18s cubic-bezier(.25, 1, .5, 1);
}
.account-itty::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lime); content: ""; }
.account-itty:hover { border-color: var(--lime); transform: translateY(-2px); }
.account-itty:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.account-itty-signal { position: relative; width: 54px; height: 62px; overflow: visible; }
.account-itty-signal .itty-avatar { transform: scale(.5); transform-origin: top left; }
.account-itty-copy { min-width: 0; }
.account-itty-copy small, .account-itty-level small { display: block; color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.account-itty-copy strong { display: block; margin-top: 5px; overflow: hidden; font: 900 16px/1.2 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.account-itty-copy em { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-style: normal; }
.account-itty-level { min-width: 52px; text-align: center; }
.account-itty-level small { color: var(--muted); }
.account-itty-level b { display: block; margin-top: 3px; color: var(--lime); font: 900 26px/1 var(--display); }
.account-itty-arrow { color: var(--lime); font-size: 22px; transition: transform .18s ease; }
.account-itty:hover .account-itty-arrow { transform: translateX(3px); }

/* 프로젝트마다 "기록"의 뜻이 달라서 한 표로 합치지 않고 묶음으로 세운다. */
.account-records { margin-bottom: 30px; }
.account-records h2 { margin: 0 0 6px; font-size: 17px; }
.records-lead { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.record-project { margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--line); background: var(--night-soft); }
.record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.record-head b { font-size: 14px; }
.record-head a { color: var(--lime); font-size: 11px; font-weight: 700; }
.record-identity { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.record-identity div { font-size: 11px; color: var(--muted); }
.record-identity b { display: block; margin-top: 3px; color: var(--paper); font-size: 13px; }
.record-rows { display: flex; flex-direction: column; gap: 9px; }
.record-row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 12px; font-size: 13px; }
.record-row span { color: var(--muted); font-size: 11px; }
.record-row b { font-weight: 800; }
.record-empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.account-panels { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.account-panel { padding: 20px; border: 1px solid var(--line); background: var(--night-soft); }
.account-panel h2 { margin: 0 0 8px; font-size: 15px; }
.account-panel p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-form.inline label { flex: 1 1 160px; }
.account-form.inline > *, .account-growth-head > *, .record-row > * { min-width: 0; }
.account-panel, .gate-lead, .account-meta, .records-lead, .record-empty, .account-itty-copy em { overflow-wrap: anywhere; }
.account-form.inline button[type="submit"] { align-self: auto; padding: 11px 18px; }
.account-form.inline .form-note { flex-basis: 100%; }

.account-actions { display: flex; align-items: center; gap: 16px; }
.account-actions button {
  padding: 11px 20px; border: 1px solid var(--coral); background: transparent;
  color: var(--coral); font-size: 13px; font-weight: 700; cursor: pointer;
}
.ghost-link { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; }

.account-foot {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: center; gap: 14px;
  color: var(--muted); font-size: 11px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .account-growth { padding: 17px; }
  .account-growth dl { gap: 5px; }
  .account-growth dl > div { padding: 9px 7px; }
  .account-form.inline { flex-direction: column; align-items: stretch; }
  .account-form.inline button[type="submit"] { align-self: flex-start; }
  .account-itty { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  .account-itty-level { display: none; }
  .account-itty-copy strong { font-size: 14px; }
  .record-row { grid-template-columns: minmax(0, 1fr) auto; }
  .record-row span:last-child { grid-column: 1 / -1; }
}
