/* 客户域沿用 SaaS 的品牌色、字体与间距；所有规则仅作用于此工作区。 */
[data-customer5-root] { display: grid; gap: 16px; color: var(--ink); font-size: 13px; line-height: 1.6; }
[data-customer5-root] > * { min-width: 0; }
[data-customer5-root] *, [data-customer5-root] *::before, [data-customer5-root] *::after { box-sizing: border-box; }
[data-customer5-root] > .panel { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; background: #fff; }
[data-customer5-root] h2, [data-customer5-root] h3, [data-customer5-root] p { margin: 0; }
[data-customer5-root] h2 { font-size: 21px; letter-spacing: -.4px; }
[data-customer5-root] h3 { font-size: 15px; font-weight: 650; }
[data-customer5-root] button, [data-customer5-root] input, [data-customer5-root] select { font-family: inherit; }
[data-customer5-root] .c5-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; margin: 0; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
[data-customer5-root] .c5-button-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
[data-customer5-root] .c5-button-primary:hover { background: var(--brand-dark, #242e37); }
[data-customer5-root] .c5-button-secondary { color: var(--ink); background: #fff; }
[data-customer5-root] .c5-button-secondary:hover { background: var(--panel-muted, #f5f6f8); border-color: var(--muted); }
[data-customer5-root] .c5-button:disabled { opacity: .45; cursor: wait; }
[data-customer5-root] :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-customer5-root] .c5-page-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
[data-customer5-root] .c5-eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .7px; margin-bottom: 4px; }
[data-customer5-root] .c5-policy-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
[data-customer5-root] .c5-quota { display: flex; align-items: stretch; gap: 28px; flex-shrink: 0; }
[data-customer5-root] .c5-quota-item { min-width: 104px; }
[data-customer5-root] .c5-quota-item span { display: block; color: var(--muted); font-size: 12px; }
[data-customer5-root] .c5-quota-item strong { color: var(--ink); font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
[data-customer5-root] .c5-quota-item small { font-size: 13px; color: var(--muted); font-weight: 400; }
[data-customer5-root] .c5-meter { height: 3px; margin-top: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
[data-customer5-root] .c5-meter i { display: block; height: 100%; background: var(--accent); }
[data-customer5-root] .c5-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
[data-customer5-root] .c5-section-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
[data-customer5-root] .c5-count { display: inline-flex; min-width: 23px; align-items: center; justify-content: center; margin-left: 5px; padding: 0 6px; border-radius: 5px; background: var(--panel-muted, #f1f3f5); color: var(--muted); font-size: 12px; font-weight: 500; }
[data-customer5-root] .c5-badge { display: inline-flex; width: fit-content; padding: 3px 8px; border: 1px solid var(--line-soft); border-radius: 5px; background: var(--panel-muted, #f5f6f8); color: var(--muted-strong); font-size: 11px; font-weight: 550; white-space: nowrap; }
[data-customer5-root] .c5-state-ACTIVE, [data-customer5-root] .c5-state-VALID, [data-customer5-root] .c5-state-ACCEPTED { color: #28674e; background: #edf6f1; border-color: #d7eade; }
[data-customer5-root] .c5-state-GRACE, [data-customer5-root] .c5-state-PENDING, [data-customer5-root] .c5-state-NEED_MANUAL_REVIEW { color: #936722; background: #fff7e8; border-color: #f0e1be; }
[data-customer5-root] .c5-state-DEALING { color: #3f618f; background: #eff4fb; border-color: #dce6f5; }
[data-customer5-root] .c5-table { margin: 0; border: 1px solid var(--line-soft); border-radius: 8px; overflow-x: auto; }
[data-customer5-root] .c5-table table { width: 100%; margin: 0; border-collapse: collapse; }
[data-customer5-root] .c5-table th { padding: 11px 14px; text-align: left; color: var(--muted); background: var(--panel-muted, #f7f8fa); font-size: 12px; font-weight: 500; white-space: nowrap; }
[data-customer5-root] .c5-table td { padding: 15px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 13px; }
[data-customer5-root] .c5-table td:first-child strong { font-weight: 600; }
[data-customer5-root] .c5-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
[data-customer5-root] .c5-phone, [data-customer5-root] .c5-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-customer5-root] .c5-empty { padding: 22px 10px; text-align: center; }
[data-customer5-root] .c5-empty span { display: block; margin-bottom: 6px; color: var(--muted); }
[data-customer5-root] .c5-empty strong { font-size: 13px; font-weight: 500; }
[data-customer5-root] .c5-empty p { margin-top: 5px; color: var(--muted); font-size: 12px; }
[data-customer5-root] summary { cursor: pointer; list-style: none; }
[data-customer5-root] summary::-webkit-details-marker { display: none; }
[data-customer5-root] .c5-create > summary { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
[data-customer5-root] .c5-create > summary::after { content: '＋'; color: var(--brand); font-size: 20px; font-weight: 400; }
[data-customer5-root] .c5-create[open] > summary::after { content: '−'; }
[data-customer5-root] .c5-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-top: 18px; margin: 0; }
[data-customer5-root] .c5-form label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--muted-strong); font-size: 12px; }
[data-customer5-root] .c5-form input, [data-customer5-root] .c5-form select { width: 100%; height: 38px; min-width: 0; margin: 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; outline-offset: 2px; }
[data-customer5-root] .c5-form input[type=file] { height: auto; min-height: 38px; padding: 5px; }
[data-customer5-root] .c5-form input::file-selector-button { padding: 5px 9px; margin-right: 8px; border: 0; border-radius: 4px; color: var(--ink); background: var(--panel-muted, #f1f3f5); font: inherit; cursor: pointer; }
[data-customer5-root] .c5-form-footer { display: flex; justify-content: flex-end; grid-column: 1/-1; border-top: 1px solid var(--line-soft); padding-top: 14px; }
[data-customer5-root] .c5-detail-head, [data-customer5-root] .c5-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
[data-customer5-root] .c5-detail-head h3 { font-size: 18px; }
[data-customer5-root] .c5-detail-head h3 span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
[data-customer5-root] .c5-detail-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 20px 0; }
[data-customer5-root] .c5-detail-summary span { display: block; color: var(--muted); margin-bottom: 5px; font-size: 12px; }
[data-customer5-root] .c5-detail-summary strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
[data-customer5-root] .c5-operation { border-top: 1px solid var(--line-soft); padding: 15px 0; }
[data-customer5-root] .c5-operation > summary { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 550; }
[data-customer5-root] .c5-operation > summary span { color: var(--muted); font-weight: 400; }
[data-customer5-root] .c5-operation[open] > summary span { transform: rotate(45deg); }
[data-customer5-root] .c5-privacy { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 14px; border-radius: 7px; background: var(--panel-muted, #f5f6f8); color: var(--muted); font-size: 12px; }
[data-customer5-root] .c5-danger-form .c5-button-primary { color: #a64141; background: #fff; border-color: #e5bcbc; }
[data-customer5-root] .c5-danger-form .c5-button-primary:hover { background: #fff3f3; }
[data-customer5-root] .c5-history { padding-top: 14px; }
[data-customer5-root] .c5-history article { display: grid; grid-template-columns: 155px 1fr; gap: 12px; padding: 9px 0; font-size: 12px; }
[data-customer5-root] .c5-history time, [data-customer5-root] .c5-muted, [data-customer5-root] .c5-identifiers { color: var(--muted); }
[data-customer5-root] .c5-history strong { font-weight: 400; }
[data-customer5-root] .c5-identifiers { font-size: 11px; overflow-wrap: anywhere; }
[data-customer5-root] .c5-identifiers p { padding-top: 10px; }
[data-customer5-root] .c5-case { border-top: 1px solid var(--line-soft); padding: 16px 0; }
[data-customer5-root] .c5-case:last-child { padding-bottom: 0; }
[data-customer5-root] .c5-case-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
[data-customer5-root] .c5-case-head strong { font-size: 13px; font-weight: 600; }
[data-customer5-root] .c5-case p { color: var(--muted); margin: 7px 0 12px; font-size: 12px; }
[data-customer5-root] .c5-feedback:not(:empty) { margin-top: 14px; padding: 9px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; }
@media (max-width: 850px) {
  [data-customer5-root] .c5-page-head { flex-direction: column; }
  [data-customer5-root] .c5-quota { width: 100%; gap: 22px; }
  [data-customer5-root] .c5-quota-item { flex: 1; }
}
@media (max-width: 560px) {
  [data-customer5-root] > .panel { padding: 15px; }
  [data-customer5-root] .c5-form, [data-customer5-root] .c5-detail-summary { grid-template-columns: 1fr; }
  [data-customer5-root] .c5-detail-head { align-items: start; flex-direction: column; }
  [data-customer5-root] .c5-history article { grid-template-columns: 1fr; gap: 2px; }
}
.capacity-pagination, .capacity-query { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.capacity-pagination button, .capacity-query button { min-height: 36px; padding: 8px 12px; border: 1px solid #dce3ea; border-radius: 8px; background: #fff; color: inherit; cursor: pointer; font: inherit; }
.capacity-pagination button:disabled { opacity: .45; cursor: default; }
.capacity-pagination [role="alert"] { flex-basis: 100%; color: #a32929; overflow-wrap: anywhere; }
.capacity-query label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.capacity-query input, .capacity-query select { max-width: 100%; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid #dce3ea; border-radius: 8px; font: inherit; }
