:root {
    --blue: #2256ed;
    --indigo: #5638e9;
    --cyan: #03bfc8;
    --pink: #f46b94;
    --ink: #17213e;
    --muted: #64718a;
    --line: #e2e8f3;
    --bg: #f3f6fd;
    --white: #fff;
    --radius: 20px;
    --shadow: 0 10px 30px #1d39810a
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 "Segoe UI", Arial, sans-serif
}

a {
    color: var(--blue);
    text-decoration: none
}

a:hover {
    color: var(--indigo)
}

button,
input,
textarea,
select {
    font: inherit
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--blue);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 12px 19px;
    font-weight: 650;
    cursor: pointer;
    transition: background .2s, transform .2s
}

button:hover,
.button:hover {
    background: #1746cf;
    color: #fff;
    transform: translateY(-1px)
}

button:disabled {
    opacity: .55;
    cursor: wait
}

.secondary {
    background: #edf2ff;
    color: var(--blue);
    border-color: #dbe4ff
}

.secondary:hover {
    background: #e0e8ff;
    color: var(--blue)
}

.small {
    padding: 7px 12px;
    font-size: 13px
}

.danger {
    background: #d73152
}

.white {
    background: white;
    color: var(--blue)
}

.white:hover {
    background: #eef3ff;
    color: var(--blue)
}

.glass {
    background: #ffffff16;
    border-color: #ffffff60
}

.full-width {
    width: 100%
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0
}

.topbar {
    min-height: 84px;
    padding: 16px 4%;
    background: white;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    white-space: nowrap
}

.brand>span:last-child {
    color: var(--blue)
}

.brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    margin-right: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    display: grid;
    place-items: center;
    font-size: 25px
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px
}

.site-nav>a:not(.button) {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted)
}

.site-nav form {
    margin: 0
}

.nav-toggle {
    display: none
}

.app-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 154px)
}

.app-shell.public-shell {
    display: block
}

.app-shell main {
    min-width: 0;
    padding: 36px 4% 70px
}

.public-shell main {
    max-width: 1480px;
    margin: auto
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 30px 18px
}

.workspace-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 15px
}

.workspace-title strong {
    font-size: 18px;
    line-height: 1.3
}

.role-badge {
    background: #dcf8f7;
    color: #087c83;
    border-radius: 6px;
    padding: 3px 10px;
    width: max-content;
    font-size: 12px;
    font-weight: 700
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin: 3px 0;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600
}

.nav-dot {
    height: 6px;
    width: 6px;
    flex-shrink: 0;
    background: #b8c4da;
    border-radius: 50%
}

.sidebar nav a.active {
    background: #eef2ff;
    color: var(--blue)
}

.sidebar nav a.active .nav-dot {
    background: var(--blue)
}

.sidebar nav a:hover {
    background: #f6f8fe
}

.sidebar-note {
    background: linear-gradient(135deg, #eef0ff, #e3f8fa);
    color: var(--indigo);
    border-radius: 14px;
    margin-top: 30px;
    padding: 18px;
    font-weight: 650
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 1.8px;
    display: block
}

.eyebrow.light {
    color: #cdedff
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -.7px;
    margin: 10px 0 16px
}

h1 {
    font-size: 36px
}

h2 {
    font-size: 24px
}

h3 {
    font-size: 18px
}

p {
    margin: 10px 0 18px
}

.muted,
small {
    color: var(--muted)
}

small {
    font-size: 12px;
    display: block
}

.page-heading {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

.page-heading p {
    color: var(--muted);
    margin: 0
}

.today-badge,
.count-badge {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted)
}

.welcome-banner {
    padding: 28px 35px;
    border-radius: var(--radius);
    background: linear-gradient(110deg, #2256ed, #6240ed);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    margin-bottom: 24px
}

.welcome-banner .eyebrow {
    color: #bcecff
}

.welcome-banner h2 {
    font-size: 30px
}

.welcome-banner p {
    margin: 0;
    color: #e2e9ff
}

.smile-art {
    font-size: 90px;
    line-height: 1;
    color: #caf4ff
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin: 24px 0
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow)
}

.stat-card>span:first-child {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600
}

.stat-card strong {
    display: block;
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.4;
    margin-top: 10px
}

.stat-card:nth-child(4n+2) {
    border-top: 3px solid var(--cyan)
}

.stat-card:nth-child(4n+1) {
    border-top: 3px solid var(--blue)
}

.stat-card:nth-child(4n+3) {
    border-top: 3px solid var(--indigo)
}

.stat-card:nth-child(4n+4) {
    border-top: 3px solid var(--pink)
}

.stat-decor {
    position: absolute;
    right: 20px;
    top: 26px;
    color: #a5b6dc
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 22px
}

.form-card {
    padding: 0
}

.form-card summary {
    padding: 22px 26px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 650;
    cursor: pointer
}

.form-card[open] summary {
    border-bottom: 1px solid var(--line)
}

.action-form {
    padding: 26px
}

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

.field.wide {
    grid-column: 1/-1
}

label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 0 0 7px
}

