/*
 * Workspace refresh
 *
 * Shared presentation primitives for the application areas that pre-date the
 * sidebar workspace.  These rules intentionally use the same density, borders,
 * typography, and table treatment as People, Locations & Timezones, and
 * Calendar without changing those baseline pages.
 */

:root {
    --workspace-text: #172033;
    --workspace-subtle-text: #475467;
    --workspace-muted: #697386;
    --workspace-faint: #98a2b3;
    --workspace-border: #e2e8f0;
    --workspace-soft-border: #edf0f5;
    --workspace-panel: #ffffff;
    --workspace-soft: #f7f8fb;
    --workspace-accent: #4256b3;
    --workspace-accent-soft: #eef1ff;
    --workspace-success: #168660;
    --workspace-success-soft: #e8f7f1;
    --workspace-warning: #ad711c;
    --workspace-warning-soft: #fff8e8;
    --workspace-danger: #b44848;
    --workspace-danger-soft: #fff3f2;
}

.workspace-empty-state {
    display: grid;
    min-height: 210px;
    place-items: center;
    padding: 34px 24px;
    color: var(--workspace-muted);
    text-align: center;
    background: var(--workspace-panel);
    border: 1px solid var(--workspace-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.045);
}

.workspace-empty-state[hidden] {
    display: none;
}

.workspace-empty-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 13px;
    place-items: center;
    color: var(--workspace-accent);
    background: var(--workspace-accent-soft);
    border: 1px solid #dfe4fa;
    border-radius: 11px;
}

.workspace-empty-icon.is-error {
    color: var(--workspace-danger);
    background: var(--workspace-danger-soft);
    border-color: #f3d6d3;
}

.workspace-empty-state h2,
.workspace-empty-state h3 {
    margin: 0 0 6px;
    color: var(--workspace-text);
    font-size: 0.96rem;
    font-weight: 720;
    letter-spacing: -0.01em;
}

.workspace-empty-state p {
    max-width: 510px;
    margin: 0 auto;
    font-size: 0.78rem;
    line-height: 1.55;
}

.workspace-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.workspace-empty-actions a {
    text-decoration: none;
}

.workspace-table-scroll {
    overflow: auto;
    border: 1px solid var(--workspace-soft-border);
    border-radius: 9px;
}

.workspace-table-scroll .table {
    margin: 0;
}

.app-shell-page .workspace-data-table > :not(caption) > * > * {
    background: #fff;
    box-shadow: none;
}

.app-shell-page .workspace-data-table thead > tr > * {
    color: var(--workspace-muted);
    background: #f7f8fb;
    border-bottom: 1px solid var(--workspace-border);
}

.app-shell-page .workspace-data-table tbody > tr:nth-child(odd) > *,
.app-shell-page .workspace-data-table tbody > tr:nth-child(even) > * {
    background: #fff;
}

.app-shell-page .workspace-data-table tbody > tr:hover > * {
    background: #f8fafc;
}

.workspace-status-pill {
    display: inline-flex;
    gap: 6px;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    color: var(--workspace-subtle-text);
    font-size: 0.68rem;
    font-weight: 650;
    background: var(--workspace-soft);
    border: 1px solid var(--workspace-border);
    border-radius: 999px;
}

.workspace-status-pill::before {
    width: 6px;
    height: 6px;
    content: "";
    background: var(--workspace-faint);
    border-radius: 50%;
}

.workspace-status-pill.is-success::before {
    background: var(--workspace-success);
}

/* Organization activity analytics */
.analytics-workspace .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-workspace .stat-card {
    min-height: 118px;
}

.analytics-workspace .analytics-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.analytics-workspace .analytics-range-controls,
.analytics-workspace .analytics-view-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.analytics-workspace .analytics-view-controls {
    justify-content: flex-end;
}

.analytics-workspace .month-selector {
    min-width: 172px;
}

.analytics-workspace #analytics-timezone-selector {
    width: 375px;
    max-width: 100%;
    min-width: 375px !important;
    padding-right: 2.5rem !important;
    margin: 0 !important;
}

.analytics-workspace .heatmap-container,
.analytics-workspace #heatmap {
    min-height: 300px;
}

.analytics-workspace .analytics-patterns-panel {
    padding-bottom: 14px;
}

.analytics-workspace .analytics-rhythm-section {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--workspace-soft-border);
}

.analytics-workspace .analytics-rhythm-header {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.analytics-workspace .analytics-table-panel .chart-header {
    align-items: flex-start;
}

.analytics-workspace .analytics-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.analytics-workspace #reset-range-button:disabled {
    color: #98a2b3;
    background: #f2f4f7;
    border-color: #e4e7ec;
    box-shadow: none;
    opacity: 1;
}

.analytics-workspace .activity-rhythm-peak {
    min-width: 112px;
    text-align: right;
}

.analytics-workspace .activity-rhythm-peak span,
.analytics-workspace .activity-rhythm-peak strong {
    display: block;
}

