:root {
    --go-bg: var(--fd-bg, #f3f6f9);
    --go-panel: var(--fd-surface, #ffffff);
    --go-ink: var(--fd-text, #162033);
    --go-muted: var(--fd-muted, #5f6f84);
    --go-muted-strong: var(--fd-muted-strong, #475569);
    --go-line: var(--fd-border, #e2e8f0);
    --go-line-strong: var(--fd-border-strong, #d7e0eb);
    --go-soft: var(--fd-surface-muted, #eef3f8);
    --go-hover: #f2f7ff;
    --go-blue: var(--fd-blue, #2563eb);
    --go-blue-hover: var(--fd-blue-hover, #1d4ed8);
    --go-navy: var(--fd-navy, #0b2a5b);
    --go-navy-soft: var(--fd-navy-soft, #123a78);
    --go-green: var(--fd-success, #16a34a);
    --go-amber: var(--fd-warning, #d97706);
    --go-red: var(--fd-danger, #dc2626);
    --go-shadow: var(--fd-shadow, 0 10px 26px rgba(15, 23, 42, .045));
    --go-shadow-soft: var(--fd-shadow-soft, 0 6px 18px rgba(15, 23, 42, .035));
    --go-focus: var(--fd-focus, 0 0 0 .2rem rgba(37, 99, 235, .18));
    --go-radius: var(--fd-radius-sm, 8px);
    --go-header-height: 72px;
    font-family: var(--fd-font-main, Inter, "Segoe UI", Arial, sans-serif);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow: hidden;
    background: var(--go-bg);
    color: var(--go-ink);
    letter-spacing: 0;
}

.d-none {
    display: none !important;
}

body > .modal:not(.show) {
    display: none !important;
}

body > .modal.show {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(15, 23, 42, .48);
}

body > .modal.show .modal-dialog {
    width: min(820px, calc(100vw - 32px));
    margin: 32px auto;
}

body > .modal.show .modal-dialog-centered {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}

body > .modal.show .modal-content {
    width: 100%;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: rgba(15, 23, 42, .48);
}

.modal-backdrop:not(.show) {
    display: none !important;
}

body.darkmode {
    --go-bg: #101827;
    --go-panel: #172235;
    --go-ink: #e5edf7;
    --go-muted: #94a3b8;
    --go-muted-strong: #cbd5e1;
    --go-line: rgba(148, 163, 184, .22);
    --go-line-strong: rgba(148, 163, 184, .32);
    --go-soft: #111827;
    --go-hover: rgba(59, 130, 246, .15);
    --go-shadow: 0 16px 34px rgba(0, 0, 0, .26);
    --go-shadow-soft: 0 8px 22px rgba(0, 0, 0, .18);
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

.flowcrm-go-app {
    --flowcrm-go-sidebar-width: 236px;
    --flowcrm-go-sidebar-collapsed-width: 74px;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--flowcrm-go-sidebar-width) minmax(0, 1fr);
    overflow-x: hidden;
    transition: grid-template-columns .18s ease;
}

.flowcrm-go-shell {
    min-width: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.flowcrm-go-workbench {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    overflow: hidden;
}

.flowcrm-go-sidebar {
    position: sticky;
    top: 0;
    min-width: 0;
    max-width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 54%, #0f3b68 100%);
    box-shadow: 18px 0 42px rgba(15, 23, 42, .12);
    transition: padding .18s ease, gap .18s ease;
}

.flowcrm-go-sidebar > * {
    min-width: 0;
}

.flowcrm-go-brand {
    height: var(--go-header-height);
    min-height: var(--go-header-height);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -18px -19px 0 -18px;
    padding: 0 17px;
    border-bottom: 1px solid var(--fd-border, #e2e8f0);
    background: #ffffff;
    color: #0a376d;
    min-width: 0;
    position: relative;
    z-index: 3;
}

.flowcrm-go-logo-box {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: var(--go-radius);
    background: linear-gradient(135deg, #0b376d, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

.flowcrm-go-logo-box img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--go-radius);
    object-fit: contain;
}

.flowcrm-go-brand-text {
    min-width: 0;
}

.flowcrm-go-wordmark,
.flowcrm-go-product {
    overflow: visible;
    display: inline-flex;
    align-items: flex-start;
    color: #0a376d;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.flowcrm-go-product-flow {
    display: inline-block;
    transform: scaleX(.86);
    transform-origin: left center;
    font-family: "Arial Narrow", "Aptos Narrow", var(--fd-font-main, Inter, "Segoe UI", Arial, sans-serif);
    font-stretch: condensed;
    font-weight: 850;
    margin-right: -.32em;
}

.flowcrm-go-product-name-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: .045em;
    padding-right: 0;
    line-height: 1;
}

.flowcrm-go-product-name {
    font-weight: 500;
}

.flowcrm-go-suffix {
    display: inline-block;
    position: relative;
    top: .025em;
    color: inherit;
    font-size: .42em;
    font-weight: 720;
    line-height: 1;
    letter-spacing: 0;
}

.flowcrm-go-host {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(10, 55, 109, .58);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-menu-toggle {
    width: 40px;
    height: 40px;
    display: none;
    place-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid var(--fd-border, #e2e8f0);
    border-radius: var(--go-radius);
    background: #ffffff;
    color: #0a376d;
    box-shadow: var(--go-shadow-soft);
    font-size: 22px;
}

.flowcrm-go-menu-toggle:hover,
.flowcrm-go-menu-toggle:focus-visible {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: #1d4ed8;
    outline: none;
}

.flowcrm-go-mobile-actions {
    display: none;
}

.flowcrm-go-kicker,
.flowcrm-go-list-head,
.flowcrm-go-muted {
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 650;
}

.flowcrm-go-list-head {
    color: var(--go-muted);
}

.flowcrm-go-kicker {
    color: var(--go-muted);
}

.flowcrm-go-kicker .flowcrm-go-wordmark {
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 650;
}

.flowcrm-go-nav {
    display: grid;
    align-content: start;
    align-self: start;
    gap: 6px;
}

.flowcrm-go-nav button {
    position: relative;
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, .74);
    text-align: left;
    font-size: 14px;
    font-weight: 650;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.flowcrm-go-nav button i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    text-align: center;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.flowcrm-go-nav button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-nav button strong {
    min-width: 28px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 850;
}

.flowcrm-go-nav button.is-active,
.flowcrm-go-nav button:hover,
.flowcrm-go-nav button:focus-visible {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    outline: none;
}

.flowcrm-go-nav button.is-active::before {
    content: none;
}

.flowcrm-go-nav button.is-active i,
.flowcrm-go-nav button:hover i,
.flowcrm-go-nav button:focus-visible i {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.flowcrm-go-nav button.is-active i {
    background: #e8f1ff;
    color: #1d4ed8;
    box-shadow: none;
}

.flowcrm-go-nav button.is-active strong,
.flowcrm-go-nav button:hover strong,
.flowcrm-go-nav button:focus-visible strong {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .13);
    color: #ffffff;
}

.flowcrm-go-nav button.is-active {
    border-color: rgba(255, 255, 255, .9);
    background: #ffffff;
    color: #0b2a5b;
    box-shadow: 0 12px 26px rgba(2, 6, 23, .22);
}

.flowcrm-go-nav button.is-active strong {
    border-color: #dbeafe;
    background: #e8f1ff;
    color: #1d4ed8;
}

.flowcrm-go-nav button.is-active:hover,
.flowcrm-go-nav button.is-active:focus-visible {
    background: #ffffff;
    color: #0b2a5b;
    box-shadow: 0 14px 30px rgba(2, 6, 23, .25);
}

@media (hover: hover) and (pointer: fine) {
    .flowcrm-go-nav button {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .flowcrm-go-nav button strong {
        display: none;
    }
}

.flowcrm-go-search {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--go-radius);
    background: #ffffff;
    box-shadow: var(--go-shadow-soft);
}

.flowcrm-go-list-pane {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px;
    border-right: 1px solid var(--go-line);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    overflow: hidden;
}

body.darkmode .flowcrm-go-filter-card {
    border-color: var(--go-line);
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-filter-card .modern-search,
body.darkmode .flowcrm-go-filter-card .form-select,
body.darkmode .flowcrm-go-advanced-filters,
body.darkmode .flowcrm-go-advanced-filters .form-control,
body.darkmode .flowcrm-go-advanced-filters .form-select {
    border-color: var(--go-line);
    background-color: #111827 !important;
    color: var(--go-ink) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

body.darkmode .flowcrm-go-filter-card .modern-search .input-group-text,
body.darkmode .flowcrm-go-filter-card .modern-search .form-control {
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-filter-chip {
    border-color: #1d4ed8;
    background: #172554;
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-list-pane {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.flowcrm-go-search i {
    color: #94a3b8;
}

.flowcrm-go-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--go-ink);
    font-size: 14px;
}

.flowcrm-go-filter-card {
    position: relative;
    z-index: 80;
    min-width: 0;
    margin: 14px 18px 0;
    padding: 14px;
    border: 1px solid #d7e2f1;
    border-radius: var(--go-radius);
    background: #ffffff;
    box-shadow: var(--go-shadow-soft);
}

.flowcrm-go-filter-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(250px, 2fr) repeat(5, minmax(126px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.flowcrm-go-primary-filters {
    display: contents;
}

.flowcrm-go-primary-filters-anchor,
.flowcrm-go-filter-label-mobile {
    display: none !important;
}

.flowcrm-go-filter-grid > .modern-search {
    order: 1;
}

.flowcrm-go-primary-filters #flowCrmGoKpbFilter {
    order: 2;
}

.flowcrm-go-primary-filters #flowCrmGoCaseStateFilter {
    order: 3;
}

.flowcrm-go-primary-filters #flowCrmGoProjectFilter {
    order: 4;
}

.flowcrm-go-filter-toggle {
    order: 5;
}

.flowcrm-go-primary-filters #flowCrmGoResetAllFilters {
    order: 6;
}

.flowcrm-go-mobile-filter-slot:empty {
    display: none;
}

.flowcrm-go-filter-card .modern-search {
    min-width: 0;
    min-height: 46px;
    border: 1px solid #d7e2f1;
    border-radius: var(--go-radius);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
    overflow: hidden;
}

.flowcrm-go-filter-card .modern-search .input-group-text {
    width: 50px;
    min-height: 44px;
    justify-content: center;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b;
}

.flowcrm-go-filter-card .modern-search .form-control {
    min-height: 44px;
    min-width: 0;
    padding-left: 0;
    margin-left: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.flowcrm-go-filter-card .modern-search .form-control:hover,
.flowcrm-go-filter-card .modern-search .form-control:focus,
.flowcrm-go-filter-card .modern-search .form-control:focus-visible {
    border: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.flowcrm-go-filter-card .form-select,
.flowcrm-go-advanced-filters .form-control,
.flowcrm-go-advanced-filters .form-select {
    min-height: 46px;
    border-color: #d7e2f1;
    border-radius: var(--go-radius);
    background-color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.flowcrm-go-filter-toggle,
.flowcrm-go-filter-reset-all {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;
    gap: 7px;
    transform: none !important;
    white-space: nowrap;
}

.flowcrm-go-filter-toggle {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.flowcrm-go-filter-toggle.is-open {
    position: relative;
    z-index: 2;
}

.flowcrm-go-filter-toggle:hover,
.flowcrm-go-filter-toggle:focus,
.flowcrm-go-filter-toggle:active,
.flowcrm-go-filter-toggle.is-open {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
}

.flowcrm-go-filter-reset-all {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    color: #475569 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.flowcrm-go-filter-reset-all:not(:disabled):hover,
.flowcrm-go-filter-reset-all:not(:disabled):focus-visible {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.flowcrm-go-filter-reset-all:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.flowcrm-go-filter-count {
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.flowcrm-go-filter-toggle:hover .flowcrm-go-filter-count,
.flowcrm-go-filter-toggle:focus .flowcrm-go-filter-count,
.flowcrm-go-filter-toggle:active .flowcrm-go-filter-count,
.flowcrm-go-filter-toggle.is-open .flowcrm-go-filter-count {
    background: #ffffff;
    color: #1d4ed8;
}

.flowcrm-go-filter-chevron {
    margin-left: 2px;
    transition: transform .16s ease;
}

.flowcrm-go-filter-toggle.is-open .flowcrm-go-filter-chevron {
    transform: rotate(180deg);
}

.flowcrm-go-filter-chips {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.flowcrm-go-filter-chips:empty {
    display: none;
}

.flowcrm-go-filter-chip {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #bfdbfe;
    border-radius: var(--go-radius);
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.flowcrm-go-advanced-filters {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    z-index: 90;
    max-height: min(68vh, 620px);
    overflow: auto;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: var(--go-radius);
    background: rgba(247, 251, 255, .98);
    box-shadow: 0 24px 56px rgba(15, 23, 42, .18);
    backdrop-filter: blur(10px);
}

.flowcrm-go-advanced-filters::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 150px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #dbeafe;
    border-left: 1px solid #dbeafe;
    background: rgba(247, 251, 255, .98);
    transform: rotate(45deg);
}

.flowcrm-go-advanced-filter-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(118px, 1fr));
    gap: 10px 12px;
    align-items: end;
}

.flowcrm-go-advanced-group-title {
    grid-column: 1 / -1;
    min-height: 20px;
    display: flex;
    align-items: center;
    margin-top: 2px;
    padding-top: 2px;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.flowcrm-go-advanced-group-title:not(:first-child) {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #e3edfb;
}

.flowcrm-go-advanced-field {
    min-width: 0;
    display: grid;
    gap: 5px;
    margin: 0;
}

.flowcrm-go-advanced-field > span {
    color: #475569;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
}

.flowcrm-go-advanced-field-wide {
    grid-column: span 2;
}

.flowcrm-go-advanced-filters .form-control,
.flowcrm-go-advanced-filters .form-select {
    height: 40px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    border: 1px solid #cddcf0 !important;
    border-radius: var(--go-radius) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

.flowcrm-go-advanced-filters .form-control:focus,
.flowcrm-go-advanced-filters .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
}

.flowcrm-go-advanced-filters .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.flowcrm-go-advanced-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.flowcrm-go-reset-filters {
    min-width: 160px !important;
    gap: 6px;
}

.flowcrm-go-list-head {
    display: grid;
    gap: 8px;
}

.flowcrm-go-list-head-main {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.flowcrm-go-case-scope-controls {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.flowcrm-go-case-scope-chip {
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #d7e4f2;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #31506f;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.05;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.flowcrm-go-case-scope-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-case-scope-chip strong {
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf5ff;
    color: #174c93;
    font-size: 11px;
    font-weight: 850;
}

.flowcrm-go-case-scope-chip.is-active {
    border-color: rgba(37, 99, 235, .48);
    background: linear-gradient(180deg, #eff6ff 0%, #e7f0ff 100%);
    color: #174c93;
}

.flowcrm-go-case-scope-chip[data-go-case-scope="delegated"].is-active {
    border-color: rgba(99, 102, 241, .42);
    background: linear-gradient(180deg, #f1f3ff 0%, #e9edff 100%);
    color: #4338ca;
}

.flowcrm-go-case-scope-chip[data-go-case-scope="delegated"] strong {
    background: #eef2ff;
    color: #4338ca;
}

.flowcrm-go-case-scope-chip.is-disabled,
.flowcrm-go-case-scope-chip:disabled {
    cursor: not-allowed;
    opacity: .48;
    filter: grayscale(.35);
}

.flowcrm-go-case-scope-chip.is-disabled strong,
.flowcrm-go-case-scope-chip:disabled strong {
    background: #eef2f7;
    color: #64748b;
}

.flowcrm-go-company-list {
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 9px;
    overflow: auto;
    padding-right: 3px;
}

.flowcrm-go-company-list.is-virtual {
    display: block;
    position: relative;
    gap: 0;
    contain: layout paint;
    overscroll-behavior: contain;
}

.flowcrm-go-virtual-list {
    position: relative;
    min-width: 0;
    width: 100%;
}

.flowcrm-go-virtual-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 3px;
    min-width: 0;
    will-change: transform;
}

.flowcrm-go-virtual-row .flowcrm-go-company {
    height: calc(100% - 9px);
    min-height: 0;
}

.flowcrm-go-list-section {
    min-width: 0;
    display: grid;
    gap: 9px;
}

.flowcrm-go-list-section + .flowcrm-go-list-section {
    margin-top: 5px;
}

.flowcrm-go-case-separator {
    width: 100%;
    margin: 5px 0 2px;
    border: 0;
    border-top: 1px solid #cfdae8;
    opacity: 1;
}

.flowcrm-go-list-section-title {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 4px 0;
    color: #50627a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.flowcrm-go-list-section-title strong {
    min-width: 28px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #d7e4f2;
    border-radius: 999px;
    background: #ffffff;
    color: #24476f;
    font-size: 11px;
    font-weight: 850;
}

.flowcrm-go-list-section.is-delegated .flowcrm-go-list-section-title {
    color: #4f46a5;
}

.flowcrm-go-list-section.is-delegated .flowcrm-go-list-section-title strong {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.flowcrm-go-list-more {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid #cfe0f4;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    color: #174989;
    text-align: left;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.flowcrm-go-list-more strong,
.flowcrm-go-list-more small {
    display: block;
}

.flowcrm-go-list-more strong {
    color: #0f3f7e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.flowcrm-go-list-more small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.flowcrm-go-list-more i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px #cfe0f4;
}

.flowcrm-go-list-more:hover,
.flowcrm-go-list-more:focus-visible {
    border-color: #9bbcf4;
    background: #ffffff;
    outline: none;
}

.flowcrm-go-sidebar-footer {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.flowcrm-go-sidebar-legal {
    min-width: 0;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
    color: rgba(255, 255, 255, .86);
}

.flowcrm-go-sidebar-legal-main {
    min-width: 0;
    display: grid;
    gap: 1px;
    overflow: hidden;
    color: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.22;
}

.flowcrm-go-sidebar-legal-line {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-sidebar-legal .fd-brand-plus {
    position: relative;
    top: -.38em;
    margin-left: 1px;
    font-size: .72em;
    line-height: 0;
}

.flowcrm-go-sidebar-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.flowcrm-go-sidebar-toggle:hover,
.flowcrm-go-sidebar-toggle:focus-visible {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    outline: none;
}

.flowcrm-go-sidebar-dashboard {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.flowcrm-go-sidebar-section-title {
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.flowcrm-go-dashboard-row {
    display: flex;
    gap: 6px;
}

.flowcrm-go-dashboard-badge {
    min-height: 24px;
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.flowcrm-go-dashboard-badge.is-main {
    width: 100%;
    border-color: rgba(255, 255, 255, .9);
    background: #ffffff;
    color: #0b2a5b;
    font-weight: 750;
}

.flowcrm-go-dashboard-badge strong {
    font-weight: 850;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-app {
    --flowcrm-go-sidebar-width: var(--flowcrm-go-sidebar-collapsed-width);
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-sidebar {
    gap: 14px;
    padding: 14px 9px;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-brand {
    justify-content: center;
    gap: 0;
    margin: -14px -10px 0 -9px;
    padding: 0;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-logo-box {
    width: 42px;
    height: 42px;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-brand-text,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-sidebar-dashboard,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-sidebar-legal-main,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button span,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button strong {
    display: none !important;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav {
    gap: 10px;
    justify-items: center;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button:hover,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button:focus-visible,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button.is-active,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button.is-active:hover,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button.is-active:focus-visible {
    width: 52px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button i,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button i.me-2,
body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button.is-active i {
    width: 32px;
    height: 32px;
    margin: 0 !important;
    font-size: 16px;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-sidebar-footer {
    width: 100%;
    align-self: end;
    justify-items: center;
    gap: 0;
    padding-top: 0;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-sidebar-legal {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    padding-top: 10px;
}

body.flowcrm-go-sidebar-collapsed .flowcrm-go-sidebar-toggle {
    margin: 0 auto;
}

.flowcrm-go-app-header.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-width: 0;
    height: var(--go-header-height) !important;
    min-height: var(--go-header-height) !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px !important;
    flex-wrap: nowrap;
    margin: 0;
    padding: 12px 24px;
    border: 0;
    border-bottom: 1px solid var(--fd-border, #e2e8f0);
    border-radius: 0;
    isolation: isolate;
    background: #ffffff;
    box-shadow: none !important;
}

.flowcrm-go-app-header.app-header::before {
    display: none !important;
}

.flowcrm-go-app-header.app-header::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: -1px;
    width: 2px;
    display: block !important;
    background: #ffffff;
    border-bottom: 1px solid var(--fd-border, #e2e8f0);
    pointer-events: none;
    z-index: 0;
}

.flowcrm-go-app-header.app-header > * {
    position: relative;
    z-index: 1;
}

body.darkmode .flowcrm-go-app-header.app-header {
    background: rgba(15, 23, 42, .92);
    border-bottom-color: #243045;
}

.theme-switch {
    width: 46px;
    height: 30px;
    flex: 0 0 auto;
}

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

.theme-slider {
    width: 46px;
    height: 30px;
    display: block;
    position: relative;
    border: 1px solid #dbe6f2;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    cursor: pointer;
}

.theme-icon {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--go-blue);
    font-size: 12px;
    transition: left .16s ease, background .16s ease, color .16s ease;
}

.theme-switch input:checked + .theme-slider .theme-icon {
    left: 19px;
    background: #1f2937;
    color: #f8fafc;
}

body.darkmode .theme-slider,
body.darkmode .header-icon-button,
body.darkmode .notification-button {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .82);
    color: var(--go-muted-strong);
}

.flowcrm-go-header-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    background: #ffffff;
    color: var(--go-navy);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.flowcrm-go-header-link:hover,
.flowcrm-go-header-link:focus-visible {
    border-color: #b9cef0;
    background: #f8fbff;
    color: var(--go-blue-hover);
    outline: none;
}

body.darkmode .flowcrm-go-header-link {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .82);
    color: var(--go-muted-strong);
}

.flowcrm-go-app-header .app-header-search-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, calc(100vw - 32px));
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 50;
}

.flowcrm-go-app-header .app-header-search {
    position: relative;
    width: auto;
    display: inline-flex;
    align-items: center;
}

.flowcrm-go-app-header .app-header-search.is-open .app-header-search-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flowcrm-go-app-header .header-icon-button,
.flowcrm-go-app-header .notification-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.flowcrm-go-app-header .header-user-toggle {
    min-width: 252px !important;
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px !important;
    padding: 4px 8px 4px 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #111827 !important;
    text-align: left !important;
    box-shadow: none !important;
}

.flowcrm-go-app-header .header-user-toggle .flex-grow-1,
.flowcrm-go-app-header .header-user-name,
.flowcrm-go-app-header .header-user-role {
    min-width: 0;
    text-align: left !important;
}

.flowcrm-go-app-header .header-user-photo img,
.flowcrm-go-mobile-actions .header-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    transform: translateY(4px) scale(2.23);
    transform-origin: center 11%;
}

.flowcrm-go-app-header .header-user-photo img.photo-focus-right,
.flowcrm-go-mobile-actions .header-user-photo img.photo-focus-right {
    object-position: 62% 9%;
    transform: translateY(4px) scale(2.05);
    transform-origin: 62% 12%;
}

.flowcrm-go-app-header .header-user-photo img.photo-focus-head,
.flowcrm-go-mobile-actions .header-user-photo img.photo-focus-head {
    object-position: center 8%;
    transform: translateY(4px) scale(2.3);
    transform-origin: center 11%;
}

.flowcrm-go-app-header .header-user-photo:not(.has-image) img,
.flowcrm-go-mobile-actions .header-user-photo:not(.has-image) img {
    display: none;
}

.flowcrm-go-app-header .header-user-photo,
.flowcrm-go-mobile-actions .header-user-photo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background: #f8fafc;
    box-shadow: 0 0 0 1px rgba(203, 213, 225, .85) !important;
}

.flowcrm-go-app-header .header-user-initials,
.flowcrm-go-mobile-actions .header-user-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.flowcrm-go-app-header .header-user-photo.has-image .header-user-initials,
.flowcrm-go-mobile-actions .header-user-photo.has-image .header-user-initials {
    display: none;
}

body.darkmode .flowcrm-go-app-header .header-user-initials,
body.darkmode .flowcrm-go-mobile-actions .header-user-initials {
    color: #e5edf7;
}

.flowcrm-go-company {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 106px;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: start;
    gap: 6px;
    padding: 11px 12px;
    border: 1px solid #d7e4f2;
    border-radius: var(--go-radius);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: var(--go-ink);
    text-align: left;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .035);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.darkmode .flowcrm-go-company,
body.darkmode .flowcrm-go-topbar,
body.darkmode .flowcrm-go-panel,
body.darkmode .flowcrm-go-company-head,
body.darkmode .flowcrm-go-info,
body.darkmode .flowcrm-go-contact-card,
body.darkmode .flowcrm-go-activity,
body.darkmode .flowcrm-go-empty,
body.darkmode .flowcrm-go-form,
body.darkmode .flowcrm-go-subpanel {
    background: var(--go-panel);
    color: var(--go-ink);
}

.flowcrm-go-company:hover {
    border-color: #c4d4e8;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .055);
}

.flowcrm-go-company:focus-visible {
    border-color: #9bbcf4;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10), 0 10px 22px rgba(15, 23, 42, .055);
    outline: none;
}

.flowcrm-go-company.is-active {
    border-color: #c9daf0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: inset 3px 0 0 #2563eb, 0 8px 20px rgba(15, 23, 42, .05);
}

.flowcrm-go-company.is-case-item {
    min-height: 101px;
    gap: 5px;
    padding: 11px 12px 10px;
}

.flowcrm-go-company.is-company-item {
    min-height: 118px;
    grid-template-rows: minmax(18px, auto) minmax(16px, auto) minmax(16px, auto) minmax(22px, auto);
    gap: 7px;
    padding: 12px 12px 11px;
}

.flowcrm-go-company.is-participant-item {
    min-height: 116px;
    grid-template-rows: minmax(18px, auto) minmax(17px, auto) minmax(17px, auto) minmax(24px, auto);
    gap: 6px;
    padding: 12px 12px 11px;
}

.flowcrm-go-company.is-delegated-case {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 74%);
    box-shadow: 0 7px 18px rgba(67, 56, 202, .045);
}

.flowcrm-go-company.is-delegated-case:hover {
    border-color: #a5b4fc;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(67, 56, 202, .07);
}

.flowcrm-go-company.is-delegated-case:focus-visible {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12), 0 10px 22px rgba(67, 56, 202, .07);
}

.flowcrm-go-company.is-delegated-case.is-active {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: inset 3px 0 0 #7c3aed, 0 8px 20px rgba(67, 56, 202, .065);
}

.flowcrm-go-company.is-case-item.is-phase-abbruch {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fffafa 0%, #fff5f5 100%);
}

.flowcrm-go-company.is-case-item.is-phase-ubernahme {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #fbfdff 0%, #eff6ff 100%);
}

.flowcrm-go-company.is-case-item.is-phase-zeitablauf {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #fbfdff 0%, #eff6ff 100%);
}

.flowcrm-go-company.is-case-item.is-closed {
    opacity: .86;
    border-style: dashed;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.flowcrm-go-company.is-case-item.is-closed.is-phase-abbruch {
    border-color: #fca5a5;
    background: linear-gradient(180deg, #fff7f7 0%, #fee2e2 100%);
}

.flowcrm-go-company.is-case-item.is-closed.is-phase-ubernahme {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f7fbff 0%, #dbeafe 100%);
}

.flowcrm-go-company.is-case-item.is-closed.is-phase-zeitablauf {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f7fbff 0%, #dbeafe 100%);
}

.flowcrm-go-company.is-case-item.is-phase-abbruch.is-active,
.flowcrm-go-company.is-case-item.is-phase-abbruch:hover,
.flowcrm-go-company.is-case-item.is-phase-abbruch:focus-visible {
    border-color: #fca5a5;
    background: linear-gradient(180deg, #fff1f2 0%, #fecaca 100%);
    box-shadow: inset 3px 0 0 #ef4444, 0 8px 20px rgba(239, 68, 68, .10);
}

.flowcrm-go-company.is-case-item.is-phase-ubernahme.is-active,
.flowcrm-go-company.is-case-item.is-phase-ubernahme:hover,
.flowcrm-go-company.is-case-item.is-phase-ubernahme:focus-visible {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: inset 3px 0 0 #1d4ed8, 0 8px 20px rgba(29, 78, 216, .10);
}

.flowcrm-go-company.is-case-item.is-phase-zeitablauf.is-active,
.flowcrm-go-company.is-case-item.is-phase-zeitablauf:hover,
.flowcrm-go-company.is-case-item.is-phase-zeitablauf:focus-visible {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: inset 3px 0 0 #1d4ed8, 0 8px 20px rgba(29, 78, 216, .10);
}

.flowcrm-go-company-title {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.18;
}

.flowcrm-go-company-title.has-project-pill {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.flowcrm-go-company.is-case-item .flowcrm-go-company-title {
    align-items: start;
    font-size: 14px;
    line-height: 1.26;
}

.flowcrm-go-company.is-participant-item .flowcrm-go-company-title {
    font-size: 14px;
    line-height: 1.22;
}

.flowcrm-go-company-title span:first-child,
.flowcrm-go-title-text {
    min-width: 0;
    max-width: 100%;
    display: block;
    line-height: inherit;
    padding-bottom: 1px;
}

.flowcrm-go-company-title span:first-child,
.flowcrm-go-title-text,
.flowcrm-go-company-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-search-hit {
    display: inline;
    padding: 0 2px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font: inherit;
    line-height: inherit;
}

.flowcrm-go-company.is-case-item .flowcrm-go-company-title span:first-child {
    padding-right: 3px;
}

.flowcrm-go-company.is-company-item .flowcrm-go-company-title span:first-child,
.flowcrm-go-company.is-company-item .flowcrm-go-company-address,
.flowcrm-go-company.is-company-item .flowcrm-go-company-meta {
    min-width: 0;
    max-width: 100%;
}

.flowcrm-go-company-meta,
.flowcrm-go-company-address {
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.42;
    padding-bottom: 1px;
}

.flowcrm-go-company.is-case-item .flowcrm-go-company-address {
    color: #48627f;
    font-size: 12px;
    font-weight: 650;
}

.flowcrm-go-company-meta {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.flowcrm-go-company.is-company-item .flowcrm-go-company-address,
.flowcrm-go-company.is-company-item .flowcrm-go-company-meta {
    min-height: 16px;
    line-height: 1.3;
}

.flowcrm-go-company.is-case-item .flowcrm-go-company-meta {
    color: #60738c;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.42;
}

.flowcrm-go-company.is-participant-item .flowcrm-go-company-address,
.flowcrm-go-company.is-participant-item .flowcrm-go-company-meta {
    min-height: 17px;
    display: block;
    line-height: 1.35;
}

.flowcrm-go-company .flowcrm-go-pill-row,
.flowcrm-go-company .flowcrm-pill-row {
    min-height: 22px;
    align-self: end;
}

.flowcrm-go-company.is-company-item .flowcrm-go-pill-row,
.flowcrm-go-company.is-company-item .flowcrm-pill-row {
    align-self: start;
    margin-top: 0;
}

.flowcrm-go-company.is-case-item .flowcrm-go-pill-row,
.flowcrm-go-company.is-case-item .flowcrm-pill-row {
    min-height: 20px;
    gap: 4px;
    margin-top: 0;
}

.flowcrm-go-company.is-participant-item .flowcrm-go-pill-row,
.flowcrm-go-company.is-participant-item .flowcrm-pill-row {
    min-height: 22px;
    align-self: start;
    gap: 4px;
    margin-top: 1px;
}

.flowcrm-go-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 3px;
    border-radius: 999px;
    background: var(--go-green);
    margin-left: auto;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.flowcrm-go-dot.is-warn {
    background: var(--go-amber);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, .14);
}

.flowcrm-go-dot.is-stop {
    background: var(--go-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.flowcrm-go-dot.is-ok {
    background: var(--go-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.flowcrm-go-dot.is-neutral {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, .13);
}

.flowcrm-go-dot.is-done {
    background: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .13);
}

.flowcrm-go-main {
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    overflow: auto;
}

.flowcrm-go-topbar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 14px clamp(336px, calc(35% + 16px), 860px) 14px 16px;
    border: 1px solid var(--go-line);
    border-radius: var(--go-radius);
    background: var(--go-panel);
    box-shadow: var(--go-shadow);
    overflow: hidden;
}

.flowcrm-go-commandbar {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.flowcrm-go-sync-status {
    height: 42px;
    min-height: 42px;
    max-width: 210px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1px 12px 0;
    border: 1px solid #dbe6f2;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.flowcrm-go-sync-status i {
    font-size: 15px;
}

.flowcrm-go-sync-status span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    padding-bottom: 1px;
}

.flowcrm-go-sync-copy {
    display: grid;
    gap: 1px;
    line-height: 1.05;
}

.flowcrm-go-sync-copy strong,
.flowcrm-go-sync-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-sync-copy strong {
    font-size: 12px;
    font-weight: 800;
}

.flowcrm-go-sync-copy small {
    font-size: 10px;
    font-weight: 650;
    opacity: .78;
}

.flowcrm-go-sync-status.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}

.flowcrm-go-sync-status.is-warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.flowcrm-go-sync-status.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.flowcrm-go-sync-status.is-pending,
.flowcrm-go-sync-status.is-muted {
    border-color: #dbe6f2;
    background: #f8fafc;
    color: var(--go-muted-strong);
}

.flowcrm-go-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dbe6f2;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted-strong);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.flowcrm-go-icon-btn:hover,
.flowcrm-go-icon-btn:focus-visible {
    border-color: #2563eb;
    background: var(--go-hover);
    color: var(--go-blue-hover);
    outline: none;
}

.flowcrm-go-icon-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
}

#flowCrmGoRefreshBtn.flowcrm-go-icon-btn {
    --flowcrm-go-refresh-size: 42px;
    width: var(--flowcrm-go-refresh-size) !important;
    height: var(--flowcrm-go-refresh-size) !important;
    min-width: var(--flowcrm-go-refresh-size) !important;
    min-height: var(--flowcrm-go-refresh-size) !important;
    max-width: var(--flowcrm-go-refresh-size) !important;
    max-height: var(--flowcrm-go-refresh-size) !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 var(--flowcrm-go-refresh-size);
    padding: 0 !important;
}

.flowcrm-go-icon-btn.is-busy i,
.flowcrm-go-action.is-busy i,
.flowcrm-go-mini-btn.is-busy i,
#userStartModal .btn.is-busy .flowcrm-go-busy-icon {
    display: inline-block;
    animation: flowcrm-go-spin .8s linear infinite;
    transform-origin: center;
}

#userStartModal .btn.is-busy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flowcrm-go-busy-label {
    display: inline-block;
    line-height: 1.1;
}

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

.flowcrm-go-topbar h1 {
    margin: 2px 0 0;
    color: var(--go-ink);
    font-size: 24px;
    font-weight: 850;
    line-height: 1.1;
}

.flowcrm-go-stats {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 278px;
    display: grid;
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 8px;
}

.flowcrm-go-stats div {
    position: relative;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 10px 6px 13px;
    border: 1px solid #dbe4ee !important;
    border-radius: var(--go-radius);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .92),
        0 8px 18px rgba(15, 23, 42, .045) !important;
    outline: 0 !important;
    overflow: hidden;
}

.flowcrm-go-stats div::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 3px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .58);
}

.flowcrm-go-stats div:nth-child(2)::before {
    background: rgba(20, 184, 166, .52);
}

.flowcrm-go-stats div:nth-child(3)::before {
    background: rgba(99, 102, 241, .50);
}

.flowcrm-go-stats span {
    display: block;
    color: var(--go-ink);
    font-size: 18px;
    font-weight: 850;
    line-height: .98;
}

.flowcrm-go-stats small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--go-muted);
    font-size: 11px;
    font-weight: 680;
    line-height: 1.05;
}

.flowcrm-go-detail {
    min-width: 0;
    min-height: 0;
}

.flowcrm-go-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 16px;
    align-items: start;
}

.flowcrm-go-panel {
    --go-case-section-x: 14px;
    min-width: 0;
    border: 1px solid var(--go-line);
    border-radius: var(--go-radius);
    background: var(--go-panel);
    box-shadow: var(--go-shadow);
    overflow: hidden;
}

.flowcrm-go-case-panel {
    overflow: visible;
}

.flowcrm-go-company-head {
    --go-record-head-accent: #2563eb;
    --go-record-head-border: #bfd7ff;
    --go-record-head-bg: #eef5ff;
    --go-record-head-dark-border: rgba(96, 165, 250, .30);
    --go-record-head-dark-bg: rgba(37, 99, 235, .13);
    padding: 17px;
    border-bottom: 1px solid var(--go-record-head-border);
    border-radius: calc(var(--go-radius) - 1px) calc(var(--go-radius) - 1px) 0 0;
    background: linear-gradient(180deg, var(--go-record-head-bg) 0%, rgba(255, 255, 255, .96) 66%, #ffffff 100%);
    box-shadow: none;
}

.flowcrm-go-company-head.is-company-head {
    --go-record-head-accent: #99f6e4;
    --go-record-head-border: #ccfbf1;
    --go-record-head-bg: #f0fdfa;
    --go-record-head-dark-border: rgba(45, 212, 191, .30);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head {
    --go-record-head-accent: #bbf7d0;
    --go-record-head-border: #dbe4ee;
    --go-record-head-bg: #f3fff8;
    --go-record-head-dark-border: rgba(74, 222, 128, .30);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-erstkontakt {
    --go-record-head-accent: #cbd5e1;
    --go-record-head-border: #e2e8f0;
    --go-record-head-bg: #f8fafc;
    --go-record-head-dark-border: rgba(148, 163, 184, .30);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-bewerbung {
    --go-record-head-accent: #c084fc;
    --go-record-head-border: #e9d5ff;
    --go-record-head-bg: #fbf7ff;
    --go-record-head-dark-border: rgba(192, 132, 252, .34);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-vorstellungsgesprach {
    --go-record-head-accent: #67e8f9;
    --go-record-head-border: #a5f3fc;
    --go-record-head-bg: #f0fdff;
    --go-record-head-dark-border: rgba(34, 211, 238, .32);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-arbeitserprobung {
    --go-record-head-accent: #fbbf24;
    --go-record-head-border: #fde68a;
    --go-record-head-bg: #fffdf2;
    --go-record-head-dark-border: rgba(251, 191, 36, .34);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-uberlassung {
    --go-record-head-accent: #86efac;
    --go-record-head-border: #bbf7d0;
    --go-record-head-bg: #f3fff8;
    --go-record-head-dark-border: rgba(74, 222, 128, .32);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-abbruch {
    --go-record-head-accent: #fca5a5;
    --go-record-head-border: #fecaca;
    --go-record-head-bg: #fff7f7;
    --go-record-head-dark-border: rgba(248, 113, 113, .34);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-ubernahme {
    --go-record-head-accent: #1d4ed8;
    --go-record-head-border: #bfdbfe;
    --go-record-head-bg: #f4f8ff;
    --go-record-head-dark-border: rgba(96, 165, 250, .36);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-case-head.is-phase-zeitablauf {
    --go-record-head-accent: #64748b;
    --go-record-head-border: #cbd5e1;
    --go-record-head-bg: #f8fafc;
    --go-record-head-dark-border: rgba(148, 163, 184, .34);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-participant-head {
    --go-record-head-accent: #c4b5fd;
    --go-record-head-border: #ddd6fe;
    --go-record-head-bg: #f8f5ff;
    --go-record-head-dark-border: rgba(167, 139, 250, .32);
    --go-record-head-dark-bg: rgba(15, 23, 42, .74);
}

.flowcrm-go-company-head.is-company-head,
.flowcrm-go-company-head.is-case-head,
.flowcrm-go-company-head.is-participant-head {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--go-record-head-border);
    border-radius: calc(var(--go-radius) - 1px) calc(var(--go-radius) - 1px) 0 0;
    background: linear-gradient(180deg, var(--go-record-head-bg) 0%, rgba(255, 255, 255, .96) 66%, #ffffff 100%);
    box-shadow: none;
}

.flowcrm-go-company-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.flowcrm-go-company-headline > div {
    flex: 1 1 auto;
    min-width: 0;
}

.flowcrm-go-company-head h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--go-ink);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.12;
}

.flowcrm-go-case-title,
.flowcrm-go-record-title {
    width: auto;
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flowcrm-go-case-title > span:first-child,
.flowcrm-go-record-title > span:first-child {
    flex: 0 1 auto;
    min-width: 0;
    display: block;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-case-title .flowcrm-go-project-pill,
.flowcrm-go-record-title .flowcrm-go-project-pill {
    flex: 0 0 auto;
}

.flowcrm-go-subline {
    margin-top: 7px;
    color: var(--go-muted);
    font-size: 13px;
    font-weight: 650;
}

.flowcrm-go-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #cfe0d8;
    border-radius: 999px;
    background: #ecf7f1;
    color: var(--go-green);
    font-size: 12px;
    font-weight: 720;
    white-space: nowrap;
}

.flowcrm-go-head-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.flowcrm-go-badge.is-delegated {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.flowcrm-go-badge.is-warn {
    border-color: #ecd7aa;
    background: #fff7e7;
    color: var(--go-amber);
}

.flowcrm-go-badge.is-stop {
    border-color: #efc6c6;
    background: #fff0f0;
    color: var(--go-red);
}

.flowcrm-go-badge.is-done {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.notification-badge[hidden] {
    display: none !important;
}

.notification-badge.is-urgent {
    background: var(--go-red) !important;
    color: #ffffff !important;
}

.flowcrm-go-notification-dialog {
    width: min(620px, calc(100vw - 28px));
}

.flowcrm-go-notification-modal {
    border: 1px solid var(--go-line);
    border-radius: 12px;
    background: var(--go-panel);
    color: var(--go-ink);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .22);
}

.flowcrm-go-decision-modal {
    z-index: 3060;
}

.flowcrm-go-decision-modal .modal-dialog {
    max-width: min(420px, calc(100vw - 32px));
}

.flowcrm-go-decision-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--go-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--go-ink);
    box-shadow: 0 18px 52px rgba(15, 23, 42, .22);
}

.flowcrm-go-decision-modal .modal-header {
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4edf6;
}

.flowcrm-go-decision-title {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.flowcrm-go-decision-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #cfe1f6;
    border-radius: 8px;
    background: #f3f8ff;
    color: var(--go-blue);
    font-size: 17px;
}

.flowcrm-go-decision-icon.is-danger {
    border-color: #f3caca;
    background: #fff4f4;
    color: var(--go-red);
}

.flowcrm-go-decision-modal .modal-title {
    margin: 0;
    color: var(--go-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.flowcrm-go-decision-title p {
    margin: 4px 0 0;
    color: var(--go-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.32;
}

.flowcrm-go-decision-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 0;
}

.flowcrm-go-decision-modal .btn {
    min-width: 118px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
}

.flowcrm-go-decision-modal .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .16);
}

.flowcrm-go-decision-modal .btn-danger:hover,
.flowcrm-go-decision-modal .btn-danger:focus-visible {
    background: #b91c1c;
    border-color: #b91c1c;
}

.flowcrm-go-upload-name-body {
    display: grid;
    gap: 9px;
    padding: 16px 18px 4px;
}

.flowcrm-go-upload-name-body label {
    margin: 0;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.flowcrm-go-upload-name-body .form-control {
    min-height: 44px;
    border: 1px solid #cfe1f6;
    border-radius: 8px;
    color: var(--go-ink);
    font-size: 15px;
    font-weight: 650;
}

.flowcrm-go-upload-name-body .form-control:focus {
    border-color: var(--go-blue);
    box-shadow: var(--go-focus);
}

.flowcrm-go-upload-name-hint {
    color: var(--go-muted);
    font-size: 13px;
    font-weight: 650;
}

.flowcrm-go-upload-name-preview {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin-top: 2px;
    padding: 11px 12px;
    border: 1px solid #dbe8f7;
    border-radius: 8px;
    background: #f8fbff;
}

.flowcrm-go-upload-name-preview span {
    color: var(--go-muted-strong);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.flowcrm-go-upload-name-preview strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--go-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

body.darkmode .flowcrm-go-decision-modal .modal-content {
    border-color: var(--go-line);
    background: var(--go-panel);
    color: var(--go-ink);
}

body.darkmode .flowcrm-go-decision-modal .modal-header {
    border-color: var(--go-line);
}

body.darkmode .flowcrm-go-decision-modal .modal-title {
    color: var(--go-ink);
}

body.darkmode .flowcrm-go-decision-title p {
    color: #a8b8cc;
}

body.darkmode .flowcrm-go-upload-name-body .form-control,
body.darkmode .flowcrm-go-upload-name-preview {
    border-color: var(--go-line);
    background: #101827;
    color: var(--go-ink);
}

body.darkmode .flowcrm-go-decision-icon {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(37, 99, 235, .12);
    color: #93c5fd;
}

body.darkmode .flowcrm-go-decision-icon.is-danger {
    border-color: rgba(248, 113, 113, .34);
    background: rgba(248, 113, 113, .12);
    color: #fca5a5;
}

.flowcrm-go-notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.flowcrm-go-notification-list {
    display: grid;
    gap: 8px;
}

.flowcrm-go-notification-item {
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--go-line);
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-ink);
    text-align: left;
    box-shadow: var(--go-shadow-soft);
}

.flowcrm-go-notification-item:hover,
.flowcrm-go-notification-item:focus-visible {
    border-color: #b7cff5;
    background: #f8fbff;
    outline: none;
}

.flowcrm-go-notification-item.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.flowcrm-go-notification-item.is-warn {
    border-color: #fed7aa;
    background: #fffaf3;
}

.flowcrm-go-notification-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--go-blue);
}

.flowcrm-go-notification-item.is-danger .flowcrm-go-notification-icon {
    background: #fee2e2;
    color: var(--go-red);
}

.flowcrm-go-notification-item.is-warn .flowcrm-go-notification-icon {
    background: #ffedd5;
    color: var(--go-amber);
}

.flowcrm-go-notification-content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.flowcrm-go-notification-title {
    min-width: 0;
    overflow: hidden;
    color: var(--go-ink);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-notification-body {
    min-width: 0;
    overflow: hidden;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-notification-severity {
    align-self: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--go-blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.flowcrm-go-notification-item.is-danger .flowcrm-go-notification-severity {
    background: #fee2e2;
    color: var(--go-red);
}

.flowcrm-go-notification-item.is-warn .flowcrm-go-notification-severity {
    background: #ffedd5;
    color: #92400e;
}

body.darkmode .flowcrm-go-notification-item {
    background: rgba(15, 23, 42, .72);
    border-color: var(--go-line);
}

body.darkmode .flowcrm-go-notification-item.is-danger {
    background: rgba(127, 29, 29, .28);
}

body.darkmode .flowcrm-go-notification-item.is-warn {
    background: rgba(120, 53, 15, .22);
}

.flowcrm-pill-row,
.flowcrm-go-pill-row,
.flowcrm-go-head-pills,
.flowcrm-go-info-pills {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.flowcrm-pill-row.is-list,
.flowcrm-go-pill-row.is-list {
    margin-top: 1px;
}

.flowcrm-go-head-pills {
    margin-top: 8px;
}

.flowcrm-go-info-pills {
    min-height: 22px;
}

.flowcrm-go-info-pills.is-case-kpb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 0;
}

.flowcrm-pill,
.flowcrm-go-project-pill,
.flowcrm-go-phase-pill {
    min-width: 0;
    height: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    border-radius: 999px;
    font-family: var(--fd-font-main, Inter, "Segoe UI", Arial, sans-serif);
    font-size: 10.5px;
    font-weight: 610;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.flowcrm-pill {
    min-width: 54px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.flowcrm-pill.is-tn {
    border-color: #cfe1ff;
    background: #f1f6ff;
    color: #1e4f9a;
}

.flowcrm-pill.is-bt {
    border-color: #d5e7dc;
    background: #f3faf6;
    color: #256044;
}

.flowcrm-pill.is-ul {
    border-color: #eadcc8;
    background: #fbf7ef;
    color: #745126;
}

.flowcrm-pill.is-delegation {
    min-width: 58px;
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.flowcrm-pill.is-muted {
    min-width: 0;
    border-color: var(--go-line);
    background: #f8fafc;
    color: var(--go-muted);
}

.flowcrm-pill-label,
.flowcrm-pill-code {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
    overflow: visible;
    line-height: 1;
    transform: none;
    white-space: nowrap;
}

.flowcrm-pill-code {
    text-align: right;
    font-weight: 680;
}

body.darkmode .flowcrm-pill {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(37, 99, 235, .16);
    color: #bfdbfe;
}

body.darkmode .flowcrm-pill.is-bt {
    border-color: rgba(74, 222, 128, .24);
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
}

body.darkmode .flowcrm-pill.is-ul {
    border-color: rgba(251, 191, 36, .26);
    background: rgba(217, 119, 6, .13);
    color: #fde68a;
}

body.darkmode .flowcrm-go-list-section-title {
    color: #a9bbd2;
}

body.darkmode .flowcrm-go-case-separator {
    border-top-color: rgba(148, 163, 184, .30);
}

body.darkmode .flowcrm-go-list-section-title strong {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(15, 23, 42, .42);
    color: #dbeafe;
}

body.darkmode .flowcrm-go-case-scope-chip {
    border-color: rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, rgba(30, 41, 59, .82) 0%, rgba(15, 23, 42, .72) 100%);
    color: #b6c7dc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.darkmode .flowcrm-go-case-scope-chip strong {
    background: rgba(37, 99, 235, .18);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-case-scope-chip.is-active {
    border-color: rgba(96, 165, 250, .44);
    background: linear-gradient(180deg, rgba(30, 64, 175, .34) 0%, rgba(30, 41, 59, .82) 100%);
    color: #dbeafe;
}

body.darkmode .flowcrm-go-case-scope-chip[data-go-case-scope="delegated"].is-active {
    border-color: rgba(129, 140, 248, .44);
    background: linear-gradient(180deg, rgba(67, 56, 202, .30) 0%, rgba(30, 41, 59, .82) 100%);
    color: #e0e7ff;
}

body.darkmode .flowcrm-go-case-scope-chip[data-go-case-scope="delegated"] strong {
    background: rgba(99, 102, 241, .20);
    color: #c7d2fe;
}

body.darkmode .flowcrm-go-case-scope-chip.is-disabled,
body.darkmode .flowcrm-go-case-scope-chip:disabled {
    opacity: .42;
    filter: grayscale(.45);
}

body.darkmode .flowcrm-go-case-scope-chip.is-disabled strong,
body.darkmode .flowcrm-go-case-scope-chip:disabled strong {
    background: rgba(100, 116, 139, .16);
    color: #94a3b8;
}

body.darkmode .flowcrm-go-list-section.is-delegated .flowcrm-go-list-section-title {
    color: #c4b5fd;
}

body.darkmode .flowcrm-go-list-section.is-delegated .flowcrm-go-list-section-title strong,
body.darkmode .flowcrm-go-badge.is-delegated,
body.darkmode .flowcrm-pill.is-delegation {
    border-color: rgba(167, 139, 250, .35);
    background: rgba(99, 102, 241, .18);
    color: #ddd6fe;
}

body.darkmode .flowcrm-go-list-more {
    border-color: rgba(96, 165, 250, .28);
    background: linear-gradient(180deg, rgba(30, 41, 59, .9) 0%, rgba(15, 23, 42, .95) 100%);
    color: #dbeafe;
    box-shadow: 0 12px 26px rgba(2, 6, 23, .26);
}

body.darkmode .flowcrm-go-list-more strong {
    color: #e5edf7;
}

body.darkmode .flowcrm-go-list-more small {
    color: #a9bbd2;
}

body.darkmode .flowcrm-go-list-more i {
    background: rgba(15, 23, 42, .7);
    color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .28);
}

body.darkmode .flowcrm-go-list-more:hover,
body.darkmode .flowcrm-go-list-more:focus-visible {
    border-color: rgba(147, 197, 253, .44);
    background: rgba(15, 23, 42, .98);
}

body.darkmode .flowcrm-go-company.is-delegated-case {
    border-color: rgba(167, 139, 250, .28);
    background: linear-gradient(180deg, rgba(30, 27, 75, .72) 0%, rgba(15, 23, 42, .96) 76%);
}

body.darkmode .flowcrm-go-company.is-active {
    border-color: rgba(96, 165, 250, .34);
    background: linear-gradient(180deg, rgba(15, 23, 42, .98) 0%, rgba(17, 24, 39, .98) 100%);
    box-shadow: inset 3px 0 0 #60a5fa, 0 14px 30px rgba(2, 6, 23, .24);
}

body.darkmode .flowcrm-go-company:hover {
    border-color: rgba(148, 163, 184, .42);
    background: rgba(15, 23, 42, .98);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .22);
}

body.darkmode .flowcrm-go-company:focus-visible {
    border-color: rgba(147, 197, 253, .52);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .16), 0 14px 30px rgba(2, 6, 23, .24);
}

body.darkmode .flowcrm-go-company.is-delegated-case:hover {
    border-color: rgba(196, 181, 253, .42);
    background: rgba(15, 23, 42, .98);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .26);
}

body.darkmode .flowcrm-go-company.is-delegated-case:focus-visible {
    border-color: rgba(196, 181, 253, .48);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .16), 0 14px 30px rgba(2, 6, 23, .28);
}

body.darkmode .flowcrm-go-company.is-delegated-case.is-active {
    border-color: rgba(196, 181, 253, .42);
    background: linear-gradient(180deg, rgba(30, 27, 75, .82) 0%, rgba(15, 23, 42, .98) 76%);
    box-shadow: inset 3px 0 0 #a78bfa, 0 14px 30px rgba(2, 6, 23, .28);
}

body.darkmode .flowcrm-go-company.is-case-item.is-phase-abbruch {
    border-color: rgba(248, 113, 113, .38);
    background: linear-gradient(180deg, rgba(69, 10, 10, .34) 0%, rgba(15, 23, 42, .96) 78%);
}

body.darkmode .flowcrm-go-company.is-case-item.is-phase-ubernahme {
    border-color: rgba(96, 165, 250, .38);
    background: linear-gradient(180deg, rgba(30, 64, 175, .26) 0%, rgba(15, 23, 42, .96) 78%);
}

body.darkmode .flowcrm-go-company.is-case-item.is-phase-zeitablauf {
    border-color: rgba(96, 165, 250, .38);
    background: linear-gradient(180deg, rgba(30, 64, 175, .26) 0%, rgba(15, 23, 42, .96) 78%);
}

body.darkmode .flowcrm-go-company.is-case-item.is-closed {
    opacity: .88;
}

body.darkmode .flowcrm-go-company.is-case-item.is-phase-abbruch.is-active,
body.darkmode .flowcrm-go-company.is-case-item.is-phase-abbruch:hover,
body.darkmode .flowcrm-go-company.is-case-item.is-phase-abbruch:focus-visible {
    border-color: rgba(248, 113, 113, .52);
    background: linear-gradient(180deg, rgba(127, 29, 29, .42) 0%, rgba(15, 23, 42, .98) 82%);
    box-shadow: inset 3px 0 0 #f87171, 0 14px 30px rgba(2, 6, 23, .26);
}

body.darkmode .flowcrm-go-company.is-case-item.is-phase-ubernahme.is-active,
body.darkmode .flowcrm-go-company.is-case-item.is-phase-ubernahme:hover,
body.darkmode .flowcrm-go-company.is-case-item.is-phase-ubernahme:focus-visible {
    border-color: rgba(96, 165, 250, .52);
    background: linear-gradient(180deg, rgba(30, 64, 175, .36) 0%, rgba(15, 23, 42, .98) 82%);
    box-shadow: inset 3px 0 0 #60a5fa, 0 14px 30px rgba(2, 6, 23, .26);
}

body.darkmode .flowcrm-go-company.is-case-item.is-phase-zeitablauf.is-active,
body.darkmode .flowcrm-go-company.is-case-item.is-phase-zeitablauf:hover,
body.darkmode .flowcrm-go-company.is-case-item.is-phase-zeitablauf:focus-visible {
    border-color: rgba(96, 165, 250, .52);
    background: linear-gradient(180deg, rgba(30, 64, 175, .36) 0%, rgba(15, 23, 42, .98) 82%);
    box-shadow: inset 3px 0 0 #60a5fa, 0 14px 30px rgba(2, 6, 23, .26);
}

.flowcrm-go-info .flowcrm-pill,
.flowcrm-go-info .flowcrm-go-project-pill {
    display: inline-flex !important;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
}

.flowcrm-go-info .flowcrm-pill-label,
.flowcrm-go-info .flowcrm-pill-code {
    display: inline-flex !important;
    align-items: center;
    width: auto;
    overflow: visible;
    white-space: nowrap;
}

.flowcrm-go-info-pills.is-case-kpb .flowcrm-pill,
.flowcrm-go-info-pills.is-case-kpb .flowcrm-go-project-pill {
    min-width: 52px;
    min-height: 22px;
    height: 22px;
    padding: 0 7px;
    font-weight: 610;
}

.flowcrm-go-project-pill {
    min-width: 36px;
    height: 22px;
    min-height: 22px;
    padding: 0 7px;
    border: 0;
    background: #0d6efd;
    color: #ffffff;
    font-family: var(--fd-font-main, Inter, "Segoe UI", Arial, sans-serif);
    font-stretch: normal;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.flowcrm-go-project-pill.is-ftr {
    background: #0d6efd;
    color: #ffffff;
}

.flowcrm-go-project-pill.is-m4m {
    border: 1px solid #dc2626;
    background: #dc2626;
    color: #ffffff;
}

body.darkmode .flowcrm-go-project-pill {
    border-color: transparent;
    background: #0d6efd;
    color: #ffffff;
}

body.darkmode .flowcrm-go-project-pill.is-m4m {
    border-color: #f87171;
    background: #dc2626;
    color: #ffffff;
}

.flowcrm-go-phase-pill {
    min-width: 0;
    border: 1px solid #cfe0d8;
    background: #ecf7f1;
    color: var(--go-green);
    font-weight: 650;
}

.flowcrm-go-phase-pill.is-phase-erstkontakt {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.flowcrm-go-phase-pill.is-phase-bewerbung {
    border-color: #e9d5ff;
    background: #faf5ff;
    color: #6d28d9;
}

.flowcrm-go-phase-pill.is-phase-vorstellungsgesprach {
    border-color: #a5f3fc;
    background: #ecfeff;
    color: #0e7490;
}

.flowcrm-go-phase-pill.is-phase-arbeitserprobung {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.flowcrm-go-phase-pill.is-phase-uberlassung {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}

.flowcrm-go-phase-pill.is-phase-abbruch {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.flowcrm-go-phase-pill.is-phase-zeitablauf {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}

.flowcrm-go-phase-pill.is-phase-ubernahme {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}

.flowcrm-go-phase-pill.is-phase-absage {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.flowcrm-go-phase-pill.is-delegated {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.flowcrm-go-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 9px;
    margin-top: 15px;
}

.flowcrm-go-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #dbe6f2;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted-strong);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.flowcrm-go-action:hover,
.flowcrm-go-action:focus-visible {
    border-color: #2563eb;
    background: var(--go-hover);
    color: var(--go-blue-hover);
    outline: none;
}

.flowcrm-go-action.is-primary {
    border-color: #1f5fe8;
    background: linear-gradient(180deg, #2f6df1 0%, #1f5fe8 100%);
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .18);
}

.flowcrm-go-action.is-primary:hover,
.flowcrm-go-action.is-primary:focus-visible {
    border-color: var(--go-blue-hover);
    background: linear-gradient(180deg, var(--go-blue) 0%, var(--go-blue-hover) 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
}

.flowcrm-go-action.is-danger {
    border-color: #efc6c6;
    background: #fff8f8;
    color: var(--go-red);
}

.flowcrm-go-action.is-danger:hover,
.flowcrm-go-action.is-danger:focus-visible {
    border-color: #d89b9b;
    background: #fff0f0;
    color: var(--go-red);
}

.flowcrm-go-action:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.flowcrm-go-action.is-busy {
    opacity: .9;
}

.flowcrm-go-action.is-busy span {
    font-weight: 850;
}

.flowcrm-go-action.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

.flowcrm-go-field-action {
    align-self: end;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

.flowcrm-go-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.flowcrm-go-profile-overview {
    display: grid;
    gap: 10px;
    margin: 14px;
    padding: 12px;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 74%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .07);
}

.flowcrm-go-profile-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.flowcrm-go-profile-overview-head > div {
    display: grid;
    gap: 2px;
}

.flowcrm-go-profile-overview-head span {
    color: var(--go-muted);
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.flowcrm-go-profile-overview-head strong {
    color: var(--go-ink);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.1;
}

.flowcrm-go-profile-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.flowcrm-go-profile-card {
    min-width: 0;
    min-height: 82px;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 10px 11px;
    border: 1px solid #d9e4ef;
    border-top: 3px solid #94a3b8;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.flowcrm-go-profile-card.is-primary {
    border-color: #bfdbfe;
    border-top-color: #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
}

.flowcrm-go-profile-card.is-accent {
    border-color: #bfdfca;
    border-top-color: #16a34a;
    background: linear-gradient(180deg, #ffffff 0%, #f3faf6 100%);
}

.flowcrm-go-profile-card label {
    margin: 0;
    color: var(--go-muted);
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.flowcrm-go-profile-card strong {
    min-width: 0;
    overflow: hidden;
    color: var(--go-ink);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-profile-card span,
.flowcrm-go-profile-card .flowcrm-go-info-pills {
    min-width: 0;
    overflow: hidden;
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-profile-card .flowcrm-go-info-pills {
    display: flex;
    margin-top: 0;
    overflow: visible;
}

.flowcrm-go-profile-editor {
    gap: 9px;
    padding: 14px;
}

.flowcrm-go-profile-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe6f2;
    border-radius: 10px;
    background: #ffffff;
}

.flowcrm-go-profile-section.is-core {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 72%);
}

.flowcrm-go-profile-section > summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
}

.flowcrm-go-profile-section > summary::-webkit-details-marker {
    display: none;
}

.flowcrm-go-profile-section > summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .18);
    outline-offset: -3px;
}

.flowcrm-go-profile-section-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dbe8f5;
    border-radius: 9px;
    background: #eef6ff;
    color: var(--go-blue);
    font-size: 17px;
}

.flowcrm-go-profile-section > summary span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.flowcrm-go-profile-section > summary strong {
    overflow: hidden;
    color: var(--go-ink);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-profile-section > summary small {
    overflow: hidden;
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-profile-section > summary > .bi-chevron-down {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #45637f;
    font-size: 13px;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.flowcrm-go-profile-section[open] > summary > .bi-chevron-down {
    transform: rotate(180deg);
}

.flowcrm-go-profile-section > summary:hover > .bi-chevron-down,
.flowcrm-go-profile-section > summary:focus-visible > .bi-chevron-down {
    background: #eef6ff;
    color: var(--go-blue);
}

.flowcrm-go-profile-section-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.flowcrm-go-profile-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.flowcrm-go-profile-section-grid.is-readonly {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flowcrm-go-profile-section-grid.is-family-kpb-row {
    grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.28fr);
    align-items: start;
}

.flowcrm-go-profile-section-grid input[readonly] {
    border-color: #dbeafe;
    background: #f8fbff;
    color: var(--go-muted-strong);
    font-weight: 750;
}

.flowcrm-go-mobility-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.18fr) minmax(260px, .82fr);
    gap: 10px;
}

.flowcrm-go-mobility-stack {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
}

.flowcrm-go-mobility-group,
.flowcrm-go-care-card {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.flowcrm-go-driver-license-group {
    background: #f6faff;
}

.flowcrm-go-driver-license-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.flowcrm-go-driver-license-head small {
    display: block;
    margin-top: 2px;
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.flowcrm-go-mobility-head {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
}

.flowcrm-go-mobility-head i {
    color: var(--go-blue);
    font-size: 14px;
}

.flowcrm-go-license-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flowcrm-go-license-chip {
    margin: 0;
}

.flowcrm-go-license-chip input,
.flowcrm-go-yes-no-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.flowcrm-go-license-chip span {
    min-width: 43px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #d7e7ff;
    border-radius: 9px;
    background: #ffffff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.flowcrm-go-license-chip input:checked + span {
    border-color: var(--go-blue);
    background: var(--go-blue);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(37, 99, 235, .18);
}

.flowcrm-go-commute-grid {
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr);
    align-items: center;
    gap: 8px;
}

.flowcrm-go-yes-no-group {
    width: 136px;
    height: 36px;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #c9daf5;
    border-radius: 10px;
    background: #ffffff;
}

.flowcrm-go-yes-no-option {
    display: flex;
    align-items: center;
    margin: 0;
}

.flowcrm-go-yes-no-option span {
    width: 100%;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.flowcrm-go-yes-no-option input:checked + span {
    background: var(--go-blue);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .12);
}

.flowcrm-go-yes-no-group.is-disabled {
    opacity: .55;
}

.flowcrm-go-yes-no-group.is-disabled .flowcrm-go-yes-no-option span {
    cursor: not-allowed;
}

.flowcrm-go-benefit-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(220px, .85fr) minmax(180px, .65fr);
    gap: 10px;
    align-items: end;
}

.flowcrm-go-care-card {
    grid-template-columns: minmax(150px, auto) minmax(180px, 1fr);
    align-items: end;
}

.flowcrm-go-care-card > div {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
}

.flowcrm-go-editable-field {
    position: relative;
    min-width: 0;
    min-height: 40px;
}

.flowcrm-go-editable-field input {
    padding-right: 44px;
}

.flowcrm-go-editable-field input[readonly] {
    border-color: #dbeafe;
    background: #f8fbff;
    color: #334155;
    font-weight: 700;
}

.flowcrm-go-editable-field.is-editing input {
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.flowcrm-go-field-edit-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--go-blue);
    line-height: 1;
    transform: none !important;
}

.flowcrm-go-field-edit-btn:hover,
.flowcrm-go-field-edit-btn:focus-visible,
.flowcrm-go-field-edit-btn:active,
.flowcrm-go-editable-field.is-editing .flowcrm-go-field-edit-btn {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--go-blue-hover);
    outline: none;
    transform: none !important;
}

.flowcrm-go-summary-block {
    --go-section-accent: #93c5fd;
    --go-section-border: #dbe4ee;
    display: grid;
    gap: 10px;
    margin: var(--go-case-section-x);
    padding: 12px;
    border: 1px solid var(--go-section-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 3px 0 0 var(--go-section-accent), 0 10px 24px rgba(15, 23, 42, .035);
}

.flowcrm-go-summary-head {
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flowcrm-go-summary-head span {
    color: var(--go-muted-strong);
    font-size: 10.5px;
    font-weight: 850;
    text-transform: uppercase;
}

.flowcrm-go-summary-block .flowcrm-go-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
}

.flowcrm-go-summary-grid .flowcrm-go-info {
    border-color: #d6e4f3;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.flowcrm-go-summary-card {
    --go-summary-accent: #94a3b8;
    position: relative;
    min-height: 72px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 11px 12px;
    border-color: #dbe4ee;
    border-left-width: 3px;
    border-left-color: var(--go-summary-accent);
    border-top-width: 1px;
    background: #ffffff;
}

.flowcrm-go-summary-card.is-source {
    min-height: 72px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.flowcrm-go-summary-card.is-status {
    border-left-width: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 10px 22px rgba(15, 23, 42, .05);
}

.flowcrm-go-summary-card.is-ok {
    --go-summary-accent: #16a34a;
    border-color: #dbe4ee;
    border-left-color: var(--go-summary-accent);
    background: #ffffff;
}

.flowcrm-go-summary-card.is-warn {
    --go-summary-accent: #d97706;
    border-color: #dbe4ee;
    border-left-color: var(--go-summary-accent);
    background: #ffffff;
}

.flowcrm-go-summary-card.is-danger {
    --go-summary-accent: #dc2626;
    border-color: #dbe4ee;
    border-left-color: var(--go-summary-accent);
    background: #ffffff;
}

.flowcrm-go-summary-card.is-done {
    --go-summary-accent: #1d4ed8;
    border-color: #dbe4ee;
    border-left-color: var(--go-summary-accent);
    background: #ffffff;
}

.flowcrm-go-summary-card.is-neutral,
.flowcrm-go-summary-card.is-source {
    --go-summary-accent: #94a3b8;
    border-color: #dbe4ee;
    border-left-color: var(--go-summary-accent);
    background: #ffffff;
}

.flowcrm-go-summary-card.is-status {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.flowcrm-go-summary-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flowcrm-go-status-signal {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(22, 163, 74, .09);
}

.flowcrm-go-summary-card.is-status .flowcrm-go-summary-main {
    min-height: 30px;
    gap: 10px;
}

.flowcrm-go-summary-card.is-status .flowcrm-go-status-signal {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border: 1px solid rgba(148, 163, 184, .18);
}

.flowcrm-go-summary-main strong {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.18;
}

.flowcrm-go-summary-card.is-status .flowcrm-go-summary-main strong {
    font-size: 15px;
    font-weight: 820;
}

.flowcrm-go-summary-main .bi {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 17px;
}

.flowcrm-go-summary-card.is-ok .flowcrm-go-summary-main .bi {
    color: #16a34a;
}

.flowcrm-go-summary-card.is-warn .flowcrm-go-summary-main .bi {
    color: #d97706;
}

.flowcrm-go-summary-card.is-danger .flowcrm-go-summary-main .bi {
    color: #dc2626;
}

.flowcrm-go-summary-card.is-done .flowcrm-go-summary-main .bi {
    color: #1d4ed8;
}

.flowcrm-go-summary-card.is-warn .flowcrm-go-status-signal {
    background: rgba(217, 119, 6, .10);
}

.flowcrm-go-summary-card.is-danger .flowcrm-go-status-signal {
    background: rgba(220, 38, 38, .09);
}

.flowcrm-go-summary-card.is-neutral .flowcrm-go-status-signal {
    background: rgba(148, 163, 184, .11);
}

.flowcrm-go-summary-card.is-done .flowcrm-go-status-signal {
    background: rgba(29, 78, 216, .10);
}

.flowcrm-go-traffic-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .13);
}

.flowcrm-go-traffic-dot.is-ok {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
}

.flowcrm-go-traffic-dot.is-warn {
    background: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, .16);
}

.flowcrm-go-traffic-dot.is-danger {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .14);
}

.flowcrm-go-traffic-dot.is-neutral {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .13);
}

.flowcrm-go-traffic-dot.is-done {
    background: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .13);
}

.flowcrm-go-info {
    min-width: 0;
    min-height: 76px;
    padding: 11px;
    border: 1px solid #dbe4ee;
    border-radius: var(--go-radius);
    background: #ffffff;
}

.flowcrm-go-info label,
.flowcrm-go-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--go-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.flowcrm-go-info strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--go-ink);
    font-size: 14px;
    line-height: 1.3;
}

.flowcrm-go-info span {
    display: block;
    overflow-wrap: anywhere;
    color: var(--go-muted);
    font-size: 13px;
    font-weight: 650;
}

.flowcrm-go-info .flowcrm-go-info-pills,
.flowcrm-go-dossier-grid .flowcrm-go-info-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.flowcrm-go-info .flowcrm-pill,
.flowcrm-go-info .flowcrm-go-project-pill,
.flowcrm-go-info .flowcrm-go-phase-pill,
.flowcrm-go-dossier-grid .flowcrm-pill,
.flowcrm-go-dossier-grid .flowcrm-go-project-pill,
.flowcrm-go-dossier-grid .flowcrm-go-phase-pill,
.flowcrm-go-head-pills .flowcrm-pill,
.flowcrm-go-head-pills .flowcrm-go-project-pill,
.flowcrm-go-head-pills .flowcrm-go-phase-pill {
    min-height: 22px;
    height: 22px;
    display: inline-flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    padding: 0 8px;
    overflow: visible;
    overflow-wrap: normal;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
}

.flowcrm-go-info .flowcrm-pill-label,
.flowcrm-go-info .flowcrm-pill-code,
.flowcrm-go-dossier-grid .flowcrm-pill-label,
.flowcrm-go-dossier-grid .flowcrm-pill-code,
.flowcrm-go-head-pills .flowcrm-pill-label,
.flowcrm-go-head-pills .flowcrm-pill-code {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
    overflow: visible;
    overflow-wrap: normal;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
}

.flowcrm-go-head-pills.is-case-head {
    margin-top: 9px;
    gap: 6px;
}

.flowcrm-go-source-details {
    min-height: 72px;
    overflow: visible;
}

.flowcrm-go-source-toggle {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    margin: -4px -4px -4px 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--go-muted);
}

.flowcrm-go-source-toggle:hover,
.flowcrm-go-source-toggle:focus-visible {
    background: rgba(37, 99, 235, .08);
    color: var(--go-blue);
    outline: none;
}

.flowcrm-go-source-toggle i {
    font-size: 16px;
    transition: transform .16s ease;
}

.flowcrm-go-source-details.is-open .flowcrm-go-source-toggle i {
    transform: rotate(180deg);
}

.flowcrm-go-source-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 40;
    width: min(390px, calc(100vw - 32px));
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #cbd9ea;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}

.flowcrm-go-source-popover[hidden] {
    display: none;
}

.flowcrm-go-source-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 11px;
    height: 11px;
    border-left: 1px solid #cbd9ea;
    border-top: 1px solid #cbd9ea;
    background: #ffffff;
    transform: rotate(45deg);
}

.flowcrm-go-source-popover span {
    color: var(--go-muted);
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.flowcrm-go-source-popover code {
    display: block;
    max-height: 88px;
    overflow: auto;
    overflow-wrap: anywhere;
    min-width: 0;
    color: #1e3a5f;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.flowcrm-go-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 14px 14px;
}

.flowcrm-go-signal {
    width: 116px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 700;
}

button.flowcrm-go-signal {
    appearance: none;
    cursor: pointer;
}

button.flowcrm-go-signal:hover,
button.flowcrm-go-signal:focus-visible {
    border-color: #9bcfb6;
    background: #f5fbf8;
    outline: none;
}

.flowcrm-go-signal i {
    font-size: 13px;
    line-height: 1;
}

.flowcrm-go-signal span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-signal.is-ok {
    border-color: #cfe0d8;
    background: #ecf7f1;
    color: var(--go-green);
}

.flowcrm-go-signal.is-warn {
    border-color: #ecd7aa;
    background: #fff7e7;
    color: var(--go-amber);
}

.flowcrm-go-copy-line {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flowcrm-go-copy-line > span,
.flowcrm-go-copy-line > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flowcrm-go-copy-line.is-strong {
    width: 100%;
    justify-content: space-between;
}

.flowcrm-go-copy-btn {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d8e6f5;
    border-radius: 8px;
    background: #ffffff;
    color: #356392;
    font-size: 12px;
    line-height: 1;
}

.flowcrm-go-copy-btn:hover,
.flowcrm-go-copy-btn:focus-visible {
    border-color: #9fc1ee;
    background: #f3f8ff;
    color: #1d4ed8;
    outline: none;
}

.flowcrm-go-dossier-stack {
    display: grid;
    gap: 10px;
    margin: 0 var(--go-case-section-x) var(--go-case-section-x);
    padding: 0;
}

.flowcrm-go-dossier-card {
    --go-section-accent: #93c5fd;
    --go-section-border: #dbe4ee;
    --go-section-soft: #ffffff;
    --go-section-head-soft: #ffffff;
    --go-section-cell-bg: #ffffff;
    --go-section-cell-border: #e3ebf5;
    --go-section-icon-bg: #f8fafc;
    --go-section-icon-border: #dbe4ee;
    --go-section-icon-color: var(--go-muted-strong);
    min-width: 0;
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--go-section-border);
    border-radius: var(--go-radius);
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.flowcrm-go-dossier-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 3px;
    background: var(--go-section-accent);
    pointer-events: none;
}

.flowcrm-go-dossier-card.flowcrm-go-collapsible-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

.flowcrm-go-collapsible-card > summary.flowcrm-go-dossier-head {
    min-height: 62px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: #ffffff;
}

.flowcrm-go-collapsible-card[open] > summary.flowcrm-go-dossier-head {
    border-bottom: 0;
}

.flowcrm-go-collapsible-card > summary.flowcrm-go-dossier-head::-webkit-details-marker {
    display: none;
}

.flowcrm-go-collapsible-card > summary.flowcrm-go-dossier-head:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .18);
    outline-offset: -3px;
}

.flowcrm-go-dossier-body {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.flowcrm-go-dossier-head-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.flowcrm-go-dossier-head-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--go-section-icon-border);
    border-radius: var(--go-radius);
    background: var(--go-section-icon-bg);
    color: var(--go-section-icon-color);
    font-size: 17px;
}

.flowcrm-go-dossier-chevron {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #45637f;
    font-size: 13px;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.flowcrm-go-collapsible-card[open] .flowcrm-go-dossier-chevron {
    transform: rotate(180deg);
}

.flowcrm-go-collapsible-card > summary:hover .flowcrm-go-dossier-chevron,
.flowcrm-go-collapsible-card > summary:focus-visible .flowcrm-go-dossier-chevron {
    background: #eef6ff;
    color: var(--go-blue);
}

.flowcrm-go-dossier-card.is-documents {
    --go-section-accent: #93c5fd;
}

.flowcrm-go-dossier-card.is-assignment-info {
    --go-section-accent: #60a5fa;
    --go-section-border: #bfdbfe;
    --go-section-soft: #eff6ff;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .07);
}

.flowcrm-go-dossier-card.is-assignment-info .flowcrm-go-dossier-grid > div {
    border-color: #dbeafe;
    background: rgba(255, 255, 255, .9);
}

.flowcrm-go-dossier-card.is-company-dossier {
    --go-section-accent: #99f6e4;
}

.flowcrm-go-dossier-card.is-participant-dossier {
    --go-section-accent: #c4b5fd;
}

.flowcrm-go-dossier-card.flowcrm-go-skills-card {
    --go-section-accent: #bae6fd;
}

.flowcrm-go-dossier-card.flowcrm-go-missing-card {
    --go-section-accent: #fde68a;
}

.flowcrm-go-panel > .flowcrm-go-gisa-panel,
.flowcrm-go-panel > .flowcrm-go-completion-card,
.flowcrm-go-panel > .flowcrm-go-skills-card,
.flowcrm-go-panel > .flowcrm-go-missing-card {
    margin: 0 var(--go-case-section-x) var(--go-case-section-x);
}

.flowcrm-go-dossier-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.flowcrm-go-dossier-head > div {
    min-width: 0;
}

.flowcrm-go-dossier-head > div > span,
.flowcrm-go-dossier-grid label {
    display: block;
    margin-bottom: 3px;
    color: var(--go-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.flowcrm-go-dossier-head > div > strong,
.flowcrm-go-dossier-grid strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--go-ink);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-dossier-head > div > small,
.flowcrm-go-dossier-grid span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-dossier-head > i {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--go-section-icon-border);
    border-radius: var(--go-radius);
    background: var(--go-section-icon-bg);
    color: var(--go-section-icon-color);
    font-size: 17px;
}

.flowcrm-go-dossier-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.flowcrm-go-dossier-actions.is-document-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flowcrm-go-dossier-actions.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.flowcrm-go-dossier-actions .flowcrm-go-action {
    min-height: 36px;
    padding: 0 10px;
}

.flowcrm-go-dossier-actions.is-document-actions .flowcrm-go-action {
    min-width: 0;
    gap: 6px;
}

.flowcrm-go-dossier-actions.is-document-actions .flowcrm-go-action span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-dossier-actions .flowcrm-go-action.is-camera {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #0a55b8;
}

.flowcrm-go-dossier-actions .flowcrm-go-action.is-camera:hover,
.flowcrm-go-dossier-actions .flowcrm-go-action.is-camera:focus-visible {
    border-color: var(--go-blue);
    background: #e6f0ff;
    color: var(--go-blue-hover);
}

.flowcrm-go-dossier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.flowcrm-go-assignment-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flowcrm-go-dossier-grid > div {
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--go-section-cell-border);
    border-radius: var(--go-radius);
    background: var(--go-section-cell-bg);
}

.flowcrm-go-dossier-grid .flowcrm-go-info-pills {
    min-height: 24px;
}

.flowcrm-go-dossier-grid .flowcrm-go-info-pills .flowcrm-go-head-pills {
    padding: 0;
}

.flowcrm-go-dossier-documents {
    min-width: 0;
}

.flowcrm-go-gisa-panel {
    min-width: 0;
    position: relative;
    border: 1px solid #dbe4ee;
    border-radius: var(--go-radius);
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.flowcrm-go-gisa-panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 3px;
    background: #bbf7d0;
    pointer-events: none;
}

.flowcrm-go-gisa-panel summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
    background: #ffffff;
}

.flowcrm-go-gisa-panel summary::-webkit-details-marker {
    display: none;
}

.flowcrm-go-gisa-summary-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.flowcrm-go-gisa-summary-main > span:last-child {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.flowcrm-go-gisa-summary-main strong {
    color: var(--go-ink);
    font-size: 13px;
    line-height: 1.15;
}

.flowcrm-go-gisa-summary-main small,
.flowcrm-go-gisa-note {
    color: var(--go-muted);
    font-size: 11px;
    line-height: 1.35;
}

.flowcrm-go-gisa-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--go-muted-strong);
}

.flowcrm-go-gisa-panel summary > .bi-chevron-down {
    flex: 0 0 auto;
    color: var(--go-muted);
    transition: transform .16s ease;
}

.flowcrm-go-gisa-panel[open] summary > .bi-chevron-down {
    transform: rotate(180deg);
}

.flowcrm-go-gisa-body {
    display: grid;
    gap: 10px;
    max-height: 260px;
    padding: 11px;
    overflow: auto;
}

.flowcrm-go-gisa-grid,
.flowcrm-go-missing-list {
    display: grid;
    gap: 7px;
}

.flowcrm-go-gisa-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(82px, .46fr) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    font-size: 12px;
    line-height: 1.3;
}

.flowcrm-go-gisa-row span {
    color: var(--go-muted);
}

.flowcrm-go-gisa-row strong {
    min-width: 0;
    color: var(--go-ink);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.flowcrm-go-skills-grid,
.flowcrm-go-missing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.flowcrm-go-skills-grid > div,
.flowcrm-go-missing-grid > div {
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--go-section-cell-border);
    border-radius: var(--go-radius);
    background: var(--go-section-cell-bg);
}

.flowcrm-go-skills-grid label,
.flowcrm-go-missing-grid label {
    display: block;
    margin-bottom: 6px;
    color: var(--go-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.flowcrm-go-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flowcrm-go-skill-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid #d7e5f3;
    border-radius: 999px;
    background: #f8fbff;
    color: #24476b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.flowcrm-go-skill-tags .is-more {
    background: #eef6ff;
    color: var(--go-blue);
}

.flowcrm-go-missing-item {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: var(--go-radius);
    background: #ffffff;
}

.flowcrm-go-missing-item i {
    color: var(--go-blue);
    font-size: 14px;
}

.flowcrm-go-missing-item strong,
.flowcrm-go-missing-item span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-missing-item strong {
    color: var(--go-ink);
    font-size: 12px;
    font-weight: 800;
}

.flowcrm-go-missing-item span,
.flowcrm-go-muted {
    color: var(--go-muted);
    font-size: 11px;
    font-weight: 700;
}

.flowcrm-go-completion-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.flowcrm-go-completion-actions .flowcrm-go-action {
    min-height: 36px;
    padding: 0 8px;
}

.workbook-document-list {
    display: grid;
    gap: 7px;
}

.workbook-document-row {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(92px, 1fr) minmax(82px, auto) auto;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 7px;
    border: 1px solid #dbe4ee;
    border-radius: var(--go-radius);
    background: #ffffff;
}

.workbook-document-row > i {
    color: var(--go-blue);
    font-size: 14px;
}

.workbook-document-name,
.workbook-document-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workbook-document-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    max-width: 100%;
    padding: 2px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.workbook-document-meta {
    color: var(--go-muted);
    font-size: 11px;
    font-weight: 700;
}

.workbook-document-open {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #dbe6f2;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted-strong);
    text-decoration: none;
}

.workbook-document-open:hover,
.workbook-document-open:focus-visible {
    border-color: #2563eb;
    background: var(--go-hover);
    color: var(--go-blue-hover);
    outline: none;
}

.workbook-document-empty {
    padding: 10px;
    border: 1px dashed #cbd6e3;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 700;
}

.flowcrm-go-empty.is-compact {
    padding: 10px;
    font-size: 12px;
}

body.darkmode .flowcrm-go-dossier-card,
body.darkmode .flowcrm-go-dossier-grid > div,
body.darkmode .flowcrm-go-gisa-panel,
body.darkmode .flowcrm-go-gisa-body,
body.darkmode .flowcrm-go-skills-grid > div,
body.darkmode .flowcrm-go-missing-grid > div,
body.darkmode .flowcrm-go-missing-item,
body.darkmode .workbook-document-row,
body.darkmode .workbook-document-open,
body.darkmode .workbook-document-empty {
    border-color: var(--go-line);
    background: var(--go-panel);
    color: var(--go-ink);
}

body.darkmode .flowcrm-go-company-head {
    border-color: var(--go-record-head-dark-border);
    background: linear-gradient(180deg, var(--go-record-head-dark-bg) 0%, rgba(15, 23, 42, .72) 68%, var(--go-panel) 100%);
    box-shadow: none;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-abbruch {
    border-color: rgba(248, 113, 113, .34);
    background: rgba(127, 29, 29, .28);
    color: #fecaca;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-erstkontakt {
    border-color: rgba(148, 163, 184, .32);
    background: rgba(51, 65, 85, .34);
    color: #cbd5e1;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-bewerbung {
    border-color: rgba(192, 132, 252, .36);
    background: rgba(88, 28, 135, .28);
    color: #e9d5ff;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-vorstellungsgesprach {
    border-color: rgba(34, 211, 238, .34);
    background: rgba(8, 145, 178, .18);
    color: #a5f3fc;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-arbeitserprobung {
    border-color: rgba(251, 191, 36, .38);
    background: rgba(120, 53, 15, .26);
    color: #fde68a;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-uberlassung {
    border-color: rgba(74, 222, 128, .34);
    background: rgba(22, 101, 52, .22);
    color: #bbf7d0;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-zeitablauf {
    border-color: rgba(148, 163, 184, .34);
    background: rgba(15, 23, 42, .44);
    color: #cbd5e1;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-ubernahme {
    border-color: rgba(96, 165, 250, .40);
    background: rgba(30, 64, 175, .30);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-phase-pill.is-phase-absage {
    border-color: rgba(148, 163, 184, .32);
    background: rgba(51, 65, 85, .34);
    color: #cbd5e1;
}

body.darkmode .flowcrm-go-dossier-card {
    border-color: var(--go-line);
    background: var(--go-panel);
    box-shadow: none;
}

body.darkmode .flowcrm-go-collapsible-card > summary.flowcrm-go-dossier-head {
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-collapsible-card[open] > summary.flowcrm-go-dossier-head {
    border-bottom: 0;
}

body.darkmode .flowcrm-go-dossier-grid > div,
body.darkmode .flowcrm-go-skills-grid > div,
body.darkmode .flowcrm-go-missing-grid > div {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .42);
}

body.darkmode .flowcrm-go-dossier-head > i,
body.darkmode .flowcrm-go-dossier-head-icon,
body.darkmode .workbook-document-type-pill,
body.darkmode .flowcrm-go-skill-tags span {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .48);
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-gisa-panel summary {
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-gisa-summary-main strong {
    color: var(--go-ink);
}

.flowcrm-go-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--go-line);
}

.flowcrm-go-company-edit {
    background: #fbfdff;
}

.flowcrm-go-subpanel {
    background: #ffffff;
}

.flowcrm-go-quick-note-card {
    position: relative;
    gap: 12px;
    margin-top: 12px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #60a5fa;
    border-radius: var(--go-radius-lg);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 78%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .08);
}

.flowcrm-go-quick-note-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
}

.flowcrm-go-quick-note-head span {
    display: block;
    margin-bottom: 2px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
    text-transform: uppercase;
}

.flowcrm-go-quick-note-head strong {
    display: block;
    color: var(--go-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.flowcrm-go-quick-note-head i {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
}

.flowcrm-go-problem-details {
    overflow: hidden;
    border: 1px solid #dbe6f2;
    border-left: 4px solid #c4b5fd;
    border-radius: var(--go-radius);
    background: #ffffff;
}

.flowcrm-go-case-extra-details {
    border-left-color: #93c5fd;
}

.flowcrm-go-problem-details > summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
}

.flowcrm-go-problem-details > summary::-webkit-details-marker {
    display: none;
}

.flowcrm-go-problem-details > summary strong,
.flowcrm-go-problem-details > summary small {
    display: block;
    min-width: 0;
}

.flowcrm-go-problem-details > summary strong {
    color: var(--go-ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    text-transform: uppercase;
}

.flowcrm-go-problem-details > summary small {
    margin-top: 3px;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.flowcrm-go-problem-details > summary > .bi-chevron-down {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--go-muted-strong);
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.flowcrm-go-problem-details[open] > summary > .bi-chevron-down {
    transform: rotate(180deg);
}

.flowcrm-go-problem-details > summary:hover > .bi-chevron-down,
.flowcrm-go-problem-details > summary:focus-visible > .bi-chevron-down {
    background: #f1f5f9;
    color: var(--go-blue);
}

.flowcrm-go-problem-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.flowcrm-go-edit-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.flowcrm-go-edit-head.is-sub {
    padding-top: 12px;
    border-top: 1px solid var(--go-line);
}

.flowcrm-go-edit-head h3 {
    margin: 0;
    color: var(--go-ink);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
}

.flowcrm-go-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.flowcrm-go-field-wide {
    grid-column: 1 / -1;
}

.flowcrm-go-check {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid #cfd9e5;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.flowcrm-go-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--go-blue);
}

.flowcrm-go-form label.flowcrm-go-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: var(--go-muted-strong);
    text-transform: none;
}

.flowcrm-go-form label.flowcrm-go-check span {
    line-height: 1;
}

.flowcrm-go-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.flowcrm-go-form .flowcrm-go-choice-grid label.flowcrm-go-check {
    min-height: 36px;
    justify-content: flex-start;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 700;
}

.flowcrm-go-contact-list {
    display: grid;
    gap: 10px;
}

.flowcrm-go-contact-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 11px;
    border: 1px solid #dbe4ee;
    border-radius: var(--go-radius);
    background: #ffffff;
}

.flowcrm-go-contact-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.flowcrm-go-contact-toggle {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 11px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
}

.flowcrm-go-contact-toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .26);
    outline-offset: 4px;
    border-radius: 8px;
}

.flowcrm-go-contact-head strong {
    overflow: hidden;
    color: var(--go-ink);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-contact-title {
    color: var(--go-muted-strong);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.flowcrm-go-contact-summary-name {
    min-width: 0;
    overflow: hidden;
    color: var(--go-ink);
    font-size: 14px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-contact-summary-meta {
    grid-column: 2 / 3;
    min-width: 0;
    overflow: hidden;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flowcrm-go-contact-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
    color: var(--go-muted-strong);
    transition: transform .16s ease;
}

.flowcrm-go-contact-toggle[aria-expanded="true"] .flowcrm-go-contact-chevron {
    transform: rotate(180deg);
}

.flowcrm-go-contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.flowcrm-go-mini-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dbe6f2;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted-strong);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.flowcrm-go-mini-btn:hover,
.flowcrm-go-mini-btn:focus-visible {
    border-color: #2563eb;
    background: var(--go-hover);
    color: var(--go-blue-hover);
    outline: none;
}

.flowcrm-go-mini-btn.is-danger {
    color: var(--go-red);
}

.flowcrm-go-mini-btn:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.flowcrm-go-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.flowcrm-go-contact-details[hidden] {
    display: none !important;
}

.flowcrm-go-contact-mail {
    grid-column: span 2;
}

.flowcrm-go-form textarea,
.flowcrm-go-form input,
.flowcrm-go-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid #cfd9e5;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-ink);
    font-size: 14px;
}

body.darkmode .flowcrm-go-form textarea,
body.darkmode .flowcrm-go-form input,
body.darkmode .flowcrm-go-form select,
body.darkmode .flowcrm-go-search {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .72);
    color: var(--go-ink);
}

body.darkmode .flowcrm-go-form textarea::placeholder,
body.darkmode .flowcrm-go-form input::placeholder,
body.darkmode .flowcrm-go-search input::placeholder {
    color: rgba(203, 213, 225, .62);
}

body.darkmode .flowcrm-go-quick-note-card {
    border-color: rgba(96, 165, 250, .34);
    border-left-color: #60a5fa;
    background: linear-gradient(180deg, rgba(30, 41, 59, .78) 0%, rgba(15, 23, 42, .84) 80%);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .24);
}

body.darkmode .flowcrm-go-quick-note-head span,
body.darkmode .flowcrm-go-quick-note-head i {
    color: #93c5fd;
}

body.darkmode .flowcrm-go-quick-note-head i {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(37, 99, 235, .16);
}

body.darkmode .flowcrm-go-problem-details {
    border-color: var(--go-line);
    border-left-color: #a78bfa;
    background: rgba(15, 23, 42, .58);
}

body.darkmode .flowcrm-go-case-extra-details {
    border-left-color: #60a5fa;
}

body.darkmode .flowcrm-go-problem-details > summary:hover > .bi-chevron-down,
body.darkmode .flowcrm-go-problem-details > summary:focus-visible > .bi-chevron-down {
    background: rgba(96, 165, 250, .14);
    color: #93c5fd;
}

body.darkmode .flowcrm-go-icon-btn,
body.darkmode .flowcrm-go-action,
body.darkmode .flowcrm-go-mini-btn,
body.darkmode .flowcrm-go-check,
body.darkmode .flowcrm-go-stats div,
body.darkmode .flowcrm-go-sync-status,
body.darkmode .flowcrm-go-signal {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .64);
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-sync-status.is-ok {
    border-color: rgba(34, 197, 94, .34);
    background: rgba(22, 101, 52, .22);
    color: #86efac;
}

body.darkmode .flowcrm-go-sync-status.is-warn {
    border-color: rgba(245, 158, 11, .36);
    background: rgba(120, 53, 15, .28);
    color: #fcd34d;
}

body.darkmode .flowcrm-go-sync-status.is-error {
    border-color: rgba(248, 113, 113, .38);
    background: rgba(127, 29, 29, .28);
    color: #fca5a5;
}

body.darkmode .flowcrm-go-copy-btn {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .52);
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-copy-btn:hover,
body.darkmode .flowcrm-go-copy-btn:focus-visible,
body.darkmode button.flowcrm-go-signal:hover,
body.darkmode button.flowcrm-go-signal:focus-visible {
    border-color: rgba(96, 165, 250, .42);
    background: rgba(37, 99, 235, .18);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-search-hit {
    background: rgba(37, 99, 235, .26);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-dossier-actions .flowcrm-go-action.is-camera {
    border-color: rgba(96, 165, 250, .30);
    background: rgba(37, 99, 235, .16);
    color: #dbeafe;
}

body.darkmode .flowcrm-go-summary-block {
    --go-section-border: var(--go-line);
    border-color: var(--go-line);
    background: var(--go-panel);
    box-shadow: inset 3px 0 0 var(--go-section-accent);
}

body.darkmode .flowcrm-go-summary-head span {
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-summary-card,
body.darkmode .flowcrm-go-summary-card.is-neutral,
body.darkmode .flowcrm-go-summary-card.is-source {
    border-color: var(--go-line);
    border-left-color: var(--go-summary-accent, #64748b);
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-summary-card.is-ok {
    border-color: var(--go-line);
    border-left-color: #22c55e;
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-summary-card.is-warn {
    border-color: var(--go-line);
    border-left-color: #f59e0b;
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-summary-card.is-danger {
    border-color: var(--go-line);
    border-left-color: #ef4444;
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-summary-card.is-done {
    border-color: var(--go-line);
    border-left-color: #60a5fa;
    background: var(--go-panel);
}

body.darkmode .flowcrm-go-source-toggle:hover,
body.darkmode .flowcrm-go-source-toggle:focus-visible {
    background: rgba(96, 165, 250, .13);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-source-popover {
    border-color: rgba(148, 163, 184, .34);
    background: #182338;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

body.darkmode .flowcrm-go-source-popover::before {
    border-color: rgba(148, 163, 184, .34);
    background: #182338;
}

body.darkmode .flowcrm-go-source-popover code {
    color: #dbeafe;
}

body.darkmode .flowcrm-go-profile-overview,
body.darkmode .flowcrm-go-profile-section,
body.darkmode .flowcrm-go-profile-section.is-core,
body.darkmode .flowcrm-go-profile-card,
body.darkmode .flowcrm-go-profile-card.is-primary,
body.darkmode .flowcrm-go-profile-card.is-accent {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .52);
    box-shadow: none;
}

body.darkmode .flowcrm-go-profile-section-icon,
body.darkmode .flowcrm-go-profile-section > summary:hover > .bi-chevron-down,
body.darkmode .flowcrm-go-profile-section > summary:focus-visible > .bi-chevron-down {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(37, 99, 235, .16);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-profile-section-grid input[readonly] {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .46);
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-mobility-group,
body.darkmode .flowcrm-go-care-card,
body.darkmode .flowcrm-go-driver-license-group {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .46);
}

body.darkmode .flowcrm-go-driver-license-head small {
    color: var(--go-muted);
}

body.darkmode .flowcrm-go-mobility-head {
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-mobility-head i {
    color: #93c5fd;
}

body.darkmode .flowcrm-go-license-chip span,
body.darkmode .flowcrm-go-yes-no-group {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .62);
}

body.darkmode .flowcrm-go-license-chip span,
body.darkmode .flowcrm-go-yes-no-option span {
    color: #cbd5e1;
}

body.darkmode .flowcrm-go-license-chip input:checked + span,
body.darkmode .flowcrm-go-yes-no-option input:checked + span {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
}

body.darkmode .flowcrm-go-editable-field input[readonly] {
    border-color: var(--go-line);
    background: rgba(15, 23, 42, .46);
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-editable-field.is-editing input {
    border-color: rgba(96, 165, 250, .55);
    background: rgba(15, 23, 42, .72);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .12);
}

body.darkmode .flowcrm-go-field-edit-btn:hover,
body.darkmode .flowcrm-go-field-edit-btn:focus-visible,
body.darkmode .flowcrm-go-editable-field.is-editing .flowcrm-go-field-edit-btn {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(37, 99, 235, .16);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-action.is-primary {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.flowcrm-go-form textarea {
    min-height: 92px;
    resize: vertical;
    padding: 10px;
}

.flowcrm-go-form input,
.flowcrm-go-form select {
    height: 40px;
    padding: 0 10px;
}

.flowcrm-go-date-field {
    position: relative;
    min-width: 0;
}

.flowcrm-go-date-field input {
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
    padding-right: 42px;
}

.flowcrm-go-date-field > .bi {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

.flowcrm-go-date-field input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0 0 0 auto;
    width: 42px;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.flowcrm-go-date-field input::-webkit-inner-spin-button,
.flowcrm-go-date-field input::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

.flowcrm-go-form input[readonly] {
    border-color: #dbeafe;
    background: #f8fbff;
    color: #334155;
    font-weight: 700;
    cursor: default;
}

.flowcrm-go-form select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
}

body.darkmode .flowcrm-go-form select {
    background-color: rgba(15, 23, 42, .72);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 16px center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
}

body.darkmode .flowcrm-go-form input[readonly] {
    border-color: #334155;
    background: #172036;
    color: #e5e7eb;
}

body.darkmode .flowcrm-go-date-field > .bi {
    color: #cbd5e1;
}

.flowcrm-go-form select.flowcrm-go-flowdocs-locked-select:disabled {
    border-color: #dbeafe;
    background-color: #f8fbff;
    color: #334155;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 1;
}

body.darkmode .flowcrm-go-form select.flowcrm-go-flowdocs-locked-select:disabled {
    border-color: #334155;
    background-color: #172036;
    color: #e5e7eb;
}

body.darkmode .flowcrm-go-filter-card .form-select,
body.darkmode .flowcrm-go-advanced-filters .form-select {
    background-color: #111827 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 16px center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
}

.flowcrm-go-form .flowcrm-go-check input {
    width: 16px;
    height: 16px;
    padding: 0;
}

.flowcrm-go-form-row > .flowcrm-go-action,
.flowcrm-go-field-action {
    align-self: end;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

.flowcrm-kpb-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.flowcrm-kpb-picker .flowcrm-go-action {
    min-height: 40px;
    white-space: nowrap;
}

.flowcrm-kpb-selected-list {
    min-height: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.flowcrm-kpb-selected-pill {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 5px 3px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.flowcrm-kpb-selected-code {
    min-width: 28px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
}

.flowcrm-kpb-selected-remove {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1d4ed8;
}

.flowcrm-kpb-selected-remove:hover,
.flowcrm-kpb-selected-remove:focus-visible {
    background: #dbeafe;
    outline: none;
}

.flowcrm-kpb-empty {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--go-muted);
    font-size: 12px;
    font-weight: 700;
}

body.darkmode .flowcrm-kpb-selected-pill {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(37, 99, 235, .16);
    color: #bfdbfe;
}

body.darkmode .flowcrm-kpb-selected-code,
body.darkmode .flowcrm-kpb-selected-remove:hover,
body.darkmode .flowcrm-kpb-selected-remove:focus-visible {
    background: rgba(96, 165, 250, .18);
    color: #dbeafe;
}

.flowcrm-go-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 10px;
}

.flowcrm-go-history {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.flowcrm-go-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 0;
}

.flowcrm-go-side-title h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
}

.flowcrm-go-activity {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid #dbe4ee;
    border-radius: var(--go-radius);
    background: #ffffff;
}

.flowcrm-go-activity.is-editable {
    gap: 10px;
}

.flowcrm-go-activity.is-compact {
    padding: 9px 10px;
    border-color: #d7e3f1;
    background: #fbfdff;
}

.flowcrm-go-activity-line {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.flowcrm-go-activity-content {
    min-width: 0;
}

.flowcrm-go-activity-topline {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.flowcrm-go-activity-date {
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
}

.flowcrm-go-activity-topline .flowcrm-pill,
.flowcrm-go-activity-kpb-pill {
    min-width: 0;
    height: 20px;
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
    font-weight: 610;
}

.flowcrm-go-activity-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.flowcrm-go-activity-actions button {
    flex: 0 0 30px;
    padding: 0;
    font-size: 0;
}

.flowcrm-go-activity-actions button i {
    font-size: 14px;
    line-height: 1;
}

.flowcrm-go-activity-icon,
.flowcrm-go-activity-delete {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfdded;
    border-radius: 8px;
    background: #ffffff;
    color: #355474;
    line-height: 1;
}

.flowcrm-go-activity-icon:hover,
.flowcrm-go-activity-icon:focus-visible {
    border-color: #9db7d5;
    background: #f4f8ff;
    color: var(--go-blue);
}

.flowcrm-go-activity-icon.is-save {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--go-blue);
}

.flowcrm-go-activity-delete {
    border-color: #ffd3d3;
    background: #fffafa;
    color: #dc2626;
}

.flowcrm-go-activity-delete:hover,
.flowcrm-go-activity-delete:focus-visible {
    border-color: #fca5a5;
    background: #fff1f2;
    color: #b91c1c;
}

.flowcrm-go-activity.is-editing {
    gap: 8px;
}

.flowcrm-go-activity-edit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.flowcrm-go-activity-edit-label {
    display: block;
    margin-bottom: 5px;
    color: var(--go-muted-strong);
    font-size: 11px;
    font-weight: 830;
    text-transform: uppercase;
}

.flowcrm-go-activity-edit-note {
    width: 100%;
    min-height: 72px;
    padding: 10px 11px;
    border: 1px solid #cfdded;
    border-radius: 10px;
    background: #ffffff;
    color: var(--go-ink);
    font: inherit;
    line-height: 1.42;
    resize: vertical;
}

.flowcrm-go-activity-edit-note:focus {
    outline: none;
    border-color: var(--go-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.flowcrm-go-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--go-muted-strong);
    font-size: 12px;
    font-weight: 850;
}

.flowcrm-go-activity-head time {
    flex: 0 0 auto;
    font-weight: 750;
}

.flowcrm-go-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flowcrm-go-activity-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #cfdded;
    border-radius: 999px;
    background: #f6fbff;
    color: #32506f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.flowcrm-go-activity-meta i {
    color: var(--go-blue);
    font-size: 12px;
}

body.darkmode .flowcrm-go-activity-meta span {
    border-color: var(--go-line-strong);
    background: rgba(37, 99, 235, .12);
    color: var(--go-muted-strong);
}

body.darkmode .flowcrm-go-activity.is-compact {
    border-color: rgba(148, 163, 184, .24);
    background: rgba(15, 23, 42, .58);
}

body.darkmode .flowcrm-go-activity-delete {
    border-color: rgba(248, 113, 113, .28);
    background: rgba(127, 29, 29, .16);
    color: #fecaca;
}

body.darkmode .flowcrm-go-activity-icon {
    border-color: rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .5);
    color: #cbd5e1;
}

body.darkmode .flowcrm-go-activity-icon:hover,
body.darkmode .flowcrm-go-activity-icon:focus-visible {
    border-color: rgba(96, 165, 250, .45);
    background: rgba(37, 99, 235, .18);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-activity-icon.is-save {
    border-color: rgba(96, 165, 250, .44);
    background: rgba(37, 99, 235, .18);
    color: #bfdbfe;
}

body.darkmode .flowcrm-go-activity-delete:hover,
body.darkmode .flowcrm-go-activity-delete:focus-visible {
    border-color: rgba(248, 113, 113, .42);
    background: rgba(127, 29, 29, .26);
    color: #fee2e2;
}

body.darkmode .flowcrm-go-activity-edit-note {
    border-color: rgba(148, 163, 184, .28);
    background: rgba(15, 23, 42, .72);
    color: #e5edf8;
}

.flowcrm-go-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flowcrm-go-row-actions.is-end {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.flowcrm-go-activity p {
    margin: 0;
    color: var(--go-ink);
    font-size: 13px;
    line-height: 1.38;
}

.flowcrm-go-empty {
    padding: 18px;
    border: 1px dashed #cbd6e3;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-muted);
    font-size: 14px;
    font-weight: 700;
}

.flowcrm-go-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 14px;
    border: 1px solid #c9d9ea;
    border-radius: var(--go-radius);
    background: #ffffff;
    color: var(--go-ink);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    font-size: 14px;
    font-weight: 750;
}

.flowcrm-go-toast.is-error {
    border-color: #efc6c6;
    color: var(--go-red);
}

#userStartModal {
    z-index: 3000 !important;
    pointer-events: auto !important;
}

#userStartModal.show {
    display: block !important;
}

#userStartModal .modal-dialog {
    position: relative;
    max-width: min(820px, calc(100vw - 48px));
    z-index: 3001;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

#userStartModal .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible;
    pointer-events: auto !important;
}

#userStartModal .modal-body {
    max-height: calc(100vh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
}

#userStartModal .user-start-card,
#userStartModal .btn,
#userStartModal .form-control,
#userStartModal .form-select {
    pointer-events: auto !important;
    touch-action: manipulation;
}

#userStartModal .standard-user-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 9%;
    transform: translateY(11px) scale(2.17);
    transform-origin: center 17%;
}

#userStartModal .standard-user-photo.photo-focus-right {
    object-position: 56% 10%;
    transform: translate(5px, 11px) scale(1.98);
    transform-origin: 56% 17%;
}

#userStartModal .standard-user-photo.photo-focus-head {
    object-position: center 9%;
    transform: translateY(11px) scale(2.24);
    transform-origin: center 17%;
}

#userStartModal .user-start-card.is-selected {
    border-color: #2563eb;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14), 0 14px 32px rgba(37, 99, 235, .12);
}

#userStartModal .user-start-select-wrap {
    position: relative;
    display: grid;
    gap: 8px;
}

#userStartModal .user-start-select-wrap .form-label {
    margin: 0;
    color: #344258;
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0;
    text-transform: uppercase;
}

#userStartModal .user-start-list-cards {
    display: grid;
    gap: 8px;
    max-height: min(46vh, 430px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #cfdced;
    border-radius: 8px;
    background: #ffffff;
}

#userStartModal .user-start-card {
    width: 100%;
    min-height: 100px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 14px;
    border: 1px solid #d6e2f0;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    text-align: left;
    box-shadow: none;
}

#userStartModal .user-start-card:hover,
#userStartModal .user-start-card:focus-visible {
    border-color: #8bb5ff;
    background: #f8fbff;
    outline: none;
}

#userStartModal .standard-user-photo-wrap {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #eff6ff;
}

#userStartModal .user-start-content {
    min-width: 0;
    display: grid;
    gap: 4px;
    align-content: center;
}

#userStartModal .user-start-name,
#userStartModal .user-start-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#userStartModal .user-start-name {
    color: #172033;
    font-size: 15px;
    font-weight: 790;
    line-height: 1.15;
}

#userStartModal .user-start-meta {
    color: #65748b;
    font-size: 12px;
    font-weight: 620;
}

#userStartModal .user-start-foot {
    color: #4c5f76;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    font-size: 11px;
    font-weight: 730;
    line-height: 18px;
    text-transform: uppercase;
}

#userStartModal .user-start-initials {
    width: 28px;
    height: 17px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid #c7ddff;
    border-radius: 5px;
    background: #edf5ff;
    color: #1f5fc8;
    font-size: 9.5px;
    font-weight: 760;
    line-height: 1;
}

#userStartModal .user-start-foot > span:last-child {
    min-width: 0;
    line-height: 18px;
}

#userStartModal .user-start-check {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #c9dcf6;
    border-radius: 999px;
    color: #2563eb;
}

#userStartModal .user-start-card.is-selected .user-start-check {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

body:has(#userStartModal.show) .modal-backdrop {
    z-index: 2990 !important;
}

#userStartModal .user-start-body-grid {
    grid-template-columns: minmax(0, 1fr);
}

#userStartModal .user-start-auth-kicker {
    margin-bottom: 4px;
    color: #66758b;
    font-size: 10px;
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
}

#userStartModal .user-start-pin-wrap .input-group-text {
    width: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    justify-content: center;
    padding: 0;
    aspect-ratio: 1 / 1;
}

body.darkmode #userStartModal .modal-content {
    border-color: #27354b;
    background: #111827;
    color: #f8fafc;
}

body.darkmode #userStartModal .modal-body {
    background: #111827;
}

body.darkmode #userStartModal .user-start-auth-panel,
body.darkmode #userStartModal .user-start-welcome-main,
body.darkmode #userStartModal .user-start-list,
body.darkmode #userStartModal .user-start-list-cards {
    border-color: #27354b;
    background: #172036;
    box-shadow: none;
}

body.darkmode #userStartModal .user-start-auth-head {
    border-bottom-color: #27354b;
}

body.darkmode #userStartModal .user-start-auth-kicker,
body.darkmode #userStartModal .user-start-select-wrap .form-label {
    color: #94a3b8;
}

body.darkmode #userStartModal .user-start-card {
    border-color: #27354b;
    background: linear-gradient(180deg, #1e293b, #172036);
    color: #f8fafc;
}

body.darkmode #userStartModal .user-start-card:hover,
body.darkmode #userStartModal .user-start-card:focus-visible {
    border-color: rgba(96, 165, 250, .78);
    background: linear-gradient(180deg, #23314b, #1b2942);
}

body.darkmode #userStartModal .user-start-card.is-selected {
    border-color: rgba(96, 165, 250, .9);
    background: linear-gradient(180deg, #1f3b64, #172a46);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .18), 0 16px 34px rgba(2, 6, 23, .34);
}

body.darkmode #userStartModal .standard-user-photo-wrap {
    border-color: #334155;
    background: #0f172a;
}

body.darkmode #userStartModal .user-start-name {
    color: #f8fafc !important;
}

body.darkmode #userStartModal .user-start-meta {
    color: #cbd5e1;
}

body.darkmode #userStartModal .user-start-foot {
    color: #bfdbfe;
}

body.darkmode #userStartModal .user-start-initials {
    background: rgba(96, 165, 250, .18);
    border-color: rgba(147, 197, 253, .42);
    color: #bfdbfe;
}

body.darkmode #userStartModal .user-start-check {
    border-color: #334155;
    background: #0f172a;
    color: #93c5fd;
}

body.darkmode #userStartModal .user-start-card.is-selected .user-start-check {
    border-color: #60a5fa;
    background: #2563eb;
    color: #ffffff;
}

body.darkmode #userStartModal .user-start-pin-wrap .input-group-text,
body.darkmode #userStartModal .user-start-pin-wrap .form-control,
body.darkmode #userStartModal #userStartSearchWrap .input-group-text,
body.darkmode #userStartModal #userStartSearchWrap .form-control {
    border-color: #334155;
    background: #0f172a;
    color: #f8fafc;
}

body.darkmode #userStartModal .user-start-pin-wrap .form-control::placeholder,
body.darkmode #userStartModal #userStartSearchWrap .form-control::placeholder {
    color: #94a3b8;
}

@media (min-width: 1281px) and (max-height: 0px) and (hover: hover) and (pointer: fine) {
    :root {
        --go-header-height: 62px;
    }

    .flowcrm-go-app {
        --flowcrm-go-sidebar-width: 216px;
        --flowcrm-go-sidebar-collapsed-width: 66px;
        font-size: 13px;
    }

    .flowcrm-go-sidebar {
        gap: 12px;
        padding: 14px;
    }

    .flowcrm-go-brand {
        gap: 9px;
        margin: -14px -15px 0 -14px;
        padding: 0 14px;
    }

    .flowcrm-go-logo-box {
        width: 34px;
        height: 34px;
    }

    .flowcrm-go-product,
    .flowcrm-go-wordmark {
        font-size: 21px;
    }

    .flowcrm-go-host {
        margin-top: 2px;
        font-size: 9px;
    }

    .flowcrm-go-nav {
        gap: 5px;
    }

    .flowcrm-go-nav button {
        min-height: 36px;
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 9px;
        border-radius: 8px;
        font-size: 13px;
    }

    .flowcrm-go-nav button i {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .flowcrm-go-sidebar-dashboard {
        gap: 7px;
        padding: 9px;
    }

    .flowcrm-go-dashboard-row {
        gap: 6px;
    }

    .flowcrm-go-dashboard-badge {
        min-height: 28px;
        font-size: 12px;
    }

    .flowcrm-go-app-header.app-header {
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 14px !important;
    }

    .flowcrm-go-app-header .header-icon-button,
    .flowcrm-go-app-header .notification-button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .flowcrm-go-app-header .header-icon-button i,
    .flowcrm-go-app-header .notification-button i {
        font-size: 18px;
    }

    .flowcrm-go-app-header .theme-switch {
        width: 46px;
        height: 26px;
    }

    .flowcrm-go-app-header .theme-slider {
        width: 46px;
        height: 26px;
    }

    .flowcrm-go-app-header .theme-icon {
        width: 20px;
        height: 20px;
    }

    .flowcrm-go-app-header .theme-switch input:checked + .theme-slider .theme-icon {
        left: 21px;
    }

    .flowcrm-go-app-header .header-user-toggle {
        min-height: 38px !important;
        padding: 2px 8px 2px 3px !important;
    }

    .flowcrm-go-app-header .header-user-photo {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    .flowcrm-go-filter-card {
        margin: 10px 14px 0;
        padding: 10px;
    }

    .flowcrm-go-filter-grid {
        grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(112px, 1fr));
        gap: 8px;
    }

    .flowcrm-go-filter-card .modern-search,
    .flowcrm-go-filter-card .form-select,
    .flowcrm-go-filter-toggle,
    .flowcrm-go-filter-reset-all,
    .flowcrm-go-advanced-filters .form-control,
    .flowcrm-go-advanced-filters .form-select {
        min-height: 40px;
        font-size: 13px;
    }

    .flowcrm-go-filter-card .modern-search .input-group-text,
    .flowcrm-go-filter-card .modern-search .form-control {
        min-height: 38px;
    }

    .flowcrm-go-filter-card .modern-search .input-group-text {
        width: 44px;
    }

    .flowcrm-go-workbench {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .flowcrm-go-list-pane {
        gap: 8px;
        padding: 12px 10px;
    }

    .flowcrm-go-company-list {
        gap: 7px;
    }

    .flowcrm-go-virtual-row .flowcrm-go-company {
        height: calc(100% - 7px);
    }

    .flowcrm-go-company {
        min-height: 92px;
        gap: 4px;
        padding: 9px 10px;
    }

    .flowcrm-go-company.is-case-item {
        min-height: 88px;
        padding: 9px 10px 8px;
    }

    .flowcrm-go-company.is-company-item {
        min-height: 104px;
        gap: 5px;
        padding: 10px;
    }

    .flowcrm-go-company.is-participant-item {
        min-height: 104px;
        gap: 5px;
        padding: 10px;
    }

    .flowcrm-go-company-title,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-title,
    .flowcrm-go-company.is-participant-item .flowcrm-go-company-title {
        font-size: 13px;
        line-height: 1.16;
    }

    .flowcrm-go-company-meta,
    .flowcrm-go-company-address,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-meta,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-address {
        font-size: 11px;
        line-height: 1.2;
    }

    .flowcrm-go-main {
        gap: 12px;
        padding: 12px;
    }

    .flowcrm-go-topbar {
        min-height: 58px;
        gap: 10px;
        padding: 9px clamp(310px, 36%, 560px) 9px 13px;
    }

    .flowcrm-go-topbar h1 {
        font-size: 21px;
    }

    .flowcrm-go-kicker,
    .flowcrm-go-topbar .flowcrm-go-kicker .flowcrm-go-wordmark {
        font-size: 11px;
    }

    .flowcrm-go-stats {
        width: 250px;
        grid-template-columns: repeat(3, minmax(74px, 1fr));
        gap: 6px;
    }

    .flowcrm-go-stats div {
        height: 38px;
        min-height: 38px;
        padding: 4px 8px;
    }

    .flowcrm-go-stats span {
        font-size: 16px;
    }

    .flowcrm-go-stats small {
        font-size: 10px;
    }

    .flowcrm-go-icon-btn,
    .flowcrm-go-sync-status {
        height: 38px;
    }

    .flowcrm-go-icon-btn {
        width: 38px;
    }

    .flowcrm-go-sync-status {
        max-width: 170px;
        padding: 0 10px;
        font-size: 11px;
    }

    .flowcrm-go-workspace {
        gap: 12px;
    }

    .flowcrm-go-company-head {
        padding: 13px;
    }

    .flowcrm-go-company-head h2 {
        font-size: 22px;
    }

    .flowcrm-go-subline {
        margin-top: 5px;
        font-size: 12px;
    }

    .flowcrm-go-actions {
        gap: 7px;
        margin-top: 11px;
    }

    .flowcrm-go-action {
        min-height: 37px;
        gap: 7px;
        padding: 0 9px;
        font-size: 13px;
    }

    .flowcrm-go-grid,
    .flowcrm-go-form,
    .flowcrm-go-subpanel,
    .flowcrm-go-completion-card,
    .flowcrm-go-skills-card,
    .flowcrm-go-missing-card {
        gap: 8px;
        padding: 10px;
    }

    .flowcrm-go-info {
        min-height: 66px;
        padding: 9px;
    }

    .flowcrm-go-summary-card,
    .flowcrm-go-summary-card.is-source {
        min-height: 64px;
        padding: 9px 10px;
        gap: 5px;
    }

    .flowcrm-go-info label,
    .flowcrm-go-form label {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .flowcrm-go-info strong {
        font-size: 13px;
    }

    .flowcrm-go-info span {
        font-size: 12px;
    }

    .flowcrm-go-edit-grid,
    .flowcrm-go-form-row,
    .flowcrm-go-contact-list,
    .flowcrm-go-contact-grid {
        gap: 8px;
    }

    .flowcrm-go-contact-card {
        gap: 8px;
        padding: 9px;
    }

    .flowcrm-go-form textarea,
    .flowcrm-go-form input,
    .flowcrm-go-form select {
        font-size: 13px;
    }

    .flowcrm-go-check {
        min-height: 36px;
        font-size: 12px;
    }
}

@media (min-width: 1450px) and (max-width: 2040px) and (max-height: 1150px) and (hover: hover) and (pointer: fine) {
    .flowcrm-go-app {
        width: 125vw;
        height: 125vh;
        min-height: 125vh;
        zoom: .8;
    }

    .flowcrm-go-shell,
    .flowcrm-go-sidebar {
        height: 125vh;
    }

    @supports not (zoom: 1) {
        .flowcrm-go-app {
            transform: scale(.8);
            transform-origin: 0 0;
        }
    }
}

@media (max-width: 1120px) {
    .flowcrm-go-app {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .flowcrm-go-workbench {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .flowcrm-go-filter-grid {
        grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(120px, 1fr));
    }

    .flowcrm-go-advanced-filter-grid {
        grid-template-columns: repeat(4, minmax(118px, 1fr));
    }

    .flowcrm-go-workspace {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-topbar {
        padding: 14px 16px;
    }

    .flowcrm-go-summary-block .flowcrm-go-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .flowcrm-go-profile-section-grid.is-readonly {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flowcrm-go-app-header .header-user-toggle .flex-grow-1,
    .flowcrm-go-app-header .header-admin-lock {
        display: none !important;
    }
}

@media (max-width: 780px) {
    body {
        overflow: auto;
    }

    body.modal-open {
        overflow: hidden;
    }

    #userStartModal .modal-dialog {
        width: 100%;
        max-width: 100%;
        min-height: 100dvh;
        margin: 0;
        display: flex;
        align-items: stretch;
    }

    #userStartModal .modal-content {
        min-height: 100dvh;
        border-radius: 0 !important;
    }

    #userStartModal .modal-header {
        min-height: 70px;
        padding: 12px 14px !important;
    }

    #userStartModal .modal-body {
        max-height: none;
        height: calc(100dvh - 70px);
        padding: 12px !important;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow-x: hidden;
        overflow-y: auto;
    }

    #userStartModal .user-start-body-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #userStartModal .user-start-auth-panel,
    #userStartModal .user-start-welcome-main,
    #userStartModal .user-start-list {
        border-radius: 8px;
        box-shadow: none;
        overflow: visible;
    }

    #userStartModal .user-start-auth-panel {
        gap: 10px;
        padding: 12px;
    }

    #userStartModal .user-start-auth-head {
        padding-bottom: 10px;
    }

    #userStartModal #userStartSearchWrap {
        display: none !important;
    }

    #userStartModal .user-start-pin-wrap .form-control,
    #userStartModal .user-start-pin-wrap .input-group-text {
        min-height: 48px;
    }

    #userStartModal .user-start-pin-wrap .input-group-text {
        width: 48px;
        min-width: 48px;
        flex-basis: 48px;
    }

    #userStartModal .user-start-list-cards {
        max-height: min(54dvh, 430px);
        gap: 7px;
        padding: 7px;
    }

    #userStartModal .user-start-card {
        min-height: 96px;
        grid-template-columns: 56px minmax(0, 1fr) 28px;
        padding: 10px 9px 12px;
    }

    #userStartModal .standard-user-photo-wrap {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    #userStartModal .user-start-welcome-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #userStartModal .user-start-welcome-actions .btn {
        min-height: 48px;
    }

    #userStartModal .user-start-list {
        display: none !important;
    }

    #userStartModal .user-start-welcome-main {
        min-height: auto;
        padding: 13px;
        gap: 11px;
    }

    #userStartModal .user-start-welcome-profile {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    #userStartModal .user-start-welcome-photo-wrap {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    #userStartModal .user-start-welcome-title {
        font-size: 19px;
    }

    #userStartModal .user-start-welcome-name {
        font-size: 17px;
    }

    #userStartModal .user-start-welcome-footline {
        display: none;
    }

    .flowcrm-go-app {
        display: block;
        min-height: 100vh;
    }

    .flowcrm-go-shell {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .flowcrm-go-sidebar {
        position: static;
        width: 100%;
        max-width: 100vw;
        height: auto;
        display: block;
        overflow-x: hidden;
        padding: 12px 12px 0;
        border-right: 0;
        border-bottom: 1px solid var(--go-line);
        background: #ffffff;
        box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
    }

    .flowcrm-go-sidebar.is-menu-open {
        padding-bottom: 12px;
        border-bottom-color: rgba(255, 255, 255, .12);
        background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 54%, #0f3b68 100%);
    }

    .flowcrm-go-brand {
        height: 64px;
        min-height: 64px;
        margin: -12px -12px 0;
        padding: 0 12px;
    }

    .flowcrm-go-logo-box {
        width: 36px;
        height: 36px;
    }

    .flowcrm-go-product {
        font-size: 22px;
    }

    .flowcrm-go-menu-toggle {
        display: inline-grid;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-mobile-actions {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 -12px 12px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--fd-border, #e2e8f0);
        background: #ffffff;
    }

    .flowcrm-go-mobile-actions .theme-switch {
        width: 46px;
        height: 30px;
        flex: 0 0 auto;
    }

    .flowcrm-go-mobile-actions .header-icon-button,
    .flowcrm-go-mobile-actions .notification-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #dbe6f2;
        border-radius: 999px;
        background: #ffffff;
        color: #111827;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    }

    .flowcrm-go-mobile-user {
        min-width: 0;
        flex: 0 0 auto;
    }

    .flowcrm-go-mobile-actions .header-user-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0 !important;
        padding: 3px !important;
        border: 1px solid #dbe6f2 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #111827 !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .05) !important;
    }

    .flowcrm-go-mobile-actions .header-user-toggle .flex-grow-1,
    .flowcrm-go-mobile-actions .header-user-toggle > .bi:not(.header-admin-lock) {
        display: none !important;
    }

    .flowcrm-go-mobile-actions .header-user-photo {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .flowcrm-go-mobile-actions .header-user-name {
        color: #0f172a;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.1;
    }

    .flowcrm-go-mobile-actions .header-user-role {
        color: #64748b;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.1;
    }

    .flowcrm-go-mobile-actions .header-admin-lock {
        display: none;
    }

    .flowcrm-go-mobile-actions .dropdown-menu {
        width: 100%;
        min-width: 230px;
        border-radius: 8px;
    }

    .flowcrm-go-nav {
        display: none;
        margin-top: 12px;
        padding: 0;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        overflow: visible;
    }

    .flowcrm-go-nav button {
        min-height: 42px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        justify-items: stretch;
        gap: 10px;
        padding: 0 11px;
        text-align: left;
    }

    .flowcrm-go-nav button span {
        width: 100%;
        font-size: 14px;
    }

    .flowcrm-go-sidebar-footer,
    .flowcrm-go-header-link span,
    .flowcrm-go-app-header .module-header-actions {
        display: none;
    }

    .flowcrm-go-sidebar-legal {
        display: none;
    }

    .flowcrm-go-nav button strong {
        display: inline-flex;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-sidebar-footer {
        display: grid;
        margin-top: 12px;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-sidebar-legal {
        display: none;
    }

    .flowcrm-go-app-header.app-header {
        height: 0 !important;
        min-height: 0 !important;
        display: none !important;
        overflow: hidden !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .flowcrm-go-filter-card {
        margin: 12px;
        padding: 12px;
    }

    .flowcrm-go-filter-grid,
    .flowcrm-go-advanced-filter-grid {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-advanced-field-wide {
        grid-column: auto;
    }

    .flowcrm-go-advanced-actions,
    .flowcrm-go-reset-filters {
        width: 100%;
    }

    .flowcrm-go-workbench {
        display: block;
        min-height: 0;
        overflow: visible;
    }

    .flowcrm-go-list-pane {
        min-height: 0;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--go-line);
    }

    .flowcrm-go-company-list {
        max-height: 250px;
    }

    .flowcrm-go-main {
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        padding: 12px;
    }

    .flowcrm-go-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px 16px;
    }

    .flowcrm-go-commandbar {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .flowcrm-go-sync-status {
        display: none !important;
    }

    .flowcrm-go-sync-status span {
        display: none;
    }

    .flowcrm-go-stats {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        gap: 7px;
        overflow: hidden;
    }

    .flowcrm-go-stats div:last-child {
        display: none;
    }

    .flowcrm-go-stats div {
        padding-left: 6px;
        padding-right: 6px;
    }

    .flowcrm-go-stats span {
        font-size: 16px;
    }

    .flowcrm-go-stats small {
        font-size: 10px;
    }

    .flowcrm-go-signal-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .flowcrm-go-signal {
        min-width: 0;
        justify-content: center;
    }

    .flowcrm-go-signal span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flowcrm-go-company-headline {
        display: grid;
    }

    .flowcrm-go-actions,
    .flowcrm-go-grid,
    .flowcrm-go-dossier-grid,
    .flowcrm-go-skills-grid,
    .flowcrm-go-missing-grid,
    .flowcrm-go-edit-grid,
    .flowcrm-go-profile-section-grid,
    .flowcrm-go-profile-section-grid.is-readonly,
    .flowcrm-go-mobility-grid,
    .flowcrm-go-benefit-grid,
    .flowcrm-go-care-card,
    .flowcrm-go-choice-grid,
    .flowcrm-go-contact-grid,
    .flowcrm-go-form-row,
    .flowcrm-kpb-picker {
        grid-template-columns: 1fr;
    }

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

    .flowcrm-go-commute-grid {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-yes-no-group {
        width: 100%;
    }

    .flowcrm-go-dossier-actions {
        grid-template-columns: 1fr 1fr;
    }

    .flowcrm-go-completion-actions {
        grid-template-columns: 1fr 1fr;
    }

    .flowcrm-go-gisa-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .workbook-document-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .workbook-document-meta {
        grid-column: 2 / 3;
    }

    .flowcrm-go-edit-head,
    .flowcrm-go-contact-head {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-contact-toggle {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .flowcrm-go-contact-title,
    .flowcrm-go-contact-summary-name,
    .flowcrm-go-contact-summary-meta {
        grid-column: 1;
    }

    .flowcrm-go-contact-chevron {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .flowcrm-go-edit-head .flowcrm-go-action,
    .flowcrm-go-contact-actions,
    .flowcrm-kpb-picker .flowcrm-go-action {
        width: 100%;
    }

    .flowcrm-go-contact-actions {
        justify-content: stretch;
    }

    .flowcrm-go-contact-actions .flowcrm-go-mini-btn {
        width: 100%;
    }

    .flowcrm-go-contact-mail {
        grid-column: auto;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    body {
        overflow: hidden;
    }

    .flowcrm-go-app {
        height: 100dvh;
        min-height: 0;
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        overflow: hidden;
    }

    .flowcrm-go-shell {
        height: 100dvh;
        min-height: 0;
        display: grid;
        grid-template-rows: 58px auto minmax(0, 1fr);
        overflow: hidden;
    }

    .flowcrm-go-sidebar {
        position: sticky;
        top: 0;
        width: 88px;
        height: 100dvh;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
        overflow: hidden;
        padding: 8px;
        border-right: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 0;
        background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 58%, #0f3b68 100%);
        box-shadow: 12px 0 28px rgba(15, 23, 42, .16);
    }

    .flowcrm-go-brand {
        height: 58px;
        min-height: 58px;
        justify-content: center;
        margin: -8px -8px 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        background: rgba(255, 255, 255, .98);
    }

    .flowcrm-go-logo-box {
        width: 40px;
        height: 40px;
    }

    .flowcrm-go-brand-text,
    .flowcrm-go-menu-toggle,
    .flowcrm-go-mobile-actions,
    .flowcrm-go-sidebar-footer {
        display: none !important;
    }

    .flowcrm-go-nav,
    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        display: grid;
        align-content: start;
        gap: 7px;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    .flowcrm-go-nav button {
        min-height: 56px;
        grid-template-columns: 1fr;
        grid-template-rows: 28px 18px;
        justify-items: center;
        gap: 4px;
        padding: 6px 5px;
        border-radius: 10px;
        text-align: center;
    }

    .flowcrm-go-nav button i {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .flowcrm-go-nav button span {
        width: 100%;
        color: currentColor;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }

    .flowcrm-go-nav button strong {
        position: absolute;
        top: 6px;
        right: 6px;
        min-width: 20px;
        min-height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .flowcrm-go-app-header.app-header {
        height: 58px !important;
        min-height: 58px !important;
        display: flex !important;
        padding: 0 14px !important;
        border-bottom: 1px solid var(--go-line) !important;
        overflow: visible !important;
    }

    .flowcrm-go-app-header .app-header-search {
        margin-left: auto;
    }

    .flowcrm-go-app-header .header-icon-button,
    .flowcrm-go-app-header .notification-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .flowcrm-go-app-header .theme-switch {
        width: 46px;
        height: 30px;
    }

    .flowcrm-go-app-header .header-user-toggle {
        min-height: 40px !important;
        padding: 3px 8px 3px 3px !important;
    }

    .flowcrm-go-app-header .header-user-photo {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .flowcrm-go-filter-card {
        z-index: 70;
        margin: 10px 12px 0;
        padding: 10px;
        overflow: visible;
    }

    .flowcrm-go-filter-grid {
        grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(104px, 1fr));
        gap: 8px;
    }

    .flowcrm-go-filter-card .modern-search,
    .flowcrm-go-filter-card .form-select,
    .flowcrm-go-filter-toggle,
    .flowcrm-go-filter-reset-all {
        min-height: 40px;
    }

    .flowcrm-go-filter-card .modern-search .input-group-text,
    .flowcrm-go-filter-card .modern-search .form-control {
        min-height: 38px;
    }

    .flowcrm-go-filter-card .modern-search .input-group-text {
        width: 44px;
    }

    .flowcrm-go-filter-chips {
        display: none;
    }

    .flowcrm-go-advanced-filters {
        top: calc(100% + 6px);
        right: 10px;
        left: 10px;
        max-height: calc(100dvh - 146px);
        padding: 10px;
    }

    .flowcrm-go-advanced-filter-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
        gap: 8px;
    }

    .flowcrm-go-workbench {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(260px, 31vw) minmax(0, 1fr);
        overflow: hidden;
    }

    .flowcrm-go-list-pane {
        min-height: 0;
        gap: 8px;
        padding: 10px 12px;
        overflow: hidden;
    }

    .flowcrm-go-list-head {
        font-size: 11px;
    }

    .flowcrm-go-company-list {
        max-height: none;
        overflow-y: auto;
        padding-right: 2px;
    }

    .flowcrm-go-company {
        min-height: 86px;
        gap: 4px;
        padding: 9px 10px;
    }

    .flowcrm-go-company.is-participant-item {
        min-height: 108px;
        grid-template-rows: minmax(16px, auto) minmax(15px, auto) minmax(15px, auto) minmax(22px, auto);
        gap: 5px;
        padding: 10px 10px;
    }

    .flowcrm-go-company.is-case-item {
        min-height: 88px;
        padding: 9px 10px 8px;
    }

    .flowcrm-go-company-title,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-title {
        font-size: 13px;
        line-height: 1.12;
    }

    .flowcrm-go-company-meta,
    .flowcrm-go-company-address,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-meta,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-address {
        font-size: 11px;
        line-height: 1.18;
    }

    .flowcrm-go-company.is-participant-item .flowcrm-go-company-address,
    .flowcrm-go-company.is-participant-item .flowcrm-go-company-meta {
        min-height: 15px;
        line-height: 1.28;
    }

    .flowcrm-go-main {
        min-height: 0;
        gap: 10px;
        padding: 10px 12px;
        overflow: auto;
    }

    .flowcrm-go-topbar {
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .flowcrm-go-topbar h1 {
        font-size: 19px;
    }

    .flowcrm-go-commandbar {
        grid-column: 2;
        grid-row: 1;
        gap: 6px;
    }

    .flowcrm-go-icon-btn {
        width: 38px;
        height: 38px;
    }

    .flowcrm-go-stats {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(66px, 1fr));
        gap: 6px;
    }

    .flowcrm-go-stats div {
        min-height: 40px;
        padding: 6px 8px;
    }

    .flowcrm-go-stats span {
        font-size: 16px;
    }

    .flowcrm-go-stats small {
        font-size: 10px;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    body {
        overflow: hidden;
    }

    .flowcrm-go-app {
        height: 100dvh;
        min-height: 0;
        display: block;
        overflow: hidden;
    }

    .flowcrm-go-shell {
        height: calc(100dvh - 64px);
        min-height: 0;
        display: grid;
        grid-template-rows: 0 auto minmax(0, 1fr);
        overflow: hidden;
    }

    .flowcrm-go-sidebar {
        position: relative;
        top: auto;
        z-index: 220;
        width: 100%;
        max-width: 100vw;
        height: 64px;
        min-height: 64px;
        display: block;
        overflow: visible;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid var(--go-line);
        background: #ffffff;
        box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
    }

    .flowcrm-go-sidebar.is-menu-open {
        background: #ffffff;
        border-bottom-color: var(--go-line);
    }

    .flowcrm-go-brand {
        width: 100%;
        height: 64px;
        min-height: 64px;
        justify-content: flex-start;
        gap: 10px;
        margin: 0;
        padding: 0 334px 0 12px;
        border-bottom: 0;
        background: #ffffff;
    }

    .flowcrm-go-logo-box {
        width: 42px;
        height: 42px;
    }

    .flowcrm-go-brand-text {
        display: block !important;
        min-width: 0;
        max-width: 260px;
    }

    .flowcrm-go-product {
        font-size: 22px;
    }

    .flowcrm-go-menu-toggle {
        position: absolute;
        top: 11px;
        right: 12px;
        z-index: 6;
        width: 42px;
        height: 42px;
        display: inline-grid !important;
        margin-left: 0;
    }

    .flowcrm-go-mobile-actions {
        position: absolute;
        top: 10px;
        right: 64px;
        z-index: 5;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .flowcrm-go-mobile-actions .theme-switch {
        width: 46px;
        height: 30px;
        flex: 0 0 auto;
    }

    .flowcrm-go-mobile-actions .header-icon-button,
    .flowcrm-go-mobile-actions .notification-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #dbe6f2;
        border-radius: 999px;
        background: #ffffff;
        color: #111827;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    }

    .flowcrm-go-mobile-user {
        min-width: 0;
        flex: 0 0 auto;
    }

    .flowcrm-go-mobile-actions .header-user-toggle {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0 !important;
        padding: 3px !important;
        border: 1px solid #dbe6f2 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #111827 !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .05) !important;
    }

    .flowcrm-go-mobile-actions .header-user-toggle .flex-grow-1,
    .flowcrm-go-mobile-actions .header-user-toggle > .bi:not(.header-admin-lock) {
        display: none !important;
    }

    .flowcrm-go-mobile-actions .header-user-photo {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    .flowcrm-go-mobile-actions .dropdown-menu {
        min-width: 230px;
        border-radius: 8px;
    }

    .flowcrm-go-nav,
    .flowcrm-go-sidebar-footer {
        display: none !important;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 4;
        max-height: calc(100dvh - 64px);
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 10px 12px;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, .10);
        background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 100%);
        box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button {
        min-height: 46px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        justify-items: stretch;
        gap: 9px;
        padding: 0 10px;
        border-radius: 10px;
        text-align: left;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button i {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button span {
        width: 100%;
        overflow: hidden;
        color: currentColor;
        font-size: 12px;
        font-weight: 850;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button strong {
        position: static;
        min-width: 28px;
        min-height: 20px;
        padding: 0 6px;
        font-size: 10px;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-sidebar-footer {
        position: absolute;
        top: calc(64px + 66px);
        left: 12px;
        right: 12px;
        z-index: 4;
        display: grid !important;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 10px;
        background: rgba(7, 29, 61, .96);
    }

    .flowcrm-go-app-header.app-header {
        height: 0 !important;
        min-height: 0 !important;
        display: none !important;
        overflow: hidden !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .flowcrm-go-filter-card {
        margin-top: 10px;
    }

    .flowcrm-go-workbench {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(300px, 34vw) minmax(0, 1fr);
        overflow: hidden;
    }
}

@media (max-width: 780px),
       (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-filter-card {
        z-index: 120;
        margin: 10px 12px 0;
        padding: 10px;
        overflow: visible;
    }

    .flowcrm-go-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .flowcrm-go-filter-grid > .modern-search {
        order: 1;
    }

    .flowcrm-go-filter-grid > .flowcrm-go-primary-filters {
        display: none !important;
    }

    .flowcrm-go-filter-toggle {
        order: 2;
    }

    .flowcrm-go-filter-label-desktop {
        display: none !important;
    }

    .flowcrm-go-filter-label-mobile {
        display: inline !important;
    }

    .flowcrm-go-filter-chips {
        display: none !important;
    }

    .flowcrm-go-mobile-filter-slot:not(:empty) {
        display: block;
    }

    .flowcrm-go-mobile-filter-slot .flowcrm-go-primary-filters {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e3edfb;
    }

    .flowcrm-go-mobile-filter-slot .form-select,
    .flowcrm-go-mobile-filter-slot .flowcrm-go-filter-reset-all,
    .flowcrm-go-advanced-filter-grid .form-control,
    .flowcrm-go-advanced-filter-grid .form-select {
        width: 100%;
        min-height: 44px !important;
    }

    .flowcrm-go-advanced-filters {
        top: calc(100% + 8px);
        right: 10px;
        left: 10px;
        max-height: calc(100dvh - 154px);
        padding: 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .flowcrm-go-advanced-filters::before {
        right: 50%;
        transform: translateX(50%) rotate(45deg);
    }

    .flowcrm-go-advanced-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .flowcrm-go-advanced-field-wide {
        grid-column: auto;
    }

    .flowcrm-go-advanced-actions,
    .flowcrm-go-reset-filters {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    body {
        overflow: hidden;
    }

    .flowcrm-go-app {
        height: 100dvh;
        min-height: 0;
        display: block;
        overflow: hidden;
    }

    .flowcrm-go-shell {
        height: calc(100dvh - 64px);
        min-height: 0;
        display: grid;
        grid-template-rows: 0 auto minmax(0, 1fr);
        overflow: hidden;
    }

    .flowcrm-go-sidebar {
        position: relative !important;
        top: auto !important;
        z-index: 240;
        width: 100% !important;
        max-width: 100vw !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--go-line) !important;
        background: #ffffff !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, .04) !important;
    }

    .flowcrm-go-sidebar.is-menu-open {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .flowcrm-go-brand {
        width: 100%;
        height: 64px !important;
        min-height: 64px !important;
        justify-content: flex-start;
        margin: 0 !important;
        padding: 0 334px 0 12px !important;
        border-bottom: 0 !important;
        background: #ffffff !important;
    }

    .flowcrm-go-mobile-actions {
        position: absolute;
        top: 10px;
        right: 64px;
        left: auto;
        z-index: 7;
        width: auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .flowcrm-go-menu-toggle {
        position: absolute;
        top: 11px;
        right: 12px;
        z-index: 8;
        width: 42px;
        height: 42px;
        display: inline-grid !important;
        margin: 0 !important;
    }

    .flowcrm-go-nav,
    .flowcrm-go-sidebar-footer,
    .flowcrm-go-app-header.app-header {
        display: none !important;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 6;
        max-height: calc(100dvh - 64px);
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 10px 12px;
        overflow-y: auto;
        background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 100%);
        box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
    }
}

/* Mobile polish: keep the touch UI calm, compact and app-like. */
@media (max-width: 780px) {
    body {
        background: #f3f7fc;
    }

    .flowcrm-go-app {
        padding-top: 64px;
    }

    .flowcrm-go-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 360;
        width: 100%;
        max-width: 100vw;
        max-height: 100dvh;
        padding: 0;
        overflow: visible;
        background: #ffffff;
    }

    .flowcrm-go-sidebar.is-menu-open {
        padding-bottom: 12px;
        overflow-y: auto;
        background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 64%, #0f3b68 100%);
        box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
    }

    .flowcrm-go-brand {
        height: 64px;
        min-height: 64px;
        margin: 0;
        padding: 0 64px 0 14px;
        border-bottom: 1px solid var(--go-line);
        background: #ffffff;
    }

    .flowcrm-go-menu-toggle {
        position: absolute;
        top: 11px;
        right: 12px;
        width: 42px;
        height: 42px;
        margin: 0;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-mobile-actions {
        justify-content: flex-end;
        margin: 0;
        padding: 10px 14px;
        gap: 9px;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 14px;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button {
        min-height: 48px;
        border-radius: 10px;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:not(.is-active) {
        border-color: rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .045);
        color: rgba(226, 238, 255, .68);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:not(.is-active) i {
        background: rgba(255, 255, 255, .075);
        color: rgba(226, 238, 255, .72);
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:not(.is-active) span {
        font-weight: 720;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:not(.is-active) strong {
        border-color: rgba(255, 255, 255, .10);
        background: rgba(255, 255, 255, .06);
        color: rgba(226, 238, 255, .72);
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:not(.is-active):hover,
    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:not(.is-active):focus-visible {
        border-color: rgba(255, 255, 255, .18);
        background: rgba(255, 255, 255, .09);
        color: #ffffff;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button.is-active {
        border-color: #ffffff;
        background: #ffffff;
        color: #092a5b;
        box-shadow: 0 12px 28px rgba(2, 6, 23, .22);
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-sidebar-footer {
        margin: 10px 14px 0;
    }

    .flowcrm-go-filter-card {
        margin: 10px 10px 0;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
    }

    .flowcrm-go-filter-card .modern-search,
    .flowcrm-go-filter-toggle {
        min-height: 48px;
        border-radius: 10px;
    }

    .flowcrm-go-advanced-filters {
        position: absolute;
        top: calc(100% + 10px);
        right: 10px;
        bottom: auto;
        left: 10px;
        z-index: 320;
        max-height: min(64vh, 620px);
        max-height: min(calc(100svh - 248px), 620px);
        padding: 12px;
        border-radius: 12px;
        background: rgba(248, 251, 255, .99);
        box-shadow: 0 26px 70px rgba(15, 23, 42, .26);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .flowcrm-go-advanced-filters::before {
        display: none;
    }

    .flowcrm-go-list-pane {
        padding: 10px;
        background: #f6f9fd;
    }

    .flowcrm-go-list-head {
        min-height: 28px;
        padding: 0 2px;
    }

    .flowcrm-go-company-list {
        max-height: min(40dvh, 360px);
        gap: 8px;
        padding-right: 0;
    }

    .flowcrm-go-company {
        min-height: 88px;
        gap: 4px;
        padding: 10px 11px;
        border-radius: 10px;
        box-shadow: 0 7px 18px rgba(15, 23, 42, .04);
    }

    .flowcrm-go-company.is-participant-item {
        min-height: 112px;
        grid-template-rows: minmax(18px, auto) minmax(16px, auto) minmax(16px, auto) minmax(24px, auto);
        gap: 6px;
        padding: 11px 12px 10px;
    }

    .flowcrm-go-company.is-case-item {
        min-height: 124px;
        grid-template-rows: auto auto auto minmax(24px, auto);
        gap: 6px;
        padding: 12px 12px 11px;
    }

    .flowcrm-go-company-title,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-title {
        font-size: 13.5px;
        line-height: 1.13;
    }

    .flowcrm-go-company-address,
    .flowcrm-go-company-meta,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-address,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-meta {
        font-size: 11.5px;
        line-height: 1.2;
    }

    .flowcrm-go-company.is-participant-item .flowcrm-go-company-address,
    .flowcrm-go-company.is-participant-item .flowcrm-go-company-meta {
        min-height: 16px;
        line-height: 1.3;
    }

    .flowcrm-go-company.is-participant-item .flowcrm-go-pill-row,
    .flowcrm-go-company.is-participant-item .flowcrm-pill-row {
        min-height: 22px;
        margin-top: 1px;
    }

    .flowcrm-go-company.is-case-item .flowcrm-go-company-address,
    .flowcrm-go-company.is-case-item .flowcrm-go-company-meta {
        min-height: 16px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flowcrm-go-company.is-case-item .flowcrm-go-pill-row,
    .flowcrm-go-company.is-case-item .flowcrm-pill-row {
        min-height: 26px;
        align-self: end;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px;
        margin-top: 2px;
        padding-top: 1px;
    }

    .flowcrm-go-company.is-case-item .flowcrm-pill,
    .flowcrm-go-company.is-case-item .flowcrm-go-project-pill {
        height: 22px;
        min-height: 22px;
    }

    .flowcrm-go-main {
        padding: 10px 10px max(28px, env(safe-area-inset-bottom));
        background: #f3f7fc;
    }

    .flowcrm-go-workbench {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "list"
            "detail";
        gap: 10px;
        overflow: visible;
    }

    .flowcrm-go-main {
        display: contents;
        padding: 0;
        background: transparent;
        overflow: visible;
    }

    .flowcrm-go-topbar {
        grid-area: topbar;
        grid-template-columns: minmax(64px, 1fr) 156px 36px;
        align-items: center;
        gap: 6px;
        margin: 8px 10px 0;
        min-height: 54px;
        padding: 9px 8px;
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    }

    .flowcrm-go-topbar > div:first-child {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .flowcrm-go-topbar .flowcrm-go-kicker,
    .flowcrm-go-topbar h1 {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flowcrm-go-commandbar {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
    }

    .flowcrm-go-topbar .flowcrm-go-sync-status {
        display: none !important;
    }

    .flowcrm-go-topbar .flowcrm-go-icon-btn {
        width: 36px;
        height: 36px;
    }

    .flowcrm-go-stats {
        grid-column: 2;
        grid-row: 1;
        width: 156px;
        max-width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        overflow: visible;
    }

    .flowcrm-go-stats div,
    .flowcrm-go-stats div:last-child {
        min-height: 38px;
        display: block;
        padding: 5px 4px;
        border-radius: 9px;
    }

    .flowcrm-go-stats span {
        font-size: 14px;
        line-height: 1;
    }

    .flowcrm-go-stats small {
        font-size: 9px;
        line-height: 1.05;
    }

    .flowcrm-go-list-pane {
        grid-area: list;
        padding: 0 10px;
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .flowcrm-go-company-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .flowcrm-go-detail {
        grid-area: detail;
        padding: 0 10px max(28px, env(safe-area-inset-bottom));
    }

    .flowcrm-go-topbar h1 {
        font-size: 18px;
        font-weight: 780;
        line-height: 1.05;
    }

    .flowcrm-go-workspace {
        gap: 10px;
    }

    .flowcrm-go-panel {
        --go-case-section-x: 14px;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    }

    .flowcrm-go-company-head {
        padding: 14px;
    }

    .flowcrm-go-company-head h2 {
        font-size: 22px;
        line-height: 1.08;
    }

    .flowcrm-go-subline {
        margin-top: 5px;
        font-size: 12px;
    }

    .flowcrm-go-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .flowcrm-go-case-actions .flowcrm-go-action.is-danger {
        grid-column: 1 / -1;
    }

    .flowcrm-go-actions .flowcrm-go-action:first-child:last-child {
        grid-column: 1 / -1;
    }

    .flowcrm-go-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .flowcrm-go-summary-block .flowcrm-go-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flowcrm-go-info {
        min-height: 66px;
        padding: 10px;
        border-radius: 10px;
    }

    .flowcrm-go-info:has(.flowcrm-go-info-pills),
    .flowcrm-go-source-details {
        grid-column: 1 / -1;
    }

    .flowcrm-go-source-popover {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .flowcrm-go-source-popover::before {
        right: 28px;
    }

    .flowcrm-go-source-popover code {
        max-width: 100%;
        overflow-x: hidden;
    }

    .flowcrm-go-form,
    .flowcrm-go-subpanel,
    .flowcrm-go-completion-card,
    .flowcrm-go-skills-card,
    .flowcrm-go-missing-card {
        border-radius: 10px;
    }

    .flowcrm-go-edit-grid,
    .flowcrm-go-form-row {
        gap: 8px;
    }

    .flowcrm-go-edit-grid input,
    .flowcrm-go-edit-grid select,
    .flowcrm-go-edit-grid textarea,
    .flowcrm-go-form-row input,
    .flowcrm-go-form-row select,
    .flowcrm-go-form-row textarea {
        min-height: 44px;
        border-radius: 9px;
    }
}

@media (max-width: 420px) {
    .flowcrm-go-brand-text {
        max-width: 210px;
    }

    .flowcrm-go-product {
        font-size: 20px;
    }

    .flowcrm-go-grid {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-profile-grid {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-summary-block .flowcrm-go-summary-grid {
        grid-template-columns: 1fr;
    }

    .flowcrm-go-info {
        grid-column: 1 / -1;
    }

    .flowcrm-go-dossier-actions.is-document-actions {
        gap: 6px;
    }

    .flowcrm-go-dossier-actions.is-document-actions .flowcrm-go-action {
        min-height: 38px;
        padding: 0 6px;
        font-size: 11.5px;
        gap: 4px;
    }
}

/* Header icon polish: icons should feel like header controls, not cards. */
.flowcrm-go-app-header .header-icon-button,
.flowcrm-go-app-header .notification-button,
.flowcrm-go-mobile-actions .header-icon-button,
.flowcrm-go-mobile-actions .notification-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #082a5b !important;
    box-shadow: none !important;
}

.flowcrm-go-app-header .header-icon-button i,
.flowcrm-go-app-header .notification-button i,
.flowcrm-go-mobile-actions .header-icon-button i,
.flowcrm-go-mobile-actions .notification-button i {
    font-size: 20px;
    line-height: 1;
}

.flowcrm-go-app-header .header-icon-button:hover,
.flowcrm-go-app-header .header-icon-button:focus-visible,
.flowcrm-go-app-header .notification-button:hover,
.flowcrm-go-app-header .notification-button:focus-visible,
.flowcrm-go-mobile-actions .header-icon-button:hover,
.flowcrm-go-mobile-actions .header-icon-button:focus-visible,
.flowcrm-go-mobile-actions .notification-button:hover,
.flowcrm-go-mobile-actions .notification-button:focus-visible {
    background: rgba(37, 99, 235, .08) !important;
    color: #1d4ed8 !important;
    outline: none;
}

.flowcrm-go-app-header .header-user-toggle,
.flowcrm-go-mobile-actions .header-user-toggle {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.flowcrm-go-mobile-actions .header-user-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
}

.flowcrm-go-app-header .header-user-photo,
.flowcrm-go-mobile-actions .header-user-photo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.flowcrm-go-mobile-actions .header-user-photo {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
}

.theme-switch {
    width: 50px;
    height: 28px;
}

.theme-slider {
    width: 50px;
    height: 28px;
    border: 1px solid #d7e5f6;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}

.theme-icon {
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .16);
}

.theme-switch input:checked + .theme-slider {
    border-color: #1e293b;
    background: linear-gradient(180deg, #0f172a 0%, #1f2937 100%);
}

.theme-switch input:checked + .theme-slider .theme-icon {
    left: 23px;
    background: #f8fafc;
    color: #0f172a;
}

body.darkmode .flowcrm-go-app-header .header-icon-button,
body.darkmode .flowcrm-go-app-header .notification-button,
body.darkmode .flowcrm-go-mobile-actions .header-icon-button,
body.darkmode .flowcrm-go-mobile-actions .notification-button {
    background: transparent !important;
    color: #dbeafe !important;
}

body.darkmode .flowcrm-go-app-header .header-icon-button:hover,
body.darkmode .flowcrm-go-app-header .notification-button:hover,
body.darkmode .flowcrm-go-mobile-actions .header-icon-button:hover,
body.darkmode .flowcrm-go-mobile-actions .notification-button:hover {
    background: rgba(219, 234, 254, .10) !important;
    color: #ffffff !important;
}

@media (max-width: 780px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-list-pane {
        margin: 10px;
        padding: 12px;
        border: 1px solid #dbe4ee;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .065);
        overflow: hidden;
    }

    .flowcrm-go-list-head {
        min-height: 30px;
        padding: 0 2px 8px;
    }

    .flowcrm-go-company-list {
        gap: 8px;
        padding-right: 0;
    }

    body.darkmode .flowcrm-go-list-pane {
        border-color: var(--go-line);
        background: var(--go-panel);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-app {
        height: 100dvh;
        padding-top: 64px;
        overflow: hidden;
    }

    .flowcrm-go-shell {
        height: calc(100dvh - 64px) !important;
    }

    .flowcrm-go-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 360;
        width: 100% !important;
        max-width: 100vw !important;
        height: 64px !important;
        min-height: 64px !important;
        overflow: visible !important;
    }

    .flowcrm-go-brand {
        padding: 0 310px 0 12px !important;
    }

    .flowcrm-go-brand-text {
        max-width: min(260px, calc(100vw - 390px));
    }

    .flowcrm-go-product,
    .flowcrm-go-wordmark {
        font-size: 22px;
    }

    .flowcrm-go-mobile-actions {
        right: 62px !important;
        gap: 8px !important;
    }

    .flowcrm-go-mobile-actions .theme-switch {
        width: 46px !important;
        height: 28px !important;
    }

    .flowcrm-go-mobile-actions .header-icon-button,
    .flowcrm-go-mobile-actions .notification-button,
    .flowcrm-go-mobile-actions .header-user-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .flowcrm-go-menu-toggle {
        top: 12px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .flowcrm-go-shell {
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 0;
    }

    .flowcrm-go-filter-card {
        position: relative;
        z-index: 20;
        width: auto;
        max-width: calc(100vw - 24px);
        margin: 10px 12px 10px !important;
        padding: 10px !important;
    }

    .flowcrm-go-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .flowcrm-go-filter-card .modern-search,
    .flowcrm-go-filter-toggle {
        min-height: 46px !important;
    }

    .flowcrm-go-workbench {
        width: 100%;
        min-height: 0;
        display: grid !important;
        grid-template-columns: minmax(280px, 39vw) minmax(0, 1fr) !important;
        gap: 10px;
        padding: 0 12px 12px;
        overflow: hidden !important;
    }

    .flowcrm-go-list-pane {
        min-width: 0;
        max-width: 100%;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .flowcrm-go-main {
        min-width: 0;
        max-width: 100%;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 10px;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .flowcrm-go-topbar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 58px;
        display: grid !important;
        grid-template-columns: minmax(86px, 1fr) minmax(174px, 230px) 40px;
        align-items: center;
        gap: 8px;
        padding: 8px 10px !important;
        overflow: hidden;
    }

    .flowcrm-go-topbar > div:first-child {
        min-width: 0;
        overflow: hidden;
    }

    .flowcrm-go-topbar .flowcrm-go-kicker,
    .flowcrm-go-topbar h1 {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flowcrm-go-topbar h1 {
        margin-top: 1px;
        font-size: 18px;
        line-height: 1.05;
    }

    .flowcrm-go-commandbar {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: stretch;
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }

    .flowcrm-go-topbar .flowcrm-go-sync-status {
        display: none !important;
    }

    .flowcrm-go-topbar .flowcrm-go-icon-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .flowcrm-go-stats {
        grid-column: 2;
        grid-row: 1;
        width: 100% !important;
        min-width: 0;
        max-width: 230px;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px;
        overflow: hidden;
    }

    .flowcrm-go-stats div,
    .flowcrm-go-stats div:last-child {
        height: 40px !important;
        min-height: 40px !important;
        display: block !important;
        padding: 5px 6px !important;
        overflow: hidden;
    }

    .flowcrm-go-stats span {
        font-size: 15px !important;
        line-height: 1 !important;
    }

    .flowcrm-go-stats small {
        font-size: 9.5px !important;
        line-height: 1.05 !important;
    }

    .flowcrm-go-detail {
        min-width: 0;
        overflow: auto;
    }
}

@media (max-width: 780px) {
    .flowcrm-go-topbar {
        width: auto !important;
        max-width: calc(100% - 20px) !important;
        margin-right: 10px !important;
        margin-left: 10px !important;
    }

    .flowcrm-go-topbar .flowcrm-go-icon-btn,
    .flowcrm-go-stats div,
    .flowcrm-go-stats div:last-child {
        height: 40px !important;
        min-height: 40px !important;
    }
}

body.darkmode .flowcrm-go-stats div,
body.darkmode .flowcrm-go-stats div:last-child {
    border-color: var(--go-line) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, .88) 0%, rgba(15, 23, 42, .76) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 10px 22px rgba(0, 0, 0, .18) !important;
    color: var(--go-ink) !important;
}

body.darkmode .flowcrm-go-stats span {
    color: var(--go-ink) !important;
}

body.darkmode .flowcrm-go-stats small {
    color: var(--go-muted-strong) !important;
}

.flowcrm-go-project-pill,
.flowcrm-go-info .flowcrm-go-project-pill,
.flowcrm-go-dossier-grid .flowcrm-go-project-pill,
.flowcrm-go-head-pills .flowcrm-go-project-pill,
.flowcrm-go-info-pills.is-case-kpb .flowcrm-go-project-pill,
.flowcrm-go-company.is-case-item .flowcrm-go-project-pill {
    min-width: 36px !important;
    width: auto !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: var(--fd-font-main, Inter, "Segoe UI", Arial, sans-serif) !important;
    font-stretch: normal !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.flowcrm-go-project-pill.is-ftr {
    background: #0d6efd !important;
}

.flowcrm-go-project-pill.is-m4m {
    border: 1px solid #dc2626 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

body.darkmode .flowcrm-go-project-pill,
body.darkmode .flowcrm-go-project-pill.is-ftr {
    background: #0d6efd !important;
    color: #ffffff !important;
}

body.darkmode .flowcrm-go-project-pill.is-m4m {
    border-color: #f87171 !important;
    background: #dc2626 !important;
    color: #ffffff !important;
}

@media (max-width: 780px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-list-pane {
        margin: 10px !important;
        padding: 12px !important;
        border: 1px solid #dbe4ee;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .065);
        overflow: hidden !important;
    }

    .flowcrm-go-list-head {
        min-height: 30px;
        padding: 0 2px 8px;
    }

    .flowcrm-go-company-list {
        gap: 8px;
        padding-right: 0;
    }

    body.darkmode .flowcrm-go-list-pane {
        border-color: var(--go-line);
        background: var(--go-panel);
        box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    }
}

@media (max-width: 780px),
       (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-sidebar-legal {
        display: none !important;
    }

    body.flowcrm-go-sidebar-collapsed .flowcrm-go-app {
        --flowcrm-go-sidebar-width: 100%;
    }

    body.flowcrm-go-sidebar-collapsed .flowcrm-go-brand-text {
        display: block !important;
    }

    body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button span {
        display: block !important;
    }

    body.flowcrm-go-sidebar-collapsed .flowcrm-go-nav button strong {
        display: inline-flex !important;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    html,
    body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .flowcrm-go-app {
        height: auto !important;
        min-height: 100dvh !important;
        display: block !important;
        padding-top: 64px !important;
        overflow: visible !important;
    }

    .flowcrm-go-shell {
        height: auto !important;
        min-height: calc(100dvh - 64px) !important;
        display: block !important;
        overflow: visible !important;
    }

    .flowcrm-go-workbench {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "topbar"
            "list"
            "detail" !important;
        gap: 10px !important;
        padding: 0 10px 14px !important;
        overflow: visible !important;
    }

    .flowcrm-go-main {
        display: contents !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .flowcrm-go-topbar {
        grid-area: topbar !important;
        width: auto !important;
        max-width: none !important;
        margin: 8px 0 0 !important;
        overflow: hidden !important;
    }

    .flowcrm-go-list-pane {
        grid-area: list !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    .flowcrm-go-company-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .flowcrm-go-detail {
        grid-area: detail !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 0 max(28px, env(safe-area-inset-bottom)) !important;
        overflow: visible !important;
    }

    body.darkmode .flowcrm-go-list-pane {
        border-color: var(--go-line) !important;
        background: var(--go-panel) !important;
    }
}

@media (max-width: 780px),
       (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-signal-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 0 var(--go-case-section-x, 14px) 14px !important;
    }

    .flowcrm-go-signal {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 34px !important;
        justify-content: center !important;
    }
}

/* Overflow guard: keeps CRMgo inside the viewport without changing the current visual design. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.flowcrm-go-shell,
.flowcrm-go-main,
.flowcrm-go-workbench,
.flowcrm-go-topbar,
.flowcrm-go-sidebar,
.flowcrm-go-list-pane,
.flowcrm-go-detail,
.flowcrm-go-panel,
.flowcrm-go-card,
.flowcrm-go-section,
.flowcrm-go-summary-block,
.flowcrm-go-company,
.flowcrm-go-company-head,
.flowcrm-go-dossier-grid,
.flowcrm-go-detail-grid,
.flowcrm-go-signal-row,
.flowcrm-go-primary-filters,
.flowcrm-go-mobile-filter-slot,
.flowcrm-go-source-popover,
.user-start-modal,
.user-start-body-grid,
.user-start-auth-panel {
    min-width: 0;
    max-width: 100%;
}

.flowcrm-go-app img,
.flowcrm-go-app svg,
.flowcrm-go-app canvas,
.flowcrm-go-app video,
.flowcrm-go-app input,
.flowcrm-go-app select,
.flowcrm-go-app textarea,
.flowcrm-go-app button {
    max-width: 100%;
}

.flowcrm-go-subline,
.flowcrm-go-company-name,
.flowcrm-go-company-meta,
.flowcrm-go-company-card-title,
.flowcrm-go-list-title,
.flowcrm-go-info,
.flowcrm-go-info strong,
.flowcrm-go-info span,
.flowcrm-go-source-popover,
.flowcrm-go-source-popover code,
.flowcrm-go-upload-name-preview,
.flowcrm-go-upload-name-preview strong,
.flowcrm-go-activity-text,
.flowcrm-go-note-body,
.flowcrm-go-card-title,
.flowcrm-go-form-value {
    overflow-wrap: anywhere;
}

@media (max-width: 780px),
       (orientation: landscape) and (max-height: 620px) and (max-width: 1280px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-width: 1280px) {
    .flowcrm-go-app,
    .flowcrm-go-shell,
    .flowcrm-go-main,
    .flowcrm-go-workbench,
    .flowcrm-go-topbar,
    .flowcrm-go-list-pane,
    .flowcrm-go-detail,
    .flowcrm-go-panel,
    .flowcrm-go-section,
    .flowcrm-go-summary-block,
    .flowcrm-go-company,
    .flowcrm-go-source-popover {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .flowcrm-go-workbench,
    .flowcrm-go-main,
    .flowcrm-go-detail {
        min-width: 0 !important;
    }
}

/* Narrow desktop / half-screen mode. A 960px physical browser window at 80%
   zoom is still around 1200 CSS px, so this mode must reach 1280px. */
@media (min-width: 781px) and (max-width: 1280px) {
    html,
    body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .flowcrm-go-app {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        padding-top: 64px !important;
        overflow: visible !important;
    }

    .flowcrm-go-shell {
        height: auto !important;
        min-height: calc(100vh - 64px) !important;
        display: block !important;
        overflow: visible !important;
    }

    .flowcrm-go-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 360;
        width: 100% !important;
        max-width: 100vw !important;
        height: 64px !important;
        min-height: 64px !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--go-line) !important;
        background: #ffffff !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, .04) !important;
    }

    .flowcrm-go-sidebar.is-menu-open {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
    }

    .flowcrm-go-brand {
        width: 100%;
        height: 64px !important;
        min-height: 64px !important;
        justify-content: flex-start;
        gap: 10px;
        margin: 0 !important;
        padding: 0 310px 0 12px !important;
        border-bottom: 0 !important;
        background: #ffffff !important;
    }

    .flowcrm-go-brand-text {
        display: block !important;
        min-width: 0;
        max-width: min(260px, calc(100vw - 390px));
    }

    .flowcrm-go-logo-box {
        width: 42px;
        height: 42px;
    }

    .flowcrm-go-product,
    .flowcrm-go-wordmark {
        font-size: 22px;
    }

    .flowcrm-go-menu-toggle {
        position: absolute;
        top: 11px;
        right: 12px;
        z-index: 8;
        width: 42px;
        height: 42px;
        display: inline-grid !important;
        margin: 0 !important;
    }

    .flowcrm-go-mobile-actions {
        position: absolute;
        top: 10px;
        right: 64px;
        left: auto;
        z-index: 7;
        width: auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .flowcrm-go-mobile-actions .theme-switch {
        width: 46px !important;
        height: 30px !important;
        flex: 0 0 auto;
    }

    .flowcrm-go-mobile-actions .header-icon-button,
    .flowcrm-go-mobile-actions .notification-button,
    .flowcrm-go-mobile-actions .header-user-toggle {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .flowcrm-go-mobile-actions .header-user-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 2px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .flowcrm-go-mobile-actions .header-user-toggle .flex-grow-1,
    .flowcrm-go-mobile-actions .header-user-name,
    .flowcrm-go-mobile-actions .header-user-role,
    .flowcrm-go-mobile-actions .header-admin-lock,
    .flowcrm-go-mobile-actions .header-user-toggle > .bi:not(.header-admin-lock) {
        display: none !important;
    }

    .flowcrm-go-mobile-actions .header-user-photo {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        margin: 0 !important;
    }

    .flowcrm-go-nav,
    .flowcrm-go-sidebar-footer,
    .flowcrm-go-app-header.app-header {
        display: none !important;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 6;
        max-height: calc(100vh - 64px);
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 12px;
        overflow-y: auto;
        background: linear-gradient(180deg, #071d3d 0%, #0c2f5d 100%);
        box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button {
        min-height: 48px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        justify-items: stretch;
        gap: 9px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .045);
        text-align: left;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button.is-active {
        border-color: #ffffff;
        background: #ffffff;
        color: #092a5b;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav button span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flowcrm-go-filter-card {
        z-index: 120;
        width: auto;
        max-width: calc(100vw - 24px);
        margin: 10px 12px 10px !important;
        padding: 10px !important;
        overflow: visible;
    }

    .flowcrm-go-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .flowcrm-go-filter-grid > .modern-search {
        order: 1;
    }

    .flowcrm-go-filter-grid > .flowcrm-go-primary-filters {
        display: none !important;
    }

    .flowcrm-go-filter-toggle {
        order: 2;
    }

    .flowcrm-go-filter-label-desktop {
        display: none !important;
    }

    .flowcrm-go-filter-label-mobile {
        display: inline !important;
    }

    .flowcrm-go-filter-chips {
        display: none !important;
    }

    .flowcrm-go-mobile-filter-slot:not(:empty) {
        display: block;
    }

    .flowcrm-go-mobile-filter-slot .flowcrm-go-primary-filters {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e3edfb;
    }

    .flowcrm-go-advanced-filters {
        top: calc(100% + 8px);
        right: 10px;
        left: 10px;
        max-height: min(calc(100vh - 188px), 620px);
        padding: 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .flowcrm-go-advanced-filters::before {
        display: none;
    }

    .flowcrm-go-advanced-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .flowcrm-go-advanced-field-wide {
        grid-column: auto;
    }

    .flowcrm-go-workbench {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "topbar"
            "list"
            "detail" !important;
        gap: 10px !important;
        padding: 0 12px 18px !important;
        overflow: visible !important;
    }

    .flowcrm-go-main {
        display: contents !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .flowcrm-go-topbar {
        grid-area: topbar !important;
        width: auto !important;
        max-width: none !important;
        min-height: 58px;
        display: grid !important;
        grid-template-columns: minmax(120px, 1fr) minmax(230px, 320px) 42px;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
        padding: 8px 10px !important;
        overflow: hidden !important;
    }

    .flowcrm-go-topbar h1 {
        margin-top: 1px;
        font-size: 19px;
        line-height: 1.05;
    }

    .flowcrm-go-topbar .flowcrm-go-sync-status {
        display: none !important;
    }

    .flowcrm-go-stats {
        grid-column: 2;
        grid-row: 1;
        width: 100% !important;
        max-width: 320px;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px;
        overflow: hidden;
    }

    .flowcrm-go-stats div,
    .flowcrm-go-stats div:last-child,
    .flowcrm-go-topbar .flowcrm-go-icon-btn {
        height: 42px !important;
        min-height: 42px !important;
    }

    .flowcrm-go-commandbar {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .flowcrm-go-list-pane {
        grid-area: list !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .065);
        overflow: hidden !important;
    }

    .flowcrm-go-company-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .flowcrm-go-company {
        min-height: 92px;
    }

    .flowcrm-go-company.is-case-item {
        min-height: 116px;
    }

    .flowcrm-go-detail {
        grid-area: detail !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 0 max(28px, env(safe-area-inset-bottom)) !important;
        overflow: visible !important;
    }

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

    .flowcrm-go-grid,
    .flowcrm-go-summary-block .flowcrm-go-summary-grid,
    .flowcrm-go-profile-grid,
    .flowcrm-go-profile-section-grid.is-readonly {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .flowcrm-go-info:has(.flowcrm-go-info-pills),
    .flowcrm-go-source-details {
        grid-column: 1 / -1;
    }

    body.darkmode .flowcrm-go-list-pane {
        border-color: var(--go-line) !important;
        background: var(--go-panel) !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    }
}

@media (min-width: 781px) and (max-width: 940px) {
    .flowcrm-go-brand {
        padding-right: 238px !important;
    }

    .flowcrm-go-brand-text {
        max-width: min(250px, calc(100vw - 318px));
    }

    .flowcrm-go-mobile-actions {
        gap: 6px !important;
    }

    .flowcrm-go-mobile-actions .theme-switch {
        width: 44px !important;
    }

    .flowcrm-go-sidebar.is-menu-open .flowcrm-go-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final guard: responsive compaction must not clip descenders in list cards. */
.flowcrm-go-company-title,
.flowcrm-go-company.is-case-item .flowcrm-go-company-title,
.flowcrm-go-company.is-participant-item .flowcrm-go-company-title {
    line-height: 1.28 !important;
}

.flowcrm-go-title-text,
.flowcrm-go-company-title span:first-child {
    padding-bottom: 2px !important;
}

.flowcrm-go-company-address,
.flowcrm-go-company-meta,
.flowcrm-go-company.is-case-item .flowcrm-go-company-address,
.flowcrm-go-company.is-case-item .flowcrm-go-company-meta,
.flowcrm-go-company.is-company-item .flowcrm-go-company-address,
.flowcrm-go-company.is-company-item .flowcrm-go-company-meta,
.flowcrm-go-company.is-participant-item .flowcrm-go-company-address,
.flowcrm-go-company.is-participant-item .flowcrm-go-company-meta {
    min-height: 19px !important;
    display: block !important;
    line-height: 1.46 !important;
    padding-bottom: 2px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.flowcrm-go-company.is-case-item {
    min-height: 112px !important;
    padding-bottom: 12px !important;
}

.flowcrm-go-company.is-company-item,
.flowcrm-go-company.is-participant-item {
    min-height: 122px !important;
    padding-bottom: 12px !important;
}

/* Final guard: count tiles should read as polished dashboard metrics. */
.flowcrm-go-stats div,
.flowcrm-go-stats div:last-child {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 6px 10px 6px 13px !important;
    border: 1px solid #dbe4ee !important;
    border-radius: var(--go-radius) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .92),
        0 8px 18px rgba(15, 23, 42, .045) !important;
    overflow: hidden !important;
}

.flowcrm-go-stats div::before,
.flowcrm-go-stats div:last-child::before {
    content: "" !important;
    position: absolute !important;
    top: 8px !important;
    bottom: 8px !important;
    left: 7px !important;
    width: 3px !important;
    border-radius: 999px !important;
    background: rgba(37, 99, 235, .58) !important;
}

.flowcrm-go-stats div:nth-child(2)::before {
    background: rgba(20, 184, 166, .52) !important;
}

.flowcrm-go-stats div:nth-child(3)::before {
    background: rgba(99, 102, 241, .50) !important;
}

.flowcrm-go-stats span {
    line-height: .98 !important;
    padding-bottom: 1px !important;
}

.flowcrm-go-stats small {
    font-weight: 680 !important;
    line-height: 1.05 !important;
}

body.darkmode .flowcrm-go-stats div,
body.darkmode .flowcrm-go-stats div:last-child {
    border-color: rgba(148, 163, 184, .22) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, .88) 0%, rgba(15, 23, 42, .76) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 10px 22px rgba(0, 0, 0, .18) !important;
}

body.darkmode .flowcrm-go-stats span {
    color: #e5edf8 !important;
}

body.darkmode .flowcrm-go-stats small {
    color: #9fb1c8 !important;
}

@media (max-width: 780px) {
    .flowcrm-go-topbar {
        grid-template-columns: minmax(70px, .85fr) minmax(196px, 1.15fr) 42px !important;
        gap: 6px !important;
        padding: 9px 8px !important;
    }

    .flowcrm-go-commandbar {
        justify-self: end !important;
    }

    .flowcrm-go-topbar .flowcrm-go-icon-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    #flowCrmGoRefreshBtn.flowcrm-go-icon-btn {
        --flowcrm-go-refresh-size: 42px;
    }

    .flowcrm-go-stats {
        width: 100% !important;
        min-width: 196px !important;
        grid-template-columns: repeat(3, minmax(58px, 1fr)) !important;
        gap: 7px !important;
    }

    .flowcrm-go-stats div,
    .flowcrm-go-stats div:last-child {
        padding: 6px 8px 6px 12px !important;
    }

    .flowcrm-go-stats div::before,
    .flowcrm-go-stats div:last-child::before {
        left: 6px !important;
    }

    .flowcrm-go-stats span {
        font-size: 16px !important;
    }

    .flowcrm-go-stats small {
        font-size: 10px !important;
    }
}

@media (max-width: 380px) {
    .flowcrm-go-topbar {
        grid-template-columns: minmax(58px, .75fr) minmax(178px, 1.25fr) 40px !important;
        gap: 5px !important;
    }

    .flowcrm-go-topbar .flowcrm-go-icon-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    #flowCrmGoRefreshBtn.flowcrm-go-icon-btn {
        --flowcrm-go-refresh-size: 40px;
    }

    .flowcrm-go-stats {
        min-width: 178px !important;
        grid-template-columns: repeat(3, minmax(52px, 1fr)) !important;
        gap: 5px !important;
    }

    .flowcrm-go-stats div,
    .flowcrm-go-stats div:last-child {
        padding: 6px 6px 6px 11px !important;
    }
}
