/* DCM light theme: consolidated base components, workspace tools and responsive layouts.
   Variables and component rules share one cascade; inactive legacy navigation removed. */
:root {
  --dcm-code: #17202b;
}

html, body {
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-feature-settings: "tnum", "lnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

button, input, select, textarea {
  font: inherit;
}

code, pre, .prompt-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

a {
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

html {
  scroll-padding-top: calc(var(--dcm-header-height) + .75rem);
}

.nav-logout .nav-link {
  border: 0px;
  background: transparent;
}

.page-body {
  margin-top: 0px;
}

.page-head {
  display: flex;
  justify-content: space-between;
}

.page-head > div:first-child {
  min-width: 0px;
}

.page-head h1 {
  margin: 0px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2, .section-title {
  margin: 0px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0.24rem 0px 0px;
  line-height: 1.48;
}

.section-title {
  margin: 1.35rem 0px 0.65rem;
}

h1 {
  font-size: 1.72rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: rgb(17, 27, 41);
}

h2 {
  font-size: 1.24rem;
  font-weight: 720;
  letter-spacing: -0.012em;
  color: rgb(24, 36, 51);
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: rgb(34, 48, 68);
}

.muted, .text-muted {
  color: rgb(89, 104, 122) !important;
}

.small {
  font-size: 0.86em;
  line-height: 1.45;
}

.card-header {
  min-height: 0px;
}

.card-header .card-title {
  margin: 0px;
  color: rgb(24, 36, 51);
  letter-spacing: -0.006em;
}

section.card:not(.table-card):not(.prompt-card):not(.publication-manager):not(.schedule-card):not(.dcm-status-card):not(.structured-card) {
  padding: 1rem;
}

.table-card {
  overflow: hidden;
}

.table-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-subtitle {
  margin: 0.2rem 0px 0px;
  font-size: 0.9em;
  font-weight: 450;
  line-height: 1.45;
}

details.card {
  display: block;
  padding: 0px;
  overflow: visible;
}

details.card > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

details.card > summary::-webkit-details-marker {
  display: none;
}

details.card > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  margin-left: auto;
  font-size: 1.05em;
}

details.card[open] > summary::after {
  content: "−";
}

details.card > .content, details.card > .artifact-meta, details.card > p, details.card > h2, details.card > .table-responsive, details.card > .artifact-version, details.card > .publication-actions {
  margin-left: 1rem;
  margin-right: 1rem;
}

details.card > .content:last-child, details.card > .artifact-version:last-child, details.card > .table-responsive:last-child, details.card > .publication-actions:last-child {
  margin-bottom: 1rem;
}

.empty-state {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 0.35rem;
}

.empty-state p {
  max-width: 640px;
  margin: 0px;
  color: var(--dcm-muted);
}

form {
  max-width: none;
}

.dcm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 0.8rem;
  width: 100%;
}

.prompt-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(240px, 2fr) repeat(2, minmax(150px, 1fr));
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.8rem;
}

.prompt-save-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  align-items: center;
}

.field {
  min-width: 0px;
}

.field-caption {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.36rem;
  font-weight: 650;
  color: rgb(38, 54, 74);
}

label {
  font-weight: 650;
  color: rgb(38, 54, 74);
}

textarea {
  resize: vertical;
}

.form-control, .form-select {
  border-color: rgb(209, 217, 228);
  background: rgb(255, 255, 255);
  color: rgb(31, 45, 61);
  font-weight: 450;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}

.form-control:hover, .form-select:hover {
  border-color: rgb(195, 204, 216);
}

.form-control:focus, .form-select:focus {
  border-color: rgb(139, 183, 235);
  box-shadow: rgba(32, 107, 196, 0.1) 0px 0px 0px 2px !important;
}

.form-control::placeholder {
  color: rgb(127, 140, 157);
}

.form-control:disabled, .form-select:disabled {
  background: rgb(243, 245, 248);
  color: rgb(138, 150, 165);
}

.btn {
  letter-spacing: 0.005em;
  box-shadow: none !important;
}

.btn-primary {
  box-shadow: rgba(32, 107, 196, 0.12) 0px 1px 1px !important;
}

.btn-outline-secondary:hover {
  border-color: rgb(135, 149, 167);
  background: rgb(247, 249, 252);
  color: rgb(39, 54, 74);
}

.prompt-editor {
  min-height: 320px;
  padding: 0.85rem 1rem;
}

.source-editor {
  min-height: 360px;
}

.prompt-settings .form-control, .prompt-settings .form-select {
  width: 100%;
}

.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0px;
}

.checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2.35rem;
  margin: 0px;
  padding: 0.36rem 0.62rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.12s, background 0.12s;
}

.checkboxes input {
  margin: 0px;
}

.checkboxes .form-check-input:checked {
  background-color: var(--tblr-primary);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  gap: 0.6rem;
  margin: 0.85rem 0px 1rem;
}

.slot-grid label {
  font-size: 0.91em;
  color: rgb(74, 88, 107);
}

.actions, .btn-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.actions form {
  margin: 0px;
  width: auto;
}

.actions .btn, .actions button {
  white-space: nowrap;
}

.config-banner {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.config-banner > div:first-child {
  min-width: 190px;
}

.config-banner > div:first-child strong {
  display: block;
  margin-bottom: 0.15rem;
}

.config-banner > div:first-child span {
  display: block;
  color: var(--dcm-muted);
  font-size: 0.86em;
  line-height: 1.4;
}

.config-banner dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 0.5rem 0.9rem;
  margin: 0px;
  flex: 1 1 0%;
}

.config-banner dt {
  font-size: 0.75em;
  color: var(--tblr-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.config-banner dd {
  margin: 0.08rem 0px 0px;
  font-weight: 700;
  color: rgb(38, 54, 74);
  overflow-wrap: anywhere;
}

.prompt-card {
  padding: 0px;
  overflow: visible;
}

.prompt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prompt-card-head h2, .prompt-card-head h3 {
  margin: 0px;
}

.prompt-card > form, .prompt-card > .prompt-preview, .prompt-card > .test-run, .prompt-card > .artifact-inline {
  margin: 1rem;
}

.prompt-preview {
  padding: 0.85rem 1rem;
  max-height: 55vh;
  overflow: auto;
}

.prompt-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.15rem 0px 1rem;
}

.prompt-jump-nav .btn {
  min-height: 2.15rem;
  padding: 0.34rem 0.65rem;
}

.variables {
  display: block;
  margin: 0.75rem 0px;
  color: rgb(77, 92, 112);
}

.variables > strong {
  display: block;
  margin-bottom: 0.4rem;
  color: rgb(38, 54, 74);
}

.variables-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.26rem;
}

.variable-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0px;
}

.variables code {
  display: inline-block;
  min-width: 8.5rem;
  padding: 0.16rem 0.36rem;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  font-size: 0.92em;
}

.variable-row span {
  color: rgb(82, 97, 112);
}

.test-run > summary {
  cursor: pointer;
}

.test-run > form, .test-run > .content, .test-run > .test-image {
  margin: 0.8rem;
}

.dcm-tip {
  width: 1.55rem;
  height: 1.55rem;
  min-height: 1.55rem;
  padding: 0px;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  font-weight: 800;
  line-height: 1;
}

.tooltip-inner {
  max-width: 480px;
  padding: 0.72rem 0.85rem;
  text-align: left;
  line-height: 1.55;
  font-size: 1rem;
  font-weight: 450;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
}

.table {
  margin-bottom: 0px;
}

.table th {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  background: rgb(245, 247, 250);
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.table-card > .table-responsive {
  margin: 0px;
}

.table-card > .muted {
  margin: 0px;
  background: rgb(251, 252, 254);
}

.table-scroll {
  overflow: auto;
  overscroll-behavior-inline: contain;
}

.table-scroll thead th {
  position: sticky;
  top: 0px;
  z-index: 1;
}

.source-url {
  display: inline-block;
  max-width: min(68vw, 980px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.job-error-badge {
  text-decoration: none;
  cursor: pointer;
}

.job-error-row {
  scroll-margin-top: 64px;
}

.job-error-row:target > * {
  background: rgb(255, 241, 242) !important;
}

.job-error-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
  color: rgb(127, 29, 29);
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 1.1rem;
}

.result-head h1 {
  margin: 0.35rem 0px 0.2rem;
  line-height: 1.16;
  color: rgb(17, 27, 41);
  font-weight: 750;
  letter-spacing: -0.018em;
}

.result-stats {
  min-width: 220px;
  padding-left: 1rem;
  text-align: right;
  color: rgb(77, 92, 112);
}

.result-stats > strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 760;
}

.result-stats > span {
  display: block;
  margin: 0.18rem 0px 0.65rem;
  color: var(--tblr-secondary-color);
}

.content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0.95rem 1rem;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  max-height: 65vh;
  overflow: auto;
  color: rgb(31, 45, 61);
  font-weight: 430;
}