.analytics-workspace .activity-rhythm-peak span {
    margin-bottom: 2px;
    color: var(--workspace-faint);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analytics-workspace .activity-rhythm-peak strong {
    color: var(--workspace-text);
    font-size: 0.82rem;
}

.analytics-workspace .activity-rhythm-scroll {
    overflow-x: auto;
}

.analytics-workspace .activity-rhythm {
    min-width: 680px;
}

.analytics-workspace .activity-rhythm-cells,
.analytics-workspace .activity-rhythm-axis {
    display: grid;
    grid-template-columns: repeat(24, minmax(18px, 1fr));
    gap: 3px;
}

.analytics-workspace .activity-rhythm-cell {
    min-height: 30px;
    background: rgba(76, 90, 165, calc(0.08 + (var(--activity-intensity, 0) * 0.82)));
    border: 1px solid rgba(76, 90, 165, 0.08);
    border-radius: 5px;
}

.analytics-workspace .activity-rhythm-cell.is-empty {
    background: #f5f6f8;
    border-color: #edf0f4;
}

.analytics-workspace .activity-rhythm-cell.is-peak {
    box-shadow: inset 0 0 0 1px #344386, 0 0 0 1px rgba(52, 67, 134, 0.12);
}

.analytics-workspace .activity-rhythm-axis {
    margin-top: 7px;
    color: var(--workspace-faint);
    font-size: 0.62rem;
}

.analytics-workspace .activity-rhythm-axis span {
    white-space: nowrap;
}

.analytics-workspace .activity-rhythm-axis span:last-child {
    justify-self: end;
}

.analytics-workspace .activity-rhythm-loading {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.76rem;
}

.analytics-workspace .table-container {
    min-height: 0;
}

.analytics-workspace .analytics-table-scroll {
    max-height: 340px;
    overflow: auto;
    border: 1px solid var(--workspace-soft-border);
    border-radius: 9px;
}

.analytics-workspace .analytics-table-scroll thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.analytics-workspace .analytics-context-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 14px;
    color: var(--workspace-muted);
    font-size: 0.73rem;
    line-height: 1.5;
    background: #f8f9fc;
    border: 1px solid #e7eaf2;
    border-radius: 9px;
}

.analytics-workspace .analytics-table-panel {
    background: #fbfcfe;
}

.analytics-workspace .analytics-table-panel .analytics-table-scroll,
.analytics-workspace .analytics-table-panel .workspace-data-table > :not(caption) > * > * {
    background: #fff;
}

.analytics-workspace .analytics-context-note i {
    margin-top: 2px;
    color: #7182ca;
}

.analytics-workspace .analytics-upgrade-state {
    min-height: 300px;
}

.analytics-workspace .stat-value .fa-lock {
    font-size: 0.9rem;
}

/* Individual activity and calendar analytics */
.profile-dashboard .activity-data-content,
.profile-dashboard #calendar-dashboard-content {
    min-width: 0;
}

.profile-dashboard .activity-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 14px;
}

.profile-dashboard .activity-visual-grid > .chart-card {
    min-width: 0;
}

.profile-dashboard .activity-visual-grid #timeline-chart-container,
.profile-dashboard .activity-visual-grid #daily-hours-chart-container {
    height: 270px !important;
}

.profile-dashboard .activity-summary-panel {
    margin-bottom: 14px;
}

.profile-dashboard .activity-summary-panel .chart-header {
    margin-bottom: 10px;
}

.profile-dashboard .heatmapContainer {
    background: #fff;
}

.profile-dashboard #heatmap .modebar,
.profile-dashboard #heatmap .plotly-notifier {
    display: none !important;
}

.profile-dashboard .activity-log-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.profile-dashboard #onlineTimeTbl {
    overflow: auto;
    border: 1px solid var(--workspace-soft-border);
    border-radius: 9px;
}

.profile-dashboard #onlineTimeTbl .table {
    margin: 0 !important;
}

.profile-dashboard .calendar-empty-state {
    min-height: 280px;
}

.profile-dashboard .calendar-no-data-copy {
    max-width: 560px;
}

.profile-dashboard .workspace-empty-icon.is-error {
    color: var(--workspace-danger);
    background: var(--workspace-danger-soft);
    border-color: #f3d6d3;
}

.profile-dashboard .calendar-analytics-dashboard {
    display: grid;
    gap: 14px;
}

.profile-dashboard .calendar-analytics-dashboard > .chart-card,
.profile-dashboard .calendar-visual-grid > .chart-card {
    margin-bottom: 0;
}

.profile-dashboard .calendar-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--workspace-border);
    border-radius: 10px;
}

.profile-dashboard .calendar-score-item {
    min-width: 0;
    padding: 15px 13px;
    text-align: left;
    background: #fafbfc;
    border-right: 1px solid var(--workspace-border);
}

.profile-dashboard .calendar-score-item:last-child {
    border-right: 0;
}

.profile-dashboard .calendar-score-item .health-label,
.profile-dashboard .calendar-score-item .metric-label {
    justify-content: flex-start;
}

.profile-dashboard .calendar-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--workspace-border);
    border-radius: 10px;
}

.profile-dashboard .calendar-profile-section {
    min-width: 0;
    padding: 14px 16px;
    background: #fff;
    border-right: 1px solid var(--workspace-border);
}

.profile-dashboard .calendar-profile-section:nth-child(2) {
    border-right: 0;
}

