/* styles.css */

:root {
    color-scheme: light;
    --bg: #f2f6ff;
    --glass: rgba(255, 255, 255, 0.65);
    --border: rgba(255, 255, 255, 0.4);
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    --accent: #4f46ef;
    --accent-soft: rgba(79, 70, 239, 0.1);
    --text: #0f172a;
    --text-muted: #475569;
}

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

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #dbeafe, #eef2ff 55%, #f8fafc);
    color: var(--text);
    min-height: 100%;
}

:root {
    --page-side-padding: clamp(28px, 6vw, 56px);
}

@media (min-width: 901px) {
    :root {
        --page-side-padding: 84px;
    }
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    display: block;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 24px;
    left: 24px;
    bottom: 24px;
    width: min(320px, calc(100vw - 48px));
    padding: 0;
    display: flex;
    align-items: stretch;
    transform: translateX(-110%);
    transition: transform 0.28s ease;
    z-index: 60;
    pointer-events: none;
}

.sidebar.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.sidebar-glass {
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 32px;
    box-shadow: 0 38px 68px rgba(30, 41, 59, 0.16);
    backdrop-filter: blur(26px) saturate(1.25);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px;
    pointer-events: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.sidebar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.18);
}

.sidebar-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-brand__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-brand__title {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.82);
    font-size: 0.95rem;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    padding-right: 6px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-group__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group__title {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 600;
}

.nav-group__subtitle {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.48);
}

.nav-group__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link,
.nav-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
    font-size: 0.82rem;
    transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease;
    position: relative;
}

.nav-link:hover,
.nav-disclosure > summary:hover {
    transform: translateY(-1px);
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.28);
}

.nav-link.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 239, 0.92), rgba(14, 165, 233, 0.88));
    color: #fff;
    border: 1px solid rgba(79, 70, 229, 0.45);
    z-index: 1;
}

.nav-link--has-flyout {
    position: relative;
    cursor: pointer;
    padding-right: 16px;
}

.nav-link--has-flyout::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-link--has-flyout.is-flyout-open::after,
.nav-link--has-flyout.is-active::after {
    opacity: 0.85;
    transform: translateY(-50%) translateX(2px);
}

.nav-link--has-flyout.is-flyout-open:not(.is-active) {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.28);
}

.settings-flyout {
    position: fixed;
    top: 24px;
    left: calc(min(320px, calc(100vw - 48px)) + 36px);
    width: min(320px, 28vw);
    max-width: 360px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.92));
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 28px 52px rgba(15, 23, 42, 0.18);
    padding: 22px 22px 18px;
    backdrop-filter: blur(18px) saturate(1.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 58;
}

.settings-flyout[hidden] {
    display: none;
}

.settings-flyout__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-flyout__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.settings-flyout__close {
    border: none;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(15, 23, 42, 0.65);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.settings-flyout__close:hover {
    background: rgba(148, 163, 184, 0.28);
    color: rgba(15, 23, 42, 0.85);
}

.settings-flyout__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-flyout__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.settings-flyout__link:hover {
    transform: translateX(4px);
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.28);
}

.settings-flyout__link.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 239, 0.92), rgba(14, 165, 233, 0.88));
    color: #fff;
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.18);
}

.settings-flyout__link::after {
    content: '›';
    font-size: 0.9rem;
    opacity: 0.65;
}

.settings-flyout__link.is-active::after {
    opacity: 0.9;
}

.settings-inline {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.settings-inline:not([hidden]) {
    display: flex;
}

.settings-inline[hidden] {
    display: none !important;
}

body.no-js .settings-flyout {
    display: none !important;
}

body.no-js .settings-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-left: 10px;
}

.nav-disclosure {
    border-radius: 20px;
    border: none;
}

.nav-disclosure > summary {
    list-style: none;
    cursor: pointer;
    position: relative;
}

.nav-disclosure > summary::-webkit-details-marker {
    display: none;
}

.nav-disclosure > summary::after {
    content: '▾';
    font-size: 0.8rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-disclosure[open] > summary::after {
    transform: rotate(180deg);
}

.nav-disclosure[open] > summary {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 26px rgba(148, 163, 184, 0.2);
}


.settings-flyout {
    position: fixed;
    top: 24px;
    left: calc(min(320px, calc(100vw - 48px)) + 36px);
    width: min(320px, 28vw);
    max-width: 360px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.92));
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 28px 52px rgba(15, 23, 42, 0.18);
    padding: 22px 22px 18px;
    backdrop-filter: blur(18px) saturate(1.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 58;
}

.settings-flyout[hidden] {
    display: none;
}

.settings-flyout__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-flyout__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.settings-flyout__close {
    border: none;
    background: rgba(148, 163, 184, 0.18);
    color: rgba(15, 23, 42, 0.65);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.settings-flyout__close:hover {
    background: rgba(148, 163, 184, 0.28);
    color: rgba(15, 23, 42, 0.85);
}

.settings-flyout__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-flyout__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.settings-flyout__link:hover {
    transform: translateX(4px);
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.28);
}

.settings-flyout__link.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 239, 0.92), rgba(14, 165, 233, 0.88));
    color: #fff;
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.18);
}

.settings-flyout__link::after {
    content: '›';
    font-size: 0.9rem;
    opacity: 0.65;
}

.settings-flyout__link.is-active::after {
    opacity: 0.9;
}


.settings-inline {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.settings-inline:not([hidden]) {
    display: flex;
}

.settings-inline[hidden] {
    display: none !important;
}

.nav-sublist {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 12px 8px 18px;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-sublist::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.28), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.nav-disclosure {
    position: relative;
    overflow: hidden;
}

.nav-sublink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    color: rgba(15, 23, 42, 0.7);
    transition: background 0.18s ease, transform 0.18s ease;
    font-size: 0.78rem;
}

.nav-sublink:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

.nav-sublink.is-active {
    background: rgba(79, 70, 229, 0.14);
    color: #4338ca;
    font-weight: 600;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.55);
}

.sidebar-foot__hint {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
}

.sidebar-foot__user {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.82);
}

.content {
    flex: 1;
    min-width: 0;
    padding: 32px var(--page-side-padding);
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
    padding: 16px var(--page-side-padding);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    padding: 9px 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 70;
}

.mobile-nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    z-index: 55;
    flex: 0 0 auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
}

.user-toggle:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.4);
    outline-offset: 2px;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar__placeholder {
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: var(--text);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.user-chevron {
    font-size: 0.7rem;
    opacity: 0.6;
}

.user-menu {
    position: absolute;
    right: 44px;
    top: calc(100% + 6px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    gap: 6px;
}

.user-menu a {
    color: var(--text);
    font-size: 0.9rem;
}

.user-menu a:hover {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 6px 8px;
}

.logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(244, 67, 54, 0.25);
    color: #b91c1c;
    font-size: 1.1rem;
    background: rgba(244, 67, 54, 0.08);
}

.logout-icon:hover {
    background: rgba(244, 67, 54, 0.16);
}

.card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(15, 23, 42, 0.55);
    margin: 0 0 6px;
}

.lead {
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.7);
    margin: 8px 0 0;
}

.small {
    font-size: 0.85rem;
}

.partner-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    padding: 20px 24px;
}

.marketplace-card {
    padding-bottom: 20px;
}

.marketplace-card__header h1 {
    margin: 4px 0 8px;
    font-size: 1.6rem;
}

.partner-intro__main {
    flex: 2 1 360px;
    min-width: 280px;
}

.partner-intro__side {
    flex: 3 1 360px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.partner-intro__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.partner-intro__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    flex: 1 1 260px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.metric-card__label {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(15, 23, 42, 0.5);
}

.metric-card__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.metric-card__hint {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.55);
}

.category-highlight {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 14px;
}

.category-highlight__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-highlight__badge {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 239, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.category-highlight__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.card-header__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-header__subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(15, 23, 42, 0.55);
}

.card-header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge-toned {
    background: rgba(99, 102, 241, 0.16);
    color: #4c1d95;
}

.partner-form .form-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.form-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.file-input-label input[type="file"] {
    margin-top: 6px;
}

.form-actions__hint {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
}

.legacy-category-note {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #b45309;
}

textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 12px 14px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 64px;
    background: rgba(255, 255, 255, 0.65);
}

.form-fieldset {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.form-fieldset__header {
    margin-bottom: 10px;
}

.form-fieldset__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.awin-field__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.awin-field__footer .button.small {
    white-space: nowrap;
}

.redirect-status {
    min-height: 18px;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.55);
    margin: 0 0 6px;
}

.redirect-status.is-error {
    color: #b91c1c;
}

.redirect-status.is-success {
    color: #15803d;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.partner-list__item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 22px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
}

