﻿[data-label]::before {
    font-weight: 500 !important;
    text-transform: capitalize !important;
}

th:first-letter {
    text-transform: capitalize;
}

.mud-sm-table .mud-table-body {
    border-top: none !important;
}

.mud-xl-table .mud-table-body {
    border-top: none !important;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    padding-top: 13px;
    padding-bottom: 13px;
}

.mud-input-label-outlined.mud-input-label-margin-dense {
    transform: translate(14px, 14px) scale(1);
}

.mud-dialog-width-full {
    width: calc(100% - 32px);
}

.mud-input-label-outlined {
    background-color: var(--mud-palette-background);
}

svg {
    width: 95%;
    height: 95%;
}

:root {
    --mud-typography-h4-weight: 500 !important;
    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    /* Muted tenant line: enough blue to read as a category on scan,
       not enough to compete with warn/error states */
    --tenant-line: color-mix(in srgb, var(--mud-palette-info) 45%, var(--mud-palette-lines-default));
}

@media (max-width: 600px) {
    :root {
        --mud-typography-h4-size: 1.7rem !important;
        --mud-typography-h5-size: 1.3rem !important;
    }
}

/* Shared entrance animations */
.anim-fade-in {
    opacity: 0;
    animation: anim-fade-in 320ms ease forwards;
}
.anim-slide-up {
    opacity: 0;
    animation: anim-slide-up 320ms ease forwards;
}
.anim-slide-left {
    opacity: 0;
    animation: anim-slide-left 320ms ease forwards;
}

@keyframes anim-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes anim-slide-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes anim-slide-left {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Nav active-state override — left-border accent instead of filled background */
.mud-nav-link.active {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent) !important;
    border-left: 3px solid var(--mud-palette-primary) !important;
    border-radius: 0 4px 4px 0 !important;
    padding-left: calc(1rem - 3px) !important;
}
.mud-nav-link.active .mud-nav-link-text {
    font-weight: 600 !important;
}

/* Nav section label */
.nav-section-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    padding: 1.25rem 1rem 0.375rem;
    opacity: 0.7;
    display: block;
}

/* Manage page section cards */
.section-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    background: var(--mud-palette-surface);
}
.section-card-heading {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 1rem;
}

/* Header action chips — icon-only circle at rest, expands to icon+label pill on hover/focus */
.header-action-chip {
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    cursor: pointer;
    color: var(--mud-palette-primary);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
}
.header-action-chip:hover,
.header-action-chip:focus-visible {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 25%, transparent);
}
.header-action-chip .mud-icon-root {
    flex-shrink: 0;
}
.header-action-chip-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 250ms ease-out, opacity 200ms ease-out,
                padding 250ms ease-out;
}
.header-action-chip:hover .header-action-chip-label,
.header-action-chip:focus-visible .header-action-chip-label {
    max-width: 160px;
    opacity: 1;
    padding-left: 6px;
    padding-right: 4px;
}
/* Touch devices: stay icon-only, MudTooltip is the fallback */
@media (hover: none) {
    .header-action-chip:hover .header-action-chip-label {
        max-width: 0;
        opacity: 0;
        padding: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .header-action-chip-label {
        transition: none;
    }
}

/* Compact bottom nav active state */
.mud-bottom-appbar .mud-nav-link.active {
    border-left: none !important;
    border-top: 3px solid var(--mud-palette-primary) !important;
    background-color: transparent !important;
    padding-left: 1rem !important;
}

/* LockManage tab active indicator */
.mud-tab-active {
    border-bottom: 3px solid var(--mud-palette-primary) !important;
    background-color: transparent !important;
}

/* Role selector cards */
.role-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 600px) {
    .role-card-grid { grid-template-columns: 1fr; }
}
.role-card {
    position: relative;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
    background: var(--mud-palette-background);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    user-select: none;
}
.role-card:hover:not(.role-card--disabled) {
    border-color: var(--mud-palette-primary);
}
.role-card--selected {
    border-color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-background));
}
.role-card--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.role-card-check {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}
.role-card--selected .role-card-check {
    opacity: 1;
    transform: scale(1);
}
.role-card-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.375rem;
    flex-shrink: 0;
}
.role-card-name {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}
.role-card-desc {
    font-size: 0.775rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.45;
}