.profile-dashboard .calendar-size-section {
    grid-column: 1 / -1;
    border-top: 1px solid var(--workspace-border);
    border-right: 0;
}

.profile-dashboard .calendar-section-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 9px;
}

.profile-dashboard .calendar-section-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--workspace-faint);
    font-size: 0.59rem;
    font-weight: 750;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.profile-dashboard .calendar-section-heading h3 {
    margin: 0;
    color: var(--workspace-text);
    font-size: 0.79rem;
    font-weight: 690;
}

.profile-dashboard .calendar-progress-value {
    color: var(--workspace-muted);
    font-size: 0.67rem;
    font-weight: 650;
    white-space: nowrap;
}

.profile-dashboard .calendar-metric-list,
.profile-dashboard .calendar-timing-facts {
    border-top: 1px solid var(--workspace-soft-border);
}

.profile-dashboard .calendar-metric-row,
.profile-dashboard .calendar-timing-row {
    display: flex;
    min-height: 36px;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 7px 1px;
    color: var(--workspace-muted);
    font-size: 0.7rem;
    border-bottom: 1px solid var(--workspace-soft-border);
}

.profile-dashboard .calendar-metric-row:last-child,
.profile-dashboard .calendar-timing-row:last-child {
    border-bottom: 0;
}

.profile-dashboard .calendar-metric-row strong,
.profile-dashboard .calendar-timing-row strong {
    color: var(--workspace-text);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-dashboard .calendar-metric-row i,
.profile-dashboard .calendar-timing-row i,
.profile-dashboard .calendar-chart-label i,
.profile-dashboard .calendar-section-heading i {
    color: var(--workspace-faint);
    font-size: 0.63rem;
}

.profile-dashboard .calendar-load-track {
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    background: #eef0f4;
    border-radius: 999px;
}

.profile-dashboard .calendar-load-track .progress-bar {
    height: 100%;
    background: #7182ca;
    border-radius: inherit;
}

.profile-dashboard .calendar-load-track .progress-bar.medium {
    background: #d49a3a;
}

.profile-dashboard .calendar-load-track .progress-bar.high {
    background: #c15a56;
}

.profile-dashboard .calendar-size-section .size-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-dashboard .calendar-size-section .size-bar {
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: #fafbfc;
    border: 1px solid var(--workspace-soft-border);
    border-radius: 8px;
}

.profile-dashboard .calendar-visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 14px;
}

.profile-dashboard .calendar-timing-content {
    display: grid;
    grid-template-columns: minmax(180px, 0.78fr) minmax(220px, 1.22fr);
    gap: 18px;
    align-items: center;
}

.profile-dashboard .calendar-doughnut-wrap {
    min-width: 0;
    height: 250px;
}

.profile-dashboard .calendar-trend-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-dashboard .calendar-trend-chart {
    position: relative;
    min-width: 0;
    height: 250px;
    padding: 10px 11px;
    background: #fafbfc;
    border: 1px solid var(--workspace-soft-border);
    border-radius: 9px;
}

.profile-dashboard .calendar-chart-label {
    margin-bottom: 7px;
    color: var(--workspace-muted);
    font-size: 0.66rem;
    font-weight: 680;
}

.profile-dashboard .calendar-chart-empty {
    position: absolute;
    inset: 34px 10px 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--workspace-muted);
    font-size: 0.72rem;
    text-align: center;
    background: rgba(250, 251, 252, 0.96);
    border-radius: 7px;
}

.profile-dashboard .calendar-observations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-dashboard .calendar-observations .insight-item {
    margin: 0;
}

.profile-dashboard .health-score-card,
.profile-dashboard .sub-card {
    border-color: var(--workspace-border);
}

.profile-dashboard .health-score-card {
    min-height: 112px;
    padding: 12px 9px;
    background: #fafbfc;
    border-top-width: 1px;
}

.profile-dashboard .health-score {
    font-size: 1.55rem;
}

.profile-dashboard .sub-card-header {
    background: #f7f8fb;
}

.profile-dashboard .insight-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    color: #7182ca;
    font-family: inherit;
    font-size: 0;
    background: var(--workspace-accent-soft);
    border-radius: 7px;
}

.profile-dashboard .insight-icon::after {
    content: "\f0eb";
    font-family: "Font Awesome 6 Free";
    font-size: 0.7rem;
    font-weight: 900;
}

@media (max-width: 1099.98px) {
    .profile-dashboard .calendar-visual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .profile-dashboard .calendar-score-grid,
    .profile-dashboard .calendar-profile-grid,
    .profile-dashboard .calendar-trend-stack,
    .profile-dashboard .calendar-observations {
        grid-template-columns: 1fr;
    }

    .profile-dashboard .calendar-score-item,
    .profile-dashboard .calendar-profile-section {
        border-right: 0;
        border-bottom: 1px solid var(--workspace-border);
    }

    .profile-dashboard .calendar-score-item:last-child,
    .profile-dashboard .calendar-profile-section:last-child {
        border-bottom: 0;
    }

    .profile-dashboard .calendar-size-section {
        grid-column: auto;
        border-top: 0;
    }

    .profile-dashboard .calendar-size-section .size-bars,
    .profile-dashboard .calendar-timing-content {
        grid-template-columns: 1fr;
    }
}