.partner-list__media {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.partner-list__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-list__media .placeholder-logo,
.placeholder-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(71, 85, 105, 0.9);
}

.partner-list__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-list__body h3 {
    margin: 0 0 4px;
}

.partner-list__body p {
    margin: 0 0 8px;
}

.partner-list__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.partner-list__actions form {
    margin: 0;
}

.partner-list__actions .button {
    padding: 6px 10px;
}

.partner-list-card {
    display: flex;
    flex-direction: column;
    max-height: 74vh;
    min-height: 400px;
}

.partner-list-card .partner-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    margin-top: 8px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.partner-link {
    word-break: break-all;
}

.partner-link-host {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.55);
    background: rgba(79, 70, 239, 0.1);
    padding: 4px 8px;
    border-radius: 999px;
}

.partner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.55);
}

.partner-meta__item strong {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.85);
}

.current-logo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.current-logo img {
    max-width: 160px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.user-list-card .table-wrapper {
    margin-top: 0;
}

.user-form h2 {
    margin-top: 0;
}

.form-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.45);
    color: rgba(15, 23, 42, 0.7);
}

.form-switch > span {
    font-size: 0.88rem;
    font-weight: 600;
}

.no-access-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: background 0.2s ease, border 0.2s ease;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    position: relative;
    transition: background 0.2s ease;
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.switch-label {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.switch-small {
    padding: 6px 10px;
}

.switch-small .switch-track {
    width: 40px;
    height: 22px;
}

.switch-small .switch-track::after {
    width: 16px;
    height: 16px;
    top: 3px;
    left: 3px;
}

.switch input:checked ~ .switch-track {
    background: linear-gradient(135deg, rgba(79, 70, 239, 0.85), rgba(14, 165, 233, 0.85));
}

.switch input:checked ~ .switch-track::after {
    transform: translateX(20px);
}

.switch input:checked ~ .switch-label {
    color: rgba(79, 70, 239, 0.85);
    font-weight: 600;
}

.switch input:disabled ~ .switch-track {
    background: rgba(148, 163, 184, 0.25);
}

.switch input:disabled ~ .switch-label {
    color: rgba(15, 23, 42, 0.45);
}

.switch.is-disabled {
    opacity: 0.6;
}

@media (max-width: 640px) {
    .card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .card-header .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .settings-flyout {
        display: none !important;
    }

    .settings-inline {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
        padding-left: 10px;
    }

    .settings-inline .settings-flyout__link {
        background: rgba(255, 255, 255, 0.6);
    }

    .settings-inline .settings-flyout__link::after {
        content: none;
    }


    :root {
        --page-side-padding: 24px;
    }


    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 85vw);
        padding: 0;
    }

    .sidebar-glass {
        min-height: 100%;
        padding: 24px;
        border-radius: 24px;
    }

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

    .mobile-nav-toggle {
        position: relative;
        top: auto;
        left: auto;
        z-index: auto;
    }

    .topbar {
        position: sticky;
        top: 12px;
        margin-bottom: 12px;
    }

.page-header {
        width: 100%;
        justify-content: flex-start;
    }

    .page-header h1 {
        font-size: 1.6rem;
        flex: 1;
    }
}
.page-header__title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.page-header__jump {
    font-size: 0.85rem;
    padding: 6px 14px;
}

.filters.card {
    position: sticky;
    top: 24px;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.filters.card > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-permissions {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(79, 70, 229, 0.25);
    background: rgba(255, 255, 255, 0.55);
}

.menu-permissions.is-disabled {
    opacity: 0.65;
}

.menu-permissions.is-disabled .checkbox-grid label {
    cursor: default;
}

.menu-permissions .help {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.55);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-grid .switch {
    width: 100%;
    justify-content: space-between;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.75);
    margin-top: 10px;
}

.checkbox-inline input {
    transform: scale(1.05);
}

.avatar-edit {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-preview img,
.table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 1.1rem;
}

.table-avatar {
    width: 48px;
}

.table-avatar img,
.table-avatar .avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-actions .inline-form {
    display: inline;
}

.filters.card label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filters-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-count {
    font-weight: 600;
    color: var(--text);
}

.reset-filters {
    color: rgba(79, 70, 229, 0.9);
}

.reset-filters:hover {
    text-decoration: underline;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.dashboard-cards .card {
    padding: 24px;
    text-align: center;
}

.dashboard-cards h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--text-muted);
}

.dashboard-cards strong {
    font-size: 1.8rem;
}

.dashboard-overview .dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.dashboard-overview .metric-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.dashboard-overview .metric-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.dashboard-overview .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.link {
    color: var(--accent);
    font-weight: 600;
}

.table-wrapper {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.45);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th,
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
}

.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.status-open {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.badge.status-in_progress {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.badge.status-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.quick-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(79, 70, 239, 0.12);
    border: 1px solid rgba(79, 70, 239, 0.35);
    color: var(--accent);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.filters input,
.filters select {
    width: 100%;
}

.filters .align-end {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.filters .grow {
    flex: 1;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ledger-form {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 32px;
    backdrop-filter: blur(18px);
}

.form-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.generated-title-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.18);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 100%;
    white-space: normal;
    text-align: right;
    word-break: break-word;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 16px rgba(79, 70, 229, 0.18);
}

.generated-title-pill.is-placeholder {
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-muted);
    font-weight: 500;
}

.glass-grid {
    display: grid;
    gap: 20px;
}

.glass-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

/* Community signups */
.community-signups-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: stretch;
    padding: 32px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(14, 165, 233, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.community-signups-hero__content {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text);
}

.community-signups-hero__content h2 {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.community-signups-hero__content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.75);
}

.community-signups-hero__pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.community-signups-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #111827;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px rgba(15, 23, 42, 0.12);
}

.community-signups-hero__visual {
    position: relative;
    flex: 0 1 220px;
    min-height: 220px;
}

.community-signups-hero__orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.85;
    animation: floatOrb 10s ease-in-out infinite;
}

.community-signups-hero__visual .orb-one {
    width: 180px;
    height: 180px;
    top: -20px;
    right: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(79, 70, 229, 0.75), rgba(79, 70, 229, 0));
}

.community-signups-hero__visual .orb-two {
    width: 140px;
    height: 140px;
    bottom: -40px;
    left: 0;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.7), rgba(14, 165, 233, 0));
    animation-delay: -4s;
}

.community-signups-hero__glow {
    position: absolute;
    inset: 10% 18%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    filter: blur(30px);
}

.community-signups-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    overflow: hidden;
}

.community-signups-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.community-signups-card__head h2 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.community-signups-card__head p {
    margin: 4px 0 0;
    max-width: 520px;
    color: var(--text-muted);
}

.community-signups-subtitle {
    font-size: 0.92rem;
    max-width: 640px;
    color: rgba(15, 23, 42, 0.68);
}

.community-signups-card__tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.community-signups-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    background: rgba(79, 70, 229, 0.12);
    color: #312e81;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 12px 24px rgba(79, 70, 229, 0.18);
}

.community-signups-card__tag.ghost {
    background: rgba(255, 255, 255, 0.26);
    color: var(--text-muted);
}

.community-signups-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.community-signups-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.community-signups-form label span {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
    letter-spacing: 0.01em;
}

.community-signups-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    min-height: 48px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background-image: linear-gradient(45deg, transparent 50%, rgba(79, 70, 229, 0.6) 50%), linear-gradient(135deg, rgba(79, 70, 229, 0.6) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 13px) calc(50% - 4px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.community-signups-form select:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.community-signups-form select::-ms-expand {
    display: none;
}

.community-signups-form__quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.community-signups-form__quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.community-signups-form__quick-buttons .button {
    border: 1px solid rgba(79, 70, 229, 0.25);
    background: rgba(255, 255, 255, 0.22);
    color: #312e81;
}

.community-signups-form__quick-buttons .button.is-active {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.22);
    color: #166534;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.24);
}