.result-text {
  color: rgb(23, 36, 54);
}

.artifact-meta {
  font-size: 0.88em;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.artifact-version {
  padding: 0.85rem 0px;
}

.artifact-version:last-child {
  border-bottom: 0px;
}

.thumb, .test-image {
  display: block;
  max-width: min(100%, 900px);
  height: auto;
  background: rgb(255, 255, 255);
}

.publication-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  margin-bottom: 1rem;
}

.dcm-auth-widget {
  margin: 0px;
  overflow: hidden;
  border-left: 3px solid rgb(154, 167, 182);
  box-shadow: rgba(24, 36, 51, 0.03) 0px 1px 2px;
}

.dcm-auth-widget .card-body {
  display: grid;
  grid-template-columns: auto minmax(0px, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
}

.dcm-auth-indicator {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgb(154, 167, 182);
  box-shadow: rgba(154, 167, 182, 0.13) 0px 0px 0px 3px;
}

.dcm-auth-copy {
  display: flex;
  flex-direction: column;
  min-width: 0px;
  line-height: 1.25;
}

.dcm-auth-copy strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcm-auth-copy span {
  margin-top: 0.1rem;
  color: rgb(101, 115, 134);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcm-auth-widget.is-ok {
  border-left-color: rgb(47, 179, 68);
}

.dcm-auth-widget.is-ok .dcm-auth-indicator {
  background: rgb(47, 179, 68);
  box-shadow: rgba(47, 179, 68, 0.13) 0px 0px 0px 3px;
}

.dcm-auth-widget.is-warning {
  border-left-color: rgb(245, 159, 0);
}

.dcm-auth-widget.is-warning .dcm-auth-indicator {
  background: rgb(245, 159, 0);
  box-shadow: rgba(245, 159, 0, 0.14) 0px 0px 0px 3px;
}

.dcm-auth-widget.is-error {
  border-left-color: rgb(214, 57, 57);
}

.dcm-auth-widget.is-error .dcm-auth-indicator {
  background: rgb(214, 57, 57);
  box-shadow: rgba(214, 57, 57, 0.13) 0px 0px 0px 3px;
}

.publication-manager {
  margin: 0px;
  overflow: hidden;
  box-shadow: rgba(24, 36, 51, 0.03) 0px 1px 2px;
  padding: 0px !important;
}

.publication-manager .card-body {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
}

.publication-manager-copy {
  display: flex;
  flex-direction: column;
  min-width: 0px;
  line-height: 1.25;
}

.publication-manager-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0px;
}

.publication-manager-title > strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publication-manager-copy > span {
  margin-top: 0.1rem;
  color: rgb(101, 115, 134);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publication-manager-copy > span strong {
  color: rgb(31, 47, 70);
  font-size: 1rem;
}

.publication-manager form {
  width: auto;
  margin: 0px;
}

.publication-manager form .btn {
  white-space: nowrap;
}

.schedule-card {
  overflow: hidden;
  padding: 0px !important;
}

.schedule-card .card-body {
  padding: 0.9rem 1rem 0.85rem;
}

.schedule-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.schedule-card .card-footer .checkboxes {
  margin: 0px;
}

.publication-rules-head {
  margin-top: 2rem;
  padding-top: 0.35rem;
}

.schedule-new-label, .schedule-existing-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0px 0.45rem;
  color: rgb(38, 54, 74);
}

.schedule-new-label strong, .schedule-existing-label strong {
  font-size: 0.96rem;
}

.schedule-card-new {
  border-width: 1px;
  border-style: dashed;
  border-image: initial;
  box-shadow: none;
}

.schedule-existing-label {
  margin-top: 1.25rem;
}

.schedule-card-existing {
  border-left-width: 4px;
  border-left-style: solid;
  background: rgb(255, 255, 255);
}

.schedule-card-existing .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.schedule-card-existing .card-title-wrap {
  min-width: 0px;
}

.schedule-card-existing .card-title-wrap .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-base-grid {
  grid-template-columns: minmax(260px, 2fr) minmax(150px, 0.7fr);
}

.schedule-label {
  margin: 0.85rem 0px 0.3rem;
  font-size: 0.9em;
  font-weight: 700;
}

.schedule-help {
  margin: 0.2rem 0px 0px;
  color: rgb(89, 104, 122);
  font-size: 0.85em;
  line-height: 1.45;
}

.schedule-footer-note {
  color: rgb(89, 104, 122);
  font-size: 0.85em;
  line-height: 1.45;
}

.schedule-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.publication-actions {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr);
  gap: 1rem;
  align-items: end;
  padding-bottom: 1rem;
}

.publication-actions form:last-child {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.alert {
  border-width: 1px 1px 1px 3px;
  box-shadow: rgba(24, 36, 51, 0.02) 0px 1px 2px;
}

.notice {
  margin: 0.75rem 0px;
}

.dcm-system-notice {
  position: fixed;
  z-index: 2050;
  top: calc(var(--dcm-header-height) + .75rem);
  left: 50%;
  width: min(680px, -1.5rem + 100vw);
  margin: 0px;
  transform: translateX(-50%);
  animation: 0.16s ease-out 0s 1 normal both running dcm-notice-in;
}

.dcm-system-notice.alert-info {
  background: rgb(233, 243, 255);
}

.dcm-system-notice.alert-danger {
  background: rgb(255, 240, 240);
}

.dcm-system-notice.is-hiding {
  opacity: 0;
  transform: translate(-50%, -0.45rem);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}

@keyframes dcm-notice-in {
  0% { opacity: 0; transform: translate(-50%, -0.45rem); }
  100% { opacity: 1; transform: translate(-50%, 0px); }
}

.dcm-scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1045;
  width: 3rem;
  height: 3rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.dcm-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0px);
}

