/* Operate / configure surfaces. Linear's restrained hierarchy, existing brand tokens. */
.ops-panel { --ops-ink:#22363d; --ops-muted:#65757e; max-width:1440px; }
.ops-nav-group { margin-bottom:5px; }
.ops-nav-group summary.nav-group-title { cursor:pointer; padding:13px 12px !important; color:#6f8188; font-size:11px; letter-spacing:.04em; border-radius:6px; }
.ops-nav-group summary:hover { background:#edf3f1; }
.ops-nav-group summary::marker { color:#8da39d; font-size:9px; }
.ops-nav-group[hidden] { display:none; }
.ops-panel [hidden] { display:none !important; }
.ops-panel .panel-title { align-items:flex-start; margin-bottom:24px; }
.ops-panel .panel-title > span { max-width:420px; line-height:1.7; font-size:12px; }
.ops-panel input:not([type=checkbox]), .ops-panel select, .ops-panel textarea {
  display:block; width:100%; min-width:0; padding:11px 13px; border:1px solid #dce4e7;
  background:#fff; color:var(--ops-ink); font-size:14px; line-height:1.5; box-sizing:border-box;
}
.ops-panel input:not([type=checkbox]), .ops-panel select { min-height:44px; }
.ops-panel textarea { min-height:270px; resize:vertical; }
.ops-panel button { min-height:40px; padding:9px 15px; border:1px solid transparent; color:#fff; background:var(--brand); font-size:13px; line-height:1.4; }
.ops-panel button.ghost-btn, .ops-panel button.small-btn { color:#38645f; background:#fff; border-color:#dce5e5; }
.ops-panel button.danger { background:#fff2f0; color:#b54537; border-color:#f6dad4; }
.ops-panel button:focus-visible, .ops-panel input:focus-visible, .ops-panel textarea:focus-visible, .ops-panel select:focus-visible { outline:3px solid #087c7030; outline-offset:2px; }
.ops-panel .ops-tabs { display:flex; gap:5px; border-bottom:1px solid var(--line); padding:0 0 12px; margin:0 0 22px; flex-wrap:wrap; }
.ops-panel .ops-tabs button { background:transparent; color:#687b83; border:0; border-radius:6px; padding:10px 18px; }
.ops-panel .ops-tabs button[aria-selected=true] { background:#e2efeb; color:#086f63; font-weight:650; }
.ops-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:24px; align-items:start; }
.ops-panel .content-grid, .ops-panel #rulesGroups { display:block; min-width:0; }
.ops-panel .editor-card, .ops-panel #rulesGroups > .card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:26px; }
.ops-panel .editor-card h4 { font-size:17px; margin:0 0 22px; }
.ops-field { display:block; color:#455a64; font-size:12px; font-weight:600; min-width:0; }
.ops-field input, .ops-field textarea, .ops-field select { margin-top:8px; font-weight:400; }
.ops-field + .ops-field { margin-top:20px; }
.ops-save-row { display:flex; align-items:center; justify-content:flex-end; gap:12px; border-top:1px solid #edf0f2; margin-top:22px; padding-top:20px; }
.ops-aside { padding:8px 0; font-size:13px; line-height:1.9; color:var(--ops-muted); }
.ops-aside h4 { font-size:13px; color:var(--ops-ink); margin:0 0 10px; }
.ops-aside p { margin:0 0 22px; }
.ops-aside a { color:var(--brand); text-decoration:underline; text-underline-offset:4px; }
.ops-feedback { font-size:12px; line-height:1.7; color:#597568; margin:10px 0; min-height:20px; }
.ops-panel .ops-filter { display:grid; gap:14px; grid-template-columns:minmax(200px,1fr) repeat(2,minmax(130px,180px)) auto; align-items:end; padding:18px !important; }
.ops-filter .ops-field + .ops-field { margin:0; }
.ops-panel .ops-filter input, .ops-panel .ops-filter select { width:100% !important; max-width:none; min-width:0; }
.ops-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ops-panel .ops-statusbar { display:flex; gap:18px; align-items:center; justify-content:space-between; margin:0 0 14px; color:var(--ops-muted); font-size:12px; }
.ops-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:16px 0; font-size:12px; color:var(--ops-muted); }
.ops-panel .ops-query { background:#fff; border:1px solid var(--line); border-radius:10px; padding:24px; margin-bottom:22px; }
.ops-query-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.ops-query-grid .ops-field + .ops-field { margin:0; }
.ops-query details { margin:20px 0; border-top:1px solid var(--line); padding-top:16px; }
.ops-query summary { cursor:pointer; font-size:13px; color:#42655f; padding:8px 0; }
.ops-query .ops-dates { margin-top:12px; }
.ops-panel #chatRows td:last-child { white-space:normal; min-width:250px; max-width:440px; overflow-wrap:anywhere; }
.ops-panel .ops-price-section { margin-bottom:24px; }
.ops-price-section > h4 { font-size:14px; margin:0 0 12px; font-weight:650; color:var(--ops-ink); }
.ops-price-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ops-panel #priceGrid { display:block; }
.ops-panel .price-card { padding:20px; background:#fff; border:1px solid var(--line); border-radius:9px; }
.ops-panel .price-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.ops-panel .price-edu { font-size:12px; color:#718089; }
.ops-panel .price-level { color:#2e5750; font-size:14px; font-weight:600; }
.ops-panel .price-card-body { display:flex; align-items:center; gap:10px; }
.ops-panel .price-input { max-width:160px; font-size:23px !important; font-variant-numeric:tabular-nums; }
.ops-panel .price-unit { white-space:nowrap; font-size:12px; color:var(--ops-muted); }
.ops-panel .price-card-foot { display:flex; gap:8px; padding-top:18px; margin-top:18px; border-top:1px solid #eef1f2; }
.ops-panel .rules-tabs { margin:18px 0; }
.ops-panel .rules-tab { background:#f4f7f7; color:#62777d; border:1px solid transparent; }
.ops-panel .rules-tab.active { background:#e3f0eb; color:#086f63; border-color:#cce3da; }
.ops-panel #sensitiveEditor { min-height:330px; font-family:inherit !important; line-height:1.8 !important; }
.ops-empty { text-align:center; padding:48px 20px; background:#fff; border:1px dashed #dce4e7; border-radius:8px; color:var(--ops-muted); font-size:13px; }
.ops-empty p { margin-bottom:16px; }
.ops-modal label { display:block; margin-bottom:16px; font-size:13px; color:#53656f; }
.ops-modal input, .ops-modal select, .ops-modal textarea { display:block; width:100%; min-height:42px; padding:10px 12px; margin-top:8px; border:1px solid #dce4e7; box-sizing:border-box; }
.ops-modal textarea { min-height:110px; }
.ops-modal input[type="checkbox"] { display:inline-block; width:18px; min-height:18px; height:18px; margin:0 8px 0 0; padding:0; vertical-align:middle; }
@media(max-width:1100px) { .ops-editor-layout { grid-template-columns:minmax(0,1fr); } .ops-aside { display:grid; grid-template-columns:1fr 1fr; gap:22px; } .ops-price-items { grid-template-columns:repeat(2,minmax(0,1fr)); } .ops-panel .ops-filter { grid-template-columns:1fr 1fr; } }
@media(max-width:620px) { .ops-query-grid, .ops-panel .ops-filter, .ops-price-items, .ops-aside { grid-template-columns:1fr; } .ops-panel .editor-card,.ops-panel #rulesGroups > .card,.ops-panel .ops-query { padding:18px; } .ops-panel .panel-title { display:block; } .ops-panel button { min-height:44px; } .ops-panel .ops-tabs button { flex:1; padding:10px 8px; } }

/* 定价矩阵：让基础价可横向对照，专项价单独表达优先级。 */
.pricing-empty { padding:48px 20px; text-align:center; color:var(--ops-muted); background:#fff; border:1px dashed #dce4e7; border-radius:10px; }
.pricing-empty p { margin:0 0 16px; }
.pricing-empty.is-error { color:#b44d4d; }
.pricing-overview { display:grid; grid-template-columns:repeat(3,minmax(120px,150px)) 1fr; gap:12px; align-items:center; margin-bottom:22px; }
.pricing-overview > div { min-height:72px; display:flex; flex-direction:column; justify-content:center; padding:14px 16px; border:1px solid #e0ebe7; border-radius:10px; background:#f8fbfa; }
.pricing-overview strong { color:#0a7566; font-size:24px; line-height:1.1; font-variant-numeric:tabular-nums; }
.pricing-overview span { margin-top:6px; color:#718089; font-size:12px; }
.pricing-overview p { margin:0; padding:0 8px; color:#6b7c80; font-size:12px; line-height:1.7; }
.pricing-section { margin-bottom:24px; padding:18px; border:1px solid #e0e8e6; border-radius:11px; background:#fff; }
.pricing-section-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.pricing-section-head h4 { margin:0; color:#24423c; font-size:15px; }
.pricing-section-head span:not(.pricing-badge) { display:block; margin-top:4px; color:#839298; font-size:12px; }
.pricing-badge { flex:0 0 auto; padding:5px 9px; border-radius:999px; color:#087466; background:#e7f5ef; font-size:11px; font-weight:650; }
.pricing-badge-special { color:#9a6a17; background:#fff4d8; }
.pricing-table-wrap { overflow-x:auto; }
.pricing-matrix, .pricing-special-table { width:100%; min-width:700px; border-collapse:separate; border-spacing:0; }
.pricing-matrix th, .pricing-matrix td, .pricing-special-table th, .pricing-special-table td { padding:13px 14px; border-bottom:1px solid #edf1f2; text-align:left; vertical-align:middle; }
.pricing-matrix thead th, .pricing-special-table thead th { color:#6d7e82; background:#f7faf9; font-size:12px; font-weight:650; }
.pricing-matrix thead th small { display:block; margin-top:3px; color:#a1abad; font-size:10px; font-weight:400; }
.pricing-matrix tbody th { min-width:190px; color:#2c4c47; background:#fbfcfc; font-size:13px; font-weight:650; }
.pricing-matrix tbody tr:last-child th, .pricing-matrix tbody tr:last-child td, .pricing-special-table tbody tr:last-child td { border-bottom:0; }
.pricing-cell-editor { min-width:150px; }
.pricing-amount { display:flex; align-items:center; gap:6px; }
.pricing-amount > span { color:#0a7566; font-size:14px; font-weight:700; }
.ops-panel .pricing-amount .price-input { width:92px; max-width:none; min-height:36px; padding:6px 8px; border-radius:7px; font-size:17px !important; font-weight:700; }
.pricing-actions { display:flex; gap:5px; margin-top:8px; }
.pricing-actions .small-btn { padding:5px 8px; border-radius:6px; font-size:11px; }
.pricing-missing { color:#aeb9bb; font-size:12px; }
.grade-tag { display:inline-flex; padding:4px 8px; border-radius:6px; color:#94650f; background:#fff4d8; font-size:12px; font-weight:650; }
.pricing-modal-note { margin:0 0 18px; padding:10px 12px; border-radius:7px; color:#6b7c80; background:#f5faf8; font-size:12px; line-height:1.6; }
@media(max-width:760px) { .pricing-overview { grid-template-columns:repeat(3,minmax(0,1fr)); } .pricing-overview p { grid-column:1/-1; padding:4px 0 0; } .pricing-section { padding:14px; } }
@media(max-width:520px) { .pricing-overview { grid-template-columns:1fr 1fr; } .pricing-overview > div:last-of-type { grid-column:1/-1; } }
