:root {
    --tf-stone-50:  #F4F3EE;
    --tf-stone-100: #E8E7E1;
    --tf-stone-200: #D4D4CE;
    --tf-stone-300: #B5B6B0;
    --tf-stone-500: #6B6E6A;
    --tf-stone-700: #3A3D3B;
    --tf-stone-900: #1C1E1D;

    --tf-forest-100: #DDE5DF;
    --tf-forest-500: #4A6B5A;
    --tf-forest-700: #2F4A3D;
    --tf-forest-900: #1F2D26;

    --tf-success: #3B6D4A;
    --tf-warning: #9B7A2C;
    --tf-danger:  #A14238;
    --tf-info:    #3D5A7A;

    --tf-font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
    --tf-font-mono:  'JetBrains Mono', 'Menlo', monospace;

    --tf-radius-sm: 4px;
    --tf-radius-md: 6px;
    --tf-radius-lg: 8px;

    --tf-shadow-floating: 0 4px 16px -4px rgba(28, 30, 29, 0.12),
                          0 2px 4px -2px rgba(28, 30, 29, 0.08);
    --tf-focus-ring: 0 0 0 3px rgba(47, 74, 61, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--tf-font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tf-stone-900);
    background-color: var(--tf-stone-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: var(--tf-forest-700);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--tf-forest-900);
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--tf-focus-ring);
    border-radius: var(--tf-radius-sm);
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--tf-stone-900);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 22px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 500; }
h4 { font-size: 16px; line-height: 1.5; font-weight: 500; }

@media (min-width: 768px) {
    h1 { font-size: 40px; line-height: 1.15; }
    h2 { font-size: 30px; line-height: 1.25; }
    h3 { font-size: 22px; line-height: 1.35; }
    h4 { font-size: 18px; line-height: 1.4; }
}

p {
    margin: 0 0 16px;
    max-width: 65ch;
}

.tf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

@media (min-width: 768px) {
    .tf-container { padding-inline: 32px; }
}

.tf-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--tf-stone-200);
    height: 56px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .tf-header { height: 64px; }
}

.tf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.tf-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--tf-stone-900);
}

.tf-header__brand:hover {
    color: var(--tf-stone-900);
    text-decoration: none;
}

.tf-header__logo {
    height: 32px;
    width: auto;
}

.tf-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.tf-header__user {
    color: var(--tf-stone-700);
    font-size: 14px;
}

.tf-section {
    padding-block: 64px;
}

@media (min-width: 768px) {
    .tf-section { padding-block: 96px; }
}

.tf-card {
    background-color: #ffffff;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-lg);
    padding: 32px;
}

.tf-card--auth {
    max-width: 420px;
    margin: 64px auto;
    padding: 32px;
}

@media (min-width: 768px) {
    .tf-card--auth { padding: 40px; }
}

.tf-card__title {
    margin-bottom: 8px;
}

.tf-card__subtitle {
    color: var(--tf-stone-500);
    margin-bottom: 24px;
    font-size: 14px;
}

.tf-form__field {
    margin-bottom: 16px;
}

.tf-form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--tf-stone-900);
    margin-bottom: 8px;
}

.tf-form__input {
    width: 100%;
    padding: 10px 12px;
    background-color: #ffffff;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-md);
    font-family: inherit;
    font-size: 16px;
    color: var(--tf-stone-900);
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
}

.tf-form__input:hover {
    border-color: var(--tf-stone-300);
}

.tf-form__input:focus {
    outline: none;
    border-color: var(--tf-forest-700);
    box-shadow: var(--tf-focus-ring);
}

.tf-form__input--invalid,
.tf-form__input.input-validation-error {
    border-color: var(--tf-danger);
}

.tf-form__hint {
    display: block;
    font-size: 12px;
    color: var(--tf-stone-500);
    margin-top: 6px;
}

.tf-form__error {
    display: block;
    color: var(--tf-danger);
    font-size: 14px;
    margin-top: 6px;
}

.tf-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tf-stone-700);
    cursor: pointer;
}

.tf-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tf-forest-700);
}

