 

.ctc-root {
    --bilox-font-display: var(--ws-font-heading);
    --bilox-font-body: var(--ws-font-sans);
    --bilox-font-mono: var(--ws-font-mono);
    --bilox-surface: var(--cdb-panel, var(--ws-surface));
    --bilox-surface-solid: var(--ws-surface);
    --bilox-surface-muted: var(--ws-surface-soft);
    --bilox-line: var(--ws-line);
    --bilox-line-strong: var(--ws-line-strong);
    --bilox-text: var(--ws-fg);
    --bilox-muted: var(--ws-fg-muted);
    --bilox-faint: var(--ws-fg-soft);
    --bilox-primary: var(--ws-primary);
    --bilox-on-primary: var(--ws-primary-fg);
    --bilox-green: var(--ws-accent-emerald);
    --bilox-green-soft: var(--ws-accent-emerald-soft);
    --bilox-amber: var(--ws-accent-gold);
    --bilox-amber-soft: var(--ws-accent-gold-soft);
    --bilox-red: var(--ws-error);
    --bilox-red-soft: var(--ws-error-soft);
    --bilox-radius-md: var(--ws-radius-md);
    --bilox-radius-lg: var(--ws-radius-lg);
    --bilox-radius-xl: var(--ws-radius-xl);
    --bilox-shadow-card: var(--ws-shadow-sm);
    --bilox-shadow-hover: var(--ws-shadow-md);
    --bilox-shadow-panel: var(--ws-shadow-lg);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1180px;
    min-height: 100%;
    min-width: 0;
    margin: 0 auto;
    gap: 18px;
    color: var(--bilox-text);
    font-family: var(--bilox-font-body);
}

.ctc-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

body.theme-dark .ctc-top {
    background: transparent;
}

.ctc-top .cs-meta {
    margin-bottom: 10px;
    color: var(--cdb-muted, var(--bilox-muted));
    font: 800 11px/1 var(--bilox-font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ctc-top h3 {
    margin: 0 0 10px !important;
    color: var(--cdb-text, var(--bilox-text));
    font: 850 clamp(28px, 3vw, 42px)/1 var(--bilox-font-display);
    letter-spacing: -0.045em;
}

.ctc-detail-sub {
    max-width: 720px;
    color: var(--cdb-muted, var(--bilox-muted));
    font-size: 14px;
    line-height: 1.46;
}

.ctc-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ctc-summary-card {
    position: relative;
    display: block;
    min-height: 104px;
    padding: 16px 18px;
    border: 1px solid var(--bilox-line);
    border-radius: 18px;
    background: var(--bilox-surface);
    box-shadow: var(--bilox-shadow-card);
    backdrop-filter: blur(18px);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ctc-summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--ws-primary-line, var(--bilox-line));
    box-shadow: var(--ws-shadow-lg, var(--bilox-shadow-card));
}

.ctc-summary-card:focus-visible {
    outline: 2px solid var(--ws-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ctc-summary-card,
    .ctc-summary-card:hover { transition: none; transform: none; }
}

.ctc-summary-card::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 19px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--bilox-faint);
}

.ctc-summary-card.g::after { background: var(--bilox-green); }
.ctc-summary-card.w::after { background: var(--bilox-amber); }
.ctc-summary-card.d {
    border-color: rgba(186, 26, 26, 0.24);
    background: color-mix(in srgb, var(--bilox-red-soft) 32%, var(--bilox-surface));
}
.ctc-summary-card.d::after { background: var(--bilox-red); }
.ctc-summary-card.m::after { background: var(--bilox-faint); }

