:root {
    --ink: #3e4730;
    --ink-deep: #2c3421;
    --sage: #77806b;
    --gold: #ae8750;
    --gold-light: #c9aa75;
    --cream: #faf9f5;
    --paper: #f2f0e9;
    --line: rgba(101, 94, 72, .2);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Montserrat', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header,
.section-wrap,
.site-footer {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    min-height: 89px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    line-height: 1;
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
    object-position: center;
}

.brand-copy {
    display: grid;
    gap: 6px;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.brand-copy small {
    color: var(--gold);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #58604d;
    font-size: .71rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.main-menu>a:not(.menu-cta) {
    transition: color .2s ease;
}

.main-menu>a:not(.menu-cta):hover {
    color: var(--gold);
}

.menu-cta {
    padding: 12px 18px;
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: background .2s ease, color .2s ease;
}

.menu-cta:hover {
    background: var(--gold);
    color: #fff;
}

.menu-toggle {
    display: none;
    padding: 7px 0 7px 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    margin: 6px 0;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}

.hero {
    position: relative;
    min-height: 635px;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    align-items: center;
    overflow: hidden;
    background: var(--paper);
}

.hero::before,
.hero::after {
    position: absolute;
    z-index: 0;
    content: '';
    pointer-events: none;
}

.hero::before {
    inset: 0;
    opacity: .62;
    background: radial-gradient(ellipse at 73% 16%, transparent 0 19%, rgba(128, 125, 116, .13) 19.3%, transparent 20% 34%, rgba(160, 156, 147, .1) 34.3%, transparent 35%), radial-gradient(ellipse at 92% 68%, transparent 0 16%, rgba(133, 129, 122, .12) 16.2%, transparent 17%), linear-gradient(117deg, transparent 25%, rgba(154, 151, 144, .1) 25.3%, transparent 26%);
    background-size: 610px 430px, 730px 610px, 980px 650px;
}

.hero::after {
    width: 360px;
    height: 680px;
    right: -220px;
    top: -130px;
    border: 1px solid rgba(174, 135, 80, .38);
    border-radius: 50%;
    transform: rotate(26deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(570px, calc(100% - 48px));
    margin: 0 0 0 max(24px, calc((100vw - 1180px) / 2));
    padding: 70px 0;
}

.eyebrow {
    margin: 0 0 17px;
    color: var(--gold);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .21em;
    line-height: 1.5;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.04;
}

h1 {
    max-width: 650px;
    margin-bottom: 26px;
    color: var(--ink-deep);
    font-size: clamp(3.05rem, 5.1vw, 5.2rem);
}

.hero-text {
    max-width: 490px;
    margin-bottom: 33px;
    color: #64695e;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 29px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-height: 52px;
    padding: 14px 22px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff;
    box-shadow: 0 9px 20px rgba(112, 82, 38, .14);
}

.button-primary:hover {
    background: #98713e;
    border-color: #98713e;
}

.button-primary span {
    font-size: 1.15rem;
    font-weight: 400;
}

.button-text {
    min-height: auto;
    padding: 8px 0;
    border-bottom: 1px solid var(--gold);
    color: var(--ink);
}

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 440px;
    margin-right: max(24px, calc((100vw - 1180px) / 2));
}

.gold-frame {
    position: absolute;
    inset: 15px 0 15px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--gold);
    color: var(--ink);
    text-align: center;
    background: rgba(255, 255, 255, .23);
    box-shadow: inset 0 0 0 11px rgba(255, 255, 255, .11);
}

.gold-frame::before,
.gold-frame::after {
    position: absolute;
    content: '';
    width: 65px;
    height: 65px;
    border-color: var(--gold);
}

.gold-frame::before {
    left: -1px;
    top: -1px;
    border-left: 2px solid;
    border-top: 2px solid;
}

.gold-frame::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid;
    border-bottom: 2px solid;
}

.art-logo {
    display: block;
    width: auto;
    height: 154px;
    margin-bottom: 12px;
    object-fit: contain;
}

.art-name {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.85rem, 2.8vw, 2.65rem);
    font-weight: 500;
    line-height: 1;
}

.art-line {
    width: 117px;
    height: 1px;
    margin: 17px 0 15px;
    background: var(--gold);
}

.art-role {
    color: var(--gold);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .31em;
    text-transform: uppercase;
}

.intro {
    padding: 130px 0 120px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 90px;
    align-items: end;
}

h2 {
    margin-bottom: 0;
    color: var(--ink-deep);
    font-size: clamp(2.55rem, 4vw, 4.25rem);
}

.section-heading>p {
    max-width: 385px;
    margin: 0 0 8px;
    color: #666b60;
    font-size: .94rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
    margin-top: 75px;
}

.values-grid article {
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.values-grid span {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.3rem;
}

.values-grid h3 {
    margin: 14px 0 12px;
    font-size: 1.68rem;
}

.values-grid p {
    margin: 0;
    color: #73766e;
    font-size: .85rem;
}

.care-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    min-height: 660px;
    background: #e9e8df;
}

.care-visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #dee0d7, #f0efe9);
}

.care-visual::before {
    position: absolute;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(174, 135, 80, .6);
    border-radius: 50%;
    content: '';
}

.care-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: min(59%, 365px);
    object-fit: contain;
    transform: rotate(-10deg);
}

.botanical {
    position: absolute;
    width: 220px;
    height: 390px;
    border: 1px solid rgba(75, 91, 60, .34);
    border-radius: 100% 0 100% 0;
    transform: rotate(-34deg);
}

.botanical::after {
    position: absolute;
    top: 47%;
    left: 25px;
    width: 170px;
    height: 1px;
    background: rgba(75, 91, 60, .35);
    content: '';
    transform: rotate(45deg);
}

.botanical-one {
    top: -115px;
    left: -42px;
}

.botanical-two {
    right: -55px;
    bottom: -180px;
    transform: rotate(145deg);
}

.care-copy {
    max-width: 660px;
    padding: 103px clamp(28px, 8vw, 125px);
}

.care-copy h2 {
    max-width: 520px;
    margin-bottom: 52px;
}

.care-list {
    border-top: 1px solid var(--line);
}

.care-list article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 23px 0;
    border-bottom: 1px solid var(--line);
}

.care-number {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.2rem;
}

.care-list h3 {
    margin: 0 0 7px;
    font-size: 1.45rem;
}

.care-list p {
    margin: 0;
    color: #6b7066;
    font-size: .82rem;
}

.patient-section {
    position: relative;
    overflow: hidden;
    background: var(--ink-deep);
    color: #f9f7ef;
}

.patient-section::before {
    position: absolute;
    inset: 0;
    content: '';
    opacity: .25;
    background: radial-gradient(ellipse at 8% 95%, transparent 0 32%, rgba(255, 255, 255, .22) 32.3%, transparent 33%), radial-gradient(ellipse at 96% 6%, transparent 0 24%, rgba(255, 255, 255, .19) 24.3%, transparent 25%);
}

.patient-inner {
    position: relative;
    display: grid;
    grid-template-columns: .76fr 1.24fr;
    gap: clamp(55px, 10vw, 148px);
    align-items: center;
    min-height: 493px;
    padding-top: 77px;
    padding-bottom: 77px;
}

.patient-identity {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}

.patient-identity img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: 212px;
    object-fit: contain;
}

.patient-orbit {
    position: absolute;
    width: 291px;
    height: 291px;
    border: 1px solid rgba(205, 174, 116, .62);
    border-radius: 50%;
}

.patient-orbit::before,
.patient-orbit::after {
    position: absolute;
    content: '';
    border: 1px solid rgba(205, 174, 116, .33);
    border-radius: 50%;
}

.patient-orbit::before {
    width: 367px;
    height: 218px;
    top: 37px;
    left: -38px;
    transform: rotate(-34deg);
}

