@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --font-sans: Pretendard, Inter, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --type-page-size: 22px;
  --type-page-line: 30px;
  --type-section-size: 16px;
  --type-section-line: 23px;
  --type-subsection-size: 14px;
  --type-subsection-line: 21px;
  --type-body-size: 14px;
  --type-body-line: 22px;
  --type-label-size: 13px;
  --type-label-line: 19px;
  --type-control-size: 14px;
  --type-helper-size: 12px;
  --type-helper-line: 18px;
  --type-meta-size: 12px;
  --type-table-size: 13px;
  --type-badge-size: 12px;
  --type-eyebrow-size: 11px;
  font-family: var(--font-sans);
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #edf2f8;
  --border: #dce4ef;
  --border-soft: #e9eef5;
  --text: #1c2a3e;
  --muted: #62748c;
  --primary: #2583ff;
  --primary-soft: #e7f1ff;
  --green: #159b62;
  --green-soft: #e4f8ee;
  --amber: #c77c08;
  --amber-soft: #fff5de;
  --red: #e13d4d;
  --red-soft: #ffebed;
  --purple: #7757dc;
  --sidebar: 184px;
  --topbar: 72px;
  --page-max: 1800px;
  --page-pad-x: 24px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #060d1b;
  --surface: #0d1729;
  --surface-2: #111e33;
  --surface-3: #16243a;
  --border: #22324b;
  --border-soft: #1b2940;
  --text: #e9eff9;
  --muted: #9bacc5;
  --primary-soft: #0d3266;
  --green: #24c77a;
  --green-soft: #0b3529;
  --amber: #f6ad22;
  --amber-soft: #3c2a0d;
  --red: #ff5d6c;
  --red-soft: #3b1821;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--type-body-size); line-height: var(--type-body-line); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid #75b6ff; outline-offset: 2px;
}
.hidden { display: none !important; }
.app-shell { min-height: 100vh; padding: var(--topbar) 0 0 var(--sidebar); transition: padding .2s ease; }
.app-shell.sidebar-small { --sidebar: 72px; }
.mobile-nav-trigger, .mobile-nav-close, .mobile-nav-backdrop, .mobile-nav-account { display: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); padding: 16px 10px;
  display: flex; flex-direction: column; border-right: 1px solid var(--border-soft); background: var(--surface); transition: width .2s ease;
}
.sidebar-brand { height: 48px; padding: 0 6px 14px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--border-soft); }
.brand-mark {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px;
  color: white; background: linear-gradient(135deg, #2188ff, #1450bb);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 8px; }
.sidebar-brand strong { display: block; font-size: 17px; letter-spacing: -.3px; }
.sidebar-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.sidebar nav { margin-top: 24px; display: grid; gap: 5px; }
.nav-item {
  height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 8px;
  color: var(--muted);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { color: var(--primary); background: var(--primary-soft); box-shadow: inset 3px 0 var(--primary); }
.nav-item svg { width: 17px; height: 17px; }
.sidebar-footer { position: absolute; right: 10px; bottom: 16px; left: 10px; }
.sidebar-toggle {
  width: 34px; height: 34px; margin: 0 auto; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; color: var(--muted);
  background: var(--surface-2); cursor: pointer;
}
.sidebar-toggle:hover { color: var(--text); background: var(--surface-3); }
.sidebar-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.app-shell.sidebar-small .sidebar-brand div:last-child,
.app-shell.sidebar-small .nav-item span { display: none; }
.app-shell.sidebar-small .sidebar-brand,
.app-shell.sidebar-small .nav-item { justify-content: center; padding-right: 0; padding-left: 0; }
.app-shell.sidebar-small .sidebar-toggle svg { transform: rotate(180deg); }
.topbar {
  position: fixed; z-index: 20; top: 0; right: 0; left: var(--sidebar); height: var(--topbar);
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--border-soft); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); transition: left .2s ease;
}
.title-block h1 {
  margin: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.5px;
}
.title-block p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-clock svg { width: 14px; height: 14px; }
.user-chip { padding-left: 12px; border-left: 1px solid var(--border); }
.user-chip strong, .user-chip small { display: block; text-align: right; }
.user-chip small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.icon-button {
  width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); background: var(--surface-2); cursor: pointer;
}
.icon-button:hover { color: var(--text); background: var(--surface-3); }
.icon-button svg { width: 17px; height: 17px; }
.content { max-width: var(--page-max); margin: 0 auto; padding: 20px var(--page-pad-x) 28px; }
.notice {
  margin-bottom: 14px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--border));
  border-radius: 8px; color: var(--green); background: var(--green-soft);
}
.error-notice { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); background: var(--red-soft); }
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.kpi-card {
  min-height: 94px; padding: 15px 17px; display: flex; justify-content: space-between;
  border-right: 1px solid var(--border); background: transparent; cursor: pointer;
}
.kpi-card:last-child { border-right: 0; }
.kpi-card:hover, .kpi-card.selected { background: var(--surface-2); }
.kpi-card.selected { box-shadow: inset 0 -3px var(--primary); }
.kpi-card span, .kpi-card small { display: block; color: var(--muted); }
.kpi-card strong { display: block; margin: 7px 0 4px; font-size: 25px; line-height: 1; }
.kpi-card small { font-size: 11px; }
.kpi-icon { width: 30px; height: 30px; }
.kpi-card.blue .kpi-icon { color: var(--primary); }
.kpi-card.green .kpi-icon { color: var(--green); }
.kpi-card.amber .kpi-icon { color: var(--amber); }
.kpi-card.purple .kpi-icon { color: var(--purple); }
.filter-section {
  margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.filter-primary, .filter-secondary { min-height: 50px; padding: 8px 12px; display: flex; align-items: center; gap: 9px; }
.filter-secondary { min-height: 44px; border-top: 1px solid var(--border-soft); color: var(--muted); }
.search-box {
  height: 38px; flex: 1; min-width: 260px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface-2);
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-box svg { width: 17px; height: 17px; flex: none; }
.select-wrap select {
  height: 34px; min-width: 128px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); background: var(--surface-2);
}
.result-count { margin-left: auto; font-size: 12px; }
.result-count strong { color: var(--primary); }
.auto-check-note { font-size: 11px; color: var(--muted); }
.primary-button, .secondary-button, .danger-button, .check-button {
  min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 7px; cursor: pointer;
}
.primary-button { border: 1px solid #1d70df; color: white; background: #176fe1; }
.primary-button:hover { background: var(--primary); }
.secondary-button { border: 1px solid var(--border); color: var(--text); background: var(--surface-2); }
.secondary-button:hover { background: var(--surface-3); }
.danger-button { border: 1px solid color-mix(in srgb, var(--red) 60%, var(--border)); color: var(--red); background: transparent; }
.check-button { min-height: 30px; padding: 0 10px; border: 1px solid #1c6bd3; color: white; background: #176fe1; font-size: 11px; }
.check-button:hover { background: var(--primary); }
.check-button:disabled { opacity: .55; cursor: wait; }
.patient-check-button {
  min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--surface-2); cursor: pointer;
}
.patient-check-button.connected { color: var(--green); border-color: color-mix(in srgb, var(--green) 48%, var(--border)); background: var(--green-soft); }
.patient-check-button.failed { color: var(--red); border-color: color-mix(in srgb, var(--red) 48%, var(--border)); background: var(--red-soft); }
.patient-check-button.unconfigured { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 48%, var(--border)); background: var(--amber-soft); }
.patient-check-button.checking { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 48%, var(--border)); background: var(--primary-soft); }
.patient-check-button.unchecked { color: var(--muted); }
.patient-check-button:disabled { opacity: .7; cursor: wait; }
.connection-state-icon { width: 13px; height: 13px; display: inline-grid; place-items: center; font-size: 13px; line-height: 1; }
.table-card { margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.table-scroll { max-height: calc(100vh - 342px); min-height: 320px; overflow: auto; position: relative; }
.registry-help { margin: 14px 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface); }
.registry-help strong { color: var(--text); }
.registry-help span { margin-left: 10px; }
.registry-action-help { margin-top: -6px; display: flex; flex-wrap: wrap; gap: 5px 10px; }
.registry-action-help span { margin-left: 0; }
.registry-list { margin-top: 14px; display: grid; gap: 10px; }
.registry-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.registry-card.is-stale { opacity: .72; }
.registry-card > header { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.registry-card > header strong, .registry-card > header small { display: block; }
.registry-card > header small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.registry-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.registry-server-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 7px; color: var(--muted); background: var(--surface-3); }
.registry-server-icon svg { width: 17px; height: 17px; }
.registry-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.registry-form { padding: 12px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr .55fr 1fr auto; gap: 9px; align-items: end; }
.registry-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.registry-form input { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); outline: 0; }
.registry-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.registry-form input:read-only { color: var(--muted); background: var(--surface-2); }
.registry-observed { grid-column: 1 / -2; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.registry-observed b { color: var(--text); font-weight: 600; }
.registry-actions { grid-column: -2 / -1; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.registered-note { min-height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--border)); border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 700; }
.registry-actions .danger-button { min-height: 34px; font-size: 12px; }
.danger-text { color: var(--red); }
.registry-page .operations-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) {
  .registry-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registry-actions { grid-column: auto; grid-row: auto; }
  .registry-observed { grid-column: 1 / -1; }
}
table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.integration-table th:nth-child(1) { width: 15%; }
.integration-table th:nth-child(2) { width: 18%; }
.integration-table th:nth-child(3) { width: 9%; }
.integration-table th:nth-child(4) { width: 16%; }
.integration-table th:nth-child(5) { width: 12%; }
.integration-table th:nth-child(6) { width: 11%; }
.integration-table th:nth-child(7) { width: 13%; }
.integration-table th:nth-child(8) { width: 6%; }
thead { position: sticky; z-index: 2; top: 0; background: var(--surface-2); }
th { height: 38px; color: var(--muted); font-size: 11px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--border); }
th, td { padding: 0 10px; }
tbody tr { min-height: 50px; border-bottom: 1px solid var(--border-soft); }
tbody tr:hover { background: var(--surface-2); }
.summary-row { cursor: pointer; }
.summary-row.expanded { background: var(--surface-2); }
.row-chevron { display: inline-block; width: 16px; color: var(--muted); font-size: 18px; line-height: 10px; transition: transform .18s ease; transform-origin: center; }
.summary-row.expanded .row-chevron { transform: rotate(90deg); color: var(--primary); }
.expanded-detail-row, .expanded-detail-row:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.expanded-detail-row td { height: auto; padding: 10px; overflow: visible; white-space: normal; }
td { height: 50px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hospital-cell strong, .hospital-cell small, .status-stack span { display: block; overflow: hidden; text-overflow: ellipsis; }
.hospital-cell small, .status-stack small, .muted { margin-top: 3px; color: var(--muted); font-size: 11px; }
.wrap-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  width: fit-content; padding: 4px 7px; display: inline-flex !important; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 5px; font-size: 11px;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.badge.success { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, var(--border)); background: var(--green-soft); }
.badge.success i { background: var(--green); }
.badge.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, var(--border)); background: var(--red-soft); }
.badge.danger i { background: var(--red); }
.badge.warning { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, var(--border)); background: var(--amber-soft); }
.badge.warning i { background: var(--amber); }
.badge.neutral { color: var(--muted); background: var(--surface-2); }
.row-actions { display: flex; align-items: center; gap: 6px; }
.detail-link { color: var(--primary); font-weight: 700; }
.table-empty { height: 260px; text-align: center; color: var(--muted); }
.spinner {
  width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.45); border-top-color: white;
  border-radius: 50%; animation: spin .8s linear infinite;
}
.spinner.dark { border-color: color-mix(in srgb, var(--primary) 28%, transparent); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.compact-accordion-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.compact-accordion-grid details {
  min-width: 0; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface);
}
.compact-accordion-grid summary {
  min-height: 38px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between;
  color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none;
}
.compact-accordion-grid summary::-webkit-details-marker { display: none; }
.compact-accordion-grid summary::after { content: '+'; color: var(--muted); font-size: 16px; }
.compact-accordion-grid details[open] summary { border-bottom: 1px solid var(--border-soft); }
.compact-accordion-grid details[open] summary::after { content: '−'; color: var(--primary); }
.compact-accordion-grid dl { margin: 0; padding: 8px 10px; }
.compact-accordion-grid dl div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px;
  padding: 5px 0; border-top: 1px solid var(--border-soft);
}
.compact-accordion-grid dl div:first-child { border-top: 0; }
.compact-accordion-grid dt { color: var(--muted); font-size: 11px; }
.compact-accordion-grid dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.45; }
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); background: var(--surface-3); box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.page-heading-card {
  min-height: 78px; padding: 14px 18px; display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.page-heading-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.page-heading-card h2 { margin: 0; font-size: 18px; }
.page-heading-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.detail-status { margin-top: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.detail-status .check-button { margin-left: auto; }
.settings-accordion {
  margin-top: 14px; overflow: hidden; border: 1px solid var(--border);
  border-radius: 11px; background: var(--surface);
}
.settings-accordion > details + details { border-top: 1px solid var(--border-soft); }
.settings-accordion > details > summary {
  min-height: 54px; padding: 9px 16px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; list-style: none;
}
.settings-accordion > details > summary::-webkit-details-marker { display: none; }
.settings-accordion > details > summary::after {
  content: '+'; margin-left: auto; color: var(--muted); font-size: 18px; font-weight: 500;
}
.settings-accordion > details[open] > summary {
  border-bottom: 1px solid var(--border-soft); background: var(--surface-2);
}
.settings-accordion > details[open] > summary::after { content: '−'; color: var(--primary); }
.settings-accordion summary span { display: grid; gap: 2px; }
.settings-accordion summary strong { color: var(--text); font-size: 13px; }
.settings-accordion summary small { color: var(--muted); font-size: 11px; font-weight: 400; }
.setting-alert {
  margin-left: auto; padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--border));
  border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 10px; font-style: normal;
}
.settings-accordion > details > summary:has(.setting-alert)::after { margin-left: 0; }
.form-card { margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.form-card > header { min-height: 60px; padding: 13px 17px; border-bottom: 1px solid var(--border-soft); }
.form-card h3 { margin: 0; font-size: 14px; }
.form-card header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.form-grid { padding: 14px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); background: var(--surface-2); outline: 0;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--primary); }
.form-grid input:read-only, .form-grid textarea:read-only { opacity: .78; }
.form-grid textarea { min-height: 68px; resize: vertical; line-height: 1.45; }
.form-grid label small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.server-ip-field { min-width: 0; display: grid; gap: 7px; }
.server-ip-field .field-label { color: var(--muted); font-size: 12px; }
.server-ip-list { display: grid; gap: 7px; }
.server-ip-remove, .server-ip-add {
  border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface);
}
.server-ip-remove { width: 34px; height: 36px; font-size: 18px; }
.server-ip-add { min-height: 34px; padding: 0 10px; justify-self: start; font-size: 11px; font-weight: 700; }
.server-ip-remove:hover, .server-ip-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.server-ip-add:disabled { cursor: not-allowed; opacity: .45; }
.server-ip-field > small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.communication-editor { padding: 16px; display: grid; gap: 12px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.primary-connection-card, .compact-settings-card { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.primary-connection-card > header, .compact-settings-card > header, .issue-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.primary-connection-card h3, .compact-settings-card h3, .issue-manager-heading h3 { margin: 0; font-size: 14px; }
.primary-connection-card header p, .compact-settings-card header p, .issue-manager-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.section-kicker { margin-bottom: 5px; color: var(--primary); font-size: 10px; font-weight: 700; }
.connection-flow { padding: 6px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 700; white-space: nowrap; }
.connection-flow b { padding: 0 5px; color: var(--primary); }
.connection-primary-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 10px; align-items: center; }
.primary-ip-field { min-width: 0; display: grid; gap: 7px; }
.primary-ip-field > span { color: var(--text); font-size: 11px; font-weight: 800; }
.primary-ip-field input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface-2); font-family: inherit; font-size: 14px; font-weight: 600; outline: 0; }
.primary-ip-field.accent input { border-color: color-mix(in srgb, var(--primary) 58%, var(--border)); background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface)); }
.primary-ip-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.primary-ip-field small { color: var(--muted); font-size: 9px; }
.connection-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-size: 17px; font-weight: 800; }
.inline-guidance { margin-top: 12px; padding: 9px 11px; border-radius: 8px; font-size: 10px; }
.inline-guidance.warning { color: var(--amber); background: var(--amber-soft); }
.compact-settings-card { display: grid; gap: 12px; }
.compact-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; }
.compact-settings-grid label, .security-policy-field, .advanced-settings-body label, .reference-notes { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.compact-settings-grid input, .compact-settings-grid select, .security-policy-field textarea, .advanced-settings-body textarea, .reference-notes textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-2); outline: 0; }
.compact-settings-grid input, .compact-settings-grid select { height: 38px; padding: 0 10px; }
.compact-settings-grid input:focus, .compact-settings-grid select:focus, .security-policy-field textarea:focus, .advanced-settings-body textarea:focus, .reference-notes textarea:focus { border-color: var(--primary); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 32px; }
.input-suffix span { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); font-size: 10px; }
.security-policy-field textarea { min-height: 58px; padding: 9px 10px; resize: vertical; }
.endpoint-field { margin: 0; padding: 0; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.endpoint-heading { min-height: 58px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.endpoint-heading::-webkit-details-marker { display: none; }
.endpoint-heading > div { display: grid; gap: 3px; }
.endpoint-heading strong { font-size: 13px; }
.endpoint-heading small, .endpoint-body > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.endpoint-summary-actions { margin-left: auto; }
.endpoint-body { padding: 0 14px 14px; display: grid; gap: 10px; border-top: 1px solid var(--border-soft); }
.endpoint-body .endpoint-list { margin-top: 12px; }
.endpoint-list { display: grid; gap: 9px; }
.endpoint-row { padding: 10px; display: grid; grid-template-columns: 56px repeat(5, minmax(110px, 1fr)) 34px; gap: 8px; align-items: end; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.endpoint-row label { min-width: 0; display: grid; gap: 5px; }
.endpoint-row label span, .endpoint-number, .endpoint-state { color: var(--muted); font-size: 10px; font-weight: 700; }
.endpoint-row input { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); }
.endpoint-row input:focus { border-color: var(--primary); outline: none; }
.endpoint-state { grid-column: 2 / -2; font-weight: 500; }
.endpoint-remove { width: 34px; height: 36px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 18px; cursor: pointer; }
.endpoint-remove:hover { border-color: var(--danger); color: var(--danger); }
.issue-summary-count { margin-left: auto; padding: 3px 8px; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 10px; font-style: normal; white-space: nowrap; }
.settings-accordion > details > summary:has(.issue-summary-count)::after { margin-left: 0; }
.issue-manager { padding: 16px; display: grid; gap: 12px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.primary-button.compact { min-height: 34px; padding: 0 11px; font-size: 11px; }
.issue-editor-list { display: grid; gap: 9px; }
.issue-editor-card { padding: 12px; display: grid; gap: 9px; border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 10px; background: var(--surface); }
.issue-editor-card.completed { border-left-color: var(--green); opacity: .78; }
.issue-editor-card > header { display: flex; align-items: center; gap: 8px; }
.issue-status-badge { padding: 3px 7px; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 9px; font-weight: 800; }
.issue-editor-card.completed .issue-status-badge { color: var(--green); background: var(--green-soft); }
.issue-date { color: var(--muted); font-size: 9px; }
.issue-remove { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 16px; cursor: pointer; }
.issue-remove:hover { color: var(--red); background: var(--red-soft); }
.issue-editor-card textarea { min-height: 68px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-2); resize: vertical; outline: 0; line-height: 1.45; }
.issue-editor-card textarea:focus { border-color: var(--primary); }
.issue-editor-card > footer { display: flex; justify-content: flex-end; }
.issue-complete-button { min-height: 30px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--green) 42%, var(--border)); border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 800; cursor: pointer; }
.issue-editor-card.completed .issue-complete-button { border-color: var(--border); color: var(--muted); background: var(--surface-2); }
.issue-empty { padding: 24px; display: grid; place-items: center; gap: 5px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); text-align: center; }
.issue-empty strong { color: var(--text); font-size: 12px; }
.issue-empty span { font-size: 10px; }
.legacy-issue-history { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.legacy-issue-history > summary { padding: 10px 12px; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.legacy-issue-history > div { padding: 0 12px 12px; display: grid; gap: 8px; }
.legacy-issue-history section { padding: 9px; border-radius: 7px; background: var(--surface-2); }
.legacy-issue-history strong { font-size: 10px; }
.legacy-issue-history p { margin: 5px 0 0; white-space: pre-wrap; font-size: 10px; line-height: 1.5; }
.reference-notes textarea { min-height: 58px; padding: 9px 10px; font-family: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
.advanced-settings-body { padding: 16px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 12px; }
.advanced-settings-body textarea { min-height: 88px; padding: 10px; resize: vertical; line-height: 1.45; }
.advanced-settings-body .properties-content-field textarea { min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-footer { padding: 14px 17px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border-soft); }

.report-content { width: 100%; max-width: 1800px !important; padding: 20px 22px 28px !important; font-size: 14px; }
.report-page .app-shell { font-family: Pretendard, Inter, system-ui, -apple-system, sans-serif !important; }
.report-page button, .report-page input, .report-page select, .report-page textarea {
  font-family: Pretendard, Inter, system-ui, -apple-system, sans-serif !important;
}
.report-page .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}
.report-content > section {
  overflow: hidden; border-color: var(--border) !important; border-radius: 10px !important;
  background: var(--surface) !important; box-shadow: none !important;
}
.report-content .bg-white { background-color: var(--surface) !important; }
.report-content .bg-slate-50, .report-content .bg-slate-50\/70, .report-content .bg-slate-100 { background-color: var(--surface-2) !important; }
.report-content .border-slate-200, .report-content .border-slate-300 { border-color: var(--border) !important; }
.report-content .text-slate-900, .report-content .text-slate-800, .report-content .text-slate-700 { color: var(--text) !important; }
.report-content .text-slate-600, .report-content .text-slate-500 { color: var(--muted) !important; }
.report-content .rounded-2xl { border-radius: 10px !important; }
.report-content .rounded-xl { border-radius: 7px !important; }
.report-content .shadow-sm { box-shadow: none !important; }
.report-content input, .report-content select {
  border-color: var(--border) !important; color: var(--text) !important; background-color: var(--surface-2) !important;
}
.report-content input::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent) !important; }
.report-content #report-check-submit, .report-content .bg-blue-700 {
  border: 1px solid #1d70df; color: #fff !important; background: #176fe1 !important;
}
.report-content #report-check-submit:hover, .report-content .bg-blue-700:hover { background: var(--primary) !important; }
.report-content h1 { font-size: 18px !important; letter-spacing: -.35px; }
.report-content h2 { font-size: 14px !important; }
.report-content label, .report-content button, .report-content input, .report-content select { font-size: 12px !important; }
.report-content p { font-size: 12px !important; }
.report-content .text-xs { font-size: 12px !important; }
.report-content [data-log-line] { font-size: 12px !important; line-height: 1.65; }
.report-content [data-log-line] { border-color: var(--border-soft) !important; background: var(--surface-2) !important; }