.ctc-summary-label {
    color: var(--bilox-muted);
    font: 800 10px/1 var(--bilox-font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ctc-summary-card.d .ctc-summary-label,
.ctc-summary-card.d .ctc-summary-value {
    color: var(--bilox-red);
}

.ctc-summary-value {
    margin-top: 18px;
    color: var(--bilox-text);
    font: 850 clamp(24px, 2vw, 30px)/1 var(--bilox-font-display);
    letter-spacing: -0.045em;
}

.ctc-actions,
.ctc-filterbar,
.ctc-actions-row,
.ctc-chip-row,
.ctc-taglist,
.ctc-filelist {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ctc-filterbar {
     
    position: relative;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bilox-line);
    overflow: visible;
}

.ctc-route-tabs,
.ctc-filter-group {
    grid-column: span 3;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.ctc-filter-tools {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    grid-column: span 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.ctc-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ctc-filter-select-wrap {
    position: relative;
    z-index: 201;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.ctc-type-dropdown {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ctc-type-dropdown .dropdown-trigger {
    min-height: var(--ws-control-h, 44px);
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    font-family: var(--bilox-font-body);
    font-weight: 600;
}

.ctc-type-dropdown .dropdown-trigger[disabled] {
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
}

.ctc-type-dropdown .dropdown-trigger[disabled]:hover {
    border-color: var(--ws-line);
}

.ctc-type-dropdown .dropdown-list {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    max-height: min(320px, calc(100vh - 220px));
    max-height: min(320px, calc(100dvh - 220px));
    overflow-y: auto;
    z-index: 120;
}

.ctc-type-dropdown .dropdown-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: var(--bilox-font-body);
}

.ctc-type-dropdown .dropdown-option:hover {
    background-color: var(--segment-bg);
    color: var(--accent-color);
}

.ctc-layout {
    min-height: 0;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 36px;
}

body.sidebar-collapsed.company-dashboard-polish .ctc-root {
    max-width: min(1180px, calc(100vw - var(--shell-sidebar-rail-width, 78px) - var(--shell-sidebar-rail-width, 78px)));
}

.ctc-layout.grid {
    display: block;
}

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

.ctc-grid > .bx-empty {
    grid-column: 1 / -1;
}

.ctc-panel {
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-xl);
    background: var(--bilox-surface);
    box-shadow: var(--bilox-shadow-panel);
    backdrop-filter: blur(22px);
}

.ctc-task-card {
    min-width: 0;
}

.ctc-task-card .card-body {
    justify-content: flex-start;
}

.ctc-task-card .card-title {
    width: 100%;
    text-align: left;
}

.ctc-task-card.competition-card--urgent {
    animation: none;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--cdb-red, var(--ws-error)) 22%, transparent),
        var(--ws-shadow-md);
}

.ctc-task-card.competition-card--urgent::before {
    content: none;
}

.ctc-task-card.is-selected {
    border-color: var(--ws-primary-line, var(--ws-line-strong));
    box-shadow: 0 0 0 2px var(--ws-primary-soft, rgba(42, 31, 61, 0.08)), var(--ws-shadow-lg);
}

.ctc-task-card .cs-status {
    flex: 0 0 auto;
}

.ctc-task-card .type-badge--attention {
    background: var(--bilox-amber-soft);
    color: var(--bilox-amber);
}

.ctc-card-action {
    display: flex;
     
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bilox-line);
}

.ctc-card-action > .btn-primary,
.ctc-card-action > .btn-secondary,
.ctc-card-action > .ctc-link {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

body.ctc-detail-open #companyCompetitionsPane {
    overflow: hidden;
}

.ctc-actions-row--primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ctc-actions-row--primary > .btn-primary,
.ctc-actions-row--primary > .btn-secondary,
.ctc-actions-row--primary > a.btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.ctc-brief {
    padding-top: 4px;
}

.ctc-detail-head,
.ctc-kv {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.ctc-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 12px;
    align-items: stretch;
}

.ctc-body-note {
    color: var(--bilox-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ctc-chip,
.cs-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bilox-surface-muted);
    color: var(--bilox-muted);
    font: 600 12px/1 var(--bilox-font-body);
    white-space: nowrap;
}

.ctc-chip.attention,
.cs-status.w {
    background: var(--bilox-amber-soft);
    color: var(--bilox-amber);
}

.ctc-chip.success,
.cs-status.g {
    background: var(--bilox-green-soft);
    color: var(--bilox-green);
}

.cs-status.d,
.cs-status.r {
    background: var(--bilox-red-soft);
    color: var(--bilox-red);
}

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

.ctc-detail-panel {
    min-width: 0;
    padding: 0 clamp(16px, 3vw, 26px) clamp(20px, 3vw, 28px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.ctc-detail-panel .ctc-detail-head {
    margin: clamp(16px, 2.4vw, 24px) 0 0;
    padding: clamp(16px, 2.2vw, 22px);
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-lg);
    background: var(--bilox-surface-solid);
    box-shadow: var(--bilox-shadow-card);
}

.ctc-detail-panel .ctc-detail-tabs {
    margin-top: 22px;
}

.ctc-detail-panel .ctc-detail-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ctc-detail-panel .ctc-detail-body > .ctc-actions-row--primary {
    margin-top: 6px;
}

.ctc-detail-title {
    margin: 10px 0 0;
    color: var(--bilox-text);
    font: 800 clamp(26px, 2.4vw, 34px)/1.1 var(--bilox-font-display);
    letter-spacing: -0.04em;
}

.ctc-hero-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ctc-detail-tabs {
    display: flex;
    gap: 30px;
    margin: 8px 0 18px;
    border-bottom: 1px solid var(--bilox-line);
    flex-wrap: wrap;
}

.ctc-detail-tab {
    position: relative;
    padding: 12px 0 14px;
    border: 0;
    background: transparent;
    color: var(--bilox-muted);
    font: 700 14px/1 var(--bilox-font-body);
    cursor: pointer;
}

.ctc-detail-tab.active {
    color: var(--bilox-text);
}

.ctc-detail-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--bilox-primary);
}

