/* Identra Admin UI - global styles (design-system.css provides tokens and shell) */

html, body {
    height: 100%;
    background: var(--color-background);
    color: var(--color-text);
}

#app {
    height: 100%;
}

.loading {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Auth pages: use design tokens */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    background: var(--color-surface);
}

.auth-message {
    text-align: center;
    max-width: 28rem;
    color: var(--color-text);
}

.auth-message p {
    margin: 0.5rem 0;
}

.auth-message.auth-error {
    color: var(--color-error);
}

.auth-message.auth-error a {
    color: var(--color-primary);
}

/* Shell layout replaced by design-system.css .iam-app-shell */
.page { min-height: 100%; }
main { flex: 1; }
.sidebar { background: var(--color-background, #1a1a2e); }
.top-row { display: none; } /* Replaced by TopHeader */
.content { padding-top: 0; }

/* User profile and all content pages - design tokens */
.profile-container {
    max-width: 42rem;
    margin: 0 auto;
}

.profile-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.profile-header .profile-label {
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.profile-header .profile-value {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.profile-header .profile-value.profile-code {
    font-family: ui-monospace, monospace;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.profile-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

.profile-header .text-muted {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.profile-section {
    margin-top: 1.5rem;
}

.profile-section h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: var(--color-text);
}

.profile-claims-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.profile-claims-table th,
.profile-claims-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.profile-claims-table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

.profile-claims-table code {
    font-size: 0.85em;
    background: var(--color-surface);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text);
}

.profile-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.error-message {
    color: var(--color-error);
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md, 8px);
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-scrollable {
    overflow-y: auto;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

.navbar-brand {
    font-size: 1.1rem;
    color: #e8e8e8;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.ps-3 {
    padding-left: 1rem;
}

.nav-item { padding-bottom: 0.25rem; }
.nav-link { border-radius: var(--radius-sm, 6px); display: flex; align-items: center; text-decoration: none; }

.flex-column {
    flex-direction: column;
}

.collapse {
    display: none;
}

@media (min-width: 641px) {
    .collapse {
        display: block;
    }
}

/* Toasts — no alert(); user-friendly only */
.toast-host {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}
.toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.08));
}
.toast-success { background: rgba(22, 163, 74, 0.15); color: var(--color-success); border: 1px solid var(--color-success); }
.toast-warning { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); border: 1px solid var(--color-warning); }
.toast-error { background: rgba(239, 68, 68, 0.1); color: var(--color-error); border: 1px solid var(--color-error); }
.toast-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0.25rem;
    color: var(--color-text);
}
.toast-dismiss:hover { opacity: 1; }

/* Global: tables, forms, buttons - applied to all screens */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--color-background);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}
.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.table th {
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
}
.table tbody tr:hover {
    background: var(--color-surface);
}

/* Opt-in: wrap any table in .iam-data-table for density + sticky (data-density="comfortable|standard|compact") */
.iam-data-table .table { border-radius: var(--radius-md); }

.iam-data-table.is-refreshing {
    opacity: 0.92;
    transition: opacity 0.15s ease;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--color-text);
}
.form-control {
    width: 100%;
    max-width: 20rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 8px);
    background: var(--color-background);
    color: var(--color-text);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.form-control:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}
textarea.form-control {
    max-width: 100%;
    min-height: 4rem;
    resize: vertical;
}
.btn-link {
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-link:disabled { opacity: 0.5; cursor: not-allowed; }
/* Legacy paging: prefer .iam-paging on list pages */
.paging {
  display: flex;
  align-items: center;
  gap: var(--space-12, 12px);
  margin-top: var(--space-16, 1rem);
  padding-top: var(--space-16, 1rem);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Tooltips: native title on labels; optional info icon */
.iam-label-tooltip {
    cursor: help;
    border-bottom: 1px dotted var(--color-text-muted);
}
.iam-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: help;
    vertical-align: middle;
}
.iam-tooltip-icon:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* 2026 dashboard: bento layout */
.iam-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-16);
}

.iam-bento-card {
    grid-column: span 4;
    background: color-mix(in srgb, var(--color-background) 90%, transparent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-20);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.iam-bento-card.is-interactive:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

.iam-bento-card-header h3 {
    margin: 0;
    font-size: 1rem;
}

.iam-bento-card-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.iam-bento-card-content {
    margin-top: var(--space-16);
}

.iam-bento-span-2 {
    grid-column: span 8;
}

.iam-kpi-stack {
    display: grid;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.iam-kpi-stack strong {
    display: block;
    margin-top: 0.125rem;
    color: var(--color-text);
}

.iam-kpi-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.iam-suggestion-list {
    margin: 0;
    padding-left: 1rem;
}

.iam-suggestion-list li + li {
    margin-top: 0.5rem;
}

.iam-suggestion-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.iam-suggestion-list a:hover {
    text-decoration: underline;
}

/* Command palette */
.iam-header-search-btn {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-surface) 86%, transparent);
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    min-height: 2.1rem;
    cursor: pointer;
}