/* Billing */
.billing-workspace .billing-status-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 15px;
    margin-bottom: 14px;
    color: #774d16;
    background: var(--workspace-warning-soft);
    border: 1px solid #f0dfb8;
    border-radius: 10px;
}

.billing-workspace .billing-status-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--workspace-warning);
    background: #fff;
    border-radius: 8px;
}

.billing-workspace .billing-status-alert strong {
    display: block;
    margin-bottom: 2px;
    color: #633f11;
    font-size: 0.78rem;
}

.billing-workspace .billing-status-alert p {
    margin: 0;
    font-size: 0.71rem;
    line-height: 1.48;
}

.billing-workspace .billing-current-card.is-unavailable {
    background: #fffdf8;
}

.billing-workspace .billing-current-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.billing-workspace .billing-plan-eyebrow,
.billing-workspace .billing-section-eyebrow,
.about-workspace .about-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7b8495;
    font-size: 0.66rem;
    font-weight: 720;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.billing-workspace .billing-current-name {
    margin: 0 0 5px;
    color: var(--workspace-text);
    font-size: 1.15rem;
    font-weight: 730;
    letter-spacing: -0.02em;
}

.billing-workspace .billing-current-note {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.76rem;
}

.billing-workspace .billing-current-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 8px;
}

.billing-workspace .billing-summary-item {
    min-width: 96px;
    padding: 10px 12px;
    background: var(--workspace-soft);
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.billing-workspace .billing-summary-item span {
    display: block;
    margin-bottom: 3px;
    color: #7b8495;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.billing-workspace .billing-summary-item strong {
    color: var(--workspace-text);
    font-size: 0.78rem;
    font-weight: 690;
}

.billing-workspace .plan-capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.billing-workspace .plan-capability {
    display: flex;
    gap: 9px;
    min-width: 0;
    align-items: flex-start;
    padding: 11px;
    color: var(--workspace-subtle-text);
    font-size: 0.72rem;
    line-height: 1.45;
    background: #fafbfc;
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.billing-workspace .plan-capability i {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: var(--workspace-accent);
    font-size: 0.68rem;
    background: var(--workspace-accent-soft);
    border-radius: 7px;
}

.billing-workspace .plan-capability strong {
    display: block;
    margin-bottom: 1px;
    color: var(--workspace-text);
    font-size: 0.73rem;
}

.billing-workspace .plan-grid-wrap {
    padding: 0;
    background: transparent;
    border: 0;
}

.billing-workspace .plan-grid {
    gap: 10px;
}

.billing-workspace .enterprise-grid-item {
    grid-column: 1 / -1;
}

.billing-workspace .selectable-tile {
    min-height: 154px;
    padding: 14px;
    background: #fff;
    border-color: var(--workspace-border);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.billing-workspace .selectable-tile::before,
.billing-workspace .selectable-tile::after {
    display: none;
}

.billing-workspace .selectable-tile:hover {
    background: #fafbff;
    border-color: #cfd6f2;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    transform: none;
}

.billing-workspace .selectable-tile.selected {
    background: #f6f7ff;
    border: 1px solid #8795d0;
    box-shadow: 0 0 0 2px rgba(66, 86, 179, 0.1);
    transform: none;
}

.billing-workspace .plan-header {
    min-height: auto;
    margin-bottom: 8px;
}

.billing-workspace .selectable-tile h6 {
    margin-bottom: 4px;
    font-size: 0.62rem;
    font-weight: 700;
}

.billing-workspace .selectable-tile .card-title {
    font-size: 1rem;
    font-weight: 720;
}

.billing-workspace .plan-pricing {
    justify-content: flex-start;
    padding: 4px 0 0;
}

.billing-workspace .plan-pricing::before {
    display: none;
}

.billing-workspace .price-tag {
    margin: 2px 0;
    color: var(--workspace-muted);
    font-size: 0.72rem;
    font-weight: 560;
}

.billing-workspace .selectable-tile.enterprise-tier,
.billing-workspace .selectable-tile.enterprise-tier:hover,
.billing-workspace .selectable-tile.enterprise-tier.selected {
    min-height: 104px;
    color: var(--workspace-text);
    background: #f7f7fb;
    border-color: #dfe1eb;
    box-shadow: none;
}

.billing-workspace .selectable-tile.enterprise-tier {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.billing-workspace .selectable-tile.enterprise-tier .plan-pricing {
    justify-content: center;
    padding: 0 110px 0 0;
}

.billing-workspace .selectable-tile.enterprise-tier:hover,
.billing-workspace .selectable-tile.enterprise-tier.selected {
    background: #f3f2fa;
    border-color: #b9b4d2;
}

.billing-workspace .selectable-tile.enterprise-tier .plan-header {
    margin: 0;
}

.billing-workspace .selectable-tile.enterprise-tier h6,
.billing-workspace .selectable-tile.enterprise-tier .card-title {
    color: var(--workspace-text);
}

.billing-workspace .enterprise-note {
    max-width: 660px;
    color: var(--workspace-muted);
    font-size: 0.7rem;
}

.billing-workspace .enterprise-plan-badge {
    color: #5e5486;
    background: #eceaf5;
}

.billing-workspace .selectable-tile.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.billing-workspace .selectable-tile.is-disabled:hover {
    background: #fff;
    border-color: var(--workspace-border);
    box-shadow: none;
}

.billing-workspace .billing-contact-state {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 12px 14px;
    margin-top: 12px;
    color: var(--workspace-subtle-text);
    background: #f8f9fc;
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.billing-workspace .billing-contact-state > i {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--workspace-accent);
    background: var(--workspace-accent-soft);
    border-radius: 8px;
}

.billing-workspace .billing-contact-state strong,
.billing-workspace .billing-contact-state span {
    display: block;
}

.billing-workspace .billing-contact-state strong {
    margin-bottom: 2px;
    color: var(--workspace-text);
    font-size: 0.74rem;
}

.billing-workspace .billing-contact-state span {
    font-size: 0.69rem;
}

.billing-workspace .billing-checkout-error {
    padding: 10px 12px;
    margin-top: 12px;
    color: var(--workspace-danger);
    font-size: 0.71rem;
    background: var(--workspace-danger-soft);
    border: 1px solid #f0d4d1;
    border-radius: 8px;
}

.billing-workspace .subscription-btn.is-loading {
    color: #5f6a7b;
    background: #eef0f4;
}

.billing-workspace .cta-panel {
    padding: 12px;
    background: #fafbfc;
    border-color: var(--workspace-border);
}

.billing-workspace .checkout-placeholder {
    padding: 14px;
    color: var(--workspace-muted);
    font-size: 0.76rem;
    background: #fff;
    border-color: var(--workspace-border);
}

@media (max-width: 767.98px) {
    .billing-workspace .billing-current-card,
    .billing-workspace .plan-capabilities {
        grid-template-columns: 1fr;
    }

    .billing-workspace .selectable-tile.enterprise-tier {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .billing-workspace .selectable-tile.enterprise-tier .plan-pricing {
        padding-right: 0;
    }
}

/* Settings */
.settings-workspace .settings-panel {
    padding: 0 !important;
    overflow: hidden;
}

.settings-workspace .settings-panel > .panel-header {
    padding: 15px 17px 0;
}

.settings-workspace .settings-row {
    min-height: 66px;
    margin: 0;
    padding: 12px 17px;
    border-bottom: 1px solid var(--workspace-soft-border);
}

.settings-workspace .settings-row:last-child {
    border-bottom: 0;
}

.settings-workspace .settings-row label,
.settings-workspace .integration-label {
    color: var(--workspace-text);
    font-size: 0.78rem;
    font-weight: 650;
}

.settings-workspace .settings-setting-copy {
    flex: 1;
    min-width: 0;
}

.settings-workspace .settings-setting-label {
    display: flex;
    align-items: center;
    color: var(--workspace-text);
    font-size: 0.78rem;
    font-weight: 650;
}

.settings-workspace .settings-setting-copy p {
    margin: 4px 0 0 24px;
    color: var(--workspace-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.settings-workspace .setting-upgrade-badge {
    color: #9a5b16;
    background: #fff4e5;
}

.settings-workspace .settings-upgrade-note {
    margin-top: 6px;
    color: var(--workspace-muted);
    font-size: 0.68rem;
    line-height: 1.4;
}

.settings-workspace .integration-label,
.settings-workspace .integration-actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.settings-workspace .integration-actions {
    justify-content: flex-end;
}

.settings-workspace .selector-group {
    min-width: 250px;
}

.settings-workspace .managed-setting {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 6px;
    color: #697386;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f2f4f7;
    border-radius: 999px;
}

.settings-workspace .lead-promo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #fafbfc;
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.settings-workspace .lead-logo {
    min-width: 70px;
    padding: 0;
    border: 0;
}

.settings-workspace .lead-logo img {
    width: 48px;
    height: 48px;
}

.settings-workspace .lead-content h3 {
    margin: 0 0 3px !important;
    font-size: 0.82rem !important;
}

.settings-workspace .lead-content p {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.7rem;
    line-height: 1.48;
}

.settings-workspace .settings-management-dialog {
    max-width: 640px;
}

.settings-workspace .settings-management-modal .modal-content {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--workspace-border);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.settings-workspace .settings-management-modal .modal-header {
    display: block;
    padding: 20px 22px 14px;
    background: #fff;
    border-bottom: 1px solid var(--workspace-border);
    border-radius: 0;
}

.settings-workspace .settings-modal-heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    gap: 11px;
    align-items: start;
}

.settings-workspace .settings-modal-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--workspace-accent);
    font-size: 0.8rem;
    background: var(--workspace-accent-soft);
    border: 1px solid #dfe4fa;
    border-radius: 10px;
}

.settings-workspace .settings-management-modal .modal-title {
    margin: 1px 0 3px;
    color: var(--workspace-text);
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: -0.015em;
}

.settings-workspace .settings-modal-heading p {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.settings-workspace .settings-management-modal .btn-close {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    background-color: #f5f6f8;
    background-size: 9px;
    border-radius: 8px;
    opacity: 0.72;
}

.settings-workspace .settings-management-modal .btn-close:hover,
.settings-workspace .settings-management-modal .btn-close:focus-visible {
    background-color: #eef0f4;
    opacity: 1;
}

.settings-workspace .modal-header-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
}

.settings-workspace .settings-modal-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.settings-workspace .settings-modal-filter {
    display: inline-flex;
    min-height: 32px;
    gap: 7px;
    align-items: center;
    padding: 6px 9px;
    margin: 0;
    color: var(--workspace-subtle-text);
    font-size: 0.68rem;
    font-weight: 620;
    background: #fafbfc;
    border: 1px solid var(--workspace-border);
    border-radius: 8px;
    cursor: pointer;
}

.settings-workspace .settings-modal-filter:hover {
    color: var(--workspace-text);
    background: #f7f8fb;
}

.settings-workspace .settings-modal-filter .form-check-input {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.settings-workspace .settings-modal-filter .form-check-input:checked {
    background-color: var(--workspace-accent);
    border-color: var(--workspace-accent);
}

.settings-workspace .settings-modal-count {
    flex: 0 0 auto;
    color: var(--workspace-faint);
    font-size: 0.66rem;
    font-weight: 620;
}

.settings-workspace .settings-management-modal .modal-body {
    max-height: min(55vh, 460px);
    padding: 0 22px;
}

.settings-workspace .settings-modal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    align-items: center;
    min-height: 58px;
    padding: 10px 2px;
    margin: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--workspace-soft-border);
    border-radius: 0;
}

.settings-workspace .settings-modal-row:last-child {
    border-bottom: 0;
}

.settings-workspace .settings-modal-row:hover {
    background: #fafbfc;
    border-color: var(--workspace-soft-border);
}

.settings-workspace .settings-modal-row[hidden] {
    display: none !important;
}

.settings-workspace .settings-modal-person {
    display: flex;
    min-width: 0;
    gap: 10px;
    align-items: center;
}

.settings-workspace .settings-modal-person-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: #7a8496;
    font-size: 0.66rem;
    background: #f2f4f7;
    border-radius: 9px;
}

.settings-workspace .settings-modal-person-name {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--workspace-text);
    font-size: 0.75rem;
    font-weight: 640;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-workspace .settings-modal-row-control {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
}

.settings-workspace .settings-modal-select {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    color: var(--workspace-subtle-text);
    font-size: 0.72rem;
    border-color: #dfe4ec;
    border-radius: 8px;
    box-shadow: none;
}

.settings-workspace .settings-modal-select:focus {
    border-color: #aeb9e1;
    box-shadow: 0 0 0 3px rgba(66, 86, 179, 0.09);
}

.settings-workspace .settings-modal-state {
    display: grid;
    min-height: 210px;
    place-items: center;
    align-content: center;
    padding: 30px 20px;
    color: var(--workspace-muted);
    text-align: center;
}

.settings-workspace .settings-modal-state-icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    place-items: center;
    color: var(--workspace-accent);
    background: var(--workspace-accent-soft);
    border-radius: 10px;
}

.settings-workspace .settings-modal-state strong {
    margin-bottom: 3px;
    color: var(--workspace-text);
    font-size: 0.78rem;
}

.settings-workspace .settings-modal-state span:last-child {
    font-size: 0.7rem;
}

.settings-workspace .settings-modal-state .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.settings-workspace .settings-modal-alert {
    margin: 12px 0 2px;
    font-size: 0.7rem;
    border-radius: 8px;
}

.settings-workspace .settings-management-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: #fafbfc;
    border-top: 1px solid var(--workspace-border);
}