.tf-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block: 8px 24px;
    gap: 16px;
}

.tf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--tf-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 40px;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-button--primary {
    background-color: var(--tf-forest-700);
    color: #ffffff;
}

.tf-button--primary:hover {
    background-color: var(--tf-forest-900);
    color: #ffffff;
    text-decoration: none;
}

.tf-button--secondary {
    background-color: transparent;
    color: var(--tf-stone-900);
    border-color: var(--tf-stone-300);
}

.tf-button--secondary:hover {
    background-color: var(--tf-stone-100);
    color: var(--tf-stone-900);
    text-decoration: none;
}

.tf-button--block {
    width: 100%;
}

.tf-button--small {
    padding: 6px 12px;
    font-size: 14px;
    min-height: 32px;
    border-radius: var(--tf-radius-sm);
}

.tf-button--ghost {
    background-color: transparent;
    color: var(--tf-stone-700);
    border-color: transparent;
}

.tf-button--ghost:hover {
    background-color: var(--tf-stone-100);
    color: var(--tf-stone-900);
    text-decoration: none;
}

.tf-button--danger {
    background-color: transparent;
    color: var(--tf-danger);
    border-color: var(--tf-danger);
}

.tf-button--danger:hover {
    background-color: var(--tf-danger);
    color: #ffffff;
    text-decoration: none;
}

.tf-button:disabled,
.tf-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tf-alert {
    border: 1px solid var(--tf-stone-200);
    border-left: 3px solid var(--tf-info);
    background-color: #ffffff;
    border-radius: var(--tf-radius-md);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--tf-stone-700);
}

.tf-alert--danger {
    border-left-color: var(--tf-danger);
    color: var(--tf-stone-900);
}

.tf-alert--warning {
    border-left-color: var(--tf-warning);
}

.tf-alert--success {
    border-left-color: var(--tf-success);
}

.tf-validation-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-hero {
    padding-block: 64px;
}

@media (min-width: 768px) {
    .tf-hero { padding-block: 96px; }
}

.tf-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    font-weight: 500;
    color: var(--tf-stone-500);
    margin-bottom: 12px;
}

.tf-hero__title {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .tf-hero__title {
        font-size: 56px;
        line-height: 1.05;
    }
}

.tf-hero__lead {
    color: var(--tf-stone-700);
    font-size: 18px;
    max-width: 60ch;
    margin-bottom: 32px;
}

.tf-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tf-text-meta {
    color: var(--tf-stone-500);
    font-size: 14px;
}

.tf-consent__scopes,
.tf-auths__scopes {
    list-style: disc;
    padding-left: 24px;
    margin: 8px 0 16px;
    color: var(--tf-stone-700);
}

.tf-consent__form .tf-consent__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tf-auths {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-auths__row {
    border-top: 1px solid var(--tf-stone-200);
    padding-block: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-auths__row:first-child {
    border-top: none;
}

.tf-auths__name {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
}

.tf-auths__revoke {
    align-self: flex-start;
}

.tf-card--mfa {
    max-width: 540px;
}

.tf-mfa__steps {
    margin: 16px 0 24px;
    padding-left: 20px;
    color: var(--tf-stone-700);
}

.tf-mfa__steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.tf-mfa__qr {
    margin: 24px auto;
    text-align: center;
}

.tf-mfa__qr img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-md);
    background-color: #ffffff;
    padding: 12px;
}

.tf-mfa__key {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 10px;
    background-color: var(--tf-stone-100);
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-sm);
    font-family: var(--tf-font-mono);
    font-size: 14px;
    letter-spacing: 0.05em;
    user-select: all;
    word-break: break-all;
}

.tf-mfa__codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.tf-mfa__codes li code {
    display: block;
    padding: 10px 12px;
    background-color: var(--tf-stone-100);
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-sm);
    font-family: var(--tf-font-mono);
    font-size: 14px;
    text-align: center;
    user-select: all;
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  Admin design system — sobre, structuré, 8px rhythm             ║
   ╚══════════════════════════════════════════════════════════════════╝ */