@media (max-width: 1050px) {
  :root { --sidebar: 72px; }
  .sidebar-brand div:last-child, .nav-item span, .sidebar-footer span { display: none; }
  .sidebar-brand, .nav-item { justify-content: center; padding-right: 0; padding-left: 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card:nth-child(2) { border-right: 0; }
  .kpi-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .form-grid, .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-3 { grid-column: span 2; }
  .compact-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advanced-settings-body { grid-template-columns: 1fr; }
  .endpoint-row { grid-template-columns: 56px repeat(2, minmax(0, 1fr)) 34px; }
  .endpoint-state { grid-column: 2 / -2; }
  .compact-accordion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-table th:nth-child(5),
  .integration-table td:nth-child(5),
  .integration-table th:nth-child(6),
  .integration-table td:nth-child(6) { display: none; }
  .integration-table { min-width: 760px; }
}
@media (max-width: 720px) {
  :root { --sidebar: 0px; --topbar: 104px; }
  .topbar { padding: 12px 16px; align-items: flex-start; }
  .header-actions { align-self: flex-end; }
  .header-clock { display: none; }
  .user-chip { display: none; }
  .content { padding: 14px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .filter-primary, .filter-secondary { flex-wrap: wrap; }
  .search-box { min-width: 100%; }
  .result-count { width: 100%; margin: 0; text-align: right; }
  .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }
  .communication-editor, .issue-manager { padding: 12px; }
  .primary-connection-card > header, .compact-settings-card > header, .issue-manager-heading { align-items: stretch; flex-direction: column; }
  .connection-flow { align-self: flex-start; }
  .connection-primary-grid { grid-template-columns: 1fr; }
  .connection-arrow { transform: rotate(90deg); justify-self: center; }
  .compact-settings-grid { grid-template-columns: 1fr; }
  .endpoint-heading { align-items: flex-start; }
  .endpoint-row { grid-template-columns: 1fr 34px; }
  .endpoint-number { grid-column: 1; }
  .endpoint-row label { grid-column: 1 / -1; }
  .endpoint-row .endpoint-remove { grid-column: 2; grid-row: 1; }
  .endpoint-state { grid-column: 1 / -1; }
  .compact-accordion-grid { grid-template-columns: 1fr; }
  .integration-table th:nth-child(2),
  .integration-table td:nth-child(2),
  .integration-table th:nth-child(7),
  .integration-table td:nth-child(7) { display: none; }
  .integration-table { min-width: 560px; }
  .report-content { padding: 14px !important; }
}

/* Patientinfo incident timing */
.operations-table.has-last-failed { min-width: 1320px; }
.operations-table.has-last-failed th[data-column="communication"] { width: 150px; }
.operations-table.has-last-failed th[data-column="last-failed"] { width: 130px; }
.last-error-mobile { display: none; margin-top: 5px; color: var(--muted); font-size: var(--type-meta-size); line-height: 18px; }
.failure-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.failure-metadata > span { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface); }
.failure-metadata small { display: block; color: var(--muted); font-size: var(--type-meta-size); line-height: 18px; }
.failure-metadata strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: var(--type-label-size); font-weight: 650; line-height: 19px; font-variant-numeric: tabular-nums; }
.failure-message { margin-top: 10px; display: flex; align-items: flex-start; gap: 9px; }
.failure-message > svg { width: 18px; height: 18px; margin-top: 1px; flex: none; color: var(--red); }
.failure-message > div { min-width: 0; }
.result-message .failure-message p { margin-top: 3px; color: var(--text); font-size: var(--type-body-size); line-height: var(--type-body-line); overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .failure-metadata { grid-template-columns: 1fr; }
  .failure-metadata > span { padding: 8px 9px; }
  .last-error-mobile { display: block; }
  .operations-table.has-last-failed [data-column="last-failed"] { display: none !important; }
}

/* EMR operations dashboard */
.emr-dashboard {
  height: calc(100vh - var(--topbar)); min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.emr-dashboard > .notice,
.emr-dashboard > .operations-kpi-grid,
.emr-dashboard > .summary-card-grid,
.emr-dashboard > .dashboard-filters { flex: none; }
.operations-kpi-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.operations-kpi {
  min-height: 78px; padding: 12px 15px; border-right: 1px solid var(--border-soft);
  background: transparent; transition: background .15s ease, box-shadow .15s ease;
}
.operations-kpi:last-child { border-right: 0; }
.operations-kpi:hover, .operations-kpi.selected { background: var(--surface-2); }
.operations-kpi.selected { box-shadow: inset 0 -3px var(--primary); }
.operations-kpi span, .operations-kpi small { display: block; color: var(--muted); }
.operations-kpi span { font-size: 11px; font-weight: 700; }
.operations-kpi strong { display: block; margin: 5px 0 3px; font-size: 23px; line-height: 1; }
.operations-kpi small { font-size: 10px; }
.operations-kpi.green.selected { box-shadow: inset 0 -3px var(--green); }
.operations-kpi.amber.selected { box-shadow: inset 0 -3px var(--amber); }
.operations-kpi.red.selected { box-shadow: inset 0 -3px var(--red); }

.dashboard-filters { overflow: visible; }
.dashboard-filters .filter-primary { border-radius: 10px 10px 0 0; }
.column-picker { position: relative; }
.column-picker > summary {
  min-height: 36px; padding: 0 11px; display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2);
  color: var(--text); cursor: pointer; list-style: none;
}
.column-picker > summary::-webkit-details-marker { display: none; }
.column-picker > div {
  position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; width: 170px;
  padding: 10px; display: grid; gap: 8px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgba(15, 31, 54, .16);
}
.column-picker label { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.filter-result-row {
  min-height: 38px; padding: 6px 12px; display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border-soft); color: var(--muted);
}

.operations-table-card { min-height: 0; flex: 1; overflow: hidden; }
.operations-table-card .table-scroll {
  width: 100%; height: 100%; max-height: none; min-height: 0; overflow: auto;
}
.operations-table { min-width: 1180px; table-layout: fixed; }
.operations-table thead { position: static; }
.operations-table thead th {
  position: sticky; z-index: 2; top: 0;
  height: 40px; background: var(--surface-2);
}
.operations-table td { height: 52px; }
.operations-table th:nth-child(1) { width: 15%; }
.operations-table th:nth-child(2) { width: 17%; }
.operations-table th:nth-child(3) { width: 10%; }
.operations-table th:nth-child(4) { width: 12%; }
.operations-table th:nth-child(5) { width: 11%; }
.operations-table th:nth-child(6) { width: 9%; }
.operations-table th:nth-child(7) { width: 10%; }
.operations-table th:nth-child(8) { width: 10%; }
.operations-table th:nth-child(9) { width: 6%; }
.operations-table .summary-row.selected-row { background: var(--primary-soft); box-shadow: inset 3px 0 var(--primary); }

/* Integration detail console */
.integration-detail-page {
  --console-radius: 10px;
  --console-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 24px rgba(15, 23, 42, .025);
}
.integration-detail-page .app-shell { background: #f7f8fa; }
:root[data-theme='dark'] .integration-detail-page .app-shell { background: var(--bg); }
.detail-console { max-width: var(--page-max); padding: 16px var(--page-pad-x) 80px; }
.detail-topbar { height: 64px; }
.detail-topbar + .detail-console { min-height: calc(100vh - 64px); }
.detail-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.detail-breadcrumb a:hover { color: var(--text); }
.detail-breadcrumb svg { width: 14px; height: 14px; flex: none; }
.detail-breadcrumb span { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.sidebar-small .nav-item { position: relative; }
.sidebar-small .nav-item:hover::after {
  content: attr(title); position: absolute; z-index: 50; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--surface);
  box-shadow: 0 5px 18px rgba(15, 23, 42, .12); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.integration-detail-page .nav-item.active { position: relative; color: var(--text); background: var(--surface-3); }
.integration-detail-page .nav-item.active::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.integration-detail-page .nav-item svg { width: 18px; height: 18px; flex: none; }

.entity-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.entity-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.back-link { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface); }
.back-link:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.back-link svg { width: 18px; height: 18px; }
.entity-title-line { min-width: 0; display: flex; align-items: center; gap: 9px; }
.entity-title-line h1 { margin: 0; overflow: hidden; font-size: 22px; line-height: 1.25; letter-spacing: -.45px; text-overflow: ellipsis; white-space: nowrap; }
.entity-id { padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 700; }
.entity-meta { margin-top: 7px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.entity-meta i { width: 3px; height: 3px; flex: none; border-radius: 50%; background: var(--border); }
.entity-actions { display: flex; align-items: center; gap: 12px; }
.action-with-icon svg { width: 16px; height: 16px; }

.status-bento { margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--console-radius); background: var(--border-soft); box-shadow: var(--console-shadow); }
.status-metric { min-width: 0; min-height: 88px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 0; background: var(--surface); }
.metric-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon.success, .status-badge.success { color: var(--green); background: var(--green-soft); }
.metric-icon.complete { color: var(--green); background: var(--green-soft); }
.metric-icon.progress, .metric-icon.warning, .status-badge.warning { color: var(--amber); background: var(--amber-soft); }
.metric-icon.danger, .status-badge.danger { color: var(--red); background: var(--red-soft); }
.metric-icon.neutral, .metric-icon.not-connected, .metric-icon.needs-check, .status-badge.neutral { color: var(--muted); background: var(--surface-3); }
.status-metric div { min-width: 0; flex: 1; }
.status-metric small { display: block; color: var(--muted); font-size: 10px; }
.status-metric strong { margin-top: 4px; display: block; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.status-metric p { margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.status-metric .metric-metadata { display: flex; align-items: center; gap: 4px; }
.status-metric .metric-metadata span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-metric .metric-metadata i { flex: none; color: var(--border-strong); font-style: normal; }

.console-form { margin-top: 12px; }
.detail-tabs { position: sticky; z-index: 12; top: var(--topbar); display: flex; align-items: center; gap: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; border-bottom: 1px solid var(--border); background: color-mix(in srgb, #f7f8fa 94%, transparent); backdrop-filter: blur(10px); }
.detail-tabs::-webkit-scrollbar { display: none; }
:root[data-theme='dark'] .detail-tabs { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.detail-tabs button { position: relative; min-height: 48px; padding: 0 14px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.detail-tabs button::after { content: ''; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; transform: scaleX(0); border-radius: 2px 2px 0 0; background: var(--primary); transition: transform .16s ease; }
.detail-tabs button:hover { color: var(--text); }
.detail-tabs button[aria-selected='true'] { color: var(--primary); }
.detail-tabs button[aria-selected='true']::after { transform: scaleX(1); }
.detail-tabs button:focus-visible { border-radius: 6px; outline: 2px solid color-mix(in srgb, var(--primary) 65%, transparent); outline-offset: -4px; }
.detail-tabs svg { width: 16px; height: 16px; stroke-width: 1.6; }
.tab-count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 9px; }
.tab-panel { min-width: 0; padding-top: 16px; animation: panel-in .14s ease; }
.tab-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: .25; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.form-alert { margin: 16px 0 0; padding: 11px 13px; display: flex; gap: 8px; border: 1px solid color-mix(in srgb, var(--red) 45%, var(--border)); border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 12px; }

.console-section { border: 1px solid var(--border); border-radius: var(--console-radius); background: var(--surface); box-shadow: var(--console-shadow); }
.console-section + .console-section { margin-top: 16px; }
.console-section > header { padding: 12px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border-soft); }
.console-section > header h2 { margin: 2px 0 0; font-size: 14px; line-height: 1.3; }
.console-section > header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.eyebrow { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.status-badge { min-height: 24px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.text-button { padding: 4px 2px; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--text); }
.compact-empty { min-height: 58px; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; text-align: center; }
.compact-empty svg { width: 18px; height: 18px; color: var(--green); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; align-items: start; }
.overview-grid .console-section { margin-top: 0; }
.overview-check-card { grid-column: 1; }
.check-result-layout { padding: 16px; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 18px; }
.description-list { margin: 0; }
.description-list div { min-height: 34px; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--border-soft); }
.description-list div:last-child { border-bottom: 0; }
.description-list dt { color: var(--muted); font-size: 10px; }
.description-list dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 600; }
.result-message { padding: 12px; border-radius: 8px; background: var(--surface-2); }
.result-message strong { font-size: 11px; }
.result-message p { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.55; }
.result-message.warning { border-left: 3px solid var(--amber); }
.result-message.danger { border-left: 3px solid var(--red); }
.compact-issue-list { padding: 5px 14px; }
.compact-issue-list article { min-height: 52px; display: flex; align-items: flex-start; gap: 9px; border-bottom: 1px solid var(--border-soft); }
.compact-issue-list article:last-child { border-bottom: 0; }
.status-dot { width: 7px; height: 7px; margin-top: 16px; flex: none; border-radius: 50%; background: var(--amber); }
.compact-issue-list div { min-width: 0; padding: 10px 0; }
.compact-issue-list strong { display: -webkit-box; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.compact-issue-list small { margin-top: 4px; display: block; color: var(--muted); font-size: 9px; }
.compact-timeline { padding: 8px 14px 12px; }
.compact-timeline article { position: relative; min-height: 56px; padding-left: 18px; }
.compact-timeline article::before { content: ''; position: absolute; top: 14px; bottom: -8px; left: 3px; width: 1px; background: var(--border); }
.compact-timeline article:last-child::before { display: none; }
.compact-timeline article > span { position: absolute; top: 8px; left: 0; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--border); }
.compact-timeline strong { font-size: 11px; }
.compact-timeline p { margin: 3px 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.compact-timeline small { color: var(--muted); font-size: 9px; }
.overview-note { margin: 0; padding: 14px 16px; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); font-size: 12px; line-height: 1.6; }

.form-section { padding-bottom: 16px; }
.field-grid { padding: 16px; display: grid; gap: 14px 16px; align-items: start; }
.field-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid.four-column { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.field-grid.properties-grid { grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); }
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: 1 / -1; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--muted); font-size: 11px; }
.field > span, .field-heading > span { color: var(--text); font-size: 11px; font-weight: 700; }
.field > span em { color: var(--red); font-style: normal; }
.field > span mark { margin-left: 3px; padding: 2px 5px; border-radius: 4px; color: var(--muted); background: var(--surface-3); font-size: 9px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); outline: 0; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field input, .field select { height: 38px; padding: 0 10px; }
.field textarea { min-height: 78px; padding: 9px 10px; line-height: 1.5; resize: vertical; }
.field textarea.compact-autogrow { height: 38px; min-height: 38px; max-height: 128px; overflow-y: hidden; resize: none; }
.field input:hover:not(:read-only), .field select:hover:not(:disabled), .field textarea:hover:not(:read-only) { border-color: color-mix(in srgb, var(--text) 24%, var(--border)); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 11%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .endpoint-node.invalid input { border-color: var(--red); }
.field .field-error, .endpoint-node .field-error { color: var(--red); font-size: 10px; font-weight: 600; }
.section-field-error { margin: 12px 14px 0; padding: 9px 10px; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 600; }
.field input:read-only, .field textarea:read-only, .field select:disabled { color: var(--muted); background: var(--surface-2); cursor: default; }
.field small, .field-heading small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.field small b { padding: 1px 4px; border-radius: 4px; color: var(--muted); background: var(--surface-3); font-size: 9px; }
.input-addon { position: relative; }
.input-addon input { padding-right: 36px; }
.input-addon span { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); color: var(--muted); font-size: 10px; }
.method-selector { margin: 0 16px; padding-top: 14px; display: grid; gap: 10px; border-top: 1px solid var(--border-soft); }
.field-heading { display: grid; gap: 4px; }
.tag-options { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-option { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 650; cursor: pointer; }
.tag-option span { display: none; }
.tag-option:hover { border-color: color-mix(in srgb, var(--text) 28%, var(--border)); color: var(--text); }
.tag-option.selected { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); color: var(--green); background: var(--green-soft); }
.tag-option.selected span { display: inline; }
.tag-option:disabled { opacity: .65; cursor: default; }
.custom-method { max-width: 520px; padding-bottom: 2px; }

.connection-workspace > header { align-items: center; }
.endpoint-visual { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) minmax(150px, .35fr); gap: 14px; align-items: center; }
.endpoint-node { min-width: 0; padding: 14px; display: grid; gap: 7px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.endpoint-node.ack { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); }
.node-type { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.endpoint-node strong { font-size: 11px; }
.endpoint-node input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font-size: 13px; font-weight: 600; outline: 0; }
.endpoint-node input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 11%, transparent); }
.endpoint-node small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-connector { display: flex; align-items: center; color: var(--muted); }
.endpoint-connector span { height: 1px; flex: 1; background: var(--border); }
.endpoint-connector svg { width: 18px; height: 18px; margin-left: -2px; }
.endpoint-health { min-width: 0; display: grid; justify-items: start; gap: 7px; }
.endpoint-health small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.inline-alert { margin: 0 20px 18px; padding: 9px 11px; border-radius: 7px; font-size: 10px; }
.inline-alert.warning { color: var(--amber); background: var(--amber-soft); }
.endpoint-manager > header { align-items: center; }
.endpoint-card-list { padding: 14px; display: grid; gap: 10px; }
.endpoint-card { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.endpoint-card > header { min-height: 43px; padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.endpoint-card > header > div { display: flex; align-items: center; gap: 8px; }
.endpoint-number { font-size: 11px; font-weight: 750; }
.icon-button.subtle { width: 28px; height: 28px; border-color: transparent; background: transparent; }
.icon-button.subtle:hover { border-color: var(--border); background: var(--surface); }
.icon-button.subtle svg { width: 15px; height: 15px; }
.endpoint-fields { padding: 12px; display: grid; grid-template-columns: minmax(120px, .72fr) minmax(150px, 1fr) minmax(190px, 1.2fr) minmax(160px, 1fr) minmax(140px, .8fr) minmax(84px, .45fr); grid-template-areas: "role server ssh ack check port"; gap: 10px; align-items: start; }
.endpoint-fields > .field { min-width: 0; }
.endpoint-fields > .field input, .endpoint-fields > .field select { width: 100%; }
.endpoint-field-role { grid-area: role; }.endpoint-field-server { grid-area: server; }.endpoint-field-ssh { grid-area: ssh; }.endpoint-field-ack { grid-area: ack; }.endpoint-field-check { grid-area: check; }.endpoint-field-port { grid-area: port; }
.endpoint-card > footer { padding: 0 12px 10px; display: flex; flex-wrap: wrap; gap: 5px 16px; color: var(--muted); font-size: 9px; }
.endpoint-card > footer strong { color: var(--text); font-weight: 650; }
.endpoint-empty { margin: 0 14px 14px; border: 1px dashed var(--border); border-radius: 8px; }

.issues-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 16px; align-items: start; }
.issue-workspace > header { align-items: center; }
.issue-filter { padding: 10px 14px; display: flex; gap: 4px; border-bottom: 1px solid var(--border-soft); }
.issue-filter button { min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.issue-filter button:hover, .issue-filter button.active { color: var(--text); background: var(--surface-2); }
.issue-filter span { min-width: 17px; height: 17px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface-3); font-size: 8px; }
.issue-workspace .issue-editor-list { padding: 12px; }
.issue-workspace .issue-editor-card { box-shadow: none; }
.issue-editor-card[hidden] { display: none; }
.issue-editor-card .icon-button { margin-left: auto; }
.issue-date { line-height: 1.5; }
.issue-history-column .console-section { margin-top: 0; }
.audit-timeline { padding: 14px; }
.audit-timeline article { position: relative; min-height: 72px; padding: 0 0 13px 22px; }
.audit-timeline article::before { content: ''; position: absolute; top: 9px; bottom: -2px; left: 4px; width: 1px; background: var(--border); }
.audit-timeline article:last-child { min-height: 45px; padding-bottom: 0; }
.audit-timeline article:last-child::before { display: none; }
.timeline-mark { position: absolute; top: 4px; left: 0; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--border); }
.audit-timeline strong { font-size: 11px; }
.audit-timeline p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.audit-timeline small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.legacy-records article { margin: 12px; padding: 10px; border-radius: 7px; background: var(--surface-2); }
.legacy-records article + article { margin-top: -4px; }
.legacy-records strong { font-size: 10px; }
.legacy-records p { margin: 5px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--muted); font-size: 10px; line-height: 1.55; }
.properties-grid .code-field textarea { min-height: 160px; max-height: 420px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.reference-textarea { min-height: 110px !important; font-family: inherit !important; font-size: 14px; }
.danger-zone { margin-top: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--red) 26%, var(--border)); border-radius: var(--console-radius); background: var(--surface); }
.danger-zone > summary { min-height: 60px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone summary span { display: grid; gap: 3px; }
.danger-zone summary strong { color: var(--red); font-size: 12px; }
.danger-zone summary small { color: var(--muted); font-size: 10px; font-weight: 400; }
.danger-zone summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .16s ease; }
.danger-zone[open] summary svg { transform: rotate(180deg); }
.danger-zone > div { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border-soft); background: color-mix(in srgb, var(--red-soft) 30%, var(--surface)); }
.danger-zone p { margin: 0; color: var(--muted); font-size: 11px; }