.settings-workspace .settings-modal-save-note {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--workspace-muted);
    font-size: 0.66rem;
}

.settings-workspace .settings-modal-save-note i {
    color: var(--workspace-success);
}

.settings-workspace .settings-modal-done {
    min-height: 34px;
    padding: 6px 13px;
    color: var(--workspace-subtle-text);
    font-size: 0.72rem;
    font-weight: 650;
    background: #fff;
    border-color: #dfe4ec;
    border-radius: 8px;
}

/* About and help */
.about-workspace .about-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 18px;
}

.about-workspace .about-intro-copy {
    max-width: 720px;
}

.about-workspace .about-intro-copy h2 {
    margin: 0 0 6px;
    color: var(--workspace-text);
    font-size: 1rem;
    font-weight: 720;
}

.about-workspace .about-intro-copy p {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.about-workspace .about-contact-card {
    min-width: 220px;
    padding: 12px 14px;
    color: var(--workspace-subtle-text);
    font-size: 0.72rem;
    background: var(--workspace-soft);
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.about-workspace .about-contact-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--workspace-text);
    font-size: 0.76rem;
}

.about-workspace .about-contact-card a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 650;
    text-decoration: none;
}

.about-workspace .about-feedback-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 28px;
    padding: 18px;
}

.about-workspace .about-feedback-intro h2 {
    margin: 5px 0 7px;
    color: var(--workspace-text);
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: -0.01em;
}

