:root {
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #191F28;
  --sub: #6B7684;
  --line: #E5E8EB;
  --field: #F2F4F6;
  --accent: #7048E8;
  --accent-soft: #F1EDFD;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 32px 20px 60px; }
.top h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.tag { color: var(--sub); margin: 4px 0 24px; font-size: .92rem; }
.noscript {
  background: #FFF3F0; border: 1px solid #FFB4A4; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 20px; color: #C4320A; font-weight: 600;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(25, 31, 40, .04);
}
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
input, select {
  width: 100%; background: var(--field); border: 1.5px solid transparent; border-radius: 12px;
  color: var(--text); font: inherit; padding: 12px 14px; min-height: 48px;
}
input:focus, select:focus { outline: none; background: #fff; border-color: var(--accent); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; gap: 6px; margin-bottom: 14px; }
.chip {
  flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--sub); font: inherit; font-weight: 600; cursor: pointer;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.conv { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 8px; align-items: start; }
.side { display: grid; gap: 8px; }
.swap {
  width: 40px; height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--sub); font-size: 1.1rem; cursor: pointer;
}
.swap:hover { color: var(--accent); border-color: var(--accent); }
.out {
  background: var(--accent-soft); border-radius: 12px; min-height: 48px;
  display: flex; align-items: center; padding: 12px 14px;
  font-weight: 800; color: var(--accent); word-break: break-all;
}
.eq { margin-top: 12px; color: var(--sub); font-size: .85rem; text-align: center; }

.note { color: var(--sub); font-size: .8rem; margin-top: 4px; }
.foot { margin-top: 40px; text-align: center; color: var(--sub); font-size: .8rem; }
.foot a { color: var(--sub); }