.ctc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ctc-stat-card,
.ctc-body-card,
.ctc-payment-card,
.ctc-activity-item {
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-lg);
    background: var(--bilox-surface-muted);
}

.ctc-stat-card {
    padding: 20px;
}

.ctc-stat-card {
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 220ms ease,
        box-shadow 260ms ease;
}

.ctc-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--bilox-line-strong, var(--cdb-line-strong, var(--ws-line-strong)));
    box-shadow: var(--bilox-shadow-panel, 0 26px 70px rgba(33, 38, 58, 0.11));
}

@media (prefers-reduced-motion: reduce) {
    .ctc-stat-card { transition: none; }
    .ctc-stat-card:hover { transform: none; }
}

.ctc-stat-value {
    margin-top: 12px;
    color: var(--bilox-text);
    font: 800 26px/1 var(--bilox-font-display);
    letter-spacing: -0.035em;
}

.ctc-lifecycle {
    margin: 22px 0 18px;
}

.ctc-lifecycle .ws-stepper {
    margin-top: 16px;
}

.ctc-card-action {
    display: flex;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bilox-line);
}

.ctc-card-action > .btn-primary,
.ctc-card-action > .btn-secondary,
.ctc-card-action > .ctc-link {
    width: 100%;
    justify-content: center;
}

body.ctc-detail-open #companyCompetitionsPane {
    overflow: hidden;
}

.ctc-actions-row--primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ctc-actions-row--primary > .btn-primary,
.ctc-actions-row--primary > .btn-secondary,
.ctc-actions-row--primary > a.btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.ctc-brief {
    padding-top: 4px;
}

.ctc-detail-head,
.ctc-kv {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.ctc-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 12px;
    align-items: stretch;
}

