.auth-page,
.dashboard-page {
    min-height: 100vh;
    background: #f4f4ed;
}

.auth-header {
    background: var(--paper);
}

.auth-header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
}

.auth-back-link {
    color: #64736a;
    font-size: 12px;
    font-weight: 650;
}

.auth-back-link span {
    margin-left: 5px;
    color: #a56a4c;
}

.auth-main {
    position: relative;
    display: grid;
    min-height: calc(100vh - 136px);
    align-content: center;
    justify-items: center;
    overflow: hidden;
    padding: 55px 20px;
}

.auth-main::before,
.auth-main::after {
    position: absolute;
    z-index: 0;
    border: 1px solid #e1e5d9;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-main::before {
    top: -225px;
    left: -175px;
    width: 550px;
    height: 550px;
}

.auth-main::after {
    right: -270px;
    bottom: -335px;
    width: 660px;
    height: 660px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: 43px 45px 31px;
    background: var(--paper);
    box-shadow: 0 15px 55px rgb(34 53 43 / 8%);
}

.auth-card-wide {
    width: min(100%, 680px);
}

.account-back-link {
    display: inline-block;
    margin-bottom: 20px;
}

.account-section + .account-section {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #e8e9e1;
}

.account-section-heading {
    margin-bottom: 17px;
}

.account-section-heading h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.account-section-heading p {
    margin: 0;
    color: #69766e;
    font-size: 11px;
    line-height: 1.65;
}

.invitation-sheet-action {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e9e1;
}

.invitation-sheet-action .card-description {
    margin: 8px 0 13px;
}

.invitation-sheet-action .field-hint {
    margin-bottom: 0;
}

.auth-card-heading {
    margin-bottom: 27px;
}

.auth-card-heading h1 {
    margin: 16px 0 11px;
    color: var(--ink);
    font-size: clamp(32px, 5vw, 43px);
    font-weight: 580;
    letter-spacing: -0.07em;
    line-height: 1.12;
}

.auth-card-heading h1 em {
    color: #8b9b6c;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.auth-card-heading > p:last-child {
    max-width: 470px;
    margin: 0;
    color: #69766e;
    font-size: 12px;
    line-height: 1.75;
}

.auth-form {
    display: grid;
    gap: 16px;
}

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

.form-field {
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #334940;
    font-size: 11px;
    font-weight: 700;
}

.form-field .optional {
    color: #849087;
    font-size: 9px;
    font-weight: 500;
}

.form-field input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dfe3da;
    border-radius: 2px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dfe3da;
    border-radius: 2px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.form-field textarea {
    resize: vertical;
}

.form-field select:focus,
.form-field textarea:focus {
    border-color: #69836b;
    box-shadow: 0 0 0 3px rgb(105 131 107 / 12%);
}

.form-field input:focus {
    border-color: #69836b;
    box-shadow: 0 0 0 3px rgb(105 131 107 / 12%);
}

.form-field input::placeholder {
    color: #a4ada5;
}

.field-hint {
    margin: 6px 0 0;
    color: #7b877f;
    font-size: 10px;
}

.field-error {
    margin: 5px 0 0;
    color: #a34435;
    font-size: 10px;
    line-height: 1.4;
}

.membership-request-list {
    display: grid;
}

.membership-request-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #e8e9e1;
}

.membership-request-details {
    min-width: 0;
}

.membership-request-details > .workspace-card-heading {
    justify-content: flex-start;
    gap: 12px;
}

.membership-request-details small {
    color: #7b877f;
    font-size: 11px;
}

.membership-request-details p {
    margin: 8px 0 0;
    color: #596860;
    font-size: 12px;
}

.membership-request-message {
    white-space: pre-line;
}

.membership-request-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 20px;
    color: #596860;
    background: #f0f1eb;
    font-size: 10px;
    font-weight: 700;
}

.membership-request-accepted {
    color: #366e4d;
    background: #e7f2e7;
}

.membership-request-rejected {
    color: #934b3f;
    background: #f8e9e5;
}

.membership-request-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.membership-request-actions .button {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 11px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #647168;
    cursor: pointer;
    font-size: 11px;
}

