.creation-tags { min-width: 0; display: grid; gap: 7px; }
.creation-tags > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #34443e; font-size: 13px; }
.creation-tags > header div { display: flex; align-items: baseline; gap: 8px; }
.creation-tags > header span { color: #7b8782; font-size: 11px; font-weight: 500; }
.creation-tags > header small { color: #0c7159; font-size: 11px; font-weight: 700; }
.creation-tag-picker { position: relative; min-width: 0; }
.creation-tag-control {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #c8d5cf;
  border-radius: 6px;
  background: #fff;
  padding: 6px 38px 6px 7px;
  cursor: text;
}
.creation-tag-picker.is-open .creation-tag-control,
.creation-tag-control:focus-within { border-color: #16836a; box-shadow: 0 0 0 3px rgba(22, 131, 106, 0.12); }
.creation-tag-control input {
  width: auto;
  min-width: 160px;
  min-height: 30px;
  flex: 1 1 180px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 4px;
  box-shadow: none;
}
.creation-tag-control input:focus { border: 0; box-shadow: none; outline: none; }
.creation-tag-search-icon { position: absolute; top: 15px; right: 12px; color: #71807a; pointer-events: none; }
.creation-tag-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #91bcae;
  border-radius: 6px;
  background: #e9f5f0;
  color: #0c7159;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
}
.creation-tag-chip:hover { background: #dcefe7; }
.creation-tag-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 286px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow-y: auto;
  border: 1px solid #becdc7;
  border-radius: 7px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(31, 49, 42, 0.16);
}
.creation-tag-menu-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 4px 6px 7px; color: #71807a; font-size: 10px; }
.creation-tag-menu > button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #f7f9f8;
  color: #46554f;
  padding: 0 8px;
  font-size: 11px;
  text-align: left;
}
.creation-tag-menu > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creation-tag-menu > button:hover { border-color: #bbd3ca; background: #edf6f2; }
.creation-tag-menu > button[aria-selected="true"] { border-color: #91bcae; background: #e9f5f0; color: #0c7159; font-weight: 700; }
.creation-tag-menu > button:disabled { cursor: not-allowed; opacity: 0.45; }
.creation-tag-menu > p { grid-column: 1 / -1; margin: 20px 0; color: #71807a; text-align: center; font-size: 12px; }

@media (max-width: 720px) {
  .creation-tag-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root {
  color: #192420;
  background: #f5f7f6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #0c7159;
  background: #0c7159;
  color: #fff;
  font-weight: 700;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.task-create-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgb(22 31 28 / 45%);
}

.task-create-dialog {
  width: min(1180px, calc(100vw - 56px));
  height: min(790px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  border: 1px solid #bec9c4;
  background: #fff;
  box-shadow: 0 18px 54px rgb(20 31 27 / 20%);
}

.task-create-dialog > header,
.task-create-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #dfe5e2;
}

.task-create-dialog > header div { display: grid; gap: 3px; }
.task-create-dialog h2 { margin: 0; font-size: 17px; }
.task-create-dialog header span,
.task-create-dialog footer span { color: #66736f; font-size: 12px; }
.task-create-dialog > footer { border-top: 1px solid #dfe5e2; border-bottom: 0; }

.reference-update-dialog {
  width: min(1050px, calc(100vw - 56px));
  max-height: min(820px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #bec9c4;
  background: #fff;
  box-shadow: 0 18px 54px rgb(20 31 27 / 20%);
}

.reference-update-dialog > header,
.reference-update-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #dfe5e2;
}

.reference-update-dialog > header > div { display: grid; gap: 3px; }
.reference-update-dialog h2 { margin: 0; font-size: 17px; }
.reference-update-dialog header span { color: #66736f; font-size: 12px; }
.reference-update-dialog > footer { border-top: 1px solid #dfe5e2; border-bottom: 0; }
.reference-update-dialog > footer,
.reference-update-dialog > footer > div { display: flex; gap: 8px; }
.reference-update-dialog button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #c7d1cc; background: #fff; color: #30423b; padding: 0 11px; }
.reference-update-dialog button.primary-action { border-color: #0c7159; background: #0c7159; color: #fff; }
.reference-update-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #596861; }
.reference-update-summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-left: 4px solid #7d8c86; background: #f4f6f5; }
.reference-update-summary > div { display: grid; gap: 4px; }
.reference-update-summary span, .reference-update-summary small { color: #68766f; font-size: 11px; }
.reference-update-summary.is-positive { border-left-color: #0c7159; background: #edf8f3; }
.reference-update-summary.is-warning { border-left-color: #b67a1d; background: #fff8e8; }
.reference-update-summary.is-blocked { border-left-color: #b94848; background: #fff0f0; }
.reference-update-chapters { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dfe6e2; }
.reference-update-chapters > div { min-width: 0; display: grid; gap: 5px; padding: 14px 18px; border-right: 1px solid #dfe6e2; }
.reference-update-chapters > div:last-child { border-right: 0; }
.reference-update-chapters span, .reference-update-chapters small { overflow-wrap: anywhere; color: #68766f; font-size: 11px; }
.reference-update-chapters strong { font-size: 18px; }
.reference-update-checks { min-height: 0; overflow: auto; }
.reference-update-checks > header,
.reference-update-checks > article { display: grid; grid-template-columns: minmax(150px,.65fr) minmax(180px,1fr) minmax(180px,1fr) minmax(220px,1.2fr); gap: 12px; align-items: center; padding: 9px 14px; }
.reference-update-checks > header { position: sticky; top: 0; z-index: 1; background: #edf2ef; color: #5d6a64; font-size: 11px; font-weight: 700; }
.reference-update-checks > article { min-height: 54px; border-bottom: 1px solid #e5eae7; font-size: 11px; }
.reference-update-checks article > div { display: flex; align-items: center; gap: 7px; color: #0c7159; }
.reference-update-checks article > span, .reference-update-checks article > small { overflow-wrap: anywhere; color: #5f6d67; }
.reference-update-checks article.is-failed { background: #fffaf0; }
.reference-update-checks article.is-failed > div { color: #aa6418; }
.reference-update-checks article.severity-blocking { background: #fff0f0; }
.reference-update-checks article.severity-blocking > div { color: #b33f3f; }
.reference-update-audit-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 18px; border-top: 1px solid #dce7e2; background: #f1f7f4; color: #36594d; font-size: 11px; line-height: 1.5; }

.task-create-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(200px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px 18px;
  background: #f4f7f5;
}

.task-create-search label { display: grid; gap: 5px; color: #55625d; font-size: 12px; }
.task-create-search input { height: 36px; padding: 0 10px; border: 1px solid #c7d1cc; background: #fff; }
.task-create-search button { height: 36px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #0c7159; background: #fff; color: #0c7159; font-weight: 700; }

.task-create-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(460px, 1.1fr);
  border-top: 1px solid #e2e7e4;
}

.source-result-list { min-height: 0; overflow: auto; border-right: 1px solid #dde4e0; }
.source-result-list > header,
.source-result-list > button { display: grid; grid-template-columns: 64px minmax(180px, 1fr) minmax(130px, .7fr); gap: 10px; align-items: center; width: 100%; padding: 11px 14px; text-align: left; }
.source-result-list > header { position: sticky; top: 0; z-index: 1; background: #edf2ef; color: #5c6863; font-size: 11px; font-weight: 700; }
.source-result-list > button { border: 0; border-top: 1px solid #e4e9e6; background: #fff; color: #26312d; }
.source-result-list > button:hover,
.source-result-list > button.is-selected { background: #eaf6f1; box-shadow: inset 3px 0 #0c7159; }
.source-result-list > button > strong { color: #0c7159; font-size: 15px; }
.source-result-list > button span { display: grid; gap: 4px; min-width: 0; }
.source-result-list b { overflow-wrap: anywhere; font-size: 12px; }
.source-result-list small { overflow-wrap: anywhere; color: #718079; font-size: 10px; }

.source-preview { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.source-preview > header { display: grid; gap: 4px; padding: 11px 14px; border-bottom: 1px solid #e2e7e4; }
.source-preview > header strong { font-size: 13px; }
.source-preview > header span { color: #718079; font-size: 11px; }
.source-preview > div { overflow: auto; padding: 0 18px 20px; }
.source-preview article,
.downloaded-preview-list article { padding: 14px 0; border-bottom: 1px solid #e6ebe8; }
.source-preview h3,
.downloaded-preview-list h4 { margin: 0 0 9px; font-size: 13px; }
.source-preview p,
.downloaded-preview-list p { margin: 0; color: #39453f; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }

.source-quality-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid #e2e7e4; }
.source-quality-panel h3 { margin: 0 0 3px; font-size: 14px; }
.source-quality-panel header span { color: #68756f; font-size: 11px; }
.source-quality-panel header > .quality-pass { padding: 5px 8px; border: 1px solid #83bba6; color: #0c7159; font-weight: 700; }
.source-quality-panel header > .quality-blocked { padding: 5px 8px; border: 1px solid #d68b8b; color: #a83c3c; font-weight: 700; }
.source-quality-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #e2e7e4; }
.source-quality-metrics > div { min-width: 0; display: grid; gap: 5px; padding: 12px 14px; border-right: 1px solid #e5eae7; }
.source-quality-metrics span,
.source-quality-metrics small { overflow-wrap: anywhere; color: #6b7872; font-size: 10px; }
.source-quality-metrics strong { overflow-wrap: anywhere; font-size: 13px; }
.downloaded-preview-list { max-height: 520px; overflow: auto; padding: 0 18px 18px; }

.task-center-app {
  min-width: 1080px;
  height: 100vh;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  background: #f5f7f6;
}

.admin-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.admin-navigation {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid #d9e0dd;
  background: #fff;
}

.admin-navigation button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #52615b;
  padding: 0 11px;
  text-align: left;
}

.admin-navigation button:hover { background: #f1f5f3; }
.admin-navigation button.is-active { background: #e5f2ed; color: #087058; font-weight: 750; }
.admin-navigation small { color: #88938e; font-size: 10px; }

.taxonomy-workspace {
  min-width: 0;
  overflow: auto;
  padding: 22px 24px 36px;
  background: #f5f7f8;
}

.taxonomy-tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid #ccd6d1; }
.taxonomy-tabs button { min-height: 38px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5c6963; padding: 0 16px; }
.taxonomy-tabs button.is-active { border-bottom-color: #0c7159; color: #0c7159; font-weight: 750; }
.taxonomy-category-layout { min-height: 600px; display: grid; grid-template-columns: minmax(300px, .65fr) minmax(460px, 1.35fr); gap: 14px; }
.taxonomy-list, .taxonomy-tags-panel { border: 1px solid #d7dfdb; background: #fff; }
.taxonomy-list > header, .taxonomy-tags-panel > header { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-bottom: 1px solid #e0e6e3; }
.taxonomy-list > header span, .taxonomy-tags-panel > header span { color: #73807a; font-size: 11px; }
.taxonomy-list > div:not(.taxonomy-create-row) { min-height: 54px; display: grid; grid-template-columns: minmax(0,1fr) 32px 48px; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid #e8ecea; }
.taxonomy-list > div.is-selected { box-shadow: inset 3px 0 #0c7159; background: #edf7f3; }
.taxonomy-list > div > button:first-child, .taxonomy-list > div > span { min-width: 0; display: grid; gap: 4px; border: 0; background: transparent; color: #24312c; padding: 0; text-align: left; }
.taxonomy-list small { color: #74817b; font-size: 10px; }
.taxonomy-list > div > button:not(:first-child), .taxonomy-tag-grid button { min-height: 28px; border: 1px solid #d1dad6; background: #fff; color: #52615b; font-size: 10px; padding: 0 6px; }
.taxonomy-add-primary { min-height: 40px; display: flex; align-items: center; gap: 7px; margin: 10px; border: 1px dashed #9ab8ac; background: #fff; color: #0c7159; padding: 0 10px; }
.taxonomy-create-row { display: grid; grid-template-columns: minmax(180px,1fr) 100px auto; gap: 9px; padding: 12px; border-top: 1px solid #dfe6e2; background: #f7f9f8; }
.taxonomy-create-row input { min-width: 0; height: 35px; border: 1px solid #cbd6d1; padding: 0 9px; }
.taxonomy-tags-panel > header > div { display: flex; align-items: center; gap: 8px; }
.taxonomy-tag-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 1px; background: #e2e8e5; }
.taxonomy-tag-grid > div { min-height: 44px; display: grid; grid-template-columns: minmax(0,1fr) 30px 46px; align-items: center; gap: 5px; background: #fff; padding: 6px 9px; }
.taxonomy-tag-grid > div.is-inactive span { color: #8a9490; text-decoration: line-through; }
.taxonomy-tag-grid span { overflow-wrap: anywhere; font-size: 12px; }
.taxonomy-editor-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; background: rgb(21 31 27 / 42%); }
.taxonomy-editor { width: 400px; display: grid; gap: 14px; border: 1px solid #bfcac5; background: #fff; padding: 16px; box-shadow: 0 18px 50px rgb(20 29 25 / 20%); }
.taxonomy-editor header { display: flex; align-items: center; justify-content: space-between; }
.taxonomy-editor header button { width: 30px; height: 30px; border: 1px solid #d3dcd8; background: #fff; }
.taxonomy-editor label { display: grid; gap: 6px; color: #56635e; font-size: 12px; }
.taxonomy-editor input { height: 36px; border: 1px solid #cbd5d0; padding: 0 9px; }
.taxonomy-editor footer { display: flex; justify-content: flex-end; }
.model-workspace { min-width: 0; overflow: auto; padding: 22px 24px 40px; background: #f5f7f8; }
.model-workspace .workspace-header p { margin: 0; color: #68756f; font-size: 12px; }
.icon-action { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ccd6d1; background: #fff; color: #52615b; }
.model-tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid #ccd6d1; }
.model-tabs button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5d6b65; }
.model-tabs button.is-active { border-bottom-color: #0c7159; color: #0c7159; font-weight: 750; }
.model-message { margin-bottom: 12px; padding: 10px 12px; border-left: 3px solid #0c7159; background: #e8f4ef; color: #185b49; font-size: 12px; }
.model-message.is-error { border-left-color: #bd4343; background: #faeded; color: #8e3030; }
.model-grid { display: grid; grid-template-columns: minmax(600px, 1.45fr) minmax(350px, .75fr); gap: 14px; align-items: start; }
.model-list-panel, .model-form-stack form, .standalone-model-form, .route-table { border: 1px solid #d4ddd9; background: #fff; }
.model-list-panel > header, .route-table > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #e0e6e3; }
.model-list-panel > header span, .route-table header span { color: #74817b; font-size: 11px; }
.model-list-panel > article { min-height: 82px; display: grid; grid-template-columns: minmax(250px,1fr) minmax(180px,.65fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #e6ebe8; }
.model-list-panel article > div:first-child, .model-state { min-width: 0; display: grid; gap: 4px; }
.model-list-panel article span, .model-list-panel article small { overflow-wrap: anywhere; color: #68756f; font-size: 11px; }
.model-list-panel article button, .row-actions button { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c9d3ce; background: #fff; color: #46544e; padding: 0 9px; }
.model-state b { width: fit-content; font-size: 10px; }
.state-enabled { color: #087058; }.state-draft { color: #9a6d12; }.state-disabled, .test-failed { color: #a23e3e !important; }
.row-actions { display: flex !important; flex-direction: row; gap: 6px !important; }
.model-form-stack { display: grid; gap: 14px; }
.model-form-stack form, .standalone-model-form { display: grid; gap: 12px; padding: 14px; }
.model-form-stack form header, .standalone-model-form header { display: flex; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid #e4e9e6; }
.model-form-stack label, .standalone-model-form label, .route-table label { min-width: 0; display: grid; gap: 5px; color: #58665f; font-size: 11px; }
.model-form-stack input, .model-form-stack select, .standalone-model-form input, .standalone-model-form select, .standalone-model-form textarea, .route-table input, .route-table select { width: 100%; min-width: 0; min-height: 35px; border: 1px solid #c9d4cf; background: #fff; padding: 7px 9px; color: #24312c; }
.standalone-model-form textarea { resize: vertical; line-height: 1.55; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.form-pair { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.provider-console { min-height: 620px; display: grid; grid-template-columns: 290px minmax(0, 1fr); border: 1px solid #d4ddd9; background: #fff; }
.provider-rail { min-width: 0; border-right: 1px solid #d9e1dd; background: #f8faf9; }
.provider-rail > header { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #dfe6e2; }
.provider-rail > header span { color: #718079; font-size: 11px; }
.provider-rail > button { width: 100%; min-height: 76px; display: grid; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid #e1e7e4; background: transparent; color: #26332e; padding: 10px 12px; text-align: left; }
.provider-rail > button:hover { background: #f0f5f2; }
.provider-rail > button.is-selected { box-shadow: inset 3px 0 #0c7159; background: #eaf5f0; }
.provider-rail button > span { min-width: 0; display: grid; gap: 5px; }
.provider-rail button > span:nth-child(2) { justify-items: end; }
.provider-rail small { overflow-wrap: anywhere; color: #708079; font-size: 10px; }
.provider-rail b { font-size: 9px; }
.provider-detail { min-width: 0; }
.provider-detail > header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid #dfe6e2; }
.provider-detail > header > div:first-child { min-width: 0; display: grid; gap: 4px; }
.provider-detail > header span, .provider-detail > header small { overflow-wrap: anywhere; color: #6b7872; font-size: 10px; }
.provider-detail h2 { margin: 0; font-size: 18px; }
.provider-detail .factory-actions button { min-height: 32px; padding: 0 9px; }
.provider-credential { min-height: 70px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #dfe6e2; }
.provider-credential.is-configured { background: #eef7f3; color: #265c49; }
.provider-credential.is-missing { background: #fff8e8; color: #815b1b; }
.provider-credential > div { display: grid; gap: 4px; }
.provider-credential span { color: inherit; opacity: .78; font-size: 11px; }
.provider-credential button { min-height: 31px; border: 1px solid currentColor; background: #fff; color: inherit; padding: 0 9px; }
.provider-models > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-bottom: 1px solid #dfe6e2; }
.provider-models > header > div { display: grid; gap: 4px; }
.provider-models > header span { color: #6c7973; font-size: 11px; }
.provider-model-table > header, .provider-model-table > article { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(220px,1fr) minmax(150px,.65fr) minmax(116px,auto); align-items: center; gap: 12px; padding: 10px 14px; }
.provider-model-table > header { min-height: 36px; background: #edf2ef; color: #5c6963; font-size: 11px; font-weight: 700; }
.provider-model-table > article { min-height: 68px; border-bottom: 1px solid #e4e9e6; }
.provider-model-table article > div:not(.row-actions) { min-width: 0; display: grid; gap: 4px; }
.provider-model-table .row-actions { justify-content: flex-end; white-space: nowrap; }
.provider-model-table small { overflow-wrap: anywhere; color: #6d7974; font-size: 10px; }
.provider-model-table code { max-height: 48px; overflow: auto; color: #47554f; font-size: 10px; white-space: pre-wrap; }
.provider-detail-empty { min-height: 620px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #69766f; }
.provider-detail-empty span { font-size: 11px; }
.model-dialog-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(21 31 27 / 42%); }
.model-dialog { width: min(560px, calc(100vw - 48px)); max-height: calc(100vh - 48px); display: grid; gap: 13px; overflow: auto; border: 1px solid #bdc9c3; background: #fff; padding: 15px; box-shadow: 0 18px 50px rgb(20 29 25 / 20%); }
.model-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #e0e6e3; }
.model-dialog > header > div { display: grid; gap: 4px; }
.model-dialog > header span { color: #6e7b75; font-size: 11px; }
.model-dialog > header button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d0d9d5; background: #fff; }
.model-dialog label { min-width: 0; display: grid; gap: 5px; color: #56645e; font-size: 11px; }
.model-dialog input, .model-dialog select, .model-dialog textarea { width: 100%; min-width: 0; min-height: 36px; border: 1px solid #c8d3ce; background: #fff; color: #24312c; padding: 7px 9px; }
.model-dialog textarea { resize: vertical; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.model-dialog > footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 11px; border-top: 1px solid #e1e7e4; }
.model-dialog > footer button { min-height: 34px; border: 1px solid #c8d3ce; background: #fff; color: #33443d; padding: 0 12px; }
.model-dialog > footer .primary-action { border-color: #0c7159; background: #0c7159; color: #fff; }
.model-dialog-credential { display: grid; gap: 11px; padding: 12px; border: 1px solid #d6e1dc; background: #f2f7f5; }
.model-dialog-credential > header { display: flex; align-items: center; gap: 7px; color: #315b4c; }
.model-dialog-scope { min-height: 40px; display: grid; grid-template-columns: 20px auto minmax(0,1fr); align-items: center; gap: 8px; padding: 0 10px; background: #edf5f1; color: #3d584e; font-size: 11px; }
.model-dialog-scope strong { justify-self: end; }
.route-table > header div { display: grid; gap: 4px; }
.route-table > article { min-height: 78px; display: grid; grid-template-columns: minmax(190px,.6fr) minmax(220px,.8fr) minmax(240px,1fr) auto; align-items: end; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e5eae7; }
.route-table article > div { align-self: center; display: grid; gap: 5px; }
.route-table article > div span { color: #6d7974; font-size: 11px; }
.task-model-panel { margin: 14px 0; border: 1px solid #d5ded9; background: #fff; }
.task-manuscript-export { margin: 14px 0; display: grid; grid-template-columns: minmax(300px,1fr) 150px auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid #c8ddd3; background: #f3f8f5; }
.task-manuscript-export > div { display: grid; gap: 5px; }
.task-manuscript-export > div span, .task-manuscript-export label { color: #596b63; font-size: 11px; line-height: 1.5; }
.task-manuscript-export label { display: grid; gap: 5px; }
.task-manuscript-export input { height: 35px; border: 1px solid #b9cbc2; background: #fff; padding: 0 9px; }
.task-manuscript-export button { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.task-manuscript-export .export-complete { grid-column: 1 / -1; color: #176b50; font-size: 11px; }
.task-model-panel > header { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid #e2e7e4; }
.task-model-panel > header div { display: grid; gap: 4px; }.task-model-panel header span { color: #6d7974; font-size: 11px; }
.task-model-circuit { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #e2e7e4; background: #f3f8f5; color: #315a4b; font-size: 12px; }
.task-model-circuit.is-open { background: #fff2f0; color: #a33d32; }
.task-model-circuit.is-half_open { background: #fff8e8; color: #865e17; }
.task-model-switch { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(340px,1.3fr) auto; align-items: end; gap: 10px; padding: 12px 14px; background: #f6f8f7; border-bottom: 1px solid #e2e7e4; }
.task-model-switch label { display: grid; gap: 5px; color: #596760; font-size: 11px; }
.task-model-switch select, .task-model-switch input { min-width: 0; height: 35px; border: 1px solid #c8d3ce; background: #fff; padding: 0 9px; }
.task-model-usage-list > article { min-height: 58px; display: grid; grid-template-columns: minmax(260px,1fr) minmax(120px,.35fr) minmax(180px,.5fr); align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #e8ecea; }
.task-model-usage-list article > div { min-width: 0; display: grid; gap: 3px; }.task-model-usage-list span { overflow-wrap: anywhere; color: #718079; font-size: 10px; }
.task-model-timeline { padding: 10px 14px 14px; background: #fafbfa; }.task-model-timeline article { display: grid; grid-template-columns: 150px minmax(240px,.8fr) minmax(300px,1.2fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid #e6ebe8; font-size: 11px; }.task-model-timeline time, .task-model-timeline span { color: #6d7974; }

@media (max-width: 760px) {
  .task-manuscript-export { grid-template-columns: 1fr; align-items: stretch; }
  .task-manuscript-export .export-complete { grid-column: 1; }
}

.task-center-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #d9e0dd;
  background: #fff;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0c7159;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.brand-group strong {
  display: block;
  font-size: 16px;
  line-height: 18px;
}

.brand-group span {
  color: #66736f;
  font-size: 12px;
}

.task-center-workspace {
  min-width: 0;
  overflow: auto;
  padding: 22px 24px 36px;
  background: #f5f7f8;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.workspace-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.workspace-header span {
  color: #66736f;
  font-size: 13px;
}

.task-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  border: 1px solid #d9dfe3;
  background: #fff;
}

.task-metrics > div {
  display: grid;
  gap: 6px;
  padding: 15px 18px;
  border-right: 1px solid #e4e8eb;
}

.task-metrics > div:last-child {
  border-right: 0;
}

.task-metrics span {
  color: #68737c;
  font-size: 12px;
}

.task-metrics strong {
  color: #17212a;
  font-size: 21px;
}

.task-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0 10px;
}

.task-toolbar label {
  display: grid;
  gap: 5px;
  color: #606c75;
  font-size: 12px;
}

.task-toolbar select {
  min-width: 150px;
  height: 34px;
  border: 1px solid #cfd6dc;
  background: #fff;
  padding: 0 8px;
}

.task-toolbar > span {
  margin-left: auto;
  padding-bottom: 8px;
  color: #68737c;
  font-size: 12px;
}

.task-table {
  border: 1px solid #d9dfe3;
  background: #fff;
}

.task-table > header,
.task-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(170px, 0.8fr) minmax(136px, auto);
  column-gap: 14px;
  align-items: center;
}

.task-table > header > span:last-child {
  text-align: right;
}

.task-table > header {
  min-height: 38px;
  padding: 0 14px;
  background: #edf1f3;
  color: #5c6871;
  font-size: 12px;
  font-weight: 700;
}

.task-row {
  min-height: 96px;
  padding: 12px 14px;
  border-top: 1px solid #e5e9ec;
  border-left: 3px solid #52946b;
}

.task-row.status-failed {
  border-left-color: #c84f4f;
}

.task-row.status-paused {
  border-left-color: #c58b32;
}

.task-row.status-cancelled {
  border-left-color: #8b959d;
}

.task-row > div:not(.factory-actions) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.task-row strong {
  overflow-wrap: anywhere;
  color: #202b34;
  font-size: 13px;
}

.task-row span,
.task-row small {
  overflow-wrap: anywhere;
  color: #66727b;
  font-size: 11px;
}

.task-row progress {
  width: 100%;
  height: 7px;
}

.task-row .task-error {
  color: #b13e3e;
}

.task-detail-workspace {
  margin-top: 16px;
  border: 1px solid #d9dfe3;
  background: #fff;
}

.task-detail-header {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e7ea;
}

.task-detail-header > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-detail-header h2 {
  margin: 0;
  font-size: 16px;
}

.task-detail-header span {
  overflow-wrap: anywhere;
  color: #68737c;
  font-size: 11px;
}

.task-checkpoint-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid #dce8e2;
  background: #f0f8f4;
  color: #285f4b;
}

.task-checkpoint-note div {
  display: grid;
  gap: 3px;
}

.task-checkpoint-note strong {
  font-size: 12px;
}

.task-checkpoint-note span {
  font-size: 11px;
  line-height: 1.5;
}

.task-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  border-bottom: 1px solid #e2e7ea;
}

.task-detail-metrics > div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 14px;
  border-right: 1px solid #e2e7ea;
}

.task-detail-metrics > div:last-child {
  border-right: 0;
}

.task-detail-metrics span,
.task-detail-metrics small {
  color: #68737c;
  font-size: 11px;
}

.task-detail-metrics strong {
  font-size: 15px;
}

.task-result-toolbar {
  min-height: 58px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e7ea;
  background: #f8fafb;
}

.task-result-toolbar label {
  display: grid;
  gap: 4px;
  color: #68737c;
  font-size: 11px;
}

.task-result-toolbar input,
.task-result-toolbar select {
  width: 150px;
  height: 32px;
  border: 1px solid #cfd6dc;
  background: #fff;
  padding: 0 8px;
}

.task-result-toolbar button {
  width: 32px;
  height: 32px;
}

.task-result-toolbar > span {
  margin-left: auto;
  padding-bottom: 8px;
  color: #68737c;
  font-size: 11px;
}

.task-result-layout {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(380px, 1.05fr);
}

.task-result-list {
  min-width: 0;
  border-right: 1px solid #e2e7ea;
}

.task-result-list > header,
.task-result-list > article {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(155px, 1fr) 86px 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.task-result-list > header {
  min-height: 34px;
  background: #edf1f3;
  color: #5c6871;
  font-size: 11px;
  font-weight: 700;
}

.task-result-list > article {
  min-height: 62px;
  border-bottom: 1px solid #e8ecee;
  font-size: 11px;
}

.task-result-list > article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-result-list > article strong,
.task-result-list > article small,
.task-result-list > article span {
  overflow-wrap: anywhere;
}

.task-result-list > article small {
  color: #68737c;
}

.task-result-list > article .task-error {
  grid-column: 1 / -1;
  padding-bottom: 7px;
  color: #b13e3e;
}

.task-result-list > footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid #e2e7ea;
}

.task-result-list > footer button {
  min-width: 72px;
  height: 28px;
}

.task-result-list > footer span {
  color: #68737c;
  font-size: 11px;
}

.result-status {
  font-weight: 700;
}

.result-status.status-completed {
  color: #18704f;
}

.result-status.status-failed {
  color: #b13e3e;
}

.result-status.status-pending,
.result-status.status-running {
  color: #98651e;
}

.task-result-preview {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fbfcfc;
}

.task-result-preview > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #e2e7ea;
}

.task-result-preview > header div {
  display: grid;
  gap: 3px;
}

.task-result-preview > header span {
  color: #68737c;
  font-size: 11px;
}

.task-result-preview .markdown-body {
  max-height: 620px;
  margin: 0;
  overflow: auto;
  padding: 18px 20px;
  color: #27332f;
  font-size: 13px;
  line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 1.1em 0 0.45em;
  line-height: 1.35;
}

.markdown-body h1 {
  font-size: 1.35rem;
}

.markdown-body h2 {
  font-size: 1.2rem;
}

.markdown-body h3 {
  font-size: 1.05rem;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0.55em 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.35em;
}

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #eef2f1;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.markdown-body pre {
  overflow: auto;
  padding: 12px 14px;
  border-radius: 6px;
  background: #eef2f1;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
}

.markdown-body blockquote {
  margin: 0.7em 0;
  padding: 0.2em 0 0.2em 12px;
  border-left: 3px solid #9bb5ab;
  color: #4a5b55;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8em 0;
  font-size: 12px;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #d5ddd9;
  padding: 6px 8px;
  text-align: left;
}

.task-result-preview > .factory-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 360px;
  color: #75817c;
}

.factory-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #0c7159;
  background: #fff;
  color: #3f5049;
  font-size: 12px;
}

.factory-message.is-error {
  border-left-color: #c84f4f;
  color: #8f3434;
}

.seal-result-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: start;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #b9d9cf;
  border-radius: 10px;
  background: #f3fbf7;
  color: #27443a;
}

.seal-result-banner > svg {
  margin-top: 2px;
  color: #0c7159;
}

.seal-result-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.seal-result-banner p,
.seal-result-banner li {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
}

.seal-result-banner ol {
  margin: 8px 0 10px;
  padding-left: 18px;
}

.seal-result-banner__meta {
  color: #4d6a60;
}

.seal-result-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.seal-result-banner__actions a,
.seal-result-banner__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.seal-result-banner__actions a {
  border: 0;
  background: #0c7159;
  color: #fff;
}

.seal-result-banner__actions button {
  border: 1px solid #b7ccc4;
  background: #fff;
  color: #315046;
}

.seal-result-banner > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #b7ccc4;
  border-radius: 7px;
  background: #fff;
  color: #315046;
  cursor: pointer;
}

.factory-actions {
  display: flex;
  gap: 4px;
}

.task-row .factory-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
  max-width: 100%;
}

.task-row .factory-actions button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  flex-shrink: 0;
}

.task-row .factory-actions button.task-update-action {
  width: auto;
  padding: 0 8px;
  border-color: #81ae9d;
  color: #0c7159;
}

.task-update-action span { font-size: 10px; font-weight: 700; }

.factory-actions button,
.workspace-header > button,
.task-result-toolbar button,
.task-result-list > footer button,
.task-result-preview > header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid #c8d2ce;
  background: #fff;
  color: #263c35;
  cursor: pointer;
}

.task-detail-header .factory-actions button {
  min-width: 30px;
  padding: 0 9px;
}

.factory-empty {
  padding: 24px;
  color: #6c7773;
  font-size: 12px;
  text-align: center;
}

.secondary-action,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid #cbd8d3;
  background: #fff;
  color: #263430;
  padding: 0 10px;
}

.secondary-action:disabled,
.primary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-screen .primary-action {
  width: 100%;
  height: 40px;
  border: 0;
  background: #0c7159;
  color: #fff;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(12, 113, 89, 0.12), transparent 40%),
    linear-gradient(180deg, #f7faf8, #eef3f1);
}

.login-screen form {
  width: min(100% - 32px, 380px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid #d5ddd9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 42, 36, 0.06);
}

.login-screen header,
.login-screen header > div,
.login-screen label {
  display: flex;
}

.login-screen header {
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.login-screen header > div,
.login-screen label {
  flex-direction: column;
  gap: 6px;
}

.login-screen header strong {
  font-size: 18px;
}

.login-screen header span,
.login-screen label,
.login-screen p {
  color: #5d6b66;
  font-size: 13px;
}

.login-screen input {
  height: 40px;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  padding: 0 12px;
}

.login-help {
  display: grid;
  gap: 4px;
  color: #66736f;
  font-size: 12px;
}

.login-screen p {
  margin: 0;
  color: #b13e3e;
}

.dialog-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(19, 29, 26, 0.36);
}

.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #cad6d2;
  border-radius: 10px;
  background: #fff;
  padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(18, 32, 27, 0.22);
}

.confirm-dialog h2 {
  margin: 0;
  color: #1f2c28;
  font-size: 16px;
}

.confirm-dialog p {
  margin: 12px 0 18px;
  color: #53615d;
  font-size: 13px;
  line-height: 1.65;
}

.confirm-dialog__error {
  margin: -8px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e4b4b4;
  background: #fff5f5;
  color: #9a3030;
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

.confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-dialog__content {
  margin: -6px 0 18px;
}

.deconstruction-concurrency-control {
  display: grid;
  gap: 10px;
  border: 1px solid #d8e1dd;
  border-radius: 7px;
  background: #f7faf8;
  padding: 12px;
}

.deconstruction-concurrency-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.deconstruction-concurrency-control output {
  min-width: 32px;
  color: #0c7159;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.deconstruction-concurrency-control input { width: 100%; accent-color: #0c7159; }
.deconstruction-concurrency-control small { color: #66736f; font-size: 11px; line-height: 1.5; }

.confirm-dialog button {
  min-height: 34px;
  min-width: 96px;
  border: 1px solid #cbd7d3;
  border-radius: 7px;
  background: #fff;
  color: #263430;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
}

.confirm-dialog button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.confirm-dialog__confirm--primary {
  border: 0;
  background: #0c7159;
  color: #fff;
}

.confirm-dialog__confirm--danger {
  border-color: #b94e45;
  background: #a93f37;
  color: #fff;
}

.confirm-dialog__spinner {
  animation: confirm-dialog-spin 0.8s linear infinite;
}

@keyframes confirm-dialog-spin {
  to {
    transform: rotate(360deg);
  }
}

.reference-work-classification { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 20px; background: #fff; }
.reference-work-classification > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.reference-work-classification > header > div { display: grid; gap: 3px; }
.reference-work-classification > header span { color: var(--muted); font-size: 12px; }
.reference-category-columns { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; }
.reference-category-columns > div { border: 1px solid var(--line); padding: 12px; }
.reference-category-columns b { display: block; margin-bottom: 9px; font-size: 13px; }
.reference-category-columns > div > div { display: flex; flex-wrap: wrap; gap: 7px; max-height: 150px; overflow: auto; }
.reference-category-columns button { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 10px; border-radius: 4px; }
.reference-category-columns button.is-selected { border-color: #087b63; background: #e7f5f0; color: #075e4d; }
.reference-work-classification .creation-tags { margin-top: 14px; }
.reference-classification-message { margin: 12px 0 0; color: #087b63; font-size: 13px; }

@media (max-width: 980px) {
  .reference-category-columns { grid-template-columns: 1fr; }
  .reference-work-classification > header { align-items: flex-start; flex-direction: column; }
  .task-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .task-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .task-table {
    overflow-x: auto;
  }

  .task-table > header,
  .task-row {
    min-width: 920px;
  }

  .task-detail-workspace {
    min-width: 920px;
  }
}

.account-management { padding: 24px; overflow: auto; }
.account-management h1 { margin: 0 0 4px; }
.account-management p { color: var(--muted); }
.account-create { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; gap: 12px; align-items: end; margin: 22px 0; }
.account-create label { display: grid; gap: 6px; font-size: 13px; }
.account-create input, .account-create select { min-height: 38px; border: 1px solid var(--line); padding: 0 10px; }
.account-list { display: grid; border-top: 1px solid var(--line); }
.account-list article { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-list article div { display: grid; gap: 3px; }
.account-list article span { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .account-create { grid-template-columns: 1fr; } }
