/* ==========================================================================
   Token Essentials — app layer on top of the TenX design system (tenx.css).
   ========================================================================== */

:root {
    --tk-rail: 14.5rem;
    --tk-tabbar: 4rem;
    --tk-gutter: var(--tx-space-4);
}

html, body { min-height: 100%; }

body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

h1:focus, h1:focus-visible { outline: none; }
a { color: inherit; }

/* ---------- Shell ---------- */
.tk-app { min-height: 100vh; min-height: 100dvh; }

.tk-main {
    min-width: 0;
    padding-bottom: calc(var(--tk-tabbar) + var(--tx-inset-bottom) + var(--tx-space-6));
}

.tk-page {
    width: min(100%, 76rem);
    margin: 0 auto;
    /* Keep clear of the status bar and any cutout. */
    padding: calc(var(--tx-space-6) + var(--tx-inset-top)) calc(var(--tk-gutter) + var(--tx-inset-right))
             var(--tx-space-6) calc(var(--tk-gutter) + var(--tx-inset-left));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--tx-space-5);
    align-content: start;
    animation: tx-fade-up var(--tx-duration-slow) var(--tx-ease);
}

.tk-page--narrow { width: min(100%, 46rem); }

.tk-rail { display: none; }

.tk-brand {
    display: flex;
    align-items: center;
    gap: var(--tx-space-3);
    padding: var(--tx-space-2);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: var(--tx-tracking-tight);
}

.tk-brand__mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    border-radius: 10px;
    background: var(--tx-accent);
    color: var(--tx-on-accent);
}

.tk-brand__mark--lg { width: 3rem; height: 3rem; border-radius: 14px; }
.tk-mark { width: 68%; height: 68%; display: block; }

/* Bottom tabs (phones) */
.tk-tabbar {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--tk-tabbar) + var(--tx-inset-bottom));
    padding-bottom: var(--tx-inset-bottom);
    background: color-mix(in srgb, var(--tx-bg) 84%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--tx-border-subtle);
}

.tk-tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    color: var(--tx-fg-subtle);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: color var(--tx-duration) var(--tx-ease);
}

.tk-tab__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 1.75rem;
    border-radius: var(--tx-radius-full);
    font-size: 1.25rem;
    transition: background-color var(--tx-duration) var(--tx-ease);
}

.tk-tab.active { color: var(--tx-fg); }
.tk-tab.active .tk-tab__icon { background: var(--tx-surface-active); }

@media (max-width: 899px) {
    .tx-toaster { bottom: calc(var(--tk-tabbar) + var(--tx-inset-bottom) + var(--tx-space-3)); }
}

@media (min-width: 900px) {
    :root { --tk-gutter: var(--tx-space-8); }

    .tk-app { display: grid; grid-template-columns: var(--tk-rail) minmax(0, 1fr); }
    .tk-tabbar { display: none; }
    .tk-main { padding-bottom: var(--tx-space-10); }
    .tk-page { padding-top: calc(var(--tx-space-8) + var(--tx-inset-top)); gap: var(--tx-space-6); }

    .tk-rail {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        gap: var(--tx-space-6);
        padding: var(--tx-space-6) var(--tx-space-4);
        border-right: 1px solid var(--tx-border-subtle);
        background: var(--tx-bg-subtle);
    }

    .tk-rail__nav { display: grid; gap: 2px; }

    .tk-rail__link {
        display: flex;
        align-items: center;
        gap: var(--tx-space-3);
        height: 2.5rem;
        padding: 0 var(--tx-space-3);
        border-radius: var(--tx-radius-sm);
        color: var(--tx-fg-muted);
        text-decoration: none;
        font-size: var(--tx-text-sm);
        font-weight: 500;
        transition: background-color var(--tx-duration-fast) var(--tx-ease), color var(--tx-duration-fast) var(--tx-ease);
    }

    .tk-rail__link:hover { background: var(--tx-surface-hover); color: var(--tx-fg); }
    .tk-rail__link.active { background: var(--tx-surface); color: var(--tx-fg); box-shadow: var(--tx-shadow-xs), 0 0 0 1px var(--tx-border-subtle); }

    .tk-rail__foot {
        margin-top: auto;
        display: flex;
        gap: var(--tx-space-2);
        padding: var(--tx-space-3);
        color: var(--tx-fg-subtle);
        font-size: var(--tx-text-xs);
        line-height: var(--tx-leading-snug);
    }
}

