:root {
    --bg: #0f1724;
    --card: #0b1220;
    --accent: #4f46e5;
    --muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --glass: rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #071029 0%, #071634 60%);
    color: #e6eef8
}

.wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.card {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.header {
    display: flex;
    align-items: center;
    gap: 12px
}

h1 {
    font-size: 20px;
    margin: 0
}

p.lead {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 13px
}

.grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px
}

label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    display: block
}

.row {
    display: flex;
    gap: 8px;
    align-items: center
}

input[type="range"] {
    width: 100%
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 8px
}

.output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#password {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
    background: var(--glass);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    word-break: break-all;
}

.btn {
    background: linear-gradient(90deg, var(--accent), #7c3aed);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted)
}

.small {
    font-size: 13px;
    padding: l8px 10px
}

.meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.pill {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600
}

.meter {
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    overflow: hidden
}

.meter>i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    transition: width .2s ease
}

.muted {
    color: var(--muted);
    font-size: 13px
}

.footer {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px
}

@media (max-width:780px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .card {
        padding: 16px
    }
}