:root {
    --brand-950: #09294f;
    --brand-900: #10345e;
    --brand-800: #153d6b;
    --brand-700: #315e89;
    --brand-100: #e7eef5;
    --brand-50: #f3f7fa;
    --cream: #fff1cf;
    --cream-soft: #fff9eb;
    --ink-950: #19161a;
    --ink-800: #363036;
    --ink-600: #686168;
    --ink-500: #837b82;
    --line: #e7e1e5;
    --surface: #ffffff;
    --page: #f8f8f6;
    --success: #247157;
    --shadow-sm: 0 1px 2px rgba(38, 20, 31, .05);
    --shadow-md: 0 12px 32px rgba(12, 45, 79, .1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

.filter-group input[type="search"], .filter-group input[type="number"] { width: 100%; min-height: 48px; border: 1px solid #ded8d4; border-radius: 12px; padding: 0 14px; font: inherit; background: #fff; box-sizing: border-box; }
.enrichment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.enrichment-form p { margin: 0; }
.enrichment-form p:last-of-type, .enrichment-form button { grid-column: 1 / -1; }
.enrichment-form input:not([type="checkbox"]), .enrichment-form textarea { width: 100%; box-sizing: border-box; }
.enrichment-summary { margin: 18px 0; }
.enrichment-editor { margin-top: 18px; }
.enrichment-editor > summary { display: inline-flex; cursor: pointer; color: #153d6b; font-weight: 700; list-style: none; border-bottom: 1px solid currentColor; }
.enrichment-editor > summary::-webkit-details-marker { display: none; }
.enrichment-editor[open] > summary { margin-bottom: 20px; }
.taxonomy-page { max-width: 1180px; margin: 0 auto; }
.taxonomy-search { display: flex; gap: 10px; margin: 24px 0; }
.taxonomy-search input { flex: 1; min-height: 48px; border: 1px solid #ded8d4; border-radius: 12px; padding: 0 14px; }
.taxonomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.taxonomy-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #ded8d4; }
@media (max-width: 760px) { .taxonomy-grid, .enrichment-form { grid-template-columns: 1fr; } }

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-950);
    background: var(--page);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

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

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
.brand strong {
    font-family: "Manrope", "DM Sans", sans-serif;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(20px, 4vw, 64px);
    border-bottom: 1px solid #eadfbf;
    background: rgba(255, 241, 207, .96);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand strong {
    color: var(--brand-900);
    font-size: 19px;
}

.main-nav {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 34px;
    transform: translateX(-50%);
    color: var(--brand-900);
    font-weight: 500;
}

.main-nav > a:hover,
.nav-dropdown-toggle:hover {
    color: var(--brand-700);
}

.specialties-nav {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 0;
    cursor: pointer;
    color: inherit;
    border: 0;
    background: transparent;
}

.nav-dropdown-toggle svg,
.combo-chevron svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.specialties-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 15px);
    left: 50%;
    display: none;
    width: 380px;
    padding: 12px;
    transform: translateX(-50%);
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: white;
    box-shadow: 0 20px 48px rgba(9, 41, 79, .18);
}

.specialties-menu.is-open {
    display: block;
}

.nav-specialty-search {
    display: grid;
    align-items: center;
    margin-bottom: 9px;
    padding: 0 11px;
    border: 1px solid #dce3e9;
    border-radius: 9px;
    background: var(--brand-50);
    grid-template-columns: 18px 1fr;
}

.nav-specialty-search svg {
    width: 16px;
    fill: none;
    stroke: var(--ink-500);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.nav-specialty-search input {
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    outline: 0;
    background: transparent;
}

.specialty-links {
    display: grid;
    max-height: 300px;
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.specialty-links a {
    overflow: hidden;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.specialty-links a:hover {
    background: var(--cream-soft);
}

.specialty-empty {
    display: none;
    margin: 0;
    padding: 22px;
    color: var(--ink-500);
    text-align: center;
    font-size: 13px;
}

.specialty-empty.is-visible {
    display: block;
}

.brand small {
    color: var(--ink-500);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: var(--brand-800);
}

.brand-mark svg .brand-mark-cut {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 2.4;
}

.brand-logo {
    max-width: 144px;
    max-height: 44px;
}

.brand-mark-large {
    width: 58px;
    height: 58px;
}

.header-actions,
.user-chip,
.toolbar-controls,
.results-summary,
.profile-contact {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 20px;
}

.user-chip {
    gap: 9px;
    color: var(--ink-600);
}

button.user-chip {
    padding: 4px;
    cursor: pointer;
    border: 0;
    background: transparent;
}

.user-chip > svg {
    width: 17px;
    height: 17px;
    transition: transform .18s ease;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.user-chip[aria-expanded="true"] > svg {
    transform: rotate(180deg);
}

.user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    color: var(--brand-900);
    border: 1px solid #dbcbd5;
    border-radius: 50%;
    background: var(--brand-100);
    font-weight: 700;
    place-items: center;
}

.account-menu {
    position: relative;
}

.account-dropdown {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: 235px;
    overflow: hidden;
    padding: 7px;
    border: 1px solid #dce3e9;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-md);
}

.account-dropdown.is-open {
    display: block;
}

.account-summary {
    display: flex;
    margin-bottom: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
}

.account-summary strong {
    color: var(--brand-950);
}

.account-summary span {
    overflow: hidden;
    color: var(--ink-500);
    font-size: 12px;
    text-overflow: ellipsis;
}

.account-dropdown > a,
.account-dropdown form button {
    display: block;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    color: var(--ink-800);
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-size: 13px;
}

.account-dropdown > a:hover,
.account-dropdown form button:hover {
    color: var(--brand-900);
    background: var(--cream-soft);
}

.page-shell {
    width: min(1460px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    cursor: pointer;
    transition: .18s ease;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-weight: 600;
}

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

.button-primary {
    color: white;
    background: var(--brand-800);
    box-shadow: 0 5px 14px rgba(110, 49, 90, .18);
}

.button-primary:hover {
    background: var(--brand-900);
}

.button-secondary {
    color: var(--ink-800);
    border-color: var(--line);
    background: white;
}

.button-secondary:hover {
    border-color: #cdbdc7;
}

.button-quiet {
    min-height: 36px;
    padding: 7px 12px;
    color: var(--ink-600);
}

.button-link {
    min-height: 38px;
    color: var(--brand-800);
}

.button-large {
    min-height: 48px;
}

.button-block {
    width: 100%;
}

.eyebrow,
.section-kicker {
    margin-bottom: 8px;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.search-hero {
    padding: clamp(55px, 8vw, 100px) 20px clamp(48px, 6vw, 76px);
    text-align: center;
}

.search-hero h1 {
    margin-bottom: 12px;
    color: var(--brand-950);
    font-size: clamp(36px, 5vw, 62px);
    letter-spacing: -.045em;
    line-height: 1.06;
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.hero-copy {
    max-width: 640px;
    margin: 0 auto 29px;
    color: var(--ink-600);
    font-size: 17px;
}

.hero-search {
    display: grid;
    width: min(780px, 100%);
    min-height: 62px;
    margin: 0 auto;
    align-items: center;
    padding: 7px 7px 7px 19px;
    border: 1px solid #ded5db;
    border-radius: 17px;
    background: white;
    box-shadow: 0 14px 38px rgba(15, 52, 94, .11);
    grid-template-columns: 25px 1fr auto;
}

.hero-search:focus-within {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 4px rgba(110, 49, 90, .08), var(--shadow-md);
}

.hero-search svg {
    width: 22px;
    fill: none;
    stroke: var(--ink-500);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.hero-search input {
    width: 100%;
    padding: 10px 13px;
    border: 0;
    outline: 0;
    color: var(--ink-950);
    background: transparent;
    font-size: 16px;
}

.directory-layout {
    display: grid;
    align-items: start;
    gap: 28px;
    grid-template-columns: 272px minmax(0, 1fr);
}

.filters-panel {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
}

.filters-heading,
.results-toolbar,
.doctor-title-row,
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filters-heading h2 {
    margin-bottom: 19px;
    font-size: 22px;
}

.filter-group {
    margin-bottom: 17px;
}

.filter-group label,
.stack-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 600;
}

.filter-group select,
.filter-group input[type="search"],
.sort-form select,
.stack-form input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    background: white;
}

.filter-group select:focus,
.filter-group input[type="search"]:focus,
.sort-form select:focus,
.stack-form input:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(110, 49, 90, .08);
}

.native-multi-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.combo {
    position: relative;
}

.combo-control {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    text-align: left;
    color: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
}

.combo-control:hover {
    border-color: #cdbdc7;
}

.combo.is-open .combo-control {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(110, 49, 90, .08);
}

.combo-summary {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 5px;
}

.combo-placeholder {
    overflow: hidden;
    color: var(--ink-500);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combo-chip,
.combo-count {
    display: inline-block;
    min-width: 0;
    padding: 3px 7px;
    overflow: hidden;
    color: var(--brand-900);
    border-radius: 6px;
    background: var(--brand-100);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combo-chip {
    max-width: 82px;
}

.combo-count {
    flex: 0 0 auto;
}

.combo-chevron {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    transition: transform .18s ease;
    color: var(--ink-500);
    place-items: center;
}

.combo.is-open .combo-chevron {
    transform: rotate(180deg);
}

.combo-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    box-shadow: var(--shadow-md);
}

.combo.is-open .combo-dropdown {
    display: block;
}

.combo-search {
    display: grid;
    align-items: center;
    margin: 9px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--page);
    grid-template-columns: 18px 1fr;
    min-width: 0;
}

.combo-chip-remove {
    margin-left: 6px;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1;
    opacity: .72;
}

.combo-chip:hover .combo-chip-remove,
.combo-chip:focus .combo-chip-remove {
    opacity: 1;
}

.combo-search:focus-within {
    border-color: var(--brand-700);
}

.combo-search svg {
    width: 16px;
    fill: none;
    stroke: var(--ink-500);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.combo-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.combo-options {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    max-height: 230px;
    overflow-y: auto;
    padding: 2px 7px 8px;
}

.combo-option {
    display: grid;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    cursor: pointer;
    border-radius: 7px;
    grid-template-columns: 18px minmax(0, 1fr);
}

.filter-group .combo-option {
    display: grid;
    margin-bottom: 0;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 500;
}

.combo-option:hover {
    background: var(--brand-50);
}

.combo-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.combo-check {
    display: grid;
    width: 18px;
    height: 18px;
    color: transparent;
    border: 1px solid #cabec5;
    border-radius: 5px;
    font-size: 11px;
    place-items: center;
}

.combo-option:has(input:checked) {
    color: var(--brand-950);
    background: var(--brand-50);
}

.combo-option input:checked + .combo-check {
    color: white;
    border-color: var(--brand-800);
    background: var(--brand-800);
}

.combo-option-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combo-empty {
    display: none;
    margin: 0;
    padding: 18px;
    color: var(--ink-500);
    text-align: center;
    font-size: 13px;
}

.combo-empty.is-visible {
    display: block;
}

.more-filters {
    margin: 2px 0 18px;
    border-top: 1px solid var(--line);
}

.more-filters summary {
    padding: 14px 0;
    cursor: pointer;
    color: var(--brand-800);
    font-size: 13px;
    font-weight: 600;
}

.results-panel {
    min-width: 0;
}

.results-toolbar {
    min-height: 54px;
    margin-bottom: 18px;
}

.results-summary {
    gap: 12px;
}

.results-summary strong {
    margin-right: 4px;
    color: var(--brand-900);
    font-size: 18px;
}

.results-summary span {
    color: var(--ink-600);
}

.toolbar-controls {
    gap: 12px;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-form label {
    color: var(--ink-500);
    font-size: 13px;
}

.sort-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sort-form select {
    min-height: 40px;
    padding: 7px 38px 7px 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sort-select-wrap > svg,
.button-chevron {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sort-select-wrap > svg {
    position: absolute;
    right: 11px;
    pointer-events: none;
    color: var(--ink-600);
}

.button-chevron {
    transition: transform .18s ease;
}

[data-export-toggle][aria-expanded="true"] .button-chevron {
    transform: rotate(180deg);
}

.export-menu {
    position: relative;
}

.export-options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: 190px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    box-shadow: var(--shadow-md);
}

.export-options.is-open {
    display: block;
}

.export-options a {
    display: block;
    padding: 10px;
    border-radius: 7px;
    color: var(--ink-800);
}

.export-options a:hover {
    color: var(--brand-900);
    background: var(--brand-50);
}

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

.doctor-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}

.card-favourite-form {
    position: absolute;
    z-index: 5;
    top: 11px;
    right: 11px;
}

.favourite-button {
    display: grid;
    width: 37px;
    height: 37px;
    padding: 0;
    cursor: pointer;
    color: var(--brand-800);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
    place-items: center;
}

.heart-icon {
    display: inline-grid;
    min-width: 20px;
    color: currentColor;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    place-items: center;
}

.favourite-button.is-active,
.favourite-profile-button.is-active {
    color: #b62e4a;
}

.doctor-card:hover {
    transform: translateY(-2px);
    border-color: #d3c4cd;
    box-shadow: var(--shadow-md);
}

.doctor-card-main {
    display: grid;
    height: 100%;
    grid-template-columns: 132px minmax(0, 1fr);
}

.doctor-image-wrap {
    min-height: 258px;
    overflow: hidden;
    background: linear-gradient(145deg, #f1e8ed, #e5d7df);
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.doctor-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 180px;
    color: var(--brand-800);
    background: linear-gradient(145deg, #f4eaf0, #e7d9e1);
    font-family: "Manrope", sans-serif;
    font-size: 42px;
    font-weight: 700;
    place-items: center;
}

.doctor-card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 19px;
}

.doctor-title-row {
    align-items: flex-start;
    gap: 12px;
}

.academic-title {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 600;
}

.doctor-title-row h2 {
    margin: 2px 0 10px;
    font-size: 19px;
    letter-spacing: -.02em;
}

.arrow-link {
    color: var(--brand-700);
    font-size: 21px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 5px 9px;
    color: var(--brand-900);
    border: 1px solid #e1d2db;
    border-radius: 999px;
    background: var(--brand-50);
    font-size: 11px;
    font-weight: 600;
}

.tag-primary {
    color: white;
    border-color: var(--brand-800);
    background: var(--brand-800);
}

.card-facts {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.card-facts div {
    display: block;
    min-width: 0;
}

.card-facts dt,
.profile-facts dt {
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.card-facts dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--ink-800);
    font-size: 12px;
}

.card-facts dt {
    margin-bottom: 3px;
}

.card-footer {
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--ink-600);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
    color: var(--ink-600);
}

.pagination a {
    color: var(--brand-800);
    font-weight: 600;
}

.pagination .disabled {
    opacity: .4;
}

.empty-state {
    padding: 80px 24px;
    border: 1px dashed #d7cbd2;
    border-radius: var(--radius-md);
    background: white;
    text-align: center;
}

.empty-icon {
    display: block;
    margin-bottom: 15px;
    color: var(--brand-700);
    font-size: 42px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 21px;
    color: var(--ink-600);
}

.mobile-only {
    display: none;
}

.profile-page {
    width: min(1150px, 100%);
    margin: 0 auto;
    padding-top: 34px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--brand-800);
    font-weight: 600;
}

.profile-hero {
    position: relative;
    z-index: 10;
    display: grid;
    align-items: center;
    gap: clamp(28px, 5vw, 62px);
    padding: clamp(24px, 4vw, 46px);
    overflow: visible;
    border-radius: var(--radius-lg);
    background: linear-gradient(125deg, var(--brand-950), var(--brand-800));
    box-shadow: var(--shadow-md);
    grid-template-columns: 210px minmax(0, 1fr);
}

.profile-image-wrap {
    width: 210px;
    height: 238px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: var(--brand-100);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-placeholder {
    min-height: 100%;
}

.profile-heading {
    color: white;
}

.profile-heading .eyebrow {
    color: #e5cddd;
}

.profile-heading h1 {
    margin-bottom: 19px;
    font-size: clamp(31px, 5vw, 52px);
    letter-spacing: -.04em;
    line-height: 1.1;
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.profile-heading h1 span {
    display: block;
    margin-bottom: 5px;
    color: #dec6d6;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    letter-spacing: .08em;
}

.profile-tags .tag {
    color: white;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
}

.profile-tags .tag-primary {
    color: var(--brand-950);
    border-color: white;
    background: white;
}

.profile-contact {
    flex-wrap: wrap;
    gap: 11px 22px;
    margin-top: 28px;
}

.profile-contact a {
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    font-weight: 600;
}

.profile-download {
    position: relative;
}

.profile-action-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    cursor: pointer;
    color: white;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    font-weight: 600;
}

.profile-favourite-form {
    display: flex;
    margin: 0;
}

.favourite-profile-button {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    color: white;
    border-color: rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    line-height: 1;
    place-items: center;
}

.favourite-profile-button .heart-icon {
    min-width: 0;
    font-size: 25px;
}

.favourite-profile-button:hover {
    color: #ffb1c0;
    border-color: #ffb1c0;
    background: rgba(255, 255, 255, .15);
}

.favourite-profile-button.is-active {
    color: #e54867;
    border-color: #ffd2da;
    background: white;
}

.visually-hidden {
    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;
}

.profile-list-picker {
    position: relative;
}

.profile-list-picker > .profile-action-button {
    width: auto;
    min-width: 125px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 8px 14px;
}

.profile-list-picker > button .chevron-icon {
    width: 18px;
    height: 18px;
    transition: transform .18s ease;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-list-picker > button[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.profile-list-menu {
    position: absolute;
    z-index: 25;
    top: calc(100% + 7px);
    right: 0;
    display: none;
    width: 260px;
    padding: 11px;
    color: var(--ink-800);
    border: 1px solid #dce3e9;
    border-radius: 11px;
    background: white;
    box-shadow: var(--shadow-md);
}

.profile-list-menu.is-open {
    display: block;
}

.profile-list-menu form > label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    cursor: pointer;
    border-radius: 7px;
}

.profile-list-menu form > label:hover {
    background: var(--brand-50);
}

.profile-list-menu input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand-800);
}

.profile-list-menu .button {
    margin-top: 8px;
}

.profile-list-menu p {
    margin-bottom: 8px;
    color: var(--ink-600);
    font-size: 13px;
}

.profile-list-menu > a {
    color: var(--brand-800);
    border: 0;
    font-weight: 600;
}

.profile-download > button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    cursor: pointer;
    color: var(--brand-950);
    border: 1px solid white;
    border-radius: 9px;
    background: white;
    font-weight: 600;
}

.profile-download > button svg {
    width: 18px;
    height: 18px;
    transition: transform .18s ease;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-download > button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.profile-download-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    display: none;
    width: 185px;
    padding: 6px;
    border: 1px solid #dce3e9;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-md);
}

.profile-download-menu.is-open {
    display: block;
}

.profile-download-menu a {
    display: block;
    padding: 9px 10px;
    color: var(--ink-800);
    border: 0;
    border-radius: 7px;
    font-size: 13px;
}

.profile-download-menu a:hover {
    color: var(--brand-900);
    background: var(--cream-soft);
}

.profile-layout {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: start;
    gap: 28px;
    margin-top: 28px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.profile-sidebar {
    position: sticky;
    top: 96px;
}

.info-card,
.content-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
}

.info-card {
    padding: 22px;
}

.info-card h2,
.content-section h2 {
    margin-bottom: 20px;
    color: var(--brand-950);
    font-size: 21px;
}

.profile-facts {
    display: grid;
    gap: 18px;
}

.profile-facts div {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

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

.profile-facts dd {
    margin: 5px 0 0;
    color: var(--ink-800);
}

.profile-content {
    display: grid;
    gap: 18px;
}

.content-section {
    padding: clamp(23px, 4vw, 36px);
}

.rich-copy {
    color: var(--ink-800);
    line-height: 1.75;
}

.rich-copy p:last-child {
    margin-bottom: 0;
}

.timeline {
    position: relative;
}

.timeline::before {
    position: absolute;
    top: 8px;
    bottom: 10px;
    left: 6px;
    width: 1px;
    content: "";
    background: #dacbd4;
}

.timeline-item {
    position: relative;
    display: grid;
    gap: 17px;
    padding-bottom: 22px;
    grid-template-columns: 14px minmax(0, 1fr);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 4px;
    border: 3px solid var(--brand-100);
    border-radius: 50%;
    background: var(--brand-700);
}

.timeline-item h3 {
    margin-bottom: 4px;
    font-size: 15px;
}

.timeline-item p {
    margin: 0;
    color: var(--ink-600);
}

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

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    padding: 13px;
    border-radius: 9px;
    background: var(--brand-50);
}

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

.note-form {
    display: grid;
    gap: 10px;
}

.note-form textarea,
.management-field textarea {
    width: 100%;
    padding: 12px;
    resize: vertical;
    color: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    font: inherit;
}

.note-form textarea:focus,
.management-field textarea:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(21, 61, 107, .08);
}

.note-form .button {
    justify-self: start;
}

.notes-list {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.note-card {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--cream-soft);
}

.note-card > p {
    margin-bottom: 12px;
}

.note-card footer,
.note-card footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.note-card footer {
    justify-content: space-between;
    color: var(--ink-500);
    font-size: 12px;
}

.note-card footer a,
.note-card footer button {
    padding: 0;
    cursor: pointer;
    color: var(--brand-800);
    border: 0;
    background: transparent;
    font-weight: 600;
}

.note-card footer form {
    display: inline;
}

.notes-empty {
    margin-bottom: 0;
}

.detail-list span {
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 13px;
}

.muted {
    color: var(--ink-500);
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: 30px;
    background:
        radial-gradient(circle at 15% 20%, rgba(164, 102, 139, .22), transparent 29%),
        radial-gradient(circle at 85% 80%, rgba(110, 49, 90, .18), transparent 28%),
        var(--brand-950);
    place-items: center;
}

.login-card {
    display: grid;
    width: min(980px, 100%);
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 26px;
    background: white;
    box-shadow: 0 30px 90px rgba(20, 7, 15, .32);
    grid-template-columns: 1.12fr .88fr;
}

.login-brand {
    display: flex;
    padding: clamp(36px, 7vw, 78px);
    color: white;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 45%),
        var(--brand-800);
    flex-direction: column;
    justify-content: center;
}

.login-brand .brand-mark svg {
    fill: white;
}

.login-brand .brand-mark-cut {
    stroke: var(--brand-800) !important;
}

.login-brand .eyebrow {
    margin-top: 28px;
    color: #ead8e3;
}

.login-brand h1 {
    max-width: 440px;
    margin-bottom: 20px;
    font-size: clamp(35px, 5vw, 55px);
    letter-spacing: -.045em;
    line-height: 1.08;
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.login-brand > p:last-child {
    max-width: 430px;
    margin-bottom: 0;
    color: #eadfe6;
    font-size: 17px;
}

.login-form-panel {
    display: flex;
    padding: clamp(34px, 6vw, 66px);
    flex-direction: column;
    justify-content: center;
}

.login-form-panel h2 {
    margin-bottom: 25px;
    font-size: 27px;
}

.stack-form {
    display: grid;
}

.stack-form input {
    min-height: 47px;
    margin-bottom: 18px;
}

.stack-form .button {
    margin-top: 7px;
}

.form-error {
    margin-bottom: 17px;
    padding: 11px 13px;
    color: #8d283b;
    border: 1px solid #efc8d0;
    border-radius: 8px;
    background: #fff4f6;
    font-size: 13px;
}

.login-help {
    margin: 20px 0 0;
    color: var(--ink-500);
    font-size: 12px;
    text-align: center;
}

.account-page,
.management-page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding-top: clamp(34px, 6vw, 72px);
}

.workspace-page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding-top: clamp(38px, 7vw, 78px);
}

.workspace-heading,
.list-detail-heading,
.workspace-heading-actions,
.list-detail-actions {
    display: flex;
    align-items: center;
}

.workspace-heading,
.list-detail-heading {
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 30px;
}

.workspace-heading h1,
.list-detail-heading h1 {
    margin-bottom: 8px;
    color: var(--brand-950);
    font-family: "Lora", Georgia, serif;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 500;
}

.workspace-heading p:last-child,
.list-detail-heading p:last-child {
    margin-bottom: 0;
    color: var(--ink-600);
}

.workspace-tabs {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.workspace-tabs a {
    padding: 8px 13px;
    color: var(--ink-600);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.workspace-tabs a.is-active {
    color: white;
    background: var(--brand-800);
}

.workspace-heading-actions,
.list-detail-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.workspace-doctor-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
}

.workspace-doctor-row {
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 17px;
    border-bottom: 1px solid var(--line);
}

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

.workspace-doctor-row > a {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 15px;
}

.workspace-doctor-row img,
.workspace-placeholder {
    width: 62px;
    height: 66px;
    flex: 0 0 auto;
    border-radius: 9px;
    object-fit: cover;
    object-position: center top;
}

.workspace-placeholder {
    display: grid;
    color: var(--brand-800);
    background: var(--brand-100);
    font-size: 22px;
    font-weight: 700;
    place-items: center;
}

.workspace-doctor-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.workspace-doctor-info strong {
    overflow: hidden;
    color: var(--brand-950);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-doctor-info small {
    color: var(--ink-500);
}

.custom-list-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-list-card {
    display: grid;
    align-items: start;
    gap: 14px;
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.custom-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.list-icon {
    display: grid;
    width: 40px;
    height: 40px;
    color: var(--brand-800);
    border-radius: 10px;
    background: var(--brand-100);
    font-size: 23px;
    place-items: center;
}

.custom-list-card h2 {
    margin: 5px 0 7px;
    font-size: 18px;
}

.custom-list-card p {
    color: var(--ink-600);
    font-size: 13px;
}

.custom-list-card div > span {
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 600;
}

.button-danger {
    color: #a12e42;
    border-color: #e8c9d0;
    background: #fff6f7;
}

.blacklist-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0 24px;
    padding: 20px 22px;
    color: #702033;
    border: 1px solid #e8c9d0;
    border-radius: var(--radius-md);
    background: #fff6f7;
}

.blacklist-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.blacklist-alert p {
    margin: 0 0 4px;
}

.danger-section {
    border-color: #e8c9d0;
}

.management-search {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.management-search input {
    flex: 1;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.blacklist-row .workspace-doctor-info small:first-of-type {
    color: #702033;
}

.account-form-card,
.success-card {
    width: min(650px, 100%);
    margin: 0 auto;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.account-form-card h1,
.success-card h1,
.management-heading h1 {
    margin-bottom: 10px;
    color: var(--brand-950);
    font-family: "Lora", Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 500;
}

.form-intro,
.management-heading p {
    color: var(--ink-600);
}

.management-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.management-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 600;
}

.management-field input:not([type="checkbox"]) {
    width: 100%;
    min-height: 45px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
}

.management-field input:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(21, 61, 107, .08);
}

.checkbox-field {
    display: grid;
    align-items: start;
    gap: 0 10px;
    grid-template-columns: 19px minmax(0, 1fr);
}

.checkbox-field input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--brand-800);
}

.checkbox-field label {
    margin: 0;
}

.checkbox-field .field-help,
.checkbox-field .field-error {
    grid-column: 2;
}

.field-help {
    margin-top: 5px;
    color: var(--ink-500);
    font-size: 12px;
}

.field-help ul {
    margin: 5px 0 0;
    padding-left: 19px;
}

.field-error {
    margin-top: 5px;
    color: #a12e42;
    font-size: 12px;
}

.form-notice {
    margin-top: 18px;
    padding: 11px 13px;
    color: var(--brand-900);
    border: 1px solid #cfddea;
    border-radius: 8px;
    background: var(--brand-50);
    font-size: 13px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.success-card {
    text-align: center;
}

.success-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    color: white;
    border-radius: 50%;
    background: var(--success);
    font-size: 25px;
    place-items: center;
}

.success-card p:not(.eyebrow) {
    margin-bottom: 25px;
    color: var(--ink-600);
}

.management-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.management-heading p:last-child {
    margin-bottom: 0;
}

.user-table-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
}

.user-table-head,
.user-table-row {
    display: grid;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    grid-template-columns: minmax(220px, 1.5fr) .75fr .6fr .8fr 1fr;
}

.user-table-head {
    color: var(--ink-500);
    border-bottom: 1px solid var(--line);
    background: var(--cream-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.user-table-row {
    border-bottom: 1px solid var(--line);
}

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

.managed-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.managed-user > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.managed-user small {
    overflow: hidden;
    color: var(--ink-500);
    text-overflow: ellipsis;
}

.role-badge,
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    color: var(--ink-600);
    border-radius: 999px;
    background: var(--page);
    font-size: 11px;
    font-weight: 600;
}

.role-admin {
    color: var(--brand-900);
    background: var(--brand-100);
}

.status-badge.active {
    color: #176148;
    background: #e5f4ee;
}

.last-login {
    color: var(--ink-600);
    font-size: 13px;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
}

.user-actions a {
    color: var(--brand-800);
    font-size: 13px;
    font-weight: 600;
}

.empty-state.compact {
    padding: 35px;
}

@media (max-width: 1180px) {
    .doctor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .page-shell {
        width: min(100% - 28px, 760px);
    }

    .user-name {
        display: none;
    }

    .main-nav {
        position: static;
        margin-left: auto;
        transform: none;
    }

    .main-nav > a {
        display: none;
    }

    .specialties-menu {
        right: -110px;
        left: auto;
        width: min(380px, 88vw);
        transform: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .directory-layout {
        display: block;
    }

    .filters-panel {
        position: fixed;
        z-index: 60;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(350px, 90vw);
        overflow-y: auto;
        max-height: none;
        transform: translateX(-105%);
        transition: transform .24s ease;
        border: 0;
        border-radius: 0;
    }

    .filters-panel.is-open {
        transform: translateX(0);
    }

    .combo-dropdown {
        width: 100%;
    }

    .filter-overlay {
        position: fixed;
        z-index: 50;
        inset: 0;
        display: none;
        background: rgba(30, 18, 26, .5);
    }

    .filter-overlay.is-open {
        display: block;
    }

    .icon-button {
        width: 36px;
        height: 36px;
        cursor: pointer;
        border: 0;
        border-radius: 50%;
        background: var(--brand-50);
        font-size: 25px;
    }

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

    .profile-sidebar {
        position: static;
    }

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

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

    .login-card {
        grid-template-columns: 1fr;
    }

    .user-table-head {
        display: none;
    }

    .user-table-row {
        grid-template-columns: 1fr 1fr;
    }

    .managed-user,
    .user-actions {
        grid-column: 1 / -1;
    }

    .login-brand {
        min-height: 330px;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 66px;
        padding: 10px 14px;
    }

    .brand small,
    .user-chip,
    .main-nav {
        display: none;
    }

    .brand-mark {
        width: 37px;
        height: 37px;
    }

    .button-quiet {
        padding-right: 4px;
    }

    .search-hero {
        padding: 45px 5px;
    }

    .hero-search {
        min-height: 56px;
        padding-left: 14px;
        border-radius: 14px;
        grid-template-columns: 22px 1fr;
    }

    .hero-search .button {
        grid-column: 1 / -1;
        margin-top: 6px;
    }

    .results-toolbar {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .sort-form label {
        display: none;
    }

    .doctor-card-main {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .doctor-image-wrap {
        min-height: 285px;
    }

    .doctor-card-content {
        padding: 15px;
    }

    .card-facts div {
        display: block;
    }

    .card-facts dt {
        margin-bottom: 2px;
    }

    .card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination {
        gap: 13px;
        font-size: 13px;
    }

    .profile-page {
        padding-top: 22px;
    }

    .profile-hero {
        text-align: center;
        grid-template-columns: 1fr;
    }

    .profile-image-wrap {
        width: 170px;
        height: 195px;
        margin: 0 auto;
    }

    .profile-tags,
    .profile-contact {
        justify-content: center;
    }

    .login-page {
        padding: 14px;
    }

    .login-card {
        min-height: auto;
    }

    .management-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-heading,
    .list-detail-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-heading-actions,
    .list-detail-actions {
        justify-content: flex-start;
    }

    .custom-list-grid {
        grid-template-columns: 1fr;
    }

    .workspace-doctor-row {
        align-items: flex-end;
    }

    .profile-list-menu {
        right: auto;
        left: 0;
    }

    .user-table-row {
        grid-template-columns: 1fr;
    }

    .managed-user,
    .user-actions {
        grid-column: auto;
    }

    .login-brand {
        min-height: 280px;
        padding: 34px;
    }

    .login-brand h1 {
        font-size: 34px;
    }
}