/* ---------- Header ---------- */
.tk-header { display: flex; align-items: flex-start; gap: var(--tx-space-4); }
.tk-header__titles { display: grid; gap: 2px; min-width: 0; }

.tk-header__title {
    margin: 0;
    font-size: var(--tx-text-2xl);
    font-weight: 600;
    letter-spacing: var(--tx-tracking-tight);
    line-height: var(--tx-leading-tight);
}

.tk-header__subtitle { margin: 0; font-size: var(--tx-text-sm); color: var(--tx-fg-muted); }
.tk-header__actions { margin-left: auto; display: flex; gap: var(--tx-space-2); flex: none; }

/* ---------- Panels & layout ---------- */
.tk-panel {
    display: grid;
    gap: var(--tx-space-5);
    padding: var(--tx-space-5);
    background: var(--tx-surface);
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-xl);
}

.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tx-space-5); align-items: start; }

@media (min-width: 1000px) {
    .tk-layout { grid-template-columns: minmax(0, 1fr) 24rem; gap: var(--tx-space-6); }
    .tk-side { position: sticky; top: var(--tx-space-8); }
}

.tk-group { display: grid; gap: var(--tx-space-3); margin: 0; padding: 0; border: 0; min-width: 0; }

.tk-legend, .tk-group-block__title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--tx-space-3);
    width: 100%;
    margin: 0 0 var(--tx-space-1);
    padding: 0;
    font-size: var(--tx-text-sm);
    font-weight: 600;
}

.tk-group-block { display: grid; gap: var(--tx-space-2); }

.tk-group-block__title {
    font-size: var(--tx-text-xs);
    letter-spacing: var(--tx-tracking-wide);
    text-transform: uppercase;
    color: var(--tx-fg-subtle);
    padding: 0 var(--tx-space-1);
}

.tk-form { display: grid; gap: var(--tx-space-4); }

/* ---------- Type picker ---------- */
.tk-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--tx-space-2); }

.tk-kind {
    all: unset;
    box-sizing: border-box;
    display: grid;
    gap: 2px;
    padding: var(--tx-space-3);
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-md);
    background: var(--tx-surface);
    cursor: pointer;
    transition: border-color var(--tx-duration) var(--tx-ease), box-shadow var(--tx-duration) var(--tx-ease), background-color var(--tx-duration) var(--tx-ease);
}

.tk-kind:hover { border-color: var(--tx-border-strong); }
.tk-kind:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: 2px; }
.tk-kind.is-selected { border-color: var(--tx-fg); box-shadow: 0 0 0 1px var(--tx-fg); }
.tk-kind__name { font-weight: 600; font-size: var(--tx-text-sm); }
.tk-kind__blurb { font-size: var(--tx-text-xs); color: var(--tx-fg-subtle); line-height: var(--tx-leading-snug); }

/* ---------- Chips, toggles, segmented ---------- */
.tk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tx-space-2); }
.tk-chips__label { font-size: var(--tx-text-xs); color: var(--tx-fg-subtle); }

.tk-chip {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 2rem;
    padding: 0 var(--tx-space-3);
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-full);
    background: var(--tx-surface);
    color: var(--tx-fg-muted);
    font-size: var(--tx-text-xs);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color var(--tx-duration) var(--tx-ease), color var(--tx-duration) var(--tx-ease), border-color var(--tx-duration) var(--tx-ease);
}

.tk-chip:hover:not(:disabled) { color: var(--tx-fg); border-color: var(--tx-border-strong); }
.tk-chip:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: 2px; }
.tk-chip.is-selected { background: var(--tx-accent); border-color: var(--tx-accent); color: var(--tx-on-accent); }
.tk-chip:disabled { opacity: 0.4; cursor: not-allowed; }

.tk-count { display: grid; gap: var(--tx-space-3); }
.tk-count__field { max-width: 9rem; }

.tk-segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: var(--tx-radius-md);
    background: var(--tx-surface-sunken);
}

.tk-segmented__item {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tx-space-2);
    padding: var(--tx-space-2) var(--tx-space-2);
    border-radius: var(--tx-radius-sm);
    color: var(--tx-fg-muted);
    font-size: var(--tx-text-xs);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--tx-duration) var(--tx-ease), color var(--tx-duration) var(--tx-ease), box-shadow var(--tx-duration) var(--tx-ease);
}