.patient-orbit::after {
    width: 185px;
    height: 355px;
    top: -33px;
    left: 51px;
    transform: rotate(35deg);
}

.patient-copy {
    max-width: 580px;
}

.patient-copy .eyebrow {
    color: var(--gold-light);
}

.patient-copy h2 {
    color: #fffdf8;
    margin-bottom: 22px;
}

.patient-copy>p:not(.eyebrow) {
    max-width: 515px;
    margin-bottom: 29px;
    color: rgba(255, 255, 255, .76);
    font-size: .92rem;
}

.button-light {
    border: 1px solid var(--gold-light);
    background: transparent;
    color: #fffdf8;
}

.button-light:hover {
    border-color: var(--gold-light);
    background: var(--gold-light);
    color: var(--ink-deep);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr .72fr;
    gap: 100px;
    align-items: center;
    padding-top: 125px;
    padding-bottom: 125px;
}

.contact-section h2 {
    max-width: 560px;
}

.contact-card {
    padding: 44px;
    border: 1px solid rgba(174, 135, 80, .55);
    background: #fffdf8;
    box-shadow: 13px 13px 0 rgba(174, 135, 80, .11);
}

.contact-card>p {
    margin-bottom: 26px;
    color: #686d63;
    font-size: .88rem;
}

.contact-card small {
    display: block;
    margin-top: 22px;
    color: #8a8c85;
    font-size: .62rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 126px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
    color: #878980;
    font-size: .65rem;
    letter-spacing: .04em;
}

.footer-info {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
}

.legal-links a,
.patient-legal a {
    color: #697063;
    font-size: .59rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.legal-links a:hover,
.patient-legal a:hover {
    color: var(--gold);
}

.portal-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #eaebe5, #f8f6ef);
}

.portal-layout {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 92px 24px 67px;
    overflow: hidden;
}

.portal-layout::before {
    position: absolute;
    width: min(69vw, 960px);
    height: min(69vw, 960px);
    border: 1px solid rgba(174, 135, 80, .34);
    border-radius: 50%;
    content: '';
    transform: translate(43%, -47%);
}

.portal-brand {
    position: absolute;
    top: 32px;
    left: max(24px, calc((100% - 1120px) / 2));
    z-index: 1;
}

.portal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
    padding: 53px;
    border: 1px solid rgba(174, 135, 80, .52);
    background: rgba(255, 254, 250, .92);
    box-shadow: 18px 18px 0 rgba(174, 135, 80, .12);
}

.portal-card h1 {
    margin-bottom: 17px;
    font-size: clamp(2.55rem, 4vw, 3.6rem);
}

.portal-card>p:not(.eyebrow):not(.portal-note):not(.form-message) {
    margin-bottom: 30px;
    color: #6b7066;
    font-size: .87rem;
}

.portal-form {
    display: grid;
    gap: 9px;
}

.portal-form label {
    margin-top: 7px;
    color: var(--ink);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.portal-form input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    color: var(--ink);
    background: #fffefb;
    font: 400 .84rem var(--sans);
    transition: border-color .2s ease;
}

.portal-form input:focus {
    border-color: var(--gold);
}

.portal-form .button {
    width: 100%;
    margin-top: 17px;
    border-radius: 0;
    cursor: pointer;
}

.form-message {
    margin: -6px 0 20px;
    padding: 12px 14px;
    border-left: 2px solid;
    font-size: .7rem;
    line-height: 1.55;
}

.form-message-error {
    border-color: #9e5f51;
    color: #75483e;
    background: #f4e8e4;
}

.form-message-success {
    border-color: #718466;
    color: #52634a;
    background: #edf2e9;
}

.portal-help {
    display: inline-block;
    margin-top: 22px;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid var(--gold);
    color: var(--ink);
    background: transparent;
    font-size: .71rem;
    font-weight: 600;
    cursor: pointer;
}

.password-help-modal {
    width: min(500px, calc(100% - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    overflow: visible;
}

.password-help-modal::backdrop {
    background: rgba(31, 40, 26, .72);
    backdrop-filter: blur(3px);
}

.password-help-card {
    position: relative;
    padding: 43px 44px 39px;
    border: 1px solid rgba(174, 135, 80, .66);
    background: #fffefb;
    box-shadow: 18px 18px 0 rgba(21, 29, 18, .2);
    text-align: center;
}

.password-help-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #ded9ce;
    color: #73786d;
    background: transparent;
    cursor: pointer;
}

.password-help-close:hover {
    border-color: var(--gold);
    color: #665432;
}

.password-help-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    border: 1px solid #c7ad79;
    border-radius: 50%;
    color: #fff;
    background: #506047;
    font-size: 1rem;
}

.password-help-card .eyebrow {
    margin-bottom: 8px;
}

.password-help-card h2 {
    margin: 0;
    color: #34412d;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
}

.password-help-card>p:not(.eyebrow) {
    margin: 18px 0 24px;
    color: #747970;
    font-size: .72rem;
    line-height: 1.7;
}

.password-help-whatsapp {
    display: inline-flex;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border-radius: 0;
}

.password-help-whatsapp i {
    font-size: 1rem;
}

.password-help-cancel {
    margin-top: 17px;
    padding: 3px 0;
    border: 0;
    border-bottom: 1px solid #ccb37f;
    color: #656d60;
    background: transparent;
    font: 600 .64rem var(--sans);
    cursor: pointer;
}

.portal-note {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #898b83;
    font-size: .7rem;
}

.portal-back {
    position: absolute;
    right: 0;
    bottom: 25px;
    left: 0;
    margin: 0;
    color: #5f6657;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.portal-back span {
    padding: 0 6px;
    color: var(--gold);
}

.site-document {
    background: var(--cream);
}

.portal-document {
    background: #eaebe5;
}

.admin-document {
    background: #293322;
    overscroll-behavior-y: none;
}

