:root {
        --bg: #0b0f14;
        --bg-soft: #121820;
        --card: #161d27;
        --border: #232c39;
        --text: #e6edf3;
        --muted: #93a1b1;
        --accent: #5eead4;
        --accent-2: #7c9cff;
        --radius: 16px;
      }
      * { box-sizing: border-box; }
      [hidden] { display: none !important; }
      .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;
      }
      html, body { height: 100%; }
      body {
        margin: 0;
        font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: var(--text);
        background:
          radial-gradient(1100px 640px at 88% -8%, rgba(124, 156, 255, 0.28), transparent 58%),
          radial-gradient(900px 560px at -10% 108%, rgba(94, 234, 212, 0.22), transparent 55%),
          radial-gradient(700px 420px at 50% 40%, rgba(251, 146, 60, 0.08), transparent 60%),
          var(--bg);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        line-height: 1.5;
      }
      .topbar {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 20;
      }
      .drawer {
        position: relative;
      }
      .drawer > summary {
        list-style: none;
        cursor: pointer;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--muted);
        display: grid;
        place-items: center;
        font-size: 18px;
        letter-spacing: 1px;
        line-height: 1;
        user-select: none;
      }
      .drawer > summary::-webkit-details-marker { display: none; }
      .drawer > summary:hover,
      .drawer[open] > summary {
        border-color: var(--border);
        background: var(--bg-soft);
        color: var(--text);
      }
      .drawer-menu {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        min-width: 148px;
        padding: 6px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
      }
      .drawer-menu a {
        display: block;
        padding: 8px 10px;
        border-radius: 8px;
        color: var(--muted);
        text-decoration: none;
        font-size: 13px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      }
      .drawer-menu a:hover,
      .drawer-menu button:hover {
        background: #18202b;
        color: var(--text);
      }
      .drawer-menu button {
        display: block;
        width: 100%;
        padding: 8px 10px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--muted);
        text-align: left;
        cursor: pointer;
        font-size: 13px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      }
      .pass-ttl {
        margin: 0 0 4px;
        padding: 6px 10px 8px;
        border-bottom: 1px solid var(--border);
        color: var(--muted);
        font-size: 12px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        line-height: 1.35;
      }
      .pass-ttl.is-warn { color: #fbbf24; }
      .pass-ttl.is-late { color: #fca5a5; }
      .drawer > summary.is-warn { color: #fbbf24; }
      .drawer > summary.is-late { color: #fca5a5; }
      .login-dialog {
        width: min(360px, calc(100vw - 32px));
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--card);
        color: var(--text);
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
      }
      .login-dialog::backdrop {
        background: rgba(7, 10, 14, 0.62);
      }
      .login-dialog h2 {
        margin: 0 0 4px;
        font-size: 16px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      }
      .login-hint {
        margin: 0 0 12px;
        color: var(--muted);
        font-size: 12px;
      }
      .totp-qr {
        display: block;
        width: 180px;
        height: 180px;
        margin: 8px auto 10px;
        border-radius: 8px;
        background: #0b0f14;
      }
      .totp-secret {
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 11px;
        color: var(--muted);
        word-break: break-all;
        text-align: center;
      }
      .login-dialog label {
        display: block;
        margin: 10px 0 4px;
        color: var(--muted);
        font-size: 12px;
      }
      .login-dialog input {
        width: 100%;
        padding: 9px 10px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg-soft);
        color: var(--text);
        font-size: 14px;
      }
      .login-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 16px;
      }
      .login-actions button {
        cursor: pointer;
        border-radius: 10px;
        padding: 8px 12px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 13px;
      }
      .login-actions .ghost {
        border: 1px solid var(--border);
        background: transparent;
        color: var(--muted);
      }
      .login-actions .ok {
        border: 1px solid rgba(94, 234, 212, 0.45);
        background: rgba(94, 234, 212, 0.14);
        color: var(--accent);
      }
      .login-error {
        min-height: 1.2em;
        margin: 8px 0 0;
        color: #fca5a5;
        font-size: 13px;
      }
      .wrap {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        padding: clamp(24px, 6vw, 72px) 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      .brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: clamp(28px, 6vw, 44px);
        font-weight: 700;
        letter-spacing: -0.02em;
      }
      .brand-logo {
        width: clamp(88px, 16vw, 120px);
        height: clamp(88px, 16vw, 120px);
        border-radius: 16px;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
        flex-shrink: 0;
      }
      .brand .dot { color: var(--accent); }
      .brand .caret {
        color: var(--accent-2);
        animation: blink 1.2s steps(1) infinite;
      }
      @keyframes blink { 50% { opacity: 0; } }
      .tagline {
        color: var(--muted);
        margin: 14px 0 0;
        font-size: clamp(15px, 2.4vw, 18px);
        max-width: 52ch;
      }
      .badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 22px;
        padding: 6px 12px;
        border: 1px solid var(--border);
        background: var(--bg-soft);
        border-radius: 999px;
        color: var(--muted);
        font-size: 13px;
        width: fit-content;
      }
      .badge .pulse {
        width: 8px; height: 8px; border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
        animation: pulse 2s infinite;
      }
      @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5); }
        70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
        100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
      }
      .section {
        margin-top: 48px;
      }
      .section h2 {
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      }
      .grid {
        display: grid;
        gap: 18px;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      }
      .card {
        --glow: 94, 234, 212;
        position: relative;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 220px;
        padding: 22px 22px 20px;
        overflow: hidden;
        border-radius: 20px;
        border: 1px solid rgba(var(--glow), 0.22);
        text-decoration: none;
        color: inherit;
        background:
          radial-gradient(120% 80% at 50% 120%, rgba(var(--glow), 0.38), transparent 58%),
          linear-gradient(180deg, #10151c 0%, #0c1016 100%);
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
      }
      .card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
        background-size: 18px 18px;
        mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 70%);
        pointer-events: none;
        z-index: 0;
      }
      .card::after {
        content: "";
        position: absolute;
        left: 0;
        top: 18%;
        bottom: 18%;
        width: 3px;
        border-radius: 0 4px 4px 0;
        background: rgb(var(--glow));
        box-shadow: 0 0 16px rgb(var(--glow));
        z-index: 1;
      }
      .card:hover {
        transform: translateY(-4px);
        border-color: rgba(var(--glow), 0.5);
        box-shadow: 0 18px 50px rgba(var(--glow), 0.18);
      }
      .card-timeline { --glow: 251, 146, 60; }
      .card-blue { --glow: 124, 156, 255; }
      .section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 14px;
      }
      .section-head h2 { margin: 0; }
      .vitrine-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }
      .vitrine-bar p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      }
      .vitrine-bar button {
        cursor: pointer;
        border: 1px solid rgba(94, 234, 212, 0.45);
        background: rgba(94, 234, 212, 0.14);
        color: var(--accent);
        border-radius: 10px;
        padding: 6px 12px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 13px;
      }
      .vitrine-bar button:hover { background: rgba(94, 234, 212, 0.24); }
      .vitrine-msg { color: var(--muted); font-size: 12px; }
      .vitrine-msg.is-ok { color: var(--accent); }
      .vitrine-msg.is-err { color: #fca5a5; }
      .card-slot {
        position: relative;
      }
      .card-pick {
        position: absolute;
        z-index: 3;
        top: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(11, 15, 20, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--muted);
        font-size: 11px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        cursor: pointer;
        user-select: none;
      }
      .card-pick input { accent-color: var(--accent); }
      .card-slot.is-public .card-pick {
        color: var(--accent);
        border-color: rgba(94, 234, 212, 0.4);
      }
      .card-badge {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 2;
        padding: 4px 9px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        background: rgba(var(--glow), 0.16);
        color: rgb(var(--glow));
        border: 1px solid rgba(var(--glow), 0.35);
      }
      .card-kicker,
      .card-title,
      .card-stack {
        position: relative;
        z-index: 2;
      }
      .card-kicker {
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.3;
      }
      .card-title {
        font-size: clamp(26px, 3.6vw, 36px);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.12;
        color: #fff;
        overflow-wrap: break-word;
      }
      .card-stack {
        margin-top: 16px;
        align-self: flex-start;
        padding: 6px 10px;
        border-radius: 8px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.82);
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.08);
      }
      footer {
        text-align: center;
        color: var(--muted);
        font-size: 13px;
        padding: 24px 20px 32px;
      }
      footer a { color: var(--muted); }
      .boot {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: grid;
        place-items: center;
        background:
          radial-gradient(1100px 640px at 88% -8%, rgba(124, 156, 255, 0.28), transparent 58%),
          radial-gradient(900px 560px at -10% 108%, rgba(94, 234, 212, 0.22), transparent 55%),
          var(--bg);
        transition: opacity 0.35s ease;
      }
      .boot img {
        width: clamp(96px, 22vw, 140px);
        height: auto;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
      }
      .boot p {
        margin: 12px 0 0;
        color: var(--muted);
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 13px;
        text-align: center;
      }
      .boot.is-done {
        opacity: 0;
        pointer-events: none;
      }
      @media (prefers-reduced-motion: reduce) {
        .boot { display: none; }
      }
      .cookies[hidden] { display: none !important; }
      .cookies {
        position: fixed;
        z-index: 50;
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: 560px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
      }
      .cookies img {
        width: 72px;
        height: 72px;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
        flex-shrink: 0;
      }
      .cookies p {
        margin: 0;
        flex: 1;
        font-size: 13px;
        color: var(--muted);
        line-height: 1.4;
      }
      .cookies button {
        flex-shrink: 0;
        cursor: pointer;
        border: 1px solid rgba(94, 234, 212, 0.45);
        background: rgba(94, 234, 212, 0.14);
        color: var(--accent);
        border-radius: 10px;
        padding: 8px 12px;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
        font-size: 13px;
      }
      .cookies button:hover {
        background: rgba(94, 234, 212, 0.24);
      }