.ctc-body-title,
.ctc-stat-label,
.ctc-lifecycle-title {
    color: var(--bilox-muted);
    font: 500 12px/1 var(--bilox-font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ctc-body-note {
    color: var(--bilox-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ctc-chip,
.cs-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bilox-surface-muted);
    color: var(--bilox-muted);
    font: 600 12px/1 var(--bilox-font-body);
    white-space: nowrap;
}

.ctc-chip.attention,
.cs-status.w {
    background: var(--bilox-amber-soft);
    color: var(--bilox-amber);
}

.ctc-chip.success,
.cs-status.g {
    background: var(--bilox-green-soft);
    color: var(--bilox-green);
}

.cs-status.d,
.cs-status.r {
    background: var(--bilox-red-soft);
    color: var(--bilox-red);
}

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

.ctc-detail-panel {
    min-width: 0;
    padding: 0 clamp(16px, 3vw, 26px) clamp(20px, 3vw, 28px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.ctc-detail-panel .ctc-detail-head {
    margin: clamp(16px, 2.4vw, 24px) 0 0;
    padding: clamp(16px, 2.2vw, 22px);
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-lg);
    background: var(--bilox-surface-solid);
    box-shadow: var(--bilox-shadow-card);
}

.ctc-detail-panel .ctc-detail-tabs {
    margin-top: 22px;
}

.ctc-detail-title {
    margin: 10px 0 0;
    color: var(--bilox-text);
    font: 800 clamp(26px, 2.4vw, 34px)/1.1 var(--bilox-font-display);
    letter-spacing: -0.04em;
}

.ctc-hero-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ctc-detail-tabs {
    display: flex;
    gap: 30px;
    margin: 8px 0 18px;
    border-bottom: 1px solid var(--bilox-line);
    flex-wrap: wrap;
}

.ctc-detail-tab {
    position: relative;
    padding: 12px 0 14px;
    border: 0;
    background: transparent;
    color: var(--bilox-muted);
    font: 700 14px/1 var(--bilox-font-body);
    cursor: pointer;
}

.ctc-detail-tab.active {
    color: var(--bilox-text);
}

.ctc-detail-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--bilox-primary);
}

.ctc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ctc-stat-card,
.ctc-body-card,
.ctc-payment-card,
.ctc-activity-item {
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-lg);
    background: var(--bilox-surface-muted);
}

.ctc-stat-card {
    padding: 20px;
}

.ctc-stat-card {
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 220ms ease,
        box-shadow 260ms ease;
}

.ctc-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--bilox-line-strong, var(--cdb-line-strong, var(--ws-line-strong)));
    box-shadow: var(--bilox-shadow-panel, 0 26px 70px rgba(33, 38, 58, 0.11));
}

@media (prefers-reduced-motion: reduce) {
    .ctc-stat-card { transition: none; }
    .ctc-stat-card:hover { transform: none; }
}

.ctc-stat-value {
    margin-top: 12px;
    color: var(--bilox-text);
    font: 800 26px/1 var(--bilox-font-display);
    letter-spacing: -0.035em;
}

.ctc-payment-card,
.ctc-activity-item {
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-lg);
    background: var(--bilox-surface-muted);
}

.ctc-stat-card {
    padding: 20px;
}

.ctc-stat-card {
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
        border-color 220ms ease,
        box-shadow 260ms ease;
}

.ctc-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--bilox-line-strong, var(--cdb-line-strong, var(--ws-line-strong)));
    box-shadow: var(--bilox-shadow-panel, 0 26px 70px rgba(33, 38, 58, 0.11));
}

@media (prefers-reduced-motion: reduce) {
    .ctc-stat-card { transition: none; }
    .ctc-stat-card:hover { transform: none; }
}

.ctc-stat-value {
    margin-top: 12px;
    color: var(--bilox-text);
    font: 800 26px/1 var(--bilox-font-display);
    letter-spacing: -0.035em;
}

.ctc-payment-card,
.ctc-body-card,
.ctc-activity-item {
    padding: 18px;
}

.ctc-body-card {
    flex: 1 1 300px;
}

.ctc-body-text {
    color: var(--bilox-text);
    line-height: 1.62;
    white-space: pre-wrap;
}

.ctc-kv {
    padding: 10px 0;
    border-bottom: 1px solid var(--bilox-line);
}

.ctc-kv:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ctc-kv-key {
    color: var(--bilox-muted);
}

.ctc-kv-value {
    color: var(--bilox-text);
    font-weight: 700;
    text-align: right;
}

.ctc-notice {
    padding: 14px 16px;
    border: 1px solid rgba(176, 96, 0, 0.2);
    border-radius: var(--bilox-radius-md);
    background: var(--bilox-amber-soft);
    color: var(--bilox-amber);
    line-height: 1.45;
}

.ctc-notice--error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-color: var(--ws-error-line);
    background: var(--ws-error-soft);
    color: var(--ws-error);
}