/* Lock permission rows */
.lock-permission-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}
.lock-row {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    transition: border-color 160ms ease;
    background: var(--mud-palette-background);
}
.lock-row--active {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 40%, var(--mud-palette-lines-default));
}
.lock-row-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    flex-wrap: wrap;
}
.lock-row-name {
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--mud-palette-text-primary);
    flex: 1;
    min-width: 0;
}
.lock-row-perms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding-top: 0.625rem;
    margin-top: 0.375rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}
.perm-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 5px;
    font-size: 0.725rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1.5px solid var(--mud-palette-lines-default);
    background: transparent;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
    user-select: none;
    line-height: 1.6;
    white-space: nowrap;
}
.perm-pill:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}
.perm-pill--on {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}
.lock-user-detail {
    margin-top: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    background: var(--mud-palette-dark-hover);
}
.lock-user-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    color: var(--mud-palette-text-secondary);
}

/* Device status row (lock/bridge identity cards) */
.device-status-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.375rem 0 0.625rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot--online {
    background: var(--mud-palette-success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-success) 18%, transparent);
    animation: dot-pulse 2.2s ease infinite;
}
.status-dot--offline {
    background: var(--mud-palette-error);
}

@keyframes dot-pulse {
     0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mud-palette-success) 50%, transparent); }
     60%  { box-shadow: 0 0 0 5px rgba(76, 175, 80, 0); }
     100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
 }

/* Stat cards for sparse identity cards (token, token group) */
.identity-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.625rem;
    margin-top: 0.75rem;
}
.identity-stat {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-lines-default);
    min-width: 0;
}
.identity-stat-value {
    font-size: clamp(0.7rem, 3.0vw, 1.4rem);
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--mud-palette-text-primary);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}
.identity-stat-label {
    font-size: 0.725rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 0.2rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Compact identity stat tiles (bridge identity details) */
.identity-stat-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}
.identity-stat--compact {
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
}
.identity-stat--compact .identity-stat-value {
    font-size: 0.8125rem;
    font-weight: 600;
}
.identity-stat--compact .identity-stat-label {
    font-size: 0.65rem;
    margin-top: 0.1rem;
}

.identity-stat .identity-copy-btn {
    opacity: 0;
    transition: opacity 120ms ease;
}
.identity-stat:hover .identity-copy-btn,
.identity-stat .identity-copy-btn:focus-visible {
    opacity: 1;
}
@media (hover: none) {
    .identity-stat .identity-copy-btn {
        opacity: 1;
    }
}