.remember-option input {
    width: 14px;
    height: 14px;
    accent-color: var(--forest);
}

.auth-submit {
    width: 100%;
    margin-top: 3px;
    border: 0;
    cursor: pointer;
}

.auth-switch {
    margin: 21px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e7e9e2;
    color: #718077;
    text-align: center;
    font-size: 11px;
}

.auth-switch a {
    color: var(--forest);
    font-weight: 750;
}

.auth-footer {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    padding-inline: max(32px, calc((100% - 1160px) / 2));
    color: #879188;
    background: var(--paper);
    font-size: 10px;
}

.auth-footer a {
    color: #65756a;
}

.dashboard-page {
    background: #f3f4ee;
}

.dashboard-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 248px minmax(0, 1fr);
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 25px 18px 17px;
    color: #eff5ed;
    background: var(--forest);
}

.dashboard-brand {
    align-self: flex-start;
    color: #f6f7ef;
    font-size: 16px;
}

.dashboard-brand .brand-mark {
    width: 31px;
    height: 31px;
}

.sidebar-network {
    display: grid;
    gap: 5px;
    margin-top: 37px;
    padding: 17px 13px;
    border: 1px solid rgb(231 243 231 / 14%);
    background: rgb(255 255 255 / 4%);
}

.sidebar-caption,
.nav-caption {
    color: #a7c0af;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.sidebar-network > strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-ident {
    overflow: hidden;
    color: #bdd0c2;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    text-overflow: ellipsis;
}

.dashboard-nav {
    display: grid;
    gap: 4px;
    margin-top: 28px;
}

.nav-caption {
    margin: 0 0 7px 10px;
}

.dashboard-nav-link {
    display: flex;
    min-height: 41px;
    align-items: center;
    gap: 11px;
    padding: 0 10px;
    border-radius: 3px;
    color: #d3e1d7;
    font-size: 11px;
    font-weight: 550;
}

a.dashboard-nav-link {
    transition: background 150ms ease, color 150ms ease;
}

a.dashboard-nav-link:hover,
.dashboard-nav-link.active {
    color: #fff;
    background: rgb(231 243 231 / 12%);
}

.dashboard-nav-link.active {
    box-shadow: inset 2px 0 #c6dfa7;
}

.dashboard-nav-link.disabled {
    color: #b6c9bc;
}

.dashboard-nav-link small {
    margin-left: auto;
    color: #95af9e;
    font-size: 8px;
}

.nav-icon {
    display: inline-grid;
    width: 17px;
    place-items: center;
    color: #d0e1d0;
    font-size: 15px;
    line-height: 1;
}

.nav-caption-settings {
    margin-top: 24px;
}

.sidebar-bottom {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgb(231 243 231 / 15%);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--forest);
    background: var(--moss);
    font-size: 12px;
    font-weight: 750;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
    max-width: 158px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user strong {
    color: #fff;
    font-size: 10px;
    font-weight: 650;
}

.sidebar-user small {
    margin-top: 2px;
    color: #b4c9ba;
    font-size: 9px;
}

.logout-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border: 0;
    color: #d0dfd4;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    text-align: left;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-topbar {
    display: flex;
    min-height: 65px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-inline: clamp(24px, 5vw, 64px);
    border-bottom: 1px solid #e3e5dc;
    background: var(--paper);
}

.breadcrumb-label {
    overflow: hidden;
    color: #46594f;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-label span {
    color: #819087;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.breadcrumb-label i {
    padding-inline: 8px;
    color: #acb5ac;
    font-style: normal;
}

.topbar-role {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 7px;
    color: #617167;
    font-size: 10px;
}

.status-dot,
.network-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8fae73;
}

.dashboard-content {
    width: min(1120px, 100%);
    margin-inline: auto;
    padding: 42px clamp(24px, 5vw, 64px) 35px;
}

.dashboard-alert {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 30px;
    padding: 14px 17px;
    border: 1px solid #cddfc3;
    background: #edf4e8;
}

.alert-check {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #6d8b61;
    font-size: 12px;
}

.dashboard-alert > div {
    min-width: 0;
}

.dashboard-alert strong {
    color: #345143;
    font-size: 11px;
}

