/* Doctor-only workspace surfaces. Nurse pages retain their existing layout. */
#app .doctor-role {
  --doctor-brand: #4f46e5;
  --doctor-ink: #111827;
  --doctor-muted: #6b7280;
  --doctor-line: var(--app-border,rgba(205,222,219,.78));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--doctor-ink);
  background: linear-gradient(180deg,var(--app-bg-soft,#fbfefb) 0%,var(--app-bg,#edf6f1) 46%,var(--app-bg-tint,#eaf4f7) 100%);
}
#app .doctor-role .serif-title {
  font-family: inherit;
}
#app .doctor-home {
  min-height: var(--layout-window-height, 100vh);
  padding: calc(18px + var(--layout-menu-top, var(--layout-status-bar, 0px))) 18px calc(24px + var(--layout-safe-bottom, 0px));
}
#app .doctor-home button {
  box-sizing: border-box;
  margin: 0;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#app .doctor-home button:focus-visible,
#app .doctor-profile .proto-back:focus-visible,
#app .doctor-profile .staff-profile__quit:focus-visible {
  outline: 3px solid #4f46e5;
  outline-offset: 3px;
}
#app .doctor-home__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
#app .doctor-home__identity {
  min-width: 0;
  display: grid;
  gap: 6px;
}
#app .doctor-home__name {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#app .doctor-home__meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--doctor-muted);
  overflow-wrap: anywhere;
}
#app .doctor-home__account {
  display: flex;
  gap: 6px;
  flex: none;
  align-items: center;
}
#app .doctor-home__profile {
  border: 1px solid var(--doctor-line);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
  background:var(--app-surface,rgba(255,254,250,.94));
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}
#app .doctor-home .doctor-home__logout {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
#app .doctor-home__body {
  display: grid;
  gap: 20px;
}
#app .doctor-home__actions {
  display: grid;
  gap: 12px;
}
#app .doctor-home__entry {
  width: 100%;
  min-height: 90px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--doctor-line);
  border-radius: 18px;
  background:var(--app-surface,rgba(255,254,250,.94));
  color: var(--doctor-brand);
  box-shadow: 0 4px 14px rgba(46,91,128,.08);
}
#app .doctor-home__entry--primary {
  border-color: rgba(79,70,229,.24);
  background: linear-gradient(115deg, #eef2ff, var(--app-bg-soft,#fbfefb));
}
#app .doctor-home__entry-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#app .doctor-home__entry-icon .ui-icon {
  width: 34px !important;
  height: 34px !important;
}
#app .doctor-home__entry-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
#app .doctor-home__entry-title {
  color: var(--doctor-ink);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 650;
}
#app .doctor-home__entry-hint {
  color: var(--doctor-muted);
  font-size: 14px;
  line-height: 1.5;
}
#app .doctor-home__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--doctor-line);
  border-radius: 15px;
  background:var(--app-surface,rgba(255,254,250,.94));
  padding: 14px 0;
}
#app .doctor-home__stat {
  min-width: 0;
  padding: 0 8px;
  display: grid;
  gap: 5px;
  text-align: center;
}
#app .doctor-home__stat + .doctor-home__stat {
  border-left: 1px solid var(--app-border,rgba(205,222,219,.78));
}
#app .doctor-home__stat-value {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
  color: #4f46e5;
}
#app .doctor-home__stat-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--doctor-muted);
}
#app .doctor-home__reminder-section {
  min-width: 0;
  display: grid;
  gap: 8px;
}
#app .doctor-home__section-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#app .doctor-home__section-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
}
#app .doctor-home__all-reminders {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 0 4px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--doctor-brand);
  font-size: 14px;
}
#app .doctor-home__reminders {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--doctor-line);
  border-radius: 15px;
  background:var(--app-surface,rgba(255,254,250,.94));
}
#app .doctor-home__reminders > .proto-card {
  margin: 0 !important;
  min-height: 54px;
  padding: 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
