@source '../../../resources/views/**/*.blade.php';
@source '../js/**/*.js';
@theme inline{--font-sans:Inter,ui-sans-serif,system-ui,sans-serif;--color-console-page:var(--console-page);--color-console-surface:var(--console-surface);--color-console-soft:var(--console-soft);--color-console-ink:var(--console-ink);--color-console-muted:var(--console-muted);--color-console-edge:var(--console-edge);--color-console-accent:var(--console-accent);--color-console-strong:var(--console-strong);--color-console-tint:var(--console-tint);--color-console-drawer:var(--console-drawer);--color-console-onDrawer:var(--console-onDrawer);--color-console-onAction:var(--console-onAction);}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url('../../fonts/inter/inter-400.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url('../../fonts/inter/inter-500.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url('../../fonts/inter/inter-600.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url('../../fonts/inter/inter-700.woff2') format('woff2')}
/* Existing component geometry and visibility contracts. */
.article-body p { margin-bottom: 1rem; }
body :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=submit]),select,textarea){min-height:44px}
body :is(.btn,.kh-button,.app-button){min-height:40px}
body :is(.topbar,.kh-topbar,.lp-app-header){position:sticky;top:0;z-index:35}
body :is(.today,.topbar-divider,.lp-header-time){display:none}
body :is(.avatar,.lp-user-avatar){width:44px;height:44px;flex-basis:44px}
body :is(.login-shell,.kh-login-shell){width:min(1180px,calc(100% - 32px));min-height:656px;margin:32px auto;overflow:hidden}
body :is(.auth-orb,.kh-login-glow){display:none}
@media(max-width:767px){body :is(.btn,.kh-button,.app-button){min-height:44px}body :is(.login-shell,.kh-login-shell){grid-template-columns:1fr;min-height:0;margin:16px auto}body :is(.login-story,.login-visual,.kh-login-story){min-height:240px;padding:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
body .kh-shell,body [data-sidebar-main],body .admin-shell{min-height:100dvh}
body [data-user-menu-button]{width:44px;height:44px;transform:none}
body [data-user-menu-panel]{width:230px}
@media(min-width:1024px){body .admin-sidebar{width:238px}body .admin-sidebar.is-collapsed{width:72px}}

.kh-ui,
.kh-ui *,
.kh-ui *::before,
.kh-ui *::after {
    box-sizing: border-box;
}

.kh-ui {
    min-width: 20rem;
    min-height: 100%;
    margin: 0;
}

.kh-ui :where(button, [role='button'], a) {
    touch-action: manipulation;
}

.kh-ui :where(img, svg) {
    display: block;
    max-width: 100%;
}

.kh-ui :where(h1, h2, h3, h4, p) {
    margin-block: 0;
}

.kh-skip-link {
    position: fixed;
    top: var(--kh-space-3);
    left: var(--kh-space-3);
    z-index: 1000;
    padding: var(--kh-space-3) var(--kh-space-4);
    transform: translateY(-160%);
    transition: transform var(--kh-duration-fast) var(--kh-ease);
}

.kh-skip-link:focus {
    transform: translateY(0);
}

.kh-app {
    min-height: 100vh;
}

.kh-container {
    width: min(100%, var(--kh-content-width));
    margin-inline: auto;
    padding-inline: var(--kh-space-4);
}

.kh-content {
    padding-block: var(--kh-space-6);
}

.kh-stack {
    display: flex;
    flex-direction: column;
    gap: var(--kh-stack-gap, var(--kh-space-6));
}

.kh-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--kh-cluster-gap, var(--kh-space-3));
}

.kh-grid {
    display: grid;
    grid-template-columns: repeat(var(--kh-grid-columns, 1), minmax(0, 1fr));
    gap: var(--kh-grid-gap, var(--kh-space-6));
}

.kh-page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--kh-space-5);
    margin-bottom: var(--kh-space-8);
}

.kh-page-header__copy {
    display: grid;
    max-width: 48rem;
    gap: var(--kh-space-2);
}

.kh-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--kh-space-3);
}

.kh-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--kh-sidebar-width);
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: width var(--kh-duration) var(--kh-ease), transform var(--kh-duration) var(--kh-ease);
}

.kh-sidebar.is-open {
    transform: translateX(0);
}

.kh-sidebar__brand {
    display: flex;
    min-height: var(--kh-header-height);
    align-items: center;
    gap: var(--kh-space-3);
    padding-inline: var(--kh-space-6);
}

.kh-brand-mark {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.kh-sidebar__scroll {
    flex: 1;
    overflow-y: auto;
    padding: var(--kh-space-6) var(--kh-space-4);
}

.kh-nav-section + .kh-nav-section {
    margin-top: 1.75rem;
}

.kh-nav-label {
    margin: 0 0 var(--kh-space-3);
    padding-inline: var(--kh-space-3);
}

.kh-nav-list {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-nav-link {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: var(--kh-space-3);
    padding: var(--kh-space-3);
    transition: background-color var(--kh-duration-fast), color var(--kh-duration-fast), box-shadow var(--kh-duration-fast);
}

.kh-nav-link__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.kh-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
}

.kh-sidebar-overlay.is-visible {
    display: block;
}

.kh-shell {
    min-height: 100vh;
    transition: padding-left var(--kh-duration) var(--kh-ease);
}

.kh-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--kh-header-height);
}

.kh-topbar__inner {
    display: flex;
    min-height: var(--kh-header-height);
    align-items: center;
    justify-content: space-between;
    gap: var(--kh-space-4);
    padding-inline: var(--kh-space-4);
}

.kh-card {
    overflow: hidden;
}

.kh-card--interactive {
    transition: border-color var(--kh-duration), box-shadow var(--kh-duration), transform var(--kh-duration);
}

.kh-card--interactive:hover {
    transform: translateY(-2px);
}

.kh-card__header,
.kh-card__body,
.kh-card__footer {
    padding: var(--kh-space-5);
}

.kh-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--kh-space-4);
}

.kh-stat {
    position: relative;
    min-height: 9rem;
    padding: var(--kh-space-6);
    overflow: hidden;
}

.kh-stat__value {
    margin-top: var(--kh-space-3);
}

.kh-stat__meta {
    margin-top: var(--kh-space-3);
}

.kh-button {
    display: inline-flex;
    min-height: 2.75rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: var(--kh-space-2);
    padding: 0.6875rem var(--kh-space-5);
    transition: background-color var(--kh-duration-fast), border-color var(--kh-duration-fast), color var(--kh-duration-fast), box-shadow var(--kh-duration-fast);
}

.kh-button:disabled,
.kh-button[aria-disabled='true'] {
    cursor: not-allowed;
    opacity: 0.55;
}

.kh-button--sm {
    min-height: 2.5rem;
    padding: 0.5625rem var(--kh-space-4);
}

.kh-button--icon {
    width: 2.75rem;
    padding: 0;
}

.kh-button__icon,
.kh-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
}

.kh-form {
    display: grid;
    gap: var(--kh-space-5);
}

.kh-field {
    display: grid;
    gap: var(--kh-space-2);
}

.kh-input,
.kh-select,
.kh-textarea {
    width: 100%;
    transition: border-color var(--kh-duration-fast), background-color var(--kh-duration-fast), box-shadow var(--kh-duration-fast);
}

.kh-input,
.kh-select {
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
}

.kh-select {
    padding-right: 2.5rem;
}

.kh-textarea {
    min-height: 7.5rem;
    resize: vertical;
    padding: 0.75rem 0.875rem;
}

.kh-input:disabled,
.kh-select:disabled,
.kh-textarea:disabled {
    cursor: not-allowed;
}

.kh-check {
    display: inline-flex;
    min-height: 2.75rem;
    cursor: pointer;
    align-items: center;
    gap: var(--kh-space-3);
}

.kh-check input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
}

.kh-badge {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

.kh-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 auto;
}

.kh-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--kh-space-3);
    padding: var(--kh-space-4);
}

.kh-progress {
    height: 0.5rem;
    overflow: hidden;
}

.kh-progress__bar {
    width: var(--kh-progress, 0%);
    height: 100%;
    transition: width 400ms var(--kh-ease);
}

.kh-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.kh-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.kh-table th {
    padding: 0.75rem 1rem;
}

.kh-table td {
    padding: 1rem;
}

.kh-table tbody tr {
    transition: background-color var(--kh-duration-fast);
}

.kh-tabs {
    display: flex;
    gap: var(--kh-space-2);
    overflow-x: auto;
    padding: var(--kh-space-1);
}

.kh-tab {
    display: inline-flex;
    min-height: 2.5rem;
    flex: 0 0 auto;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
}

.kh-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--kh-space-2);
}

.kh-page-link {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding-inline: var(--kh-space-3);
}

.kh-page-link[aria-disabled='true'] {
    pointer-events: none;
    opacity: 0.5;
}

.kh-dropdown {
    min-width: 16rem;
    padding: var(--kh-space-2);
}

.kh-dropdown__item {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: var(--kh-space-3);
    padding: 0.625rem var(--kh-space-3);
}

.kh-dialog {
    width: min(calc(100% - 2rem), 34rem);
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
}

.kh-dialog__header,
.kh-dialog__body,
.kh-dialog__footer {
    padding: var(--kh-space-5);
}

.kh-dialog__header,
.kh-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--kh-space-4);
}

.kh-dialog__footer {
    justify-content: flex-end;
}

.kh-empty {
    display: grid;
    min-height: 16rem;
    padding: var(--kh-space-10) var(--kh-space-5);
}

.kh-empty__content {
    display: grid;
    max-width: 28rem;
    justify-items: center;
    gap: var(--kh-space-3);
}

.kh-empty__icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
}

.kh-toast {
    display: grid;
    width: min(calc(100vw - 2rem), 24rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--kh-space-3);
    padding: var(--kh-space-4);
}

.kh-spinner {
    width: 1.25rem;
    height: 1.25rem;
    animation: kh-spin 700ms linear infinite;
}

.kh-skeleton {
    min-height: 1rem;
    overflow: hidden;
    animation: kh-shimmer 1.4s ease-in-out infinite;
}

@keyframes kh-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 640px) {
    .kh-container,
    .kh-topbar__inner {
        padding-inline: var(--kh-space-6);
    }

    .kh-content {
        padding-block: var(--kh-space-8);
    }

    .kh-card__header,
    .kh-card__body,
    .kh-card__footer,
    .kh-dialog__header,
    .kh-dialog__body,
    .kh-dialog__footer {
        padding: var(--kh-space-6);
    }
}