.admin-page {
    background: linear-gradient(135deg, #293322, #3d4a33);
    overscroll-behavior-y: none;
}

.admin-layout::before {
    border-color: rgba(205, 174, 116, .24);
}

.admin-card {
    border-color: rgba(205, 174, 116, .55);
    background: rgba(253, 252, 247, .97);
}

.admin-card .eyebrow {
    color: var(--gold);
}

.admin-page .brand-copy strong {
    color: #fffdf8;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 260px minmax(920px, 1fr);
    min-width: 1180px;
    min-height: 100vh;
    color: #3d4732;
    background: #f5f4ef;
    font-family: var(--sans);
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 31px 20px 25px;
    background: #2f3b27;
    color: rgba(255, 255, 255, .76);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 11px 50px;
}

.dashboard-brand img {
    width: 31px;
    height: 43px;
    object-fit: contain;
}

.dashboard-brand span {
    display: grid;
    gap: 5px;
}

.dashboard-brand strong {
    color: #fffdf8;
    font-family: var(--serif);
    font-size: 1.23rem;
    font-weight: 600;
    line-height: 1;
}

.dashboard-brand small {
    color: var(--gold-light);
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.dashboard-nav {
    display: grid;
    gap: 7px;
}

.dashboard-nav a,
.dashboard-sidebar-bottom a,
.dashboard-sidebar-bottom button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 12px;
    border: 0;
    border-radius: 3px;
    color: rgba(255, 255, 255, .68);
    background: transparent;
    font: 600 .71rem var(--sans);
    letter-spacing: .03em;
    text-align: left;
    transition: background .2s ease, color .2s ease;
}

.dashboard-nav a:hover,
.dashboard-nav .is-active,
.dashboard-sidebar-bottom a:hover,
.dashboard-sidebar-bottom button:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.dashboard-nav span,
.dashboard-sidebar-bottom span {
    width: 17px;
    color: var(--gold-light);
    font-size: 1.05rem;
    text-align: center;
}

.dashboard-nav b {
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    margin-left: auto;
    border-radius: 50%;
    color: #2f3b27;
    background: var(--gold-light);
    font-size: .58rem;
}

.dashboard-sidebar-bottom {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.dashboard-logout-form {
    margin: 0;
}

.dashboard-logout-form button {
    width: 100%;
    cursor: pointer;
}

.dashboard-main {
    padding: 46px 55px 70px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.admin-section-page {
    align-self: start;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.admin-page-header h1 {
    margin: 0;
    color: #2c3724;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
}

.admin-page-header>div>p:last-child {
    max-width: 670px;
    margin: 12px 0 0;
    color: #7d8178;
    font-size: .75rem;
    line-height: 1.65;
}

.admin-list-panel {
    min-height: 430px;
}

.admin-list-heading {
    align-items: center;
}

.admin-search {
    display: flex;
    width: min(420px, 46%);
}

.admin-search input {
    min-width: 0;
    flex: 1;
    height: 39px;
    padding: 0 12px;
    border: 1px solid #ddd9cf;
    outline: 0;
    color: #4c5645;
    background: #fff;
    font: 400 .65rem var(--sans);
}

.admin-search input:focus {
    border-color: var(--gold);
}

.admin-search button {
    height: 39px;
    padding: 0 15px;
    border: 1px solid var(--gold);
    color: #fff;
    background: var(--gold);
    font: 700 .57rem var(--sans);
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-full-table td {
    height: 72px;
}

.dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 39px;
}

.dashboard-date,
.panel-kicker {
    margin: 0 0 5px;
    color: #9a865d;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.dashboard-topbar h1 {
    margin: 0;
    color: #2c3724;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-top: 3px;
}

.demo-badge {
    padding: 7px 10px;
    border: 1px solid #ddd5c5;
    color: #8f896f;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gold);
    font: 700 .62rem var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard-button-secondary {
    color: #776847;
    background: transparent;
}

.dashboard-button-primary {
    color: #fff;
    background: var(--gold);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.metric-card {
    display: flex;
    gap: 16px;
    min-height: 138px;
    padding: 24px;
    border: 1px solid #e5e1d5;
    background: #fffefb;
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    color: #9a7a45;
    background: #f4eee2;
    font-size: 1.05rem;
}

.metric-card small {
    display: block;
    color: #84877c;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.metric-card strong {
    display: block;
    margin: 1px 0;
    color: #34402b;
    font-family: var(--serif);
    font-size: 2.35rem;
    font-weight: 600;
    line-height: 1;
}

.metric-card p {
    margin: 6px 0 0;
    color: #8d8f87;
    font-size: .61rem;
}

.metric-card p b {
    color: #698058;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1.45fr) minmax(330px, .82fr);
    gap: 22px;
}

.dashboard-panel {
    border: 1px solid #e5e1d5;
    background: #fffefb;
}

.panel-full {
    grid-column: 1 / -1;
}

.panel-users {
    grid-column: 1;
}

.panel-documents {
    grid-column: 2;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 26px 18px;
}

.panel-heading h2 {
    margin: 0;
    color: #35402c;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.1;
}

.panel-heading>a {
    margin-top: 7px;
    color: #8a7042;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.panel-heading>a span,
.panel-footer-link span {
    padding-left: 4px;
}

.panel-total {
    margin-top: 7px;
    color: #92938b;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notification-count {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #fff;
    background: var(--gold);
    font-size: .65rem;
    font-weight: 700;
}

.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.patient-table {
    width: 100%;
    border-collapse: collapse;
    color: #777c72;
    font-size: .65rem;
}

.patient-table th {
    padding: 0 26px 12px;
    color: #99988f;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
}

.patient-table td {
    height: 65px;
    padding: 9px 26px;
    border-top: 1px solid #eeeae1;
    vertical-align: middle;
}

.patient-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4d5745;
}

.patient-initial {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #6a5432;
    font-size: .56rem;
    font-weight: 700;
}

.initial-gold {
    background: #efe1c9;
}

.initial-sage {
    color: #54644b;
    background: #dfe7d7;
}

.initial-rose {
    color: #8b665d;
    background: #efe0dc;
}

.table-person,
.table-contact {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.table-person strong,
.table-contact strong {
    overflow: hidden;
    color: #4d5745;
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-person small,
.table-contact small {
    overflow: hidden;
    color: #9a9b93;
    font-size: .54rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-table td:nth-child(2) {
    max-width: 210px;
}

.user-table td:nth-child(3) {
    max-width: 240px;
}

.patient-table-name-link {
    color: inherit;
    border-bottom: 1px solid transparent;
}

.patient-table-name-link:hover {
    color: #8b6f3e;
    border-color: #c7aa73;
}

.status {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: .53rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-green {
    color: #597246;
    background: #edf3e9;
}

.status-muted {
    color: #8c816d;
    background: #f1eee8;
}

.status-gold {
    color: #8d6b34;
    background: #f5ecd9;
}

.dashboard-empty-state {
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 34px;
    border-top: 1px solid #eeeae1;
    text-align: center;
}

.dashboard-empty-state>span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 11px;
    border: 1px solid #d5c29b;
    border-radius: 50%;
    color: #9a7945;
    font-family: var(--serif);
    font-size: 1.25rem;
}

.dashboard-empty-state strong {
    color: #4f5b46;
    font-size: .72rem;
}

.dashboard-empty-state p {
    margin: 5px 0 0;
    color: #96978f;
    font-size: .6rem;
}

.dashboard-empty-compact {
    min-height: 175px;
}

.document-list {
    padding: 0 26px;
}

.document-list article {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eeeae1;
}

.document-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 33px;
    color: #936e35;
    background: #f4eadb;
    font-size: .9rem;
    font-weight: 700;
}

.document-list div {
    min-width: 0;
    flex: 1;
}

.document-list strong,
.document-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-list strong {
    color: #4e5945;
    font-size: .67rem;
}

.document-list small {
    color: #96978f;
    font-size: .56rem;
}

.document-list a {
    color: #9b7b47;
    font-size: .58rem;
    font-weight: 700;
}

.panel-footer-link {
    display: block;
    margin: 2px 26px 22px;
    color: #8a7042;
    font-size: .6rem;
    font-weight: 700;
}

.agenda-list {
    padding: 0 26px 14px;
}

.agenda-list article {
    display: grid;
    grid-template-columns: 47px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 61px;
    border-top: 1px solid #eeeae1;
}

.agenda-list time {
    color: #95753f;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 600;
}

.agenda-list strong,
.agenda-list small {
    display: block;
}

.agenda-list strong {
    color: #4f5946;
    font-size: .67rem;
}

.agenda-list small {
    color: #96978f;
    font-size: .56rem;
}

.agenda-state {
    color: #688157;
    font-size: .54rem;
    font-weight: 700;
}

.agenda-pending {
    color: #a1844e;
}

.activity-list {
    padding: 0 26px 21px;
}

.activity-list article {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #eeeae1;
}

.activity-dot {
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: #779362;
}

.activity-dot-muted {
    background: #c5b99f;
}

.activity-list p {
    margin: 0;
}

.activity-list strong,
.activity-list small {
    display: block;
}

.activity-list strong {
    color: #526047;
    font-size: .65rem;
}

.activity-list small {
    color: #989990;
    font-size: .56rem;
}

.admin-flash {
    margin: -10px 0 24px;
    padding: 13px 16px;
    border-left: 3px solid;
    font-size: .67rem;
}

.admin-flash-success {
    border-color: #71885f;
    color: #526348;
    background: #eaf0e5;
}

.admin-flash-error {
    border-color: #a36556;
    color: #75483e;
    background: #f4e8e4;
}

.document-admin-grid {
    display: grid;
    grid-template-columns: minmax(470px, 1fr) minmax(470px, 1fr);
    gap: 22px;
    align-items: start;
}

.document-upload-panel,
.document-history-panel {
    min-height: 430px;
}

.document-upload-form {
    display: grid;
    gap: 18px;
    padding: 3px 26px 29px;
}

.document-upload-form .dashboard-button {
    justify-self: start;
    min-width: 175px;
    margin-top: 3px;
}

.document-upload-form input[type="file"] {
    height: auto;
    min-height: 48px;
    padding: 12px 13px;
}

.document-history-list {
    padding-bottom: 16px;
}

.document-history-panel .document-list article {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
}

.document-history-panel .document-list form {
    margin: 0;
}

.document-history-panel .document-list form button {
    padding: 7px 0 7px 12px;
    border: 0;
    color: #985b4e;
    background: transparent;
    font: 700 .56rem var(--sans);
    cursor: pointer;
}

.document-history-panel .document-list form button:hover {
    color: #743f35;
    text-decoration: underline;
}

.document-patient-link {
    color: #8b7042;
    border-bottom: 1px solid #d8c49e;
}

.document-patient-link:hover {
    color: #66502d;
    border-color: #8b7042;
}

.document-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    white-space: nowrap;
}

.document-actions a {
    padding: 7px 0;
    color: #8b7042;
}

.document-actions a:hover {
    color: #66502d;
    text-decoration: underline;
}

.document-actions form {
    display: inline-flex;
}

.patient-search-control {
    display: none;
    position: relative;
}

.patient-search-field.is-enhanced>select {
    display: none;
}

.patient-search-field.is-enhanced .patient-search-control {
    display: block;
}

.patient-search-input-wrap {
    position: relative;
}

.patient-search-input-wrap>span {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #9b7b47;
    font-size: 1rem;
    transform: translateY(-52%);
    pointer-events: none;
}

.dashboard-field .patient-search-input-wrap input {
    padding: 0 14px 0 39px;
}

.dashboard-field .patient-search-input-wrap input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.dashboard-field .patient-search-input-wrap:has(button:not([hidden])) input {
    padding-right: 42px;
}

.patient-search-input-wrap button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    color: #85877f;
    background: transparent;
    font: 400 1.1rem var(--sans);
    transform: translateY(-50%);
    cursor: pointer;
}

.patient-search-input-wrap button[hidden] {
    display: none;
}

.patient-search-input-wrap button:hover {
    color: #795f34;
}

.patient-search-results {
    position: absolute;
    z-index: 10;
    top: 55px;
    right: 0;
    left: 0;
    max-height: 292px;
    padding: 5px;
    overflow-y: auto;
    border: 1px solid #d8d3c7;
    background: #fffefb;
    box-shadow: 0 14px 28px rgba(38, 47, 31, .15);
}

.patient-search-results[hidden],
.patient-search-selected[hidden] {
    display: none;
}

.patient-search-results button {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #eeeae1;
    color: #4b5743;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.patient-search-results button:last-child {
    border-bottom: 0;
}

.patient-search-results button:hover,
.patient-search-results button.is-active {
    background: #f4f0e7;
    box-shadow: inset 3px 0 0 var(--gold);
}

.patient-search-results strong {
    font: 600 .68rem var(--sans);
}

.patient-search-results small {
    color: #8d8f86;
    font: 400 .56rem/1.45 var(--sans);
}

.patient-search-empty {
    margin: 0;
    padding: 15px 12px;
    color: #8b8d84;
    font-size: .62rem;
    text-align: center;
}

.patient-search-selected {
    display: grid;
    grid-template-columns: 33px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid #e4dfd3;
    background: #f8f5ee;
}

.patient-search-selected>span:nth-child(2) {
    min-width: 0;
}

.patient-search-selected strong,
.patient-search-selected small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-search-selected strong {
    color: #4a5641;
    font-size: .65rem;
}

.patient-search-selected small {
    margin-top: 3px;
    color: #8c8e84;
    font-size: .54rem;
}

.patient-search-selected>b {
    color: #71865e;
    font-size: .75rem;
}

.patient-search-avatar {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    color: #6b5635;
    background: #ecdfc7;
    font-size: .56rem;
    font-weight: 700;
}

.patient-search-message {
    min-height: 0;
    margin: 7px 0 0;
    color: #985b4e;
    font-size: .57rem;
}

.patient-search-message:empty {
    display: none;
}

.patient-search-field>.patient-search-help {
    color: #85887f;
}

.settings-page-header {
    align-items: center;
}

.settings-draft-badge {
    padding: 8px 11px;
    border: 1px solid #d9ceb8;
    color: #8b754e;
    background: #f5efe4;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.settings-panel {
    min-height: 360px;
}

.settings-panel-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddcfb6;
    border-radius: 50%;
    color: #96743e;
}

.settings-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    padding: 3px 26px 28px;
}

.settings-form .dashboard-button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
}

.settings-form input:disabled {
    color: #697062;
    background: #f7f5ef;
    opacity: 1;
}

.settings-form .dashboard-button:disabled,
.settings-admin-panel button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.settings-admin-panel {
    grid-column: 1 / -1;
    min-height: 250px;
}

.settings-panel-description {
    margin: 7px 0 0;
    color: #8d8f86;
    font-size: .6rem;
}

.settings-admin-list {
    padding: 0 26px;
}

.settings-admin-list article {
    display: grid;
    grid-template-columns: 34px 1fr auto auto;
    align-items: center;
    gap: 13px;
    min-height: 72px;
    padding: 10px 0;
    border-top: 1px solid #eeeae1;
}

.settings-admin-list article>span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.settings-admin-list strong {
    color: #4d5745;
    font-size: .67rem;
}

.settings-admin-list small {
    color: #96978f;
    font-size: .56rem;
}

.settings-admin-list button {
    padding: 6px 0 6px 14px;
    border: 0;
    color: #8b7042;
    background: transparent;
    font: 700 .57rem var(--sans);
}

.settings-draft-note {
    margin: 17px 26px 24px;
    padding-top: 15px;
    border-top: 1px solid #eeeae1;
    color: #97988f;
    font-size: .57rem;
}

.patient-detail-back {
    display: inline-flex;
    gap: 7px;
    margin-bottom: 24px;
    color: #8a7042;
    font-size: .61rem;
    font-weight: 700;
}

.patient-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 31px;
}

.patient-detail-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.patient-detail-avatar {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid #d7c39b;
    border-radius: 50%;
    color: #785f38;
    background: #efe4cf;
    font: 600 1.15rem var(--serif);
}

.patient-detail-identity h1 {
    margin: 0;
    color: #2c3724;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
}

.patient-detail-identity>div>p:last-child {
    margin: 8px 0 0;
    color: #8d8f87;
    font-size: .62rem;
}

.patient-detail-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.patient-detail-grid {
    display: grid;
    grid-template-columns: minmax(540px, 1.25fr) minmax(390px, .75fr);
    gap: 22px;
    align-items: start;
}

.patient-detail-main {
    display: grid;
    gap: 22px;
}

.patient-detail-info-panel {
    min-height: 250px;
}

.patient-access-list {
    padding: 0 26px 20px;
}

.patient-access-list article {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 9px 0;
    border-top: 1px solid #eeeae1;
}

.access-account-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.access-account-copy>strong {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #4d5745;
    font-size: .67rem;
}

.access-account-copy>strong a {
    overflow: hidden;
    color: inherit;
    border-bottom: 1px solid transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-account-copy>strong a:hover {
    color: #8b7042;
    border-color: #c8ae7d;
}

.access-account-copy>small {
    overflow: hidden;
    color: #96978f;
    font-size: .55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-primary-badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    border: 1px solid #d7c49c;
    color: #856a3d;
    background: #f6f0e4;
    font-size: .47rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.access-row-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.access-unlink-button {
    padding: 0;
    border: 0;
    color: #985b4e;
    background: transparent;
    font: 700 .54rem var(--sans);
    cursor: pointer;
}

.access-unlink-button:hover {
    color: #743f35;
    text-decoration: underline;
}

.access-unlink-button i {
    margin-right: 3px;
}

.access-unlink-button:disabled {
    color: #8f948a;
    cursor: not-allowed;
    text-decoration: none;
}

.patient-detail-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0 26px 27px;
}

.patient-detail-data>div {
    min-width: 0;
    padding: 15px 13px 15px 0;
    border-top: 1px solid #eeeae1;
}

.patient-detail-data>div:nth-child(even) {
    padding-right: 0;
    padding-left: 13px;
}

.patient-detail-data dt {
    margin-bottom: 6px;
    color: #9a998f;
    font-size: .53rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.patient-detail-data dd {
    margin: 0;
    overflow: hidden;
    color: #4d5845;
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-detail-documents {
    min-height: 260px;
}

.patient-detail-documents .document-list article {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
}

.patient-detail-documents .document-list form {
    margin: 0;
}

.patient-detail-documents .document-list form button {
    padding: 7px 0 7px 12px;
    border: 0;
    color: #985b4e;
    background: transparent;
    font: 700 .56rem var(--sans);
    cursor: pointer;
}

.patient-detail-documents .document-list form button:hover {
    color: #743f35;
    text-decoration: underline;
}

.patient-detail-upload {
    position: sticky;
    top: 28px;
    min-height: 430px;
}

.patient-detail-locked {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid #dccba9;
    background: #f6f1e7;
}

.patient-detail-locked>span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.patient-detail-locked small {
    color: #96978e;
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.patient-detail-locked strong {
    color: #4b5743;
    font-size: .67rem;
}

.patient-detail-locked>b {
    color: #71865e;
    font-size: .75rem;
}

.patient-detail-upload .document-upload-form {
    padding-top: 0;
}

.patient-detail-upload .document-upload-form .dashboard-button {
    width: 100%;
}

.dashboard-modal.patient-edit-modal {
    width: min(600px, calc(100vw - 48px));
}

.patient-edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.dashboard-modal.document-delete-modal {
    width: min(520px, calc(100vw - 48px));
}

.dashboard-modal.access-unlink-modal {
    width: min(560px, calc(100vw - 48px));
}

.document-delete-confirmation {
    text-align: center;
}

.document-delete-warning {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    border: 1px solid #b77b6d;
    border-radius: 50%;
    color: #fff;
    background: #985b4e;
    font: 600 1.35rem var(--serif);
}

.document-delete-confirmation h2 {
    margin: 0;
    color: #33402b;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 600;
}

.document-delete-confirmation>p:not(.panel-kicker) {
    margin: 17px 0 25px;
    color: #777b72;
    font-size: .7rem;
    line-height: 1.7;
}

.document-delete-confirmation>p strong {
    color: #4f5947;
}

.document-delete-confirmation .dashboard-modal-actions {
    justify-content: center;
}

.document-delete-confirm-button {
    color: #fff;
    border-color: #985b4e;
    background: #985b4e;
}

.user-detail-avatar {
    color: #4e6145;
    background: #e2eadb;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1.25fr) minmax(360px, .75fr);
    gap: 22px;
    align-items: start;
}

.user-detail-main {
    display: grid;
    gap: 22px;
}

.user-account-panel {
    min-height: 250px;
}

.user-detail-data dd {
    white-space: normal;
    overflow-wrap: anywhere;
}

.user-linked-patients {
    min-height: 260px;
}

.user-patient-list {
    padding: 0 26px 20px;
}

.user-patient-list article {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    border-top: 1px solid #eeeae1;
}

.user-patient-list article>span:nth-child(2) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.user-patient-list strong,
.user-patient-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-patient-list strong {
    color: #4d5745;
    font-size: .67rem;
}

.user-patient-list strong a {
    color: inherit;
    border-bottom: 1px solid transparent;
}

.user-patient-list strong a:hover {
    color: #8b7042;
    border-color: #c8ae7d;
}

.user-patient-list small {
    color: #96978f;
    font-size: .55rem;
}

.user-link-panel {
    position: sticky;
    top: 28px;
    min-height: 360px;
}

.user-link-form {
    display: grid;
    gap: 17px;
    padding: 0 26px 28px;
}

.user-link-form>p {
    margin: 0 0 2px;
    color: #83867c;
    font-size: .64rem;
    line-height: 1.65;
}

.user-link-form .dashboard-button {
    justify-self: start;
}

.dashboard-modal.user-edit-modal {
    width: min(650px, calc(100vw - 48px));
}

.user-edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.user-edit-form .dashboard-field>small {
    color: #8c6a38;
}

.dashboard-modal.password-reset-modal {
    width: min(520px, calc(100vw - 48px));
}

.password-reset-confirmation {
    text-align: center;
}

.password-reset-icon {
    border-color: #c6a66c;
    background: #536149;
}

.password-reset-confirmation h2 {
    margin: 0;
    color: #33402b;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 600;
}

.password-reset-confirmation>p:not(.panel-kicker) {
    margin: 17px 0 25px;
    color: #777b72;
    font-size: .7rem;
    line-height: 1.7;
}

.password-reset-confirmation .dashboard-modal-actions {
    justify-content: center;
}

.user-password-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px 28px;
    margin: -8px 0 24px;
    padding: 20px 22px;
    border: 1px solid #d6c294;
    background: #f5efe2;
}

.user-password-result h2 {
    margin: 0;
    color: #394631;
    font-family: var(--serif);
    font-size: 1.5rem;
}

.user-password-result>div:first-child>p:last-child {
    margin: 6px 0 0;
    color: #7c8076;
    font-size: .62rem;
}

.user-password-code {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-password-code code {
    min-width: 105px;
    color: #735a32;
    font: 700 1rem var(--sans);
    letter-spacing: .09em;
}

.user-password-code button {
    padding: 8px 11px;
    border: 1px solid #aa8952;
    color: #725a34;
    background: #fffaf0;
    font: 700 .56rem var(--sans);
    cursor: pointer;
}

.user-password-result .copy-feedback {
    grid-column: 1 / -1;
    margin: 0;
}

.dashboard-modal {
    width: min(700px, calc(100vw - 48px));
    max-width: none;
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    color: #46503f;
    background: transparent;
    overflow: auto;
}

.dashboard-modal::backdrop {
    background: rgba(22, 29, 18, .72);
    backdrop-filter: blur(3px);
}

.dashboard-modal-card {
    position: relative;
    border: 1px solid rgba(174, 135, 80, .65);
    background: #fffefb;
    box-shadow: 20px 20px 0 rgba(20, 28, 17, .24);
}

.modal-form-view,
.modal-success-view {
    padding: 38px 41px 40px;
}

.dashboard-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 14px;
}

.dashboard-modal-header h2,
.modal-success-view h2 {
    margin: 0;
    color: #33402b;
    font-family: var(--serif);
    font-size: 2.35rem;
    font-weight: 600;
    line-height: 1;
}

.modal-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #ddd8cc;
    color: #7c7c72;
    background: transparent;
    font: 300 1.35rem/1 var(--sans);
    cursor: pointer;
}

.modal-close:hover {
    border-color: var(--gold);
    color: #755d35;
}

.dashboard-modal-intro,
.modal-success-view>p:not(.panel-kicker):not(.copy-feedback) {
    margin: 0 0 26px;
    color: #7d8178;
    font-size: .72rem;
    line-height: 1.7;
}

.patient-create-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.patient-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.patient-type-selector legend,
.patient-section-label {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #596250;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.patient-type-selector>label {
    position: relative;
    cursor: pointer;
}

.patient-type-selector input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.patient-type-selector label>span {
    display: grid;
    gap: 4px;
    min-height: 67px;
    padding: 13px 15px;
    border: 1px solid #dbd8ce;
    background: #fff;
    transition: border-color .18s ease, background .18s ease;
}

.patient-type-selector label>span strong {
    color: #4b5743;
    font-size: .69rem;
}

.patient-type-selector label>span small {
    color: #909188;
    font-size: .57rem;
    line-height: 1.45;
}

.patient-type-selector input:checked+span {
    border-color: var(--gold);
    background: #f7f2e8;
    box-shadow: inset 3px 0 0 var(--gold);
}

.patient-type-selector input:focus-visible+span {
    outline: 2px solid rgba(174, 135, 80, .28);
    outline-offset: 2px;
}

.patient-type-selector>small {
    grid-column: 1 / -1;
    min-height: 0;
    color: #985b4e;
    font-size: .57rem;
}

.account-mode-selector {
    margin-top: 2px;
}

.account-mode-selector[disabled] {
    opacity: .6;
}

.account-existing-field {
    margin-top: 17px;
}

[data-account-mode-section][hidden] {
    display: none;
}

.field-hint {
    margin: -2px 0 0;
    color: #8b8d84;
    font-size: .58rem;
    line-height: 1.5;
}

.patient-form-section {
    padding-top: 4px;
    border-top: 1px solid #e8e3d9;
}

.patient-form-section[hidden] {
    display: none;
}

.patient-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.patient-section-label {
    margin: 15px 0 13px;
}

.patient-section-label-spaced {
    margin-top: 21px;
    padding-top: 18px;
    border-top: 1px solid #ece8de;
}

.dashboard-field {
    display: grid;
    gap: 7px;
}

.dashboard-field-full {
    grid-column: 1 / -1;
}

.dashboard-field label {
    color: #596250;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-field input,
.dashboard-field select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #dbd8ce;
    border-radius: 0;
    outline: 0;
    color: #3f4937;
    background: #fff;
    font: 400 .75rem var(--sans);
}

.dashboard-field select {
    cursor: pointer;
}

.dashboard-field input:focus,
.dashboard-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(174, 135, 80, .1);
}

.dashboard-field>small {
    min-height: 14px;
    color: #985b4e;
    font-size: .57rem;
    line-height: 1.35;
}

.modal-form-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 11px 13px;
    border-left: 2px solid #9e5f51;
    color: #75483e;
    background: #f4e8e4;
    font-size: .66rem;
}

.dashboard-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.dashboard-modal-actions .dashboard-button {
    min-width: 145px;
}

.dashboard-modal-actions .dashboard-button:disabled {
    cursor: wait;
    opacity: .65;
}

.modal-success-view {
    text-align: center;
}

.modal-success-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 19px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #fff;
    background: #536149;
    font-family: var(--serif);
    font-size: 1.65rem;
}

.modal-success-view .panel-kicker {
    margin-bottom: 8px;
}

.modal-success-view>p:not(.panel-kicker):not(.copy-feedback) {
    max-width: 450px;
    margin: 17px auto 23px;
}

.temporary-access-card {
    display: grid;
    gap: 13px;
    padding: 20px;
    border: 1px solid #ded9cd;
    background: #f5f2ea;
    text-align: left;
}

.temporary-access-card div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 13px;
    align-items: center;
}

