:root {
            color-scheme: dark;
            --background: rgb(33, 33, 33);
            --card: #000;
            --field: #1e1e1e;
            --field-light: #3f3f3f;
            --border: #555;
            --text: #fff;
            --muted: #b0b0b0;
            --primary: rgb(0, 103, 172);
            --primary-hover: rgb(3, 154, 255);
            --danger: #ef4444;
            --warning: #f59e0b;
            --good: #84cc16;
            --strong: #22c55e;
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            min-height: 100%;
        }

        body {
            background-color: var(--background);
            color: var(--text);
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        button,
        input {
            font: inherit;
        }

        .header {
            padding: 10px;
            text-align: center;
        }

        .header h1 {
            margin: 10px 0 20px;
        }

        .bl {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .back,
        .language {
            padding: 10px;
        }

        .back a,
        .language span {
            display: inline-block;
            color: white;
            text-decoration: none;
            padding: 10px;
            margin: 10px;
            background-color: black;
            border-radius: 5px;
            filter: drop-shadow(0 0 0.2rem rgb(128, 128, 128));
        }

        .back a:hover {
            background-color: rgb(71, 71, 71);
        }

        hr {
            border: none;
            height: 1px;
            background-color: white;
            width: 95%;
            margin: 30px auto;
        }

        .main {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px;
            margin-bottom: 25px;
        }

        .container {
            width: 760px;
            max-width: 100%;
            background: var(--card);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        .password-group {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
        }

        #password {
            width: 100%;
            min-width: 0;
            padding: 15px;
            border: 2px solid var(--border);
            border-radius: 10px;
            background: var(--field);
            color: white;
            font-family: Consolas, "Courier New", monospace;
            font-size: 1.05rem;
            letter-spacing: 0.04em;
        }

        #password:focus,
        #excludeChars:focus,
        #lengthNumber:focus {
            outline: 2px solid var(--primary-hover);
            outline-offset: 2px;
        }

        button {
            border: 0;
            border-radius: 10px;
            padding: 12px 18px;
            color: white;
            background: var(--primary);
            cursor: pointer;
            font-weight: bold;
            transition: transform 0.15s ease, background-color 0.15s ease;
        }

        button:hover {
            background: var(--primary-hover);
            transform: translateY(-1px);
        }

        button:active {
            transform: translateY(0);
        }

        button:focus-visible,
        input:focus-visible {
            outline: 2px solid white;
            outline-offset: 3px;
        }

        .copy-button {
            min-width: 120px;
        }

        .strength-area {
            margin-top: 15px;
        }

        .strength-head {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-bottom: 8px;
        }

        #strengthLabel {
            font-weight: bold;
        }

        .strength-track {
            height: 10px;
            background: #343434;
            border-radius: 999px;
            overflow: hidden;
        }

        #strengthBar {
            width: 0;
            height: 100%;
            border-radius: inherit;
            transition: width 0.25s ease, background-color 0.25s ease;
        }

        .settings {
            margin-top: 25px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 15px;
        }

        .setting-box {
            background: var(--field-light);
            padding: 16px;
            border-radius: 10px;
        }

        .setting-box.full {
            grid-column: 1 / -1;
        }

        .setting-title {
            display: block;
            margin-bottom: 12px;
            font-weight: bold;
        }

        .length-controls {
            display: grid;
            grid-template-columns: 1fr 85px;
            align-items: center;
            gap: 12px;
        }

        #lengthRange {
            width: 100%;
            accent-color: var(--primary-hover);
            cursor: pointer;
        }

        #lengthNumber,
        #excludeChars {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border);
            border-radius: 8px;
            color: white;
            background: var(--field);
        }

        .option-list {
            display: grid;
            gap: 12px;
        }

        .option {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
        }

        .option input {
            width: 19px;
            height: 19px;
            accent-color: var(--primary-hover);
            cursor: pointer;
        }

        .hint {
            display: block;
            margin-top: 8px;
            color: var(--muted);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .actions {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
            margin-top: 20px;
        }

        .secondary-button {
            background: #474747;
        }

        .secondary-button:hover {
            background: #626262;
        }

        #message {
            min-height: 1.4em;
            margin: 15px 0 0;
            text-align: center;
            color: var(--muted);
        }

        #message.error {
            color: #ff8a8a;
        }

        #message.success {
            color: #7ee787;
        }

        .info-card {
            background-color: #1f1f1f;
            border: 1px solid #444;
            border-radius: 1rem;
            padding: 1.5rem;
            text-align: left;
            margin: 20px;
        }

        .info-card h3 {
            margin-top: 0;
        }

        .info-card p:last-child {
            margin-bottom: 0;
        }

        .footer {
            margin-top: auto;
            color: white;
            padding: 25px 15px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            background-color: black;
        }

        .footer a {
            color: white;
            text-decoration: none;
        }

        @media (max-width: 650px) {
            .header h1 {
                font-size: 1.7rem;
            }

            .container {
                padding: 20px;
            }

            .password-group,
            .settings,
            .actions {
                grid-template-columns: 1fr;
            }

            .setting-box.full {
                grid-column: auto;
            }

            .copy-button {
                width: 100%;
            }

            .bl {
                align-items: flex-start;
            }

            .back,
            .language {
                padding: 0;
            }
        }