h1:focus {
    outline: none;
}

.review-form-card {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #d9dedb);
}

.rating-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.rating-options {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.rating-option span[aria-hidden="true"] {
    color: #9a6414;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
}

.conversation-card .secondary-action {
    display: inline-flex;
    margin-top: 0.75rem;
}

.conversation-shell {
    width: min(760px, 100%);
}

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

.message-bubble {
    max-width: min(85%, 36rem);
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: #f1f3f2;
}

.message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-bubble time {
    display: block;
    margin-top: 0.35rem;
    color: #66706b;
    font-size: 0.78rem;
}

.message-bubble-mine {
    justify-self: end;
    background: #e4f3eb;
}

.message-bubble-other {
    justify-self: start;
}

.message-compose {
    display: grid;
    gap: 0.75rem;
}

.message-compose textarea {
    width: 100%;
    resize: vertical;
}

:root {
    color: #18322b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    background: #f7f5f0;
    margin: 0;
}

a {
    color: #196d59;
}

.auth-shell {
    align-items: flex-start;
    background:
        radial-gradient(circle at top left, rgba(225, 125, 74, 0.13), transparent 32rem),
        #f7f5f0;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 4.5rem);
    padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.auth-card {
    background: #fff;
    border: 1px solid #e4ded3;
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(34, 49, 43, 0.08);
    max-width: 48rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    width: 100%;
}

.auth-card-compact {
    max-width: 34rem;
}

.auth-card h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin: 0;
}

.eyebrow {
    color: #b6532d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.auth-intro {
    color: #586a64;
    line-height: 1.6;
    margin: 1rem 0 2rem;
}

.auth-form {
    display: grid;
    gap: 0.7rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="datetime-local"],
.auth-form input[type="number"],
.auth-form select,
.auth-form textarea {
    background: #fff;
    border: 1px solid #bfc8c3;
    border-radius: 0.65rem;
    color: #18322b;
    font: inherit;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    width: 100%;
}

.auth-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-link {
    justify-self: end;
    margin-bottom: 0.4rem;
}

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

.form-field {
    display: grid;
    gap: 0.7rem;
}

.optional-label {
    color: #677872;
    font-size: 0.86rem;
    font-weight: 500;
}

.auth-form input:focus-visible,
.auth-form select:focus-visible,
.auth-form textarea:focus-visible,
.auth-form button:focus-visible,
.auth-card a:focus-visible {
    outline: 3px solid rgba(25, 109, 89, 0.28);
    outline-offset: 2px;
}

.field-label,
.account-type-fieldset legend {
    font-weight: 750;
    margin-top: 0.65rem;
}

.field-hint {
    color: #677872;
    font-size: 0.86rem;
    margin: -0.25rem 0 0.45rem;
}

.account-type-fieldset {
    border: 0;
    margin: 0 0 0.5rem;
    padding: 0;
}

.account-type-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.75rem;
}

.account-type-card {
    align-items: start;
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.8rem;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    line-height: 1.4;
    padding: 1rem;
}

.account-type-card:has(input:checked) {
    background: #eef7f3;
    border-color: #196d59;
    box-shadow: inset 0 0 0 1px #196d59;
}

.account-type-title {
    font-weight: 800;
}

.account-type-description {
    grid-column: 2;
}