.temporary-access-card small {
    color: #8f8e84;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.temporary-access-card strong,
.temporary-access-card code {
    overflow-wrap: anywhere;
    color: #46523d;
    font: 600 .7rem var(--sans);
}

.temporary-access-card code {
    color: #876936;
    font-size: .85rem;
    letter-spacing: .06em;
}

.copy-feedback {
    min-height: 20px;
    margin: 12px 0 0;
    color: #66745a;
    font-size: .62rem;
}

.modal-success-view .dashboard-modal-actions {
    margin-top: 6px;
}

.patient-document {
    background: #f5f4ef;
}

.patient-dashboard {
    min-height: 100vh;
    background: #f5f4ef;
}

.patient-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 48px));
    min-height: 87px;
    margin: 0 auto;
    border-bottom: 1px solid #dedcd2;
}

.patient-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 28px;
}

.patient-nav a {
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    color: #777c71;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.patient-nav .is-active,
.patient-nav a:hover {
    border-color: var(--gold);
    color: #59634f;
}

.patient-logout-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.patient-exit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    color: #777c71;
    background: transparent;
    font: 700 .65rem var(--sans);
    letter-spacing: .04em;
    cursor: pointer;
}

.patient-exit:hover {
    border-color: var(--gold);
    color: #59634f;
}