.ctc-detail-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ctc-tag,
.ctc-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bilox-surface-muted);
    color: var(--bilox-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ctc-file {
    border-radius: var(--bilox-radius-md);
    border: 1px solid var(--bilox-line);
}

.ctc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.ctc-label {
    color: var(--bilox-muted);
    font: 700 12px/1 var(--bilox-font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ctc-select,
.ctc-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-md);
     
    background-color: var(--bilox-surface-solid);
    color: var(--bilox-text);
    font: inherit;
}

.ctc-select {
    min-height: 46px;
    padding-right: 40px;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ctc-textarea {
    min-height: 96px;
    resize: vertical;
}

.ctc-empty {
    padding: 20px;
    border: 1px dashed var(--bilox-line-strong);
    border-radius: var(--bilox-radius-lg);
    background: var(--bilox-surface-muted);
    color: var(--bilox-muted);
}

.ctc-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctc-activity-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.ctc-activity-title {
    color: var(--bilox-text);
    font-weight: 800;
}

.ctc-activity-note {
    margin-top: 4px;
    color: var(--bilox-muted);
    font-size: 13px;
}

.ctc-link,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--bilox-radius-md);
    font: 700 14px/1 var(--bilox-font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary,
.ctc-link.primary {
    border: 1px solid var(--ws-primary);
    background: var(--ws-primary);
    color: var(--ws-primary-fg);
}

.btn-secondary {
    border: 1px solid var(--bilox-line);
    background: var(--bilox-surface);
    color: var(--bilox-text);
}

.btn-primary:hover,
.btn-secondary:hover,
.ctc-link:hover {
    transform: translateY(-1px);
}

.ctc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
     
    background: var(--ws-scrim);
}

.ctc-modal-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(520px, 100%);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--bilox-line);
    border-radius: var(--bilox-radius-xl);
    background: var(--bilox-surface-solid);
    box-shadow: var(--bilox-shadow-panel);
}

@media (max-width: 1100px) {
    .ctc-summary-grid,
    .ctc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ctc-filterbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ctc-route-tabs,
    .ctc-filter-tools {
        grid-column: 1;
        width: 100%;
    }

    .ctc-filter-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .ctc-top,
    .ctc-detail-head,
    .ctc-kv,
    .ctc-actions-row,
    .ctc-activity-item {
        flex-direction: column;
        align-items: stretch;
    }

    .ctc-detail-grid {
        grid-template-columns: 1fr;
    }

    .ctc-grid,
    .ctc-stat-grid {
        grid-template-columns: 1fr;
    }

    .ctc-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ctc-summary-card {
        min-height: 0;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .ctc-summary-label {
        display: block;
        min-width: 0;
        overflow: hidden;
        font-size: 9px;
        letter-spacing: 0.1em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ctc-summary-value {
        margin-top: 10px;
        font-size: 26px;
    }

    .ctc-layout {
        overflow: visible;
    }

    .ctc-filter-select-wrap,
    .ctc-type-dropdown {
        width: 100%;
    }

    .ctc-route-tabs:is(.cb-segment) {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .ctc-route-tabs:is(.cb-segment)::-webkit-scrollbar { display: none; }

    .ctc-route-tabs:is(.cb-segment) > .ctc-filter {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

}

body.company-dashboard-polish #companyCompetitionsPane,
body.company-dashboard-polish.company-competitions-scroll-lock #companyCompetitionsPane {
    display: block;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 64px;
}

body.company-dashboard-polish #companyCompetitionsPane > #csCompetitionsMeta,
body.company-dashboard-polish #companyCompetitionsPane > .cs-row,
body.company-dashboard-polish #companyCompetitionsPane > #csCompetitionsTabs {
    display: none;
}

body.company-dashboard-polish #csTasksCenter,
body.company-dashboard-polish.company-competitions-scroll-lock #csTasksCenter {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
}

body.company-dashboard-polish #csTasksCenter .ctc-root,
body.company-dashboard-polish.company-competitions-scroll-lock #csTasksCenter .ctc-root {
    height: auto;
    min-height: 100%;
}

body.company-dashboard-polish #csTasksCenter .ctc-layout,
body.company-dashboard-polish.company-competitions-scroll-lock #csTasksCenter .ctc-layout {
    height: auto;
    max-height: none;
    overflow: visible;
}

