/* 병원 포털(E1): 원장·실장이 매일 여는 화면. app.css(공통 컴포넌트) 위에 덧씌운다.
   틀: 왼쪽 사이드바(메뉴 묶음) + 넓은 본문. 랜딩과 같은 토큰(밤 네이비·앰버·라이브 블루)을 쓰되
   여기는 업무 화면이라 밝고 조용하게. 숫자는 IBM Plex Sans 고정폭. */

body.pt {
  --night: #071428; --night-2: #0c1f3d; --ink: #0a1a33; --text: #24314a; --muted: #5a677c; --faint: #8792a4;
  --rule: #dfe4ec; --rule-2: #eceff4; --bg: #f4f6f9; --amber: #e2a03f; --amber-ink: #9b6316; --amber-soft: #fbf1e1;
  --live: #3b82f6; --live-soft: #e8f1ff; --ok: #19a06b; --ok-soft: #e5f6ee;
  --num: "IBM Plex Sans", "Pretendard Variable", "Pretendard", sans-serif;
  --navy: #0a1a33; --navy-500: #1f4f8f;
  background: var(--bg); color: var(--text); font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 15.5px; word-break: keep-all;
}
.pt h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.pt h2, .pt .card-title { font-size: 17px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.pt .num, .pt .metric-value { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* 틀 */
.pt-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--night) 0 248px, transparent 248px); }
.pt-side { background: var(--night); color: #b9c6da; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.pt-brand { display: flex; align-items: center; gap: 10px; padding: 22px 22px 18px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.03em; text-decoration: none; }
.pt-brand:hover { text-decoration: none; }
.pt-brand svg { width: 24px; height: 24px; }
.pt-clinic { margin: 0 14px 10px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.pt-clinic b { display: block; color: #fff; font-size: 15px; line-height: 1.4; }
.pt-clinic .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pt-clinic .chip { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d6e0ee; }
.pt-clinic .chip.trial { background: var(--amber); color: #1d1405; }
.pt-nav { padding: 6px 10px 16px; display: grid; gap: 1px; }
.pt-nav .grp { font-size: 11.5px; font-weight: 700; color: #6f83a3; padding: 16px 12px 6px; }
.pt-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; color: #c3cfdf;
  font-size: 14.5px; text-decoration: none; }
.pt-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.pt-nav a.is-active { background: rgba(77, 155, 255, .16); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--live); }
.pt-nav .cnt { font-family: var(--num); font-size: 11.5px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; background: #ff5a4f; color: #fff; }
.pt-me { margin-top: auto; padding: 14px 22px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #8597b4; }
.pt-me a { color: #c3cfdf; }
.pt-main { min-width: 0; }
.pt-page { max-width: 1240px; margin: 0 auto; padding: 34px 40px 64px; }
.pt-foot { max-width: 1240px; margin: 0 auto; padding: 0 40px 32px; font-size: 12px; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; }

/* 미리보기 막대(운영자) */
.preview-bar { background: #3b2a06; color: #ffe9c2; }
.preview-bar-inner { padding: 10px 40px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.preview-bar a { color: #fff; text-decoration: underline; }

/* 컴포넌트 덧칠 */
.pt .card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: none; padding: 22px 24px; margin-bottom: 18px; }
.pt .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pt .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pt .metric { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; }
.pt .metric-item { padding: 6px 18px 6px 0; }
.pt .metric-item + .metric-item { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.pt .metric-value { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.pt .metric-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pt .table { font-size: 14.5px; }
.pt .table th { font-size: 12.5px; color: var(--muted); font-weight: 650; background: #f7f9fc; }
.pt .table td, .pt .table th { padding: 12px 14px; border-color: var(--rule-2); }
.pt .table tbody tr:hover { background: #f8fafd; }
.pt .table-wrap { border-color: var(--rule); border-radius: 12px; }
.pt .btn { border-radius: 10px; font-weight: 700; min-height: 40px; }
.pt .btn-primary { background: var(--ink); border-color: var(--ink); }
.pt .btn-primary:hover { background: #13305a; }
.pt .input, .pt .select, .pt textarea.input { border-radius: 10px; border-color: #cfd6e1; min-height: 44px; font-size: 15px; }
.pt .input:focus, .pt .select:focus { border-color: var(--live); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); outline: none; }
.pt .badge-warn { background: var(--amber-soft); color: var(--amber-ink); border-color: #f0d9b0; }
.pt :focus-visible { outline: 3px solid var(--live); outline-offset: 2px; }

/* 오늘 화면 */
.pt .card.today-trial { background: linear-gradient(120deg, var(--night-2), #13305a); color: #c7d2e4; border: 0 !important; padding: 26px 28px !important; }
.today-trial .card-title { color: #fff; font-size: 19px; }
.today-trial .days { font-family: var(--num); font-size: 44px; font-weight: 700; color: var(--amber); line-height: 1; }
.today-trial .days small { font-family: inherit; font-size: 15px; color: #a9b8d0; font-weight: 600; margin-left: 6px; }
.today-trial .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.today-trial .kpi { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 14px; }
.today-trial .kpi b { display: block; font-family: var(--num); font-size: 26px; color: #fff; letter-spacing: -.02em; }
.today-trial .kpi span { font-size: 12px; color: #a9b8d0; }
.today-trial .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.today-trial .btn-go { background: var(--amber); color: #1d1405; border-radius: 10px; padding: 0 18px; min-height: 42px; display: inline-flex; align-items: center; font-weight: 800; text-decoration: none; }
.today-trial .note { font-size: 13px; color: #a9b8d0; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.todo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 2px; border-top: 1px solid var(--rule-2); text-decoration: none; color: var(--text); }
.todo-row:first-child { border-top: 0; }
.todo-row:hover { text-decoration: none; background: #f8fafd; }
.todo-row b { font-family: var(--num); font-size: 26px; color: var(--ink); min-width: 40px; text-align: right; }
.todo-row b.hot { color: #e5484d; }
.todo-row .go { font-size: 13px; color: var(--live); font-weight: 700; }
.setup-bar { height: 8px; border-radius: 99px; background: var(--rule-2); overflow: hidden; margin: 10px 0 8px; }
.setup-bar i { display: block; height: 100%; background: var(--live); border-radius: 99px; }

/* 로그인 전(가입·로그인) */
body.pt-auth { background: #fff; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-story { background: radial-gradient(800px 500px at 20% 0%, #12305e 0%, transparent 60%), var(--night); color: #c7d2e4; padding: 48px 56px; display: flex; flex-direction: column; }
.auth-story .pt-brand { padding: 0; }
.auth-story h1 { color: #fff; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; margin-top: auto; letter-spacing: -.04em; }
.auth-story h1 em { font-style: normal; color: var(--amber); }
.auth-story .pts { margin-top: 28px; display: grid; gap: 14px; font-size: 15.5px; }
.auth-story .pts div { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.auth-story .pts i { width: 26px; height: 26px; border-radius: 8px; background: rgba(77, 155, 255, .18); color: #9cc3ff; font-style: normal; font-family: var(--num); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.auth-story .src { margin-top: auto; font-size: 12px; color: #6f83a3; padding-top: 28px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-form .portal-auth { width: 100%; max-width: 520px; margin: 0; padding: 0; }
.auth-form .card { border: 0; box-shadow: none; padding: 0; }
.auth-form .card-title, .auth-form h1 { font-size: 26px; }
.auth-form .input, .auth-form .select { min-height: 50px; font-size: 16px; }
.auth-form .btn { min-height: 50px; font-size: 16px; }

/* 가입: 세 단계 */
.signup .intro { font-size: 16px; color: var(--text); line-height: 1.7; margin: 0 0 18px; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--muted); border-top: 3px solid var(--rule); padding-top: 10px; }
.steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 13px; background: var(--rule-2); color: var(--muted); }
.steps li.on { color: var(--ink); border-top-color: var(--live); }
.steps li.on b { background: var(--live); color: #fff; }
.steps li.done { color: var(--muted); border-top-color: var(--ok); }
.steps li.done b { background: var(--ok); color: #fff; }
.step-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-panel + .step-panel { margin-top: 26px; }
.step-panel legend { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 12px; padding: 0; }
.stepped .step-panel legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stepped .step-panel + .step-panel { margin-top: 0; }
.step-panel > * + * { margin-top: 14px; }
.step-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px !important; }
.step-nav .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.step-nav .btn-primary { flex: 1; }
.plan-pick { display: grid; gap: 10px; }
.plan-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 12px; align-items: center; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--live); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.plan-opt input { grid-row: span 2; width: 18px; height: 18px; margin: 0; }
.plan-opt .pn { font-weight: 800; color: var(--ink); font-size: 16px; }
.plan-opt .pn em { font-style: normal; font-size: 12px; color: var(--amber-ink); background: var(--amber-soft); border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.plan-opt .pm { font-family: var(--num); font-weight: 700; color: var(--ink); font-size: 16px; }
.plan-opt .pt { grid-column: 2 / 4; font-size: 14px; color: var(--muted); }
.signup .bill { font-size: 16px; color: var(--text); background: var(--amber-soft); border-radius: 10px; padding: 12px 14px; line-height: 1.65; }

/* 가입 2차: 칸 너비·라벨·동의 정렬·주 버튼 색 */
.auth-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form .form-row .field { min-width: 0; }
.auth-form .input, .auth-form .select { width: 100%; }
.auth-form .field label { font-size: 15px; color: var(--ink); font-weight: 600; }
.signup .check { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-size: 14.5px; line-height: 1.6; }
.signup .check input { width: 20px; height: 20px; margin: 3px 0 0; }
.signup .check.all { font-size: 16px; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; background: #f7f9fc; }
.signup .bill-plan { font-weight: 700; color: var(--ink); }
.signup .btn-primary[type=submit] { background: var(--amber); border-color: var(--amber); color: #1d1405; }
.signup .btn-primary[type=submit]:hover { background: #ebad52; }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--live); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 반응형 */
@media (max-width: 960px) {
  .pt-shell { grid-template-columns: 1fr; background: none; }
  .pt-side { position: static; height: auto; }
  .pt-nav { display: flex; overflow-x: auto; gap: 4px; padding: 4px 12px 12px; -webkit-overflow-scrolling: touch; }
  .pt-nav .grp { display: none; }
  .pt-nav a { white-space: nowrap; padding: 8px 12px; }
  .pt-me { display: none; }
  .pt-clinic { margin: 0 12px 8px; }
  .pt-page { padding: 22px 16px 48px; }
  .pt-foot { padding: 0 16px 24px; }
  .today-grid { grid-template-columns: 1fr; }
  .today-trial .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-story { padding: 28px 20px; }
  .auth-story h1 { margin-top: 26px; font-size: 26px; }
  .auth-story .src { display: none; }
  .auth-story .pts { display: none; }  /* 좁은 화면은 입력칸이 먼저 보이게 */
  .stepped .step-nav { position: sticky; bottom: 0; background: #fff; padding: 12px 0; margin-bottom: -12px; z-index: 2; }
  .auth-form .form-row { grid-template-columns: 1fr; }
  .auth-story { padding-bottom: 22px; }
  .auth-form { padding: 28px 16px 48px; }
  .preview-bar-inner { padding: 10px 16px; }
}

/* 2026-10 프리미엄 사이트 카드(시작하기·내 사이트·요금제). 미리보기는 요금 화면과 같은 먹색·샴페인 금빛 한 벌. */
.pt .pm-pv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); padding: 0; overflow: hidden; background: #110f0c; color: #d9d0c2; border: 1px solid rgba(217, 196, 160, .38); margin-bottom: 18px; }
.pm-pv-media { position: relative; min-height: 320px; background: #0e0c0a url("/static/media/premium/lobby-film.jpg") center / cover no-repeat; }
.pm-pv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-pv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 15, 12, 0) 60%, rgba(17, 15, 12, .7) 100%); pointer-events: none; }
.pm-pv-tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.pm-pv-body { padding: 24px 28px 24px; display: grid; gap: 12px; align-content: start; }
.pm-pv-k { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: #d9c4a0; }
.pt .pm-pv .card-title { color: #fff; font-size: 21px; letter-spacing: -.03em; }
.pt .pm-pv .small { color: #ddd4c6; margin: 0; }
.pt .pm-pv .small.muted { color: #a59b8c; }
.pm-pv-cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pm-pv-cmp th, .pm-pv-cmp td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); vertical-align: top; }
.pm-pv-cmp thead th { font-size: 12px; color: #a59b8c; font-weight: 700; }
.pm-pv-cmp thead th:last-child { color: #d9c4a0; }
.pm-pv-cmp tbody th { color: #a59b8c; font-weight: 600; white-space: nowrap; }
.pm-pv-cmp td { color: #b8ae9f; }
.pm-pv-cmp td:last-child { color: #fff; font-weight: 600; }
.pt .pm-pv .btn-primary { background: #d9c4a0; border-color: #d9c4a0; color: #1a140c; font-weight: 700; }
.pt .pm-pv .btn-primary:hover { background: #e6d3b2; }
.pt .pm-pv .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
@media (max-width: 960px) { .pt .pm-pv { grid-template-columns: 1fr; } .pm-pv-media { min-height: 0; aspect-ratio: 16 / 9; } .pm-pv-media::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .pm-pv-media video { display: none; } }
.pm-steps { list-style: none; margin: 2px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pm-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--rule-2); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pm-steps li span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-family: var(--num); font-size: 12px; }
.pm-steps li.is-done { background: var(--ok-soft); color: #0f6b47; }
.pm-steps li.is-now { background: var(--ink); color: #fff; }
.pm-steps li.is-now span { color: var(--ink); }
@media (max-width: 640px) { .pm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-pv-body { padding: 20px; } }
