/* Knowit Medi 파트너 포털 v2 / 디자인 묶음(2026-11-14 클로드디자인) 반영
   방법 A / 기존 클래스 이름은 그대로 두고 portal-theme.css · portal-shell.css 의 값과 규칙을 옮겼다
   로고 4색은 면 · 점 · 막대에만 / 글자는 진한 단계 / 모든 글자 4.5:1 이상 */
@font-face { font-family: 'Pretendard'; src: url('/fonts/Pretendard-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/fonts/Pretendard-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/fonts/Pretendard-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/fonts/Pretendard-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  --pt-bg: #F1F7F5; --pt-bg-deep: #E8F1EE; --pt-bg-floor: #DFEBE7; --pt-surface: #FFFFFF; --pt-well: #F6FAF8;
  --pt-line: #DFE8E4; --pt-line-soft: #ECF2EF; --pt-line-hover: #B7D3C9; --pt-line-strong: #83918C; --pt-scrim: rgba(18, 33, 73, 0.34);
  --pt-ink: #122149; --pt-ink-2: #3D4A63; --pt-muted: #5A6579; --pt-placeholder: #6A7487;
  --pt-navy: #122149; --pt-blue: #4280E4; --pt-coral: #F15F3D; --pt-teal: #2BA68C;
  --pt-accent: #187362; --pt-accent-hover: #125B4E; --pt-accent-ink: #166B5B; --pt-accent-tint: #E3F3EE; --pt-accent-tint-2: #CFE9DF;
  --pt-ok: #166B5B; --pt-ok-tint: #E3F3EE; --pt-info: #2558B8; --pt-info-tint: #EAF1FD;
  --pt-warn: #8A5300; --pt-warn-tint: #FBF1DC; --pt-warn-dot: #D99A1E; --pt-danger: #B4321F; --pt-danger-tint: #FCEAE5;
  --pt-neutral: #4B5466; --pt-neutral-tint: #EEF1F3; --pt-now: #F15F3D; --pt-now-ink: #B8401F; --pt-now-tint: #FDEEE9; --pt-now-strong: #CF4527;
  --st1-dot: #8A93A8; --st1-ink: #4B5466; --st1-bg: #EEF1F3; --st2-dot: #4280E4; --st2-ink: #2558B8; --st2-bg: #EAF1FD;
  --st3-dot: #7C64D8; --st3-ink: #5B45A8; --st3-bg: #F0ECFB; --st4-dot: #2BA68C; --st4-ink: #166B5B; --st4-bg: #E3F3EE;
  --st5-dot: #2A9BB5; --st5-ink: #136579; --st5-bg: #E1F2F6; --st6-dot: #D99A1E; --st6-ink: #8A5300; --st6-bg: #FBF1DC;
  --st7-dot: #F15F3D; --st7-ink: #A63F21; --st7-bg: #FDECE6; --st8-dot: #B4BAC6; --st8-ink: #626A7C; --st8-bg: #F1F2F4;
  --pt-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
  --pt-r-card: 16px; --pt-r-inner: 12px; --pt-r-ctl: 10px; --pt-r-pill: 999px; --pt-r-arch-sm: 29px 29px 10px 10px;
  --pt-sh-1: 0 1px 2px rgba(18, 33, 73, 0.06); --pt-sh-hover: 0 6px 20px rgba(18, 33, 73, 0.08); --pt-sh-pop: 0 12px 32px rgba(18, 33, 73, 0.14); --pt-sh-sheet: 0 24px 64px rgba(18, 33, 73, 0.2);
  --pt-focus: 0 0 0 2px #FFFFFF, 0 0 0 4px #4280E4;
  --pt-side-w: 248px; --pt-top-h: 64px;
  /* 옛 이름 → 새 값 (JS가 쓰는 변수는 없지만 남은 참조를 위해) */
  --bg: var(--pt-bg); --surface: var(--pt-surface); --surface2: var(--pt-well); --ink: var(--pt-ink); --ink2: var(--pt-ink-2); --muted: var(--pt-muted);
  --line: var(--pt-line); --line2: var(--pt-line-strong); --green: var(--pt-accent); --green-d: var(--pt-accent); --green-s: var(--pt-accent-tint); --green-ss: var(--pt-well);
  --blue: var(--pt-info); --blue-s: var(--pt-info-tint); --orange: var(--pt-now-ink); --orange-s: var(--pt-now-tint); --amber: var(--pt-warn); --amber-s: var(--pt-warn-tint); --red: var(--pt-danger); --red-s: var(--pt-danger-tint);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--pt-bg); color: var(--pt-ink); font-family: var(--pt-font); font-size: 14px; line-height: 22px; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--pt-accent); text-decoration: none; font-weight: 650; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 26px; line-height: 34px; } h2 { font-size: 16px; line-height: 24px; font-weight: 650; letter-spacing: -.01em; } h3 { font-size: 17px; line-height: 24px; }
