body { background: var(--page); color: var(--text); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; translate: 0 -160%; padding: 10px 14px; background: var(--text); color: white; border-radius: 8px; }
.skip-link:focus { translate: 0; }
.tool-hero { width: min(1320px, calc(100% - 32px)); margin: auto; padding: clamp(60px,9vw,120px) 0 clamp(40px,6vw,70px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: clamp(40px,8vw,120px); align-items: end; }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tool-hero h1 { margin: 14px 0 22px; font-family: var(--font-serif); font-size: clamp(50px,7vw,96px); line-height: 1; letter-spacing: -.06em; }
.tool-hero h1 em { color: var(--primary); font-style: normal; }
.tool-hero p:last-child { color: var(--muted); line-height: 1.9; }
.privacy-card { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.privacy-dot { width: 10px; height: 10px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.privacy-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.password-workspace { width: min(1100px, calc(100% - 24px)); margin: auto; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 14px; }
.generator-card, .tips-card, .content-section { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.generator-card { padding: 28px; }
.password-output { display: grid; grid-template-columns: 1fr auto; }
.password-output input { min-height: 58px; border: 1px solid var(--line); border-radius: 14px 0 0 14px; background: var(--surface-soft); color: var(--text); padding-inline: 16px; font-family: var(--font-mono); font-size: 20px; }
.password-output button { min-width: 88px; border: 0; border-radius: 0 14px 14px 0; background: var(--primary); color: white; font-weight: 800; }
.strength-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.length-control { display: grid; gap: 10px; margin-top: 28px; }
.length-control span { display: flex; justify-content: space-between; font-weight: 700; }
.length-control input { accent-color: var(--primary); }
.options-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 24px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.options-grid legend { font-weight: 800; }
.options-grid label { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.options-grid label:last-child { grid-column: 1 / -1; }
.options-grid input { accent-color: var(--primary); }
.primary-button { width: 100%; min-height: 50px; margin-top: 22px; border: 0; border-radius: 12px; background: var(--primary); color: white; font-weight: 800; }
#app-status { color: var(--muted); font-size: 11px; }

.tips-card { padding: 28px; align-self: start; }
.tips-card h2 { margin: 7px 0 18px; font-family: var(--font-serif); }
.tips-card ol { display: grid; gap: 12px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.tips-card > button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); }
.password-list { display: grid; gap: 8px; margin-top: 14px; }
.password-list button { width: 100%; min-height: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 8px 10px; font-family: var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }

.content-section { width: min(1180px, calc(100% - 32px)); margin: 30px auto 0; padding: 28px; }
.content-section h2 { margin: 0 0 18px; font-family: var(--font-serif); }

@media (max-width: 880px) { .tool-hero, .password-workspace { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .options-grid { grid-template-columns: 1fr; } .options-grid label:last-child { grid-column: auto; } .strength-row { flex-direction: column; } }
