:root {
  --navy: #0a1a2f;
  --blue: #147bff;
  --cyan: #00c6d5;
  --teal: #33e0b3;
  --ink: #14283e;
  --muted: #748294;
  --line: #e8edf3;
  --canvas: #f5f7fb;
  --radius: 16px;
  font-family: Montserrat, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #147bff;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--navy);
  color: #a2b1c4;
  padding: 32px 20px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  padding: 0 9px 29px;
}
.brand svg {
  width: 36px;
  height: 42px;
  color: var(--cyan);
  stroke-width: 1.5;
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-name span {
  color: #3999ff;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 4px;
  color: #8ea4bd;
  margin-top: 1px;
}
.practice-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #26384c;
  background: #12243a;
  border-radius: 10px;
  padding: 12px 10px;
  margin-bottom: 30px;
}
.practice-icon {
  display: grid;
  place-items: center;
  background: #213b53;
  border-radius: 8px;
  width: 33px;
  height: 33px;
  color: #5ddfd2;
}
.practice-card strong {
  font-size: 11px;
  color: #e8eff7;
  display: block;
}
.practice-card small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.practice-card .chevron {
  margin-left: auto;
  width: 14px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  padding: 0 13px;
  margin: 0 0 10px;
  color: #60768f;
  font-weight: 600;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a:hover {
  background: #152c44;
  color: white;
}
.nav a.active {
  color: #fff;
  background: #147bff;
  box-shadow: 0 5px 16px #0002;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.nav .count {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  background: #ffffff20;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-note {
  border: 1px solid #253b50;
  background: linear-gradient(125deg, #142d42, #10243a);
  border-radius: 12px;
  padding: 17px 14px;
  margin-bottom: 16px;
}
.sidebar-note .spark {
  color: #36d9bd;
}
.sidebar-note strong {
  display: block;
  font-size: 12px;
  color: #e3edf8;
  margin: 10px 0 6px;
}
.sidebar-note p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
  color: #8aa3bb;
}
.sidebar-note a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #75dccc;
  font-size: 10px;
  margin-top: 13px;
}
.sidebar-note a svg {
  width: 13px;
}
.sidebar-user {
  display: flex;
  gap: 10px;
  padding: 12px 6px 0;
  border-top: 1px solid #213348;
  align-items: center;
}
.sidebar-user strong {
  display: block;
  color: #e3edf8;
  font-size: 11px;
}
.sidebar-user small {
  font-size: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  flex-shrink: 0;
  background: #e5f0ff;
  color: #2874bd;
}
.owner {
  background: #dbf3ee;
  color: #207d71;
}
.workspace {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 13px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.breadcrumb span {
  color: #c3cbd5;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-label {
  font-size: 10px;
  color: #768292;
  white-space: nowrap;
}
.demo-label span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1fb994;
  margin-right: 6px;
}
.location-select select {
  font-size: 11px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 9px 26px 9px 10px;
  color: #33475c;
}
.topbar-divider {
  width: 1px;
  height: 25px;
  background: var(--line);
}
main {
  padding: 30px 36px 20px;
  max-width: 1660px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: #72909e;
  margin-bottom: 8px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 0 0 8px;
}
h1 .wave {
  font-size: 22px;
  margin-left: 5px;
}
p.subtitle {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: #41556a;
  white-space: nowrap;
}
.button svg {
  width: 15px;
  height: 15px;
}
.button:hover {
  background: #f1f6fc;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 8px #147bff16;
}
.button.primary:hover {
  background: #096bdf;
}
.button.subtle {
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: #287be0;
  font-size: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 19px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c7c8e;
  font-size: 10px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #eaf3ff;
  color: #2c82ed;
}
.stat:nth-child(2) .stat-icon {
  background: #e8f8f3;
  color: #18a787;
}
.stat:nth-child(3) .stat-icon {
  background: #f0edff;
  color: #8b6ce0;
}
.stat:nth-child(4) .stat-icon {
  background: #fff4e8;
  color: #d99b49;
}
.stat-icon svg {
  width: 17px;
  height: 17px;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 10px 0 8px;
}
.stat-value strong {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
}
.stat-value span {
  font-size: 10px;
  color: #91a0af;
}
.stat-foot {
  font-size: 9px;
  color: #8c98a7;
}
.stat-foot b {
  font-weight: 500;
  color: #1a9e80;
  margin-right: 4px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 21px 17px;
}
.panel-title {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.panel-title .pill {
  background: #eff4fa;
  color: #7c8c9e;
  border-radius: 5px;
  font-size: 9px;
  padding: 3px 6px;
  font-weight: 500;
}
.panel-description {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.day-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #64788b;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 27px;
  height: 27px;
  color: #6f8297;
}
.icon-button svg {
  width: 14px;
  height: 14px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  padding: 0 20px 18px;
}
.day-button {
  border: 0;
  background: white;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px 5px;
  font-size: 9px;
  color: #8d99a6;
}
.day-button strong {
  font-size: 15px;
  font-weight: 600;
  color: #41566e;
}
.day-button.active {
  background: #147bff;
  color: #dcecff;
  box-shadow: 0 4px 9px #147bff22;
}
.day-button.active strong {
  color: white;
}
.day-button:after {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bfd5f1;
}
.day-button.active:after {
  background: white;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #91a0af;
  font-weight: 500;
  background: #fafbfd;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  font-size: 10px;
  border-bottom: 1px solid #f0f3f7;
  color: #597086;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person strong {
  display: block;
  color: #344a61;
  font-size: 11px;
  font-weight: 600;
}
.person small {
  display: block;
  color: #9aa6b2;
  font-size: 9px;
  margin-top: 4px;
}
.person .avatar {
  width: 31px;
  height: 31px;
}
.avatar.lilac {
  background: #efeafa;
  color: #9276bc;
}
.avatar.peach {
  background: #fdf0e5;
  color: #bc9568;
}
.avatar.mint {
  background: #e4f6ef;
  color: #54a28b;
}
.avatar.rose {
  background: #f8eaf0;
  color: #c07897;
}
.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500;
  background: #edf4ff;
  color: #4b86d4;
}
.badge.green {
  background: #e7f7f0;
  color: #2c9c7a;
}
.badge.amber {
  background: #fff5e7;
  color: #b68a41;
}
.badge.gray {
  background: #f0f3f7;
  color: #8190a0;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  font-size: 9px;
  color: #8d9ba9;
}
.right-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.focus-card {
  background: linear-gradient(115deg, #e6f8f7, #f0fbf8);
  border: 1px solid #d5efeb;
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.focus-card:after {
  content: '+';
  font-size: 150px;
  line-height: 1;
  color: #c9eeea;
  position: absolute;
  right: -16px;
  bottom: -29px;
  font-weight: 200;
  transform: rotate(-15deg);
}
.focus-card .eyebrow {
  color: #459b93;
  font-size: 8px;
  letter-spacing: 1.2px;
}
.focus-card h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 12px 0 9px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}
.focus-card p {
  font-size: 10px;
  line-height: 1.9;
  color: #69918e;
  max-width: 205px;
  position: relative;
  z-index: 1;
}
.focus-card a {
  color: #198f84;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.focus-card a svg {
  width: 14px;
}
.tasks-list {
  padding: 0 20px 7px;
}
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eff2f6;
}
.task-item:last-child {
  border: 0;
}
.task-item input {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 2px 0 0;
  cursor: pointer;
}
.task-body {
  flex: 1;
}
.task-body strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
}
.task-body small {
  font-size: 9px;
  color: #9aa7b4;
  display: block;
  margin-top: 6px;
}
.task-item.done strong {
  text-decoration: line-through;
  color: #9ca7b2;
}
.priority-dot {
  width: 5px;
  height: 5px;
  background: #e8ad5b;
  border-radius: 50%;
  margin-top: 6px;
}
.priority-dot.normal {
  background: #7da9dd;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.team-list {
  display: grid;
  gap: 17px;
  padding: 1px 21px 22px;
}
.team-person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.team-person .person-details {
  flex: 1;
}
.team-person strong {
  font-size: 10px;
  display: block;
  font-weight: 600;
}
.team-person small {
  font-size: 9px;
  color: #8b99aa;
  display: block;
  margin-top: 4px;
}
.team-person .badge {
  font-size: 8px;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}