.community-signups-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.community-signups-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.community-signups-stat {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 18px;
    backdrop-filter: blur(24px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.community-signups-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.community-signups-stat__label {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.community-signups-stat__value {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.community-signups-stat__foot {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.community-signups-stat__spark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
    transition: background 0.2s ease, color 0.2s ease;
}

.community-signups-stat__spark.is-up {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.community-signups-stat__spark.is-down {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.community-signups-stat__spark.is-flat {
    background: rgba(148, 163, 184, 0.24);
    color: #475569;
}

.community-signups-stat__spark.is-hidden {
    display: none;
}

.community-signups-stat--trend.is-up {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 18px 44px rgba(34, 197, 94, 0.18);
}

.community-signups-stat--trend.is-down {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 18px 44px rgba(239, 68, 68, 0.18);
}

.community-signups-stat--trend.is-flat {
    border-color: rgba(148, 163, 184, 0.3);
}

.community-signups-chart {
    position: relative;
    min-height: 320px;
    padding: 8px 0 12px;
}

.community-signups-chart__actions-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.community-action-shade {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    filter: saturate(110%);
}

.community-action-label {
    position: absolute;
    top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.community-action-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.community-signups-chart canvas {
    width: 100%;
    min-height: 320px;
}

.community-signups-chart__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    border-radius: 16px;
}

.community-signups-chart__empty.is-error {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.85);
}

.community-signups-card__foot p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.community-actions-panel {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-actions-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.community-actions-panel__header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.community-actions-panel__header p {
    margin: 4px 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.community-actions-panel__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.community-actions-panel__collapse {
    position: relative;
    border: none;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(148, 163, 184, 0.28));
    color: rgba(30, 41, 59, 0.82);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.community-actions-panel__collapse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.community-actions-panel__collapse span[aria-hidden="true"] {
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
    font-size: 0.95rem;
    color: inherit;
}

.community-actions-panel__collapse:hover {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(148, 163, 184, 0.38));
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.25);
    color: rgba(30, 41, 59, 0.95);
}

.community-actions-panel__collapse:hover::before {
    opacity: 0.75;
}

.community-actions-panel__collapse:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.55), 0 24px 54px rgba(15, 23, 42, 0.25);
}

.community-actions-panel--collapsed .community-actions-panel__collapse span[aria-hidden="true"] {
    transform: rotate(180deg);
}

.community-actions-panel__body {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-actions-panel--collapsed .community-actions-panel__body {
    display: none;
}

.community-actions-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.community-actions-filters h4 {
    margin: 0;
    font-size: 1rem;
}

.community-actions-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.community-action-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.community-action-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.community-action-toggle.is-inactive {
    opacity: 0.72;
}

.community-action-toggle.is-editing {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.24);
}

.community-action-toggle__meta {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.community-action-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.community-action-toggle__title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.community-action-toggle__description {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
    white-space: normal;
    overflow-wrap: anywhere;
}

.community-action-toggle__info {
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.95);
}

.community-action-toggle__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.community-action-switch {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.68);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.community-action-switch__track {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.community-action-switch__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.92));
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.community-action-switch.is-on {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(59, 130, 246, 0.88));
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.community-action-switch.is-on .community-action-switch__thumb {
    transform: translateX(20px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.community-action-switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.community-action-switch:not(:disabled):hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.community-action-switch:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.community-action-switch:disabled .community-action-switch__thumb {
    box-shadow: none;
}

.community-action-control {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-action-control--edit {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(37, 99, 235, 0.12);
}

.community-action-control--edit:hover {
    background: rgba(59, 130, 246, 0.18);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

.community-action-control--delete {
    color: #b91c1c;
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(239, 68, 68, 0.18);
}

.community-action-control--delete:hover {
    background: rgba(248, 113, 113, 0.22);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.community-action-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}

.community-action-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.community-actions-toggle-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.community-actions-panel__feedback {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
}

.community-actions-panel__feedback.is-error {
    color: #b91c1c;
}

.community-action-color-swatch {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.community-action-description {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.community-action-edit-modal[hidden] {
    display: none;
}

.community-action-edit-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    overflow-y: auto;
}

.community-action-edit-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.community-action-edit-modal__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.community-action-edit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border-radius: 22px;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.28);
    padding: 26px 28px;
    transform: translateY(12px);
    transition: transform 0.24s ease;
}

.community-action-edit-modal.is-open .community-action-edit-modal__dialog {
    transform: translateY(0);
}

.community-action-edit-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.community-action-edit-modal__header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
}

.community-action-edit-modal__close {
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.community-action-edit-modal__close:hover {
    background: rgba(15, 23, 42, 0.08);
}

.community-action-edit-modal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.32);
}

.community-action-edit-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.community-action-edit-form__grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.community-action-edit-form__grid label span {
    font-weight: 600;
    color: #0f172a;
}

.community-action-edit-form__grid label.wide {
    grid-column: 1 / -1;
}

.community-action-edit-form__grid input,
.community-action-edit-form__grid select,
.community-action-edit-form__grid textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    padding: 9px 11px;
    font-size: 0.92rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-action-edit-form__grid input:focus,
.community-action-edit-form__grid select:focus,
.community-action-edit-form__grid textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.community-action-edit-form__grid textarea {
    resize: vertical;
}

.community-action-edit-modal__feedback {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.community-action-edit-modal__feedback.is-error {
    color: #b91c1c;
}

.community-action-edit-modal__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}
.community-actions-color-select option {
    background: var(--glass);
}

.community-inventory-card {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.community-inventory-card__header h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.community-inventory-card__header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.community-inventory-chart {
    position: relative;
    min-height: 320px;
}

.community-inventory-chart canvas {
    width: 100%;
    min-height: 320px;
}

.community-inventory-chart__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.card-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.65);
    margin-left: 6px;
}

.card-meta::before,
.card-meta::after {
    content: '';
}

.card-meta::before {
    content: '(';
}

.card-meta::after {
    content: ')';
}

.community-country-map-card {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.community-country-map-card__header h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.community-country-map-card__header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.community-country-map {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 600px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.community-country-map__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.map-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
    box-shadow: 0 16px 30px rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(18px) saturate(1.2);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.country-tooltip-hint {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fde68a;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    cursor: default;
    background: rgba(255, 255, 255, 0.06);
}

.country-tooltip-hint:hover {
    background: rgba(255, 255, 255, 0.12);
}

.country-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.country-modal[hidden] {
    display: none;
}

.country-modal__backdrop {
    position: absolute;
    inset: 0;
}

.country-modal__dialog {
    position: relative;
    max-width: min(900px, 92vw);
    max-height: 90vh;
    width: 90%;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.country-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.country-modal__body {
    overflow: auto;
    padding-right: 6px;
    display: grid;
    gap: 12px;
}

.country-modal__close {
    border: none;
    background: rgba(15, 23, 42, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 1.1rem;
    cursor: pointer;
}

.country-modal__list {
    display: grid;
    gap: 12px;
}

.country-modal__item {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 4px;
}

.country-modal__item strong {
    font-size: 1rem;
}

.country-modal__status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(226, 232, 240, 0.45);
    color: rgba(15, 23, 42, 0.85);
}

.country-modal__status.is-error {
    border-color: rgba(248, 113, 113, 0.65);
    background: rgba(248, 113, 113, 0.12);
    color: #991b1b;
}

.country-modal__spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.45);
    border-top-color: rgba(14, 165, 233, 0.9);
    animation: spin 0.9s linear infinite;
}

.country-modal__retry {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.country-modal__retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.map-reset-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 40px rgba(148, 163, 184, 0.26);
}

.map-reset-button:active {
    transform: translateY(0);
}

.map-reset-button span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.community-country-map__empty {
    padding: 18px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
}

.community-signups-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(18px);
    z-index: 24;
}

.community-signups-loader__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(79, 70, 229, 0.25);
    border-top-color: rgba(79, 70, 229, 0.9);
    animation: spin 0.9s linear infinite;
}

.community-signups-card.is-loading {
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



@media (max-width: 720px) {
    .community-signups-form {
        grid-template-columns: 1fr;
    }
    .community-signups-form__actions {
        justify-content: flex-start;
    }
    .community-signups-chart {
        min-height: 280px;
    }
    .community-signups-chart canvas {
        min-height: 280px;
    }
    .community-country-map {
        min-height: 264px;
        height: 308px;
    }
}


/* Community tree view */
.community-tree-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-tree-card .tree-topbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    margin: -8px -8px 8px -8px;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(14px) saturate(1.1);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.community-tree-card .tree-topbar .row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.community-tree-card .tree-brand {
    font-weight: 600;
    letter-spacing: 0.2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.community-tree-card .tree-brand .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e9353d;
    box-shadow: 0 0 12px rgba(233, 53, 61, 0.7);
}

.community-tree-card .tree-field {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    color: #111;
    outline: none;
    max-width: 30ch;
}

.community-tree-card .tree-actions {
    display: flex;
    gap: 8px;
}

.community-tree-card .tree-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: #111;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.community-tree-card .tree-btn.primary {
    background: #e9353d;
    border-color: transparent;
    color: #fff;
}

.community-tree-card .tree-stats {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

.community-tree-card .tree-hint {
    opacity: 0.75;
    font-size: 12px;
    white-space: nowrap;
}


.community-tree-card .tree-wrap {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 60vh;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #ffffff, #f7f7f8);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.community-tree-card #columns {
    display: flex;
    gap: 0;
    flex: 1;
    overflow: auto;
    scroll-behavior: smooth;
}

.community-tree-card .column {
    border-right: 1px solid #e6e6e9;
    background: #fafafa;
}

.community-tree-card .column .col-head {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    background: rgba(20, 20, 26, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 3;
}

.community-tree-card .column .list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.community-tree-card .column .item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.community-tree-card .column .item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.community-tree-card .column .item.active {
    background: #ffecec;
    outline: 1px solid rgba(233, 53, 61, 0.45);
}

.community-tree-card .column .label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-tree-card .column .counts {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
    white-space: nowrap;
}

.community-tree-card .tree-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.community-tree-card .icon.plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: #16a34a;
    color: #fff;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin-left: auto;
}

.community-tree-card #breadcrumb {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
}

.community-tree-card #breadcrumb .crumb {
    cursor: pointer;
    color: #e9353d;
    font-weight: 600;
}

