:root {
  color-scheme: light;
  --ground: #f5f6f8;
  --paper: #fff;
  --ink: #17212f;
  --muted: #596273;
  --line: #e5e8ed;
  --blue: #1768e5;
  --blue-soft: #eaf2ff;
  --green: #247453;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.065);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Noto Sans JP",
    sans-serif;
  letter-spacing: 0;
  scrollbar-color: #b7c3d4 transparent;
  caret-color: var(--blue);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e9edf2;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #88b4ff;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:active,
.button:active {
  transform: scale(0.98);
}
::selection {
  background: #cfe0ff;
  color: #15345e;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: 29px;
  line-height: 1.35;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
}
small {
  font-size: 13px;
}
.mobile-app {
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  background: var(--ground);
  position: relative;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.app-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 21px;
  background: rgba(245, 246, 248, 0.94);
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand {
  font-size: 22px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.brand > span:last-child {
  color: var(--blue);
  margin-left: -6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--blue);
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: white;
  margin-right: 2px;
}
.brand-mark .icon {
  width: 23px;
  height: 23px;
  stroke-width: 2.5;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.role-select {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.role-select select {
  appearance: none;
  border: 0;
  background: #e9edf2;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 28px 9px 12px;
  color: #465166;
  max-width: 176px;
  min-height: 44px;
}
.role-select .icon {
  width: 12px;
  height: 12px;
  position: absolute;
  right: 10px;
  pointer-events: none;
  transform: rotate(90deg);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  flex: none;
}
.reset {
  width: 44px;
  height: 44px;
  color: #69758a;
}
.reset .icon {
  width: 18px;
  height: 18px;
}
.content {
  padding: 6px 21px 28px;
}
.content.with-composer {
  padding-bottom: 100px;
}
.greeting {
  margin: 10px 0 22px;
}
.greeting p,
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.greeting h1 {
  font-size: 25px;
  margin-top: 4px;
  letter-spacing: -0.035em;
}
.page-heading {
  margin: 8px 0 25px;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.subtle {
  color: var(--muted);
  font-size: 14px;
}
.next-visit {
  background: var(--paper);
  border-radius: 20px;
  padding: 23px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
}
.next-visit h2 {
  font-size: 25px;
  margin-top: 13px;
  letter-spacing: -0.03em;
}
.hero-time {
  font-size: 42px;
  line-height: 1.4;
  font-weight: 730;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  white-space: nowrap;
  margin-top: 0;
}
.hero-time span {
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
  margin-left: 7px;
}
.doctor-byline {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 17px;
}
.doctor-byline > div {
  flex: 1;
}
.doctor-byline strong {
  font-size: 16px;
}
.doctor-byline strong span {
  font-weight: 400;
  font-size: 14px;
}
.doctor-byline small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.doctor-byline > .icon {
  color: #8492a5;
}
.avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #e8eef8;
  display: inline-grid;
  place-items: center;
  color: #4e6583;
  font-size: 15px;
  flex: none;
}
.avatar.doctor {
  background: #e4f1e9;
  color: #39735b;
}
.avatar.large {
  width: 60px;
  height: 60px;
  font-size: 25px;
}
.small-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e1e8f5;
  color: #536b90;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  border-radius: 7px;
  background: #eef1f5;
  color: #57677e;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.badge.confirmed,
.badge.completed {
  background: #e7f3eb;
  color: #247453;
}
.badge.tentative {
  background: #eaf2ff;
  color: #245fbb;
  border: 1px dashed #9cbae4;
}
.badge.working {
  color: #1768e5;
  background: #eaf2ff;
}
.badge.waiting {
  color: #80612d;
  background: #f8f0df;
}
.badge.needs_admin {
  color: #aa473e;
  background: #fcebe8;
}
.badge.stopped,
.badge.superseded {
  color: #596273;
  background: #edf0f3;
}
.chat-section > .section-line {
  margin-bottom: 20px;
}
.chat-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.chat-section h2 .icon {
  color: var(--blue);
  width: 23px;
  height: 23px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: var(--blue);
  padding: 7px 0;
  font-size: 16px;
  white-space: nowrap;
  min-height: 44px;
}
.text-button .icon {
  width: 17px;
  height: 17px;
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.message {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 100%;
}
.message > div {
  max-width: calc(100% - 36px);
}
.ai-avatar {
  color: var(--blue);
  padding-top: 9px;
}
.ai-avatar .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.6;
}
.bubble {
  background: white;
  border-radius: 0 16px 16px 16px;
  padding: 15px 16px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.message.mine {
  align-self: flex-end;
}
.message.mine > div {
  max-width: 100%;
}
.mine .bubble {
  background: var(--blue);
  color: white;
  border-radius: 16px 0 16px 16px;
}
.message-time {
  color: #768196;
  display: block;
  margin: 5px 3px 0;
  font-size: 13px;
}
.mine .message-time {
  text-align: right;
}
.suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 20px 32px;
}
.suggestions button {
  background: transparent;
  border: 1px solid #cedbec;
  color: #315e94;
  font-size: 16px;
  text-align: left;
  border-radius: 18px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.suggestions .icon {
  width: 14px;
  height: 14px;
}
.privacy-note {
  font-size: 13px;
  color: #68758a;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 25px 0;
}
.privacy-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.composer {
  position: fixed;
  bottom: calc(83px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 438px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dde3ec;
  border-radius: 28px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  z-index: 25;
}
.composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  padding: 4px 7px;
  font-size: 17px;
  height: 44px;
  color: var(--ink);
}
.composer input::placeholder {
  color: #6b7686;
}
.send-button {
  display: grid;
  place-items: center;
  background: var(--blue);
  border: 0;
  color: white;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
}
.send-button .icon {
  width: 21px;
  height: 21px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 9px 12px calc(7px + env(safe-area-inset-bottom));
  background: rgba(250, 251, 253, 0.9);
  backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid rgba(188, 198, 212, 0.5);
  display: flex;
  justify-content: space-around;
  z-index: 30;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 0;
  color: #6d7788;
  font-size: 13px;
  min-height: 54px;
}
.nav-item .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.65;
}
.nav-item.selected {
  color: var(--blue);
  font-weight: 650;
}
.demo-label {
  font-size: 13px;
  color: #788398;
  display: block;
  text-align: center;
  padding: 15px 0 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  background: white;
  text-align: center;
}
.button.primary {
  background: var(--blue);
  color: white;
}
.button.quiet {
  background: #edf2f9;
  color: #315f9d;
}
.button.hangup {
  background: #dc514c;
  color: white;
}
.button.wide {
  width: 100%;
  margin-top: 12px;
}
.button.small {
  min-height: 44px;
  padding: 7px 12px;
  font-size: 16px;
}
.button .icon {
  width: 19px;
  height: 19px;
}
.group {
  background: white;
  border-radius: 16px;
  overflow: hidden;
}
.group > .section-line {
  padding: 18px;
}
.section-heading {
  margin: 29px 2px 12px;
}
.section-heading span,
.agenda-title h2 span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 5px;
}
.visit-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: white;
  padding: 18px 14px;
  min-height: 94px;
}
.visit-row:last-child {
  border-bottom: 0;
}
.visit-time {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  min-width: 54px;
  letter-spacing: -0.03em;
}
.visit-time small {
  display: block;
  color: #7c8799;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}
.visit-main {
  flex: 1;
  min-width: 0;
}
.visit-main strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.visit-main > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.visit-row > .icon {
  width: 13px;
  height: 13px;
  color: #9aa5b5;
  flex: none;
}
.visit-row.tentative {
  background: rgba(231, 240, 255, 0.4);
  outline: 1px dashed #b7ccec;
  outline-offset: -2px;
}

.next-visit.confirmed {
  background: var(--blue);
  color: white;
}
.next-visit.confirmed .hero-time,
.next-visit.confirmed .hero-time span,
.next-visit.confirmed .subtle,
.next-visit.confirmed .doctor-byline small,
.next-visit.confirmed .doctor-byline > .icon {
  color: white;
}
.next-visit.confirmed .doctor-byline {
  border-top-color: rgba(255, 255, 255, 0.3);
}
.next-visit.confirmed .avatar {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}
.next-visit.confirmed .badge {
  background: white;
  color: var(--blue);
}
.next-visit.tentative {
  background: rgba(231, 240, 255, 0.4);
  border: 1px dashed #b7ccec;
  box-shadow: none;
}
.visit-row.confirmed:not(.completed) .visit-time {
  background: var(--blue);
  color: white;
  border-radius: 10px;
  padding: 9px 8px;
  min-width: 70px;
  text-align: center;
}
.visit-row.confirmed:not(.completed) .visit-time small {
  color: white;
}
.visit-row.confirmed:not(.completed) .badge {
  background: var(--blue);
  color: white;
}

.visit-row.completed {
  opacity: 0.6;
}
.help-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 17px 3px;
}
.batch-bar {
  background: var(--blue-soft);
  padding: 18px;
  border-radius: 16px;
  margin-top: 18px;
}
.batch-bar p {
  font-size: 14px;
  margin-bottom: 12px;
}
.batch-bar .button {
  width: 100%;
}
.answer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.answer-actions .button {
  font-size: 16px;
  padding: 10px;
  min-height: 44px;
}
.reply-state {
  display: block;
  color: #526e8f;
  font-size: 13px;
  margin-top: 9px;
}
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 -3px 24px;
}
.date-strip button {
  padding: 8px 0 7px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: transparent;
  gap: 3px;
  min-height: 76px;
}
.date-strip span {
  font-size: 13px;
  color: #6f7b8e;
}
.date-strip strong {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}
.date-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #97a8c0;
}
.date-strip .chosen {
  background: var(--blue);
  color: white;
}
.date-strip .chosen span {
  color: #dce9ff;
}
.date-strip .chosen i {
  background: white;
}
.ai-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: #e7effd;
  text-align: left;
  color: #234976;
}
.ai-orb {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
  flex: none;
}
.ai-orb .icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.3;
}
.ai-overview > span:nth-child(2) {
  flex: 1;
}
.ai-overview strong {
  font-size: 15px;
  font-weight: 650;
}
.ai-overview small {
  display: block;
  font-size: 13px;
  color: #526f98;
  margin-top: 4px;
}
.ai-overview > .icon {
  width: 16px;
  height: 16px;
}
.agenda-title {
  margin: 29px 2px 10px;
}
.secondary-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  padding: 19px 0 3px;
  color: var(--blue);
  background: none;
  font-size: 16px;
  min-height: 44px;
}
.secondary-action > .icon:last-child {
  margin-left: auto;
  width: 15px;
  height: 15px;
}
.activity-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b6c61;
  margin-bottom: 20px;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2d8c65;
  border-radius: 50%;
  flex: none;
}
.case-card {
  padding: 20px;
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
}
.case-card h2 {
  margin-top: 16px;
}
.case-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.case-card small {
  color: var(--muted);
  font-size: 13px;
}
.next-step {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #f0f4fa;
  border-radius: 10px;
  font-size: 14px;
  color: #335d8c;
  padding: 12px;
  margin-top: 18px;
}
.next-step .icon {
  width: 19px;
  height: 19px;
}
.case-card details {
  margin-top: 17px;
}
.case-card summary {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.timeline {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
}
.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 19px;
  font-size: 13px;
  line-height: 1.65;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #dbe4f1;
}
.timeline li:last-child:before {
  display: none;
}
.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #9bb8de;
  flex: none;
}
.timeline-dot.attention {
  background: #c88a45;
}
.timeline small {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}
.case-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.case-actions .button {
  font-size: 16px;
  min-height: 44px;
  padding: 9px 12px;
}
.empty-state {
  padding: 30px 20px;
  text-align: center;
}
.empty-state h2 {
  margin: 12px 0;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.notification-settings {
  padding: 20px;
  margin-top: 25px;
}
.notification-settings label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 14px;
}
.notification-settings select {
  background: #edf2f8;
  color: #315f9d;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
}
.notification-settings small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.people-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: white;
  text-align: left;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.people-list > button:last-child {
  border: 0;
}
.people-list > button > span:nth-child(2) {
  flex: 1;
}
.people-list strong {
  font-size: 16px;
  display: block;
}
.people-list small {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.people-list > .icon,
.people-list button > .icon {
  color: #8e9bad;
  width: 15px;
  height: 15px;
}
.doctor-map {
  background: white;
  border-radius: 16px;
  overflow: hidden;
}
.doctor-map > .section-line {
  padding: 16px;
}
.doctor-map h2 {
  font-size: 15px;
}
.map-tap {
  cursor: pointer;
}
.route-map {
  height: 264px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.route-map > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.map-place {
  font: 10px sans-serif;
  text-anchor: middle;
  fill: #5d805f;
}
.map-district {
  font: 12px sans-serif;
  text-anchor: middle;
  fill: #7e9291;
  letter-spacing: 2px;
}
.map-stop {
  position: absolute;
  z-index: 2;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  border: 0;
  padding: 6px 9px;
  border-radius: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 13px;
  transform: translate(-50%, -100%);
  min-height: 44px;
  white-space: nowrap;
}
.map-stop b {
  width: 21px;
  height: 21px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}
.map-stop span {
  font-weight: 650;
}
.hospital-start,
.hospital-end {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  padding: 7px 10px;
  transform: none;
  background: #243b57;
  color: white;
  box-shadow: none;
  font-size: 13px;
}
.hospital-start {
  top: 10px;
  left: 12px;
}
.hospital-start span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hospital-start .icon {
  width: 12px;
  height: 12px;
}
.hospital-start strong,
.hospital-end strong {
  font-size: 13px;
  font-weight: 750;
}
.hospital-end {
  bottom: 12px;
  right: 12px;
}
.map-demo {
  position: absolute;
  bottom: 8px;
  left: 9px;
  color: #6a7b80;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 5px;
  border-radius: 4px;
}
.route-caption {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #65788b;
  font-size: 13px;
  padding: 11px 16px;
}
.route-caption .icon {
  width: 15px;
  height: 15px;
}
.current-stop {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 16px;
}
.current-stop .section-line {
  font-size: 13px;
}
.current-stop h2 {
  font-size: 22px;
  margin-top: 10px;
}
.current-stop > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.current-actions {
  display: flex;
  gap: 9px;
  flex-direction: column;
  margin-top: 17px;
}
.travel-status {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #e4f2e9;
  color: #275d45;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.travel-status > span:nth-child(2) {
  flex: 1;
}
.travel-status strong {
  font-size: 13px;
}
.travel-status small {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}
.arrival-note {
  font-size: 13px;
  color: var(--green);
  margin-top: 14px;
}
.availability-intro {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.availability-intro p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.grid-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #c5ddff;
  border: 1px solid #9cc2fa;
  flex: none;
  margin-top: 4px;
}
.availability-grid {
  display: grid;
  grid-template-columns: 41px repeat(7, minmax(0, 1fr));
  gap: 3px;
  background: white;
  padding: 12px 8px;
  border-radius: 16px;
  touch-action: none;
  user-select: none;
}
.grid-corner,
.grid-day {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 9px;
}
.grid-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #67758b;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}
.time-cell {
  height: 28px;
  min-width: 0;
  padding: 0;
  background: #f0f2f6;
  border: 1px solid transparent;
  border-radius: 4px;
  touch-action: none;
}
.time-cell.on {
  background: #bdd7ff;
  border-color: #8eb7f4;
}
.time-cell:active {
  transform: none;
}
.sticky-save {
  position: sticky;
  bottom: 88px;
  padding: 10px 0;
  z-index: 2;
}
.sticky-save .button {
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.exception-section {
  padding: 18px;
  margin-top: 17px;
}
.exception-section > .section-line {
  padding: 0;
}
.exception-section h2 {
  font-size: 17px;
}
.exception-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 13px;
  font-size: 13px;
}
.exception-row span {
  color: var(--muted);
}
.sheet-open {
  overflow: hidden;
}
.sheet {
  border: 0;
  border-radius: 25px 25px 0 0;
  padding: 0;
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
  max-height: 92dvh;
  overflow: auto;
  color: var(--ink);
  background: #f8f9fb;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.15);
  animation: sheet-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sheet::backdrop {
  background: rgba(28, 42, 60, 0.3);
  backdrop-filter: blur(3px);
}
.sheet-handle {
  width: 35px;
  height: 5px;
  border-radius: 4px;
  background: #c7cdd6;
  margin: 10px auto 4px;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 19px 8px;
  position: sticky;
  top: 0;
  background: #f8f9fb;
  z-index: 3;
}
.sheet-header h1 {
  font-size: 17px;
  letter-spacing: 0;
}
.sheet-header .icon-button {
  width: 44px;
  height: 44px;
  background: #e9edf3;
  color: #65738a;
}
.sheet-header .icon {
  width: 18px;
  height: 18px;
}
.sheet-body {
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom));
}
.contact-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 15px 0 26px;
}
.contact-heading h2 {
  font-size: 25px;
}
.contact-heading h2 span {
  font-size: 16px;
  margin-left: 6px;
  font-weight: 400;
}
.contact-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}
.detail-list {
  background: white;
  border-radius: 16px;
  padding: 0 17px;
}
.detail-list > div {
  display: flex;
  gap: 17px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-list > div:last-child {
  border: 0;
}
.detail-list > div > span {
  color: var(--muted);
  min-width: 76px;
  font-size: 13px;
}
.detail-list strong {
  font-size: 16px;
  font-weight: 500;
}
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 10px;
}
.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.settings-form input,
.settings-form textarea,
.settings-form select {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  color: var(--ink);
  background: white;
  border: 1px solid #dce2eb;
  border-radius: 10px;
  padding: 12px;
  outline-offset: 1px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.settings-form .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 15px;
  color: var(--ink);
}
.checkbox-label input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.sheet .route-map.large {
  height: 340px;
  border-radius: 16px;
  margin: 4px -8px 15px;
}
.eta {
  text-align: center;
  margin: 20px 0;
}
.eta strong {
  font-size: 24px;
  display: inline-block;
  margin-left: 8px;
}
.eta p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.map-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.map-visit .button {
  font-size: 16px;
  min-height: 44px;
  padding: 8px 12px;
}
.call-identity {
  text-align: center;
  padding: 18px 0 23px;
}
.call-orb {
  background: #e4edfc;
  border-radius: 50%;
  width: 79px;
  height: 79px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  color: var(--blue);
}
.call-orb .icon {
  width: 43px;
  height: 43px;
  stroke-width: 1.25;
}
.call-identity h2 {
  font-size: 27px;
}
.call-identity p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.call-transcript {
  max-height: 240px;
  overflow: auto;
  margin-bottom: 18px;
}
.call-transcript p {
  font-size: 15px;
  background: white;
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 10px;
  line-height: 1.8;
}
.call-transcript small {
  display: block;
  color: var(--blue);
  font-size: 13px;
  margin-bottom: 4px;
}
.call-transcript .patient {
  background: #e8f0fc;
}
.call-sheet .help-text {
  text-align: center;
  font-size: 13px;
}
.sheet .wide {
  margin-top: 11px;
}
#toast {
  position: fixed;
  bottom: 155px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: min(90%, 420px);
  width: max-content;
  background: #22354e;
  color: white;
  border-radius: 13px;
  padding: 12px 17px;
  box-shadow: 0 7px 30px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms,
    transform 160ms;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes sheet-in {
  from {
    transform: translateY(35%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 600px) {
  .mobile-app {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
  }
}
@media (max-width: 374px) {
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .role-select select {
    max-width: 176px;
    font-size: 16px;
  }
  .reset {
    display: none;
  }
  .next-visit {
    padding: 20px;
  }
  .hero-time {
    font-size: 38px;
  }
  .hero-time span {
    font-size: 18px;
  }
  .greeting h1 {
    font-size: 23px;
  }
  .visit-row {
    gap: 8px;
    padding: 16px 11px;
  }
  .visit-row .badge {
    font-size: 13px;
    padding: 4px 5px;
  }
  .visit-main strong {
    font-size: 16px;
  }
  .sheet-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .bottom-nav,
  .app-header,
  .composer {
    background: #fafbfd;
    backdrop-filter: none;
  }
  .sheet::backdrop {
    backdrop-filter: none;
  }
}

.patient-inbox {
  margin: -10px 0 26px;
}

.navigation-open-body {
  overflow: hidden;
}
.mobile-app.navigation-open {
  max-width: 480px;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}
.car-nav {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #e8eee9;
  color: #17212f;
}
.car-top {
  flex: none;
  min-height: 57px;
  padding: max(7px, env(safe-area-inset-top)) 15px 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.car-top > span {
  color: #536175;
  font-size: 13px;
  font-weight: 600;
}
.car-back {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1768e5;
  font-size: 16px;
  font-weight: 650;
}
.car-back .icon {
  transform: rotate(180deg);
  width: 18px;
}
.car-maneuver {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 111px;
  padding: 17px 20px;
  background: #193b64;
  color: #fff;
}
.maneuver-icon {
  width: 62px;
  display: grid;
  place-items: center;
  flex: none;
}
.maneuver-icon .icon {
  width: 55px;
  height: 55px;
  stroke-width: 2.5;
}
.car-maneuver strong {
  display: block;
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.15;
  font-weight: 740;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.car-maneuver p {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  margin-top: 2px;
}
.car-map {
  flex: 1;
  min-height: 115px;
  overflow: hidden;
  position: relative;
}
.car-map svg {
  display: block;
  width: 100%;
  height: 100%;
}
.car-world {
  transform-origin: 0 0;
  transition: transform 1500ms cubic-bezier(0.18, 0.68, 0.22, 1);
}
.car-street-label {
  fill: #607273;
  font: 17px sans-serif;
  paint-order: stroke;
  stroke: #eef3ed;
  stroke-width: 3px;
  transition: transform 1500ms cubic-bezier(0.18, 0.68, 0.22, 1);
}
.car-map-label {
  position: absolute;
  bottom: 13px;
  left: 13px;
  border-radius: 7px;
  background: #fff;
  padding: 5px 8px;
  color: #40546a;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.car-bottom {
  flex: none;
  background: #fff;
  padding: 13px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
}
.car-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 13px;
  border-bottom: 1px solid #e5e8ed;
  gap: 7px;
}
.car-metrics span {
  display: block;
  color: #516176;
  font-size: 13px;
}
.car-metrics strong {
  display: block;
  font-size: clamp(16px, 5vw, 21px);
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.car-destination {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 9px;
  min-width: 0;
}
.car-destination > span {
  flex: none;
  color: #1768e5;
}
.car-destination > div {
  flex: 1;
  min-width: 0;
}
.car-destination strong {
  display: block;
  font-size: 17px;
}
.car-destination small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #536175;
}
.car-detail {
  flex: none;
  min-height: 44px;
  border: 0;
  background: #eef4fd;
  border-radius: 11px;
  padding: 7px 15px;
  color: #1768e5;
  font-size: 16px;
  font-weight: 650;
}
.car-actions {
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
}
.car-secondary {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: #edf2f9;
  color: #315f9d;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.car-secondary .icon {
  width: 17px;
  height: 17px;
}
.car-arrive {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}
.resume-nav {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #193b64;
  color: #fff;
  text-align: left;
}
.resume-nav > span {
  flex: 1;
}
.resume-nav strong {
  display: block;
  font-size: 17px;
}
.resume-nav small {
  display: block;
  font-size: 13px;
  color: #d7e7ff;
  margin-top: 2px;
}
.resume-nav > .icon:last-child {
  width: 17px;
}
@media (max-height: 650px) {
  .car-top {
    min-height: 48px;
  }
  .car-maneuver {
    min-height: 85px;
    padding: 10px 16px;
  }
  .maneuver-icon .icon {
    width: 43px;
    height: 43px;
  }
  .car-bottom {
    padding-top: 8px;
  }
  .car-destination {
    padding: 7px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .car-world {
    transition: none !important;
  }
}
.patient-updates {
  background: #fff;
  border-radius: 14px;
  margin-top: 10px;
  overflow: hidden;
}
.patient-updates > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 13px 15px;
  font-size: 16px;
  list-style: none;
  min-height: 44px;
}
.patient-updates > summary::-webkit-details-marker {
  display: none;
}
.patient-updates > summary .icon {
  width: 19px;
  height: 19px;
  color: var(--blue);
}
.patient-updates > summary strong {
  flex: 1;
  font-weight: 600;
}
.patient-updates > summary > span {
  color: var(--muted);
  font-size: 13px;
}
.pending-list article {
  border-top: 1px solid var(--line);
  padding: 16px;
  font-size: 15px;
  line-height: 1.8;
}
.notice-list {
  list-style: none;
  padding: 0 15px;
  margin: 0;
}
.notice-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.notice-list p {
  font-size: 14px;
}
.notice-list time {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}