.patient-exit i {
    color: var(--gold);
    font-size: .62rem;
}

.patient-main {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 71px 0 80px;
}

.patient-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 38px;
}

.patient-welcome h1 {
    margin: 0 0 12px;
    color: #32402a;
    font-family: var(--serif);
    font-size: clamp(2.85rem, 5vw, 4.25rem);
    font-weight: 500;
    line-height: .9;
}

.patient-welcome>div>p:not(.eyebrow) {
    max-width: 500px;
    margin: 0;
    color: #73776d;
    font-size: .9rem;
}

.patient-account-badge {
    padding: 8px 11px;
    border: 1px solid #d9ceb8;
    color: #7e6a45;
    background: #f4efe5;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.patient-portal-message {
    margin: -15px 0 28px;
}

.current-plan {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 37px;
    align-items: center;
    min-height: 258px;
    padding: 30px 43px 30px 30px;
    overflow: hidden;
    background: #314027;
    color: #fffdf7;
}

.current-plan::after {
    position: absolute;
    width: 390px;
    height: 390px;
    right: -195px;
    bottom: -250px;
    border: 1px solid rgba(207, 177, 119, .33);
    border-radius: 50%;
    content: '';
}

.plan-art {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 196px;
    overflow: hidden;
    border: 1px solid rgba(207, 177, 119, .72);
}