.community-tree-card #breadcrumb .crumb:hover {
    text-decoration: underline;
}

.community-tree-card #breadcrumb .sep {
    opacity: 0.55;
}

.community-tree-card .tree-lastimport {
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
}

#topOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 12px;
}

#topOverlay.show {
    display: flex;
}

#topOverlay .panel {
    background: #fff;
    color: #111;
    border-radius: 14px;
    max-width: 900px;
    width: 96vw;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

#topOverlay .hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

#topOverlay .title {
    font-weight: 700;
    font-size: 14px;
}

#topOverlay .close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}

#topOverlay .body {
    padding: 12px;
}

#topOverlay table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#topOverlay th,
#topOverlay td {
    padding: 8px;
    border: 1px solid #eee;
    text-align: left;
}

#topOverlay thead tr {
    background: #f7f7f9;
}

@media (max-width: 900px) {
    .community-tree-card .tree-field {
        min-width: 200px;
    }
}
.glass-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.partner-import-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 12px;
}

.partner-import-tile {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 16px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.partner-import-tile .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-import-tile strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-strong);
}


.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.condition-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0;
}

.condition-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.logic-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
}

.condition-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.condition-fields label {
    gap: 8px;
    font-size: 0.85rem;
}

.condition-row .remove-condition {
    align-self: start;
    color: var(--accent);
    font-weight: 600;
}

.condition-row .remove-condition:hover {
    text-decoration: underline;
}

.logic-divider {
    margin: 24px 0 12px;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.logic-divider::before,
.logic-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.4));
}

.assignment-targets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.assignment-targets label {
    gap: 10px;
}

.assignment-results-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.assignment-results-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.assignment-results-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(79, 70, 239, 0.12);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.assignment-summary h2 {
    margin-bottom: 12px;
}

.assignment-summary h3 {
    margin: 24px 0 8px;
    font-size: 1.1rem;
}

.assignment-summary h4 {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.assignment-summary table {
    margin-bottom: 16px;
}

.assignment-progress {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(18px);
    z-index: 1200;
}

.assignment-progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px 48px;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    text-align: center;
}

.assignment-progress-spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid rgba(226, 232, 240, 0.35);
    border-top-color: #6366f1;
    animation: assignment-spin 1.1s linear infinite;
}

.assignment-progress-counter {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.assignment-progress-subtext {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes assignment-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body.assignment-progress-active {
    overflow: hidden;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="month"],
input[type="number"],
input[type="file"],
select,
textarea {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.8);
    font: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 239, 0.22);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(79, 70, 239, 0.25);
}

.button.ghost {
    background: transparent;
    border: 1px solid rgba(79, 70, 239, 0.35);
    color: var(--accent);
}

.button.ghost.danger {
    border-color: rgba(220, 38, 38, 0.4);
    color: #dc2626;
}

.button.ghost.danger:hover {
    background: rgba(220, 38, 38, 0.08);
}

.button.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.button.neutral {
    background: #0f172a;
    color: #fff;
}

.button.neutral:hover {
    background: #1e293b;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25);
}

.button.link-button {
    background: none;
    color: var(--accent);
    border: none;
    padding: 0;
}

.button.link-button.danger {
    color: #dc2626;
}

.button.link-button.danger:hover {
    color: #b91c1c;
}

.button.subtle {
    background: rgba(148, 163, 184, 0.18);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 9px 16px;
}

.button.subtle .icon-upload {
    font-size: 0.95rem;
    margin-right: 6px;
}

.button.danger {
    background: #dc2626;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

.button.danger:hover {
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.25);
}
.button.success {
    background: #16a34a;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
}
.button.success:hover {
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.3);
}
.button.transfer-ok-button {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.3);
    font-weight: 500;
}
.button.transfer-ok-button:hover {
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}
.button.success {
    background: #16a34a;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
}
.button.success:hover {
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.3);
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    padding: 24px;
    z-index: 999;
}

.modal-overlay[aria-hidden="true"] {
    display: none !important;
}

.modal {
    width: min(420px, 100%);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.modal-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: 8px 0 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.eigenbeleg-modal {
    width: min(520px, 100%);
}

.eigenbeleg-heading {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.eigenbeleg-form label {
    display: block;
    margin-bottom: 16px;
}

.eigenbeleg-form label span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.eigenbeleg-form input[type="text"],
.eigenbeleg-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font: inherit;
    resize: vertical;
}

.eigenbeleg-form textarea {
    min-height: 160px;
}

.eigenbeleg-reference .reference-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.eigenbeleg-reference .reference-inline span {
    font-weight: 600;
    white-space: nowrap;
}

.pivot-modal {
    width: min(95vw, 980px);
    max-height: 85vh;
    overflow-y: auto;
}

.pivot-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pivot-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pivot-account-group {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 16px;
}

.pivot-account-group h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.pivot-account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pivot-account-table th,
.pivot-account-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    text-align: left;
    vertical-align: top;
}

.pivot-account-table tr:last-child td {
    border-bottom: none;
}

