:root {
  --paper: #f6f3ec;
  --paper-2: #efebe2;
  --white: #fcfbf8;
  --ink: #17192f;
  --ink-2: #25283d;
  --text: #4f5361;
  --body: #6f7380;
  --muted: #9699a4;
  --line: #d8d9e2;
  --line-2: #e6e3dc;
  --purple: #7077ce;
  --purple-pale: #ececf8;
  --lake: #6aa8bb;
  --lake-pale: #e5f0f2;
  --gold: #b58b66;
  --gold-pale: #f1e8de;
  --green: #4f8b7b;
  --green-pale: #e4efeb;
  --red: #a75656;
  --sidebar: 248px;
  --topbar: 72px;
  --radius: 8px;
  --font-ui: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "Avenir Next", "DIN Alternate", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-synthesis: none; line-break: strict; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.65 var(--font-ui);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body:not(.presentation-entered) .app-shell { visibility: hidden; }

.presentation-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 64px 7vw 52px;
  color: #fff;
  background: #173777;
  transition: opacity .22s ease;
}
.presentation-cover[hidden] { display: none; }
.presentation-cover.leaving { opacity: 0; pointer-events: none; }
.cover-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 148px 148px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
}
.cover-hospital, .cover-main, .cover-footer { position: relative; z-index: 1; }
.cover-hospital { width: auto; margin-top: 20vh; }
.cover-hospital strong { display: block; font-size: clamp(28px,2.2vw,38px); font-weight: 600; line-height: 1.25; letter-spacing: .02em; }
.cover-main { width: 100%; max-width: 1180px; margin-top: 30px; align-self: flex-start; }
.cover-main h1 { margin: 0; color: #fff; font-size: clamp(50px,4.7vw,78px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.cover-main h1 span { display: block; }
.cover-rule { width: min(760px,66%); height: 8px; display: flex; align-items: center; margin-top: 34px; }
.cover-rule i { width: 82px; height: 5px; background: #8e95ed; }
.cover-rule b { flex: 1; height: 1px; background: rgba(255,255,255,.24); }
.cover-footer { width: 100%; display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }
.cover-footer > div { min-width: 380px; padding-left: 18px; border-left: 4px solid #8e95ed; }
.cover-footer small { display: block; color: #bfc6dd; font-size: 12px; }
.cover-footer strong { display: block; margin-top: 3px; color: #fff; font-size: 19px; font-weight: 600; }
.cover-access { width: min(560px,48vw); display: grid; gap: 7px; }
.cover-access > label { color: #bfc6dd; font-size: 12px; }
.cover-access-row { display: grid; grid-template-columns: minmax(250px,1fr) 184px; gap: 10px; }
.cover-access input { min-width: 0; height: 56px; border: 1px solid rgba(255,255,255,.5); border-radius: 0; padding: 0 16px; color: #fff; background: rgba(8,19,48,.22); font: 15px var(--font-ui); letter-spacing: .04em; }
.cover-access input::placeholder { color: #aeb8d2; }
.cover-access input:focus { outline: 2px solid #aeb4ff; outline-offset: 2px; border-color: #fff; }
.cover-access-row button { width: 184px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(255,255,255,.72); padding: 0 20px; color: #fff; background: transparent; font: 600 15px var(--font-ui); }
.cover-access-row button b { color: #b9bdef; font: 24px/1 var(--font-data); }
.cover-access > p { min-height: 18px; color: #bfc6dd; font-size: 11px; }
.cover-access.invalid input { border-color: #efb4b4; background: rgba(104,35,50,.24); }
.cover-access.invalid > p { color: #ffd0d0; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
p, h1, h2, h3, dl, dd, dt { margin: 0; }
h1, h2, h3 { line-height: 1.28; text-wrap: balance; }
p { text-wrap: pretty; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #a9abb5 transparent; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: relative;
  z-index: 30;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #f8f7f3;
  background: var(--ink);
  border-right: 1px solid #2d3049;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 58%);
}
.brand-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 18px;
  padding: 34px 28px 28px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}
.brand-rule { width: 7px; height: 78px; background: #fff; }
.brand-eyebrow { margin-bottom: 8px; color: #aeb1c1; font: 700 9px/1.3 var(--font-ui); letter-spacing: .13em; }
.brand-lockup strong { display: block; font-size: 20px; line-height: 1.38; letter-spacing: -.01em; }

.module-nav { position: relative; z-index: 1; overflow: auto; padding: 20px 14px 22px; }
.nav-group-label { padding: 0 14px 10px; color: #85899e; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.nav-item {
  position: relative;
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  border-radius: 5px;
  padding: 6px 12px;
  color: #c6c8d4;
}
.nav-item > span { grid-row: 1 / span 2; align-self: center; color: #6f748d; font: 10px/1 var(--font-data); }
.nav-item b { font-size: 12px; font-weight: 600; line-height: 1.35; }
.nav-item small { color: #73788f; font-size: 9px; line-height: 1.35; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--purple); }
.nav-item.active > span { color: #fff; }
.nav-item.active small { color: #aeb1c1; }

.sidebar-status {
  position: relative;
  z-index: 1;
  margin: 0 14px 16px;
  padding: 17px 16px 15px;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
}
.status-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fb59f; box-shadow: 0 0 0 4px rgba(111,181,159,.12); }
.sidebar-status > p { margin: 4px 0 12px 15px; color: #9296aa; font-size: 10px; }
.sidebar-status dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sidebar-status dl div { border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.sidebar-status dt { color: #7f8499; font-size: 9px; }
.sidebar-status dd { margin-top: 2px; color: #fff; font: 700 13px/1.3 var(--font-data); font-variant-numeric: tabular-nums; }

.workspace { height: 100vh; min-width: 0; display: grid; grid-template-rows: var(--topbar) minmax(0, 1fr); }
.topbar {
  position: relative;
  z-index: 15;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  background: #f8f6f1;
  border-bottom: 1px solid var(--line);
}
.mobile-menu { display: none; }
.breadcrumb { min-width: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.presentation-home { min-height: 34px; border: 1px solid var(--line); border-radius: 5px; padding: 0 12px; color: var(--body); background: var(--white); font-size: 11px; font-weight: 600; }
.presentation-home:hover { color: var(--ink); background: var(--paper-2); }
.breadcrumb span { color: var(--muted); font-size: 12px; }
.breadcrumb i { width: 22px; height: 1px; background: var(--line); }
.breadcrumb strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.command-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  color: var(--body);
  background: var(--white);
}
kbd { border: 1px solid var(--line); border-bottom-color: #b9bbc5; border-radius: 3px; padding: 0 5px; color: var(--muted); background: #f2f0eb; font: 10px/18px var(--font-data); }
.data-badge { min-height: 38px; display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 14px; color: var(--body); font-size: 11px; }
.data-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.content { min-width: 0; overflow: auto; padding: 34px 38px 52px; }
.view { width: min(1540px, 100%); margin: 0 auto; }
.page-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-kicker { margin-bottom: 7px; color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.page-header h1 { max-width: 980px; font-size: clamp(28px, 2.55vw, 42px); letter-spacing: -.025em; }
.page-desc { max-width: 900px; margin-top: 9px; color: var(--body); font-size: 15px; line-height: 1.7; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; padding: 0 14px; color: var(--text); background: var(--white); }
.button--ink { color: #fff; border-color: var(--ink); background: var(--ink); }
.surface { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

.overview-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 18px; margin-top: 28px; }
.thesis-panel { position: relative; min-height: 340px; overflow: hidden; padding: 42px 44px 36px; color: #fff; background: var(--ink); border-color: var(--ink); }
.thesis-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -270px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); }
.thesis-index { color: #a9adbe; font: 11px/1 var(--font-data); letter-spacing: .14em; }
.thesis-panel h2 { max-width: 780px; margin-top: 44px; font-size: clamp(30px, 3vw, 50px); line-height: 1.24; letter-spacing: -.035em; }
.thesis-panel h2 span { color: #d6b99c; }
.thesis-panel > p { max-width: 820px; margin-top: 20px; color: #c7cad6; font-size: 16px; }
.thesis-foot { position: absolute; left: 44px; right: 44px; bottom: 28px; display: flex; justify-content: space-between; gap: 20px; color: #9095aa; font-size: 10px; }
.system-rail { padding: 24px 24px 18px; }
.system-rail h3 { font-size: 16px; }
.rail-status { margin-top: 18px; }
.rail-status > div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.rail-status b { color: var(--purple); font: 700 10px/1.4 var(--font-data); }
.rail-status strong { display: block; font-size: 14px; }
.rail-status p { margin-top: 3px; color: var(--body); font-size: 12px; }
.rail-foot { margin-top: 12px; padding: 13px; color: var(--body); background: var(--paper); font-size: 11px; }

.section-label { display: flex; align-items: center; gap: 12px; margin: 28px 0 15px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.product-card { position: relative; min-height: 292px; display: flex; flex-direction: column; border: 0; border-right: 1px solid var(--line); padding: 22px 22px 20px; color: var(--ink); background: transparent; text-align: left; }
.product-card:last-child { border-right: 0; }
.product-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: transparent; }
.product-card:nth-child(1)::before { background: var(--lake); }
.product-card:nth-child(2)::before { background: var(--green); }
.product-card:nth-child(3)::before { background: var(--purple); }
.product-card:hover { background: var(--paper); }
.product-card.active { background: var(--purple-pale); }
.product-index { color: var(--muted); font: 700 10px/1.3 var(--font-data); letter-spacing: .08em; }
.product-card em { position: absolute; right: 22px; top: 22px; color: var(--purple); font-size: 10px; font-style: normal; font-weight: 700; }
.product-card h2 { margin-top: 28px; font-size: 20px; }
.product-card > p { min-height: 68px; margin-top: 10px; color: var(--body); font-size: 13px; }
.product-card dl { margin-top: 16px; border-top: 1px solid var(--line-2); }
.product-card dl div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 11px; }
.product-card dt { color: var(--muted); }
.product-card dd { color: var(--text); font-weight: 600; }
.product-action { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; font-size: 11px; font-weight: 700; }
.product-action i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); font-style: normal; background: var(--white); }

.detail-strip { display: grid; grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, 1fr) minmax(292px, auto); border: 1px solid var(--line); border-top: 0; background: var(--white); }
.detail-strip > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line-2); }
.detail-strip > div:last-child { border-right: 0; }
.detail-strip small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.detail-strip strong { font-size: 12px; }
.detail-strip p { color: var(--body); font-size: 11px; }
.entry-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--ink); border-radius: 5px; padding: 0 14px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 600; }
.entry-button::after { content: "→"; }
.entry-button--secondary { color: var(--ink); border-color: var(--line); background: var(--white); }
.entry-button:hover { border-color: var(--ink-2); background: var(--ink-2); }
.entry-button--secondary:hover { color: #fff; }
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.handoff-trace { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; }
.handoff-trace article { position: relative; min-height: 128px; padding: 20px 18px; border-right: 1px solid var(--line); }
.handoff-trace article:last-child { border-right: 0; }
.handoff-trace article:not(:last-child)::after { content: ""; position: absolute; z-index: 2; right: -6px; top: 46%; width: 10px; height: 10px; border-top: 1px solid var(--purple); border-right: 1px solid var(--purple); background: var(--white); transform: rotate(45deg); }
.handoff-trace b { color: var(--purple); font: 700 10px/1 var(--font-data); }
.handoff-trace h3 { margin-top: 18px; font-size: 15px; }
.handoff-trace p { margin-top: 6px; color: var(--body); font-size: 11px; }

.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .data-badge { display: none; }
  .detail-strip { grid-template-columns: 150px 1fr 1fr; }
  .detail-actions { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line-2); }
  .handoff-trace { overflow-x: auto; grid-template-columns: repeat(5, 180px); }
}

@media (max-width: 960px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .18s ease; }
  .sidebar.open { transform: translateX(0); }
  .workspace { height: 100vh; }
  .topbar { gap: 12px; padding: 0 18px; }
  .mobile-menu { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
  .mobile-menu span { width: 16px; height: 1px; display: block; background: var(--ink); }
  .breadcrumb { margin-right: auto; }
  .breadcrumb span { display: none; }
  .content { padding: 24px 18px 46px; }
  .overview-hero { grid-template-columns: 1fr; }
  .system-rail { display: none; }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; border: 0; background: rgba(12,14,25,.55); }
  .sidebar-backdrop[hidden] { display: none; }
  .sidebar-backdrop:not([hidden]) { display: block; }
}

@media (max-width: 760px) {
  .presentation-cover { padding: 34px 24px 28px; }
  .cover-grid { background-size: 86px 86px; }
  .cover-hospital { margin-top: 16vh; }
  .cover-hospital strong { font-size: 26px; }
  .cover-main { margin-top: 22px; }
  .cover-main h1 { font-size: 38px; line-height: 1.14; letter-spacing: -.035em; }
  .cover-rule { width: 88%; margin-top: 24px; }
  .cover-footer { display: grid; align-items: stretch; gap: 14px; padding-top: 20px; }
  .cover-footer > div { min-width: 0; margin-bottom: 4px; }
  .cover-footer strong { font-size: 16px; }
  .cover-access { width: 100%; }
  .cover-access-row { grid-template-columns: 1fr; }
  .cover-access input, .cover-access-row button { width: 100%; height: 52px; }
  .command-button span { display: none; }
  .page-header h1 { font-size: 30px; }
  .page-desc { font-size: 14px; }
  .thesis-panel { min-height: 410px; padding: 30px 24px 28px; }
  .thesis-panel h2 { margin-top: 34px; font-size: 31px; }
  .thesis-panel > p { font-size: 14px; }
  .thesis-foot { left: 24px; right: 24px; flex-direction: column; gap: 4px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card:last-child { border-bottom: 0; }
  .detail-strip { display: block; }
  .detail-strip > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 2026-08-15 · patient operations platform normalization */
.nav-item {
  min-height: 42px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 1fr;
  padding: 0 12px;
}
.nav-item > span { grid-row: auto; }
.nav-item b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item small { display: none; }

.product-card { min-height: 312px; }
.product-card > p,
.rail-status p,
.rail-foot,
.detail-strip p,
.handoff-trace p { font-size: 14px; line-height: 1.65; }
.product-card dl div { font-size: 12px; }
.detail-strip strong { font-size: 14px; }
.handoff-trace article { min-height: 146px; }

@media (max-width: 760px) {
  .product-card { min-height: 0; }
}