.dcm-loader {
  position: fixed;
  inset: 0px;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.dcm-loader[hidden] {
  display: none;
}

.dcm-loader-card {
  width: min(430px, -2rem + 100vw);
  box-shadow: rgba(24, 36, 51, 0.15) 0px 1.5rem 4rem;
}

.is-busy body {
  cursor: progress;
}

.dcm-login-brand {
  font-size: 1.9rem;
  font-weight: 800;
}

.container-tight {
  max-width: 380px;
}

body, .table, .form-control, .form-select, .btn {
  font-size: 1rem;
}

.card-body > p:not(.text-muted):not(.muted), .card-body > div:not([class]) {
  color: rgb(36, 52, 74);
}

strong, b {
  font-weight: 700;
  color: rgb(27, 42, 61);
}

.table a, .card a {
  font-weight: 600;
}

code {
  font-weight: 600;
}

.prompt-preview, .artifact-version {
  color: rgb(36, 52, 74);
}

.prompt-preview {
  font-size: 1rem;
  line-height: 1.62;
}

@media (max-width: 1200px) {
  .prompt-settings {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .config-banner {
    display: block;
  }

  .config-banner dl {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    margin-top: 0.75rem;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .publication-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .page-head, .result-head, .prompt-card-head {
    display: block;
  }

  .page-head {
    padding-bottom: 0.7rem;
  }

  .dcm-form-grid, .prompt-settings, .config-banner dl, .slot-grid, .schedule-base-grid {
    grid-template-columns: 1fr;
  }

  .prompt-save-row {
    justify-content: flex-start;
  }

  .prompt-card > form, .prompt-card > .prompt-preview, .prompt-card > .test-run, .prompt-card > .artifact-inline {
    margin: 0.7rem;
  }

  .prompt-card > details {
    margin: 0.7rem;
  }

  .prompt-editor {
    min-height: 250px;
  }

  .result-stats {
    min-width: 0px;
    margin-top: 0.8rem;
    padding: 0.8rem 0px 0px;
    border-left: 0px;
    text-align: left;
  }

  .publication-manager .card-body {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .publication-ready {
    min-width: 0px;
    padding: 0.7rem 0px 0px;
    border-left: 0px;
  }

  .publication-manager form {
    width: 100%;
  }

  .publication-manager form .btn, .publication-manager form button {
    width: 100%;
  }

  .publication-actions form:last-child {
    grid-template-columns: 1fr;
  }

  .schedule-card .card-footer {
    align-items: stretch;
  }

  .schedule-actions {
    width: 100%;
    margin-left: 0px;
  }

  .schedule-actions .btn, .schedule-actions button {
    flex: 1 1 0%;
  }

  .checkboxes {
    gap: 0.35rem;
  }

  .checkboxes label {
    min-height: 2.25rem;
    padding: 0.34rem 0.52rem;
  }

  .actions {
    align-items: stretch;
  }

  .actions > .btn, .actions > form {
    flex: 1 1 auto;
  }

  .actions form .btn, .actions form button {
    width: 100%;
  }

  .source-url {
    max-width: 100%;
  }

  .content {
    max-height: none;
  }

  .table-responsive {
    overflow-y: visible;
  }

  .adaptive {
    display: block !important;
    width: 100% !important;
    min-width: 0px !important;
    table-layout: auto !important;
  }

  .adaptive thead {
    display: none;
  }

  .adaptive tbody, .adaptive tfoot {
    display: block;
    width: 100%;
  }

  .adaptive tr {
    display: block;
    width: 100%;
  }

  .adaptive tr:last-child {
    border-bottom: 0px;
  }

  .adaptive td {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    width: 100% !important;
    padding: 0.28rem 0px !important;
    border: 0px !important;
    white-space: normal !important;
  }

  .adaptive td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.08rem;
    font-weight: 700;
  }

  .adaptive td[colspan]::before {
    display: none;
  }

  .adaptive td > a, .adaptive td > strong, .adaptive td > span, .adaptive td > div, .adaptive td > form {
    max-width: 100%;
  }

  .adaptive .source-url {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  .adaptive .actions {
    width: 100%;
    align-items: stretch;
  }

  .adaptive .actions > .btn, .adaptive .actions > form {
    flex: 1 1 auto;
  }

  .adaptive .actions form .btn, .adaptive .actions form button {
    width: 100%;
    white-space: normal;
  }

  .adaptive .publication-error-preview {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .adaptive .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .adaptive tfoot .results-bulk-toolbar-row {
    padding: 0px;
  }

  .adaptive tfoot .results-bulk-toolbar-row > td {
    padding: 0.65rem 0.7rem !important;
  }
}

@media (min-width: 1600px) {
  .dcm-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .slot-grid {
    gap: 0.7rem;
  }

  .table > :not(caption) > * > * {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

.dcm-tip-fallback {
  padding: 0.72rem 0.85rem;
  background: rgb(24, 36, 51);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(15, 23, 32);
  box-shadow: rgba(24, 36, 51, 0.22) 0px 0.75rem 2rem;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}

.generation-job-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0px, 1fr));
}

.generation-job-stats-grid .card {
  margin: 0px;
}

.generation-job-stats-grid .h1 {
  font-weight: 760;
}

@media (max-width: 991.98px) {
  .generation-job-stats-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .generation-job-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.generation-queue-lock {
  color: rgb(59, 50, 29);
}

.generation-readonly {
  border: 0px;
  margin: 0px;
  padding: 0px;
  min-width: 0px;
  opacity: 1;
}

.generation-readonly:disabled {
  opacity: 1;
}

.generation-readonly textarea, .generation-readonly input, .generation-readonly select {
  opacity: 1;
  color: rgb(82, 97, 112);
  background: rgb(243, 245, 247);
  border-color: rgb(217, 222, 229);
  cursor: not-allowed;
}

.generation-readonly-note {
  margin: 0.65rem 1rem 1rem;
}

.sources-table, .results-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

.sources-table .col-fill, .results-table .col-fill {
  width: 100%;
}

.sources-table td:nth-child(2), .results-table td:nth-child(3) {
  min-width: 24rem;
}

.sources-table .source-url {
  display: block;
  width: 100%;
  max-width: 100%;
}

.sources-table .col-id {
  width: 1%;
  white-space: nowrap;
}

.sources-table .col-chars, .sources-table .col-used, .sources-table .col-added {
  width: 1%;
  white-space: nowrap;
}

.sources-table th:nth-child(1), .sources-table td:nth-child(1) {
  width: 1%;
  white-space: nowrap;
}

.sources-table th:nth-child(3), .sources-table td:nth-child(3), .sources-table th:nth-child(4), .sources-table td:nth-child(4), .sources-table th:nth-child(5), .sources-table td:nth-child(5) {
  width: 1%;
}

.sources-table th:nth-child(3), .sources-table th:nth-child(4), .sources-table th:nth-child(5) {
  white-space: nowrap;
}

.sources-table td:nth-child(3), .sources-table td:nth-child(4), .sources-table td:nth-child(5) {
  white-space: normal;
}

.sources-table .col-generations, .sources-table th:nth-child(6), .sources-table td:nth-child(6) {
  width: 1%;
  white-space: nowrap;
}

.source-generation-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.source-generation-actions form {
  margin: 0px;
  flex: 0 0 auto;
}

.results-table .col-id, .results-table .col-chars, .results-table .col-date, .results-table .col-status, .results-table .col-publication-access {
  width: 1%;
  white-space: nowrap;
}

.results-table th:nth-child(1), .results-table td:nth-child(1), .results-table th:nth-child(2), .results-table td:nth-child(2), .results-table th:nth-child(4), .results-table td:nth-child(4), .results-table th:nth-child(5), .results-table td:nth-child(5), .results-table th:nth-child(6), .results-table td:nth-child(6), .results-table th:nth-child(7), .results-table td:nth-child(7) {
  width: 1%;
  white-space: nowrap;
}

.publication-access-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.publication-access-actions form {
  margin: 0px;
  flex: 0 0 auto;
}

.results-table .col-select {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.results-table .col-select .form-check-input {
  display: block;
  margin: 0px auto;
}

.results-table .result-date-time {
  display: inline-block;
  line-height: 1.3;
  white-space: nowrap;
}

.results-bulk-toolbar-row > th, .results-bulk-toolbar-row > td {
  padding: 0.65rem 0.75rem;
}

.results-table tfoot .results-bulk-toolbar-row > td {
  border-bottom: 0px;
}

.results-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0px;
}

.results-bulk-count {
  font-weight: 650;
  white-space: nowrap;
}

.results-bulk-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.results-bulk-controls .form-select {
  width: auto;
  min-width: 220px;
  min-height: 2.35rem;
}

.results-bulk-controls .btn, .results-bulk-controls button {
  min-height: 2.35rem;
}

@media (max-width: 767.98px) {
  .results-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-bulk-controls {
    width: 100%;
    margin-left: 0px;
    flex-wrap: wrap;
  }

  .results-bulk-controls .form-select {
    flex: 1 1 220px;
    width: 100%;
    min-width: 0px;
  }

  .results-bulk-controls .btn, .results-bulk-controls button {
    flex: 0 0 auto;
  }
}

.generation-job-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  scroll-margin-top: 64px;
}

.generation-job-stat-link:hover {
  color: inherit;
  text-decoration: none;
  border-color: rgb(174, 185, 199);
}

#generation-job-errors {
  scroll-margin-top: 64px;
}

.char-count-with-tip, .publication-error-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0px;
}

.publication-error-preview > span {
  min-width: 0px;
}

.job-error-text .publication-error-preview {
  max-width: 100%;
}

.prompts-page-shell {
  width: 100%;
  max-width: 1270px;
  margin: 0px auto;
}

.prompt-card > form > .prompt-save-row {
  margin-top: 0.35rem;
  padding-top: 1rem;
}

.prompt-card > form > .prompt-save-row + .actions {
  margin-top: 0.75rem;
}

.prompt-card > form > .test-run {
  margin-top: 1rem;
  margin-bottom: 0.15rem;
}

.prompt-card > details {
  margin: 0.9rem 1rem 1rem;
}

@media (max-width: 767.98px) {
  .sources-table td:nth-child(2), .results-table td:nth-child(3) {
    min-width: 0px;
  }

  .sources-table th, .sources-table td, .results-table th, .results-table td {
    width: auto !important;
    white-space: normal !important;
  }

  .source-generation-actions, .publication-access-actions {
    flex-wrap: wrap;
  }
}

.table-shell-1270, .content-shell-1270 {
  width: 100%;
  max-width: 1270px;
  margin-left: auto;
  margin-right: auto;
}

.sources-table, .results-table, .jobs-table, .publication-history-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

.sources-table .col-fill, .results-table .col-fill, .sources-table th:nth-child(2), .sources-table td:nth-child(2), .results-table th:nth-child(3), .results-table td:nth-child(3), .jobs-table th:nth-child(1), .jobs-table td:nth-child(1), .publication-history-table th:nth-child(2), .publication-history-table td:nth-child(2) {
  width: 100%;
}

.sources-table .col-id, .sources-table .col-chars, .sources-table .col-used, .sources-table .col-added, .sources-table .col-generations, .results-table .col-id, .results-table .col-chars, .results-table .col-date, .results-table .col-status, .results-table .col-publication-access, .sources-table th, .sources-table td, .results-table th, .results-table td, .jobs-table th, .jobs-table td, .publication-history-table th, .publication-history-table td {
  width: auto;
}

.sources-table td:nth-child(2) > strong, .results-table td:nth-child(3) > strong, .jobs-table td:nth-child(1) > strong, .publication-history-table td:nth-child(2) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.sources-table td:nth-child(2) > strong > a, .results-table td:nth-child(3) > strong > a, .jobs-table td:nth-child(1) > strong > a {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.sources-table .source-generation-actions .btn, .sources-table .source-generation-actions button, .results-table .publication-access-actions .btn, .results-table .publication-access-actions button, .jobs-table .actions .btn, .jobs-table .actions button {
  font-size: 1em;
}

.source-generation-actions, .publication-access-actions, .jobs-table .actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.source-generation-actions form, .publication-access-actions form, .jobs-table .actions form {
  margin: 0px;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .sources-table .col-generations, .sources-table th:nth-child(6), .sources-table td:nth-child(6) {
    min-width: 12rem;
    white-space: nowrap;
  }

  .source-generation-actions {
    flex-wrap: nowrap;
  }
}

.publication-history-table .publication-error-preview {
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .table-shell-1270, .content-shell-1270 {
    max-width: 100%;
  }

  .sources-table th:nth-child(2), .sources-table td:nth-child(2), .results-table th:nth-child(3), .results-table td:nth-child(3), .jobs-table th:nth-child(1), .jobs-table td:nth-child(1), .publication-history-table th:nth-child(2), .publication-history-table td:nth-child(2) {
    width: auto;
  }
}

.table-card, .table-card .card-header, .table-card .card-footer {
  min-width: 0px;
}

.table-card .pagination {
  flex-wrap: wrap;
}

.table td, .table th {
  max-width: 100%;
}

.table td form {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .publication-overview {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .publication-manager {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .publication-overview {
    grid-template-columns: 1fr;
  }

  .publication-manager {
    grid-column: auto;
  }

  .dcm-auth-widget .card-body {
    grid-template-columns: auto minmax(0px, 1fr);
    gap: 0.55rem;
  }

  .dcm-auth-widget .badge {
    grid-column: 2;
    justify-self: start;
  }

  .publication-manager .card-body {
    grid-template-columns: 1fr;
  }

  .publication-manager form .btn {
    width: 100%;
  }

  .dcm-system-notice {
    top: calc(var(--dcm-header-height) + .5rem);
    width: calc(-1rem + 100vw);
  }

  .dcm-scroll-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

:root {
  --tblr-border-radius: .5rem;
  --tblr-border-radius-sm: .375rem;
  --tblr-border-radius-lg: .75rem;
  --tblr-border-radius-pill: 999px;
  --dcm-surface: #ffffff;
  --dcm-surface-muted: #f8fafc;
  --dcm-surface-soft: #f1f5f9;
  --dcm-surface-hover: #f6f9fd;
  --dcm-primary: #206bc4;
  --dcm-primary-hover: #1b5aa6;
  --dcm-shadow-hover: 0 2px 5px rgba(15,23,42,.055),0 12px 30px rgba(15,23,42,.05);
}

body {
  color: var(--dcm-text);
  letter-spacing: 0px;
}

.dcm-main {
  width: 100%;
  margin: 0px auto;
  max-width: 1440px !important;
}

.page-head {
  margin-top: 0px;
  margin-right: 0px;
  margin-left: 0px;
  padding: 0px;
  border-bottom: 0px;
}

.page-head h1 {
  font-size: 1.8rem;
  line-height: 1.16;
  color: var(--dcm-heading);
  font-weight: 760;
  letter-spacing: -0.025em;
}

.page-head p {
  color: var(--dcm-muted);
}

.section-head {
  align-items: center;
  margin: 1.75rem 0px 0.75rem;
}

.section-head h2, .section-title {
  font-size: 1.18rem;
  color: var(--dcm-heading);
  font-weight: 720;
}

.section-head p {
  color: var(--dcm-muted);
}

h1, h2, h3, .card-title {
  color: var(--dcm-heading);
}

p, li, dd, td {
  color: var(--dcm-text);
}

.muted, .text-muted, .text-secondary {
  color: var(--dcm-muted) !important;
}

a {
  color: var(--dcm-primary);
  font-weight: 600;
}

a:hover {
  color: var(--dcm-primary-hover);
}

.content, .prompt-preview, .prompt-editor {
  color: rgb(31, 45, 61);
  line-height: 1.68;
}

code {
  background: rgb(241, 245, 249);
  color: rgb(51, 65, 85);
  border-radius: 0.3rem;
  padding: 0.08rem 0.28rem;
}

.card {
  box-shadow: var(--dcm-shadow);
  overflow: hidden;
}

.card-header {
  padding: 0.82rem 1rem;
  background: rgb(255, 255, 255);
}

.card-body {
  padding: 1rem;
}

.card-footer {
  padding: 0.72rem 1rem;
}

.card-subtitle {
  color: var(--dcm-muted);
}

.table-card {
  box-shadow: var(--dcm-shadow);
}

.empty-state {
  background: linear-gradient(rgb(255, 255, 255), rgb(251, 252, 254));
  border-style: dashed;
  box-shadow: none;
}

details.card > summary {
  min-height: 3.25rem;
  padding: 0.78rem 1rem;
  background: rgb(255, 255, 255);
  color: rgb(51, 65, 85);
  font-weight: 680;
  transition: background-color 0.15s, color 0.15s;
}

details.card > summary:hover {
  color: var(--dcm-heading);
}

details.card[open] > summary {
  background: rgb(251, 252, 254);
  border-bottom-color: var(--dcm-border);
}

details.card > summary::after {
  width: 1.7rem;
  height: 1.7rem;
  border: 0px;
  border-radius: 50%;
  background: rgb(238, 243, 248);
  color: rgb(92, 107, 125);
  font-weight: 600;
}

.artifact-meta {
  color: var(--dcm-muted);
}

.artifact-version {
  border-bottom-color: var(--dcm-border);
}

button:not(.btn):not(.navbar-toggler):not(.btn-close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.48rem 0.88rem;
  color: rgb(255, 255, 255);
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

button:not(.btn):not(.navbar-toggler):not(.btn-close):focus-visible, .btn:focus-visible {
  outline: 0px;
  box-shadow: 0 0 0 3px var(--dcm-focus) !important;
}

button:not(.btn):not(.navbar-toggler):not(.btn-close):active {
  transform: translateY(1px);
}

button:not(.btn):not(.navbar-toggler):not(.btn-close):disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.secondary, button.secondary:not(.btn), a.secondary.btn {
  border-color: rgb(203, 213, 225) !important;
  background: rgb(255, 255, 255) !important;
  color: rgb(64, 81, 106) !important;
}

.secondary:hover, button.secondary:not(.btn):hover, a.secondary.btn:hover {
  border-color: rgb(174, 185, 199) !important;
  background: rgb(248, 250, 252) !important;
  color: rgb(31, 45, 61) !important;
}

.btn {
  min-height: 2.5rem;
  padding: 0.48rem 0.88rem;
  font-weight: 650;
}

.btn-outline-secondary {
  border-color: rgb(203, 213, 225);
  color: rgb(64, 81, 106);
  background: rgb(255, 255, 255);
}

.btn-outline-danger {
  background: rgb(255, 255, 255);
}

label, .field-caption {
  color: rgb(51, 65, 85);
}

.form-control, .form-select, textarea, select {
  border-color: rgb(215, 222, 232);
  background: rgb(255, 255, 255);
  color: rgb(36, 52, 74);
  box-shadow: rgba(15, 23, 42, 0.016) 0px 1px 1px;
}

.form-control:hover, .form-select:hover, textarea:hover, select:hover {
  border-color: rgb(196, 207, 221);
}

.form-control:focus, .form-select:focus, textarea:focus, select:focus {
  border-color: rgb(139, 183, 235);
  outline: 0px;
  box-shadow: 0 0 0 3px var(--dcm-focus) !important;
}

.checkboxes label {
  background: rgb(255, 255, 255);
  color: rgb(64, 81, 106);
}

.checkboxes label:hover {
  border-color: rgb(188, 200, 214);
  background: rgb(248, 250, 252);
}

.prompt-editor {
  background: rgb(251, 252, 254);
  border-color: rgb(215, 222, 232);
}

.table {
  color: var(--dcm-text);
}

.table > :not(caption) > * > * {
  padding: 0.7rem 0.8rem;
  border-bottom-color: rgb(232, 237, 243);
}

.table thead th, .table th {
  background: rgb(247, 249, 252);
  color: rgb(100, 116, 139);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.015em;
  border-bottom-color: rgb(223, 230, 238);
}

.table td {
  line-height: 1.45;
}

.table-hover > tbody > tr:hover > * {
  background: rgb(248, 251, 255);
}

.table tbody tr:last-child td {
  border-bottom-color: transparent;
}

.table a {
  font-weight: 600;
}

.table .muted.small {
  line-height: 1.35;
}

.source-url {
  color: rgb(100, 116, 139);
  font-weight: 500;
}

.results-bulk-toolbar-row > th, .results-bulk-toolbar-row > td {
  background: rgb(248, 250, 252);
}

.results-bulk-count {
  color: rgb(82, 97, 117);
}

.table-card > .card-header.d-flex, .table-card > .card-footer.d-flex {
  gap: 0.75rem;
  background: rgb(255, 255, 255);
}

.pagination {
  gap: 0.2rem;
}

.page-link {
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0.35rem 0.55rem;
  background: transparent;
  color: rgb(82, 97, 117);
  font-weight: 600;
  border: 1px solid transparent !important;
  border-radius: 0.42rem !important;
  box-shadow: none !important;
}

.page-link:hover {
  background: rgb(238, 244, 251);
  color: var(--dcm-primary);
}

.page-item.active .page-link {
  background: rgb(232, 241, 252);
  color: rgb(24, 89, 167);
  border-color: rgb(212, 228, 247) !important;
}

.page-item.disabled .page-link {
  background: transparent;
  color: rgb(160, 170, 183);
}

.dcm-tip {
  border-color: rgb(203, 213, 225);
  background: rgb(255, 255, 255);
  color: rgb(100, 116, 139);
  border-radius: 50% !important;
}

.dcm-tip:hover {
  background: rgb(238, 244, 251);
  border-color: rgb(170, 197, 229);
  color: var(--dcm-primary);
}

.tooltip-inner {
  box-shadow: rgba(15, 23, 42, 0.18) 0px 0.75rem 2rem;
  border-radius: 0.5rem !important;
}

.dcm-tip-fallback {
  border-radius: 0.5rem !important;
}

.config-banner {
  border-left: 3px solid rgb(143, 182, 228);
  background: rgb(251, 253, 255);
  box-shadow: none;
}

.prompt-jump-nav {
  padding: 0.7rem;
  background: rgb(255, 255, 255);
  box-shadow: var(--dcm-shadow);
}

.prompt-card-head {
  padding: 0.82rem 1rem;
  background: rgb(250, 251, 253);
  border-bottom-color: var(--dcm-border);
}

.prompt-preview {
  background: rgb(251, 252, 254);
}

.variables code {
  background: rgb(241, 245, 249);
  border-color: rgb(225, 232, 240);
  color: rgb(51, 65, 85);
}

.result-head {
  border-left: 3px solid rgb(123, 169, 223);
  box-shadow: var(--dcm-shadow);
  background: rgb(255, 255, 255);
}

.result-stats {
  border-left-color: var(--dcm-border);
}

.result-stats > strong {
  color: var(--dcm-heading);
}

.generation-job-stats-grid {
  gap: 0.8rem;
}

.generation-job-stats-grid .card {
  box-shadow: var(--dcm-shadow);
}

.generation-job-stats-grid .card-body {
  padding: 0.9rem 1rem;
}

.generation-job-stats-grid .subheader {
  color: rgb(100, 116, 139);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.generation-job-stats-grid .h1 {
  font-size: 1.55rem;
  color: var(--dcm-heading);
}

.generation-job-stat-link {
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.generation-job-stat-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--dcm-shadow-hover);
}

.generation-queue-lock {
  border-left-color: rgb(230, 167, 0);
  background: rgb(255, 250, 240);
}

.publication-overview {
  gap: 0.8rem;
}

.dcm-auth-widget, .publication-manager {
  box-shadow: var(--dcm-shadow);
}

.dcm-auth-widget .card-body, .publication-manager .card-body {
  padding: 0.82rem 0.9rem;
}

.dcm-auth-widget.is-ok {
  background: rgb(251, 254, 252);
}

.dcm-auth-widget.is-warning {
  background: rgb(255, 253, 247);
}

.dcm-auth-widget.is-error {
  background: rgb(255, 250, 250);
}

.schedule-card-new {
  background: rgb(251, 253, 255);
  border-color: rgb(191, 208, 226);
}

.schedule-card-new .card-header, .schedule-card-new .card-footer {
  background: rgb(247, 250, 255);
}

.schedule-card-existing {
  border-left-color: rgb(103, 183, 121);
  box-shadow: var(--dcm-shadow);
}

.schedule-card-existing .card-header {
  background: rgb(251, 254, 252);
}

.schedule-label {
  color: rgb(71, 85, 105);
}

.publication-rules-head {
  border-top-color: var(--dcm-border);
}

.dcm-system-notice {
  box-shadow: rgba(15, 23, 42, 0.16) 0px 0.9rem 2.5rem;
}

.dcm-loader {
  background: rgba(244, 247, 251, 0.92);
}

.dcm-scroll-top {
  border-radius: 50% !important;
  box-shadow: rgba(15, 23, 42, 0.18) 0px 0.5rem 1.4rem !important;
}

.dcm-login-brand {
  color: var(--dcm-heading);
  letter-spacing: 0.02em;
}

.page-center .card {
  box-shadow: rgba(15, 23, 42, 0.08) 0px 1rem 3rem;
}

.badge {
  border-radius: 999px !important;
}

.form-check-input {
  border-radius: 0.3rem !important;
}

.dcm-tip, .dcm-scroll-top {
  border-radius: 50% !important;
}

@media (max-width: 991.98px) {
  .dcm-main {
    padding-top: 1.25rem;
  }

  .section-head {
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .dcm-main {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .page-head h1 {
    font-size: 1.55rem;
  }

  .section-head {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.35rem;
  }

  .section-head > form {
    width: 100%;
  }

  .section-head > form .btn, .section-head > form button {
    width: 100%;
  }

  .form-control, .form-select, textarea, select {
    font-size: 16px;
  }

  .adaptive tbody {
    background: transparent;
  }

  .adaptive tr {
    margin: 0px;
    padding: 0.7rem 0.78rem;
    background: rgb(255, 255, 255);
  }

  .table-card .adaptive tr:last-child {
    border-bottom: 0px;
  }

  .table-card > .card-header.d-flex, .table-card > .card-footer.d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .table-card .pagination {
    width: 100%;
    margin-left: 0px !important;
  }

  .page-link {
    min-width: 2.1rem;
    min-height: 2.1rem;
  }

  .result-head {
    padding: 0.9rem;
  }

  .result-stats {
    border-top-color: var(--dcm-border);
  }
}

@media (max-width: 575.98px) {
  .actions {
    gap: 0.4rem;
  }

  button:not(.btn):not(.navbar-toggler):not(.btn-close), .btn {
    min-height: 2.65rem;
  }

  .generation-job-stats-grid {
    gap: 0.55rem;
  }

  .generation-job-stats-grid .card-body {
    padding: 0.75rem 0.8rem;
  }

  .generation-job-stats-grid .h1 {
    font-size: 1.35rem;
  }

  .results-bulk-controls {
    gap: 0.4rem;
  }
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), textarea, select {
  display: block;
  width: 100%;
  min-height: 2.58rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgb(215, 222, 232);
  background: rgb(255, 255, 255);
  color: rgb(36, 52, 74);
  line-height: 1.35;
  box-shadow: rgba(15, 23, 42, 0.016) 0px 1px 1px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

textarea {
  min-height: auto;
  padding: 0.68rem 0.75rem;
}

.results-bulk-controls select {
  width: auto;
  min-width: 220px;
}

.checkboxes input[type="checkbox"], .prompt-save-row input[type="checkbox"] {
  flex: 0 0 auto;
}

.actions {
  gap: 0.5rem;
  margin: 0.75rem 0px;
}

.actions form {
  display: flex;
  align-items: center;
}

.publication-access-actions, .source-generation-actions {
  gap: 0.4rem;
}

.dropdown-menu {
  background: rgb(255, 255, 255);
  box-shadow: rgba(15, 23, 42, 0.1) 0px 0.75rem 2rem;
}

.dropdown-item {
  color: rgb(51, 65, 85);
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgb(245, 248, 252);
  color: var(--dcm-heading);
}

.dcm-tip, .btn.dcm-tip {
  place-items: center;
  flex-grow: 0;
  flex-shrink: 0;
  display: inline-grid !important;
  padding: 0px !important;
  border-radius: 50% !important;
  line-height: 1 !important;
}

.tooltip-inner, .dcm-tip-fallback {
  max-width: 480px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgb(15, 23, 32);
  background: rgb(24, 36, 51);
  color: rgb(255, 255, 255);
  box-shadow: rgba(15, 23, 42, 0.18) 0px 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 0.5rem !important;
}

.table-date-time, .result-date-time, .table td[data-label="Дата"], .table td[data-label="Дата и время"], .table td[data-label="Когда"], .table td[data-label="Добавлено"], .table td[data-label="Добавлен"] {
  letter-spacing: inherit;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.prompt-save-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.45rem;
  padding-top: 1rem;
}

.test-run {
  overflow: hidden;
  background: rgb(251, 252, 254);
}

.test-run > summary {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.7rem 0.9rem;
  background: rgb(248, 250, 252);
  color: rgb(63, 78, 98);
  font-weight: 700;
}

.test-run[open] > summary {
  background: rgb(245, 248, 252);
}

.test-run-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  background: rgb(255, 255, 255);
}

.test-run-body > label, .test-run-body > p {
  margin: 0px;
}

.test-run-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.05rem;
}

@media (max-width: 767.98px) {
  .prompt-save-actions {
    flex-direction: column;
  }

  .prompt-save-actions > .btn, .prompt-save-actions > button, .prompt-activate-switch {
    width: 100%;
  }

  .prompt-activate-switch {
    justify-content: flex-start;
  }

  .test-run-actions {
    justify-content: stretch;
  }

  .test-run-actions > .btn, .test-run-actions > button {
    width: 100%;
  }
}

:root {
  --dcm-shell-max: 1280px;
  --dcm-shell-x: clamp(.75rem,1.6vw,1.5rem);
}

.dcm-main, .table-shell-1270, .content-shell-1270, .prompts-page-shell {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--dcm-shell-max) !important;
}

.dcm-main {
  padding-top: 1.35rem !important;
  padding-bottom: 4rem !important;
}

.prompts-page-shell > .page-head, .prompts-page-shell .page-head {
  display: block !important;
}

.prompts-page-shell .page-head p {
  max-width: none;
}

.prompt-save-actions {
  align-items: center;
}

.prompt-activate-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: auto;
  margin: 0px;
  color: rgb(51, 65, 85);
  font-weight: 600;
  padding: 0px !important;
  border: 0px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.prompt-activate-switch:hover {
  color: rgb(15, 23, 42);
  border-color: transparent !important;
  background: transparent !important;
}

.prompt-activate-switch .form-check-input {
  flex: 0 0 auto;
  margin: 0px !important;
}

.prompt-activate-switch .form-check-label {
  margin: 0px 0px 0px 0.15rem;
  white-space: nowrap;
}

.tooltip {
  opacity: 1 !important;
}

.tooltip .tooltip-inner, .tooltip-inner, .dcm-tip-fallback {
  max-width: 480px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgb(15, 23, 32);
  color: rgb(255, 255, 255);
  box-shadow: rgba(15, 23, 42, 0.18) 0px 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 0.5rem !important;
  background: rgb(24, 36, 51) !important;
}

.dcm-tip-fallback {
  position: fixed;
  z-index: 1085;
}

@media (max-width: 767.98px) {
  .dcm-main {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .prompt-save-actions {
    align-items: flex-start;
    gap: 0.75rem;
  }
}

[data-dcm-header] .container-xl, .dcm-main, .table-shell-1270, .content-shell-1270, .prompts-page-shell {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px !important;
}

.dcm-main {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.dcm-navbar-logo {
  display: block;
  object-fit: contain;
  width: auto !important;
  height: 32px !important;
}

[data-dcm-header] .navbar-brand {
  display: flex;
  align-items: center;
}

.dcm-navbar-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.35rem -0.5rem;
  padding: 0.35rem 0.5rem;
  transition: background-color 0.15s;
}

.dcm-navbar-brand-link:hover, .dcm-navbar-brand-link:focus-visible {
  background: rgb(248, 250, 252);
  text-decoration: none;
}

.dcm-navbar-brand-link:focus-visible {
  outline: 0px;
  box-shadow: 0 0 0 3px var(--dcm-focus);
}

.nav-logout {
  margin: 0px;
}

.dcm-logout-button {
  position: relative;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem !important;
  padding: 0px !important;
  color: rgb(82, 97, 117) !important;
  background: transparent !important;
  line-height: 1 !important;
}

.dcm-logout-button:hover, .dcm-logout-button:focus-visible {
  color: var(--dcm-heading) !important;
  background: rgb(248, 250, 252) !important;
}

.dcm-logout-button .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  transform: translate(-50%, -50%);
  margin: 0px !important;
}

.ai-provider-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.ai-provider-disabled .form-selectgroup-label {
  color: var(--tblr-secondary,#667382);
  cursor: not-allowed;
}

.ai-provider-key-hint {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--tblr-secondary,#667382);
}

.jobs-extraction-test-body {
  padding: 1rem;
}

.jobs-extraction-test-body form {
  margin: 0px;
}

.jobs-extraction-test-result {
  display: block;
}

.jobs-extraction-test-result textarea {
  width: 100%;
  font-family: var(--tblr-font-monospace,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);
  line-height: 1.45;
  white-space: pre-wrap;
}

.result-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 1rem 0.75rem;
}

.result-text-head h2 {
  margin: 0px;
  min-width: 0px;
}

.result-book-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  padding-inline: 1rem;
  box-shadow: rgba(32, 107, 196, 0.18) 0px 0.22rem 0.7rem;
}

.result-book-button svg {
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .result-text-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-book-button {
    align-self: flex-start;
  }
}

.dcm-header-icon {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.5rem !important;
  padding: 0px !important;
  color: rgb(82, 97, 117) !important;
}

.dcm-header-icon:hover, .dcm-header-icon:focus-visible {
  text-decoration: none;
  color: var(--dcm-heading) !important;
  background: rgb(248, 250, 252) !important;
}

.dcm-header-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0px !important;
}

.generation-detail-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0px, 1fr));
  gap: 0.75rem;
}

.job-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  gap: 1rem;
}

.job-detail-meta > div, .ai-call-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0px;
}