.tf-icon {
    flex-shrink: 0;
    color: currentColor;
    vertical-align: -2px;
}

/* ─── Topbar page title (eyebrow + h2) ────────────────────────────── */
.tf-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tf-stone-500);
    line-height: 1;
}

.tf-page-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--tf-stone-900);
    letter-spacing: -0.01em;
    margin: 4px 0 0;
    line-height: 1.2;
}

/* ─── Topbar action buttons ───────────────────────────────────────── */
.tf-topbar-search {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-md);
    background: #ffffff;
    font-size: 14px;
    width: 280px;
    color: var(--tf-stone-900);
    outline: none;
    transition: border-color 100ms ease;
}

.tf-topbar-search:focus {
    border-color: var(--tf-forest-700);
    box-shadow: var(--tf-focus-ring);
}

.tf-btn-primary {
    height: 36px;
    padding: 0 16px;
    background: var(--tf-forest-700);
    color: #ffffff;
    border: none;
    border-radius: var(--tf-radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 100ms ease;
}

.tf-btn-primary:hover { background-color: var(--tf-forest-900); color: #ffffff; text-decoration: none; }

.tf-btn-secondary {
    height: 36px;
    padding: 0 14px;
    background: transparent;
    color: var(--tf-stone-900);
    border: 1px solid var(--tf-stone-300);
    border-radius: var(--tf-radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 100ms ease, border-color 100ms ease;
}

.tf-btn-secondary:hover { background-color: var(--tf-stone-100); color: var(--tf-stone-900); text-decoration: none; }

.tf-btn-danger {
    height: 36px;
    padding: 0 14px;
    background: transparent;
    color: var(--tf-danger);
    border: 1px solid var(--tf-danger);
    border-radius: var(--tf-radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 100ms ease, color 100ms ease;
}

.tf-btn-danger:hover { background-color: var(--tf-danger); color: #ffffff; text-decoration: none; }

.tf-btn-primary:disabled,
.tf-btn-secondary:disabled,
.tf-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Filter bar (inside topbar toolbar) ──────────────────────────── */
.tf-filter-bar {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tf-filter-bar input[type="search"],
.tf-filter-bar select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-md);
    background: #ffffff;
    font-size: 14px;
    color: var(--tf-stone-900);
    outline: none;
    font-family: inherit;
    transition: border-color 100ms ease;
}

.tf-filter-bar input[type="search"] {
    flex: 1;
    min-width: 240px;
}

.tf-filter-bar input[type="search"]:focus,
.tf-filter-bar select:focus {
    border-color: var(--tf-forest-700);
    box-shadow: var(--tf-focus-ring);
}

/* ─── Stat card grid ──────────────────────────────────────────────── */
.tf-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tf-stat-card {
    background-color: #ffffff;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-md);
    padding: 20px;
}

.tf-stat-card__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tf-stone-500);
    margin-bottom: 12px;
    line-height: 1;
}

.tf-stat-card__value {
    font-size: 30px;
    font-weight: 600;
    color: var(--tf-stone-900);
    letter-spacing: -0.02em;
    line-height: 1;
}

.tf-stat-card__value--danger { color: var(--tf-danger); }
.tf-stat-card__value--warning { color: var(--tf-warning); }

.tf-stat-card__hint {
    font-size: 14px;
    color: var(--tf-stone-700);
    margin-top: 8px;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .tf-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Generic panel (right column on dashboard, etc.) ─────────────── */
.tf-panel {
    background-color: #ffffff;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
}

.tf-panel__head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--tf-stone-100);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tf-panel__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--tf-stone-900);
    letter-spacing: -0.01em;
}

.tf-panel__head .tf-eyebrow {
    margin-bottom: 4px;
}

.tf-panel__head__sub {
    font-size: 14px;
    color: var(--tf-stone-500);
    margin-top: 4px;
}

.tf-panel__head a {
    color: var(--tf-forest-700);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.tf-panel--compact { padding: 20px 24px; }
.tf-panel--compact > .tf-panel__head { padding: 0 0 12px 0; border-bottom: none; }

/* ─── Data table ──────────────────────────────────────────────────── */
.tf-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tf-table thead tr { background-color: var(--tf-stone-50); }

.tf-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tf-stone-500);
    border-bottom: 1px solid var(--tf-stone-100);
}