.about-workspace .about-feedback-intro > p {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.77rem;
    line-height: 1.55;
}

.about-workspace .about-feedback-context {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 11px;
    margin-top: 16px;
    color: var(--workspace-muted);
    font-size: 0.69rem;
    line-height: 1.45;
    background: var(--workspace-soft);
    border: 1px solid var(--workspace-border);
    border-radius: 8px;
}

.about-workspace .about-feedback-context i {
    margin-top: 2px;
    color: var(--workspace-accent);
}

.about-workspace .about-feedback-form {
    display: grid;
    gap: 13px;
}

.about-workspace .about-feedback-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--workspace-subtle-text);
    font-size: 0.7rem;
    font-weight: 680;
}

.about-workspace .about-feedback-field .form-select,
.about-workspace .about-feedback-field .form-control {
    width: 100%;
    color: var(--workspace-text);
    font-size: 0.76rem;
    background-color: #fff;
    border-color: var(--workspace-border);
    border-radius: 8px;
    box-shadow: none;
}

.about-workspace .about-feedback-field .form-select {
    min-height: 36px;
    padding-right: 2.5rem;
}

.about-workspace .about-feedback-field textarea.form-control {
    min-height: 118px;
    padding: 10px 11px;
    line-height: 1.5;
    resize: vertical;
}

