.doc-control {
  --dc-bg: #f6f7f9;
  --dc-panel: #ffffff;
  --dc-panel-soft: #f1f4f7;
  --dc-ink: #14202b;
  --dc-muted: #5e6b78;
  --dc-line: #d7dee7;
  --dc-blue: #2563eb;
  --dc-blue-strong: #174ea6;
  --dc-teal: #0f766e;
  --dc-amber: #b45309;
  --dc-red: #b42318;
  --dc-green: #16794c;
  --dc-purple: #6d28d9;
  --dc-shadow: 0 18px 44px rgba(15, 23, 42, .13);
  width: min(1800px, 100%);
  margin: 0 auto 48px;
  color: var(--dc-ink);
  font: 14px/1.45 Inter, Segoe UI, Arial, sans-serif;
}

.doc-control * {
  box-sizing: border-box;
}

.doc-control button,
.doc-control input,
.doc-control select,
.doc-control textarea {
  font: inherit;
}

.dc-shell {
  background: var(--dc-bg);
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  min-height: calc(100vh - 130px);
  overflow: hidden;
  box-shadow: var(--dc-shadow);
}

.dc-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #eef3f8);
  border-bottom: 1px solid var(--dc-line);
}

.dc-kicker {
  margin: 0 0 3px;
  color: var(--dc-blue-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dc-toolbar h1 {
  margin: 0;
  color: var(--dc-ink);
  font-size: 27px;
  letter-spacing: 0;
}

.dc-toolbar p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--dc-muted);
}

.dc-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dc-label {
  display: grid;
  gap: 5px;
  color: var(--dc-muted);
  font-size: 12px;
  font-weight: 800;
}

.dc-select,
.dc-input,
.dc-textarea {
  width: 100%;
  color: var(--dc-ink);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 6px;
  padding: 10px 11px;
  outline: 0;
}

.dc-select:focus,
.dc-input:focus,
.dc-textarea:focus {
  border-color: var(--dc-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.dc-button {
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  background: #f97316;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.dc-button:hover {
  background: #ea580c;
}

.dc-button.secondary {
  color: var(--dc-ink);
  background: #fff;
  border-color: var(--dc-line);
}

.dc-button.secondary:hover {
  background: var(--dc-panel-soft);
}

.dc-button.warn {
  background: var(--dc-amber);
}

.dc-button.danger {
  background: var(--dc-red);
}

.dc-button.success {
  background: var(--dc-green);
}

.dc-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.dc-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--dc-ink);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.dc-icon-button:hover {
  background: var(--dc-panel-soft);
}

.dc-icon-button.danger {
  color: var(--dc-red);
}

.dc-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--dc-line);
}

.dc-department {
  display: flex;
  min-width: 0;
  min-height: 86px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 13px 14px;
  color: var(--dc-ink);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.dc-folder-name { font-size: 15px; font-weight: 900; }
.dc-folder-count { color: var(--dc-muted); font-size: 12px; font-weight: 800; }
.dc-department small { color: var(--dc-muted); font-size: 11px; }

.dc-department:hover {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.dc-department.active {
  color: var(--dc-ink);
  background: #fff7ed;
  border-color: #f97316;
  box-shadow: inset 4px 0 0 #f97316;
}

.dc-button.danger { color: #fff; background: var(--dc-red); border-color: var(--dc-red); }

.dc-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--dc-line);
  border-bottom: 1px solid var(--dc-line);
}

.dc-metric {
  min-width: 0;
  padding: 13px 15px;
  background: #fff;
}

.dc-metric b {
  display: block;
  color: var(--dc-ink);
  font-size: 24px;
}

.dc-metric span {
  display: block;
  margin-top: 2px;
  color: var(--dc-muted);
  font-size: 12px;
  font-weight: 800;
}

.dc-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  background: #eef3f8;
  border-bottom: 1px solid var(--dc-line);
}

.dc-board-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  padding: 11px;
}

.dc-board-col h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--dc-ink);
  font-size: 14px;
}

.dc-board-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: min(58vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.dc-board-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  overflow: hidden;
  padding: 0;
  color: var(--dc-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 6px;
  cursor: pointer;
}

.dc-board-item:hover {
  border-color: var(--dc-blue);
}

.dc-board-item.selected {
  border-color: var(--dc-orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, .16);
}

.dc-board-select {
  display: grid;
  place-items: center;
  min-width: 30px;
  background: #f8fafc;
  border-right: 1px solid var(--dc-line);
  cursor: pointer;
}

.dc-board-select input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--dc-orange);
  cursor: pointer;
}