/* User table avatar */
.user-avatar {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    color: var(--mud-palette-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    flex-shrink: 0;
    text-transform: uppercase;
}

/* ─── Splash Screen (ksp) ──────────────────────────────────────── */
.ksp {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.75rem;
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

/* Enter — logo rises, body fades in with a short delay */
.ksp--entering .ksp-logo {
    animation: ksp-rise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ksp--entering .ksp-body {
    animation: ksp-fade 480ms ease 380ms both;
}

/* Visible — already animated once this session; show immediately */
.ksp--visible .ksp-logo,
.ksp--visible .ksp-body {
    opacity: 1;
}

/* Exit — whole overlay fades to transparent */
.ksp--exiting {
    animation: ksp-out 480ms ease forwards;
    pointer-events: none;
}

@keyframes ksp-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ksp-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ksp-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Logo */
.ksp-svg {
    width: 10rem;
    height: 10rem;
    display: block;
}

/* Body — progress bar + tip */
.ksp-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.375rem;
    width: 200px;
}

/* Progress track */
.ksp-progress-track {
    width: 100%;
    height: 2px;
    background: color-mix(in srgb, var(--mud-palette-text-primary) 10%, transparent);
    border-radius: 1px;
    overflow: hidden;
}

.ksp-progress-fill {
    height: 100%;
    background: var(--mud-palette-primary);
    border-radius: 1px;
    transition: width 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Indeterminate shuttle */
.ksp-progress-fill--indeterminate {
    width: 38% !important;
    animation: ksp-shuttle 1.8s ease-in-out infinite;
}

@keyframes ksp-shuttle {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(390%); }
}

/* Tip text */
.ksp-tip {
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ksp-tip-text {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--mud-palette-text-secondary);
    text-align: center;
    max-width: 230px;
    opacity: 0;
    transition: opacity 350ms ease;
}

.ksp-tip-text--visible {
    opacity: 1;
}

/* ── Activity Log Feed ──────────────────────────────────────── */
@keyframes al-shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}
.al-skel {
    background: linear-gradient(
        90deg,
        var(--mud-palette-lines-default) 25%,
        color-mix(in srgb, var(--mud-palette-lines-default) 35%, var(--mud-palette-background)) 50%,
        var(--mud-palette-lines-default) 75%
    );
    background-size: 1600px 100%;
    animation: al-shimmer 1.6s ease-in-out infinite;
    border-radius: 4px;
}
.al-skel-icon {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 8px;
    flex-shrink: 0;
}
.al-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}
.al-stat-chip {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-text-secondary);
    border: 1px solid var(--mud-palette-lines-default);
    letter-spacing: 0.04em;
}
.al-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 960px) {
    .al-layout { grid-template-columns: 1fr; }
}
.al-filters {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 1.125rem 1rem;
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}
.al-filters-title {
    font-family: var(--font-mono);
    font-size: 0.6375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    opacity: 0.7;
}
.al-filter-divider {
    height: 1px;
    background: var(--mud-palette-lines-default);
    margin: 0.125rem 0;
}
.al-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.125rem 0 0.375rem;
}
.al-feed {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.al-date-separator {
    font-family: var(--font-mono);
    font-size: 0.6375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    opacity: 0.6;
    padding: 1.25rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    margin-bottom: 0.25rem;
}
.al-date-separator:first-child { padding-top: 0; }
.al-event-row {
    display: grid;
    grid-template-columns: 2.125rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 100ms ease;
}
.al-event-row:hover { background: var(--mud-palette-action-hover); }
.al-event-icon {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.al-ev-access  { background: color-mix(in srgb, #22c55e 14%, transparent); color: #22c55e; }
.al-ev-config  { background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent); color: var(--mud-palette-primary); }
.al-ev-hardware { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #f59e0b; }
.al-ev-remote  { background: color-mix(in srgb, #8FA5A2 18%, transparent); color: #8FA5A2; }
.al-event-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.al-event-badge {
    font-family: var(--font-mono);
    font-size: 0.5875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.1rem 0.375rem;
    border-radius: 4px;
    width: fit-content;
    line-height: 1.6;
}
.al-event-description {
    font-size: 0.875rem;
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.al-event-time {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.7;
}
.al-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 0.75rem;
    color: var(--mud-palette-text-secondary);
    text-align: center;
}
.al-pagination {
    padding: 1.5rem 0.75rem;
    display: flex;
    justify-content: center;
}

/* Timeout message */
.ksp-timeout {
    font-size: 0.8125rem;
    color: var(--mud-palette-error);
    text-align: center;
    margin: 0;
}

/* ── Entity table cells ──────────────────────────────────────── */
.entity-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-sans);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    line-height: 1.4;
}
.entity-count-pill--zero {
    background: var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
}
.cell-mono {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
.cell-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cell-badge--yes {
    background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent);
    color: var(--mud-palette-success);
}
.cell-badge--no {
    background: color-mix(in srgb, var(--mud-palette-text-secondary) 8%, transparent);
    color: var(--mud-palette-text-secondary);
}
.cell-badge--warn {
    background: color-mix(in srgb, var(--mud-palette-warning) 12%, transparent);
    color: var(--mud-palette-warning);
}
.cell-badge--error {
    background: color-mix(in srgb, var(--mud-palette-error) 12%, transparent);
    color: var(--mud-palette-error);
}

/* ── Assigned-token rows: bordered row + folder tab ──────────── */
/* Bordered row = assigned to a user; info-blue = tenant; warn
   amber = incomplete Apple setup. The warn border wins over the
   category border while the state is active.
   Tabs live in a .row-tabs strip that straddles the row's top
   border like file-folder tabs, so an ownership tab and a state
   tab can sit side by side.
   The border is drawn on the cells, not as a tr outline — the
   cells' own MudBlazor border-bottom paints over a tr outline. */
.row-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 1;
}
.row-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    line-height: 1.5;
    white-space: nowrap;
}
.row-tab--tenant {
    border-color: var(--tenant-line);
}
.row-tab--warn {
    border: 1.5px solid var(--mud-palette-warning);
}
.row-tab__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mud-palette-text-secondary);
}
.row-tab--tenant .row-tab__label {
    color: var(--mud-palette-info);
}
.row-tab--warn .row-tab__label {
    color: var(--mud-palette-warning);
}
.row-tab__email {
    display: inline-block;
    color: var(--mud-palette-text-secondary);
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
@media (max-width: 600px) {
    .row-tab__email {
        max-width: 8rem;
    }
}
/* Bordered rows + straddling tabs are desktop-only (≥960px). Below
   that — including 600–959px where the table is still tabular and
   <600px where MudTable stacks cells (Breakpoint.Sm) — rows get no
   border and the tabs simply flow inline in the nickname cell. */
@media (min-width: 960px) {
    tr.assigned-row > td {
        position: relative;
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
        border-top: 1px solid var(--mud-palette-lines-default);
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }
    tr.assigned-row > td:first-child {
        border-left: 1px solid var(--mud-palette-lines-default);
    }
    tr.assigned-row > td:last-child {
        border-right: 1px solid var(--mud-palette-lines-default);
    }
    tr.assigned-row--tenant > td {
        border-top: 1px solid var(--tenant-line);
        border-bottom: 1px solid var(--tenant-line) !important;
    }
    tr.assigned-row--tenant > td:first-child {
        border-left: 1px solid var(--tenant-line);
    }
    tr.assigned-row--tenant > td:last-child {
        border-right: 1px solid var(--tenant-line);
    }
    tr.assigned-row--warn > td {
        border-top: 1.5px solid var(--mud-palette-warning);
        border-bottom: 1.5px solid var(--mud-palette-warning) !important;
    }
    tr.assigned-row--warn > td:first-child {
        border-left: 1.5px solid var(--mud-palette-warning);
    }
    tr.assigned-row--warn > td:last-child {
        border-right: 1.5px solid var(--mud-palette-warning);
    }
    tr.assigned-row .row-tabs {
        position: absolute;
        top: 0;
        left: 0.5rem;
        transform: translateY(-50%);
    }
}
@media (max-width: 960px) {
    tr.assigned-row .row-tabs {
        margin-right: 0.4rem;
    }
}
/* Card variant: same tab strip on the dev-card border, all widths */
.dev-card > .row-tabs {
    position: absolute;
    top: 0;
    left: 0.75rem;
    transform: translateY(-50%);
}
/* Doubled class beats the later .dev-card:hover border-color, so
   tenant/warn cards keep their border on hover. */
.dev-card.dev-card--tenant,
.dev-card.dev-card--tenant:hover {
    border-color: var(--tenant-line);
}
.dev-card.dev-card--warn,
.dev-card.dev-card--warn:hover {
    border-color: var(--mud-palette-warning);
}

/* ── Developer dashboards ────────────────────────────────────── */
.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.method-badge--get    { background: color-mix(in srgb, #22c55e 12%, transparent); color: #16a34a; }
.method-badge--post   { background: color-mix(in srgb, #3b82f6 12%, transparent); color: #2563eb; }
.method-badge--put    { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #d97706; }
.method-badge--patch  { background: color-mix(in srgb, #8b5cf6 12%, transparent); color: #7c3aed; }
.method-badge--delete { background: color-mix(in srgb, #ef4444 12%, transparent); color: #dc2626; }
.view-toggle {
    display: inline-flex;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
}
.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--mud-palette-text-secondary);
    transition: background 120ms ease, color 120ms ease;
    padding: 0;
}
.view-toggle-btn:hover { background: var(--mud-palette-action-hover); }
.view-toggle-btn--active {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}
.connection-toggle {
    display: inline-flex;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
}
.connection-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.25rem;
    padding: 0 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 120ms ease, color 120ms ease;
}
.connection-toggle-btn:hover { background: var(--mud-palette-action-hover); }
.connection-toggle-btn:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}
.connection-toggle-btn--active {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}

/* ── Connection toggle coach mark: one-time "this is new" callout ── */
.connection-toggle-anchor {
    position: relative;
    display: inline-flex;
}
.connection-toggle-coachmark-dot {
    position: absolute;
    top: -0.3rem;
    right: -0.3rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    box-shadow: 0 0 0 2px var(--mud-palette-surface);
    animation: connection-toggle-coachmark-pulse 2.2s ease infinite;
    pointer-events: none;
}
@keyframes connection-toggle-coachmark-pulse {
    0%   { box-shadow: 0 0 0 2px var(--mud-palette-surface), 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 55%, transparent); }
    60%  { box-shadow: 0 0 0 2px var(--mud-palette-surface), 0 0 0 7px color-mix(in srgb, var(--mud-palette-primary) 0%, transparent); }
    100% { box-shadow: 0 0 0 2px var(--mud-palette-surface), 0 0 0 7px color-mix(in srgb, var(--mud-palette-primary) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    .connection-toggle-coachmark-dot { animation: none; }
}
.connection-toggle-coachmark {
    position: relative;
    width: 17.5rem;
    max-width: calc(100vw - 2rem);
    margin-top: 0.65rem;
    padding: 0.85rem 1rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-primary);
    background: var(--mud-palette-surface);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.connection-toggle-coachmark::before {
    content: "";
    position: absolute;
    top: -0.43rem;
    left: 1.1rem;
    width: 0.7rem;
    height: 0.7rem;
    background: var(--mud-palette-surface);
    border-left: 1px solid var(--mud-palette-primary);
    border-top: 1px solid var(--mud-palette-primary);
    transform: rotate(45deg);
}
.connection-toggle-coachmark__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}
.connection-toggle-coachmark__title {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}
.connection-toggle-coachmark__body {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--mud-palette-text-secondary);
}
.connection-toggle-coachmark__dismiss {
    display: inline-flex;
    align-items: center;
    height: 1.85rem;
    padding: 0 0.75rem;
    border: none;
    border-radius: 6px;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-white);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 120ms ease;
}
.connection-toggle-coachmark__dismiss:hover { opacity: 0.88; }
.connection-toggle-coachmark__dismiss:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}
.dev-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}
@media (min-width: 600px) {
    .dev-card-list {
        grid-template-columns: repeat(auto-fill, 1fr);
    }
}
@media (min-width: 960px) {
    .dev-card-list {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}
.dev-card {
    position: relative;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 1.125rem 1.25rem;
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.dev-card:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 35%, var(--mud-palette-lines-default));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
}
.dev-card-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--mud-palette-text-primary);
}
.dev-card-key {
    font-family: var(--font-mono);
    font-size: 0.775rem;
    color: var(--mud-palette-text-secondary);
    letter-spacing: 0.02em;
    word-break: break-all;
}
.dev-card-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.dev-card-stat-list{
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 0.25rem;
}
.dev-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    gap: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* Timetable manage page */
.tt-day-row {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    background: var(--mud-palette-surface);
    transition: border-color 160ms ease, background 160ms ease;
    margin-bottom: 0.625rem;
}
.tt-day-row--active {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 30%, var(--mud-palette-lines-default));
    background: color-mix(in srgb, var(--mud-palette-primary) 3%, var(--mud-palette-surface));
}
.tt-timeline__bar {
    display: flex;
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
}
.tt-timeline__segment {
    height: 100%;
    background: var(--mud-palette-lines-default);
}
.tt-timeline__segment--active {
    background: var(--mud-palette-primary);
}
.tt-timeline__segment--error {
    background: var(--mud-palette-error);
}
.tt-timeline__ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 0.25rem;
    padding: 0 1px;
    letter-spacing: 0.01em;
}
.tt-copy-shortcuts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tt-copy-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    border: 1.5px solid var(--mud-palette-lines-default);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-surface);
    transition: border-color 120ms ease, color 120ms ease;
    cursor: pointer;
}
.tt-copy-pill:hover:not(:disabled) {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}
.tt-copy-pill:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.tt-copy-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}
.tt-copy-day-btn {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--mud-palette-lines-default);
    font-size: 0.75rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.tt-copy-day-btn:hover {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.tt-bulk-panel {
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface));
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 25%, var(--mud-palette-lines-default));
    border-radius: 8px;
    padding: 12px 16px;
}

