/* PC表格工作区：新增一行、查看已有记录、展开编辑，沿用现有颜色与控件。 */
body[data-authorized=yes] .shell.table-workspace{max-width:1440px;padding:28px 40px 24px}
.table-workspace .compact-heading{margin-bottom:20px}
.table-workspace .compact-heading h1{font-size:27px;margin-bottom:7px}
.table-workspace .intro{font-size:14px}
.entry-grid{display:grid;grid-template-columns:230px minmax(0,1fr) 130px;gap:16px}
.entry-head{padding:8px 14px;background:#f2f4f7;border:1px solid var(--line);border-radius:7px 7px 0 0;font-size:13px;font-weight:600}
.entry-fields{padding:12px 14px;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px;margin-bottom:12px;align-items:start}
.entry-fields>div,.editor-fields>label{min-width:0}
.entry-fields input[type=text],.filter-form input[type=text],.row-editor input[type=text]{width:100%;padding:10px 12px;min-height:44px;border:1px solid #ccd4de;border-radius:6px;color:var(--ink);background:#fff;font:inherit}
.entry-fields #question{height:64px;min-height:64px;max-height:240px;padding:10px 12px;resize:none;font-size:14px;line-height:22px}
.entry-fields input[type=text]{height:44px;min-height:44px;font-size:14px;line-height:20px}
.entry-fields .counter{margin:4px 0 0;font-size:11px;line-height:16px}
.entry-fields input:focus-visible,.entry-fields textarea:focus-visible{outline:2px solid #c67b5c;outline-offset:1px;border-color:var(--accent)}
.entry-action .submit-button{width:100%;height:44px;min-height:44px;font-size:14px;line-height:20px;padding:10px}
.mobile-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.library-entry{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:24px;font-size:14px}
.library-entry a{text-decoration:none}
.library-entry small{color:var(--muted)}
.collection{margin-top:32px}
.collection h2{font-size:19px;margin:0 0 18px;font-weight:600}
.filter-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.filter-form>label{font-size:14px;margin:0;white-space:nowrap}
.filter-form input[type=text]{width:260px;font-size:14px}
.empty-filter{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:400;white-space:nowrap}
.empty-filter input{accent-color:var(--accent)}
.table-workspace .table-heading,.table-workspace .record{grid-template-columns:170px 200px minmax(0,1fr) 76px;gap:18px}
.table-workspace .record{padding:17px 14px;font-size:14px}
.table-workspace .record-product{overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px}
.record-dates{min-width:0}
.updated-time{display:block;margin-top:5px;font-size:11px;color:var(--muted)}
.edit-record{padding:7px 14px;min-height:40px;font-size:13px}
.row-editor{padding:18px;margin:0 0 12px;border:1px solid #cbd5df;border-radius:6px;background:#f7f9fb}
.editor-fields{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;margin-bottom:14px}
.editor-fields label{font-size:14px}
.editor-fields input,.editor-fields textarea{display:block;margin-top:8px;font-size:15px;font-weight:400}
.editor-fields textarea{min-height:160px;height:auto}
.editor-actions{display:flex;justify-content:flex-end;gap:12px}
.editor-actions .primary{width:auto;min-width:110px}
.row-editor .message{margin-bottom:14px}
.record-group:has(.row-editor)>.record{background:#fafbfc}
.entry-fields #question{transition:none}
@media(max-width:1000px){.toolbar{align-items:flex-start;flex-wrap:wrap}.table-workspace .table-heading,.table-workspace .record{grid-template-columns:150px 150px minmax(0,1fr) 65px;gap:12px}.entry-grid{grid-template-columns:190px minmax(0,1fr) 110px}}
/* 手机按字段顺序垂直排列，保留完整文字，不让表格撑出屏幕。 */
@media(max-width:650px){body[data-authorized=yes] .shell.table-workspace{padding:22px 16px;max-width:500px}.entry-head{display:none}.entry-fields{grid-template-columns:1fr;border-top:1px solid var(--line);gap:14px}.entry-fields #question{height:130px;min-height:130px}.mobile-field-label{position:static;clip-path:none;width:auto;height:auto;white-space:normal;font-size:14px}.filter-form{width:100%;align-items:stretch}.filter-form input[type=text]{width:100%}.filter-form>label:first-child{width:100%}.table-workspace .table-heading{display:none}.table-workspace .record{grid-template-columns:1fr;padding:15px 0}.edit-record{width:max-content}.editor-fields{grid-template-columns:1fr}.editor-actions{justify-content:flex-start}.library-entry{flex-direction:column;align-items:flex-start}.collection{margin-top:26px}.row-editor{padding:14px}}