.dashboard-alert p {
    margin: 2px 0 0;
    color: #65786a;
    font-size: 10px;
}

.dashboard-alert code {
    margin-left: auto;
    padding: 7px 9px;
    color: #35523e;
    background: #dce9d3;
    font-size: 10px;
    white-space: nowrap;
}

.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 27px;
}

.dashboard-heading h1 {
    margin: 13px 0 6px;
    color: var(--ink);
    font-size: clamp(28px, 3.4vw, 39px);
    font-weight: 580;
    letter-spacing: -0.065em;
    line-height: 1.12;
}

.dashboard-lead {
    margin: 0;
    color: #68766d;
    font-size: 12px;
}

.dashboard-lead strong {
    color: #3d5147;
}

.dashboard-date {
    padding-bottom: 5px;
    color: #76847a;
    font-size: 10px;
    white-space: nowrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.summary-card,
.workspace-card {
    border: 1px solid #e1e4dc;
    background: var(--paper);
}

.summary-card {
    display: flex;
    min-height: 125px;
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 18px;
}

.summary-label,
.card-kicker {
    color: #76847a;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.summary-value {
    display: block;
    margin-top: 11px;
    color: var(--forest);
    font-size: 23px;
    font-weight: 620;
    letter-spacing: -0.055em;
    line-height: 1.15;
}

.summary-note {
    margin-top: auto;
    padding-top: 8px;
    color: #859087;
    font-size: 9px;
}

.summary-card-muted .summary-value,
.summary-card-accent .summary-value {
    font-size: 17px;
}

.summary-card-accent {
    border-color: #d9e3ce;
    background: #eef3e8;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(270px, 0.88fr);
    gap: 13px;
}

.workspace-card {
    padding: 21px;
}

.workspace-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.workspace-card h2 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.05em;
}

.network-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: #58714e;
    background: #edf4e8;
    font-size: 9px;
    font-weight: 650;
}

.network-status i {
    width: 6px;
    height: 6px;
}

.network-card > p {
    margin: 13px 0 17px;
    color: #6f7b73;
    font-size: 11px;
    line-height: 1.7;
}

.network-details {
    display: grid;
    gap: 0;
    border-top: 1px solid #e8eae4;
}

.network-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #e8eae4;
    font-size: 10px;
}

.network-details > div:last-child {
    border-bottom: 0;
}

.network-details span {
    color: #7e8a81;
}

.network-details strong {
    color: #41554a;
    font-weight: 650;
    text-align: right;
}

.next-card h2 {
    margin-bottom: 19px;
}

.next-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.next-steps li > span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e1e5dc;
    border-radius: 50%;
    color: #8c988e;
    font-size: 8px;
    font-weight: 700;
}

.next-steps .step-current > span {
    color: #fff;
    border-color: #43564b;
    background: #43564b;
}

.next-steps .step-locked {
    opacity: 0.58;
}

.next-steps .step-done > span {
    color: #fff;
    border-color: #758f68;
    background: #758f68;
}

.next-steps .step-state {
    margin-right: 4px;
    font-weight: 700;
}

.next-steps .step-done .step-state {
    color: #758f68;
}

.next-steps .step-current .step-state {
    color: #43564b;
}

.next-steps strong,
.next-steps small {
    display: block;
}

.next-steps strong {
    padding-top: 2px;
    color: #43564b;
    font-size: 10px;
}

.next-steps small {
    margin-top: 3px;
    color: #879289;
    font-size: 9px;
}

.steps-description {
    margin: -5px 0 16px;
    color: #879289;
    font-size: 9px;
    line-height: 1.5;
}

.setup-progress-list {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.setup-progress-item {
    display: grid;
    gap: 7px;
}

.setup-progress-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.setup-progress-heading > div {
    display: grid;
    gap: 3px;
}

.setup-progress-label {
    color: #879289;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.setup-progress-heading strong {
    color: #43564b;
    font-size: 10px;
}

.setup-progress-heading .setup-progress-value {
    color: var(--forest);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.setup-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8ece5;
}

.setup-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #758f68;
    transition: width 180ms ease;
}