.tf-table thead th:first-child { padding-left: 24px; }
.tf-table thead th:last-child  { padding-right: 24px; }

.tf-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--tf-stone-100);
    font-size: 14px;
    color: var(--tf-stone-700);
    vertical-align: middle;
}

.tf-table tbody td:first-child { padding-left: 24px; color: var(--tf-stone-900); }
.tf-table tbody td:last-child  { padding-right: 24px; }

.tf-table tbody tr {
    transition: background-color 100ms ease;
}

.tf-table tbody tr:hover { background-color: var(--tf-stone-50); }

.tf-table tbody tr:last-child td { border-bottom: none; }

.tf-table__row-link {
    cursor: pointer;
}

/* Anchor that fills a table cell and inherits cell styling. Used for the
   "click a row to open its detail" navigation pattern, replacing the older
   <tr @onclick> approach which was unreliable when Blazor's interactive
   hydration was still in progress. */
.tf-table__row-anchor {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tf-table__row-anchor:hover .tf-table__user__name {
    color: var(--tf-forest-700);
}

.tf-table__row-link.is-selected {
    background-color: var(--tf-stone-50);
    box-shadow: inset 3px 0 0 0 var(--tf-forest-700);
}

.tf-table__row-link.is-selected td:first-child { padding-left: 21px; }

.tf-table a {
    color: inherit;
    text-decoration: none;
}

.tf-table a:hover { text-decoration: underline; color: var(--tf-forest-700); }

.tf-table__user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tf-table__user__main {
    min-width: 0;
}

.tf-table__user__name {
    font-weight: 500;
    color: var(--tf-stone-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-table__user__email {
    font-size: 13px;
    color: var(--tf-stone-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-table__pagination {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--tf-stone-100);
}

.tf-table__pagination__info { font-size: 14px; color: var(--tf-stone-500); }

/* ─── Avatar (initials in a tinted circle) ────────────────────────── */
.tf-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--tf-stone-100);
    color: var(--tf-stone-700);
    font-weight: 500;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tf-avatar--accent { background: var(--tf-forest-100); color: var(--tf-forest-900); }

.tf-avatar--lg { width: 48px; height: 48px; font-size: 16px; }

/* ─── Status pills (small uppercase labels) ───────────────────────── */
.tf-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--tf-radius-sm);
    line-height: 1.3;
    white-space: nowrap;
}

.tf-pill--accent  { color: var(--tf-forest-900); background: var(--tf-forest-100); }
.tf-pill--neutral { color: var(--tf-stone-700);  background: var(--tf-stone-100); }
.tf-pill--success { color: var(--tf-forest-900); background: #DDE5DF; }
.tf-pill--warning { color: #6E5520;              background: #F5EFD8; }
.tf-pill--danger  { color: #ffffff;              background: var(--tf-danger); }

/* ─── System status (dot + label + value) ─────────────────────────── */
.tf-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.tf-status-list__label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tf-stone-900);
}

.tf-status-list__label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--tf-stone-300);
    flex-shrink: 0;
}

.tf-status-list__label.is-up::before     { background: var(--tf-success); }
.tf-status-list__label.is-warn::before   { background: var(--tf-warning); }
.tf-status-list__label.is-down::before   { background: var(--tf-danger); }

.tf-status-list__value {
    color: var(--tf-stone-500);
    font-family: var(--tf-font-mono);
    font-size: 13px;
    text-align: right;
}

/* ─── Todo list (left accent bar items) ───────────────────────────── */
.tf-todo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-todo li {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--tf-stone-50);
    border-radius: var(--tf-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    color: var(--tf-stone-700);
}

.tf-todo li::before {
    content: "";
    width: 3px;
    background: var(--tf-stone-500);
    border-radius: 2px;
    flex-shrink: 0;
}