p { margin: 0; }
ul.plain { margin: 0; padding-left: 18px; } ul.plain li { margin: 4px 0; } ul.plain.small li { margin: 2px 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--pt-well); padding: 2px 6px; border-radius: 6px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: none; box-shadow: var(--pt-focus); }
.muted { color: var(--pt-muted); } .small { font-size: 12.5px; line-height: 18px; } .center { text-align: center; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.warn-text { color: var(--pt-warn); font-weight: 650; }
.ic { width: 18px; height: 18px; flex: none; }
.hide { display: none !important; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }

/* 로고 */
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo .l1 { color: var(--pt-navy); } .logo .l2 { color: var(--pt-blue); } .logo .l3 { color: var(--pt-coral); } .logo .l4 { color: var(--pt-teal); }
.logo.big { font-size: 40px; }

/* 로그인 / 홈페이지 S2 아치 비율 (너비 = 높이 × 0.6 / 아래는 바닥에 닿음) */
.login { position: relative; min-height: 100vh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 24px 16px 0; background: linear-gradient(180deg, #F1F7F5 0%, #E8F1EE 62%, #DFEBE7 100%); }
.login::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 135px; background: linear-gradient(180deg, #D6E5DF 0%, #DFEBE7 55%, #E6F0EC 100%); }
.login::before { content: ''; position: absolute; left: 0; right: 0; bottom: 135px; height: 81px; background: linear-gradient(0deg, rgba(16, 72, 60, 0.07), rgba(16, 72, 60, 0)); }
.arch { position: relative; z-index: 1; width: 378px; min-height: 630px; margin-bottom: 135px; padding: 132px 36px 0; border-radius: 999px 999px 0 0; text-align: center; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FCFB 46%, #EEF6F3 100%); box-shadow: inset 20px 16px 31px -22px rgba(16, 72, 60, 0.2), 0 0 0 1px rgba(16, 72, 60, 0.05); }
.arch::before { content: ''; position: absolute; inset: -14px -14px 0; border: 1px solid rgba(16, 72, 60, 0.12); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.arch .rule { width: 214px; height: 1px; background: var(--pt-ink); opacity: .85; margin: 18px auto 14px; }
.sub-ko { font-size: 13px; line-height: 18px; letter-spacing: .16em; padding-left: .16em; font-weight: 650; }
.sub-en { font-size: 11px; line-height: 14px; letter-spacing: .24em; padding-left: .24em; color: var(--pt-muted); font-weight: 650; margin-top: 5px; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; width: 100%; margin-top: 30px; }
.login-form .btn.big { margin-top: 8px; }
.login-note { margin-top: 18px; font-size: 12px; line-height: 17px; color: var(--pt-muted); }
.login-note.small { margin-top: 2px; }
.form-error { color: var(--pt-danger); font-size: 13px; min-height: 18px; }
.login .muted.center { font-size: 13px; margin-top: 10px; }

/* 뼈대 */
.shell { display: grid; grid-template-columns: var(--pt-side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--pt-surface); border-right: 1px solid var(--pt-line); display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 16px; z-index: 30; }
.side-top { padding: 4px 12px 0; display: flex; flex-direction: column; gap: 9px; }
.side-sub { font-size: 12px; line-height: 14px; color: var(--pt-muted); font-weight: 650; letter-spacing: .16em; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--pt-r-ctl); color: var(--pt-ink-2); font-weight: 550; font-size: 14.5px; line-height: 1; }
.nav a .ic { color: var(--pt-muted); }
.nav a:hover { background: var(--pt-well); color: var(--pt-ink); text-decoration: none; }
.nav a.on { background: var(--pt-accent-tint); color: var(--pt-accent-ink); font-weight: 700; } .nav a.on .ic { color: var(--pt-accent); }
.nav .nav-sep { height: 1px; margin: 7px 12px; background: var(--pt-line-soft); }
.nav a.demo-link { margin-top: 12px; border: 1px dashed #F0B9A8; color: var(--pt-now-ink); } .nav a.demo-link .ic { color: var(--pt-now); } .nav a.demo-link:hover { background: var(--pt-now-tint); }
.side-foot { margin-top: auto; border-top: 1px solid var(--pt-line-soft); padding: 14px 4px 0; }
.me { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pt-accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; object-fit: cover; overflow: hidden; }
.me-name { font-weight: 700; font-size: 14px; line-height: 20px; } .me-role { font-size: 12px; line-height: 16px; color: var(--pt-muted); }
.side-actions { display: flex; gap: 2px; padding: 10px 0 0; flex-wrap: wrap; margin: 0 -4px; }
.mini { display: inline-flex; align-items: center; gap: 4px; height: 30px; font-size: 12px; color: var(--pt-ink-2); background: none; border: 0; padding: 0 6px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.mini:hover { background: var(--pt-well); color: var(--pt-ink); text-decoration: none; } .mini .ic { width: 13px; height: 13px; color: var(--pt-muted); }
.content { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: var(--pt-top-h); padding: 12px 32px; background: rgba(241, 247, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pt-line); }
.top-search { position: relative; flex: 0 1 440px; display: flex; align-items: center; gap: 10px; height: 40px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-ctl); padding: 0 14px; color: var(--pt-muted); }
.top-search .search { border: 0; background: transparent; padding: 0; flex: 1; min-width: 0; font-size: 14px; color: var(--pt-ink); }
.top-search .search::placeholder { color: var(--pt-placeholder); }
.top-search .search:focus { box-shadow: none; outline: none; }
.top-logo { display: none; }
.search-toggle { display: none; }
.search-ic { display: inline-flex; color: var(--pt-muted); }
.mobile-chip { display: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: 12px; box-shadow: var(--pt-sh-pop); padding: 6px; display: flex; flex-direction: column; max-height: 360px; overflow: auto; color: var(--pt-ink); }
.sr { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--pt-ink); align-items: center; font-weight: 400; }
.sr:hover { background: var(--pt-well); text-decoration: none; } .sr-type { font-size: 11px; color: var(--pt-muted); border: 1px solid var(--pt-line); border-radius: 6px; text-align: center; padding: 1px 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.demo-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--pt-r-pill); background: var(--pt-now-tint); color: var(--pt-now-ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.demo-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pt-now); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--pt-r-ctl); border: 1px solid var(--pt-line); background: var(--pt-surface); display: grid; place-items: center; color: var(--pt-ink-2); flex: none; }
.icon-btn:hover { border-color: #C9D6D1; color: var(--pt-ink); }
.badge-dot { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--pt-now-strong); box-shadow: 0 0 0 2px var(--pt-bg); color: #fff; font-size: 11px; line-height: 19px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
main { padding: 28px 32px 56px; max-width: 1360px; width: 100%; }
.view { display: flex; flex-direction: column; gap: 20px; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.only-mobile { display: none; }
.scrim { display: none; }

/* 페이지 머리 / 카드 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.page-head .muted { margin-top: 4px; max-width: 760px; font-size: 14px; line-height: 22px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions .sep { width: 1px; height: 24px; margin: 0 4px; background: var(--pt-line); }
.card { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); }
.card.focus { border-color: #9CCFBF; box-shadow: 0 0 0 3px var(--pt-accent-tint); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0; min-height: 28px; }
.card-head h2 { min-width: 0; }
.card-body { padding: 20px; }
.card-head + .card-body { padding-top: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2.home-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.link-btn { font-size: 13px; font-weight: 650; color: var(--pt-accent); white-space: nowrap; }
.empty { padding: 28px 16px; text-align: center; color: var(--pt-muted); display: flex; flex-direction: column; gap: 12px; align-items: center; font-size: 13.5px; line-height: 20px; }
.empty::before { content: ''; width: 34px; height: 44px; border: 1.5px solid #B4C9C1; border-bottom: 0; border-radius: 17px 17px 0 0; box-shadow: 0 1.5px 0 0 #B4C9C1; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--pt-r-inner); background: var(--pt-well); color: var(--pt-ink-2); font-size: 13.5px; line-height: 20px; }
.note.warn { background: var(--pt-warn-tint); color: var(--pt-warn); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--pt-r-ctl); border: 1px solid transparent; background: var(--pt-accent); color: #fff; font-weight: 650; font-size: 14px; line-height: 1; letter-spacing: -.005em; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; text-decoration: none; }
.btn:hover { background: var(--pt-accent-hover); text-decoration: none; } .btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--pt-surface); color: var(--pt-ink); border-color: #C9D6D1; }
.btn.ghost:hover { border-color: var(--pt-ink-2); background: var(--pt-well); }
.btn.tonal { background: var(--pt-accent-tint); color: var(--pt-accent-ink); } .btn.tonal:hover { background: var(--pt-accent-tint-2); }
.btn.quiet { background: transparent; color: var(--pt-ink-2); border-color: transparent; } .btn.quiet:hover { background: var(--pt-bg-deep); color: var(--pt-ink); }
.btn.danger { background: var(--pt-surface); color: var(--pt-danger); border-color: #EFCFC6; } .btn.danger:hover { background: var(--pt-danger-tint); }
.btn.danger-text { background: transparent; color: var(--pt-danger); border-color: transparent; } .btn.danger-text:hover { background: var(--pt-danger-tint); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.big { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 12px; width: 100%; }
.btn .ic { width: 16px; height: 16px; }

/* 입력 */
.input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--pt-line-strong); border-radius: var(--pt-r-ctl); background: var(--pt-surface); font: inherit; font-size: 14px; line-height: 20px; color: var(--pt-ink); }
.input::placeholder { color: var(--pt-placeholder); }
.input:focus { outline: none; border-color: var(--pt-blue); box-shadow: 0 0 0 3px rgba(66, 128, 228, .2); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
textarea.input { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
input[type=file].input { padding: 8px 12px; height: auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.5px; line-height: 16px; font-weight: 650; color: var(--pt-ink-2); }
.hint { font-size: 12.5px; line-height: 18px; color: var(--pt-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-col { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--pt-accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices .check { height: 40px; padding: 0 16px 0 12px; border: 1px solid #C9D6D1; border-radius: var(--pt-r-pill); background: var(--pt-surface); color: var(--pt-ink-2); font-weight: 550; }
.choices .check:has(input:checked) { border-color: var(--pt-accent); background: var(--pt-accent-tint); color: var(--pt-accent-ink); font-weight: 650; }
.checkrows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.checkrows .check { min-height: 48px; padding: 10px 14px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); background: var(--pt-surface); gap: 10px; }
.checkrows .check:has(input:checked) { border-color: #9CCFBF; background: var(--pt-well); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formfoot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pt-line-soft); }
.seg { display: inline-flex; background: var(--pt-bg-deep); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg-btn { display: inline-flex; gap: 6px; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--pt-ink-2); font-weight: 600; font-size: 13.5px; line-height: 1; }
.seg-btn:hover { color: var(--pt-ink); }
.seg-btn.on { background: var(--pt-surface); color: var(--pt-accent-ink); font-weight: 700; box-shadow: var(--pt-sh-1), 0 0 0 1px rgba(18, 33, 73, .05); }
.seg-btn .tab-count { height: 18px; min-width: 18px; background: rgba(255, 255, 255, .7); } .seg-btn.on .tab-count { background: var(--pt-accent-tint); color: var(--pt-accent-ink); }
.filters { display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap; }
.tabs-wrap { display: flex; flex-direction: column; gap: 0; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--pt-line); overflow-x: auto; padding: 0 12px; }
.tab { position: relative; display: inline-flex; gap: 6px; align-items: center; height: 46px; padding: 0 12px; border: 0; background: none; color: var(--pt-muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.tab:hover { color: var(--pt-ink); }
.tab.on { color: var(--pt-ink); font-weight: 700; }
.tab.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--pt-accent); }
.tab.on .tab-count { background: var(--pt-accent-tint); color: var(--pt-accent-ink); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pt-bg-deep); color: var(--pt-ink-2); font-size: 12px; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.tab-panel { padding: 20px; }

/* 배지 · 칩 */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pt-r-pill); font-size: 12px; line-height: 1; font-weight: 650; white-space: nowrap; background: var(--pt-neutral-tint); color: var(--pt-neutral); border: 0; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; }
.pill.soft { background: var(--pt-surface); color: var(--pt-ink-2); border: 1px solid var(--pt-line); font-weight: 550; } .pill.soft::before { display: none; }
.pill.ok { background: var(--pt-ok-tint); color: var(--pt-ok); } .pill.ok::before { background: var(--pt-teal); }
.pill.accent, .pill.blue { background: var(--pt-info-tint); color: var(--pt-info); } .pill.accent::before, .pill.blue::before { background: var(--pt-blue); }
.pill.warn { background: var(--pt-warn-tint); color: var(--pt-warn); } .pill.warn::before { background: var(--pt-warn-dot); }
.pill.danger { background: var(--pt-danger-tint); color: var(--pt-danger); }
.pill.navy { background: #E7EAF2; color: var(--pt-navy); }
.pill.off { background: var(--pt-neutral-tint); color: var(--pt-neutral); } .pill.off::before { width: 8px; height: 2px; border-radius: 1px; }
.pill.check::before { content: ''; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0; background: none; transform: rotate(-45deg) translateY(-1px); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pt-r-pill); font-size: 12px; line-height: 1; font-weight: 650; white-space: nowrap; background: var(--st-bg); color: var(--st-ink); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--st-dot); }
.st-intake, .s1 { --st-dot: var(--st1-dot); --st-ink: var(--st1-ink); --st-bg: var(--st1-bg); } .st-sent, .s2 { --st-dot: var(--st2-dot); --st-ink: var(--st2-ink); --st-bg: var(--st2-bg); }
.st-replied, .s3 { --st-dot: var(--st3-dot); --st-ink: var(--st3-ink); --st-bg: var(--st3-bg); } .st-scheduled, .s4 { --st-dot: var(--st4-dot); --st-ink: var(--st4-ink); --st-bg: var(--st4-bg); }
.st-arrived, .s5 { --st-dot: var(--st5-dot); --st-ink: var(--st5-ink); --st-bg: var(--st5-bg); } .st-visited, .s6 { --st-dot: var(--st6-dot); --st-ink: var(--st6-ink); --st-bg: var(--st6-bg); }
.st-followup, .s7 { --st-dot: var(--st7-dot); --st-ink: var(--st7-ink); --st-bg: var(--st7-bg); } .st-closed, .s8 { --st-dot: var(--st8-dot); --st-ink: var(--st8-ink); --st-bg: var(--st8-bg); }
.st-b-intake { --st-dot: var(--st1-dot); } .st-b-sent { --st-dot: var(--st2-dot); } .st-b-replied { --st-dot: var(--st3-dot); } .st-b-scheduled { --st-dot: var(--st4-dot); } .st-b-arrived { --st-dot: var(--st5-dot); } .st-b-visited { --st-dot: var(--st6-dot); } .st-b-followup { --st-dot: var(--st7-dot); } .st-b-closed { --st-dot: var(--st8-dot); }

/* KPI 묶음 / 카드 한 장 안에서 무리별로 나눔 */
.kpi-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); }
.kpi-group { min-width: 0; padding: 14px 8px 8px; }
.kpi-group + .kpi-group { border-left: 1px solid var(--pt-line); }
.kpi-group-title { margin: 0 12px 2px; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .04em; color: var(--pt-muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpis.two .kpi { background: var(--pt-well); border-radius: var(--pt-r-inner); padding: 14px 16px; }
.ic-xs { width: 13px; height: 13px; vertical-align: -2px; }
.view > .kpis { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); padding: 8px; }
.card-body > .kpis { background: var(--pt-well); border-radius: var(--pt-r-inner); padding: 8px; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px 12px; border-radius: 12px; color: var(--pt-ink); font-weight: 400; }
a.kpi:hover { background: var(--pt-well); text-decoration: none; }
.kpi-label { overflow: hidden; font-size: 13px; line-height: 18px; font-weight: 550; color: var(--pt-ink-2); white-space: nowrap; text-overflow: ellipsis; }
.kpi-value.long { font-size: 20px; line-height: 30px; letter-spacing: -.01em; white-space: nowrap; }
.kpi-value { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--pt-muted); }
.kpi.warn .kpi-label::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--pt-warn-dot); vertical-align: 1px; }
.kpi.warn .kpi-sub { color: var(--pt-warn); font-weight: 650; } .kpi.warn .kpi-sub::before { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.kpi.accent .kpi-value { color: var(--pt-ink); }

/* 홈 */
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li + li { border-top: 1px solid var(--pt-line-soft); }
.todo li.muted { padding: 10px 8px; }
.todo-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px; color: var(--pt-ink); font-size: 14px; line-height: 20px; font-weight: 400; }
.todo-item:hover { background: var(--pt-well); text-decoration: none; }
.todo-item > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.todo-item .ic { color: var(--pt-muted); }
.todo-kind { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border-radius: var(--pt-r-pill); font-size: 12px; font-weight: 650; background: var(--pt-neutral-tint); color: var(--pt-neutral); white-space: nowrap; }
.todo-item.overdue .todo-kind { background: var(--pt-warn-tint); color: var(--pt-warn); } .todo-item.inbox .todo-kind { background: var(--pt-info-tint); color: var(--pt-info); }
.todo-item.slot .todo-kind { background: var(--pt-ok-tint); color: var(--pt-ok); } .todo-item.followup .todo-kind { background: var(--pt-now-tint); color: var(--pt-now-ink); }
.todo-item.reply .todo-kind { background: var(--pt-info-tint); color: var(--pt-info); }
.upcoming { display: flex; flex-direction: column; gap: 10px; }
.up-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); color: var(--pt-ink); font-weight: 400; }
.up-item:hover { border-color: var(--pt-line-hover); text-decoration: none; }
.up-date { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 64px; padding-top: 6px; border-radius: var(--pt-r-arch-sm); background: var(--pt-accent-tint); color: var(--pt-accent-ink); }
.up-date b { font-size: 15px; line-height: 19px; font-weight: 700; font-variant-numeric: tabular-nums; } .up-date span { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--pt-muted); }
.up-main { flex: 1; min-width: 0; } .up-main > div:first-child { font-size: 14.5px; line-height: 21px; } .up-main .muted.small { margin-top: 2px; }
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 12px; background: var(--pt-well); color: var(--pt-ink); font-weight: 400; }
.flow-step:hover { background: var(--pt-bg-deep); text-decoration: none; }
.flow-n { font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 16px; color: var(--pt-ink-2); white-space: nowrap; }
.flow-l::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--st-dot, var(--pt-teal)); }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { border-bottom: 1px solid var(--pt-line-soft); } .recent li:last-child { border-bottom: 0; } .recent li.muted { padding: 10px 4px; }
.recent-item { display: grid; grid-template-columns: 10px 86px 112px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 4px; color: var(--pt-ink); font-size: 13.5px; line-height: 20px; font-weight: 400; }
.recent-item:hover { background: var(--pt-well); text-decoration: none; }
.recent-item > .small { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.recent-item b { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; }
.recent-item > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--pt-ink-2); }
.legend { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--pt-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pt-teal); } .legend span.clinic::before { background: var(--pt-blue); }