@media (min-width: 1024px) {
    .kh-sidebar {
        transform: translateX(0);
    }

    .kh-shell {
        padding-left: var(--kh-sidebar-width);
    }

    .kh-sidebar.is-collapsed {
        width: var(--kh-sidebar-collapsed-width);
    }

    .kh-shell.sidebar-collapsed {
        padding-left: var(--kh-sidebar-collapsed-width);
    }

    .kh-sidebar.is-collapsed :where(.kh-sidebar__brand-copy, .kh-nav-label, .kh-nav-link__label) {
        display: none;
    }

    .kh-sidebar.is-collapsed .kh-nav-link {
        justify-content: center;
    }

    .kh-container,
    .kh-topbar__inner {
        padding-inline: var(--kh-space-10);
    }

    .kh-page-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-ui *,
    .kh-ui *::before,
    .kh-ui *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.kh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.kh-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kh-divider {
    height: 1px;
}

.kh-hidden {
    display: none !important;
}
.kh-ui [hidden] { display:none!important; }
.kh-ui .issue-trigger-mobile { display:none; }
.kh-ui .issue-dialog {
    position:fixed; inset:0;
    width:min(608px,calc(100vw - 32px)); max-height:calc(100dvh - 32px);
    margin:auto; overflow:hidden; }
.kh-ui .issue-dialog .kh-dialog__header { flex:0 0 auto; align-items:center; gap:12px; padding:24px; }
.kh-ui .issue-dialog .kh-dialog__footer { flex-wrap:wrap; flex:0 0 auto; padding:24px; gap:10px; }
.kh-ui .issue-dialog .kh-dialog__footer > a { margin-right:auto; }
.kh-ui .issue-context { display:grid; gap:var(--kh-space-1); padding:var(--kh-space-3); }
.kh-ui .issue-context span { overflow-wrap:anywhere; }
.kh-ui .issue-file { width:100%; min-height:2.75rem; padding:var(--kh-space-2); }
.kh-ui .issue-file::file-selector-button { margin-right:var(--kh-space-3); padding:var(--kh-space-1) var(--kh-space-3); cursor:pointer; }
.kh-ui .issue-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.kh-ui .issue-details { display:grid; gap:var(--kh-space-4); margin:0; }
.kh-ui .issue-details dd { margin:var(--kh-space-1) 0 0; overflow-wrap:anywhere; }
.kh-ui .icon { width:1.125rem; height:1.125rem; flex:0 0 auto; display:inline-block; }
.kh-ui .brand { display:flex; align-items:center; min-width:0; gap:9px; }
.kh-ui .brand small { display:block; margin-top:var(--kh-space-1); }
.kh-ui .sidebar-header { justify-content:space-between; flex:0 0 auto; min-height:90px; padding-inline:19px; }
.kh-ui .kh-sidebar__scroll { flex:1 1 0%; min-height:0; min-width:0; overflow-x:hidden; padding:10px 19px 24px; }
.kh-ui .kh-nav-list { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; }
.kh-ui .kh-nav-link { flex:0 0 auto; min-width:0; height:auto; padding:12px 14px; min-height:46px; gap:12px; }
.kh-ui .sidebar-toggle { width:1.75rem; height:2rem; display:grid; flex:0 0 auto; cursor:pointer; }
.kh-ui .sidebar-toggle .icon { width:1rem; height:1rem; transform:rotate(180deg); }
.kh-ui .kh-nav-link .icon { width:1.25rem; height:1.25rem; }
.kh-ui .kh-nav-link__label { min-width:0; overflow-wrap:anywhere; }
.kh-ui .breadcrumbs,.kh-ui .topbar-right { display:flex; align-items:center; gap:var(--kh-space-4); min-width:0; }
.kh-ui .breadcrumbs > .icon { width:.75rem; height:.75rem; }
.kh-ui .breadcrumbs strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kh-ui .topbar-divider { height:1.5rem; width:1px; }
.kh-ui .account-menu { position:relative; }
.kh-ui .account-trigger { list-style:none; cursor:pointer; display:flex; align-items:center; gap:var(--kh-space-3); padding:var(--kh-space-2); max-width:17rem; }
.kh-ui .account-trigger::-webkit-details-marker { display:none; }
.kh-ui .avatar { display:inline-flex; align-items:center; justify-content:center; width:2.5rem; height:2.5rem; flex:0 0 auto; }
.kh-ui .avatar.small { width:2rem; height:2rem; }
.kh-ui .account-trigger-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kh-ui .account-trigger-name small { display:block; }
.kh-ui .account-chevron { width:.875rem; height:.875rem; transform:rotate(90deg); }
.kh-ui .account-menu[open] .account-chevron { transform:rotate(-90deg); }
.kh-ui .account-dropdown { position:absolute; right:0; top:calc(100% + var(--kh-space-3)); width:14.875rem; max-width:calc(100vw - 2rem); z-index:50; }
.kh-ui .account-identity { padding:var(--kh-space-3); margin-bottom:var(--kh-space-1); display:flex; align-items:center; gap:var(--kh-space-3); }
.kh-ui .account-identity strong,.kh-ui .account-identity span { display:block; overflow-wrap:anywhere; }
.kh-ui .account-identity span { margin-top:var(--kh-space-1); }
.kh-ui .account-logout { margin-top:var(--kh-space-1); padding-top:var(--kh-space-1); }
.kh-ui .account-logout button { width:100%; justify-content:flex-start; }
.kh-ui .account-avatar { width:2.75rem; height:2.75rem; }
.kh-ui .account-identity > div { min-width:0; }
.kh-ui .account-identity .account-identity-avatar { display:inline-flex; margin-top:0; width:2.5rem; height:2.5rem; }
.kh-ui .profile-layout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:var(--kh-space-6); align-items:start; }
.kh-ui .profile-summary { padding:var(--kh-space-6); min-width:0; }
.kh-ui .profile-identity { padding-bottom:var(--kh-space-8); }
.kh-ui .profile-avatar { display:flex; align-items:center; justify-content:center; margin:0 auto var(--kh-space-6); width:4.5rem; height:4.5rem; }
.kh-ui .profile-identity .kh-body { margin-top:var(--kh-space-1); overflow-wrap:anywhere; }
.kh-ui .profile-identity > .kh-badge { margin-top:var(--kh-space-3); }
.kh-ui .profile-meta { padding-top:var(--kh-space-6); margin:0; display:grid; gap:var(--kh-space-4); }
.kh-ui .profile-meta > div { display:flex; align-items:center; justify-content:space-between; gap:var(--kh-space-3); flex-wrap:wrap; }
.kh-ui .profile-meta dd { margin:0; }
.kh-ui .profile-sections { display:grid; gap:var(--kh-space-6); min-width:0; }
.kh-ui .profile-section-heading { display:flex; align-items:flex-start; gap:var(--kh-space-4); margin-bottom:var(--kh-space-6); }
.kh-ui .profile-section-icon { display:grid; flex:0 0 auto; width:3rem; height:3rem; }
.kh-ui .profile-section-icon .icon { width:1.5rem; height:1.5rem; }
.kh-ui .profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--kh-space-5); }
.kh-ui .profile-fields .field { margin-bottom:0; min-width:0; }
.kh-ui .profile-form-actions { display:flex; justify-content:flex-end; gap:var(--kh-space-3); flex-wrap:wrap; margin-top:var(--kh-space-6); padding-top:var(--kh-space-5); }
.kh-ui #change-password { scroll-margin-top:calc(var(--kh-header-height) + var(--kh-space-6)); }
.kh-ui .article-pagination { display:flex; align-items:center; justify-content:space-between; gap:var(--kh-space-4); flex-wrap:wrap; margin-top:var(--kh-space-6); }
.kh-ui .article-workspace { width:100%; max-width:none; min-width:0; margin-inline:0; padding:0; }
.kh-ui .article-workspace > div,.kh-ui .article-workspace > article { width:100%; min-width:0; }
.kh-ui .form-section-heading { margin-bottom:var(--kh-space-6); }
.kh-ui .form-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:var(--kh-space-3); padding-top:var(--kh-space-6); margin-top:20px; padding:6px 0; }
.kh-ui .article-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--kh-space-5); }
.kh-ui .article-fields > div { min-width:0; }
.kh-ui .article-fields__wide { grid-column:1 / -1; }
.kh-ui .kh-button { overflow-wrap:anywhere; min-height:44px; padding:11px 16px; gap:8px; }
.kh-ui .kh-card,.kh-ui .kh-page-header > div,.kh-ui .page-heading > div { min-width:0; }
.kh-ui .kh-title,.kh-ui .kh-heading,.kh-ui .kh-subheading { overflow-wrap:anywhere; }
.kh-ui .page-heading p,.kh-ui .panel-heading p { margin-top:var(--kh-space-2); }
.kh-ui .page-heading .eyebrow { margin-bottom:var(--kh-space-2); }
.kh-ui .actions { display:flex; align-items:center; gap:var(--kh-space-3); flex-wrap:wrap; }
.kh-ui .panel-heading { display:flex; align-items:center; justify-content:space-between; gap:var(--kh-space-4); flex-wrap:wrap; padding:21px 24px; }
.kh-ui .text-link { display:inline-flex; align-items:center; gap:var(--kh-space-2); }
.kh-ui .text-link .icon { width:1rem; height:1rem; }
.kh-ui .stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:27px; }
.kh-ui .stat-top { display:flex; align-items:center; justify-content:space-between; gap:var(--kh-space-2); }
.kh-ui .stat-icon { flex:0 0 auto; display:grid; width:33px; height:33px; }
.kh-ui .dashboard-columns { display:grid; grid-template-columns:minmax(0,1fr) 19rem; gap:var(--kh-space-6); margin-bottom:var(--kh-space-6); }
.kh-ui .kh-table td { white-space:nowrap; padding:18px 20px; }
.kh-ui .kh-table td .actions { flex-wrap:nowrap; gap:8px; }
.kh-ui .kh-table td .kh-button { min-height:2.5rem; padding:.5625rem var(--kh-space-4); }
.kh-ui .requirements-table { white-space:normal; }
.kh-ui .requirements-table th,.kh-ui .requirements-table td { min-width:9rem; white-space:normal; }
.kh-ui .requirements-table th:first-child,.kh-ui .requirements-table td:first-child { min-width:13rem; }
.kh-ui .project-cell { display:flex; align-items:center; gap:var(--kh-space-3); }
.kh-ui .project-cell strong { display:block; max-width:14.875rem; overflow:hidden; text-overflow:ellipsis; }
.kh-ui .project-cell small,.kh-ui .stacked small { display:block; margin-top:var(--kh-space-1); }
.kh-ui .project-avatar { display:grid; flex:0 0 auto; width:38px; height:38px; }
.kh-ui .article-headline { display:block; max-width:34rem; min-width:14rem; white-space:normal; }
.kh-ui .article-excerpt { display:block; max-width:28rem; min-width:14rem; white-space:normal; margin-top:var(--kh-space-2); }
.kh-ui .article-topics { display:flex; flex-wrap:wrap; gap:var(--kh-space-2); min-width:8rem; max-width:15rem; white-space:normal; }
.kh-ui .kh-badge i { width:.4.5rem; height:.4.5rem; }
.kh-ui .count-pill { padding:var(--kh-space-1) var(--kh-space-3); }
.kh-ui .article-filters { padding:0 var(--kh-space-6) var(--kh-space-6); }
.kh-ui .article-filters .field { margin:0; }
.kh-ui .article-filters .filter-note { margin-top:var(--kh-space-4); }
.kh-ui .filters { display:flex; align-items:center; gap:var(--kh-space-3); flex-wrap:wrap; padding:var(--kh-space-6); }
.kh-ui .filters > .select2-container { flex:1 1 10rem; width:auto!important; max-width:14rem; }
.kh-ui .workspace-tools { padding:0 var(--kh-space-6) var(--kh-space-6); }
.kh-ui .workspace-tools > a { display:flex; align-items:center; gap:var(--kh-space-3); padding:var(--kh-space-4) 0; }
.kh-ui .workspace-tools > a > span:nth-child(2) { flex:1; min-width:0; }
.kh-ui .workspace-tools strong { display:block; }
.kh-ui .workspace-tools small { display:block; margin-top:var(--kh-space-1); }
.kh-ui .workspace-tools > a > .icon { width:1rem; }
.kh-ui .welcome-banner { display:flex; align-items:center; justify-content:space-between; gap:var(--kh-space-8); position:relative; overflow:hidden; margin-bottom:var(--kh-space-6); min-height:244px; padding:29px 34px; }
.kh-ui .welcome-banner h2 { margin-block:var(--kh-space-4); margin:11px 0; }
.kh-ui .welcome-banner a { display:inline-flex; gap:var(--kh-space-3); align-items:center; margin-top:16px; }
.kh-ui .banner-label { display:flex; align-items:center; gap:var(--kh-space-2); }
.kh-ui .banner-label > span { width:.4.5rem; height:.4.5rem; }
.kh-ui .orbit-art { display:flex; align-items:center; justify-content:center; width:12rem; height:12rem; flex:0 0 auto; position:relative; }
.kh-ui .orbit { position:absolute; }
.kh-ui .orbit-one { width:8rem; height:8rem; }.kh-ui .orbit-two { width:12rem; height:12rem; }
.kh-ui .orbit-center { display:grid; width:4rem; height:4rem; }
.kh-ui .orbit-center .icon { width:2rem; height:2rem; }
.kh-ui .orbit-node { position:absolute; display:grid; width:2.5rem; height:2.5rem; }
.kh-ui .node-one { top:0; left:var(--kh-space-6); }.kh-ui .node-two { top:var(--kh-space-6); right:0; }.kh-ui .node-three { bottom:0; left:var(--kh-space-8); }.kh-ui .node-four { bottom:var(--kh-space-8); right:0; }
.kh-ui .art-label { display:none; }
.kh-ui .form-layout { display:grid; align-items:start; grid-template-columns:minmax(0,1fr) 270px; gap:24px; }
.kh-ui .form-main { min-width:0; }
.kh-ui .project-form .form-layout { grid-template-columns:minmax(0,1fr); }
.kh-ui .project-form .form-tip { display:none; }
.kh-ui .account-form { padding:var(--kh-space-6); }
.kh-ui .account-form .field { margin-bottom:var(--kh-space-6); }
.kh-ui .account-form-actions { display:flex; gap:var(--kh-space-3); justify-content:flex-end; flex-wrap:wrap; padding-top:var(--kh-space-3); }
.kh-ui .account-tip { padding:var(--kh-space-6); display:grid; gap:var(--kh-space-3); }
.kh-ui .account-tip p,.kh-ui .tip-bottom { overflow-wrap:anywhere; }
.kh-ui .tip-bottom { padding-top:var(--kh-space-4); }
.kh-ui .section-title { display:flex; align-items:center; gap:13px; margin-bottom:26px; }
.kh-ui .section-number { display:grid; flex:0 0 auto; width:33px; height:33px; }
.kh-ui .field .kh-input,.kh-ui .field .kh-select,.kh-ui .field .select2-container { margin-top:0; }
.kh-ui .password-input { position:relative; }
.kh-ui .password-input input { padding-right:4.5rem; }
.kh-ui .password-toggle { position:absolute; right:var(--kh-space-2); top:.375rem; min-height:2rem; padding:var(--kh-space-1) var(--kh-space-2); cursor:pointer; }
.kh-ui .field-error { display:block; }
.kh-ui .kh-alert { display:block; }
.kh-ui .article-body { overflow-wrap:anywhere; }
.kh-ui pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.kh-ui .docs-navigation { position:sticky; top:calc(var(--kh-header-height) + var(--kh-space-6)); }
.kh-ui .page-footer { position:fixed; bottom:0; left:0; right:0; z-index:15; height:calc(var(--article-footer-height) + env(safe-area-inset-bottom,0px)); padding:var(--kh-space-4) var(--kh-space-6) calc(var(--kh-space-4) + env(safe-area-inset-bottom,0px)); display:flex; align-items:center; justify-content:space-between; gap:var(--kh-space-4); padding-inline:38px; }
.kh-ui .select2-container { display:block; max-width:100%; margin-top:var(--kh-space-2); }
.kh-ui .select2-container--default .select2-selection--single { display:flex; align-items:center; height:46px; }
.kh-ui .select2-container--default .select2-selection--single .select2-selection__rendered { padding:0 34px 0 12px; }
.kh-ui .select2-container--default .select2-selection--single .select2-selection__arrow { height:44px; right:9px; }
.kh-ui .select2-dropdown { overflow:hidden; z-index:1051; }
.kh-ui .select2-search--dropdown { padding:var(--kh-space-2); }
.kh-ui .select2-search--dropdown .select2-search__field { min-height:2.5rem; padding:var(--kh-space-2) var(--kh-space-3); }
.kh-ui .select2-results__option { padding:var(--kh-space-3); overflow-wrap:anywhere; }
.kh-ui .select2-container--disabled .select2-selection--single { cursor:not-allowed; }
.kh-ui.login-page { min-height:100vh; display:grid; padding:var(--kh-space-8); }
.kh-ui .login-shell { display:grid; grid-template-columns:1fr 1fr; width:min(56rem,100%); min-height:35rem; overflow:hidden; }
.kh-ui .login-story { padding:var(--kh-space-8); display:flex; flex-direction:column; }
.kh-ui .login-story-content { margin:auto 0; padding-block:var(--kh-space-8); }
.kh-ui .login-story h1 { margin-block:var(--kh-space-6); }
.kh-ui .login-benefit { display:flex; align-items:center; gap:var(--kh-space-3); margin-top:var(--kh-space-5); }
.kh-ui .login-card { padding:var(--kh-space-10); display:flex; flex-direction:column; justify-content:center; }
.kh-ui .login-lock { width:3rem; height:3rem; display:grid; margin-bottom:var(--kh-space-6); }
.kh-ui .login-card h2 { margin-top:var(--kh-space-3); }
.kh-ui .login-intro { margin-top:var(--kh-space-3); }
.kh-ui .login-form { display:grid; gap:var(--kh-space-5); margin-top:var(--kh-space-8); }
.kh-ui .login-submit { width:100%; }
.kh-ui .login-help { display:flex; align-items:flex-start; gap:var(--kh-space-2); margin-top:var(--kh-space-5); }
.kh-ui .login-copyright { margin-top:var(--kh-space-8); }
.kh-ui .toast-container { position:fixed; top:calc(var(--kh-header-height) + var(--kh-space-3)); right:var(--kh-space-4); width:min(24rem,calc(100vw - 2rem)); z-index:1100; display:grid; gap:var(--kh-space-3); pointer-events:none; max-height:calc(100dvh - 7rem); overflow-y:auto; }
.kh-ui.login-page .toast-container { top:var(--kh-space-4); }
.kh-ui .toast { position:relative; width:100%; overflow:hidden; pointer-events:auto; }
.kh-ui .toast-symbol { display:grid; width:2rem; height:2rem; }
.kh-ui .toast-content strong { display:block; }
.kh-ui .toast-content p,.kh-ui .toast-content ul { margin-top:var(--kh-space-1); }
.kh-ui .toast-content ul { list-style:disc; padding-left:var(--kh-space-4); }
.kh-ui .toast-close { cursor:pointer; }
.kh-ui .toast-progress { position:absolute; inset:auto 0 0; height:var(--kh-space-1); }
.kh-ui .toast-progress > span { display:block; height:100%; transform-origin:left; }
.kh-ui .toast-leaving { opacity:0; transition:opacity var(--kh-duration-fast); }
.kh-ui .kh-confirm { padding:var(--kh-space-6); }
.kh-ui .kh-confirm .swal2-title { padding:0; }
.kh-ui .kh-confirm .swal2-actions { gap:var(--kh-space-3); }
.kh-ui [class~="mt-1"] { margin-top:var(--kh-space-1); }.kh-ui [class~="mt-2"] { margin-top:var(--kh-space-2); }.kh-ui [class~="mt-3"] { margin-top:var(--kh-space-3); }.kh-ui [class~="mt-4"] { margin-top:var(--kh-space-4); }.kh-ui [class~="mt-5"] { margin-top:var(--kh-space-5); }.kh-ui [class~="mt-6"] { margin-top:var(--kh-space-6); }.kh-ui [class~="mt-8"] { margin-top:var(--kh-space-8); }.kh-ui [class~="mb-4"] { margin-bottom:var(--kh-space-4); }
.kh-ui .space-y-2 > :not(:last-child) { margin-bottom:var(--kh-space-2); }
.kh-ui .space-y-3 > :not(:last-child) { margin-bottom:var(--kh-space-3); }
.kh-ui .space-y-4 > :not(:last-child) { margin-bottom:var(--kh-space-4); }
.kh-ui .space-y-5 > :not(:last-child) { margin-bottom:var(--kh-space-5); }
.kh-ui .space-y-6 > :not(:last-child) { margin-bottom:var(--kh-space-6); }
.kh-ui .space-y-8 > :not(:last-child) { margin-bottom:var(--kh-space-8); }
@media(min-width:1024px) {
    .kh-ui .mobile-menu { display:none; }
    .kh-ui .kh-sidebar.is-collapsed .sidebar-header { flex-direction:column; gap:var(--kh-space-3); padding:var(--kh-space-4) var(--kh-space-2); }
    .kh-ui .kh-sidebar.is-collapsed .sidebar-toggle .icon { transform:none; }
    .kh-ui .page-footer { left:var(--kh-sidebar-width); padding-inline:var(--kh-space-10); }
    .kh-ui.sidebar-collapsed .page-footer { left:var(--kh-sidebar-collapsed-width); }
}
@media(max-width:1279px) {
    .kh-ui .dashboard-columns,.kh-ui .form-layout { grid-template-columns:minmax(0,1fr); }
    .kh-ui .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1023px) {
    .kh-ui .profile-layout { grid-template-columns:minmax(0,1fr); }
    .kh-ui.nav-open { overflow:hidden; }
    .kh-ui .today,.kh-ui .topbar-divider { display:none; }
    .kh-ui .docs-navigation { position:static; }
    .kh-ui .breadcrumbs,.kh-ui .topbar-right { gap:var(--kh-space-2); }
}
@media(max-width:639px) {
    .kh-ui .article-fields { grid-template-columns:minmax(0,1fr); }
    .kh-ui .form-actions { justify-content:flex-start; }
    .kh-ui .form-actions .kh-button { flex:1 1 auto; }
    .kh-ui .profile-fields { grid-template-columns:minmax(0,1fr); }
    .kh-ui .issue-trigger-desktop,.kh-ui .breadcrumbs > span { display:none; }
    .kh-ui .issue-trigger-mobile { display:inline; }
    .kh-ui .report-issue-trigger { padding-inline:var(--kh-space-3); }
    .kh-ui .breadcrumbs strong { max-width:8rem; }
    .kh-ui .pagination-number { display:none; }
    .kh-ui .account-trigger-name { display:none; }
    .kh-ui .kh-topbar__inner { gap:var(--kh-space-2); }
    .kh-ui .welcome-banner { padding:var(--kh-space-6); }
    .kh-ui .orbit-art { display:none; }
    .kh-ui .stats-grid { gap:var(--kh-space-3); }
    .kh-ui .kh-stat { padding:var(--kh-space-4); }
    .kh-ui .stat-icon { width:2rem; height:2rem; }
    .kh-ui .page-footer { flex-wrap:wrap; gap:var(--kh-space-1); padding-inline:var(--kh-space-4); }
    .kh-ui.login-page { padding:var(--kh-space-4); }
    .kh-ui .login-shell { grid-template-columns:1fr; min-height:0; max-width:30rem; }
    .kh-ui .login-story { padding:var(--kh-space-6); }
    .kh-ui .login-story-content,.kh-ui .login-story-footer { display:none; }
    .kh-ui .login-card { padding:var(--kh-space-6); }
    .kh-ui .filters > .select2-container { max-width:none; }
    .kh-ui .panel-heading,.kh-ui .article-filters { padding-inline:var(--kh-space-5); }
}
.kh-ui .kh-topbar__inner { padding-inline:38px; }
.kh-ui .kh-page-header,.kh-ui .page-heading { margin-bottom:28px; align-items:center; }
.kh-ui .form-panel { padding:26px; }
.kh-ui .inventory-form-grid { gap:21px 22px; }
.kh-ui .inventory-form-grid .kh-label { margin-bottom:8px; }
.kh-ui .inventory-form-grid .kh-input,.kh-ui .inventory-form-grid .kh-select,.kh-ui .inventory-form-grid .select2-container { margin-top:0; }
.kh-ui .section-title p { margin-top:4px; }
.kh-ui .kh-input,.kh-ui .kh-select,.kh-ui .kh-textarea {
    min-height:46px; padding:11px 12px;
}
.kh-ui .kh-input:disabled,.kh-ui .kh-select:disabled,.kh-ui .kh-textarea:disabled { cursor:not-allowed; }
.kh-ui .kh-table th { padding:13px 20px; }
.kh-ui .kh-table td .kh-button,.kh-ui .kh-button--sm { min-height:32px; padding:5px 10px; gap:6px; }
.kh-ui .kh-table td .kh-button .icon { width:14px; height:14px; }
.kh-ui .kh-badge { padding:4px 7px; }
.kh-ui .kh-stat { padding:20px 21px; }
.kh-ui .kh-stat__value { margin-top:6px; }
.kh-ui .kh-brand-mark { width:36px; height:36px; }
.kh-ui .kh-nav-label { padding-inline:14px; margin-bottom:10px; }
.kh-ui .kh-nav-link__icon { width:18px; height:18px; }
.kh-ui .select2-container--default.select2-container--disabled .select2-selection--single { cursor:not-allowed; }
.kh-ui .form-tip { padding:25px; }
.kh-ui .form-tip h3 { margin-top:16px; }
.kh-ui .form-tip p { margin-top:12px; }
.kh-ui .required-note { margin-bottom:12px; }
.kh-ui .issue-dialog[open] { display:flex; flex-direction:column; }
.kh-ui .issue-dialog .kh-dialog__header > div { flex:1; min-width:0; }
.kh-ui .issue-dialog .kh-dialog__header [data-issue-close] { min-width:32px; min-height:32px; width:32px; height:32px; padding:0; }
.kh-ui .issue-dialog [data-issue-form] { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.kh-ui .issue-dialog .kh-dialog__body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:24px; gap:18px; }
.kh-ui .issue-dialog .kh-dialog__footer .kh-button { padding-inline:12px; }
@media (max-width:1250px) {
    .kh-ui .kh-topbar__inner,.kh-ui .page-footer { padding-inline:25px; }
}
@media (max-width:1050px) { .kh-ui .form-layout { grid-template-columns:minmax(0,1fr); } }
@media (max-width:639px) {
    .kh-ui .kh-topbar__inner { padding-inline:20px; }
    .kh-ui .form-panel { padding:21px; }
    .kh-ui .page-footer { flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; padding-inline:20px; }
    .kh-ui .welcome-banner { padding:27px; }
    .kh-ui .kh-stat { padding:18px; }
    .kh-ui .kh-button { max-width:100%; }
    .kh-ui .report-issue-trigger { padding-inline:12px; }
    .kh-ui .issue-dialog .kh-dialog__header { padding:16px; }
    .kh-ui .issue-dialog .kh-dialog__body { padding:16px; }
    .kh-ui .issue-dialog .kh-dialog__footer { padding:14px 16px; }
}