.dc-board-item-open {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dc-board-item b,
.dc-board-item span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-board-item span {
  margin-top: 3px;
  color: var(--dc-muted);
  font-size: 12px;
}

.dc-board-item .dc-board-status {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 6px;
  color: #344054;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  background: #eef3f8;
  border-radius: 999px;
}

.dc-board-item.is-dragging {
  opacity: .55;
}

.dc-layout {
  display: grid;
  grid-template-columns: minmax(350px, 42%) minmax(0, 1fr);
  min-height: 720px;
}

.dc-workspace {
  display: grid;
  grid-template-columns: minmax(350px, 42%) minmax(0, 1fr);
  min-width: 0;
  background: #fff;
}

.dc-detail {
  min-width: 0;
  background: #f8fafc;
  border-left: 1px solid var(--dc-line);
}

.dc-list-pane {
  min-width: 0;
  background: #fff;
  border-right: 1px solid var(--dc-line);
}

.dc-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, .7fr) minmax(120px, .7fr);
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--dc-line);
}

.dc-list-head,
.dc-doc-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 116px 116px;
  gap: 10px;
  align-items: center;
}

.dc-list-head {
  padding: 10px 13px;
  color: var(--dc-muted);
  background: var(--dc-panel-soft);
  border-bottom: 1px solid var(--dc-line);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dc-doc-list {
  max-height: 640px;
  overflow: auto;
}

.dc-doc-row {
  width: 100%;
  min-height: 70px;
  padding: 11px 13px;
  color: var(--dc-ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--dc-line);
  cursor: pointer;
}

.dc-doc-row:hover,
.dc-doc-row.active {
  background: #eef6ff;
}

.dc-doc-row.active {
  box-shadow: inset 4px 0 0 var(--dc-blue);
}

.dc-doc-row .dc-title {
  min-width: 0;
}

.dc-doc-row span {
  min-width: 0;
}

.dc-doc-row b {
  display: block;
  overflow: hidden;
  color: var(--dc-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-doc-row small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--dc-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-detail-pane {
  min-width: 0;
  background: #f8fafc;
}

.dc-empty,
.dc-error {
  margin: 20px;
  padding: 18px;
  color: var(--dc-muted);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-error {
  color: var(--dc-red);
}

.dc-dashboard-welcome {
  display: grid;
  gap: 7px;
  min-height: 116px;
  align-content: center;
}

.dc-dashboard-welcome strong {
  color: var(--dc-ink);
  font-size: 18px;
}

.dc-actions [data-action="document-dashboard"][aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .18);
}

.dc-detail-header {
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--dc-line);
}

.dc-detail-header h2 {
  margin: 6px 0 8px;
  color: var(--dc-ink);
  font-size: 25px;
  letter-spacing: 0;
}

.dc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dc-chip,
.dc-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--dc-muted);
  background: #eef2f7;
  border: 1px solid #d9e2ec;
  font-size: 12px;
  font-weight: 900;
}

.dc-status.draft {
  color: #44546a;
  background: #eef2f7;
}

.dc-status.in-review {
  color: #174ea6;
  background: #e8f1ff;
}

.dc-status.needs-changes {
  color: var(--dc-red);
  background: #fff0ed;
}

.dc-status.approved {
  color: var(--dc-green);
  background: #eaf7ef;
}

.dc-status.effective {
  color: #075985;
  background: #e0f2fe;
}

.dc-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--dc-line);
}

.dc-tabs {
  display: flex;
  gap: 1px;
  background: var(--dc-line);
  border-bottom: 1px solid var(--dc-line);
}

.dc-tab {
  min-height: 42px;
  padding: 10px 15px;
  color: var(--dc-muted);
  background: #f8fafc;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.dc-tab.active {
  color: var(--dc-blue-strong);
  background: #fff;
}

.dc-panel {
  padding: 18px 20px 22px;
}

.dc-reader {
  min-height: 560px;
  max-height: 720px;
  overflow: auto;
  padding: 20px 22px;
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-reader iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  background: #fff;
}

.dc-reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dc-reader p {
  max-width: 920px;
  margin: 0 0 12px;
}

.dc-reader p.dc-heading {
  margin-top: 22px;
  color: var(--dc-ink);
  font-size: 18px;
  font-weight: 900;
}

.dc-structured-document {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 24px 34px 48px;
  color: #1f2937;
  background: #fff;
}

.dc-structured-document h1,
.dc-structured-document h2,
.dc-structured-document h3,
.dc-structured-document h4 {
  color: var(--dc-ink);
  letter-spacing: 0;
}