.ctc-rejection {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--bilox-red, var(--ws-error)) 26%, transparent);
    border-radius: var(--bilox-radius-lg, 16px);
    background: color-mix(in srgb, var(--bilox-red, var(--ws-error)) 7%, transparent);
}

.ctc-rejection-title {
    color: var(--bilox-red, var(--ws-error));
    font: 800 11px/1 var(--bilox-font-mono, monospace);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ctc-rejection-text {
    color: var(--bilox-text);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ctc-boost {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius-lg, 16px);
    background: var(--ws-surface-soft, var(--ws-surface));
}

.ctc-boost__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ctc-boost__title {
    color: var(--ws-fg);
    font: 800 15px/1.25 var(--ws-font-heading, inherit);
}

.ctc-boost__sub {
    color: var(--ws-fg-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ctc-boost__tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ctc-boost__tip {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius-md, 12px);
    background: var(--ws-surface);
}

.ctc-boost__tip-title {
    color: var(--ws-fg);
    font: 700 13px/1.3 var(--ws-font-sans, inherit);
}

.ctc-boost__tip-text {
    color: var(--ws-fg-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.ctc-boost__extend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ws-line);
}

.ctc-boost__extend-label {
    flex: 1 1 160px;
    color: var(--ws-fg);
    font: 700 13px/1.3 var(--ws-font-sans, inherit);
}

.ctc-boost__days {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--ws-line);
    border-radius: 999px;
    background: var(--ws-surface);
}

.ctc-boost__day {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ws-fg-muted);
    font: 700 12.5px/1 var(--ws-font-sans, inherit);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.ctc-boost__day:hover:not(:disabled) {
    color: var(--ws-fg);
    background: var(--ws-surface-soft, transparent);
}

.ctc-boost__day.is-active {
    background: var(--ws-primary);
    color: var(--ws-primary-fg);
}

.ctc-boost__day:disabled,
.ctc-boost__submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ctc-boost__note {
    color: var(--ws-fg-soft, var(--ws-fg-muted));
    font-size: 12.5px;
    line-height: 1.5;
}

.ctc-boost__error {
    padding: 10px 12px;
    border: 1px solid var(--ws-error-line);
    border-radius: var(--ws-radius-md, 12px);
    background: var(--ws-error-soft);
    color: var(--ws-error);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .ctc-boost__extend { align-items: stretch; }
    .ctc-boost__days { justify-content: space-between; }
    .ctc-boost__submit { width: 100%; }
}

.ctc-sheet-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.ctc-file--winner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;
    justify-content: center;
}

.ctc-file--winner .ctc-file-label {
    color: var(--bilox-text);
    font: 800 12px/1.2 var(--bilox-font-body, inherit);
}

.ctc-file--winner .ctc-file-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--bilox-muted);
    font: 700 10px/1.35 var(--bilox-font-mono, monospace);
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ctc-file--winner:hover {
    border-color: var(--bilox-line-strong, var(--bilox-line));
}

.ctc-body-card .ctc-filelist {
    margin-top: 10px;
    gap: 10px;
}

.ctc-grid-originals .ctc-filelist {
    gap: 12px;
}

.ctc-detail-panel .ctc-detail-body > .ctc-body-card {
    flex: 0 0 auto;
}

.ctc-body-card--winner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ctc-body-card--winner > * {
    margin: 0;
}

.ctc-body-card--winner .ctc-filelist {
    margin-top: 0;
}

.ctc-body-card--winner .ctc-file--winner {
    flex: 0 1 auto;
}

.ctc-grid-originals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--bilox-line);
}

.ctc-grid-originals--solo {
    padding-top: 0;
    border-top: 0;
}

.ctc-body-note--tight .ctc-body-count {
    margin-right: 0;
}

.ctc-grid-originals[hidden] {
    display: none;
}

