/* 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; }
.field { margin-bottom: 1.25rem; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; }
input[type="range"] {
  width: 100%; accent-color: #1c1a17;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 0;
}
input[type="checkbox"] { margin-right: 0.2rem; }
.result { text-align: center; margin: 1.5rem 0; padding: 1.25rem; background: #fff; border-radius: 10px; border: 1px solid #eee; }
.result.hidden { display: none; }
.password-output {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1rem;
  background: #f7f3ea;
  border-radius: 8px;
  border: 1px solid #ddd;
  word-break: break-all;
  user-select: all;
}
.password-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.password-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;
}
.password-actions button:hover { background: #f0edea; }
.strength-meter {
  margin-top: 1rem;
  height: 8px;
  background: #e5e2db;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}
.strength-label {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: #6f695f;
  margin-top: 0.3rem;
}
.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; color: #1c1a17;
}
.actions button:hover { background: #f0edea; }
.btn-primary { background: #1c1a17; color: #f7f3ea; border-color: #1c1a17; }
.btn-primary:hover { background: #2d2a25; }
.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; }
  .field { margin-bottom: 0.75rem; }
  label { font-size: 0.8rem; margin-bottom: 0.25rem; }
  .checkbox-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .checkbox-grid label { font-size: 0.85rem; }
  .password-output { font-size: 1.1rem; padding: 0.75rem; }
  .actions { margin-top: 0.75rem; flex-direction: column; }
  .actions button { padding: 0.65rem; font-size: 0.95rem; }
  .password-actions { margin-top: 0.75rem; flex-direction: column; }
  .password-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; }
}