.dc-structured-document h1 { margin: 0 0 28px; font-size: 30px; }
.dc-structured-document h2 { margin: 28px 0 10px; font-size: 23px; }
.dc-structured-document h3 { margin: 22px 0 9px; font-size: 19px; }
.dc-structured-document h4 { margin: 18px 0 8px; font-size: 16px; }
.dc-structured-document p { white-space: pre-wrap; }
.dc-structured-document blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  color: var(--dc-muted);
  border-left: 4px solid #f97316;
  background: #f8fafc;
}

.dc-list-line {
  display: flex;
  gap: 10px;
  padding-left: 14px;
}

.dc-authoring-head,
.dc-section-discussion-head,
.dc-history-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dc-authoring-head h3,
.dc-section-discussion-head h3,
.dc-history-heading h3 {
  margin: 0 0 4px;
  color: var(--dc-ink);
  font-size: 18px;
}

.dc-authoring-head p,
.dc-section-discussion-head p,
.dc-history-heading p {
  margin: 0;
  color: var(--dc-muted);
}

.dc-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  background: #eef3f8;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-content-blocks {
  display: grid;
  gap: 10px;
}

.dc-content-block {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-content-block:focus-within {
  border-color: var(--dc-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.dc-content-block-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: #f1f4f7;
  border-bottom: 1px solid var(--dc-line);
}

.dc-content-block-tools .dc-select {
  width: min(180px, 100%);
  padding: 7px 8px;
}

.dc-block-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--dc-muted);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.dc-content-text {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 13px 15px;
  color: var(--dc-ink);
  background: #fff;
  border: 0;
  outline: 0;
  resize: vertical;
}

.dc-content-text.dc-block-title,
.dc-content-text.dc-block-heading1,
.dc-content-text.dc-block-heading2,
.dc-content-text.dc-block-heading3 {
  min-height: 48px;
  font-weight: 900;
  resize: none;
}

.dc-content-text.dc-block-title { font-size: 22px; }
.dc-content-text.dc-block-heading1 { font-size: 19px; }
.dc-content-text.dc-block-heading2 { font-size: 17px; }
.dc-authoring-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dc-line);
}

.dc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dc-form-grid .full {
  grid-column: 1 / -1;
}

.dc-textarea {
  min-height: 180px;
  resize: vertical;
}

.dc-textarea.compact {
  min-height: 116px;
}

.dc-textarea.micro {
  min-height: 68px;
}

.dc-required {
  color: var(--dc-red);
  font-weight: 900;
}

.dc-muted {
  color: var(--dc-muted);
}

.dc-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dc-ink);
  font-weight: 800;
}

.dc-check input {
  width: 16px;
  height: 16px;
}

.dc-inline-notice,
.dc-preview-fallback {
  padding: 13px 14px;
  color: var(--dc-muted);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-inline-notice strong,
.dc-preview-fallback strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dc-ink);
}

.dc-preview-fallback {
  display: grid;
  gap: 9px;
}

.dc-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dc-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dc-review-card,
.dc-version-card,
.dc-audit-row {
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  padding: 13px;
}

.dc-review-card h3,
.dc-version-card h3 {
  margin: 0 0 5px;
  color: var(--dc-ink);
  font-size: 16px;
}

.dc-review-card p,
.dc-version-card p,
.dc-audit-row p {
  margin: 4px 0 0;
  color: var(--dc-muted);
}

.dc-version-grid,
.dc-audit-list {
  display: grid;
  gap: 10px;
}

.dc-version-card.current {
  border-color: var(--dc-blue);
  box-shadow: inset 4px 0 0 var(--dc-blue);
}

.dc-diff {
  margin-top: 12px;
  padding: 12px;
  color: var(--dc-muted);
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-start-workflow,
.dc-comments,
.dc-comment-card {
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-start-workflow,
.dc-comments {
  padding: 15px;
}

.dc-start-workflow h3,
.dc-comments h3 {
  margin: 0 0 6px;
  color: var(--dc-ink);
}

.dc-comment-form {
  display: grid;
  gap: 11px;
  margin-bottom: 14px;
}

.dc-comment-list {
  display: grid;
  gap: 9px;
}

.dc-comment-card {
  padding: 12px;
}

.dc-comment-card p {
  margin: 5px 0 0;
  color: var(--dc-ink);
}

.dc-comment-card.resolved {
  background: #f8fafc;
  opacity: .82;
}

.dc-comment-card .dc-button {
  margin-top: 9px;
}

.dc-comment-card small {
  color: var(--dc-muted);
}

.dc-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
}

.dc-modal.hidden {
  display: none;
}

.dc-modal-card {
  width: min(1120px, 96vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--dc-shadow);
  overflow: hidden;
}

.dc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--dc-line);
}

