/* Paper-first hybrid counseling. Fixed print geometry; long records never clipped. */
.hy-intro{display:flex;justify-content:space-between;gap:20px;padding:20px 0 24px;border-bottom:1px solid var(--line);margin-bottom:24px}.hy-intro h2{font-size:25px}.hy-intro p{font-size:15px;color:var(--sub);margin:8px 0 0}.hy-intro .eyebrow{font-size:10px;letter-spacing:.16em;color:var(--pri);margin:0 0 10px}.hy-badge{white-space:nowrap;align-self:start;background:#e9f3fb;color:#276d99;padding:7px 12px;border-radius:20px;font-size:13px}.hy-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}.hy-answer-card,.hy-note-card{min-width:0}.hy-answer-card h3,.hy-note-card h3{margin:0!important}.hy-patient-inline{font-weight:600;font-size:15px;padding-bottom:16px;border-bottom:1px solid var(--line)}.hy-answer{display:block;border-bottom:1px solid #e0e8ed;padding:7px 0;break-inside:avoid;overflow-wrap:anywhere}.hy-answer dt{font-size:12px;color:#597184;margin:0 0 3px}.hy-answer dd{font-size:15px;line-height:1.6;margin:0;white-space:pre-wrap}.hy-note-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.hy-note-title>span{font-size:12px;color:#806431}.hy-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:12px 0}.hy-tools label{font-size:12px;color:var(--sub)}.hy-tools select{min-height:44px;padding:8px;font-size:14px;display:block}.hy-tools .btn{padding:8px 12px}.hy-ink{display:block;background:#fff;width:100%;height:auto;aspect-ratio:340/720;border:1px solid #bdcfdd;border-radius:6px;touch-action:none;user-select:none;-webkit-user-select:none}.hy-pen-help{font-size:12px;line-height:1.7;color:var(--sub);margin:10px 0}.hy-note-card .field{margin:16px 0}.hy-note-card .btn.primary{width:100%}.hy-paper-callout{padding:20px;background:#edf6fc;border:1px solid #d7e7f2;border-radius:12px;margin:0 0 24px}.hy-paper-callout h3{margin:0 0 8px!important}.hy-paper-callout p{font-size:14px;margin:6px 0 16px}.hy-paper-form{max-width:700px}.hy-paper-form .choices{grid-template-columns:1fr}.hy-paper-form .field{margin:16px 0}.hy-source-pill{font-size:11px;color:#547184;background:#edf4f8;padding:3px 8px;border-radius:4px}.hy-preview-wrap{background:#e9f0f5;overflow:auto;padding:18px;border-radius:10px;margin-top:16px}.hy-preview-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.hy-fit-message{font-size:14px;color:#6b5d38}.hy-raw-details{margin:22px 0;border:1px solid var(--line);border-radius:10px;padding:12px 16px}.hy-raw-details summary{cursor:pointer;font-size:15px;padding:6px}.hy-sheet{box-sizing:border-box;width:190mm;height:275mm;flex:none;background:#fff;color:#182b3a;padding:0;display:flex;flex-direction:column;gap:2.5mm;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-size:9.5pt;line-height:1.42;overflow:visible}.hy-sheet *{box-sizing:border-box}.hy-sheet-head{height:15mm;flex:none;display:flex;justify-content:space-between;gap:5mm;align-items:center;border-bottom:1.4px solid #345d79;padding-bottom:2mm}.hy-sheet .hy-kicker{font-size:7pt;letter-spacing:.16em;color:#496f87}.hy-sheet h1{font-size:17pt!important;line-height:1.3;margin:1mm 0 0!important;font-weight:600}.hy-sheet-meta{text-align:right;font-size:8pt;line-height:1.7;white-space:nowrap}.hy-patient{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5mm 5mm;flex:none;height:25mm;border-bottom:1px solid #b9cbd7;padding-bottom:2mm;overflow:visible;font-size:9.5pt;overflow-wrap:anywhere}.hy-patient small{display:block;font-size:7.2pt;color:#506c80}.hy-patient strong{font-size:12pt}.hy-patient span{font-size:8pt}.hy-sheet-body{display:grid;grid-template-columns:1.48fr 1fr;gap:5mm;flex:1;min-height:0;overflow:visible}.hy-sheet h2{font-size:10pt!important;line-height:1.4;margin:0 0 2mm!important;padding-bottom:1mm;border-bottom:1px solid #b6cad8;letter-spacing:.03em}.hy-answers,.hy-notes{min-width:0;min-height:0}.hy-answers dl{margin:0}.hy-sheet .hy-answer{padding:1.1mm 0;border-color:#e1e5e9}.hy-sheet .hy-answer dt{font-size:7.5pt;line-height:1.35;margin:0 0 .4mm;color:#4a6373}.hy-sheet .hy-answer dd{font-size:9.2pt;line-height:1.4;font-weight:450}.hy-sheet .hy-ink{width:100%;border-radius:0;max-height:none;border-color:#c6d1d9;aspect-ratio:340/720;flex:none}.hy-note-text{font-size:9pt;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;margin:2mm 0 0;max-height:26mm;overflow:visible}.hy-clinical{flex:none;height:29mm}.hy-clinical table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8pt}.hy-clinical th,.hy-clinical td{border:1px solid #c4d0d9;padding:.5mm 1.5mm;line-height:1.3;text-align:left;overflow-wrap:anywhere;vertical-align:top;height:4mm}.hy-clinical th:nth-child(1){width:19%}.hy-clinical th:nth-child(2),.hy-clinical th:nth-child(3){width:18%}.hy-clinical th:nth-child(4){width:45%}.hy-sheet-foot{height:12mm;flex:none;display:flex;justify-content:space-between;gap:5mm;border-top:1px solid #a8bfce;padding-top:1.5mm;font-size:7pt;line-height:1.65;overflow-wrap:anywhere}.hy-sheet-foot>span:last-child{white-space:nowrap;text-align:right}.hy-source-note{font-size:8pt;background:#f4f5f6;margin:0;padding:1.2mm;flex:none}.hy-full{height:auto}.hy-full .hy-sheet-body{display:block;flex:none}.hy-full .hy-patient,.hy-full .hy-clinical,.hy-full .hy-sheet-foot{height:auto;min-height:12mm}.hy-full .hy-notes{break-before:page;margin-top:8mm;width:85mm}.hy-full .hy-note-text{max-height:none}.hy-full .hy-sheet-head{height:auto;min-height:15mm}.hy-full .hy-answers dl{margin-bottom:6mm}.hy-full .hy-clinical{margin-top:7mm}.hy-full .hy-ink{max-height:185mm}.hy-source-link{font-size:14px;color:var(--sub)}
@media(max-width:700px){.hy-editor-grid{grid-template-columns:1fr;gap:24px}.hy-note-card{max-width:540px}.hy-intro{gap:10px}.hy-intro h2{font-size:21px}.hy-badge{font-size:11px}.hy-preview-wrap{padding:10px}.hy-sheet{max-width:none}.hy-intro p{font-size:14px}}
@page{size:A4 portrait;margin:10mm}
@media print{html,body{padding:0!important;margin:0!important;background:white!important}#app,#admin{display:none!important}#print-area{display:block!important;padding:0!important;margin:0!important;width:190mm}.hy-sheet{width:190mm;margin:0!important;box-shadow:none!important;border:0!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.hy-sheet .hy-ink{border-radius:0}.hy-preview-controls,.hy-fit-message{display:none!important}.hy-full .hy-notes{break-inside:avoid}.hy-full .hy-clinical{break-inside:avoid}}

.hy-confirm-note{overflow:auto;margin:24px 0;padding:16px;background:#edf3f7}.hy-confirm-note .hy-sheet{padding:12px}

/* r6.1: authenticated handoff from the saved intake. */
.handoff-actions{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.handoff-actions>.btn{width:100%;min-height:60px;font-size:18px}
.handoff-actions>.help{font-size:13px;margin-top:12px}
.handoff-patient-check{padding:12px 16px;border-radius:8px;background:#edf6fc;color:#2a5774;font-size:14px}
.hy-intro-actions{display:flex;align-items:flex-end;flex-direction:column;gap:12px;flex-shrink:0}
.hy-intro-actions .btn{font-size:13px;white-space:nowrap}
#counseling-start,#counseling-memo{scroll-margin-top:18px}
@media(max-width:700px){.hy-intro{flex-wrap:wrap}.hy-intro-actions{width:100%;flex-direction:row;justify-content:space-between;align-items:center}.hy-note-card{scroll-margin-top:12px}.handoff-actions>.btn{font-size:16px}}
