/* Admina global integration — vendor base: css/style.css; project layer below. */
:root {
    --admina-primary: #8252e9;
    --admina-canvas: #f5f6fa;
    --admina-panel: #fff;
    --admina-panel-subtle: #f9fafb;
    --admina-ink: #111827;
    --admina-muted: #6b7280;
    --admina-border: #ebeced;
    --admina-control-border: #d0d5dd;
    --admina-track: #eff1f5;
    --admina-radius: 20px;
    --admina-shadow: 0 10px 30px rgb(30 38 58 / 6%);
}
[data-theme="dark"] {
    --admina-canvas: #1b2431;
    --admina-panel: #273142;
    --admina-panel-subtle: #323d4e;
    --admina-ink: #f9fafb;
    --admina-muted: #d1d5db;
    --admina-border: #465163;
    --admina-control-border: #5d687a;
    --admina-track: #3b4658;
    --admina-shadow: 0 14px 34px rgb(0 0 0 / 24%);
}
html, body { max-width: 100%; overflow-x: clip; }
body { min-height: 100vh; background: var(--admina-canvas); color: var(--admina-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
/*button, a, input, select { min-height: 40px; }*/
:focus-visible { outline: 3px solid var(--admina-primary) !important; outline-offset: 2px; }
.twin-rail__brand { display: flex; align-items: center; justify-content: center; color: #fff; background: var(--admina-primary); border-radius: 12px; font-size: 21px; font-weight: 800; text-decoration: none; }
.twin-panel__head { border-bottom: 1px solid var(--ts-border); }
.twin-panel__foot { border-top: 1px solid var(--ts-border); padding: 18px; }
.admina-version { color: #9aa2b1; font-size: 12px; }
.navbar-header { background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--admina-border); backdrop-filter: blur(12px); }
.admina-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admina-theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; color: var(--admina-ink); background: var(--admina-panel-subtle); border: 1px solid var(--admina-border); border-radius: 50%; font-size: 20px; line-height: 1; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.admina-theme-toggle:hover { color: #fff; background: var(--admina-primary); border-color: var(--admina-primary); transform: translateY(-1px); }
.admina-theme-toggle:focus-visible { outline-color: var(--admina-primary) !important; }
.admina-auth-theme-toggle { position: fixed; z-index: 40; top: 20px; right: 20px; }
.admina-theme-toggle--auth { background: var(--admina-panel); box-shadow: var(--admina-shadow); }
.twin-collapse { border: 0; background: transparent; color: var(--admina-ink); font-size: 24px; }
.admina-topbar-product { color: var(--admina-muted); font-size: 14px; font-weight: 600; }
.admina-account { position: relative; }
.admina-account summary { list-style: none; }
.admina-account summary::-webkit-details-marker { display: none; }
.admina-account__trigger { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
.admina-account__copy { display: grid; line-height: 1.3; }
.admina-account__copy strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.admina-account__copy small, .admina-account__identity small { color: var(--admina-muted); }
.admina-account__menu { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(290px, calc(100vw - 32px)); padding: 16px; background: var(--admina-panel); border: 1px solid var(--admina-border); border-radius: 14px; box-shadow: var(--admina-shadow); }
.admina-account__identity { display: grid; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--admina-border); overflow-wrap: anywhere; }
.admina-account__logout { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; color: #b42318; background: transparent; border: 0; border-radius: 8px; }
.admina-account__logout:hover { background: #fff1f0; }
.admina-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admina-page-heading h1 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.admina-page-heading p { margin: 6px 0 0; color: var(--admina-muted); }
.admina-page-heading ol { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admina-flash-wrap { padding: 16px 24px 0; }
.admina-flash { padding: 12px 16px; border: 1px solid; border-radius: 12px; }
.admina-flash--info { color: #175cd3; background: #eff8ff; border-color: #b2ddff; }
.admina-flash--success { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.admina-flash--danger { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.d-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admina-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.admina-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 20px; margin-top: 20px; }
.admina-stat-card, .admina-panel { background: var(--admina-panel); border: 1px solid var(--admina-border); border-radius: var(--admina-radius); box-shadow: var(--admina-shadow); }
.admina-stat-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 22px; }
.admina-stat-card__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; color: var(--admina-primary); background: #f3efff; border-radius: 50%; font-size: 24px; }
.admina-stat-card--success .admina-stat-card__icon { color: #067647; background: #ecfdf3; }
.admina-stat-card--warning .admina-stat-card__icon { color: #b54708; background: #fffaeb; }
.admina-stat-card__label, .admina-stat-card__helper { margin: 0; color: var(--admina-muted); }
.admina-stat-card__value { margin: 2px 0; color: var(--admina-ink); font-size: 1.75rem; font-weight: 750; line-height: 1.15; }
.admina-stat-card__meta { display: flex; font-size: 12px; }
.admina-panel { overflow: hidden; }
.admina-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--admina-border); }
.admina-panel__title { margin: 0; font-size: 1rem; font-weight: 700; }
.admina-panel__description { margin: 5px 0 0; color: var(--admina-muted); font-size: 14px; }
.admina-panel__content { padding: 22px 24px; }
.admina-role-list, .admina-recent-list { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.admina-role-row__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.admina-role-row__track { height: 9px; overflow: hidden; background: var(--admina-track); border-radius: 999px; }
.admina-role-row__value { display: block; height: 100%; background: linear-gradient(90deg, #8252e9, #4f7cf7); border-radius: inherit; }
.admina-recent-user { display: flex; align-items: center; gap: 12px; }
.admina-recent-user__copy { display: grid; min-width: 0; flex: 1; }
.admina-recent-user__copy strong, .admina-recent-user__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admina-recent-user__copy small { color: var(--admina-muted); }
.admina-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #8252e9, #4f7cf7); border-radius: 50%; font-weight: 700; }
.admina-avatar--sm { width: 40px; height: 40px; font-size: 12px; }
.admina-avatar--md { width: 48px; height: 48px; font-size: 14px; }
.admina-avatar--lg { width: 60px; height: 60px; font-size: 18px; }
.admina-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.admina-badge--primary { color: #6941c6; background: #f4f0ff; }
.admina-badge--success { color: #067647; background: #ecfdf3; }
.admina-badge--warning { color: #b54708; background: #fffaeb; }
.admina-badge--danger { color: #b42318; background: #fef3f2; }
.admina-badge--neutral { color: #344054; background: #f2f4f7; }
.admina-empty-state { display: grid; justify-items: center; padding: 36px 20px; text-align: center; }
.admina-empty-state__icon { color: var(--admina-primary); font-size: 34px; }
.admina-empty-state__title { margin: 8px 0 4px; font-size: 16px; }
.admina-empty-state__description { margin: 0; color: var(--admina-muted); }
.admina-auth-shell { min-height: 100vh; }
.admina-auth { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(480px, 1.1fr); min-height: 100vh; }
.admina-auth__visual { display: grid; place-items: center; padding: 48px; color: #fff; background: radial-gradient(circle at 20% 20%, rgb(255 255 255 / 18%), transparent 32%), linear-gradient(145deg, #161b2c, #4d2ba2 68%, #8252e9); }
.admina-auth__visual-copy { max-width: 520px; }
.admina-auth__visual-mark { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 30px; background: #fff; color: var(--admina-primary); border-radius: 20px; font-size: 34px; font-weight: 800; }
.admina-auth__visual h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); }
.admina-auth__visual p { color: rgb(255 255 255 / 75%); font-size: 1.1rem; }
.admina-auth__form-side { display: grid; place-items: center; padding: 32px 24px; background: var(--admina-panel); }
.admina-auth__card { width: min(100%, 464px); }
.admina-auth__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 38px; color: var(--admina-ink); font-size: 20px; font-weight: 800; text-decoration: none; }
.admina-auth__brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--admina-primary); border-radius: 12px; }
.admina-auth__card h2 { margin-bottom: 8px; font-weight: 750; }
.admina-auth__lead { margin-bottom: 30px; color: var(--admina-muted); }
.admina-field { margin-bottom: 18px; }
.admina-field label { display: block; margin-bottom: 7px; font-weight: 600; }
.admina-input-wrap { position: relative; }
.admina-input-wrap > i { position: absolute; top: 50%; left: 17px; transform: translateY(-50%); color: var(--admina-muted); font-size: 20px; }
.admina-input { width: 100%; height: 56px; padding: 0 48px; color: var(--admina-ink); background: var(--admina-panel-subtle); border: 1px solid var(--admina-control-border); border-radius: 12px; }
.admina-input[aria-invalid="true"] { border-color: #d92d20; }
.admina-password-toggle { position: absolute; top: 50%; right: 8px; min-width: 40px; transform: translateY(-50%); background: transparent; border: 0; color: var(--admina-muted); }
.admina-field-error { display: block; margin-top: 6px; color: #b42318; font-size: 13px; }
.admina-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 24px; }
.admina-check input { width: 18px; height: 18px; }
.admina-submit { width: 100%; min-height: 52px; border-radius: 12px; font-weight: 700; }
.admina-submit[disabled] { opacity: .7; }
.admina-login-note { margin-top: 22px; color: var(--admina-muted); font-size: 13px; text-align: center; }
.admina-drawer-open { overflow: hidden; }
/* Compatibility styles for the already-active native users list. */
.native-card { overflow: hidden; border: 1px solid var(--admina-border); box-shadow: var(--admina-shadow); }
.native-toolbar { row-gap: 12px !important; }
.native-toolbar .form-control, .native-toolbar .form-select { min-width: 145px; }
.native-toolbar-search { min-width: min(280px, 100%); }
.native-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.native-table { min-width: 980px; }
.native-table th { white-space: nowrap; }
.native-table td { vertical-align: middle; }
.native-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #8252e9, #4f7cf7); font-weight: 700; }
.native-user-name { color: var(--admina-ink); font-weight: 600; }
.native-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.native-role { color: #6941c6; background: #f4f0ff; border: 1px solid #d9ccff; }
.native-verified { color: #16803c; background: #eafaf0; border: 1px solid #86d9a2; }
.native-pending { color: #a15c00; background: #fff7e6; border: 1px solid #f0bd67; }
.native-action { border: 0; text-decoration: none; }
.native-empty { padding: 48px 24px !important; text-align: center; color: var(--admina-muted); }
.native-pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; border: 0; border-radius: 8px; background: #e5e7eb; color: var(--admina-muted); font-weight: 600; }
.native-pagination .disabled .page-link { opacity: .55; pointer-events: none; }
.native-pagination .active .page-link { background: var(--admina-primary) !important; color: #fff !important; }
.native-filter-actions { display: flex; gap: 8px; }

/* Definitive Livewire user administration. */
.native-toolbar .form-control,
.native-toolbar .form-select,
.native-toolbar .btn,
.native-add,
.native-clear-filter { min-height: 44px; }
.admina-loading { margin: -8px 0 12px; color: var(--admina-muted); font-size: 13px; }
.admina-user-form-shell { width: min(100%, 960px); margin-inline: auto; }
.admina-user-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.admina-user-form .admina-field { min-width: 0; margin-bottom: 20px; }
.admina-user-form .admina-field label,
.admina-user-form .admina-field-label { display: block; margin-bottom: 8px; color: var(--admina-ink); font-size: 14px; font-weight: 650; }
.admina-form-control { min-height: 48px; color: var(--admina-ink); background: var(--admina-panel-subtle); border-color: var(--admina-control-border); border-radius: 10px; }
.admina-form-control[aria-invalid="true"] { border-color: #d92d20; }
.admina-field-help { display: block; margin-top: 6px; color: var(--admina-muted); font-size: 13px; }
.admina-verification-field { align-self: stretch; }
.admina-switch-row { display: flex !important; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; margin: 0 !important; background: var(--admina-panel-subtle); border: 1px solid var(--admina-control-border); border-radius: 10px; cursor: pointer; }
.admina-switch-row input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; accent-color: var(--admina-primary); }
.admina-switch-row span { display: grid; gap: 2px; }
.admina-switch-row strong { font-size: 14px; }
.admina-switch-row small { color: var(--admina-muted); font-size: 12px; font-weight: 400; }
.admina-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 8px; border-top: 1px solid var(--admina-border); }
.admina-form-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 160px; min-height: 48px; border-radius: 10px; }
.admina-form-button[disabled] { opacity: .68; cursor: wait; }
.admina-user-profile-grid { display: grid; grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr); gap: 20px; align-items: start; }
.admina-profile-card { overflow: hidden; background: var(--admina-panel); border: 1px solid var(--admina-border); border-radius: var(--admina-radius); box-shadow: var(--admina-shadow); }
.admina-profile-card__hero { height: 112px; background: radial-gradient(circle at 80% 15%, rgb(255 255 255 / 25%), transparent 28%), linear-gradient(135deg, #4f2b9d, #8252e9 58%, #4f7cf7); }
.admina-profile-card__body { display: grid; justify-items: center; padding: 0 24px 26px; text-align: center; }
.admina-profile-card__avatar { width: 96px !important; height: 96px !important; margin-top: -48px; border: 4px solid var(--admina-panel); font-size: 25px !important; box-shadow: 0 8px 18px rgb(17 24 39 / 15%); }
.admina-profile-card__body h2 { margin: 14px 0 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.admina-profile-card__body p { max-width: 100%; margin: 0; color: var(--admina-muted); overflow-wrap: anywhere; }
.admina-profile-card__badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.admina-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.admina-detail-list > div { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--admina-border); }
.admina-detail-list dt { margin-bottom: 5px; color: var(--admina-muted); font-size: 13px; font-weight: 600; }
.admina-detail-list dd { margin: 0; color: var(--admina-ink); font-weight: 600; overflow-wrap: anywhere; }
.admina-detail-actions { margin-top: 22px; }

/* Product surfaces that extend the vendor theme tokens. */
[data-theme="dark"] .navbar-header { background: rgb(39 49 66 / 94%); }
[data-theme="dark"] .admina-stat-card,
[data-theme="dark"] .admina-panel,
[data-theme="dark"] .admina-profile-card,
[data-theme="dark"] .native-card,
[data-theme="dark"] .card,
[data-theme="dark"] .admina-account__menu,
[data-theme="dark"] .admina-auth__form-side { color: var(--admina-ink); background-color: var(--admina-panel); border-color: var(--admina-border); }
[data-theme="dark"] .admina-account__trigger,
[data-theme="dark"] .admina-panel__title,
[data-theme="dark"] .admina-empty-state__title,
[data-theme="dark"] .admina-auth__card h2,
[data-theme="dark"] .admina-field label,
[data-theme="dark"] .admina-switch-row strong,
[data-theme="dark"] .native-user-name { color: var(--admina-ink); }
[data-theme="dark"] .admina-account__logout { color: #fda29b; }
[data-theme="dark"] .admina-account__logout:hover { color: #fecaca; background: rgb(180 35 24 / 24%); }
[data-theme="dark"] .admina-input,
[data-theme="dark"] .admina-form-control,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { color: var(--admina-ink); background-color: var(--admina-panel-subtle); border-color: var(--admina-control-border); }
[data-theme="dark"] .admina-input::placeholder,
[data-theme="dark"] .admina-form-control::placeholder,
[data-theme="dark"] .form-control::placeholder { color: #b7bec9; opacity: 1; }
[data-theme="dark"] .form-select { --bs-form-select-bg-img: none; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .admina-input:focus,
[data-theme="dark"] .admina-form-control:focus { color: var(--admina-ink); background-color: var(--admina-panel-subtle); border-color: #a78bfa; box-shadow: 0 0 0 .2rem rgb(130 82 233 / 22%); }
[data-theme="dark"] .table,
[data-theme="dark"] .native-table { --bs-table-color: var(--admina-ink); --bs-table-bg: var(--admina-panel); --bs-table-border-color: var(--admina-border); color: var(--admina-ink); border-color: var(--admina-border); }
[data-theme="dark"] .table > :not(caption) > * > *,
[data-theme="dark"] .native-table > :not(caption) > * > * { color: var(--admina-ink); background-color: var(--admina-panel); border-color: var(--admina-border); }
[data-theme="dark"] .table thead th,
[data-theme="dark"] .native-table thead th { color: var(--admina-muted); background-color: var(--admina-panel-subtle); }
[data-theme="dark"] .native-pagination .page-link { color: var(--admina-muted); background: var(--admina-panel-subtle); }
[data-theme="dark"] .admina-badge--primary,
[data-theme="dark"] .native-role { color: #ddd0ff; background: #3d3260; border-color: #65539a; }
[data-theme="dark"] .admina-badge--success,
[data-theme="dark"] .native-verified { color: #a6f4c5; background: #164b37; border-color: #277b58; }
[data-theme="dark"] .admina-badge--warning,
[data-theme="dark"] .native-pending { color: #fedf89; background: #574117; border-color: #8a6826; }
[data-theme="dark"] .admina-badge--danger { color: #fecdca; background: #5b2826; }
[data-theme="dark"] .admina-badge--neutral { color: #e4e7ec; background: #465163; }
[data-theme="dark"] .admina-stat-card__icon { color: #cbb8ff; background: #3d3260; }
[data-theme="dark"] .admina-stat-card--success .admina-stat-card__icon { color: #a6f4c5; background: #164b37; }
[data-theme="dark"] .admina-stat-card--warning .admina-stat-card__icon { color: #fedf89; background: #574117; }
[data-theme="dark"] .admina-flash--info { color: #b2ddff; background: #163a5f; border-color: #2e6c9e; }
[data-theme="dark"] .admina-flash--success { color: #a6f4c5; background: #164b37; border-color: #277b58; }
[data-theme="dark"] .admina-flash--danger { color: #fecdca; background: #5b2826; border-color: #93433e; }
[data-theme="dark"] .admina-field-error { color: #fda29b; }
[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-outline-secondary { color: var(--admina-ink); background-color: var(--admina-panel-subtle); border-color: var(--admina-control-border); }
[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-outline-secondary:hover { color: #fff; background-color: #465163; border-color: #697586; }
[data-theme="dark"] .admina-empty-state,
[data-theme="dark"] .native-empty { color: var(--admina-ink); background: var(--admina-panel); }

@media (max-width: 1199px) {
    .navbar-header { padding-left: 76px; }
    .twin-sidebar { width: min(320px, calc(100vw - 32px)); }
    .twin-panel { width: calc(100% - var(--ts-rail-w)); }
    .admina-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .admina-dashboard-grid, .admina-user-profile-grid { grid-template-columns: 1fr; }
    .admina-auth { grid-template-columns: 1fr; }
    .admina-auth__visual { display: none; }
}
@media (max-width: 767px) {
    .navbar-header { height: auto; min-height: 72px; padding-right: 16px; }
    .dashboard-main-body { padding: 16px; }
    .admina-account__copy, .admina-topbar-product { display: none; }
    .admina-stats-grid { grid-template-columns: 1fr; }
    .admina-page-heading { align-items: flex-start; flex-direction: column; }
    .admina-page-heading nav { font-size: 13px; }
    .admina-panel__header, .admina-panel__content { padding: 18px; }
    .d-footer { align-items: flex-start; flex-direction: column; padding-inline: 16px; }
    .admina-auth__form-side { padding: 28px 18px; }
    .native-toolbar { align-items: stretch !important; }
    .native-toolbar > *, .native-toolbar .form-control, .native-toolbar .form-select, .native-filter-actions { width: 100% !important; }
    .native-filter-actions > * { flex: 1; justify-content: center; }
    .native-pagination-wrap { justify-content: center !important; text-align: center; }
    .admina-user-form-grid, .admina-detail-list { grid-template-columns: 1fr; }
    .admina-form-actions { align-items: stretch; flex-direction: column-reverse; }
    .admina-form-button { width: 100%; }
    .admina-profile-card__hero { height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