.field label {
    margin: 0
}

.required {
    color: var(--pink)
}

input,
textarea,
select {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dbe3f1;
    border-radius: 10px;
    color: var(--ink);
    background: #fcfdff;
    margin: 7px 0 5px;
    outline: none
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #2256ed12
}

input[type=file] {
    padding: 9px;
    font-size: 13px
}

input[type=checkbox],
input[type=radio] {
    width: 17px;
    display: inline;
    vertical-align: middle;
    margin: 0 8px 0 0;
    accent-color: var(--blue)
}

textarea {
    resize: vertical
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    margin: 16px 0
}

.check-label input {
    flex-shrink: 0;
    margin-top: 5px
}

fieldset {
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 18px 0
}

legend {
    font-size: 13px;
    font-weight: 650
}

.form-result {
    font-size: 14px
}

.table-card {
    padding: 0;
    overflow: hidden
}

.table-heading {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.table-heading h2 {
    font-size: 19px;
    margin: 0
}

.table-scroll {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px
}

th {
    background: #f6f8fd;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap
}

th,
td {
    padding: 14px 19px;
    border-bottom: 1px solid #edf0f7
}

td {
    max-width: 350px;
    overflow-wrap: anywhere;
    vertical-align: top
}

tbody tr:last-child td {
    border: 0
}

tbody tr:hover {
    background: #fbfcff
}

.table-link {
    font-weight: 650;
    white-space: nowrap
}

.empty-state {
    padding: 36px;
    text-align: center;
    color: var(--muted)
}

.empty-state>span {
    display: block;
    color: var(--blue);
    font-size: 35px
}

.empty-state h3 {
    color: var(--ink)
}

.empty-state p {
    margin-bottom: 0
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap
}

.filter-bar label {
    flex: 1;
    min-width: 140px;
    margin: 0
}

.filter-bar button {
    margin-bottom: 5px
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    background: #eaf1ff;
    color: #264889
}

.alert.success {
    background: #e4faf1;
    color: #177759
}

.alert.error {
    background: #fff0f3;
    color: #b0264e
}

.error-text {
    color: #c02d50
}

.pre-wrap {
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.status-pill {
    background: #ddf7f7;
    color: #067c83;
    border-radius: 100px;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 12px
}

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

.visit-summary small {
    font-weight: 700;
    letter-spacing: 1px
}

.visit-summary h2 {
    font-size: 20px;
    margin: 6px 0
}

.hero {
    position: relative;
    min-height: 510px;
    padding: 65px 6%;
    border-radius: 28px;
    background: linear-gradient(118deg, #155dea 0%, #4740eb 60%, #782bdf 100%);
    color: white;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden
}

.hero h1 {
    font-size: clamp(48px, 5.3vw, 76px);
    line-height: 1.06;
    letter-spacing: -3px;
    margin: 22px 0
}

.hero-copy>p {
    font-size: 16px;
    max-width: 550px;
    color: #e4ebff;
    line-height: 1.8
}

.hero-points {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-top: 28px;
    color: #d9edff
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px
}

.orbit {
    position: absolute;
    border: 1px solid #ffffff28;
    border-radius: 50%
}

.orbit-one {
    width: 350px;
    height: 350px
}

.orbit-two {
    width: 440px;
    height: 440px
}

.medical-art {
    width: 220px;
    height: 260px;
    z-index: 1;
    transform: rotate(-9deg);
    filter: drop-shadow(10px 25px 0 #1739ad35)
}

.medical-art svg {
    width: 100%;
    height: 100%
}

.floating-note {
    position: absolute;
    background: white;
    color: var(--ink);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    box-shadow: 0 15px 35px #19226533
}

.floating-note strong {
    font-size: 13px
}

.floating-note small {
    font-size: 10px
}

.note-one {
    top: 30px;
    right: 0
}

.note-two {
    bottom: 20px;
    left: 0
}

.sparkle {
    position: absolute;
    color: #8af7ed;
    font-size: 55px;
    bottom: 100px;
    right: 30px
}

.icon-box {
    height: 46px;
    width: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    font-size: 23px;
    font-weight: 700;
    flex-shrink: 0
}

.icon-box.cyan {
    background: #dcfaf5;
    color: #08a7a0
}

.icon-box.pink {
    background: #ffedf3;
    color: var(--pink)
}

.icon-box.blue {
    background: #eaf0ff;
    color: var(--blue)
}

.section {
    padding: 65px 0 30px
}

.section-heading {
    text-align: center;
    margin-bottom: 35px
}

.section-heading h2 {
    font-size: 36px
}

.section-heading p {
    color: var(--muted)
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.feature {
    padding: 30px;
    margin: 0
}

.feature h3 {
    margin-top: 24px;
    font-size: 21px
}

.feature p {
    color: var(--muted);
    margin-bottom: 0
}

.clinic-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    background: #eaf0ff;
    border: 1px solid #dce4fb;
    border-radius: 24px;
    padding: 45px;
    margin: 35px 0
}

.clinic-promo h2 {
    font-size: 42px
}

.clinic-promo p {
    color: var(--muted)
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.promo-grid>div {
    padding: 22px;
    background: #fff;
    border-radius: 16px
}

.promo-grid strong {
    color: var(--blue);
    font-size: 28px
}

.promo-grid p {
    margin: 8px 0;
    font-weight: 600;
    color: var(--ink)
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px
}

.doctor-card {
    padding: 24px;
    text-align: left;
    margin: 0
}

.doctor-photo {
    background: #eaf0ff;
    aspect-ratio: 1.5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px
}

.doctor-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 30%
}

.verified {
    color: #0b948e;
    font-size: 11px;
    font-weight: 750
}

.doctor-card h2 {
    font-size: 22px;
    margin: 9px 0
}

.doctor-card p {
    font-size: 13px;
    margin: 8px 0
}

.doctor-rating {
    font-size: 17px;
    font-weight: 750;
    color: #eea421;
    margin: 20px 0
}

.doctor-rating small {
    display: inline;
    color: var(--muted);
    font-weight: 400
}

.doctor-rating>span {
    display: block;
    font-size: 12px;
    color: var(--muted)
}

.doctor-card .button {
    width: 100%
}

.pricing-heading {
    padding: 30px 0
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch
}

.price-card {
    padding: 35px;
    margin: 0;
    position: relative
}

.price-card h2 {
    font-size: 38px;
    margin: 24px 0
}

.price-card h2 small {
    display: inline;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0
}

.price-card>p {
    color: var(--muted)
}

.price-card ul {
    padding-left: 20px;
    line-height: 2.4;
    font-size: 13px;
    color: var(--muted);
    margin: 30px 0
}

.price-card .button {
    width: 100%
}

.price-card.featured {
    border: 2px solid var(--blue);
    background: linear-gradient(#f3f6ff, #fff)
}

.popular {
    position: absolute;
    top: -14px;
    left: 30px;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 7px
}

.pricing-note {
    text-align: center;
    max-width: 880px;
    color: var(--muted);
    font-size: 13px;
    margin: 30px auto
}

.registration-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 32px
}

.registration-aside {
    padding: 50px 40px;
    color: white;
    background: linear-gradient(145deg, var(--blue), var(--indigo));
    border-radius: 24px;
    align-self: start;
    position: sticky;
    top: 25px
}

.registration-aside h1 {
    font-size: 42px
}

.registration-aside p {
    color: #dbe5ff
}

.registration-aside a {
    color: #cffefa;
    font-size: 13px
}

.registration-smile {
    font-size: 130px;
    color: #b9fafa;
    padding: 30px;
    text-align: center
}

.registration-card {
    padding: 35px
}

.registration-card h2 {
    font-size: 30px
}

.registration-card .form-grid {
    margin: 28px 0
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    max-width: 1050px;
    margin: 45px auto;
    align-items: center
}

.auth-intro h1 {
    font-size: 47px;
    line-height: 1.13
}

.auth-intro p {
    color: var(--muted)
}

.auth-art {
    font-size: 180px;
    line-height: 1;
    color: var(--blue);
    padding: 10px 0;
    text-shadow: 35px 15px #dbe7ff
}

.auth-card {
    max-width: 480px;
    padding: 36px
}

.auth-card h2 {
    font-size: 30px
}

.auth-card label {
    margin: 18px 0 10px
}

.auth-card .check-label {
    margin: 8px 0
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-size: 13px
}

.divider {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 20px 0
}

.centered {
    margin: 45px auto
}

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

.help-grid details {
    margin: 0;
    align-self: start
}

.help-grid summary {
    cursor: pointer;
    font-size: 17px;
    font-weight: 650
}

.help-grid p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 20px
}

.contact-card {
    max-width: 850px;
    margin: 50px auto;
    padding: 55px
}

.contact-email {
    font-size: 26px;
    font-weight: 700;
    display: block;
    margin: 25px 0;
    overflow-wrap: anywhere
}

footer {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding: 24px 4%;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 650
}

footer span {
    color: var(--muted);
    font-weight: 400;
    flex: 1
}

footer a {
    color: var(--muted)
}

.floating-button {
    position: fixed;
    right: 26px;
    z-index: 30;
    box-shadow: 0 8px 24px #2256ed33;
    border-radius: 100px;
    font-size: 16px;
    padding: 14px 20px
}

.floating-button span {
    font-size: 13px
}

.chat-fab {
    bottom: 24px;
    background: var(--blue)
}

.bot-fab {
    bottom: 89px;
    background: var(--indigo)
}

.chat-fab b {
    font-size: 10px;
    background: #fff;
    color: var(--blue);
    border-radius: 50%;
    min-width: 19px
}

.chat-panel {
    position: fixed;
    right: 26px;
    bottom: 150px;
    width: 365px;
    max-width: calc(100vw - 30px);
    max-height: calc(100dvh - 170px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 65px #15265830
}

.panel-header {
    background: linear-gradient(100deg, var(--blue), var(--indigo));
    color: #fff;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.panel-header small {
    color: #e1eaff;
    font-size: 10px
}

.icon-close {
    background: #ffffff22;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 23px
}

.chat-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line)
}

.chat-toolbar small {
    font-size: 10px
}

.chat-messages {
    padding: 16px;
    overflow-y: auto;
    min-height: 120px;
    max-height: 270px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8faff
}

.message {
    border: 1px solid #e1e7f3;
    background: #fff;
    border-radius: 12px 12px 12px 3px;
    padding: 10px 13px;
    font-size: 12px;
    max-width: 90%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    align-self: flex-start
}

.message.mine {
    background: #e9eeff;
    border-color: #d6dfff;
    align-self: flex-end;
    border-radius: 12px 12px 3px 12px
}

.message small {
    font-size: 9px;
    margin-top: 5px
}

#chat-compose,
#bot-compose {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line)
}

#chat-compose input,
#bot-compose input {
    margin: 0;
    min-width: 0;
    font-size: 12px
}

