:root {
  color-scheme: light;
  --dark: #0E1618;
  --dark-soft: #484944;
  --canvas: #DADBDF;
  --paper: #FFFFFF;
  --ink: #0E1618;
  --muted: #484944;
  --line: #DADBDF;
  --status: #484944;
  --status-wash: #DADBDF;
  --danger: #B42318;
  --shadow: 0 20px 60px rgb(14 22 24 / 10%);
  font-family: "Gendy", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.demo-notice { position: fixed; z-index: 10; inset: 0 0 auto; height: 30px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #DADBDF; color: #484944; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.demo-dot { width: 6px; height: 6px; border-radius: 50%; background: #0E1618; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); padding-top: 30px; }

.sidebar { position: sticky; top: 30px; height: calc(100vh - 30px); min-height: 680px; display: flex; flex-direction: column; padding: 26px 16px 16px; background: var(--dark); color: #DADBDF; }
.brand { display: flex; align-items: center; padding: 0 12px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: min(190px, 100%); max-height: 48px; object-fit: contain; object-position: left center; filter: invert(1); }

.clinic-switcher { display: flex; align-items: center; gap: 10px; margin: 30px 3px 30px; padding: 11px 10px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 12px; background: rgb(255 255 255 / 5%); }
.clinic-avatar, .profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: #DADBDF; color: #0E1618; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.clinic-label, .profile-label { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.clinic-label strong, .profile-label strong { overflow: hidden; color: #DADBDF; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.clinic-label small, .profile-label small { color: #DADBDF; font-size: 10px; }
.chevron { color: #DADBDF; font-size: 17px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-caption { padding: 0 13px 9px; color: #DADBDF; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.nav-caption-spaced { padding-top: 29px; }
.nav-item { min-height: 42px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #DADBDF; text-align: left; font-size: 12px; transition: background .18s, color .18s; }
.nav-item.active { background: #484944; color: #DADBDF; box-shadow: inset 2px 0 #DADBDF; }
.nav-item:not(:disabled):hover { background: #484944; color: white; }
.nav-item:disabled { color: #DADBDF; opacity: .72; }
.nav-icon { width: 18px; text-align: center; font-size: 18px; line-height: 1; }
.people-icon { font-size: 21px; transform: rotate(90deg); }
.nav-item small { margin-left: auto; color: #DADBDF; font-size: 8px; }
.nav-count { display: grid; place-items: center; min-width: 22px; height: 21px; margin-left: auto; padding: 0 5px; border-radius: 7px; background: rgb(255 255 255 / 12%); color: #DADBDF; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.help-card { position: relative; display: flex; flex-direction: column; gap: 7px; margin: 0 3px 18px; padding: 16px 13px 14px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 11px; background: #484944; }
.help-icon { color: #DADBDF; position: absolute; top: 13px; right: 13px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #484944; border-radius: 50%; color: #DADBDF; font-size: 11px; }
.help-card strong { color: #DADBDF; font-size: 11px; font-weight: 620; }
.help-card > span:not(.help-icon) { color: #DADBDF; font-size: 9px; }
.help-card button { display: flex; justify-content: space-between; margin-top: 3px; padding: 0; border: 0; background: transparent; color: #DADBDF; text-align: left; font-size: 10px; }
.help-card button:disabled { opacity: .75; }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 14px 6px 3px; border-top: 1px solid rgb(255 255 255 / 10%); }
.profile-avatar { width: 32px; height: 32px; border: 1px solid #484944; border-radius: 50%; background: #484944; color: #DADBDF; }
.logout-button { width: 29px !important; height: 29px !important; color: #DADBDF !important; font-size: 15px !important; transform: rotate(90deg); }

.workspace { min-width: 0; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255 255 255 / 90%); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #484944; font-size: 11px; }
.breadcrumbs strong { color: #484944; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.today-label { color: #484944; font-size: 10px; text-transform: capitalize; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: #484944; font-size: 17px; }
.icon-button:disabled { opacity: .58; }
.notification-button { border-radius: 50%; font-size: 18px; }
.content { width: min(1260px, 100%); margin: 0 auto; padding: 34px 42px 20px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.eyebrow { display: block; color: #484944; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
.page-heading h1, .login-art h1 { margin: 7px 0 5px; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: clamp(34px, 3.2vw, 43px); font-weight: 400; letter-spacing: -.055em; line-height: 1.12; }
.page-subtitle { margin: 0; color: #484944; font-size: 12px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 650; transition: transform .16s, background .16s, box-shadow .16s; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-primary { border-color: var(--dark); background: var(--dark); color: white; box-shadow: 0 4px 10px rgba(14 22 24 / 16%); }
.button-primary:hover { border-color: var(--dark-soft); background: var(--dark-soft); box-shadow: 0 7px 15px rgba(14 22 24 / 23%); }
.button-secondary { border-color: #DADBDF; background: #fff; color: var(--dark); }
.button-secondary:hover { border-color: #DADBDF; background: #DADBDF; }
.button-quiet { border-color: transparent; background: transparent; color: #484944; }
.button-danger { border-color: #DADBDF; background: #DADBDF; color: var(--danger); }
.button-danger:hover { background: #DADBDF; }
.plus { font-size: 18px; font-weight: 350; line-height: 0; }

.summary-grid { display: grid; grid-template-columns: minmax(175px, .78fr) minmax(195px, .86fr) minmax(260px, 1.45fr); gap: 13px; margin-bottom: 22px; }
.summary-card { min-height: 127px; padding: 16px 17px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.summary-primary { border-color: #DADBDF; background: linear-gradient(140deg, #DADBDF 0%, #DADBDF 100%); }
.summary-top { display: flex; align-items: center; justify-content: space-between; color: #484944; font-size: 8px; font-weight: 730; letter-spacing: .12em; }
.summary-symbol { color: var(--dark); font-size: 20px; font-weight: 400; line-height: 1; }
.summary-symbol-peach { color: #484944; }
.summary-value { margin-top: 11px; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: 29px; letter-spacing: -.05em; line-height: 1; }
.summary-card p { margin: 7px 0 0; color: #484944; font-size: 9px; }
.summary-note { min-height: 127px; display: flex; align-items: center; gap: 15px; padding: 20px 22px; border: 1px solid #DADBDF; border-radius: 12px; background: #DADBDF; }
.note-mark { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #DADBDF; color: #484944; font-size: 19px; }
.summary-note strong { color: #484944; font-size: 11px; font-weight: 690; }
.summary-note p { max-width: 320px; margin: 5px 0 0; color: #484944; font-size: 10px; line-height: 1.55; }

.patient-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 3px 16px rgba(14 22 24 / 3%); }
.list-heading-row { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px 14px; }
.list-heading-row h2 { margin: 0 0 5px; color: #0E1618; font-family: "Gendy", Arial, sans-serif; font-size: 18px; font-weight: 400; letter-spacing: -.025em; }
.list-heading-row p { margin: 0; color: #484944; font-size: 10px; }
.filter-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #484944; font-size: 11px; }
.filter-button:disabled { opacity: .62; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 21px 14px; }
.search-box { height: 36px; width: min(390px, 100%); display: flex; align-items: center; gap: 8px; padding: 0 9px 0 11px; border: 1px solid #484944; border-radius: 8px; background: #fff; color: #484944; }
.search-box:focus-within { border-color: #DADBDF; box-shadow: 0 0 0 3px rgba(14 22 24 / 8%); }
.search-icon { color: #484944; font-size: 19px; transform: rotate(-18deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #484944; }
kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; color: #484944; font-size: 8px; }
.rows-label { display: flex; align-items: center; gap: 7px; color: #484944; font-size: 10px; }
.rows-label select { min-height: 29px; padding: 0 22px 0 8px; border: 1px solid #484944; border-radius: 6px; background: white; color: #484944; font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #DADBDF; }
th { height: 35px; padding: 0 13px; color: #484944; font-size: 8px; font-weight: 730; letter-spacing: .105em; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 21px; }
th:last-child, td:last-child { padding-right: 17px; }
tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: #DADBDF; }
td { height: 65px; padding: 8px 13px; color: #484944; font-size: 10px; white-space: nowrap; }
.patient-identity { display: flex; align-items: center; gap: 10px; }
.patient-avatar { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #DADBDF; border-radius: 50%; background: #DADBDF; color: #0E1618; font-family: "Gendy", Arial, sans-serif; font-size: 12px; }
.patient-name { display: flex; flex-direction: column; gap: 4px; }
.patient-name strong { color: #484944; font-size: 10px; font-weight: 650; }
.patient-name small { color: #484944; font-size: 8px; }
.contact-cell { display: flex; flex-direction: column; gap: 4px; color: #484944; }
.contact-cell small { color: #484944; font-size: 9px; }
.date-muted { color: #484944; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; background: var(--status-wash); color: var(--status); font-size: 8px; font-weight: 650; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: #484944; content: ""; }
.row-menu { position: relative; display: flex; justify-content: flex-end; }
.row-action { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #484944; font-size: 17px; }
.row-action:hover { border-color: #DADBDF; background: #fff; }
.row-popover { position: absolute; z-index: 3; top: 31px; right: 0; width: 132px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.row-popover button { width: 100%; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: #484944; text-align: left; font-size: 10px; }
.row-popover button:hover { background: #DADBDF; }
.row-popover button:last-child { color: var(--danger); }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: #484944; text-align: center; }
.empty-mark { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 50%; color: #484944; font-size: 19px; }
.empty-state strong { color: #484944; font-size: 12px; }
.empty-state p { margin: 5px 0 15px; font-size: 10px; }
.table-footer { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; border-top: 1px solid var(--line); color: #484944; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 11px; color: #484944; }
.page-arrow { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #484944; font-size: 18px; line-height: 1; }
.page-arrow:disabled { color: #484944; background: #DADBDF; }
.content-footer { display: flex; justify-content: space-between; margin-top: 18px; color: #484944; font-size: 8px; }
.content-footer span:first-child { color: #484944; font-family: "Gendy", Arial, sans-serif; font-size: 11px; }

.patient-dialog { width: min(500px, calc(100% - 28px)); max-width: none; max-height: calc(100% - 30px); padding: 0; overflow: auto; border: 1px solid #DADBDF; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.patient-dialog::backdrop { background: rgba(14 22 24 / 46%); backdrop-filter: blur(3px); }
.patient-dialog form { padding: 25px 27px 22px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 5px 0 0; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: 27px; font-weight: 400; letter-spacing: -.045em; }
.close-button { width: 30px; height: 30px; border: 0; color: #484944; font-size: 22px; }
.dialog-intro { margin: 8px 0 20px; color: #484944; font-size: 10px; }
.patient-dialog label { display: block; margin: 14px 0 6px; color: #484944; font-size: 10px; font-weight: 650; }
.patient-dialog label span { color: var(--dark); }
.patient-dialog input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #484944; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); font-size: 11px; }
.patient-dialog input:focus { border-color: #DADBDF; box-shadow: 0 0 0 3px rgba(14 22 24 / 8%); }
.optional-fields { margin-top: 17px; border-top: 1px solid var(--line); }
.optional-fields summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 2px; color: #484944; cursor: pointer; font-size: 10px; font-weight: 650; list-style-position: inside; }
.optional-fields summary span { margin-left: auto; color: #484944; font-size: 9px; font-weight: 400; }
.optional-fields textarea { width: 100%; padding: 10px 11px; border: 1px solid #484944; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); font: inherit; font-size: 11px; resize: vertical; }
.optional-fields textarea:focus { border-color: #DADBDF; box-shadow: 0 0 0 3px rgba(14 22 24 / 8%); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 10px; }
.dialog-actions { display: flex; align-items: center; gap: 7px; margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--line); }
.dialog-actions .button { min-height: 35px; padding: 0 11px; font-size: 10px; }
.dialog-spacer { flex: 1; }
.toast { position: fixed; z-index: 20; right: 23px; bottom: 22px; padding: 12px 16px; border: 1px solid #DADBDF; border-radius: 9px; background: #FFFFFF; color: #484944; box-shadow: 0 8px 26px rgb(14 22 24 / 12%); font-size: 11px; animation: toast-in .2s ease-out; }
.clinical-dialog { width: min(1000px, calc(100% - 28px)); max-width: none; max-height: min(820px, calc(100% - 30px)); padding: 0; overflow: auto; border: 1px solid #DADBDF; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.clinical-dialog::backdrop { background: rgba(14 22 24 / 52%); backdrop-filter: blur(3px); }
.clinical-panel { padding: 27px 30px 30px; }
.clinical-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.clinical-heading h2 { margin: 5px 0 4px; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: 29px; font-weight: 400; letter-spacing: -.04em; }
.clinical-heading p { margin: 0; color: #484944; font-size: 10px; }
.clinical-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 28px; padding-top: 22px; }
.section-heading,.record-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading h3,.record-form h3,.file-form h3 { margin: 0; color: #484944; font-size: 13px; font-weight: 650; }
.section-heading span { color: #484944; font-size: 9px; }
.record-list { display: grid; gap: 11px; margin-top: 14px; }
.record-card { padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.record-card h4 { margin: 0; color: var(--dark); font-size: 12px; font-weight: 650; }
.record-card time { flex: 0 0 auto; color: #484944; font-size: 9px; }
.record-card p { margin: 11px 0; color: #484944; font-size: 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-card small { color: #484944; font-size: 9px; }
.record-empty { margin: 16px 0; color: #484944; font-size: 10px; line-height: 1.6; }
.clinical-entry { display: grid; align-content: start; gap: 18px; }
.record-form,.file-form { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.record-form label,.file-form label { display: flex; justify-content: space-between; gap: 8px; margin: 13px 0 6px; color: #484944; font-size: 10px; font-weight: 650; }
.file-form label span { color: #484944; font-size: 9px; font-weight: 400; }
.record-form input,.record-form textarea,.file-form input,.file-form select { width: 100%; min-height: 37px; padding: 9px 10px; border: 1px solid #484944; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.record-form textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.record-form input:focus,.record-form textarea:focus,.file-form input:focus,.file-form select:focus { border-color: #DADBDF; box-shadow: 0 0 0 3px rgba(14 22 24 / 8%); }
.record-form .button-wide,.file-form .button-wide { min-height: 38px; margin-top: 12px; }
.file-guidance { margin: 10px 0 0; color: #484944; font-size: 9px; line-height: 1.55; }
.patient-files-list { display: grid; gap: 7px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.patient-files-list h4 { margin: 0; color: #484944; font-size: 10px; }
.patient-files-list p { margin: 0; color: #484944; font-size: 9px; }
.file-item { padding: 8px 9px; border-radius: 7px; background: #DADBDF; color: #0E1618; font-size: 9px; text-decoration: none; overflow-wrap: anywhere; }
.file-item:hover { background: #DADBDF; }
.agenda-view { display: grid; align-content: start; gap: 20px; }
.calendar-connection-card { display: flex; align-items: center; gap: 17px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calendar-connection-mark { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--dark); font-family: Arial, sans-serif; font-size: 22px; font-weight: 700; }
.calendar-connection-copy { min-width: 0; flex: 1; }
.calendar-connection-copy h2 { margin: 4px 0; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: 21px; font-weight: 400; letter-spacing: -.025em; }
.calendar-connection-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.calendar-connection-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.agenda-warning { margin: -9px 0 0; padding: 11px 13px; border-left: 3px solid var(--dark-soft); border-radius: 0 7px 7px 0; background: #fff; color: var(--muted); font-size: 10px; line-height: 1.5; }
.agenda-panel,.agenda-editor { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.agenda-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.agenda-toolbar h2,.agenda-editor h2 { margin: 5px 0 0; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.agenda-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.agenda-toolbar input,.appointment-fields input,.appointment-fields select,.calendar-picker-dialog select { min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 10px; }
.agenda-events { display: grid; }
.agenda-empty { display: grid; justify-items: center; gap: 7px; padding: 43px 16px; color: var(--muted); text-align: center; }
.agenda-empty strong { color: var(--ink); font-size: 12px; }
.agenda-empty p { margin: 0; font-size: 10px; }
.agenda-event { display: grid; grid-template-columns: 74px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid #DADBDF; }
.agenda-event:last-child { border-bottom: 0; }
.agenda-event-time { align-self: start; padding-top: 2px; color: var(--dark); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda-event-info { min-width: 0; display: grid; gap: 4px; }
.agenda-event-info strong { overflow-wrap: anywhere; color: var(--ink); font-size: 11px; font-weight: 650; }
.agenda-event-info span,.agenda-event-info small { color: var(--muted); font-size: 9px; }
.agenda-event-info a,.agenda-event-sync-retry { justify-self: start; padding: 0; border: 0; background: none; color: var(--dark-soft); font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }
.agenda-event-badge { align-self: start; padding: 5px 7px; border-radius: 6px; background: #DADBDF; color: var(--dark); font-size: 8px; white-space: nowrap; }
.agenda-event-cancel { align-self: start; padding: 4px 2px; border: 0; background: transparent; color: var(--muted); font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }
.agenda-editor .section-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.appointment-fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0 14px; }
.appointment-fields label,.calendar-picker-dialog label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 10px; font-weight: 650; }
.appointment-fields input,.appointment-fields select,.calendar-picker-dialog select { width: 100%; }
.meet-option { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--ink); font-size: 10px; }
.meet-option input { accent-color: var(--dark); }
.agenda-privacy-note { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.appointment-actions { display: flex; justify-content: end; gap: 8px; margin-top: 15px; }
.calendar-picker-dialog { width: min(450px,calc(100% - 24px)); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.calendar-picker-dialog::backdrop { background: rgb(14 22 24 / 52%); backdrop-filter: blur(3px); }
@media (max-width: 760px) { .calendar-connection-card { align-items: start; flex-wrap: wrap; padding: 15px; } .calendar-connection-actions { width: 100%; padding-left: 59px; } .agenda-toolbar { align-items: start; flex-direction: column; } .appointment-fields { grid-template-columns: 1fr; } .agenda-event { grid-template-columns: 57px minmax(0,1fr) auto; gap: 8px; } .agenda-event-badge { grid-column: 2; justify-self: start; } .agenda-event-cancel { grid-column: 3; grid-row: 2; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .95fr) minmax(380px, 1.05fr); padding-top: 30px; background: var(--paper); }
.login-art { position: relative; min-height: calc(100vh - 30px); display: flex; flex-direction: column; overflow: hidden; padding: 34px 7.5%; background: var(--dark); color: #DADBDF; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; }
.login-brand-logo { display: block; width: min(230px, 75%); height: auto; filter: invert(1); }
.login-art-copy { position: relative; z-index: 1; margin: auto 0; padding: 30px 0 50px; }
.eyebrow-light { color: #DADBDF; }
.login-art h1 { margin: 15px 0 14px; color: #DADBDF; font-size: clamp(43px, 5vw, 66px); line-height: 1.05; }
.login-art-copy p { max-width: 290px; color: #DADBDF; font-size: 12px; line-height: 1.75; }
.login-art-footer { position: relative; z-index: 1; color: #DADBDF; font-size: 10px; }
.login-orbit { position: absolute; border: 1px solid rgba(218 219 223 / 16%); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 520px; height: 520px; right: -220px; bottom: -115px; box-shadow: 0 0 0 45px rgba(218 219 223 / 3%), 0 0 0 90px rgba(218 219 223 / 3%); }
.orbit-two { width: 320px; height: 320px; right: 40px; top: 24%; border-color: rgba(218 219 223 / 10%); }
.login-panel { display: grid; place-items: center; padding: 42px 32px; }
.login-card { width: min(380px, 100%); }
.login-card h2 { margin: 9px 0 6px; color: var(--dark); font-family: "Gendy", Arial, sans-serif; font-size: 32px; font-weight: 400; letter-spacing: -.045em; }
.login-intro { margin: 0 0 26px; color: #484944; font-size: 11px; }
.login-card label { display: block; margin: 16px 0 7px; color: #484944; font-size: 10px; font-weight: 650; }
.login-card input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #484944; border-radius: 8px; outline: 0; background: white; font-size: 11px; }
.login-card input:focus { border-color: #DADBDF; box-shadow: 0 0 0 3px rgba(14 22 24 / 8%); }
.button-wide { width: 100%; min-height: 42px; margin-top: 20px; }
.login-footnote { margin: 15px 0 0; color: #484944; font-size: 9px; text-align: center; }
.text-button { display: block; margin: 14px auto 0; padding: 3px 5px; border: 0; background: transparent; color: #484944; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #0E1618; }
.form-success { margin: 13px 0 0; color: #22543D; font-size: 11px; line-height: 1.5; }
.login-card .form-error { margin: 12px 0 0; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .topbar { padding: 0 27px; }
  .content { padding-right: 27px; padding-left: 27px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-note { grid-column: span 2; min-height: 90px; }
}
@media (max-width: 760px) {
  .demo-notice { height: 27px; font-size: 9px; }
  .app-shell { display: block; padding-top: 27px; }
  .sidebar { position: sticky; z-index: 5; top: 27px; height: auto; min-height: 0; padding: 10px 12px 8px; }
  .brand { padding: 0 5px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { display: none; font-size: 17px; }
  .brand-name small { display: none; color: #DADBDF; font-size: 7px; }
  .clinic-switcher, .nav-caption, .sidebar-bottom { display: none; }
  .main-nav { position: absolute; top: 10px; right: 12px; display: flex; flex-direction: row; gap: 3px; }
  .nav-item { width: auto; min-height: 32px; gap: 7px; padding: 0 9px; }
  .nav-icon { font-size: 14px; }
  .nav-count { min-width: 17px; height: 17px; font-size: 8px; }
  .topbar { height: 48px; padding: 0 17px; }
  .today-label { font-size: 9px; }
  .notification-button { display: none; }
  .content { padding: 24px 16px 22px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 34px; }
  .page-subtitle { max-width: 210px; font-size: 10px; line-height: 1.5; }
  .page-heading > .button { flex: 0 0 auto; min-height: 36px; padding: 0 10px; font-size: 9px; }
  .summary-grid { gap: 8px; margin-bottom: 14px; }
  .summary-card { min-height: 104px; padding: 12px; }
  .summary-top { font-size: 7px; }
  .summary-value { margin-top: 10px; font-size: 25px; }
  .summary-card p { font-size: 8px; }
  .summary-note { grid-column: span 2; min-height: 78px; gap: 10px; padding: 11px 12px; }
  .summary-note p { font-size: 9px; }
  .note-mark { width: 29px; height: 29px; }
  .list-heading-row { padding: 16px 14px 12px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 0 14px 12px; }
  .search-box { width: 100%; }
  .rows-label { align-self: flex-end; }
  table { min-width: 680px; }
  th:first-child, td:first-child { padding-left: 14px; }
  .table-footer { padding: 0 14px; }
  .content-footer { gap: 10px; line-height: 1.45; }
  .content-footer span:last-child { text-align: right; }
  .login-view { min-height: 100vh; display: block; padding-top: 27px; }
  .login-art { min-height: 260px; padding: 20px 22px; }
  .login-art-copy { margin: auto 0; padding: 26px 0 15px; }
  .login-art h1 { font-size: 39px; }
  .login-art-copy p { max-width: 230px; margin-bottom: 0; color: #DADBDF; font-size: 10px; }
  .login-art-footer { display: none; }
  .orbit-one { width: 310px; height: 310px; right: -130px; bottom: -125px; }
  .orbit-two { width: 210px; height: 210px; right: 7px; top: 13%; }
  .login-panel { padding: 35px 24px 45px; }
  .clinical-panel { padding: 19px 16px; }
  .clinical-layout { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 420px) {
  .page-heading { flex-direction: column; }
  .page-heading > .button { align-self: flex-end; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .patient-dialog form { padding: 21px 18px 18px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-spacer { flex-basis: 100%; order: 0; }
  .dialog-actions .button-danger { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
