@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-regular-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-regular-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-semibold-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-semibold-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --ground: #f0ede4;
  --surface: #faf8f0;
  --ink: #1a1915;
  --muted: #686457;
  --line: #ded9cd;
  --blue: #2563eb;
  --red: #e8332b;
  --green: #087f5b;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
a {
  color: var(--blue);
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
::selection {
  background: var(--blue);
  color: white;
}
.mono,
.eyebrow {
  font-family: var(--mono);
}
.mono {
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.blue-text {
  color: var(--blue);
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -80px;
  z-index: 50;
  background: var(--surface);
  padding: 12px;
  border: var(--border);
}
.skip-link:focus {
  top: 12px;
}
.wordmark {
  display: flex;
  gap: 14px;
  align-items: center;
  font: 600 18px var(--mono);
  letter-spacing: 0.23em;
}
.brand-logo {
  display: block;
  flex: none;
  width: 72px;
  height: 88px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.wordmark-sub {
  font-size: 9px;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: 11px 18px;
  border: var(--border);
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.primary:hover {
  background: #174fce;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.primary span {
  font-size: 20px;
}
.primary.dark {
  background: var(--ink);
}
.primary.dark:hover {
  background: var(--blue);
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-button,
.small-button {
  height: 36px;
  border: var(--border);
  background: var(--surface);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}
.icon-button {
  width: 38px;
  font-size: 19px;
  flex: none;
}
.small-button {
  padding: 0 15px;
}
.icon-button:hover,
.small-button:hover {
  background: var(--ink);
  color: white;
}
.error-message {
  padding: 13px 16px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: #fff1ef;
  color: #a32019;
  font-size: 13px;
}
.field {
  margin-top: 22px;
}
.field label,
.list-tools label > span {
  display: block;
  margin-bottom: 8px;
  font: 600 10px var(--mono);
  letter-spacing: 0.1em;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 47px;
  border: var(--border);
  border-radius: 9px;
  padding: 0 13px;
  background: var(--surface);
  outline-offset: 2px;
}
input::placeholder {
  color: #827e73;
}
/* Login uses the same colors, heavy outlines and offset shadows as the proposal. */
.login-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  padding: 38px 48px 25px;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  min-height: 760px;
}
.intro-copy {
  margin: auto 0;
  max-width: 570px;
  padding: 60px 0 35px;
}
.intro-copy > .eyebrow {
  color: var(--red);
  margin-bottom: 19px;
}
.intro-copy h1 {
  font-size: clamp(46px, 5.1vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.intro-copy h1 span {
  color: var(--blue);
}
.intro-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 24px;
}
.intro-art {
  position: relative;
  width: 330px;
  max-width: 100%;
  height: 190px;
  margin-top: 39px;
}
.art-grid {
  position: absolute;
  left: 9px;
  top: 12px;
  width: 278px;
  height: 165px;
  border: var(--border);
  border-radius: 16px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 31px,
      var(--ink) 32px,
      transparent 33px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 45px,
      var(--ink) 46px,
      transparent 47px
    );
}
.art-blue {
  position: absolute;
  top: 0;
  left: 29px;
  transform: rotate(-5deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 248px;
  height: 144px;
  padding: 18px 22px;
  border: var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow);
  color: white;
  background: var(--blue);
}
.art-blue span {
  font: 10px var(--mono);
  letter-spacing: 0.1em;
}
.art-blue b {
  font-size: 30px;
  letter-spacing: -0.03em;
}
.art-red {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  font-size: 67px;
  line-height: 1;
  border: var(--border);
  border-radius: 50%;
  background: var(--red);
  color: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
}
.intro-footer {
  color: var(--muted);
  letter-spacing: 0.13em;
}
.login-form-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 60px 40px 85px;
}
.login-card {
  width: 100%;
  max-width: 410px;
  padding: 32px;
  background: var(--surface);
  border: var(--border);
  border-radius: 17px;
  box-shadow: 6px 6px 0 var(--ink);
}
.login-card > .eyebrow {
  color: var(--red);
  margin-bottom: 12px;
}
.login-card h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.login-card > .muted {
  font-size: 14px;
  margin-top: 9px;
}
.login-card .primary {
  width: 100%;
  margin-top: 26px;
}
.login-card .error-message {
  margin-top: 20px;
}
.login-note {
  display: flex;
  gap: 10px;
  border-top: 1.5px solid var(--line);
  padding-top: 21px;
  margin-top: 27px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.lock-icon {
  font-size: 18px;
  color: var(--blue);
}
.login-footer {
  position: absolute;
  bottom: 27px;
  color: var(--muted);
  letter-spacing: 0.15em;
}
#backToLogin {
  display: block;
  margin: 20px auto 0;
}
#code {
  font: 24px var(--mono);
  letter-spacing: 0.3em;
}
#qrWrap {
  margin-top: 24px;
  text-align: center;
}
#qrImg {
  width: 180px;
  height: 180px;
  max-width: 100%;
  background: white;
  border: var(--border);
  border-radius: 10px;
}
#qrWrap p {
  font-size: 12px;
  text-align: left;
  color: var(--muted);
  margin-top: 10px;
}
/* Persistent sidebar and dashboard shell. */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  border-right: var(--border);
  z-index: 10;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: var(--border);
  min-height: 86px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--blue);
  border: var(--border);
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.profile-copy {
  min-width: 0;
}
.profile-copy > b {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role {
  display: block;
  color: var(--red);
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.sidebar > .wordmark {
  padding: 14px 20px;
  border-bottom: var(--border);
  font-size: 16px;
}
.sidebar .brand-logo {
  width: 52px;
  height: 64px;
}
.sidebar .wordmark-sub {
  font-size: 8px;
  letter-spacing: 0;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 14px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 11px 15px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-number {
  font: 10px var(--mono);
  opacity: 0.65;
}
.nav-arrow {
  margin-left: auto;
  opacity: 0;
}
.nav-item:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.nav-item.active {
  border-color: var(--ink);
  background: var(--blue);
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-item.active .nav-arrow {
  opacity: 1;
}
.sidebar-clinic {
  margin: 30px 24px;
  color: var(--muted);
}
.sidebar-clinic .eyebrow {
  color: var(--ink);
}
.sidebar-clinic p {
  font-size: 12px;
  line-height: 1.65;
  margin: 10px 0 14px;
}
.sidebar-clinic > .mono {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.sidebar-bottom {
  padding: 14px;
  border-top: var(--border);
}
.workspace {
  margin-left: 248px;
  max-width: 1850px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 39px 48px 23px;
  outline: none;
}
.workspace:focus-visible {
  outline: none;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 23px;
  border-bottom: var(--border);
  margin-bottom: 23px;
}
.page-header .eyebrow {
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.page-header h1 {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.clock {
  flex: none;
  text-align: right;
  line-height: 1.9;
  letter-spacing: 0.07em;
  padding: 8px 14px;
  border: var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-transform: uppercase;
}
.clock strong {
  display: block;
  color: var(--blue);
  font-weight: 600;
}
.data-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.period h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.period > .mono {
  font-size: 9px;
  margin-top: 3px;
  display: block;
  letter-spacing: 0.12em;
}
.toolbar-actions,
.date-nav {
  display: flex;
  gap: 7px;
  align-items: center;
}
.refresh {
  margin-left: 5px;
}
.load-error {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.load-error .text-button {
  color: inherit;
  flex: none;
}
.loading-message {
  padding: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  padding: 20px 21px;
  border: var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat-card .eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.stat-value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit {
  font-size: 20px;
  opacity: 0.55;
  margin-left: 6px;
}
.stat-card p {
  font: 10px/1.55 var(--mono);
  color: var(--muted);
  margin-top: 12px;
}
.blue {
  background: var(--blue);
  color: white;
}
.red {
  background: var(--red);
  color: white;
}
.blue .eyebrow,
.red .eyebrow {
  color: #fff;
  opacity: 0.8;
}
.blue p,
.red p {
  color: #fff;
  opacity: 0.85;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.panel {
  background: var(--surface);
  border: var(--border);
  border-radius: 16px;
  padding: 21px 23px;
}
.panel.blue {
  background: var(--blue);
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.panel-heading .eyebrow {
  font-size: 10px;
}
.panel-heading > .mono {
  font-size: 9px;
}
.panel-footnote {
  margin-top: 14px;
  font: 9px/1.6 var(--mono);
  color: var(--muted);
}
.week-chart {
  height: 156px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  border-bottom: var(--border);
}
.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 0;
}
.chart-bar {
  width: 100%;
  max-width: 78px;
  min-height: 3px;
  border: var(--border);
  border-radius: 7px 7px 0 0;
  margin-bottom: -2px;
  background: var(--ground);
  position: relative;
}
.chart-bar.highlight {
  background: var(--blue);
}
.chart-count {
  font: 600 11px var(--mono);
  position: absolute;
  top: -23px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink);
}
.chart-label {
  position: absolute;
  bottom: -25px;
  font: 10px var(--mono);
  color: var(--muted);
}
.chart-label.today {
  color: var(--blue);
  font-weight: 600;
}
.chart-panel .panel-footnote {
  margin-top: 39px;
}
.service-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1.5px solid #ffffff40;
}
.service-row:last-child {
  border: 0;
}
.service-rank {
  font: 10px var(--mono);
  opacity: 0.65;
}
.service-name {
  font-size: 12px;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.service-count {
  font: 600 14px var(--mono);
}
.services-panel .panel-heading {
  margin-bottom: 9px;
}
.services-panel .panel-footnote {
  opacity: 0.65;
}
.appointments-panel {
  padding-bottom: 8px;
}
.appointments-panel .panel-heading {
  margin-bottom: 10px;
}
.appointment-row {
  display: grid;
  grid-template-columns: 96px minmax(120px, 1fr) minmax(130px, 1.25fr) 76px 25px;
  align-items: center;
  gap: 17px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  text-align: left;
}
.appointment-row:last-child {
  border-bottom: 0;
}
.appointment-row:hover .row-name,
.appointment-row:hover .row-arrow {
  color: var(--blue);
}
.appointment-row:hover {
  background: #ede9df;
}
.row-time {
  font: 11px var(--mono);
  color: var(--muted);
}
.row-time small {
  display: block;
  font-size: 9px;
  margin-bottom: 4px;
}
.row-name {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.row-service {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.source-badge {
  font: 600 9px var(--mono);
  letter-spacing: 0.07em;
  padding: 4px 9px;
  border: var(--border);
  border-radius: 99px;
  width: fit-content;
  white-space: nowrap;
}
.source-badge.sara {
  background: var(--blue);
  color: white;
}
.row-arrow {
  text-align: right;
  font-size: 18px;
}
.empty-state {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-state strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 5px;
}
.blue .empty-state,
.blue .empty-state strong {
  color: white;
}
.list-tools {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.search-field {
  flex: 1;
  max-width: 500px;
}
.filter-field {
  width: 180px;
}
.list-tools label > span {
  font-size: 9px;
  color: var(--muted);
}
.account-panel {
  max-width: 680px;
  padding: 27px;
}
.account-panel > .eyebrow {
  color: var(--red);
}
.account-panel h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
dl {
  margin: 24px 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1.5px solid var(--line);
  padding: 15px 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
}
dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.account-panel .primary {
  margin-top: 10px;
  min-width: 180px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 36px;
  margin-top: auto;
  color: var(--muted);
}
.workspace-footer > .mono {
  font-size: 9px;
}
.footer-divider {
  margin: 0 8px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}
dd .status-dot {
  margin-left: 7px;
  margin-right: 0;
}
.status-dot.pending {
  background: #827e73;
}
.status-dot.error {
  background: var(--red);
}
/* Timetable retains the actual appointment lengths and 15-minute buffers. */
.calendar-panel {
  padding: 0;
  overflow: hidden;
}
.calendar-panel > .panel-heading {
  padding: 19px 20px;
  margin: 0;
  border-bottom: var(--border);
}
.board {
  overflow: auto;
  max-height: calc(100vh - 320px);
  min-height: 360px;
  position: relative;
  scrollbar-gutter: stable;
}
.headrow,
.bodyrow {
  display: grid;
  grid-template-columns: 55px repeat(5, minmax(140px, 1fr));
  min-width: 755px;
}
.headrow {
  position: sticky;
  top: 0;
  z-index: 7;
  background: var(--surface);
  border-bottom: var(--border);
}
.hcell {
  padding: 10px 12px;
  border-left: 1px solid var(--line);
}
.hcell:first-child {
  border: 0;
}
.hcell .dow {
  font: 9px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.hcell .dnum {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 3px 0;
}
.hcell.today .dnum {
  background: var(--blue);
  color: white;
  border: var(--border);
  border-radius: 8px;
  width: 34px;
  text-align: center;
  line-height: 1.2;
}
.hcell .count {
  font: 9px var(--mono);
  color: var(--muted);
}
.bodyrow {
  position: relative;
  height: 810px;
}
.gutter {
  position: relative;
  background: var(--surface);
}
.tick {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  font: 9px var(--mono);
  color: var(--muted);
}
.tick:first-child {
  transform: none;
}
.col {
  position: relative;
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      to bottom,
      var(--line) 0,
      var(--line) 1px,
      transparent 1px,
      transparent 90px
    ),
    repeating-linear-gradient(
      to bottom,
      #e7e2d666 0,
      #e7e2d666 1px,
      transparent 1px,
      transparent 22.5px
    );
}
.lunch {
  position: absolute;
  inset: 360px 0 auto 55px;
  height: 45px;
  z-index: 1;
  pointer-events: none;
  border-block: 1px dashed #e8332b77;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 5px,
    #e8332b12 5px,
    #e8332b12 10px
  );
}
.nowline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px solid var(--red);
  z-index: 4;
  pointer-events: none;
}
.nowline:before {
  content: "";
  position: absolute;
  left: -4px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.appt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 3;
  padding: 5px 8px;
  text-align: left;
  border: var(--border);
  border-radius: 8px;
  background: var(--blue);
  color: white;
  overflow: hidden;
}
.appt:hover {
  background: #174fce;
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 5;
}
.appt:focus-visible {
  outline-color: var(--ink);
  z-index: 6;
}
.appt .t {
  font: 9px var(--mono);
  opacity: 0.9;
  white-space: nowrap;
}
.appt .n {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.appt .p {
  font-size: 10px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt .buf {
  position: absolute;
  inset: auto 0 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    #ffffff40 4px,
    #ffffff40 8px
  );
  border-top: 1px solid #ffffff40;
}
.appt .sdot {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
}
.appt.short .p {
  display: none;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 19px;
  padding: 14px 18px;
  border-top: var(--border);
  font: 9px var(--mono);
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -2px;
}
.legend-appt,
.legend-sara {
  background: var(--blue);
}
.legend-sara {
  position: relative;
}
.legend-sara:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
}
.legend-buffer {
  background: var(--blue)
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 3px,
      #ffffff60 3px,
      #ffffff60 6px
    );
}
.legend-lunch {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    #e8332b33 3px,
    #e8332b33 6px
  );
}
.view-hint {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
dialog {
  padding: 26px;
  width: 460px;
  max-width: calc(100% - 32px);
  max-height: 85vh;
  overflow: auto;
  border: var(--border);
  border-radius: 17px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
dialog::backdrop {
  background: #1a19157a;
  backdrop-filter: blur(3px);
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.detail-heading .eyebrow {
  color: var(--red);
}
dialog h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
dialog > p.muted {
  margin-top: 9px;
}
.detail-note {
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  white-space: pre-wrap;
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (min-width: 1600px) {
  .workspace {
    padding-inline: 60px;
  }
  .stat-card {
    padding: 24px;
  }
  .week-chart {
    height: 210px;
  }
  .service-row {
    padding: 15px 0;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 216px;
  }
  .sidebar > .wordmark {
    gap: 8px;
    padding-inline: 18px;
  }
  .sidebar .wordmark-sub {
    font-size: 7px;
  }
  .workspace {
    margin-left: 216px;
    padding: 32px 28px 22px;
  }
  .stats {
    gap: 12px;
  }
  .stat-card {
    padding: 18px 15px;
  }
  .stat-card .eyebrow {
    font-size: 8px;
  }
  .stat-card p {
    font-size: 9px;
  }
  .stat-value {
    font-size: 35px;
  }
  .overview-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
  }
  .panel {
    padding: 20px;
  }
  .calendar-panel {
    padding: 0;
  }
  .appointment-row {
    gap: 12px;
    grid-template-columns:
      85px minmax(100px, 1fr) minmax(100px, 1.2fr)
      72px 15px;
  }
  .panel-heading .eyebrow {
    font-size: 9px;
  }
  .login-intro {
    padding-inline: 35px;
  }
}
@media (max-width: 950px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .stat-card .eyebrow {
    font-size: 9px;
  }
  .stat-card p {
    font-size: 10px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .service-row {
    border-bottom: 1.5px solid #ffffff40 !important;
  }
  .appointment-row {
    grid-template-columns: 82px minmax(110px, 1fr) 72px 15px;
  }
  .row-service {
    grid-column: 2;
    grid-row: 2;
  }
  .row-time {
    grid-row: 1/3;
  }
  .row-name {
    grid-column: 2;
    grid-row: 1;
  }
  .source-badge {
    grid-column: 3;
    grid-row: 1/3;
  }
  .row-arrow {
    grid-column: 4;
    grid-row: 1/3;
  }
  .appointment-row {
    row-gap: 4px;
  }
  .calendar-panel > .panel-heading > .mono {
    display: none;
  }
  .login-intro {
    padding-inline: 28px;
  }
  .intro-copy h1 {
    font-size: 49px;
  }
  .login-form-side {
    padding-inline: 28px;
  }
  .login-card {
    padding: 26px;
  }
  .intro-art {
    width: 270px;
  }
  .art-blue {
    width: 225px;
    left: 0;
  }
  .art-grid {
    width: 245px;
    left: 0;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .profile {
    grid-column: 2;
    grid-row: 1;
    padding: 15px 18px;
    border: 0;
    min-height: 65px;
  }
  .profile-copy {
    max-width: 105px;
  }
  .profile-copy > b {
    font-size: 12px;
  }
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .sidebar > .wordmark {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
    padding: 10px 12px;
    border: 0;
    font-size: 13px;
  }
  .sidebar .brand-logo {
    width: 40px;
    height: 50px;
  }
  .sidebar .wordmark-sub {
    display: none;
  }
  .main-nav {
    grid-column: 1/3;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 7px 18px 15px;
  }
  .nav-item {
    gap: 7px;
    font-size: 12px;
    min-height: 41px;
    padding: 9px 11px;
  }
  .nav-number {
    font-size: 9px;
  }
  .nav-arrow {
    display: none;
  }
  .sidebar-clinic {
    display: none;
  }
  .sidebar-bottom {
    padding: 0 18px 14px;
    border: 0;
    grid-column: 1/3;
    grid-row: 3;
  }
  .sidebar-bottom .nav-item {
    width: auto;
    min-height: 25px;
    padding: 2px 0;
    color: var(--muted);
    font-size: 11px;
  }
  .sidebar-bottom .nav-item.active {
    padding: 4px 10px;
    color: white;
  }
  .workspace {
    margin-left: 0;
    min-height: calc(100dvh - 174px);
    padding: 27px 20px 20px;
  }
  .page-header {
    margin-bottom: 20px;
    padding-bottom: 21px;
  }
  .page-header h1 {
    font-size: 32px;
  }
  .page-header .eyebrow {
    font-size: 9px;
  }
  .clock {
    font-size: 9px;
    padding: 6px 10px;
  }
  .period h2 {
    font-size: 14px;
  }
  .data-toolbar {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .period > .mono {
    font-size: 8px;
  }
  .toolbar-actions {
    gap: 0;
  }
  .date-nav {
    gap: 4px;
  }
  .date-nav .icon-button {
    width: 29px;
    font-size: 16px;
  }
  .small-button {
    padding: 0 9px;
    font-size: 11px;
  }
  .refresh {
    width: 29px;
    font-size: 18px;
  }
  .stats {
    gap: 13px;
    margin-bottom: 21px;
  }
  .stat-card {
    border-radius: 13px;
    padding: 17px 14px;
  }
  .stat-card .eyebrow {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .stat-value {
    font-size: 35px;
  }
  .stat-card p {
    font-size: 8px;
  }
  .panel {
    padding: 20px 16px;
    border-radius: 13px;
  }
  .panel-heading {
    gap: 10px;
  }
  .panel-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 0.09em;
  }
  .panel-heading .text-button {
    font-size: 10px;
  }
  .service-list {
    grid-template-columns: 1fr;
  }
  .appointment-row {
    grid-template-columns: 66px minmax(0, 1fr) 64px 10px;
    gap: 4px 9px;
    padding: 15px 0;
  }
  .row-time {
    font-size: 10px;
  }
  .row-name {
    font-size: 12px;
  }
  .row-service {
    font-size: 11px;
  }
  .source-badge {
    font-size: 8px;
    padding: 3px 6px;
    letter-spacing: 0;
  }
  .row-arrow {
    font-size: 15px;
  }
  .list-tools {
    gap: 10px;
  }
  .list-tools label > span {
    font-size: 8px;
  }
  .search-field input {
    font-size: 12px;
  }
  .filter-field {
    width: 126px;
  }
  select {
    font-size: 12px;
    padding-inline: 8px;
  }
  .workspace-footer {
    align-items: flex-start;
    padding-top: 30px;
    gap: 10px;
  }
  .workspace-footer > .mono {
    font-size: 8px;
  }
  .footer-divider {
    margin: 0 2px;
  }
  .calendar-panel {
    padding: 0;
  }
  .board {
    max-height: 65vh;
  }
  .calendar-panel > .panel-heading {
    padding: 17px 15px;
  }
  .legend {
    font-size: 8px;
    gap: 9px 12px;
  }
  .account-panel {
    padding: 22px;
  }
  dl > div {
    gap: 10px;
  }
  dt {
    font-size: 11px;
  }
  dd {
    font-size: 12px;
  }
  .load-error {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 0;
    padding: 25px 24px 30px;
    border-right: 0;
    border-bottom: var(--border);
  }
  .intro-copy {
    padding: 30px 0 0;
  }
  .intro-copy > .eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .intro-copy h1 {
    font-size: 42px;
  }
  .intro-copy > p:not(.eyebrow) {
    font-size: 14px;
    margin-top: 16px;
  }
  .intro-art,
  .intro-footer {
    display: none;
  }
  .login-form-side {
    padding: 32px 24px 72px;
  }
  .login-card {
    max-width: 440px;
  }
  .login-footer {
    bottom: 24px;
  }
  .login-card h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