/* Karmaholic UI 1.1 — one visual system, shared by every application screen. */
:root{color-scheme:light;--page:#f4f4f2;--surface:#fafafa;--surface-soft:#eaeae8;--ink:#0e0d0b;--muted:#686560;--edge:#dadad8;--accent:#e8192c;--accent-strong:#c91021;--accent-soft:#f8e9e9;--accent-border:#ebcdcf;--drawer:#202020;--on-drawer:#dededb;--on-action:#ededeb;--field-focus-border:#8a8782;--field-focus-glow:#2020200d;--header-height:100px;--rail-width:238px;--sidebar:238px}
[data-theme=dark],html.dark{color-scheme:dark;--page:#111110;--surface:#191918;--surface-soft:#242423;--ink:#dededb;--muted:#aaa7a1;--edge:#343431;--accent:#ef3446;--accent-strong:#ff6876;--accent-soft:#312022;--accent-border:#513235;--field-focus-border:#8d8b85;--field-focus-glow:#dededb12}
:root{--console-page:var(--page);--console-surface:var(--surface);--console-soft:var(--surface-soft);--console-ink:var(--ink);--console-muted:var(--muted);--console-edge:var(--edge);--console-accent:var(--accent);--console-strong:var(--accent-strong);--console-tint:var(--accent-soft);--console-drawer:var(--drawer);--console-onDrawer:var(--on-drawer);--console-onAction:var(--on-action);--kh-space-1:4px;--kh-space-2:8px;--kh-space-3:12px;--kh-space-4:16px;--kh-space-5:20px;--kh-space-6:24px;--kh-space-8:32px;--kh-space-10:40px;--kh-space-12:48px;--kh-space-16:64px;--kh-sidebar-width:238px;--kh-sidebar-collapsed-width:72px;--kh-header-height:100px;--kh-content-width:100%;--article-footer-height:64px}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:var(--drawer);scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--ink);font:400 14px/1.6 Inter,ui-sans-serif,system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,summary{cursor:pointer}button,a{touch-action:manipulation}h1,h2,h3,h4,p{margin-top:0}h1{font-size:28px;font-weight:600;line-height:1.25;letter-spacing:-.025em}h2,h3{font-size:18px;font-weight:600;line-height:1.4}svg{flex-shrink:0}p{ text-wrap:pretty}small{font-size:12px}:focus-visible{outline:2px solid var(--field-focus-border);outline-offset:3px}[id]{scroll-margin-top:calc(var(--header-height) + 24px)}
:is(input:not([type=hidden],[type=checkbox],[type=radio],[type=submit],[type=button]),select,textarea,.kh-input,.kh-select,.kh-textarea){width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--edge);border-radius:8px;background:var(--surface-soft);color:var(--ink);font:400 14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;box-shadow:none}
textarea{min-height:120px;resize:vertical}input::placeholder,textarea::placeholder{color:var(--muted)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--field-focus-border);box-shadow:0 0 0 3px var(--field-focus-glow)}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--accent-strong)}input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:#e8192c}label,.kh-label{font-size:12px;font-weight:600;line-height:1.5}fieldset{border:1px solid var(--edge);border-radius:12px}legend{font-size:18px;font-weight:600}
:is(.btn,.button,.kh-button,.app-button,.auth-submit,.kh-login-submit,.lp-refresh-button){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 16px;border:1px solid var(--edge);border-radius:8px;background:var(--surface-soft);color:var(--ink);font-size:12px;font-weight:600;line-height:1.5;box-shadow:none}
:is(.btn,.button,.kh-button,.app-button):hover{background:var(--surface)}:is(.btn.primary,.btn-primary,.button-primary,.kh-button--primary,.app-button-primary,.auth-submit,.kh-login-submit,.lp-refresh-button,.login-submit){background:#e8192c;color:#ededeb;border-color:#e8192c}:is(.btn.primary,.btn-primary,.button-primary,.kh-button--primary,.app-button-primary,.kh-login-submit,.login-submit):hover{background:#c91021;border-color:#c91021}
:is(.btn.danger,.btn-danger,.kh-button--danger){background:var(--accent-soft);color:var(--accent-strong);border-color:var(--accent-border)}button:disabled,[aria-disabled=true]{background:var(--surface-soft);color:var(--muted);border-color:var(--edge);opacity:1;cursor:not-allowed;box-shadow:none;transform:none}
:is(.card,.panel,.kh-card,.app-card,.stat-card,.metric-card,.lp-panel,.lp-stat-card){background:var(--surface);border:1px solid var(--edge);border-radius:12px;box-shadow:none;padding:24px;min-width:0}:is(.panel-heading,.card-header,.kh-card__header){border-bottom:1px solid var(--edge);padding-bottom:20px;margin-bottom:20px}:is(.metric,.stat-value,.metric-value){font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
:is(.badge,.pill,.status,.status-badge,.app-badge,.kh-badge,.chip){display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:4px 8px;border-radius:6px;background:var(--surface-soft);color:var(--ink);font-size:12px;line-height:1.5}:is(.error,.field-error,.kh-error,.text-danger){color:var(--accent-strong)}:is(.alert,.flash,.notice){border:1px solid var(--edge);background:var(--surface-soft);color:var(--ink);padding:16px;border-radius:12px}:is(.alert-danger,.flash-error){background:var(--accent-soft);color:var(--accent-strong);border-color:var(--accent-border)}
:is(.muted,.helper,.kh-help,.kh-body,.description,.eyebrow,.kh-eyebrow,.kh-meta){color:var(--muted)}.kh-title{font-size:28px;font-weight:600;line-height:1.25}.kh-heading,.kh-subheading{font-size:18px;font-weight:600}.icon,.ui-icon,.kh-nav-link__icon{width:20px;height:20px;flex-shrink:0}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{padding:12px 16px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);background:var(--surface-soft)}td{padding:16px;border-bottom:1px solid var(--edge)}:is(.table-wrap,.table-responsive,.kh-table-wrap){overflow:auto;max-width:100%}pre{padding:20px;background:var(--drawer);color:var(--on-drawer);border-radius:12px;overflow:auto;font:400 12px/1.6 ui-monospace,monospace}pre code{background:transparent;color:inherit}code{font-family:ui-monospace,monospace}
:is(.sidebar,.kh-sidebar,.admin-sidebar,[data-sidebar],.lp-app-sidebar){background:var(--drawer);color:var(--on-drawer);box-shadow:none;border:0}:is(.sidebar,.kh-sidebar,.admin-sidebar,[data-sidebar],.lp-app-sidebar) :is(a,summary){color:var(--on-drawer);font-size:13px;font-weight:500;border-radius:8px;min-height:44px}:is(.sidebar,.kh-sidebar,.admin-sidebar,[data-sidebar],.lp-app-sidebar) :is(a,summary):hover{background:#343431}:is(.sidebar,.kh-sidebar,.admin-sidebar,[data-sidebar],.lp-app-sidebar) :is(a.active,a.is-active,a[aria-current=page],a.bg-console-surface,.lp-nav-group.is-active>summary){background:#e8192c;color:#ededeb;box-shadow:none}:is(.sidebar,.kh-sidebar,.admin-sidebar,[data-sidebar],.lp-app-sidebar) :is(svg,i){color:inherit}
:is(.brand,.kh-sidebar__brand-copy,.lp-app-brand){font-size:16px;font-weight:600;color:inherit}:is(.brand small,.nav-label,.sidebar-label,.kh-nav-label,.lp-side-label){color:#aaa7a1;font-size:11px;letter-spacing:.12em}:is(.brand-mark,.kh-brand-mark,.kh-login-mark,.lp-app-brand>span){display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#e8192c;color:#ededeb;font-size:18px;font-weight:600}:is(.main-shell,.main-panel,.kh-shell,.admin-shell,.lp-app-main,[data-sidebar-main]){min-width:0;min-height:100dvh;background:var(--page);border-radius:24px 0 0 24px}:is(.topbar,.kh-topbar,.lp-app-header,[data-sidebar-main]>header){position:sticky;top:0;z-index:25;background:var(--page);border-bottom:1px solid var(--edge);box-shadow:none;backdrop-filter:none}:is(.today,.lp-header-time,.topbar-divider){display:none}:is(.topbar-right,.topbar-meta,.kh-topbar__actions,.lp-app-header-meta){display:flex;align-items:center;gap:12px}:is(.page-footer,.lp-app-footer){text-align:center;color:var(--muted);font-size:12px;border-top:1px solid var(--edge);padding:20px}
:is(.avatar,.lp-user-avatar,[data-user-menu-button]){display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--surface);font-size:14px;font-weight:600;border:1px solid var(--ink);box-shadow:none}:is(.account-dropdown,[data-user-menu-panel]){width:230px;max-width:calc(100vw - 32px);padding:16px;border-radius:12px;background:var(--surface);color:var(--ink);border:1px solid var(--edge);box-shadow:0 12px 38px #00000012}:is(.account-dropdown,[data-user-menu-panel]) :is(a,button){color:var(--ink);font-size:13px;min-height:44px;background:transparent;border:0;border-radius:8px}.account-trigger .account-name,.account-trigger>.icon{display:none}
:is(dialog,.modal-content,.kh-modal__panel,.swal2-popup){background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:12px;box-shadow:0 24px 90px #0004}dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#10101080}:is(.toast,.kh-toast){background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:12px;box-shadow:0 12px 38px #00000012}:is(.skip-link,.kh-skip-link){background:var(--surface);color:var(--ink)}
:is(.login-page,.kh-login-page,[data-console-login]){background:var(--page);color:var(--ink);min-height:100dvh}:is(.login-shell,.kh-login-shell,[data-console-login-frame]){display:grid;grid-template-columns:1fr 1.03fr;width:min(1180px,calc(100% - 32px));min-height:656px;margin:32px auto;border:6px solid var(--drawer);border-radius:24px;overflow:hidden;background:var(--surface);box-shadow:none}:is(.login-story,.login-visual,.kh-login-story,[data-console-login-frame]>:first-child){display:flex;flex-direction:column;justify-content:space-between;background:var(--drawer);color:var(--on-drawer);padding:48px}:is(.login-story,.login-visual,.kh-login-story,[data-console-login-frame]>:first-child) :is(h1,h2,h3,p,strong,small,span){color:inherit}:is(.login-story,.login-visual,.kh-login-story) h1{font-size:32px;font-weight:600;line-height:1.2}:is(.login-card,.login-panel,.kh-login-panel,.kh-login-form-side,.login-form-side,[data-console-login-frame]>:last-child){background:var(--surface);color:var(--ink);padding:40px;min-width:0}:is(.login-card-inner,.kh-login-form-wrap,.login-form-wrap,.login-form-inner){max-width:360px;margin-inline:auto}:is(.login-card,.kh-login-panel,.kh-login-form-side,.login-form-side) h2{font-size:30px;font-weight:600}:is(.login-story,.login-visual,.kh-login-story)::before,:is(.login-story,.login-visual,.kh-login-story)::after,.auth-orb,.kh-login-glow,[data-console-login] .pointer-events-none,[data-console-login-frame] .absolute.inset-0{display:none}
.console-theme-toggle{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--edge);border-radius:50%;background:var(--surface);color:var(--ink);cursor:pointer}.console-theme-toggle svg{width:20px;height:20px}.console-theme-toggle:hover{background:var(--surface-soft)}.console-theme-floating{position:fixed;top:16px;right:16px;z-index:60}
.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple{min-height:44px;background:var(--surface-soft);border:1px solid var(--edge);border-radius:8px;color:var(--ink)}.select2-dropdown{background:var(--surface);color:var(--ink);border:1px solid var(--edge);border-radius:12px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background:#e8192c;color:#ededeb}.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ink);line-height:42px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background:var(--surface);color:var(--ink);border-color:var(--edge);border-radius:6px}
@media(max-width:767px){h1,.kh-title{font-size:23px}input,select,textarea{font-size:16px}:is(.btn,.kh-button,.app-button){min-height:44px}:is(.login-shell,.kh-login-shell,[data-console-login-frame]){grid-template-columns:1fr;min-height:0;margin:16px auto;border-radius:18px}:is(.login-story,.login-visual,.kh-login-story,[data-console-login-frame]>:first-child){min-height:240px;padding:28px}:is(.login-card,.login-panel,.kh-login-panel,.kh-login-form-side,.login-form-side,[data-console-login-frame]>:last-child){padding:24px}:is(.main-shell,.main-panel,.kh-shell,.admin-shell,.lp-app-main,[data-sidebar-main]){border-radius:0}:is(.card,.panel,.kh-card,.app-card){padding:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}

/* Shared sign-in and form component contracts. */
.console-login-page{background:var(--page);color:var(--ink)}.console-login-outer{display:grid;place-items:center;min-height:100dvh;padding:24px 16px}.console-login-outer .kh-login-shell{width:min(1180px,100%);margin:0}.kh-login-panel{display:flex;align-items:center;justify-content:center}.kh-login-form-wrap{width:100%;max-width:360px}.kh-login-story h2{font-size:32px;line-height:1.2;font-weight:600}.kh-form{display:grid;gap:20px;margin-top:28px}.kh-form>div{display:grid;gap:8px}.kh-form label:not(.kh-check){display:block;margin-bottom:8px}.kh-check{display:flex;align-items:center;gap:8px;min-height:44px}.kh-kicker{font-size:12px;color:var(--muted)}.kh-login-help{margin-top:24px;font-size:12px;color:var(--muted)}.btn-primary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 16px;border:1px solid #e8192c;border-radius:8px;background:#e8192c;color:#ededeb;font-size:12px;font-weight:600}.kh-form .btn-primary{width:100%}@media(max-width:767px){.console-login-outer{padding:16px}.kh-login-story h2{font-size:28px}.btn-primary{min-height:44px}}

/* Supplied brand artwork: preserve proportions and contrast in both themes. */
.karmaholic-brand{display:inline-flex;flex-direction:column;gap:6px;min-width:0;max-width:100%;flex-shrink:1}.karmaholic-logo{display:block;width:140px;max-width:100%;height:auto;object-fit:contain;background:#fafafa;padding:8px;border-radius:6px;box-sizing:border-box}.karmaholic-brand>small{font-size:11px;line-height:1.4;color:inherit}.karmaholic-brand + :is(.kh-sidebar__brand-copy,.brand-caption,.sidebar-brand-text,[data-sidebar-brand]){display:none}.karmaholic-brand + div:not([class]),.karmaholic-brand + span:not([class]){display:none}:is(.sidebar-collapsed,.is-collapsed,.rail-collapsed,[data-collapsed=true]) .karmaholic-brand{max-width:40px}:is(.sidebar-collapsed,.is-collapsed,.rail-collapsed) .karmaholic-brand>small{display:none}


/* Shared Opt-out theme control and transition. */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--edge);
    font: 500 12px var(--font-brand);
    cursor: pointer;
    white-space: nowrap;
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.login-theme-control {
    position: absolute;
    top: 14px;
    right: 5%;
    z-index: 5;
}
@media (max-width: 639px) {
    .login-theme-control {
        position: static;
        justify-self: end;
        margin-bottom: 12px;
    }
    .login-intro {
        border-right: 0 !important;
        border-bottom: 1px solid var(--edge);
    }
}
/* One sun disc morphs into a crescent as its rays fold away. */
.theme-toggle {
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--ink);
    box-shadow: 0 2px 7px #10293508;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
}
.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent-border);
}
.theme-toggle:hover .theme-symbol {
    transform: scale(.82) rotate(-8deg);
}
.theme-toggle:active .theme-symbol {
    transform: scale(.68);
}
.theme-symbol {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    transform: scale(.75);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1.4);
}
.theme-orb {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: inset 0 0 0 currentColor;
    transition: inset 420ms ease, background-color 420ms ease, box-shadow 420ms ease, transform 520ms ease;
}
.theme-rays {
    position: absolute;
    inset: 0;
    transition: opacity 220ms ease, transform 520ms ease;
}
.theme-rays i {
    position: absolute;
    top: 0;
    left: 11px;
    width: 2px;
    height: 4px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: 1px 12px;
    transform: rotate(calc(var(--ray) * 45deg));
}
.theme-toggle[aria-checked="true"] .theme-orb {
    inset: 2px;
    background: transparent;
    box-shadow: inset -7px -4px 0 currentColor;
    transform: rotate(-20deg);
}
.theme-toggle[aria-checked="true"] .theme-rays {
    opacity: 0;
    transform: rotate(90deg) scale(.4);
}
/* Capture the icon separately so it keeps morphing during the page reveal. */
.theme-toggle {
    view-transition-name: theme-control;
}
html.theme-wave::view-transition-old(root), html.theme-wave::view-transition-new(root) {
    mix-blend-mode: normal;
    animation: none;
}
html.theme-wave::view-transition-old(root) {
    z-index: 1;
}
html.theme-wave::view-transition-new(root) {
    z-index: 2;
    animation: theme-circle-reveal 700ms cubic-bezier(.22,1,.36,1) both;
}
html.theme-wave::view-transition-group(theme-control) {
    z-index: 3;
}
html.theme-wave::view-transition-old(theme-control) {
    display: none;
}
html.theme-wave::view-transition-new(theme-control) {
    animation: none;
}
@keyframes theme-circle-reveal {
    from {
        clip-path: circle(0px at 50% 50%);
    }
    to {
        clip-path: circle(var(--theme-wave-radius) at 50% 50%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .theme-toggle, .theme-symbol, .theme-orb, .theme-rays {
        transition: none;
    }
    html.theme-wave::view-transition-new(root) {
        animation: none;
    }
}

html[data-theme] .theme-toggle:hover { background: var(--surface-soft); border-color: var(--edge); }
.console-theme-toggle { flex-basis: 34px; }

:root{--accent-gradient: var(--action-fill);--chart: var(--accent);--font-brand: 'Inter',sans-serif;--font-display: var(--font-brand);--drawer-soft: #303030;--action-fill: #e8192c;--action-hover: #c91021;--drawer-muted: #b1b1ad;--drawer-edge: #404040;--radius-card: 12px;--radius-control: 8px;--radius-panel: 24px;--radius-badge: 6px;--size-control: 44px;--size-action: 40px;--size-action-compact: 36px;--space-card: 24px;--text-label: 12px;--text-body: 14px;--text-section: 18px}
.console-page input[type="checkbox"] {
    accent-color: var(--action-fill);
}
.console-page {
    --green: #82eb98;
    background: #01020a;
    color: #f1f6f3;
    font-family: Arial,Helvetica,sans-serif;
    min-height: 100dvh;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}
.console-workspace {
    background: #01020a;
    padding: 38px 34px 20px;
}
.console-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 38px;
}
.console-logo {
    width: 60px;
    flex-shrink: 0;
    font-size: 38px;
    color: #82eb98;
    font-weight:600;
    text-align: center;
    letter-spacing: -5px;
}
.console-logo span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #82eb98;
    margin-left: 6px;
}
.console-kicker {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    color: #a2e6b5;
    margin-bottom: 8px;
}
.console-kicker span {
    color: #687a73;
}
.console-greeting h1 {
    font-size: 26px;
    letter-spacing: -.8px;
    font-weight: 500;
    line-height: 1.3;
}
.console-greeting>p:last-child {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}
.console-header-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}
.console-action,.console-avatar {
    height: 44px;
    width: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #191b23;
    color: #a5e6b6;
    border: 1px solid #a4d6b01a;
    cursor: pointer;
}
.console-avatar {
    font-weight: 600;
    background: linear-gradient(150deg,#a4ecb7,#60d691);
    color: #0b2818;
}
.console-account {
    position: relative;
}
.console-account-menu {
    position: absolute;
    right: 0;
    top: 54px;
    width: 230px;
    z-index: 50;
    padding: 16px;
    border: 1px solid #304039;
    border-radius: 16px;
    background: #191b23;
    box-shadow: 0 15px 40px #0008;
}
.console-account-menu strong {
    font-size: 13px;
    display: block;
    padding-bottom: 12px;
}
.console-account-menu a,.console-account-menu button {
    display: block;
    font-size: 13px;
    padding: 10px 0;
    color: #c3d8ca;
    cursor: pointer;
}
.console-body {
    display: grid;
    grid-template-columns: 60px minmax(0,1fr);
    gap: 30px;
}
.console-rail {
    border: 1px solid var(--edge);
    border-radius: 32px;
    background: #111219;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 8px 0;
    align-self: start;
    position: sticky;
    z-index: 30;
    top: 24px;
    min-height: 560px;
}
.console-rail nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rail-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9dabaa;
    border-radius: 50%;
    cursor: pointer;
    transition: background 150ms,color 150ms;
}
.rail-link:hover {
    background: #60d69130;
    color: #baf6cc;
}
.rail-link[aria-current] {
    background: linear-gradient(140deg,#8ded9f,#60d691);
    color: #062411;
    box-shadow: 0 3px 15px #1fa44d20;
}
.ui-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.rail-link:hover .rail-tooltip,.rail-link:focus-visible .console-rail-bottom {
    margin-top: auto;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.console-content {
    min-width: 0;
}
.console-footer {
    display: flex;
    justify-content: space-between;
    padding: 24px 0 0 90px;
    font-size: 10px;
    color: #687c72;
}
.security-emblem .ui-icon {
    width: 30px;
    height: 30px;
}
.file-icon .ui-icon {
    width: 15px;
    height: 15px;
}
.console-page a:focus-visible,.console-page button:focus-visible,.console-page input:focus-visible,.console-page select:focus-visible {
    outline: 2px solid #82eb98;
    outline-offset: 4px;
}
.console-page .bg-white,.console-page dialog,.console-page .swal2-popup {
    background-color: #111219!important;
    color: #edf4ef;
}
.console-page .bg-slate-50,.console-page .bg-slate-100 {
    background-color: #191b23!important;
}
.console-page [class*="text-slate-9"],.console-page [class*="text-slate-8"],.console-page [class*="text-slate-7"] {
    color: #e3ece6!important;
}
.console-page [class*="text-slate-6"],.console-page [class*="text-slate-5"],.console-page [class*="text-slate-4"] {
    color: #9facaa!important;
}
.console-page [class*="border-slate-"],.console-page [class*="divide-slate-"]>*+* {
    border-color: #2a3931!important;
}
.console-page [class*="bg-indigo-6"],.console-page [class*="bg-indigo-7"] {
    background-color: #30c066!important;
}
.console-page [class*="bg-indigo-5"],.console-page [class*="bg-violet-5"],.console-page [class*="bg-fuchsia-5"],.console-page [class*="bg-emerald-5"] {
    background-color: #60d69126!important;
}
.console-page [class*="text-indigo-"],.console-page [class*="text-violet-"],.console-page [class*="text-fuchsia-"],.console-page [class*="text-emerald-"] {
    color: #91dca6!important;
}
.console-page [class*="shadow-"] {
    box-shadow: none;
}
.console-page input,.console-page textarea,.console-page select {
    color-scheme: dark;
}
.console-page .select2-selection,.console-page .select2-dropdown,.console-page .select2-search__field {
    background: #191b23!important;
    color: #dae9de!important;
    border-color: #344c3d!important;
}
.console-page .select2-results__option--highlighted {
    background: #30c066!important;
}
.console-page .select2-selection__choice {
    background: #60d69126!important;
    color: #ceedd7!important;
}
.console-page .select2-selection__rendered {
    color: #dcebe1!important;
}
@media(min-width:1500px) {
    .console-workspace {
        padding: 46px 42px 24px;
    }
    .console-header {
        margin-bottom: 44px;
    }
}
@media(max-width:1199px) {
    .console-page {
        padding: 18px;
    }
    .console-workspace {
        padding: 28px 22px 18px;
    }
    .console-body {
        gap: 20px;
    }
    .console-header {
        gap: 20px;
    }
    .console-footer {
        padding-left: 80px;
    }
}
@media(max-width:1000px) {
    .console-rail {
        min-height: 550px;
    }
}
@media(max-width:639px) {
    .console-page {
        padding: 0 0 78px;
    }
    .console-workspace {
        border: 0;
        border-radius: 0;
        padding: 24px 16px 16px;
        min-height: 100dvh;
    }
    .console-header {
        gap: 12px;
        margin-bottom: 25px;
    }
    .console-logo {
        width: 30px;
        font-size: 28px;
    }
    .console-logo span {
        width: 5px;
        height: 5px;
        margin-left: 5px;
    }
    .console-kicker {
        font-size: 8px;
        letter-spacing: 1px;
    }
    .console-greeting h1 {
        font-size: 21px;
    }
    .console-greeting>p:last-child {
        font-size: 11px;
        max-width: 210px;
    }
    .console-header-actions {
        gap: 0;
    }
    .console-action {
        display: none;
    }
    .console-avatar {
        height: 36px;
        width: 36px;
        font-size: 12px;
    }
    .console-body {
        display: block;
    }
    .console-rail {
        position: fixed;
        bottom: 10px;
        top: auto;
        left: 12px;
        right: 12px;
        z-index: 30;
        min-height: 0;
        border-radius: 22px;
        padding: 7px;
        background: #111219f5;
        box-shadow: 0 6px 24px #0009;
        display: block;
        backdrop-filter: blur(16px);
    }
    .console-rail nav {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        overflow: auto;
    }
    .rail-link {
        width: 40px;
        height: 44px;
        flex-shrink: 0;
    }
    .rail-label {
        display: none;
    }
    .console-footer {
        padding: 20px 0 0;
        font-size: 9px;
    }
    .console-content>div,.console-content section {
        min-width: 0;
    }
}
@media(prefers-reduced-motion:reduce) {
    .console-page * {
        transition: none!important;
    }
}
.console-page {
    padding: 0;
}
.console-workspace {
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
}
.rail-link[aria-current],.console-avatar {
    color: #fff;
}
.console-page [class*="bg-indigo-6"],.console-page [class*="bg-indigo-7"] {
    color: #fff !important;
}
.console-page [class*="bg-indigo-6"] svg,.console-page [class*="bg-indigo-7"] svg {
    color: #fff !important;
}
@media (max-width: 639px) {
    .console-workspace {
        padding-bottom: 95px;
    }
}
.rail-label {
    display: none;
}
.rail-toggle {
    display: none;
}
@media (min-width: 640px) {
    .console-body {
        transition: grid-template-columns 280ms cubic-bezier(.22,1,.36,1);
    }
    html[data-rail-expanded="true"] .console-body {
        grid-template-columns: 238px minmax(0,1fr);
    }
    .console-rail {
        width: 100%;
        overflow: visible;
        align-items: stretch;
        padding: 8px 7px;
    }
    .console-rail nav {
        width: 100%;
        align-items: stretch;
    }
    .console-rail .rail-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0 12px;
        gap: 12px;
        border-radius: 6px;
        overflow: hidden;
    }
    .console-rail .rail-label {
        display: block;
        opacity: 0;
        white-space: nowrap;
        font-size: 12px;
        font-weight: 500;
        transform: translateX(-5px);
        transition: opacity 180ms ease, transform 280ms ease;
    }
    html[data-rail-expanded="true"] .console-rail .rail-label {
        opacity: 1;
        transform: translateX(0);
    }
    .console-rail .rail-toggle {
        position: absolute;
        top: 15px;
        right: -13px;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        padding: 0;
        border: 1px solid var(--edge);
        border-radius: 50%;
        background: var(--surface);
        color: var(--muted);
        box-shadow: 0 2px 6px #0000000a;
        cursor: pointer;
        transition: color 160ms ease, border-color 160ms ease;
    }
    .rail-toggle::before {
        content: '';
        position: absolute;
        inset: -7px;
    }
    .rail-toggle:hover {
        color: var(--accent);
        border-color: var(--accent-border);
    }
    .rail-toggle-icon {
        width: 15px;
        height: 15px;
    }
    .rail-toggle-chevron {
        transform-origin: 12px 12px;
        transition: transform 280ms ease;
    }
    html[data-rail-expanded="true"] .rail-toggle-chevron {
        transform: rotate(180deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .console-body,.console-rail .rail-label,.rail-toggle-chevron {
        transition: none;
    }
}
html[data-theme] .console-page {
    color: var(--ink);
    color-scheme: inherit;
    font-family: var(--font-brand);
}
html[data-theme] .console-page {
    --green: var(--accent);
    background: var(--page);
}
html[data-theme] .console-rail,html[data-theme] .console-account-menu {
    background: var(--surface);
    border-color: var(--edge);
    box-shadow: none;
}
html[data-theme] .console-logo {
    color: var(--ink);
}
html[data-theme] .console-kicker {
    color: var(--muted);
}
html[data-theme] .console-logo span {
    background: var(--action-fill);
}
html[data-theme] .console-kicker span,html[data-theme] .console-footer,html[data-theme] .console-account-menu a,html[data-theme] .console-account-menu button {
    color: var(--muted);
}
html[data-theme] .console-action {
    background: var(--surface-soft);
    color: var(--ink);
    border-color: var(--edge);
}
html[data-theme] .console-avatar,html[data-theme] .rail-link[aria-current] {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}
html[data-theme] .rail-link {
    color: var(--muted);
}
html[data-theme] .rail-link[aria-current] {
    color: var(--surface);
    box-shadow: none;
}
html[data-theme] .rail-link[aria-current]:hover {
    background: var(--ink);
    color: var(--surface);
}
html[data-theme] .console-page :is(a,button,input,select):focus-visible {
    outline-color: var(--field-focus-border);
}
html[data-theme] .console-page :is(.bg-white,dialog,.swal2-popup) {
    background: var(--surface)!important;
    color: var(--ink);
}
html[data-theme] .console-page :is(.bg-slate-50,.bg-slate-100) {
    background: var(--surface-soft)!important;
}
html[data-theme] .console-page :is([class*="text-slate-9"],[class*="text-slate-8"],[class*="text-slate-7"]) {
    color: var(--ink)!important;
}
html[data-theme] .console-page :is([class*="text-slate-6"],[class*="text-slate-5"],[class*="text-slate-4"]) {
    color: var(--muted)!important;
}
html[data-theme] .console-page [class*="border-slate-"],html[data-theme] .console-page [class*="divide-slate-"]>*+* {
    border-color: var(--edge)!important;
}
html[data-theme] .console-page :is([class*="bg-indigo-6"],[class*="bg-indigo-7"]) {
    background: var(--accent-gradient)!important;
    color: #fff!important;
}
html[data-theme] .console-page :is([class*="bg-indigo-5"],[class*="bg-violet-5"],[class*="bg-fuchsia-5"],[class*="bg-emerald-5"]) {
    background: var(--surface-soft)!important;
}
html[data-theme] .console-page :is([class*="text-indigo-"],[class*="text-violet-"],[class*="text-fuchsia-"],[class*="text-emerald-"]) {
    color: var(--ink)!important;
}
html[data-theme] .console-page :is(input,textarea,select) {
    color-scheme: inherit;
}
html[data-theme] .console-page :is(.select2-selection,.select2-dropdown,.select2-search__field) {
    background: var(--surface-soft)!important;
    color: var(--ink)!important;
    border-color: var(--edge)!important;
}
html[data-theme] .console-page .select2-selection__choice {
    background: var(--surface-soft)!important;
    color: var(--ink)!important;
}
html[data-theme] .console-page .select2-selection__rendered {
    color: var(--ink)!important;
}
html[data-theme] .console-page .select2-results__option--highlighted {
    background: var(--action-fill)!important;
    color: #fff!important;
}
@media (max-width: 639px) {
    .console-header {
        flex-wrap: wrap;
    }
    .console-header-actions {
        gap: 8px;
    }
}
html[data-theme] .console-greeting h1 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -.025em;
}
html[data-theme] .console-greeting h1 {
    font-size: 28px;
    line-height: 1.25;
}
html[data-theme] .console-rail {
    border-radius: 12px;
}
html[data-theme] .console-rail .rail-link {
    border-radius: 6px;
}
html[data-theme] .console-kicker {
    letter-spacing: .13em;
    font-weight: 500;
}
html[data-theme] .console-header {
    border-bottom: 1px solid var(--edge);
}
html[data-theme] .console-logo {
    width: 150px;
    text-align: left;
}
.brand-logo {
    display: block;
    width: 100%;
    height: auto;
}
html[data-theme="dark"] .brand-logo {
    filter: grayscale(1) invert(1);
}
@media(max-width:639px) {
    html[data-theme] .console-logo {
        width: 105px;
    }
    html[data-theme] .console-greeting h1 {
        font-size: 23px;
    }
    html[data-theme] .console-header {
        gap: 18px;
    }
    html[data-theme] .console-header-actions {
        margin-left: auto;
    }
}
html[data-theme] .rail-link[aria-current],html[data-theme] .rail-link[aria-current]:hover {
    background: var(--action-fill);
    border-color: var(--accent);
    color: #fff;
}
html[data-theme] .rail-link:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
}
html[data-theme] .console-page {
    padding: 0;
}
html[data-theme] .console-workspace {
    padding: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--drawer);
    min-height: 100dvh;
}
html[data-theme] .console-body {
    --panel-gap: 6px;
    gap: var(--panel-gap);
    grid-template-columns: 72px minmax(0,1fr);
    align-items: stretch;
}
html[data-theme][data-rail-expanded="true"] .console-body {
    grid-template-columns: 238px minmax(0,1fr);
}
html[data-theme] .console-content-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100dvh;
    padding: 30px;
    background: var(--page);
    border: 0;
    border-radius: 24px 0 0 24px;
}
html[data-theme] .console-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
}
html[data-theme] .console-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 26px 0 0;
    justify-content: center;
    text-align: center;
}
@media(min-width:640px) {
    html[data-theme] .console-rail {
        background: var(--drawer);
        border: 0;
        border-radius: 22px;
        padding: 24px 14px;
        min-height: 100dvh;
        height: 100dvh;
        position: sticky;
        top: 0;
    }
    html[data-theme] .console-rail .console-logo {
        width: 44px;
        height: 42px;
        overflow: hidden;
        margin-bottom: 28px;
        flex-shrink: 0;
        transition: width 280ms ease;
    }
    html[data-theme] .console-rail .brand-logo {
        width: 160px;
        max-width: none;
        height: auto;
        filter: grayscale(1) invert(1);
    }
    html[data-theme][data-rail-expanded="true"] .console-rail .console-logo {
        width: 160px;
    }
    html[data-theme] .console-rail .rail-link {
        color: #c6c6c6;
    }
    html[data-theme] .console-rail .rail-link:hover {
        background: #ffffff12;
        color: #fff;
    }
    html[data-theme] .console-rail .rail-link[aria-current] {
        background: var(--action-fill);
        color: #fff;
    }
    html[data-theme] .console-rail .rail-toggle {
        top: 32px;
        right: calc(-13px - var(--panel-gap));
        background: var(--surface);
        border-color: var(--edge);
    }
    html[data-theme] .console-rail nav {
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }
}
@media(max-width:1000px) and (min-width:640px) {
    html[data-theme] .console-content-panel {
        padding: 22px;
    }
    html[data-theme][data-rail-expanded="true"] .console-body {
        grid-template-columns: 210px minmax(0,1fr);
    }
}
@media(max-width:639px) {
    html[data-theme] .console-page {
        padding: 0;
    }
    html[data-theme] .console-workspace {
        padding: 0;
        border: 0;
        background: transparent;
        min-height: 100dvh;
    }
    html[data-theme] .console-body {
        display: block;
    }
    html[data-theme] .console-content-panel {
        padding: 22px 16px 100px;
        min-height: 100dvh;
        border-radius: 0;
    }
    html[data-theme] .console-rail .console-logo {
        display: none;
    }
    html[data-theme] .console-header {
        margin-bottom: 22px;
    }
}
@media(prefers-reduced-motion:reduce) {
    html[data-theme] .console-rail .console-logo {
        transition: none;
    }
}
html[data-theme="dark"] .console-rail .brand-logo {
    opacity: .84;
}
html[data-theme="dark"] .console-rail .rail-link:hover,html[data-theme="dark"] .console-rail .rail-link[aria-current] {
    color: var(--on-action);
}
html[data-theme] .console-content :is(.rounded-xl,.rounded-2xl,.rounded-3xl),html[data-theme] .console-page :is(dialog,.swal2-popup) {
    border-radius: var(--radius-card);
}
html[data-theme] .console-rail .rail-link,html[data-theme] .console-content :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),html[data-theme] .console-content :is(button,a):is(.rounded-lg,.rounded-xl,.rounded-2xl,.rounded-3xl) {
    border-radius: var(--radius-control);
}
html[data-theme] .console-page :is(.select2-selection,.select2-dropdown,.select2-search__field) {
    border-radius: var(--radius-control) !important;
}
@media(min-width:640px) {
    html[data-theme] .console-content-panel {
        border-radius: var(--radius-panel) 0 0 var(--radius-panel);
    }
}
html[data-theme] .console-action.issue-trigger {
    display: grid;
}
html[data-theme] .console-content-panel {
    --panel-padding: 30px;
}
html[data-theme] .console-header {
    position: sticky;
    top: 0;
    z-index: 25;
    margin-top: calc(-1 * var(--panel-padding));
    margin-left: calc(-1 * var(--panel-padding));
    margin-right: calc(-1 * var(--panel-padding));
    padding: var(--panel-padding) var(--panel-padding) 22px;
    background: var(--page);
    border-top-left-radius: var(--radius-panel);
}
html[data-theme] .console-content {
    flex-shrink: 0;
    scroll-margin-top: calc(var(--console-header-height, 146px) + 24px);
}
html[data-theme] .console-content [id] {
    scroll-margin-top: calc(var(--console-header-height, 146px) + 24px);
}
@media(min-width:640px) and (max-width:1000px) {
    html[data-theme] .console-content-panel {
        --panel-padding: 22px;
    }
}
@media(max-width:639px) {
    html[data-theme] .console-content-panel {
        --panel-padding: 16px;
    }
    html[data-theme] .console-header {
        margin-top: -22px;
        padding-top: 22px;
        border-top-left-radius: 0;
    }
}
html[data-theme] .console-greeting {
    min-width: 0;
    flex: 1;
}
html[data-theme] .console-greeting > p:last-child {
    max-width: 820px;
    line-height: 1.65;
}
html[data-theme] .console-header-actions {
    flex-shrink: 0;
}
@media (max-width: 639px) {
    html[data-theme] .console-greeting {
        flex-basis: 100%;
    }
}
html[data-theme] .console-content .bg-amber-100 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-amber-300\/10 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-amber-50 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-emerald-100 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-emerald-400 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-emerald-400\/20 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-emerald-50 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-emerald-500 {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .bg-emerald-600 {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .bg-indigo-400\/15 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-indigo-400\/20 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-indigo-50 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-indigo-500 {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .bg-indigo-600 {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .bg-rose-100 {
    background-color: var(--accent-soft) !important;
}
html[data-theme] .console-content .bg-rose-50 {
    background-color: var(--accent-soft) !important;
}
html[data-theme] .console-content .bg-rose-50\/70 {
    background-color: var(--accent-soft) !important;
}
html[data-theme] .console-content .bg-rose-500 {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .bg-sky-50 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-violet-400\/20 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .bg-violet-50 {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .border-amber-200 {
    border-color: var(--edge) !important;
}
html[data-theme] .console-content .border-amber-300\/20 {
    border-color: var(--edge) !important;
}
html[data-theme] .console-content .border-emerald-200 {
    border-color: var(--edge) !important;
}
html[data-theme] .console-content .border-rose-100 {
    border-color: var(--accent-border) !important;
}
html[data-theme] .console-content .border-rose-200 {
    border-color: var(--accent-border) !important;
}
html[data-theme] .console-content .border-rose-400 {
    border-color: var(--accent-border) !important;
}
html[data-theme] .console-content .hover\:bg-emerald-700:hover {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .hover\:bg-indigo-100:hover {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .hover\:bg-indigo-50:hover {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .hover\:bg-indigo-50\/40:hover {
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .hover\:bg-indigo-600:hover {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .hover\:bg-indigo-700:hover {
    background-color: var(--accent) !important;
}
html[data-theme] .console-content .hover\:bg-rose-100:hover {
    background-color: var(--accent-soft) !important;
}
html[data-theme] .console-content .hover\:bg-rose-50:hover {
    background-color: var(--accent-soft) !important;
}
html[data-theme] .console-content .hover\:border-indigo-200:hover {
    border-color: var(--edge) !important;
}
html[data-theme] .console-content .hover\:border-indigo-300:hover {
    border-color: var(--edge) !important;
}
html[data-theme] .console-content .hover\:border-rose-300:hover {
    border-color: var(--accent-border) !important;
}
html[data-theme] .console-content .hover\:text-indigo-600:hover {
    color: var(--ink) !important;
}
html[data-theme] .console-content .hover\:text-indigo-700:hover {
    color: var(--ink) !important;
}
html[data-theme] .console-content .hover\:text-indigo-800:hover {
    color: var(--ink) !important;
}
html[data-theme] .console-content .hover\:text-rose-600:hover {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .ring-indigo-100 {
    --tw-ring-color: var(--accent-border) !important;
}
html[data-theme] .console-content .ring-indigo-50 {
    --tw-ring-color: var(--accent-border) !important;
}
html[data-theme] .console-content .text-amber-100 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-amber-600 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-amber-700 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-amber-800 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-amber-900 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-emerald-200 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-emerald-600 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-emerald-700 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-emerald-800 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-indigo-200 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-indigo-400 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-indigo-500 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-indigo-600 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-indigo-700 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-rose-400 {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .text-rose-500 {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .text-rose-500\/80 {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .text-rose-600 {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .text-rose-700 {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .text-rose-900 {
    color: var(--accent-strong) !important;
}
html[data-theme] .console-content .text-sky-600 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-violet-200 {
    color: var(--ink) !important;
}
html[data-theme] .console-content .text-violet-600 {
    color: var(--ink) !important;
}
html[data-theme] .console-content :is(.bg-slate-900,.bg-slate-950) {
    --surface: var(--drawer);
    --surface-soft: var(--drawer-soft);
    --ink: var(--on-drawer);
    --muted: var(--drawer-muted);
    --edge: var(--drawer-edge);
    background-color: var(--drawer) !important;
    color: var(--on-drawer) !important;
}
html[data-theme] .console-content :is(.bg-slate-900,.bg-slate-950) .text-slate-300 {
    color: var(--muted) !important;
}
html[data-theme] .console-content :is(.bg-slate-900,.bg-slate-950) .bg-emerald-400 {
    background: var(--action-fill) !important;
}
html[data-theme] .console-content :is(button,a).text-white {
    color: var(--on-action) !important;
}
html[data-theme] .console-content form[data-confirm-action="Delete"] button[type="submit"] {
    background: var(--accent-soft) !important;
    color: var(--accent-strong) !important;
    border-color: var(--accent-border) !important;
}
html[data-theme] .console-content form[data-confirm-action="Delete"] button[type="submit"]:hover:not(:disabled) {
    background: var(--action-fill) !important;
    color: #fff !important;
    border-color: var(--action-fill) !important;
}
html[data-theme] .console-content :is(button:disabled,input:disabled,select:disabled,textarea:disabled,[aria-disabled="true"]) {
    background: var(--surface-soft) !important;
    color: var(--muted) !important;
    border-color: var(--edge) !important;
    box-shadow: none !important;
    opacity: 1;
    cursor: not-allowed;
}
html[data-theme] .console-content .select2-container--disabled .select2-selection {
    background: var(--surface-soft) !important;
    color: var(--muted) !important;
    opacity: .7;
    cursor: not-allowed;
}
html[data-theme] .console-content :is(a,button,input,textarea,select,summary,[tabindex]):focus {
    --tw-ring-color: var(--accent-border) !important;
    --tw-ring-offset-color: var(--surface) !important;
}
html[data-theme] .console-content :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
html[data-theme] body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):focus {
    outline: none;
    outline-offset: 0;
    border-color: var(--field-focus-border) !important;
    box-shadow: 0 0 0 3px var(--field-focus-glow) !important;
    --tw-ring-color: transparent !important;
}
html[data-theme] body :is(input,textarea,select)[aria-invalid="true"]:focus {
    border-color: var(--accent) !important;
}
html[data-theme="dark"] .console-content :is(.bg-slate-50\/70,.bg-slate-50\/50,.bg-slate-100\/50,.bg-slate-200) {
    background-color: var(--surface-soft) !important;
    color: var(--ink);
}
html[data-theme] .console-content :is(.documentation-disclosure > summary, nav[aria-label$="documentation sections" i] a):is(:focus,:active,:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}
html[data-theme] .console-content :is(.documentation-disclosure > summary, nav[aria-label$="documentation sections" i] a):focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--muted);
    text-underline-offset: 4px;
}
html[data-theme] .console-content nav[aria-label$="documentation sections" i] a:is(:hover,:focus,:active) {
    color: var(--ink) !important;
    background-color: var(--surface-soft) !important;
}
html[data-theme] .console-content .ui-card {
    padding: var(--space-card);
}
html[data-theme] .console-content h3 {
    font-size: var(--text-section);
    line-height: 1.4;
    font-weight: 600;
}
html[data-theme] .console-content .ui-field {
    height: var(--size-control);
    min-height: var(--size-control);
    padding-inline: 14px;
    font-size: var(--text-body);
    line-height: 1.5;
}
html[data-theme] .console-content form label:not(:has(input)) {
    font-size: var(--text-label);
    line-height: 1.5;
    font-weight: 600;
}
html[data-theme] .console-content table .ui-action {
    min-height: var(--size-action-compact);
    padding: 8px 12px;
}
html[data-theme] .console-content table :is(td,.text-sm) {
    font-size: 13px;
    line-height: 1.5;
}
html[data-theme] .console-content table th {
    font-size: 11px;
    line-height: 1.5;
}
html[data-theme] .console-content .text-3xl {
    font-size: 28px;
    line-height: 1.25;
}
html[data-theme] .console-page .select2-container--default .select2-selection--single {
    height: var(--size-control);
    min-height: var(--size-control);
}
html[data-theme] .console-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: var(--text-body);
    line-height: 42px;
    padding-inline: 14px 32px;
}
html[data-theme] .console-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}
html[data-theme] .console-page .select2-container--default .select2-selection--multiple {
    min-height: var(--size-control);
}
@media(max-width: 639px) {
    html[data-theme] .console-content .ui-field,html[data-theme] .console-page .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px;
    }
}
html[data-theme] .console-content table :is(button,a):is(.rounded-lg,.rounded-xl):not([aria-label]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    min-height: var(--size-action-compact);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.articles-company-switcher{margin-top:auto;font-size:12px;min-width:0}.articles-company-switcher select{max-width:100%}.articles-workspace .console-theme-toggle{flex:0 0 44px;width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;max-height:44px;padding:0;box-sizing:border-box;border-radius:50%}.articles-workspace .console-content{min-width:0}.articles-workspace .console-account-menu.hidden{display:none}
.articles-workspace .articles-company-switcher form{display:block;min-width:0;padding:12px;background:var(--drawer-soft);border-radius:var(--radius-card)}
.articles-workspace .articles-company-switcher label{display:block;color:var(--on-drawer);font-size:11px}
.articles-workspace .articles-company-switcher select{display:block;width:100%;min-width:0;margin-top:8px;padding:8px;color:var(--on-drawer);background:var(--drawer);border:1px solid #ffffff26;border-radius:8px}
.articles-company-switcher .kh-searchable-select__input{background:var(--surface-soft);color:var(--ink);border:1px solid var(--edge);border-radius:8px;padding:10px 34px 10px 14px;font-size:14px;font-weight:400}
.articles-company-switcher .kh-searchable-select__listbox{top:auto;bottom:50px;max-height:min(240px,50vh)}
.articles-company-switcher .kh-searchable-select__option{font-weight:400}
html[data-theme] .articles-workspace .console-content :is(a,button).bg-console-accent{color:#fff!important;background:var(--action-fill)!important;box-shadow:none;border-radius:var(--radius-control);white-space:nowrap}
html[data-theme] .articles-workspace .console-content :is(a,button).bg-console-accent:hover{background:var(--action-hover)!important}
html[data-theme] .articles-workspace .console-content :is(.rounded-3xl,.rounded-\[18px\]){border-radius:var(--radius-card);box-shadow:none;transform:none}
html[data-theme] .articles-workspace .console-content :is(.bg-console-tint){background:var(--surface-soft);color:var(--ink)}
.articles-workspace .articles-dashboard-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-bottom:24px}

/* Articles components use the shared workspace tokens. */
.back-arrow{transform:rotate(180deg)}
#newsletter-preview{height:900px;max-width:100%;border:0}
#newsletter-preview.newsletter-preview-mobile{width:390px}
.console-rail form{margin:0}
.console-rail form .rail-link{text-align:left;font:inherit;cursor:pointer}
.kh-ui .api-reference{color:var(--ink);min-width:0}
.kh-ui .api-reference .text-console-muted{color:var(--muted)}
.kh-ui .api-reference .text-console-ink{color:var(--ink)}
.kh-ui .api-reference .api-base-url{color:var(--ink);font-size:13px;line-height:1.7}
.kh-ui .api-reference .api-security{border-left:3px solid var(--accent)}
.kh-ui .api-security .kh-badge{flex-shrink:0;background:var(--accent-soft);color:var(--accent);white-space:normal}
.kh-ui .api-crons{display:grid;gap:16px}
.kh-ui .api-crons>*{margin:0}
.kh-ui .api-cron h3{font-size:16px;line-height:1.5}
.kh-ui .api-reference pre{background:var(--drawer);color:var(--on-drawer);font-size:12px;line-height:1.8;max-width:100%;border:1px solid var(--edge);box-shadow:none}
.kh-ui .api-reference pre code{color:inherit;background:transparent}
.kh-ui .api-reference :not(pre)>code{overflow-wrap:anywhere}
.kh-ui .api-reference .kh-table td{white-space:normal;vertical-align:top;line-height:1.65}
.kh-ui .api-reference .kh-table td:last-child{min-width:280px}
.kh-ui .api-reference .kh-table-wrap{margin-top:16px}
.kh-ui .api-reference .kh-badge--brand{color:var(--ink);background:var(--surface-soft);white-space:nowrap}
.kh-ui .api-reference a.text-console-accent{text-decoration:underline;text-underline-offset:3px}
@media(max-width:767px){.kh-ui .api-reference .kh-card{padding:20px}.kh-ui .api-reference pre{padding:16px}.kh-ui .api-reference code{font-size:12px}}
.kh-ui .article-pagination{gap:16px;padding:4px 0 16px}
.kh-ui .article-pagination>.kh-body{font-size:14px;color:var(--muted);margin:0}
.kh-ui .article-pagination strong{font-weight:500;color:var(--ink)}
.kh-ui .kh-pagination{display:inline-flex;flex-wrap:nowrap;gap:0;max-width:100%;border-radius:8px;box-shadow:0 1px 2px #0000000d}
.kh-ui .kh-page-link{min-width:40px;min-height:40px;padding:8px 14px;border:1px solid var(--edge);margin-left:-1px;background:var(--surface);color:var(--ink);font-size:14px;line-height:20px;white-space:nowrap;text-decoration:none}
.kh-ui .kh-page-link:first-child{margin-left:0;border-radius:8px 0 0 8px;padding-inline:10px}
.kh-ui .kh-page-link:last-child{border-radius:0 8px 8px 0;padding-inline:10px}
.kh-ui .kh-page-link svg{width:20px;height:20px;flex:none}
.kh-ui .kh-page-link[aria-current=page]{background:var(--surface-soft);font-weight:600}
.kh-ui .kh-page-link[aria-disabled=true]{opacity:1;color:var(--muted);cursor:not-allowed}
.kh-ui a.kh-page-link:hover{background:var(--surface-soft)}
.kh-ui a.kh-page-link:focus-visible{position:relative;z-index:1;outline:2px solid var(--field-focus-border);outline-offset:2px}
.kh-ui .pagination-label{display:none}
@media(max-width:767px){.kh-ui .article-pagination{align-items:flex-start;flex-direction:column}.kh-ui .kh-pagination{width:100%;justify-content:space-between;box-shadow:none;gap:12px}.kh-ui .pagination-number{display:none}.kh-ui .kh-page-link:first-child,.kh-ui .kh-page-link:last-child{margin:0;border-radius:8px;min-height:44px;gap:6px}.kh-ui .pagination-label{display:inline}}
.kh-ui .article-filters.article-filter-card{padding:24px;border:1px solid var(--edge);border-radius:12px;background:var(--surface)}
.article-filter-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.article-filter-grid .kh-field{min-width:0;gap:8px}
.article-filter-grid .kh-label{margin:0;font-size:12px}
.article-filter-grid .actions{display:flex;flex-wrap:nowrap;gap:8px;align-items:center}
.article-filter-grid .actions .kh-button{min-height:44px;white-space:nowrap}
.article-filter-grid :is(.kh-input,.kh-select){height:44px;min-height:44px}
.kh-ui .article-directory.panel.kh-card{padding:0;overflow:hidden}
.kh-ui .article-directory .kh-table-wrap{margin:0;border:0;border-radius:inherit;overflow-x:auto}
.kh-ui .article-directory .kh-table{width:100%;min-width:980px;margin:0}
.kh-ui .article-directory th{padding:15px 20px;text-align:left;white-space:nowrap}
.kh-ui .article-directory td{padding:20px;vertical-align:top;line-height:1.55}
.kh-ui .article-directory th:first-child{width:38%}
.kh-ui .article-directory th:nth-child(3){width:23%}
.kh-ui .article-directory .article-headline{font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.kh-ui .article-directory .article-headline:hover{text-decoration:underline;text-underline-offset:3px}
.kh-ui .article-directory .article-excerpt{color:var(--muted);font-size:12px;line-height:1.6;margin-top:6px}
.kh-ui .article-directory .article-topics{gap:6px;max-width:18rem}
.kh-ui .article-directory .article-topics .kh-badge{font-size:12px;line-height:1.5;padding:3px 8px;white-space:normal}
.kh-ui .article-directory :is(th,td):nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
.kh-ui .article-directory td:nth-child(5){color:var(--muted);font-size:12px}
.kh-ui .article-directory th:last-child{text-align:right}
.kh-ui .article-directory td .actions{justify-content:flex-end}
.kh-ui .article-directory tbody tr:last-child td{border-bottom:0}
.kh-ui .newsletter-directory th:first-child{width:34%}
.kh-ui .newsletter-directory th:nth-child(3){width:auto}
.kh-ui .newsletter-directory td.newsletter-empty{padding:44px 24px;text-align:center;white-space:normal;color:var(--muted)}
.kh-ui .article-directory tbody tr:focus-within td{background:var(--surface-soft)}
.kh-ui .article-directory .kh-table-wrap:focus-visible{outline:2px solid var(--field-focus-border);outline-offset:-2px}
@media(max-width:767px){.kh-ui .article-directory td .kh-button{min-height:44px}.kh-ui .article-directory :is(th,td){padding-inline:16px}}
@media(max-width:900px){.article-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-filter-grid .actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:639px){.kh-ui .article-filters.article-filter-card{padding:20px}.article-filter-grid{grid-template-columns:minmax(0,1fr)}.article-filter-grid .actions{grid-column:auto}.article-filter-grid .actions .kh-button{flex:1}}
/* Restore saved geometry before paint; animate only deliberate toggles. */

/* Match OptOut notifications without replacing the existing accessible timer. */
html .kh-ui .toast-container{top:22px;right:22px;width:380px;max-width:calc(100vw - 32px);gap:12px;z-index:10000;max-height:calc(100dvh - 44px)}
html .kh-ui .toast{--notice-color:var(--ink);--notice-tint:var(--surface-soft);grid-template-columns:36px minmax(0,1fr);gap:12px;padding:17px 60px 19px 17px;border-radius:12px;box-shadow:0 12px 38px #00000012,0 2px 5px #00000008;animation:articles-notice-enter 350ms cubic-bezier(.16,1,.3,1) both}
html .kh-ui .toast-error{--notice-color:var(--ink);--notice-tint:#fbecee}
html .kh-ui .toast-warning{--notice-color:var(--ink);--notice-tint:#fbf2df}
html .kh-ui .toast-info{--notice-color:var(--ink);--notice-tint:#eaf0fa}
html[data-theme=dark] .kh-ui .toast{--notice-color:var(--ink);--notice-tint:var(--surface-soft);box-shadow:0 14px 42px #0005}
html[data-theme=dark] .kh-ui .toast-error{--notice-color:var(--ink);--notice-tint:#3b262b}
html[data-theme=dark] .kh-ui .toast-warning{--notice-color:var(--ink);--notice-tint:#373023}
html[data-theme=dark] .kh-ui .toast-info{--notice-color:var(--ink);--notice-tint:#283244}
html .kh-ui .toast-symbol{width:36px;height:36px;place-items:center;border-radius:10px;background:var(--notice-tint);color:var(--notice-color)}
html .kh-ui .toast-symbol svg{width:19px;height:19px}
html .kh-ui .toast-content{font-size:12px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
html .kh-ui .toast-content strong{font-size:13px;line-height:1.4;font-weight:600;color:var(--ink);margin-bottom:3px}
html .kh-ui .toast-content p{margin:0}
html .kh-ui .toast-close{position:absolute;right:6px;top:8px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:20px}
html .kh-ui .toast-close:hover{background:var(--surface-soft)}
html .kh-ui .toast-close:focus-visible{outline:2px solid var(--notice-color);outline-offset:-4px}
html .kh-ui .toast-progress{height:2px;background:transparent}
html .kh-ui .toast-progress>span{background:var(--notice-color);opacity:.55}
html .kh-ui .toast.toast-leaving{animation:articles-notice-exit 180ms ease-in both}
@keyframes articles-notice-enter{from{opacity:0;transform:translateY(-12px) scale(.97)}to{opacity:1;transform:none}}
@keyframes articles-notice-exit{to{opacity:0;transform:translateX(16px) scale(.98)}}
@media(max-width:639px){html .kh-ui .toast-container{top:16px;right:16px;width:calc(100vw - 32px)}}
@media(prefers-reduced-motion:reduce){html .kh-ui .toast{animation:none!important}}
.articles-nav-label{font-size:9px;letter-spacing:1.5px;color:var(--drawer-muted);margin:18px 12px 8px}
.articles-workspace .account-trigger-name{display:none}
.articles-workspace .account-menu{position:relative}
.articles-workspace .account-trigger{display:block;list-style:none;cursor:pointer;padding:0}
.articles-workspace .account-trigger::-webkit-details-marker{display:none}
.articles-workspace .account-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--surface)}
.articles-workspace .account-dropdown{position:absolute;right:0;top:56px;width:260px;z-index:60;padding:16px;background:var(--surface);border:1px solid var(--edge);border-radius:12px;box-shadow:0 12px 35px #0002}
.articles-workspace .account-identity{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.articles-workspace .account-identity span{font-size:12px;overflow-wrap:anywhere}
.articles-workspace .account-identity-avatar{display:none}
.articles-workspace .account-dropdown :is(a,button){display:flex;align-items:center;gap:10px;padding:10px;width:100%}
.articles-workspace .account-dropdown :is(a,button):hover{background:var(--surface-soft)}
.articles-workspace .account-identity>div{display:grid;gap:4px}
.articles-workspace .console-content>.kh-page-header{margin-bottom:24px}
.articles-workspace .stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:24px}
.article-stat{display:flex;align-items:center;gap:14px;min-height:110px;padding:20px;border:1px solid var(--edge);border-radius:12px;background:var(--surface)}
.article-stat-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.article-stat p{font-size:12px;color:var(--muted);margin-bottom:5px}
.article-stat strong{font-size:28px;font-weight:600;line-height:1}
.article-stat-featured{background:var(--accent-soft);border-color:var(--accent-border)}
.article-stat-featured strong{color:var(--accent)}
.articles-workspace .dashboard-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;margin-bottom:24px}
.articles-workspace :is(.panel,.kh-card){padding:24px;border-radius:12px;background:var(--surface);border:1px solid var(--edge)}
.articles-workspace .panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.articles-workspace .panel-heading p{font-size:12px;color:var(--muted);margin-top:6px}
.articles-workspace .workspace-tools>a{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--edge)}
.articles-workspace .workspace-tools small{display:block;color:var(--muted)}
.articles-workspace .project-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--surface-soft)}
.articles-workspace .project-cell{display:flex;gap:10px;align-items:center}
.articles-workspace .project-cell small{display:block;color:var(--muted)}
html[data-theme] body :is(input:not([type=checkbox]):not([type=radio]),textarea,select):focus{outline:none!important;border-color:var(--field-focus-border)!important;box-shadow:0 0 0 3px var(--field-focus-glow)!important}
html[data-theme] body :is(input,textarea,select)[aria-invalid=true]{border-color:var(--accent)!important}
body .select2-container--default .select2-selection{background:var(--surface-soft);border:1px solid var(--edge);border-radius:8px;min-height:44px}
body .select2-container--default .select2-selection__rendered{color:var(--ink);line-height:42px}
body .select2-container--default .select2-selection__arrow{height:42px}
body .select2-dropdown{background:var(--surface);color:var(--ink);border-color:var(--edge);border-radius:8px}
body .select2-container--default .select2-results__option[aria-selected=true]{background:var(--surface-soft);color:var(--ink)}
body .select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--action-fill);color:#fff}
body .select2-container--focus .select2-selection{border-color:var(--field-focus-border);box-shadow:0 0 0 3px var(--field-focus-glow);outline:none}
.articles-workspace .console-content .btn{white-space:nowrap}
.articles-workspace .kh-status-dot{background:var(--ink);box-shadow:none;border-radius:50%}
.articles-workspace .profile-avatar{background:var(--drawer);color:#fff;border-radius:16px}
@media(min-width:1024px){.articles-workspace .docs-navigation{top:calc(var(--console-header-height,146px) + 24px);max-height:calc(100dvh - 194px);overflow-y:auto}}
.articles-workspace .console-rail .kh-nav-section + .kh-nav-section{margin-top:12px}
.articles-workspace .console-rail .kh-nav-list{gap:4px}
.articles-workspace .kh-page-header{align-items:flex-start;justify-content:flex-end}
@media(min-width:768px){.articles-workspace .kh-page-header{flex-direction:row;align-items:center}}
@media(max-width:1199px){.articles-workspace .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.articles-workspace .dashboard-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:639px){.articles-workspace .stats-grid{grid-template-columns:minmax(0,1fr)}.articles-workspace .console-rail nav{overflow:auto}.articles-nav-label{display:none}.articles-workspace .console-rail .kh-nav-section,.articles-workspace .console-rail .kh-nav-list{display:contents}}

/* The navigation grows vertically; the brand and drawer controls stay visible. */
.mobile-nav-open,.mobile-nav-close,.mobile-nav-backdrop{display:none}
html[data-theme] .console-rail .rail-scroll{display:flex;flex-direction:column;gap:24px;flex:1;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:0}
html[data-theme] .console-rail .rail-scroll nav{flex:0 0 auto;overflow:visible;min-height:0;width:100%}
@media(max-width:1023px){
    html[data-theme] .console-body{display:block}
    html[data-theme] .console-content-panel{border-radius:0;padding-bottom:24px}
    html[data-theme] .console-header{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;border-radius:0}
    html[data-theme] .console-greeting{grid-column:1/-1;grid-row:2}
    html[data-theme] .console-header-actions{grid-column:2;grid-row:1;justify-self:end}
    html[data-theme] .mobile-nav-open,html[data-theme] .mobile-nav-close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;padding:0;border:1px solid var(--edge);border-radius:var(--radius-control);background:var(--surface);color:var(--ink)}
    html[data-theme] .mobile-nav-open:hover{background:var(--surface-soft)}
    html[data-theme] .mobile-nav-close{position:absolute;right:16px;top:max(16px,env(safe-area-inset-top));background:var(--drawer-soft);color:var(--on-drawer);border-color:var(--drawer-edge)}
    html[data-theme] .mobile-nav-close:hover{background:var(--drawer-edge)}
    .mobile-nav-open svg,.mobile-nav-close svg{width:20px;height:20px}
    html[data-theme] .console-rail{position:fixed;inset:0 auto 0 0;z-index:81;display:flex;flex-direction:column;align-items:stretch;width:min(304px,calc(100vw - 48px));height:100dvh;min-height:0;padding:max(20px,env(safe-area-inset-top)) 12px max(20px,env(safe-area-inset-bottom));border:0;border-radius:0 20px 20px 0;background:var(--drawer);box-shadow:none;backdrop-filter:none;transform:translateX(-100%);visibility:hidden;transition:transform 240ms ease,visibility 240ms;overflow:hidden}
    html[data-theme][data-mobile-nav-open="true"] .console-rail{transform:translateX(0);visibility:visible}
    html[data-theme] .console-rail .console-logo,html[data-theme][data-rail-expanded="true"] .console-rail .console-logo{display:flex;align-items:center;width:160px;height:44px;min-height:44px;margin:0 0 24px 8px;flex-shrink:0;overflow:hidden}
    html[data-theme] .console-rail .brand-logo{width:160px;max-width:none;height:auto;filter:grayscale(1) invert(1)}
    html[data-theme] .console-rail .rail-toggle{display:none}
    html[data-theme] .console-rail .rail-scroll{padding:4px}
    html[data-theme] .console-rail nav{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}
    html[data-theme] .console-rail .rail-link{width:100%;height:auto;min-height:44px;flex-shrink:0;justify-content:flex-start;gap:12px;padding:12px;color:var(--on-drawer)}
    html[data-theme] .console-rail .rail-link:hover{background:var(--drawer-soft)}
    html[data-theme] .console-rail .rail-link[aria-current]{background:var(--action-fill);color:var(--on-action)}
    html[data-theme] .console-rail .rail-label{display:block;position:static;width:auto;max-width:100%;opacity:1;visibility:visible;transform:none;white-space:normal;overflow-wrap:anywhere}
    html[data-theme] .mobile-nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:80;border:0;border-radius:0;padding:0;background:#0008;cursor:pointer}
    html[data-mobile-nav-open="true"],html[data-mobile-nav-open="true"] body{overflow:hidden;overscroll-behavior:none}
}
@media(prefers-reduced-motion:reduce){html[data-theme] .console-rail{transition:none}}

/* Shared component styles from the Opt-out reference. */

.console-avatar {
    height: 44px;
    width: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #191b23;
    color: #a5e6b6;
    border: 1px solid #a4d6b01a;
    cursor: pointer;
}
.console-avatar {
    font-weight: 600;
    background: linear-gradient(150deg,#a4ecb7,#60d691);
    color: #0b2818;
}
.console-account {
    position: relative;
}
.console-account-menu {
    position: absolute;
    right: 0;
    top: 54px;
    width: 230px;
    z-index: 50;
    padding: 16px;
    border: 1px solid #304039;
    border-radius: 16px;
    background: #191b23;
    box-shadow: 0 15px 40px #0008;
}
.console-account-menu strong {
    font-size: 13px;
    display: block;
    padding-bottom: 12px;
}
.console-account-menu a,.console-account-menu button {
    display: block;
    font-size: 13px;
    padding: 10px 0;
    color: #c3d8ca;
    cursor: pointer;
}
.console-primary,.console-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 500;
    min-height: 36px;
    border-radius: 8px;
    padding: 8px 13px;
    background: linear-gradient(#60d691,#30c066);
    border: 1px solid #5bbb7260;
    color: #fff;
}
.console-primary:hover,.console-secondary:hover {
    filter: brightness(1.12);
}
.console-secondary {
    background: linear-gradient(#60d691,#30c066);
    border-color: #597b6260;
    font-size: 10px;
}
.console-page .select2-selection,.console-page .select2-dropdown,.console-page .select2-search__field {
    background: #191b23!important;
    color: #dae9de!important;
    border-color: #344c3d!important;
}
.console-page .select2-results__option--highlighted {
    background: #30c066!important;
}
.console-page .select2-selection__choice {
    background: #60d69126!important;
    color: #ceedd7!important;
}
.console-page .select2-selection__rendered {
    color: #dcebe1!important;
}
@media(max-width:639px) {
    .console-avatar {
        height: 36px;
        width: 36px;
        font-size: 12px;
    }
}
.console-avatar, .console-primary, .console-secondary {
    color: #fff;
}
html[data-theme] .console-account-menu {
    background: var(--surface);
    border-color: var(--edge);
    box-shadow: none;
}
html[data-theme] .console-account-menu a,html[data-theme] .console-account-menu button {
    color: var(--muted);
}
html[data-theme] .console-avatar {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}
html[data-theme] .console-primary {
    background: var(--action-fill);
    color: #fff;
    border-color: var(--accent);
}
html[data-theme] .console-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--edge);
}
html[data-theme] .console-page :is(.select2-selection,.select2-dropdown,.select2-search__field) {
    background: var(--surface-soft)!important;
    color: var(--ink)!important;
    border-color: var(--edge)!important;
}
html[data-theme] .console-page .select2-selection__choice {
    background: var(--surface-soft)!important;
    color: var(--ink)!important;
}
html[data-theme] .console-page .select2-selection__rendered {
    color: var(--ink)!important;
}
html[data-theme] .console-page .select2-results__option--highlighted {
    background: var(--action-fill)!important;
    color: #fff!important;
}
html[data-theme] .console-primary, html[data-theme] .console-secondary {
    border-radius: 3px;
    font-family: var(--font-brand);
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
html[data-theme="dark"] .console-primary {
    color: var(--on-action);
}
html[data-theme] :is(.overview-card,.overview-stat,.console-account-menu,.login-step-card,.login-help,.login-notice) {
    border-radius: var(--radius-card);
}
html[data-theme] :is(.console-primary,.console-secondary,.login-submit) {
    border-radius: var(--radius-control);
}
html[data-theme] .console-page :is(.select2-selection,.select2-dropdown,.select2-search__field) {
    border-radius: var(--radius-control) !important;
}
html[data-theme] .charcoal-card .console-secondary {
    color: var(--on-action);
    background: var(--action-fill);
    border-color: var(--action-fill);
}
html[data-theme] .logout-dialog {
    width: 420px;
    max-width: calc(100vw - 32px);
    padding: 28px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--edge);
    border-radius: var(--radius-card);
    font-family: var(--font-brand);
    box-shadow: 0 24px 80px #0003;
}
html .logout-dialog .logout-dialog-title {
    padding: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.025em;
}
html .logout-dialog .logout-dialog-copy {
    margin: 12px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
html .logout-dialog .swal2-icon {
    margin: 0 auto 20px;
    width: 48px;
    height: 48px;
    font-size: 10px;
}
html .logout-dialog .logout-dialog-actions {
    display: flex;
    gap: 10px;
    margin: 24px 0 0;
    width: 100%;
}
.logout-dialog-confirm,.logout-dialog-cancel {
    border-radius: var(--radius-control);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    flex: 1;
}
.logout-dialog-confirm {
    background: var(--action-fill);
    color: #fff;
}
.logout-dialog-cancel {
    background: var(--surface-soft);
    color: var(--ink);
}
.logout-dialog-confirm:focus-visible,.logout-dialog-cancel:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
html[data-theme] .console-action.issue-trigger {
    display: grid;
}
html[data-theme] .issue-dialog {
    padding: 0;
    margin: auto;
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 1px solid var(--edge);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-brand);
    box-shadow: 0 24px 90px #0004;
}
.issue-dialog::backdrop {
    background: #10101880;
    backdrop-filter: blur(3px);
}
.issue-dialog[open] {
    animation: issue-appear 200ms ease-out;
}
.issue-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--edge);
}
.issue-dialog-header h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.025em;
}
.issue-dialog-header p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}
.issue-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: -6px -6px 0 0;
    border-radius: var(--radius-control);
    cursor: pointer;
    color: var(--muted);
}
.issue-close:hover {
    background: var(--surface-soft);
    color: var(--ink);
}
.issue-dialog-fields {
    padding: 24px;
}
.issue-dialog-fields label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
}
.issue-optional {
    color: var(--muted);
    font-weight: 400;
}
.issue-dialog-fields :is(input:not([type="hidden"]),textarea) {
    display: block;
    width: 100%;
    border: 1px solid var(--edge);
    border-radius: var(--radius-control);
    background: var(--page);
    color: var(--ink);
    font: 400 13px/1.6 var(--font-brand);
    padding: 11px 12px;
    margin-bottom: 20px;
}
.issue-dialog-fields textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 260px;
}
.issue-dialog-fields :is(input,textarea)::placeholder {
    color: var(--muted);
}
.issue-dialog-fields input[type="file"] {
    padding: 9px;
    margin-bottom: 7px;
    font-size: 11px;
}
.issue-dialog-fields input::file-selector-button {
    margin-right: 10px;
    border: 0;
    border-radius: 5px;
    padding: 6px 9px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    cursor: pointer;
}
.issue-file-hint {
    color: var(--muted);
    font-size: 10px;
}
.issue-file-error {
    color: var(--accent-strong);
    font-size: 12px;
    margin-top: 8px;
}
.issue-dialog-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--edge);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.issue-cancel,.issue-submit {
    border-radius: var(--radius-control);
    min-height: 44px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.issue-cancel {
    border: 1px solid var(--edge);
    color: var(--ink);
    background: var(--surface);
}
.issue-submit {
    background: var(--action-fill);
    color: var(--on-action);
    display: flex;
    align-items: center;
    gap: 14px;
}
.issue-dialog :is(button,input,textarea):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
@keyframes issue-appear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media(max-width:639px) {
    .issue-dialog-fields :is(input:not([type="file"]),textarea) {
        font-size: 16px;
    }
    .issue-dialog-header,.issue-dialog-fields {
        padding: 20px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .issue-dialog[open] {
        animation: none;
    }
}
html[data-theme] .console-content .select2-container--disabled .select2-selection {
    background: var(--surface-soft) !important;
    color: var(--muted) !important;
    opacity: .7;
    cursor: not-allowed;
}
html[data-theme] .issue-dialog-fields :is(input,textarea):focus {
    outline: none;
    outline-offset: 0;
    border-color: var(--field-focus-border) !important;
    box-shadow: 0 0 0 3px var(--field-focus-glow) !important;
    --tw-ring-color: transparent !important;
}
html[data-theme] .console-content .ui-field,
html[data-theme] .issue-dialog-fields input:not([type="hidden"]):not([type="file"]) {
    height: var(--size-control);
    min-height: var(--size-control);
    padding-inline: 14px;
    font-size: var(--text-body);
    line-height: 1.5;
}
html[data-theme] .issue-dialog-fields label {
    font-size: var(--text-label);
    line-height: 1.5;
    font-weight: 600;
}
html[data-theme] :is(.ui-action,.console-primary,.console-secondary,.login-submit,.issue-cancel,.issue-submit) {
    height: auto;
    min-height: var(--size-action);
    padding: 10px 16px;
    font-size: var(--text-label);
    font-weight: 600;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
html[data-theme] .ui-action-icon {
    width: var(--size-action);
    height: var(--size-action);
    padding: 0;
}
html[data-theme] .ui-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
html[data-theme] .console-content table .ui-action {
    min-height: var(--size-action-compact);
    padding: 8px 12px;
}
html[data-theme] .console-page .select2-container--default .select2-selection--single {
    height: var(--size-control);
    min-height: var(--size-control);
}
html[data-theme] .console-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: var(--text-body);
    line-height: 42px;
    padding-inline: 14px 32px;
}
html[data-theme] .console-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}
html[data-theme] .console-page .select2-container--default .select2-selection--multiple {
    min-height: var(--size-control);
}
@media(max-width: 639px) {
    html[data-theme] .console-content .ui-field,
    html[data-theme] .issue-dialog-fields :is(input,textarea),
    html[data-theme] .console-page .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px;
    }
}
body .js-select2 + .select2-container {
    display: block;
    max-width: 100%;
}
body .select2-container--default .select2-selection--single {
    display: flex;
    height: 44px;
    align-items: center;
    border: 1px solid var(--edge);
    border-radius: 0.75rem;
    background: var(--surface-soft);
    padding: 0 2.5rem 0 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
body .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 42px;
}
body .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
}
body .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 0.75rem;
    height: 42px;
}
body .select2-container--default.select2-container--open .select2-selection--single,
body .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--field-focus-border);
    outline: none;
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--field-focus-glow);
}
body .select2-container--default .select2-selection--multiple {
    height: 44px;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid var(--edge);
    border-radius: 0.75rem;
    background: var(--surface-soft);
    padding: 0 0.625rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
body .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex: 0 0 auto;
    /* don't grow when empty */
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}
body .select2-container--default .select2-selection--multiple:has(.select2-selection__choice) {
    height: auto;
    min-height: 44px;
    overflow: visible;
    padding: 6px 0.625rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
body .select2-container--default .select2-selection--multiple:has(.select2-selection__choice) .select2-selection__rendered {
    flex: 0 1 auto;
    flex-wrap: wrap;
    height: auto;
    min-height: 32px;
    overflow: visible;
}
body .select2-container--default .select2-selection--multiple .select2-search--inline {
    display: flex;
    flex: 1 1 auto;
    /* take remaining width when empty */
    min-width: 0;
    height: 100%;
    /* fill the 44px container */
    align-items: stretch;
    /* let input stretch to full height */
    margin: 0;
    overflow: hidden;
}
body .select2-container--default .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 0;
    height: 100%;
    /* fill full 44px so line-height centers text */
    margin: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 44px;
    /* vertically center placeholder text */
}
body .select2-container--default .select2-selection--multiple:has(.select2-selection__choice) .select2-search--inline {
    height: 32px;
    align-items: center;
}
body .select2-container--default .select2-selection--multiple:has(.select2-selection__choice) .select2-search__field {
    height: 32px;
    line-height: 32px;
}
body .select2-container--default .select2-selection--multiple .select2-search__field {
    padding: 12px 0 0;
}
body .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: var(--muted);
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    height: 30px;
    max-width: calc(100% - 5rem);
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--edge);
    border-radius: 0.5rem;
    background: var(--surface-soft);
    padding: 0 0.625rem 0 1.875rem;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    display: inline-flex;
    width: 1.5rem;
    height: 100%;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid var(--edge);
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background: var(--accent-soft);
    color: var(--accent-strong);
}
body .select2-container--default .campaign-selection-control {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 38px;
    overflow: visible;
    padding: 2px 0.625rem;
}
body .select2-container--default .campaign-selection-control .select2-selection__rendered {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 30px;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    overflow: visible;
}
body .select2-container--default .campaign-selection-control .select2-selection__choice {
    display: inline-flex;
    height: 30px;
    max-width: 100%;
    flex: 0 1 auto;
}
body .select2-container--default .campaign-selection-control .select2-search--inline {
    position: static;
    width: 100%;
    min-width: 0;
    height: 30px;
    flex: 1 0 100%;
    align-items: center;
}
body .select2-container--default .campaign-selection-control:not(:has(.select2-selection__choice)) .select2-search--inline {
    position: absolute;
    top: 2px;
    right: 0.625rem;
    bottom: 2px;
    left: 0.625rem;
    width: auto;
    height: 30px;
}
body .select2-container--default .campaign-selection-control:has(.select2-selection__choice) .select2-search--inline {
    position: static;
    width: 100%;
    height: 30px;
    flex: 1 0 100%;
}
body .select2-container--default .campaign-selection-control:has(.select2-selection__choice) .select2-selection__rendered {
    min-height: 30px;
}
body .select2-container--default .campaign-selection-control .select2-search__field {
    width: 100% !important;
    height: 30px;
    box-sizing: border-box;
    display: block;
    padding: 4px 0.25rem 0;
    line-height: 26px;
}
body .select2-container--default .campaign-selection-control .select2-selection__clear {
    display: none;
}
body .select2-container--default.select2-container--open .select2-selection--multiple,
body .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--field-focus-border);
    outline: none;
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--field-focus-glow);
}
body .select2-container--default.select2-container--disabled .select2-selection--multiple {
    cursor: not-allowed;
    border-color: var(--edge);
    background: var(--surface-soft);
    box-shadow: none;
}
body .select2-container--default.select2-container--disabled .select2-search__field {
    cursor: not-allowed;
}
body .select2-field.has-error .select2-selection--single {
    border-color: var(--accent-strong);
}
body .select2-field.has-error .select2-container--focus .select2-selection--single {
    box-shadow: 0 0 0 4px var(--accent-soft);
}
body .select2-dropdown {
    overflow: hidden;
    border: 1px solid var(--edge);
    border-radius: 0.75rem;
    box-shadow: 0 16px 35px rgb(15 23 42 / 0.12);
}
body .campaign-dropdown .select2-results__options {
    max-height: 168px;
}
body .campaign-dropdown .select2-results__option {
    min-height: 38px;
    padding: 0.55rem 0.75rem;
    line-height: 1.25rem;
}
body .select2-container--default .select2-results__option {
    padding: 0.7rem 0.875rem;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}