.sticky-save-bar { position: fixed; z-index: 25; right: 28px; bottom: 20px; left: calc(var(--sidebar) + 28px); max-width: 1484px; min-height: 58px; margin: auto; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; border: 1px solid color-mix(in srgb, var(--text) 18%, var(--border)); border-radius: 11px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 14px 40px rgba(15, 23, 42, .16); backdrop-filter: blur(12px); transition: transform .2s ease, opacity .2s ease, left .2s ease; }
.sticky-save-bar.visible { transform: none; opacity: 1; pointer-events: auto; }
.sticky-save-bar > div { display: flex; align-items: center; gap: 9px; }
.sticky-save-bar strong { font-size: 11px; }
.sticky-save-bar small { color: var(--muted); font-size: 10px; }
.unsaved-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: .48; cursor: not-allowed; }
.batch-connection-check-button { margin-left: auto; min-height: 36px; white-space: nowrap; }
.batch-connection-check-button span { margin-left: 4px; color: var(--primary); font-variant-numeric: tabular-nums; }
.batch-connection-check-button:disabled span { color: inherit; }
.drawer-actions .connection-check-button:disabled { opacity:1; color:#fff; border-color:#64748b; background:#64748b; }
.toast { bottom: 24px; border-color: color-mix(in srgb, var(--green) 35%, var(--border)); background: var(--surface); }
.toast[data-kind='error'] { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); color: var(--red); }
.has-save-bar .toast { bottom: 94px; }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(15, 23, 42, .48); }
.confirm-modal { width: min(460px, 100%); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 70px rgba(15, 23, 42, .3); }
.confirm-modal > header { padding: 16px; display: flex; align-items: flex-start; gap: 11px; border-bottom: 1px solid var(--border-soft); }
.confirm-modal > header > div { flex: 1; }
.confirm-modal h2 { margin: 0; font-size: 15px; }
.confirm-modal header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.danger-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: var(--red-soft); font-weight: 800; }
.confirm-modal form { padding: 16px; }
.confirm-modal form > p { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.confirm-modal form > p strong { color: var(--text); }
.confirm-modal footer { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
.batch-confirm-modal .batch-modal-body { padding: 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.batch-confirm-modal footer { margin: 0; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.batch-task-toast { position: fixed; z-index: 110; right: 24px; bottom: 24px; width: min(390px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 48px rgba(15, 23, 42, .22); }
.batch-task-toast > header { padding: 13px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-soft); }
.batch-task-toast .eyebrow { display: block; color: var(--primary); font-size: 10px; font-weight: 700; }
.batch-task-toast header strong { display: block; margin-top: 3px; font-size: 13px; }
.batch-task-toast header button { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface-2); font-size: 20px; cursor: pointer; }
.batch-task-body { padding: 13px 14px; }
.batch-progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.batch-progress-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-progress-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.batch-progress { height: 7px; margin: 10px 0; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.batch-progress i { height: 100%; display: block; border-radius: inherit; background: var(--primary); transition: width .25s ease; }
.batch-task-toast ul { max-height: 120px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.batch-task-toast li { padding: 7px 0; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-soft); font-size: 11px; }
.batch-task-toast li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-task-toast li.success strong { color: var(--green); }.batch-task-toast li.failed strong { color: var(--red); }
.batch-summary { margin-top: 10px; padding: 9px; border-radius: 7px; color: var(--text); background: var(--surface-2); font-size: 12px; font-weight: 700; }
.batch-task-toast footer { padding: 10px 14px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border-soft); }
@media (max-width: 760px) { .batch-task-toast { right: 10px; bottom: 10px; width: calc(100vw - 20px); } }

@media (max-width: 1280px) {
  .status-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .endpoint-visual { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); }
  .endpoint-health { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
  .endpoint-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "role server ssh" "ack check port"; }
  .overview-grid, .issues-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
}
@media (max-width: 1024px) {
  .detail-console { padding-right: 20px; padding-left: 20px; }
  .entity-header { align-items: flex-start; }
  .entity-actions { align-items: flex-end; flex-direction: column; }
  .overview-grid, .issues-layout { grid-template-columns: 1fr; }
  .field-grid.three-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.four-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.properties-grid { grid-template-columns: 1fr; }
  .sticky-save-bar { right: 20px; left: calc(var(--sidebar) + 20px); }
}
@media (max-width: 720px) {
  .detail-console { padding: 14px 14px 92px; }
  .detail-topbar { height: var(--topbar); }
  .detail-breadcrumb { display: none; }
  .entity-header { gap: 12px; flex-direction: column; }
  .entity-actions { width: 100%; align-items: stretch; flex-direction: row; justify-content: space-between; }
  .entity-actions .secondary-button { min-width: 0; min-height: 44px; }
  .entity-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .entity-meta i { display: none; }
  .status-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-metric { min-height: 84px; padding: 11px; }
  .status-metric strong, .status-metric p { white-space: normal; }
  .detail-tabs { top: var(--topbar); margin-right: -14px; margin-left: -14px; padding: 0 8px; scroll-padding-inline: 8px; scroll-snap-type: x proximity; }
  .detail-tabs button { min-height: 46px; padding: 0 11px; scroll-snap-align: nearest; }
  .detail-tabs svg { display: none; }
  .field-grid.two-column, .field-grid.three-column, .field-grid.four-column { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .field.span-3 { grid-column: 1; }
  .endpoint-visual { grid-template-columns: 1fr; }
  .endpoint-connector { width: 36px; transform: rotate(90deg); justify-self: center; }
  .endpoint-health { grid-column: 1; }
  .endpoint-fields { grid-template-columns: minmax(0, 1fr); grid-template-areas: "role" "server" "ssh" "ack" "check" "port"; gap: 12px; }
  .check-result-layout { grid-template-columns: 1fr; }
  .console-section > header { padding: 11px 12px; align-items: stretch; flex-direction: column; }
  .field-grid, .section-field-body { padding: 12px; }
  .console-section + .console-section { margin-top: 12px; }
  .tab-panel { padding-top: 12px; }
  .sticky-save-bar { right: 10px; bottom: 10px; left: 10px; align-items: stretch; flex-direction: column; }
  .sticky-save-bar > div { justify-content: space-between; }
  .sticky-save-bar > div:last-child { width: 100%; }
  .sticky-save-bar > div:last-child button { min-height: 44px; flex: 1; }
  .sticky-save-bar small { display: none; }
}
.scope-cell span, .scope-cell small {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scope-cell small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill {
  width: fit-content; max-width: 100%; padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px;
  overflow: hidden; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 700; white-space: nowrap;
}
.status-pill i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status-pill.success, .integration-complete, .communication-normal { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, var(--border)); background: var(--green-soft); }
.status-pill.warning, .integration-progress, .integration-not-connected, .communication-unconfigured, .communication-partial, .communication-pending, .communication-pending_verification { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); background: var(--amber-soft); }
.verification-schedule { color: var(--amber); overflow-wrap: anywhere; }
.integration-on-hold, .communication-on_hold, .communication-on-hold { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); background: var(--amber-soft); }
.communication-self_managed, .communication-self-managed, .status-badge.self-managed { color: var(--muted); border-color: var(--border); background: var(--surface-2); }
.communication-failed { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); background: var(--red-soft); }
.communication-checking { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--primary-soft); }
.status-pill.neutral, .integration-needs-check, .communication-unchecked, .communication-unavailable { color: var(--muted); background: var(--surface-2); }
.issue-count { display: inline-flex; align-items: center; gap: 5px; color: var(--red); font-size: 11px; font-weight: 700; }
.issue-count i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.relative-time { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.detail-menu-button {
  min-height: 28px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px;
  color: var(--primary); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer;
}
.detail-menu-button:hover { border-color: var(--primary); background: var(--primary-soft); }
.column-hidden { display: none !important; }

.drawer-backdrop {
  position: fixed; z-index: 39; inset: 0; pointer-events: none; background: transparent;
}
.detail-drawer {
  position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(580px, calc(100vw - var(--sidebar)));
  overflow: hidden; border-left: 1px solid var(--border); background: var(--surface);
  box-shadow: -16px 0 40px rgba(20, 39, 67, .16); transform: translateX(102%); transition: transform .22s ease;
}
.detail-drawer.open { transform: translateX(0); }
.detail-drawer #drawer-content, .drawer-view { height: 100%; }
.drawer-view { display: flex; flex-direction: column; }
.drawer-header {
  min-height: 88px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px;
  border-bottom: 1px solid var(--border-soft); background: var(--surface);
}
.drawer-header > div { min-width: 0; flex: 1; }
.drawer-header .eyebrow { color: var(--primary); font-size: 10px; font-weight: 700; }
.drawer-header h2 { margin: 4px 0 0; overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.drawer-close {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px;
  color: var(--muted); background: var(--surface-2); font-size: 20px; cursor: pointer;
}
.drawer-operational-summary {
  padding: 10px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  border-bottom: 1px solid var(--border-soft); background: var(--surface-2);
}
.drawer-operational-summary > div { min-width: 0; }
.drawer-operational-summary > div > span:first-child { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.drawer-operational-summary strong, .drawer-operational-summary time { font-size: 11px; }
.drawer-actions { padding: 9px 18px; display: flex; gap: 7px; border-bottom: 1px solid var(--border-soft); }
.drawer-actions .primary-button, .drawer-actions .secondary-button { min-height: 32px; font-size: 11px; }
.drawer-tabs {
  padding: 0 10px; display: flex; overflow-x: auto; border-bottom: 1px solid var(--border);
}
.drawer-tabs button {
  min-width: max-content; height: 40px; padding: 0 9px; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer;
}
.drawer-tabs button.active { border-bottom-color: var(--primary); color: var(--primary); }
.drawer-body { min-height: 0; flex: 1; overflow-y: auto; }
.drawer-panel { display: none; padding: 16px 18px 28px; }
.drawer-panel.active { display: block; }
.summary-definition { margin: 0; }
.summary-definition > div {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.summary-definition dt { color: var(--muted); font-size: 11px; }
.summary-definition dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; line-height: 1.5; }
.panel-section-heading { margin: 8px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.panel-section-heading:first-child { margin-top: 0; }
.panel-section-heading h3 { margin: 0; font-size: 13px; }
.panel-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.ack-inline-form {
  margin-bottom: 18px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2);
}
.ack-inline-form > label:not(.check-option) { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.ack-inline-form input[type="text"], .ack-inline-form input[type="number"], .ack-inline-form input:not([type]) {
  height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--surface);
}
.ack-inline-form .check-option { grid-column: 1 / 3; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.ack-inline-form button { grid-column: 3; grid-row: 1; align-self: end; }
.ack-inline-form small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.warning-text { color: var(--amber) !important; }
.error-text { color: var(--red) !important; }
.ip-table-wrap { margin-bottom: 14px; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.ip-configuration-table { min-width: 520px; table-layout: auto; }
.ip-configuration-table th, .ip-configuration-table td { height: 34px; padding: 6px 8px; font-size: 10px; }
.ip-configuration-table code { color: var(--text); font-size: 10px; }
.communication-metrics { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.communication-metrics > div { padding: 10px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--surface-2); }
.communication-metrics .wide { grid-column: 1 / -1; }
.communication-metrics dt { color: var(--muted); font-size: 9px; }
.communication-metrics dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 11px; }
.issue-timeline { margin: 0; padding: 0; list-style: none; }
.issue-timeline li { position: relative; padding: 0 0 18px 24px; }
.issue-timeline li.active::before { content: ''; position: absolute; top: 9px; bottom: -3px; left: 6px; width: 1px; background: var(--border); }
.issue-timeline li:last-child::before { display: none; }
.timeline-marker { position: absolute; top: 4px; left: 1px; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.issue-timeline h4 { margin: 7px 0 4px; font-size: 12px; }
.issue-timeline p { margin: 0; white-space: pre-wrap; font-size: 11px; line-height: 1.55; }
.issue-timeline small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.empty-state, .history-empty { padding: 26px 16px !important; text-align: center; color: var(--muted); }
.technical-setting { margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.technical-setting summary { min-height: 42px; padding: 0 12px; display: flex; align-items: center; font-size: 11px; font-weight: 700; cursor: pointer; }
.code-toolbar { padding: 6px 10px; display: flex; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }
.code-toolbar button { padding: 4px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 9px; cursor: pointer; }
.technical-value {
  max-height: 320px; margin: 0; padding: 12px; overflow: auto; border-top: 1px solid var(--border-soft);
  color: var(--text); background: var(--surface-2); font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
.technical-value.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.history-empty h3 { margin: 0; color: var(--text); font-size: 13px; }
.history-empty p { margin: 8px auto 18px; max-width: 420px; font-size: 11px; line-height: 1.55; }
.history-empty dl { margin: 0 auto; max-width: 360px; text-align: left; }
.history-empty dl div { padding: 8px 0; display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--border-soft); }
.history-empty dt { color: var(--muted); font-size: 10px; }
.history-empty dd { margin: 0; font-size: 11px; }

@media (max-width: 1180px) {
  .emr-dashboard { height: auto; min-height: calc(100vh - var(--topbar)); display: block; overflow: visible; }
  .operations-kpi-grid { grid-template-columns: repeat(5, minmax(145px, 1fr)); overflow-x: auto; }
  .operations-table-card { overflow: visible; }
  .operations-table-card .table-scroll { height: auto; overflow-x: auto; overflow-y: hidden; }
  .operations-table thead th { top: 0; }
  .operations-table [data-column] { display: table-cell !important; }
  .operations-table .column-hidden { display: none !important; }
}
@media (max-width: 760px) {
  .operations-kpi-grid { grid-template-columns: repeat(5, 145px); }
  .filter-result-row { flex-wrap: wrap; }
  .detail-drawer { width: 100vw; }
  .drawer-backdrop:not(.hidden) { pointer-events: auto; background: rgba(7, 16, 30, .35); }
  body.drawer-open { overflow: hidden; }
  .drawer-operational-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-table { min-width: 780px; }
  .operations-table [data-column="scope"],
  .operations-table [data-column="vendor"],
  .operations-table [data-column="ack"],
  .operations-table [data-column="issues"] { display: none !important; }
}

/* Shared console components */
.summary-card-grid { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.integrations-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.registry-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.summary-card { position: relative; min-width: 0; min-height: 86px; padding: 13px 14px; display: flex; align-items: flex-start; gap: 10px; border-right: 1px solid var(--border-soft); background: transparent; transition: background .15s ease, box-shadow .15s ease; }
.summary-card:last-child { border-right: 0; }
.summary-card:hover { background: var(--surface-2); }
.summary-card.selected { background: var(--surface-2); box-shadow: inset 0 -3px var(--primary); }
.summary-card.green.selected { box-shadow: inset 0 -3px var(--green); }
.summary-card.amber.selected { box-shadow: inset 0 -3px var(--amber); }
.summary-card.red.selected { box-shadow: inset 0 -3px var(--red); }
.summary-card > div { min-width: 0; }
.summary-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; color: var(--muted); background: var(--surface-3); }
.summary-icon svg { width: 16px; height: 16px; stroke-width: 1.7; }
.summary-card.green .summary-icon { color: var(--green); background: var(--green-soft); }
.summary-card.amber .summary-icon { color: var(--amber); background: var(--amber-soft); }
.summary-card.red .summary-icon { color: var(--red); background: var(--red-soft); }
.summary-card.blue .summary-icon { color: var(--primary); background: var(--primary-soft); }
.summary-card div > span, .summary-card small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.summary-card div > span { font-size: 10px; font-weight: 700; }
.summary-card strong { margin: 5px 0 3px; display: block; font-size: 22px; line-height: 1; }
.summary-card small { font-size: 9px; }

.console-guide { margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.console-guide > summary { min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); list-style: none; cursor: pointer; }
.console-guide > summary::-webkit-details-marker { display: none; }
.console-guide > summary strong { color: var(--text); font-size: 11px; }
.console-guide > summary > span:not(.guide-icon) { font-size: 10px; }
.console-guide > summary > svg { width: 16px; height: 16px; margin-left: auto; transition: transform .16s ease; }
.console-guide[open] > summary > svg { transform: rotate(180deg); }
.guide-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-3); font-size: 10px; font-weight: 800; }
.guide-grid { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }
.guide-grid section { padding: 10px; border-radius: 7px; background: var(--surface); }
.guide-grid h2 { margin: 0 0 7px; font-size: 11px; }
.guide-grid p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.guide-grid b { color: var(--text); }

.search-command { min-width: 0; flex: 1; display: flex; }
.search-command .search-box { min-width: 0; border-radius: 8px 0 0 8px; }
.search-command .search-box:focus-within { position: relative; z-index: 1; }
.search-command > .primary-button { margin-left: -1px; border-radius: 0 8px 8px 0; }
.column-picker > summary { gap: 6px; }
.column-picker > summary svg { width: 15px; height: 15px; }
.operations-table tbody tr { transition: background .12s ease, box-shadow .12s ease; }
.operations-table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface)); }
.operations-table .hospital-cell strong { font-size: 11px; }
.operations-table .hospital-cell small, .operations-table .scope-cell small { margin-top: 3px; }
.table-empty { height: auto; padding: 0 !important; }
.table-empty-content { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 7px; }
.table-empty-content strong { font-size: 12px; }
.table-empty-content p { margin: 0 0 5px; color: var(--muted); font-size: 10px; }
.empty-state-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: var(--surface-3); }
.empty-state-icon svg { width: 19px; height: 19px; }
.console-empty-state { min-height: 150px; padding: 22px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); }
.console-empty-state > div:nth-child(2) { max-width: 480px; }
.console-empty-state strong { display: block; color: var(--text); font-size: 12px; }
.console-empty-state p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; }
.console-empty-state > div:last-child { display: flex; gap: 7px; }

