:root{--bg:#f6f7f5;--card:#fff;--ink:#1f2a27;--muted:#5c6b66;--line:#d6ddd9;--accent:#2e7d6b;--accent-ink:#fff;--accent-soft:#e3f1ec;--prohibit:#b3261e;--prohibit-soft:#fde8e6;--caution:#8a5a00;--caution-soft:#fff3d6;--confirm:#1f5fa8;--confirm-soft:#e5effb;--ok:#2e6b35;--ok-soft:#e4f3e5;--radius:12px;color:var(--ink);-webkit-text-size-adjust:100%;font-family:-apple-system,Hiragino Sans,Hiragino Kaku Gothic ProN,Yu Gothic,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0;font-size:17px;line-height:1.6}h1{margin:.2em 0 .6em;font-size:1.5rem}h2{margin:0 0 .6em;font-size:1.15rem}a{color:var(--accent)}.muted{color:var(--muted);font-size:.92em}.pad{padding:24px}.warn-text{color:var(--prohibit);font-weight:600}.app{min-height:100vh;display:flex}.nav{width:132px;height:100vh;padding:12px 8px;padding-top:max(12px, env(safe-area-inset-top));border-right:1px solid var(--line);background:#fff;flex-direction:column;flex:none;gap:4px;display:flex;position:sticky;top:0}.nav a{min-height:60px;color:var(--ink);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;font-size:.85rem;text-decoration:none;display:flex}.nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.nav-icon{font-size:1.3rem;line-height:1.2}.main{min-width:0;padding:16px 20px 40px;padding-top:max(16px, env(safe-area-inset-top));flex:1}.page{max-width:980px;margin:0 auto}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.assist-note{text-align:center;color:var(--muted);margin-top:32px;font-size:.85rem}@media (width<=760px){.app{flex-direction:column}.nav{z-index:20;border-right:0;border-top:1px solid var(--line);width:auto;height:auto;padding:4px 4px max(4px, env(safe-area-inset-bottom));flex-direction:row;position:fixed;inset:auto 0 0;overflow-x:auto}.nav a{min-width:64px;min-height:52px;font-size:.75rem}.main{padding:12px 12px 110px}}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:14px;padding:16px}.required-card{border-color:var(--accent)}.warn-card{background:#fffaf0;border-color:#e0b45a}.danger-card{border-color:#e2a29d}.banner{border-radius:10px;margin-bottom:14px;padding:12px 14px}.banner.warn{background:var(--caution-soft);color:#5b3c00;border:1px solid #e8c46f}.banner.info{background:var(--confirm-soft);color:#173f6e;border:1px solid #b6cdec}.btn{border:1px solid var(--line);min-height:44px;color:var(--ink);font:inherit;cursor:pointer;background:#fff;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:8px 16px;font-weight:600;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.danger{background:var(--prohibit);border-color:var(--prohibit);color:#fff}.btn.danger-text{color:var(--prohibit)}.btn.small{min-height:44px;padding:6px 12px;font-size:.9rem}.btn.big{min-height:52px;padding:10px 22px;font-size:1.05rem}.btn-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px;display:flex}.sticky-actions{z-index:5;border-top:1px solid var(--line);background:#f6f7f5f2;padding:10px 0;position:sticky;bottom:0}@media (width<=760px){.sticky-actions{bottom:64px}}input,select,textarea{font:inherit;min-height:44px;color:var(--ink);background:#fff;border:1px solid #b9c4bf;border-radius:8px;width:100%;padding:8px 10px;font-size:17px}textarea{resize:vertical}input[type=checkbox]{width:26px;height:26px;min-height:0;accent-color:var(--accent);flex:none}.check-line{cursor:pointer;align-items:center;gap:10px;min-height:44px;display:flex}.check-line.pending{color:var(--caution);font-weight:600}.check-line.ok{color:var(--ok)}.form{flex-direction:column;gap:14px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field>span{font-weight:600}.form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:8px 0;display:grid}.form-grid label{flex-direction:column;gap:4px;font-weight:600;display:flex}.req{color:var(--accent);font-size:.85em}.req.missing{color:var(--prohibit)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{min-height:44px;font:inherit;color:var(--ink);cursor:pointer;background:#fff;border:1px solid #b9c4bf;border-radius:22px;padding:6px 14px;font-size:.95rem}.chip.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}.furi-field{align-items:flex-start;gap:8px;width:100%;display:flex}.furi-field input,.furi-field textarea{flex:1}.list-editor{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.list-row{flex-wrap:wrap;align-items:center;gap:8px;width:100%;display:flex}.list-row>select,.list-row>input{flex:1;width:auto;min-width:160px}.list-no{text-align:center;width:1.5em;font-weight:700}.grow{flex:1}.clause{border:1px dashed var(--line);border-radius:10px;flex-direction:column;gap:8px;margin-bottom:10px;padding:10px;display:flex}.badge{white-space:nowrap;border:1px solid #0000;border-radius:6px;align-items:center;gap:4px;padding:2px 10px;font-size:.82rem;font-weight:700;display:inline-flex}.b-gray{color:var(--muted);background:#eef1ef}.b-ok{background:var(--ok-soft);color:var(--ok);border-color:#b5d8b8}.b-warn{background:var(--caution-soft);color:var(--caution);border-color:#ecd08e}.b-danger,.lv-prohibit.badge{background:var(--prohibit-soft);color:var(--prohibit);border-color:#efb3ad}.lv-caution.badge{background:var(--caution-soft);color:var(--caution);border-color:#ecd08e}.lv-confirm.badge{background:var(--confirm-soft);color:var(--confirm);border-color:#b6cdec}.lv-none.badge{color:var(--muted);white-space:normal;background:#eef1ef;font-weight:600}.filters{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.filters>*{flex:160px;width:auto}.rows{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.row{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:10px;padding:8px 10px;display:flex}.row.dim{opacity:.6;background:#f1f3f2}.row-main{min-width:0;color:inherit;flex-wrap:wrap;flex:1;align-items:baseline;gap:4px 12px;min-height:44px;padding:4px 0;text-decoration:none;display:flex}.row-main.as-button{font:inherit;text-align:left;cursor:pointer;background:0 0;border:0}.row-main.selected .row-id{color:var(--accent)}.row-id{color:var(--muted);min-width:4em;font-size:.9rem;font-weight:700}.row-title{font-weight:700}.row-sub{color:var(--muted);width:100%;font-size:.88rem}.row-badges{flex-wrap:wrap;gap:6px;display:flex}.row-actions{flex:none;gap:6px;display:flex}.home-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-bottom:16px;display:grid}.home-btn{border:1px solid var(--line);border-radius:var(--radius);min-height:110px;color:var(--ink);background:#fff;flex-direction:column;gap:4px;padding:22px;text-decoration:none;display:flex}.home-btn strong{font-size:1.15rem}.home-btn span{color:var(--muted)}.home-btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.home-btn.primary span{color:#d8efe8}.toasts{z-index:100;flex-direction:column;gap:8px;width:min(92vw,560px);display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%)}.toast{color:#fff;background:#23312d;border-radius:10px;padding:12px 16px;box-shadow:0 4px 16px #0003}.toast.error{background:var(--prohibit)}.image-panel{flex-wrap:wrap;align-items:flex-start;gap:16px;margin-top:10px;display:flex}.image-box{aspect-ratio:1;border:1px solid var(--line);background:#fafafa;border-radius:10px;justify-content:center;align-items:center;width:220px;display:flex;overflow:hidden}.image-panel.large .image-box{width:min(100%,440px)}.image-box img{object-fit:contain;width:100%;height:100%}.image-actions{flex-direction:column;flex:1;gap:10px;min-width:220px;display:flex}.prompt-text{white-space:pre-wrap;border:1px solid var(--line);background:#f3f5f4;border-radius:10px;max-height:320px;padding:12px;font-family:inherit;font-size:.95rem;overflow:auto}.howto{margin:0 0 8px;padding-left:1.4em}.unmatched{flex-direction:column;gap:8px;margin-top:12px;display:flex}.wizard-steps{flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:0;list-style:none;display:flex}.wizard-steps button{border:1px solid var(--line);min-height:44px;font:inherit;color:var(--ink);cursor:pointer;background:#fff;border-radius:22px;padding:6px 14px;font-weight:600}.wizard-steps button.on{background:var(--accent);color:#fff;border-color:var(--accent)}.wizard-steps button:disabled{opacity:.4}.selected-card{z-index:6;position:sticky;top:0;box-shadow:0 2px 10px #0000000f}.pick-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.pick{border:1px solid var(--line);border-left:6px solid var(--line);background:#fff;border-radius:10px;flex-direction:column;gap:8px;padding:12px;display:flex}.pick.lv-prohibit{border-left-color:var(--prohibit)}.pick.lv-caution{border-left-color:#d9a21b}.pick.lv-confirm{border-left-color:var(--confirm)}.pick.selected{outline:3px solid var(--accent)}.pick-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.hits{flex-direction:column;gap:4px;margin:0;padding:0;font-size:.92rem;list-style:none;display:flex}.hits li{border-radius:6px;padding:4px 8px}.hits li.lv-prohibit{background:var(--prohibit-soft)}.hits li.lv-caution{background:var(--caution-soft)}.hits li.lv-confirm{background:var(--confirm-soft)}.hist-item{margin-bottom:10px}.preview-bar{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.block-preview{width:190mm;max-width:100%;height:75mm;font-size:13pt;overflow:hidden}.block-preview .blk{height:100%}.sheet-frame{width:100%;position:relative;overflow:hidden}.sheet-scale{transform-origin:0 0;width:210mm}.sheet{color:#000;width:210mm;height:297mm;font-size:var(--fs,13pt);background:#fff;flex-direction:column;gap:2.5mm;padding:10mm;line-height:1.38;display:flex;overflow:hidden;box-shadow:0 2px 12px #0000001f}.sheet ruby rt{font-size:.5em}.sheet-head{border-bottom:.6mm solid #000;flex:none;padding-bottom:1mm;line-height:1.3}.sheet-title-row{justify-content:space-between;align-items:baseline;gap:4mm;display:flex}.sheet-title{margin:0;font-size:15pt}.sheet-office{font-size:10.5pt}.sheet-meta{align-items:baseline;gap:6mm;margin-top:.5mm;font-size:10.5pt;display:flex}.blank-field{align-items:baseline;gap:1mm;display:inline-flex}.blank{border-bottom:.3mm solid #000;height:1em;display:inline-block}.w-name{width:55mm}.w-staff{width:35mm}.w-phone{width:50mm}.sheet-body{flex:1;gap:2.5mm;min-height:0;display:grid}.blk{color:#000;background:#fff;border:.4mm solid #333;border-radius:2mm;grid-template-rows:minmax(0,1fr);column-gap:3mm;min-height:0;padding:2mm;display:grid;overflow:hidden}.blk-img{justify-content:center;align-items:center;min-height:0;display:flex}.blk-img img{object-fit:contain;width:100%;height:100%}.blk-noimg{color:#999;border:.3mm dashed #aaa;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.blk-text{min-height:0;overflow:hidden}.blk-name{font-size:calc(var(--fs) + 4pt);flex-wrap:wrap;align-items:center;gap:2mm;margin:0 0 .5mm;line-height:1.3;display:flex}.forced-label{border:.4mm solid #000;border-radius:1mm;padding:0 1.5mm;font-size:10.5pt;font-weight:700}.blk-steps{margin:0 0 1mm;padding-left:1.3em}.blk-steps li{margin-bottom:.2mm}.blk-dose{margin:0 0 .5mm}.blk-notes{margin:0;padding:0;list-style:none}.blk-notes li{gap:1mm;display:flex}.note-mark{flex:none;font-weight:700}.blk-check{border-left:.2mm dashed #888;flex-direction:column;justify-content:space-between;align-items:center;min-height:0;padding-left:2mm;font-size:10.5pt;line-height:1;display:flex}.blk-check .chk-head{writing-mode:horizontal-tb;white-space:nowrap;font-size:9pt}.blk-check .day{align-items:center;gap:1mm;display:inline-flex}.blk-check .box{border:.3mm solid #000;width:4.6mm;height:4.6mm;display:inline-block}.sheet-footer{border-top:.6mm solid #000;flex:none;padding-top:1.5mm;font-size:10.5pt;line-height:1.4}.sheet-footer p{margin:0 0 .5mm}.footer-item+.footer-item:before{content:" / "}@page{size:A4 portrait;margin:0}@media print{html,body{background:#fff;margin:0;padding:0}.no-print,.nav,.toasts,.banner,.assist-note{display:none!important}.app,.main,.page{max-width:none;display:block;margin:0!important;padding:0!important}.sheet-frame{overflow:visible;height:auto!important}.sheet-scale{transform:none!important}.sheet{box-shadow:none;break-inside:avoid;page-break-after:avoid;height:296mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