.setup-progress-track-complete > span {
    background: #b7c98d;
}

.setup-progress-item > small {
    color: #879289;
    font-size: 8px;
}

.setup-section-title {
    margin: 0 0 14px;
    color: #52665a;
    font-family: var(--display-font);
    font-size: 14px;
    font-weight: 500;
}

.configuration-checklist {
    margin-top: 21px;
    padding-top: 19px;
    border-top: 1px solid #e8eae4;
}

.configuration-checklist-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.configuration-checklist-heading h3 {
    margin: 5px 0 0;
    color: #43564b;
    font-family: var(--display-font);
    font-size: 15px;
    font-weight: 500;
}

.configuration-checklist-heading > a,
.configuration-checklist li > a {
    color: var(--forest);
    font-size: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.configuration-checklist-description {
    margin: 8px 0 12px;
    color: #879289;
    font-size: 8px;
    line-height: 1.5;
}

.configuration-checklist ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.configuration-checklist li {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.configuration-task-icon {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid #dfe4dc;
    border-radius: 50%;
    color: #9aa39b;
    font-size: 10px;
    font-weight: 750;
}

.configuration-task-complete .configuration-task-icon {
    border-color: #758f68;
    color: #fff;
    background: #758f68;
}

.configuration-checklist li > div {
    display: grid;
    gap: 2px;
}

.configuration-checklist li strong {
    color: #52665a;
    font-size: 9px;
    font-weight: 650;
}

.configuration-checklist li small {
    color: #879289;
    font-size: 8px;
    line-height: 1.4;
}

.next-steps .step-hint {
    display: block;
    margin-top: 3px;
}

.dashboard-footnote {
    margin: 17px 0 0;
    color: #929b93;
    font-size: 9px;
}

.role-placeholder {
    display: grid;
    min-height: 100vh;
    align-content: start;
    justify-items: center;
    gap: 80px;
    padding: 28px 20px;
}

.placeholder-card {
    width: min(100%, 520px);
    padding: 38px;
    background: var(--paper);
    box-shadow: 0 15px 55px rgb(34 53 43 / 8%);
}

.placeholder-card h1 {
    margin: 15px 0 10px;
    color: var(--ink);
    font-size: 34px;
    letter-spacing: -0.06em;
}

.placeholder-card > p:not(.section-label) {
    margin-bottom: 24px;
    color: #69766e;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .dashboard-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

@media (max-width: 760px) {
    .auth-main {
        min-height: calc(100vh - 126px);
        padding: 34px 16px;
    }

    .auth-card {
        padding: 32px 25px 25px;
    }

    .auth-footer {
        padding-inline: 20px;
    }

    .dashboard-shell {
        display: block;
    }

    .dashboard-sidebar {
        position: relative;
        height: auto;
        padding: 16px 18px 12px;
    }

    .sidebar-network {
        margin-top: 15px;
        padding: 10px 12px;
    }

    .dashboard-nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        margin-top: 13px;
        padding-bottom: 4px;
    }

    .dashboard-nav .nav-caption {
        display: none;
    }

    .dashboard-nav-link {
        min-width: max-content;
        min-height: 36px;
        padding-inline: 9px;
        font-size: 10px;
    }

    .dashboard-nav-link small {
        display: none;
    }

    .sidebar-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-top: 9px;
        padding-top: 9px;
    }

    .sidebar-user strong {
        max-width: 180px;
    }

    .logout-button {
        width: auto;
        gap: 8px;
        font-size: 9px;
    }

    .dashboard-topbar {
        min-height: 54px;
        padding-inline: 20px;
    }

    .dashboard-content {
        padding: 28px 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 105px;
    }

    .dashboard-alert {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-alert code {
        margin-left: 38px;
    }
}

.member-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.member-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px clamp(20px, 6vw, 72px);
    border-bottom: 1px solid #e3e5dc;
    background: var(--paper);
}

.member-account {
    display: flex;
    align-items: center;
    gap: 24px;
}

.member-account > span {
    text-align: right;
}

.member-account strong,
.member-account small {
    display: block;
}

.member-account strong {
    color: #405349;
    font-size: 10px;
}

.member-account small {
    margin-top: 2px;
    color: #879188;
    font-size: 9px;
}

.member-logout {
    width: auto;
    gap: 8px;
    color: #65756a;
    font-size: 10px;
}

.member-statistics-link {
    color: #47634d;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.member-statistics-link:hover {
    color: var(--forest);
    text-decoration: underline;
}

.member-content {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(36px, 7vh, 68px) 0 56px;
}

.member-heading {
    margin-bottom: 27px;
}

.member-heading h1 {
    margin: 12px 0 7px;
    color: var(--ink);
    font-size: clamp(32px, 5vw, 45px);
    font-weight: 580;
    letter-spacing: -0.07em;
    line-height: 1.12;
}

.member-heading > p:last-child {
    margin: 0;
    color: #68766d;
    font-size: 12px;
}

.member-heading strong {
    color: #3d5147;
}

.member-statistics-content {
    width: min(1024px, calc(100% - 40px));
}

.member-statistics-privacy {
    margin: -10px 0 18px;
    padding: 12px 14px;
    border: 1px solid #dfe5d8;
    color: #52684e;
    background: #f3f6ef;
    font-size: 10px;
    line-height: 1.6;
}

.member-panel {
    padding: clamp(22px, 5vw, 38px);
    border: 1px solid #e1e4dc;
    background: var(--paper);
    box-shadow: 0 15px 45px rgb(34 53 43 / 5%);
}

.member-panel h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 620;
    letter-spacing: -0.055em;
    line-height: 1.3;
}

