:root {
    --seidor-sidebar: var(--tenant-sidebar, #0B1628);
    --seidor-sidebar-2: #111F35;
    --seidor-sidebar-text: var(--tenant-sidebar-text, #F8FAFC);
    --seidor-sidebar-muted: var(--tenant-sidebar-muted, #DDE7F6);
    --seidor-sidebar-heading: var(--tenant-sidebar-heading, #F8FAFC);
    --seidor-sidebar-card-bg: var(--tenant-sidebar-card, rgba(0, 0, 0, .18));
    --seidor-sidebar-border-color: var(--tenant-sidebar-border, rgba(255, 255, 255, .14));
    --seidor-sidebar-input-bg: var(--tenant-sidebar-input, rgba(255, 255, 255, .08));
    --seidor-border: #E5E7EB;
    --seidor-main: #F4F6FA;
    --seidor-blue: var(--tenant-primary, #3B82F6);
    --seidor-blue-dark: var(--tenant-primary, #2563EB);
    --seidor-text: #111827;
    --seidor-muted: #6B7280;
    --seidor-danger: #DC2626;
}

body {
    background: var(--seidor-main);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

[x-cloak] {
    display: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea {
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.seidor-logo {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.seidor-sidebar-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 132px;
    padding: 22px 20px 20px;
    text-align: center;
}

.seidor-sidebar-brand .seidor-logo {
    margin-inline: auto;
}

.seidor-sidebar-tenant-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--tenant-secondary, #10B981);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    word-break: break-word;
}

.seidor-sidebar-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.seidor-logo--auth {
    width: 190px;
    max-width: 52vw;
}

.seidor-sidebar {
    background: var(--seidor-sidebar) !important;
}

.seidor-sidebar-border {
    border-color: var(--seidor-sidebar-border-color) !important;
}

.seidor-sidebar-card {
    background: var(--seidor-sidebar-card-bg) !important;
}

.seidor-link {
    color: var(--seidor-sidebar-text) !important;
    border-radius: 0 !important;
}

.seidor-link:hover {
    color: var(--seidor-sidebar-text) !important;
    background: color-mix(in srgb, var(--tenant-primary, #3B82F6) 28%, transparent) !important;
}

.seidor-link-active {
    color: var(--seidor-sidebar-text) !important;
    background: color-mix(in srgb, var(--tenant-primary, #3B82F6) 32%, transparent) !important;
}

.seidor-link-active svg {
    color: var(--seidor-sidebar-text);
}

.seidor-sidebar .sidebar-heading {
    color: var(--seidor-sidebar-heading) !important;
}

.seidor-sidebar .sidebar-user-name {
    color: var(--seidor-sidebar-text) !important;
}

.seidor-sidebar .sidebar-user-role,
.seidor-sidebar .sidebar-logout {
    color: var(--seidor-sidebar-muted) !important;
}

.seidor-sidebar .sidebar-logout:hover {
    color: var(--seidor-sidebar-text) !important;
}

.sidebar-mode-exit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--seidor-sidebar-muted);
    transition: color .15s, background .15s;
}

.sidebar-mode-exit:hover {
    color: var(--seidor-sidebar-text);
    background: var(--seidor-sidebar-card-bg);
}

.sidebar-mode-exit[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(50%) translateY(4px);
    padding: 6px 9px;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 70;
}

.sidebar-mode-exit[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.seidor-topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--seidor-border);
    position: sticky;
    top: 0;
    z-index: 15;
}

.seidor-page {
    background: var(--seidor-main);
}

.seidor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--seidor-blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.seidor-user-menu {
    min-width: 230px;
    border: 1px solid var(--seidor-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .13), 0 2px 8px rgba(0, 0, 0, .07);
    overflow: hidden;
}

.seidor-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--seidor-text);
    background: #fff;
}

.seidor-menu-item:hover {
    background: #F7F8FA;
}

.seidor-menu-item--danger {
    color: var(--seidor-danger);
}

.seidor-menu-item--danger:hover {
    background: #FEF2F2;
}

.seidor-auth-body {
    background: #081426;
}

.seidor-auth-hero {
    background: #10233D !important;
    border-color: rgba(148, 163, 184, .18) !important;
}

.seidor-auth-panel {
    background: #081426 !important;
}

.seidor-auth-heading {
    color: #F3F7FF;
}

.seidor-auth-muted {
    color: #9DBCF4;
}

.seidor-input {
    background: #E8F0FC !important;
    color: #071426 !important;
}

.seidor-input:focus {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .32) !important;
}

.seidor-button {
    background: var(--tenant-secondary, var(--seidor-blue)) !important;
}

.seidor-button:hover {
    background: color-mix(in srgb, var(--tenant-secondary, var(--seidor-blue)) 86%, #000) !important;
}

.bg-blue-600,
.bg-indigo-600 {
    background-color: var(--tenant-secondary, #3B82F6) !important;
}

.hover\:bg-blue-700:hover,
.hover\:bg-indigo-700:hover {
    background-color: color-mix(in srgb, var(--tenant-secondary, #3B82F6) 86%, #000) !important;
}

.text-blue-600,
.text-indigo-600 {
    color: var(--tenant-primary, #3B82F6) !important;
}

.focus\:ring-blue-500:focus,
.focus\:ring-indigo-500:focus {
    --tw-ring-color: var(--tenant-primary, #3B82F6) !important;
}

.focus\:border-blue-500:focus,
.focus\:border-indigo-500:focus {
    border-color: var(--tenant-primary, #3B82F6) !important;
}

.seidor-card {
    background: #fff;
    border: 1px solid var(--seidor-border);
    border-radius: 14px;
}

.seidor-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--seidor-border);
    border-radius: 8px;
    color: #64748B;
    background: #fff;
    transition: color .15s, border-color .15s, background .15s;
}

.seidor-action:hover {
    color: var(--seidor-blue);
    border-color: #BFDBFE;
    background: #EFF6FF;
}

.seidor-action--danger:hover {
    color: var(--seidor-danger);
    border-color: #FECACA;
    background: #FEF2F2;
}

.seidor-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(50%) translateY(4px);
    padding: 5px 8px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 50;
}

.seidor-action[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.tenant-select-shell {
    border: 1px solid #DBEAFE;
    border-radius: 14px;
    background: linear-gradient(90deg, #EFF6FF, #ECFEFF);
}

.tenant-combobox {
    position: relative;
}

.tenant-combobox__input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 34px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: var(--seidor-sidebar-input-bg);
    color: var(--seidor-sidebar-text);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.tenant-combobox__input::placeholder {
    color: var(--seidor-sidebar-muted);
}

.tenant-combobox__input:focus {
    border-color: #3B82F6;
    background: var(--seidor-sidebar-input-bg);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

.tenant-combobox__search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--seidor-sidebar-muted);
    pointer-events: none;
    z-index: 2;
}

.tenant-combobox__chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--seidor-sidebar-muted);
    border-radius: 6px;
    z-index: 2;
}

.tenant-combobox__chevron:hover {
    color: var(--seidor-sidebar-text);
    background: rgba(255, 255, 255, .08);
}

.tenant-combobox__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .24);
}

.tenant-combobox__option {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: #111827;
    font-size: 14px;
    text-align: left;
    line-height: 1.2;
}

.tenant-combobox__option:hover {
    background: #EFF6FF;
    color: #1D4ED8;
}

.tenant-combobox__empty {
    padding: 10px;
    color: #6B7280;
    font-size: 13px;
}

.tenant-config-card {
    padding: 28px 32px;
}

.tenant-back-button,
.tenant-outline-button,
.tenant-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}

.tenant-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tenant-page-heading h1 {
    margin: 0;
    color: #06152D;
    font-size: 26px;
    font-weight: 600;
}

.tenant-page-heading p {
    margin-top: 4px;
    color: #53657F;
    font-size: 16px;
}

.tenant-back-button,
.tenant-outline-button {
    border: 1px solid #1C77FF;
    background: #fff;
    color: #0B66FF;
    box-shadow: 0 4px 10px rgba(28, 119, 255, .10);
}

.tenant-back-button:hover,
.tenant-outline-button:hover {
    background: #EFF6FF;
}

.tenant-panel-body > .tenant-outline-button,
.repository-section + .tenant-outline-button {
    margin-top: 18px;
}

.tenant-save-button {
    border: 1px solid var(--tenant-secondary, #1C77FF);
    background: var(--tenant-secondary, #1C77FF);
    color: #fff;
    box-shadow: 0 8px 18px rgba(28, 119, 255, .22);
}

.tenant-save-button:hover {
    background: color-mix(in srgb, var(--tenant-secondary, #1C77FF) 88%, #000);
}

.tenant-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 7px;
    border: 1px solid #DDE6F3;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.tenant-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #42526B;
    font-size: 15px;
    font-weight: 700;
    transition: background .15s, color .15s;
}

.tenant-tab:hover {
    background: #F1F5F9;
}

.tenant-tab--active,
.tenant-tab--active:hover {
    background: #2477FF;
    color: #fff;
}

.tenant-config-panel {
    background: #fff;
    border: 1px solid #DDE6F3;
    border-radius: 18px;
    overflow: hidden;
}

.tenant-panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 108px;
    padding: 24px 30px;
    border-bottom: 1px solid #E7EDF5;
}

.tenant-panel-header h3 {
    margin: 0;
    color: #06152D;
    font-size: 20px;
    font-weight: 600;
}

.tenant-panel-header p {
    margin-top: 4px;
    color: #53657F;
    font-size: 15px;
}

.tenant-panel-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.tenant-panel-icon--blue {
    background: #DBEAFE;
    color: #2477FF;
}

.tenant-panel-icon--green {
    background: #D1FAE5;
    color: #059669;
}

.tenant-panel-icon--pink {
    background: #FCE7F3;
    color: #DB2777;
}

.tenant-panel-icon--amber {
    background: #FEF3C7;
    color: #D97706;
}

.tenant-panel-icon--violet {
    background: #EDE9FE;
    color: #4F46E5;
}

.tenant-panel-body {
    padding: 32px 30px;
}

.tenant-brand-body {
    padding-top: 28px;
}

.tenant-mail-grid {
    gap: 38px 32px;
}

.tenant-field-label {
    display: block;
    margin-bottom: 12px;
    color: #0F2240;
    font-size: 15px;
    font-weight: 600;
}

.tenant-field {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #C8D5E6;
    border-radius: 13px;
    background: #fff;
    color: #06152D;
    font-size: 15px;
    line-height: 1.45;
    outline: none;
}

.tenant-field:focus {
    border-color: #2477FF;
    box-shadow: 0 0 0 4px rgba(36, 119, 255, .12);
}

.tenant-field-help {
    margin-top: 12px;
    color: #64748B;
    font-size: 14px;
}

.tenant-repository-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tenant-repository-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #C8D5E6;
    border-radius: 12px;
    background: #fff;
    color: #0F2240;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.tenant-repository-option input {
    width: 16px;
    height: 16px;
    accent-color: #2477FF;
}

.repository-section {
    padding-top: 10px;
}

.repository-section .grid,
.tenant-panel-body .grid {
    row-gap: 34px;
    column-gap: 32px;
}

.tenant-panel-body.grid,
.tenant-mail-grid {
    gap: 34px 32px !important;
}

.repository-section .md\:grid-cols-2,
.tenant-panel-body .md\:grid-cols-2 {
    column-gap: 32px !important;
}

.tenant-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid #DDE6F3;
}

.tenant-brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: start;
}

.tenant-section-title {
    display: block;
    margin-bottom: 14px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.tenant-logo-preview {
    min-height: 176px;
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.tenant-logo-preview__frame {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0B1628;
    padding: 12px;
}

.tenant-logo-preview__frame--custom {
    background: transparent;
    padding: 0;
}

.tenant-logo-preview__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tenant-logo-preview__caption {
    margin-top: 14px;
    color: #64748B;
    font-size: 13px;
}

.tenant-file-input {
    height: auto;
    min-height: 0 !important;
    padding: 10px 12px !important;
    background: #fff;
    line-height: 1.45;
}

.tenant-file-input::file-selector-button {
    margin-top: 0;
    margin-bottom: 0;
}

.tenant-admin-card {
    padding: 24px 20px;
    border: 1px solid #DDE6F3;
    border-radius: 16px;
    background: #F8FAFC;
}

.tenant-admin-card__title {
    color: #06152D;
    font-size: 16px;
    font-weight: 600;
}

.tenant-admin-card__hint {
    margin-top: 3px;
    color: #53657F;
    font-size: 14px;
}

.tenant-admin-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.tenant-admin-remove:hover {
    background: #FEE2E2;
}

.tenant-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 0 18px;
    color: #DC2626;
    background: #FEF2F2;
    font-size: 14px;
    font-weight: 600;
}

.tenant-delete-button:hover {
    background: #FEE2E2;
}

.tenant-platform-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #0F2240;
    font-size: 16px;
    font-weight: 600;
}

.tenant-platform-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tenant-platform-switch__track {
    position: relative;
    width: 64px;
    height: 32px;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background .15s;
}

.tenant-platform-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .20);
    transition: transform .15s;
}

.tenant-platform-switch input[type="checkbox"]:checked + .tenant-platform-switch__track {
    background: #2477FF;
}

.tenant-platform-switch input[type="checkbox"]:checked + .tenant-platform-switch__track::after {
    transform: translateX(32px);
}

.tenant-remove-logo {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid #FDE68A;
    background: #FFFBEB;
    color: #92400E;
    font-size: 14px;
}

.tenant-color-card {
    padding: 20px;
}

.tenant-color-picker {
    width: 168px;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #CBD5E1;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.tenant-color-picker__swatch {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.tenant-color-picker__hex {
    width: 88px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #F8FAFC;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.tenant-color-picker__hex[readonly] {
    cursor: default;
    pointer-events: none;
}

.tenant-color-picker__hex:focus {
    border-color: var(--tenant-primary, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.tenant-color-picker__hex--invalid {
    border-color: #F87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12);
}

.tenant-preview-block {
    margin-top: 18px;
}

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

.tenant-feature-switch {
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid #DDE6F3;
    border-radius: 12px;
    background: #F8FAFC;
}

.tenant-snippet-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.tenant-code-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px !important;
}

.tenant-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

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

.tenant-dynamic-row {
    display: grid;
    grid-template-columns: 86px minmax(120px, 1.1fr) 54px minmax(140px, .9fr) minmax(150px, 1fr) 40px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #DDE6F3;
    border-radius: 12px;
    background: #F8FAFC;
}

.tenant-dynamic-row--links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    position: relative;
}

.tenant-link-mode,
.tenant-link-actions {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 4px;
}

.tenant-link-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid #E2E8F0;
    padding-top: 12px;
}

.tenant-file-mini {
    display: grid;
    gap: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.tenant-file-mini input {
    width: 100%;
    min-height: 58px;
    border: 1px solid #C8D7EA;
    border-radius: 14px;
    padding: 15px 16px;
    color: #0F172A;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.tenant-file-mini input:focus {
    border-color: #2477FF;
    box-shadow: 0 0 0 4px rgba(36, 119, 255, .12);
}

.tenant-file-mini small {
    color: #94A3B8;
    font-weight: 500;
}

.tenant-row-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.tenant-color-mini {
    width: 52px;
    height: 46px;
    padding: 4px;
    border: 1px solid #CBD5E1;
    border-radius: 9px;
    background: #fff;
}

.tenant-info-callout,
.tenant-warning-callout,
.tenant-error-box {
    padding: 18px 28px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.tenant-info-callout {
    display: grid;
    gap: 6px;
    border: 1px solid #BFDBFE;
    background: #DBEAFE;
    color: #1D4ED8;
}

.tenant-info-callout strong {
    color: #1E40AF;
    font-size: 18px;
    font-weight: 600;
}

.tenant-warning-callout {
    border: 1px solid #FDE68A;
    background: #FFFBEB;
    color: #92400E;
}

.tenant-error-box {
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #B91C1C;
}

.tenant-field-error {
    margin-top: 8px;
    color: #DC2626;
    font-size: 13px;
    font-weight: 600;
}

.tenant-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border-radius: 9px;
    background: #EF4444;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(239, 68, 68, .18);
}

.tenant-danger-button:hover {
    background: #DC2626;
}

.tenant-table-wrap {
    overflow-x: auto;
}

.tenant-table {
    width: 100%;
    border-collapse: collapse;
    color: #17233A;
}

.tenant-table thead {
    background: #F8FAFC;
}

.tenant-table th,
.tenant-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #E7EDF5;
    text-align: left;
    vertical-align: middle;
}

.tenant-table th {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tenant-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 13px;
    font-weight: 700;
}

.tenant-popup-section {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.tenant-radio-grid,
.tenant-grid-2,
.tenant-grid-3 {
    display: grid;
    gap: 16px;
}

.tenant-radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tenant-radio-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tenant-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.tenant-radio-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px 20px;
    border: 1px solid #DDE6F3;
    border-radius: 12px;
    background: #fff;
    color: #17233A;
    cursor: pointer;
}

.tenant-radio-grid--compact .tenant-radio-card {
    min-height: 64px;
    padding: 14px 18px;
}

.tenant-radio-card input {
    width: 16px;
    height: 16px;
    accent-color: #2477FF;
}

.tenant-radio-card strong {
    display: block;
    font-size: 16px;
}

.tenant-radio-card small {
    display: block;
    margin-top: 3px;
    color: #64748B;
    font-size: 14px;
}

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

.tenant-variable-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #DDE6F3;
    border-radius: 9px;
    background: #F8FAFC;
    color: #64748B;
}

.tenant-variable-list code {
    color: #2477FF;
    font-size: 14px;
}

.tenant-color-input {
    width: 100%;
    height: 50px;
    padding: 7px;
    border: 1px solid #C8D5E6;
    border-radius: 13px;
    background: #fff;
}

.tenant-color-input--native {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.tenant-color-picker-ui {
    position: relative;
}

.tenant-color-picker-ui__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 8px 14px;
    border: 1px solid #C8D5E6;
    border-radius: 13px;
    background: #fff;
    color: #94A3B8;
    text-align: left;
}

.tenant-color-picker-ui__trigger:focus {
    border-color: #2477FF;
    box-shadow: 0 0 0 4px rgba(36, 119, 255, .16);
    outline: none;
}

.tenant-color-picker-ui__swatch,
.tenant-color-picker-ui__panel-swatch {
    width: 58px;
    height: 30px;
    flex: 0 0 58px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.tenant-color-picker-ui__value {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.tenant-color-picker-ui__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 80;
    width: min(292px, calc(100vw - 48px));
    padding: 0 0 10px;
    border: 1px solid #CBD5E1;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.tenant-color-picker-ui__spectrum {
    position: relative;
    height: 172px;
    cursor: crosshair;
    overflow: hidden;
}

.tenant-color-picker-ui__marker {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .35);
    transform: translate(-50%, -50%);
}

.tenant-color-picker-ui__tools {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 20px 8px;
}

.tenant-color-picker-ui__dropper {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    color: #020617;
    background: transparent;
    transition: background .12s, color .12s, box-shadow .12s;
}

.tenant-color-picker-ui__dropper:hover,
.tenant-color-picker-ui__dropper--active {
    background: #E5E7EB;
    color: #111827;
}

.tenant-color-picker-ui__dropper--active {
    box-shadow: 0 0 0 2px #2477FF inset;
}

.tenant-color-picker-ui__dropper svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.tenant-color-picker-ui__panel-value {
    display: grid;
    grid-template-columns: 58px minmax(78px, auto);
    align-items: center;
    gap: 10px;
}

.tenant-color-picker-ui__hue {
    grid-column: 1 / -1;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding: 0 !important;
}

.tenant-color-picker-ui__panel-hex {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.tenant-color-picker-ui__hue::-webkit-slider-runnable-track {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.tenant-color-picker-ui__hue::-moz-range-track {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.tenant-color-picker-ui__hue::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -2px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: hsl(var(--picker-hue, 0deg), 100%, 50%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .28);
    appearance: none;
    -webkit-appearance: none;
}

.tenant-color-picker-ui__hue::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: hsl(var(--picker-hue, 0deg), 100%, 50%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .28);
}

.tenant-color-picker-ui__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 30px 6px;
}

.tenant-color-picker-ui__fields label {
    display: grid;
    gap: 8px;
    color: #020617;
    font-size: 13px;
    text-align: center;
}

.tenant-color-picker-ui__fields input {
    width: 100%;
    min-height: 40px !important;
    padding: 8px 10px !important;
    border: 1px solid #D1D5DB;
    border-radius: 2px;
    background: #fff;
    color: #020617;
    font-size: 16px !important;
    text-align: center;
}

.tenant-color-picker-ui__hex {
    grid-column: 1 / -1;
}

.tenant-color-picker-ui__mode {
    display: block;
    width: calc(100% - 40px);
    min-height: 34px !important;
    margin: 0 20px;
    padding: 4px 10px !important;
    border: 2px solid #111827;
    border-radius: 4px;
    background: #fff;
    color: #020617;
    font-size: 15px !important;
    text-align: center;
}

.tenant-color-picker-loupe {
    position: fixed;
    z-index: 99999;
    width: 106px;
    height: 106px;
    border: 1px solid #111827;
    border-radius: 999px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background-color: #fff;
    background-image:
        linear-gradient(#94A3B8 1px, transparent 1px),
        linear-gradient(90deg, #94A3B8 1px, transparent 1px);
    background-size: 12px 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .20);
}

.tenant-color-picker-loupe::before {
    content: "";
    position: absolute;
    inset: 46px;
    border: 2px solid #111827;
    background: var(--sampled-color, #fff);
}

.tenant-color-picker-loupe span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.tenant-subpanel {
    padding: 20px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #F8FAFC;
}

.tenant-subpanel h4 {
    margin: 0 0 16px;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
}

.tenant-subpanel h4 span {
    color: #94A3B8;
    font-weight: 600;
}

.tenant-warning-check {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    background: #FFFBEB;
    color: #92400E;
}

.tenant-warning-check input {
    width: 18px;
    height: 18px;
    accent-color: #2477FF;
}

.tenant-range {
    width: 100%;
    accent-color: #2477FF;
}

.tenant-percent-left {
    color: #2477FF;
}

.tenant-percent-right {
    color: #059669;
}

.tenant-preview-title {
    margin: 0;
    color: #06152D;
    font-size: 22px;
    font-weight: 600;
}

.tenant-popup-preview {
    position: relative;
    display: grid;
    grid-template-columns: var(--preview-left, 50%) 1fr;
    width: min(920px, calc(100vw - 96px));
    max-width: 920px;
    height: 560px;
    margin: 18px auto 0;
    overflow: hidden;
    border: var(--preview-border-width, 0) solid var(--preview-border, #fff);
    border-radius: 28px;
    background: #F1F5F9;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .22);
}

.tenant-popup-preview__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(15, 23, 42, .10);
    border-radius: 999px;
    background: #fff;
    color: #6B7280;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}

.tenant-popup-preview__close:hover {
    color: #111827;
}

.tenant-popup-preview__close--locked,
.tenant-popup-preview__close--locked:hover {
    cursor: not-allowed;
    opacity: .58;
    color: #9CA3AF;
}

.tenant-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 36px;
    background: rgba(15, 23, 42, .42);
}

.tenant-popup-modal[hidden] {
    display: none !important;
}

body.tenant-popup-modal-open {
    overflow: hidden;
}

.tenant-popup-modal .tenant-popup-preview {
    width: min(1060px, calc(100vw - 96px));
    max-width: 1060px;
    margin: 0;
    box-shadow: 0 38px 92px rgba(15, 23, 42, .35);
}

.tenant-popup-preview__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: clamp(44px, 6vw, 72px) clamp(42px, 5vw, 58px);
    background: linear-gradient(180deg, var(--preview-primary, #0e172a), var(--preview-secondary, #002552));
    background-position: center;
    background-size: cover;
}

.tenant-popup-preview__left p,
.tenant-popup-preview__left h3 {
    margin: 0;
    line-height: 1.15;
}

.tenant-popup-preview__left span {
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.45;
    max-width: 360px;
}

.tenant-popup-preview__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tenant-popup-preview__button[hidden],
.tenant-popup-preview__left [hidden] {
    display: none !important;
}

.tenant-popup-preview__side {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: #CBD5E1;
    font-size: 17px;
    font-weight: 700;
}

.tenant-popup-preview__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .tenant-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tenant-tabs {
        align-items: stretch;
        gap: 8px;
        border-radius: 18px;
        flex-wrap: wrap;
    }

    .tenant-tab {
        min-width: 0;
        flex: 1 1 150px;
    }

    .tenant-form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .tenant-config-card {
        padding: 22px;
    }

    .tenant-brand-grid {
        grid-template-columns: 1fr;
    }

    .tenant-feature-grid,
    .tenant-snippet-box,
    .tenant-dynamic-row,
    .tenant-dynamic-row--links,
    .tenant-radio-grid,
    .tenant-grid-2,
    .tenant-grid-3,
    .tenant-radio-grid--three,
    .tenant-popup-preview {
        grid-template-columns: 1fr;
    }

    .tenant-popup-preview {
        width: 100%;
        height: auto;
        min-height: 620px;
    }

    .tenant-popup-preview__left,
    .tenant-popup-preview__side {
        min-height: 310px;
    }
}