.dc-modal-head h2 {
  margin: 0;
  font-size: 21px;
}

.dc-modal-body {
  max-height: calc(90vh - 76px);
  overflow: auto;
  padding: 18px;
}

.dc-modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.82), #fff 38%);
}

.dc-upload-drop {
  display: grid;
  min-height: 138px;
  place-items: center;
  gap: 8px;
  padding: 22px;
  color: var(--dc-muted);
  text-align: center;
  background: #f8fafc;
  border: 2px dashed #b9c6d4;
  border-radius: 8px;
  cursor: pointer;
}

.dc-upload-drop:hover,
.dc-upload-drop.dragging {
  color: var(--dc-blue-strong);
  background: #eef6ff;
  border-color: var(--dc-blue);
}

.dc-upload-drop strong {
  color: var(--dc-ink);
}

.dc-file-drop {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 2px dashed var(--dc-line);
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.dc-file-drop .dc-label {
  min-width: 0;
}

.dc-file-drop-status {
  color: var(--dc-muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dc-file-drop.dragging {
  border-color: var(--dc-blue);
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.dc-file-drop.has-file {
  border-color: #15803d;
  background: #f0fdf4;
}

.dc-file-drop.has-file .dc-file-drop-status {
  color: #166534;
  font-weight: 700;
}

.dc-file-drop.disabled {
  cursor: not-allowed;
  opacity: .72;
}

.dc-bulk-defaults,
.dc-bulk-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dc-ai-intake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid #b9d9ec;
  border-left: 4px solid #277ca8;
  border-radius: 10px;
  background: #f3f9fc;
}

.dc-ai-intake > div {
  display: grid;
  gap: 4px;
}

.dc-ai-intake strong { color: var(--dc-ink); }
.dc-ai-intake span { color: var(--dc-muted); font-size: 13px; line-height: 1.45; }

.dc-bulk-queue {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dc-bulk-item {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--dc-line);
  border-radius: 8px;
}

.dc-bulk-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dc-bulk-top strong,
.dc-bulk-top span {
  display: block;
}

.dc-bulk-top span {
  margin-top: 4px;
  color: var(--dc-muted);
}

.dc-bulk-item.failed {
  border-color: #f3b4ac;
  box-shadow: inset 4px 0 0 var(--dc-red);
}

.dc-bulk-item.uploaded,
.dc-bulk-item.review-started {
  border-color: #bce5cc;
  box-shadow: inset 4px 0 0 var(--dc-green);
}

.dc-bulk-item.creating,
.dc-bulk-item.uploading-source,
.dc-bulk-item.starting-review {
  border-color: #b8d1ff;
  box-shadow: inset 4px 0 0 var(--dc-blue);
}

.dc-progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  background: #e5edf5;
  border-radius: 999px;
}

.dc-progress span {
  display: block;
  height: 100%;
  background: var(--dc-blue);
  border-radius: inherit;
  transition: width .18s ease;
}

.dc-row-error {
  margin: 8px 0 0;
  color: var(--dc-red);
  font-weight: 800;
}

.dc-loading {
  padding: 22px;
  color: var(--dc-muted);
}

@media (max-width: 1180px) {
  .dc-departments {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .dc-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dc-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dc-layout {
    grid-template-columns: 1fr;
  }

  .dc-workspace {
    grid-template-columns: 1fr;
  }

  .dc-detail {
    border-left: 0;
    border-top: 1px solid var(--dc-line);
  }

  .dc-bulk-defaults,
  .dc-bulk-fields,
  .dc-workflow {
    grid-template-columns: 1fr 1fr;
  }

  .dc-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--dc-line);
  }

  .dc-doc-list {
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  .dc-ai-intake { align-items: stretch; flex-direction: column; }
  .dc-ai-intake .dc-button { width: 100%; }

  .dc-toolbar,
  .dc-actions {
    display: grid;
    justify-content: stretch;
  }

  .dc-metrics,
  .dc-board,
  .dc-filters,
  .dc-workflow,
  .dc-form-grid,
  .dc-bulk-defaults,
  .dc-bulk-fields {
    grid-template-columns: 1fr;
  }

  .dc-list-head,
  .dc-doc-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dc-list-head span:nth-child(3),
  .dc-list-head span:nth-child(4),
  .dc-doc-row span:nth-child(3),
  .dc-doc-row span:nth-child(4) {
    display: none;
  }

  .dc-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .dc-detail-actions .dc-button {
    width: 100%;
    padding-right: 7px;
    padding-left: 7px;
    text-align: center;
    white-space: normal;
  }

  .dc-detail-actions a.dc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dc-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .dc-reader {
    min-height: 360px;
  }

  .dc-reader iframe {
    height: 420px;
  }

  .dc-structured-document {
    padding: 16px 8px 32px;
  }

  .dc-authoring-head,
  .dc-section-discussion-head,
  .dc-history-heading,
  .dc-authoring-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dc-content-block-tools {
    flex-wrap: wrap;
  }
}

/* --- OneFSG V8.3.5.13 additions: color variants for real backend statuses that did not exist in
   the Codex prototype's simpler vocabulary (Draft/In Review/Needs Changes/Approved/Effective).
   Reuses the same --dc-* palette already defined above - no new colors introduced. --- */
.dc-status.changes-requested {
  color: var(--dc-red);
  background: #fff0ed;
}

.dc-status.pending-approval {
  color: var(--dc-purple);
  background: #f3ecfe;
}

.dc-status.scheduled-for-publication {
  color: var(--dc-teal);
  background: #e7f6f4;
}

.dc-status.published {
  color: #075985;
  background: #e0f2fe;
}

.dc-status.superseded {
  color: var(--dc-muted);
  background: #eef2f7;
}

.dc-status.retired {
  color: var(--dc-muted);
  background: #eef2f7;
  text-decoration: line-through;
}

.dc-status.rejected {
  color: #fff;
  background: var(--dc-red);
}

/* Draft-only edit-buffer indicator (localStorage is used ONLY for an unsaved edit-form draft) */
.dc-draft-indicator {
  font-size: 11px;
  color: var(--dc-amber);
  font-weight: 700;
}

/* Identity simulator - development/test only, must read as clearly non-production */
.dc-identity-sim-warning {
  font-size: 11px;
  color: var(--dc-red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-top: 4px;
}

/* V8.3.5.22: isolate the light document workspace from the dark portal utilities. */
#v8-content .doc-control,
#v8-content .doc-control .dc-shell,
#v8-content .doc-control .dc-panel,
#v8-content .doc-control .dc-board-col,
#v8-content .doc-control .dc-board-item,
#v8-content .doc-control .dc-doc-row,
#v8-content .doc-control .dc-detail {
  color: var(--dc-ink);
}

#v8-content .doc-control .dc-muted,
#v8-content .doc-control .dc-toolbar p,
#v8-content .doc-control .dc-metric span,
#v8-content .doc-control .dc-doc-row small {
  color: var(--dc-muted);
}

#v8-content .doc-control .dc-button {
  color: #fff;
}