.member-instruction,
.member-empty > p:last-child {
    margin: 10px 0 0;
    color: #728077;
    font-size: 11px;
    line-height: 1.7;
}

.member-empty {
    min-height: 255px;
    align-content: center;
}

.member-panel-icon {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 21px;
    place-items: center;
    border-radius: 50%;
    color: #55705c;
    background: #edf3e8;
    font-size: 20px;
}

.member-answer-options {
    display: grid;
    gap: 9px;
    margin: 23px 0 19px;
    padding: 0;
    border: 0;
}

.member-geolocation-note,
.member-geolocation-status {
    max-width: 460px;
    margin: 0 0 15px;
    padding: 11px 13px;
    color: #52684e;
    background: #f0f4eb;
    font-size: 10px;
    line-height: 1.6;
}

.member-geolocation-status {
    border: 1px solid #d9e3ce;
}

.member-answer-option {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e1e5dc;
    color: #43564b;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    transition: border-color 150ms ease, background 150ms ease;
}

.member-answer-option:has(input:checked) {
    border-color: #819a70;
    background: #f1f5ec;
}

.member-answer-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--forest);
}

.member-submit {
    min-height: 46px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.member-footnote {
    margin: 14px 0 0;
    color: #8a948c;
    font-size: 9px;
}

.response-wait {
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid #d9e3ce;
    color: #52684e;
    background: #f0f4eb;
    font-size: 10px;
    line-height: 1.65;
}

.response-wait p {
    margin: 3px 0 0;
}

.member-answer-options:disabled .member-answer-option {
    cursor: not-allowed;
    opacity: 0.62;
}

.member-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.form-field select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dfe3da;
    border-radius: 2px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.form-field select:focus {
    border-color: #69836b;
    box-shadow: 0 0 0 3px rgb(105 131 107 / 12%);
}

.settings-card {
    max-width: 700px;
}

.settings-page-back {
    margin: -8px 0 18px;
}

.settings-page-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64746a;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}

.settings-page-back a:hover {
    color: var(--forest);
}

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

.settings-overview-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px 23px;
    border: 1px solid #e8eae4;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease;
}

.settings-overview-card:hover {
    transform: translateY(-2px);
    border-color: #9eae9d;
}

.settings-overview-card h2 {
    margin: 11px 0 7px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: 20px;
    font-weight: 500;
}

.settings-overview-card > p {
    margin: 0 0 9px;
    color: #68756c;
    font-size: 11px;
    line-height: 1.6;
}

.settings-overview-card > p strong {
    color: #43584b;
}

.settings-overview-status {
    color: #879289;
    font-size: 9px;
    line-height: 1.5;
}

