/* Compact green commerce editor; one aligned table row per prize. */
#content .wheel-admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #dfe5df}
#content .wheel-admin-tabs>button{min-height:40px;padding:8px 16px;border:1px solid #dce5dd;border-radius:8px;background:#fff;color:#405b49;font-size:13px;line-height:20px;font-weight:600;box-shadow:none}
#content .wheel-admin-tabs>button.active,#content .wheel-admin-tabs>button.active:hover{border-color:#07633e;background:#07633e;color:#fff}
#content .wheel-admin-tabs>button:hover{filter:none}
#content .wheel-config-panel{padding:20px}
#content .wheel-config-panel>.toolbar{margin:0 0 14px;gap:12px;align-items:center}
#content .wheel-config-panel .toolbar h2{font-size:17px;line-height:24px;margin:0}
#content .wheel-config-panel .toolbar p{margin:2px 0 0;line-height:18px}
#content .wheel-config-state{color:#526b5a;font-size:12px;line-height:18px}
#content #wheelConfigForm{width:100%;max-width:none}
#content .wheel-config-settings{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:16px;padding:10px 12px;border:1px solid #e2e8df;border-radius:8px;background:#f6f8f4}
#content #wheelConfigForm .wheel-config-settings label{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;line-height:20px;font-weight:500;white-space:nowrap}
#content #wheelConfigForm .wheel-config-settings input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#07633e}
#content #wheelConfigForm .wheel-config-cost input{box-sizing:border-box;width:80px;height:36px;min-height:36px;margin:0;padding:6px 9px;border:1px solid #c6d3c7;border-radius:6px;background:#fff;line-height:20px;font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
#content #wheelConfigForm input[name=cost]:disabled{opacity:1;background:#edf1eb;color:#536a5b;-webkit-text-fill-color:#536a5b}
#content .egg-admin-costs{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#7d692e;font-size:12px;line-height:20px;font-variant-numeric:tabular-nums}
#content .wheel-prize-tablewrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #dce4db;border-radius:9px;background:#fff}
#content .wheel-prize-table{width:100%;min-width:860px;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:20px}
#content .wheel-col-name{width:21%}#content .wheel-col-type{width:12%}#content .wheel-col-probability{width:10%}#content .wheel-col-stock{width:11%}#content .wheel-col-reward{width:31%}#content .wheel-col-actions{width:15%}
#content .wheel-prize-table th{padding:9px 8px;border-bottom:1px solid #dce4db;background:#f0f5ee;color:#506854;text-align:left;font-size:12px;line-height:20px;font-weight:600;letter-spacing:0;white-space:nowrap}
#content .wheel-prize-row{height:68px}
#content .wheel-prize-row td{padding:8px;vertical-align:middle;border-bottom:1px solid #e8ede6;color:#263d2d}
#content .wheel-prize-row:last-child td{border-bottom:0}
#content .wheel-prize-row:hover{background:#fafbf8}
#content #wheelConfigForm .wheel-prize-row :is(input,select){box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;margin:0;padding:6px 8px;border:1px solid #c6d3c7;border-radius:6px;background:#fff;color:#263d2d;font-size:13px;line-height:20px;box-shadow:none}
#content #wheelConfigForm .wheel-prize-row input[type=number]{text-align:right;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
#content #wheelConfigForm .wheel-prize-row input[type=number]::-webkit-inner-spin-button,#content #wheelConfigForm .wheel-prize-row input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#content .wheel-prize-row input::placeholder{color:#879185}
#content .wheel-prize-row [hidden]{display:none!important}
#content .wheel-reward-setting{display:flex;align-items:center;gap:7px;min-width:0}
#content .wheel-reward-setting>span{flex:none;color:#687966;font-size:12px}
#content .wheel-physical-settings{display:flex;align-items:center;gap:8px;min-width:0}
#content #wheelConfigForm .wheel-physical-settings label{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;margin:0;color:#6b7b69;font-size:10px;line-height:14px;font-weight:400}
#content #wheelConfigForm .wheel-physical-settings input{height:32px;min-height:32px;padding:4px 7px}
#content .wheel-reward-empty{display:block;text-align:center;color:#91a18f}
#content .wheel-row-actions{display:flex;align-items:center;gap:4px;justify-content:flex-start;white-space:nowrap}
#content #wheelConfigForm .wheel-row-actions button{min-height:36px;height:36px;padding:6px 8px;border:0;border-radius:6px;background:#f1f6ef;color:#286442;font-size:12px;line-height:20px;font-weight:500;box-shadow:none;white-space:nowrap}
#content #wheelConfigForm .wheel-row-actions .wheel-remove{background:transparent;color:#9c4840}
#content .wheel-table-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
#content .wheel-table-footer #wheelProbability{color:#28583a;font-size:13px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums}
#content .wheel-table-footer small{font-size:12px;color:#7b8778}
#content #wheelConfigForm .wheel-table-footer>button{min-height:40px;padding:8px 14px;border-radius:7px;font-size:13px;line-height:20px;white-space:nowrap}
#content .wheel-table-footer>button[type=submit]{margin-left:auto}
#content #wheelConfigError{margin:8px 0 0;font-size:13px;line-height:20px}
#content #wheelConfigError:empty{display:none}
#content .wheel-record-source{white-space:nowrap;color:#236344;font-size:12px;font-weight:600}
#content .wheel-record-source.source-egg{color:#8a671f}
#content .wheel-batch-id{white-space:nowrap;font-size:11px}
#content #wheelAdminPanel .toolbar-copy p:empty{display:none}
.wheel-names-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d3dfd2;border-radius:12px;background:#fff;color:#263d2d;box-shadow:0 20px 60px #142f2633;overflow:auto}
.wheel-names-dialog::backdrop{background:#122a226b}
.wheel-names-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e4eae1}
.wheel-names-head h2{margin:0;font-size:17px;line-height:24px}
.wheel-names-head button{width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:8px;background:#eff4ec;color:#285b3b;font-size:25px;line-height:1;box-shadow:none}
.wheel-names-fields{display:grid;gap:12px;padding:16px 18px}
.wheel-names-fields label{display:block;margin:0;color:#5c705f;font-size:12px;line-height:20px}
.wheel-names-fields input{box-sizing:border-box;display:block;width:100%;min-height:40px;margin:4px 0 0;padding:8px 10px;border:1px solid #c5d3c5;border-radius:7px;background:#fff;color:#263d2d;font-size:13px;line-height:20px}
.wheel-names-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e4eae1}
.wheel-names-actions button{min-height:40px;padding:8px 16px;border-radius:7px;font-size:13px;line-height:20px}
@media(max-width:650px){#content .wheel-admin-tabs{gap:6px;margin-bottom:12px}#content .wheel-admin-tabs>button{flex:1;min-height:44px;padding-inline:8px}#content .wheel-config-panel{padding:14px}#content .wheel-config-settings{gap:10px 16px;padding:10px}#content .egg-admin-costs{flex-basis:100%;gap:10px}#content .wheel-table-footer{gap:10px}#content .wheel-table-footer small{display:none}#content .wheel-table-footer>button[type=submit]{flex:1;margin-left:0}#content #wheelConfigForm .wheel-row-actions button{min-height:40px;height:40px}#content #wheelConfigForm .wheel-table-footer>button{min-height:44px}}

/* Keep nested language editing usable in short windows. */
.wheel-names-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.wheel-names-dialog .wheel-names-head{flex:none}
.wheel-names-dialog form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.wheel-names-dialog .wheel-names-fields{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:16px}
.wheel-names-dialog .wheel-names-actions{flex:none;background:#fff}
.wheel-names-dialog :is(input,button){scroll-margin-block:16px}