/* 병원 홈 / 할 일 두 카드 */
.tasks2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.task { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 20px; }
.task-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.task-t { font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -.015em; }
.task-lab { margin-top: 1px; color: var(--pt-muted); font-size: 13px; line-height: 18px; font-weight: 550; }
.task-num { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.task-num.zero { color: var(--pt-muted); font-weight: 600; }
.task-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-height: 140px; padding: 8px; border-radius: var(--pt-r-inner); background: var(--pt-well); }
.task-body .empty { flex: 1; padding: 18px 16px; } .task-body .up-item { background: var(--pt-surface); }
.task-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 2px; color: var(--pt-muted); font-size: 12.5px; line-height: 16px; font-weight: 650; }
.task-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--pt-muted); font-size: 13px; line-height: 18px; }
.task-foot span { display: inline-flex; align-items: center; gap: 6px; } .task-foot b { color: var(--pt-ink); font-weight: 700; font-variant-numeric: tabular-nums; } .task-foot .ic { width: 15px; height: 15px; }
.archno { display: grid; flex: none; place-items: center; width: 40px; height: 46px; padding-top: 5px; border-radius: 20px 20px 8px 8px; background: var(--pt-accent); color: #fff; font-size: 17px; font-weight: 700; }
.archno.quiet { background: var(--pt-accent-tint); color: var(--pt-accent-ink); }
.task.focus .archno { box-shadow: 0 0 0 4px var(--pt-accent-tint); }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); background: var(--pt-surface); color: var(--pt-ink); font-weight: 400; }
.req:hover { border-color: var(--pt-line-hover); text-decoration: none; }
.req-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.req-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; color: var(--pt-ink-2); font-size: 13px; line-height: 19px; }
.req-meta span { display: inline-flex; align-items: center; gap: 6px; } .req-meta .ic { width: 14px; height: 14px; color: var(--pt-muted); }

