/* Tool-specific reset + styles (cream/ink palette, matching existing site) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #f7f3ea;
  color: #1c1a17;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 1rem;
  line-height: 1.6;
}
.ad { text-align: center; margin: 1rem auto; min-height: 60px; }
.back-link { display: inline-block; font-size: 0.9rem; color: #6f695f; text-decoration: none; margin-bottom: 0.75rem; }
.back-link:hover { color: #1c1a17; }
main { max-width: 640px; margin: 0 auto; padding: 2rem 0; }
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.subtitle { color: #6f695f; font-size: 0.95rem; margin-bottom: 1.5rem; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab {
  flex: 1; padding: 0.6rem; font-size: 0.9rem; font-weight: 500;
  border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #fff;
  font-family: inherit; color: #1c1a17;
}
.tab.active { background: #1c1a17; color: #f7f3ea; border-color: #1c1a17; text-shadow: 0 0 1px rgba(247,243,234,0.4); }
.field { margin-bottom: 1.25rem; }
.field-group.hidden { display: none; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; }
input[type="url"], input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%; padding: 0.6rem 0.8rem; font-size: 1rem; border: 1px solid #ddd;
  border-radius: 6px; background: #fff; font-family: inherit;
}
textarea { resize: vertical; }
input[type="checkbox"] { margin-right: 0.4rem; }
label:has(input[type="checkbox"]) { display: flex; align-items: center; cursor: pointer; }
.result { text-align: center; margin: 1.5rem 0; padding: 1.25rem; background: #fff; border-radius: 10px; border: 1px solid #eee; }
.result.hidden { display: none; }
.qr-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }
.qr-wrap canvas, .qr-wrap img { border-radius: 8px; }
.qr-actions { display: flex; gap: 0.75rem; }
.qr-actions button {
  flex: 1; padding: 0.6rem; font-size: 0.9rem; font-weight: 500;
  border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #fff; font-family: inherit;
}
.qr-actions button:hover { background: #f0edea; }
.actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.actions button {
  flex: 1; padding: 0.6rem; font-size: 0.9rem; font-weight: 500;
  border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #fff; font-family: inherit;
}
.actions button:hover { background: #f0edea; }
.tips h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 1rem; }
.tips dl dt { font-weight: 600; margin: 1rem 0 0.3rem; font-size: 0.95rem; }
.tips dl dd { color: #6f695f; font-size: 0.9rem; margin-bottom: 0.5rem; }
footer { text-align: center; margin-top: 2rem; font-size: 0.8rem; color: #6f695f; }

@media (max-width: 600px) {
  body { padding: 0.75rem; }
  main { padding: 1rem 0; }
  h1 { font-size: 1.35rem; margin-bottom: 0.35rem; }
  .subtitle { font-size: 0.85rem; margin-bottom: 0.75rem; }
  .tabs { margin-bottom: 0.75rem; }
  .tab { padding: 0.5rem; font-size: 0.85rem; }
  .field { margin-bottom: 0.75rem; }
  label { font-size: 0.8rem; margin-bottom: 0.25rem; }
  input[type="url"], input[type="text"], input[type="tel"], input[type="email"], textarea, select {
    padding: 0.5rem 0.6rem; font-size: 0.95rem;
  }
  textarea { rows: 3; }
  .actions { margin-top: 0.75rem; flex-direction: column; }
  .actions button { padding: 0.65rem; font-size: 0.95rem; }
  .btn-primary { background: #fff; color: #1c1a17; border-color: #1c1a17; }
  .btn-primary:hover { background: #f0edea; }
  .btn-primary:hover { background: #2d2a25; }
  .qr-actions { flex-direction: column; }
  .qr-actions button { padding: 0.65rem; font-size: 0.95rem; }
  .result { margin: 1rem 0; padding: 1rem; }
  .tips h2 { margin: 1.25rem 0 0.6rem; font-size: 1.1rem; }
  .tips dl dt { margin: 0.75rem 0 0.2rem; font-size: 0.9rem; }
  .tips dl dd { font-size: 0.85rem; margin-bottom: 0.4rem; }
  footer { margin-top: 1.25rem; }
  .qr-wrap canvas, .qr-wrap img { max-width: 100%; height: auto !important; }
}