.pivot-account-table td.tx-amount {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.pivot-account-table td.tx-amount.positive {
    color: #047857;
}

.pivot-account-table td.tx-amount.negative {
    color: #b91c1c;
}

.wallet-transactions-modal {
    width: min(95vw, 1020px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.wallet-transactions-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.wallet-transactions-table-wrapper {
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    overflow-y: auto;
    max-height: 55vh;
}

.wallet-transactions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.wallet-transactions-table th,
.wallet-transactions-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
}

.wallet-transactions-table th {
    background: rgba(248, 250, 252, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

.wallet-transactions-table td.amount-positive {
    color: #15803d;
    font-weight: 600;
}

.wallet-transactions-table td.amount-negative {
    color: #b91c1c;
    font-weight: 600;
}

.wallet-transactions-table td.txid-cell code {
    font-size: 0.78rem;
    word-break: break-all;
}

.wallet-actions {
    margin-top: 12px;
}

.eigenbeleg-reference .reference-inline input {
    flex: 1 1 180px;
}

.inline-form {
    display: inline;
}

.inline-form.on-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alert {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
}

.alert-success {
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
}

.alert-error {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.steps {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 12px;
}

.steps li {
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.steps li.active {
    background: rgba(79, 70, 239, 0.15);
    border-color: rgba(79, 70, 239, 0.5);
}

.import-reset {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}


.form-actions {
    display: flex;
    gap: 12px;
}

.attachments ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-form {
    flex: 1 1 auto;
}

.detail-attachments {
    flex: 1 1 auto;
    width: 100%;
}

.attachment-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attachment-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.attachment-thumb {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.15);
    object-fit: contain;
    background: #fff;
    max-height: 520px;
}

.attachment-pdf {
    width: 100%;
    min-height: 520px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.15);
}

.attachment-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: inherit;
    text-decoration: none;
}

.attachment-icon {
    font-size: 1.5rem;
}

.attachment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment-actions .button.small {
    padding: 6px 14px;
}

.transaction-group {
    border-radius: 18px;
    margin-bottom: 16px;
    background: var(--glass);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.transaction-group summary {
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-right: 48px;
}

.transaction-group summary::-webkit-details-marker {
    display: none;
}

.transaction-group summary::after {
    content: '▾';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.transaction-group[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.transaction-group .table-wrapper {
    border: none;
}

.transaction-complete {
    background: rgba(34, 197, 94, 0.15);
}

.transaction-complete td {
    border-bottom-color: rgba(34, 197, 94, 0.25);
}

.quarter-group {
    margin-top: 24px;
}

.transaction-subgroup {
    margin: 10px 0 0;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.transaction-subgroup summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: rgba(248, 250, 252, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 48px;
}

.transaction-subgroup summary::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: inherit;
    pointer-events: none;
}

.transaction-subgroup[open] summary::before {
    opacity: 1;
}

.transaction-subgroup.year-entry {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.transaction-subgroup.year-entry summary {
    font-size: 1.06rem;
}

.transaction-subgroup.quarter-entry {
    margin-left: 6px;
    border-left: 4px solid rgba(99, 102, 241, 0.35);
    background: rgba(248, 250, 252, 0.82);
}

.transaction-subgroup.quarter-entry summary {
    font-size: 1rem;
}

.transaction-subgroup.month-entry {
    margin-left: 18px;
    border-left: 3px dashed rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.9);
}

.transaction-subgroup.month-entry summary {
    font-weight: 500;
}

.transaction-subgroup.account-entry {
    margin-left: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.transaction-subgroup.account-entry summary {
    font-weight: 500;
    background: rgba(245, 248, 255, 0.95);
}

.transaction-subgroup.account-entry .table-wrapper {
    padding: 0 16px 16px;
}

.quarter-meta {
    display: grid;
    gap: 16px;
    padding: 12px 20px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.quarter-progress {
    display: grid;
    gap: 6px;
}

.progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.progress-bar span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #4f46ef, #22d3ee);
    border-radius: inherit;
    transition: width 0.25s ease;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-label strong {
    color: var(--text);
    margin-right: 4px;
}

.progress-open {
    margin-left: 6px;
    color: #b45309;
}

.quarter-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.quarter-notes-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1 1 auto;
}

.note-heading {
    font-weight: 600;
    color: var(--text);
}

.note-attachments {
    font-size: 0.82rem;
    color: rgba(59, 130, 246, 0.9);
}

.month-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 20px 4px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.month-open {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.month-open.complete {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.account-list {
    display: grid;
    gap: 12px;
    padding: 0 12px 12px;
}

.account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-open {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.badge-complete {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.transaction-subgroup.quarter-info {
    margin-left: 12px;
    border-left: 3px solid rgba(56, 189, 248, 0.45);
    background: rgba(191, 219, 254, 0.18);
}

.transaction-subgroup.quarter-info summary {
    font-weight: 600;
    background: rgba(191, 219, 254, 0.35);
}

.transaction-subgroup.quarter-info summary::before {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.25), transparent 70%);
}

.transaction-subgroup.quarter-info .quarter-info-content {
    padding: 16px 20px 20px;
    display: grid;
    gap: 16px;
}

.quarter-info-text {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    white-space: pre-wrap;
}

.attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.quarter-info-attachments .attachment-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quarter-info-attachments .attachment-list form {
    margin: 0;
}

.attachment-link {
    color: var(--primary, #3b82f6);
    text-decoration: none;
    word-break: break-word;
}

.attachment-link:hover {
    text-decoration: underline;
}

.transaction-subgroup summary::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.transaction-subgroup[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: auto;
    margin-right: 28px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-chip.status-complete {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.status-chip.status-in-progress {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.38);
    color: #b45309;
}

.status-chip.status-not-started {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.38);
    color: #b91c1c;
}

.summary-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cell-beleg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 170px;
}

.cell-attachments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment-count {
    font-size: 0.75rem;
    color: #475569;
}

.bonus-chip {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2563eb;
    white-space: nowrap;
}

.badge-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

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

.year-select-form {
    display: inline-flex;
    align-items: center;
}

.year-select-form select {
    font-size: 1.75rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.75);
    color: #1f2937;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.year-select-form select:focus {
    outline: 2px solid rgba(79, 70, 239, 0.45);
    outline-offset: 2px;
}

.stats-filter {
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-section {
    margin-top: 32px;
}

.stats-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.stat-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card h3 {
    margin: 0;
    font-size: 1rem;
}

.stat-card strong {
    font-size: 1.1rem;
}

.stat-total {
    font-size: 0.95rem;
    margin: 4px 0 6px;
    color: #0f172a;
}

.stat-total .stat-note {
    font-size: 0.85rem;
    color: #475569;
    margin-left: 6px;
}

.stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.stat-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stat-note {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 8px 0 0;
}

.stat-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    font-size: 0.75em;
    margin-left: 6px;
    cursor: help;
}

.stat-card code {
    font-family: 'Fira Mono', monospace;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.table-wrapper.horizontal-scroll {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) rgba(241, 245, 249, 0.5);
    -webkit-overflow-scrolling: touch;
}

.table-wrapper.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
}

.table-wrapper.horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.35);
    border-radius: 999px;
}

.pivot-table {
    width: max(100%, 960px);
    white-space: nowrap;
}

.pivot-table th,
.pivot-table td {
    text-align: left;
    vertical-align: top;
}

.pivot-table td {
    min-width: 120px;
}

.pivot-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.85);
}

.pivot-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.7);
}

.pivot-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.08);
}

.pivot-table tbody tr.pivot-total {
    background: rgba(79, 70, 239, 0.08);
}

.pivot-table tbody tr.pivot-grand-total {
    background: rgba(30, 64, 175, 0.18);
}

.pivot-table .category-column {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 12px 0 18px -12px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
}

.pivot-table thead .category-column {
    z-index: 3;
    background: rgba(226, 232, 240, 0.98);
}

.pivot-table tbody tr:nth-child(even) .category-column {
    background: rgba(241, 245, 249, 0.9);
}

.pivot-table tbody tr.pivot-total .category-column {
    background: rgba(79, 70, 239, 0.18);
}

.pivot-table tbody tr.pivot-grand-total .category-column {
    background: rgba(30, 64, 175, 0.28);
    color: #0f172a;
}

.pivot-table tbody tr:hover .category-column {
    background: rgba(37, 99, 235, 0.12);
}

.cell-amount {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 6px 14px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cell-amount:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

button.cell-amount {
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.cell-amount:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.stats-table {
    margin-top: 8px;
}

.stats-summary .stat-card {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}

.stats-summary .stat-card h3 {
    font-size: 1.05rem;
}

.stat-year {
    margin-bottom: 24px;
}

.stat-year h3 {
    margin-bottom: 8px;
}

.stats-summary .stat-card .stat-total {
    margin-top: 4px;
}

.count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

@media (min-width: 1024px) {
    .detail-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .detail-form,
    .detail-attachments {
        flex: 1 1 50%;
        min-width: 0;
    }

    .detail-attachments {
        position: sticky;
        top: 32px;
        width: 100%;
    }
}

.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-right: 6px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.payload {
    margin: 0;
    font-size: 0.75rem;
    white-space: pre-wrap;
}

.auth-body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #c7d2fe, #eef2ff);
}

.auth-card {
    width: min(360px, 90vw);
    padding: 32px;
    border-radius: 24px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid .wide {
    grid-column: span 2;
}



.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form.large {
    max-width: 720px;
}

.summary-card {
    background: rgba(79, 70, 239, 0.08);
    border: 1px solid rgba(79, 70, 239, 0.25);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.entries-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.entries-grid > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.currency-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.input-inline {
    display: flex;
    gap: 8px;
}

.input-inline input:first-child {
    flex: 0 0 70px;
}

.input-inline input:last-child {
    flex: 1 1 auto;
    min-width: 120px;
}

.static-field input[readonly] {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text-muted);
    cursor: default;
}

.quarter-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quarter-statement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quarter-statement-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.85);
    transition: background 0.2s ease;
}

.quarter-statement-list li:nth-child(even) {
    background: rgba(226, 232, 240, 0.75);
}

.quarter-statement-list li:hover {
    background: rgba(37, 99, 235, 0.12);
}

.statement-month {
    font-weight: 600;
    color: #1f2937;
}

.quarter-year-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quarter-year-picker select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.8);
}

.quarter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quarter-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quarter-card h3 {
    margin: 0;
}

.statement-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.statement-status.status-complete {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.35);
}

.statement-status.status-partial {
    background: rgba(234, 179, 8, 0.18);
    color: #b45309;
    border-color: rgba(234, 179, 8, 0.35);
}

.statement-status.status-none {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.35);
}

.send-ledger-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.send-ledger-form .button.small {
    white-space: nowrap;
}

.send-ledger-feedback {
    font-size: 0.85rem;
    color: #2563eb;
}

.send-ledger-feedback.error {
    color: #b91c1c;
}

@media (max-width: 960px) {
    .table-wrapper.horizontal-scroll {
        margin: 0 -12px;
        padding: 0 12px;
    }

    .pivot-table td {
        min-width: 110px;
    }

    .quarter-category-list {
        flex: 0 0 180px;
    }

    .quarter-card-grid {
        grid-auto-columns: minmax(240px, max-content);
    }

    .year-category-list {
        flex: 0 0 180px;
    }

    .year-card-grid {
        grid-auto-columns: minmax(240px, max-content);
    }
}

