* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--color-bg); }
body { margin: 0; color: var(--color-text); font: var(--text-sm)/1.6 var(--font-sans); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--color-primary); text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--text-xl); line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: var(--text-md); line-height: 1.45; font-weight: 650; }
h3 { font-size: var(--text-sm); font-weight: 650; }
p { overflow-wrap: anywhere; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
.app-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { min-height: 72px; padding: 12px 32px; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--color-surface); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-text); font-size: var(--text-md); font-weight: 650; min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); color: var(--color-primary); background: var(--color-primary-soft); }
.brand-mark svg { width: 24px; height: 24px; }
.dataset-label { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--color-line); font-size: var(--text-xs); font-weight: 400; color: var(--color-muted); }
.topbar-actions, .actions, .inline, .heading-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.connection-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.connection-summary { display: grid; gap: 2px; max-width: 220px; font-size: var(--text-xs); }
.connection-summary a { color: var(--color-primary); text-underline-offset: 3px; }
.connection-status { color: var(--color-muted); }
.cloud-auth { width: 100%; max-width: 460px; margin: 32px auto; }
.cloud-auth input { width: 100%; }
.cloud-sections { margin-top: 24px; }
.cloud-secret { font-family: var(--font-mono, monospace); overflow-wrap: anywhere; word-break: break-all; }
.cloud-device { flex-wrap: wrap; }
.button, .icon-button { min-height: 44px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); padding: 10px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; line-height: 1.4; font-weight: 500; flex-shrink: 0; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--color-surface-2); }
.button.primary { background: var(--color-primary); color: var(--color-primary-ink); border-color: var(--color-primary); }
.button.primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.button.quiet { background: transparent; border-color: transparent; color: var(--color-muted); }
.button.danger { color: var(--color-danger); }
.icon-button { width: 44px; padding: 10px; }
.main-nav { display: flex; gap: 24px; padding: 0 32px; min-height: 52px; background: var(--color-surface); border-bottom: 1px solid var(--color-line); overflow-x: auto; }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px; min-height: 52px; white-space: nowrap; color: var(--color-muted); flex-shrink: 0; }
.main-nav a[aria-current="page"] { color: var(--color-primary); font-weight: 650; }
.main-nav a[aria-current="page"]::after { content: ""; height: 3px; background: var(--color-primary); position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.nav-count { font-size: var(--text-xs); min-width: 20px; padding: 1px 6px; border-radius: var(--radius-full); color: var(--color-primary); background: var(--color-primary-soft); }
#main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-heading p { color: var(--color-muted); margin-top: 8px; max-width: 56em; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-xs); }
.strong { font-weight: 650; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); margin-bottom: 24px; }
.stat { text-align: left; color: var(--color-text); background: transparent; border: 0; border-right: 1px solid var(--color-line); padding: 20px 24px; min-height: 104px; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--color-surface-2); }
.stat-label { display: block; color: var(--color-muted); }
.stat-value { display: block; font-size: var(--text-xl); line-height: 1.5; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-note { font-size: var(--text-xs); color: var(--color-muted); margin-left: 8px; font-weight: 400; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 24px; }
.stack { display: grid; gap: 24px; align-content: start; }
.panel { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; }
.panel-heading { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--color-line); }
.panel-content { padding: 20px; }
.empty-state { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state .empty-icon { display: grid; place-items: center; color: var(--color-primary); background: var(--color-primary-soft); border-radius: var(--radius-lg); width: 56px; height: 56px; margin-bottom: 4px; }
.empty-icon svg { width: 28px; height: 28px; }
.empty-state p { max-width: 34em; color: var(--color-muted); }
.empty-state .actions { margin-top: 8px; justify-content: center; }
.empty-state h2 { font-size: var(--text-md); }
.loading-state { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--color-muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--color-line); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--color-primary-soft); color: var(--color-text); }
.notice.warning { background: var(--color-warning-soft); color: var(--color-warning); }
.notice.error { background: var(--color-danger-soft); color: var(--color-danger); }
.notice p + p { margin-top: 4px; }
.demo-banner { padding: 12px 32px; background: var(--color-warning-soft); color: var(--color-warning); display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.demo-banner .button { border-color: currentColor; color: inherit; background: transparent; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: var(--radius-full); background: var(--color-muted); margin-right: 8px; flex-shrink: 0; }
.status-dot.active { background: var(--color-success); }
.badge { display: inline-flex; gap: 4px; align-items: center; font-size: var(--text-xs); font-weight: 500; border-radius: var(--radius-full); padding: 3px 9px; background: var(--color-surface-2); color: var(--color-muted); line-height: 1.5; white-space: nowrap; }
.badge.teal { color: var(--color-primary); background: var(--color-primary-soft); }
.badge.green { color: var(--color-success); background: var(--color-success-soft); }
.badge.amber { color: var(--color-warning); background: var(--color-warning-soft); }
.badge.red { color: var(--color-danger); background: var(--color-danger-soft); }
.badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.platform-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.platform-line:first-child { padding-top: 0; }
.platform-line:last-child { border-bottom: 0; padding-bottom: 0; }
.platform-line p { margin-top: 4px; }
.list-row { padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--color-line); }
.list-row:last-child { border-bottom: 0; }
.row-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.row-body { min-width: 0; }
.row-body p { margin-top: 4px; }
.row-title { font-weight: 600; color: var(--color-text); text-align: left; }
.link-button { background: transparent; border: 0; min-height: 44px; padding: 8px 0; color: var(--color-primary); text-align: left; font-weight: 500; }
.row-meta { display: flex; gap: 8px 12px; flex-wrap: wrap; color: var(--color-muted); font-size: var(--text-xs); margin-top: 6px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--color-line); }
.toolbar .search-field { flex: 1 1 220px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 12px; color: var(--color-muted); pointer-events: none; }
.search-field input { padding-left: 40px; width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 44px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); color: var(--color-text); background: var(--color-surface); padding: 10px 12px; min-width: 0; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
textarea { width: 100%; resize: vertical; min-height: 100px; }
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }
.check-label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check-label input { margin: 3px 0 0; }
.checkbox-cell { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; cursor: pointer; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: var(--color-surface-2); font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); padding: 12px 16px; white-space: nowrap; }
td { border-top: 1px solid var(--color-line); padding: 12px 16px; vertical-align: middle; }
th:first-child, td:first-child { padding: 4px 8px; width: 52px; }
tbody tr:hover { background: var(--color-bg); }
.contact-cell { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-muted); border-radius: var(--radius-md); font-weight: 600; flex-shrink: 0; }
.avatar.large { width: 48px; height: 48px; font-size: var(--text-lg); }
.contact-name { display: block; min-height: 44px; padding: 2px 0; text-align: left; border: 0; background: transparent; color: var(--color-text); font-weight: 600; max-width: 240px; overflow-wrap: anywhere; }
.contact-name:hover { color: var(--color-primary); }
.contact-secondary { font-weight: 400; font-size: var(--text-xs); color: var(--color-muted); display: block; }
.message-preview { max-width: 260px; color: var(--color-muted); overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--color-line); color: var(--color-muted); }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; color: var(--color-primary); background: var(--color-primary-soft); }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; }
.segmented button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: var(--radius-sm); color: var(--color-muted); background: transparent; }
.segmented button[aria-pressed="true"] { background: var(--color-primary-soft); color: var(--color-primary); font-weight: 600; }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.board-column { background: var(--color-surface-2); border-radius: var(--radius-md); padding: 16px; display: grid; align-content: start; gap: 12px; }
.board-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.case-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-sm); padding: 16px; }
.case-card .badges { margin-bottom: 8px; }
.case-card .actions { margin-top: 12px; }
.case-card p { color: var(--color-muted); margin-top: 8px; }
.connector-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 24px; margin-bottom: 24px; align-items: start; }
.connector-grid > *, .connector-grid .panel { min-width: 0; }
.connector-body { display: grid; gap: 16px; }
.connector-description { max-width: 54em; }
.connector-facts, .connector-metadata { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; margin: 0; }
.connector-facts > div, .connector-metadata > div { min-width: 0; }
.connector-facts dt, .connector-metadata dt { color: var(--color-muted); font-size: var(--text-xs); }
.connector-facts dd, .connector-metadata dd { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.connector-facts dd { font-variant-numeric: tabular-nums; }
.connector-setup { background: var(--color-bg); padding: 16px; border-radius: var(--radius-sm); display: grid; gap: 12px; }
.connector-metadata > div:nth-child(2), .connector-metadata > div:nth-child(4) { grid-column: 1 / -1; }
.connector-metadata > div:nth-child(2) dd, .connector-metadata > div:nth-child(4) dd { font-family: var(--font-mono); font-size: var(--text-xs); }
.connector-boundary { padding-top: 16px; border-top: 1px solid var(--color-line); }
.connector-boundary ul { padding-left: 20px; margin: 12px 0 0; color: var(--color-muted); }
.connector-boundary li + li { margin-top: 8px; }
.connector-approval { display: grid; gap: 12px; }
.connector-consent { padding: 16px; background: var(--color-primary-soft); border-radius: var(--radius-sm); }
.connector-feedback { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--color-primary-soft); }
.whatsapp-qr { width: 240px; max-width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 12px; border-radius: var(--radius-sm); justify-self: center; }
.workflow-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.workflow-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.workflow-contact { display: flex; gap: 12px; align-items: center; min-width: 0; }
.workflow-contact .link-button { padding: 0; }
.workflow-evidence { border-top: 1px solid var(--color-line); padding-top: 8px; }
.workflow-evidence > summary { min-height: 44px; display: list-item; cursor: pointer; padding: 8px 0; font-weight: 500; }
.workflow-evidence .timeline { margin: 12px 0; max-height: 360px; overflow-y: auto; }
.workflow-evidence blockquote { margin: 0; }
.workflow-next { padding: 12px; background: var(--color-bg); border-radius: var(--radius-sm); }
.workflow-draft { margin-top: 12px; }
.workflow-feedback { padding: 10px 12px; background: var(--color-success-soft); color: var(--color-success); border-radius: var(--radius-sm); }
.runtime-banner { padding: 12px 32px; background: var(--color-primary-soft); color: var(--color-text); font-size: var(--text-xs); }
.connector-prepare { border-top: 1px solid var(--color-line); padding-top: 12px; }
.connector-prepare > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 500; }
.connector-prepare > form { padding: 12px 0 4px; }
.source-advanced > summary { list-style: none; min-height: 64px; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.source-advanced > summary::-webkit-details-marker { display: none; }
.source-advanced > summary > span { display: grid; gap: 4px; min-width: 0; }
.source-advanced > summary > svg { color: var(--color-muted); }
.source-advanced[open] > summary { border-bottom: 1px solid var(--color-line); }
.source-advanced[open] > summary > svg { transform: rotate(90deg); }
.source-advanced-body { padding: 20px; }
.source-advanced-body .source-grid { margin-bottom: 0; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.source-record { padding: 20px; border-bottom: 1px solid var(--color-line); }
.source-record:last-child { border: 0; }
.source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.source-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.source-details dt { color: var(--color-muted); font-size: var(--text-xs); }
.source-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.source-path { font-family: var(--font-mono); font-size: var(--text-xs); overflow-wrap: anywhere; margin-top: 8px; }
.upload-zone { padding: 24px; border: 1px dashed var(--color-line); background: var(--color-bg); border-radius: var(--radius-sm); }
.upload-zone input { width: 100%; margin-top: 12px; }
.upload-zone input::file-selector-button { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-line); border-radius: var(--radius-sm); padding: 8px 12px; margin-right: 12px; min-height: 44px; cursor: pointer; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-weight: 500; }
.field-hint { color: var(--color-muted); font-size: var(--text-xs); }
.full-width { grid-column: 1 / -1; }
.form-error { color: var(--color-danger); background: var(--color-danger-soft); border-radius: var(--radius-sm); padding: 12px 16px; overflow-wrap: anywhere; }
.form-success { padding: 16px; background: var(--color-success-soft); color: var(--color-success); border-radius: var(--radius-sm); }
.form-success ul, .notice ul { padding-left: 20px; margin: 8px 0 0; }
.role-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.role-option { border: 1px solid var(--color-line); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.role-option:has(input:checked) { background: var(--color-primary-soft); border-color: var(--color-primary); }
.app-footer { width: 100%; max-width: 1280px; margin: 0 auto; padding: 16px 32px 24px; display: flex; gap: 12px; justify-content: space-between; font-size: var(--text-xs); color: var(--color-muted); }
.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 100; max-width: min(400px, calc(100vw - 32px)); }
.toast { background: var(--color-text); color: var(--color-surface); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow-dialog); }
.toast.error { background: var(--color-danger); color: var(--color-primary-ink); }
dialog { border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: 0; width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-dialog); }
dialog::backdrop { background: var(--color-overlay); }
dialog.wide { width: min(860px, calc(100vw - 32px)); }
.dialog-layout { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--color-line); flex-shrink: 0; }
.dialog-body { padding: 24px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.dialog-footer { padding: 16px 24px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--color-line); flex-shrink: 0; flex-wrap: wrap; }
.dialog-body > * + * { margin-top: 20px; }
.dialog-body .field + .field { margin-top: 0; }
.detail-heading { display: flex; gap: 16px; align-items: center; }
.detail-summary { padding: 16px; background: var(--color-bg); border-radius: var(--radius-sm); }
.detail-summary p + p { margin-top: 8px; }
.detail-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--color-line); margin-top: 24px; overflow-x: auto; }
.detail-tabs button { border-radius: 0; }
.timeline { display: grid; gap: 20px; }
.message { border-left: 2px solid var(--color-line); padding-left: 16px; }
.message.from-me { border-color: var(--color-primary); }
.message-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--color-muted); font-size: var(--text-xs); margin-bottom: 6px; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-id { font-size: var(--text-xs); color: var(--color-muted); margin-top: 8px; overflow-wrap: anywhere; }
.detail-section-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.prompt-text { width: 100%; min-height: 200px; font-size: var(--text-sm); font-family: var(--font-sans); }
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.activity-item:last-child { border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; padding: 12px 16px; z-index: 200; background: var(--color-surface); border: 1px solid var(--color-primary); }
.skip-link:focus { top: 12px; }
@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .source-grid, .connector-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .board-column { gap: 12px; }
  .contact-table th:nth-child(5), .contact-table td:nth-child(5) { display: none; }
}
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; gap: 8px; }
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; }
  .connection-controls { flex: 1 1 100%; padding: 4px 0 8px; }
  .connection-summary { max-width: none; }
  .brand { gap: 8px; }
  .dataset-label { display: none; }
  .topbar-actions { gap: 0; }
  .topbar-actions .quiet { padding: 10px 8px; }
  .main-nav { padding: 0 16px; gap: 20px; }
  #main { padding: 24px 16px; }
  .page-heading { flex-direction: column; gap: 16px; }
  .page-heading .heading-actions { width: 100%; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; min-height: 96px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }
  .panel-heading, .toolbar, .list-row, .panel-content { padding: 16px; }
  .toolbar > select { flex: 1 1 120px; width: 100%; }
  .toolbar .segmented { width: 100%; }
  .toolbar .segmented button { flex: 1; padding-left: 12px; padding-right: 12px; }
  .empty-state { padding: 32px 16px; }
  .contact-table thead { display: none; }
  .contact-table tbody, .contact-table tr { display: block; }
  .contact-table tr { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); padding: 12px 12px 12px 4px; border-top: 1px solid var(--color-line); }
  .contact-table td { border: 0; padding: 4px 8px; }
  .contact-table td:first-child { grid-row: 1 / 5; width: 44px; padding: 0; }
  .contact-table td:not(:first-child) { grid-column: 2; }
  .contact-table td:nth-child(4) { display: flex; align-items: center; gap: 8px; }
  .contact-table td:nth-child(4)::before { content: "最近联系"; color: var(--color-muted); font-size: var(--text-xs); }
  .contact-cell { min-width: 0; }
  .contact-name { max-width: 220px; }
  .contact-table .avatar { display: none; }
  .contact-table .actions .button { width: 100%; }
  .pagination { padding: 16px; flex-direction: column; align-items: flex-start; }
  .pagination .actions { width: 100%; justify-content: space-between; }
  .bulk-bar { flex-direction: column; align-items: flex-start; padding: 16px; }
  .list-row { flex-wrap: wrap; }
  .list-row > .actions { width: 100%; padding-left: 0; }
  .source-heading { flex-direction: column; }
  .source-details, .connector-facts, .connector-metadata { grid-template-columns: 1fr; }
  .source-advanced > summary, .source-advanced-body { padding: 16px; }
  .connector-approval .button { width: 100%; }
  .source-record { padding: 16px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .demo-banner { padding: 12px 16px; flex-wrap: wrap; }
  .runtime-banner { padding: 12px 16px; }
  .demo-banner .button { width: 100%; }
  .app-footer { padding: 8px 16px 24px; flex-direction: column; gap: 4px; }
  .dialog-header, .dialog-footer { padding: 16px; }
  .dialog-body { padding: 20px 16px; }
  .dialog-footer .button { flex: 1; }
  .detail-heading { align-items: flex-start; }
  .role-options { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