.iam-header-search-shortcut {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0 0.3rem;
}

.iam-command-overlay {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, #000 48%, transparent);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: grid;
    place-items: start center;
    padding-top: min(12vh, 7rem);
}

.iam-command-palette {
    width: min(44rem, calc(100vw - 2rem));
    background: color-mix(in srgb, var(--color-background) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-border) 80%, var(--color-primary) 20%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.iam-command-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0.9rem;
}

.iam-command-input {
    background: transparent;
    border: none;
    color: var(--color-text);
    outline: none;
    font-size: 0.95rem;
}

.iam-command-close {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}

.iam-command-list {
    max-height: min(26rem, 60vh);
    overflow: auto;
    padding: 0.45rem;
}

.iam-command-item {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.7rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}

.iam-command-item:hover,
.iam-command-item.is-active {
    background: color-mix(in srgb, var(--color-primary-muted) 50%, transparent);
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

.iam-command-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.iam-command-empty {
    color: var(--color-text-muted);
    margin: 0;
    padding: 1rem;
}

@media (max-width: 1080px) {
    .iam-bento-span-2,
    .iam-bento-card {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .iam-bento-card {
        grid-column: span 12;
    }

    .iam-header-search-shortcut {
        display: none;
    }
}

/* Screen-reader only (skeleton / status text) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skeleton loaders (Phase 2 — prefer over spinners for dense tables) */
@keyframes iam-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.iam-skeleton-line {
    height: 0.65rem;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-surface) 70%, var(--color-border)) 0%,
        color-mix(in srgb, var(--color-background) 40%, var(--color-border)) 50%,
        color-mix(in srgb, var(--color-surface) 70%, var(--color-border)) 100%
    );
    background-size: 200% 100%;
    animation: iam-skeleton-shimmer 1.35s ease-in-out infinite;
}

.iam-skeleton-line--short { width: 40%; max-width: 6rem; }
.iam-skeleton-line--medium { width: 55%; max-width: 10rem; margin-top: 0.5rem; }

.iam-bento-stat-skeleton {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-16);
}

.iam-bento-stat-skeleton__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.iam-table-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: var(--space-8) 0;
}

.iam-table-skeleton__row {
    display: grid;
    grid-template-columns: repeat(var(--iam-skeleton-cols, 6), minmax(0, 1fr));
    gap: var(--space-12);
    align-items: center;
}

.iam-table-skeleton__cell {
    height: 0.75rem;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-surface) 65%, var(--color-border)) 0%,
        color-mix(in srgb, var(--color-background) 35%, var(--color-border)) 50%,
        color-mix(in srgb, var(--color-surface) 65%, var(--color-border)) 100%
    );
    background-size: 200% 100%;
    animation: iam-skeleton-shimmer 1.35s ease-in-out infinite;
}

.iam-op-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.iam-op-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-12);
}

@media (max-width: 720px) {
    .iam-bento-stat-skeleton {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iam-skeleton-line,
    .iam-table-skeleton__cell {
        animation: none;
    }
}

/* Inline table body skeleton (inside <tbody>, paging refresh) */
.iam-inline-skel-tr td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

.iam-inline-skel-cell {
    height: 0.7rem;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-surface) 65%, var(--color-border)) 0%,
        color-mix(in srgb, var(--color-background) 35%, var(--color-border)) 50%,
        color-mix(in srgb, var(--color-surface) 65%, var(--color-border)) 100%
    );
    background-size: 200% 100%;
    animation: iam-skeleton-shimmer 1.35s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .iam-inline-skel-cell {
        animation: none;
    }
}

/* —— Reference dashboard (home): greeting, two-column widgets —— */
.iam-dash {
    padding-top: 0.25rem;
}

.iam-dash-greeting {
    margin: 0 0 1.25rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.iam-dash-greeting-emoji {
    font-size: 1.5rem;
    vertical-align: middle;
}

.iam-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .iam-dash-grid {
        grid-template-columns: 1fr;
    }
}

.iam-dash-widget {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 0;
}