@media (max-width: 720px) {
    .content {
        padding: 20px 12px;
    }

    .table-wrapper.horizontal-scroll {
        margin: 0 -8px;
        padding: 0 8px;
    }

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

    .quarter-category-list {
        position: static;
        width: 100%;
        box-shadow: none;
        flex: 0 0 auto;
    }

    .quarter-card-scroller {
        margin-top: 12px;
    }

    .quarter-card-grid {
        grid-auto-columns: minmax(240px, max-content);
    }

    .year-summary {
        flex-direction: column;
        gap: 12px;
    }

    .year-category-list {
        width: 100%;
    }

    .year-card-grid {
        grid-auto-columns: minmax(240px, 100vw);
    }
}
.entries-grid label:last-child input {
    width: 100%;
}
.cell-amount.positive,
button.cell-amount.positive {
    background: rgba(16, 185, 129, 0.75);
    color: #f8fafc;
}

.cell-amount.negative,
button.cell-amount.negative {
    background: rgba(239, 68, 68, 0.75);
    color: #f8fafc;
}

.cell-amount.neutral {
    background: rgba(148, 163, 184, 0.25);
    color: #1f2937;
}
.quarter-summary {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.quarter-category-list {
    flex: 0 0 220px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 5;
}

.quarter-category-header,
.quarter-category-footer {
    font-weight: 600;
    color: #1f2937;
}

.quarter-category-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.quarter-category-list ul li,
.quarter-category-footer,
.quarter-category-header {
    min-height: 32px;
    display: flex;
    align-items: center;
}

.quarter-card-scroller {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) rgba(241, 245, 249, 0.5);
    -webkit-overflow-scrolling: touch;
}

.quarter-card-scroller::-webkit-scrollbar {
    height: 8px;
}

.quarter-card-scroller::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
}

.quarter-card-scroller::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.35);
    border-radius: 999px;
}

.quarter-card-grid {
    display: grid;
    gap: 16px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, max-content);
    min-height: 100%;
}

.quarter-card {
    gap: 12px;
}

.quarter-values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.quarter-values li {
    display: flex;
    align-items: center;
    min-height: 32px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.quarter-values li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.85);
}

.quarter-values li:nth-child(even) {
    background: rgba(241, 245, 249, 0.75);
}

.quarter-values li:hover {
    background: rgba(37, 99, 235, 0.08);
}

.quarter-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quarter-totals > div {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.quarter-total-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.quarter-total-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4b5563;
}

.year-summary {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.year-category-list {
    flex: 0 0 220px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 5;
}

.year-category-header,
.year-category-footer {
    font-weight: 600;
    color: #1f2937;
}

.year-category-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.year-category-list ul li,
.year-category-footer,
.year-category-header {
    min-height: 32px;
    display: flex;
    align-items: center;
}

.year-card-grid {
    flex: 1;
    display: grid;
    gap: 16px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, max-content);
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) rgba(241, 245, 249, 0.5);
}

.year-card-grid::-webkit-scrollbar {
    height: 8px;
}

.year-card-grid::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
}

.year-card-grid::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.35);
    border-radius: 999px;
}

.year-card {
    gap: 12px;
}

.year-values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.year-values li {
    display: flex;
    align-items: center;
    min-height: 32px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
    width: 100%;
}

.year-values li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.85);
}

.year-values li:nth-child(even) {
    background: rgba(241, 245, 249, 0.75);
}

.year-values li:hover {
    background: rgba(37, 99, 235, 0.08);
}

.year-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.year-total-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}


.payouts-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.payout-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.payout-summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.payout-summary-item .summary-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.payout-summary-item strong {
    font-size: 1.35rem;
}

.payout-modal {
    width: min(95vw, 1020px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.payout-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.payout-modal .table-wrapper {
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.6);
    max-height: 60vh;
    overflow-y: auto;
}

.payout-modal .modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.payout-table th,
.payout-table td {
    white-space: nowrap;
}


.payout-summary-item .summary-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}


.payout-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.statements-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.statement-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    padding: 20px 24px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.statement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    border-color: rgba(79, 70, 229, 0.35);
}

.statement-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.statement-card .title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.statement-card header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.statement-card header .badge {
    margin-left: auto;
}

.statement-card section {
    display: grid;
    gap: 12px;
    padding: 4px;
    border-radius: 18px;
    overflow: hidden;
}

.statement-entry-modern {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.statement-entry-modern:hover {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

.statement-entry-modern .meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.statement-entry-modern .meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.statement-entry-modern .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.statement-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 239, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.statement-filter {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.statement-filter label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.statement-filter select {
    min-width: 140px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.6);
}

.tp-analysis-card {
    display: grid;
    gap: 24px;
}

.tp-analysis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.tp-analysis-head h2 {
    margin: 0;
}

.tp-analysis-subtitle {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tp-analysis-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.68);
    flex-wrap: wrap;
}

.tp-analysis-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.tp-analysis-filter label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tp-analysis-filter input {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.65);
    color: rgba(15, 23, 42, 0.8);
}

.tp-analysis-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tp-analysis-summary {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.68);
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(79, 70, 239, 0.08);
    border: 1px solid rgba(79, 70, 239, 0.15);
}

.tp-analysis-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    padding: 18px;
}

.tp-tree-wrapper {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.55);
    padding: 16px 20px;
    overflow-x: auto;
}

.tp-tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-tree-node {
    list-style: none;
}

.tp-tree-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-tree-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.8);
    color: rgba(15, 23, 42, 0.75);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.tp-tree-toggle.is-open {
    background: rgba(79, 70, 239, 0.16);
    border-color: rgba(79, 70, 239, 0.25);
    color: rgba(79, 70, 239, 0.9);
}

.tp-tree-toggle.placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

.tp-tree-entry {
    flex: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tp-tree-role {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
    background: rgba(148, 163, 184, 0.16);
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.tp-tree-node.is-new .tp-tree-entry {
    border-color: rgba(79, 70, 239, 0.35);
    background: rgba(79, 70, 239, 0.12);
}

.tp-tree-node.is-new .tp-tree-role {
    color: rgba(79, 70, 239, 0.9);
    background: rgba(79, 70, 239, 0.2);
}

.tp-tree-node.is-placeholder .tp-tree-entry {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.7);
}

.tp-tree-node.is-placeholder .tp-tree-name {
    font-style: italic;
    color: rgba(15, 23, 42, 0.6);
}

.tp-tree-node.is-placeholder .tp-tree-role {
    background: rgba(148, 163, 184, 0.22);
    color: rgba(15, 23, 42, 0.55);
}

.tp-tree-name {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.tp-tree-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tp-tree-count {
    font-size: 0.8rem;
    color: rgba(79, 70, 239, 0.85);
    font-weight: 600;
}

.tp-tree-total {
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 500;
}

.tp-tree-date {
    margin-left: auto;
    flex-grow: 1;
    text-align: right;
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.55);
}

.tp-tree-children {
    margin: 8px 0 0 28px;
    padding-left: 20px;
    border-left: 1px dashed rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tp-tree-children.is-collapsed {
    display: none;
}

.app-usage-card {
    display: grid;
    gap: 28px;
}

.app-usage-card.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.app-usage-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.app-usage-card__head h2 {
    margin: 0;
}

.app-usage-subtitle {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.app-usage-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.app-usage-meta__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.75);
}

.app-usage-meta__tag.ghost {
    background: rgba(148, 163, 184, 0.16);
}

.app-usage-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.app-usage-filter label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-usage-filter input,
.app-usage-filter select {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.65);
    color: rgba(15, 23, 42, 0.82);
}

.app-usage-filter__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.app-usage-summary {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.app-usage-summary__item {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 6px;
}

.app-usage-summary__item .label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.85);
}

.app-usage-summary__item strong {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.9);
}

.app-usage-summary__item .foot {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-usage-chart {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.1);
}

.app-usage-chart canvas {
    width: 100%;
    height: 280px;
}

.app-usage-chart__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 24px;
}

.app-usage-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.app-usage-insight {
    display: grid;
    gap: 12px;
    align-content: flex-start;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.app-usage-insight header h3 {
    margin: 0;
}

.app-usage-insight header p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.top-users-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.top-users-list__item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.7);
    display: grid;
    gap: 12px;
}

.top-users-list__name {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(15, 23, 42, 0.8);
}

.top-users-list__name span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.top-users-list__stats {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.top-users-list__stats dt {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.85);
}

.top-users-list__stats dd {
    margin: 4px 0 0;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.9);
}

.top-users-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hourly-heatmap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: -10px;
    gap: 18px;
}