.ai-calls-table {
  width: 100%;
  min-width: 0px;
}

.ai-calls-table th, .ai-calls-table td {
  vertical-align: top;
}

.ai-call-stage-cell, .ai-call-compact, .ai-call-number, .ai-call-actions-cell {
  white-space: nowrap;
}

.ai-call-model-cell {
  max-width: 18rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ai-call-number, .ai-call-actions-cell {
  width: 1%;
}

.ai-call-actions-cell, .ai-calls-table thead th:last-child {
  position: sticky;
  right: 0px;
  background: rgb(255, 255, 255);
  box-shadow: rgba(15, 23, 42, 0.45) -8px 0px 10px -12px;
}

.ai-call-actions-cell {
  z-index: 1;
  text-align: right;
}

.ai-calls-table thead th:last-child {
  z-index: 2;
}

.ai-calls-table tbody tr:hover .ai-call-actions-cell {
  background: rgb(248, 250, 252);
}

.ai-call-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.ai-call-action {
  flex: 0 0 2.5rem;
}

.ai-call-modal {
  --tblr-modal-width: 1120px;
}

.ai-call-modal .modal-dialog {
  max-width: min(1120px, -2rem + 100vw);
}

.ai-call-modal .modal-content {
  max-height: calc(-2rem + 100vh);
  border: 0px;
  box-shadow: rgba(15, 23, 42, 0.28) 0px 1.25rem 4rem;
}

.ai-call-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
  background: rgb(255, 255, 255);
}