/* 보드 */
.boardwrap { position: relative; min-width: 0; }
.boardwrap::after { content: ''; position: absolute; top: 0; right: 0; bottom: 10px; width: 56px; background: linear-gradient(90deg, rgba(241, 247, 245, 0), var(--pt-bg)); pointer-events: none; }
.board { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { display: flex; flex: 0 0 240px; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 14px; background: var(--pt-bg-deep); transition: .12s; }
.col.over { outline: 2px dashed var(--pt-accent); background: var(--pt-accent-tint); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px; font-weight: 700; font-size: 13.5px; line-height: 18px; }
.col-head::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-dot, var(--pt-teal)); }
.col-n { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; background: var(--pt-surface); color: var(--pt-ink-2); font-weight: 650; }
.col-list { display: flex; flex-direction: column; gap: 8px; }
.col-empty { font-size: 12.5px; color: var(--pt-muted); padding: 4px 6px 12px; line-height: 18px; }
.case-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); padding: 12px 14px; color: var(--pt-ink); cursor: pointer; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.case-card:hover { border-color: var(--pt-line-hover); box-shadow: var(--pt-sh-hover); text-decoration: none; }
.case-card.dragging { opacity: .5; } .case-card.inactive { opacity: .72; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.cc-ref { color: var(--pt-accent-ink); font-size: 12.5px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.cc-main { display: flex; gap: 8px; align-items: baseline; min-width: 0; } .cc-init { font-weight: 700; font-size: 15.5px; line-height: 22px; letter-spacing: .01em; flex: none; }
.cc-main .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-clinic { font-size: 13px; line-height: 19px; color: var(--pt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--pt-line-soft); font-size: 12.5px; line-height: 16px; color: var(--pt-muted); }
.cc-date { display: inline-flex; gap: 6px; align-items: center; color: var(--pt-accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; } .cc-date .ic { width: 14px; height: 14px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
/* 병원 케이스 / 단계를 세로로 쌓는 줄 */
.lanes { display: flex; flex-direction: column; }
.lane { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px 20px; }
.lane + .lane { border-top: 1px solid var(--pt-line-soft); }
.lane.is-empty { padding-top: 14px; padding-bottom: 14px; }
.lane-h { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 2px; }
.lane-name { display: flex; align-items: center; gap: 9px; font-size: 14.5px; line-height: 20px; font-weight: 700; }
.lane-name::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--st-dot, var(--pt-teal)); }
.lane-act { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: var(--pt-r-pill); background: var(--pt-accent-tint); color: var(--pt-accent-ink); font-size: 12px; line-height: 1; font-weight: 650; white-space: nowrap; }
.lane-act .ic { width: 13px; height: 13px; }
.lane-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lane-empty { padding-top: 2px; color: var(--pt-muted); font-size: 13.5px; line-height: 20px; }

/* 표 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.table th { text-align: left; font-size: 12px; line-height: 16px; color: var(--pt-muted); font-weight: 650; letter-spacing: .02em; padding: 10px 14px; border-bottom: 1px solid var(--pt-line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--pt-line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--pt-well); }
.table tr.clickable { cursor: pointer; }
.table.compact td { padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; } .table.compact th { padding: 8px 10px; }
.table tfoot td { padding-top: 12px; border-top: 1px solid var(--pt-line); border-bottom: 0; font-weight: 700; }
.mini-link { font-weight: 700; color: var(--pt-accent-ink); font-variant-numeric: tabular-nums; }

/* 문의함 */
.inq-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inq-card { display: flex; flex-direction: column; gap: 10px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); padding: 16px 18px 18px; color: var(--pt-ink); font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.inq-card:hover { border-color: var(--pt-line-hover); box-shadow: var(--pt-sh-hover); text-decoration: none; }
.inq-top { display: flex; gap: 8px; align-items: center; } .inq-top .muted { margin-left: auto; font-variant-numeric: tabular-nums; }
.inq-main { color: var(--pt-ink-2); font-size: 14px; line-height: 20px; } .inq-main b { margin-right: 6px; color: var(--pt-ink); font-size: 15.5px; font-weight: 700; letter-spacing: .01em; }
.inq-msg { min-height: 68px; padding: 12px 14px; border-radius: var(--pt-r-inner); background: var(--pt-well); color: var(--pt-ink); font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inq-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.quote { background: var(--pt-well); padding: 12px 14px; border-radius: var(--pt-r-inner); white-space: pre-wrap; font-size: 14px; line-height: 22px; }
.kv { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; line-height: 22px; }
.kv.two { grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr); }
.kv-row { display: contents; }
.kv-k { color: var(--pt-muted); font-size: 13px; }
.kv-v { min-width: 0; } .kv-v .chips { margin-top: 6px; }
.kv .kv-row.span .kv-v { grid-column: span 3; }

/* 케이스 상세 */
.crumb { display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 18px; color: var(--pt-muted); margin-bottom: -8px; } .crumb a { display: inline-flex; gap: 4px; align-items: center; } .crumb .ic { width: 14px; height: 14px; }
.case-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.case-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.case-left, .case-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stepper { list-style: none; margin: 0; padding: 18px 12px 16px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); overflow-x: auto; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--pt-muted); font-size: 13px; line-height: 18px; font-weight: 550; text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 13px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: #D5E2DD; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.cur::before { background: var(--pt-teal); }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid #C6D4CE; border-radius: 50%; background: var(--pt-surface); color: var(--pt-muted); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper li.done { color: var(--pt-ink-2); } .stepper li.done .step-n { border-color: var(--pt-accent-tint); background: var(--pt-accent-tint); color: var(--pt-accent); }
.stepper li.cur { color: var(--pt-ink); font-weight: 700; } .stepper li.cur .step-n { border-color: var(--pt-accent); background: var(--pt-accent); color: #fff; box-shadow: 0 0 0 4px var(--pt-accent-tint); }
.stepbar { display: none; }
.jumpbar { display: none; }
.collapse > summary { list-style: none; cursor: pointer; } .collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary .sum-val { display: none; }
.tools { display: flex; flex-direction: column; gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--pt-line-soft); } .tool:last-child { border-bottom: 0; padding-bottom: 0; }
.tool-t { font-size: 12.5px; line-height: 16px; font-weight: 650; color: var(--pt-ink-2); }
.slots { display: flex; flex-direction: column; gap: 10px; }
.slots .slot { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); background: var(--pt-surface); }
.slots .slot.accepted { border-color: #9CCFBF; background: var(--pt-well); } .slots .slot.rejected { opacity: .55; }
.slot .slot-main { flex: 1; min-width: 0; font-size: 16px; line-height: 24px; }
.slot .slot-main b { font-weight: 700; font-variant-numeric: tabular-nums; } .slot .slot-main > .muted { font-size: 14px; }
.slot .slot-main .muted.small { font-size: 12.5px; line-height: 18px; }
.slots .slot .actions { flex: none; }
.slot-date { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 64px; padding-top: 6px; border-radius: var(--pt-r-arch-sm); background: var(--pt-info-tint); color: var(--pt-info); }
.slot-date b { font-size: 15px; line-height: 19px; font-weight: 700; } .slot-date span { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--pt-muted); }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow: auto; padding-right: 4px; }
.msg { max-width: 78%; padding: 10px 14px 12px; border-radius: 16px 16px 16px 4px; background: var(--pt-info-tint); align-self: flex-start; }
.msg.knowit { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--pt-accent-tint); }
.msg.note { background: var(--pt-warn-tint); align-self: stretch; max-width: 100%; border-radius: 12px; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; line-height: 16px; margin-bottom: 3px; flex-wrap: wrap; } .msg-meta b { color: var(--pt-ink); } .msg-meta .muted { font-variant-numeric: tabular-nums; }
.msg-text { white-space: pre-wrap; font-size: 14px; line-height: 22px; }
.composer { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--pt-line-soft); padding-top: 16px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 2px solid var(--pt-line); display: flex; flex-direction: column; gap: 12px; }
.tl { position: relative; padding-left: 18px; }
.tl-dot { position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--pt-teal); border: 2px solid var(--pt-surface); }
.tl.clinic .tl-dot, .recent-item .tl-dot.clinic { background: var(--pt-blue); }
.recent-item .tl-dot { position: static; width: 7px; height: 7px; border: 0; transform: translateY(-1px); }
.tl-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; line-height: 18px; flex-wrap: wrap; }
.tl-text { font-size: 14px; line-height: 22px; white-space: pre-wrap; }
.task-group { margin-bottom: 10px; padding: 8px 12px; border-radius: var(--pt-r-inner); } .task-group.cur { background: var(--pt-well); }
.task-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tasks li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; } .tasks li.late .check span { color: var(--pt-warn); font-weight: 650; }
.stay-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--pt-line-soft); } .stay-row:last-child { border-bottom: 0; }
.stay-row.done b { color: var(--pt-accent-ink); }
.slot-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.slot-form .row > .muted { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pt-accent-tint); color: var(--pt-accent-ink); font-size: 12.5px; font-weight: 700; flex: none; }
.hint-box { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--pt-r-inner); background: var(--pt-info-tint); color: var(--pt-ink); font-size: 13.5px; line-height: 20px; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); } .doc-row .ic { color: var(--pt-accent); } .doc-main { flex: 1; min-width: 0; }
.tpl-list { display: flex; flex-direction: column; gap: 10px; }
.tpl { padding: 14px 16px 16px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); } .tpl-body { margin-top: 8px; font-size: 13.5px; line-height: 21px; color: var(--pt-ink-2); white-space: pre-wrap; }
.temp-pw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; } .temp-pw > div { background: var(--pt-well); padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; } .temp-pw b { font-size: 16px; }
.consents { display: flex; flex-direction: column; gap: 8px; }
.consent-row { display: grid; grid-template-columns: 1fr 300px; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); }
.consent-row.ok { background: var(--pt-well); border-color: #BFE3D3; } .consent-row.need { border-color: #F1D9A5; background: var(--pt-warn-tint); }
.consent-main { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; } .consent-main b { margin-right: 6px; }
.consent-act { display: flex; flex-direction: column; gap: 6px; }
.small-input { height: 36px; font-size: 13px; }
.guide { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.guide li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 7px 0; color: var(--pt-ink-2); font-size: 14px; line-height: 21px; }
.guide li > span:last-child { padding-top: 5px; }
.guide-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--pt-well); color: var(--pt-muted); } .guide-ic .ic { width: 16px; height: 16px; }
.guide li.key { color: var(--pt-ink); font-weight: 650; } .guide li.key .guide-ic { background: var(--pt-accent-tint); color: var(--pt-accent); }
.guide li.quiet { color: var(--pt-muted); font-size: 13px; }