.hourly-panel__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(36px, 1fr));
    gap: 8px;
}

.hourly-panel__cell {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: rgb(240, 249, 255);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.hourly-panel__cell:hover {
    transform: scale(1.3);
    z-index: 3;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.hourly-panel__cell-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    font-size: 0.58rem;
    line-height: 1.15;
    padding: 4px;
    border-radius: inherit;
    background: rgba(15, 23, 42, 0.92);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.hourly-panel__cell-overlay strong {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
}

.hourly-panel__cell:hover .hourly-panel__cell-overlay {
    opacity: 1;
    transform: scale(1);
}

.hourly-panel__footer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    text-align: right;
}

.hourly-legend {
    align-self: center;
    display: grid;
    gap: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

.hourly-legend__label {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hourly-legend__scale {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hourly-legend__scale::before {
    content: '';
    display: block;
    width: 140px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(240, 249, 255, 1), rgba(255, 190, 90, 1), rgba(241, 90, 36, 1));
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.12);
}
.notification-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.notification-breakdown__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.notification-breakdown__status {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.notification-breakdown__value {
    color: rgba(79, 70, 229, 0.95);
    font-weight: 600;
}

.notification-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hourly-heatmap__field {
    position: relative;
    width: 100%;
    min-height: 240px;
    border-radius: 26px;
    background: var(--hourly-heat-gradient, linear-gradient(120deg, rgba(14,165,233,0.2), rgba(239,68,68,0.2)));
    overflow: hidden;
    box-shadow: inset 0 0 28px rgba(15, 23, 42, 0.18);
    margin-bottom: 28px;
}

.hourly-heatmap__field::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.22), transparent 55%),
                radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
                radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.12), transparent 65%);
    mix-blend-mode: screen;
}

.hourly-clock {
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 12px 0;
}

.hourly-clock__face {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #f9fafb 0%, #ffffff 60%, #f3f4f6 100%);
    border: 6px solid rgba(200, 206, 212, 0.85);
    box-shadow:
        inset 0 0 0 6px #000000,
        inset 0 0 0 8px #f9fafb,
        0 18px 36px rgba(15, 23, 42, 0.18);
}

.hourly-clock__ticks {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
}

.hourly-clock__tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center bottom;
    width: 6px;
    background: #000000;
    height: 16px;
}

.hourly-clock__tick.is-major {
    height: 26px;
    width: 8px;
    background: #000000;
}

.hourly-clock__tick.is-minor {
    height: 12px;
    width: 3px;
    background: rgba(0, 0, 0, 0.7);
}

.hourly-clock__tick::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: inherit;
    height: inherit;
    background: inherit;
}

.hourly-clock__hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: center bottom;
    background: #000000;
    border-radius: 999px;
    pointer-events: none;
}

.hourly-clock__hand--hour {
    width: 10px;
    height: 58px;
}

.hourly-clock__hand--minute {
    width: 8px;
    height: 82px;
}

.hourly-clock__hand--second {
    width: 6px;
    height: 95px;
    background: #d62828;
    border-radius: 999px;
}

.hourly-clock__hand::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: inherit;
    transform: translateX(-50%);
}

.hourly-clock__hand--second::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 26px;
    height: 26px;
    background: #d62828;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hourly-clock__pivot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.hourly-clock__motif {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 12px;
    background: url('data:image/svg+xml,%3Csvg width="120" height="30" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M60 0c8 0 16 5 19 13h-8c-2-3-6-5-11-5-9 0-14 6-14 15s5 15 14 15c5 0 9-1 11-5h8c-3 8-11 13-19 13-14 0-24-10-24-23S46 0 60 0Z" fill="%23000"/%3E%3Ccircle cx="60" cy="23" r="3" fill="%23fff"/%3E%3C/svg%3E') no-repeat center / contain;
    opacity: 0.7;
}

.hourly-clock__legend {
    display: grid;
    gap: 6px;
    justify-items: center;
    font-size: 0.88rem;
    color: rgba(15, 23, 42, 0.75);
}

.hourly-clock__legend-label {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hourly-clock__legend-scale {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.6);
}

.hourly-clock__legend-scale::before {
    content: '';
    display: block;
    width: 120px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.7), rgba(239, 68, 68, 0.7));
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.12);
}

.app-usage-import {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.app-usage-import__head h2 {
    margin: 0;
}

.app-usage-import__head p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.app-usage-import__feedback {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.7);
    display: grid;
    gap: 10px;
}

.app-usage-import__feedback.success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.app-usage-import__feedback.error {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.1);
}

.app-usage-import__feedback ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
}

.app-usage-import__form {
    display: grid;
    gap: 12px;
}

.app-usage-import__file {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

.app-usage-import__help {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-usage-import__help code {
    background: rgba(79, 70, 239, 0.12);
    color: rgba(79, 70, 239, 0.9);
    padding: 2px 6px;
    border-radius: 8px;
}

/* XBON Review */
.xbon-card {
    margin-bottom: 1.5rem;
}
.xbon-card--filter {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 242, 255, 0.85));
    border: 1px solid rgba(143, 155, 179, 0.2);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    border-radius: 28px;
    backdrop-filter: blur(18px);
    overflow: hidden;
}
.xbon-card--filter .card-header,
.xbon-card--filter .card-body {
    background: transparent;
}

.xbon-refresh-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.6);
    white-space: nowrap;
}

.xbon-refresh-meta strong {
    font-size: 1rem;
    color: #0f172a;
}

.xbon-heartbeat-card {
    min-width: 200px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.xbon-heartbeat-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    border: 1px dashed rgba(244, 63, 94, 0.25);
    pointer-events: none;
}

.xbon-heartbeat-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}

.xbon-heartbeat-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: xbonPulse 1.8s infinite;
}

.xbon-heartbeat-status.is-active {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes xbonPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.xbon-heartbeat-spark {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 48px;
    width: 220px;
    justify-content: flex-end;
    overflow: hidden;
    flex-wrap: nowrap;
}

.xbon-heartbeat-spark__bar {
    flex: 0 0 4px;
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.9), rgba(59, 130, 246, 0.65));
    border-radius: 4px;
    min-height: 4px;
    opacity: 0.6;
}

.xbon-heartbeat-spark__bar:last-child {
    opacity: 1;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.9));
}

.xbon-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.xbon-analytics-card {
    position: relative;
}

.xbon-analytics-card.is-loading::after {
    content: 'Aktualisiere …';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    font-weight: 600;
    color: #4c1d95;
    z-index: 2;
}

.xbon-analytics-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.xbon-analytics-card__header h3 {
    margin: 0 0 0.25rem;
}

.xbon-analytics-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.xbon-analytics-shortcut {
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4c1d95;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xbon-analytics-shortcut.is-active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(79, 70, 229, 0.6);
}

.xbon-analytics-controls form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.xbon-analytics-controls label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.xbon-analytics-controls input,
.xbon-analytics-controls select {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
}

.xbon-analytics-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xbon-analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.xbon-analytics-summary span {
    display: block;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xbon-analytics-summary strong {
    font-size: 1.2rem;
}

.xbon-analytics-chart {
    position: relative;
    min-height: 240px;
}

.xbon-analytics-chart canvas {
    width: 100% !important;
    height: 240px !important;
}

.xbon-analytics-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.6);
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 16px;
}

.xbon-analytics-points,
.xbon-analytics-error {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
}

.xbon-analytics-error {
    color: #b91c1c;
}
.xbon-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.xbon-status-tile {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.xbon-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
}

.xbon-status--pending {
    background: #fff7ed;
    color: #c2410c;
}

.xbon-status--approved {
    background: #ecfdf5;
    color: #047857;
}

.xbon-status--rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.xbon-status--neutral {
    background: #eef2ff;
    color: #3730a3;
}

.xbon-status-meta strong {
    display: block;
    font-size: 1.5rem;
}

.xbon-status-meta {
    display: flex;
    flex-direction: column;
}

.xbon-status-meta small {
    display: block;
    color: rgba(15, 23, 42, 0.7);
    margin-top: 0.25rem;
}

