:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #5f6f84;
  --line: #d9e2ec;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --navy: #07111f;
  --navy-soft: #122338;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --amber: #a16207;
  --amber-soft: #fffbeb;
  --danger: #b91c1c;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html { background: var(--surface-soft); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--surface-soft); line-height: 1.55; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
button, select, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.site-header { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner, .page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #08251b; background: var(--green); }
.brand-mark svg { width: 19px; height: 19px; }
.header-label { color: #bdc8d6; font-size: .82rem; font-weight: 650; }

.hero { color: #fff; background: radial-gradient(circle at 85% 10%, rgba(37,99,235,.32), transparent 32%), linear-gradient(145deg, #07111f 0%, #10243a 62%, #0b1727 100%); border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-inner { padding: 72px 0 108px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--green); font-size: .75rem; line-height: 1.2; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.25rem, 5.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 700px; margin: 24px 0 0; color: #d3dce8; font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dce5ef; background: rgba(255,255,255,.06); font-size: .78rem; font-weight: 700; }

.content-shell { margin-top: -52px; padding-bottom: 76px; position: relative; }
.tool-card { background: var(--surface); border: 1px solid rgba(217,226,236,.9); border-radius: 24px; padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow); }
.tool-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.tool-card-heading h2, .results-heading-row h3 { margin: 0; letter-spacing: -.035em; }
.tool-card-heading h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.privacy-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #047857; background: var(--green-soft); border: 1px solid #a7f3d0; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.privacy-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

#generator-form { padding-top: 30px; }
.control-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.control-group-wide { margin-bottom: 28px; }
.control-group legend, .control-group > label { display: block; margin-bottom: 10px; color: #243247; font-size: .88rem; font-weight: 800; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { width: 100%; min-height: 112px; padding: 18px; text-align: left; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.choice-card:hover { border-color: #93c5fd; background: #fbfdff; }
.choice-card.is-active { color: #17315c; background: var(--blue-soft); border-color: #60a5fa; box-shadow: inset 0 0 0 1px #60a5fa; }
.choice-title { display: block; margin-bottom: 5px; color: var(--ink); font-weight: 850; }
.choice-card.is-active .choice-title { color: #1d4ed8; }
.choice-description { display: block; font-size: .86rem; line-height: 1.5; }
.notice { margin: 12px 0 0; padding: 11px 13px; border-radius: 10px; font-size: .8rem; }
.notice-warning { color: #7c4a03; background: var(--amber-soft); border: 1px solid #fde68a; }
.notice-safe { color: #047857; background: var(--green-soft); border: 1px solid #a7f3d0; }

.button-group { display: grid; gap: 8px; }
.button-group.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.button-group button, .small-button, .secondary-button { min-height: 44px; padding: 9px 12px; color: #42526a; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 750; }
.button-group button:hover, .small-button:hover, .secondary-button:hover { color: #1d4ed8; border-color: #93c5fd; background: #f8fbff; }
.button-group button.is-active { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 14px rgba(37,99,235,.18); }
.count-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
select { width: 100%; min-height: 46px; padding: 10px 38px 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
select:hover:not(:disabled) { border-color: #93c5fd; }
select:disabled { color: #8a98aa; background: #f1f5f9; opacity: 1; }
.control-help { min-height: 20px; margin: 7px 0 0; color: #7a899b; font-size: .76rem; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 11px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 12px; font-weight: 850; box-shadow: 0 10px 22px rgba(37,99,235,.22); }
.primary-button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary-button svg { width: 18px; height: 18px; }
.secondary-button { padding-inline: 18px; }

button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(16,185,129,.32); outline-offset: 3px; }
.status-message { min-height: 24px; margin: 16px 0 0; color: var(--muted); text-align: center; font-size: .84rem; font-weight: 650; }
.status-message.is-error { color: var(--danger); }

.empty-state { margin-top: 12px; padding: 48px 24px; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 16px; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; color: #4f6b8f; background: #eaf0f7; border-radius: 16px; }
.empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { margin: 0 0 6px; font-size: 1.1rem; }
.empty-state p { max-width: 500px; margin: 0 auto; color: var(--muted); font-size: .88rem; }

.results-section { margin-top: 18px; padding-top: 30px; border-top: 1px solid var(--line); }
.results-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.results-heading-row h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.result-count { color: #8090a3; font-size: .9rem; font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.small-button { min-height: 38px; padding: 7px 11px; font-size: .78rem; }
.results-list { display: grid; gap: 9px; margin-top: 18px; }
.result-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(120px, .75fr) minmax(130px, .9fr) auto; align-items: center; gap: 14px; min-height: 62px; padding: 10px 12px 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.result-number { color: #11294b; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .98rem; font-weight: 800; word-break: break-all; }
.result-meta { color: var(--muted); font-size: .78rem; }
.result-tag { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: capitalize; }
.copy-button { min-height: 36px; padding: 7px 10px; color: #334155; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; font-size: .75rem; font-weight: 800; }
.copy-button:hover { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.info-grid article { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.info-number { color: var(--green); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.info-grid h2 { margin: 12px 0 8px; font-size: 1.05rem; letter-spacing: -.02em; }
.info-grid p { margin: 0; color: var(--muted); font-size: .86rem; }

.site-footer { color: #afbccb; background: var(--navy); }
.footer-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: .78rem; }
.footer-inner p { margin: 0; }

.clipboard-helper { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .settings-grid, .source-options, .info-grid { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-row { grid-template-columns: minmax(0, 1fr) auto; }
  .result-meta, .result-tag { grid-column: 1; }
  .copy-button { grid-column: 2; grid-row: 1 / span 3; }
  .results-heading-row { flex-direction: column; }
  .result-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .header-inner, .page-shell { width: min(100% - 22px, 1120px); }
  .header-label { display: none; }
  .hero-inner { padding: 52px 0 84px; }
  .content-shell { margin-top: -38px; padding-bottom: 52px; }
  .tool-card { padding: 20px 15px; border-radius: 18px; }
  .tool-card-heading { flex-direction: column; }
  .button-group.three-up { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-button, .secondary-button { width: 100%; }
  .result-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .result-actions .small-button:first-child { grid-column: 1 / -1; }
  .result-row { gap: 8px; padding: 12px; }
  .footer-inner { min-height: 116px; flex-direction: column; align-items: flex-start; justify-content: center; }
}
