* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    color: var(--portal-ink);
    background: var(--portal-canvas);
    font-family: var(--portal-font-family);
}

a {
    color: inherit;
    text-decoration: none;
}

.ant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    vertical-align: middle;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 26px 30px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow-sm);
}

.hero-copy h1,
.page-heading h1 {
    max-width: 880px;
    margin-bottom: 10px;
    color: var(--portal-ink);
    font-size: var(--portal-text-title);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero-copy p,
.page-heading p {
    max-width: 760px;
    color: var(--portal-muted);
    font-size: var(--portal-text-body);
    line-height: 1.7;
}

.hero-console {
    display: flex;
    min-height: 152px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-color: var(--portal-line-strong);
    background: var(--portal-inverse);
    color: #ffffff;
}

.hero-console span,
.hero-console small {
    color: rgba(255, 255, 255, 0.68);
}

.hero-console strong {
    display: block;
    margin: 8px 0;
    font-size: 1.18rem;
    line-height: 1.25;
}

.metric-grid,
.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.metric-card,
.blueprint-card,
.panel-card {
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-card);
    box-shadow: var(--portal-shadow-sm);
}

.metric-card {
    padding: 22px;
}

.metric-label {
    display: block;
    color: var(--portal-muted);
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 8px 0 12px;
    color: var(--portal-ink);
    font-size: 2rem;
    line-height: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    margin-bottom: 24px;
}

.panel-card {
    padding: 24px;
}

.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-title h2,
.blueprint-card h2 {
    margin-bottom: 0;
    color: var(--portal-ink);
    font-size: 1.25rem;
}

.module-list,
.activity-list {
    display: grid;
    gap: 12px;
}

.module-row,
.activity-row,
.table-row,
.table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--portal-line);
}

.module-row p,
.activity-row p {
    margin: 4px 0 0;
    color: var(--portal-muted);
}

.activity-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--portal-success);
    box-shadow: var(--portal-shadow-sm);
}

.status-dot-muted {
    background: #9aa7b7;
    box-shadow: var(--portal-shadow-sm);
}

.root-panel {
    margin-bottom: 24px;
}

.root-summary {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.root-summary strong {
    display: block;
    margin: 8px 0;
    font-size: 1.5rem;
}

.root-summary p,
.root-feature small {
    color: var(--portal-muted);
}

.root-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.root-feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.root-feature small {
    display: block;
    margin-top: 3px;
    font-family: var(--portal-font-mono);
    font-size: 0.78rem;
}

.page-heading {
    margin-bottom: 24px;
}

.blueprint-card {
    min-height: 260px;
    padding: 24px;
}

.blueprint-index {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--portal-brand);
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.operations-table {
    display: grid;
}

.operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    margin-bottom: 24px;
}

.signal-list {
    display: grid;
    gap: 12px;
}

.signal-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.signal-card p {
    margin: 3px 0 0;
    color: var(--portal-muted);
}

.telemetry-card {
    background: var(--portal-inverse);
    color: #ffffff;
}

.telemetry-card h2,
.telemetry-card .eyebrow {
    color: #ffffff;
}

.telemetry-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.telemetry-list dt {
    color: var(--portal-inverse-muted);
    font-weight: 800;
    text-transform: uppercase;
}

