/* 管理端「顾客资产」独立 UI。所有规则以 cap- 为前缀，避免影响其他页面。 */
.cap-page {
  --cap-ink: #263c31;
  --cap-muted: #718078;
  --cap-line: #dce6de;
  --cap-soft: #f5f8f5;
  --cap-green: #355f49;
  --cap-green-soft: #e8f0e9;
  --cap-warm: #8b6840;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  padding: 28px 32px 48px;
  color: var(--cap-ink);
  background: #fafbf9;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.cap-page *, .cap-page *::before, .cap-page *::after { box-sizing: border-box; }
.cap-page button, .cap-page input, .cap-page select { font: inherit; }
.cap-page button { color: inherit; }
.cap-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.cap-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.cap-header h1 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 750; letter-spacing: .01em; }
.cap-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex: 1; }
.cap-search { display: block; width: min(420px, 48vw); }
.cap-search input { width: 100%; height: 40px; padding: 0 14px; color: var(--cap-ink); background: #fff; border: 1px solid #cfdcd2; border-radius: 9px; outline: none; }
.cap-search input:focus { border-color: #72907d; box-shadow: 0 0 0 3px rgba(53,95,73,.09); }

.cap-button { min-height: 38px; padding: 0 16px; border: 1px solid #cddbd0; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 650; white-space: nowrap; }
.cap-button:hover { border-color: #9eb4a4; background: var(--cap-soft); }
.cap-button.is-primary { color: #fff; border-color: var(--cap-green); background: var(--cap-green); }
.cap-button.is-primary:hover { background: #2d503e; }
.cap-button:disabled { opacity: .42; cursor: default; }

.cap-tabs { display: flex; gap: 26px; min-height: 45px; margin-bottom: 18px; border-bottom: 1px solid var(--cap-line); overflow-x: auto; scrollbar-width: none; }
.cap-tabs::-webkit-scrollbar { display: none; }
.cap-tab { position: relative; flex: 0 0 auto; padding: 0 2px 13px; border: 0; background: transparent; color: #758078; cursor: pointer; font-size: 15px; font-weight: 620; }
.cap-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.cap-tab.is-active { color: var(--cap-ink); }
.cap-tab.is-active::after { background: var(--cap-green); }

.cap-data-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.cap-data-summary > button { min-width: 0; padding: 14px 16px; border: 1px solid var(--cap-line); border-radius: 11px; background: #fff; color: inherit; cursor: pointer; text-align: left; }
.cap-data-summary > button:hover, .cap-data-summary > button.is-active { border-color: #9eb4a4; background: var(--cap-green-soft); }
.cap-data-summary span, .cap-data-summary strong { display: block; }
.cap-data-summary span { color: var(--cap-muted); font-size: 11px; }
.cap-data-summary strong { margin-top: 7px; font-size: 21px; }
.cap-loading-line, .cap-inline-error { grid-column: 1 / -1; padding: 15px 17px; border: 1px solid var(--cap-line); border-radius: 10px; background: #fff; color: var(--cap-muted); font-size: 12px; }
.cap-inline-error, .cap-empty.is-error, .cap-drawer-state.is-error { color: #8b5a49; background: #faf5f2; }

.cap-panel { margin-bottom: 16px; padding: 20px; border: 1px solid var(--cap-line); border-radius: 13px; background: #fff; }
.cap-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.cap-panel-head h2, .cap-calendar-head h2 { margin: 0; font-size: 18px; font-weight: 720; }
.cap-panel-head p { margin: 5px 0 0; color: #8a948e; font-size: 12px; }
.cap-filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.cap-filter { min-height: 32px; padding: 0 12px; border: 1px solid #d8e2da; border-radius: 16px; background: #fff; color: #6d7971; cursor: pointer; font-size: 12px; }
.cap-filter:hover, .cap-filter.is-active { border-color: #aabeb0; background: var(--cap-green-soft); color: var(--cap-ink); font-weight: 650; }

.cap-table-wrap { width: 100%; overflow-x: auto; }
.cap-table { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: auto; }
.cap-history-table { min-width: 820px; }
.cap-table th { padding: 10px 12px; border-bottom: 1px solid #dce5de; color: #7e8a82; font-size: 11px; font-weight: 650; text-align: left; white-space: nowrap; }
.cap-table td { padding: 13px 12px; border-bottom: 1px solid #edf1ed; color: #425248; font-size: 13px; line-height: 1.4; vertical-align: middle; }
.cap-table tbody tr:last-child td { border-bottom: 0; }
.cap-table tbody tr:hover { background: #fafcf9; }
.cap-table tbody tr.is-due { background: #fbf8f1; }
.cap-table td > small, .cap-table td > span + small, .cap-customer-link small { display: block; margin-top: 4px; color: #8a958e; font-size: 11px; white-space: nowrap; }
.cap-reason { max-width: 230px; min-width: 190px; }
.cap-customer-link, .cap-text-button { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.cap-customer-link strong { color: var(--cap-ink); font-size: 13px; }
.cap-text-button { color: var(--cap-green); font-weight: 680; white-space: nowrap; }
.cap-text-button:hover, .cap-customer-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.cap-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 6px; background: #f1f4f1; color: #68756d; font-size: 11px; font-weight: 620; white-space: nowrap; }
.cap-badge.is-attention { background: #edf3e8; color: #526b47; }
.cap-badge.is-pending { background: #f5f1e9; color: var(--cap-warm); }
.cap-badge.is-level { background: #edf3ef; color: var(--cap-green); }
.cap-badge.is-gold { background: #f3efe3; color: #6f5a26; border-color: #ded2ad; }
.cap-badge.is-platinum { background: #edf1ef; color: #53645e; border-color: #cdd7d2; }
.cap-badge.is-black { background: #33433d; color: #f5f8f6; border-color: #33433d; }
.cap-badge.is-confirmed { background: #e7f1e9; color: #356044; }
.cap-badge.is-estimated { background: #f3f0e9; color: #7d684b; }
.cap-badge.is-quiet { color: #7b8680; }
.cap-empty { padding: 36px 20px; color: #89938d; text-align: center; font-size: 13px; }
.cap-empty b, .cap-empty span { display: block; }
.cap-empty span { margin-top: 7px; color: #98a099; font-size: 11px; }
.cap-compact-empty { padding: 18px 12px; }
.cap-unavailable-state { display: grid; place-items: center; min-height: 220px; padding: 44px; text-align: center; }
.cap-unavailable-state h2 { margin: 0; font-size: 18px; }
.cap-unavailable-state p { max-width: 620px; margin: 10px 0 0; color: var(--cap-muted); font-size: 13px; line-height: 1.7; }
.cap-muted-value { color: #929c96; font-size: 12px; }
.cap-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; padding-top: 16px; border-top: 1px solid #edf1ed; color: var(--cap-muted); font-size: 12px; }

.cap-calendar-head { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 18px; }
.cap-calendar-head > div { min-width: 150px; text-align: center; }
.cap-calendar-head p { margin: 4px 0 0; color: var(--cap-muted); font-size: 11px; }
.cap-calendar-scroll { width: 100%; overflow-x: auto; padding-bottom: 2px; }
.cap-calendar-week, .cap-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.cap-calendar-week { margin-bottom: 7px; }
.cap-calendar-week span { color: #8b958f; font-size: 11px; text-align: center; }
.cap-calendar-cell { min-height: 105px; padding: 10px; border: 1px solid #e4ebe5; border-radius: 9px; background: #fbfcfb; text-align: left; cursor: pointer; }
.cap-calendar-cell > span { display: block; color: #7e8982; font-size: 11px; }
.cap-calendar-cell > strong { display: block; margin: 8px 0 5px; font-size: 13px; }
.cap-calendar-cell > small { display: block; margin-top: 2px; color: #87918a; font-size: 10px; }
.cap-calendar-cell.is-zero { opacity: .54; }
.cap-calendar-cell.has-people { background: #f8fbf8; }
.cap-calendar-cell.is-peak { border-color: #afc5b4; background: #edf4ee; }
.cap-calendar-cell.is-selected { outline: 2px solid rgba(53,95,73,.35); outline-offset: -2px; }
.cap-calendar-cell.is-blank { visibility: hidden; pointer-events: none; }
.cap-date-detail { padding-top: 17px; }
.cap-calendar-hint { padding: 18px 0 2px; color: #89938d; font-size: 12px; text-align: center; }
.cap-calendar-customers { display: grid; gap: 8px; }
.cap-calendar-customers article { display: grid; grid-template-columns: minmax(135px,1.05fr) minmax(88px,.65fr) minmax(76px,.55fr) minmax(210px,1.5fr) minmax(88px,.65fr) minmax(104px,.75fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #e0e8e2; border-radius: 9px; background: #fff; }
.cap-calendar-customers article.is-purchased { background: #fafbfa; color: #758078; }
.cap-calendar-customers article > div { min-width: 0; }
.cap-calendar-customers article > div > span { display: block; margin-bottom: 5px; color: #89938d; font-size: 10px; }
.cap-calendar-customers article b, .cap-calendar-customers article small { display: block; }
.cap-calendar-customers article b { font-size: 12px; line-height: 1.45; }
.cap-calendar-customers article small { margin-top: 3px; color: #8b958f; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.cap-calendar-person .cap-customer-link { text-align: left; }
.cap-calendar-action .cap-button { min-width: 82px; }

.cap-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; justify-content: flex-end; background: rgba(28,41,34,.24); backdrop-filter: blur(1px); }
.cap-drawer { width: min(660px,92vw); height: 100%; overflow: hidden; background: #f8faf8; box-shadow: -12px 0 32px rgba(27,43,34,.12); }
.cap-drawer > header, .cap-import-modal > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--cap-line); background: #fff; }
.cap-drawer header span, .cap-import-modal header span { color: #849088; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.cap-drawer header h2, .cap-import-modal header h2 { margin: 5px 0 3px; font-size: 22px; }
.cap-drawer header p, .cap-import-modal header p { margin: 0; color: #7d8981; font-size: 12px; }
.cap-drawer-body { height: calc(100% - 94px); padding: 18px; overflow-y: auto; }
.cap-detail-section { margin-bottom: 14px; padding: 18px; border: 1px solid var(--cap-line); border-radius: 11px; background: #fff; }
.cap-detail-section h3 { margin: 0 0 14px; font-size: 15px; }
.cap-info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 12px; margin: 0; }
.cap-info-grid div { min-width: 0; }
.cap-info-grid dt { margin-bottom: 4px; color: #8b958f; font-size: 10px; }
.cap-info-grid dd { margin: 0; font-size: 13px; font-weight: 620; }
.cap-customer-id { grid-column: span 2; }
.cap-customer-id dd { color: #7d8982; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; }
.cap-drawer-state { padding: 48px 20px; color: var(--cap-muted); text-align: center; }
.cap-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cap-section-title h3 { margin: 0; }
.cap-section-title a { color: var(--cap-green); font-size: 12px; font-weight: 650; text-decoration: none; }
.cap-section-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cap-identity-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.cap-identity-list > div { min-width: 0; padding: 12px; border: 1px solid #e5ebe6; border-radius: 8px; background: #fbfcfb; }
.cap-identity-list span, .cap-identity-list b, .cap-identity-list small { display: block; }
.cap-identity-list span { color: #87928b; font-size: 10px; }
.cap-identity-list b { margin-top: 5px; font-size: 12px; overflow-wrap: anywhere; }
.cap-identity-list small { margin-top: 5px; color: #909a94; font-size: 10px; line-height: 1.45; }
.cap-order-list { display: grid; gap: 0; }
.cap-order-list article { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(190px,1.5fr) minmax(130px,.8fr); align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf1ed; }
.cap-order-list article:last-child { border-bottom: 0; }
.cap-order-list article > div:last-child { display: grid; justify-items: end; gap: 6px; }
.cap-order-list b, .cap-order-list small, .cap-order-list span { display: block; }
.cap-order-list small { margin-top: 3px; color: #8b958f; font-size: 10px; }
.cap-order-list p { margin: 0; color: #46554c; font-size: 12px; line-height: 1.55; }
.cap-order-list span { color: #76827a; font-size: 11px; }
.cap-order-more { margin: 12px 0 0; color: #87928b; font-size: 11px; text-align: right; }
.cap-relation-list { display: grid; gap: 9px; }
.cap-relation-list article { padding: 12px; border: 1px solid #e5ebe6; border-radius: 8px; background: #fbfcfb; }
.cap-relation-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-relation-list p { margin: 8px 0 4px; font-size: 12px; }
.cap-relation-list small { color: #7e8982; line-height: 1.5; }
.cap-mini-table > div { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1ed; font-size: 12px; }
.cap-mini-table > div:last-child { border-bottom: 0; }
.cap-mini-table small { display: block; margin-top: 3px; color: #8a958e; }

.cap-profile-name { margin-bottom: 16px; padding: 13px 14px; border: 1px solid #e2e9e3; border-radius: 9px; background: #fafcfa; }
.cap-profile-name > span, .cap-profile-name > small { display: block; }
.cap-profile-name > span { margin-bottom: 7px; color: #829087; font-size: 10px; }
.cap-profile-name > small { margin-top: 7px; color: #8d9891; font-size: 11px; }
.cap-name-display { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-name-display b { font-size: 15px; }
.cap-name-editor { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
.cap-name-editor input, .cap-form-grid input, .cap-form-grid select, .cap-form-grid textarea { width: 100%; border: 1px solid #cfdbd1; border-radius: 8px; background: #fff; color: var(--cap-ink); outline: none; }
.cap-name-editor input { min-height: 38px; padding: 0 11px; }
.cap-name-editor input:focus, .cap-form-grid input:focus, .cap-form-grid select:focus, .cap-form-grid textarea:focus { border-color: #72907d; box-shadow: 0 0 0 3px rgba(53,95,73,.08); }

.cap-contact-modal { width: min(620px,94vw); max-height: 92vh; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 18px 54px rgba(24,42,32,.2); }
.cap-contact-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--cap-line); }
.cap-contact-modal header span { color: #849088; font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.cap-contact-modal header h2 { margin: 5px 0 3px; font-size: 21px; }
.cap-contact-modal header p { margin: 0; color: #7d8981; font-size: 12px; }
.cap-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 22px; }
.cap-form-grid label { display: grid; gap: 7px; color: #66746b; font-size: 12px; }
.cap-form-grid label.is-wide { grid-column: 1 / -1; }
.cap-form-grid input, .cap-form-grid select { height: 39px; padding: 0 10px; }
.cap-form-grid textarea { min-height: 92px; padding: 10px; resize: vertical; }
.cap-contact-modal footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--cap-line); }

.cap-overlay.is-modal { align-items: center; justify-content: center; padding: 24px; }
.cap-import-modal { display: flex; flex-direction: column; width: min(820px,94vw); max-height: min(760px,92vh); overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 18px 54px rgba(24,42,32,.2); }
.cap-import-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; margin: 0; padding: 18px 24px; border-bottom: 1px solid #edf1ed; list-style: none; }
.cap-import-steps li { position: relative; display: flex; align-items: center; gap: 7px; color: #9aa39d; font-size: 11px; }
.cap-import-steps li::after { content: ''; position: absolute; top: 12px; left: 30px; right: 7px; height: 1px; background: #e0e6e1; }
.cap-import-steps li:last-child::after { display: none; }
.cap-import-steps b { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eef2ee; }
.cap-import-steps .is-active { color: var(--cap-ink); font-weight: 650; }
.cap-import-steps .is-active b, .cap-import-steps .is-done b { color: #fff; background: var(--cap-green); }
.cap-import-body { min-height: 370px; padding: 22px 24px; overflow-y: auto; }
.cap-import-body h3 { margin: 0 0 8px; font-size: 17px; }
.cap-import-note { margin: 0 0 16px; color: #7d8982; font-size: 12px; }
.cap-import-modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 24px; border-top: 1px solid #edf1ed; }
.cap-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cap-type-grid button { min-height: 100px; padding: 16px; border: 1px solid #dce5de; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.cap-type-grid button.is-active { border-color: #8eaa97; background: #f1f6f1; box-shadow: inset 0 0 0 1px #8eaa97; }
.cap-type-grid strong, .cap-type-grid span { display: block; }
.cap-type-grid span { margin-top: 7px; color: #7e8982; font-size: 11px; line-height: 1.55; }
.cap-file-drop { display: grid; place-items: center; min-height: 130px; margin-top: 14px; padding: 20px; border: 1px dashed #aebfb2; border-radius: 10px; background: #fafcfa; cursor: pointer; text-align: center; }
.cap-file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cap-file-drop b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-file-drop span { margin-top: 8px; color: #8b958f; font-size: 11px; }
.cap-import-status { display: grid; gap: 5px; margin-top: 14px; padding: 13px 14px; border: 1px solid #dce7df; border-radius: 9px; background: #f5f8f5; color: #627168; font-size: 12px; }
.cap-import-status b { color: var(--cap-ink); }
.cap-import-status.is-loading { border-color: #b9ccbe; background: #eef5ef; }
.cap-mapping-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.cap-mapping-list label { display: grid; grid-template-columns: minmax(110px,.8fr) 1.2fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e6ece7; border-radius: 8px; font-size: 12px; }
.cap-mapping-list label span { display: flex; gap: 6px; align-items: center; font-weight: 620; }
.cap-mapping-list label b { color: #9a654b; font-size: 9px; }
.cap-mapping-list select { width: 100%; height: 34px; border: 1px solid #d4dfd6; border-radius: 7px; background: #fff; color: var(--cap-ink); }
.cap-import-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin: 18px 0; }
.cap-import-stats article { padding: 15px 12px; border: 1px solid #e1e8e2; border-radius: 9px; background: #fafcfa; }
.cap-import-stats span, .cap-import-stats strong { display: block; }
.cap-import-stats span { color: #7e8982; font-size: 11px; }
.cap-import-stats strong { margin-top: 8px; font-size: 22px; }
.cap-import-stats .is-warning { background: #faf7f2; color: #8a6342; }
.cap-conflict-box, .cap-import-finish > div { padding: 14px; border-left: 3px solid #9eb4a4; background: #f5f8f5; font-size: 12px; }
.cap-conflict-box p { margin: 6px 0 0; color: #6f7c74; line-height: 1.6; }
.cap-import-finish { max-width: 560px; margin: 46px auto 0; text-align: center; }
.cap-import-finish > span { color: #819087; font-size: 11px; }
.cap-import-finish h3 { margin-top: 8px; font-size: 24px; }
.cap-import-finish > p { color: #647168; line-height: 1.7; }
.cap-import-finish > div { display: grid; gap: 4px; margin-top: 22px; text-align: left; }
.cap-import-finish > div span { color: #748078; }
.cap-import-finish .cap-import-report { grid-template-columns: minmax(0,1fr) auto; gap: 0; padding: 0; border: 1px solid #dfe8e1; border-left: 3px solid #9eb4a4; border-radius: 8px; background: #fff; }
.cap-import-report span, .cap-import-report strong { padding: 9px 12px; border-bottom: 1px solid #edf1ed; font-size: 12px; }
.cap-import-report strong { text-align: right; }
.cap-import-report span:nth-last-child(-n+2), .cap-import-report strong:nth-last-child(-n+2) { border-bottom: 0; }
.cap-import-placeholder { max-width: 580px; margin: 70px auto 0; padding: 30px; border: 1px solid var(--cap-line); border-radius: 11px; background: var(--cap-soft); text-align: center; }
.cap-import-placeholder p { margin: 10px 0 0; color: var(--cap-muted); line-height: 1.7; }

@media (max-width: 1050px) {
  .cap-page { padding: 24px 22px 40px; }
  .cap-data-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cap-panel-head { align-items: flex-start; flex-direction: column; }
  .cap-filter-row { justify-content: flex-start; }
  .cap-calendar-customers article { grid-template-columns: minmax(130px,1fr) repeat(3,minmax(90px,.7fr)); }
  .cap-calendar-basis { grid-column: span 2; }
}

@media (max-width: 620px) {
  .cap-page { padding: 18px 14px 34px; }
  .cap-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cap-header h1 { font-size: 23px; }
  .cap-header-actions { width: 100%; }
  .cap-search { width: auto; min-width: 0; flex: 1; }
  .cap-search input { height: 38px; padding: 0 10px; font-size: 12px; }
  .cap-button { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .cap-tabs { gap: 22px; margin-bottom: 14px; }
  .cap-data-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .cap-data-summary > button { padding: 12px; }
  .cap-data-summary strong { font-size: 19px; }
  .cap-panel { padding: 15px; border-radius: 11px; }
  .cap-panel-head { margin-bottom: 13px; }
  .cap-filter-row { flex-wrap: nowrap; width: 100%; padding-bottom: 3px; overflow-x: auto; }
  .cap-filter { flex: 0 0 auto; }
  .cap-calendar-week, .cap-calendar-grid { min-width: 620px; }
  .cap-calendar-cell { min-height: 96px; }
  .cap-calendar-head { gap: 10px; }
  .cap-calendar-head > div { min-width: 0; flex: 1; }
  .cap-calendar-customers article { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 12px; padding: 13px; }
  .cap-calendar-person, .cap-calendar-basis { grid-column: 1 / -1; }
  .cap-calendar-action { justify-self: end; }
  .cap-drawer { width: 100vw; }
  .cap-drawer > header, .cap-import-modal > header { padding: 17px 16px; }
  .cap-drawer-body { padding: 12px; }
  .cap-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cap-customer-id { grid-column: 1 / -1; }
  .cap-identity-list { grid-template-columns: 1fr; }
  .cap-order-list article { grid-template-columns: 1fr; gap: 7px; }
  .cap-order-list article > div:last-child { justify-items: start; }
  .cap-pagination { justify-content: space-between; }
  .cap-unavailable-state { min-height: 180px; padding: 28px 16px; }
  .cap-mini-table > div { grid-template-columns: 1fr; gap: 7px; }
  .cap-name-editor { grid-template-columns: 1fr 1fr; }
  .cap-name-editor input { grid-column: 1 / -1; }
  .cap-contact-modal { width: 100vw; max-height: 100dvh; min-height: 100dvh; border-radius: 0; overflow-y: auto; }
  .cap-form-grid { grid-template-columns: 1fr; padding: 17px 14px; }
  .cap-form-grid label.is-wide { grid-column: auto; }
  .cap-contact-modal > header, .cap-contact-modal footer { padding: 15px 14px; }
  .cap-overlay.is-modal { align-items: stretch; padding: 0; }
  .cap-import-modal { width: 100vw; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .cap-import-steps { padding: 12px 14px; overflow-x: auto; }
  .cap-import-steps li { min-width: 105px; }
  .cap-import-body { min-height: 0; padding: 18px 14px; flex: 1; }
  .cap-type-grid, .cap-mapping-list { grid-template-columns: 1fr; }
  .cap-import-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cap-import-modal footer { padding: 12px 14px; }
}
