:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#241c14;--muted:#5c5146;--paper:#fffaf3;--bg:#efe4d4;--line:#e4d3bc;--accent:#9a3412;--accent-ink:#fff8f3;--header:#3f2a1e;--warn-bg:#fff1d6;--warn-ink:#6b4a08;--ok:#1f6b45;--shop:#f3ecdf;font-family:Hiragino Sans,Hiragino Kaku Gothic ProN,Yu Gothic,YuGothic,Noto Sans JP,WenQuanYi Micro Hei,Droid Sans Fallback,sans-serif;font-size:18px;line-height:1.45}*{box-sizing:border-box}html,body,#root{min-height:100dvh;margin:0}body{color:var(--ink);background:#d9cbb6}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app{background:var(--bg);flex-direction:column;max-width:480px;min-height:100dvh;margin:0 auto;display:flex}.topbar{z-index:5;background:var(--header);color:#f6efe4;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.topbar h1{letter-spacing:.02em;margin:0;font-size:18px;line-height:1.25}.topbar p{color:#e6d3c0;margin:0;font-size:13px}.top-actions{flex-shrink:0;gap:8px;display:flex}.top-actions a,.linkish{color:#f6efe4;white-space:nowrap;background:0 0;border:1px solid #b89a82;border-radius:999px;align-items:center;min-height:40px;padding:6px 12px;font-size:15px;text-decoration:none;display:inline-flex}.screen{padding:16px 16px calc(108px + env(safe-area-inset-bottom));flex-direction:column;gap:14px;display:flex}.steps{z-index:4;background:#e7d8c4;gap:6px;padding:10px 16px;display:flex;position:sticky;top:64px;overflow-x:auto}.steps button{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:999px;min-height:44px;padding:6px 10px}.steps button.on{background:var(--header);color:#f6efe4}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:10px;min-width:0;max-width:100%;padding:14px;display:flex}.card h2{margin:0;font-size:18px}.hint{color:var(--muted);margin:0;font-size:15px}.choices{flex-direction:column;gap:8px;display:flex}.choice,.btn,.switch,.segment button,.stepper button{border-radius:14px;min-height:52px}.choice{text-align:left;border:2px solid var(--line);background:#fff;flex-direction:column;align-items:flex-start;padding:10px 14px;display:flex}.choice.on{border-color:var(--accent);background:#fff4ec}.choice span{color:var(--muted);font-size:15px}label.field{flex-direction:column;gap:6px;min-width:0;max-width:100%;font-weight:650;display:flex}label.field input,label.field select,label.field textarea,.inline-input{box-sizing:border-box;background:#fff;border:1px solid #c9b59a;border-radius:12px;width:100%;min-width:0;max-width:100%;min-height:52px;padding:8px 12px;font-size:18px}label.field input[type=date]{appearance:none;width:100%;min-width:0;max-width:100%;display:block}textarea{resize:vertical;min-height:88px}.stepper{grid-template-columns:64px 1fr 64px;gap:8px;display:grid}.stepper button,.btn{background:var(--accent);color:var(--accent-ink);border:0;font-weight:700}.btn.ghost,.stepper button.ghost{color:var(--ink);background:#fff;border:1px solid #c9b59a}.btn.danger{background:#7f1d1d}.btn:disabled{opacity:.45}.switch{background:#fff;border:1px solid #c9b59a;justify-content:space-between;align-items:center;width:100%;padding:8px 12px;display:flex}.switch .knob{background:#d9cbb8;border-radius:999px;width:52px;height:32px;position:relative}.switch .knob:after{content:"";background:#fff;border-radius:50%;width:26px;height:26px;position:absolute;top:3px;left:3px}.switch.on{border-color:var(--accent)}.switch.on .knob{background:var(--accent)}.switch.on .knob:after{left:23px}.segment{flex-wrap:wrap;gap:6px;display:flex}.segment button{background:#fff;border:1px solid #c9b59a;flex:1;padding:8px}.segment button.on{background:var(--header);color:#f6efe4;border-color:var(--header)}.footer-action{z-index:20;box-sizing:border-box;width:min(480px,100%);padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);margin-inline:auto;position:fixed;bottom:0;left:0;right:0}.footer-action .btn{width:100%}.stage{border:1px solid var(--line);touch-action:none;background:#e7dfd2;border-radius:16px;height:min(42dvh,340px);overflow:hidden}.stage canvas{width:100%;height:100%;display:block}.part{border:2px solid #0000}.part.selected{border-color:var(--accent)}.part-head{text-align:left;background:0 0;border:0;flex-direction:column;gap:2px;width:100%;min-height:52px;padding:0;display:flex}.part-head strong{font-size:18px}.meta{color:var(--muted);font-size:15px}.money{font-variant-numeric:tabular-nums;font-weight:750}.row-actions,.split{gap:8px;display:flex}.row-actions .btn,.split .btn{flex:1}.badge{background:var(--warn-bg);min-height:28px;color:var(--warn-ink);border-radius:999px;align-items:center;padding:0 8px;font-size:13px;font-weight:700;display:inline-flex}.badge.quiet{color:var(--muted);background:#efe6da}.banner{background:var(--warn-bg);color:var(--warn-ink);border-radius:14px;padding:12px}.shop{background:var(--shop);border:1px dashed #b9a48a;border-radius:14px;flex-direction:column;gap:8px;padding:12px;display:flex}.total{margin:0;font-size:28px}.list-row{gap:8px}.list-main{text-align:left;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-height:52px;padding:0;display:flex}.sheet-map{background:#f7f1e6;border:1px solid #c9b59a;border-radius:8px;width:100%;position:relative;overflow:hidden}.cut{box-sizing:border-box;color:#3f2a1e;background:#e7c39a;border:1px solid #9a3412;padding:2px;font-size:11px;position:absolute;overflow:hidden}.paper{color:#241c14;background:#fff;border-radius:4px;padding:22px 18px;box-shadow:0 8px 24px #241c1414}.paper h2{margin:0 0 8px;font-size:28px}.paper table{border-collapse:collapse;width:100%;font-size:13px}.paper th,.paper td{text-align:left;vertical-align:top;border-bottom:1px solid #eadfce;padding:6px 2px}.paper th:first-child,.paper td:first-child{width:46%}.paper td.num,.paper th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.bottom-nav{z-index:20;box-sizing:border-box;width:min(480px,100%);padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffaf3;grid-template-columns:1fr 1fr;gap:8px;margin-inline:auto;display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{text-align:center;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:14px;justify-content:center;align-items:center;min-height:52px;font-weight:700;text-decoration:none;display:flex}.bottom-nav a.on{background:var(--header);color:#f6efe4}.chips{flex-wrap:wrap;gap:6px;display:flex}.chips button{background:#fff;border:1px solid #c9b59a;border-radius:999px;min-height:44px;padding:6px 12px}.chips button.on{background:var(--header);color:#f6efe4}.search{flex-direction:column;gap:8px;display:flex}.pair{grid-template-columns:minmax(0,1fr);gap:8px;width:100%;min-width:0;display:grid}.pair>*{min-width:0;max-width:100%}details summary{align-items:center;min-height:44px;font-weight:700;display:flex}.confirm{flex-direction:column;gap:8px;display:flex}.sheet-backdrop{z-index:40;background:#241c1473;justify-content:center;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);flex-direction:column;width:min(480px,100%);min-width:0;height:100%;max-height:100dvh;display:flex}.sheet-top h1{text-align:center;flex:1}.sheet-top-spacer{flex-shrink:0;width:72px}.sheet-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px;display:flex;overflow:auto}.sheet-body form{flex-direction:column;gap:12px;display:flex}.sheet-bar{padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);flex-direction:column;flex-shrink:0;gap:8px;display:flex}.sheet-bar .btn{width:100%}
