:root {
  color-scheme: light;
  --blue: #1976df;
  --blue-dark: #1768c4;
  --blue-soft: #edf6ff;
  --ink: #172034;
  --muted: #77859a;
  --line: #dbe6f2;
  --surface: #fff;
  --page: #f2f7fd;
  --green: #2da66a;
  --green-soft: #e9f8f0;
  --fvc: #16a36a;
  --fvc-soft: #ecf9f3;
  --fev1: #1976df;
  --fev1-soft: #edf6ff;
  --pef: #7657d8;
  --pef-soft: #f3efff;
  --orange: #e59a28;
  --orange-soft: #fff5e5;
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--page); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.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; }
.alert { display: none; }

/* Login */
.v2-login-page { min-height: 100vh; padding: 40px; background: #edf5ff; }
.doctor-login-shell { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 44% 56%; background: #fff; border: 1px solid #dfe9f5; border-radius: 24px; overflow: hidden; }
.doctor-login-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 780px; margin: 40px 0 40px 40px; padding: 48px 52px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #1668c8, #1974d5); }
.v2-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; }
.v2-brand > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--blue); background: #fff; font-size: 19px; font-weight: 900; }
.v2-brand.light { color: #fff; position: relative; z-index: 2; }
.hero-orb { position: absolute; border-radius: 50%; background: rgba(125, 190, 255, .23); }
.orb-one { width: 190px; height: 190px; left: 18px; top: 38px; }
.orb-two { width: 80px; height: 80px; right: 15%; top: 82px; }
.orb-three { width: 290px; height: 290px; right: -40px; bottom: -60px; }
.doctor-hero-copy { position: relative; z-index: 2; margin-top: 180px; }
.doctor-hero-copy h1 { margin: 0 0 26px; font-size: clamp(28px, 2.2vw, 42px); line-height: 1.38; letter-spacing: -.04em; }
.doctor-hero-copy p { max-width: 600px; margin: 0; color: #e2f0ff; font-size: 15px; line-height: 1.7; }
.doctor-login-hero footer { position: relative; z-index: 2; margin-top: auto; color: #d9eaff; font-size: 11px; line-height: 1.55; }
.doctor-login-panel { display: grid; place-items: center; padding: 70px 7%; }
.doctor-login-card { width: min(100%, 760px); }
.login-chip { display: inline-flex; padding: 6px 13px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; }
.doctor-login-card h2 { margin: 36px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.login-subtitle { margin: 0 0 38px; color: var(--muted); }
.login-security-note { display: flex; gap: 14px; align-items: center; margin-bottom: 36px; padding: 18px; border-radius: 12px; background: #f5f9fe; }
.login-security-note > b { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; color: var(--blue); background: #dceeff; }
.login-security-note strong, .login-security-note small { display: block; }
.login-security-note strong { font-size: 13px; }
.login-security-note small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.v2-login-form { display: grid; }
.v2-login-form > label { margin: 0 0 9px; font-size: 13px; font-weight: 700; }
.v2-login-form > input, .password-field { height: 52px; margin-bottom: 26px; border: 1px solid #ccd9e8; border-radius: 9px; background: #fff; }
.v2-login-form > input { padding: 0 16px; }
.password-field { display: flex; align-items: center; overflow: hidden; }
.password-field input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; outline: 0; }
.password-field button { align-self: stretch; padding: 0 17px; border: 0; color: var(--blue); background: transparent; cursor: pointer; }
.v2-login-form input:focus, .password-field:focus-within { outline: 2px solid rgba(25,118,223,.2); border-color: var(--blue); }
.login-options { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 26px; color: var(--muted); font-size: 12px; }
.login-options label { display: flex; gap: 8px; align-items: center; }
.login-options a { color: var(--blue); }
.v2-primary { height: 52px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 700; cursor: pointer; }
.v2-primary:hover { background: var(--blue-dark); }
.first-use { margin-top: 130px; padding: 18px 20px; border-radius: 12px; background: #f5f9fe; }
.first-use strong { font-size: 14px; }.first-use p { margin: 7px 0; color: var(--muted); font-size: 12px; }.first-use a { color: var(--blue); font-size: 12px; font-weight: 700; }
.partner-contact { display: block; margin-top: 120px; color: #536176; font-size: 11px; }

/* Workbench */
.workbench-page { min-width: 1180px; padding: 16px; background: var(--page); }
.workbench-topbar { position: sticky; z-index: 20; top: 0; height: 60px; display: grid; grid-template-columns: 250px 1fr auto; align-items: center; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 4px 20px rgba(40,72,110,.04); }
.workbench-topbar nav { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.workbench-topbar nav i { font-style: normal; color: #bbc4d0; }
.workbench-topbar nav strong { color: #627187; }
.workbench-actions { display: flex; gap: 14px; align-items: center; }
.workbench-actions form { margin: 0; }
.workbench-actions button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.connected { display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: 8px; color: #27875a; background: var(--green-soft); font-size: 12px; font-weight: 700; }
.connected i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.workbench-shell { display: grid; grid-template-columns: 258px minmax(900px,1fr); gap: 16px; margin-top: 14px; }
.patient-rail, .v2-panel, .patient-summary-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.patient-rail { position: sticky; top: 89px; height: calc(100vh - 105px); min-height: 680px; padding: 18px; overflow-y: auto; }
.rail-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.rail-heading h1 { margin: 0; font-size: 19px; }.rail-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.rail-heading button { padding: 9px 12px; border: 0; border-radius: 7px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.invite-box { max-height: 230px; overflow: hidden; margin-top: 16px; padding: 14px; border: 1px solid #b9d8ff; border-radius: 10px; background: #f3f8ff; transition: max-height .2s, opacity .2s, padding .2s, margin .2s, border-width .2s; }
.invite-box.collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; border-width: 0; }
.invite-box h2 { margin: 0; color: var(--blue); font-size: 14px; }.invite-box p { margin: 8px 0 12px; color: var(--muted); font-size: 10px; }
.invite-box form { display: grid; gap: 7px; }.invite-box input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }.invite-box button { height: 34px; border: 0; border-radius: 6px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.invite-box small { display: block; margin-top: 7px; color: #5794d8; font-size: 9px; }
.patient-status-summary { display: flex; gap: 6px; flex-wrap: wrap; margin: 42px 0 14px; }.patient-status-summary span { padding: 7px 11px; border-radius: 99px; color: #4d8fd2; background: var(--blue-soft); font-size: 10px; }.patient-status-summary .ok { color: var(--green); background: var(--green-soft); }.patient-status-summary .wait { color: var(--orange); background: var(--orange-soft); }
.patient-nav { display: grid; gap: 4px; }.patient-nav a { display: grid; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; min-width: 0; padding: 10px; border-radius: 9px; }.patient-nav a:hover, .patient-nav a.active { background: #eaf4ff; }
.patient-nav a > b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--blue); background: #e2f1ff; font-size: 12px; }.patient-nav span { min-width: 0; }.patient-nav strong, .patient-nav small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.patient-nav strong { font-size: 12px; }.patient-nav small { margin-top: 4px; color: var(--muted); font-size: 9px; }.patient-nav em { padding: 5px 7px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 9px; font-style: normal; white-space: nowrap; }
.rail-empty { color: var(--muted); font-size: 12px; text-align: center; }
.patient-workspace { display: grid; gap: 16px; min-width: 0; }
.patient-summary-card { display: grid; grid-template-columns: minmax(460px,500px) minmax(0,1fr); min-height: 118px; padding: 21px 26px; }
.selected-patient { border-right: 1px solid var(--line); }.selected-patient > small { color: var(--muted); font-size: 10px; }.selected-patient h2 { display: inline; margin: 0 15px 0 0; font-size: 24px; }.selected-patient > div { display: inline-flex; gap: 12px; align-items: center; }.selected-patient > div span { color: var(--muted); font-size: 12px; }.selected-patient em { padding: 6px 10px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 10px; font-style: normal; }.selected-patient p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.patient-summary-card dl { display: grid; grid-template-columns: 120px 150px minmax(180px,260px); gap: 34px; justify-content: start; align-items: center; margin: 0; padding-left: 38px; }.patient-summary-card dl div { min-width: 0; }.patient-summary-card dt { color: var(--muted); font-size: 10px; }.patient-summary-card dd { overflow: hidden; margin: 10px 0 0; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.v2-panel { min-width: 0; padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; }.panel-heading p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.title-with-tabs { display: flex; gap: 30px; align-items: center; }.metric-tabs, .range-tabs { display: flex; }.metric-tabs button, .range-tabs a { min-width: 62px; padding: 8px 13px; border: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 11px; text-align: center; cursor: pointer; }.metric-tabs button:first-child, .range-tabs a:first-child { border-radius: 7px 0 0 7px; }.metric-tabs button:last-child, .range-tabs a:last-child { border-radius: 0 7px 7px 0; }.metric-tabs button + button, .range-tabs a + a { margin-left: -1px; }.metric-tabs button.active, .range-tabs a.active { z-index: 1; font-weight: 700; }
.metric-tabs button[data-chart-metric="fvc"].active, .trend-panel[data-active-metric="fvc"] .range-tabs a.active { color: var(--fvc); border-color: var(--fvc); background: var(--fvc-soft); }
.metric-tabs button[data-chart-metric="fev1"].active, .trend-panel[data-active-metric="fev1"] .range-tabs a.active { color: var(--fev1); border-color: var(--fev1); background: var(--fev1-soft); }
.metric-tabs button[data-chart-metric="pef"].active, .trend-panel[data-active-metric="pef"] .range-tabs a.active { color: var(--pef); border-color: var(--pef); background: var(--pef-soft); }
.trend-panel { position: relative; }.workbench-chart { display: block; width: 100%; height: 265px; margin-top: 12px; cursor: crosshair; }.chart-empty { color: var(--muted); font-size: 12px; text-align: center; }.chart-tooltip { position: absolute; z-index: 8; width: 230px; padding: 14px 15px; border: 1px solid #bfd9f6; border-radius: 10px; color: #30435b; background: rgba(255,255,255,.98); box-shadow: 0 10px 28px rgba(38,76,119,.16); pointer-events: none; }.chart-tooltip[hidden] { display: none; }.chart-tooltip time { display: block; margin-bottom: 10px; color: #24364e; font-size: 11px; font-weight: 700; }.chart-tooltip dl { display: grid; gap: 7px; margin: 0; }.chart-tooltip dl div { display: flex; justify-content: space-between; gap: 16px; }.chart-tooltip dt, .chart-tooltip dd { margin: 0; font-size: 10px; }.chart-tooltip dt { color: var(--muted); }.chart-tooltip .representative dt, .chart-tooltip .representative dd { color: #263b55; font-weight: 800; }.chart-tooltip > span { display: block; margin-top: 10px; color: var(--blue); font-size: 9px; font-weight: 700; }
.workbench-lower { display: grid; grid-template-columns: minmax(650px,1.9fr) minmax(330px,.9fr); gap: 16px; align-items: start; }
.record-filters { display: flex; gap: 8px; }.record-filters select { min-width: 125px; height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 7px; color: #66778d; background: #fff; font-size: 10px; }
.attempt-table-head { display: grid; grid-template-columns: 140px 110px 100px repeat(3,minmax(80px,1fr)) 90px; align-items: center; min-width: 800px; margin-top: 18px; padding: 10px 0; border-radius: 7px; color: #728196; background: #f2f6fb; font-size: 10px; font-weight: 700; text-align: center; }
.record-days { min-width: 800px; overflow-x: auto; }.measurement-day { display: grid; grid-template-columns: 140px minmax(660px,1fr); border-bottom: 1px solid var(--line); }.day-meta { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: #315476; background: #f8fbff; }.day-meta strong { font-size: 12px; }.day-meta small { color: var(--muted); font-size: 9px; }
.session-list { display: flex; flex-direction: column; min-width: 660px; }.session-block { position: relative; order: 3; display: grid; grid-template-columns: 110px minmax(550px,1fr); border-bottom: 1px solid #dfe9f4; cursor: pointer; }.session-block.latest-session { order: 1; }.measurement-day:not(.expanded) .older-session { display: none; }.measurement-day.expanded .older-session { order: 2; }.session-block:has(input:checked) { outline: 2px solid #79b7ff; outline-offset: -2px; background: #f5faff; }.session-block:has(input:focus-visible) { box-shadow: inset 0 0 0 3px rgba(25,118,223,.22); }
.session-selector { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 8px; border-right: 1px solid var(--line); background: #f6faff; cursor: pointer; }.session-selector strong { color: #1767b6; font-size: 11px; }.session-selector small { color: var(--muted); font-size: 8px; }.session-selector em { padding: 3px 6px; border-radius: 99px; color: var(--orange); background: var(--orange-soft); font-size: 8px; font-style: normal; }.session-selector em.done { color: var(--green); background: var(--green-soft); }
.attempt-list { min-width: 550px; }.attempt-row { display: grid; grid-template-columns: 100px repeat(3,minmax(80px,1fr)) 90px; align-items: center; min-height: 36px; color: #536276; font-size: 10px; text-align: center; }.attempt-row + .attempt-row { border-top: 1px solid var(--line); }.attempt-row strong { color: #66778d; font-size: 10px; }.attempt-row time { color: var(--muted); }.attempt-row > * + * { border-left: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; }
.day-history-toggle { order: 2; height: 32px; display: flex; justify-content: flex-start; align-items: center; gap: 9px; padding-left: 10px; border: 0; border-bottom: 1px solid #bdd7f3; color: var(--blue); background: #f0f7ff; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }.day-history-toggle i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }.measurement-day.expanded .day-history-toggle { order: 3; }.measurement-day.expanded .day-history-toggle i { transform: rotate(225deg) translate(-1px,-1px); }
.records-panel.single-metric .attempt-table-head { grid-template-columns: 140px 110px 100px minmax(160px,1fr) 90px; }.records-panel.single-metric .attempt-row { grid-template-columns: 100px minmax(160px,1fr) 90px; }.records-panel[data-visible-metric="fvc"] .metric-cell:not(.fvc), .records-panel[data-visible-metric="fev1"] .metric-cell:not(.fev1), .records-panel[data-visible-metric="pef"] .metric-cell:not(.pef) { display: none; }
.record-empty { padding: 24px 0; color: var(--muted); font-size: 12px; text-align: center; }
.opinions-panel { position: sticky; top: 89px; }.panel-outline-button { min-width: 105px; height: 34px; padding: 0 15px; border: 1px solid #9bc9fa; border-radius: 7px; color: var(--blue); background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }.panel-outline-button:hover { background: var(--blue-soft); }.panel-outline-button:disabled { opacity: .45; cursor: not-allowed; }.v2-opinion-list { max-height: 650px; overflow-y: auto; margin-top: 17px; padding-right: 4px; }.v2-opinion-list article { padding: 16px; border: 1px solid var(--line); border-radius: 9px; }.v2-opinion-list article + article { margin-top: 10px; }.v2-opinion-list article.featured { border-color: #acd0fb; background: #f2f8ff; }.v2-opinion-list time { color: #4a91da; font-size: 10px; }.v2-opinion-list p { margin: 10px 0; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }.v2-opinion-list a { color: var(--blue); font-size: 10px; font-weight: 700; }
/* Workbench modal */
.workbench-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; }
.workbench-modal::backdrop { background: rgba(20,39,62,.54); }
.workbench-modal[open] { display: grid; place-items: center; }
.modal-card { width: min(100%,850px); max-height: calc(100vh - 48px); overflow-y: auto; padding: 38px 42px; border: 1px solid #dbe6f2; border-radius: 15px; color: var(--ink); background: #fff; box-shadow: 0 28px 70px rgba(17,43,74,.24); }
.modal-card-medium { width: min(100%,850px); }.modal-card-large { width: min(100%,1080px); }
.modal-card header h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }.modal-card header p { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-summary { display: grid; gap: 10px; margin-top: 32px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 9px; background: #f7faff; }.modal-summary small { color: var(--muted); font-size: 12px; }.modal-summary strong { color: #3a4c64; font-size: 14px; overflow-wrap: anywhere; }.selected-measurement { margin-top: 28px; }
.modal-warning { margin-top: 24px; padding: 17px 22px; border: 1px solid #f1c87e; border-radius: 9px; background: #fff8ea; }.modal-warning strong { font-size: 12px; }.modal-warning p { margin: 8px 0 0; color: #66778d; font-size: 12px; }
.modal-field { display: grid; gap: 12px; margin-top: 28px; }.modal-field > strong { font-size: 13px; }.modal-field textarea { width: 100%; min-height: 265px; padding: 20px; resize: vertical; border: 1px solid #adc8e8; border-radius: 9px; color: var(--ink); line-height: 1.7; outline: 0; }.modal-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,118,223,.13); }.modal-help { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.modal-card footer { display: flex; justify-content: flex-end; gap: 14px; margin-top: 38px; }.modal-card footer button { min-width: 180px; height: 48px; border-radius: 8px; font-weight: 700; cursor: pointer; }.modal-primary { border: 0; color: #fff; background: var(--blue); }.modal-primary:hover { background: var(--blue-dark); }.modal-primary:disabled { opacity: .55; cursor: wait; }.modal-secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }.modal-secondary:hover { background: #f6f9fd; }
.modal-card-success { width: min(100%,760px); padding: 54px 62px 40px; text-align: center; }.success-check { position: relative; display: block; width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%; background: #e5f8ef; }.success-check::after { content: ""; position: absolute; left: 21px; top: 18px; width: 27px; height: 16px; border-left: 6px solid #20aa73; border-bottom: 6px solid #20aa73; transform: rotate(-45deg); }.modal-card-success h2 { margin: 0; font-size: 26px; }.modal-card-success > p { margin: 16px 0 0; color: var(--muted); line-height: 1.6; }.success-status { margin: 34px 0 26px; padding: 18px; border: 1px solid #b8e4ce; border-radius: 8px; color: #416456; background: #f0fbf6; font-size: 13px; font-weight: 700; }.success-status.neutral { border-color: var(--line); color: #51647b; background: #f7faff; }.modal-card-success > .modal-primary { min-width: 350px; height: 50px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* Patient list / empty state */
.patients-page { min-height: 100vh; padding: 16px; background: var(--page); }.patients-main { max-width: 1200px; margin: 28px auto; }.patients-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }.patients-toolbar h1 { margin: 0; font-size: 27px; }.patients-toolbar p { color: var(--muted); }.patients-search { display: flex; gap: 8px; }.patients-search input { width: 300px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; }.patients-search button { padding: 0 20px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); }.patients-list { display: grid; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.patients-list a { display: grid; grid-template-columns: 1fr 180px 130px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 9px; }.patients-list a:hover { border-color: #91c2f8; background: #f7fbff; }.patients-list a > span { display: grid; gap: 5px; }.patients-list small { color: var(--muted); }.patients-list em { color: var(--green); font-style: normal; }.patients-empty { padding: 80px 20px; color: var(--muted); line-height: 1.8; text-align: center; }.patients-pagination { display: flex; justify-content: center; gap: 16px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 12px; }.patients-pagination a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: #fff; }
.empty-patient-shell { display: grid; grid-template-columns: 258px minmax(720px,1fr); gap: 16px; margin-top: 14px; }.empty-patient-rail { position: static; height: calc(100vh - 105px); }.empty-rail-list { display: grid; gap: 7px; margin-top: 24px; padding: 30px 10px; border-top: 1px solid var(--line); color: #52677f; text-align: center; }.empty-rail-list span { font-size: 11px; font-weight: 700; }.empty-rail-list small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.empty-patient-workspace { min-height: calc(100vh - 105px); display: grid; grid-template-rows: 1fr auto auto; gap: 16px; }.empty-patient-hero { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 470px; padding: 50px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }.empty-patient-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border-radius: 22px; color: var(--blue); background: #e8f4ff; font-size: 38px; font-weight: 300; }.empty-patient-hero > small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .14em; }.empty-patient-hero h1 { margin: 13px 0 12px; font-size: 28px; letter-spacing: -.04em; }.empty-patient-hero p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }.empty-patient-hero button { min-width: 210px; height: 44px; margin-top: 28px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; }.empty-patient-hero button:hover { background: var(--blue-dark); }
.connection-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.connection-steps article { display: flex; gap: 12px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.connection-steps b { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; color: var(--blue); background: #eaf4ff; font-size: 11px; }.connection-steps span { display: grid; gap: 5px; }.connection-steps strong { font-size: 11px; }.connection-steps small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.empty-privacy-note { display: flex; gap: 13px; align-items: center; padding: 17px 20px; border: 1px solid #cfe2f5; border-radius: 11px; background: #f4f9ff; }.empty-privacy-note > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--blue); background: #dceeff; }.empty-privacy-note p { display: grid; gap: 5px; margin: 0; }.empty-privacy-note strong { font-size: 10px; }.empty-privacy-note span { color: var(--muted); font-size: 9px; }

@media (max-width: 1450px) {
  .workbench-lower { grid-template-columns: 1fr; }
  .opinions-panel { position: static; }
  .v2-opinion-list { max-height: 380px; }
  .doctor-login-hero { margin: 25px 0 25px 25px; }
  .patient-summary-card { grid-template-columns: minmax(360px,430px) minmax(0,1fr); }
  .patient-summary-card dl { grid-template-columns: repeat(3,minmax(100px,1fr)); gap: 20px; padding-left: 28px; }
}
@media (max-width: 800px) {
  .v2-login-page { padding: 0; }.doctor-login-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; }.doctor-login-hero { min-height: 320px; margin: 0; padding: 28px; border-radius: 0; }.doctor-hero-copy { margin-top: 80px; }.doctor-login-hero footer { display: none; }.doctor-login-panel { padding: 42px 24px; }.first-use { margin-top: 60px; }.partner-contact { margin-top: 50px; }
}