.quick-action {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 11px;
  background: #fff;
}
.quick-action:hover {
  background: #f6faff;
  border-color: #cbdffb;
}
.quick-action svg {
  color: #5d9ae4;
  width: 19px;
  height: 19px;
}
.quick-action strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
}
.quick-action small {
  font-size: 8px;
  color: #97a4b3;
  display: block;
  margin-top: 4px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 36px;
  font-size: 9px;
  color: #98a6b4;
}
footer span {
  font-size: 8px;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px 19px;
  gap: 14px;
}
.search {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  min-width: 230px;
  color: var(--ink);
  background: #fafbfd;
}
.empty-state {
  padding: 55px 25px;
  text-align: center;
}
.empty-state svg {
  color: #7aa8df;
  width: 34px;
  height: 34px;
}
.empty-state h2 {
  font-size: 18px;
  font-weight: 600;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 460px;
  margin: 10px auto 20px;
}
.module-tag {
  display: inline-flex;
  margin-top: 8px;
  background: #f0f5fc;
  padding: 6px 10px;
  border-radius: 5px;
  color: #6384ae;
  font-size: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-card {
  padding: 24px;
}
.settings-card h2 {
  font-size: 15px;
  margin: 0 0 17px;
}
.settings-card dl {
  font-size: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
}
.settings-card dt {
  color: var(--muted);
}
.settings-card dd {
  margin: 0;
}
.notice {
  background: #edf5ff;
  color: #4a75a6;
  border: 1px solid #d9e8fb;
  padding: 14px 18px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.mobile-menu {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  background: #fff;
  color: var(--blue);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 470px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px #001e4040;
}
dialog::backdrop {
  background: #061a36a0;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
dialog h2 {
  font-size: 20px;
  margin: 0;
}
dialog p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 23px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
form label {
  font-size: 11px;
  color: #53697f;
  display: grid;
  gap: 7px;
}
form input,
form select {
  width: 100%;
  border: 1px solid #dce4ed;
  border-radius: 7px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 25px #001e4030;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
#toast.visible {
  opacity: 1;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.report-grid .panel {
  padding: 25px;
}
.report-grid h2 {
  font-size: 13px;
}
.report-grid strong {
  font-size: 33px;
  font-weight: 600;
  display: block;
  margin: 20px 0;
}
.report-grid p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.date-caption {
  font-size: 10px;
  color: var(--muted);
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #31475e var(--navy);
}
.sidebar > * {
  flex-shrink: 0;
}
.panel,
.dashboard-grid > div,
.lower-grid > * {
  min-width: 0;
}
@media (max-height: 900px) {
  .sidebar-note {
    display: none;
  }
  .sidebar {
    padding-top: 22px;
  }
  .brand {
    padding-bottom: 22px;
  }
  .practice-card {
    margin-bottom: 22px;
  }
  .sidebar-bottom {
    padding-top: 16px;
  }
  .nav a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 40px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .focus-card {
    padding: 26px;
  }
  .task-item {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 26px 24px 15px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 15px;
  }
  .topbar-right {
    gap: 12px;
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
  .lower-grid {
    gap: 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .actions {
    padding-top: 10px;
  }
  .button {
    padding: 10px 11px;
  }
  .brand-name {
    font-size: 22px;
  }
  .panel-header {
    padding: 18px 17px;
  }
  .person {
    gap: 7px;
  }
}
@media (max-width: 1020px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-stack {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-note {
    display: none;
  }
  .topbar .demo-label {
    display: none;
  }
  .stat-value strong {
    font-size: 25px;
  }
  .lower-grid {
    margin-top: 16px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading .actions {
    padding-top: 0;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 240px;
    box-shadow: 20px 0 60px #001e4020;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid;
    width: 32px;
    height: 32px;
  }
  .topbar {
    height: 67px;
    padding: 0 18px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
    gap: 8px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-divider,
  .topbar .owner {
    display: none;
  }
  .location-select select {
    max-width: 137px;
    font-size: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-value strong {
    font-size: 27px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .stat-value {
    margin: 6px 0;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
  }
  main {
    padding: 23px 16px 12px;
  }
  .page-heading {
    gap: 13px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading .actions {
    width: 100%;
  }
  .page-heading .actions .button {
    flex: 1;
  }
  .right-stack,
  .lower-grid,
  .settings-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .right-stack {
    gap: 16px;
  }
  .focus-card {
    padding: 20px;
  }
  .focus-card h2 {
    margin: 8px 0;
  }
  .focus-card p {
    max-width: 85%;
  }
  .lower-grid {
    gap: 16px;
  }
  footer {
    padding: 20px 16px;
    font-size: 9px;
    flex-direction: column;
    gap: 7px;
  }
  #toast {
    left: 50%;
    width: max-content;
  }
  .day-controls {
    gap: 5px;
  }
  .panel-header {
    padding: 17px 15px;
  }
  .week-strip {
    padding-left: 12px;
    padding-right: 12px;
    gap: 3px;
  }
  .day-button {
    padding: 9px 4px;
  }
  .list-toolbar {
    padding: 0 15px 16px;
  }
  .search {
    min-width: 0;
    width: 100%;
  }
  .quick-action {
    padding: 15px 11px;
  }
  .settings-card dl {
    font-size: 11px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .date-caption {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.preview-switch {
  font-size: 10px;
  padding: 8px 10px;
  font-weight: 500;
}
.patient-view .sidebar,
.patient-view .mobile-menu,
.patient-view .location-select,
.patient-view .topbar-divider,
.patient-view .topbar .owner {
  display: none;
}
.patient-view .workspace {
  margin-left: 0;
}
.patient-view main {
  max-width: 1160px;
  padding-top: 22px;
}
.patient-view .topbar {
  height: 68px;
}
.patient-view footer {
  max-width: 1160px;
  width: 100%;
  margin: auto;
}
.portal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-brand svg {
  width: 32px;
  height: 36px;
  color: #00adbe;
}
.portal-brand strong {
  font-size: 25px;
  letter-spacing: -1px;
}
.portal-brand strong span {
  color: var(--blue);
}
.portal-brand small {
  font-size: 8px;
  letter-spacing: 1.7px;
  border-left: 1px solid #d6e0e9;
  margin-left: 8px;
  padding-left: 17px;
  color: #8295a8;
}
.portal-toolbar nav {
  display: flex;
  gap: 25px;
  font-size: 12px;
  color: #8291a0;
}
.portal-toolbar nav a {
  padding: 10px 0;
}
.portal-toolbar nav a[aria-current] {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  font-weight: 600;
}
.portal-demo {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.portal-demo label {
  font-size: 10px;
  flex-shrink: 0;
  display: grid;
  gap: 5px;
  color: #6382a6;
}
.portal-demo select,
.filter-inputs select {
  border: 1px solid #d8e4f0;
  background: white;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ink);
}
.discovery-hero {
  border-radius: 18px;
  padding: 38px 40px;
  background: linear-gradient(110deg, #e4f1ff, #e4f9f3);
  border: 1px solid #d9eaf2;
  position: relative;
  overflow: hidden;
}
.discovery-hero:after {
  content: '+';
  position: absolute;
  right: 40px;
  bottom: -65px;
  font-size: 270px;
  color: #bfe9e1;
  line-height: 1;
  transform: rotate(-14deg);
  font-weight: 200;
  pointer-events: none;
}
.discovery-hero h1 {
  font-size: 37px;
  line-height: 1.35;
  letter-spacing: -1.3px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.discovery-hero h1 span {
  color: #258caa;
}
.discovery-hero p {
  font-size: 12px;
  color: #698298;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}
.discovery-highlights {
  display: flex;
  gap: 26px;
  margin-top: 25px;
  position: relative;
  z-index: 1;
}
.discovery-highlights span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #51858d;
}
.discovery-highlights svg {
  width: 16px;
  height: 16px;
}
.doctor-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 31px 0 21px;
}
.doctor-filters h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 7px;
}
.doctor-filters p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.filter-inputs {
  display: flex;
  gap: 12px;
}
.filter-inputs label {
  display: grid;
  gap: 7px;
  font-size: 10px;
  color: #7b8da0;
}
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.doctor-card {
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.doctor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.doctor-card .avatar {
  height: 57px;
  width: 57px;
  border-radius: 16px;
  font-size: 17px;
}
.doctor-card-top .badge {
  font-size: 8px;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}
.doctor-card h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 22px 0 7px;
  font-weight: 600;
}
.doctor-specialty {
  font-size: 11px;
  color: #3888c9;
  margin: 0 0 13px;
}
.doctor-clinic {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8493a2;
  margin: 0;
}
.doctor-clinic svg {
  width: 13px;
  height: 13px;
}
.doctor-bio {
  font-size: 11px;
  line-height: 1.9;
  color: #7c8d9f;
  margin: 19px 0 20px;
  flex: 1;
}
.doctor-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}
.booking-hint {
  font-size: 10px;
  color: #8396a7;
  line-height: 1.7;
  min-height: 34px;
  margin: 17px 0 15px;
}
.doctor-card .button {
  width: 100%;
  font-size: 11px;
  padding: 11px;
}
.button:disabled {
  opacity: 0.65;
  background: #f0f3f7;
  color: #7a8999;
  border-color: #e2e8f0;
  box-shadow: none;
}
.portal-explainer {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin: 27px 0 5px;
  border: 1px solid #dfe9ef;
  padding: 24px;
  border-radius: 12px;
}
.portal-explainer > span {
  display: grid;
  place-items: center;
  background: #dff4ee;
  color: #2d9a80;
  padding: 10px;
  border-radius: 10px;
}
.portal-explainer h2 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 600;
}
.portal-explainer p {
  font-size: 11px;
  color: #7b8d9f;
  line-height: 1.9;
  margin: 0;
  max-width: 780px;
}
.visit-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.visit-card {
  padding: 25px;
}
.visit-card h2 {
  font-size: 16px;
  margin: 20px 0 10px;
}
.visit-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.visit-time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin-top: 20px;
}
.visit-time svg {
  width: 16px;
  color: var(--blue);
}
.visit-card small {
  display: block;
  font-size: 9px;
  color: #94a3b2;
  margin-top: 12px;
}
.policy-card {
  padding: 24px;
}
.policy-card h2 {
  font-size: 13px;
  margin: 0;
}
.policy-card .person p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.policy-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.policy-toggle strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.policy-toggle small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.policy-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.policy-footer {
  font-size: 10px;
  color: #8a9aaa;
  line-height: 1.8;
  margin: 20px 0 0;
}
.policy-footer strong {
  font-weight: 500;
}
.identity-choices {
  display: grid;
  gap: 12px;
}
.portal-form-note {
  font-size: 10px !important;
  color: #75938f !important;
  margin: 16px 0 0 !important;
}
@media (max-width: 1100px) {
  .topbar-right {
    gap: 10px;
  }
  .topbar .demo-label {
    display: none;
  }
  .doctor-card {
    padding: 19px;
  }
  .doctor-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .portal-brand small {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 67px;
    padding: 12px 16px;
    gap: 10px;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .patient-view .topbar {
    height: auto;
  }
  .patient-view .topbar .breadcrumb {
    display: none;
  }
  .portal-toolbar {
    gap: 10px;
    align-items: flex-start;
  }
  .portal-brand strong {
    font-size: 22px;
  }
  .portal-brand svg {
    width: 27px;
  }
  .portal-toolbar nav {
    gap: 15px;
    font-size: 11px;
  }
  .portal-demo {
    display: grid;
    gap: 15px;
    padding: 15px;
  }
  .portal-demo label {
    font-size: 10px;
  }
  .portal-demo select {
    width: 100%;
  }
  .discovery-hero {
    padding: 27px 23px;
  }
  .discovery-hero h1 {
    font-size: 28px;
    letter-spacing: -0.7px;
  }
  .discovery-hero p {
    font-size: 11px;
  }
  .discovery-highlights {
    flex-wrap: wrap;
    gap: 13px;
  }
  .discovery-hero:after {
    right: -30px;
  }
  .doctor-filters {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }
  .filter-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-inputs select {
    width: 100%;
    min-width: 0;
  }
  .doctor-grid,
  .visit-grid,
  .policy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .doctor-card {
    padding: 24px;
  }
  .doctor-card-top {
    flex-direction: row;
    align-items: center;
  }
  .doctor-bio {
    font-size: 12px;
  }
  .doctor-card-top .badge {
    font-size: 9px;
  }
  .booking-hint {
    min-height: 0;
  }
  .portal-explainer {
    padding: 19px;
  }
  .portal-explainer p {
    font-size: 11px;
  }
}
