/* 店长 / 后台 v3：工作台密度画布 */
.ad-page, .mg-page { min-width: 0; padding-top: var(--gutter); }
.ad-page .cv + .cv, .mg-page .cv + .cv { border-top: 0; }
.mg-top h1, .ad-top h1 { margin-bottom: 10px; }
.ad-sh, .mg-sh { padding-top: 12px; padding-bottom: 12px; background: var(--c-block-soft); align-items: center; }
.ad-sh h2, .mg-sh h2 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.ad-notice, .mg-notice { margin: 0 0 8px; padding: 0 0 0 10px; border-left: 2px solid var(--c-coral); color: var(--c-ink-2); }
.ad-form, .mg-form { display: grid; gap: 12px; }
.ad-field, .mg-field { gap: 5px; min-width: 0; }
.ad-field textarea { min-height: 84px; }
.ad-cols, .mg-cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ad-cols .ad-wide { grid-column: 1 / -1; }
.mg-inline { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-line); }
.mg-order small, .mg-care small { display: block; margin-bottom: 6px; }
.mg-order p, .mg-care p { margin-bottom: 4px; }
.mg-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.mg-acts > form { width: 100%; }
.mg-details > summary, .ad-editor > summary { cursor: pointer; font: 400 12.5px/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }
.mg-details[open] > summary, .ad-editor[open] > summary { margin-bottom: 10px; }
.mg-recgrid, .ad-records { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mg-recgrid > .cell { grid-column: auto; }
.ad-body .cell-head { margin-bottom: 8px; }
.ad-fold > summary { padding: 2px 0; }
.ad-rep { padding: 12px 14px; background: var(--c-page); min-width: 0; }
.mg-card, .ad-record { min-width: 0; padding: 12px 14px; background: var(--c-page); overflow-wrap: anywhere; }
.mg-card p, .ad-record p { margin: 4px 0; }
.mg-card h3, .ad-record h3 { font-size: 1.1rem; margin-bottom: 2px; }
.ad-ed-grid { display: grid; gap: 1px; background: var(--c-line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ad-editor { min-width: 0; padding: 10px 14px; background: var(--c-page); }
.ad-flagged { background: var(--c-block); box-shadow: inset 0 0 0 2px var(--c-ink); }
.ad-flagged > summary::before { content: '低评分警示 · '; }
.ad-text { white-space: pre-wrap; }
.ad-form fieldset { min-width: 0; }
.ad-set { display: grid; gap: 1px; background: var(--c-line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ad-set > * { background: var(--c-page); padding: 12px 14px; min-width: 0; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 639px) { .ad-ed-grid, .ad-set, .mg-recgrid, .ad-records { grid-template-columns: minmax(0, 1fr); } }