.plan-art::before {
    position: absolute;
    width: 155px;
    height: 155px;
    border: 1px solid rgba(207, 177, 119, .31);
    border-radius: 50%;
    content: '';
}

.plan-art img {
    position: relative;
    z-index: 1;
    width: auto;
    height: 110px;
    object-fit: contain;
}

.plan-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.plan-copy .eyebrow {
    color: var(--gold-light);
}

.plan-copy h2 {
    margin: 0 0 10px;
    color: #fffdf7;
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1;
    overflow-wrap: anywhere;
}

.plan-copy>p:not(.eyebrow) {
    margin: 0 0 23px;
    color: rgba(255, 255, 255, .67);
    font-size: .75rem;
}

.patient-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gold-light);
    color: #fffdf7;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.patient-button i {
    color: var(--gold-light);
    font-size: .72rem;
}

.plan-label {
    position: relative;
    z-index: 1;
    align-self: start;
    padding: 6px 8px;
    border: 1px solid rgba(207, 177, 119, .5);
    color: var(--gold-light);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.patient-empty-highlight {
    display: grid;
    grid-template-columns: 75px 1fr;
    align-items: center;
    gap: 25px;
    min-height: 170px;
    padding: 30px;
    border: 1px solid #dcd7ca;
    background: #fffefb;
}

.patient-empty-highlight>span {
    display: grid;
    place-items: center;
    width: 65px;
    height: 70px;
    color: #936f37;
    background: #f1e8d9;
    font-size: .63rem;
    font-weight: 700;
}

.patient-empty-highlight h2 {
    margin: 0 0 8px;
    color: #35412e;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
}

.patient-empty-highlight p:not(.eyebrow) {
    margin: 0;
    color: #85887f;
    font-size: .7rem;
    line-height: 1.6;
}

.patient-profiles {
    margin-top: 48px;
}

.patient-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.patient-profile-grid>a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 13px 15px;
    border: 1px solid #dfdcd2;
    background: #fffefb;
}

.patient-profile-grid>a:hover {
    border-color: #c5aa77;
    background: #fbf8f0;
}

.patient-profile-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d8c49d;
    border-radius: 50%;
    color: #6e5a38;
    background: #f1e8d8;
    font: 600 .75rem var(--serif);
}

