:root { --generator-accent: var(--brand); --generator-accent-dark: var(--brand-dark); }
body { background: #f4f6fb; }
.tool-header { border-bottom: 1px solid #edecf2; background: #fff; }
.random-header-inner { min-height: 78px; display: flex; align-items: center; gap: 16px; }
.tool-brand img { display: block; width: 145px; height: 64px; object-fit: cover; mix-blend-mode: multiply; }
.back-link { color: #5e55c8; font-size: 13px; font-weight: 700; }
.random-header-inner .back-link { margin-left: auto; }
.random-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 60px; }
.tool-eyebrow { margin: 0 0 10px; color: var(--generator-accent-dark); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.random-shell h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); letter-spacing: -.045em; }
.tool-intro { max-width: 760px; margin: 12px 0 28px; color: #667085; font-size: 15px; line-height: 1.7; }
.generator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.generator-card, .bulk-panel { min-width: 0; padding: 19px; border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
.generator-card h2, .bulk-heading h2 { margin: 0; color: #292b40; font-size: 18px; letter-spacing: -.025em; }
.generator-card > p { margin: 0 0 13px; color: #667085; font-size: 12px; line-height: 1.55; }
.generator-card-heading, .bulk-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.field { display: grid; gap: 7px; color: #45485a; font-size: 12px; font-weight: 700; }
.field input, .field select, .result-field, .bulk-output { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid #d7deea; border-radius: 9px; outline: none; color: #292b40; background: #fdfdff; font: inherit; font-size: 13px; }
.field input:focus, .field select:focus, .result-field:focus, .bulk-output:focus { border-color: #a5a6f6; box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / 12%); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 11px 0; }
.custom-set-field { margin: 10px 0; }
.field input:disabled { color: #626777; background: #f4f5f8; cursor: not-allowed; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pill-row, .check-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.pill { min-height: 32px; padding: 6px 10px; border: 1px solid #e3e8f0; border-radius: 999px; color: #45485a; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.pill[aria-pressed="true"] { border-color: #b7b2f6; color: var(--brand); background: #f4f2ff; }
@media (hover: hover) and (pointer: fine) { .pill:hover { border-color: #b7b2f6; color: var(--brand); background: #f4f2ff; } }
.check-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 9px; border: 1px solid #e3e8f0; border-radius: 999px; color: #45485a; background: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.check-pill input { width: 14px; height: 14px; margin: 0; accent-color: var(--generator-accent); }
.option-row { display: flex; flex-wrap: wrap; gap: 13px; margin: 11px 0; color: #45485a; font-size: 12px; }
.option-row label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.option-row input { accent-color: var(--generator-accent); }
.result-field { min-height: 46px; margin-top: 6px; color: #222438; background: #f8f9fc; font-family: var(--font-mono); font-size: 14px; font-weight: 650; }
.card-actions, .bulk-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 11px; }
.tool-button { min-height: 39px; padding: 0 14px; border: 1px solid #e3e8f0; border-radius: 9px; color: #344054; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .tool-button:hover { border-color: #c8c8fa; background: #f8f7ff; } }
.tool-button-primary { border-color: var(--generator-accent); color: #fff; background: var(--generator-accent); }
@media (hover: hover) and (pointer: fine) { .tool-button-primary:hover { border-color: var(--generator-accent-dark); color: #fff; background: var(--generator-accent-dark); } }
.copy-status, .bulk-status { min-height: 18px; margin: 8px 0 0; color: #667085; font-size: 12px; }
.copy-status.success, .bulk-status.success { color: #18794e; }
.copy-status.error, .bulk-status.error { color: #b42318; }
.bulk-panel { margin-top: 20px; }
.bulk-heading { justify-content: space-between; }
.bulk-count-presets { margin-top: -3px; }
.bulk-type-settings { margin: 12px 0; padding: 14px; border: 1px solid #e8e7f2; border-radius: 11px; background: #fbfbff; }
.bulk-type-settings h3 { margin: 0 0 10px; color: #393b55; font-size: 13px; }
.bulk-type-settings .field-row { margin: 8px 0; }
.bulk-type-settings .bulk-types { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.bulk-choice-group { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0 10px; }
.bulk-choice-group .pill[aria-pressed="true"] { border-color: var(--generator-accent); color: #fff; background: var(--generator-accent); }
.bulk-output { display: block; min-height: 180px; margin-top: 12px; resize: vertical; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.bulk-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.bulk-types .check-pill { border-radius: 8px; }
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 14px 16px; border: 1px solid #e5e0ff; border-radius: 12px; color: #4e477f; background: #f8f7ff; font-size: 13px; line-height: 1.5; }
.support-banner p { margin: 0; }
.support-banner a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 700; }
.seo-card, .faq, .related { margin-top: 16px; padding: 20px 22px; border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px rgb(16 24 40 / 4%); }
.seo-card h2 { margin: 0 0 12px; color: #292b40; font-size: clamp(22px, 3vw, 28px); }
.seo-card h3, .faq > h2, .related > h2 { margin: 20px 0 9px; color: #292b40; font-size: 17px; }
.seo-card p, .seo-card li, .faq-item p { color: #4b5565; font-size: 14px; line-height: 1.8; }
.seo-card ul { padding-left: 22px; }
.faq > h2, .related > h2 { margin-top: 0; margin-bottom: 15px; }
.faq-item { padding: 0 0 14px; border-bottom: 1px solid #edf0f4; }
.faq-item + .faq-item { padding-top: 14px; }
.faq-item:last-child { padding-bottom: 0; border-bottom: 0; }
.faq-item summary { position: relative; padding-left: 28px; color: #292b40; font-size: 15px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 8px; left: 7px; width: 7px; height: 7px; border-right: 2px solid #635bdf; border-bottom: 2px solid #635bdf; content: ""; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item p { margin: 10px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { min-height: 165px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid #eaebf1; border-radius: 13px; color: #292b40; background: #fff; text-decoration: none; }
.related-card strong { margin-bottom: 6px; font-size: 14px; }
.related-category { margin: 0 0 7px; color: #667085; font-size: 12px; font-weight: 700; }
.related-description { color: #5f6475; font-size: 13px; line-height: 1.6; }
.related-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 11px; font-size: 15px; font-weight: 750; }
.related-icon.violet { color: #695ade; background: #f0edff; }
.related-icon.blue { color: #4384d9; background: #eaf3ff; }
.related-icon.mint { color: #299d7b; background: #e9f8f2; }
.back-to-tool { position: fixed; z-index: 10; right: max(20px, calc((100vw - 1120px) / 2)); bottom: 22px; padding: 12px 16px; border: 1px solid var(--brand); border-radius: 999px; color: #fff; background: var(--brand); box-shadow: 0 6px 20px rgb(40 35 100 / 22%); font-size: 13px; font-weight: 700; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), scale .16s var(--ease-out); }
.back-to-tool.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-footer { margin-top: 8px; padding: 22px 20px 26px; }
.footer-inner { width: min(100%, 1120px); display: grid; grid-template-columns: 1fr; justify-items: center; gap: 12px; margin: 0 auto; padding: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; }
.footer-links a { color: #777a89; font-size: 12px; font-weight: 650; text-decoration: none; }
.legal-note { max-width: 900px; margin: 0; color: #626777; font-size: 12px; line-height: 1.6; text-align: center; }
.status-note { min-height: 16px; color: #667085; font-size: 12px; }
.date-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.date-range-fields { align-items: start; }
.date-field { position: relative; min-width: 0; }
.date-input-wrap { display: flex; }
.date-input-wrap input { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.date-input-wrap input[aria-invalid="true"], .date-year-label input[aria-invalid="true"] { border-color: #dc6b73; }
.date-picker-toggle { min-width: 42px; border: 1px solid #d7deea; border-left: 0; border-radius: 0 9px 9px 0; color: var(--generator-accent-dark); background: #f5f4ff; cursor: pointer; font-size: 18px; }
.date-picker-toggle[aria-expanded="true"] { color: #fff; background: var(--generator-accent); }
@media (hover: hover) and (pointer: fine) { .date-picker-toggle:hover { color: #fff; background: var(--generator-accent); } }
.date-field-error, .date-range-error, .date-picker-error { display: block; min-height: 0; margin: 4px 0 0; color: #b42318; font-size: 12px; line-height: 1.4; }
.date-range-error:empty, .date-picker-error:empty { display: none; }
.date-picker-popover { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; width: min(320px, calc(100vw - 48px)); padding: 12px; border: 1px solid #e3e1f4; border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgb(34 31 70 / 18%); }
.date-picker-header { display: grid; grid-template-columns: 32px minmax(0, 1fr) 68px 32px; align-items: center; gap: 6px; }
.date-picker-header select, .date-picker-header input { width: 100%; min-width: 0; height: 34px; padding: 0 7px; border: 1px solid #e1e3ed; border-radius: 8px; color: #292b40; background: #fbfbff; font: inherit; font-size: 12px; font-weight: 700; }
.date-picker-header input { text-align: center; }
.date-nav { width: 32px; height: 32px; padding: 0; border: 1px solid #e5e4f2; border-radius: 8px; color: var(--generator-accent-dark); background: #f7f6ff; cursor: pointer; font-size: 22px; line-height: 1; }
@media (hover: hover) and (pointer: fine) { .date-nav:hover { color: #fff; background: var(--generator-accent); } }
.date-picker-error { margin: 5px 0; }
.date-weekdays, .date-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.date-weekdays { margin: 10px 0 5px; color: #667085; text-align: center; font-size: 12px; font-weight: 700; }
.date-weekdays span { padding: 4px 0; }
.date-day-empty, .date-day { min-width: 0; height: 34px; display: grid; place-items: center; }
.date-day { padding: 0; border: 1px solid transparent; border-radius: 9px; color: #34364a; background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .date-day:hover { border-color: #c9c5fa; color: var(--generator-accent-dark); background: #f5f3ff; } }
.date-day.is-in-range { border-radius: 0; color: #4f46a5; background: #f0eeff; }
.date-day.is-range-edge, .date-day.is-selected { border-color: var(--generator-accent); border-radius: 9px; color: #fff; background: var(--generator-accent); }
.date-day.is-today:not(.is-selected):not(.is-range-edge) { border-color: #8d87ef; color: var(--generator-accent-dark); font-weight: 800; }
.date-picker-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #eff0f5; }
.date-picker-footer button { min-height: 29px; padding: 0 8px; border: 1px solid #e6e5f1; border-radius: 7px; color: #4b4d60; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .date-picker-footer button:hover { border-color: #c4c0f5; color: var(--generator-accent-dark); background: #f7f6ff; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .random-shell { padding-top: 30px; }
  .generator-grid { grid-template-columns: 1fr; }
  .bulk-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 0; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
  .related-icon { grid-row: span 3; margin: 0; }
  .related-category, .related-card strong { margin: 0; }
  .support-banner { align-items: flex-start; flex-direction: column; }
  .back-to-tool { right: 15px; bottom: 15px; }
}
@media (max-width: 440px) {
  .random-shell { width: min(100% - 28px, 1120px); }
  .random-header-inner { width: min(100% - 28px, 1160px); }
  .field-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .footer-links { gap: 10px 16px; }
  .bulk-types { grid-template-columns: 1fr; }
  .bulk-type-settings .bulk-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-picker-popover { left: 50%; transform: translateX(-50%); }
  .tool-brand img { width: 120px; }
}
