:root,
html[data-theme="light"] {
  --polumya-navy: #123e6c;
  --polumya-blue: #176aa4;
  --polumya-orange: #f05a38;
  --polumya-ink: #182236;
  --polumya-muted: #667085;
  --polumya-line: #dce3eb;
  --polumya-panel: #fff;
  --polumya-soft: #f4f7fa;
  --primary: var(--polumya-navy);
  --secondary: var(--polumya-blue);
  --accent: #ffd9ce;
  --header-bg: var(--polumya-navy);
  --header-color: #fff;
  --breadcrumbs-bg: #0e3156;
  --breadcrumbs-fg: #dcecff;
  --breadcrumbs-link-fg: #fff;
  --link-fg: #155f96;
  --link-hover-color: #0e446d;
  --button-bg: var(--polumya-blue);
  --button-hover-bg: var(--polumya-navy);
  --default-button-bg: var(--polumya-orange);
  --default-button-hover-bg: #c74427;
}

/* Interaction foundations: accessible focus, responsive cards and progressive disclosure. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #176aa4;
  outline-offset: 2px;
}

.polumya-nav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.polumya-nav__group summary::after {
  color: #827a98;
  content: "›";
  font-size: 16px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .15s ease;
}

.polumya-nav__group[open] summary::after { transform: rotate(90deg); }
.polumya-nav-backdrop { display: none; }

.workspace-empty--action {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.workspace-empty--action > span:nth-child(2) { display: grid; gap: 4px; }
.workspace-empty--action small { color: var(--polumya-muted); }
.workspace-empty--action a { font-size: 12px; font-weight: 800; white-space: nowrap; }
.workspace-empty__icon,
.workspace-article__placeholder {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e8f7f1;
  color: #187a57;
  font-weight: 900;
}
.workspace-empty__icon { width: 34px; height: 34px; }
.workspace-article {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--polumya-line);
  color: var(--polumya-ink);
  text-decoration: none;
}
.workspace-article:last-child { border-bottom: 0; }
.workspace-article:hover { background: var(--polumya-soft); }
.workspace-article img,
.workspace-article__placeholder { width: 78px; height: 48px; object-fit: cover; }

/* Operational overview: status first, then drill-downs. */
.operations-hero { align-items: center; }
.operations-overall {
  display: flex;
  min-width: 225px;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--polumya-line);
  border-radius: 7px;
  background: var(--polumya-panel);
}
.operations-overall > span:last-child { display: grid; gap: 4px; }
.operations-overall small { color: var(--polumya-muted); font-size: 10px; }
.operations-overall strong { font-size: 14px; }
.operations-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.operations-kpis article {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 15px 16px;
  border: 1px solid var(--polumya-line);
  border-radius: 7px;
  background: var(--polumya-panel);
}
.operations-kpis span,
.operations-kpis small { color: var(--polumya-muted); font-size: 11px; }
.operations-kpis strong { color: var(--polumya-ink); font-size: 25px; line-height: 1; }
.operations-attention { margin-bottom: 18px; }
.operations-issue,
.operations-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--polumya-line);
}
.operations-issue:last-child,
.operations-source:last-child { border-bottom: 0; }
.operations-issue > div,
.operations-source__name { display: grid; gap: 4px; }
.operations-issue small,
.operations-source small { color: var(--polumya-muted); }
.operations-issue > a { font-size: 11px; font-weight: 800; white-space: nowrap; }
.operations-clear { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 17px; border: 1px solid #cfe9df; border-radius: 7px; background: #f1faf6; color: #176b4f; }
.operations-clear > span { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 50%; background: #d8f1e7; font-weight: 900; }
.operations-clear > div { display: grid; gap: 3px; }
.operations-clear small { color: #43816b; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 18px; align-items: start; }
.operations-source { grid-template-columns: auto minmax(130px, 1fr) minmax(90px, auto) auto; color: var(--polumya-ink); text-decoration: none; }
.operations-source:hover { background: var(--polumya-soft); }
.operations-source > span:nth-child(3) { display: grid; gap: 3px; text-align: right; }
.operations-source > span:nth-child(3) strong { font-size: 11px; }
.operations-queues a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--polumya-line); color: var(--polumya-ink); text-decoration: none; }
.operations-queues a:last-child { border-bottom: 0; }
.operations-queues a:hover { background: var(--polumya-soft); }
.operations-queues a > span { display: grid; gap: 3px; }
.operations-queues small { color: var(--polumya-muted); }
.operations-queues b { min-width: 28px; padding: 5px 7px; border-radius: 999px; background: var(--polumya-soft); color: var(--polumya-blue); text-align: center; }
.operations-cost__body { display: grid; gap: 0; padding: 8px 16px 15px; }
.operations-cost__body > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--polumya-line); }
.operations-cost__body span { color: var(--polumya-muted); }
.operations-cost__body strong { max-width: 55%; overflow-wrap: anywhere; text-align: right; }
.operations-cost__body p { margin: 13px 0 0; color: var(--polumya-muted); font-size: 11px; line-height: 1.5; }
.operations-footnote { margin: 15px 2px 0; color: var(--polumya-muted); font-size: 11px; }
.operations-footnote code { padding: 2px 5px; border-radius: 3px; background: var(--polumya-panel); color: var(--polumya-ink); }

.field-list_thumbnail img,
.admin-list-thumbnail,
.editorial-list-thumbnail {
  display: block;
  width: 72px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
}
.admin-list-thumbnail--empty,
.editorial-list-thumbnail--empty {
  display: grid;
  place-items: center;
  background: #f0eef2;
  color: #9a95a1;
  font-size: 9px;
}