.section-field-body { padding: 16px; }
.section-field-body .shared-textarea-field { width: 100%; }
.shared-textarea-field > small { margin-top: -1px; }
.shared-textarea-field textarea { width: 100%; min-height: 78px; max-width: 100%; overflow: auto; resize: vertical; }
.shared-textarea-field .reference-textarea { min-height: 118px !important; }
.entity-id { display: none !important; }
.integration-detail-page .nav-item.active { color: var(--primary); background: var(--primary-soft); box-shadow: inset 3px 0 var(--primary); }
.detail-topbar { height: var(--topbar); }
.detail-topbar + .detail-console { min-height: calc(100vh - var(--topbar)); }

.drawer-backdrop { pointer-events: none; opacity: 0; background: rgba(15, 23, 42, 0); backdrop-filter: blur(0); transition: opacity .2s ease, background .2s ease; }
.drawer-backdrop:not(.hidden) { pointer-events: auto; opacity: 1; background: rgba(15, 23, 42, .22); backdrop-filter: blur(1.5px); }
.detail-drawer { width: min(680px, calc(100vw - var(--sidebar))); box-shadow: -20px 0 54px rgba(15, 23, 42, .18); }
.drawer-header { min-height: 94px; padding: 18px 20px; }
.drawer-header .eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.drawer-close { display: grid; place-items: center; font-size: 0; }
.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:hover { color: var(--text); background: var(--surface-3); }
.drawer-operational-summary { padding: 12px 20px; gap: 10px; }
.drawer-actions { padding: 10px 20px; }
.drawer-tabs { padding: 0 12px; }
.drawer-tabs button { height: 44px; }
.drawer-panel { padding: 18px 20px 32px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1180px) {
  .registry-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registry-summary .summary-card:nth-child(3) { border-right: 0; }
  .registry-summary .summary-card:nth-child(-n+3) { border-bottom: 1px solid var(--border-soft); }
}
@media (max-width: 1024px) {
  .integrations-summary { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .summary-card { min-height: 82px; }
  .registry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registry-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .guide-grid { grid-template-columns: 1fr; }
  .detail-drawer { width: min(640px, calc(100vw - var(--sidebar))); }
  .section-field-body { padding: 14px; }
}
@media (max-width: 720px) {
  .registry-summary { grid-template-columns: repeat(2, minmax(145px, 1fr)); overflow-x: auto; }
  .registry-summary .summary-card { border-bottom: 0; }
  .console-empty-state { align-items: flex-start; flex-direction: column; }
  .search-command { min-width: 100%; }
  .detail-drawer { width: 100vw; }
  .section-field-body { padding: 12px; }
}
@media (max-width: 360px) {
  .status-bento { grid-template-columns: minmax(0, 1fr); }
}

/* Cross-page layout and data table primitives */
.page-container { width: 100%; max-width: var(--page-max) !important; margin-right: auto; margin-left: auto; }
.console-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.report-content.page-container { padding: 20px var(--page-pad-x) 28px !important; }
.simple-search-form .filter-primary { justify-content: space-between; }
.simple-search-form .search-command { max-width: 820px; }
.simple-search-form .search-command > .secondary-button { margin-left: 8px; white-space: nowrap; }
.search-scope-note { margin-right: auto; font-size: 11px; }

.sort-heading { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; color: inherit; font-weight: inherit; }
.sort-heading:hover, .sort-heading.active { color: var(--primary); }
.sort-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; color: var(--muted); }
.sort-icon svg { width: 14px; height: 14px; stroke-width: 1.5; }
.sort-icon.asc .sort-up, .sort-icon.desc .sort-down { stroke: var(--primary); stroke-width: 2.4; }
.sort-icon.asc .sort-down, .sort-icon.desc .sort-up { opacity: .28; }
th[aria-sort='ascending'] .sort-icon svg { transform: translateY(2px); }
th[aria-sort='descending'] .sort-icon svg { transform: translateY(-2px); }

.access-history-page { min-height: calc(100vh - var(--topbar)); display: flex; flex-direction: column; gap: 14px; }
.access-history-search { margin-top: 0; }
.access-history-search .filter-primary { flex-wrap: wrap; }
.access-history-search .search-box { max-width: 520px; }
.date-filter { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.date-filter input { height: 38px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface-2); }
.access-history-table-card { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.access-history-table-card .table-scroll { min-height: 0; flex: 1; overflow: auto; }
.access-history-table { min-width: 940px; }
.access-history-table th, .access-history-table td { height: 46px; padding: 7px 12px; }
.access-history-table td { white-space: nowrap; }
.mono-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.date-value { font-variant-numeric: tabular-nums; }
.status-pill.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); background: var(--red-soft); }
.table-pagination { min-height: 52px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.table-pagination > div { display: flex; gap: 7px; }
.secondary-button.disabled { opacity: .45; pointer-events: none; }
.error-state { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; }
.error-state > span { color: var(--primary); font-size: 46px; font-weight: 800; letter-spacing: -2px; }
.error-state h2 { margin: 8px 0 0; font-size: 20px; }
.error-state p { margin: 10px 0 22px; color: var(--muted); }

.login-page { background: var(--bg); }
.login-shell { min-height: 100vh; padding: 24px; display: grid; place-items: center; }
.login-card { width: min(100%, 420px); padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 50px rgba(15, 23, 42, .10); }
.login-card > header { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-brand-mark { width: 36px; height: 36px; flex: none; }
.login-brand-mark img { width: 100%; height: 100%; display: block; border-radius: 9px; }
.login-card > header strong, .login-card > header small { display: block; }
.login-card > header strong { font-size: 16px; }
.login-card > header small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.login-heading { margin: 30px 0 22px; }
.login-heading h1 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
.login-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.login-card form { display: grid; gap: 16px; }
.login-card .field { font-size: 12px; }
.login-card .field input { height: 42px; }
.login-submit { width: 100%; min-height: 42px; margin-top: 4px; }
.login-error { margin-bottom: 16px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--red) 42%, var(--border)); border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 12px; }
.login-card > footer { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 10px; text-align: center; }

