#costing-panel{display:none;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background:#f0e6d0;padding:16px 16px calc(90px + env(safe-area-inset-bottom));font-size:16px;line-height:1.5;color:#3d2810}
body.costing-open #main{display:none}body.costing-open #costing-panel{display:block}
body.costing-open #btn-voice{display:none}
#costing-panel *{box-sizing:border-box}#costing-panel .cost-wrap{max-width:980px;margin:auto}
#costing-panel h2{font-size:24px}#costing-panel h3{font-size:19px;margin-bottom:8px}#costing-panel p{margin:8px 0}#costing-panel .muted{color:#765d43;font-size:16px}
#costing-panel .cost-nav,#costing-panel .cost-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
#costing-panel button,#costing-panel input,#costing-panel select,#costing-panel textarea{font:inherit;min-height:44px;border:1px solid #c8a870;border-radius:10px;padding:9px 12px;color:#3d2810;background:#fdf8ef;max-width:100%}
#costing-panel button{cursor:pointer}#costing-panel button.primary,#costing-panel button[aria-current=page]{background:#c8481c;color:white;border-color:#c8481c}#costing-panel button:disabled{opacity:.55;cursor:wait}
#costing-panel :focus-visible{outline:3px solid #8a4010;outline-offset:2px}#costing-panel .cost-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px}
#costing-panel .cost-card{padding:16px;background:#fdf8ef;border:1px solid #c8a870;border-radius:10px;margin-bottom:12px;overflow-wrap:anywhere}#costing-panel .cost-number{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}
#costing-panel label{display:block;margin:10px 0}#costing-panel label>input,#costing-panel label>select,#costing-panel label>textarea{display:block;width:100%;margin-top:5px}#costing-panel .up,#costing-panel .cost-error{color:#a52e16}#costing-panel .down{color:#3b6e2e}
#costing-panel .cost-actions{position:sticky;bottom:0;background:#f0e6d0;padding:10px 0;display:flex;gap:8px;flex-wrap:wrap;z-index:1}#costing-panel .cost-actions button{flex:1}#costing-panel table{border-collapse:collapse;width:100%;font-size:16px}#costing-panel td,#costing-panel th{padding:8px 5px;text-align:left;border-bottom:1px solid #e8d8b8}#costing-panel svg{width:100%;height:120px}
#costing-panel .cost-line{display:grid;grid-template-columns:minmax(110px,1fr) 90px 44px;gap:6px;align-items:center;margin:8px 0}#costing-panel .cost-line input{width:100%;padding:8px}
#costing-panel dialog{max-width:calc(100vw - 24px);width:420px;margin:auto;background:#fdf8ef;color:#3d2810;border:1px solid #c8a870;border-radius:10px;padding:20px;max-height:85vh;max-height:85dvh;overflow:auto}#costing-panel dialog::backdrop{background:#0006}
#costing-desktop-entry{min-height:44px;border:1px solid #c8a870;border-radius:10px;background:#f5eed8;color:#7a5c3c;padding:8px 12px;font:inherit}
@media(max-width:768px){#costing-desktop-entry{display:none}body.costing-open #header,body.costing-open #staff-pending{display:none}#costing-panel{padding:12px 12px calc(80px + env(safe-area-inset-bottom))}#costing-panel .cost-grid{grid-template-columns:1fr 1fr}#costing-panel .cost-card{padding:12px}#costing-panel .cost-number{font-size:24px}}
#costing-panel .cost-check{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
#costing-panel .cost-check>input[type=checkbox]{display:inline-block;flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:#c8481c}
#costing-panel .cost-recipe-fields{padding-bottom:calc(var(--cost-recipe-actions-height,64px) + var(--cost-keyboard-inset,0px) + 16px + env(safe-area-inset-bottom))}
#costing-panel.cost-recipe-open{padding-bottom:calc(16px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(var(--cost-recipe-actions-height,64px) + var(--cost-keyboard-inset,0px) + 16px)}
#costing-panel .cost-recipe-form>.cost-actions{bottom:var(--cost-keyboard-inset,0px)}
#costing-panel .cost-unit-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;align-items:end;gap:8px}
#costing-panel .cost-unit-row>label{margin:0;min-width:0}
#costing-panel .cost-unit-row input{min-width:0}
#costing-panel .cost-unit-row>.cost-unit-feedback{grid-column:1/-1;margin:0;font-size:16px}
#costing-panel .cost-market-row{padding:12px 0;border-bottom:1px solid #c8a870;line-height:1.7;font-variant-numeric:tabular-nums}
#costing-panel .cost-market-row strong{display:block}
#costing-panel .cost-market-alert{color:#a12714;background:#fde7e7;font-weight:700;border-radius:6px;padding:4px 6px}
#costing-panel .cost-market-up{color:#a12714}
#costing-panel .cost-market-down{color:#286027}
#costing-panel .cost-market-neutral{color:#4d4235}
#costing-panel [data-market-refresh]:disabled{opacity:1;background:#e6dcc6;color:#4d4235;cursor:wait}
#costing-panel [data-market-reference]{font-size:16px;color:#3d2810}
#costing-panel .cost-market-period{font-size:16px;color:#4d4235;white-space:nowrap}
#costing-panel .cost-market-change{white-space:nowrap}
