*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:#f2f2f2;color:#111;font-family:BIZ UDPGothic,Hiragino Sans,Yu Gothic,sans-serif;-webkit-font-smoothing:antialiased}.page{max-width:480px;margin:0 auto;padding:12px 10px 24px;display:flex;flex-direction:column;gap:10px}.topbar{display:flex;align-items:center;gap:8px}.badge{padding:2px 8px;border:1px solid #222;background:#fff;font-weight:700;font-size:13px}.back-btn{flex-shrink:0;width:40px;height:40px;border:1px solid #222;background:#fff;font-size:18px;font-weight:700;cursor:pointer}.back-btn:active{background:#eee}.list-title{flex:1;font-size:17px;font-weight:700}.menu-title-input{flex:1;height:40px;display:flex;align-items:center;padding:0 10px;border:1px solid #222;background:#fff;font-size:15px;font-weight:700}.sheet{border:1px solid #222;background:#fff}.sheet-scroll{overflow-x:auto}.sheet-table{border-collapse:collapse;font-size:12px;width:max-content}.sheet-table th,.sheet-table td{border-bottom:1px solid #c9c9c9;border-right:1px solid #c9c9c9;padding:4px 6px;text-align:right;white-space:nowrap}.sheet-table thead th{background:#e6e6e6;border-bottom:1px solid #222;font-size:11px;font-weight:700;line-height:1.3}.col-name{position:sticky;left:34px;z-index:1;background:var(--row-bg, #fff);text-align:left;min-width:120px}.sheet-table tbody tr td{background:var(--row-bg, #fff)}.sheet-table thead .col-name{background:#e6e6e6;text-align:left}.sheet-table tbody .col-name{font-size:12px;padding:6px;text-align:left}.col-weight{min-width:52px;border-right:2px solid #222!important}.worksheet-page .sheet-table:not(.export-table) .col-name{width:50vw;min-width:50vw;max-width:50vw;white-space:normal}.name-cell{display:flex;align-items:center;gap:4px}.food-name{flex:1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:16px;overflow-wrap:anywhere}.name-cell .dish-chip{flex:none;margin-left:0}.col-del{position:sticky;left:0;z-index:2;background:var(--row-bg, #fff);min-width:34px;width:34px;padding:0!important;text-align:center}.sheet-table thead .col-del{background:#e6e6e6}.subtotal .col-del{background:#eee}.row-del-btn{width:34px;height:34px;border:none;background:none;color:#a33;font-size:17px;line-height:1;cursor:pointer}input.num{width:48px;border:none;text-align:right;font-family:IBM Plex Mono,Menlo,monospace;font-size:12px;background:transparent}input.num.invalid{background:#fdeceb;outline:1px solid #b3372c}td.num{font-family:IBM Plex Mono,Menlo,monospace}.sheet-table tbody .subtotal td{font-weight:700;background:#eee}.sheet-table tbody .dish-subtotal td{font-weight:700;border-bottom:1px solid #888}.sheet-table tbody .dish-subtotal .col-name{font-size:11px}.dish-chip{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid #8a8272;border-radius:9px;background:#ffffffb3;color:#333;font-size:10px;font-weight:700;line-height:16px;font-family:inherit;vertical-align:1px}select.dish-chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:20px;max-width:7em;field-sizing:content;cursor:pointer}select.dish-chip.empty{border-style:dashed;color:#999;font-weight:400;background:none}.add-card-dish{height:38px;max-width:96px;border:1px solid #999;background:#fff;font-size:13px;font-family:inherit}.weight-warning{display:block;font-size:10px;color:#b3372c;margin-top:2px}.weight-warning-mark{color:#b3372c;font-size:11px;margin-left:2px}.add-card{border:1px solid #222;background:#fbf8f0;padding:10px;display:flex;flex-direction:column;gap:8px}.add-card-row{display:flex;gap:8px;align-items:center}.add-card-name{position:relative}.add-card-name input{flex:1;height:38px;padding:0 10px;border:1px solid #999;background:#fff;font-size:14px;font-family:inherit}.add-card-weight-field{display:flex;flex-direction:column}.add-card-weight input{width:100px;height:38px;padding:0 10px;border:1px solid #999;background:#fff;font-size:14px;font-family:IBM Plex Mono,Menlo,monospace;text-align:right}.add-card-weight input.invalid{border-color:#b3372c;background:#fdeceb}.add-card-btn{flex:1;height:38px;border:1px solid #222;background:#222;color:#fff;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer}.add-card-btn:disabled{background:#ccc;border-color:#ccc;color:#888;cursor:not-allowed}.add-card-suggestions{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;background:#fffdf5;border:1px solid #222;box-shadow:0 6px 16px #0000002e}.suggestions{margin:0;padding:0;list-style:none;max-height:260px;overflow-y:auto}.suggestions li{display:flex;gap:8px;align-items:baseline;padding:9px 10px;border-bottom:1px solid #eee;cursor:pointer;white-space:normal}.suggestions li:last-child{border-bottom:none}.suggestions li:hover,.suggestions li.active{background:#fff7d6}.s-code{font-family:IBM Plex Mono,Menlo,monospace;font-size:11px;color:#666}.s-name{flex:1;font-size:13px}.s-waste{font-size:11px;color:#666}.suggestions-more{padding:0!important;cursor:default!important}.suggestions-more button{width:100%;padding:9px 10px;border:none;background:#f4f4f2;color:#333;font-size:12px;font-family:inherit;cursor:pointer}.suggestions-more button:hover{background:#ece9de}.confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0006;display:flex;align-items:center;justify-content:center;padding:20px}.confirm-box{width:100%;max-width:320px;background:#fff;border:1px solid #222;padding:18px 16px;display:flex;flex-direction:column;gap:14px}.confirm-title{font-size:14px;font-weight:700;line-height:1.5}.confirm-actions{display:flex;gap:8px}.confirm-actions button{flex:1;border:1px solid #222;background:#fff;padding:10px;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer}.confirm-actions .confirm-delete{background:#b3372c;color:#fff;border-color:#b3372c}.confirm-skip{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.5;color:#333}.confirm-skip input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#222}.setting-row{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.5}.setting-row input{width:20px;height:20px;margin:0;flex-shrink:0;accent-color:#222}.menu-title-date{font-family:IBM Plex Mono,Menlo,monospace;font-weight:700}.menu-title-meal{flex:1;min-width:0;height:30px;border:none;background:transparent;font-size:15px;font-weight:700;font-family:inherit;cursor:pointer}.note{font-size:11px;color:#777;line-height:1.5}.mode-toggle{flex-shrink:0;height:40px;padding:0 10px;border:1px solid #222;background:#fff;font-size:12px;font-weight:700;font-family:inherit;cursor:pointer}.mode-toggle:active{background:#eee}.menu-title-view{flex:1;height:40px;display:flex;align-items:center;padding:0 10px;border:1px solid #222;background:#fbf8f0;font-size:15px;font-weight:700}.export-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#fff;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.export-frame{position:relative;width:100%;height:100%;overflow:hidden}.export-stage{position:absolute;left:50%;top:50%}.export-content{position:absolute;width:max-content;transform-origin:top left;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.export-controls{position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:8px;transition:opacity .2s}.export-controls.hidden{opacity:0;pointer-events:none}.export-share{background:#222;color:#fff}.export-share:disabled{background:#ccc;border-color:#ccc;color:#666}.export-hint{font-size:11px;color:#777;background:#ffffffe6;padding:2px 6px}.export-head{border-bottom:2px solid #222;padding-bottom:8px;margin-bottom:2px}.export-title{font-size:17px;font-weight:700}.export-date{font-size:11px;color:#777;margin-top:2px}.export-table{border:1px solid #222}.export-table .col-name{position:static}.export-table tbody .col-name{text-align:left}.menu-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.menu-item{display:flex;align-items:stretch;border:1px solid #222;background:#fff}.menu-item-main{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;border:none;background:none;text-align:left;font-family:inherit;cursor:pointer}.menu-item-main:hover{background:#fbf8f0}.menu-item-title{font-size:15px;font-weight:700}.menu-item-meta{font-size:11px;color:#777}.menu-item-del{flex-shrink:0;width:44px;border:none;border-left:1px solid #ddd;background:none;color:#a33;font-size:18px;cursor:pointer}.menu-item-del:hover{background:#fdeceb}.menu-item.selected{background:#fbf8f0;outline:2px solid #222;outline-offset:-1px}.menu-item-check{flex-shrink:0;width:44px;display:flex;align-items:center;justify-content:center;border-right:1px solid #ddd;cursor:pointer}.menu-item-check input{width:20px;height:20px;accent-color:#222}.summary-open-btn{height:42px;border:1px solid #222;background:#222;color:#fff;font-size:13px;font-weight:700;font-family:inherit;cursor:pointer}.form-card{border:1px solid #222;background:#fff;padding:12px;display:flex;flex-direction:column;gap:14px}.form-field{display:flex;flex-direction:column;gap:6px}.form-label{font-size:13px;font-weight:700}.req{margin-left:6px;padding:0 4px;border:1px solid #b3372c;color:#b3372c;font-size:10px;font-weight:700}.form-input-unit{display:flex;align-items:center;gap:6px;font-size:13px}.form-input-unit input{width:100px;height:38px;padding:0 10px;border:1px solid #999;font-size:15px;font-family:IBM Plex Mono,Menlo,monospace;text-align:right}.seg{display:flex;gap:6px}.seg button{flex:1;min-height:40px;border:1px solid #999;background:#fff;font-size:14px;font-family:inherit;cursor:pointer}.seg button.on{border:2px solid #222;background:#fbf8f0;font-weight:700}.seg-col{flex-direction:column}.seg-col button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;text-align:left}.seg-col small{font-size:11px;color:#666;font-weight:400}.form-save{flex:none;height:44px}.empty-card{border:1px dashed #888;background:#fff;padding:16px 12px;display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.5}.empty-card .add-card-btn{flex:none}.summary-menus{border:1px solid #222;background:#fff}.summary-menu{display:flex;justify-content:space-between;padding:6px 10px;border-bottom:1px solid #ddd;font-size:13px}.summary-menu.total{border-bottom:none;background:#eee;font-weight:700}.summary-menu .num{font-family:IBM Plex Mono,Menlo,monospace}.profile-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:12px}.profile-sub{flex-basis:100%;font-size:11px;color:#8a5a00}.link-btn{border:none;background:none;padding:0;color:#1f4f8a;text-decoration:underline;font-size:12px;font-family:inherit;cursor:pointer}.intake-list{list-style:none;margin:0;padding:0;border:1px solid #222;background:#fff}.intake-item{padding:8px 10px;border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:4px}.intake-item:last-child{border-bottom:none}.intake-head{display:flex;align-items:baseline;gap:8px}.intake-label{font-size:13px;font-weight:700;flex:1}.intake-value{font-size:13px;font-family:IBM Plex Mono,Menlo,monospace}.intake-pct{min-width:64px;text-align:right;font-size:14px;font-weight:700;font-family:IBM Plex Mono,Menlo,monospace}.intake-status{min-width:30px;padding:0 4px;font-size:11px;font-weight:700;color:#fff;background:var(--st, #888);text-align:center}.intake-ref{font-size:11px;color:#666}.bar{position:relative;height:10px;background:#eee}.bar-fill{position:absolute;left:0;top:0;bottom:0;background:var(--st, #888)}.bar-band{position:absolute;top:-2px;bottom:-2px;border:1px solid #555;border-top:none;border-bottom:none;background:#0000000f}.bar-mark{position:absolute;top:-3px;bottom:-3px;width:2px;background:#222}.st-low{--st: #d0801f}.st-ok{--st: #3f7f45}.st-high{--st: #3b6ea8}.st-over{--st: #b3372c}.intake-item.st-over{background:#fdeceb}.intake-item.st-over .intake-pct{color:#b3372c}.intake-item.st-low .intake-pct{color:#b06a10}.legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;color:#555}.legend-item{display:inline-flex;align-items:center;gap:4px}.legend-item i{width:12px;height:10px;background:var(--st)}.legend-note{flex-basis:100%}.totals-table{width:100%;border:1px solid #222;background:#fff}.totals-table .t-label{text-align:left}.dri-note{border:1px solid #c9b98f;background:#fbf8f0;padding:8px 10px;color:#5a4a20}.wide-reveal{display:none}@media(min-width:700px),(orientation:landscape)and (min-width:600px){.worksheet-page{max-width:none;min-height:100%;padding:6px max(8px,env(safe-area-inset-right)) 16px max(8px,env(safe-area-inset-left));gap:6px}.worksheet-page:not(.chrome-shown)>.topbar:not(:focus-within),.worksheet-page:not(.chrome-shown)>.add-card:not(:focus-within){display:none}.worksheet-page:not(.chrome-shown)>.wide-reveal{display:block;width:100%;padding:4px;border:1px dashed #999;background:#fff;color:#555;font-size:11px;font-family:inherit;cursor:pointer}.worksheet-page .sheet .sheet-table{width:100%;font-size:11px}.worksheet-page .sheet .sheet-table th,.worksheet-page .sheet .sheet-table td{padding:3px}.worksheet-page .sheet .sheet-table thead th{white-space:normal;font-size:10px;min-width:3.4em}.worksheet-page .sheet .sheet-table .col-name{width:auto;min-width:6em;max-width:none;white-space:normal}.worksheet-page .sheet .name-cell{display:block}.worksheet-page .sheet .food-name{display:inline;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}.worksheet-page .sheet .name-cell .dish-chip{margin-left:6px}.worksheet-page .sheet .sheet-table tbody .col-name{font-size:11px;padding:3px 4px}.worksheet-page .sheet .sheet-table .col-del{min-width:30px;width:30px;padding:0!important}.worksheet-page .sheet .sheet-table .col-name{left:30px}.worksheet-page .sheet .row-del-btn{width:30px;height:28px}.worksheet-page .sheet input.num{width:44px;font-size:11px}}.order-view{display:flex;flex-direction:column;gap:10px}.order-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.order-servings{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700}.order-servings input.num{width:64px;height:36px;border:1px solid #999;background:#fff;font-size:15px;padding:0 6px}.worksheet-page .sheet .sheet-table.order-table .col-name{width:34vw;min-width:34vw;max-width:34vw;white-space:normal;left:0}.order-table .col-waste-part{min-width:7em;max-width:12em;white-space:normal;text-align:left;font-size:11px;line-height:1.4}.order-table .waste-pct{font-family:IBM Plex Mono,Menlo,monospace;font-weight:700;color:#a33}.order-table .col-order-total{font-weight:700;background:#fff8e1!important}.order-table .waste-none{color:#999}.order-table .food-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:16px}.order-alert{margin-top:4px;padding:4px 6px;background:#fdf1d8;border-left:3px solid #b7791f;color:#3d2f10;font-size:11px;line-height:1.45}.order-alert b{font-family:IBM Plex Mono,Menlo,monospace}.order-alert-tag{display:inline-block;margin-right:4px;padding:0 5px;background:#b7791f;color:#fff;font-weight:700;font-size:10px}.order-basis{color:#6b5a33;font-size:10px}.order-hint{margin-top:3px;color:#555;font-size:10px}.order-summary-alert{margin:0;padding:6px 8px;background:#fdf1d8;border:1px solid #b7791f;color:#3d2f10;font-size:12px;line-height:1.5}.order-form-note{max-width:6em;margin-left:auto;font-family:Zen Kaku Gothic New,system-ui,sans-serif;font-weight:400;font-size:10px;color:#6b5a33;white-space:normal;line-height:1.3}.save-error-banner{position:fixed;left:8px;right:8px;bottom:8px;z-index:1000;padding:10px 12px;background:#b3261e;color:#fff;font-size:13px;line-height:1.5;border-radius:6px;box-shadow:0 2px 8px #0000004d}