/* 병원 */
.clinic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.clinic-card { display: flex; flex-direction: column; gap: 14px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); padding: 20px; color: var(--pt-ink); font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.clinic-card:hover { border-color: var(--pt-line-hover); box-shadow: var(--pt-sh-hover); text-decoration: none; } .clinic-card.off { opacity: .55; }
.clinic-name { font-size: 17px; line-height: 24px; }
.clinic-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--pt-line-soft); border-radius: var(--pt-r-inner); background: var(--pt-well); }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 6px 9px; } .stat + .stat { border-left: 1px solid var(--pt-line-soft); }
.stat b { font-size: 18px; line-height: 24px; font-variant-numeric: tabular-nums; } .stat span { font-size: 12px; line-height: 15px; color: var(--pt-muted); } .stat.warn b { color: var(--pt-warn); }
.onb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: auto; } .onb-bar { height: 6px; background: #DCE7E2; border-radius: 3px; overflow: hidden; } .onb-bar span { display: block; height: 100%; background: var(--pt-teal); border-radius: 3px; }
.lead-card { display: flex; flex-direction: column; gap: 4px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lead-card:hover { border-color: var(--pt-line-hover); box-shadow: var(--pt-sh-hover); } .lead-card.overdue { border-color: #F1D9A5; }
.lead-next { display: flex; gap: 6px; align-items: center; font-size: 12.5px; line-height: 17px; color: var(--pt-ink-2); font-variant-numeric: tabular-nums; } .lead-next .ic { width: 14px; height: 14px; color: var(--pt-muted); }
.board.crm .col { flex: 0 0 220px; }
.vis { display: flex; flex-direction: column; gap: 16px; }
.vis-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; line-height: 18px; font-weight: 700; } .vis-h.yes { color: var(--pt-accent-ink); } .vis-h.no { color: var(--pt-neutral); }
.vis ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 0 24px; list-style: none; }
.vis li { position: relative; color: var(--pt-ink-2); font-size: 13.5px; line-height: 20px; } .vis li::before { content: ''; position: absolute; top: 8px; left: -14px; width: 5px; height: 5px; border-radius: 50%; background: #B4C9C1; }

/* 일정 */
.cal-nav { display: flex; gap: 10px; align-items: center; } .cal-nav h2 { font-size: 18px; margin: 0 6px; font-weight: 700; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); overflow: hidden; }
.cal-wd { padding: 12px 8px 10px 16px; font-size: 12px; line-height: 16px; color: var(--pt-muted); font-weight: 650; border-bottom: 1px solid var(--pt-line); }
.cal-cell { min-height: 108px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--pt-line-soft); border-bottom: 1px solid var(--pt-line-soft); min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.off { background: var(--pt-well); }
.cal-d { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; line-height: 1; font-weight: 650; color: var(--pt-ink-2); font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-d { background: var(--pt-accent); color: #fff; }
.cal-ev { display: flex; align-items: center; gap: 6px; overflow: hidden; padding: 5px 8px; border-radius: 8px; background: var(--st-bg); color: var(--st-ink); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.cal-ev::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--st-dot); } .cal-ev b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-ev:hover { text-decoration: none; }

/* 리포트 */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 13.5px; line-height: 18px; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: #ECF2EF; border-radius: 0 4px 4px 0; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--pt-teal); border-radius: 0 4px 4px 0; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--pt-ink-2); font-size: 13px; }
.smalls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.small-chart { display: flex; flex-direction: column; gap: 6px; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 104px; align-items: end; border-bottom: 1px solid #C9D6D1; padding: 0 4px; }
.colbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.colbar-v { font-size: 12px; line-height: 14px; color: var(--pt-ink-2); font-weight: 650; font-variant-numeric: tabular-nums; } .colbar-l { font-size: 12px; color: var(--pt-muted); margin-top: 4px; }
.colbar-fill { width: 24px; background: var(--pt-teal); border-radius: 4px 4px 0 0; }

/* 시연 */
.script { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scene { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 12px; }
.scene::before { content: ''; position: absolute; top: 34px; bottom: 0; left: 15px; width: 2px; border-radius: 2px; background: #D5E2DD; } .scene:last-child::before { display: none; } .scene.done::before { background: var(--pt-teal); }
.scene-n { width: 32px; height: 32px; margin-top: 12px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--pt-surface); border: 1.5px solid #C6D4CE; color: var(--pt-muted); }
.scene.next .scene-n { background: var(--pt-accent); color: #fff; border-color: var(--pt-accent); box-shadow: 0 0 0 4px var(--pt-accent-tint); } .scene.done .scene-n { background: var(--pt-accent-tint); color: var(--pt-accent); border-color: var(--pt-accent-tint); }
.scene-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); background: var(--pt-surface); }
.scene.next .scene-body { border-color: #9CCFBF; box-shadow: 0 0 0 3px var(--pt-accent-tint); } .scene.done .scene-body { background: var(--pt-well); }
.scene-body b { font-size: 15px; line-height: 22px; } .scene-body .muted { font-size: 13.5px; line-height: 20px; } .scene-body .row { margin-top: 8px; gap: 12px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.qa { border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); background: var(--pt-surface); } .qa summary { padding: 14px 16px; cursor: pointer; font-weight: 650; font-size: 14.5px; line-height: 20px; list-style: none; } .qa summary::-webkit-details-marker { display: none; } .qa p, .qa ul { padding: 0 16px 16px; color: var(--pt-ink-2); font-size: 13.5px; line-height: 21px; }

/* 모달 / 서랍 / 토스트 */
.modal { border: 0; border-radius: 20px; padding: 0; width: min(600px, calc(100vw - 32px)); box-shadow: var(--pt-sh-sheet); color: var(--pt-ink); }
.modal.wide { width: min(720px, calc(100vw - 32px)); }
.modal::backdrop { background: var(--pt-scrim); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 4px; }
.modal-body { padding: 16px 24px 20px; max-height: 70vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--pt-line-soft); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--pt-bg); z-index: 60; transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column; box-shadow: var(--pt-sh-sheet); border-radius: 20px 0 0 20px; }
.drawer.wide { width: min(720px, 100vw); } .drawer.in { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--pt-line); background: var(--pt-surface); border-radius: 20px 0 0 0; }
.drawer-body { padding: 20px 24px 40px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer-scrim { position: fixed; inset: 0; background: var(--pt-scrim); z-index: 55; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { display: flex; gap: 8px; align-items: center; background: var(--pt-navy); color: #fff; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; max-width: 380px; opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: var(--pt-sh-pop); }
.toast.in { opacity: 1; transform: none; } .toast.error { background: var(--pt-danger); } .toast.ok { background: var(--pt-accent); } .toast.notify { background: var(--pt-info); cursor: pointer; } .toast .ic { width: 16px; height: 16px; }
.notif-list { display: flex; flex-direction: column; gap: 4px; }
.notif { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 10px; border-radius: 10px; color: var(--pt-ink); align-items: start; font-weight: 400; }
.notif:hover { background: var(--pt-well); text-decoration: none; } .notif.unread { background: var(--pt-accent-tint); }
.notif-kind { width: 8px; height: 8px; border-radius: 50%; background: #B4BAC6; margin-top: 7px; } .notif.unread .notif-kind { background: var(--pt-teal); }
.big-avatar { width: 64px; height: 64px; font-size: 22px; }
.profile-row { display: flex; gap: 20px; align-items: flex-start; } .profile-row .grow { flex: 1; min-width: 0; }

/* 반응형 */
@media (max-width: 1100px) { .case-grid { grid-template-columns: minmax(0, 1fr); } .grid-2, .grid-2.home-grid { grid-template-columns: minmax(0, 1fr); } .smalls { grid-template-columns: 1fr 1fr; } .kpi-groups { grid-template-columns: 1fr; } .kpi-group + .kpi-group { border-left: 0; border-top: 1px solid var(--pt-line); } .consent-row { grid-template-columns: 1fr; } .inq-list, .clinic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tasks2 { grid-template-columns: 1fr; } .lane { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-2.home-grid, .tasks2, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-head .actions .btn.quiet, .case-head .actions .btn.danger-text { order: 9; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 316px; transform: translateX(-100%); transition: transform .2s; height: 100vh; border-radius: 0 20px 20px 0; box-shadow: var(--pt-sh-sheet); }
  .side.open { transform: none; }
  .side.open ~ .scrim { display: block; position: fixed; inset: 0; background: var(--pt-scrim); z-index: 25; }
  .only-mobile { display: grid; }
  .top { height: 56px; min-height: 56px; padding: 0 10px 0 12px; gap: 8px; background: var(--pt-surface); flex-wrap: nowrap; }
  .top .icon-btn { width: 38px; height: 38px; border-color: transparent; }
  .top-logo { display: block; font-size: 18px; margin-right: auto; }
  .top-search { position: static; flex: none; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; justify-content: center; }
  .top-search .search { display: none; } .top-search .search-ic { display: none; }
  .top-search .search-toggle { display: grid; width: 38px; height: 38px; border-color: transparent; }
  .mobile-chip { display: inline-flex; }
  .top.search-open .top-search { position: absolute; left: 12px; right: 12px; top: 64px; width: auto; height: 42px; border: 1px solid var(--pt-line); background: var(--pt-surface); padding: 0 12px; z-index: 21; }
  .top.search-open .top-search .search { display: block; } .top.search-open .top-search .search-toggle { display: none; }
  .top.search-open .search-results { top: calc(100% + 6px); }
  .top-right { margin-left: 0; gap: 2px; } .top-right .demo-chip { display: none; }
  .view > .demo-chip { align-self: flex-start; }
  main { padding: 18px 16px 32px; } .view { gap: 14px; }
  h1 { font-size: 22px; line-height: 30px; }
  .card-head { padding: 16px 16px 0; } .card-body { padding: 16px; } .tab-panel { padding: 16px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: span 1; }
  .kpi-groups { grid-template-columns: 1fr; } .kpi-group .kpis, .kpis, .kpis.four, .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 26px; line-height: 32px; } .kpi-group { padding: 12px 6px 6px; } .kpi { padding: 8px 10px 10px; }
  .kv, .kv.two { grid-template-columns: 90px minmax(0, 1fr); } .kv .kv-row.span .kv-v { grid-column: auto; }
  .flow { display: flex; overflow-x: auto; padding-bottom: 2px; } .flow-step { flex: 0 0 78px; }
  .cal-cell { min-height: 64px; padding: 4px; } .cal-ev span { display: none; } .cal-wd { padding: 8px 4px; text-align: center; }
  .stay-row { grid-template-columns: 1fr; } .recent-item { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; } .recent-item > span:last-child { flex-basis: 100%; white-space: normal; }
  .todo-item { grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 10px; padding: 10px 4px; } .todo-item > span:nth-child(2) { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .temp-pw { grid-template-columns: 1fr; } .clinic-stats { grid-template-columns: repeat(2, 1fr); } .inq-list, .clinic-grid { grid-template-columns: 1fr; }
  .checkrows { grid-template-columns: 1fr; } .choices .check { height: 38px; padding: 0 14px 0 10px; }
  .slots .slot { flex-wrap: wrap; gap: 12px; padding: 12px; } .slots .slot .actions { flex: 1 1 100%; } .slots .slot .actions .btn { flex: 1; }
  .msg { max-width: 92%; }
  .case-head { flex-direction: column; align-items: stretch; } .case-head .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case-head .actions .btn { width: 100%; } .case-head .actions .sep { display: none; }
  .case-head .actions .btn.quiet, .case-head .actions .btn.danger-text { width: auto; justify-self: start; height: 32px; padding: 0 8px; }
  .stepper { display: none; }
  .stepbar { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-card); background: var(--pt-surface); }
  .stepbar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; color: var(--pt-muted); } .stepbar-row b { color: var(--pt-ink); font-size: 15px; font-weight: 700; } .stepbar-row span { font-variant-numeric: tabular-nums; font-weight: 650; }
  .stepbar-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; } .stepbar-bar i { height: 7px; border-radius: 3px; background: #DCE7E2; } .stepbar-bar i.on { background: var(--pt-teal); } .stepbar-bar i.now { background: var(--pt-accent); }
  .jumpbar { position: sticky; top: 56px; z-index: 3; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 8px 16px; border-top: 1px solid var(--pt-line); border-bottom: 1px solid var(--pt-line); background: rgba(241, 247, 245, .96); }
  .jumpbar a { display: inline-flex; flex: none; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-pill); background: var(--pt-surface); color: var(--pt-ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
  .collapse:not([open]) .card-body { display: none; } .collapse:not([open]) .card-head { padding-bottom: 16px; }
  .collapse > summary .sum-val { display: block; font-size: 13px; line-height: 18px; color: var(--pt-ink-2); font-weight: 450; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .collapse > summary .card-head::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--pt-muted); border-bottom: 2px solid var(--pt-muted); transform: rotate(45deg); flex: none; margin-top: -4px; }
  .collapse[open] > summary .card-head::after { transform: rotate(-135deg); margin-top: 4px; }
  .case-right .tools .tool { border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); padding: 12px 14px; }
  .case-right .tools .tool:last-child { border-bottom: 1px solid var(--pt-line); }
  .task { padding: 16px; } .task-num { font-size: 30px; }
  .arch { width: 100%; max-width: 378px; min-height: 0; padding: 72px 22px 28px; margin-bottom: 110px; } .arch::before { inset: -10px -10px 0; }
  .login { align-items: flex-end; padding: 60px 16px 0; } .login::after { height: 110px; } .login::before { bottom: 110px; }
  .drawer { border-radius: 0; } .drawer-head { border-radius: 0; }
  .lane { padding: 14px 16px; } .lane-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 디자인 검수 20261116 / H3 리포트 모바일 · H4 병원 홈 · H5 터치 영역 · M3 병원 이름 칩 */
.view, .card, .card-body, .smalls, .small-chart, .cols, .colbar { min-width: 0; }
.colbar-fill { width: min(24px, 70%); }
.grid-2.grid-one { grid-template-columns: minmax(0, 1fr); }
.task-body { min-height: 0; }
.task-body .empty { min-height: 96px; }
.mini { min-height: 44px; height: auto; padding: 0 10px; }
.btn.quiet.small, .btn.danger-text.small { min-height: 44px; }
.org-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; padding: 0 12px; border-radius: var(--pt-r-pill); background: var(--pt-accent-tint); color: var(--pt-accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-chip.staff { background: var(--pt-bg-deep); color: var(--pt-ink-2); font-size: 12px; font-weight: 650; }
.side .org-chip { margin: 2px 6px 10px; align-self: flex-start; }
.top-right .org-chip { max-width: 220px; }
@media (max-width: 820px) {
  .top-right .org-chip { max-width: 112px; font-size: 12px; padding: 0 9px; min-height: 26px; }
  .btn.case-head-btn, .case-head .actions .btn.quiet, .case-head .actions .btn.danger-text { min-height: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .smalls { grid-template-columns: minmax(0, 1fr); }
  .colbar-v { font-size: 12px; }
}

/* 개인정보 · 동의 개편 (2026-11-15) */
.note.danger { background: var(--pt-danger-tint); color: var(--pt-danger); font-weight: 650; }
.note.soft { background: var(--pt-well); color: var(--pt-ink-2); }
.note .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.privacy-note, .health-note { margin-bottom: 12px; }
.forward-card { border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); padding: 12px 14px; margin-bottom: 12px; }
.forward-card.good { background: var(--pt-ok-tint); border-color: #BFE3D3; color: var(--pt-ok); }
.forward-card.bad { background: var(--pt-danger-tint); border-color: #EFCFC6; color: var(--pt-danger); }
.forward-title { display: flex; align-items: center; gap: 8px; }
.forward-title .ic { width: 18px; height: 18px; }
.forward-list { margin: 8px 0 0; padding-left: 18px; color: var(--pt-danger); }
.consent-group { margin-top: 18px; }
.consent-group .group-t { margin: 0 0 8px; font-size: 15px; line-height: 22px; color: var(--pt-ink); }
.consent-row .per-clinic { color: var(--pt-info); }
.consent-row.ok .consent-act { align-items: flex-end; }
.doc-warn { margin-bottom: 12px; font-weight: 650; }
.consent-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.strong-line { margin: 0 0 6px; font-weight: 700; }
.delete-req { margin-bottom: 16px; border-color: #EFCFC6; box-shadow: 0 0 0 3px var(--pt-danger-tint); }
.del-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.del-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--pt-line); border-radius: var(--pt-r-inner); background: var(--pt-surface); }
.alim-text { padding: 12px 14px; border-radius: var(--pt-r-inner); background: var(--pt-well); }
.report-card .form-grid { margin: 10px 0; }
@media (max-width: 640px) {
  .del-list li { flex-direction: column; align-items: stretch; }
  .consent-row { grid-template-columns: minmax(0, 1fr); }
  .form-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .collapse > summary .card-head > div:first-child { min-width: 0; flex: 1 1 0; }
}

/* 2026-11-16 재검수 N1 N3 N4 H5 / 표시만 고침 */
.wrap-any { overflow-wrap: anywhere; word-break: break-all; min-width: 0; max-width: 100%; }
.del-list .btn, .del-list button { min-height: 44px; }
.nav a { min-height: 44px; }
.tab { min-height: 44px; height: 44px; }
.icon-btn { min-width: 44px; min-height: 44px; }
.req, .up-item, .link-btn, .todo-item { min-height: 44px; }
.link-btn { display: inline-flex; align-items: center; padding: 0 6px; }
.side-actions .mini, .side-foot a { min-height: 44px; }
.top .icon-btn { width: 44px; height: 44px; }

/* 2026-11-16 재검수 N2 N5~N11 / 동의 힌트 · 알림톡 안내 · 터치 44px */
.btn.t44, .t44 { min-height: 44px; }
.consent-hint { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 19px; }
.consent-hint li::before { content: '· '; }
.empty-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--pt-line-strong); border-radius: var(--pt-r-inner); background: var(--pt-well); color: var(--pt-ink-2); font-size: 13px; line-height: 20px; }
.empty-box .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--pt-info); }
.empty-box b { display: block; font-size: 14px; color: var(--pt-ink); }
.empty-box p { margin: 2px 0 0; font-size: 13px; line-height: 20px; }
.chip-pending { display: inline-block; margin: 0 4px; padding: 1px 8px; border-radius: 999px; background: var(--pt-warn-tint); color: var(--pt-warn); font-size: 13px; line-height: 20px; font-weight: 650; }
.form-error[role="alert"] { margin: 6px 0 0; }

.btn.small.del-confirm { height: 44px; min-height: 44px; padding: 0 16px; }

/* 2026-11-16 재검수3 Q3 Q4 Q5 / 모달 버튼 44px · 삭제 요청 항목 정렬 · 번호 링크 터치 영역 */
.modal-foot .btn { height: 44px; min-height: 44px; }
.del-list li > div:first-child { flex: 1 1 240px; min-width: 0; }
.del-list li > .btn, .del-list li > button { margin-left: auto; align-self: center; }
.del-list li > div:first-child > a, .del-list li > div:first-child > b { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) { .del-list li > .btn, .del-list li > button { margin-left: 0; align-self: stretch; } }
/* R3 모바일에서는 번호 줄 높이를 내용만큼만 (세로 배치에서 flex-basis 240px 가 높이가 되던 것) */
@media (max-width: 640px) { .del-list li > div:first-child { flex: 0 0 auto; } }
.amount-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.amount-row .input { min-width: 0; flex: 1 1 160px; }