.about-workspace .about-feedback-field .form-select:focus,
.about-workspace .about-feedback-field .form-control:focus {
    border-color: #aeb9e1;
    box-shadow: 0 0 0 3px rgba(66, 86, 179, 0.09);
}

.about-workspace .about-feedback-label-row,
.about-workspace .about-feedback-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.about-workspace .about-feedback-label-row span {
    color: var(--workspace-faint);
    font-size: 0.64rem;
}

.about-workspace .about-feedback-actions {
    align-items: flex-end;
}

.about-workspace .about-feedback-actions > div {
    min-width: 0;
}

.about-workspace .about-feedback-actions .btn-modern {
    flex: 0 0 auto;
    min-height: 36px;
    margin: 0;
}

.about-workspace .about-feedback-status,
.about-workspace .about-feedback-fallback {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.69rem;
    line-height: 1.4;
}

.about-workspace .about-feedback-status[data-state="error"] {
    color: var(--workspace-danger);
}

.about-workspace .about-feedback-fallback {
    margin-top: 3px;
}

.about-workspace .about-feedback-success {
    display: flex;
    min-height: 210px;
    gap: 13px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: left;
    background: var(--workspace-success-soft);
    border: 1px solid #cfeade;
    border-radius: 10px;
}

.about-workspace .about-feedback-success[hidden] {
    display: none;
}

.about-workspace .about-feedback-success-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--workspace-success);
    background: #fff;
    border-radius: 50%;
}

.about-workspace .about-feedback-success h3 {
    margin: 0 0 3px;
    color: var(--workspace-text);
    font-size: 0.86rem;
    font-weight: 720;
}

.about-workspace .about-feedback-success p {
    margin: 0 0 12px;
    color: var(--workspace-muted);
    font-size: 0.72rem;
}

.about-workspace .about-feedback-success .btn {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.69rem;
    border-radius: 7px;
}

.about-workspace .faq-card {
    padding: 0 !important;
    overflow: hidden;
}

.about-workspace .faq-card > .panel-header {
    padding: 16px 18px 12px;
    margin: 0;
    border-bottom: 1px solid var(--workspace-border);
}

.about-workspace .faq-list {
    padding: 0 18px;
}

.about-workspace .faq-question {
    width: 100%;
    gap: 10px;
    min-height: 52px;
    padding: 13px 2px;
    margin: 0;
    color: var(--workspace-text);
    background: #fff;
    font-size: 0.76rem;
    line-height: 1.45;
    border: 0;
    border-bottom: 1px solid var(--workspace-soft-border);
    border-radius: 0;
    font-family: inherit;
    text-align: left;
}

.about-workspace .faq-question:hover,
.about-workspace .faq-question.open {
    color: var(--workspace-accent);
    background: transparent;
    border-color: var(--workspace-soft-border);
}

.about-workspace .faq-question::before {
    content: "\f054";
    width: 16px;
    margin: 0;
    color: #98a2b3;
    font-family: "Font Awesome 6 Free";
    font-size: 0.58rem;
    font-weight: 900;
    text-align: center;
}

.about-workspace .faq-question.open::before {
    transform: rotate(90deg);
}

.about-workspace .faq-question p {
    margin: 0;
}

.about-workspace .faq-question p > span:first-child,
.about-workspace .faq-question .highlight {
    color: inherit;
    font-weight: inherit;
}

.about-workspace .answer-text {
    padding: 10px 28px 15px;
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--workspace-soft-border);
}

.about-workspace .answer-text .answer {
    display: none;
}

.about-workspace .disclaimer {
    margin: 14px 2px 0;
    padding: 0;
    color: #7b8495;
    font-size: 0.68rem;
    font-style: normal;
    text-align: left;
}

/* Public authentication and system states */
.public-shell-page {
    color: var(--workspace-text);
    background:
        radial-gradient(circle at 50% -20%, rgba(104, 121, 214, 0.13), transparent 42%),
        #f5f7fb;
}

.public-shell-header {
    width: min(100% - 32px, 1040px);
    min-height: 72px;
    padding: 0;
    border-bottom-color: #e4e8ef;
}

.public-auth-page,
.public-state-page {
    width: min(100% - 32px, 520px);
    margin: 52px auto 64px;
    padding: 0;
}