#changelist {
  position: relative;
  display: block;
}
#changelist-filter {
  position: absolute;
  z-index: 12;
  top: 54px;
  right: 0;
  display: none;
  width: min(300px, calc(100vw - 48px));
  max-height: min(640px, calc(100vh - 145px));
  overflow: auto;
  box-shadow: 0 14px 35px rgb(39 31 63 / 18%);
}
#changelist-filter.is-open { display: block; }
.changelist-filter-toggle { display: inline-flex; align-items: center; justify-content: center; }
.changelist-filter-toggle[aria-expanded="true"] { border-color: #007d7e; color: #006466; }
.changelist-filter-toggle--standalone { margin: 0 0 10px auto; }

.change-form:not(.model-editorialarticle) #content-main { max-width: 1040px; }
.change-form:not(.model-editorialarticle) .aligned .form-row > div,
.change-form:not(.model-editorialarticle) .aligned .form-row .flex-container {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.change-form:not(.model-editorialarticle) .aligned label {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 7px;
}
.change-form:not(.model-editorialarticle) .aligned .checkbox-row label {
  display: inline;
  margin: 0;
}
.change-form:not(.model-editorialarticle) input[type="text"],
.change-form:not(.model-editorialarticle) input[type="url"],
.change-form:not(.model-editorialarticle) input[type="email"],
.change-form:not(.model-editorialarticle) input[type="number"],
.change-form:not(.model-editorialarticle) textarea,
.change-form:not(.model-editorialarticle) select {
  box-sizing: border-box;
  width: min(100%, 760px);
  max-width: 100%;
}
.change-form:not(.model-editorialarticle) textarea { min-height: 110px; resize: vertical; }
.change-form:not(.model-editorialarticle) .submit-row { display: flex; align-items: center; gap: 8px; }
.change-form:not(.model-editorialarticle) .submit-row input { float: none; margin: 0; }

@media (max-width: 767px) {
  html { scroll-padding-bottom: 86px; }
  :where(input, select, textarea, button, a) { scroll-margin-bottom: 90px; }

  .main:not(.shifted) #content,
  .polumya-dashboard #content,
  .change-list #content,
  .change-form:not(.model-editorialarticle) #content {
    padding-right: 13px;
    padding-left: 13px;
  }
  .toggle-nav-sidebar {
    top: 68px;
    left: 8px;
    width: 40px;
    height: 40px;
    border: 1px solid #433958;
    border-radius: 6px;
    background: #241d3b;
    box-shadow: 0 6px 18px rgb(36 29 59 / 22%);
    font-size: 0;
  }
  .toggle-nav-sidebar::before {
    content: "☰" !important;
    font: 18px/1 sans-serif !important;
  }
  .main.shifted .toggle-nav-sidebar {
    left: 184px;
    border-color: #514666;
    box-shadow: none;
  }
  .main.shifted .toggle-nav-sidebar::before { content: "×" !important; font-size: 24px !important; }
  .main.shifted #nav-sidebar {
    top: 60px;
    width: 232px;
    flex-basis: 232px;
    padding-top: 16px;
  }
  .main.shifted .polumya-nav-backdrop {
    position: fixed;
    z-index: 18;
    inset: 60px 0 0;
    display: block;
    border: 0;
    background: rgb(22 18 33 / 48%);
    cursor: default;
  }

  .workspace-hero { padding-top: 48px; }
  .workspace-empty--action { grid-template-columns: 34px minmax(0, 1fr); }
  .workspace-empty--action a { grid-column: 2; white-space: normal; }
  .workspace-article { grid-template-columns: 66px minmax(0, 1fr); }
  .workspace-article img,
  .workspace-article__placeholder { width: 66px; height: 44px; }
  .workspace-article .status-chip { grid-column: 2; justify-self: start; }
  .operations-hero { padding-top: 48px; }
  .operations-overall { box-sizing: border-box; width: 100%; min-width: 0; }
  .operations-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-kpis article { padding: 13px; }
  .operations-kpis strong { font-size: 22px; }
  .operations-grid { grid-template-columns: 1fr; }
  .operations-issue { grid-template-columns: auto minmax(0, 1fr); }
  .operations-issue > a { grid-column: 2; white-space: normal; }
  .operations-source { grid-template-columns: auto minmax(0, 1fr) auto; }
  .operations-source > span:nth-child(3) { grid-column: 2; text-align: left; }
  .operations-source .status-chip { grid-column: 3; grid-row: 1; }

  #changelist-filter {
    position: static;
    width: auto;
    max-height: none;
    margin: 9px 0 0;
    box-shadow: 0 5px 18px rgb(39 31 63 / 9%);
  }
  #result_list tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }
  #result_list tbody th,
  #result_list tbody td {
    display: grid;
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    grid-column: 1 / -1;
    gap: 9px;
    width: auto !important;
    padding: 2px 0 !important;
    border: 0;
    background: transparent;
    color: #625e69;
    font-size: 11px;
    line-height: 1.35;
  }
  #result_list tbody :is(th, td)::before {
    align-self: start;
    color: #aaa6b1;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #result_list tbody .action-checkbox,
  #result_list tbody .field-action_checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    display: block;
    width: 28px !important;
    height: 28px;
    padding: 5px !important;
  }
  #result_list tbody .action-checkbox::before,
  #result_list tbody .field-action_checkbox::before { content: none; }
  #result_list tbody tr { position: relative; }
  #result_list tbody .field-title,
  #result_list tbody .field-name,
  #result_list tbody .field-key,
  #result_list tbody .field-article_title {
    display: block;
    grid-column: 1 / -1;
    padding-right: 34px !important;
    color: #155f75;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
  }
  #result_list tbody :is(.field-title, .field-name, .field-key, .field-article_title)::before { display: none; }
  #result_list tbody .field-list_thumbnail {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #result_list tbody .field-list_thumbnail::before { display: none; }
  .field-list_thumbnail img,
  .admin-list-thumbnail,
  .editorial-list-thumbnail { width: 96px; height: 58px; }
  #result_list tbody .field-status_badge,
  #result_list tbody .field-category,
  #result_list tbody .field-photo_state { display: grid; grid-column: 1 / -1; grid-row: auto; }
  #result_list tbody .field-category::before,
  #result_list tbody .field-photo_state::before { content: attr(data-label); }

  .change-form:not(.model-editorialarticle) .submit-row input[name="_continue"],
  .change-form:not(.model-editorialarticle) .submit-row input[name="_addanother"] { display: none; }
  .change-form:not(.model-editorialarticle) .submit-row input[name="_save"] { width: 100%; min-height: 42px; }
  .model-editorialarticle .editorial-editor__layout { padding-bottom: 104px; }
  .model-editorialarticle .submit-row input[name="_addanother"] { display: none; }
  .model-editorialarticle .editorial-image-empty { min-height: 145px; aspect-ratio: auto; }
}

html[data-theme="dark"] {
  --polumya-navy: #0d2947;
  --polumya-blue: #2d8bc3;
  --polumya-orange: #ff6c49;
  --polumya-ink: #edf3fa;
  --polumya-muted: #aab6c5;
  --polumya-line: #344252;
  --polumya-panel: #202a36;
  --polumya-soft: #17212c;
}

body {
  background: var(--polumya-soft);
  color: var(--polumya-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#header {
  min-height: 66px;
  padding: 0 28px;
  box-shadow: 0 2px 14px rgb(4 31 58 / 18%);
}

#branding { display: flex; align-items: center; }

.polumya-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  text-decoration: none;
}

.polumya-brand__mark {
  display: inline-block;
  width: 15px;
  height: 27px;
  border-radius: 70% 35% 70% 40%;
  background: var(--polumya-orange);
  transform: rotate(28deg);
}