.patient-profile-grid>a>span:nth-child(2) {
    min-width: 0;
}

.patient-profile-grid strong,
.patient-profile-grid small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-profile-grid strong {
    color: #4c5844;
    font-size: .7rem;
}

.patient-profile-grid small {
    margin-top: 4px;
    color: #90928a;
    font-size: .54rem;
}

.patient-profile-grid b {
    color: #8b7042;
    font-size: .53rem;
    white-space: nowrap;
}

.patient-documents {
    margin-top: 60px;
}

.patient-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 19px;
}

.patient-section-heading h2 {
    margin: 0;
    color: #35412e;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.patient-section-heading>span {
    color: #8d8e85;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.patient-document-group {
    scroll-margin-top: 20px;
}

.patient-document-group+.patient-document-group {
    margin-top: 24px;
}

.patient-document-group>header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    padding: 0 2px 10px;
}

.patient-document-group>header strong,
.patient-document-group>header small {
    display: block;
}

.patient-document-group>header strong {
    color: #526047;
    font-size: .72rem;
}

.patient-document-group>header small {
    margin-top: 3px;
    color: #94968d;
    font-size: .55rem;
}

.patient-document-group>header>span {
    color: #8e8067;
    font-size: .54rem;
    font-weight: 700;
    text-transform: uppercase;
}

.patient-document-list {
    border-top: 1px solid #dedcd2;
    background: #fffefb;
}

.patient-document-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 84px;
    padding: 14px 24px;
    border: 1px solid #e6e3da;
    border-top: 0;
}

.patient-file-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 39px;
    color: #936f37;
    background: #f1e8d9;
    font-size: .55rem;
    font-weight: 700;
}

.patient-document-list strong,
.patient-document-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.patient-document-list strong {
    color: #4f5b46;
    font-size: .76rem;
}

.patient-document-list small {
    margin-top: 3px;
    color: #979890;
    font-size: .62rem;
}

.patient-document-list a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #907344;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.patient-document-list a i {
    font-size: .62rem;
}

.patient-file-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.patient-file-actions a:hover {
    color: #624d2d;
    text-decoration: underline;
}

.patient-empty-state {
    padding: 25px;
    border: 1px solid #e1ded4;
    color: #7c8177;
    background: #fffefb;
}

.patient-empty-state strong {
    color: #526047;
    font-size: .7rem;
}

.patient-empty-state p {
    margin: 5px 0 0;
    font-size: .62rem;
}

.patient-empty-state-list {
    border-top: 1px solid #dedcd2;
}

.patient-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 40px;
    padding: 23px 25px;
    border: 1px solid #e0ddd3;
    background: #eeede6;
}

.patient-help>div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.patient-help>div>span {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #96743e;
    font-family: var(--serif);
    font-size: 1.12rem;
}

.patient-help strong {
    color: #556047;
    font-size: .72rem;
}

.patient-help p {
    margin: 2px 0 0;
    color: #85887f;
    font-size: .66rem;
}

.patient-help>a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #8b6f3e;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.patient-help>a i {
    font-size: .62rem;
}

.patient-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 29px;
    color: #a08f70;
    text-align: center;
}

.patient-legal span {
    color: #c0a570;
}

.legal-document {
    background: #eef0e9;
}

.legal-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #edf0e9, #f8f7f1);
}

.legal-layout {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 66px;
}

.legal-brand {
    color: #394331;
}

.legal-content {
    margin-top: 52px;
    padding: clamp(35px, 7vw, 70px);
    border: 1px solid rgba(174, 135, 80, .45);
    background: rgba(255, 254, 250, .91);
    box-shadow: 17px 17px 0 rgba(174, 135, 80, .1);
}

.legal-content h1 {
    margin: 4px 0 9px;
    color: #324029;
    font-size: clamp(2.8rem, 6vw, 4.3rem);
    line-height: .95;
}

.legal-updated {
    margin: 0;
    color: #8b8e85;
    font-size: .65rem;
    letter-spacing: .04em;
}

.legal-notice {
    margin: 31px 0 29px;
    padding: 16px 18px;
    border-left: 2px solid var(--gold);
    color: #6d7169;
    background: #f3f1ea;
    font-size: .72rem;
    line-height: 1.65;
}

.legal-notice strong {
    color: #546047;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 19px;
    margin: 0 0 41px;
    padding: 15px 0;
    border-top: 1px solid #e3e0d6;
    border-bottom: 1px solid #e3e0d6;
}

.legal-toc a {
    color: #8c7040;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.legal-content section {
    padding-top: 30px;
}

.legal-content section+section {
    margin-top: 30px;
    border-top: 1px solid #e7e4da;
}

.legal-content h2 {
    margin: 0 0 12px;
    color: #3b4733;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1;
}

.legal-content p,
.legal-content li {
    color: #6c716a;
    font-size: .78rem;
    line-height: 1.8;
}

.legal-content p {
    margin: 0 0 13px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.legal-content li+li {
    margin-top: 5px;
}

.inline-link {
    border-bottom: 1px solid var(--gold);
    color: #806636;
    font-weight: 700;
}

.legal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
}

.legal-footer a {
    color: #586350;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.legal-footer a:last-child {
    color: #8e7041;
}

.notfound-document {
    background: #edf0e8;
}

.notfound-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eff1eb, #f8f7f1);
}

.notfound-layout {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 112px 24px 65px;
    overflow: hidden;
}

.notfound-layout::before,
.notfound-layout::after {
    position: absolute;
    border: 1px solid rgba(174, 135, 80, .3);
    border-radius: 50%;
    content: '';
}

.notfound-layout::before {
    width: 610px;
    height: 610px;
    top: -350px;
    right: -170px;
}

.notfound-layout::after {
    width: 410px;
    height: 410px;
    bottom: -250px;
    left: -120px;
}

.notfound-brand {
    position: absolute;
    z-index: 1;
    top: 32px;
    left: max(24px, calc((100% - 1120px) / 2));
}

.notfound-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(45px, 8vw, 105px);
    align-items: center;
    width: min(100%, 920px);
    padding: 58px;
    border: 1px solid rgba(174, 135, 80, .5);
    background: rgba(255, 254, 250, .84);
    box-shadow: 19px 19px 0 rgba(174, 135, 80, .1);
}

.notfound-card h1 {
    max-width: 475px;
    margin-bottom: 18px;
    color: #324029;
    font-size: clamp(2.7rem, 4.8vw, 4.35rem);
}

.notfound-card>div:last-child>p:not(.eyebrow) {
    max-width: 450px;
    margin-bottom: 28px;
    color: #6f756b;
    font-size: .88rem;
}

.notfound-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 258px;
    color: var(--gold);
}

.notfound-art::before {
    position: absolute;
    width: 215px;
    height: 215px;
    border: 1px solid rgba(174, 135, 80, .56);
    border-radius: 50%;
    content: '';
}

.notfound-art::after {
    position: absolute;
    width: 278px;
    height: 166px;
    border: 1px solid rgba(62, 71, 48, .2);
    border-radius: 50%;
    content: '';
    transform: rotate(-37deg);
}

.notfound-art span {
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-size: clamp(6.2rem, 12vw, 9rem);
    font-weight: 500;
    line-height: 1;
}

.notfound-art i {
    position: absolute;
    z-index: 1;
    width: 122px;
    height: 1px;
    bottom: 37px;
    background: var(--ink);
    transform: rotate(-33deg);
}