.ai-call-modal .modal-title {
  font-size: 1.1rem;
  line-height: 1.35;
}

.ai-call-modal .modal-body {
  background: rgb(255, 255, 255);
  white-space: normal;
}

.ai-call-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  gap: 0.85rem 1.25rem;
}

.ai-json {
  max-height: 24rem;
  margin: 0px;
  padding: 0.75rem;
  overflow: auto;
  border: 1px solid rgb(217, 221, 227);
  border-radius: 0.375rem;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: rgb(31, 45, 61);
  background: rgb(246, 248, 250) !important;
  color: rgb(31, 45, 61) !important;
}

.ai-pricing-table {
  width: 100%;
  min-width: 0px;
  table-layout: fixed;
}

.ai-pricing-table th:nth-child(1), .ai-pricing-table td:nth-child(1) {
  width: 22%;
}

.ai-pricing-table th:nth-child(2), .ai-pricing-table td:nth-child(2), .ai-pricing-table th:nth-child(3), .ai-pricing-table td:nth-child(3) {
  width: 10%;
}

.ai-pricing-table th:nth-child(n+4), .ai-pricing-table td:nth-child(n+4) {
  width: 11.6%;
}

.ai-pricing-table th, .ai-pricing-table td {
  min-width: 0px;
}

.ai-pricing-table th {
  white-space: nowrap;
}

