        :root {
            --bg-a: #f8f4ea;
            --bg-b: #dfe7f4;
            --ink: #1f2a37;
            --muted: #5b6677;
            --accent: #0f766e;
            --accent-strong: #115e59;
            --danger: #b42318;
            --warning: #b54708;
            --ok: #1e7f45;
            --card: rgba(255, 255, 255, 0.82);
            --border: rgba(15, 23, 42, 0.16);
            --shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
            --radius: 18px;
            --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: "Trebuchet MS", "Segoe UI", sans-serif;
            color: var(--ink);
            background:
                radial-gradient(circle at 18% 16%, rgba(255, 208, 122, 0.4), transparent 45%),
                radial-gradient(circle at 85% 20%, rgba(129, 203, 196, 0.32), transparent 42%),
                linear-gradient(130deg, var(--bg-a), var(--bg-b));
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 28px;
        }

        .shell {
            width: min(1000px, 100%);
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 24px;
            animation: fadeUp 520ms ease;
        }

        .card {
            background: var(--card);
            backdrop-filter: blur(6px);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 22px;
        }

        .headline {
            margin: 0 0 6px;
            font-size: clamp(1.4rem, 2.7vw, 2rem);
            letter-spacing: 0.02em;
        }

        .sub {
            margin: 0 0 18px;
            color: var(--muted);
            line-height: 1.45;
        }

        .panel {
            display: none;
            animation: fadeUp 320ms ease;
        }

        .panel.active {
            display: block;
        }

        .field {
            margin-bottom: 14px;
        }

        label {
            display: block;
            margin-bottom: 7px;
            font-weight: 700;
            font-size: 0.95rem;
        }

        input[type="password"],
        input[type="text"] {
            width: 100%;
            border-radius: 12px;
            border: 1px solid var(--border);
            padding: 11px 12px;
            font-size: 0.98rem;
            background: rgba(255, 255, 255, 0.9);
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .dropzone {
            border: 2px dashed #7c8aa0;
            border-radius: 14px;
            padding: 24px;
            text-align: center;
            color: #3c4b5f;
            background: rgba(255, 255, 255, 0.62);
            transition: border-color 180ms ease, transform 180ms ease;
            cursor: pointer;
            margin-bottom: 14px;
        }

        .dropzone.drag {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .muted {
            color: var(--muted);
            font-size: 0.9rem;
        }

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

        button {
            border: none;
            border-radius: 11px;
            padding: 11px 16px;
            background: linear-gradient(135deg, var(--accent), #0d9488);
            color: #fff;
            font-size: 0.98rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform 140ms ease, box-shadow 140ms ease;
        }

        button:hover {
            transform: translateY(-1px);
            box-shadow: 0 7px 18px rgba(13, 148, 136, 0.28);
        }

        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .secondary {
            background: #334155;
        }

        .bar-wrap {
            width: 100%;
            height: 12px;
            border-radius: 999px;
            overflow: hidden;
            background: #dbe3ee;
            margin-top: 8px;
        }

        .bar {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, #0ea5a4, #0d9488);
            transition: width 90ms linear;
        }

        .status {
            margin-top: 8px;
            min-height: 1.2em;
            font-size: 0.93rem;
        }

        .status.error {
            color: var(--danger);
        }

        .status.warn {
            color: var(--warning);
        }

        .status.ok {
            color: var(--ok);
        }

        .strength {
            margin-top: 6px;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .meta-grid {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 8px 10px;
            font-size: 0.95rem;
            margin: 10px 0 16px;
        }

        .meta-grid div:nth-child(odd) {
            color: var(--muted);
            font-weight: 700;
        }

        .linkbox {
            margin-top: 12px;
            padding: 12px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
            word-break: break-all;
            font-family: var(--mono);
            font-size: 0.88rem;
        }

        #qr {
            margin-top: 12px;
            min-height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 10px;
        }

        .aside {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .tag {
            display: inline-flex;
            align-items: center;
            font-size: 0.8rem;
            border-radius: 999px;
            padding: 6px 10px;
            background: rgba(17, 94, 89, 0.12);
            color: var(--accent-strong);
            font-weight: 700;
            letter-spacing: 0.03em;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 920px) {
            .shell {
                grid-template-columns: 1fr;
            }

            body {
                padding: 16px;
            }
        }