.xbon-status-summary {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.xbon-status-summary__item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.xbon-status-summary__item span {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.xbon-status-summary__item strong {
    font-size: 1.25rem;
}

.xbon-top-partners {
    margin-top: 2rem;
}

.xbon-top-partners h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.xbon-top-partners__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.xbon-top-partner-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.xbon-top-partner-card::before {
    content: attr(data-rank);
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 25vw, 8rem);
    font-weight: 900;
    color: rgba(15, 23, 42, 0.07);
    pointer-events: none;
    line-height: 1;
}

.xbon-top-partner-card > * {
    position: relative;
    z-index: 1;
}

.xbon-top-partner-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.xbon-top-partner-card__header span {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
}

.xbon-top-partner-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xbon-top-partner-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xbon-top-partner-card__logo-fallback {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
}

.xbon-top-partner-card__count {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
    font-weight: 500;
}

.xbon-top-partner-card__metrics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.xbon-top-partner-card__metrics li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.xbon-top-partner-card__metrics span {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xbon-top-partner-card__metrics strong {
    font-size: 1rem;
}

.xbon-filter {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.xbon-filter label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.7);
    gap: 0.35rem;
}

.xbon-filter label input,
.xbon-filter label select {
    font-size: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.65rem 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 255, 0.8));
    color: #0f172a;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.xbon-filter label input::placeholder {
    color: rgba(15, 23, 42, 0.45);
}
.xbon-filter label select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 255, 0.8)), url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.41.59 6 5.17 10.59.59 12 2l-6 6-6-6L1.41.59Z' fill='%230f172a'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right 16px center;
    background-size: auto, 12px 8px;
    padding-right: 2.75rem;
}
.xbon-filter label input:focus,
.xbon-filter label select:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.7);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25);
}

.xbon-filter__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    grid-column: 1 / -1;
    flex-wrap: wrap;
}
.xbon-transfer-percent-form {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.xbon-transfer-percent-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.8);
}
.xbon-transfer-percent-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.xbon-transfer-percent-slider input[type="range"] {
    flex: 1;
}
.xbon-transfer-percent-form [data-transfer-percent-value] {
    min-width: 48px;
    text-align: right;
    font-weight: 700;
    color: #0f172a;
}
.xbon-transfer-percent-hint {
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.6);
}
.xbon-filter__actions .button {
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.25);
}
.xbon-filter__actions .button.ghost {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: rgba(15, 23, 42, 0.8);
}
.xbon-filter__actions .button.ghost:hover {
    border-color: rgba(79, 70, 229, 0.6);
}

.xbon-table-wrapper .table-scroll {
    overflow-x: auto;
}

.xbon-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}

.xbon-table th,
.xbon-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
    vertical-align: top;
}

.xbon-table tbody tr:hover {
    background: rgba(79, 70, 239, 0.04);
}

.xbon-table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.xbon-table__select {
    width: 44px;
    text-align: center;
    vertical-align: middle;
}
.xbon-table__select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.xbon-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.xbon-sort-link:hover {
    color: #0f172a;
}
.xbon-sort-link.is-active {
    color: #0f172a;
}
.xbon-sort-indicator {
    font-size: 0.75em;
    opacity: 0.6;
    min-width: 0.85em;
}

.xbon-meta {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.6);
}

.xbon-actions {
    min-width: 220px;
}

.xbon-details {
    margin-bottom: 0.5rem;
}

.xbon-details summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.xbon-details summary::-webkit-details-marker {
    display: none;
}

.xbon-details summary::after {
    content: '▾';
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.6);
}

.xbon-details[open] summary::after {
    transform: rotate(180deg);
}

.xbon-details__body {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.xbon-details__info {
    flex: 1 1 220px;
}

.xbon-details__info dl {
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.xbon-details__info dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.6);
}

.xbon-details__info dd {
    margin: 0;
    font-weight: 600;
}

.xbon-preview {
    flex: 1 1 260px;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
}

.xbon-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.xbon-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.6);
    text-align: center;
    min-height: 120px;
}

.xbon-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.xbon-action-form .button {
    width: 100%;
}

.xbon-bulk-form {
    margin-bottom: 1rem;
}

.xbon-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
}

.xbon-bulk-toolbar__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.75);
}

.xbon-bulk-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.xbon-bulk-toolbar .button {
    white-space: nowrap;
}

.xbon-bulk-toolbar [data-bulk-count] {
    font-weight: 600;
    color: #0f172a;
}

@media (min-width: 768px) {
    .xbon-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .xbon-action-form .button {
        width: auto;
    }
}
.xbon-transfer-cell {
    min-width: 200px;
}
.xbon-transfer-note {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.7);
}
.xbon-transfer-note .xbon-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 0.4rem;
}
.xbon-tag--danger {
    background: #dc2626;
    color: #fff;
}
.xbon-tag__date {
    font-weight: 600;
    color: #0f172a;
}
.xbon-transfer-reason {
    margin-top: 0.3rem;
    color: rgba(15, 23, 42, 0.7);
}
.xbon-transfer-cell .xbon-meta {
    font-size: 0.8rem;
}

.xbon-transfer-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 1.5rem;
}
.xbon-transfer-modal[hidden] {
    display: none;
}
.xbon-transfer-modal__dialog {
    width: min(480px, 100%);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
}
.xbon-transfer-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.xbon-transfer-modal__header h3 {
    margin: 0;
    font-size: 1.35rem;
}
.xbon-transfer-modal__header p {
    margin: 0.25rem 0 0;
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.9rem;
}
.xbon-transfer-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(15, 23, 42, 0.6);
}
.xbon-transfer-modal__body {
    flex: 1;
    color: #0f172a;
    font-size: 0.95rem;
}
.xbon-storno-reason {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
}
.xbon-storno-reason textarea {
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.6rem 0.8rem;
    resize: vertical;
    min-height: 80px;
}
.xbon-storno-reason textarea.has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}
.xbon-transfer-modal__footer {
    display: flex;
    justify-content: flex-end;
}
.xbon-transfer-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}
.xbon-transfer-summary {
    margin: 1rem 0 0;
    display: grid;
    gap: 0.65rem;
}
.xbon-transfer-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}
.xbon-transfer-summary dt {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.7);
}
.xbon-transfer-summary dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}
.xbon-transfer-error {
    font-weight: 600;
    color: #dc2626;
}

.xbon-bulk-transfer-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2150;
}
.xbon-bulk-transfer-modal[hidden] {
    display: none;
}
.xbon-bulk-transfer-modal__dialog {
    width: min(1100px, 96%);
    max-height: 92vh;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
}
.xbon-bulk-transfer-modal__header,
.xbon-bulk-transfer-modal__footer {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.xbon-bulk-transfer-modal__header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.xbon-bulk-transfer-modal__footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
}
.xbon-bulk-transfer-modal__body {
    padding: 1.5rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.xbon-bulk-transfer-modal__header h3 {
    margin: 0;
    font-size: 1.35rem;
}
.xbon-bulk-transfer-modal__header p {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
}
.xbon-bulk-transfer-modal__close {
    border: none;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    cursor: pointer;
}
.xbon-bulk-transfer-summary {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.85);
}
.xbon-bulk-transfer-list {
    display: grid;
    gap: 0.5rem;
}
.xbon-bulk-transfer-row {
    display: grid;
    grid-template-columns: 70px minmax(180px, 1fr) 110px 120px minmax(200px, 1.2fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    font-size: 0.9rem;
}
.xbon-bulk-transfer-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xbon-bulk-transfer-row__partner {
    font-weight: 600;
    color: #0f172a;
    white-space: normal;
}
.xbon-bulk-transfer-row__partner small {
    display: block;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.7);
    margin-top: 2px;
    font-size: 0.82rem;
}
.xbon-bulk-transfer-row__status {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.xbon-bulk-transfer-row__message {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.7);
    white-space: normal;
}
.xbon-bulk-transfer-row[data-status="running"] {
    border-color: rgba(79, 70, 229, 0.35);
    background: rgba(79, 70, 229, 0.05);
}
.xbon-bulk-transfer-row[data-status="success"] {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}
.xbon-bulk-transfer-row[data-status="error"] {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
}
.xbon-bulk-transfer-row[data-status="error"] .xbon-bulk-transfer-row__message {
    color: #b91c1c;
}

.hidden {
    display: none !important;
}
.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-disclosure > summary,
.nav-disclosure > summary:hover,
.nav-disclosure > summary:focus,
.nav-sublink,
.nav-sublink:hover,
.nav-sublink:focus {
    text-decoration: none;
}
.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-disclosure > summary,
.nav-disclosure > summary:hover,
.nav-disclosure > summary:focus,
.nav-sublink,
.nav-sublink:hover,
.nav-sublink:focus {
    text-decoration: none;
    outline: none;
}
.xbon-partner-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.xbon-partner-header__subsort {
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: normal;
}
.xbon-partner-name {
    font-weight: 600;
}
.xbon-partner-date {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.7);
}
.xbon-partner-date__time {
    margin-left: 0.35rem;
}
.xbon-filter label input,
.xbon-filter label select {
.xbon-transfer-percent-bar {
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 16px;
    padding: 0.7rem 1rem;
    display: none;
}
.xbon-filter label input,
.xbon-filter label select {