#v8-content .doc-control .dc-button.secondary {
  color: var(--dc-ink);
}

.dc-doc-row[draggable="true"], .dc-board-item[draggable="true"] { cursor: grab; }
.dc-doc-row[draggable="true"]:active, .dc-board-item[draggable="true"]:active { cursor: grabbing; }
.dc-department.drag-target { outline: 3px solid currentColor; outline-offset: -3px; transform: translateY(-1px); }
.dc-board-col.drag-target {
  border-color: var(--dc-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .2), inset 0 0 0 1px var(--dc-orange);
  background: #fff7ed;
}

.dc-board-col.drag-target .dc-board-list { min-height: 92px; }


/* V8.3.5.50 - multi-document department move */
.dc-bulk-move-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 13px;
  background: #f8fafc;
  border-bottom: 1px solid var(--dc-line);
  color: var(--dc-muted);
}
.dc-bulk-move-bar strong { color: var(--dc-ink); white-space: nowrap; }
.dc-bulk-move-bar .dc-select { width: min(260px, 100%); }
.dc-bulk-action-group { display: flex; align-items: center; gap: 8px; }
.dc-doc-row-wrap { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--dc-line); }
.dc-doc-row-wrap .dc-doc-row { border-bottom: 0; }
.dc-multi-check { display: grid; place-items: center; background: #fff; cursor: pointer; }
.dc-multi-check input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--dc-orange); }
@media (max-width: 760px) {
  .dc-bulk-move-bar { align-items: stretch; flex-direction: column; }
  .dc-bulk-move-bar .dc-select { width: 100%; }
  .dc-bulk-action-group { align-items: stretch; flex-direction: column; width: 100%; }
  .dc-bulk-action-group .dc-button { width: 100%; }
}
