/* The signed-in CalibraWorkflow app. Colours come from the site theme (--site-*). */
html:has(.cw-body) { scroll-behavior: auto; }
.cw-body { background: var(--site-surface, #f8fafc); color: var(--site-ink, #111827); min-height: 100vh; }
.cw-header { background: white; border-bottom: 1px solid var(--site-border, #e5e7eb); padding: 16px max(16px, calc((100vw - 1200px) / 2)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cw-brand { font-weight: 700; font-size: 18px; color: var(--site-brand, #4338ca); }
.cw-nav, .cw-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; }
.cw-nav a, .cw-languages a { color: var(--site-ink, #111827); }
.cw-nav a[aria-current], .cw-languages a[aria-current] { color: var(--site-brand, #4338ca); font-weight: 600; }
.cw-account { color: var(--site-muted, #5b6472); font-size: 13px; overflow-wrap: anywhere; }
.cw-main { max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px; }
.cw-main h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 650; letter-spacing: -.5px; overflow-wrap: anywhere; }
.cw-main h2 { font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.cw-main a:not(.cw-button) { color: var(--site-brand-dark, #3730a3); text-decoration: underline; text-underline-offset: 3px; }
.cw-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cw-card { background: white; border: 1px solid var(--site-border, #e5e7eb); border-radius: 12px; padding: 28px; }
.cw-empty { text-align: center; padding-block: 56px; }
.cw-empty p { margin-top: 8px; }
.cw-auth { max-width: 440px; margin: 24px auto 0; }
.cw-auth > p { margin: 8px 0 20px; }
.cw-field { margin-bottom: 16px; }
.cw-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cw-field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; background: white; font-size: 16px; color: inherit; }
.cw-field input:focus { border-color: var(--site-brand, #4338ca); }
.cw-field small { display: block; margin-top: 6px; color: var(--site-muted, #5b6472); font-size: 13px; }
.cw-field .field_with_errors input { border-color: #b4372f; }
.cw-check { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; }
.cw-check input { width: 18px; height: 18px; }
.cw-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid transparent; background: var(--site-brand, #4338ca); color: white; font-weight: 600; font-size: 15px; }
.cw-button:hover { background: var(--site-brand-dark, #3730a3); }
.cw-button-block { width: 100%; }
.cw-button-outline { background: white; color: var(--site-ink, #111827); border-color: var(--site-border, #d1d5db); }
.cw-button-outline:hover { background: var(--site-brand-soft, #eef2ff); }
.cw-button-small { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.cw-links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.cw-flash { max-width: 1200px; padding: 14px 16px; margin: 0 auto 20px; border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 8px; }
.cw-flash-alert { border-color: #f1c4bf; background: #fdf2f1; }
.cw-errors { background: #fdf2f1; border: 1px solid #f1c4bf; color: #8b2a22; padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.cw-errors p { color: inherit; font-weight: 600; }
.cw-errors ul { margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 600px) {
  .cw-card { padding: 20px; }
}

/* Team page */
.cw-section { margin-bottom: 24px; }
.cw-section > h2 { margin-bottom: 16px; }
.cw-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; }
.cw-inline-form .cw-field { flex: 1 1 220px; }
.cw-inline-form .cw-button { margin-bottom: 16px; }
.cw-field select, .cw-row-form select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; background: white; font-size: 15px; color: inherit; width: 100%; }
.cw-row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cw-row-form select { width: auto; min-height: 36px; }
.cw-roles { display: grid; gap: 8px; margin: 4px 0 0; font-size: 14px; }
.cw-roles div { display: grid; grid-template-columns: minmax(80px, 120px) 1fr; gap: 12px; }
.cw-roles dt { font-weight: 600; }
.cw-roles dd { margin: 0; color: var(--site-muted, #5b6472); }
.cw-table-card { padding: 0; }
.cw-table-card > h2, .cw-table-card > p { padding: 24px 24px 0; }
.cw-table-card > p { padding-bottom: 24px; }
.cw-table-wrap { overflow-x: auto; position: relative; }
.cw-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.cw-table th, .cw-table td { padding: 12px 24px; border-bottom: 1px solid var(--site-border, #e5e7eb); vertical-align: middle; }
.cw-table th { font-weight: 600; white-space: nowrap; }
.cw-table td { overflow-wrap: break-word; }
/* Only long identifiers may break mid-word; other columns keep whole words and the table scrolls. */
.cw-table .cw-identifier { min-width: 9rem; max-width: 16rem; overflow-wrap: anywhere; }
.cw-table td:has(.cw-status) { white-space: nowrap; }
.cw-table tr:last-child td { border-bottom: 0; }
.cw-table .cw-button { white-space: nowrap; overflow-wrap: normal; }
.cw-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--site-brand-soft, #eef2ff); color: var(--site-brand-dark, #3730a3); font-size: 12px; font-weight: 600; }
.cw-button-danger { color: #a12b2b; }
.cw-muted { color: var(--site-muted, #5b6472); }
.cw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .cw-roles div { grid-template-columns: 1fr; gap: 0; }
  .cw-table th, .cw-table td { padding: 10px 16px; }
}

/* Instruments */
.cw-form { display: grid; gap: 16px; }
.cw-fieldset { margin: 0; min-width: 0; }
.cw-fieldset legend { float: left; width: 100%; font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.cw-fieldset legend + * { clear: both; }
.cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 20px; }
.cw-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; background: white; font: inherit; font-size: 16px; color: inherit; resize: vertical; }
.cw-field input[type="date"] { min-height: 44px; }
.cw-field-error { display: block; margin-top: 6px; color: #a12b2b !important; font-size: 13px; }
.cw-hint { color: var(--site-muted, #5b6472); font-size: 14px; align-self: center; }
.cw-disclosure summary { font-size: 17px; font-weight: 600; list-style-position: outside; margin-left: 16px; }
.cw-disclosure summary span { font-size: 13px; font-weight: 400; color: var(--site-muted, #5b6472); margin-left: 8px; }
.cw-disclosure[open] summary { margin-bottom: 16px; }
.cw-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cw-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--site-muted, #5b6472); }
.cw-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cw-summary div { display: grid; gap: 4px; align-content: start; }
.cw-summary span:first-child { font-size: 13px; color: var(--site-muted, #5b6472); }
.cw-summary strong { font-weight: 600; overflow-wrap: anywhere; }
.cw-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cw-detail-grid h2 { margin-bottom: 12px; }
.cw-details { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.cw-details div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; }
.cw-details dt { color: var(--site-muted, #5b6472); }
.cw-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.cw-status { display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #eef2f7; color: #374151; white-space: nowrap; }
.cw-status-active { background: #e7f6ec; color: #17653a; }
.cw-status-out-for-calibration, .cw-status-out-for-repair { background: #fff4e0; color: #8a4b00; }
.cw-status-lost { background: #fdecea; color: #a12b2b; }
@media (max-width: 600px) {
  .cw-details div { grid-template-columns: 1fr; gap: 2px; }
}

/* Register */
.cw-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cw-menu { position: relative; }
.cw-menu summary { list-style: none; }
.cw-menu summary::-webkit-details-marker { display: none; }
.cw-menu-panel { position: absolute; right: 0; z-index: 10; margin-top: 8px; width: min(300px, calc(100vw - 32px)); background: white; border: 1px solid var(--site-border, #e5e7eb); border-radius: 12px; padding: 16px; box-shadow: 0 10px 30px rgba(17, 24, 39, .12); }
.cw-menu-panel fieldset { border: 0; margin: 0; padding: 0; }
.cw-menu-panel legend { font-weight: 600; margin-bottom: 8px; }
.cw-menu-panel .cw-check { margin-bottom: 8px; }
.cw-menu-actions { display: flex; gap: 8px; margin-top: 12px; }
.cw-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; }
.cw-filters .cw-field { flex: 0 1 220px; }
.cw-filters .cw-search { flex: 1 1 280px; }
.cw-filters select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; background: white; font-size: 15px; color: inherit; width: 100%; }
.cw-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 4px; }
.cw-main a.cw-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--site-border, #e5e7eb); background: white; color: var(--site-ink, #111827); text-decoration: none; font-size: 14px; white-space: nowrap; }
.cw-main a.cw-tab[aria-current] { background: var(--site-brand, #4338ca); border-color: var(--site-brand, #4338ca); color: white; }
.cw-count { font-weight: 600; }
.cw-main a.cw-sort { color: inherit; text-decoration: none; }
.cw-main a.cw-sort:hover { text-decoration: underline; }
.cw-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; font-size: 14px; }
.cw-per-page, .cw-pages { display: flex; align-items: center; gap: 10px; }
.cw-main .cw-per-page a[aria-current] { font-weight: 700; text-decoration: none; color: var(--site-ink, #111827); }
@media (max-width: 600px) {
  /* Each instrument becomes a card. */
  .cw-register thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cw-register, .cw-register tbody, .cw-register tr, .cw-register td { display: block; }
  .cw-register tr { padding: 14px 16px; border-bottom: 1px solid var(--site-border, #e5e7eb); }
  .cw-register td { padding: 2px 0; border: 0; max-width: none; }
  .cw-register td.cw-identifier { font-weight: 600; font-size: 16px; margin-bottom: 4px; max-width: none; }
  .cw-register td[data-label]:not(:empty)::before { content: attr(data-label) ": "; color: var(--site-muted, #5b6472); }
  .cw-register td[data-label]:empty { display: none; }
  .cw-menu-panel { right: auto; left: 0; }
}

/* Custom fields */
.cw-custom-fields { display: grid; gap: 4px; }
.cw-custom-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 16px; align-items: end; }
.cw-custom-field .cw-button { margin-bottom: 16px; }
.cw-custom-field[hidden] { display: none; }
@media (max-width: 600px) {
  .cw-custom-field { grid-template-columns: 1fr; padding-bottom: 12px; border-bottom: 1px solid var(--site-border, #e5e7eb); margin-bottom: 12px; }
  .cw-custom-field .cw-button { justify-self: start; }
}

/* Activity */
.cw-events { list-style: none; margin: 0; padding: 0; display: grid; }
.cw-event { padding: 14px 0; border-bottom: 1px solid var(--site-border, #e5e7eb); }
.cw-event:first-child { padding-top: 0; }
.cw-event:last-child { border-bottom: 0; padding-bottom: 0; }
.cw-event-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; overflow-wrap: anywhere; }
.cw-event-head time { margin-left: auto; font-size: 13px; }
.cw-changes { margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; }
.cw-changes div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 12px; }
.cw-changes dt { color: var(--site-muted, #5b6472); }
.cw-changes dd { margin: 0; overflow-wrap: anywhere; }
.cw-changes del { color: #8b2a22; }
.cw-changes ins { text-decoration: none; color: #17653a; }
@media (max-width: 600px) {
  .cw-changes div { grid-template-columns: 1fr; gap: 0; }
  .cw-event-head time { margin-left: 0; width: 100%; }
}

/* Calibrations */
.cw-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cw-section-heading h2 { margin: 0; }
.cw-table-card > .cw-section-heading { padding: 24px 24px 0; }
.cw-result-pass { background: #e7f6ec; color: #17653a; }
.cw-result-fail { background: #fdecea; color: #a12b2b; }
.cw-result-unknown { background: #eef2f7; color: #374151; }

/* Measurements */
.cw-measurements { display: grid; gap: 12px; margin-bottom: 12px; }
.cw-measurement { border: 1px solid var(--site-border, #e5e7eb); border-radius: 10px; padding: 14px 16px 10px; }
.cw-measurement[hidden] { display: none; }
.cw-measurement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 12px; }
.cw-measurement-grid .cw-measurement-parameter { grid-column: span 2; }
.cw-measurement-grid .cw-measurement-reason { grid-column: span 2; }
.cw-measurement-grid .cw-field { margin-bottom: 10px; }
.cw-measurement-grid select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; background: white; font-size: 15px; width: 100%; color: inherit; }
.cw-measurement-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cw-preview { font-size: 13px; color: var(--site-muted, #5b6472); }
.cw-preview[data-result="fail"] { color: #a12b2b; font-weight: 600; }
.cw-preview[data-result="pass"] { color: #17653a; font-weight: 600; }
.cw-row-errors { list-style: none; padding: 0; margin: 0 0 8px; }
.cw-template-check { margin-top: 16px; }
.cw-override { display: block; margin-top: 4px; }
@media (max-width: 600px) {
  .cw-measurement-grid { grid-template-columns: 1fr 1fr; }
}
.cw-measurement-table td { white-space: nowrap; }
.cw-measurement-table td:first-child, .cw-measurement-table td:last-child { white-space: normal; min-width: 8rem; }

/* Out of tolerance */
.cw-contents { display: contents; }
.cw-oot-fields { margin-top: 8px; padding: 16px; border-radius: 10px; background: #fdf2f1; border: 1px solid #f1c4bf; }
.cw-oot-note { color: #8b2a22; font-weight: 600; margin-bottom: 12px; }
.cw-oot-badge-open { background: #fdecea; color: #a12b2b; }
.cw-oot-badge-closed { background: #eef2f7; color: #374151; }
.cw-oot-open { border-color: #f1c4bf; border-left: 4px solid #a12b2b; }
.cw-oot-close { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--site-border, #e5e7eb); }

/* Supplier certificates */
.cw-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; overflow-wrap: anywhere; }
.cw-main a.cw-file-link { font-weight: 600; }
.cw-missing { color: #8a4b00; background: #fff4e0; border: 1px solid #f3d6a4; padding: 10px 12px; border-radius: 8px; }
.cw-missing-badge { background: #fff4e0; color: #8a4b00; }
.cw-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--site-border, #e5e7eb); }
.cw-upload .cw-field { flex: 1 1 280px; }
.cw-upload input[type="file"] { min-height: 0; padding: 8px; }
.cw-upload .cw-button { margin-bottom: 16px; }
.cw-earlier { margin-top: 12px; font-size: 14px; }
.cw-earlier ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.cw-main a.cw-badge { text-decoration: none; }
.cw-secondary-id { display: block; font-size: 12px; }

/* Settings */
.cw-fieldset-intro { margin-bottom: 16px; }
.cw-statement-reset { margin: -4px 0 16px; }
.cw-logo { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--site-border, #e5e7eb); }
.cw-logo-preview { display: block; max-width: 220px; max-height: 80px; object-fit: contain; margin-bottom: 8px; border: 1px solid var(--site-border, #e5e7eb); border-radius: 8px; padding: 8px; background: white; }
.cw-field select { min-height: 44px; }

/* Record PDFs */
.cw-select { width: 1%; }
.cw-select input { width: 18px; height: 18px; }
.cw-history-actions { padding: 12px 24px 20px; }

/* Schedule */
.cw-segmented { display: inline-flex; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; overflow: hidden; }
.cw-main .cw-segmented a { padding: 8px 14px; text-decoration: none; color: var(--site-ink, #111827); font-size: 14px; background: white; }
.cw-main .cw-segmented a[aria-current] { background: var(--site-brand, #4338ca); color: white; }
.cw-due { font-size: 12px; color: var(--site-muted, #5b6472); white-space: nowrap; }
.cw-due-late { color: #a12b2b; font-weight: 600; }
.cw-list-note { margin-top: 12px; font-size: 14px; }
.cw-month .cw-section-heading { justify-content: space-between; }
.cw-month-note { margin-bottom: 12px; }
.cw-calendar { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.cw-calendar th { padding: 6px; text-align: left; color: var(--site-muted, #5b6472); font-weight: 600; }
.cw-day { height: 92px; vertical-align: top; padding: 6px; border: 1px solid var(--site-border, #e5e7eb); }
.cw-day time { display: block; font-weight: 600; margin-bottom: 4px; }
.cw-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cw-day li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-day-outside { background: var(--site-surface, #f8fafc); color: var(--site-faint, #9aa3ae); }
.cw-day-today { box-shadow: inset 0 0 0 2px var(--site-brand, #4338ca); }
.cw-day-due { background: #eef2ff; }
.cw-day-late { background: #fdecea; }
.cw-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--site-muted, #5b6472); }
.cw-legend li { display: flex; align-items: center; gap: 6px; }
.cw-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--site-border, #e5e7eb); }
.cw-swatch-due { background: #eef2ff; }
.cw-swatch-late { background: #fdecea; }
.cw-swatch-today { box-shadow: inset 0 0 0 2px var(--site-brand, #4338ca); }
.cw-weekdays { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cw-weekdays legend { width: 100%; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.cw-weekdays .cw-check { margin-bottom: 0; }
.cw-weekdays .cw-field-error { width: 100%; }
.cw-day-holiday { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(17, 24, 39, .04) 6px 12px); }
.cw-holiday { display: block; font-size: 11px; color: var(--site-muted, #5b6472); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.cw-swatch-holiday { background-image: repeating-linear-gradient(135deg, white 0 3px, #d1d5db 3px 6px); }

/* Facilities */
.cw-page-intro { margin: -12px 0 20px; }
.cw-row-form input[type="text"] { min-height: 36px; padding: 6px 10px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; font-size: 15px; min-width: 0; flex: 1 1 140px; }

/* Reminders */
.cw-preview-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.cw-delivery-accepted { background: #e7f6ec; color: #17653a; }
.cw-delivery-failed { background: #fdecea; color: #a12b2b; }
.cw-delivery-queued, .cw-delivery-cancelled { background: #eef2f7; color: #374151; }

/* Report builder */
.cw-report-builder { max-width: 760px; margin-top: 24px; }
.cw-report-builder fieldset { min-width: 0; border: 1px solid var(--site-border, #d1d5db); border-radius: 10px; padding: 16px; }
.cw-report-builder legend { font-weight: 600; padding-inline: 6px; }
.cw-report-builder [data-column] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 6px; }
.cw-report-builder [data-column] span { flex: 1 1 180px; overflow-wrap: anywhere; }
.cw-report-builder button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--site-border, #d1d5db); border-radius: 8px; }
.cw-report-builder select { max-width: 100%; }
.cw-report-table { overflow-x: auto; max-width: 100%; }
.cw-report-table td { min-width: 140px; max-width: 320px; overflow-wrap: anywhere; }

.cw-report-export { overflow-wrap: anywhere; }

/* Built-in reports */
.cw-report-catalog { list-style: none; padding: 0; display: grid; gap: 16px; margin: 16px 0 28px; }
.cw-report-catalog li { border: 1px solid var(--site-border, #d1d5db); border-radius: 10px; padding: 16px; background: white; }
.cw-report-catalog p { margin-top: 6px; font-size: 14px; color: var(--site-muted, #5b6472); }
@media (min-width: 800px) { .cw-report-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Import previews */
.cw-import-counts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 16px; }
.cw-import-counts dt { font-size: 14px; color: var(--site-muted, #5b6472); }
.cw-import-counts dd { font-size: 24px; font-weight: 600; }
.cw-main [data-import-preview-target="fields"] select { max-width: 260px; min-height: 44px; }
.cw-main [data-controller~="import-preview"] > * { min-width: 0; overflow-wrap: anywhere; }
.cw-import-source { min-width: 0; border: 1px solid var(--site-border, #d1d5db); border-radius: 10px; padding: 16px; }
.cw-import-source legend { font-weight: 600; padding-inline: 6px; }
.cw-import-source [data-import-preview-target="fields"] { min-width: 0; }
.cw-main button:disabled { opacity: .5; cursor: not-allowed; }
