@font-face { font-family: 'JetBrains Mono'; src: url('JetBrainsMono-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
:root { color-scheme: light; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: #17202f; background: #f3f5f8; }
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #3977f4; outline-offset: 4px; }
.page { max-width: 1080px; margin: 0 auto; padding: 40px 24px 72px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { font-size: 24px; font-weight: 750; letter-spacing: -.8px; color: #17202f; text-decoration: none; }
.brand span { color: #788190; font-weight: 400; }
h1 { margin: 4px 0 0; font-size: 14px; font-weight: 500; color: #697384; }
.generate { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; min-height: 48px; border: 0; border-radius: 10px; background: #255de2; color: #fff; font-weight: 650; box-shadow: 0 3px 8px #255de21a; }
.generate:hover { background: #164dcc; }
.generate span { font-size: 24px; line-height: 1; }
.password-panel { padding: 28px 30px; border-radius: 16px; background: #172337; color: #fff; }
.panel-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
h2 { margin: 0; font-size: 16px; font-weight: 650; }
.badge { font-size: 12px; color: #c5d1e5; background: #ffffff0b; border: 1px solid #ffffff18; border-radius: 20px; padding: 6px 10px; }
.copy { color: inherit; border: 0; width: 100%; display: flex; align-items: center; text-align: left; gap: 20px; background: transparent; }
.copy-value, .glyphs { font-family: 'JetBrains Mono', Consolas, monospace; font-variant-ligatures: none; font-feature-settings: 'liga' 0; font-weight: 400; }
.copy-value { overflow-wrap: anywhere; min-width: 0; user-select: text; }
.password-copy { padding: 26px 0 18px; }
.password-copy .copy-value { font-size: clamp(22px, 4.7vw, 48px); letter-spacing: .02em; }
.copy-mark { margin-left: auto; color: #536579; flex-shrink: 0; font-size: 12px; white-space: nowrap; }
.password-copy .copy-mark { color: #bdcff2; }
.hint { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; color: #b7c3d5; font-size: 13px; }
.glyphs { font-size: 16px; color: #fff; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.section-heading span { font-size: 12px; color: #6c7888; }
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.result { min-width: 0; background: #fff; border: 1px solid #e0e5ec; border-radius: 12px; overflow: hidden; }
.result-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 18px 20px 0; }
h3 { margin: 0; font-size: 14px; font-weight: 700; }
.result-heading > span { color: #727d8c; font-size: 11px; }
.result-copy { padding: 16px 20px 20px; font-size: 14px; line-height: 1.8; min-height: 70px; }
.result-copy:hover { background: #f6f8fc; }
.result-copy .copy-mark { font-size: 11px; }
.result:has(#phppass), .wide { grid-column: 1 / -1; }
.copy.copied { background: #e9f8ee; color: #16663a; }
.password-copy.copied { background: #ffffff0a; color: #a3edbf; border-radius: 8px; }
footer { margin-top: 24px; max-width: 850px; font-size: 12px; line-height: 1.7; color: #687485; }
footer p { margin: 6px 0; }
.error { border: 1px solid #f0c1b9; border-radius: 8px; padding: 12px 16px; background: #fff0ed; color: #8f2c20; }
.status { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 10; margin: 0; padding: 12px 20px; border-radius: 10px; background: #172337; color: #fff; font-size: 14px; box-shadow: 0 5px 25px #17233725; max-width: calc(100% - 32px); text-align: center; }
.status:empty { display: none; }
.copy-fallback { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; opacity: 0; }
@media (max-width: 640px) {
    .page { padding: 24px 16px 70px; }
    .header { margin-bottom: 20px; }
    .generate { padding: 12px 14px; }
    .password-panel { padding: 22px 20px; }
    .password-copy { flex-wrap: wrap; gap: 8px; }
    .password-copy .copy-mark { width: 100%; margin: 0; }
    .results { grid-template-columns: minmax(0, 1fr); }
    .result-copy { gap: 12px; }
    .result-copy .copy-mark { font-size: 0; }
    .result-copy .copy-mark::after { content: '↗'; font-size: 18px; }
    .section-heading span { display: none; }
}