@media (max-width: 1024px) {
  :root { --page-pad-x: 20px; }
  .simple-search-form .search-command { max-width: none; }
  .access-history-search .search-box { min-width: 100%; max-width: none; }
}
@media (max-width: 720px) {
  :root { --page-pad-x: 14px; }
  .report-content.page-container { padding-top: 14px !important; }
}
/* Shared hospital autocomplete and settings surfaces */
.summary-card-grid a.summary-card { color: inherit; text-decoration: none; cursor: pointer; position: relative; }
.summary-card-grid a.summary-card:hover { background: var(--surface-muted, #f8fafc); border-color: #b9c6d8; transform: translateY(-1px); }
.summary-card-grid a.summary-card:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 2px; }
.summary-card-grid a.summary-card.active { background: #f8fbff; border-color: #8eb8f5; box-shadow: inset 0 -3px #2563eb; }
.operations-table-card.is-loading { opacity: .55; pointer-events: none; position: relative; }
.operations-table-card.is-loading::after { content: "조회 중…"; position: absolute; inset: 16px 16px auto auto; padding: 6px 10px; border-radius: 8px; background: #172033; color: white; font-size: 12px; }
.hospital-search-field { width:100%; min-width:280px; flex:1; position:relative; z-index:2; }
.hospital-search-field > label { display:block; margin-bottom:7px; color:#334155; font-size:13px; font-weight:650; }
.hospital-search-control-row { width:100%; display:flex; align-items:center; gap:8px; }
.hospital-autocomplete { min-width:0; flex:1; position:relative; }
.hospital-search-input { width:100%; height:42px; padding:0 42px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#172033; font:inherit; font-size:14px; outline:none; transition:border-color .15s,box-shadow .15s,background .15s; }
.hospital-search-input:hover { border-color:#94a3b8; }
.hospital-search-input:focus { border-color:#4f8ee8; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.hospital-search-input:disabled { background:#f1f5f9; color:#94a3b8; cursor:not-allowed; }
.hospital-search-field.has-error .hospital-search-input { border-color:var(--red); }
.hospital-search-icon { position:absolute; left:14px; top:50%; z-index:1; width:17px; height:17px; transform:translateY(-50%); color:#64748b; pointer-events:none; }
.hospital-search-icon svg,.hospital-search-clear svg { width:100%; height:100%; }
.hospital-search-clear { position:absolute; right:8px; top:50%; width:30px; height:30px; padding:7px; transform:translateY(-50%); border:0; border-radius:7px; background:transparent; color:#64748b; cursor:pointer; }
.hospital-search-clear:hover,.hospital-search-clear:focus-visible { background:#eef2f7; color:#172033; outline:none; }
.hospital-autocomplete-menu { position:absolute; z-index:80; top:calc(100% + 6px); left:0; right:0; max-height:320px; overflow:auto; padding:6px; border:1px solid #d8e0eb; border-radius:11px; background:#fff; box-shadow:0 14px 35px rgba(15,23,42,.14); }
.hospital-autocomplete-menu [role="option"] { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; padding:10px 11px; border:0; border-radius:8px; background:transparent; color:#172033; text-align:left; cursor:pointer; }
.hospital-autocomplete-menu [role="option"]:hover,.hospital-autocomplete-menu [role="option"].active { background:#eff6ff; }
.hospital-autocomplete-menu mark { border-radius:2px; background:#dbeafe; color:#1d4ed8; font-weight:700; }
.hospital-autocomplete-menu small { color:#64748b; white-space:nowrap; }
.hospital-search-loading,.hospital-search-empty { padding:18px 12px; color:#64748b; text-align:center; font-size:13px; }
.field-help { margin:6px 0 0; color:#64748b; font-size:12px; }
.field-error { margin:6px 0 0; color:var(--red); font-size:12px; }
.hospital-search-action { min-width:68px; height:42px; flex:none; padding:0 16px; border-radius:10px; font-size:13px; }
.search-command .hospital-search-field { max-width:none; }
.simple-search-form { overflow:visible; position:relative; z-index:12; }
.simple-search-form .filter-primary { align-items:flex-start; gap:16px; }
.simple-search-form .search-command { max-width:none; flex:1; }
.simple-search-form .column-picker { flex:none; margin-top:21px; }
.simple-search-form .filter-result-row { border-radius:0 0 10px 10px; background:var(--surface); }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.nav-group { margin-top:4px; }
.nav-group-toggle { display:flex; width:100%; height:42px; align-items:center; gap:12px; padding:0 14px; border:0; border-radius:8px; background:transparent; color:#52627a; font:inherit; font-size:14px; cursor:pointer; }
.nav-group-toggle:hover,.nav-group.active > .nav-group-toggle { background:#f1f5f9; color:#172033; }
.nav-group-toggle > svg:first-child { width:19px; height:19px; flex:none; }
.nav-chevron { width:15px; height:15px; margin-left:auto; transition:transform .18s; }
.nav-group.open .nav-chevron { transform:rotate(180deg); }
.nav-children { display:none; position:relative; margin:3px 0 7px 23px; padding-left:17px; }
.nav-group.open .nav-children { display:grid; }
.nav-children::before { content:""; position:absolute; left:0; top:4px; bottom:4px; width:1px; background:#dbe3ee; }
.nav-children a { padding:9px 10px; border-radius:7px; color:#64748b; font-size:13px; text-decoration:none; }
.nav-children a:hover { background:#f1f5f9; color:#172033; }
.nav-children a.active { background:#eaf2ff; color:#1d64d8; }
.sidebar-small .nav-group-toggle span,.sidebar-small .nav-chevron { display:none; }
.sidebar-small .nav-group { position:relative; }
.sidebar-small .nav-group.open .nav-children { position:absolute; z-index:100; left:50px; bottom:0; width:190px; margin:0; padding:8px; border:1px solid #d8e0eb; border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.15); }
.sidebar-small .nav-children::before { display:none; }
.settings-page { display:flex; flex-direction:column; gap:20px; }
.breadcrumb { color:#64748b; font-size:12px; font-weight:600; }
.toast-message { position:fixed; z-index:200; right:24px; top:82px; max-width:440px; padding:12px 16px; border:1px solid; border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.16); transition:opacity .25s,transform .25s; }
.toast-message.success { border-color:#86d7ba; color:#087558; }.toast-message.danger { border-color:#f3a7b2; color:#b4233c; }.toast-message.hide { opacity:0; transform:translateY(-8px); pointer-events:none; }
.settings-hero { display:flex; align-items:center; gap:16px; padding:20px 22px; border:1px solid #dce4ee; border-radius:14px; background:#fff; }
.settings-hero h2,.settings-hero p { margin:0; }.settings-hero .status-pill { margin-left:auto; }
.settings-avatar { display:grid; width:48px; height:48px; place-items:center; border-radius:13px; background:#e8f0fe; color:#1d64d8; font-size:19px; font-weight:800; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.settings-card { display:flex; min-width:0; flex-direction:column; border:1px solid #dce4ee; border-radius:14px; background:#fff; }
.settings-card > header { padding:20px 22px; border-bottom:1px solid #e5eaf1; }.settings-card header h2,.settings-card header p { margin:0; }.settings-card header h2 { font-size:16px; }.settings-card header p { margin-top:5px; color:#64748b; font-size:13px; }
.settings-card > footer { display:flex; justify-content:flex-end; margin-top:auto; padding:16px 22px; border-top:1px solid #e5eaf1; }
.form-stack { display:grid; gap:17px; padding:22px; }.form-stack label,.form-grid label,.account-dialog > label { display:grid; gap:7px; color:#334155; font-size:13px; font-weight:650; }
.form-stack input,.form-grid input,.form-grid select,.account-dialog > label input { width:100%; height:42px; padding:0 12px; border:1px solid #cbd5e1; border-radius:9px; background:#fff; color:#172033; font:inherit; }.form-stack input:focus,.form-grid input:focus,.form-grid select:focus { border-color:#4f8ee8; outline:3px solid rgba(37,99,235,.12); }.form-stack input:disabled { background:#f5f7fa; color:#64748b; }
.form-stack small { color:#64748b; font-weight:400; }.account-meta { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; padding:14px; border-radius:10px; background:#f8fafc; }.account-meta dt { color:#64748b; font-size:12px; }.account-meta dd { margin:4px 0 0; color:#334155; font-size:13px; }
.user-search-form { display:block; }.user-search-form .filter-primary { width:100%; }.user-search-form .search-command { width:100%; }.user-result-row .result-count { margin-left:auto; white-space:nowrap; }.account-table { width:100%; border-collapse:collapse; }.account-table th,.account-table td { padding:13px 14px; border-bottom:1px solid #e5eaf1; text-align:left; vertical-align:middle; }.account-table th { background:#f8fafc; color:#64748b; font-size:12px; }.account-table td { font-size:13px; }.account-table td strong,.account-table td small { display:block; }.account-table td small { margin-top:4px; color:#64748b; }.row-actions { display:flex; flex-wrap:wrap; gap:6px; }
.account-dialog { width:min(620px,calc(100vw - 32px)); padding:0; border:1px solid #d8e0eb; border-radius:14px; color:#172033; box-shadow:0 24px 70px rgba(15,23,42,.25); }.account-dialog.small { width:min(460px,calc(100vw - 32px)); }.account-dialog::backdrop { background:rgba(15,23,42,.45); }.account-dialog form { display:flex; flex-direction:column; }.account-dialog header { display:flex; align-items:flex-start; justify-content:space-between; padding:20px 22px; border-bottom:1px solid #e5eaf1; }.account-dialog h2,.account-dialog p { margin:0; }.account-dialog p { margin-top:5px; color:#64748b; font-size:13px; }.account-dialog .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:22px; }.account-dialog > form > label { margin:22px; }.account-dialog footer { display:flex; justify-content:flex-end; gap:8px; padding:16px 22px; border-top:1px solid #e5eaf1; }.checkbox-field { grid-column:1/-1; display:flex!important; align-items:center; }.checkbox-field input { width:17px; height:17px; }.pagination { display:flex; align-items:center; justify-content:center; gap:14px; }.pagination a { padding:8px 12px; border:1px solid #d8e0eb; border-radius:8px; color:#334155; text-decoration:none; }
/* Drawer typography tokens keep dense operational content consistently readable. */
.detail-drawer {
  --drawer-title-size:21px;
  --drawer-meta-size:13px;
  --drawer-summary-label-size:12px;
  --drawer-badge-size:12px;
  --drawer-button-size:13px;
  --drawer-tab-size:14px;
  --drawer-label-size:13px;
  --drawer-value-size:14px;
  --drawer-body-line-height:1.52;
}
.drawer-header h2 { font-size:var(--drawer-title-size); font-weight:700; }
.drawer-header p { font-size:var(--drawer-meta-size); line-height:var(--drawer-body-line-height); }
.drawer-header .eyebrow { font-size:11px; }
.drawer-operational-summary > div > span:first-child { font-size:var(--drawer-summary-label-size); }
.drawer-operational-summary strong,.drawer-operational-summary time { font-size:var(--drawer-value-size); line-height:var(--drawer-body-line-height); }
.drawer-view .status-pill { min-height:25px; padding:4px 8px; font-size:var(--drawer-badge-size); }
.drawer-actions .primary-button,.drawer-actions .secondary-button { min-height:36px; font-size:var(--drawer-button-size); }
.drawer-tabs button { height:46px; padding:0 11px; font-size:var(--drawer-tab-size); font-weight:600; white-space:nowrap; }
.summary-definition > div { grid-template-columns:142px minmax(0,1fr); padding:12px 0; }
.summary-definition dt { font-size:var(--drawer-label-size); line-height:var(--drawer-body-line-height); }
.summary-definition dd { font-size:var(--drawer-value-size); line-height:var(--drawer-body-line-height); }
.panel-section-heading h3,.history-empty h3 { font-size:15px; }
.panel-section-heading p,.history-empty p { font-size:13px; line-height:var(--drawer-body-line-height); }
.ack-inline-form > label:not(.check-option),.ack-inline-form .check-option,.ack-inline-form small { font-size:12px; }
.ip-configuration-table th,.ip-configuration-table td,.ip-configuration-table code { font-size:12px; }
.communication-metrics dt,.history-empty dt { font-size:12px; }
.communication-metrics dd,.history-empty dd { font-size:14px; line-height:var(--drawer-body-line-height); }
.timeline-meta,.issue-timeline small { font-size:12px; }
.issue-timeline h4 { font-size:14px; }
.issue-timeline p { overflow-wrap:anywhere; font-size:14px; line-height:var(--drawer-body-line-height); }
.technical-setting summary { font-size:13px; }
.technical-value { font-size:12px; line-height:1.6; }
.code-toolbar button { font-size:12px; }

@media (max-width:1024px) { .settings-grid { grid-template-columns:1fr; }.search-command .hospital-search-field { max-width:none; }.account-table { min-width:900px; }.simple-search-form .filter-primary { flex-wrap:wrap; }.simple-search-form .search-command { min-width:calc(100% - 132px); }.simple-search-form .column-picker { margin-left:auto; } }
@media (max-width:720px) { .search-command { min-width:100%; }.hospital-search-control-row { align-items:stretch; flex-direction:column; }.hospital-search-action { width:100%; }.hospital-search-field { min-width:0; }.simple-search-form .column-picker { margin-top:0; margin-left:0; }.settings-hero { align-items:flex-start; }.settings-hero .status-pill { margin-left:0; }.account-dialog .form-grid { grid-template-columns:1fr; }.summary-definition > div { grid-template-columns:118px minmax(0,1fr); gap:10px; } }

/* Structured issues, reference notes and Slack operations */
.record-summary-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; margin-bottom:16px; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:var(--border); }
.record-summary-grid article { min-width:0; padding:14px 16px; background:var(--surface); }
.record-summary-grid span { display:block; color:var(--muted); font-size:11px; }
.record-summary-grid strong { display:block; margin-top:6px; overflow-wrap:anywhere; color:var(--text); font-size:14px; }
.managed-record-list { display:grid; gap:10px; padding:16px; }
.managed-record-list.compact { padding-top:8px; }
.managed-record { display:grid; gap:8px; padding:14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.managed-record > header,.managed-record > footer,.managed-note > footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.managed-record h3,.managed-record p { margin:0; overflow-wrap:anywhere; }
.managed-record h3 { font-size:14px; }.managed-record p { color:var(--text-soft); font-size:13px; line-height:1.55; white-space:pre-wrap; }
.managed-record dl { display:flex; flex-wrap:wrap; gap:8px 20px; margin:0; }.managed-record dl div { display:flex; gap:6px; font-size:12px; }.managed-record dt { color:var(--muted); }.managed-record dd { margin:0; }
.subsection-header { margin-top:8px; border-top:1px solid var(--border-soft); }
.managed-note { border-bottom:1px solid var(--border-soft); }.managed-note:last-child { border-bottom:0; }
.managed-note summary { padding:12px 0; cursor:pointer; }.managed-note summary span { display:grid; gap:3px; }.managed-note summary small { color:var(--muted); font-size:11px; }
.managed-note p { margin:0 0 12px; color:var(--text-soft); font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.managed-note footer { padding-bottom:12px; }
.reference-history { margin:0 16px 16px; border-top:1px solid var(--border-soft); }.reference-history > summary { padding:12px 0; color:var(--muted); font-size:12px; cursor:pointer; }
.status-pill.info { color:var(--primary); border-color:color-mix(in srgb,var(--primary) 38%,var(--border)); background:color-mix(in srgb,var(--primary) 8%,var(--surface)); }
.status-pill.purple { color:var(--purple); border-color:color-mix(in srgb,var(--purple) 38%,var(--border)); background:color-mix(in srgb,var(--purple) 8%,var(--surface)); }
.activity-summary { margin-bottom:12px; }
.section-title-row { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:8px; }
.section-title-row h2,.section-title-row p { margin:0; }.section-title-row h2 { font-size:15px; }.section-title-row p { margin-top:3px; color:var(--muted); font-size:12px; }
.activity-summary-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.activity-summary-card { min-width:0; height:86px; padding:11px; display:flex; align-items:flex-start; gap:9px; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:inherit; text-decoration:none; box-shadow:0 3px 12px rgba(15,23,42,.03); transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.activity-summary-card:hover,.activity-summary-card:focus-visible { border-color:color-mix(in srgb,var(--primary) 35%,var(--border)); box-shadow:0 8px 22px rgba(15,23,42,.07); transform:translateY(-1px); outline:0; }
.activity-summary-icon { width:28px; height:28px; flex:0 0 auto; display:grid; place-items:center; border-radius:8px; color:var(--muted); background:var(--surface-2); }.activity-summary-icon svg { width:16px; height:16px; stroke-width:1.7; }
.activity-summary-card.info .activity-summary-icon { color:var(--primary); background:color-mix(in srgb,var(--primary) 9%,var(--surface)); }.activity-summary-card.danger .activity-summary-icon { color:var(--red); background:var(--red-soft); }.activity-summary-card.success .activity-summary-icon { color:var(--green); background:var(--green-soft); }
.activity-summary-copy { min-width:0; display:grid; align-content:start; gap:2px; }.activity-summary-copy small { overflow:hidden; color:var(--muted); font-size:10px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }.activity-summary-copy strong { overflow:hidden; color:var(--text); font-size:16px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }.activity-summary-copy > span { overflow:hidden; color:var(--text-soft); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.activity-dashboard-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(320px,1fr); gap:16px; align-items:start; }
.activity-main-column,.activity-side-column { min-width:0; display:grid; gap:16px; }.activity-card { margin:0; min-width:0; }
.issue-table-wrap { width:100%; overflow-x:auto; }.compact-issue-table { width:100%; min-width:820px; border-collapse:collapse; table-layout:fixed; }.compact-issue-table th,.compact-issue-table td { padding:11px 12px; border-bottom:1px solid var(--border-soft); text-align:left; vertical-align:middle; font-size:12px; }.compact-issue-table th { color:var(--muted); background:var(--surface-2); font-size:11px; font-weight:650; }.compact-issue-table th:nth-child(1){width:92px}.compact-issue-table th:nth-child(2){width:auto}.compact-issue-table th:nth-child(3){width:132px}.compact-issue-table th:nth-child(4){width:100px}.compact-issue-table th:nth-child(5){width:108px}.compact-issue-table th:nth-child(6){width:145px}.compact-issue-table th:nth-child(7){width:58px}.compact-issue-table tbody tr:last-child td { border-bottom:0; }.compact-issue-table tbody tr:hover,.compact-issue-table tbody tr:focus-visible { background:color-mix(in srgb,var(--primary) 3%,var(--surface)); outline:2px solid transparent; }.issue-title-ellipsis { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.compact-issue-table .overdue { color:var(--red); font-weight:650; }.compact-issue-table .overdue small { display:block; margin-top:2px; font-size:10px; }
.compact-empty-state { min-height:76px; padding:16px 18px; display:flex; align-items:center; justify-content:center; gap:11px; color:var(--text-soft); text-align:left; }.compact-empty-icon { width:30px; height:30px; flex:0 0 auto; display:grid; place-items:center; border-radius:9px; color:var(--muted); background:var(--surface-2); }.compact-empty-icon svg { width:17px; height:17px; stroke-width:1.7; }.compact-empty-state > span:nth-child(2) { min-width:0; display:grid; gap:2px; }.compact-empty-state strong { color:var(--text); font-size:13px; }.compact-empty-state small { color:var(--muted); font-size:11px; line-height:1.45; }.compact-empty-state .compact-action { margin-left:8px; flex:0 0 auto; }
.completed-issue-list,.reference-card-list { display:grid; }.completed-issue-row { min-width:0; padding:13px 16px; display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:start; gap:10px; border-bottom:1px solid var(--border-soft); }.completed-issue-row:last-child { border-bottom:0; }.completed-check { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:var(--green); background:var(--green-soft); font-size:12px; font-weight:800; }.completed-issue-row strong,.completed-issue-row p { margin:0; }.completed-issue-row strong { display:block; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.completed-issue-row p { margin-top:4px; display:-webkit-box; overflow:hidden; color:var(--text-soft); font-size:12px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.completed-issue-row small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.reference-note-card { min-width:0; padding:14px 16px; border-bottom:1px solid var(--border-soft); }.reference-note-card:last-child { border-bottom:0; }.reference-note-card > header,.reference-note-card > footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }.reference-note-card h3 { margin:9px 0 0; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.reference-note-card p { margin:6px 0 10px; display:-webkit-box; overflow:hidden; color:var(--text-soft); font-size:12px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.reference-note-card small { color:var(--muted); font-size:10px; line-height:1.45; }.reference-note-card footer span { display:flex; gap:5px; }.collection-toggle { width:calc(100% - 32px); min-height:34px; margin:0 16px 14px; border:1px solid var(--border); border-radius:8px; color:var(--text-soft); background:var(--surface-2); cursor:pointer; font-size:11px; }.collection-toggle:hover,.collection-toggle:focus-visible { color:var(--primary); border-color:var(--primary); outline:0; }
.activity-feed { padding:4px 16px 12px; }.activity-feed-item { position:relative; min-width:0; padding:10px 0; display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; }.activity-feed-item:not(:last-child)::after { content:""; position:absolute; top:38px; bottom:-2px; left:13px; width:1px; background:var(--border-soft); }.activity-type-icon { width:28px; height:28px; z-index:1; display:grid; place-items:center; border-radius:9px; color:var(--muted); background:var(--surface-2); }.activity-type-icon svg { width:15px; height:15px; stroke-width:1.8; }.activity-type-icon.success { color:var(--green); background:var(--green-soft); }.activity-type-icon.danger { color:var(--red); background:var(--red-soft); }.activity-type-icon.info { color:var(--primary); background:color-mix(in srgb,var(--primary) 8%,var(--surface)); }.activity-feed-item > div { min-width:0; }.activity-feed-item header { padding:0; display:flex; align-items:center; justify-content:space-between; gap:8px; border:0; }.activity-feed-item strong { min-width:0; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.activity-feed-item p { margin:4px 0; display:-webkit-box; overflow:hidden; color:var(--text-soft); font-size:11px; line-height:1.45; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.activity-feed-item small { color:var(--muted); font-size:10px; }
@media (max-width:1280px) { .activity-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.activity-dashboard-grid { grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr); } }
@media (max-width:900px) { .activity-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:1024px) { .activity-dashboard-grid { grid-template-columns:1fr; }.activity-main-column,.activity-side-column { display:contents; } #open-issues { order:1; } #reference-notes { order:2; } #completed-issues { order:3; } #recent-activity { order:4; } }
@media (max-width:720px) { .activity-summary-card { height:82px; padding:10px; }.compact-empty-state { align-items:flex-start; flex-wrap:wrap; justify-content:flex-start; }.compact-empty-state .compact-action { width:100%; margin:4px 0 0; }.completed-issue-row { grid-template-columns:24px minmax(0,1fr); }.completed-issue-row > button { grid-column:2; justify-self:start; } }
@media (max-width:420px) { .activity-summary-grid { grid-template-columns:1fr; } }
.danger-text { color:var(--danger) !important; }
.record-dialog { width:min(720px,calc(100vw - 32px)); max-height:calc(100vh - 40px); padding:0; overflow:auto; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:0 24px 80px rgba(15,23,42,.22); }
.record-dialog::backdrop { background:rgba(15,23,42,.42); }
.record-dialog > form > header,.record-dialog > form > footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid var(--border-soft); }
.record-dialog > form > footer { justify-content:flex-end; border-top:1px solid var(--border-soft); border-bottom:0; }
.record-dialog h2,.record-dialog p { margin:0; }.record-dialog header p { margin-top:3px; color:var(--muted); font-size:12px; }
.record-dialog .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:20px; }.record-dialog .span-2 { grid-column:1/-1; }
.record-dialog label { display:grid; gap:6px; color:var(--text-soft); font-size:12px; font-weight:600; }.record-dialog input,.record-dialog select,.record-dialog textarea { width:100%; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); color:var(--text); font:inherit; }.record-dialog input,.record-dialog select { height:40px; padding:0 10px; }.record-dialog textarea { padding:10px; resize:vertical; line-height:1.5; }

/* Issue quick actions */
.issue-quick-filters { padding:10px 16px; display:flex; gap:7px; overflow-x:auto; border-bottom:1px solid var(--border-soft); scrollbar-width:thin; }
.issue-quick-filters button { min-height:34px; padding:0 11px; flex:0 0 auto; border:1px solid var(--border); border-radius:999px; color:var(--text-soft); background:var(--surface); font-size:12px; font-weight:650; cursor:pointer; }
.issue-quick-filters button:hover,.issue-quick-filters button:focus-visible,.issue-quick-filters button.active { color:var(--primary); border-color:color-mix(in srgb,var(--primary) 45%,var(--border)); background:color-mix(in srgb,var(--primary) 7%,var(--surface)); outline:0; }
.issue-quick-list { padding:14px; display:grid; gap:12px; }.issue-quick-list.compact { padding:0; gap:12px; }
.issue-quick-card { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:var(--surface); box-shadow:0 1px 2px rgba(15,23,42,.035); transition:opacity .18s ease,transform .18s ease,border-color .18s ease; }
.issue-card-content { padding:16px; }
.issue-quick-card:hover { border-color:color-mix(in srgb,var(--primary) 25%,var(--border)); }.issue-quick-card.is-recovered { border-left:3px solid var(--green); }.issue-quick-card.is-overdue:not(.is-recovered) { border-left:3px solid var(--red); }
.issue-quick-card.is-saving { opacity:.68; }.issue-quick-card.is-completing { opacity:0; transform:translateY(-5px); }.issue-quick-card.filtered-out { display:none; }
.issue-quick-header { padding:0; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; border:0; }
.issue-quick-title { min-width:0; }.issue-quick-title h3 { margin:9px 0 0; overflow-wrap:anywhere; color:var(--text); font-size:16px; font-weight:750; line-height:1.4; }
.issue-quick-badges { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }.issue-type-badge,.issue-signal { min-height:25px; padding:0 8px; display:inline-flex; align-items:center; border-radius:999px; font-size:11px; font-weight:650; }
.issue-type-badge { color:var(--text-soft); background:var(--surface-2); }.issue-signal.danger { color:var(--red); background:var(--red-soft); }.issue-signal.recovered { color:var(--green); background:var(--green-soft); }
.inline-control { position:relative; display:inline-flex; }.inline-control select { width:auto; min-width:82px; height:28px; padding:0 25px 0 9px; border:1px solid var(--border); border-radius:999px; color:var(--text-soft); background:var(--surface); font-size:11px; font-weight:700; cursor:pointer; }
.inline-control.severity-긴급 select { color:var(--red); border-color:color-mix(in srgb,var(--red) 35%,var(--border)); }.inline-control.severity-높음 select { color:var(--amber); border-color:color-mix(in srgb,var(--amber) 45%,var(--border)); }
.status-control::before { content:""; z-index:1; position:absolute; top:50%; left:10px; width:6px; height:6px; border-radius:50%; background:currentColor; transform:translateY(-50%); pointer-events:none; }.status-control select { min-width:120px; padding-left:23px; color:var(--primary); border-color:color-mix(in srgb,var(--primary) 22%,var(--border)); background:color-mix(in srgb,var(--primary) 5%,var(--surface)); }
.issue-recovery-callout { margin-top:13px; padding:10px 12px; display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid color-mix(in srgb,var(--green) 28%,var(--border)); border-radius:9px; background:var(--green-soft); }
.recovery-icon { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--green); font-size:13px; font-weight:800; }.issue-recovery-callout strong,.issue-recovery-callout small { display:block; }.issue-recovery-callout strong { color:var(--text); font-size:12px; }.issue-recovery-callout small { margin-top:2px; color:var(--text-soft); font-size:11px; }.recovery-actions { display:flex; align-items:center; gap:6px; }
.primary-button.compact,.secondary-button.compact { min-height:32px; padding:0 10px; font-size:11px; }
.issue-quick-metadata { margin:16px 0 0; padding:14px 16px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 24px; border-radius:9px; background:color-mix(in srgb,var(--surface-2) 72%,var(--surface)); }
.issue-quick-metadata > div { min-width:0; }
.issue-quick-metadata dt { color:var(--muted); font-size:10px; font-weight:600; }.issue-quick-metadata dd { min-width:0; margin:3px 0 0; color:var(--text); font-size:12px; font-weight:550; overflow-wrap:anywhere; }.issue-quick-metadata dd > small { margin-top:2px; display:block; color:var(--muted); font-size:10px; font-weight:400; }
.issue-quick-metadata input { width:100%; height:28px; padding:0 7px; border:1px solid transparent; border-radius:6px; color:var(--text); background:transparent; font:inherit; }.issue-quick-metadata input:hover,.issue-quick-metadata input:focus { border-color:var(--border); background:var(--surface); outline:0; }
.system-state { display:inline-flex; align-items:center; gap:5px; font-weight:650; }.system-state i { width:7px; height:7px; border-radius:50%; background:var(--muted); }.system-state.success { color:var(--green); }.system-state.success i { background:var(--green); }.system-state.danger { color:var(--red); }.system-state.danger i { background:var(--red); }
.issue-quick-content { margin:16px 0 0; display:-webkit-box; overflow:hidden; color:var(--text-soft); font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.issue-quick-actions { margin-top:16px; padding:12px 0 0; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--border-soft); }.issue-action-primary,.issue-action-secondary { min-width:0; display:flex; align-items:center; flex-wrap:wrap; gap:8px; }.issue-action-secondary { justify-content:flex-end; margin-left:auto; }.issue-action-primary .text-button,.issue-action-secondary .text-button,.issue-action-secondary summary { min-height:32px; padding:0 9px; display:inline-flex; align-items:center; border-radius:7px; }.issue-action-primary .text-button:hover,.issue-action-secondary .text-button:hover { background:var(--surface-2); }
.issue-activity-popover { position:relative; }.issue-activity-popover > summary { min-height:32px; padding:0 9px; display:flex; align-items:center; border-radius:7px; color:var(--text-soft); cursor:pointer; font-size:11px; font-weight:650; list-style:none; }.issue-activity-popover > summary:hover { background:var(--surface-2); }.issue-activity-popover > summary::-webkit-details-marker { display:none; }
.issue-activity-popover[open] > ol { z-index:25; position:absolute; right:0; bottom:38px; width:min(360px,calc(100vw - 48px)); max-height:300px; margin:0; padding:10px 14px; overflow:auto; border:1px solid var(--border); border-radius:10px; background:var(--surface); box-shadow:0 16px 45px rgba(15,23,42,.16); list-style:none; }
.issue-activity-popover li { position:relative; padding:7px 0 7px 19px; }.issue-activity-popover li > i { position:absolute; top:12px; left:2px; width:8px; height:8px; border-radius:50%; background:var(--muted); }.issue-activity-popover li.success > i { background:var(--green); }.issue-activity-popover li.warning > i { background:var(--amber); }.issue-activity-popover li.info > i { background:var(--primary); }.issue-activity-popover li:not(:last-child)::after { content:""; position:absolute; top:20px; bottom:-8px; left:5px; width:1px; background:var(--border-soft); }.issue-activity-popover li strong { font-size:11px; }.issue-activity-popover li p { margin:2px 0; color:var(--text-soft); font-size:11px; line-height:1.45; }.issue-activity-popover li small { color:var(--muted); font-size:10px; }
.issue-comment-form { margin:18px 0 0; padding:18px 0 0; border-top:1px solid var(--border-soft); }
.issue-comment-grid { display:grid; grid-template-columns:160px minmax(0,1fr); column-gap:28px; align-items:start; }
.issue-comment-label { min-height:0; padding:12px 0 0; color:var(--text-soft); font-size:12px; font-weight:700; line-height:1.5; }
.issue-comment-editor { min-width:0; display:grid; gap:10px; }
.issue-comment-form textarea { width:100%; min-width:0; max-width:none; min-height:116px; padding:12px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--surface-2); font:inherit; line-height:1.55; resize:vertical; }
.issue-comment-form textarea::placeholder { color:var(--muted); opacity:1; }.issue-comment-form textarea:focus { border-color:var(--primary); outline:2px solid color-mix(in srgb,var(--primary) 12%,transparent); background:var(--surface); }
.issue-comment-action-bar { min-height:36px; margin-top:2px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.issue-comment-action-bar > div { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; }.issue-comment-error { margin:0; color:var(--red); font-size:11px; }.issue-comment-shortcut { color:var(--muted); font-size:10px; }.issue-comment-form[aria-busy="true"] textarea { opacity:.65; }.issue-comment-form [data-issue-comment-submit]:disabled { cursor:not-allowed; opacity:1; color:#475569; border-color:#cbd5e1; background:#e2e8f0; }
.drawer-recovery-summary { margin-bottom:12px; padding:10px 12px; display:grid; gap:2px; border-radius:8px; color:var(--green); background:var(--green-soft); }.drawer-recovery-summary strong { font-size:12px; }.drawer-recovery-summary span { color:var(--text-soft); font-size:11px; }.legacy-issue-details { margin-top:12px; border-top:1px solid var(--border-soft); }.legacy-issue-details summary { padding:10px 0; color:var(--text-soft); cursor:pointer; font-size:11px; font-weight:650; }.legacy-issue-details p { margin:0 0 8px; color:var(--text-soft); font-size:11px; line-height:1.5; white-space:pre-wrap; }
.issue-quick-list.compact .issue-card-content { padding:12px; }.issue-quick-list.compact .issue-quick-metadata { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }.issue-quick-list.compact .issue-quick-header { display:grid; }.issue-quick-list.compact .status-control { justify-self:start; }
.issue-complete-dialog { width:min(520px,calc(100vw - 28px)); }

@media (max-width:720px) {
  .issue-quick-list { padding:10px; }.issue-card-content { padding:12px; }.issue-quick-header { display:grid; gap:10px; }.status-control { justify-self:start; }
  .issue-recovery-callout { grid-template-columns:26px minmax(0,1fr); }.recovery-actions { grid-column:1/-1; padding-left:36px; }
  .issue-quick-metadata { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; }
  .issue-quick-actions { align-items:flex-start; flex-direction:column; }.issue-action-secondary { width:100%; justify-content:flex-end; margin-left:0; }.issue-activity-popover[open] > ol { position:fixed; right:14px; bottom:14px; left:14px; width:auto; max-height:55vh; }
  .issue-comment-grid { grid-template-columns:1fr; row-gap:4px; }.issue-comment-label { min-height:0; padding-top:0; }.issue-comment-action-bar { align-items:flex-end; flex-direction:column; }.issue-comment-action-bar > div { margin-left:0; }.issue-comment-shortcut { display:none; }
}
@media (max-width:1080px) { .issue-comment-grid { grid-template-columns:1fr; row-gap:4px; }.issue-comment-label { min-height:0; padding-top:0; } }
.issue-quick-list.compact .issue-comment-grid { grid-template-columns:1fr; row-gap:4px; }.issue-quick-list.compact .issue-comment-label { min-height:0; padding-top:0; }
@media (max-width:1024px) { .record-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:720px) { .record-summary-grid,.record-dialog .form-grid { grid-template-columns:1fr; }.record-dialog .span-2 { grid-column:auto; } }

/* Shared mobile navigation drawer */
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  body.mobile-nav-open { overflow: hidden; }
  .mobile-nav-trigger {
    position: fixed; z-index: 55; top: 14px; left: 14px; width: 44px; height: 44px;
    display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); background: var(--surface); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); cursor: pointer;
  }
  .mobile-nav-trigger:hover { background: var(--surface-2); }
  .mobile-nav-trigger svg { width: 21px; height: 21px; }
  .mobile-nav-backdrop {
    position: fixed; z-index: 50; inset: 0; display: block; visibility: hidden;
    opacity: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(1px);
    transition: opacity .2s ease, visibility .2s ease;
  }
  .mobile-nav-backdrop.visible { visibility: visible; opacity: 1; }
  .sidebar, .app-shell.sidebar-small .sidebar {
    z-index: 60; width: min(320px, 86vw); padding: 14px 12px; display: flex;
    visibility: hidden; flex-direction: column; overflow: hidden; transform: translateX(-102%);
    box-shadow: 18px 0 48px rgba(15, 23, 42, .2); transition: transform .22s ease, visibility 0s linear .22s;
  }
  .sidebar.mobile-open, .app-shell.sidebar-small .sidebar.mobile-open {
    visibility: visible; transform: translateX(0); transition: transform .22s ease, visibility 0s;
  }
  .mobile-nav-heading { min-height: 54px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-soft); }
  .mobile-nav-heading .sidebar-brand, .app-shell.sidebar-small .mobile-nav-heading .sidebar-brand {
    min-width: 0; height: 54px; flex: 1; justify-content: flex-start; padding: 0 6px; border-bottom: 0;
  }
  .mobile-nav-heading .sidebar-brand div:last-child, .app-shell.sidebar-small .mobile-nav-heading .sidebar-brand div:last-child { display: block; }
  .mobile-nav-close {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center;
    border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer;
  }
  .mobile-nav-close:hover { color: var(--text); background: var(--surface-2); }
  .mobile-nav-close svg { width: 20px; height: 20px; }
  .sidebar nav { min-height: 0; margin-top: 14px; padding: 0 2px 12px; flex: 1; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
  .sidebar .nav-item, .app-shell.sidebar-small .sidebar .nav-item {
    min-height: 44px; height: 44px; justify-content: flex-start; padding: 0 12px;
  }
  .sidebar .nav-item span, .app-shell.sidebar-small .sidebar .nav-item span,
  .sidebar .nav-group-toggle span, .app-shell.sidebar-small .sidebar .nav-group-toggle span,
  .sidebar .nav-chevron, .app-shell.sidebar-small .sidebar .nav-chevron { display: inline; }
  .sidebar .nav-group-toggle { min-height: 44px; height: 44px; color: var(--muted); }
  .sidebar .nav-group.open .nav-children, .app-shell.sidebar-small .sidebar .nav-group.open .nav-children {
    position: relative; left: auto; bottom: auto; width: auto; margin: 3px 0 7px 23px;
    padding: 0 0 0 17px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .sidebar .nav-children::before, .app-shell.sidebar-small .sidebar .nav-children::before { display: block; }
  .sidebar .nav-children a { min-height: 42px; display: flex; align-items: center; }
  .sidebar-footer { position: static; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .sidebar-toggle { display: none; }
  .mobile-nav-account { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 0 10px; }
  .mobile-nav-account > span { min-width: 0; display: block !important; }
  .mobile-nav-account strong, .mobile-nav-account small { display: block; }
  .mobile-nav-account small { margin-top: 2px; color: var(--muted); font-size: 11px; }
  .mobile-nav-account a { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
  .mobile-nav-account a:hover { color: var(--text); background: var(--surface-2); }
  .mobile-nav-account svg { width: 19px; height: 19px; }
  .topbar { left: 0; padding-left: 72px; gap: 10px; }
  .topbar > :first-child { min-width: 0; overflow: hidden; }
  .title-block h1, .detail-breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { flex: none; gap: 6px; }
  .header-actions .icon-button { width: 44px; height: 44px; }
  .header-clock, .user-chip { display: none; }
}

@media (max-width: 720px) {
  :root { --topbar: 72px; }
  .topbar { height: var(--topbar); padding: 10px 10px 10px 68px; align-items: center; }
  .title-block p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-trigger { top: 14px; left: 10px; }
}

@media (min-width: 1024px) {
  .endpoint-fields {
    grid-template-columns: minmax(120px, .72fr) minmax(150px, 1fr) minmax(190px, 1.2fr) minmax(160px, 1fr) minmax(140px, .8fr) minmax(84px, .45fr);
    grid-template-areas: "role server ssh ack check port";
  }
}

/* Slack alert settings: dense operational policy workspace */
.slack-settings-page { gap: 16px; padding-bottom: 72px; }
.slack-status-summary {
  display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 2.7fr); align-items: stretch;
  overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.slack-status-heading { min-width: 0; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--border-soft); }
.slack-status-heading .settings-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.slack-status-heading h2, .slack-status-heading p { margin: 0; }
.slack-status-heading h2 { font-size: 14px; }
.slack-status-heading p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.slack-status-grid { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); }
.slack-status-grid article { min-width: 0; min-height: 66px; padding: 11px 13px; display: grid; align-content: center; gap: 6px; border-right: 1px solid var(--border-soft); }
.slack-status-grid article:last-child { border-right: 0; }
.slack-status-grid article > span { color: var(--muted); font-size: 10px; }
.slack-status-grid article > strong:not(.status-pill) { overflow: hidden; color: var(--text); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.slack-status-grid .status-pill { width: max-content; max-width: 100%; }

.slack-settings-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); align-items: start; gap: 16px; }
.slack-settings-layout .settings-card, .slack-history-card { border-color: var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .025); }
.slack-settings-layout .settings-card > header, .slack-history-card > header { padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-color: var(--border-soft); }
.slack-settings-layout .settings-card > header h2, .slack-history-card > header h2 { font-size: 14px; }
.slack-settings-layout .settings-card > header p, .slack-history-card > header p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.slack-policy-body { display: grid; }
.settings-section + .settings-section { border-top: 1px solid var(--border-soft); }
.settings-section > header { padding: 13px 16px 9px; }
.settings-section > header h3, .settings-section > header p { margin: 0; }
.settings-section > header h3 { font-size: 12px; }
.settings-section > header p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.setting-row-list { display: grid; }
.setting-row { min-width: 0; min-height: 68px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-row + .setting-row { border-top: 1px solid var(--border-soft); }
.primary-setting-row { min-height: 76px; background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.setting-copy { min-width: 0; }
.setting-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.setting-copy h3, .setting-copy h4, .setting-copy p { margin: 0; }
.setting-copy h3 { font-size: 13px; }
.setting-copy h4 { font-size: 12px; }
.setting-copy p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.setting-copy .status-pill { min-height: 21px; padding: 2px 7px; font-size: 9px; }

.settings-switch { width: 50px; height: 44px; flex: 0 0 50px; display: grid; place-items: center; }
.settings-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.settings-switch label { position: relative; width: 42px; height: 24px; display: block; border: 1px solid color-mix(in srgb, var(--muted) 40%, var(--border)); border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.settings-switch label::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 42, .28); transition: transform .16s ease; }
.settings-switch input:checked + label { border-color: var(--green); background: var(--green); }
.settings-switch input:checked + label::after { transform: translateX(18px); }
.settings-switch input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--primary) 18%, transparent); outline-offset: 2px; }
.settings-switch input:disabled + label { opacity: .5; cursor: not-allowed; }

.slack-form-grid { padding: 0 16px 14px; display: grid; gap: 12px; border: 0; margin: 0; min-width: 0; }
.slack-form-grid.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slack-field { min-width: 0; display: grid; align-content: start; gap: 6px; color: var(--text-soft); font-size: 11px; font-weight: 650; }
.slack-field input, .slack-field select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font: inherit; outline: 0; }
.slack-field input:hover:not(:disabled), .slack-field select:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 24%, var(--border)); }
.slack-field input:focus, .slack-field select:focus { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 11%, transparent); }
.slack-field small { min-height: 28px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.45; }
.slack-field small b { color: var(--text-soft); }
.input-with-suffix { position: relative; display: block; }
.input-with-suffix input { padding-right: 34px; }
.input-with-suffix > b { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); font-size: 9px; font-weight: 600; pointer-events: none; }
.conditional-settings { transition: opacity .16s ease; }
.conditional-settings.is-disabled { opacity: .55; }
.conditional-settings.is-disabled input, .conditional-settings.is-disabled select { background: var(--surface-2); cursor: not-allowed; }

.settings-action-bar { min-height: 58px; margin-top: 0 !important; padding: 10px 16px !important; align-items: center; justify-content: space-between !important; border-color: var(--border-soft) !important; }
.settings-action-bar > span { color: var(--muted); font-size: 10px; }
.settings-action-bar > span.is-dirty { color: var(--amber); font-weight: 650; }
.settings-action-bar .primary-button { min-height: 38px; }
.slack-side-stack { min-width: 0; display: grid; align-items: start; gap: 16px; }
.slack-side-stack .settings-card { align-self: start; }
.settings-kv-grid { margin: 0; padding: 5px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-kv-grid > div { min-width: 0; min-height: 54px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.settings-kv-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.settings-kv-grid > div:nth-child(odd) { padding-right: 12px; }
.settings-kv-grid > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--border-soft); }
.settings-kv-grid dt { color: var(--muted); font-size: 9px; }
.settings-kv-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: 10px; font-weight: 600; line-height: 1.45; }
.settings-kv-grid.compact { padding-top: 2px; padding-bottom: 2px; }
.settings-kv-grid.compact > div { min-height: 48px; }
.inline-alert { margin: 10px 16px 14px; padding: 10px 11px; border-left: 3px solid; border-radius: 7px; background: var(--surface-2); }
.inline-alert strong, .inline-alert p { margin: 0; }
.inline-alert strong { display: block; font-size: 10px; }
.inline-alert p { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.45; }
.inline-alert.success { border-color: var(--green); }
.inline-alert.danger { border-color: var(--red); background: var(--red-soft); }
.inline-alert.danger strong { color: var(--red); }
.inline-alert.info { border-color: var(--primary); }
.message-test-body { display: grid; }
.block-kit-preview { margin: 10px 16px 0; padding: 12px; display: grid; gap: 4px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--surface-2); }
.block-kit-preview > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.block-kit-preview strong { font-size: 11px; line-height: 1.4; }
.block-kit-preview p { margin: 0; color: var(--muted); font-size: 9px; }
.test-action-footer { min-height: 60px; padding: 10px 16px !important; align-items: center; justify-content: space-between !important; gap: 12px; }
.test-action-footer > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.test-action-footer form { flex: none; }
.test-action-footer button { min-height: 38px; }

.slack-history-card { overflow: hidden; }
.slack-history-card > header { align-items: center; }
.history-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.slack-history-card .table-scroll { max-width: 100%; overflow-x: auto; }
.slack-history-table { min-width: 1080px; }
.slack-history-table th, .slack-history-table td { height: 42px; padding: 7px 10px; font-size: 10px; }
.slack-history-table th { font-size: 9px; white-space: nowrap; }
.slack-history-table .numeric { text-align: center; font-variant-numeric: tabular-nums; }
.slack-history-table .failed-row { background: color-mix(in srgb, var(--red) 3%, var(--surface)); }
.slack-history-table .status-pill { min-height: 22px; padding: 2px 7px; font-size: 9px; }
.history-error-details { position: relative; }
.history-error-details summary { color: var(--red); font-size: 9px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.history-error-details p { min-width: 220px; max-width: 360px; margin: 7px 0 0; padding: 8px; overflow-wrap: anywhere; border-radius: 6px; color: var(--text); background: var(--red-soft); font-size: 9px; line-height: 1.45; white-space: normal; }
.slack-history-empty { height: 140px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--muted); text-align: center; }
.slack-history-empty > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 15px; }
.slack-history-empty strong { color: var(--text); font-size: 11px; }
.slack-history-empty p { margin: 0; font-size: 9px; }

@media (max-width: 1280px) {
  .slack-status-summary { grid-template-columns: 1fr; }
  .slack-status-heading { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .slack-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slack-status-grid article:nth-child(3) { border-right: 0; }
  .slack-status-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--border-soft); }
}
@media (max-width: 1024px) {
  .slack-settings-layout { grid-template-columns: minmax(0, 1fr); }
  .slack-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slack-form-grid.three-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .slack-settings-page { gap: 12px; padding-bottom: 96px; }
  .slack-status-heading { padding: 12px; }
  .slack-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slack-status-grid article { min-height: 60px; padding: 10px 12px; border-right: 1px solid var(--border-soft) !important; border-bottom: 1px solid var(--border-soft); }
  .slack-status-grid article:nth-child(even) { border-right: 0 !important; }
  .slack-status-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .slack-settings-layout .settings-card > header, .slack-history-card > header { padding: 12px; }
  .slack-side-stack, .slack-form-grid.three-column { grid-template-columns: minmax(0, 1fr); }
  .setting-row { min-height: 76px; padding: 12px; }
  .slack-form-grid { padding: 0 12px 12px; }
  .slack-field small { min-height: 0; }
  .settings-action-bar {
    position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; min-height: 68px;
    padding: 10px 14px !important; border-top: 1px solid var(--border) !important; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); backdrop-filter: blur(10px);
  }
  .settings-action-bar .primary-button { min-width: 132px; min-height: 44px; }
  .settings-kv-grid { padding-right: 12px; padding-left: 12px; }
  .test-action-footer { align-items: stretch; flex-direction: column; }
  .test-action-footer form, .test-action-footer button { width: 100%; }
  .slack-history-empty { height: 124px; }
}

/* Daily report lookup: dense query and structured log workspace */
.report-workspace { display: grid; align-content: start; gap: 16px; padding-bottom: 64px !important; }
.report-workspace .console-section { min-width: 0; overflow: visible; }
.report-query-form { padding: 14px 16px 16px; }
.report-query-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.55fr) minmax(130px, .7fr) minmax(140px, .78fr) minmax(140px, .78fr) minmax(135px, .7fr) minmax(135px, .7fr) minmax(132px, auto);
  grid-template-areas: "hospital ward patient patient-name start end submit";
  align-items: start; gap: 12px;
}
.report-hospital-field { grid-area: hospital; min-width: 0; }
.report-hospital-field .hospital-search-field { min-width: 0; }
.report-query-grid > .report-field:nth-of-type(1) { grid-area: ward; }
.report-query-grid > .report-field:nth-of-type(2) { grid-area: patient; }
.report-query-grid > .report-field:nth-of-type(3) { grid-area: patient-name; }
.report-query-grid > .report-field:nth-of-type(4) { grid-area: start; }
.report-query-grid > .report-field:nth-of-type(5) { grid-area: end; }
.report-submit-field { grid-area: submit; min-width: 0; padding-top: 20px; }
.report-field { min-width: 0; display: grid; gap: 6px; color: var(--text); font-size: 11px; font-weight: 700; }
.report-field > input, .report-field > select, .report-date-control > input:first-child {
  width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); background: var(--surface-2); font: inherit; font-weight: 500; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.report-field > input:hover, .report-field > select:hover, .report-date-control > input:first-child:hover { border-color: color-mix(in srgb, var(--text) 24%, var(--border)); background: var(--surface); }
.report-field > input:focus, .report-field > select:focus, .report-date-control > input:first-child:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 11%, transparent); }
.report-field > input:disabled, .report-field > select:disabled, .report-date-control > input:first-child:disabled { color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
.report-field [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 9%, transparent) !important; }
.report-date-control { position: relative; min-width: 0; display: block; }
.report-date-control > input:first-child { padding-right: 42px; }
.report-date-control > input[type="date"], .report-date-control > input[type="time"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.report-date-control > button { position: absolute; top: 1px; right: 1px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--border-soft); border-radius: 0 7px 7px 0; color: var(--muted); background: transparent; cursor: pointer; }
.report-date-control > button:hover { color: var(--text); background: var(--surface-3); }
.report-date-control > button:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: -3px; }
.report-date-control svg { width: 17px; height: 17px; stroke-width: 1.7; }
.report-submit-field .primary-button { width: 100%; min-height: 42px; gap: 7px; }
.report-submit-field svg { width: 16px; height: 16px; stroke-width: 1.8; }
.report-field-error { margin: 8px 0 0; color: var(--red); font-size: 10px; font-weight: 650; }
.report-meaning-note { margin-top: 12px; padding: 9px 11px; display: flex; align-items: flex-start; gap: 8px; border-radius: 8px; color: var(--muted); background: var(--surface-2); }
.report-meaning-note svg { width: 16px; height: 16px; flex: none; color: var(--primary); stroke-width: 1.7; }
.report-meaning-note p { margin: 0; font-size: 10px !important; line-height: 1.5; }
.report-meaning-note strong { color: var(--text); }

.report-results-card > header { align-items: center; }
.report-results-card > header .secondary-button { min-height: 34px; }
.report-loading-state { min-height: 150px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--muted); text-align: center; }
.report-loading-state[hidden] { display: none !important; }
.report-loading-state .spinner { width: 22px; height: 22px; }
.report-loading-state strong { color: var(--text); font-size: 12px; }
.report-loading-state p { margin: 0; font-size: 10px !important; }
.report-result-alert { margin: 14px 16px 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid transparent; border-radius: 8px; }
.report-result-alert.warning { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, var(--border)); background: var(--amber-soft); }
.report-result-alert.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, var(--border)); background: var(--red-soft); }
.report-result-alert > div { min-width: 0; }
.report-result-alert strong { font-size: 11px; }
.report-result-alert p { margin: 3px 0 0; overflow-wrap: anywhere; color: inherit; font-size: 10px !important; line-height: 1.45; white-space: pre-line; }
.report-result-alert small { margin-top: 4px; display: block; font-size: 9px; text-align: center; }
.report-generation-results { margin: 14px 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.report-result-summary { padding: 14px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-bottom: 1px solid var(--border-soft); }
.report-result-summary button { min-width: 0; min-height: 58px; padding: 9px 11px; display: grid; justify-items: start; align-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--surface); cursor: pointer; }
.report-result-summary button:hover { background: var(--surface-2); }
.report-result-summary button:disabled { opacity: .72; cursor: default; }
.report-result-summary button:disabled:hover { background: var(--surface); }
.report-result-summary button.active { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: inset 0 -2px var(--primary); }
.report-result-summary button span { font-size: 10px; font-weight: 650; }
.report-result-summary button strong { color: var(--text); font-size: 17px; line-height: 1; }
.report-result-summary button.success strong { color: var(--green); }
.report-result-summary button.danger strong { color: var(--red); }
.report-result-summary button.warning strong { color: var(--amber); }

.report-log-section { min-width: 0; }
.report-log-heading { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border-soft); }
.report-log-heading h3, .report-log-heading p { margin: 0; }
.report-log-heading h3 { font-size: 12px; }
.report-log-heading p { margin-top: 3px; color: var(--muted); font-size: 10px !important; }
.report-log-heading label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px !important; white-space: nowrap; }
.report-log-heading select { height: 32px; padding: 0 26px 0 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font-size: 10px !important; }
.report-log-table-wrap { width: 100%; overflow-x: auto; }
.report-log-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.report-log-table th { height: 36px; padding: 0 12px; color: var(--muted); background: var(--surface-2); font-size: 9px; text-align: left; }
.report-log-table th:nth-child(1) { width: 125px; }.report-log-table th:nth-child(2) { width: 27%; }.report-log-table th:nth-child(3) { width: auto; }.report-log-table th:nth-child(4) { width: 118px; }.report-log-table th:nth-child(5) { width: 64px; text-align: center; }
.report-log-table td { height: 54px; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; white-space: normal; }
.report-log-table tbody tr:last-child td { border-bottom: 0; }
.report-log-table tbody tr { transition: background .14s ease; }
.report-log-table tbody tr:hover { background: var(--surface-2); }
.report-log-table tbody tr.unconfirmed-row { background: color-mix(in srgb, var(--red) 4%, var(--surface)); box-shadow: inset 3px 0 var(--red); }
.report-log-table tbody tr.unconfirmed-row:hover { background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.report-log-table time { font-size: 10px; font-variant-numeric: tabular-nums; }
.report-file-name, .report-server-path { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-file-name { font-size: 10px; font-weight: 650; }
.report-log-table td small { margin-top: 3px; display: block; color: var(--amber); font-size: 9px; }
.report-server-path { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; cursor: pointer; }
.report-server-path.expanded { overflow-wrap: anywhere; white-space: normal; }
.report-log-table td:last-child { text-align: center; }
.report-copy-row { width: 44px; height: 44px; }
.report-copy-row svg { width: 16px; height: 16px; stroke-width: 1.6; }
.report-pagination { min-height: 50px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 10px; }
.report-pagination > div { display: flex; gap: 6px; }
.report-pagination .secondary-button { min-height: 32px; padding: 0 10px; font-size: 10px; }
.report-filter-empty { min-height: 110px; padding: 20px; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.report-filter-empty[hidden] { display: none !important; }
.measurement-session-tools { min-height:68px; padding:12px 16px; display:flex; justify-content:space-between; align-items:center; gap:14px; border-bottom:1px solid var(--border-soft); }
.measurement-session-tools h3 { margin:0 0 3px; font-size:var(--type-section-size); }.measurement-session-tools p { margin:0; color:var(--muted); font-size:var(--type-helper-size); }.measurement-session-tools > div:last-child { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:7px; }.measurement-session-tools label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:var(--type-label-size); white-space:nowrap; }.measurement-session-tools select { min-height:32px; padding:0 26px 0 9px; font-size:var(--type-control-size); }
.measurement-patient-group { border-bottom:1px solid var(--border-soft); }.measurement-patient-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px 10px; background:var(--surface-2); }.measurement-patient-summary h3 { margin:2px 0 3px; font-size:var(--type-subsection-size); }.measurement-patient-summary code { font-size:var(--type-helper-size); color:var(--muted); }.measurement-patient-summary > p { margin:0; color:var(--muted); font-size:var(--type-helper-size); white-space:nowrap; }
.measurement-session-list { padding:0 16px 16px; display:grid; gap:10px; }.measurement-session { border:1px solid var(--border); border-radius:9px; overflow:hidden; background:var(--surface); }.measurement-session-header { display:flex; align-items:stretch; min-width:0; }.measurement-session-toggle { flex:1; min-width:0; padding:12px 14px; display:grid; gap:7px; border:0; background:transparent; color:var(--text); text-align:left; cursor:pointer; }.measurement-session-toggle:hover { background:var(--surface-2); }.measurement-session-toggle:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }.measurement-session-times { font-size:var(--type-subsection-size); font-weight:700; }.measurement-session-meta { display:flex; flex-wrap:wrap; gap:5px 11px; color:var(--muted); font-size:var(--type-helper-size); }.measurement-session-alert { color:var(--red); font-weight:650; }.measurement-session-id { width:min(430px, 37%); padding:12px; display:flex; align-items:center; gap:7px; border-left:1px solid var(--border-soft); color:var(--muted); font-size:var(--type-helper-size); }.measurement-session-id code { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.measurement-session-id .secondary-button { flex:0 0 auto; }
.measurement-session-panel { border-top:1px solid var(--border-soft); }.measurement-device-list-header, .measurement-device-item { display:grid; grid-template-columns:minmax(160px, 1.1fr) minmax(155px, 1fr) minmax(210px, 1.2fr) minmax(106px, .65fr); gap:12px; align-items:center; padding:10px 14px; }.measurement-device-list-header { color:var(--muted); background:var(--surface-2); font-size:var(--type-label-size); font-weight:650; }.measurement-device-item { border-top:1px solid var(--border-soft); font-size:var(--type-table-size); }.measurement-device-item[hidden] { display:none; }.measurement-device-item strong, .measurement-device-item small { display:block; }.measurement-device-item small { margin-top:3px; color:var(--muted); overflow-wrap:anywhere; }.measurement-device-item .measurement-long-summary { min-width:0; }.measurement-device-detail-row { border-top:1px solid var(--border-soft); background:var(--surface-2); }.measurement-device-detail-row[hidden] { display:none; }.measurement-device-detail-row .measurement-detail-panel { border-left:3px solid var(--primary); }
.measurement-copy-toast { position:fixed; z-index:50; right:20px; bottom:20px; margin:0; padding:10px 13px; border:1px solid var(--border); border-radius:8px; box-shadow:var(--shadow-lg); background:var(--surface); color:var(--text); font-size:var(--type-helper-size); }.measurement-copy-toast[hidden] { display:none; }
.report-empty-state { min-height: 180px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; }
.report-empty-state > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 17px; font-weight: 750; }
.report-empty-state.warning > span { color: var(--amber); background: var(--amber-soft); }
.report-empty-state.danger > span { color: var(--red); background: var(--red-soft); }
.report-empty-state strong { color: var(--text); font-size: 12px; }
.report-empty-state p { margin: 0; font-size: 10px !important; }
.report-toast { position: fixed; z-index: 90; right: 20px; bottom: 20px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); box-shadow: 0 12px 35px rgba(15, 23, 42, .16); font-size: 11px; font-weight: 650; }
.report-toast.success { border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }.report-toast.danger { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); }

@media (max-width: 1280px) {
  .report-query-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "hospital ward patient patient-name" "start end submit ."; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .report-query-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "hospital ward" "patient patient-name" "start end" "submit .";
  }
}
@media (max-width: 720px) {
  .report-workspace { gap: 12px; padding-bottom: 36px !important; }
  .report-query-form { padding: 12px; }
  .report-query-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hospital" "ward" "patient" "patient-name" "start" "end" "submit"; gap: 11px; }
  .report-submit-field { padding-top: 0; }
  .report-submit-field .primary-button { min-height: 44px; }
  .report-meaning-note { margin-top: 11px; }
  .report-results-card > header { align-items: stretch; }
  .report-results-card > header .secondary-button { min-height: 44px; }
  .report-result-alert { margin: 12px 12px 0; align-items: stretch; flex-direction: column; }
  .report-result-alert .secondary-button { width: 100%; min-height: 44px; }
  .report-result-summary { padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-log-heading { padding: 11px 12px; align-items: flex-start; flex-direction: column; }
  .report-log-table-wrap { overflow: visible; }
  .report-log-table, .report-log-table tbody { display: block; }
  .report-log-table thead { display: none; }
  .report-log-table tbody { padding: 0 12px; }
  .report-log-table tbody tr { margin: 10px 0; padding: 10px; display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
  .report-log-table tbody tr.unconfirmed-row { border-color: color-mix(in srgb, var(--red) 28%, var(--border)); background: color-mix(in srgb, var(--red) 4%, var(--surface)); }
  .report-log-table td { height: auto; padding: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; border: 0; text-align: left !important; }
  .report-log-table td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 650; }
  .report-log-table td:last-child { align-items: center; }
  .report-copy-row { justify-self: start; }
  .report-pagination { padding: 9px 12px; align-items: stretch; flex-direction: column; }
  .report-pagination > div { width: 100%; }
  .report-pagination .secondary-button { min-height: 44px; flex: 1; }
  .report-empty-state { min-height: 160px; padding: 20px 14px; }
  .report-toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}

/* Global typography system -------------------------------------------------
   Semantic roles below intentionally override legacy page-level pixel sizes.
   Spacing and control heights remain compact; only text hierarchy changes. */
.title-block h1,
.entity-title-line h1,
.login-heading h1 {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-page-size);
  font-weight: 700;
  line-height: var(--type-page-line);
  letter-spacing: -.035em;
}
.title-block p,
.entity-meta,
.login-heading p,
.page-heading-card p {
  color: var(--muted);
  font-size: var(--type-helper-size);
  font-weight: 400;
  line-height: var(--type-helper-line);
}

.console-section > header h2,
.settings-card > header h2,
.slack-settings-layout .settings-card > header h2,
.slack-history-card > header h2,
.activity-summary h2,
.panel-section-heading h2,
.record-dialog h2,
.account-dialog h2,
.page-heading-card h2,
.slack-status-heading h2 {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-section-size);
  font-weight: 700;
  line-height: var(--type-section-line);
  letter-spacing: -.02em;
}
.console-section > header p,
.settings-card > header p,
.slack-settings-layout .settings-card > header p,
.slack-history-card > header p,
.activity-summary .section-title-row p,
.panel-section-heading p,
.record-dialog header p,
.account-dialog header p,
.slack-status-heading p {
  color: var(--muted);
  font-size: var(--type-helper-size);
  font-weight: 400;
  line-height: var(--type-helper-line);
}
.eyebrow,
.section-kicker,
.node-type,
.block-kit-preview > span {
  color: var(--muted);
  font-size: var(--type-eyebrow-size);
  font-weight: 750;
  line-height: 16px;
  letter-spacing: .08em;
}

.report-log-heading h3,
.settings-section > header h3,
.setting-copy h3,
.setting-copy h4,
.form-card h3,
.primary-connection-card h3,
.compact-settings-card h3,
.issue-manager-heading h3,
.reference-note-card h3,
.managed-record h3 {
  color: var(--text);
  font-size: var(--type-subsection-size);
  font-weight: 700;
  line-height: var(--type-subsection-line);
}
.settings-section > header p,
.setting-copy p,
.report-log-heading p,
.form-card header p,
.primary-connection-card header p,
.compact-settings-card header p,
.issue-manager-heading p {
  color: var(--muted);
  font-size: var(--type-helper-size) !important;
  font-weight: 400;
  line-height: var(--type-helper-line);
}

.nav-item,
.nav-group-toggle {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.sidebar .nav-item,
.sidebar .nav-item span,
.sidebar .nav-group-toggle,
.sidebar .nav-group-toggle span,
.sidebar .nav-children a,
.sidebar .nav-children a span {
  font-family: Pretendard, Inter, system-ui, -apple-system, sans-serif;
  font-weight: 400 !important;
  font-synthesis: none;
}
.nav-item.active,
.nav-group.active > .nav-group-toggle,
.nav-children a.active { font-weight: inherit; }
.nav-children a { font-size: 13px; font-weight: 400; line-height: 19px; }
.detail-tabs button,
.drawer-tabs button { font-size: 14px; font-weight: 600; line-height: 20px; }
.sidebar-brand small,
.login-card > header small { font-size: 12px; line-height: 16px; }
.header-clock,
.user-chip small,
.mobile-nav-account small,
.detail-breadcrumb { font-size: var(--type-meta-size); line-height: 18px; }

.field,
.field > span,
.field-heading > span,
.form-grid label,
.registry-form label,
.compact-settings-grid label,
.security-policy-field,
.advanced-settings-body label,
.reference-notes,
.slack-field,
.record-dialog label,
.account-dialog label,
.report-field,
.hospital-search-label {
  font-size: var(--type-label-size);
  font-weight: 600;
  line-height: var(--type-label-line);
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea,
.primary-button,
.secondary-button,
.danger-button,
.check-button,
.patient-check-button,
.text-button,
.collection-toggle {
  font-family: var(--font-sans);
  font-size: var(--type-control-size);
  line-height: 20px;
}
.primary-button,
.secondary-button,
.danger-button,
.check-button,
.patient-check-button,
.text-button { font-weight: 600; }
input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 1; font-size: inherit; }
input:disabled,
select:disabled,
textarea:disabled,
button:disabled { color: color-mix(in srgb, var(--muted) 88%, var(--text)); }

.field small,
.field-heading small,
.form-grid label small,
.server-ip-field > small,
.primary-ip-field small,
.endpoint-heading small,
.endpoint-body > small,
.endpoint-health small,
.slack-field small,
.report-meaning-note p,
.report-loading-state p,
.report-result-alert p,
.report-result-alert small,
.report-empty-state p,
.compact-empty-state small,
.history-empty p,
.table-empty-content p,
.console-empty-state p,
.slack-history-empty p,
.test-action-footer > span,
.settings-action-bar > span {
  color: var(--muted);
  font-size: var(--type-helper-size) !important;
  font-weight: 400;
  line-height: var(--type-helper-line);
}
.field .field-error,
.endpoint-node .field-error,
.section-field-error,
.report-field-error { font-size: var(--type-helper-size); line-height: var(--type-helper-line); }

th,
.operations-table th,
.compact-issue-table th,
.slack-history-table th,
.report-log-table th {
  color: var(--muted);
  font-size: var(--type-table-size);
  font-weight: 600;
  line-height: 18px;
}
td,
.operations-table td,
.compact-issue-table td,
.slack-history-table td,
.report-log-table td {
  font-size: var(--type-table-size);
  font-weight: 400;
  line-height: 20px;
}
.hospital-cell strong,
.operations-table .hospital-cell strong,
.report-file-name { font-size: 14px; font-weight: 600; line-height: 20px; }
.hospital-cell small,
.status-stack small,
.muted,
.relative-time,
.auto-check-note,
.search-scope-note,
.date-filter,
.table-pagination,
.report-pagination { font-size: var(--type-meta-size); line-height: 18px; }

.badge,
.status-badge,
.status-pill,
.issue-status-badge,
.tab-count,
.issue-summary-count,
.history-count,
.setting-alert,
.issue-filter span,
.slack-history-table .status-pill,
.setting-copy .status-pill {
  font-size: var(--type-badge-size);
  font-weight: 600;
  line-height: 16px;
}
.issue-filter span { min-width: 20px; height: 20px; }
.status-metric small,
.status-metric p,
.drawer-operational-summary > div > span:first-child,
.slack-status-grid article > span,
.settings-kv-grid dt,
.description-list dt,
.communication-metrics dt,
.summary-definition dt { font-size: var(--type-meta-size); line-height: 18px; }
.status-metric strong,
.slack-status-grid article > strong:not(.status-pill),
.settings-kv-grid dd,
.description-list dd,
.communication-metrics dd,
.summary-definition dd { font-size: 14px; line-height: 20px; }

.compact-empty,
.report-filter-empty,
.report-toast,
.toast,
.inline-alert,
.result-message,
.overview-note { font-size: var(--type-body-size); line-height: var(--type-body-line); }
.inline-alert strong,
.result-message strong,
.report-result-alert strong,
.slack-history-empty strong,
.report-empty-state strong { font-size: 14px; font-weight: 600; line-height: 20px; }
.inline-alert p,
.result-message p,
.block-kit-preview p { font-size: var(--type-helper-size); line-height: var(--type-helper-line); }

.report-content h1 { font-size: var(--type-page-size) !important; line-height: var(--type-page-line); }
.report-content h2 { font-size: var(--type-section-size) !important; line-height: var(--type-section-line); }
.report-content label,
.report-content button,
.report-content input,
.report-content select { font-size: var(--type-control-size) !important; }
.report-content p,
.report-content .text-xs { font-size: var(--type-helper-size) !important; line-height: var(--type-helper-line); }
.report-result-summary button span { font-size: var(--type-label-size); line-height: var(--type-label-line); }
.report-log-heading h3 { font-size: var(--type-section-size); line-height: var(--type-section-line); }
.report-log-heading label,
.report-log-heading select,
.report-pagination .secondary-button { font-size: var(--type-control-size) !important; }
.report-log-table time { font-size: var(--type-table-size); line-height: 20px; }
.report-log-table td small { font-size: var(--type-helper-size); line-height: var(--type-helper-line); }
.report-server-path,
.advanced-settings-body .properties-content-field textarea,
.properties-grid .code-field textarea,
.ip-configuration-table code,
.code-toolbar code,
[data-log-line] {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  line-height: 18px;
}

.slack-status-grid article > strong:not(.status-pill),
.settings-kv-grid dd,
.block-kit-preview strong { font-size: 13px; line-height: 19px; }
.slack-history-table th,
.slack-history-table td { font-size: var(--type-table-size); }
.history-error-details summary,
.history-error-details p { font-size: var(--type-helper-size); line-height: var(--type-helper-line); }

.kpi-card span,
.kpi-card small,
.operations-kpi span,
.operations-kpi small,
.registry-card > header small,
.registry-observed,
.compact-accordion-grid dt,
.settings-accordion summary small,
.entity-id,
.scope-cell small,
.record-summary-grid span,
.managed-note summary small,
.activity-summary-copy small,
.activity-summary-copy > span,
.completed-issue-row small,
.reference-note-card small,
.activity-feed-item small {
  color: var(--muted);
  font-size: var(--type-meta-size);
  line-height: 18px;
}
.registered-note,
.connection-flow,
.tag-option,
.endpoint-state,
.issue-filter button,
.issue-count,
.issue-complete-button,
.technical-setting summary,
.console-guide > summary strong,
.collection-toggle { font-size: var(--type-label-size); line-height: var(--type-label-line); }
.primary-ip-field > span,
.endpoint-row label span,
.endpoint-number,
.endpoint-node strong,
.ack-inline-form > label:not(.check-option),
.ack-inline-form .check-option { font-size: var(--type-label-size); line-height: var(--type-label-line); }
.issue-date,
.endpoint-card > footer,
.timeline-meta,
.issue-timeline small,
.audit-timeline small,
.sticky-save-bar small,
.danger-zone summary small,
.summary-card div > span,
.summary-card small { font-size: var(--type-meta-size); line-height: 18px; }
.legacy-issue-history > summary,
.legacy-issue-history strong,
.legacy-issue-history p,
.legacy-records strong,
.legacy-records p,
.issue-timeline p,
.audit-timeline strong,
.audit-timeline p,
.compact-timeline strong,
.compact-timeline p,
.compact-timeline small,
.compact-issue-list strong,
.compact-issue-list small,
.activity-feed-item strong,
.activity-feed-item p,
.completed-issue-row p,
.reference-note-card p,
.danger-zone p,
.confirm-modal header p,
.confirm-modal form > p,
.sticky-save-bar strong,
.guide-grid p,
.console-guide > summary > span:not(.guide-icon) {
  font-size: var(--type-helper-size);
  line-height: var(--type-helper-line);
}
.guide-grid h2 { font-size: var(--type-subsection-size); line-height: var(--type-subsection-line); }
.ip-configuration-table th,
.ip-configuration-table td { font-size: var(--type-table-size); line-height: 20px; }
.code-toolbar button { font-size: 12px; line-height: 18px; }
.input-addon span,
.input-suffix span,
.input-with-suffix > b { font-size: var(--type-helper-size); }
.field > span mark,
.field small b { font-size: 12px; line-height: 16px; }
.login-card > footer { font-size: var(--type-meta-size); line-height: 18px; }

.measurement-query-grid { grid-template-columns:minmax(230px, 1.55fr) minmax(130px, .7fr) minmax(150px, 1fr) minmax(135px, .7fr) minmax(135px, .7fr) minmax(132px, auto); grid-template-areas:"hospital ward patient-name start end submit"; }
.measurement-query-grid > .report-field:nth-of-type(1) { grid-area:ward; }
.measurement-query-grid > .report-field:nth-of-type(2) { grid-area:patient-name; }
.measurement-query-grid > .report-field:nth-of-type(3) { grid-area:start; }
.measurement-query-grid > .report-field:nth-of-type(4) { grid-area:end; }
.measurement-filter-bar { min-width:0; padding:12px 16px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border-soft); background:var(--surface); }
.measurement-filter-label { flex:0 0 auto; color:var(--muted); font-size:var(--type-label-size); font-weight:650; }
.measurement-device-filters { min-width:0; display:flex; align-items:center; gap:6px; overflow-x:auto; scrollbar-width:thin; }
.measurement-device-filters button { flex:0 0 auto; min-height:34px; padding:5px 7px 5px 10px; display:inline-flex; align-items:center; gap:7px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:var(--surface); font-size:var(--type-control-size); cursor:pointer; }
.measurement-device-filters button:hover { color:var(--primary); border-color:color-mix(in srgb, var(--primary) 42%, var(--border)); background:var(--primary-soft); }
.measurement-device-filters button:focus-visible { outline:2px solid color-mix(in srgb, var(--primary) 62%, transparent); outline-offset:2px; }
.measurement-device-filters button.active { color:var(--primary); border-color:color-mix(in srgb, var(--primary) 55%, var(--border)); background:var(--primary-soft); }
.measurement-device-filters button b { min-width:18px; height:18px; padding:0 5px; display:inline-grid; place-items:center; border-radius:999px; color:var(--muted); background:var(--surface-2); font-size:var(--type-label-size); line-height:1; }
.measurement-device-filters button.active b { color:var(--primary); background:color-mix(in srgb, var(--primary) 13%, var(--surface)); }
.measurement-table-heading label { color:var(--muted); font-size:var(--type-label-size); }
.measurement-table-heading { min-height:68px; padding:12px 16px; display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--border-soft); }
.measurement-table-heading h3 { margin:0 0 3px; font-size:var(--type-section-size); }
.measurement-table-heading p { margin:0; color:var(--muted); font-size:var(--type-helper-size); }
.measurement-table-heading label { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.measurement-table-heading select { min-height:32px; padding:0 26px 0 9px; font-size:var(--type-control-size); }
.measurement-device-table-wrap { overflow-x:auto; }
.measurement-device-table { width:100%; min-width:1160px; border-collapse:collapse; table-layout:fixed; font-size:var(--type-table-size); }
.measurement-device-table th, .measurement-device-table td { padding:11px 12px; border-bottom:1px solid var(--border-soft); vertical-align:top; text-align:left; }
.measurement-device-table th { color:var(--muted); font-size:var(--type-label-size); font-weight:650; background:var(--surface-2); white-space:nowrap; }
.measurement-device-table th:nth-child(1) { width:9%; }.measurement-device-table th:nth-child(2) { width:14%; }.measurement-device-table th:nth-child(3) { width:12%; }.measurement-device-table th:nth-child(4), .measurement-device-table th:nth-child(5) { width:12%; }.measurement-device-table th:nth-child(6) { width:13%; }.measurement-device-table th:nth-child(7) { width:18%; }.measurement-device-table th:nth-child(8) { width:10%; }
.measurement-device-row { transition:background .14s ease; }.measurement-device-row:hover { background:var(--surface-2); }.measurement-device-row.selected { background:color-mix(in srgb, var(--primary) 6%, var(--surface)); }.measurement-device-row.selected > td:first-child { box-shadow:inset 3px 0 var(--primary); }
.measurement-device-table td > strong, .measurement-device-table td > span { display:block; }
.measurement-device-table td small { display:block; margin-top:4px; color:var(--muted); overflow-wrap:anywhere; }
.measurement-device-table code { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.measurement-long-summary { margin:0; padding:0; list-style:none; display:grid; gap:5px; min-width:180px; }
.measurement-long-summary li { font-size:var(--type-helper-size); line-height:18px; }
.measurement-long-summary .warning { color:var(--amber); }
.measurement-long-summary .danger { color:var(--red); }
.measurement-detail-toggle { min-width:0; min-height:34px; padding:0 9px; white-space:nowrap; }.measurement-detail-toggle svg { width:14px; height:14px; }
.measurement-device-detail-row > td { padding:0; background:var(--surface-2); border-bottom:1px solid var(--border); }
.measurement-detail-panel { width:100%; min-width:0; padding:14px 16px 16px; border-left:3px solid var(--primary); box-sizing:border-box; }
.measurement-detail-panel > header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:12px; }.measurement-detail-panel h3 { margin:2px 0 4px; font-size:var(--type-section-size); }.measurement-detail-panel header p, .measurement-detail-panel header small { margin:0; color:var(--muted); font-size:var(--type-helper-size); }.measurement-detail-panel header code { display:inline; max-width:min(540px, 60vw); }
.measurement-detail-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 10px; margin-bottom:10px; border:1px solid var(--border-soft); border-radius:8px; background:var(--surface); }.measurement-detail-toolbar > div { display:inline-flex; gap:4px; }.measurement-detail-toolbar button { min-height:30px; padding:0 8px; border:1px solid transparent; border-radius:6px; color:var(--muted); background:transparent; font-size:var(--type-label-size); cursor:pointer; }.measurement-detail-toolbar button.active { color:var(--primary); border-color:color-mix(in srgb, var(--primary) 35%, var(--border)); background:var(--primary-soft); }.measurement-detail-toolbar p { margin:0; color:var(--muted); font-size:var(--type-helper-size); }
.measurement-event-table-wrap { overflow-x:auto; padding-bottom:14px; }
.measurement-event-table-wrap { max-height:440px; border:1px solid var(--border-soft); border-radius:8px; background:var(--surface); }.measurement-event-table-wrap table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:var(--type-table-size); }.measurement-event-table-wrap th, .measurement-event-table-wrap td { padding:9px 10px; border-bottom:1px solid var(--border-soft); text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.measurement-event-table-wrap th { position:sticky; top:0; z-index:1; background:var(--surface-2); color:var(--muted); font-size:var(--type-label-size); }.measurement-event-table-wrap th:nth-child(1) { width:28%; }.measurement-event-table-wrap th:nth-child(2) { width:15%; }.measurement-event-table-wrap th:nth-child(3) { width:22%; }.measurement-event-table-wrap th:nth-child(4) { width:22%; }.measurement-event-table-wrap th:nth-child(5) { width:13%; }
.measurement-empty-detail { color:var(--muted); margin:0 0 14px; }
.measurement-detail-content { min-width:0; padding:0 0 8px; color:var(--muted); }
.measurement-detail-pagination { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:0; color:var(--muted); font-size:var(--type-label-size); }.measurement-detail-pagination > div { display:flex; align-items:center; gap:7px; }.measurement-detail-pagination label { display:flex; align-items:center; gap:6px; }
.measurement-detail-pagination .secondary-button { min-height:32px; padding:0 10px; font-size:var(--type-control-size); }
.measurement-detail-actions { display:flex; flex-wrap:wrap; gap:6px; }.measurement-timeline-axis { position:relative; height:31px; margin:8px 0 0 96px; border-top:1px solid var(--border-soft); }.measurement-timeline-tick { position:absolute; top:0; height:100%; border-left:1px dashed color-mix(in srgb,var(--muted) 35%,transparent); }.measurement-timeline-tick:first-child { border-left:0; }.measurement-timeline-tick i { display:block; height:6px; border-left:1px solid var(--muted); }.measurement-timeline-tick b { display:block; margin:3px 0 0 5px; color:var(--text-soft); font-size:11px; font-weight:650; white-space:nowrap; }.measurement-timeline-lane { position:relative; }.measurement-timeline-track { z-index:1; }.measurement-timeline-guide { position:absolute; z-index:0; top:0; bottom:0; width:1px; background:color-mix(in srgb,var(--border) 75%,transparent); }.measurement-copy-toast.error { color:var(--red); }
.measurement-state-timeline { position:relative; margin:0 0 14px; padding:4px 0 0; border:0; border-radius:0; background:transparent; }.measurement-timeline-heading,.measurement-raw-event-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.measurement-timeline-heading h4,.measurement-raw-event-header h4 { margin:1px 0 4px; font-size:var(--type-section-size); }.measurement-timeline-heading p,.measurement-raw-event-header p { margin:0; color:var(--muted); font-size:var(--type-helper-size); }.measurement-timeline-ranges { display:flex; flex-wrap:wrap; gap:4px; }.measurement-timeline-ranges button,.measurement-event-sort button { min-height:32px; padding:0 9px; border:1px solid var(--border); border-radius:6px; color:var(--muted); background:var(--surface); cursor:pointer; font-size:var(--type-label-size); }.measurement-timeline-ranges button.active,.measurement-event-sort button.active { border-color:color-mix(in srgb,var(--primary) 52%,var(--border)); color:var(--primary); background:var(--primary-soft); }.measurement-timeline-window { margin:13px 0 8px; color:var(--muted); font-size:var(--type-helper-size); }.measurement-timeline-window span { margin:0 5px; }.measurement-timeline-lane { display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; gap:10px; margin-top:8px; }.measurement-timeline-lane > strong { font-size:var(--type-label-size); }.measurement-timeline-track { position:relative; min-height:34px; overflow:hidden; border:1px solid var(--border-soft); border-radius:6px; background:var(--surface-2); }.measurement-timeline-segment { position:absolute; z-index:1; top:3px; bottom:3px; display:block; min-width:3px; overflow:hidden; padding:0 6px; border:1px solid color-mix(in srgb,currentColor 45%,transparent); border-radius:4px; color:#fff; font-size:10px; font-weight:650; text-align:left; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }.measurement-timeline-segment:not(.has-label) { padding:0; }.measurement-timeline-segment:not(.has-label) span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }.measurement-timeline-segment.success { background:var(--green); }.measurement-timeline-segment.danger { background:var(--red); }.measurement-timeline-segment.info { background:var(--primary); }.measurement-timeline-segment.warning { background:var(--amber); color:#3d2a00; }.measurement-timeline-segment.neutral { background:#8a98aa; }.measurement-timeline-segment.is-problem { outline:2px solid color-mix(in srgb,currentColor 26%,transparent); }.measurement-timeline-empty { position:relative; z-index:1; display:grid; height:34px; place-items:center; color:var(--muted); font-size:var(--type-helper-size); }.measurement-raw-event-header { align-items:center; margin:0 0 10px; padding-top:0; border-top:0; }.measurement-raw-event-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:7px; }.measurement-raw-event-header label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:var(--type-label-size); }.measurement-raw-event-header select { min-height:32px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); }.measurement-event-sort { display:flex; gap:4px; }.measurement-empty-detail { color:var(--muted); font-size:var(--type-helper-size); }
.measurement-muted { color:var(--muted); font-size:var(--type-helper-size); }
.measurement-session-alert { display:inline-flex; align-items:center; gap:5px; min-height:24px; padding:2px 8px; border:1px solid color-mix(in srgb, var(--red) 32%, var(--border)); border-radius:999px; color:var(--red); background:var(--red-soft); font-size:var(--type-helper-size); font-weight:600; }
.measurement-session-alert::before { content:"!"; width:14px; height:14px; display:grid; place-items:center; border-radius:50%; color:#fff; background:currentColor; font-size:10px; font-weight:700; }
.measurement-timeline-help { width:20px; height:20px; margin-left:5px; display:inline-grid; place-items:center; border:1px solid var(--border); border-radius:50%; color:var(--muted); background:var(--surface); font:inherit; font-size:12px; font-weight:700; vertical-align:2px; cursor:help; }
.measurement-timeline-legend { display:flex; flex-wrap:wrap; gap:6px 10px; margin:8px 0 12px 96px; color:var(--muted); font-size:var(--type-helper-size); }
.measurement-timeline-legend-item { display:inline-flex; align-items:center; gap:5px; }.measurement-timeline-legend-item i { width:9px; height:9px; border-radius:3px; background:#8a98aa; }.measurement-timeline-legend-item.success i { background:#76b89a; }.measurement-timeline-legend-item.info i { background:#7fa8df; }.measurement-timeline-legend-item.warning i { background:#e4aa4d; }.measurement-timeline-legend-item.danger i { background:#df6875; }
.measurement-timeline-ranges .secondary-button { min-height:44px; }
.measurement-timeline-segment { padding:0; border-color:transparent; color:transparent; }.measurement-timeline-segment:hover,.measurement-timeline-segment:focus-visible { z-index:2; outline:2px solid color-mix(in srgb,currentColor 42%,transparent); outline-offset:1px; }.measurement-timeline-segment.success { background:#76b89a; }.measurement-timeline-segment.info { background:#7fa8df; }.measurement-timeline-segment.warning { background:#e4aa4d; }.measurement-timeline-segment.danger { background:#df6875; }.measurement-timeline-segment.warning,.measurement-timeline-segment.danger { border-color:color-mix(in srgb,currentColor 20%,transparent); }.measurement-timeline-tooltip { position:absolute; z-index:5; max-width:260px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; box-shadow:0 10px 24px rgba(15,23,42,.16); color:var(--text); background:var(--surface); font-size:var(--type-helper-size); line-height:18px; white-space:pre-line; pointer-events:none; }
.measurement-event-table-wrap { max-height:none; padding-bottom:0; overflow-x:auto; }.measurement-event-table-wrap th { position:static; }.measurement-event-table-wrap th:nth-child(1) { width:27%; }.measurement-event-table-wrap th:nth-child(2) { width:18%; }.measurement-event-table-wrap th:nth-child(3) { width:12%; }.measurement-event-table-wrap th:nth-child(4) { width:18%; }.measurement-event-table-wrap th:nth-child(5) { width:25%; }.measurement-code-cell { max-width:0; }.measurement-range-start-state { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:var(--surface-2); color:var(--text-soft); }.measurement-range-start-state > strong { color:var(--text); font-size:var(--type-label-size); }.measurement-range-start-state ul { display:flex; flex-wrap:wrap; gap:5px 18px; margin:5px 0 0; padding:0; list-style:none; font-size:var(--type-helper-size); }.measurement-range-start-state p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.measurement-time-navigator { margin:4px 0 0 96px; padding:0; border:0; background:transparent; }.measurement-time-navigator-bar { position:relative; height:32px; cursor:pointer; touch-action:none; }.measurement-time-navigator-bar::before { content:""; position:absolute; top:50%; right:0; left:0; height:10px; border-radius:4px; background:color-mix(in srgb,var(--muted) 20%,var(--surface)); transform:translateY(-50%); }.measurement-time-selection { position:absolute; z-index:1; top:50%; height:10px; display:block; min-width:4px; border:1px solid color-mix(in srgb,var(--primary) 76%,#0f172a); border-radius:3px; background:var(--primary); cursor:grab; transform:translateY(-50%); }.measurement-time-selection i { position:absolute; z-index:2; top:50%; width:12px; height:18px; border:2px solid var(--primary); border-radius:4px; background:var(--surface); cursor:ew-resize; outline:0; transform:translateY(-50%); }.measurement-time-selection i::after { content:""; position:absolute; inset:-8px -12px; }.measurement-time-selection i:focus-visible { box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 11%,transparent); }.measurement-time-selection i[data-range-handle="start"] { left:-6px; }.measurement-time-selection i[data-range-handle="end"] { right:-6px; }.measurement-time-selection b { position:absolute; z-index:1; top:-11px; right:0; bottom:-11px; left:0; }.measurement-time-navigator-meta { min-height:18px; }.measurement-time-navigator p { margin:2px 0 0; color:var(--muted); font-size:var(--type-helper-size); line-height:16px; }.measurement-custom-range { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)) auto; align-items:end; gap:8px; margin-top:5px; padding:8px 0 0; border:0; background:transparent; }.measurement-custom-range[hidden] { display:none; }.measurement-custom-range-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }.measurement-custom-range-actions button { min-height:44px; white-space:nowrap; }.measurement-custom-range .report-field-error { grid-column:1/-1; margin-top:0; }

@media (max-width: 1100px) { .measurement-custom-range { grid-template-columns:repeat(2,minmax(0,1fr)); }.measurement-custom-range-actions { grid-column:1/-1; } }

@media (max-width: 720px) {
  :root { --type-page-size: 20px; --type-page-line: 28px; }
  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea { font-size: 16px !important; }
  .nav-item, .nav-group-toggle { font-size: 15px; }
  .nav-children a { font-size: 14px; }
  .report-log-table td::before { font-size: var(--type-label-size); line-height: var(--type-label-line); }
  .measurement-query-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"hospital hospital" "ward patient-name" "start end" "submit submit"; }
  .measurement-filter-bar { align-items:flex-start; flex-direction:column; gap:7px; }.measurement-device-filters { width:100%; padding-bottom:2px; }
  .measurement-table-heading { align-items:flex-start; flex-direction:column; }
  .measurement-device-table-wrap { overflow:visible; }
  .measurement-device-table { min-width:0; }
  .measurement-device-table thead { display:none; }
  .measurement-device-table, .measurement-device-table tbody, .measurement-device-table tr, .measurement-device-table td { display:block; width:100%; }
  .measurement-device-table tr { padding:8px 12px; border-bottom:1px solid var(--border-soft); }
  .measurement-device-table td { padding:7px 0; border:0; }
  .measurement-device-table td::before { content:attr(data-label); display:block; margin-bottom:3px; color:var(--muted); font-size:var(--type-label-size); }
  .measurement-detail-panel { padding:12px; }.measurement-detail-panel > header { align-items:flex-start; flex-direction:column; }.measurement-detail-toolbar { align-items:flex-start; flex-direction:column; }.measurement-detail-pagination { align-items:flex-start; flex-direction:column; }.measurement-detail-pagination > div { width:100%; }.measurement-detail-pagination .secondary-button { flex:1; }.measurement-detail-content { min-width:0; overflow-x:auto; }.measurement-timeline-heading,.measurement-raw-event-header { align-items:flex-start; flex-direction:column; }.measurement-timeline-lane { grid-template-columns:1fr; gap:4px; }.measurement-timeline-legend,.measurement-timeline-axis,.measurement-time-navigator { margin-left:0; }.measurement-custom-range { grid-template-columns:repeat(2,minmax(0,1fr)); }.measurement-custom-range-actions { grid-column:1/-1; }.measurement-timeline-tooltip { display:none; }.measurement-event-table-wrap table { min-width:760px; }
}

@media (min-width: 721px) and (max-width: 1280px) { .measurement-query-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-areas:"hospital ward patient-name" "start end submit"; } }

@media (max-width: 720px) {
  .measurement-session-tools, .measurement-patient-summary { align-items:flex-start; flex-direction:column; }
  .measurement-session-tools > div:last-child { justify-content:flex-start; }
  .measurement-patient-summary > p { white-space:normal; }
  .measurement-session-header { display:block; }.measurement-session-id { width:auto; border-top:1px solid var(--border-soft); border-left:0; }
  .measurement-device-list-header { display:none; }.measurement-device-item { grid-template-columns:1fr; gap:8px; }.measurement-device-item > div { display:grid; gap:3px; }.measurement-device-item > div::before { content:attr(role); display:none; }
  .measurement-device-item > div:nth-child(1)::before { content:"디바이스"; }.measurement-device-item > div:nth-child(2)::before { content:"마지막 이벤트"; }.measurement-device-item > div:nth-child(3)::before { content:"장시간 상태 요약"; }.measurement-device-item > div:nth-child(4)::before { content:"상세"; }.measurement-device-item > div::before { display:block; color:var(--muted); font-size:var(--type-label-size); }
  .measurement-copy-toast { right:14px; bottom:14px; left:14px; text-align:center; }
}
