html,body,#root,.app{touch-action:none;overscroll-behavior:none;background:#f4f1ea;width:100%;height:100%;margin:0;font-family:system-ui,Noto Sans TC,sans-serif;overflow:hidden}.perf-overlay{color:#fff;pointer-events:none;background:#0000008c;border-radius:6px;padding:6px 8px;font:12px/1.4 ui-monospace,monospace;position:fixed;top:8px;left:8px}button{font:inherit;cursor:pointer}.drawer{padding:8px 16px calc(8px + env(safe-area-inset-bottom));background:#ffffffeb;border-top:1px solid #ddd6c8;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 16px #00000014}.drawer-header{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.drawer-handle,.tab,.drawer-actions button,.cutting-buttons button{background:#fff;border:1px solid #cfc6b5;border-radius:8px;min-height:40px;padding:0 14px}.tab.active{color:#fff;background:#3f5a3a;border-color:#3f5a3a}.drawer-tabs{gap:6px;display:flex}.drawer-actions{gap:6px;margin-left:auto;display:flex}.drawer-items{touch-action:pan-x;gap:8px;padding:8px 0 2px;display:flex;overflow-x:auto}.drawer-empty{color:#888;padding:16px 4px}.stem-item{touch-action:pan-x;-webkit-user-select:none;user-select:none;background:#fbf9f4;border:1px solid #e2dccf;border-radius:10px;flex-direction:column;flex:none;align-items:center;gap:2px;width:72px;padding:6px 4px;display:flex}.stem-item.selected{border-color:#3a5a8a;box-shadow:0 0 0 2px #3a5a8a4d}.stem-name{white-space:nowrap;font-size:12px}.stem-length{color:#666;font-size:11px}.cutting-overlay{background:#f4f1eaf7;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;display:flex;position:fixed;inset:0}.cutting-title{font-size:16px}.cutting-board{touch-action:none;background:#e9dfca;border-radius:10px}.cutting-readout{gap:24px;font-size:15px;display:flex}.cutting-hint{color:#a04020}.cutting-buttons{gap:12px;display:flex}.cutting-buttons .primary{color:#fff;background:#d0502f;border-color:#d0502f}.cutting-buttons .primary:disabled{background:#ccc;border-color:#ccc}.toast{color:#fff;pointer-events:none;background:#282828d9;border-radius:8px;padding:10px 16px;position:fixed;top:16px;left:50%;transform:translate(-50%)}.scheme-toggle{gap:4px;display:flex;position:fixed;top:8px;right:8px}.scheme-toggle button{background:#ffffffe6;border:1px solid #cfc6b5;border-radius:8px;min-height:36px;padding:0 10px;font-size:13px}.scheme-toggle button.active{color:#fff;background:#3a5a8a;border-color:#3a5a8a}.scheme-b{-webkit-user-select:none;user-select:none;background:#ffffffeb;border-radius:10px;flex-direction:column;gap:6px;width:150px;padding:8px;font-size:12px;display:flex;transform:translate(16px,calc(-100% - 16px));box-shadow:0 2px 10px #00000026}.scheme-b label{flex-direction:column;gap:2px;display:flex}.scheme-b input[type=range]{width:100%;height:28px}.scheme-b-ring{touch-action:none;cursor:grab;align-self:center}.ruler-label{color:#fff;white-space:nowrap;background:#0009;border-radius:4px;padding:2px 6px;font-size:12px}
