/* Original layout with a bounded, readable editing area. */
main{max-width:1240px}
@media(min-width:1051px){.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}}
@media(min-width:761px){.sidebar{overflow-y:auto}}

/* The browser print path must not contain demo documents. */
#print-sheet{position:relative}#print-sheet::after{content:'DEMO · VORSCHAU';position:absolute;inset:0;display:grid;place-items:center;font-size:48px;font-weight:700;color:#53736755;pointer-events:none;transform:rotate(-25deg)}
@media print{html body>*{display:none!important}html body::after{content:'Web-Demo: Drucken und PDF-Export sind nicht verfügbar.';display:block!important;color:#000;font:16px sans-serif}}
@media print{html body #preview-overlay,html body #app-shell,html body #print-sheet,html body dialog{display:none!important}}
body:is([data-demo-view=bmi],[data-demo-view=abi],[data-demo-view=medications])>#app-shell{display:none}
#demo-excerpt{margin:0;padding:12px;max-width:none}#demo-excerpt .card{margin:0}
body[data-demo-view=theme]{overflow:hidden}
body[data-demo-view=theme] .sidebar{display:flex;position:absolute;inset:0 auto 0 0;flex-direction:column;align-items:stretch;width:220px;padding:24px 18px}
body[data-demo-view=theme] .brand{margin:0 0 28px}body[data-demo-view=theme] .workspace{margin-left:220px}
body[data-demo-view=theme] .workspace-label,body[data-demo-view=theme] .sidebar-divider{display:block}
body[data-demo-view=theme] .drafts{order:0}body[data-demo-view=theme] main{padding:20px}
body[data-demo-view=theme] .editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px}
body[data-demo-view=theme] .patient-grid{display:grid;grid-template-columns:repeat(3,1fr)}
body[data-demo-view=theme] .therapy-tools,body[data-demo-view=theme] .workspace-footer,body[data-demo-view=theme] .progress-card,body[data-demo-view=theme] .memory-note,body[data-demo-view=theme] .sidebar-bottom{display:none}
body[data-demo-view=theme] .document-tools>.card:not(:first-child){display:none}
body[data-demo-view=theme] textarea{min-height:40px;height:40px;resize:none}
@media print{html body #demo-excerpt{display:none!important}}

/* Fixed desktop canvas, scaled as a whole in the color preview. */
body[data-demo-view=theme] #app-shell{position:relative;width:1150px;min-height:0;display:block}
body[data-demo-view=theme] .workspace{box-sizing:border-box;width:930px;min-width:0;margin:0 0 0 220px}
body[data-demo-view=theme] .page-heading{min-width:0;gap:12px}body[data-demo-view=theme] .page-heading>div{min-width:0}
body[data-demo-view=theme] .sidebar .nav-button{font-size:13px;justify-content:flex-start;width:100%}
body[data-demo-view=theme] textarea{overflow:hidden}
html:has(body[data-demo-view=theme]){background:var(--page)}
body[data-demo-view=theme]{background:var(--page);margin:0 auto}
body[data-demo-view=theme] .sidebar>#settings-button,body[data-demo-view=theme] .sidebar>#help-button{font-size:13px;gap:8px;text-align:left;justify-content:flex-start;order:5}
body[data-demo-view=theme] .sidebar>.sidebar-divider{margin-top:auto;order:4}
body[data-demo-view=theme] .sidebar>#settings-button span,body[data-demo-view=theme] .sidebar>#help-button span{font-size:16px}