@media (max-width: 850px) {

    .legal-layout {
        width: min(100% - 40px, 620px);
        padding-top: 27px;
    }

    .legal-content {
        margin-top: 39px;
    }

    .patient-header {
        width: min(100% - 40px, 620px);
        min-height: 75px;
    }

    .patient-nav {
        gap: 17px;
        margin-right: 18px;
    }

    .patient-nav a {
        font-size: .58rem;
    }

    .patient-main {
        width: min(100% - 40px, 620px);
        padding: 53px 0 62px;
    }

    .patient-welcome {
        margin-bottom: 30px;
    }

    .current-plan {
        grid-template-columns: 140px 1fr;
        gap: 25px;
        min-height: 222px;
        padding: 25px;
    }

    .plan-art {
        height: 170px;
    }

    .plan-art img {
        height: 93px;
    }

    .plan-label {
        position: absolute;
        top: 18px;
        right: 18px;
    }

    .patient-documents {
        margin-top: 48px;
    }

    .patient-profile-grid {
        grid-template-columns: 1fr;
    }

    .notfound-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 44px;
    }

    .notfound-art {
        min-height: 180px;
    }

    .notfound-art i {
        bottom: 12px;
    }

    .site-header,
    .section-wrap,
    .site-footer {
        width: min(100% - 40px, 620px);
    }

    .site-header {
        min-height: 78px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 3;
    }

    .menu-toggle.is-open span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-menu {
        position: absolute;
        z-index: 2;
        top: 77px;
        right: 0;
        left: 0;
        display: none;
        padding: 24px 20px 31px;
        align-items: flex-start;
        flex-direction: column;
        gap: 21px;
        background: var(--cream);
        box-shadow: 0 12px 15px rgba(41, 49, 32, .07);
    }

    .main-menu.is-open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 80px 20px 42px;
    }

    .hero-content {
        width: min(100%, 620px);
        margin: 0 auto;
        padding: 0;
    }

    .hero-art {
        width: min(100%, 620px);
        min-height: 320px;
        margin: 52px auto 0;
    }

    .gold-frame {
        inset: 0 10px;
    }

    .intro {
        padding: 88px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 31px;
        margin-top: 53px;
    }

    .care-section {
        grid-template-columns: 1fr;
    }

    .care-visual {
        min-height: 380px;
    }

    .care-logo {
        height: 245px;
    }

    .care-copy {
        max-width: 620px;
        margin: 0 auto;
        padding: 81px 20px;
    }

    .patient-inner {
        grid-template-columns: 1fr;
        gap: 17px;
        min-height: 0;
        padding-top: 74px;
        padding-bottom: 76px;
    }

    .patient-identity {
        min-height: 240px;
    }

    .patient-identity img {
        height: 175px;
    }

    .patient-orbit {
        width: 224px;
        height: 224px;
    }

    .patient-orbit::before {
        width: 285px;
        height: 170px;
        top: 27px;
        left: -31px;
    }

    .patient-orbit::after {
        width: 144px;
        height: 275px;
        top: -25px;
        left: 39px;
    }

    .patient-copy {
        max-width: 620px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 88px;
        padding-bottom: 88px;
    }
}

@media (max-width: 480px) {

    .password-help-card {
        padding: 39px 23px 31px;
        box-shadow: 10px 10px 0 rgba(21, 29, 18, .18);
    }

    .password-help-card h2 {
        font-size: 1.9rem;
    }

    .password-help-card>p:not(.eyebrow) {
        font-size: .68rem;
    }

    .password-help-whatsapp {
        padding-right: 14px;
        padding-left: 14px;
        font-size: .58rem;
    }

    .patient-header {
        width: calc(100% - 32px);
        flex-wrap: wrap;
        min-height: auto;
        padding: 15px 0 13px;
        gap: 12px;
    }

    .patient-header .brand-logo {
        height: 32px;
    }

    .patient-header .brand-copy strong {
        font-size: 1rem;
    }

    .patient-header .brand-copy small {
        font-size: .47rem;
    }

    .patient-nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
        margin: 1px 0 0;
        padding-top: 12px;
        border-top: 1px solid #dedcd2;
    }

    .patient-nav a {
        font-size: .56rem;
    }

    .patient-exit {
        margin-left: auto;
        font-size: .58rem;
    }

    .patient-main {
        width: calc(100% - 32px);
        padding-top: 43px;
    }

    .patient-welcome {
        display: block;
    }

    .patient-account-badge {
        display: inline-block;
        margin-top: 20px;
    }

    .current-plan {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
        min-height: 0;
        padding: 20px;
    }

    .plan-art {
        width: auto;
        height: 92px;
        margin: 0;
    }

    .plan-art::before {
        width: 74px;
        height: 74px;
    }

    .plan-art img {
        height: 53px;
    }

    .plan-copy .eyebrow {
        margin-bottom: 7px;
        padding-right: 43px;
        font-size: .53rem;
    }

    .plan-copy h2 {
        font-size: 1.72rem;
    }

    .plan-copy>p:not(.eyebrow) {
        margin-bottom: 13px;
        font-size: .64rem;
    }

    .patient-button {
        gap: 7px;
        font-size: .53rem;
    }

    .plan-label {
        top: 12px;
        right: 12px;
    }

    .patient-empty-highlight {
        grid-template-columns: 55px 1fr;
        gap: 16px;
        padding: 22px 18px;
    }

    .patient-empty-highlight>span {
        width: 52px;
        height: 58px;
    }

    .patient-empty-highlight h2 {
        font-size: 1.45rem;
    }

    .patient-profiles {
        margin-top: 39px;
    }

    .patient-profile-grid>a {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 12px;
    }

    .patient-documents {
        margin-top: 39px;
    }

    .patient-section-heading h2 {
        font-size: 1.78rem;
    }

    .patient-document-list article {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        min-height: 91px;
        padding: 14px;
    }

    .patient-file-actions {
        grid-column: 2;
        flex-wrap: wrap;
        gap: 10px 15px;
        margin-top: -4px;
    }

    .patient-help {
        display: block;
        padding: 20px;
    }

    .patient-help>a {
        display: inline-flex;
        margin-top: 18px;
    }

    .legal-layout {
        width: calc(100% - 32px);
        padding: 22px 0 45px;
    }

    .legal-content {
        margin-top: 30px;
        padding: 31px 23px;
    }

    .legal-content h1 {
        font-size: 2.7rem;
    }

    .legal-toc {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px 14px;
        margin-bottom: 33px;
    }

    .legal-content section {
        padding-top: 25px;
    }

    .legal-content section+section {
        margin-top: 25px;
    }

    .legal-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-top: 20px;
    }

    .notfound-layout {
        align-items: start;
        padding: 118px 16px 55px;
    }

    .notfound-brand {
        top: 22px;
        left: 16px;
    }

    .notfound-card {
        padding: 31px 24px 35px;
    }

    .notfound-art {
        min-height: 147px;
    }

    .notfound-art::before {
        width: 145px;
        height: 145px;
    }

    .notfound-art::after {
        width: 194px;
        height: 116px;
    }

    .notfound-art i {
        width: 82px;
        bottom: 15px;
    }

    .notfound-card h1 {
        font-size: 2.6rem;
    }

    .site-header,
    .section-wrap,
    .site-footer {
        width: calc(100% - 32px);
    }

    .brand-logo {
        width: auto;
        height: 35px;
    }

    .brand-copy strong {
        font-size: 1.12rem;
    }

    h1 {
        font-size: 2.85rem;
    }

    h2 {
        font-size: 2.45rem;
    }

    .hero {
        padding-top: 63px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .hero-art {
        min-height: 285px;
        margin-top: 42px;
    }

    .art-logo {
        height: 117px;
    }

    .art-name {
        font-size: 1.8rem;
    }

    .care-copy {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-card {
        padding: 31px 25px;
    }

    .portal-layout {
        align-items: start;
        padding-top: 119px;
    }

    .portal-card {
        padding: 39px 25px;
    }

    .portal-brand {
        top: 22px;
        left: 16px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 26px 0;
    }

    .footer-info {
        justify-items: start;
        gap: 8px;
    }

    .legal-links {
        justify-content: flex-start;
    }
}