.tk-segmented__item:hover:not(:disabled) { color: var(--tx-fg); }
.tk-segmented__item:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: 1px; }
.tk-segmented__item.is-selected { background: var(--tx-surface-raised); color: var(--tx-fg); box-shadow: var(--tx-shadow-sm); }
.tk-segmented__item:disabled { opacity: 0.4; cursor: not-allowed; }

.tk-range { width: 100%; accent-color: var(--tx-accent); cursor: pointer; }

/* ---------- Results ---------- */
.tk-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--tx-space-3);
    align-content: start;
    min-width: 0;
}

.tk-results__bar { display: flex; align-items: center; gap: var(--tx-space-3); flex-wrap: wrap; min-width: 0; }
.tk-results__count { font-size: var(--tx-text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-results__actions { margin-left: auto; display: flex; gap: var(--tx-space-2); flex-wrap: wrap; }

.tk-ids {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 0;
    padding: var(--tx-space-1);
    list-style: none;
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-lg);
    background: var(--tx-surface);
}

.tk-ids--virtual { display: block; max-height: min(70vh, 40rem); overflow: auto; }

.tk-id { min-width: 0; }

.tk-id__button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--tx-space-3);
    width: 100%;
    height: 2.625rem;
    padding: 0 var(--tx-space-3);
    border-radius: var(--tx-radius-sm);
    cursor: pointer;
    transition: background-color var(--tx-duration-fast) var(--tx-ease);
}

.tk-id__button:hover { background: var(--tx-surface-hover); }
.tk-id__button:active { background: var(--tx-surface-active); }
.tk-id__button:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: -2px; }

.tk-id__index {
    flex: none;
    width: 2.25rem;
    color: var(--tx-fg-disabled);
    font-size: var(--tx-text-xs);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.tk-id__value {
    flex: 1;
    min-width: 0;
    font-family: var(--tx-font-mono);
    font-size: var(--tx-text-sm);
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-user-select: text;
    user-select: text;
}

.tk-id__icon { flex: none; color: var(--tx-fg-disabled); font-size: 1rem; }
.tk-id__button:hover .tk-id__icon { color: var(--tx-fg-muted); }

.tk-save { display: grid; gap: var(--tx-space-2); }

/* ---------- Inspector ---------- */
.tk-verdict { display: grid; gap: var(--tx-space-2); justify-items: start; }

.tk-verdict__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--tx-space-1) var(--tx-space-3);
    border-radius: var(--tx-radius-full);
    background: var(--tx-accent);
    color: var(--tx-on-accent);
    font-size: var(--tx-text-sm);
    font-weight: 600;
}

.tk-verdict__note { margin: 0; color: var(--tx-fg-muted); font-size: var(--tx-text-sm); text-wrap: pretty; }

.tk-fields {
    display: grid;
    margin: 0;
    border: 1px solid var(--tx-border-subtle);
    border-radius: var(--tx-radius-md);
    background: var(--tx-bg-subtle);
}

.tk-field {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: var(--tx-space-3);
    padding: var(--tx-space-3) var(--tx-space-4);
    border-top: 1px solid var(--tx-border-subtle);
}

.tk-field:first-child { border-top: 0; }
.tk-field dt { color: var(--tx-fg-subtle); font-size: var(--tx-text-sm); }
.tk-field dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 420px) {
    .tk-field { grid-template-columns: 1fr; gap: 2px; }
}

.tk-variants { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }

.tk-variant {
    all: unset;
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--tx-space-3);
    width: 100%;
    padding: var(--tx-space-2) var(--tx-space-3);
    border-radius: var(--tx-radius-sm);
    cursor: pointer;
    transition: background-color var(--tx-duration-fast) var(--tx-ease);
}

.tk-variant:hover { background: var(--tx-surface-hover); }
.tk-variant:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: -2px; }
.tk-variant__label { flex: none; width: 8.5rem; font-size: var(--tx-text-xs); color: var(--tx-fg-subtle); }

.tk-variant__value {
    flex: 1;
    min-width: 0;
    font-family: var(--tx-font-mono);
    font-size: var(--tx-text-sm);
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .tk-variant { flex-wrap: wrap; gap: 2px var(--tx-space-3); }
    .tk-variant__label { width: auto; }
    .tk-variant__value { flex-basis: 100%; }
}