.ai-pricing-table input {
  min-width: 0px;
  font-variant-numeric: tabular-nums;
}

.ai-pricing-model {
  overflow-wrap: anywhere;
}

.settings-page-shell .card-subtitle {
  max-width: 72rem;
}

.settings-page-shell .card-footer {
  flex-wrap: wrap;
}

.artifact-view-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0px auto;
}

.artifact-view-content {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  .generation-detail-stats {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .job-detail-meta {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .ai-call-detail-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .generation-detail-stats, .job-detail-meta, .ai-call-detail-grid {
    grid-template-columns: 1fr;
  }

  .ai-call-modal .modal-dialog {
    max-width: calc(-1rem + 100vw);
    margin: 0.5rem;
  }

  .ai-call-modal .modal-content {
    max-height: calc(-1rem + 100vh);
  }

  .ai-call-modal .modal-header, .ai-call-modal .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 1199.98px) {
  .ai-calls-table-wrap {
    overflow: visible !important;
  }

  .ai-calls-table {
    display: block !important;
    width: 100% !important;
    min-width: 0px !important;
  }

  .ai-calls-table thead {
    display: none;
  }

  .ai-calls-table tbody {
    display: block;
    width: 100%;
  }

  .ai-calls-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 0.65rem 1rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgb(255, 255, 255);
  }

  .ai-calls-table tr:last-child {
    border-bottom: 0px;
  }

  .ai-calls-table td {
    overflow-wrap: anywhere;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0px !important;
    border: 0px !important;
    white-space: normal !important;
  }

  .ai-calls-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--tblr-secondary-color);
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .ai-calls-table .ai-call-stage-cell {
    grid-column: 1 / -1;
    padding-bottom: 0.15rem !important;
  }

  .ai-calls-table .ai-call-model-cell {
    max-width: none;
  }

  .ai-calls-table .ai-call-number {
    font-variant-numeric: tabular-nums;
  }

  .ai-calls-table .ai-call-actions-cell {
    position: static;
    grid-column: 1 / -1;
    box-shadow: none;
    text-align: left;
    background: transparent !important;
  }

  .ai-calls-table .ai-call-actions {
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .ai-calls-table tbody tr:hover .ai-call-actions-cell {
    background: transparent !important;
  }
}

@media (max-width: 575.98px) {
  .ai-calls-table tr {
    grid-template-columns: 1fr;
    padding: 0.8rem 0.75rem;
    gap: 0.55rem;
  }

  .ai-calls-table .ai-call-stage-cell, .ai-calls-table .ai-call-actions-cell {
    grid-column: auto;
  }
}

@media (max-width: 1199.98px) {
  .ai-pricing-table-wrap {
    overflow: visible !important;
  }

  .ai-pricing-table {
    display: block !important;
    width: 100% !important;
    min-width: 0px !important;
    table-layout: auto !important;
  }

  .ai-pricing-table thead {
    display: none;
  }

  .ai-pricing-table tbody {
    display: block;
    width: 100%;
  }

  .ai-pricing-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 0.7rem 1rem;
    width: 100%;
    padding: 1rem;
    background: rgb(255, 255, 255);
  }

  .ai-pricing-table tr:last-child {
    border-bottom: 0px;
  }

  .ai-pricing-table td {
    overflow-wrap: anywhere;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0px !important;
    border: 0px !important;
    white-space: normal !important;
  }

  .ai-pricing-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.16rem;
    color: var(--tblr-secondary-color);
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .ai-pricing-table .ai-pricing-model {
    grid-column: 1 / -1;
    padding-bottom: 0.15rem !important;
  }

  .ai-pricing-table .ai-pricing-model::before {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .ai-pricing-table tr {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }
}

[data-dcm-header] .container-xl, .dcm-main, .table-shell-1270, .content-shell-1270, .prompts-page-shell, .settings-page-shell {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}

.prompt-settings.prompt-settings-image {
  grid-template-columns: minmax(260px, 520px);
}

.prompt-version-preview {
  min-width: 8.5rem;
}

.prompt-version-preview > summary {
  cursor: pointer;
  color: var(--tblr-primary);
  font-weight: 600;
  white-space: nowrap;
}

.prompt-version-preview-text {
  width: min(46rem, 70vw);
  max-height: 24rem;
  margin-top: 0.5rem;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
  background: rgb(251, 252, 254);
  color: rgb(36, 52, 74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  .prompt-version-preview-text {
    width: 100%;
    max-height: none;
  }
}

body, .table {
  font-size: 0.9375rem;
}

.form-control, .form-select, textarea, select {
  font-size: 1rem;
}

.prompt-editor {
  font-size: 0.9375rem;
  line-height: 1.55;
  tab-size: 2;
}

.notice [data-dismiss-notice] {
  float: right;
  padding: 0.15rem 0.5rem;
}

.dcm-list-filters {
  display: flex;
  flex-flow: wrap;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.dcm-list-filters label {
  min-width: 160px;
  flex: 1 1 0%;
  margin: 0px;
}

.dcm-list-filters label:first-child {
  flex: 2 1 0%;
}

.dcm-list-filters .actions {
  margin: 0px;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .dcm-list-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .dcm-list-filters label {
    width: 100%;
    min-width: 0px;
  }
}

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
}

.workspace-metric {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.publication-calendar {
  display: grid;
  margin-top: 1rem;
}

.calendar-day {
  min-width: 0px;
}

.calendar-entry {
  padding: 0.6rem 0px;
  border-top-width: 1px;
  border-top-style: solid;
  overflow-wrap: anywhere;
}

.editor-workspace {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.editor-workspace > * {
  min-width: 0px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

[data-story-editor] {
  line-height: 1.65;
  height: 60vh;
  min-height: 320px;
  resize: vertical;
}

.editor-quality label {
  margin: 0.75rem 0px;
}

.comparison-output {
  max-height: 60vh;
  overflow: auto;
}

.auth-recovery-screen {
  max-width: 100%;
  height: auto;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  cursor: crosshair;
}

pre.content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-auth-recovery] fieldset {
  min-width: 0px;
}

@media (max-width: 900px) {
  .publication-calendar {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 600px) {
  .workspace-metrics, .publication-calendar {
    grid-template-columns: 1fr;
  }
}

:root {
  font-size: 100%;
  --dcm-bg: #f4f7fb;
  --dcm-heading: #162033;
  --dcm-text: #24344a;
  --dcm-muted: #526175;
  --dcm-border: #dce4ee;
  --dcm-border-strong: #b9c6d6;
  --dcm-focus: rgba(32,107,196,.22);
  --dcm-radius: .75rem;
  --dcm-radius-sm: .5rem;
  --dcm-space: 1rem;
  --dcm-gutter: clamp(1rem,2vw,2rem);
  --dcm-shadow: 0 1px 3px rgba(24,36,51,.04);
  --dcm-header-height: 7rem;
  --tblr-body-color: var(--dcm-text);
  --tblr-secondary-color: var(--dcm-muted);
}

body {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dcm-main {
  padding-inline: var(--dcm-gutter) !important;
}

[data-dcm-header] .container-xl {
  padding-inline: var(--dcm-gutter);
}

[data-dcm-header] {
  border-bottom: 1px solid var(--dcm-border);
}

[data-dcm-header] .navbar {
  box-shadow: none;
}

[data-dcm-header] .nav-link-icon {
  flex-shrink: 0;
}

[data-dcm-header] .dcm-header-icon, [data-dcm-header] .dcm-logout-button {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem !important;
}

.dcm-main h1, .page-head h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0px;
}

.dcm-main h2, .section-head h2, .section-title {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.dcm-main h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 650;
}

.page-head {
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-head p {
  max-width: 90ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0.5rem 0px 0px;
}

.page-head .actions {
  margin: 0px;
  justify-content: flex-end;
}

.dcm-main > h1 {
  margin-bottom: 0.75rem;
}

.dcm-main > h1 + p {
  color: var(--dcm-muted);
  max-width: 90ch;
  margin-bottom: 1.5rem;
}

.card {
  margin-bottom: 1rem;
  border-radius: var(--dcm-radius);
}

.btn, .form-control, .form-select, .alert, .dropdown-menu, .navbar-toggler {
  border-radius: var(--dcm-radius-sm);
}

section.card.structured-card {
  padding: 0px;
}

.card-body, .card-header, .card-footer {
  padding: 1rem;
}

.card-body > :last-child {
  margin-bottom: 0px;
}

.card-header .card-title {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
}

.card-footer {
  background: var(--dcm-surface-muted);
}

.card-header, .card-footer {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.content {
  background: var(--dcm-surface-muted);
  line-height: 1.65;
}

.result-text {
  max-width: 90ch;
  margin-inline: auto;
  background: white;
  line-height: 1.75;
  padding: 1.25rem;
  font-size: 1.0625rem;
}

.result-text-head {
  gap: 0.75rem;
}

.result-text-head h2 {
  font-size: 1.2rem;
}

.result-stats {
  max-width: 26rem;
  overflow-wrap: anywhere;
}

.result-head {
  margin-bottom: 1rem;
  min-width: 0px;
}

.result-head > div:first-child {
  min-width: 0px;
  overflow-wrap: anywhere;
}

.btn, button:not(.btn):not(.navbar-toggler):not(.btn-close) {
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.625rem 1rem;
  white-space: normal;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 2.75rem;
  padding: 0.5rem;
}

.btn-close {
  box-sizing: content-box;
  flex-shrink: 0;
}

.form-control, .form-select {
  min-height: 2.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.form-select[multiple] {
  min-height: 10rem;
  padding: 0.5rem;
}

.form-select[multiple] option {
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem;
}

.form-select[multiple] option:checked {
  background: rgb(234, 242, 252);
  color: rgb(24, 89, 167);
}

label, .field-caption {
  font-weight: 600;
}

label > input, label > select, label > textarea {
  margin-top: 0.375rem;
}

.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  vertical-align: middle;
  flex-shrink: 0;
  cursor: pointer;
}

label:has(> .form-check-input):not(.form-check):not(.form-selectgroup-item) {
  line-height: 1.6;
  cursor: pointer;
}

label > .form-check-input {
  margin: 0px 0.4rem 0px 0px;
}

.prompt-activate-switch > .form-check-input {
  width: 2rem;
}

.dcm-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.dcm-form-stack > label, .dcm-form-stack p, .dcm-form-stack .actions {
  margin: 0px;
}

.dcm-form-stack > button {
  align-self: flex-start;
}

.dcm-form-stack label {
  display: block;
  min-width: 0px;
}

.dcm-form-stack .dcm-field-narrow {
  width: min(100%, 26rem);
}

.dcm-form-stack .dcm-model-fields {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--dcm-border);
  border-radius: var(--dcm-radius-sm);
  background: var(--dcm-surface-muted);
  min-width: 0px;
}

.dcm-model-fields legend {
  float: none;
  width: auto;
  margin: 0px;
  padding: 0px 0.35rem;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
}

.dcm-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dcm-inline-form label {
  min-width: 0px;
  flex: 0 1 26rem;
}

.dcm-inline-form .btn {
  flex-shrink: 0;
}

.actions, .btn-list {
  gap: 0.5rem;
}

.actions button, .actions .btn {
  white-space: normal;
  text-align: center;
}

.dcm-tip, .btn.dcm-tip {
  flex-basis: 2rem;
  width: 2rem !important;
  min-width: 2rem !important;
  max-width: 2rem !important;
  height: 2rem !important;
  min-height: 2rem !important;
  max-height: 2rem !important;
  font-size: 0.875rem !important;
}

.dcm-system-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.6;
}

.dcm-system-notice .btn-close {
  margin-left: auto !important;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: rgb(32, 107, 196) solid 2px;
  outline-offset: 3px;
}

.form-check-input:focus-visible, summary:focus-visible {
  box-shadow: 0 0 0 3px var(--dcm-focus);
}

.badge {
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0px;
  padding: 0.25rem 0.55rem;
  white-space: normal;
}

.badge.text-green {
  background: rgb(237, 248, 240);
  color: rgb(24, 118, 59) !important;
}

.badge.text-red {
  background: rgb(255, 240, 240);
  color: rgb(180, 35, 50) !important;
}

.badge.text-yellow {
  background: rgb(255, 246, 223);
  color: rgb(128, 83, 0) !important;
}

.badge.text-orange {
  background: rgb(255, 241, 231);
  color: rgb(145, 66, 10) !important;
}

.badge.text-purple {
  background: rgb(244, 239, 251);
  color: rgb(112, 69, 173) !important;
}

.badge.text-azure, .badge.text-blue {
  background: rgb(238, 245, 255);
  color: rgb(24, 89, 167) !important;
}

.badge.text-secondary, .badge:not([class*="text-"]) {
  background: rgb(237, 241, 246);
  color: rgb(82, 97, 117) !important;
}

.table {
  font-size: 0.9375rem;
}

.table th {
  font-size: 0.8125rem;
  color: var(--dcm-muted);
  font-weight: 600;
}

.table td {
  overflow-wrap: anywhere;
}

.table-responsive {
  overflow-x: auto;
}

.table-card > .card-header, .table-card > .card-footer {
  padding: 0.875rem 1rem;
}

.table-card > .muted {
  padding: 0.875rem 1rem;
}

.adaptive td:not([data-label])::before {
  display: none;
}

/* Shared table component: the stories list is the visual reference. */
.dcm-data-table {
  --dcm-table-padding: 0.7rem 0.8rem;
  width: 100%;
  margin-bottom: 0;
}

.dcm-data-table > :not(caption) > * > * {
  padding: var(--dcm-table-padding);
}

.dcm-data-table .table-row-meta {
  margin-top: 0.2rem;
  color: var(--dcm-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.table-provenance {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.material-origin {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--dcm-border);
  border-radius: 6px;
  color: var(--dcm-muted);
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.operation-label {
  color: var(--dcm-text);
  font-weight: 600;
}

span.table-date-time {
  display: inline-block;
  line-height: 1.3;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .dcm-data-table .col-fill { width: 100%; }
  .dcm-data-table :is(.col-id, .col-number, .col-date, .col-state, .col-status, .col-actions) {
    width: 1%;
    white-space: nowrap;
  }
  .dcm-data-table :is(.badge, .btn, button) {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .jobs-table td:not(:first-child) { white-space: nowrap; }
  .jobs-table .actions { min-width: 7rem; max-width: 13rem; }
  .publication-history-table td:nth-child(2) { width: 100%; }
  .publication-history-table :is(th, td):nth-child(4),
  .publication-history-table td:nth-child(5) > a {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.empty-state {
  min-height: 10rem;
  padding: 1.5rem !important;
}

.workspace-metrics {
  gap: 1rem;
  margin-bottom: 1rem;
}

.workspace-metrics .card {
  margin: 0px;
}

.workspace-metric {
  padding: 1rem;
  gap: 0.5rem;
  color: var(--dcm-text);
  box-shadow: var(--dcm-shadow);
}

.workspace-metric span {
  color: var(--dcm-muted);
  font-weight: 500;
}

.workspace-metric strong {
  font-size: 1.75rem;
  font-weight: 650;
}

.workspace-metric:hover {
  text-decoration: none;
  border-color: rgb(166, 195, 229);
  background: rgb(251, 253, 255);
  box-shadow: var(--dcm-shadow-hover);
}

.publication-calendar {
  grid-template-columns: repeat(7, minmax(0px, 1fr));
  gap: 0.75rem;
}

.calendar-day {
  margin: 0px;
  min-height: 10rem;
}

.calendar-day .card-body {
  padding: 0.875rem;
}

.calendar-day h2 {
  font-size: 0.9375rem;
}

.calendar-entry {
  border-color: var(--dcm-border);
  line-height: 1.5;
  font-size: 0.875rem;
}

.calendar-entry .badge {
  margin-top: 0.35rem;
}

.calendar-entry time {
  color: var(--dcm-muted);
  font-variant-numeric: tabular-nums;
}

.calendar-weekday {
  color: var(--dcm-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.calendar-first {
  grid-column-start: var(--calendar-start);
}

.editor-workspace {
  grid-template-columns: minmax(0px, 3fr) minmax(18rem, 1fr);
  margin-top: 1rem;
}

.editor-toolbar {
  gap: 0.75rem;
  align-items: flex-end;
}

.editor-toolbar > span {
  padding-bottom: 0.65rem;
  color: var(--dcm-muted);
}

.editor-quality {
  position: sticky;
  top: calc(var(--dcm-header-height) + 1rem);
}

.editor-quality p {
  font-size: 0.875rem;
  line-height: 1.6;
}

[data-story-editor] {
  padding: 1rem;
}

[data-auth-recovery] [data-auth-message]:empty {
  display: none;
}

[data-auth-screen-area] {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dcm-border);
}

.auth-recovery-screen {
  border-color: var(--dcm-border-strong);
  border-radius: var(--dcm-radius-sm);
}

[data-auth-input] {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

[data-auth-input] label {
  flex: 1 1 20rem;
  min-width: 0px;
}

@media (max-width: 1199.98px) {
  .publication-calendar {
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-first {
    grid-column-start: auto;
  }
}

@media (max-width: 900px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-quality {
    position: static;
  }
}

@media (max-width: 767.98px) {
  :root {
    font-size: 100%;
    --dcm-gutter: 1rem;
    --dcm-header-height: 3.5rem;
  }

  .dcm-main h1, .page-head h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .page-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .page-head .actions {
    justify-content: flex-start;
  }

  .page-head .actions > .btn, .page-head .actions > form {
    flex: 1 1 auto;
  }

  .card-body, .card-header, .card-footer {
    padding: 1rem;
  }

  .table-responsive {
    overflow-x: auto;
  }

  .adaptive td::before {
    font-size: 0.75rem;
    color: var(--dcm-muted);
    text-transform: none;
    letter-spacing: 0px;
  }

  .result-text {
    max-width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }

  .result-stats {
    max-width: none;
  }

  .dcm-form-stack .dcm-model-fields {
    grid-template-columns: 1fr;
  }

  .dcm-form-stack > button {
    align-self: stretch;
  }

  .dcm-inline-form label {
    flex: 1 1 100%;
  }

  .dcm-inline-form > .btn {
    width: 100%;
  }

  .dcm-form-actions > .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .publication-calendar {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .calendar-day {
    min-height: 8rem;
  }

  .workspace-metrics {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .workspace-metric {
    padding: 0.875rem;
    gap: 0.4rem;
  }

  .workspace-metric span {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .workspace-metric strong {
    font-size: 1.4rem;
  }
}

@media (max-width: 359.98px) {
  .workspace-metrics, .publication-calendar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