.public-auth-card,
.public-state-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--workspace-border);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.public-auth-eyebrow,
.public-state-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--workspace-accent);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-auth-card h1,
.public-state-card h1 {
    margin: 0 0 8px;
    color: var(--workspace-text);
    font-size: 1.45rem;
    font-weight: 740;
    letter-spacing: -0.03em;
}

.public-auth-card > p,
.public-state-card > p {
    margin: 0;
    color: var(--workspace-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.public-auth-primary,
.public-state-primary {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: #fff;
    font-size: 0.79rem;
    font-weight: 680;
    text-decoration: none;
    background: var(--workspace-accent);
    border: 1px solid var(--workspace-accent);
    border-radius: 9px;
}

.public-auth-primary:hover,
.public-state-primary:hover {
    color: #fff;
    background: #35499d;
}

.public-auth-secondary,
.public-state-secondary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--workspace-muted);
    font-size: 0.73rem;
    font-weight: 620;
    text-decoration: none;
}

.public-auth-actions {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.public-auth-note {
    padding: 11px 12px;
    margin-top: 18px;
    color: var(--workspace-muted);
    font-size: 0.72rem;
    line-height: 1.5;
    background: var(--workspace-soft);
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.public-auth-manual {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--workspace-border);
}

.public-auth-manual > a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--workspace-muted);
    font-size: 0.72rem;
    font-weight: 620;
    text-decoration: none;
}

.public-auth-manual-toggle {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 0;
    color: var(--workspace-muted);
    font-size: 0.72rem;
    font-weight: 620;
    background: transparent;
    border: 0;
}

.public-auth-manual-toggle:hover {
    color: var(--workspace-accent);
}

.public-auth-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.public-auth-form .form-control {
    min-height: 42px;
    font-size: 0.78rem;
    border-color: #dfe4ec;
    border-radius: 8px;
    box-shadow: none;
}

.public-auth-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--workspace-subtle-text);
    font-size: 0.7rem;
    font-weight: 650;
}

.public-auth-form-spaced {
    margin-top: 22px;
}

.public-auth-meta {
    margin-top: 14px !important;
    color: var(--workspace-faint) !important;
    font-size: 0.69rem !important;
}

.public-state-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    place-items: center;
    color: var(--workspace-accent);
    background: var(--workspace-accent-soft);
    border-radius: 11px;
}

.public-state-card.is-error .public-state-icon {
    color: var(--workspace-danger);
    background: var(--workspace-danger-soft);
}

.public-state-card.is-error .public-state-eyebrow {
    color: var(--workspace-danger);
}

.public-state-steps {
    padding-left: 1.25rem;
    margin: 16px 0 0;
    color: var(--workspace-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.public-state-steps li + li {
    margin-top: 7px;
}

.public-state-help {
    margin-top: 14px !important;
    padding: 10px 12px;
    color: var(--workspace-subtle-text) !important;
    font-size: 0.72rem !important;
    background: var(--workspace-soft);
    border: 1px solid var(--workspace-border);
    border-radius: 9px;
}

.public-state-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.public-state-actions .public-state-primary {
    width: auto;
}

.public-state-meta {
    margin-top: 14px !important;
    color: var(--workspace-faint) !important;
    font-size: 0.68rem !important;
}

@media (max-width: 991.98px) {
    .analytics-workspace .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-workspace .analytics-controls,
    .profile-dashboard .activity-visual-grid,
    .billing-workspace .billing-current-card,
    .about-workspace .about-intro-card {
        grid-template-columns: 1fr;
    }

    .analytics-workspace .analytics-view-controls {
        justify-content: flex-start;
    }

    .billing-workspace .plan-capabilities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-workspace .about-feedback-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .analytics-workspace .stats-grid,
    .billing-workspace .plan-capabilities,
    .billing-workspace .billing-current-summary {
        grid-template-columns: 1fr;
    }

    .analytics-workspace .analytics-range-controls > *,
    .analytics-workspace .analytics-view-controls > *,
    .analytics-workspace #analytics-timezone-selector,
    .settings-workspace .selector-group {
        width: 100% !important;
        min-width: 0 !important;
    }

    .billing-workspace .plan-grid {
        grid-template-columns: 1fr;
    }

    .settings-workspace .settings-row {
        align-items: stretch;
    }

    .settings-workspace .settings-management-modal .modal-header,
    .settings-workspace .settings-management-modal .modal-body,
    .settings-workspace .settings-management-modal .modal-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .settings-workspace .modal-header-filters,
    .settings-workspace .settings-management-modal .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-workspace .settings-modal-count {
        align-self: flex-start;
    }

    .settings-workspace .settings-modal-row {
        grid-template-columns: minmax(0, 1fr) 150px;
        gap: 10px;
    }

    .settings-workspace .settings-modal-save-note {
        order: 2;
    }

    .settings-workspace .settings-modal-done {
        width: 100%;
    }

    .about-workspace .about-contact-card {
        min-width: 0;
    }

    .about-workspace .about-feedback-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .about-workspace .about-feedback-actions .btn-modern {
        width: 100%;
    }

    .public-auth-page,
    .public-state-page {
        margin-top: 28px;
    }

    .public-auth-card,
    .public-state-card {
        padding: 22px;
    }
}
