:root {
    --brand-green: #0A6F68;
    --brand-green-dark: #07564F;
    --brand-mint: #8ACBC1;
    --brand-mint-soft: #DDF3EF;
    --brand-yellow: #FFDD00;
    --brand-pink: #F2A6AE;
    --brand-pink-hover: #F7C0C6;
    --page-bg: #F6FAF8;
    --surface: #ffffff;
    --surface-alt: #EEF7F5;
    --border: #D6E7E2;
    --text: #151D1C;
    --muted: #596A66;
    --accent: var(--brand-green);
    --accent-dark: var(--brand-green-dark);
    --warning: #6D5D00;
    --warning-bg: #FFF7B8;
    --success: #0A6F68;
    --success-bg: #DDF3EF;
    --soft-red: #B85145;
    --shadow-soft: 0 12px 34px rgba(8, 74, 69, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    overflow-x: hidden;
}

a, .btn-link {
    color: var(--accent);
}

a:hover {
    color: var(--brand-green-dark);
}

.btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.45rem 0.95rem;
}

.btn-primary {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: #ffffff;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #ffffff;
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
}

.btn-outline-primary,
.btn-outline-secondary {
    background: #ffffff;
    border-color: var(--brand-green);
    color: var(--brand-green);
    font-weight: 800;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: var(--brand-mint-soft);
    border-color: var(--brand-green);
    color: var(--brand-green-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.12rem white, 0 0 0 0.25rem rgba(255, 221, 0, 0.45);
}

.content {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.75rem 1.5rem 2.5rem;
    width: 100%;
}

.page-shell {
    margin: 0 auto;
    width: 100%;
}

.page-shell-form {
    max-width: 780px;
}

h1, h2, h3 {
    color: var(--brand-green-dark);
    font-family: "Raleway", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.12;
    margin: 0;
}

h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

h1:focus {
    outline: none;
}

p {
    color: var(--muted);
}

.page-header {
    align-items: center;
    background: transparent;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    min-height: 0;
    padding: 0 0 0.9rem;
    position: relative;
}

.page-header > * {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.lead {
    color: #14201E;
    font-size: 1.02rem;
    line-height: 1.68;
    margin: 0.65rem 0 0;
}

.page-header__main {
    display: grid;
    gap: 0.25rem;
}

.page-header__title-row,
.page-header__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.page-header__title-row {
    flex-wrap: wrap;
}

.page-header__actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.page-header__freshness {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    margin: 0;
}

.eyebrow {
    color: var(--brand-green-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 0.65rem;
    white-space: nowrap;
}

.summary-grid {
    display: grid;
    gap: 1.05rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.summary-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 150px;
    padding: 1rem;
    position: relative;
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.summary-tile:hover {
    border-color: var(--brand-green);
    box-shadow: 0 16px 38px rgba(8, 74, 69, 0.12);
    color: inherit;
    transform: translateY(-2px);
}

.summary-tile strong {
    color: var(--brand-green-dark);
    font-family: "Raleway", "Segoe UI", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
}

.summary-tile span:last-child {
    color: var(--muted);
}

.tile-label {
    color: var(--brand-green);
    font-weight: 700;
}

.metric-row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.compact-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    padding: 0.85rem 1rem;
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: 0.85rem;
}

.metric strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.2;
    margin-top: 0.2rem;
}

.workspace-grid {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.groups-workspace {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.contacts-workspace {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.list-panel,
.detail-panel,
.plain-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.list-panel,
.detail-panel {
    padding: 1rem;
}

.app-icon {
    display: block;
    flex: 0 0 auto;
}

.content-band {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    margin-top: 1.25rem;
    padding: 1.25rem 0 0;
}

.content-band.flush {
    margin-top: 1rem;
}

.content-band .plain-panel {
    background: #FAFDFC;
    box-shadow: none;
}

.data-notice {
    background: var(--warning-bg);
    border: 1px solid var(--brand-yellow);
    border-radius: 8px;
    color: #3B3300;
    display: flex;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
}

.data-notice span {
    color: #3B3300;
}

.data-notice > * {
    min-width: 0;
}

.data-notice.success {
    background: var(--success-bg);
    border-color: var(--brand-mint);
    color: var(--success);
}

.data-notice.danger {
    background: #FCE7E4;
    border-color: var(--brand-pink);
    color: var(--soft-red);
}

.data-notice.muted {
    background: #ECEFEE;
    border-color: #D7DCDA;
    color: #4D5B58;
}

.data-notice.success span,
.data-notice.danger span,
.data-notice.muted span {
    color: inherit;
}

.empty-state {
    color: var(--muted);
    padding: 1rem 0;
}

.plain-panel {
    padding: 1rem;
}

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 0.75rem;
}

.collapsible-band {
    display: block;
}

.collapsible-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    margin-bottom: 0.9rem;
}

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

.collapsible-summary::after {
    color: var(--brand-green);
    content: "-";
    flex: 0 0 auto;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.collapsible-band:not([open]) .collapsible-summary {
    margin-bottom: 0;
}

.collapsible-band:not([open]) .collapsible-summary::after {
    content: "+";
}

.collapsible-summary .status-pill {
    margin-left: auto;
}

.field-label {
    color: var(--brand-green-dark);
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.filter-row {
    align-items: end;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(180px, 260px));
    margin-bottom: 1rem;
}

.form-control[readonly] {
    background: #ffffff;
    color: var(--text);
}

.form-control,
.form-select {
    border-color: var(--border);
    border-radius: 6px;
    min-height: 2.55rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(138, 203, 193, 0.38);
}

.segmented-control {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 0.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0.85rem 0;
    padding: 0.22rem;
}

.segmented-control.two-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented-control.three-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-control button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #4d615c;
    font-size: 0.84rem;
    min-height: 2.2rem;
    overflow-wrap: anywhere;
    padding: 0.45rem 0.65rem;
}

.segmented-control button.active {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(25, 49, 44, 0.1);
    color: var(--brand-green-dark);
    font-weight: 700;
}

.list-stack {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bar-list {
    display: grid;
    gap: .6rem;
    margin-top: .8rem;
}

.bar-row {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: 120px minmax(0, 1fr) 40px;
}

.bar-row > progress {
    appearance: none;
    background: var(--surface-alt);
    border: 0;
    border-radius: 4px;
    height: .7rem;
    overflow: hidden;
    width: 100%;
}

.bar-row > progress::-webkit-progress-bar {
    background: var(--surface-alt);
}

.bar-row > progress::-webkit-progress-value {
    background: var(--brand-green);
}

.bar-row > progress::-moz-progress-bar {
    background: var(--brand-green);
}

.bar-row strong {
    text-align: right;
}

.compact-list {
    margin-top: 0.8rem;
}

.list-section {
    margin-top: 1.2rem;
}

.result-count {
    color: var(--brand-green-dark);
    font-weight: 800;
    margin: 0.7rem 0 0;
}

.list-item {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    padding: 0.8rem;
}

.list-item.active {
    background: var(--brand-mint-soft);
    border-color: var(--brand-mint);
}

.list-item strong,
.list-item span {
    display: block;
}

.list-item div > span {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.15rem;
}

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

.detail-header p {
    margin: 0.45rem 0 0;
}

.tag,
.status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    min-height: 1.7rem;
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
}

.tag {
    background: #ECEFEE;
    color: var(--brand-green-dark);
    text-decoration: none;
}

.tag:hover {
    color: var(--brand-green-dark);
}

.status-pill.success {
    background: var(--success-bg);
    color: var(--success);
}

.status-pill.warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-pill.danger {
    background: #FCE7E4;
    color: var(--soft-red);
}

.status-pill.muted {
    background: #ECEFEE;
    color: #5D6462;
}

.status-dot {
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.75rem;
    width: 0.75rem;
}

.status-dot.success {
    background: var(--success);
}

.status-dot.warning {
    background: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(255, 221, 0, 0.28);
}

.status-dot.danger {
    background: var(--soft-red);
    box-shadow: 0 0 0 3px rgba(184, 81, 69, 0.18);
}

.status-dot.muted {
    background: #8a8a8a;
}

.info-strip {
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
    overflow: hidden;
}

.info-strip div {
    background: #FAFDFC;
    border-right: 1px solid var(--border);
    min-height: 5rem;
    padding: 0.85rem;
}

.info-strip div:last-child {
    border-right: 0;
}

.info-strip span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.info-strip strong {
    display: block;
}

.group-info-strip {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.table-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow-x: auto;
    box-shadow: none;
}

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

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.78rem;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--brand-green);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.data-table tbody tr:hover td {
    background: #FAFDFC;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.waitlist-table {
    min-width: 880px;
    table-layout: fixed;
}

.waitlist-table th,
.waitlist-table td {
    overflow-wrap: anywhere;
}

.waitlist-table .tag {
    overflow: hidden;
    white-space: normal;
}

.waitlist-col-name {
    width: auto;
}

.waitlist-table-new .waitlist-col-location {
    width: 18%;
}

.waitlist-col-age {
    width: 5.5rem;
}

.waitlist-table-new .waitlist-col-role {
    width: 16%;
}

.waitlist-col-questionnaire {
    width: 10rem;
}

.waitlist-col-gender {
    width: 8rem;
}

.waitlist-table-existing .waitlist-col-location,
.waitlist-table-existing .waitlist-col-role {
    width: 14%;
}

.waitlist-col-group-type {
    width: 18%;
}

.waitlist-col-actions {
    width: 4.25rem;
}

.waitlist-toolbar {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.waitlist-action-block,
.waitlist-danger-block {
    display: grid;
    gap: 0.75rem;
}

.waitlist-action-block {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
}

.waitlist-action-block h3,
.waitlist-action-block p,
.waitlist-danger-block h3,
.waitlist-danger-block p {
    margin: 0;
}

.waitlist-action-block .btn,
.waitlist-danger-block .btn {
    justify-self: start;
}

.waitlist-danger-block {
    border-top: 1px solid var(--border);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.search-field {
    flex: 1 1 320px;
}

.row-action-trigger {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--brand-green-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2.25rem;
}

.row-action-trigger:hover,
.row-action-trigger:focus-visible {
    background: var(--brand-mint-soft);
    border-color: var(--brand-mint);
}

.compact-action-create {
    align-items: end;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.55fr) minmax(200px, 1.2fr) auto;
    margin-bottom: 1rem;
}

.compact-contact-data {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.name-with-indicator {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.action-indicator {
    align-items: center;
    background: var(--brand-mint-soft);
    border: 1px solid var(--brand-mint);
    border-radius: 999px;
    color: var(--brand-green-dark);
    display: inline-flex;
    flex: 0 0 1.5rem;
    height: 1.5rem;
    justify-content: center;
    text-decoration: none;
    width: 1.5rem;
}

.action-indicator:hover {
    background: var(--brand-mint);
    color: var(--brand-green-dark);
}

.action-indicator:focus-visible {
    outline: 3px solid rgba(10, 111, 104, 0.35);
    outline-offset: 2px;
}

.action-filter-notice {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.action-filter-notice a {
    flex: 0 0 auto;
    font-weight: 700;
}

.tab-count {
    font-variant-numeric: tabular-nums;
    margin-left: 0.25rem;
}

.waitlist-subsection {
    margin-top: 0.85rem;
}

.waitlist-subsection h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.teams-table {
    min-width: 920px;
}

.contacts-table {
    min-width: 1380px;
}

.overdue-date {
    color: var(--soft-red);
    font-weight: 800;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 0;
}

.section-heading__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.linked-labels {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.note-input {
    margin-bottom: 0.7rem;
    min-height: 96px;
}

.history-block {
    margin-top: 1rem;
}

.history-block summary {
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.account-select {
    margin-bottom: 0.7rem;
}

.fixed-team-label {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.team-member-list,
.team-member-controls {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.team-member-add {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(190px, 1fr) auto;
    width: 100%;
}

.compact-team-form {
    align-items: end;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) auto;
}

.compact-form-actions {
    display: flex;
    gap: 0.5rem;
}

.group-list {
    display: grid;
    gap: 0.65rem;
}

.group-row {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 4.25rem;
    padding: 0.8rem;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.group-row:hover {
    background: #FAFDFC;
    border-color: var(--brand-green);
    color: var(--text);
    transform: translateY(-1px);
}

.group-row:hover strong {
    color: var(--accent);
}

.group-row-main {
    display: grid;
    gap: 0.18rem;
}

.group-row-main span {
    color: var(--muted);
    font-size: 0.9rem;
}

.two-column {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.timeline div {
    border-left: 4px solid var(--brand-yellow);
    padding-left: 0.8rem;
}

.timeline span {
    color: var(--brand-green);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.timeline p {
    margin: 0;
}

.icon-action {
    align-items: center;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
    padding: 0;
    width: 2rem;
}

.note-entry {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.timeline .note-entry__body {
    border-left: 0;
    min-width: 0;
    padding-left: 0;
}

.timeline .note-entry__actions {
    border-left: 0;
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    padding-left: 0;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.action-row {
    align-items: flex-start;
    background: #FAFDFC;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    gap: 0.9rem;
    justify-content: space-between;
    padding: 0.8rem;
}

.action-row.due {
    border-color: var(--brand-yellow);
    background: var(--warning-bg);
}

.action-row strong,
.action-row span {
    display: block;
}

.action-row div span {
    color: var(--muted);
    margin-top: 0.18rem;
}

.action-row > span {
    color: var(--warning);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.definition-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.definition-list div {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.definition-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.definition-list dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.definition-list dd {
    margin: 0.2rem 0 0;
}

.code-block {
    background: var(--brand-green-dark);
    border-radius: 8px;
    color: #e9f4f1;
    margin: 0.75rem 0;
    overflow-x: auto;
    padding: 0.9rem;
}

.simple-list {
    display: flex;
    flex-direction: column;
}

.simple-row {
    align-items: center;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 4rem;
    padding: 0.85rem 0;
    text-decoration: none;
}

.simple-row:first-child {
    padding-top: 0;
}

.simple-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.simple-row:hover strong {
    color: var(--brand-green);
}

.simple-row > span {
    color: var(--muted);
    font-size: 0.92rem;
    text-align: right;
}

.back-link {
    color: var(--brand-green-dark);
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-decoration: none;
}

.back-link::before {
    content: "< ";
}

.back-link:hover {
    color: var(--brand-green);
    text-decoration: none;
}

.profile-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-list div {
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 1rem;
    grid-template-columns: 160px minmax(0, 1fr);
    padding: 0.9rem 0;
}

.profile-list div:first-child {
    padding-top: 0;
}

.profile-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-list dt {
    color: var(--muted);
    font-weight: 700;
}

.profile-list dd {
    margin: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Er is een fout opgetreden.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

@media (max-width: 1100px) {
    .summary-grid,
    .metric-row,
    .groups-workspace,
    .contacts-workspace,
    .two-column {
        grid-template-columns: 1fr;
    }

    .info-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.9rem;
        overflow-wrap: break-word;
    }

    .page-header,
    .detail-header {
        flex-direction: column;
    }

    .page-header {
        align-items: stretch;
        min-height: 0;
        padding: 0 0 0.85rem;
    }

    .page-header__actions {
        justify-content: flex-start;
    }

    .header-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .data-notice {
        flex-direction: column;
    }

    .filter-row,
    .group-row,
    .compact-team-form,
    .team-member-add {
        grid-template-columns: 1fr;
    }

    .waitlist-toolbar {
        flex-direction: column;
    }

    .search-field {
        flex: 0 0 auto;
        width: 100%;
    }

    .compact-action-create {
        grid-template-columns: 1fr;
    }

    .segmented-control.three-options {
        grid-template-columns: 1fr;
    }

    .group-row {
        align-items: flex-start;
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    .info-strip div {
        border-bottom: 1px solid var(--border);
        border-right: 0;
    }

    .info-strip div:last-child {
        border-bottom: 0;
    }

    .simple-row,
    .profile-list div {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .simple-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .simple-row span {
        text-align: left;
    }

    .compact-form-actions {
        flex-wrap: wrap;
    }
}
.compact-overview-table td {
    vertical-align: middle;
}

.team-member-list--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.member-overflow,
.muted-text {
    color: var(--text-muted);
    font-size: .85rem;
    white-space: nowrap;
}

.dialog-list {
    display: grid;
    gap: .4rem;
}

.dialog-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.5rem;
    padding: .4rem .15rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dialog-add-row {
    display: flex;
    align-items: end;
    gap: .75rem;
    margin-top: 1rem;
}

.note-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.compact-note-list article {
    padding-right: .25rem;
}

.dialog-command-list {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
}

.dialog-command-list form,
.dialog-command-list .btn {
    width: 100%;
}

.participant-list-filter {
    display: block;
    width: min(100%, 30rem);
    margin-bottom: 1rem;
}