.settings-overview-action {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--forest);
    font-size: 10px;
    font-weight: 700;
}

.settings-form {
    max-width: 460px;
}

.member-access-state {
    margin: 0 0 16px;
}

.member-access-url-control {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.member-access-url-control input {
    min-width: 0;
    flex: 1;
}

.member-access-url-control .button {
    white-space: nowrap;
}

.member-access-url-field .field-hint:empty {
    display: none;
}

.settings-form input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--forest);
}

.alert-preferences-form {
    padding-top: 20px;
    border-top: 1px solid #e8eae4;
}

.alert-preference-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eae4;
    color: #495c50;
    font-size: 10px;
}

.alert-preference-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #52665a;
    font-size: 10px;
    font-weight: 550;
}

.alert-preference-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--forest);
}

.alert-preference-row input[type="hidden"] {
    display: none;
}

.alert-preference-row .is-disabled {
    opacity: 0.48;
}

.alert-delivery-list {
    display: grid;
    margin-top: 12px;
}

.alert-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eae4;
}

.alert-delivery-row > div {
    display: grid;
    gap: 4px;
}

.alert-delivery-row strong,
.alert-delivery-row span,
.alert-delivery-row small {
    overflow-wrap: anywhere;
}

.alert-delivery-row strong,
.alert-delivery-row span {
    color: #52665a;
    font-size: 10px;
}

.alert-delivery-row small {
    color: #879289;
    font-size: 9px;
}

.alert-delivery-row .field-error {
    color: #a34435;
}

.geolocation-settings-card {
    margin-top: 15px;
}

@media (max-width: 720px) {
    .settings-overview-grid {
        grid-template-columns: 1fr;
    }

    .settings-overview-card {
        min-height: 170px;
    }

    .member-access-url-control {
        flex-direction: column;
    }

    .configuration-checklist-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .configuration-checklist li {
        grid-template-columns: 17px minmax(0, 1fr);
    }

    .configuration-checklist li > a {
        grid-column: 2;
    }
}

.geolocation-setting input[type="checkbox"],
.member-stats-setting input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    accent-color: var(--forest);
}

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

.report-history-note {
    margin: -8px 0 15px;
}

.reports-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-export-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 9px;
}

.report-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 15px;
}

.report-chart-card {
    min-width: 0;
}

