[hidden]{display:none!important}.workspace-tabs{display:flex;gap:6px;width:max-content;margin:28px 0 0;padding:5px;border:1px solid var(--line);border-radius:13px;background:#fff}.workspace-tabs button{padding:9px 18px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}.workspace-tabs button.active{background:var(--ink);color:#fff}.table-code-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:14px}.table-code-form,.table-code-guide{padding:24px;border:1px solid var(--line);border-radius:19px;background:#fff}.table-code-form{display:grid;gap:10px}.table-code-form label{font-weight:800}.table-code-form textarea{width:100%;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fcfbfa;color:var(--ink);font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;outline:none}.table-code-form textarea:focus{border-color:#e99a78;box-shadow:0 0 0 3px #fff0e8}.table-code-form>small{color:var(--muted)}.table-code-actions{display:flex;gap:9px;margin-top:5px}.primary-action{padding:10px 18px;border:0;border-radius:10px;background:linear-gradient(135deg,#f07845,#df5228);color:#fff;font-weight:800;cursor:pointer}.primary-action:disabled{opacity:.6;cursor:wait}.table-code-guide{display:flex;flex-direction:column;gap:12px;background:#f5efe9}.table-code-guide b{font-size:17px}.table-code-guide span{position:relative;padding-left:16px;color:var(--muted)}.table-code-guide span:before{content:"";position:absolute;left:0;top:9px;width:6px;height:6px;border-radius:50%;background:var(--orange)}.data-status.success{background:#e8f5ed;color:#277a50}.code-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.code-card{display:grid;grid-template-columns:122px 1fr;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:0 12px 35px rgba(55,37,25,.05)}.code-image{width:122px;height:122px;display:grid;place-items:center;padding:6px;border:1px solid #eee5df;border-radius:14px;background:#fff}.code-image img{display:block;width:100%;height:100%;object-fit:contain}.code-card>div:nth-child(2){display:grid}.code-card span{color:var(--muted);font-size:10px;letter-spacing:1px}.code-card b{font:700 24px "Songti SC",serif}.code-card small{color:var(--muted)}.code-card>button{grid-column:1/-1;padding:9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-weight:800;cursor:pointer}

.menu-manager{display:grid;gap:16px}.menu-category{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 35px rgba(55,37,25,.05)}.menu-category.is-disabled{border-style:dashed;background:#faf8f6}.menu-category>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #f0ebe7}.menu-category>header h2{margin:2px 0 1px;font:700 23px "Songti SC",serif}.menu-category>header small,.menu-order{color:var(--muted);font-size:11px}.menu-order{font-weight:800}.menu-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.state-action,.dish-admin-actions button{padding:9px 12px;border:1px solid #cfe8db;border-radius:9px;background:#f2fbf6;color:#277a50;font-weight:800;cursor:pointer}.state-action.danger,.dish-admin-actions button.danger{border-color:#f0d6d2;background:#fff5f3;color:var(--red)}.dish-admin-list{display:grid}.dish-admin-row{display:grid;grid-template-columns:58px minmax(0,1fr) auto auto;align-items:center;gap:15px;padding:16px 22px;border-bottom:1px solid #f4efeb}.dish-admin-row:last-child{border-bottom:0}.dish-admin-row.is-disabled{opacity:.58}.dish-admin-icon{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:#f7e8dc;font-size:27px}.dish-admin-icon img{width:100%;height:100%;object-fit:cover}.dish-admin-copy{display:grid;min-width:0}.dish-admin-copy>div{display:flex;align-items:center;gap:7px}.dish-admin-copy b{font-size:16px}.dish-admin-copy em{padding:2px 6px;border-radius:5px;background:#fff0e8;color:#a7432c;font-size:9px;font-style:normal;font-weight:800}.dish-admin-copy span{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dish-admin-copy small{color:#aaa097;font-size:10px}.dish-admin-row>strong{min-width:84px;color:#9f342b;font:700 19px Georgia,serif;text-align:right}.dish-admin-actions{display:flex;gap:7px}.dish-admin-actions button{background:#fff;border-color:var(--line);color:var(--ink)}.menu-empty-row{padding:32px;text-align:center;color:var(--muted)}

.editor-open{overflow:hidden}.editor-mask{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:20px;background:rgba(34,25,20,.5);backdrop-filter:blur(5px)}.editor-dialog{width:min(650px,100%);max-height:min(780px,calc(100vh - 40px));overflow:auto;padding:24px;border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(20,13,9,.28)}.editor-dialog>header{display:flex;align-items:start;justify-content:space-between;margin-bottom:20px}.editor-dialog header small{color:var(--orange);font-size:9px;font-weight:900;letter-spacing:1.5px}.editor-dialog h2{margin:3px 0 0;font:700 30px "Songti SC",serif}.editor-dialog header button{width:36px;height:36px;border:0;border-radius:50%;background:#f5f0ec;color:#665c55;font-size:25px;cursor:pointer}.editor-dialog form{display:grid;gap:14px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.editor-dialog label{display:grid;gap:6px;color:#675d56;font-size:12px;font-weight:800}.editor-dialog input,.editor-dialog select,.editor-dialog textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fcfbfa;color:var(--ink);font:14px/1.5 Inter,"PingFang SC",sans-serif;outline:none}.editor-dialog input:focus,.editor-dialog select:focus,.editor-dialog textarea:focus{border-color:#e99a78;box-shadow:0 0 0 3px #fff0e8}.editor-dialog textarea{resize:vertical}.switch-row{display:flex!important;align-items:center;justify-content:space-between;gap:20px;padding:13px 15px;border-radius:11px;background:#f8f5f2}.switch-row span{display:grid}.switch-row small{color:var(--muted);font-weight:400}.switch-row input{width:20px;height:20px;accent-color:var(--orange)}.editor-dialog form>footer{display:flex;justify-content:flex-end;gap:9px;padding-top:4px}.editor-dialog #editorStatus{margin:14px 0 0}

.date-filter{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:700}.date-filter input{padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.registered-tables{margin-top:16px;padding:20px;border:1px solid var(--line);border-radius:19px;background:#fff}.registered-tables>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.registered-tables>header>div{display:grid}.registered-tables>header b{font-size:17px}.registered-tables>header span{color:var(--muted);font-size:11px}.registered-table-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.registered-table-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fcfbfa}.registered-table-list article.is-disabled{opacity:.58}.registered-table-list article>div{display:grid}.registered-table-list span{color:var(--muted);font-size:10px}.registered-table-list button{padding:7px 9px;border:1px solid #cfe8db;border-radius:8px;background:#f2fbf6;color:#277a50;font-size:11px;font-weight:800;cursor:pointer}.registered-table-list button.danger{border-color:#f0d6d2;background:#fff5f3;color:var(--red)}

.dish-image-editor{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#faf8f6}.dish-image-editor>div:first-child{display:grid}.dish-image-editor>div:first-child b{font-size:12px}.dish-image-editor>div:first-child small{color:var(--muted);font-size:10px}.dish-image-gallery{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dish-image-gallery figure{position:relative;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}.dish-image-gallery img{display:block;width:100%;height:116px;object-fit:cover}.dish-image-gallery figure button{position:absolute;right:6px;top:6px;width:27px;height:27px;padding:0;border:0;border-radius:50%;background:rgba(38,29,24,.82);color:#fff;font-size:19px;cursor:pointer}.dish-image-gallery figcaption{padding:7px 9px;color:var(--muted);font-size:10px}.dish-image-editor>button:disabled{opacity:.55;cursor:not-allowed}

@media(max-width:900px){.code-list{grid-template-columns:repeat(2,minmax(0,1fr))}.registered-table-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.table-code-workspace{grid-template-columns:1fr}.code-list{grid-template-columns:1fr}.workspace-tabs{width:100%;overflow:auto}.workspace-tabs button{flex:1;white-space:nowrap}.menu-category>header{align-items:flex-start;flex-direction:column}.menu-actions{justify-content:flex-start}.dish-admin-row{grid-template-columns:50px minmax(0,1fr) auto}.dish-admin-actions{grid-column:2/-1}.editor-grid{grid-template-columns:1fr}}@media(max-width:480px){.dish-admin-row{padding:14px}.dish-admin-row>strong{min-width:70px}.editor-dialog{padding:19px}.head-actions{flex-wrap:wrap}.registered-table-list{grid-template-columns:1fr}.registered-tables>header{align-items:flex-start;flex-direction:column}}
