:root {
  --ink: #332b2e;
  --muted: #81767a;
  --line: #e5dfe1;
  --blue: #b9364d;
  --blue-light: #faf0f2;
  --green: #3f8065;
  --amber: #a4772f;
  --red: #b9364d;
  --surface: #fff;
  --canvas: #f6f4f2;
  --sidebar: #542c38;
  --radius: 5px;
  --shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
button, a { touch-action: manipulation; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #bd6678; outline-offset: 3px; }
input, select, textarea { width: 100%; min-height: 37px; padding: 8px 11px; border: 1px solid #d9d2d5; border-radius: 4px; background: #fff; color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: #b9a7ad; }
input:focus, select:focus, textarea:focus { border-color: #aa586b; outline: 2px solid #f4e7eb; outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #a39a9e; }
textarea { resize: vertical; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .92em; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.section-label, .heading-dot { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 14px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: #a72e43; }
.button.secondary { background: #fff; border-color: #d9d2d5; color: #6e555e; }
.button.secondary:hover { background: #faf6f7; border-color: #bb929d; }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap; }
.text-button:hover { color: #98273d; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 3px; background: none; color: #8c7d83; font-size: 18px; }
.icon-button:hover { background: #f4ebee; color: #633443; }
.small-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #a39399; }
.blue-dot { background: #a54d63; }
.green-dot { background: var(--green); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Shared, quiet enterprise shell. */
.workspace { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 192px; overflow-y: auto; padding: 26px 12px 0; background: var(--sidebar); color: #dfcfd4; }
.brand { display: flex; align-items: center; gap: 9px; margin: 0 7px 42px; color: #fff; }
.brand .brand-glyph { display: none; }
.brand > span:last-child { font-size: 14px; font-weight: 700; letter-spacing: .05px; }
.brand small { display: block; margin-top: 3px; color: #f3e9ec; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.nav-caption { margin-bottom: 12px; padding: 0 10px; color: #dcc7ce; font-size: 12px; font-weight: 600; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 37px; padding: 9px 12px; border: 0; border-radius: 3px; background: none; color: #e2d2d7; text-align: left; font-size: 12px; }
.nav-item:hover { background: #ffffff0c; color: #fff; }
.nav-item.active { background: #ffffff23; color: #fff; font-weight: 600; }
.nav-icon { display: none; }
.nav-count { margin-left: auto; min-width: 19px; padding: 0 5px; border-radius: 3px; background: #ffffff20; color: #fff; font-size: 10px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.standards-card { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 13px 8px; border-top: 1px solid #ffffff24; }
.standard-icon { display: none; }
.standards-card strong { display: block; color: #eadce1; font-size: 11px; font-weight: 500; }
.standards-card span:not(.standard-icon) { display: block; margin-top: 5px; color: #baa3ac; font-size: 9px; }
.sidebar-user { display: flex; align-items: center; gap: 8px; padding: 16px 6px 20px; border-top: 1px solid #ffffff24; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: #ffffff1c; color: #eddee3; font-size: 10px; font-weight: 600; }
.sidebar-user strong { display: block; color: #eddee3; font-size: 11px; font-weight: 500; }
.sidebar-user-copy { flex: 1; min-width: 0; }
.sidebar-user-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .avatar { flex-shrink: 0; }
.sidebar-user small { display: block; margin-top: 2px; color: #bba5ae; font-size: 9px; }
.sidebar-user .icon-button { margin-left: auto; color: #cbb5be; }
.sidebar-user .icon-button:hover { background: #ffffff18; color: #fff; }
.main-shell { flex: 1; min-width: 0; margin-left: 192px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 69px; padding: 0 34px; border-bottom: 1px solid #dfd8db; background: #fff; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: #95868d; font-size: 12px; }
.breadcrumbs > span { display: none; }
.breadcrumbs strong { color: #3b2e33; font-size: 14px; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 18px; color: #8f8188; font-size: 11px; }
.account-chip { display: flex; align-items: center; gap: 7px; max-width: 200px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #64565e; font-size: 11px; }
.account-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip small { flex-shrink: 0; color: var(--muted); font-size: 9px; }
.topbar-divider { width: 1px; height: 13px; background: #e5dde1; }
.connection { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.connection i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #ae9fa6; }
.connection.live i { background: #4c876c; }
.connection.error i { background: #b88642; }
.mobile-menu { display: none; }
#main-content { max-width: 1320px; margin: auto; padding: 32px 38px 0; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { color: #352b2f; font-size: 27px; font-weight: 700; letter-spacing: -.45px; line-height: 1.4; }
.page-heading p { margin-top: 8px; color: #807479; font-size: 13px; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding: 22px 0 25px; border-top: 1px solid #e0d9dc; color: #9b8d94; font-size: 10px; }
.page-footer > span:last-child { display: flex; align-items: center; gap: 8px; }
.page-footer i { width: 3px; height: 3px; border-radius: 50%; background: #c7b8bf; }

/* Flat statistics, bordered panels and compact data tables. */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; }
.stat-card:hover { border-color: #bea2ac; background: #fffdfd; }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: #7c6e76; font-size: 12px; }
.stat-symbol { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 3px; font-size: 15px; }
.stat-symbol.neutral { background: #f1eeee; color: #9b8b94; }
.stat-symbol.blue { background: #f9edf0; color: #a45369; }
.stat-symbol.green { background: #edf5ef; color: #4f846a; }
.stat-symbol.amber { background: #faf4e8; color: #ac8849; }
.stat-card > strong { display: block; margin: 6px 0; color: #4a2f39; font-size: 29px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-foot { display: flex; align-items: center; gap: 6px; color: #9b8f95; font-size: 10px; }
.stat-foot .small-dot { width: 4px; height: 4px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 18px; margin-bottom: 20px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid #ebe6e8; background: #fff; }
.panel-heading h2 { display: flex; align-items: center; gap: 8px; color: #49363f; font-size: 13px; font-weight: 650; }
.panel-heading p { margin-top: 4px; color: #9b8d94; font-size: 10px; line-height: 1.65; }
.panel-heading .text-button { font-size: 11px; }
.count-pill { min-width: 18px; padding: 0 5px; border: 1px solid #e5dfe1; border-radius: 3px; background: #faf6f8; color: #947783; font-size: 10px; font-weight: 400; text-align: center; }
.soft-icon { display: none; }
.setup-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #e5dfe1; border-radius: 4px; background: #fcfbfb; }
.notice-icon { display: grid; place-items: center; flex-shrink: 0; width: 17px; height: 17px; border: 1px solid #b67e90; border-radius: 50%; color: #a16277; font-family: serif; font-size: 12px; font-style: italic; font-weight: 600; }
.setup-notice strong { color: #77505f; font-size: 12px; font-weight: 600; }
.setup-notice p { margin-top: 3px; color: #a38b96; font-size: 11px; line-height: 1.7; }
.setup-notice .text-button { margin-left: auto; font-size: 11px; }
.alert { margin-bottom: 20px; padding: 12px 15px; border-radius: 4px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.alert.error { border: 1px solid #ecced5; background: #fcf1f3; color: #a75569; }
.active-jobs { min-height: 208px; padding: 0 18px 16px; }
.pipeline-description { margin: 0 18px 6px; padding: 9px 11px; border: 1px solid #eee8eb; border-radius: 3px; color: #947287; background: #fcfafb; font-size: 10px; line-height: 1.8; }
.active-job { padding: 15px 0; border-top: 1px solid #eee8eb; }
.active-job:first-child { border-top: 0; }
.active-job-top { display: flex; align-items: center; gap: 10px; }
.active-job-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.stop-job { font-size: 11px; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; }
.record-owner { max-width: 150px; overflow-wrap: anywhere; white-space: normal; }
.jobs-table { min-width: 790px; }
.file-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 32px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fbf7f9; color: #ad8292; font-size: 17px; }
.job-name { flex: 1; min-width: 0; }
.job-name button { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; color: #633d4b; font-size: 12px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.job-name button:hover { color: var(--blue); }
.job-name small { display: block; overflow: hidden; margin-top: 3px; color: #a4979f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.progress-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progress-track { flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: #eee6ea; }
.progress-fill { height: 100%; border-radius: 2px; background: #ab5068; transition: width .35s; }
.progress-number { width: 29px; color: #9b8390; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.stage-track { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 10px; color: #b5a8b0; font-size: 9px; }
.stage-track span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.stage-track i { width: 3px; height: 3px; border-radius: 50%; background: #dacdd4; }
.stage-track .done { color: #9f7c8e; }
.stage-track .done i { background: #b491a3; }
.stage-track .current { color: #a64b65; }
.stage-track .current i { background: #a64b65; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 3px; background: #f2eff1; color: #93828d; font-size: 10px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.badge:before { display: block; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ""; }
.badge.blue { background: #faf0f3; color: #a35b74; }
.badge.green { background: #edf5f0; color: #53836b; }
.badge.amber { background: #fbf5e9; color: #aa8649; }
.badge.red { background: #fcf0f3; color: #ad5b73; }
.badge.neutral { background: #f2eff1; color: #998a94; }
.integration-list { padding: 0 18px 4px; }
.integration-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #efe9ed; }
.integration-item:first-child { border-top: 0; }
.integration-symbol { display: none; }
.integration-copy { flex: 1; min-width: 0; }
.integration-copy strong { display: block; color: #735867; font-size: 11px; font-weight: 500; }
.integration-copy small { display: block; max-width: 230px; overflow: hidden; margin-top: 2px; color: #aa99a4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.integration-item .badge { font-size: 9px; }
.scheduler-strip { display: flex; align-items: center; gap: 7px; padding: 11px 18px; border-top: 1px solid #eae2e7; background: #fcfbfb; color: #a08c9a; font-size: 9px; }
.scheduler-strip .small-dot { width: 4px; height: 4px; }
.scheduler-strip .text-button { margin-left: auto; padding: 0; font-size: 10px; }
.recent-panel, .events-panel { margin-bottom: 20px; }
.table-container { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 14px; border-bottom: 1px solid #e3e2e6; background: #f8f9fa; color: #7b8797; font-size: 11px; font-weight: 600; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td { padding: 12px 14px; border-bottom: 1px solid #eae6e9; color: #675962; font-size: 12px; vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfbfb; }
.record-title { display: block; max-width: 255px; overflow: hidden; padding: 0; border: 0; background: none; color: #653d4e; font-size: 12px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.record-title:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.record-subtitle { display: block; max-width: 250px; overflow: hidden; margin-top: 3px; color: #ac9ba5; font-size: 10px; text-overflow: ellipsis; }
.table-date { color: #8d7e89; font-size: 11px; font-variant-numeric: tabular-nums; }
.row-detail { padding: 4px 0; border: 0; background: none; color: #ba405b; font-size: 11px; font-weight: 600; }
.row-detail:hover { color: #922c45; text-decoration: underline; }
.result-score { color: #775264; font-size: 12px; font-variant-numeric: tabular-nums; }
.result-score span { margin-left: 2px; color: #b09da9; font-size: 10px; }
.recent-events { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.event-line { display: flex; align-items: flex-start; gap: 9px; color: #94808d; font-size: 11px; line-height: 1.75; }
.event-line i { display: block; flex-shrink: 0; width: 4px; height: 4px; margin-top: 7px; border-radius: 50%; background: #b599aa; }
.event-line time { margin-left: auto; padding-left: 10px; color: #ad9ca8; font-size: 10px; white-space: nowrap; }
.event-text { overflow-wrap: anywhere; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 30px 18px 32px; text-align: center; }
.empty-art { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 12px; border: 1px solid #e9e0e6; border-radius: 4px; background: #fcfbfb; color: #b196a8; font-size: 20px; }
.empty-state h3 { color: #927988; font-size: 12px; font-weight: 500; }
.empty-state p { max-width: 340px; margin-top: 7px; color: #b2a0ad; font-size: 10px; line-height: 1.85; }
.empty-state .button, .empty-state .text-button { margin-top: 13px; }
.active-jobs > .empty-state { min-height: 208px; padding: 25px 18px 15px; }
.loading-placeholder { display: grid; place-items: center; min-height: 130px; color: #b1a0ad; font-size: 11px; }
.records-toolbar { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid #e5dfe1; }
.search-wrap { position: relative; flex: 1; max-width: 340px; }
.search-wrap > span { position: absolute; top: 3px; left: 11px; color: #b09bad; font-size: 23px; }
.search-wrap input { min-height: 35px; padding-left: 36px; font-size: 12px; }
.records-toolbar select { width: 130px; min-height: 35px; padding: 7px 10px; font-size: 11px; }
.records-toolbar > .muted { margin-left: auto; font-size: 11px; white-space: nowrap; }
.records-toolbar .button { min-height: 33px; padding: 6px 11px; font-size: 11px; }
.table-footer { padding: 12px; border-top: 1px solid #e5dfe1; background: #fdfbfc; color: #ac96a5; font-size: 10px; text-align: center; }

/* Executors and settings. */
.worker-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 18px; }
.worker-path-panel { margin-bottom: 18px; }
.worker-path-form { padding: 20px 22px; }
.worker-path-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.worker-path-actions .success { color: var(--green); }
.worker-update-help { padding: 0 22px 20px; }
.worker-update-help h3 { font-size: 12px; font-weight: 600; }
.worker-update-help p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.worker-update-help .text-button { margin-top: 8px; font-size: 11px; }
.worker-command-details { margin-top: 12px; }
.worker-command-details summary { color: var(--blue); font-size: 11px; cursor: pointer; }
[data-worker-download][aria-disabled="true"] { opacity: .65; }
.worker-list { min-height: 255px; padding: 0 18px 18px; }
.worker-card { padding: 18px 0; border-top: 1px solid #ebe2e8; }
.worker-card:first-child { border-top: 0; }
.worker-card:last-child { padding-bottom: 0; }
.worker-header { display: flex; align-items: center; gap: 10px; }
.worker-symbol { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fbf6f9; color: #b28c9f; font-size: 20px; }
.worker-header > div:nth-child(2) { flex: 1; min-width: 0; }
.worker-header h3 { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.worker-header p { margin-top: 3px; color: #ae98a7; font-size: 10px; }
.worker-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; padding: 16px 0 0 45px; }
.worker-meta > div { color: #947287; font-size: 11px; overflow-wrap: anywhere; }
.worker-meta dt { margin-bottom: 3px; color: #b59ead; font-size: 10px; }
.worker-meta dd { margin: 0; }
.worker-jobs { margin: 12px 0 0 45px; border-top: 1px solid #eee8eb; }
.worker-job { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; }
.worker-job .text-button { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 11px; text-align: left; }
.worker-upgrade { margin: 0 18px 18px; padding: 13px; border: 1px solid #eee8eb; border-radius: 3px; background: #fcfafb; }
.worker-upgrade h3 { font-size: 12px; font-weight: 600; }
.worker-upgrade p { margin-top: 5px; color: #947287; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.install-steps { margin: 0; padding: 6px 18px 18px; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0 14px; }
.step-no { display: grid; place-items: center; flex-shrink: 0; min-width: 23px; height: 24px; margin-top: 1px; border: 1px solid #e5dfe1; border-radius: 3px; background: #faf4f8; color: #ad7996; font-size: 10px; font-weight: 600; }
.install-steps li > div { min-width: 0; }
.install-steps h3 { font-size: 12px; font-weight: 600; line-height: 2; }
.install-steps p { margin-top: 4px; color: #aa8d9f; font-size: 11px; line-height: 1.85; }
.install-steps .text-button { margin-top: 5px; font-size: 11px; }
.copy-field { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 9px; padding: 5px 7px 5px 10px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fcfbfb; }
.copy-field code { flex: 1; color: #9a738b; font-size: 10px; overflow-wrap: anywhere; }
.copy-field .icon-button { width: 25px; height: 25px; font-size: 15px; }
.plain-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding: 13px 16px; border: 1px solid #e5dfe1; border-radius: 4px; background: #fcfbfb; color: #a18195; font-size: 11px; line-height: 1.8; }
.worker-token-panel { margin: 0 18px 20px; padding-top: 18px; border-top: 1px solid #e5dfe1; }
.worker-token-panel h3 { font-size: 12px; font-weight: 600; }
.worker-token-panel p { margin: 7px 0 10px; color: #aa8b9f; font-size: 11px; line-height: 1.8; }
.worker-token-panel code { user-select: all; }
.token-actions { display: flex; gap: 12px; margin-top: 7px; }
.token-actions .text-button { font-size: 11px; }
.worker-command { max-width: 100%; margin: 10px 0 0; padding: 10px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fcfbfb; color: #a17a95; font-family: Consolas, monospace; font-size: 10px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.settings-form { max-width: 1080px; }
.settings-card { margin-bottom: 18px; padding: 20px 22px; }
.settings-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; padding-bottom: 16px; border-bottom: 1px solid #e5dfe1; }
.settings-icon { display: none; }
.settings-card-heading > div:nth-child(2) { flex: 1; }
.settings-card-heading h2 { color: #674056; font-size: 14px; font-weight: 600; }
.settings-card-heading p { margin-top: 4px; color: #aa899f; font-size: 11px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 24px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; color: #89637b; font-size: 12px; font-weight: 500; }
.form-field input, .form-field textarea { min-height: 37px; font-size: 12px; }
.form-field small { display: block; margin-top: 6px; color: #b396a9; font-size: 10px; line-height: 1.75; }
.field-status { color: #8a807f; font-size: 10px; font-weight: 400; }
.field-hint { margin-top: 20px; padding: 11px 13px; border: 1px solid #eadfe7; border-radius: 3px; background: #fcfbfb; color: #a48499; font-size: 11px; line-height: 1.8; }
.switch-field { display: flex; align-items: center; padding-top: 12px; }
.switch-label { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin: 0 !important; cursor: pointer; }
.switch-label strong { font-size: 12px; font-weight: 500; }
.switch-label small { font-weight: 400; }
.switch { position: relative; display: block; flex-shrink: 0; width: 32px; height: 18px; }
.switch input { position: absolute; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 12px; background: #d5c2cf; pointer-events: none; }
.switch-track:after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; content: ""; }
.switch input:checked + .switch-track { background: #b24b70; }
.switch input:checked + .switch-track:after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid #bb6684; outline-offset: 3px; }
.settings-save { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 14px; }
.settings-save p { font-size: 12px; }
.settings-save .success { color: var(--green); }
.settings-save .error { color: var(--red); }
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 560px; padding: 20px 22px; margin-bottom: 18px; }
.account-profile h2 { margin-top: 5px; font-size: 20px; overflow-wrap: anywhere; }
.account-password-card { max-width: 560px; }
.account-password-card .settings-card-heading > div { flex: 1; }
.account-ownership-note { max-width: 560px; line-height: 1.8; }
.account-password-card .success { color: var(--green); }
.users-table { min-width: 540px; }
.users-table td:first-child, .user-name { overflow-wrap: anywhere; white-space: normal; }

/* Reports and confirmation dialogs. */
.job-dialog { width: min(930px, calc(100vw - 48px)); max-height: calc(100vh - 56px); padding: 0; border: 1px solid #dbc6d4; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 12px 55px #45253b30; }
.job-dialog::backdrop { background: #36212b66; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid #e5dfe1; background: #fff; }
.dialog-head h2 { color: #593449; font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.close-dialog { font-size: 24px; }
.dialog-body { padding: 22px; background: #fcfbfb; }
.detail-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.detail-summary .detail-id { margin-left: auto; color: #b394aa; font-size: 10px; overflow-wrap: anywhere; }
.detail-metadata { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 20px; }
.detail-metadata > div { min-width: 0; }
.detail-metadata dt { margin-bottom: 4px; color: #b594aa; font-size: 10px; }
.detail-metadata dd { margin: 0; color: #956781; font-size: 11px; overflow-wrap: anywhere; }
.detail-section { margin-top: 20px; }
.detail-section h3 { margin-bottom: 11px; color: #6c3e59; font-size: 13px; font-weight: 600; }
.result-table { overflow: hidden; border: 1px solid #e5dfe1; border-radius: 4px; background: #fff; }
.result-table table { table-layout: fixed; }
.result-table th { padding: 11px 14px; background: #f3f1f4; color: #8a7183; font-size: 12px; font-weight: 600; white-space: normal; }
.result-table th:first-child { width: 43%; }
.result-table td { padding: 11px 14px; border-bottom: 1px solid #e5dfe1; color: #80566f; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; vertical-align: top; }
.result-table tr:nth-child(even) td { background: #fdfbfc; }
.result-table td + td, .result-table th + th { border-left: 1px solid #e5dfe1; }
.result-table td:first-child { color: #98748c; }
.artifact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.artifact-actions .button { min-height: 33px; font-size: 11px; }
.result-note { margin-top: 14px; padding: 11px 13px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fcfbfb; color: #a27b95; font-size: 11px; line-height: 1.8; }
.job-error { margin: 17px 0; padding: 12px 14px; border: 1px solid #eac5d2; border-radius: 3px; background: #fcf1f6; color: #af6b87; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 17px 17px; font-size: 11px; }
.timeline li:before { position: absolute; top: 6px; left: 0; z-index: 1; width: 5px; height: 5px; border: 2px solid #fcfbfb; border-radius: 50%; box-sizing: content-box; background: #b58ca5; content: ""; }
.timeline li:after { position: absolute; top: 10px; bottom: -3px; left: 4px; width: 1px; background: #e5dfe1; content: ""; }
.timeline li:last-child:after { display: none; }
.timeline time { flex-shrink: 0; width: 88px; color: #b191a7; font-size: 10px; }
.timeline strong { display: block; margin-bottom: 3px; color: #9a7089; font-weight: 500; }
.timeline p { color: #ad8a9f; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.detail-stage-card { padding: 13px 15px; border: 1px solid #e5dfe1; border-radius: 4px; background: #fff; }
.detail-stage-top { display: flex; justify-content: space-between; color: #a27b94; font-size: 11px; }
.raw-result { max-height: 300px; overflow: auto; padding: 13px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fff; color: #9f7891; font-size: 10px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-disclosure { overflow: hidden; margin-bottom: 7px; border: 1px solid #e5dfe1; border-radius: 3px; background: #fff; }
.report-disclosure summary { padding: 10px 13px; color: #967088; font-size: 12px; cursor: pointer; }
.report-disclosure summary:hover { background: #fcfbfb; }
.report-disclosure .raw-result { margin: 0; border: 0; border-top: 1px solid #eaddE6; border-radius: 0; }
.notice-form { padding: 16px 18px 18px; }
.notice-form > label { display: block; margin-bottom: 7px; color: #9e708a; font-size: 12px; }
.notice-form textarea { font-size: 12px; line-height: 1.8; }
.notice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.notice-toolbar .button { min-height: 33px; font-size: 11px; }
.notice-dialog { max-width: 620px; }
.action-dialog { max-width: 540px; }
.action-dialog .dialog-body > p { line-height: 1.9; overflow-wrap: anywhere; }
.notice-target { margin-top: 7px; color: #b48ca6; font-size: 10px; overflow-wrap: anywhere; }
.notice-preview { margin-top: 17px; padding: 18px; border: 1px solid #e5dfe1; border-radius: 4px; background: #fff; font-size: 12px; line-height: 1.9; }
.notice-preview strong { display: block; margin-bottom: 7px; color: #b1456b; font-weight: 600; }
.notice-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-dialog .form-error { line-height: 1.8; }
.toast-region { position: fixed; right: 24px; bottom: 22px; z-index: 1000; display: flex; flex-direction: column; gap: 9px; max-width: min(450px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 12px 16px; border: 1px solid #744052; border-radius: 4px; background: #603142; color: #f4e3eb; font-size: 12px; line-height: 1.75; box-shadow: 0 4px 18px #45253b18; }
.toast.error { border-color: #a04c67; background: #8c3e58; color: #fff; }
.toast button { margin-left: auto; padding: 0; border: 0; background: none; color: inherit; font-size: 17px; line-height: 1.3; opacity: .75; }
.toast button:hover { opacity: 1; }


/* Neutral copy and rules keep the work area close to the reference system. */
.panel-heading h2, .settings-card-heading h2, .detail-section h3, .dialog-head h2 { color: #403238; }
.integration-copy strong, .worker-meta > div, .form-field label, .detail-metadata dd,
.timeline strong, .report-disclosure summary, .notice-form > label, .result-table td,
.result-table td:first-child, .raw-result, .install-steps h3 { color: #64565e; }
.panel-heading p, .stat-foot, .job-name small, .integration-copy small,
.scheduler-strip, .record-subtitle, .table-date, .event-line, .event-line time,
.empty-state p, .loading-placeholder, .table-footer, .worker-header p, .worker-meta dt,
.install-steps p, .plain-note, .worker-token-panel p, .worker-command, .copy-field code,
.settings-card-heading p, .form-field small, .field-hint, .detail-summary .detail-id,
.detail-metadata dt, .detail-stage-top, .timeline time, .timeline p, .result-note,
.notice-target, .auth-card .auth-note, .auth-card #auth-loading, .page-footer,
.auth-main footer { color: #7d7478; }
.result-table th { background: #f4f5f7; color: #778190; }

/* Login uses the same burgundy and warm white palette. */
.auth-view { display: grid; grid-template-columns: minmax(310px, 34%) 1fr; min-height: 100vh; background: var(--canvas); }
.auth-art { position: relative; display: flex; flex-direction: column; min-height: 650px; overflow: hidden; padding: 35px 36px; background: var(--sidebar); color: #fff; }
.auth-wordmark { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; }
.brand-glyph { display: grid; place-items: center; width: 30px; height: 32px; border: 1px solid #ffffff44; border-radius: 3px; background: #ffffff12; color: #fff; font-size: 21px; font-weight: 700; }
.auth-art-copy { margin-top: 115px; }
.eyebrow { color: #d1a8bb; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; }
.auth-art-copy h1 { margin: 19px 0 16px; font-size: 31px; font-weight: 600; line-height: 1.65; letter-spacing: .7px; }
.auth-art-copy p { max-width: 270px; color: #cfb0bf; font-size: 12px; line-height: 1.9; }
.orbital { display: none; }
.auth-art-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 100px; color: #bc95a9; font-size: 10px; line-height: 1.8; }
.auth-art-foot .small-dot { background: #cda2b7; }
.auth-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 50px 40px 80px; }
.auth-card { width: 100%; max-width: 410px; padding: 31px 32px 28px; border: 1px solid #e5dfe1; border-radius: 5px; background: #fff; }
.auth-card h2 { margin-bottom: 10px; color: #4c303e; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.auth-card > p { font-size: 12px; }
.auth-card form { margin-top: 29px; }
.auth-tabs { display: flex; gap: 3px; margin-top: 22px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); }
.auth-tabs button { flex: 1; min-height: 33px; border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 12px; }
.auth-tabs button.active { background: #fff; color: #783b4c; font-weight: 600; box-shadow: 0 1px 3px #352b2f12; }
.auth-tabs + form { margin-top: 21px; }
.auth-field { margin-bottom: 16px; }
.auth-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.auth-card label { display: block; margin-bottom: 8px; color: #826170; font-size: 12px; font-weight: 600; }
.password-wrap { position: relative; }
.password-wrap input { height: 41px; padding-right: 54px; }
.password-toggle { position: absolute; top: 11px; right: 12px; padding: 0; border: 0; background: none; color: #a47a90; font-size: 11px; }
.login-button { justify-content: space-between; width: 100%; min-height: 40px; margin-top: 18px; }
.auth-card .auth-note { display: flex; align-items: center; gap: 6px; margin-top: 20px; color: #b093a3; font-size: 10px; }
.auth-main footer { position: absolute; bottom: 28px; display: flex; justify-content: space-between; gap: 20px; width: calc(100% - 80px); max-width: 410px; color: #b097a7; font-size: 10px; }
.form-error { margin-top: 10px; color: var(--red); font-size: 12px; }
.auth-card #auth-loading { min-height: 16px; margin-top: 14px; font-size: 10px; }

/* Keep tables scrollable and controls usable on smaller screens. */
@media (min-width: 1500px) {
  #main-content { padding: 36px 48px 0; }
  .topbar { padding-right: 48px; padding-left: 36px; }
}
@media (max-width: 1150px) {
  #main-content { padding: 28px 25px 0; }
  .topbar { padding: 0 25px; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 14px 15px; }
  .overview-grid { grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr); gap: 15px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { gap: 7px; }
  .heading-actions .button { padding: 8px 10px; font-size: 11px; }
  .worker-layout { grid-template-columns: 1fr; }
  .worker-list { min-height: 165px; }
  .install-steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 23px; }
  .integration-copy small { max-width: 175px; }
}
@media (max-width: 900px) {
  .sidebar { width: 178px; padding-right: 10px; padding-left: 10px; }
  .main-shell { margin-left: 178px; }
  .brand { margin-left: 4px; margin-right: 4px; }
  .brand > span:last-child { font-size: 13px; }
  .topbar { padding: 0 20px; }
  #main-content { padding: 25px 20px 0; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-direction: column; align-items: stretch; }
  .heading-actions .button { min-height: 31px; padding: 6px 10px; }
  .overview-grid { grid-template-columns: 1fr; }
  .integration-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .integration-item:nth-child(2) { border-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card > strong { font-size: 30px; }
  .setup-notice { align-items: flex-start; padding: 13px; }
  .records-toolbar { flex-wrap: wrap; padding: 15px; }
  .search-wrap { flex-basis: 55%; max-width: none; }
  .records-toolbar > .muted { flex: 1; margin-left: 0; }
  .settings-card { padding: 19px; }
  .form-grid { gap: 18px; }
  .auth-view { grid-template-columns: 35% 65%; }
  .auth-art { padding: 28px 23px; }
  .auth-wordmark { gap: 7px; font-size: 14px; }
  .auth-wordmark .brand-glyph { width: 25px; height: 28px; font-size: 18px; }
  .auth-art-copy h1 { font-size: 26px; }
  .auth-art-copy p { font-size: 11px; }
  .auth-art-foot { font-size: 9px; }
  .auth-main { padding: 35px 27px 75px; }
  .auth-card { padding: 27px; }
}
@media (max-width: 680px) {
  .sidebar { width: 206px; transform: translateX(-100%); transition: transform .18s; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax #38212d55; }
  .brand { margin: 0 8px 35px; }
  .brand > span:last-child { font-size: 14px; }
  .main-shell { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 20; height: 57px; padding: 0 17px; }
  .mobile-menu { display: inline-grid; width: 25px; margin-left: -5px; font-size: 16px; }
  .breadcrumbs { gap: 9px; }
  .breadcrumbs strong { font-size: 13px; }
  .topbar-date, .topbar-divider { display: none; }
  .topbar-right { gap: 0; }
  .account-chip { max-width: 135px; margin-right: 9px; padding: 4px 6px; font-size: 10px; }
  .account-chip small { display: none; }
  .connection { font-size: 10px; }
  #main-content { padding: 23px 16px 0; }
  .page-heading { gap: 12px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { max-width: 260px; font-size: 11px; }
  .heading-actions .secondary { display: none; }
  .heading-actions .button, .page-heading > .button { min-height: 32px; padding: 7px 9px; font-size: 10px; }
  .page-heading > .button { align-self: center; }
  .setup-notice { flex-wrap: wrap; gap: 9px; padding: 12px; }
  .setup-notice > div:nth-child(2) { flex: 1; min-width: 205px; }
  .setup-notice strong { font-size: 11px; }
  .setup-notice p { font-size: 10px; }
  .setup-notice .text-button { margin-top: -1px; margin-left: 26px; font-size: 10px; }
  .stats-grid { gap: 10px; margin-bottom: 17px; }
  .stat-card { padding: 13px 14px; }
  .stat-label { font-size: 11px; }
  .stat-card > strong { font-size: 27px; }
  .stat-foot { font-size: 9px; }
  .overview-grid { gap: 17px; margin-bottom: 17px; }
  .panel-heading { padding: 14px 15px; }
  .panel-heading h2 { font-size: 12px; }
  .panel-heading p { font-size: 9px; }
  .panel-heading .text-button { font-size: 10px; }
  .panel-heading .tiny { font-size: 9px; }
  .active-jobs { padding-right: 15px; padding-left: 15px; }
  .job-name button { font-size: 11px; }
  .job-name small { font-size: 9px; }
  .badge { padding: 4px 6px; font-size: 9px; }
  .stage-track { font-size: 8px; }
  .integration-list { gap: 0 12px; padding-right: 15px; padding-left: 15px; }
  .integration-copy strong { font-size: 10px; }
  .integration-copy small { max-width: 110px; font-size: 8px; }
  .integration-item .badge { padding: 4px 5px; font-size: 8px; }
  .scheduler-strip { padding: 10px 15px; font-size: 8px; }
  .scheduler-strip .text-button { font-size: 9px; }
  .recent-panel, .events-panel { margin-bottom: 17px; }
  .recent-events { padding: 14px 15px; }
  .event-line { font-size: 10px; }
  .event-line time { font-size: 9px; }
  th:first-child, td:first-child { padding-left: 15px; }
  th:last-child, td:last-child { padding-right: 15px; }
  th, td { padding-right: 12px; padding-left: 12px; }
  .page-footer { gap: 10px; margin-top: 25px; padding: 20px 0; font-size: 9px; }
  .page-footer > span:last-child { font-size: 8px; }
  .records-toolbar { gap: 10px; padding: 14px; }
  .search-wrap { flex-basis: 50%; min-width: 145px; }
  .search-wrap input { font-size: 11px; }
  .records-toolbar select { width: 115px; font-size: 10px; }
  .records-toolbar > .muted, .records-toolbar .button { font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-field.full { grid-column: auto; }
  .settings-card { margin-bottom: 16px; padding: 18px 16px; }
  .settings-card-heading { align-items: flex-start; margin-bottom: 19px; }
  .settings-card-heading h2 { font-size: 13px; }
  .settings-card-heading p { font-size: 10px; }
  .settings-card-heading .badge { font-size: 8px; }
  .form-field label { font-size: 11px; }
  .form-field input, .form-field textarea { font-size: 11px; }
  .switch-field { padding-top: 0; }
  .settings-save { align-items: flex-start; }
  .settings-save p { font-size: 11px; }
  .settings-save .button { min-height: 34px; padding: 7px 11px; font-size: 11px; }
  .install-steps { display: block; padding: 4px 16px 17px; }
  .worker-list { padding: 0 16px 18px; }
  .worker-meta { padding-left: 0; }
  .worker-token-panel { margin: 0 16px 19px; }
  .worker-layout { grid-template-columns: 1fr; }
  .plain-note { padding: 12px 14px; font-size: 10px; }
  .job-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 24px); }
  .dialog-head { padding: 16px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-body { padding: 18px 16px; }
  .detail-metadata { grid-template-columns: 1fr 1fr; gap: 14px; }
  .detail-summary .detail-id { width: 100%; margin-left: 0; }
  .result-table th:first-child { width: 47%; }
  .result-table th, .result-table td { padding: 10px; font-size: 11px; }
  .timeline li { gap: 9px; }
  .timeline time { width: 73px; font-size: 9px; }
  .timeline p { font-size: 10px; }
  .toast-region { right: 15px; bottom: 15px; }
  .toast { padding: 11px 13px; font-size: 11px; }
  .notice-form { padding: 14px 15px 17px; }
  .notice-toolbar .button { padding: 7px 9px; font-size: 10px; }
  .auth-view { display: block; }
  .auth-art { display: none; }
  .auth-main { min-height: 100svh; padding: 30px 23px 80px; border-top: 8px solid var(--sidebar); }
  .auth-card { padding: 28px 23px; }
  .auth-card h2 { font-size: 24px; }
  .auth-main footer { width: calc(100% - 46px); font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.review-live-progress { display: grid; gap: 6px; padding: 12px 14px; margin: 12px 0; border-radius: 10px; background: var(--blue-light); color: var(--muted); font-size: 12px; line-height: 1.6; }
.review-live-progress strong { color: var(--blue); font-size: 13px; }
.review-live-progress small { color: var(--muted); }