.iam-dash-widget + .iam-dash-widget {
    margin-top: 0;
}

.iam-dash-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.iam-dash-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.iam-dash-widget-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
}

.iam-dash-widget-icon {
    font-size: 0.85rem;
    color: #94a3b8;
}

.iam-dash-widget-sub {
    margin: 0;
    padding: 0.35rem 1rem 0;
    font-size: 0.75rem;
    color: #64748b;
}

.iam-dash-widget-body {
    padding: 0.35rem 0 0.5rem;
}

.iam-dash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.iam-dash-row:last-of-type {
    border-bottom: none;
}

.iam-dash-row:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

.iam-dash-row .bi-chevron-right {
    color: #94a3b8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.iam-dash-row-text {
    min-width: 0;
}

.iam-dash-widget-footer {
    padding: 0.5rem 1rem 0.75rem;
}

.iam-dash-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d4ed8;
    cursor: pointer;
    text-decoration: none;
}

.iam-dash-link:hover {
    text-decoration: underline;
}

.iam-dash-course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.iam-dash-course-row:last-child {
    border-bottom: none;
}

.iam-dash-course-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.iam-dash-course-code {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.iam-dash-course-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.iam-dash-label {
    font-weight: 500;
    color: #475569;
}

.iam-dash-open-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.iam-dash-open-btn:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.12);
}

.iam-dash-open-btn--small {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
}

.iam-dash-advisees {
    padding: 0.5rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.iam-dash-person-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
}

.iam-dash-person-avatar {
    font-size: 2rem;
    color: #1d4ed8;
    flex-shrink: 0;
}

.iam-dash-person-info {
    flex: 1;
    min-width: 8rem;
}

.iam-dash-person-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.iam-dash-person-id {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.iam-dash-person-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d4ed8;
    text-decoration: none;
}

.iam-dash-person-link:hover {
    text-decoration: underline;
}

.iam-dash-inbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

.iam-dash-inbox-row:last-of-type {
    border-bottom: none;
}

.iam-dash-inbox-row:hover {
    background: #f8fafc;
}

.iam-dash-inbox-icon {
    font-size: 1.1rem;
    color: #1d4ed8;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.iam-dash-inbox-icon.is-read {
    color: #94a3b8;
}

.iam-dash-inbox-main {
    flex: 1;
    min-width: 0;
}

.iam-dash-inbox-subject {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.iam-dash-inbox-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.iam-dash-inbox-time {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Legal policy consent takeover (Admin Console) */
.iam-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.iam-consent-panel {
    width: min(40rem, 100%);
    background: var(--color-surface, #fff);
    color: var(--color-text, #0f172a);
    border-radius: 12px;
    padding: 1.5rem 1.75rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    margin-top: 2vh;
}

.iam-consent-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.iam-consent-policy {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.iam-consent-policy-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.iam-consent-policy-body {
    max-height: 12rem;
    overflow: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.5rem 0 0.75rem;
    padding: 0.75rem;
    background: var(--color-background, #f8fafc);
    border-radius: 8px;
}

.iam-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.iam-consent-check input {
    margin-top: 0.2rem;
}

.iam-consent-actions {
    margin-top: 1.5rem;
}

.iam-consent-loading-panel {
    text-align: center;
}

.iam-consent-policy-page {
    margin-top: 1.25rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    background: var(--color-surface, #fff);
    padding: 1rem 1rem 1.25rem;
}

.iam-consent-policy-page-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.iam-consent-sections {
    margin-top: 0.85rem;
    border-top: 1px dashed var(--color-border, #cbd5e1);
    padding-top: 0.75rem;
}

.iam-consent-section + .iam-consent-section {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border, #f1f5f9);
}

.iam-consent-section h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.iam-consent-section p {
    margin: 0.35rem 0 0;
    white-space: pre-wrap;
    line-height: 1.45;
}

/* Quill rich text (legal policy HTML editor) */
.iam-quill-mount {
    width: 100%;
    max-width: 100%;
}

.iam-quill-mount .ql-toolbar {
    border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
    border-color: var(--color-border, #e2e8f0);
    background: var(--color-surface, #fff);
}

.iam-quill-mount .ql-container {
    border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px);
    border-color: var(--color-border, #e2e8f0);
    background: var(--color-background, #fff);
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 220px;
}

.iam-quill-mount .ql-editor {
    min-height: 200px;
    color: var(--color-text, #0f172a);
}

.iam-quill-mount .ql-editor.ql-blank::before {
    color: var(--color-text-muted, #64748b);
    font-style: normal;
}