.ctc-body-title--sub {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ctc-body-count {
    color: var(--bilox-muted);
    font: 700 11px/1 var(--bilox-font-mono, monospace);
    letter-spacing: 0.08em;
}

.ctc-body-note--tight {
    margin: 0;
}

@media (max-width: 599px) {
    .ctc-file--winner {
        width: 100%;
    }
}

.ctc-dispute-entry {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 10px;
    padding: 0 2px;
}

.ctc-quiet-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--bilox-muted);
    font: 600 12px/1.4 var(--bilox-font-body, inherit);
    text-decoration: none;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .15s ease;
}

.ctc-quiet-link:hover,
.ctc-quiet-link:focus-visible {
    color: var(--bilox-text);
    text-decoration: underline;
}

.ctc-dispute-entry-note {
    color: var(--bilox-muted);
    font: 500 11px/1.4 var(--bilox-font-mono, monospace);
    opacity: 0.75;
}

.ctc-accept-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius-lg, 14px);
    background: var(--ws-surface-soft);
}

.ctc-accept-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ctc-accept-title {
    color: var(--ws-fg);
    font-size: 13px;
    font-weight: 700;
}

.ctc-accept-note {
    color: var(--ws-fg-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ctc-accept-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ctc-accept-btn {
    white-space: nowrap;
}

.ctc-dispute-entry--done .ctc-dispute-entry-note {
    font-family: inherit;
    font-size: 12px;
    opacity: 1;
}

@media (max-width: 560px) {
    .ctc-accept-entry {
        align-items: stretch;
    }

    .ctc-accept-actions {
        justify-content: space-between;
        width: 100%;
    }

    .ctc-accept-btn {
        flex: 1 1 auto;
    }
}

.ctc-modal-card--dispute {
    gap: 0;
    padding: 0;
    overflow: hidden;
    max-height: min(86dvh, 860px);
}

.ctc-modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bilox-line);
}

.ctc-modal-title {
    min-width: 0;
    color: var(--bilox-text);
    font: 800 15px/1.25 var(--bilox-font-display, var(--bilox-font-body, inherit));
    letter-spacing: -0.01em;
}

.ctc-modal-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--bilox-radius-sm, 8px);
    background: transparent;
    color: var(--bilox-muted);
    font: 400 20px/1 var(--bilox-font-body, inherit);
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.ctc-modal-close:hover {
    color: var(--bilox-text);
    background: var(--bilox-surface-muted);
}

.ctc-modal-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ctc-modal-body > * {
    flex: 0 0 auto;
}

.ctc-modal-body .ctc-form {
    margin-top: 0;
}

.ctc-modal-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--bilox-line);
    background: var(--bilox-surface-solid);
}

.ctc-modal-foot > .btn-secondary:first-child {
    margin-right: auto;
}

@media (max-width: 599px) {
    .ctc-modal-foot {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ctc-modal-foot > .btn-secondary:first-child {
        margin-right: 0;
    }

    .ctc-modal-foot > * {
        width: 100%;
    }
}

.ctc-modal-body .ctc-body-text + .ctc-form,
.ctc-modal-body .ctc-form + .ctc-form {
    margin-top: 6px;
}

.ctc-modal-body .ctc-form .ctc-label + .ctc-select,
.ctc-modal-body .ctc-form .ctc-label + .ctc-textarea {
    margin-top: 2px;
}

.ctc-reason-dropdown {
    width: 100%;
    margin-top: 2px;
}

.ctc-reason-dropdown .dropdown-list {
    position: static;
    margin-top: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.ctc-reason-dropdown .dropdown-option {
    white-space: normal;
    line-height: 1.35;
}

.ctc-modal-body .ctc-form .ctc-reason-dropdown + .ctc-label {
    margin-top: 10px;
}

.ctc-modal-body .ctc-form .ctc-select + .ctc-label,
.ctc-modal-body .ctc-form .ctc-textarea + .ctc-label {
    margin-top: 6px;
}

.ctc-winner-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctc-winner-text__body {
    max-height: 320px;
    padding: 14px 16px;
    border: 1px solid var(--bilox-line);
    border-radius: 10px;
    background: var(--bilox-surface-soft, var(--bilox-surface));
    color: var(--bilox-text);
    font: 500 14px/1.6 var(--bilox-font-body, Inter, sans-serif);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-y: auto;
}