.tt-bulk-apply {
    align-self: flex-center;
}

.tt-copy-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 5px;
    font-size: 0.725rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1.5px solid var(--mud-palette-lines-default);
    background: transparent;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
    user-select: none;
    line-height: 1.6;
    white-space: nowrap;
}

.tt-copy-chip:hover {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.tt-copy-chip--selected {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}

/* ── Location card grid (SystemsDashboard) ─────────────────────────── */

.sl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.sl-location-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    overflow: hidden;
    background: var(--mud-palette-surface);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sl-location-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border-color: var(--mud-palette-primary-lighten);
}

.sl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 0.75rem 0.75rem 1rem;
}

.sl-card-identity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.sl-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--mud-palette-text-primary);
}

.sl-card-address {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 1rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    min-height: 2.25rem;
    line-height: 1.4;
}

.sl-no-address {
    font-style: italic;
    opacity: 0.6;
}

.sl-card-metrics {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-background-grey) 40%, transparent);
}

.sl-metric {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.sl-metric-skeleton {
    width: 2.5rem;
    height: 0.875rem;
    border-radius: 4px;
    background: var(--mud-palette-lines-default);
    animation: sl-pulse 1.4s ease-in-out infinite;
}

@keyframes sl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.sl-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    text-align: center;
}

.settings-row-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .settings-row-container{
        flex-direction: column;
        justify-content: center;
    }
}