#chat-compose button,
#bot-compose button {
    padding: 9px 13px;
    font-size: 12px
}

#chat-error,
#bot-error {
    padding: 0 15px;
    font-size: 11px;
    margin: 4px 0
}

.bot-intro {
    background: #f4f0ff;
    padding: 10px 16px;
    font-size: 10px;
    color: #615c7d
}

.bot-options {
    padding: 12px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    max-height: 160px;
    overflow: auto
}

.bot-options button {
    font-size: 11px
}

.bot-consent {
    font-size: 10px;
    padding: 0 12px;
    margin: 6px 0
}

#bot-restart {
    margin: 5px 12px 12px;
    align-self: flex-start
}

dialog {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    width: 720px;
    max-width: 95vw;
    background: #fff;
    box-shadow: 0 30px 100px #16234b40
}

dialog::backdrop {
    background: #13244f80
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

video {
    width: 100%;
    background: #17213e;
    border-radius: 14px
}

#face-dialog {
    width: 520px
}

.print-body {
    background: #fff
}

.print-sheet {
    max-width: 850px;
    margin: 35px auto;
    padding: 30px
}

.print-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.hidden {
    display: none !important
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

:focus-visible {
    outline: 3px solid #00becd;
    outline-offset: 3px
}

@media(max-width:1100px) {
    .site-nav {
        gap: 13px
    }

    .hero {
        padding: 45px
    }

    .floating-note {
        padding: 10px
    }

    .note-one {
        right: -25px
    }

    .note-two {
        left: -30px
    }

    .hero-points {
        gap: 8px
    }

    .app-shell {
        grid-template-columns: 220px minmax(0, 1fr)
    }

    .sidebar {
        padding: 25px 12px
    }

    .price-card {
        padding: 25px
    }

    .auth-layout {
        gap: 30px
    }

    .clinic-promo {
        gap: 30px
    }
}

@media(max-width:850px) {
    .topbar {
        flex-wrap: wrap;
        min-height: 74px
    }

    .nav-toggle {
        display: block
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0
    }

    .site-nav.open {
        display: flex
    }

    .app-shell {
        display: block
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 15px
    }

    .workspace-title {
        display: none
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 5px
    }

    .sidebar nav a {
        white-space: nowrap;
        padding: 9px 13px
    }

    .sidebar-note {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px;
        min-height: initial
    }

    .hero-visual {
        min-height: 280px;
        margin-top: 25px
    }

    .orbit-one {
        width: 250px;
        height: 250px
    }

    .orbit-two {
        width: 320px;
        height: 320px
    }

    .medical-art {
        height: 210px;
        width: 170px
    }

    .note-one {
        top: 10px;
        right: 0
    }

    .note-two {
        bottom: 0;
        left: 0
    }

    .hero h1 {
        font-size: 58px
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr
    }

    .clinic-promo {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 20px
    }

    .price-card.featured {
        margin-top: 15px
    }

    .auth-layout,
    .registration-layout {
        grid-template-columns: 1fr
    }

    .auth-intro {
        display: none
    }

    .auth-card {
        width: 100%;
        margin: auto
    }

    .registration-aside {
        position: static;
        padding: 30px
    }

    .registration-aside h1 {
        font-size: 34px
    }

    .registration-smile {
        display: none
    }

    .help-grid {
        grid-template-columns: 1fr
    }

    .page-heading {
        align-items: flex-start
    }

    .today-badge {
        display: none
    }

    .visit-summary {
        gap: 15px
    }

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

    .floating-button {
        right: 16px
    }

    .chat-panel {
        right: 15px
    }

    footer span {
        flex-basis: 100%
    }
}

@media(max-width:520px) {
    .brand {
        font-size: 21px
    }

    .app-shell main {
        padding: 25px 18px 70px
    }

    .hero {
        padding: 30px 24px;
        border-radius: 21px
    }

    .hero h1 {
        font-size: 48px
    }

    .hero-copy>p {
        font-size: 14px
    }

    .hero-points {
        font-size: 10px
    }

    .hero .button {
        font-size: 12px;
        padding: 11px 14px
    }

    .floating-note strong {
        font-size: 11px
    }

    .hero-visual {
        min-height: 260px
    }

    .section-heading h2 {
        font-size: 28px
    }

    .section {
        padding-top: 45px
    }

    .feature-grid {
        gap: 16px
    }

    .clinic-promo h2 {
        font-size: 34px
    }

    .promo-grid {
        gap: 10px
    }

    .promo-grid>div {
        padding: 17px
    }

    h1 {
        font-size: 29px
    }

    .card {
        padding: 20px
    }

    .table-card,
    .form-card {
        padding: 0
    }

    .table-heading {
        padding: 20px
    }

    .action-form {
        padding: 20px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.wide {
        grid-column: auto
    }

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

    .welcome-banner {
        padding: 25px
    }

    .welcome-banner h2 {
        font-size: 25px
    }

    .smile-art {
        font-size: 60px
    }

    .stat-card {
        padding: 18px
    }

    .stat-card strong {
        font-size: 25px
    }

    .auth-card {
        padding: 25px
    }

    .contact-card {
        padding: 25px
    }

    .contact-email {
        font-size: 20px
    }

    .contact-card h1 {
        font-size: 30px
    }

    .print-sheet {
        padding: 16px
    }

    .floating-button span {
        font-size: 11px
    }

    .chat-panel {
        max-height: calc(100dvh - 160px)
    }

    .chat-messages {
        max-height: 210px
    }

    .video-grid {
        grid-template-columns: 1fr
    }
}

@media print {
    .print-button {
        display: none
    }

    .print-sheet {
        margin: 0;
        max-width: none;
        padding: 0
    }

    .print-body {
        font-size: 11pt
    }

    table {
        font-size: 10pt
    }

    h1 {
        font-size: 23pt
    }

    h2 {
        font-size: 16pt
    }

    h3 {
        font-size: 12pt
    }

    section {
        break-inside: avoid
    }

    th,
    td {
        padding: 7px 10px
    }
}

/* Verified subscription payments */
.payu-summary{max-width:800px;margin:1.5rem auto}.payment-details{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;overflow-wrap:anywhere}.payment-details dt{font-weight:700}.payment-details dd{margin:0}
.payu-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.payu-plan-option{border:1px solid #c8dfec;border-radius:16px;padding:22px;background:#f6fbff}.payu-plan-option form{margin-top:18px}.payu-plan-option button{width:100%}.payu-price{font-size:1.8rem;color:#145c82}.payu-plan-option small{display:block}
@media(max-width:900px){.payu-plan-grid{grid-template-columns:1fr}}@media(max-width:480px){.payment-details{grid-template-columns:1fr;gap:5px}.payment-details dd{margin-bottom:10px}}

.payu-plan-option.selected{border:2px solid #145c82;background:#edf8ff}

/* Role workspaces: a single navigation rail, strong colour and clear contrast. */
:root { --blue:#3042c7; --indigo:#2c2785; --cyan:#007d91; --pink:#d43864; --ink:#182443; --muted:#52617c; --line:#d5def0; --bg:#edf1fb; --radius:16px; --shadow:0 7px 24px #253f7710; }
:focus-visible { outline:3px solid #f6ac22; outline-offset:3px; }
.skip-link { position:fixed; top:-70px; left:20px; z-index:100; padding:12px 20px; background:#fff; border:2px solid var(--blue); }
.skip-link:focus { top:12px; }
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.ui-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.brand-row { display:flex; align-items:center; gap:12px; }
.brand-mark { background:#3042c7; box-shadow:0 4px 12px #3042c72b; }
.brand-mark .ui-icon { width:27px; height:27px; stroke-width:1.5; }
.topbar { min-height:76px; padding:14px 3%; border-bottom:2px solid #d6def2; }
.workspace-topbar { height:76px; min-height:76px; position:sticky; top:0; z-index:40; padding:12px 26px; box-shadow:0 2px 12px #19234a0c; flex-wrap:nowrap; }
.account-tools { display:flex; align-items:center; gap:12px; min-width:0; }
.account-tools form { margin:0; }
.account-avatar { width:39px; height:39px; border-radius:12px; display:grid; place-items:center; font-weight:800; color:#fff; background:#007d91; flex-shrink:0; }
.account-identity { display:flex; flex-direction:column; line-height:1.35; max-width:210px; }
.account-identity strong { font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-identity span { font-size:11px; font-weight:700; color:#52617c; }
.signout-button { color:#3042c7; background:#eef0ff; border-color:#d2d8fc; }
.icon-button { padding:8px; background:#edf0ff; color:#3042c7; min-width:40px; min-height:40px; }
.workspace-toggle { display:none; }
.workspace-body .app-shell { display:grid; grid-template-columns:255px minmax(0,1fr); min-height:calc(100dvh - 76px); }
.workspace-body .sidebar { position:sticky; top:76px; height:calc(100dvh - 76px); overflow-y:auto; background:linear-gradient(180deg,#2e2a85 0%,#25256f 100%); border:0; padding:24px 14px 18px; color:#fff; scrollbar-width:thin; scrollbar-color:#6e6bb6 #2e2a85; }
.workspace-title { display:flex; padding:0 12px 20px; border-bottom:1px solid #ffffff29; margin-bottom:15px; }
.workspace-title .eyebrow { color:#adf3ff; font-size:9px; letter-spacing:1.2px; }
.workspace-title strong { color:#fff; font-size:16px; }
.role-badge { background:#ffffff1c; color:#fff; border:1px solid #ffffff35; font-size:11px; }
.sidebar nav { display:block; overflow:visible; }
.nav-group { margin:0 0 18px; }
.nav-group h2 { margin:0 12px 8px; font-size:10px; font-weight:700; line-height:1.5; color:#c3c3f1; letter-spacing:1.3px; text-transform:uppercase; }
.sidebar nav a { color:#f2f3ff; font-size:12px; gap:11px; padding:10px 12px; min-height:42px; white-space:normal; border-radius:9px; margin:3px 0; }
.sidebar nav a .ui-icon { color:#b8e5ff; width:18px; height:18px; }
.sidebar nav a:hover { color:#fff; background:#ffffff19; }
.sidebar nav a.active { background:#007d91; color:#fff; box-shadow:0 4px 16px #14134a20; }
.sidebar nav a.active .ui-icon { color:#fff; }
.active-indicator { width:6px; height:6px; background:#baf4ff; border-radius:50%; margin-left:auto; flex-shrink:0; }
.sidebar-note { display:flex; align-items:center; gap:8px; background:#ffffff12; padding:12px; border:1px solid #ffffff20; font-size:10px; font-weight:500; color:#d5e6ff; margin-top:16px; border-radius:9px; }
.note-dot { width:6px; height:6px; border-radius:50%; background:#48dcc8; flex-shrink:0; }
.workspace-body .app-shell main { padding:28px 30px 100px; }
.page-heading { margin-bottom:18px; align-items:center; }
h1 { font-size:30px; }
.page-heading h1 { margin:6px 0 8px; }
.page-heading p { font-size:13px; max-width:720px; margin:0; }
.today-badge { background:#fff; color:#273365; border:1px solid #c7d2eb; font-size:12px; }
.welcome-banner { background:linear-gradient(110deg,#3042c7 0%,#37379b 65%,#007d91 100%); padding:22px 28px; margin:20px 0; min-height:130px; border-radius:16px; }
.welcome-banner h2 { font-size:25px; margin:9px 0; max-width:700px; }
.welcome-banner .eyebrow { color:#b5f4ff; font-size:10px; }
.welcome-banner p { color:#e9efff; font-size:12px; }
.welcome-icon { width:74px; height:74px; fill:none; stroke:#b1f4ff; stroke-width:1.1; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; margin-left:20px; opacity:.85; }
.stats-grid { gap:16px; margin:20px 0; }
.stat-card { padding:19px 22px; border:0; border-radius:14px; box-shadow:0 5px 15px #223b740d; color:#fff; }
.stat-card:nth-child(4n+1) { background:#3042c7; border-top:0; }
.stat-card:nth-child(4n+2) { background:#007d91; border-top:0; }
.stat-card:nth-child(4n+3) { background:#6c36a7; border-top:0; }
.stat-card:nth-child(4n+4) { background:#b43154; border-top:0; }
.stat-card>span:first-child { color:#fff; font-size:12px; }
.stat-card strong { color:#fff; font-size:31px; margin-top:5px; }
.stat-decor { color:#ffffff35; }
.card { border:1px solid #d5def0; box-shadow:var(--shadow); }
.table-card { padding:0; overflow:hidden; }
.table-heading { background:#e1e8fc; padding:17px 22px; border-bottom:1px solid #c7d4f2; margin:0; }
.table-heading h2 { font-size:16px; color:#253373; }
.count-badge { background:#3042c7; color:#fff; font-size:10px; border:0; }
thead { background:#f1f4fd; }
th { color:#38456b; font-size:10px; letter-spacing:.6px; text-transform:uppercase; padding:14px 18px; }
td { padding:15px 18px; font-size:12px; }
tbody tr:nth-child(even) { background:#f8faff; }
tbody tr:hover { background:#edf5ff; }
.table-link { display:inline-flex; padding:5px 10px; border-radius:6px; color:#2639af; background:#eaf0ff; font-weight:700; }
.form-card>summary { background:#eaf0ff; border-radius:12px; color:#283986; padding:16px 20px; }
.form-card[open]>summary { margin-bottom:18px; }
.status-pill { display:inline-flex; align-items:center; border-radius:6px; padding:4px 9px; font-size:11px; font-weight:700; white-space:nowrap; background:#e3e8ff; color:#3042a0; }
.status-pending { background:#fff1ce; color:#805b00; }
.status-confirmed,.status-approved,.status-paid { background:#d5f3e9; color:#06634b; }
.status-in_treatment { background:#eee2fb; color:#633297; }
.status-completed { background:#dceaff; color:#244a91; }
.status-cancelled,.status-rejected,.status-failed { background:#ffe0e8; color:#9c2647; }
.status-suspended { background:#eee8f1; color:#63426c; }
.secondary { background:#e7ecff; color:#293dae; border-color:#cad4fc; }
button,.button { border-radius:9px; }
button:hover,.button:hover { background:#2838a8; }
.alert { border-radius:11px; }
.alert.info { background:#dceffa; border:1px solid #a7d1ea; color:#15516c; }
.workspace-footer { margin-left:255px; padding:16px 30px; font-size:11px; border-top:1px solid #d5def0; }
.sidebar-backdrop { display:none; }
.hero { background:linear-gradient(115deg,#2e2a85,#3042c7 60%,#007d91); border-radius:22px; box-shadow:0 12px 35px #26368628; }
.feature .icon-box { color:#fff; }
.icon-box.blue { background:#3042c7; }
.icon-box.cyan { background:#007d91; }
.icon-box.pink { background:#b43154; }
.registration-aside,.auth-intro { background:linear-gradient(140deg,#2e2a85,#3042c7); color:#fff; border-radius:20px; }
.auth-intro { padding:40px; }
.auth-intro .eyebrow { color:#aaf4ff; }
.auth-intro p { color:#e2e9ff; }
.chat-fab { background:#007d91; }
.bot-fab { background:#63329c; }
.panel-header { background:#2e2a85; }
.guide-hero { background:linear-gradient(110deg,#3042c7,#007d91); color:#fff; padding:28px; border-radius:16px; margin-bottom:24px; }
.guide-hero .eyebrow { color:#b4f2ff; }
.guide-hero h2 { margin:10px 0; }
.guide-hero p { color:#edf8ff; max-width:800px; margin-bottom:0; }
.guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.guide-card { padding:24px; margin:0; }
.guide-card h2 { font-size:18px; }
.guide-card li { margin:12px 0; color:#364768; font-size:13px; }
.guide-card ol,.guide-card ul { padding-left:21px; }
.guide-menu-list { list-style:none; padding:0!important; }
.guide-menu-list a { display:flex; justify-content:space-between; gap:12px; font-weight:650; padding:8px 10px; background:#edf2ff; border-radius:8px; }
.workflow-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:24px; }
.workflow-step { padding:16px; border-radius:12px; border-left:4px solid #007d91; background:#e8f4f9; font-size:12px; }
.workflow-step strong { display:block; color:#253d71; margin-bottom:6px; }
@media(max-width:1100px) {
 .workspace-body .app-shell { grid-template-columns:235px minmax(0,1fr); }
 .workspace-body .app-shell main { padding:24px 22px 100px; }
 .workspace-footer { margin-left:235px; }
 .welcome-banner h2 { font-size:23px; }
}
@media(max-width:850px) {
 .workspace-body .app-shell { display:block; }
 .workspace-toggle { display:inline-flex; }
 .workspace-topbar { padding:12px 16px; gap:10px; height:72px; min-height:72px; }
 .workspace-topbar .brand { font-size:21px; }
 .workspace-topbar .brand-mark { width:33px; height:33px; }
 .workspace-body .sidebar { position:fixed; top:72px; left:0; width:270px; height:calc(100dvh - 72px); z-index:50; padding:24px 14px 18px; transform:translateX(-100%); visibility:hidden; transition:transform .2s,visibility .2s; }
 .workspace-body.workspace-menu-open .sidebar { transform:translateX(0); visibility:visible; }
 .sidebar-backdrop:not([hidden]) { display:block; position:fixed; inset:72px 0 0; z-index:45; background:#14204488; width:100%; height:calc(100dvh - 72px); border:0; border-radius:0; padding:0; }
 .sidebar-backdrop:hover { background:#14204488; transform:none; }
 .workspace-menu-open { overflow:hidden; }
 .workspace-body .workspace-title { display:flex; }
 .workspace-body .sidebar nav { display:block; }
 .workspace-body .sidebar-note { display:flex; }
 .workspace-footer { margin-left:0; }
 .guide-grid { grid-template-columns:1fr; }
 .workflow-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .welcome-banner { padding:22px; }
 .welcome-icon { width:54px; height:54px; }
 .account-identity { max-width:150px; }
}
@media(max-width:520px) {
 .workspace-topbar { padding:10px 12px; }
 .brand-row { gap:8px; }
 .workspace-topbar .brand { font-size:18px; letter-spacing:-.7px; }
 .workspace-topbar .brand-mark { width:29px; height:29px; margin-right:7px; }
 .workspace-topbar .brand-mark .ui-icon { width:22px; height:22px; }
 .account-tools { gap:7px; }
 .account-identity { display:none; }
 .account-avatar { width:31px; height:31px; border-radius:9px; font-size:12px; }
 .signout-button { padding:8px; }
 .signout-button span { display:none; }
 .workspace-body .app-shell main { padding:22px 16px 135px; }
 h1 { font-size:26px; }
 .today-badge { display:none; }
 .welcome-banner { min-height:120px; padding:20px; }
 .welcome-banner h2 { font-size:21px; }
 .welcome-icon { display:none; }
 .stat-card { padding:16px; }
 .stat-card strong { font-size:27px; }
 .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .guide-card { padding:20px; }
 .guide-hero { padding:22px; }
 .workspace-footer { padding:18px 16px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { .workspace-topbar,.workspace-body .sidebar,.sidebar-backdrop,.skip-link { display:none!important; } .workspace-body .app-shell { display:block; } .workspace-footer { margin-left:0; } }
.guide-grid > div > .guide-card + .guide-card { margin-top:20px; }
.specialty-section { padding:30px 0 8px; }
.specialty-section h2 { margin:8px 0 18px; }
.specialty-section p { color:var(--muted); font-size:13px; margin-top:16px; }
.specialty-links { display:flex; flex-wrap:wrap; gap:12px; }
.specialty-links a { display:inline-flex; padding:11px 16px; background:#fff; border:1px solid #c9d3ef; border-radius:10px; color:#293dae; font-weight:650; box-shadow:0 3px 10px #283b7110; }
.specialty-links a:hover { background:#3042c7; color:#fff; }
