/* =========================================================================
   EmirhanY Kimlik — design system
   Desktop-first, responsive. Two shells: .auth (split hero+form) and .app
   (top bar + wide content). Accent injected via --accent from the layout.
   ========================================================================= */

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f1f3f6;
    --fg: #14181f;
    --fg-2: #5b6472;
    --border: #e4e7ec;
    --border-strong: #d3d8e0;

    --accent: #4f46e5;
    --accent-fg: #ffffff;
    --accent-hover: #4338ca;
    --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);

    --danger: #dc2626;
    --danger-soft: color-mix(in srgb, var(--danger) 12%, transparent);
    --ok: #15a34a;
    --ok-soft: color-mix(in srgb, var(--ok) 12%, transparent);

    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.05);
    --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16);
    --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);

    --container: 1080px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0e14;
        --surface: #141923;
        --surface-2: #1b212d;
        --fg: #e8ebf1;
        --fg-2: #98a2b3;
        --border: #262d3a;
        --border-strong: #323a48;
        --accent: #6366f1;
        --accent-hover: #818cf8;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 14px; border-radius: 10px;
    background: var(--fg); color: var(--surface); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--fg-2); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.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; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.hidden, [hidden] { display: none !important; }

/* ===========================  AUTH SHELL  =============================== */

.auth {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 120% at 15% 10%, color-mix(in srgb, var(--accent) 90%, #fff) 0%, var(--accent) 42%, var(--accent-hover) 100%);
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 40% at 85% 20%, rgba(255, 255, 255, 0.20), transparent 70%),
        radial-gradient(50% 50% at 10% 95%, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero .logo-badge { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-top .hero-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-body h2 { font-size: 2.1rem; line-height: 1.12; margin-bottom: .5rem; color: #fff; }
.hero-body p { color: rgba(255, 255, 255, 0.85); font-size: 1.02rem; max-width: 40ch; }
.hero-features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.hero-features li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, 0.92); font-size: 0.97rem; }
.hero-features svg { flex: none; width: 22px; height: 22px; opacity: 0.95; }
.hero-foot { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
    min-width: 0;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    min-width: 0;
}
.auth-card .form-head { margin-bottom: 22px; }
.auth-card .form-head h1 { font-size: 1.55rem; margin-bottom: .25rem; }
.auth-card .form-head p { color: var(--fg-2); margin: 0; }
.auth-mobile-logo { display: none; }

@media (max-width: 880px) {
    .auth { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-main { padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); align-items: flex-start; }
    .auth-card { width: calc(100vw - 32px); max-width: calc(100vw - 32px); }
    .auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 18px; }
}

/* ===========================  APP SHELL  ================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.topbar-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.topbar-brand:hover { text-decoration: none; }
.topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.topbar-nav a {
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--fg-2);
    font-weight: 600;
    font-size: 0.92rem;
}
.topbar-nav a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.topbar-nav a.active { background: var(--accent-soft); color: var(--accent); }
.topbar-spacer { flex: 1; }
.user-chip {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 6px 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.88rem;
    color: var(--fg-2);
    max-width: 240px;
}
.user-chip .uemail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .avatar {
    width: 28px; height: 28px; flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: #fff;
    font-weight: 800; font-size: 0.8rem;
}
.topbar form { margin: 0; }
.mobile-nav { display: none; }

.app-main { max-width: var(--container); margin: 0 auto; padding: 34px 24px 64px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { margin-bottom: .25rem; }
.page-head p { color: var(--fg-2); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===========================  SURFACES  ================================ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 26px;
    min-width: 0;
}
.auth-card .card { box-shadow: var(--shadow-lg); }

.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.section-head h3 { margin: 0; }
.section-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.passkey-name { width: 160px !important; padding: 9px 11px !important; font-size: .88rem !important; }
.code-input { letter-spacing: .3em; text-align: center; font-size: 1.2rem !important; }
.card > h3:first-child { margin-top: 0; }

/* ===========================  BRAND / LOGO  ============================= */

.logo-badge { display: block; border-radius: 26%; }
.brand {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; margin-bottom: 22px;
}
.brand h1 { font-size: 1.4rem; margin: 0; }
.brand p { margin: 0; color: var(--fg-2); }

/* ===========================  BUTTONS  ================================= */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 13px 18px;
    font: inherit; font-size: 1rem; font-weight: 700;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .04s, box-shadow .15s, opacity .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 38%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.btn-sm { width: auto; padding: 9px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn-xs { width: auto; padding: 6px 11px; font-size: 0.8rem; font-weight: 600; border-radius: 9px; }

.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-btns .btn { width: auto; }

/* loading spinner */
.btn.is-loading { opacity: .75; cursor: progress; pointer-events: none; }
.btn.is-loading::before {
    content: ""; width: 16px; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation-duration: .001ms; } }

/* ===========================  FORMS  =================================== */

label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit; font-size: 1rem;
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--fg-2) 75%, transparent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
input[readonly] { background: var(--surface-2); color: var(--fg-2); }
textarea { resize: vertical; min-height: 84px; }
.field { margin-bottom: 16px; }
.checkbox { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.checkbox input { width: auto; }

details > summary { cursor: pointer; }
details.disclosure { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; background: var(--surface-2); }
details.disclosure > summary { font-weight: 600; color: var(--fg-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.disclosure > summary::before { content: "▸"; color: var(--accent); transition: transform .15s; }
details.disclosure[open] > summary::before { transform: rotate(90deg); }
details.disclosure[open] { background: var(--surface); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--fg-2); font-size: 0.84rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.rule { height: 1px; background: var(--border); border: 0; margin: 22px 0; }

/* ===========================  ALERTS / TAGS  =========================== */

.alert { padding: 13px 15px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 16px; border: 1px solid transparent; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

.tag {
    display: inline-flex; align-items: center;
    font-size: 0.74rem; font-weight: 700; line-height: 1;
    padding: 4px 9px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
}
.tag-muted { background: var(--surface-2); color: var(--fg-2); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }

/* ===========================  LISTS (devices/sessions)  ================ */

.list { list-style: none; padding: 0; margin: 0; }
.list li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.list li:first-child { padding-top: 4px; }
.list li:last-child { border-bottom: none; padding-bottom: 0; }
.list .li-main { min-width: 0; }
.list .li-main strong { display: inline-flex; align-items: center; gap: 8px; }
.list .li-sub { color: var(--fg-2); font-size: 0.84rem; overflow-wrap: anywhere; }

.empty {
    text-align: center; color: var(--fg-2);
    padding: 22px; border: 1px dashed var(--border-strong); border-radius: 12px;
    background: var(--surface-2); font-size: 0.9rem;
}

/* ======================= OIDC APP ACTIVITY ============================ */

.app-activity-card .section-head p { margin: 4px 0 0; }
.app-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.app-activity-item {
    display: flex; align-items: flex-start; gap: 12px;
    min-width: 0; padding: 15px;
    border: 1px solid var(--border); border-radius: 14px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
}
.app-activity-icon {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
    font-weight: 800; font-size: 1.05rem;
}
.app-activity-copy { display: grid; gap: 8px; min-width: 0; }
.app-activity-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-activity-title strong { overflow-wrap: anywhere; }
.app-activity-events { display: grid; gap: 5px; color: var(--fg-2); font-size: .8rem; }
.app-event { display: flex; align-items: center; gap: 5px; min-width: 0; }
.app-event time { white-space: nowrap; }
.app-event-dot {
    display: inline-grid; place-items: center; flex: none;
    width: 17px; height: 17px; border-radius: 50%;
    font-size: .68rem; font-weight: 800;
}
.app-event-dot-ok { background: var(--ok-soft); color: var(--ok); }

/* ===========================  TABLES  ================================== */

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th { background: var(--surface-2); position: sticky; top: 0; }
th, td {
    text-align: left; padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere; word-break: break-word; vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
th { color: var(--fg-2); font-weight: 600; }
.meta-cell { display: block; max-width: 100%; color: var(--fg-2); font-size: 0.82rem; font-family: var(--mono); overflow-wrap: anywhere; }
.audit-detail summary { color: var(--accent); cursor: pointer; font-size: .82rem; }
.audit-detail .meta-cell { margin-top: 7px; }

/* ===========================  CODE  =================================== */

code, pre { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
code { padding: 2px 6px; font-size: 0.85em; }
pre { padding: 12px 14px; overflow-x: auto; font-size: 0.85rem; }

.code-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.code-grid code { text-align: center; letter-spacing: .06em; font-size: 0.96rem; padding: 9px 6px; }
@media (max-width: 460px) { .code-grid { grid-template-columns: 1fr; } }

/* ===========================  MISC  ================================== */

.foot { color: var(--fg-2); font-size: 0.8rem; text-align: center; padding: 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { color: var(--fg-2); font-size: 0.84rem; margin-top: 2px; }

/* Recent-activity feed */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.feed li:last-child { border-bottom: none; }
.feed .feed-meta { margin-left: auto; color: var(--fg-2); font-size: 0.8rem; white-space: nowrap; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.admin-tabs a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--fg-2); font-size: .88rem; font-weight: 600; background: var(--surface); }
.admin-tabs a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.table-filter { width: min(100%, 280px) !important; padding: 9px 11px !important; font-size: .88rem !important; }

/* ===========================  SECURITY UI  ============================= */

.security-summary {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
    padding: 20px 22px; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    border-radius: var(--radius-lg);
}
.security-summary h2 { margin-bottom: 5px; }
.security-summary p { margin: 0; color: var(--fg-2); }
.security-score { flex: none; min-width: 96px; text-align: center; }
.security-score strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.security-score span { color: var(--fg-2); font-size: .78rem; }
.security-checklist { display: grid; gap: 8px; margin-top: 16px; }
.security-check { display: flex; align-items: center; gap: 9px; color: var(--fg-2); font-size: .9rem; }
.security-check::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-weight: 800; }
.security-check.pending::before { content: "!"; background: var(--accent-soft); color: var(--accent); }
.device-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.device-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.device-icon svg { width: 20px; height: 20px; }
.device-copy { min-width: 0; }
.device-copy strong { display: block; overflow-wrap: anywhere; }
.copy-row { display: flex; align-items: stretch; gap: 8px; }
.copy-row code, .copy-row pre { flex: 1; min-width: 0; margin: 0; }
.qr-box { background: #fff; padding: 12px; border-radius: 12px; width: max-content; max-width: 100%; margin: 0 auto 12px; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .48); }
.modal-backdrop.is-open { display: flex; }
.modal { width: 100%; max-width: 440px; background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }
.modal h2 { font-size: 1.2rem; margin-bottom: 8px; }
.modal p { color: var(--fg-2); }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.modal-actions .btn { width: auto; }

@media (max-width: 760px) {
    .topbar-inner { height: 58px; padding: 0 16px; gap: 8px; }
    .topbar-nav { display: none; }
    .mobile-nav { display: block; position: relative; }
    .mobile-nav summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 9px; color: var(--fg-2); font-size: 1.3rem; line-height: 1; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary:hover { background: var(--surface-2); color: var(--fg); }
    .mobile-nav[open] summary { background: var(--accent-soft); color: var(--accent); }
    .mobile-nav-menu { position: absolute; top: 42px; left: 0; min-width: 180px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
    .mobile-nav-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--fg-2); font-weight: 600; }
    .mobile-nav-menu a:hover, .mobile-nav-menu a.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
    .user-chip { max-width: 42px; padding: 5px; border: 0; background: transparent; }
    .user-chip .uemail { display: none; }
    .app-main { padding: 26px 16px 48px; }
    .card { padding: 20px; border-radius: 18px; }
    .security-summary { padding: 18px; }
}

@media (max-width: 520px) {
    .auth-card .card { padding: 20px; }
    .security-summary { display: block; }
    .security-score { text-align: left; margin-top: 14px; }
    .section-head { align-items: flex-start; }
    .section-actions { width: 100%; justify-content: flex-start; }
    .passkey-name { flex: 1; min-width: 0; }
    .list li { align-items: flex-start; }
    .list li > .btn, .list li > form { flex: none; }
    .feed li { align-items: flex-start; flex-wrap: wrap; }
    .feed .feed-meta { width: 100%; margin-left: 0; }
    .copy-row { display: block; }
    .copy-row .btn { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