body .select2-container--default .select2-results__option--selected {
    background: var(--surface-soft);
    color: var(--ink);
}
body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--action-fill);
    color: var(--on-action);
}
html .notyf {
    padding: 22px;
    font-family: var(--font-brand, 'Inter', sans-serif);
    z-index: 10000;
}
html .notyf .notification-card {
    --notice-color:var(--ink);
    --notice-tint:var(--surface-soft);
    width: 380px;
    max-width: calc(100vw - 32px);
    padding: 0;
    margin: 0 0 12px;
    border: 1px solid var(--edge);
    border-radius: var(--radius-card,12px);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 12px 38px #00000012, 0 2px 5px #00000008;
    transform: none;
    animation: notification-enter 350ms cubic-bezier(.16,1,.3,1) both;
}
html .notyf .notification-error {
    --notice-color:var(--accent-strong);
    --notice-tint:var(--accent-soft);
}
html .notyf .notification-warning {
    --notice-color:var(--ink);
    --notice-tint:var(--surface-soft);
}
html .notyf .notification-info {
    --notice-color:var(--ink);
    --notice-tint:var(--surface-soft);
}
html[data-theme="dark"] .notyf .notification-card {
    --notice-color:var(--ink);
    --notice-tint:var(--surface-soft);
    box-shadow: 0 14px 42px #0005;
}
html[data-theme="dark"] .notyf .notification-error {
    --notice-color:var(--accent-strong);
    --notice-tint:var(--accent-soft);
}
html[data-theme="dark"] .notyf .notification-warning {
    --notice-color:var(--ink);
    --notice-tint:var(--surface-soft);
}
html[data-theme="dark"] .notyf .notification-info {
    --notice-color:var(--ink);
    --notice-tint:var(--surface-soft);
}
html .notification-card .notyf__wrapper {
    padding: 17px 60px 19px 17px;
    display: flex;
    align-items: flex-start;
}
html .notification-card .notyf__icon {
    width: 36px;
    margin: 0 12px 0 0;
    animation: none;
    opacity: 1;
    transform: none;
}
.notification-symbol {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--notice-tint);
    color: var(--notice-color);
    border-radius: 10px;
}
.notification-symbol svg {
    width: 19px;
    height: 19px;
}
html .notification-card .notyf__message {
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
    overflow-wrap: anywhere;
    animation: none;
    opacity: 1;
    transform: none;
}
.notification-title {
    display: block;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 3px;
}
html .notification-card .notyf__dismiss {
    position: absolute;
    right: 6px;
    top: 8px;
    width: 40px;
    height: 40px;
    margin: 0;
    animation: none;
    opacity: 1;
    transform: none;
}
html .notification-card .notyf__dismiss-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    opacity: 1;
}
html .notification-card .notyf__dismiss-btn::before, html .notification-card .notyf__dismiss-btn::after {
    background: var(--muted);
    height: 12px;
    width: 1.5px;
}
html .notification-card .notyf__dismiss-btn:hover {
    background: var(--surface-soft);
}
html .notification-card .notyf__dismiss-btn:focus-visible {
    outline: 2px solid var(--notice-color);
    outline-offset: -4px;
}
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--notice-color);
    opacity: .55;
    transform-origin: left;
}
html .notyf .notification-card.notyf__toast--disappear {
    animation: notification-exit 180ms ease-in both;
}
html .notification-card.notyf__toast--disappear :is(.notyf__icon,.notyf__message,.notyf__dismiss) {
    animation: none;
}
@keyframes notification-enter {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes notification-exit {
    to {
        opacity: 0;
        transform: translateX(16px) scale(.98);
    }
}
@media(max-width:639px) {
    html .notyf {
        padding: 16px;
    }
    html .notyf .notification-card {
        width: 100%;
    }
}
@media(prefers-reduced-motion:reduce) {
    html .notyf .notification-card, html .notyf .notification-card.notyf__toast--disappear {
        animation-duration: 1ms;
    }
    .notification-progress {
        opacity: 0;
    }
}
html .notification-card .notyf__dismiss-btn {
    position: relative;
}

.issue-attachment { position:relative;min-width:0; }
.issue-dialog .issue-dialog-fields input.issue-file-input,.issue-attachment-status { position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.issue-upload,.issue-selected-file { display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:80px;padding:14px;border:1px solid var(--edge);border-radius:10px;background:var(--surface);color:var(--ink); }
.issue-upload { text-align:left;border-style:dashed;cursor:pointer;transition:background .15s,border-color .15s; }
.issue-upload:hover { background:var(--surface-soft);border-color:var(--muted); }
.issue-upload-icon,.issue-file-thumbnail { display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:8px;background:var(--surface-soft);color:var(--muted);overflow:hidden; }
.issue-upload strong,.issue-file-details strong { display:block;font-size:12px;font-weight:600;line-height:1.5; }
.issue-upload span span,.issue-file-details > span { display:block;margin-top:3px;font-size:11px;color:var(--muted);line-height:1.5; }
.issue-upload-plus { margin-left:auto;flex-shrink:0;color:var(--muted); }
.issue-file-details { flex:1;min-width:0; }
.issue-file-details strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.issue-file-thumbnail img { width:100%;height:100%;object-fit:cover; }
.issue-remove-image { display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer; }
.issue-remove-image:hover { background:var(--surface-soft);color:var(--ink); }
.issue-upload:focus-visible,.issue-remove-image:focus-visible { outline:2px solid var(--field-focus-border);outline-offset:3px; }
.issue-selected-file.has-error { border-color:var(--accent); }
.issue-attachment [hidden] { display:none!important; }

.issue-attachment-list { display:grid;gap:8px;margin-top:10px; }
.issue-attachment-list:empty { display:none; }
.issue-attachment .issue-file-thumbnail { position:relative;background:transparent;border:1px solid var(--edge); }
.issue-attachment .issue-file-thumbnail img { display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.issue-attachment .issue-file-thumbnail > [data-issue-file-icon] { display:grid;place-items:center;position:absolute;inset:0;background:var(--surface-soft);color:var(--accent); }
.issue-dialog .issue-attachment [hidden] { display:none!important; }
.issue-attachment .issue-upload-icon { background:transparent;color:var(--accent); }
.issue-attachment.is-dragging .issue-upload { border-style:solid;border-color:var(--accent);background:var(--surface-soft);box-shadow:0 0 0 3px var(--field-focus-glow); }
.issue-attachment .issue-remove-image { flex-basis:44px;width:44px;height:44px; }
body .select2-container--default .select2-selection--multiple .select2-search__field{min-height:0;padding:0;line-height:24px;height:24px;resize:none;box-shadow:none;outline:none}
body .select2-container--default .select2-selection--multiple .select2-search--inline{display:flex;align-items:center;min-height:42px;height:auto}
body .select2-container--default .select2-selection--multiple:has(.select2-selection__choice) .select2-search__field{height:24px;line-height:24px}
body .project-options .select2-results__option--selected{display:none}
.issue-page-context{display:grid;gap:4px;padding:12px;border:1px solid var(--edge);border-radius:8px;background:var(--surface-soft);font-size:12px}
.issue-page-context span{color:var(--muted);overflow-wrap:anywhere}

/* Articles form adapters retain Opt-out component spacing. */
.issue-dialog-footer > .text-link { margin-right: auto; align-self: center; }
.issue-dialog [data-issue-error][hidden], .issue-dialog [data-issue-result][hidden], .issue-dialog [data-issue-saved-link][hidden] { display: none; }
.issue-dialog-fields .issue-page-context { margin-bottom: 20px; }
.console-account-menu button { text-align: left; }

/* Opt-out table sizing across Articles lists. */

:is(.batches-table,.kh-table,.dashboard-table) {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    min-width: 690px;
    font-size: 11px;
}
:is(.batches-table,.kh-table,.dashboard-table) th {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #80958a;
    padding: 0 15px 14px 0;
}
:is(.batches-table,.kh-table,.dashboard-table) td {
    padding: 16px 15px 16px 0;
    border-top: 1px solid #ffffff08;
    color: #b5c6bc;
}
:is(.batches-table,.kh-table,.dashboard-table) td:first-child {
    color: #e3eae6;
}
html[data-theme] :is(.batches-table,.kh-table,.dashboard-table) td {
    border-color: var(--edge);
}
html[data-theme] :is(.batches-table,.kh-table,.dashboard-table) td,html[data-theme] :is(.batches-table,.kh-table,.dashboard-table) td:first-child {
    color: var(--ink);
}
html[data-theme] :is(.batches-table,.kh-table,.dashboard-table) th {
    color: var(--muted);
}
html[data-theme] .console-content table .ui-action {
    min-height: var(--size-action-compact);
    padding: 8px 12px;
}
html[data-theme] .console-content table :is(td,.text-sm),html[data-theme] :is(.batches-table,.kh-table,.dashboard-table) {
    font-size: 13px;
    line-height: 1.5;
}
html[data-theme] .console-content table th {
    font-size: 11px;
    line-height: 1.5;
}
html[data-theme] .console-content table :is(button,a):is(.rounded-lg,.rounded-xl):not([aria-label]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    min-height: var(--size-action-compact);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* Match Opt-out's header controls despite legacy Articles button defaults. */
html[data-theme] .articles-workspace .console-header-actions { font-size:16px;gap:12px; }
html[data-theme] .articles-workspace .console-header-actions .theme-toggle { width:34px;height:34px;min-width:34px;min-height:34px;flex:0 0 34px;padding:0; }
html[data-theme] .articles-workspace .console-header-actions .console-action.issue-trigger { display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:0;border:1px solid var(--edge);border-radius:50%;background:var(--surface-soft);color:var(--ink);font-size:16px;font-weight:400; }
html[data-theme] .articles-workspace .console-header-actions .console-action.issue-trigger .ui-icon { width:20px;height:20px; }
html[data-theme] .articles-workspace .console-header-actions .console-avatar { width:44px;height:44px;padding:0;font-size:16px;font-weight:600; }
html[data-theme] .articles-workspace .console-account-menu { font-size:16px; }

/* Keep content actions uniform across project, article, and newsletter views. */
html[data-theme] .articles-workspace .console-content .article-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: var(--size-action-compact);
    padding: 8px 12px;
    border-radius: var(--radius-control);
    font-size: var(--text-label);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* Health detail labels are row headings, not shaded column headers. */
html[data-theme] .articles-workspace .health-details .panel-heading {
    padding: 0 0 20px;
}
html[data-theme] .articles-workspace .health-details tbody th {
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid var(--edge);
    padding: 16px 20px;
    width: 35%;
    white-space: normal;
}
html[data-theme] .articles-workspace .health-details tbody td {
    padding: 16px 20px;
    white-space: normal;
}
html[data-theme] .articles-workspace .health-details tbody tr:last-child > * {
    border-bottom: 0;
}

/* LeadOrbit calendar palette and controls. */
html[data-theme] .daterangepicker {
    background: var(--surface); color: var(--ink); border: 1px solid var(--edge);
    border-radius: 12px; box-shadow: 0 20px 60px #00000025; font-family: inherit;
}
html[data-theme] .daterangepicker .calendar-table { background: var(--surface); border-color: var(--surface); }
html[data-theme] .daterangepicker :is(th,td) { background: transparent; color: var(--ink); border: 0; padding: 0; font-size: 12px; }
html[data-theme] .daterangepicker td.available:hover { background: var(--surface-soft); }
html[data-theme] .daterangepicker td.active,html[data-theme] .daterangepicker td.active:hover { background: var(--action-fill,var(--accent)); color: var(--on-action,#fff); }
html[data-theme] .daterangepicker td.off { color: var(--muted); background: var(--surface); }
html[data-theme] .daterangepicker td.disabled { opacity: .4; }
html[data-theme] .daterangepicker .calendar-table :is(.prev,.next) span { border-color: var(--ink); }
html[data-theme] .daterangepicker .drp-buttons { border-color: var(--edge); padding: 10px; }
html[data-theme] .daterangepicker .drp-buttons .btn { min-height: 36px; padding: 8px 12px; }
html[data-theme] .daterangepicker select { min-height: 32px; padding: 4px; background: var(--surface-soft); color: var(--ink); border: 1px solid var(--edge); }
html[data-theme] .daterangepicker:before { border-bottom-color: var(--edge); }
html[data-theme] .daterangepicker:after { border-bottom-color: var(--surface); }
.workspace-date-input { cursor: pointer; }
html[data-theme] .workspace-date-input {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4m8-4v4M4 11h16'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 17px;
}

/* Match Opt-out and Ads navigation icons over the legacy .kh-ui .icon rule. */
.articles-workspace .console-rail .rail-link > .ui-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke-width: 1.8;
}

/* Common password controls: reserve a separate column for the reveal button.
   Browser/password-manager controls remain inside the input without overlap. */
html[data-theme] body .kh-password-field{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;position:relative}
html[data-theme] body .kh-password-field>input{width:100%;min-width:0;padding-right:14px;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}
html[data-theme] body .kh-password-field>button{position:static;inset:auto;display:grid;place-items:center;width:44px;min-height:44px;height:auto;margin:0;padding:0;border:1px solid var(--edge);border-left:0;border-radius:0 8px 8px 0;background:var(--surface);color:var(--muted);cursor:pointer}
html[data-theme] body .kh-password-field:focus-within>button{border-color:var(--field-focus-border)}
html[data-theme] body .kh-password-field>button:focus-visible{outline:2px solid var(--field-focus-border);outline-offset:2px}
html[data-theme] body .kh-password-field .password-eye-icon{width:20px;height:20px;pointer-events:none}
html[data-theme] body .kh-password-field .password-eye-slash{display:none}
html[data-theme] body .kh-password-field [aria-pressed="true"] .password-eye-slash{display:block}
/* Reference searchable select: selected values, filtering and option states. */
.guide-language,.page-help-languages,.documentation-language{border-color:#e6c6ca!important;background:#fff!important;box-shadow:none!important}
.guide-language button,.page-help-languages button,.documentation-language button,.documentation-language a{background:transparent!important;color:#555!important}
.guide-language button[aria-pressed=true],.page-help-languages button[aria-pressed=true],.documentation-language button[aria-pressed=true],.documentation-language a[aria-current=page]{background:#ed1b2f!important;color:#fff!important;box-shadow:0 1px 4px rgba(232,25,44,.28)!important}
.combo{display:none!important}
.kh-searchable-select{position:relative!important;width:100%;min-width:0;z-index:1000!important}
.kh-searchable-select:has(.kh-searchable-select__input[aria-expanded=true]){z-index:10000!important}
.field:has(> .kh-searchable-select),.form-grid:has(.kh-searchable-select),.panel:has(.kh-searchable-select){overflow:visible!important}
select[data-combo-source]{position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
select.select2-hidden-accessible:not([multiple]) ~ .select2{display:none!important}
.kh-searchable-select__input{display:block;width:100%;min-height:44px;padding:10px 38px 10px 14px;border:1px solid var(--edge);border-radius:8px;background:var(--surface-soft);color:var(--ink);font:inherit;line-height:22px;cursor:text}
.kh-searchable-select__input::placeholder{color:var(--muted);opacity:1}
.kh-searchable-select__input:focus{outline:none;border-color:var(--field-focus-border);box-shadow:0 0 0 3px var(--field-focus-glow)}
.kh-searchable-select__chevron{position:absolute;right:14px;top:17px;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);pointer-events:none;color:var(--muted)}
.kh-searchable-select__listbox{position:absolute!important;z-index:9999!important;top:calc(100% + 6px)!important;left:0!important;width:100%!important;max-height:min(280px,50vh)!important;padding:5px!important;overflow:auto!important;border:1px solid #d8d8d8!important;border-radius:8px!important;background:#fff!important;box-shadow:0 12px 30px #0002!important}
.kh-searchable-select__option{display:block!important;min-height:36px!important;margin:1px 0!important;padding:8px 13px!important;border-radius:6px!important;color:#171717!important;background:#fff!important;cursor:pointer!important;font-size:13px!important;font-weight:600!important;line-height:20px!important;overflow-wrap:anywhere!important}
.kh-searchable-select__option:hover,.kh-searchable-select__option.is-active{background:#ed1b2f!important;color:#fff!important}
.kh-searchable-select__option[aria-selected=true]{color:#ed1b2f!important;background:#fff!important}
.kh-searchable-select__option[aria-selected=true]:hover,.kh-searchable-select__option[aria-selected=true].is-active{color:#fff!important;background:#ed1b2f!important}
.kh-searchable-select__option[aria-selected=true]::after{content:"\2713";float:right;margin-left:10px}
.kh-searchable-select__option--empty{color:var(--muted);cursor:default}.kh-searchable-select__option--empty:hover{background:transparent;color:var(--muted)}
