:root{color:#1d2a24;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#eef3ef;font-family:BIZ UDPGothic,Hiragino Sans,Yu Gothic,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}button,input,textarea{font:inherit}.app-shell{color:#1d2a24;background:radial-gradient(circle at 0 0,#0f4d3a1f,#0000 24%),linear-gradient(#f6fbf7 0%,#eef3ef 100%);min-height:100vh;padding:24px}.intro,.workspace{width:min(1400px,100%);margin:0 auto}.intro{justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px;display:flex}.eyebrow{color:#2f6b57;letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:.85rem;font-weight:700}.intro h1,.panel h2,.preview-header h2{color:#173126;margin:0;font-family:BIZ UDPGothic,Hiragino Sans,Yu Gothic,sans-serif;font-weight:700}.intro h1{font-size:clamp(2rem,3vw,3rem)}.intro-copy,.printer-copy,.panel-header p,.preview-note{color:#466053;margin:10px 0 0;line-height:1.7}.printer-copy{font-weight:700}.safety-note{color:#214234;background:#ffffffb8;border-left:4px solid #2d8e6b;border-radius:12px;gap:4px;max-width:720px;margin-top:14px;padding:12px 14px;display:grid}.safety-note strong{color:#173126}.intro-actions{flex-wrap:wrap;gap:12px;display:flex}.workspace{grid-template-columns:minmax(380px,520px) minmax(420px,1fr);align-items:start;gap:24px;display:grid}.panel-stack{gap:16px;display:grid}.panel,.preview-pane{background:#ffffffeb;border:1px solid #1f41351f;border-radius:24px;box-shadow:0 24px 60px #18352b14}.panel{padding:20px}.panel-header{margin-bottom:16px}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.field{color:#294539;gap:8px;font-size:.95rem;display:grid}.field span{font-weight:700}.field input,.field select,.field textarea,.quick-paste{box-sizing:border-box;width:100%;font:inherit;color:#183529;background:#fbfdfb;border:1px solid #cbd8d0;border-radius:14px;padding:12px 14px}.field textarea,.quick-paste{resize:vertical;min-height:96px}.field input:focus,.field select:focus,.field textarea:focus,.quick-paste:focus{border-color:#4d866f;outline:3px solid #417f672e}.field-wide{grid-column:1/-1}.primary,.secondary{font:inherit;cursor:pointer;border:0;border-radius:999px;padding:12px 18px;font-weight:700}.primary{color:#fff;background:linear-gradient(135deg,#1f6c53,#2d8e6b)}.secondary{color:#214234;background:#e9f0eb}.preview-pane{padding:20px;position:sticky;top:20px}.preview-header{justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px;display:flex}.preview-note{max-width:320px;font-size:.92rem}.print-help{color:#28453a;background:#f1f7f3;border-radius:16px;gap:4px;margin-bottom:18px;padding:14px 16px;font-size:.92rem;display:grid}.print-help strong{color:#173126}.sheet-stage{--sheet-width:calc(var(--sheet-width-mm) * 1mm);--sheet-height:calc(var(--sheet-height-mm) * 1mm);--sheet-padding:calc(var(--sheet-padding-mm) * 1mm);background:linear-gradient(135deg,#21513f0f,#fff9),repeating-linear-gradient(45deg,#21513f0a,#21513f0a 10px,#0000 10px 20px);border-radius:20px;place-items:center;min-height:70vh;padding:24px;display:grid}.sheet{width:var(--sheet-width);min-height:var(--sheet-height);box-sizing:border-box;color:#151515;padding:var(--sheet-padding);background:#fffefb;border:1px solid #494949;gap:5mm;display:grid;box-shadow:0 18px 50px #0000001f}.sheet-header,.sheet-footer{align-items:start;gap:4mm;display:flex}.sheet-header{display:block}.sheet-header-band{background:linear-gradient(#fbfaf4 0%,#f3efe5 100%);border:1px solid #1f1f1f;align-items:center;width:100%;padding:1.5mm 2.2mm 1.4mm;display:flex}.sheet-title{letter-spacing:.01em;white-space:nowrap;margin:0;font-size:3.35mm;font-weight:700;line-height:1}.sheet-subtitle{color:#444;margin:1mm 0 0;font-size:2.9mm}.sheet-section{gap:2.5mm;display:grid}.sheet-section h3{margin:0;font-size:3.4mm}.sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5mm;display:grid}.sheet-item{border-bottom:1px solid #333;gap:1mm;min-width:0;padding-bottom:1.2mm;display:grid}.sheet-item span{color:#444;font-size:2.7mm}.sheet-item strong{min-width:0;min-height:4.5mm;font-size:3.3mm;font-weight:700}.sheet-item-wide{grid-column:1/-1}.pharmacist-line{align-items:center;gap:.8mm;min-width:0;display:flex}.pharmacist-line strong{flex:1}.kakaritsuke-inline{white-space:nowrap;border:1px solid #222;flex:none;padding:.15mm .6mm;font-size:2.1mm;font-style:normal;font-weight:700;display:inline-block}.handwrite-box{white-space:pre-wrap;border:1px solid #333;min-height:14mm;padding:2mm;font-size:3mm;line-height:1.6}.cut-line{color:#555;align-items:center;gap:2mm;font-size:2.7mm;display:flex}.cut-line:before,.cut-line:after{content:"";border-top:.45mm dashed #666;flex:1}.line-guide{background:repeating-linear-gradient(#0000 0 5.2mm,#000c 5.2mm 5.45mm);min-height:10mm;display:block}.sheet-footer{color:#444;border-top:1px solid #333;justify-content:flex-start;padding-top:1.5mm;font-size:2.7mm}@media (width<=1120px){.workspace{grid-template-columns:1fr}.preview-pane{position:static}.preview-header,.intro{flex-direction:column;align-items:start}}@media (width<=720px){.app-shell{padding:14px}.field-grid{grid-template-columns:1fr}.sheet-stage{justify-content:start;overflow:auto}}@media print{@page{size:auto;margin:0}body{background:#fff;margin:0}#root,.app-shell,.workspace,.preview-pane,.sheet-stage{width:auto;min-height:0;box-shadow:none;background:0 0;border:0;margin:0;padding:0}.no-print{display:none!important}.preview-pane{display:block}.sheet{box-shadow:none;break-inside:avoid;margin:0}}