.telemetry-list dd {
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.telemetry-list code,
.audit-trace {
    font-family: var(--portal-font-mono);
}

.audit-trace {
    display: inline-flex;
    margin-top: 4px;
    padding: 0;
    border: 0;
    color: var(--portal-muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.audit-row {
    cursor: pointer;
}

.audit-row:hover {
    background: var(--portal-brand-soft);
}

.audit-detail {
    padding: 18px 20px;
    border-top: 1px solid var(--portal-line);
    background: var(--portal-surface);
}

.audit-detail dl {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
}

.audit-detail dt {
    color: var(--portal-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.audit-detail dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--portal-ink);
    font-family: var(--portal-font-mono);
    font-size: 0.86rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-form.compact {
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.settings-form label {
    display: grid;
    gap: 7px;
}

.settings-form label span {
    color: var(--portal-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.settings-form select.ant-input {
    min-height: 34px;
    background: #ffffff;
}

.settings-help {
    color: var(--portal-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.logo-upload-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 14px;
    border: 1px dashed var(--portal-line-strong);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.logo-upload-card:hover {
    border-color: var(--portal-brand);
    box-shadow: var(--portal-shadow-sm);

}

.logo-upload-card .material-symbols-outlined {
    grid-row: span 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--portal-radius-md);
    background: var(--portal-inverse);
    color: var(--portal-on-inverse);
    font-size: 1.25rem;
}

.logo-upload-card strong {
    color: var(--portal-ink);
    font-size: 0.94rem;
}

.logo-upload-card em {
    color: var(--portal-muted);
    font-size: 0.78rem;
    font-style: normal;
}

.logo-upload-card input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.color-picker-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.color-picker-row input[type="color"] {
    width: 44px;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--portal-line);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.settings-form .wide {
    grid-column: 1 / -1;
}

.settings-textarea {
    min-height: 96px;
    resize: vertical;
}

.settings-save {
    margin-top: 20px;
}

.profile-preview {
    position: sticky;
    top: 24px;
    align-self: start;
    overflow: hidden;
}

.profile-preview::before { content: none; }

.profile-preview > * {
    position: relative;
    z-index: 1;
}

.preview-mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 22px 0 18px;
    place-items: center;
    border-radius: var(--portal-radius-md);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: var(--portal-shadow-sm);
    overflow: hidden;
}

.preview-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-preview h2 {
    margin-bottom: 10px;
}

.profile-preview p,
.profile-preview dd {
    color: var(--portal-muted);
}

.profile-preview dl {
    display: grid;
    gap: 6px;
    margin: 20px 0 0;
}

.profile-preview dt {
    color: var(--portal-ink);
    font-weight: 800;
}

.profile-preview dd {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.identity-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--portal-line-strong);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow-sm);
}

.identity-status h2 {
    margin: 6px 0 8px;
}

.identity-status p {
    margin: 0;
    color: var(--portal-muted);
}

.identity-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.identity-status-actions .ant-btn,
.header-actions .ant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.identity-card-icon {
    color: var(--portal-brand);
    font-size: 1.6rem;
}

.identity-form {
    display: grid;
    gap: 14px;
}

.compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.compact-form .wide {
    grid-column: 1 / -1;
}

.single-line-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.identity-form label {
    display: grid;
    gap: 6px;
}

.identity-form label span {
    color: var(--portal-brand);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.identity-form small,
.identity-muted {
    color: var(--portal-muted);
    line-height: 1.5;
}

.identity-message {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: var(--portal-radius-md);
    font-size: 0.9rem;
    line-height: 1.45;
}

.identity-message.success {
    border: 1px solid var(--portal-success);
    background: var(--portal-success-bg);
    color: var(--portal-success);
}

.identity-message.error {
    border: 1px solid var(--portal-danger);
    background: var(--portal-danger-bg);
    color: var(--portal-danger);
}

.token-summary,
.token-summary dd {
    margin: 0;
}

.token-summary {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 14px;
}

.token-summary dt {
    color: var(--portal-brand);
    font-weight: 900;
}

.token-summary dd {
    min-width: 0;
    color: var(--portal-muted);
    overflow-wrap: anywhere;
}

.token-box {
    min-height: 96px;
    margin-top: 16px;
    resize: vertical;
    font-family: var(--portal-font-mono);
    font-size: 0.78rem;
}

.capability-list,
.iam-roadmap,
.iam-list,
.client-list {
    display: grid;
    gap: 14px;
}

.capability-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.capability-row .material-symbols-outlined,
.iam-roadmap .material-symbols-outlined {
    color: var(--portal-success);
}

.capability-row p,
.iam-roadmap p {
    margin: 4px 0 0;
    color: var(--portal-muted);
    line-height: 1.55;
}

.client-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--portal-line);
}

.iam-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.iam-row strong,
.iam-row span,
.iam-row small {
    display: block;
}

.iam-row span,
.iam-row small {
    color: var(--portal-muted);
}

.role-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-row span,
.client-row small {
    color: var(--portal-muted);
}

.iam-roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iam-roadmap article {
    padding: 18px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.iam-roadmap strong {
    display: block;
    margin-top: 10px;
}

.table-head,
.table-row {
    grid-template-columns: minmax(120px, 0.8fr) 92px minmax(0, 2fr);
}

.table-row .ant-tag {
    width: fit-content;
    min-width: 0;
}

.table-head {
    color: var(--portal-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blazor-error-boundary {
    padding: 1rem;
    color: #ffffff;
    background: var(--portal-danger);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 1100px) {
    .hero-panel,
    .dashboard-grid,
    .operations-grid,
    .settings-grid,
    .identity-grid,
    .root-summary {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .blueprint-grid,
    .iam-roadmap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero-panel {
        padding: 22px;
    }

    .metric-grid,
    .blueprint-grid,
    .root-feature-grid,
    .settings-form,
    .compact-form,
    .single-line-form,
    .signal-card,
    .identity-status,
    .iam-row,
    .iam-roadmap,
    .audit-detail dl,
    .token-summary,
    .table-head,
    .table-row {
        grid-template-columns: 1fr;
    }

    .identity-status-actions {
        justify-content: flex-start;
    }
}

.identity-console {
    overflow: visible;
}

.identity-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 20px;
}

.identity-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--portal-line);
    border-radius: 999px;
    background: var(--portal-surface);
    color: var(--portal-muted);
    cursor: pointer;
    font-weight: 800;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.identity-tab:hover,
.identity-tab.active {
    border-color: var(--portal-line-strong);
    background: var(--portal-surface);
    color: var(--portal-ink);

}

.identity-tab .material-symbols-outlined {
    color: var(--portal-brand);
    font-size: 1.2rem;
}

.identity-workbench {
    display: grid;
    grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
    gap: 22px;
    align-items: start;
}

.identity-list-panel,
.identity-detail-panel {
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
    min-width: 0;
}

.identity-list-panel {
    overflow: visible;
    padding: 16px;
}

.identity-detail-panel {
    min-height: 520px;
    padding: 22px;
    background: var(--portal-surface);
}

.identity-list-header,
.identity-detail-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.identity-list-header h2,
.identity-detail-title h2 {
    margin-bottom: 0;
}

.identity-search {
    margin-bottom: 14px;
}

.identity-list {
    display: grid;
    gap: 10px;
    overflow: visible;
    padding: 2px;
}

.identity-list-item {
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: #ffffff;
    color: var(--portal-ink);
    cursor: pointer;
    text-align: left;
    box-shadow: var(--portal-shadow-sm);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.identity-list-item:hover,
.identity-list-item.active {
    border-color: var(--portal-line-strong);
    box-shadow: var(--portal-shadow-sm);

}

.identity-list-item span,
.identity-list-item small {
    overflow: hidden;
    color: var(--portal-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-detail-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.identity-detail-grid dt {
    color: var(--portal-brand);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.identity-detail-grid dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.identity-subsection {
    margin-top: 22px;
}

.identity-subsection h3 {
    margin-bottom: 12px;
    color: var(--portal-ink);
    font-size: 1rem;
}

.permission-grid,
.identity-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.permission-card,
.identity-mini-card {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.permission-card span,
.permission-card small,
.identity-mini-card span,
.identity-mini-card small {
    color: var(--portal-muted);
    overflow-wrap: anywhere;
}

.identity-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    border: 1px solid var(--portal-line-strong);
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
}

.identity-edit-form button,
.identity-edit-form small {
    grid-column: 1 / -1;
}

.policy-code {
    max-height: 280px;
    overflow: auto;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-md);
    background: var(--portal-inverse);
    color: var(--portal-on-inverse);
    font-family: var(--portal-font-mono);
    font-size: 0.86rem;
    line-height: 1.6;
}

.empty-detail {
    display: grid;
    min-height: 420px;
    place-content: center;
    justify-items: center;
    color: var(--portal-muted);
    text-align: center;
}

.empty-detail .material-symbols-outlined {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: var(--portal-radius-md);
    background: var(--portal-surface);
    color: var(--portal-brand);
    font-size: 2rem;
}

.empty-detail h2 {
    margin-bottom: 8px;
    color: var(--portal-ink);
}

@media (max-width: 1100px) {
    .identity-workbench {
        grid-template-columns: 1fr;
    }

    .identity-list {
        max-height: none;
    }
}

@media (max-width: 680px) {
    .identity-tabs,
    .permission-grid,
    .identity-card-list,
    .identity-edit-form,
    .identity-detail-grid {
        grid-template-columns: 1fr;
    }

    .identity-tab {
        width: 100%;
        justify-content: center;
    }
}

/* Keep mixed Ant buttons/tags visually centered inside action bars. */
.identity-status-actions > .ant-btn,
.identity-status-actions > .ant-tag,
.header-actions > .ant-btn,
.header-actions > .ant-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.identity-status-actions > .ant-btn,
.header-actions > .ant-btn {
    padding-inline: 15px !important;
}

.identity-status-actions > .ant-tag,
.header-actions > .ant-tag {
    padding-inline: 10px !important;
}

/* Shared defaults for the workspace and existing administration pages. */
button, input, select, textarea { font-family: inherit; }
button, a, input, summary, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--portal-focus); outline-offset: 3px; }
input::placeholder { color: var(--portal-muted); }
svg { vertical-align: middle; flex-shrink: 0; }
.page-heading h1 { font-size: var(--portal-text-title); line-height: 1.3; letter-spacing: -0.5px; }
.page-heading p { font-size: 14px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--portal-muted); font-size: 11px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }



/* Native and Ant controls share the same interactive and semantic state contract. */
html, body { font-size: var(--portal-text-body); line-height: 1.6; }
.ant-btn { min-height: var(--portal-control-height); border-radius: var(--portal-radius-sm); box-shadow: none; font-weight: 600; }
.ant-btn-primary, .settings-save.ant-btn-primary { color: var(--portal-on-brand); background: var(--portal-brand); border-color: var(--portal-brand); }
.ant-btn-primary:hover, .ant-btn-primary:focus-visible, .settings-save.ant-btn-primary:hover { color: var(--portal-on-brand); background: var(--portal-brand-hover); border-color: var(--portal-brand-hover); }
.ant-btn:not(.ant-btn-primary):not(.ant-btn-dangerous):hover { color: var(--portal-brand); border-color: var(--portal-brand); background: var(--portal-brand-soft); }
.ant-btn[disabled], .ant-btn-primary[disabled] { color: var(--portal-muted); background: var(--portal-canvas); border-color: var(--portal-line); cursor: not-allowed; box-shadow: none; }
.ant-input, .ant-input-number, .ant-select-selector { color: var(--portal-ink); border-color: var(--portal-line-strong); border-radius: var(--portal-radius-sm); }
input.ant-input, select.ant-input { min-height: var(--portal-control-height); }
.ant-input:hover, .ant-input:focus, .ant-input-focused { border-color: var(--portal-brand); }
.ant-input:focus, .ant-input-focused { box-shadow: 0 0 0 2px var(--portal-brand-soft); }
.ant-checkbox-checked .ant-checkbox-inner, .ant-radio-inner::after, .ant-switch-checked { background-color: var(--portal-brand); border-color: var(--portal-brand); }
.ant-checkbox-checked::after, .ant-radio-checked .ant-radio-inner { border-color: var(--portal-brand); }
.ant-tag { border-radius: var(--portal-radius-sm); font-weight: 500; }
.ant-tag-green { color: var(--portal-success); background: var(--portal-success-bg); border-color: var(--portal-success); }
.ant-tag-blue { color: var(--portal-info); background: var(--portal-info-bg); border-color: var(--portal-info); }
.ant-tag-red { color: var(--portal-danger); background: var(--portal-danger-bg); border-color: var(--portal-danger); }
.ant-tag-orange, .ant-tag-gold { color: var(--portal-warning); background: var(--portal-warning-bg); border-color: var(--portal-warning); }
.ant-tag-default { color: var(--portal-muted); background: var(--portal-surface-subtle); border-color: var(--portal-line); }
.identity-status-actions > .ant-btn, .header-actions > .ant-btn { min-height: var(--portal-control-height) !important; }
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--portal-brand); }
:where(button, a, input, summary, select, textarea):focus-visible { outline-color: var(--portal-focus); }