/* ---------- Guide ---------- */
.tk-prose { gap: var(--tx-space-4); line-height: var(--tx-leading-normal); }
.tk-prose h2 { margin: var(--tx-space-2) 0 0; font-size: var(--tx-text-lg); font-weight: 600; letter-spacing: var(--tx-tracking-tight); }
.tk-prose h2:first-child { margin-top: 0; }
.tk-prose p { margin: 0; color: var(--tx-fg-muted); text-wrap: pretty; }
.tk-prose strong { color: var(--tx-fg); font-weight: 600; }
.tk-prose code { font-family: var(--tx-font-mono); font-size: 0.9em; padding: 0.1em 0.35em; border-radius: var(--tx-radius-xs); background: var(--tx-surface-sunken); }

.tk-table-wrap { overflow-x: auto; }

.tk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--tx-text-sm);
}

.tk-table th, .tk-table td {
    padding: var(--tx-space-3);
    text-align: left;
    border-bottom: 1px solid var(--tx-border-subtle);
    vertical-align: top;
}

.tk-table th { font-weight: 600; color: var(--tx-fg); white-space: nowrap; }
.tk-table td { color: var(--tx-fg-muted); }
.tk-table tbody tr:last-child td { border-bottom: 0; }
.tk-table td:first-child { font-family: var(--tx-font-mono); color: var(--tx-fg); }

/* ---------- Settings ---------- */
.tk-setting { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tx-space-4); }
.tk-setting__text { display: grid; gap: 2px; flex: 1; min-width: 10rem; }
.tk-setting__label { font-weight: 500; }
.tk-setting__desc { font-size: var(--tx-text-sm); color: var(--tx-fg-muted); }

.tk-about { display: flex; align-items: flex-start; gap: var(--tx-space-4); }
.tk-about p { margin: 0 0 var(--tx-space-1); }
.tk-about__name { font-weight: 600; }

/* ---------- Brand link ---------- */
.tk-tenx {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: var(--tx-space-2);
    margin-top: var(--tx-space-3);
    padding: var(--tx-space-2) var(--tx-space-4);
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-full);
    background: var(--tx-surface);
    color: var(--tx-fg);
    font-size: var(--tx-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--tx-duration) var(--tx-ease), border-color var(--tx-duration) var(--tx-ease), transform var(--tx-duration-fast) var(--tx-ease);
}

.tk-tenx:hover { background: var(--tx-surface-hover); border-color: var(--tx-border-strong); }
.tk-tenx:active { transform: scale(0.98); }
.tk-tenx:focus-visible { outline: 2px solid var(--tx-ring); outline-offset: 2px; }
.tk-tenx__go { font-size: 0.9em; color: var(--tx-fg-subtle); }

/* ---------- Blazor plumbing ---------- */
#blazor-error-ui {
    color-scheme: light only;
    position: fixed;
    z-index: 3000;
    left: 0;
    bottom: 0;
    display: none;
    width: 100%;
    padding: 0.75rem 1.25rem calc(0.75rem + var(--tx-inset-bottom));
    background: var(--tx-danger-soft);
    color: var(--tx-danger);
    box-shadow: 0 -1px 2px rgb(0 0 0 / 0.2);
    font-size: var(--tx-text-sm);
}

#blazor-error-ui .dismiss { position: absolute; right: 0.75rem; top: 0.5rem; cursor: pointer; }

.blazor-error-boundary {
    padding: var(--tx-space-4);
    border-radius: var(--tx-radius-md);
    background: var(--tx-danger-soft);
    color: var(--tx-danger);
}

.blazor-error-boundary::after { content: "Something went wrong on this screen."; }

.status-bar-safe-area { display: none; }

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: var(--tx-inset-top);
        background-color: var(--tx-bg);
        width: 100%;
        z-index: 55;
    }
}

/* ---------- Token inspector ---------- */
.tk-token-input textarea {
    font-family: var(--tx-font-mono);
    font-size: var(--tx-text-sm);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.tk-summary { display: flex; flex-wrap: wrap; gap: var(--tx-space-2); }

.tk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--tx-space-1) var(--tx-space-3);
    border-radius: var(--tx-radius-full);
    background: var(--tx-surface-sunken);
    font-size: var(--tx-text-xs);
    font-weight: 500;
}

.tk-chip--algorithm { background: var(--tx-accent); color: var(--tx-on-accent); font-family: var(--tx-font-mono); }
.tk-chip--live { background: var(--tx-success-soft); color: var(--tx-success); }
.tk-chip--expired { background: var(--tx-danger-soft); color: var(--tx-danger); }
.tk-chip--pending { background: var(--tx-warning-soft); color: var(--tx-warning); }
.tk-chip--quiet { color: var(--tx-fg-subtle); }

