:root { --ink: #18352c; --muted: #68776f; --surface: #ffffff; --canvas: #f4f6f3; --line: #dce4df; --accent: #d8622e; --ok: #1c6b3d; --danger: #a92c26; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.45; }
header { display: flex; gap: 1rem; align-items: center; padding: .7rem 1rem; background: #16382f; color: #fff; }
header a { color: #fff; text-decoration: none; margin-right: .8rem; }
main { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .4rem; } h2 { margin-bottom: .8rem; } h3 { font-size: 1rem; }
a { color: #145c43; } input, select, textarea, button { font: inherit; } input, select, textarea { border: 1px solid #aebdb4; border-radius: 6px; padding: .45rem .55rem; }
textarea { width: min(100%, 40rem); } button { min-height: 44px; cursor: pointer; }
.inline { display: inline; } .notice { margin: 0 0 1rem; padding: .75rem; border: 1px solid #b5cdfd; background: #eef4ff; border-radius: 8px; }
.client-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 0; }
.client-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.eyebrow { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-chip { display: inline-block; border-radius: 999px; padding: .2rem .55rem; background: #e8efea; color: #285c3b; font-size: .9rem; font-weight: 700; }
.status-active { color: var(--ok); }
.status-error { color: var(--danger); }
.status-off { color: var(--muted); }
.status-paused, .status-archived, .status-held_disabled, .status-held_archived { background: #e8eaeb; color: #52615a; }
.status-failed, .status-stopped { background: #f9e4e2; color: var(--danger); }
.button { border: 1px solid #9aaea3; border-radius: 7px; padding: .4rem .75rem; background: #fff; color: var(--ink); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.danger-action { color: var(--danger); border-color: #d8aaa6; }
.client-tabs { display: flex; gap: 1.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.client-tabs a { flex: 0 0 auto; padding: .65rem .1rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.client-tabs a[aria-current="page"] { border-bottom: 3px solid var(--accent); color: var(--ink); font-weight: 700; }
.panel-card { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgb(24 53 44 / 4%); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }.summary-grid strong { font-size: 1.8rem; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; margin: .5rem 0; } th, td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } th { color: var(--muted); font-size: .82rem; }
.muted { color: var(--muted); }.empty-state { color: var(--muted); }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pagination { display: flex; gap: 1rem; align-items: center; margin-top: .75rem; color: var(--muted); }
.manual-import-panel { margin-top: 1rem; }.manual-import-panel summary { cursor: pointer; font-weight: 700; }.manual-import-form, .import-selection-form { display: grid; gap: .8rem; margin-top: .9rem; max-width: 42rem; }.manual-import-form label, .import-selection-form label { display: grid; gap: .3rem; font-weight: 600; }.form-divider { color: var(--muted); text-align: center; width: min(100%, 40rem); }.import-preview-header { margin-bottom: 1rem; }.import-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }.import-summary .panel-card { margin: 0; }.import-meta .source-facts { margin-bottom: 1rem; }.import-apply-form { margin-bottom: 1.25rem; }.import-table td:first-child { min-width: 5rem; }.import-row-duplicate { background: #f6f3eb; }.import-row-rejected { background: #fff3f2; }.import-status { font-weight: 700; }.import-status-new { color: var(--ok); }.import-status-existing { color: #355d9a; }.import-status-duplicate { color: #75622b; }.import-status-rejected { color: var(--danger); }.replace-cutoff { display: inline-flex; gap: .35rem; align-items: flex-start; min-width: 14rem; }.import-error { border-color: #d8aaa6; background: #fff3f2; color: var(--danger); }
.confirmation-card { max-width: 42rem; border-color: #d8aaa6; background: #fff8f6; }.confirmation-card h2 { font-size: 1.15rem; }.confirmation-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }.confirmation-actions .button { display: inline-flex; align-items: center; justify-content: center; min-width: 9rem; text-decoration: none; }
:focus-visible { outline: 3px solid #f0a47e; outline-offset: 2px; }
@media (max-width: 760px) { header { align-items: flex-start; flex-wrap: wrap; } main { padding: 1rem; }.client-header { align-items: stretch; flex-direction: column; }.client-tabs { margin-inline: -1rem; padding-inline: 1rem; }.summary-grid, .import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }.client-header-actions { align-items: stretch; flex-direction: column; }.client-header-actions .inline { display: flex; gap: .5rem; }.button { width: 100%; }.import-table-wrap { margin-inline: -.25rem; }.import-table { min-width: 47rem; }.replace-cutoff { min-width: 12rem; } }
