:root {
    --licensing-font-sans: 'Roboto', sans-serif;
    --licensing-font-mono: 'Courier New', Courier, monospace;
    --licensing-text-primary: #111827;
    --licensing-text-muted: #6b7280;
    --licensing-border: #e5e7eb;
    --licensing-surface: #fff;
    --licensing-radius-control: 8px;
    --licensing-font-secondary: .8125rem;
    --licensing-action: #007cbe;
    --licensing-action-hover: #00699f;
    --licensing-action-soft: #e6f2f8;
    --licensing-action-pressed: #cce5f2;
    --licensing-action-ring: rgb(0 124 190 / 12%);
    --licensing-focus: var(--licensing-action);
    --licensing-status-column: 4.5rem;
    --licensing-status-active-surface: #e7f3e7;
    --licensing-status-active-text: #038738;
    --licensing-status-inactive-surface: #f8e6e6;
    --licensing-status-inactive-text: #b50000;
    --wa-color-focus: var(--licensing-focus);
    --wa-color-brand-fill-quiet: var(--licensing-action-soft);
    --wa-color-brand-fill-normal: var(--licensing-action-pressed);
    --wa-color-brand-fill-loud: var(--licensing-action);
    --wa-color-brand-border-quiet: var(--licensing-action-pressed);
    --wa-color-brand-border-normal: var(--licensing-action);
    --wa-color-brand-border-loud: var(--licensing-action);
    --wa-color-brand-on-quiet: var(--licensing-action-hover);
    --wa-color-brand-on-normal: var(--licensing-action-hover);
    --wa-color-brand-on-loud: #fff;
}

.ae-page,
.sku-page,
.account-page,
.access-element-details-page,
.sku-details-page,
.account-details-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    min-height: 100%;
}

.ae-title,
.sku-title,
.account-title,
.access-element-details-title,
.sku-details-title-row h1,
.account-details-title-row h1 {
    font-size: 1.5rem;
    color: var(--licensing-text-primary);
}

.ae-summary,
.sku-summary,
.sku-code,
.sku-metric span,
.account-summary,
.account-identifier {
    margin: 0;
    color: var(--licensing-text-muted);
    font-size: .875rem;
}

.account-details-label,
.sku-details-label,
.access-element-details-label {
    color: #8491a5;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.sku-code,
.account-identifier,
.code,
.identifier,
.access-element-details-code,
.associated-sku-code {
    font-family: var(--licensing-font-mono);
}

.search-field-wrap {
    flex: 1;
    min-width: 0;
}

.account-details-tabs,
.sku-details-tabs {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid #d9dee7;
}

.account-details-tabs button,
.account-details-tabs h2,
.sku-details-tabs button {
    margin: 0;
    padding: .65rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #52627a;
    font-size: .9rem;
}

.account-details-tabs button,
.sku-details-tabs button {
    cursor: pointer;
}

.account-details-tabs .active,
.sku-details-tabs button.active {
    border-color: var(--licensing-action);
    color: var(--licensing-action);
}

.account-details-tabs span,
.sku-details-tabs span {
    margin-left: .3rem;
    color: var(--licensing-action);
}

.ae-empty-state,
.sku-empty-state,
.sku-loading-state,
.account-empty-state,
.account-loading-state,
.sku-details-state,
.account-details-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 4rem 1rem;
    background: var(--licensing-surface);
    border: 1px solid var(--licensing-border);
    border-radius: 8px;
    color: #9ca3af;
    font-size: .95rem;
    font-family: var(--licensing-font-sans);
}

.ae-empty-state p,
.sku-empty-state p,
.sku-loading-state p,
.account-empty-state p,
.account-loading-state p,
.sku-details-state p,
.account-details-state p {
    margin: 0;
}

.ae-page .empty-icon,
.sku-page .empty-icon,
.account-page .empty-icon {
    font-size: 3rem;
    color: #d1d5db;
}

.ae-error,
.sku-error,
.account-error,
.access-element-details-error,
.sku-details-error,
.account-details-error {
    padding: 1rem;
    text-align: left;
    border: 1px solid #f3b8b8;
    border-radius: 8px;
    color: var(--licensing-status-inactive-text);
    background: var(--licensing-status-inactive-surface);
}

.access-element-details-error,
.sku-details-error,
.account-details-error {
    padding: 2rem 1rem;
    text-align: center;
}

.detail-error-icon,
.account-details-error-icon {
    color: #d97706;
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.detail-error-title,
.account-details-error-title {
    font-weight: 700;
}

.detail-error-body,
.account-details-error-body {
    font-size: .875rem;
}

.account-status,
.status-badge {
    display: inline-flex;
    width: fit-content;
    flex-shrink: 0;
    white-space: nowrap;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.status-badge {
    line-height: 1.2;
}

.account-status--active,
.status-badge--active {
    background: var(--licensing-status-active-surface);
    color: var(--licensing-status-active-text);
}

.account-status--inactive,
.status-badge--inactive {
    background: var(--licensing-status-inactive-surface);
    color: var(--licensing-status-inactive-text);
}

.account-status--onboarding {
    background: #ebf1ff;
    color: #1d4ed8;
}

.account-status--offboarding {
    background: var(--licensing-border);
    color: #4b5563;
}