#app .doctor-home__reminders > .proto-card + .proto-card {
  border-top: 1px solid var(--app-border,rgba(205,222,219,.78)) !important;
}
#app .doctor-home__reminders:empty {
  border: 0;
  min-height: 0;
}
#app .doctor-profile .proto-header {
  padding: calc(12px + var(--layout-menu-top, var(--layout-status-bar, 0px))) 18px 14px;
}
#app .doctor-profile .proto-title {
  font-size: 22px;
  font-weight: 650;
}
#app .doctor-profile .proto-back {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--doctor-line);
  box-shadow: none;
  background:var(--app-surface,rgba(255,254,250,.94));
}
#app .doctor-profile .proto-content {
  padding: 8px 18px calc(24px + var(--layout-safe-bottom, 0px));
  gap: 16px;
}
#app .doctor-profile .proto-card {
  border: 1px solid var(--doctor-line);
  border-radius: 16px;
  background:var(--app-surface,rgba(255,254,250,.94));
  box-shadow: none;
}
#app .doctor-profile .staff-profile__hero {
  padding: 20px;
}
#app .doctor-profile .staff-profile__avatar {
  background: #eef2ff;
  color: var(--doctor-brand);
  border: 1px solid rgba(79,70,229,.24);
  border-radius: 15px;
  width: 52px;
  height: 52px;
  font-size: 24px;
  font-weight: 600;
}
#app .doctor-profile .staff-profile__name {
  font-size: 22px;
  font-weight: 650;
}
#app .doctor-profile .staff-profile__meta,
#app .doctor-profile .staff-profile__metric-label,
#app .doctor-profile .staff-profile__status-label {
  color: var(--doctor-muted);
  font-size: 14px;
  line-height: 1.5;
}
#app .doctor-profile .staff-profile__metric {
  padding: 16px;
  min-height: 94px;
}
#app .doctor-profile .staff-profile__metric-value {
  font-size: 26px;
  font-weight: 600;
  color: #4f46e5;
}
#app .doctor-profile .staff-profile__status {
  padding: 18px;
}
#app .doctor-profile .staff-profile__status-value {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
#app .doctor-profile .staff-profile__quit {
  min-height: 48px;
  border: 1px solid rgba(244,63,94,.22);
  border-radius: 14px;
  background: #fff1f2;
  color: #e11d48;
  font-size: 16px;
  font-weight: 600;
}
@media (max-width: 350px) {
  #app .doctor-home {
    padding-left: 14px;
    padding-right: 14px;
  }
  #app .doctor-home__header {
    gap: 8px;
  }
  #app .doctor-home__name {
    font-size: 21px;
  }
  #app .doctor-home__profile {
    padding: 0 9px;
  }
  #app .doctor-home__entry {
    padding: 15px 12px;
    gap: 10px;
  }
  #app .doctor-home__entry-title {
    font-size: 19px;
  }
  #app .doctor-home__entry-hint {
    font-size: 13px;
  }
}

/* Light identity surface; retain the indigo, emerald and amber indicators. */
#app .doctor-home__header{padding:16px;border-radius:20px;background:var(--app-surface,rgba(255,254,250,.94));box-shadow:0 7px 18px rgba(46,91,128,.06);border:1px solid var(--app-border,rgba(205,222,219,.78))}
#app .doctor-home__name{color:#111827}
#app .doctor-home__meta{color:#6b7280}
#app .doctor-home__profile{background:#4f46e5;border-color:#4f46e5;color:#fff;box-shadow:0 3px 8px rgba(79,70,229,.16)}
#app .doctor-home .doctor-home__logout{background:#eef2ff}
#app .doctor-home .doctor-home__logout .ui-icon{filter:none;opacity:1}
#app .doctor-home__summary{gap:8px;padding:0;border:0;background:transparent}
#app .doctor-home__stat{padding:14px 8px;border:1px solid var(--app-border,rgba(205,222,219,.78));border-radius:15px;background:#eef2ff;box-shadow:0 3px 10px rgba(46,91,128,.06)}
#app .doctor-home__stat+.doctor-home__stat{border-left:1px solid var(--app-border,rgba(205,222,219,.78))}
#app .doctor-home__stat:nth-child(2){background:#ecfdf5}
#app .doctor-home__stat:nth-child(3){background:#fffbeb}
#app .doctor-home__stat-value{color:#111827}
#app .doctor-profile .staff-profile__metric:nth-child(1){background:#eef2ff}
#app .doctor-profile .staff-profile__metric:nth-child(2){background:#ecfdf5}
#app .doctor-profile .staff-profile__metric:nth-child(3){background:#fffbeb}
#app .doctor-profile .staff-profile__metric-value{color:#111827}