.tk-side { display: grid; gap: var(--tx-space-5); align-content: start; min-width: 0; }

.tk-claims {
    display: grid;
    margin: 0;
    border: 1px solid var(--tx-border-subtle);
    border-radius: var(--tx-radius-md);
    background: var(--tx-bg-subtle);
}

.tk-claim {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: var(--tx-space-3);
    padding: var(--tx-space-3) var(--tx-space-4);
    border-top: 1px solid var(--tx-border-subtle);
}

.tk-claim:first-child { border-top: 0; }
.tk-claim dt code { font-family: var(--tx-font-mono); font-size: var(--tx-text-sm); color: var(--tx-fg); }
.tk-claim dd { display: grid; gap: 2px; margin: 0; min-width: 0; }
.tk-claim__value { overflow-wrap: anywhere; }
.tk-claim__moment { font-size: var(--tx-text-xs); color: var(--tx-fg-muted); }
.tk-claim__description { font-size: var(--tx-text-xs); color: var(--tx-fg-subtle); }

@media (max-width: 480px) {
    .tk-claim { grid-template-columns: 1fr; gap: 2px; }
}

.tk-verdict {
    display: flex;
    align-items: flex-start;
    gap: var(--tx-space-3);
    padding: var(--tx-space-3) var(--tx-space-4);
    border-radius: var(--tx-radius-md);
    background: var(--tx-surface-sunken);
    font-size: var(--tx-text-sm);
}

.tk-verdict .tx-icon { flex: none; font-size: 1.1rem; margin-top: 1px; }
.tk-verdict--valid { background: var(--tx-success-soft); color: var(--tx-success); }
.tk-verdict--invalid { background: var(--tx-danger-soft); color: var(--tx-danger); }
.tk-verdict--badkey, .tk-verdict--unsecured { background: var(--tx-warning-soft); color: var(--tx-warning); }

.tk-notes { display: grid; gap: var(--tx-space-3); margin: 0; padding: 0; list-style: none; }
.tk-note { display: grid; gap: 2px; padding-left: var(--tx-space-3); border-left: 3px solid var(--tx-border-strong); }
.tk-note__title { font-weight: 600; font-size: var(--tx-text-sm); }
.tk-note__detail { font-size: var(--tx-text-sm); color: var(--tx-fg-muted); text-wrap: pretty; }
.tk-note--warning { border-left-color: var(--tx-warning); }
.tk-note--critical { border-left-color: var(--tx-danger); }

.tk-raw summary { width: fit-content; font-size: var(--tx-text-sm); color: var(--tx-fg-subtle); cursor: pointer; }
.tk-raw summary:hover { color: var(--tx-fg); }
.tk-raw__body { display: grid; justify-items: start; gap: var(--tx-space-2); margin-top: var(--tx-space-3); }

.tk-raw pre, .tk-token-output {
    width: 100%;
    max-height: 18rem;
    margin: 0;
    padding: var(--tx-space-3);
    overflow: auto;
    border-radius: var(--tx-radius-sm);
    background: var(--tx-surface-sunken);
    font-family: var(--tx-font-mono);
    font-size: var(--tx-text-xs);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    -webkit-user-select: text;
    user-select: text;
}

.tk-token-output { font-size: var(--tx-text-sm); min-height: 5rem; }

.tk-claim-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--tx-space-2); align-items: start; }
.tk-button-row { display: flex; flex-wrap: wrap; gap: var(--tx-space-2); }

.tk-empty {
    display: grid;
    justify-items: center;
    gap: var(--tx-space-2);
    padding: var(--tx-space-10) var(--tx-space-6);
    text-align: center;
    border: 1px dashed var(--tx-border-strong);
    border-radius: var(--tx-radius-xl);
}

.tk-empty__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--tx-space-2);
    border-radius: var(--tx-radius-full);
    background: var(--tx-surface-sunken);
    color: var(--tx-fg-muted);
}

.tk-empty__icon .tk-mark { width: 60%; height: 60%; }
.tk-empty__title { margin: 0; font-weight: 600; }
.tk-empty__text { margin: 0 0 var(--tx-space-3); max-width: 32rem; color: var(--tx-fg-muted); font-size: var(--tx-text-sm); text-wrap: pretty; }