.tf-todo li.is-info::before    { background: var(--tf-info); }
.tf-todo li.is-warn::before    { background: var(--tf-warning); }
.tf-todo li.is-danger::before  { background: var(--tf-danger); }
.tf-todo li.is-success::before { background: var(--tf-success); }

.tf-todo strong { color: var(--tf-stone-900); font-weight: 500; }

/* ─── Detail kv list (between rows in panels) ─────────────────────── */
.tf-kv {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-kv li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}

.tf-kv__key { color: var(--tf-stone-500); }

.tf-kv__val { color: var(--tf-stone-900); text-align: right; min-width: 0; word-break: break-all; }

.tf-kv__val code {
    font-family: var(--tf-font-mono);
    font-size: 12px;
    color: var(--tf-stone-700);
    background: var(--tf-stone-100);
    padding: 1px 6px;
    border-radius: var(--tf-radius-sm);
}

.tf-kv__val.is-success { color: var(--tf-success); font-weight: 500; }

/* ─── Activity bullet (dashboard recent events) ───────────────────── */
.tf-activity {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-activity li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tf-stone-100);
}

.tf-activity li:last-child { border-bottom: none; }

.tf-activity__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--tf-stone-300);
    margin-top: 8px;
    flex-shrink: 0;
}

.tf-activity__dot.is-success { background: var(--tf-success); }
.tf-activity__dot.is-warning { background: var(--tf-warning); }
.tf-activity__dot.is-danger  { background: var(--tf-danger); }

.tf-activity__body { flex: 1; min-width: 0; }
.tf-activity__msg { font-size: 14px; color: var(--tf-stone-900); }
.tf-activity__time { font-size: 13px; color: var(--tf-stone-500); margin-top: 2px; }

/* ─── Detail page header (avatar + name + badges) ─────────────────── */
.tf-detail-head {
    background: #ffffff;
    border: 1px solid var(--tf-stone-200);
    border-radius: var(--tf-radius-md);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tf-detail-head__main { display: flex; align-items: center; gap: 16px; min-width: 0; }

.tf-detail-head__id { min-width: 0; }

.tf-detail-head__name {
    font-size: 22px;
    font-weight: 500;
    color: var(--tf-stone-900);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tf-detail-head__email {
    font-size: 14px;
    color: var(--tf-stone-500);
    margin-top: 4px;
}

.tf-detail-head__badges {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Detail page body grid (sections + actions stack) ────────────── */
.tf-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}

@media (max-width: 980px) {
    .tf-detail-grid { grid-template-columns: 1fr; }
}

.tf-detail-grid > .tf-panel { margin: 0; }

/* ─── Empty state ─────────────────────────────────────────────────── */
.tf-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--tf-stone-500);
    background-color: #ffffff;
    border: 1px dashed var(--tf-stone-300);
    border-radius: var(--tf-radius-md);
}

.tf-empty__icon { color: var(--tf-stone-300); margin: 0 auto 12px; display: block; }
.tf-empty__title { color: var(--tf-stone-900); font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.tf-empty__body { font-size: 14px; margin: 0 auto 16px; max-width: 44ch; }

/* ─── Callout (info banner) ───────────────────────────────────────── */
.tf-callout {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--tf-radius-md);
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    align-items: flex-start;
}

.tf-callout > .tf-icon { margin-top: 2px; }
.tf-callout p { margin: 0; }
.tf-callout strong { display: block; margin-bottom: 2px; color: var(--tf-stone-900); font-weight: 600; }

.tf-callout--info    { background-color: #EEF3F8; border-color: #C8D5E5; color: #2C4566; }
.tf-callout--warning { background-color: #F5EED7; border-color: #DEC894; color: #6E5520; }
.tf-callout--danger  { background-color: #F7E1DD; border-color: #E8C8C4; color: #6B2A23; }

/* ─── Form helpers (used by admin forms) ──────────────────────────── */
.tf-form__hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--tf-stone-500);
    line-height: 1.5;
}

/* ─── Misc ────────────────────────────────────────────────────────── */
.tf-secret-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-block: 16px;
}

.tf-secret-row .tf-mfa__key {
    flex: 1;
    min-width: 240px;
    word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