/* Device info status transition animations — cascading fade-slide on data refresh */
.anim-device-row {
    opacity: 0;
    animation: anim-device-fade-in 280ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--anim-device-delay, 0ms);
}
@keyframes anim-device-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Status dot variants */
.status-dot--refreshing {
    background: var(--mud-palette-text-secondary) !important;
    animation: anim-device-fade-in 280ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Subtle pulse on the status dot when data successfully loads */
.anim-device-flash {
    animation: anim-device-pulse 450ms ease-out forwards;
}
@keyframes anim-device-pulse {
    0%    { box-shadow: 0 0 0 0 rgba(var(--mud-palette-success-light-rgb), 0.5); }
    50%   { box-shadow: 0 0 0 4px rgba(var(--mud-palette-success-light-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--mud-palette-success-light-rgb), 0); }
}

/* Branding Settings: Tab-Based Interface */
.branding-tabs :deep(.mud-tabs-toolbar) {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: 0 !important;
    gap: 0.5rem;
}

.branding-tabs :deep(.mud-tab) {
    font-weight: 500;
    text-transform: none !important;
    font-size: 0.875rem;
    letter-spacing: -0.3px;
    color: var(--mud-palette-text-secondary) !important;
    padding: 0.5rem 0 !important;
}

.branding-tabs :deep(.mud-tab-active) {
    color: var(--mud-palette-text-primary) !important;
    border-bottom: 2px solid var(--mud-palette-primary) !important;
}

.branding-tabs :deep(.mud-tabs-panel) {
    padding: 1rem 0 !important;
}

.branding-tab-content {
    animation: anim-fade-in 200ms ease-in-out forwards;
}

/* Token type selection cards */
.token-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 900px) {
    .token-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .token-type-grid { grid-template-columns: 1fr; }
}
.token-type-card {
    position: relative;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
    background: var(--mud-palette-background);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    user-select: none;
}
.token-type-card:hover:not(.token-type-card--disabled) {
    border-color: var(--mud-palette-primary);
}
.token-type-card--selected {
    border-color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-background));
}
.token-type-card--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.token-type-card-check {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}
.token-type-card--selected .token-type-card-check {
    opacity: 1;
    transform: scale(1);
}
.token-type-card-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.375rem;
    flex-shrink: 0;
}
.token-type-card-name {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}
.token-type-card-desc {
    font-size: 0.775rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.45;
}