.report-chart-card h2 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.report-chart-card .card-description {
    min-height: 34px;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.daily-chart {
    display: flex;
    min-width: 560px;
    height: 190px;
    align-items: flex-end;
    gap: 7px;
    overflow-x: auto;
    margin-top: 14px;
    padding: 8px 0 0;
    border-bottom: 1px solid #e8eae4;
}

.daily-chart-column {
    display: flex;
    min-width: 27px;
    height: 100%;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.daily-chart-value {
    color: #64756a;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.daily-chart-track {
    display: flex;
    width: 100%;
    height: 135px;
    align-items: flex-end;
    justify-content: center;
    background: #f3f5ef;
}

.daily-chart-track span {
    display: block;
    width: min(22px, 72%);
    background: #7e9b71;
}

.daily-chart-label {
    padding-bottom: 6px;
    color: #879188;
    font-size: 8px;
    white-space: nowrap;
}

.answer-chart {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.answer-chart-row {
    min-width: 0;
}

.answer-chart-label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #53645a;
    font-size: 9px;
}

.answer-chart-label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.answer-chart-label strong {
    flex: 0 0 auto;
    color: #405349;
    font-variant-numeric: tabular-nums;
}

.answer-chart-track {
    height: 7px;
    overflow: hidden;
    background: #f0f2ec;
}

.answer-chart-track span {
    display: block;
    height: 100%;
    background: #7e9b71;
}

.report-card {
    min-width: 0;
}

.report-filters {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    margin: 20px 0 7px;
    padding: 16px;
    background: #f7f8f3;
}

.report-filter-actions {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 14px;
}

.report-filter-actions .button {
    min-height: 39px;
    padding: 9px 14px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.report-table {
    min-width: 720px;
}

.report-empty {
    padding: 24px 12px !important;
    color: #859087;
    text-align: center;
}

.report-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #e8eae4;
    color: #879188;
    font-size: 9px;
}

.report-pagination > div {
    display: flex;
    gap: 15px;
}

.report-pagination a {
    color: #45684e;
    font-weight: 700;
}

.pagination-disabled {
    color: #a7afa8;
}

@media (max-width: 900px) {
    .report-charts {
        grid-template-columns: 1fr;
    }

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

    .report-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 460px) {
    .report-summary {
        grid-template-columns: 1fr;
    }

    .report-filters {
        grid-template-columns: 1fr;
    }

    .report-filter-actions {
        grid-column: auto;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 520px) {
    .member-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding-block: 14px;
    }

    .member-account {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #e8eae4;
    }

    .member-account > span {
        text-align: left;
    }

    .member-content {
        width: min(100% - 28px, 760px);
        padding-top: 34px;
    }

    .member-content.member-statistics-content {
        width: min(100% - 28px, 1024px);
    }
}

@media (max-width: 460px) {
    .auth-header-inner {
        min-height: 66px;
    }

    .auth-back-link {
        font-size: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-card-wide {
        padding-inline: 21px;
    }

    .auth-footer {
        font-size: 9px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-date {
        padding-bottom: 0;
    }

    .dashboard-topbar {
        gap: 10px;
        padding-inline: 14px;
    }

    .breadcrumb-label {
        font-size: 9px;
    }

    .topbar-role {
        font-size: 9px;
    }

    .workspace-card {
        padding: 17px;
    }

    .network-details > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .network-details strong {
        text-align: left;
    }
}

.dashboard-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid #cddfc3;
    color: #345143;
    background: #edf4e8;
    font-size: 11px;
    line-height: 1.6;
}

.dashboard-message-error {
    border-color: #e7c7bd;
    color: #8c3d31;
    background: #fbefeb;
}

.dashboard-message-warning {
    border-color: #e5d7a8;
    color: #6a5623;
    background: #fbf6e7;
}

.question-edit-card,
.question-history-card {
    margin-bottom: 15px;
}

.question-edit-card .dashboard-message {
    margin-top: 14px;
}

.question-history-card form {
    margin-top: 15px;
}

.button-danger {
    min-height: 40px;
    padding: 11px 15px;
    border: 0;
    color: #fff;
    background: #a34435;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.button-danger:hover {
    background: #8c3d31;
}

.management-card,
.create-question-card {
    margin-bottom: 15px;
}

.management-card > .workspace-card-heading h2,
.workspace-card .workspace-card-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.count-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding-inline: 5px;
    border-radius: 20px;
    color: #63766a;
    background: #eef1e9;
    font-size: 9px;
    letter-spacing: 0;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.management-table {
    width: 100%;
    border-collapse: collapse;
    color: #53645a;
    font-size: 10px;
    text-align: left;
}

.management-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e9e1;
    color: #879188;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.management-table td {
    padding: 12px;
    border-bottom: 1px solid #edf0e9;
    white-space: nowrap;
}

.management-table td strong {
    color: #405349;
}

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

.member-status,
.question-state {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    color: #79857c;
    background: #f0f1ed;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.member-status.is-active,
.question-state.is-active {
    color: #58714e;
    background: #edf4e8;
}

.text-action {
    padding: 2px 0;
    border: 0;
    color: #45684e;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.text-action:hover {
    color: #233d2e;
    text-decoration: underline;
}

.text-action-danger {
    color: #a45c4d;
}

.management-sections {
    align-items: start;
    margin-bottom: 15px;
}

.management-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.management-form .button {
    justify-self: start;
    min-height: 40px;
    padding: 11px 15px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.card-description,
.empty-state {
    margin: 12px 0 0;
    color: #77847a;
    font-size: 10px;
    line-height: 1.7;
}

.empty-state {
    padding: 15px 0 2px;
}

.invitation-list {
    display: grid;
    margin-top: 10px;
}

.invitation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eae4;
}

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

.invitation-row strong,
.invitation-row small {
    display: block;
    overflow-wrap: anywhere;
}

.invitation-row strong {
    color: #41554a;
    font-size: 10px;
}

.invitation-row small {
    margin-top: 4px;
    color: #879289;
    font-size: 9px;
}

.question-list {
    display: grid;
    margin-top: 18px;
}

.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid #e8eae4;
}

.question-row-main {
    display: grid;
    min-width: 0;
    justify-items: start;
    gap: 6px;
}

.question-title {
    color: #405349;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.question-title:hover {
    color: #6c865f;
}

.question-row-main > small {
    color: #879289;
    font-size: 9px;
}

.question-row-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
}

.answer-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.answer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e8eae4;
    color: #495c50;
    font-size: 10px;
}

