.app-topbar__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.app-topbar__identity strong {
    display: block;
    font-size: 0.98rem;
}

.app-topbar__identity small {
    display: block;
    color: rgba(15, 23, 42, 0.68);
    font-size: 0.82rem;
    line-height: 1.35;
}

.main-nav a.is-active,
.nav-dropdown__toggle.is-active,
.nav-dropdown__menu a.is-active {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.app-user-pill__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-user-pill__copy strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.app-user-pill__copy small {
    color: rgba(15, 23, 42, 0.68);
    font-size: 0.78rem;
    line-height: 1.25;
}

.workspace-page,
.workspace-stack {
    display: grid;
    gap: 1rem;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.workspace-header__main {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.workspace-header__main h1,
.workspace-header__main p {
    margin: 0;
}

.workspace-header__main p {
    max-width: 44rem;
    color: rgba(15, 23, 42, 0.72);
}

.workspace-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
}

.workspace-header__meta .pill {
    white-space: nowrap;
}

.workspace-header__meta .btn {
    flex: 0 0 auto;
}

.workspace-stack {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.9fr);
    gap: 1.15rem;
    margin-bottom: 1rem;
    padding: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(255, 248, 235, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.workspace-hero__main h1,
.workspace-hero__aside strong {
    margin: 0;
}

.workspace-hero__main p:last-child {
    margin-bottom: 0;
}

.workspace-hero__actions,
.workspace-chip-row,
.workspace-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.workspace-hero__aside {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.workspace-hero__aside span,
.workspace-summary-card p,
.workspace-note p,
.workspace-soft-copy {
    color: rgba(15, 23, 42, 0.72);
}

.workspace-hero__aside ul,
.workspace-divider-list,
.workspace-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workspace-hero__aside li,
.workspace-divider-list li,
.workspace-list__item {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.workspace-hero__aside li:first-child,
.workspace-divider-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.workspace-summary-grid,
.workspace-compact-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.workspace-summary-card {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
}

.workspace-summary-card strong {
    display: block;
    margin: 0.3rem 0 0.45rem;
    font-size: 1.55rem;
    line-height: 1.05;
    color: #0f172a;
}

.workspace-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
    align-items: start;
}

.workspace-layout > *,
.workspace-stack > *,
.workspace-section__head > div,
.workspace-table-shell,
.workspace-list__item {
    min-width: 0;
}

.workspace-list__item strong,
.workspace-list__meta {
    overflow-wrap: anywhere;
}

.report-campaign-layout {
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.9fr);
}

.report-campaign-hero .workspace-header__main {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.report-campaign-hero .workspace-header__main p {
    margin: 0;
}

.report-status-row {
    margin-top: 0;
    align-items: center;
    row-gap: 0.6rem;
}

.report-campaign-actions {
    margin-top: 0;
    gap: 0.85rem;
    row-gap: 0.7rem;
}

.report-campaign-actions .btn {
    min-height: 2.75rem;
}

.report-status-row {
    gap: 0.5rem;
}

.report-status-row .pill {
    padding-inline: 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

.report-placement-table {
    min-width: 74rem;
}

.report-placement-table th:nth-child(1),
.report-placement-table td:nth-child(1) {
    width: 10rem;
}

.report-placement-table th:nth-child(2),
.report-placement-table td:nth-child(2) {
    width: 7rem;
}

.report-placement-table th:nth-child(3),
.report-placement-table td:nth-child(3),
.report-placement-table th:nth-child(4),
.report-placement-table td:nth-child(4),
.report-placement-table th:nth-child(5),
.report-placement-table td:nth-child(5) {
    width: 16rem;
}

.report-placement-table th:nth-child(6),
.report-placement-table td:nth-child(6) {
    width: 5.5rem;
}

.report-placement-table th:nth-child(7),
.report-placement-table td:nth-child(7) {
    width: 8rem;
}

.report-placement-table td small {
    display: block;
    margin-top: 0.2rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.report-placement-support strong {
    margin-bottom: 0.2rem;
}

.report-placement-support .report-placement-qty {
    display: inline-block;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.report-analytics-toggle {
    margin-top: 1.35rem;
}

.report-analytics-toggle[open] > summary {
    margin-bottom: 1rem;
}

.report-analytics-stack {
    gap: 1.15rem;
}

.workspace-section__head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.workspace-section__head--tight {
    margin-bottom: 0.8rem;
    align-items: center;
}

.workspace-section__head h2,
.workspace-section__head p,
.workspace-note strong,
.workspace-list__meta {
    margin: 0;
}

.workspace-note {
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-left: 4px solid #f59e0b;
}

.workspace-list {
    display: grid;
    gap: 0.9rem;
}

.workspace-list__item {
    padding: 0.9rem 0 0;
}

.workspace-list__meta {
    font-size: 0.88rem;
}

.workspace-table-shell {
    overflow-x: auto;
}

.workspace-table-shell table {
    width: 100%;
    border-collapse: collapse;
}

.workspace-table-shell th,
.workspace-table-shell td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: left;
    vertical-align: top;
}

.workspace-table-shell th {
    color: rgba(15, 23, 42, 0.66);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.workspace-detail-toggle {
    margin: 1rem 0;
}

.workspace-detail-toggle > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
    font-weight: 600;
    color: #0f172a;
}

.workspace-detail-toggle > summary::-webkit-details-marker {
    display: none;
}

.workspace-soft-copy {
    font-size: 0.92rem;
}

.map-panel {
    gap: 0.9rem;
}

.map-toolbar {
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.team-layout {
    grid-template-columns: minmax(21rem, 1fr) minmax(25rem, 1.35fr);
    gap: 1.25rem;
}

.team-directory,
.team-header > div:first-child,
.team-tools__fields {
    min-width: 0;
}

.team-search,
.team-filter {
    min-width: 10rem;
}

.team-actions {
    margin-left: auto;
}

.team-summary {
    flex-wrap: wrap;
    align-items: flex-start;
}

.team-identity {
    flex: 1 1 16rem;
}

.team-pills {
    flex: 0 1 auto;
    justify-content: flex-end;
}

.team-summary__actions {
    margin-left: auto;
}

.event-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.event-form__actions .btn.big {
    width: auto;
    min-width: 18rem;
    flex: 1 1 18rem;
}

@media (max-width: 960px) {
    .workspace-header {
        align-items: start;
    }

    .workspace-header__meta {
        width: 100%;
        justify-content: flex-start;
    }

    .workspace-hero,
    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .team-layout {
        gap: 1rem;
    }

    .team-actions {
        margin-left: 0;
        width: 100%;
    }

    .team-actions .btn {
        flex: 1 1 9rem;
        justify-content: center;
    }

    .team-summary__actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .event-form__actions {
        justify-content: stretch;
    }

    .event-form__actions .btn.big,
    .event-form__actions .btn.ghost {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .report-campaign-layout {
        grid-template-columns: 1fr;
    }

    .report-campaign-actions .btn {
        flex: 0 1 auto;
    }
}

@media (max-width: 800px) {
    .app-topbar__identity {
        display: none;
    }

    .workspace-header__meta .btn {
        flex: 1 1 11rem;
        justify-content: center;
    }

    .report-campaign-actions .btn {
        width: 100%;
    }

    .report-placement-table {
        min-width: 68rem;
    }

    .roles-row {
        grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(3.25rem, 0.55fr));
        gap: 0.35rem;
        padding: 0.55rem 0.65rem;
    }

    .admin-shell .feedback-fab {
        display: none;
    }
}