/* Token variant selection cards (Apple token mode A/B selection) */
.token-variant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (max-width: 600px) {
    .token-variant-grid { grid-template-columns: 1fr; }
}
.token-variant-card {
    position: relative;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
    background: var(--mud-palette-background);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    user-select: none;
}
.token-variant-card:hover:not(.token-variant-card--disabled) {
    border-color: var(--mud-palette-primary);
}
.token-variant-card--selected {
    border-color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-background));
}
.token-variant-card--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.token-variant-card-check {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}
.token-variant-card--selected .token-variant-card-check {
    opacity: 1;
    transform: scale(1);
}
.token-variant-card-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.375rem;
    flex-shrink: 0;
}
.token-variant-card-name {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}
.token-variant-card-desc {
    font-size: 0.775rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.45;
}

/* Token mode selection cards (Apple token modes) */
.token-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (max-width: 600px) {
    .token-mode-grid { grid-template-columns: 1fr; }
}
.token-mode-card {
    position: relative;
    border: 1.5px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
    background: var(--mud-palette-background);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    user-select: none;
}
.token-mode-card:hover:not(.token-mode-card--disabled) {
    border-color: var(--mud-palette-primary);
}
.token-mode-card--selected {
    border-color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-background));
}
.token-mode-card--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}
.token-mode-card-check {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}
.token-mode-card--selected .token-mode-card-check {
    opacity: 1;
    transform: scale(1);
}
.token-mode-card-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.375rem;
    flex-shrink: 0;
}
.token-mode-card-name {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}
.token-mode-card-desc {
    font-size: 0.775rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.45;
}