.consent-row {
    align-items: flex-start;
    display: flex;
    gap: 0.7rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.consent-row input {
    height: 1.1rem;
    margin-top: 0.2rem;
    width: 1.1rem;
}

.primary-action,
.secondary-action {
    align-items: center;
    border-radius: 0.7rem;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
}

.primary-action {
    background: #196d59;
    border: 1px solid #196d59;
    color: #fff;
}

.secondary-action {
    background: transparent;
    border: 1px solid #196d59;
    color: #196d59;
}

.primary-action:disabled {
    background: #a9b6b1;
    border-color: #a9b6b1;
    cursor: not-allowed;
}

.notice {
    border-radius: 0.75rem;
    display: grid;
    gap: 0.35rem;
    line-height: 1.5;
    margin: 1.25rem 0;
    padding: 1rem;
}

.notice ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.notice-warning {
    background: #fff6df;
    border: 1px solid #e9ca79;
    color: #6c4a00;
}

.notice-error {
    background: #fff0ef;
    border: 1px solid #e3a09a;
    color: #7f211b;
}

.notice-success {
    background: #edf8f2;
    border: 1px solid #93cfb2;
    color: #15523f;
}

.notice-neutral {
    background: #eef4f1;
    border: 1px solid #b8cbc3;
    color: #294d43;
}

.contract-identity-panel,
.contract-party-fields {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.9rem;
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.contract-draft-card {
    max-width: 56rem;
}

.contract-party-fields + .contract-party-fields {
    margin-top: 0.5rem;
}

.documents-panel {
    border-top: 1px solid #e4ded3;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.documents-panel h2 {
    margin: 0 0 0.5rem;
}

.documents-panel .e-upload {
    margin-top: 0.75rem;
}

.documents-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.documents-list li {
    align-items: flex-start;
    background: #f7f5f0;
    border: 1px solid #e4ded3;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.documents-list li > span {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.document-name {
    overflow-wrap: anywhere;
}

.documents-list small {
    color: #65736e;
    flex: 0 0 auto;
}

@media (max-width: 520px) {
    .documents-list li {
        display: grid;
    }
}

.auth-switch {
    color: #65736e;
    margin: 1.5rem 0 0;
    text-align: center;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.access-free-card {
    background: #edf8f2;
    border: 1px solid #93cfb2;
    border-radius: 0.85rem;
    color: #15523f;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
}

.access-free-card p {
    margin: 0.35rem 0 0;
}

.indicative-pay-card {
    background: #f1f6fb;
    border: 1px solid #9ebcd4;
    border-radius: 0.85rem;
    color: #234b68;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
}

.indicative-pay-card p {
    margin: 0.35rem 0 0;
}

.pay-range-fieldset {
    border: 0;
    margin: 0.6rem 0 0;
    padding: 0;
}

.pay-range-fieldset legend {
    font-weight: 750;
    margin-bottom: 0.15rem;
}

.need-list-card {
    max-width: 52rem;
}

.need-list {
    display: grid;
    gap: 1rem;
}

.contract-history-card {
    min-width: 0;
}

.contract-history-card p,
.contract-history-card .secondary-action {
    overflow-wrap: anywhere;
}

.contract-history-card .secondary-action {
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.need-card {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.9rem;
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.need-card-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.need-card h2 {
    font-size: 1.3rem;
    margin: 0.2rem 0 0;
}

.need-card-job {
    color: #b6532d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.need-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.need-badge {
    background: #eaf3ef;
    border-radius: 999px;
    color: #15523f;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
}

.need-badge-urgent {
    background: #fff0ef;
    color: #8a2e24;
}

.need-card-details {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.need-card-details div {
    display: grid;
    gap: 0.2rem;
}

.need-card-details dt {
    color: #677872;
    font-size: 0.78rem;
}

.need-card-details dd {
    font-weight: 750;
    margin: 0;
}

.need-card-description {
    line-height: 1.55;
    margin: 0;
}

.received-reviews {
    border-block: 1px solid #d9d5cd;
    padding-block: 0.85rem;
}

.received-reviews summary {
    color: #15523f;
    cursor: pointer;
    font-weight: 800;
}

.received-reviews-disclaimer,
.received-reviews-empty {
    color: #677872;
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0.75rem 0 0;
}

.received-reviews-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.received-review {
    background: #fff;
    border: 1px solid #dce8e2;
    border-radius: 0.7rem;
    min-width: 0;
    padding: 0.8rem;
}

.received-review-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.received-review-stars {
    color: #b6532d;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.received-review time {
    color: #677872;
    font-size: 0.8rem;
}

.received-review p {
    line-height: 1.5;
    margin: 0.55rem 0 0;
    overflow-wrap: anywhere;
}

.admin-shell {
    padding-inline: clamp(0.75rem, 3vw, 2.5rem);
}

.admin-matching-card {
    max-width: 92rem;
}

.admin-dashboard-card {
    max-width: 92rem;
}

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

.dashboard-toolbar .auth-intro {
    margin-bottom: 0;
}

.dashboard-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.dashboard-guardrail {
    line-height: 1.5;
    margin: 1.25rem 0 0;
}

.dashboard-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

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

.dashboard-metric {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.9rem;
    padding: 1.15rem;
}

.dashboard-metric-value {
    color: #196d59;
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 850;
    line-height: 1;
}

.dashboard-metric h2 {
    font-size: 1.05rem;
    margin: 0.75rem 0 0.35rem;
}

.dashboard-metric p {
    color: #677872;
    line-height: 1.45;
    margin: 0;
}

.matching-filters {
    align-items: end;
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.9rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem;
}

.matching-filters input,
.matching-filters select {
    background: #fff;
    border: 1px solid #bfc8c3;
    border-radius: 0.65rem;
    color: #18322b;
    font: inherit;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
}

.matching-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    grid-column: 1 / -1;
}

.matching-guardrail {
    line-height: 1.5;
    margin: 1rem 0 0;
}

.matching-section {
    border-top: 1px solid #e4ded3;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

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

.matching-section-heading .eyebrow {
    margin-bottom: 0.25rem;
}

.matching-section-heading h2 {
    margin: 0;
}

.matching-count {
    align-items: center;
    background: #eaf3ef;
    border-radius: 999px;
    color: #15523f;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 2.2rem;
    min-width: 2.2rem;
    padding: 0.35rem 0.65rem;
}

.matching-grid-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.grid-action {
    background: #196d59;
    border: 1px solid #196d59;
    border-radius: 0.55rem;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    padding: 0.55rem 0.7rem;
}

.grid-action:disabled {
    background: #e7e9e8;
    border-color: #cbd1ce;
    color: #677872;
    cursor: not-allowed;
}

.matching-dialog .e-dlg-content {
    line-height: 1.55;
}

.contact-sheet h3 {
    margin-bottom: 1rem;
}

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

.contact-details > div {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.75rem;
    padding: 0.9rem;
}

.contact-details dt {
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.contact-details dd {
    overflow-wrap: anywhere;
    margin: 0.25rem 0;
}

.whatsapp-link {
    align-items: center;
    background: #e8f7f0;
    border: 1px solid #83c9aa;
    border-radius: 0.55rem;
    color: #145f4d;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    margin-top: 0.45rem;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
    background: #d6f0e4;
    color: #0d4b3c;
}

.admin-accounts-card {
    width: min(76rem, 100%);
}

.admin-accounts-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    margin-top: 1.5rem;
}

.admin-account-list {
    display: grid;
    gap: 0.75rem;
}

.admin-account-item {
    align-items: center;
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.8rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem;
}

.admin-account-item-selected {
    border-color: #2f806a;
    box-shadow: 0 0 0 2px rgb(47 128 106 / 12%);
}

.admin-account-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-account-item p {
    color: #5f6e69;
    margin: 0.35rem 0 0;
}

.admin-account-editor {
    background: #f5f2ec;
    border: 1px solid #d9d5cd;
    border-radius: 0.9rem;
    padding: 1.1rem;
}

.admin-account-metadata {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0;
}

.admin-account-metadata > div {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.admin-account-metadata dt {
    color: #5f6e69;
}

.admin-account-metadata dd {
    font-weight: 750;
    margin: 0;
    text-align: right;
}

.admin-account-action {
    border-top: 1px solid #d9d5cd;
    display: grid;
    gap: 0.65rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
}

.admin-account-action input[type="tel"],
.admin-account-action textarea {
    width: 100%;
}

.admin-account-danger {
    border-top-color: #d5a99e;
}

.danger-action {
    background: #983c2d;
    border: 1px solid #983c2d;
    border-radius: 0.55rem;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0.7rem 1rem;
}

.danger-action:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.rgpd-card {
    width: min(52rem, 100%);
}

.rgpd-form,
.rgpd-request-list {
    display: grid;
    gap: 1rem;
}

.rgpd-form {
    margin-top: 1.4rem;
}

.rgpd-history {
    border-top: 1px solid #d9d5cd;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
}

.rgpd-request-card,
.rgpd-request-details {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.8rem;
    padding: 1rem;
}

.rgpd-request-card h3 {
    margin: 0;
}

.rgpd-request-details {
    margin: 1rem 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.closure-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.closure-fieldset legend {
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.closure-fieldset > div {
    display: grid;
    gap: 0.7rem;
}

.closure-option {
    align-items: flex-start;
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.8rem;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.closure-option:has(input:checked) {
    background: #eef7f3;
    border-color: #196d59;
    box-shadow: inset 0 0 0 1px #196d59;
}

.closure-option input {
    margin-top: 0.25rem;
}

.closure-option span {
    display: grid;
    gap: 0.25rem;
}

.closure-option small {
    color: #677872;
    line-height: 1.45;
}

.placement-fee-card {
    background: #eef7f3;
    border: 1px solid #8ab9aa;
    border-radius: 0.9rem;
    display: grid;
    gap: 0.65rem;
    padding: 1.1rem;
}

.placement-fee-card p {
    line-height: 1.5;
    margin: 0;
}

.placement-fee-amount {
    color: #145846;
    font-size: 1.35rem;
    font-weight: 850;
}

.placement-fee-consent {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 0.7rem;
    margin-top: 0.35rem;
}

.placement-fee-consent input {
    margin-top: 0.25rem;
}

.subscription-status {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.5rem 0;
}

.subscription-status > div {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.8rem;
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.subscription-card {
    max-width: 62rem;
}

.subscription-options {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.subscription-option {
    background: #faf9f6;
    border: 1px solid #d9d5cd;
    border-radius: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.subscription-option-selected {
    border-color: #196d59;
    box-shadow: inset 0 0 0 1px #196d59;
}

.subscription-option h2 {
    margin: 0.2rem 0 0;
}

.subscription-option p {
    line-height: 1.5;
}

.subscription-option ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.25rem;
}

.subscription-option button {
    margin-top: auto;
}

.subscription-price {
    color: #196d59;
    font-size: 1.45rem;
    font-weight: 850;
    margin: 0.55rem 0 0;
}

.subscription-worker-note {
    margin-top: 1.5rem;
}

.subscription-cancel-card {
    background: #faf9f6;
    border-color: #d9d5cd;
    color: #273832;
    margin-top: 1.5rem;
}

.subscription-cancel-card .action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.subscription-cancel-card > button {
    margin-top: 1rem;
}

.status-label {
    color: #677872;
    font-size: 0.82rem;
}

.legal-shell {
    background: #f7f5f0;
    min-height: calc(100vh - 4.5rem);
    padding: clamp(1rem, 5vw, 4rem);
}

.legal-document {
    background: #fff;
    border: 1px solid #e4ded3;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgba(34, 49, 43, 0.06);
    margin: 0 auto;
    max-width: 58rem;
    overflow: hidden;
}

.legal-document-unavailable {
    line-height: 1.6;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-draft-warning {
    background: #fff1d6;
    border-bottom: 2px solid #d79b24;
    color: #664600;
    display: grid;
    gap: 0.35rem;
    line-height: 1.5;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
}

.legal-document-content {
    line-height: 1.7;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-document-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 1.5rem;
}

.legal-document-content h2 {
    border-top: 1px solid #e4ded3;
    font-size: 1.35rem;
    margin: 2.25rem 0 0.8rem;
    padding-top: 1.5rem;
}

.legal-document-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.6rem;
}

.legal-document-content p,
.legal-document-content li {
    overflow-wrap: anywhere;
}

.legal-document-content table {
    border-collapse: collapse;
    display: block;
    margin: 1.25rem 0;
    max-width: 100%;
    overflow-x: auto;
}

.legal-document-content th,
.legal-document-content td {
    border: 1px solid #d9d5cd;
    padding: 0.7rem;
    text-align: left;
    vertical-align: top;
}

.legal-document-content code {
    background: #f1eee8;
    border-radius: 0.3rem;
    padding: 0.1rem 0.3rem;
}

@media (max-width: 38rem) {
    .account-type-grid,
    .form-columns,
    .subscription-status,
    .need-card-details {
        grid-template-columns: 1fr;
    }

    .need-card-heading {
        display: grid;
    }

    .need-badges {
        justify-content: flex-start;
    }

    .auth-shell {
        padding: 1rem;
    }

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

    .dashboard-toolbar {
        display: grid;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

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

    .contact-details {
        grid-template-columns: 1fr;
    }

    .admin-accounts-layout {
        grid-template-columns: 1fr;
    }

    .admin-account-item {
        align-items: stretch;
        display: grid;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