.polumya-brand strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.polumya-brand small { display: block; margin-top: 4px; color: #bfd5e8; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.polumya-user-label { margin-right: 5px; color: #aecdE4; }
.polumya-separator { margin: 0 5px; color: #6f96b8; }
.polumya-site-link { margin-left: 22px; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 5px; color: #fff !important; font-size: 12px; font-weight: 800; text-decoration: none; }

.main > .content { min-width: 0; }
#content { padding: 28px 34px 40px; }
.polumya-dashboard #content { width: auto; max-width: 1500px; }
.breadcrumbs { padding: 12px 34px; }

#nav-sidebar {
  width: 260px;
  flex: 0 0 260px;
  padding: 18px 12px 40px;
  border-right: 1px solid var(--polumya-line);
  background: var(--polumya-panel);
}

.toggle-nav-sidebar { background-color: var(--polumya-panel); border-color: var(--polumya-line); }
#nav-filter { box-sizing: border-box; width: 100%; margin: 10px 0 18px; padding: 10px 12px; border: 1px solid var(--polumya-line); border-radius: 6px; background: var(--body-bg); }
.polumya-nav__home { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 6px; color: var(--polumya-ink) !important; text-decoration: none; }
.polumya-nav__home.is-active { background: var(--polumya-navy); color: #fff !important; }
.polumya-nav__group { margin: 6px 0; }
.polumya-nav__group summary { cursor: pointer; padding: 10px 12px 7px; color: var(--polumya-muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; list-style: none; text-transform: uppercase; }
.polumya-nav__group summary::-webkit-details-marker { display: none; }
.polumya-nav__group ul { margin: 0; padding: 0; list-style: none; }
.polumya-nav__group li { padding: 0; }
.polumya-nav__group a { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0; padding: 9px 12px; border-radius: 6px; color: var(--polumya-ink); text-decoration: none; }
.polumya-nav__group a:hover { background: var(--polumya-soft); }
.polumya-nav__group a.is-active { background: color-mix(in srgb, var(--polumya-blue) 13%, var(--polumya-panel)); color: var(--polumya-blue); font-weight: 800; }
.polumya-nav__group a b { min-width: 24px; padding: 2px 6px; border-radius: 999px; background: var(--polumya-soft); color: var(--polumya-muted); font-size: 10px; text-align: center; }

.workspace-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.workspace-eyebrow,
.workspace-panel__heading p { margin: 0 0 5px; color: var(--polumya-orange); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.workspace-hero h1 { margin: 0; color: var(--polumya-ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.workspace-hero > div > p:last-child { margin: 8px 0 0; color: var(--polumya-muted); font-size: 15px; }
.workspace-hero__actions { display: flex; gap: 9px; }
.workspace-hero__actions .button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 5px; background: var(--polumya-orange); color: #fff; font-weight: 800; }
.workspace-hero__actions .button--quiet { border: 1px solid var(--polumya-line); background: var(--polumya-panel); color: var(--polumya-ink); }

.workspace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.workspace-metric { position: relative; display: flex; min-height: 90px; flex-direction: column; justify-content: space-between; padding: 17px 18px; overflow: hidden; border: 1px solid var(--polumya-line); border-radius: 8px; background: var(--polumya-panel); color: var(--polumya-ink) !important; text-decoration: none; box-shadow: 0 4px 18px rgb(21 46 75 / 5%); }
.workspace-metric::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--polumya-line); content: ""; }
.workspace-metric--attention::before { background: var(--polumya-orange); }
.workspace-metric--ready::before { background: #1f9d71; }
.workspace-metric--info::before { background: var(--polumya-blue); }
.workspace-metric--done::before { background: #5b72be; }
.workspace-metric span { color: var(--polumya-muted); font-size: 12px; font-weight: 750; }
.workspace-metric strong { font-size: 32px; line-height: 1; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.workspace-stack { display: grid; align-content: start; gap: 18px; }
.workspace-panel { min-width: 0; border: 1px solid var(--polumya-line); border-radius: 8px; background: var(--polumya-panel); box-shadow: 0 4px 18px rgb(21 46 75 / 5%); }
.workspace-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--polumya-line); }
.workspace-panel__heading h2 { margin: 0; color: var(--polumya-ink); font-size: 18px; }
.workspace-panel__heading > a { font-size: 12px; font-weight: 800; }
.workspace-queue__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--polumya-line); color: var(--polumya-ink); text-decoration: none; }
.workspace-queue__item:last-child { border-bottom: 0; }
.workspace-queue__item:hover { background: var(--polumya-soft); }
.workspace-queue__copy { display: grid; gap: 5px; min-width: 0; }
.workspace-queue__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-queue__copy small { color: var(--polumya-muted); }
.status-chip { flex: none; padding: 5px 8px; border-radius: 999px; background: #fff1ed; color: #ad351d; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.status-chip--done { background: #e8f7f1; color: #187a57; }
.status-chip--ready { background: #e8f7f1; color: #187a57; }
.status-chip--attention { background: #fff1ed; color: #ad351d; }
.status-chip--quiet { background: var(--polumya-soft); color: var(--polumya-muted); }
.workspace-empty { display: grid; gap: 5px; padding: 28px 20px; color: var(--polumya-muted); }

.workspace-actions a { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--polumya-line); color: var(--polumya-ink); text-decoration: none; }
.workspace-actions a:last-child { border-bottom: 0; }
.workspace-actions a:hover { background: var(--polumya-soft); }
.workspace-actions a > span { grid-row: span 2; color: var(--polumya-orange); font-size: 10px; font-weight: 850; }
.workspace-actions small { margin-top: 3px; color: var(--polumya-muted); }
.workspace-health ul { margin: 0; padding: 7px 18px; list-style: none; }
.workspace-health li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.workspace-health li > div { display: grid; gap: 3px; }
.workspace-health small { color: var(--polumya-muted); }
.health-dot { width: 9px; height: 9px; border-radius: 50%; background: #aab3c0; box-shadow: 0 0 0 4px rgb(170 179 192 / 15%); }
.health-dot--ok { background: #1f9d71; box-shadow: 0 0 0 4px rgb(31 157 113 / 13%); }
.health-dot--paused { background: #e9a23b; box-shadow: 0 0 0 4px rgb(233 162 59 / 15%); }
.health-dot--alert { background: #d53a3a; box-shadow: 0 0 0 4px rgb(213 58 58 / 15%); }
.workspace-recent { margin-top: 18px; }
.workspace-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-log > div { display: flex; gap: 10px; padding: 13px 20px; border-bottom: 1px solid var(--polumya-line); }
.workspace-log__verb { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 50%; background: var(--polumya-soft); color: var(--polumya-blue); font-weight: 900; }
.workspace-log p { display: grid; gap: 4px; margin: 0; }
.workspace-log small { color: var(--polumya-muted); }

.module,
#changelist .actions,
.submit-row,
fieldset.module { border-radius: 7px; overflow: hidden; }
#changelist table { border: 1px solid var(--polumya-line); border-radius: 7px; background: var(--polumya-panel); }
#changelist table thead th { padding-top: 11px; padding-bottom: 11px; background: var(--polumya-soft); }
#changelist table tbody tr:hover { background: color-mix(in srgb, var(--polumya-blue) 5%, var(--polumya-panel)); }
.object-tools a:link,
.object-tools a:visited { border-radius: 5px; background: var(--polumya-blue); }
.object-tools .magazine-to-editor-form { margin: 0; padding: 0; }
.object-tools .magazine-to-editor-form button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 5px; background: var(--polumya-orange); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.magazine-editor-note { margin: 0 0 18px; padding: 13px 15px; border-left: 4px solid var(--polumya-orange); border-radius: 5px; background: var(--polumya-soft); color: var(--polumya-muted); line-height: 1.5; }
input[type="submit"].default,
.submit-row input.default { background: var(--polumya-orange); }

.settings-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--polumya-line);
  border-left: 4px solid var(--polumya-orange);
  border-radius: 7px;
  background: var(--polumya-panel);
}

.settings-intro > div { display: flex; align-items: center; gap: 14px; }
.settings-intro__icon { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 8px; background: var(--polumya-navy); color: #fff; font-size: 11px; font-weight: 900; }
.settings-intro p { display: grid; gap: 5px; margin: 0; }
.settings-intro strong { color: var(--polumya-ink); font-size: 15px; }
.settings-intro small { max-width: 620px; color: var(--polumya-muted); line-height: 1.45; }

.model-magazinefactpack textarea[name="facts"] { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.55; }
.model-magazinefactpack .form-row input[type="text"],
.model-magazinefactpack .form-row input[type="url"],
.model-magazinefactpack .form-row textarea { width: min(100%, 880px); }

.model-editorialarticle.change-form #content-main { max-width: 1120px; }
.model-editorialarticle .form-row textarea,
.model-editorialarticle .form-row input[type="text"] { box-sizing: border-box; width: min(100%, 920px); }
.model-editorialarticle .form-row.field-body textarea { min-height: 430px; font-size: 16px; line-height: 1.65; }
.model-editorialarticle .form-row.field-title textarea { font-size: 20px; font-weight: 750; line-height: 1.25; }
.model-editorialarticle fieldset h2 { padding: 13px 16px; background: var(--polumya-navy); color: #fff; font-size: 13px; }
.model-editorialarticle fieldset .description { padding: 12px 16px 0; color: var(--polumya-muted); }
.editorial-image-preview { width: min(100%, 640px); overflow: hidden; border: 1px solid var(--polumya-line); border-radius: 8px; background: var(--polumya-soft); }
.editorial-image-preview img { display: block; width: 100%; max-height: 390px; object-fit: cover; }
.editorial-image-empty { display: inline-flex; padding: 22px; border: 1px dashed var(--polumya-line); border-radius: 7px; color: var(--polumya-muted); background: var(--polumya-soft); }

.model-articleurlimport #content-main { max-width: 1120px; }
.url-import-intro { margin: 0 0 18px; }
.url-import-intro h1 { margin: 0 0 8px; }
.url-import-intro > p:last-child { max-width: 780px; color: var(--polumya-muted); font-size: 14px; line-height: 1.55; }
.url-import-fields { max-width: 1040px; padding: 6px 18px; background: var(--polumya-panel); }
.url-import-fields .form-row { display: grid; gap: 8px; padding: 16px 0; overflow: visible; }
.url-import-fields .form-row > label { display: block; width: auto; padding: 0; color: var(--polumya-ink); font-weight: 750; }
.url-import-fields textarea { box-sizing: border-box; width: 100%; max-width: 920px; min-height: 86px; resize: vertical; }
.url-import-fields textarea[name="urls"] { min-height: 150px; }
.url-import-fields .help { max-width: 900px; margin: 0 !important; padding: 0 !important; color: var(--polumya-muted); line-height: 1.4; }
.url-import-rights { display: flex !important; align-items: flex-start; gap: 9px; }
.url-import-rights input { flex: none; margin: 2px 0 0; }
.url-import-preview { margin-top: 22px; padding: 24px; border: 1px solid var(--polumya-line); border-radius: 8px; background: var(--polumya-panel); box-shadow: 0 4px 18px rgb(21 46 75 / 5%); }
.url-import-preview > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--polumya-line); }
.url-import-preview h2 { margin: 0; color: var(--polumya-ink); font-size: 25px; line-height: 1.2; }
.url-import-preview__teaser { margin: 20px 0; color: var(--polumya-ink); font-size: 17px; font-weight: 750; line-height: 1.5; }
.url-import-preview__body { max-width: 820px; color: var(--polumya-ink); font-size: 15px; line-height: 1.65; }
.url-import-selection { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--polumya-line); }
.url-import-selection__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.url-import-selection__heading h3 { margin: 0 0 5px; font-size: 18px; }
.url-import-selection__heading p { margin: 0; color: var(--polumya-muted); }
.url-import-selection__heading > strong { flex: none; padding: 7px 10px; border-radius: 999px; background: var(--polumya-soft); color: var(--polumya-blue); font-size: 12px; }
.url-import-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.url-import-image-card { position: relative; display: grid; gap: 8px; margin: 0 !important; padding: 9px; border: 2px solid transparent; border-radius: 8px; background: var(--polumya-soft); cursor: pointer; }
.url-import-image-card:has(input:checked) { border-color: var(--polumya-orange); background: color-mix(in srgb, var(--polumya-orange) 7%, var(--polumya-panel)); }
.url-import-image-card input { position: absolute; z-index: 2; top: 17px; left: 17px; width: 20px; height: 20px; }
.url-import-image-card img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 5px; object-fit: cover; }
.url-import-image-card span { color: var(--polumya-ink); font-size: 12px; font-weight: 800; }
.url-import-complete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px; border-radius: 7px; background: #e8f7f1; }
.url-import-complete .button { background: var(--polumya-blue); color: #fff; }

@media (max-width: 1100px) {
  .workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-grid { grid-template-columns: 1fr; }
  .operations-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  #header { min-height: auto; padding: 12px 16px; }
  #user-tools { margin-top: 8px; }
  .polumya-site-link { display: none; }
  #content { padding: 20px 14px 32px; }
  .breadcrumbs { display: none; }
  #nav-sidebar { display: block !important; }
  .main:not(.shifted) #nav-sidebar { margin-left: -260px; }
  .main:not(.shifted) #content { padding-left: 38px; }
  .toggle-nav-sidebar { display: block !important; position: fixed; z-index: 30; top: 132px; left: 0; width: 24px; height: 42px; border-radius: 0 5px 5px 0; box-shadow: 3px 3px 12px rgb(4 31 58 / 16%); }
  .main.shifted #nav-sidebar { position: fixed; z-index: 20; top: 122px; bottom: 0; left: 0 !important; min-height: 0; overflow-y: auto; box-shadow: 8px 0 22px rgb(4 31 58 / 18%); }
  .main.shifted .content { min-width: 0; }
  .workspace-hero { align-items: flex-start; flex-direction: column; }
  .workspace-hero__actions { width: 100%; flex-wrap: wrap; }
  .workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-metric { min-height: 74px; padding: 14px; }
  .workspace-metric strong { font-size: 27px; }
  .workspace-queue__item { align-items: flex-start; flex-direction: column; }
  .workspace-queue__copy strong { white-space: normal; }
  .workspace-log { grid-template-columns: 1fr; }
  .model-editorialarticle .form-row.field-body textarea { min-height: 340px; }
  .model-editorialarticle .submit-row { position: sticky; z-index: 8; bottom: 0; box-shadow: 0 -5px 18px rgb(4 31 58 / 12%); }
  .url-import-preview { padding: 17px; }
  .url-import-preview > header,
  .url-import-selection__heading,
  .url-import-complete { align-items: stretch; flex-direction: column; }
  .url-import-image-grid { grid-template-columns: 1fr; }
}

/* Compact editorial shell with the light navigation selected for Polumya. */
:root,
html[data-theme="light"] {
  --polumya-navy: #193f69;
  --polumya-blue: #176aa4;
  --polumya-orange: #f05a38;
  --polumya-ink: #1d2b3e;
  --polumya-muted: #627187;
  --polumya-line: #dce4ee;
  --polumya-panel: #fff;
  --polumya-soft: #f5f8fc;
  --header-bg: #193f69;
  --breadcrumbs-bg: #24598d;
  --button-bg: #176aa4;
  --button-hover-bg: #124f7e;
}

#header {
  min-height: 60px;
  padding: 0 24px;
  box-shadow: none;
}

.polumya-brand strong { font-size: 21px; }
.polumya-brand small { color: #d8e6f6; font-size: 9px; }
.polumya-site-link { border-color: rgb(255 255 255 / 22%); }
.breadcrumbs { padding: 9px 28px; }
#content { padding: 24px 28px 40px; }

#nav-sidebar {
  width: 232px;
  flex: 0 0 232px;
  padding: 15px 10px 38px;
  border-right: 1px solid var(--polumya-line);
  background: #fff;
  color: var(--polumya-ink);
  box-shadow: none;
}

.toggle-nav-sidebar {
  border-color: var(--polumya-line);
  background-color: #fff;
}

.toggle-nav-sidebar::before { color: var(--polumya-navy); }
.polumya-nav__caption { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 9px; color: var(--polumya-muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.polumya-nav__caption kbd { padding: 3px 6px; border: 1px solid var(--polumya-line); border-radius: 4px; color: var(--polumya-muted); font: 9px/1 ui-monospace, monospace; letter-spacing: 0; }

#nav-filter {
  margin: 8px 0 13px;
  padding: 9px 11px;
  border: 1px solid var(--polumya-line);
  border-radius: 5px;
  background: #fff;
  color: var(--polumya-ink);
}

#nav-filter::placeholder { color: #748299; }
#nav-filter:focus { border-color: var(--polumya-blue); box-shadow: 0 0 0 2px rgb(23 106 164 / 16%); }
.polumya-nav__home { gap: 7px; padding: 9px 10px; color: var(--polumya-ink) !important; }
.polumya-nav__home:hover { background: var(--polumya-soft); }
.polumya-nav__home.is-active { background: var(--polumya-navy); color: #fff !important; }
.polumya-nav__group { margin: 5px 0 9px; }
.polumya-nav__group summary { padding: 9px 10px 5px; color: var(--polumya-muted); font-size: 9px; }
.polumya-nav__group a { min-height: 30px; margin: 1px 0; padding: 5px 8px; color: var(--polumya-ink); font-size: 12px; }
.polumya-nav__group a:hover { background: var(--polumya-soft); color: var(--polumya-navy); }
.polumya-nav__group a.is-active { background: var(--polumya-navy); color: #fff; box-shadow: none; }
.polumya-nav__group a b { min-width: 20px; padding: 2px 5px; background: #eef3f9; color: var(--polumya-navy); font-size: 9px; }
.polumya-nav__group a.is-active b { background: #fff; color: var(--polumya-navy); }
.polumya-nav__label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.polumya-nav__icon { display: inline-grid; width: 20px; height: 20px; flex: none; place-items: center; border-radius: 4px; color: var(--polumya-muted); font: normal 13px/1 ui-sans-serif, sans-serif; }
.polumya-nav__home.is-active .polumya-nav__icon,
.polumya-nav__group a.is-active .polumya-nav__icon { color: #fff; }
.polumya-nav__account { display: none; }

html[data-theme="dark"] #nav-sidebar { border-color: #344b63; background: #182332; color: #e9f1fb; }
html[data-theme="dark"] .polumya-nav__caption,
html[data-theme="dark"] .polumya-nav__group summary,
html[data-theme="dark"] .polumya-nav__icon { color: #b9c7d8; }
html[data-theme="dark"] .polumya-nav__home { color: #e9f1fb !important; }
html[data-theme="dark"] .polumya-nav__home:hover,
html[data-theme="dark"] .polumya-nav__group a:hover { background: #25354a; color: #fff; }
html[data-theme="dark"] .polumya-nav__home.is-active,
html[data-theme="dark"] .polumya-nav__group a.is-active { background: #2b689b; color: #fff !important; }
html[data-theme="dark"] .polumya-nav__group a { color: #e9f1fb; }
html[data-theme="dark"] .polumya-nav__group a b { background: #2c3d50; color: #e4eef9; }
html[data-theme="dark"] .polumya-nav__group a.is-active b { background: #fff; color: #193f69; }
html[data-theme="dark"] #nav-filter { background: #202f40; color: #fff; }
html[data-theme="dark"] #nav-filter::placeholder { color: #b9c7d8; }
html[data-theme="dark"] :where(a, button, input, select, textarea, summary):focus-visible { outline-color: #ffd366; }

#changelist table { box-shadow: 0 5px 20px rgb(39 31 63 / 4%); }
#changelist table thead th { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
#changelist table tbody td,
#changelist table tbody th { padding-top: 10px; padding-bottom: 10px; }
.object-tools a:link,
.object-tools a:visited { background: #007d7e; }

/* Article editor: Wagtail structure, Gutenberg writing signals, one Django save owner. */
.model-editorialarticle.change-form #content { padding: 0; }
.model-editorialarticle.change-form #content-main { max-width: none; }
.model-editorialarticle.change-form #content > h1,
.model-editorialarticle.change-form #content > h2,
.model-editorialarticle.change-form .object-tools { display: none; }
.model-editorialarticle #editorialarticle_form > div { min-width: 0; }
.editorial-editor { min-height: calc(100vh - 98px); background: #f7f6f8; }
.editorial-editor__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 13px 26px; border-bottom: 1px solid var(--polumya-line); background: #fff; }
.editorial-editor__heading { min-width: 0; }
.editorial-editor__eyebrow { display: block; margin-bottom: 3px; color: #007d7e; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.editorial-editor__heading h1 { display: inline; margin: 0 12px 0 0; color: #20202a; font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.editorial-save-state { color: #797584; font-size: 11px; white-space: nowrap; }
.editorial-save-state.is-dirty { color: #b64b34; }
.editorial-editor__header-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.editorial-quiet-button { box-sizing: border-box; min-height: 34px; padding: 8px 11px; border: 1px solid #dcd9e2; border-radius: 5px; background: #fff; color: #3c3847 !important; cursor: pointer; font: 700 11px/1.2 inherit; text-decoration: none; }
.editorial-quiet-button:hover { border-color: #007d7e; color: #006466 !important; }

.editorial-editor__tabs { display: flex; align-items: stretch; gap: 0; padding: 0 26px; border-bottom: 1px solid var(--polumya-line); background: #fff; }
.editorial-editor__tabs button { position: relative; min-height: 45px; padding: 0 18px; border: 0; background: transparent; color: #777281; cursor: pointer; font: 750 12px/1 inherit; }
.editorial-editor__tabs button span { margin-right: 5px; color: #aaa6b1; font-size: 9px; }
.editorial-editor__tabs button::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 3px; background: transparent; content: ""; }
.editorial-editor__tabs button:hover { color: #20202a; }
.editorial-editor__tabs button.is-active { color: #20202a; }
.editorial-editor__tabs button.is-active::after { background: #007d7e; }

.editorial-editor__layout { display: grid; grid-template-columns: minmax(560px, 1fr) minmax(360px, 430px); gap: 20px; align-items: start; max-width: 1500px; margin: 0 auto; padding: 20px 24px 92px; }
.editorial-editor.preview-hidden .editorial-editor__layout { grid-template-columns: minmax(0, 920px); justify-content: center; }
.editorial-editor.preview-hidden .editorial-live-preview { display: none; }
.editorial-editor__canvas { min-width: 0; }
.editorial-document-stats { display: flex; align-items: center; gap: 16px; min-height: 30px; padding: 0 3px 8px; color: #85808c; font-size: 10px; }
.editorial-document-stats strong { color: #514c5b; }
.editorial-shortcut { margin-left: auto; }
.editorial-editor-panel { min-width: 0; }
.editorial-editor-panel[hidden] { display: none !important; }
.editorial-editor-panel fieldset.module { margin: 0 0 14px; overflow: visible; border: 1px solid var(--polumya-line); border-radius: 7px; background: #fff; box-shadow: 0 5px 24px rgb(39 31 63 / 4%); }
.model-editorialarticle .editorial-editor-panel fieldset h2 { padding: 13px 17px; border-bottom: 1px solid var(--polumya-line); background: #fff; color: #26232d; font-size: 13px; }
.model-editorialarticle .editorial-editor-panel fieldset .description { padding: 12px 17px 0; color: #797584; font-size: 11px; }
.editorial-editor-panel .form-row { padding: 15px 17px; border-color: #eeecf0; overflow: visible; }
.editorial-editor-panel .form-row { box-sizing: border-box; width: 100%; }
.model-editorialarticle .editorial-editor-panel .form-row > div { box-sizing: border-box; width: 100%; max-width: 100%; }
.editorial-editor-panel .flex-container { display: block; }
.editorial-editor-panel label { display: block; width: auto; min-width: 0; padding: 0 0 7px; color: #393540; font-size: 11px; font-weight: 800; }
.editorial-editor-panel .help { margin: 6px 0 0 !important; padding: 0 !important; color: #85808c; font-size: 10px; }
.model-editorialarticle .editorial-editor-panel input[type="text"],
.model-editorialarticle .editorial-editor-panel input[type="number"],
.model-editorialarticle .editorial-editor-panel select,
.model-editorialarticle .editorial-editor-panel textarea { box-sizing: border-box; width: 100%; max-width: none; border-color: #d9d6df; border-radius: 4px; background: #fff; color: #26232d; }
.model-editorialarticle .editorial-editor-panel input:focus,
.model-editorialarticle .editorial-editor-panel select:focus,
.model-editorialarticle .editorial-editor-panel textarea:focus { border-color: #007d7e; box-shadow: 0 0 0 2px rgb(0 125 126 / 14%); }
.model-editorialarticle .form-row.field-title textarea { min-height: 82px; padding: 12px 13px; border: 0; border-bottom: 1px solid #dedbe3; border-radius: 0; font-size: 27px; font-weight: 800; line-height: 1.18; letter-spacing: -.025em; resize: vertical; }
.model-editorialarticle .form-row.field-teaser textarea { min-height: 96px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.model-editorialarticle .form-row.field-body textarea { min-height: 480px; padding: 17px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.72; }
.model-editorialarticle .form-row.field-slug input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }

.editorial-editor-panel--media fieldset.module { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-editor-panel--media fieldset h2,
.editorial-editor-panel--media fieldset .description { grid-column: 1 / -1; }
.editorial-editor-panel--media .form-row { padding: 12px; border-right: 1px solid #eeecf0; }
.editorial-editor-panel--media .field-image_preview,
.editorial-editor-panel--media .field-image_upload,
.editorial-editor-panel--media .field-remove_image,
.editorial-editor-panel--media .field-image_alt { grid-column: 1; }
.editorial-editor-panel--media .field-image_preview_2,
.editorial-editor-panel--media .field-image_upload_2,
.editorial-editor-panel--media .field-remove_image_2,
.editorial-editor-panel--media .field-image_alt_2 { grid-column: 2; }
.editorial-editor-panel--media .field-image_preview_3,
.editorial-editor-panel--media .field-image_upload_3,
.editorial-editor-panel--media .field-remove_image_3,
.editorial-editor-panel--media .field-image_alt_3 { grid-column: 3; }
.editorial-editor-panel--media .field-image_preview,
.editorial-editor-panel--media .field-image_preview_2,
.editorial-editor-panel--media .field-image_preview_3 { grid-row: 3; }
.editorial-editor-panel--media .field-image_upload,
.editorial-editor-panel--media .field-image_upload_2,
.editorial-editor-panel--media .field-image_upload_3 { grid-row: 4; }
.editorial-editor-panel--media .field-remove_image,
.editorial-editor-panel--media .field-remove_image_2,
.editorial-editor-panel--media .field-remove_image_3 { grid-row: 5; }
.editorial-editor-panel--media .field-image_alt,
.editorial-editor-panel--media .field-image_alt_2,
.editorial-editor-panel--media .field-image_alt_3 { grid-row: 6; }
.editorial-editor-panel--media .editorial-image-preview { width: 100%; border: 0; border-radius: 5px; }
.editorial-editor-panel--media .editorial-image-preview img { aspect-ratio: 16 / 10; max-height: none; object-fit: cover; }
.editorial-editor-panel--media .editorial-image-empty { display: grid; box-sizing: border-box; width: 100%; aspect-ratio: 16 / 10; padding: 12px; place-items: center; text-align: center; }
.editorial-editor-panel--media input[type="file"] { max-width: 100%; font-size: 10px; }

.editorial-live-preview { position: sticky; top: 18px; min-width: 0; overflow: hidden; border: 1px solid var(--polumya-line); border-radius: 7px; background: #e8e6eb; box-shadow: 0 7px 28px rgb(39 31 63 / 7%); }
.editorial-live-preview__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 0 12px; border-bottom: 1px solid var(--polumya-line); background: #fff; }
.editorial-live-preview__toolbar > div:first-child { display: grid; gap: 1px; }
.editorial-live-preview__toolbar strong { color: #302c36; font-size: 11px; }
.editorial-live-preview__toolbar small { color: #918c97; font-size: 9px; }
.editorial-device-switch { display: flex; gap: 3px; padding: 3px; border-radius: 5px; background: #f0eef2; }
.editorial-device-switch button { display: grid; width: 29px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 3px; background: transparent; color: #85808c; cursor: pointer; }
.editorial-device-switch button.is-active { background: #fff; color: #007d7e; box-shadow: 0 1px 4px rgb(39 31 63 / 10%); }
.editorial-preview-stage { box-sizing: border-box; min-height: 690px; padding: 18px; transition: padding .18s ease; }
.editorial-preview-page { box-sizing: border-box; width: 100%; min-height: 652px; margin: 0 auto; padding: 24px 25px 42px; overflow: hidden; background: #fff; color: #232127; box-shadow: 0 2px 10px rgb(39 31 63 / 8%); transition: width .18s ease; }
.editorial-preview-stage.is-mobile .editorial-preview-page { width: 270px; }
.editorial-preview-page__brand { display: flex; align-items: center; gap: 5px; margin-bottom: 28px; color: #231d3a; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.editorial-preview-page__brand i { width: 7px; height: 13px; border-radius: 70% 35% 70% 40%; background: #f45b3f; transform: rotate(28deg); }
.editorial-preview-page__category { margin-bottom: 6px; color: #007d7e; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.editorial-preview-page h2 { margin: 0; color: #232127; font-family: Arial, sans-serif; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; }
.editorial-preview-page__meta { margin: 9px 0 16px; color: #918c97; font-size: 8px; }
.editorial-preview-page__image { display: grid; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 17px; overflow: hidden; place-items: center; background: #eeecef; color: #9b96a0; font-size: 10px; }
.editorial-preview-page__image img { width: 100%; height: 100%; object-fit: cover; }
.editorial-preview-page__teaser { margin: 0 0 15px; color: #343039; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.45; }
.editorial-preview-page__body { color: #48444d; font-family: Georgia, "Times New Roman", serif; font-size: 11px; line-height: 1.58; }
.editorial-preview-page__body p { margin: 0 0 10px; }
.editorial-preview-stage.is-mobile .editorial-preview-page h2 { font-size: 20px; }

.model-editorialarticle .submit-row { position: fixed; z-index: 19; right: 0; bottom: 0; left: 232px; display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 8px 24px; border: 0; border-top: 1px solid #dedbe3; border-radius: 0; background: rgb(255 255 255 / 96%); box-shadow: 0 -5px 20px rgb(39 31 63 / 8%); backdrop-filter: blur(8px); }
.model-editorialarticle .main:not(.shifted) .submit-row { left: 20px; }
.model-editorialarticle .submit-row input { min-height: 34px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.model-editorialarticle .submit-row input.default { background: #007d7e; }
.model-editorialarticle .submit-row input.default:hover { background: #006466; }
.model-editorialarticle .submit-row input[name="_addanother"] { display: none; }

body.editorial-focus-mode #nav-sidebar,
body.editorial-focus-mode .toggle-nav-sidebar,
body.editorial-focus-mode .breadcrumbs,
body.editorial-focus-mode #header { display: none !important; }
body.editorial-focus-mode .main { display: block; }
body.editorial-focus-mode .editorial-editor { min-height: 100vh; }
body.editorial-focus-mode .model-editorialarticle .submit-row,
body.editorial-focus-mode.model-editorialarticle .submit-row { left: 0; }

@media (max-width: 1180px) {
  .editorial-editor__layout { grid-template-columns: minmax(500px, 1fr) 340px; padding-right: 18px; padding-left: 18px; }
  .editorial-preview-page { padding-right: 20px; padding-left: 20px; }
  .editorial-preview-page h2 { font-size: 21px; }
}

@media (max-width: 960px) {
  .editorial-editor__layout { grid-template-columns: 1fr; }
  .editorial-live-preview { position: static; }
  .editorial-preview-stage { min-height: 0; }
  .editorial-preview-page { min-height: 500px; }
  .editorial-shortcut { display: none; }
}

@media (max-width: 767px) {
  #header { padding: 11px 14px; }
  #content { padding: 18px 14px 32px; }
  .model-editorialarticle #editorialarticle_form .errornote { box-sizing: border-box; width: auto; min-height: 48px; margin: 14px 12px 0 60px; padding: 10px 12px; line-height: 1.4; }
  #nav-sidebar { width: 232px; flex-basis: 232px; }
  .main:not(.shifted) #nav-sidebar { margin-left: -232px; }
  .model-editorialarticle .main:not(.shifted) #content { padding-left: 0; }
  .main.shifted #nav-sidebar { top: 114px; }
  .toggle-nav-sidebar { top: 124px; }
  .model-editorialarticle #content { padding: 0; }
  .editorial-editor__header { display: grid; gap: 10px; min-height: auto; padding: 60px 15px 13px; }
  .editorial-editor__heading h1 { display: block; margin: 0 0 3px; font-size: 20px; }
  .editorial-editor__header-actions { justify-content: flex-start; }
  .editorial-editor__header-actions [data-focus-mode] { display: none; }
  .editorial-editor__tabs { padding: 0 6px; }
  .editorial-editor__tabs button { flex: 1; padding: 0 6px; font-size: 11px; }
  .editorial-editor__tabs button::after { right: 8px; left: 8px; }
  .editorial-editor__layout { display: block; padding: 13px 12px 104px; }
  .editorial-document-stats { gap: 10px; flex-wrap: wrap; }
  .editorial-live-preview { margin-top: 14px; }
  .model-editorialarticle .form-row.field-title textarea { min-height: 68px; font-size: 22px; }
  .model-editorialarticle .form-row.field-body textarea { min-height: 410px; padding: 13px; font-size: 16px; }
  .editorial-editor-panel--media fieldset.module { display: block; }
  .editorial-editor-panel--media .form-row { border-right: 0; }
  .editorial-preview-stage { padding: 10px; }
  .model-editorialarticle .submit-row { left: 0; min-height: 48px; padding: 7px 10px; white-space: nowrap; }
  .model-editorialarticle .submit-row input { width: 100% !important; min-width: 0; flex: 1; float: none; margin: 0 !important; padding-right: 12px; padding-left: 12px; font-size: 11px; }
  .model-editorialarticle .submit-row input[name="_continue"] { display: none; }
}

/* Second UX pass: legibility, predictable forms and responsive data lists. */
#user-tools { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; }
.polumya-user-name { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.polumya-user-label { color: #bcb5cc; }
.polumya-separator { margin: 0 1px; color: #756d89; }
#logout-form button { font-size: inherit; }

.workspace-hero { align-items: center; }
.workspace-hero h1 { max-width: 720px; font-size: clamp(28px, 3vw, 38px); }
.workspace-hero__actions .button { justify-content: center; white-space: nowrap; }
.workspace-panel,
.workspace-metric { box-shadow: 0 3px 14px rgb(39 31 63 / 5%); }
.workspace-panel__heading p,
.workspace-eyebrow { font-size: 11px; }
.workspace-panel__heading h2 { line-height: 1.25; }
.workspace-queue__copy small,
.workspace-actions small,
.workspace-health small { font-size: 11px; line-height: 1.35; }

.change-list #content { max-width: 1540px; }
.change-list #content > h1 { margin: 0 0 18px; color: var(--polumya-ink); font-size: 28px; letter-spacing: -.025em; }
.change-list .object-tools { margin-top: -49px; }
.change-list .object-tools a { min-height: 34px; padding: 8px 14px; border-radius: 5px; background: #007d7e; font-size: 11px; font-weight: 800; line-height: 18px; }
#changelist { position: relative; display: block; }
#changelist .changelist-form-container { min-width: 0; }
#changelist #toolbar { margin: 0 0 12px; padding: 10px; border: 1px solid var(--polumya-line); border-radius: 7px; background: #fff; }
#changelist #toolbar form > div { display: flex; align-items: center; gap: 7px; }
#changelist #toolbar form input[type="text"] { box-sizing: border-box; min-width: 220px; height: 34px; flex: 1; padding: 7px 10px; border-color: #d9d6df; border-radius: 4px; }
#changelist #toolbar form input[type="submit"] { height: 34px; padding: 0 13px; border-radius: 4px; background: #f0eef3; color: #302c38; font-size: 11px; font-weight: 800; }
#changelist .results { overflow-x: auto; border-radius: 7px; background: #fff; }
#changelist table { overflow: hidden; margin: 0; }
#changelist table thead th { padding: 10px 9px; color: #777281; font-size: 10px; white-space: nowrap; }
#changelist table tbody td,
#changelist table tbody th { padding: 11px 9px; vertical-align: middle; font-size: 12px; line-height: 1.35; }
#changelist table tbody th a { font-weight: 700; }
#changelist-filter { position: absolute; z-index: 12; top: 54px; right: 0; display: none; width: min(300px, calc(100vw - 48px)); max-height: min(640px, calc(100vh - 145px)); overflow: auto; border: 1px solid var(--polumya-line); border-radius: 7px; background: #fff; box-shadow: 0 14px 35px rgb(39 31 63 / 18%); }
#changelist-filter.is-open { display: block; }
#changelist-filter h2 { padding: 12px 14px; background: #302747; font-size: 11px; letter-spacing: .06em; }
#changelist-filter h3,
#changelist-filter summary { box-sizing: border-box; margin: 0; padding: 12px 14px 5px; color: #504b59; font-size: 11px; font-weight: 800; }
#changelist-filter summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
#changelist-filter summary::-webkit-details-marker { display: none; }
#changelist-filter summary::before { content: "›"; color: #928c9a; font-size: 15px; line-height: 1; transform: rotate(0); transition: transform .12s ease; }
#changelist-filter details[open] summary::before { transform: rotate(90deg); }
#changelist-filter ul { padding: 0 14px 8px; }
#changelist-filter li { margin: 0; font-size: 11px; line-height: 1.7; }
#changelist-filter a { color: #625d69; }
#changelist-filter li.selected a { color: #007d7e; font-weight: 800; }
.changelist-filter-toggle { display: inline-flex; height: 34px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #d9d6df; border-radius: 4px; background: #fff; color: #393540; cursor: pointer; font: 800 11px/1 inherit; }

.change-form:not(.model-editorialarticle) #content-main { max-width: 1120px; }
.change-form:not(.model-editorialarticle) fieldset.module { overflow: visible; border: 1px solid var(--polumya-line); border-radius: 7px; background: #fff; }
.change-form:not(.model-editorialarticle) fieldset .fieldset-heading { padding: 13px 16px; border-color: var(--polumya-line); border-radius: 7px 7px 0 0; background: #fff; color: var(--polumya-ink); font-size: 13px; font-weight: 800; }
.change-form:not(.model-editorialarticle) .form-row { padding: 14px 16px; border-color: #eeecf0; }
.change-form:not(.model-editorialarticle) .form-row label { color: #393540; font-weight: 750; }
.change-form:not(.model-editorialarticle) .help { color: #777281; font-size: 12px; line-height: 1.4; }
.errornote { border-radius: 6px; font-weight: 750; }
.errorlist { font-size: 12px; }

.editorial-file-control { display: flex; align-items: center; gap: 8px; }
.editorial-file-control button { min-height: 31px; padding: 6px 9px; border: 1px solid #cfccd5; border-radius: 4px; background: #fff; color: #393540; cursor: pointer; font: 750 10px/1.2 inherit; }
.editorial-file-control button:hover { border-color: #007d7e; color: #006466; }
.editorial-file-control span { min-width: 0; overflow: hidden; color: #777281; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.editorial-native-file-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 767px) {
  #header { box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; width: 100%; padding: 10px 14px; }
  #branding { min-width: 0; }
  .polumya-brand { gap: 8px; }
  .polumya-brand__mark { width: 11px; height: 21px; }
  .polumya-brand strong { font-size: 19px; }
  .polumya-brand small { font-size: 8px; }
  .toggle-nav-sidebar,
  .main.shifted .toggle-nav-sidebar { border-color: #193f69; background: #193f69; }
  .toggle-nav-sidebar::before,
  .main.shifted .toggle-nav-sidebar::before { color: #fff; }
  #user-tools { display: none; }
  .polumya-user-label,
  .polumya-user-name,
  #user-tools .polumya-separator,
  #user-tools a { display: none; }
  .polumya-site-link { display: inline-flex; align-items: center; margin: 0; padding: 7px 9px; }
  .main.shifted #nav-sidebar { top: 60px; }
  .toggle-nav-sidebar { top: 68px; }
  .polumya-nav__account { display: grid; gap: 7px; margin: 18px 8px 0; padding: 13px 8px 18px; border-top: 1px solid var(--polumya-line); }
  .polumya-nav__account span { overflow: hidden; color: var(--polumya-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .polumya-nav__account a,
  .polumya-nav__account button { box-sizing: border-box; display: block; width: 100%; min-height: 34px; padding: 8px 10px; border: 1px solid #193f69; border-radius: 4px; background: #193f69; color: #fff; cursor: pointer; font: 750 10px/1.2 inherit; text-align: left; text-decoration: none; }
  .polumya-nav__account a:hover,
  .polumya-nav__account button:hover { border-color: #176aa4; background: #176aa4; }

  .polumya-dashboard #content { box-sizing: border-box; width: 100%; padding-right: 13px; padding-left: 13px; }
  .workspace-hero { gap: 16px; }
  .workspace-hero h1 { font-size: 28px; }
  .workspace-hero > div > p:last-child { font-size: 14px; line-height: 1.45; }
  .workspace-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .workspace-hero__actions .button { box-sizing: border-box; width: 100%; min-height: 42px; padding: 8px 10px; text-align: center; white-space: normal; }
  .workspace-hero__actions .button:last-child { grid-column: 1 / -1; }
  .workspace-metrics { gap: 9px; }
  .workspace-metric { min-height: 82px; }
  .workspace-panel__heading { align-items: flex-start; padding: 15px 16px; }
  .workspace-panel__heading > a { max-width: 80px; text-align: right; }
  .workspace-actions a { padding: 13px 15px; }
  .workspace-recent { display: none; }

  .change-list #content { box-sizing: border-box; width: 100%; padding: 60px 13px 32px; }
  .change-list #content > h1 { margin-bottom: 13px; font-size: 24px; }
  .change-list .object-tools { float: none; margin: 0 0 12px; }
  .change-list .object-tools li { width: 100%; }
  .change-list .object-tools a { box-sizing: border-box; width: 100%; text-align: center; }
  #changelist { display: block; }
  #changelist #toolbar { margin-bottom: 9px; padding: 8px; }
  #changelist #toolbar form input[type="text"] { min-width: 0; }
  .changelist-filter-toggle { display: inline-flex; flex: none; }
  .change-list #changelist #changelist-filter { position: absolute !important; top: 51px; right: 0; display: none; width: 100%; max-height: min(560px, calc(100vh - 150px)); margin: 0; box-shadow: 0 12px 28px rgb(39 31 63 / 18%); }
  .change-list #changelist #changelist-filter.is-open { display: block; }
  #changelist-filter.is-open { display: block; }
  #changelist .results { overflow: visible; border: 1px solid var(--polumya-line); }
  #result_list { display: block; border: 0 !important; }
  #result_list thead { display: none; }
  #result_list tbody { display: block; }
  #result_list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 13px 14px; border-bottom: 1px solid var(--polumya-line); background: #fff; }
  #result_list tbody tr:last-child { border-bottom: 0; }
  #result_list tbody th,
  #result_list tbody td { display: grid; grid-template-columns: minmax(82px, 34%) minmax(0, 1fr); grid-column: 1 / -1; gap: 9px; width: auto !important; padding: 2px 0 !important; border: 0; background: transparent; color: #625e69; font-size: 11px; line-height: 1.35; }
  #result_list tbody :is(th, td)::before { align-self: start; color: #aaa6b1; content: attr(data-label); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  #result_list tbody .action-checkbox,
  #result_list tbody .field-action_checkbox { position: absolute; top: 12px; right: 12px; display: block; width: 28px !important; height: 28px; padding: 5px !important; }
  #result_list tbody .action-checkbox::before,
  #result_list tbody .field-action_checkbox::before { content: none; }
  #result_list tbody tr { position: relative; }
  #result_list tbody .field-title,
  #result_list tbody .field-name,
  #result_list tbody .field-key,
  #result_list tbody .field-article_title { display: block; grid-column: 1 / -1; padding-right: 34px !important; color: #155f75; font-size: 14px; font-weight: 800; line-height: 1.3; }
  #result_list tbody :is(.field-title, .field-name, .field-key, .field-article_title)::before { display: none; }
  #result_list tbody .field-title a { display: block; color: #155f75; font-size: 14px; font-weight: 800; line-height: 1.3; }
  #result_list tbody .field-list_thumbnail { display: block; grid-column: 1 / -1; grid-row: 1; }
  #result_list tbody .field-list_thumbnail::before { display: none; }
  #result_list tbody .field-status_badge,
  #result_list tbody .field-category,
  #result_list tbody .field-photo_state { display: grid; grid-column: 1 / -1; grid-row: auto; }
  #result_list tbody .field-category::before,
  #result_list tbody .field-photo_state::before { content: attr(data-label); }
  #changelist .paginator { padding: 10px 12px; font-size: 11px; }
  #changelist .actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; }
  #changelist .actions label { min-width: 0; font-size: 0; }
  #changelist .actions select { box-sizing: border-box; width: 100%; min-width: 0; font-size: 12px; }
  #changelist .actions .action-counter { grid-column: 1 / -1; font-size: 10px; }

  .change-form:not(.model-editorialarticle) #content { box-sizing: border-box; width: 100%; padding: 60px 13px 32px; }
  .change-form:not(.model-editorialarticle) .aligned .form-row > div { box-sizing: border-box; width: 100%; max-width: 100%; }
  .change-form:not(.model-editorialarticle) .aligned label { width: auto; min-width: 0; }
  .change-form:not(.model-editorialarticle) input[type="text"],
  .change-form:not(.model-editorialarticle) input[type="url"],
  .change-form:not(.model-editorialarticle) textarea,
  .change-form:not(.model-editorialarticle) select { box-sizing: border-box; max-width: 100%; }

  .toggle-nav-sidebar {
    top: 68px;
    left: 8px;
    width: 40px;
    height: 40px;
    border: 1px solid #433958;
    border-radius: 6px;
    background: #241d3b;
    box-shadow: 0 6px 18px rgb(36 29 59 / 22%);
    font-size: 0;
  }
  .toggle-nav-sidebar::before { content: "☰" !important; font: 18px/1 sans-serif !important; }
  .main.shifted .toggle-nav-sidebar { left: 184px; border-color: #514666; background: #302747 !important; color: #fff; box-shadow: none; }
  .main.shifted .toggle-nav-sidebar::before { content: "×" !important; font-size: 24px !important; }
  .main.shifted #nav-sidebar { top: 60px; width: 232px; flex-basis: 232px; padding-top: 16px; }
}