.answer-management {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 7px;
}

.answer-edit-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-edit-form input {
    min-width: 0;
    min-height: 36px;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #dfe3da;
    border-radius: 2px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 11px;
}

.answer-edit-form input:focus {
    border-color: #69836b;
    outline: none;
    box-shadow: 0 0 0 3px rgb(105 131 107 / 12%);
}

.answer-delete-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.answer-delete-row small {
    color: #7b877f;
    font-size: 9px;
}

.answer-delete-row .answer-delete-hint {
    color: #6a5623;
}

.answer-list li > span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #75867a;
    background: #f0f2ec;
    font-size: 9px;
}

.answer-list strong {
    font-weight: 600;
}

.answer-form {
    padding-top: 17px;
    border-top: 1px solid #e8eae4;
}

@media (max-width: 600px) {
    .alert-preference-row {
        grid-template-columns: 1fr 1fr;
    }

    .alert-preference-row > strong {
        grid-column: 1 / -1;
    }
}

.question-status-card form {
    margin-top: 20px;
}

.question-status-card .button {
    min-height: 40px;
    padding: 11px 15px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.question-status-card .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 760px) {
    .question-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .question-row-actions {
        flex-wrap: wrap;
    }

    .answer-edit-form {
        align-items: flex-start;
        flex-direction: column;
    }

    .answer-edit-form input {
        width: 100%;
        flex: auto;
    }

    .answer-delete-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.subscription-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.subscription-current h2 {
    margin: 7px 0 0;
}

.subscription-current .card-description {
    margin: 6px 0 0;
}

.subscription-usage {
    display: grid;
    gap: 4px;
    text-align: right;
}

.subscription-usage > span {
    color: #78857c;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.subscription-usage strong {
    color: var(--ink);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.subscription-usage small {
    color: #78857c;
    font-size: 9px;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 13px;
}

.subscription-plan {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.subscription-plan-current {
    border-color: #9aae8d;
    box-shadow: inset 0 2px #8da77d;
}

.subscription-plan-heading {
    position: relative;
    padding-right: 54px;
}

.subscription-plan-heading h2 {
    margin-top: 6px;
}

.subscription-current-badge {
    position: absolute;
    top: 0;
    right: 0;
    color: #71876a;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.subscription-price {
    display: block;
    margin-top: 18px;
    color: var(--ink);
    font-size: 17px;
    letter-spacing: -0.035em;
}

.subscription-features {
    display: grid;
    flex: 1;
    gap: 10px;
    margin: 17px 0 20px;
    padding: 15px 0 0;
    border-top: 1px solid #e6e8e1;
    list-style: none;
}

.subscription-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #586860;
    font-size: 10px;
    line-height: 1.5;
}

.subscription-features li span {
    color: #718a67;
    font-weight: 750;
}

.subscription-button {
    width: 100%;
    min-height: 42px;
    font-size: 10px;
}

.subscription-button:disabled {
    cursor: default;
    opacity: 0.7;
    transform: none;
}

.subscription-notes {
    max-width: 840px;
    margin-top: 18px;
    color: #718078;
    font-size: 10px;
    line-height: 1.7;
}

.subscription-notes p {
    margin: 0 0 8px;
}

.subscription-notes a {
    color: #345b4d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

@media (max-width: 600px) {
    .subscription-current {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscription-usage {
        text-align: left;
    }

    .subscription-grid {
        grid-template-columns: 1fr;
    }

    .membership-request-row {
        flex-direction: column;
    }

    .membership-request-actions {
        width: 100%;
    }
}
