/* DumaSnap style on top of Bootstrap 5.3: tokens from docs/DumaSnap/DumaSnap Style.dc.html. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/atkinson/atkinson-hyperlegible-next-latin-400-normal.e8da57bc0c3d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/atkinson/atkinson-hyperlegible-next-latin-700-normal.617b4197a93a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/atkinson/atkinson-hyperlegible-next-latin-ext-400-normal.bcad3501e62c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/atkinson/atkinson-hyperlegible-next-latin-ext-700-normal.521d9348d7ad.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ds-navy-900: #1C2C3E;
  --ds-navy-700: #043F63;
  --ds-navy-50: #E8EEF3;
  --ds-sand-500: #C9AD8B;
  --ds-sand-700: #7A5E3C;
  --ds-sand-100: #F3ECE2;
  --ds-bg: #F7F5F2;
  --ds-surface: #FFFFFF;
  --ds-line: #E4E0DA;
  --ds-line-soft: #EEEBE6;
  --ds-border: #BDB7AE;
  --ds-muted: #56606B;
  --ds-strong: #3F4852;
  --ds-faint: #7D858E;
  --ds-photo: #9A9A9A;
  --ds-done: #13694E;
  --ds-done-bg: #E3F2EA;
  --ds-done-line: #BFE0CE;
  --ds-progress: #1F5C99;
  --ds-progress-bg: #E3EDF7;
  --ds-progress-line: #C3D6EA;
  --ds-problem: #A33A0F;
  --ds-problem-bg: #FCE9DE;
  --ds-problem-line: #F0C6B0;
  --ds-problem-text: #7E2C0B;
  --ds-refused: #5B4F7A;
  --ds-refused-bg: #ECE9F2;
  --ds-refused-line: #D3CDE0;
  --ds-missing: #6E4E00;
  --ds-missing-bg: #FFF4D6;
  --ds-missing-line: #E9C46A;
  --ds-radius-sm: 6px;
  --ds-radius: 10px;
  --ds-radius-lg: 18px;
  --ds-tap: 44px;
  --ds-tap-adviser: 52px;

  /* Bootstrap, mapped to the tokens. Links and utilities read the -rgb variables. */
  --bs-font-sans-serif: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-color: var(--ds-navy-900);
  --bs-body-color-rgb: 28, 44, 62;
  --bs-body-bg: #FFFFFF;
  --bs-emphasis-color: var(--ds-navy-900);
  --bs-secondary-color: var(--ds-muted);
  --bs-primary: var(--ds-navy-700);
  --bs-primary-rgb: 4, 63, 99;
  --bs-link-color: var(--ds-navy-700);
  --bs-link-color-rgb: 4, 63, 99;
  --bs-link-hover-color: var(--ds-navy-900);
  --bs-link-hover-color-rgb: 28, 44, 62;
  --bs-border-color: var(--ds-line);
  --bs-border-radius: 10px;
  --bs-border-radius-sm: 6px;
  --bs-success: var(--ds-done);
  --bs-success-rgb: 19, 105, 78;
  --bs-danger: var(--ds-problem);
  --bs-danger-rgb: 163, 58, 15;
  --bs-warning: var(--ds-missing);
  --bs-warning-rgb: 110, 78, 0;
  --bs-info: var(--ds-progress);
  --bs-info-rgb: 31, 92, 153;
  --bs-success-bg-subtle: var(--ds-done-bg);
  --bs-success-text-emphasis: var(--ds-done);
  --bs-success-border-subtle: var(--ds-done-line);
  --bs-danger-bg-subtle: var(--ds-problem-bg);
  --bs-danger-text-emphasis: var(--ds-problem-text);
  --bs-danger-border-subtle: var(--ds-problem-line);
  --bs-warning-bg-subtle: var(--ds-missing-bg);
  --bs-warning-text-emphasis: var(--ds-missing);
  --bs-warning-border-subtle: var(--ds-missing-line);
  --bs-info-bg-subtle: var(--ds-progress-bg);
  --bs-info-text-emphasis: var(--ds-progress);
  --bs-info-border-subtle: var(--ds-progress-line);
  --bs-focus-ring-color: rgba(4, 63, 99, .25);
}

body {
  font-size: 14px;
  line-height: 20px;
}
h1, h2, h3, h4 {
  font-weight: 700;
}

.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-font-size: 14px;
  --bs-btn-border-radius: 8px;
  --bs-btn-disabled-opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
}
.btn-primary {
  --bs-btn-bg: var(--ds-navy-700);
  --bs-btn-border-color: var(--ds-navy-700);
  --bs-btn-hover-bg: var(--ds-navy-900);
  --bs-btn-hover-border-color: var(--ds-navy-900);
  --bs-btn-active-bg: var(--ds-navy-900);
  --bs-btn-active-border-color: var(--ds-navy-900);
  --bs-btn-focus-shadow-rgb: 4, 63, 99;
  --bs-btn-disabled-bg: #D9D5CE;
  --bs-btn-disabled-border-color: #D9D5CE;
  --bs-btn-disabled-color: #5C636B;
}
.btn-outline-secondary {
  --bs-btn-color: var(--ds-navy-900);
  --bs-btn-border-color: var(--ds-border);
  --bs-btn-hover-bg: var(--ds-navy-50);
  --bs-btn-hover-color: var(--ds-navy-900);
  --bs-btn-hover-border-color: var(--ds-border);
  --bs-btn-active-bg: var(--ds-navy-50);
  --bs-btn-active-color: var(--ds-navy-900);
  --bs-btn-active-border-color: var(--ds-navy-700);
  --bs-btn-disabled-color: #8E959C;
  --bs-btn-disabled-border-color: var(--ds-line);
  border-width: 1.5px;
  background: #FFFFFF;
}
.btn-outline-danger {
  --bs-btn-color: var(--ds-problem);
  --bs-btn-border-color: var(--ds-problem);
  --bs-btn-hover-bg: var(--ds-problem-bg);
  --bs-btn-hover-color: var(--ds-problem);
  --bs-btn-hover-border-color: var(--ds-problem);
  background: #FFFFFF;
}
.btn-sm {
  --bs-btn-font-size: 13px;
  --bs-btn-padding-y: 2px;
  --bs-btn-padding-x: 10px;
  --bs-btn-border-radius: 7px;
  min-height: 30px;
}
.btn-link {
  --bs-btn-font-weight: 700;
  text-decoration: none;
}

.form-control, .form-select {
  border: 1.5px solid var(--ds-border);
  border-radius: 8px;
  min-height: 40px;
  font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border: 2px solid var(--ds-navy-700);
  box-shadow: 0 0 0 3px #C9DAEA;
}
.form-label {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.form-text {
  font-size: 13px;
  color: var(--ds-muted);
}
.invalid-feedback, .errorlist {
  color: var(--ds-problem);
  font-size: 13px;
}
.errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

[x-cloak] {
  display: none !important;
}

kbd {
  display: inline-flex;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #CFC9C0;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--ds-strong);
  font: 700 11px/1 var(--bs-font-sans-serif);
  box-shadow: none;
}

.ds-mono {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
}
.ds-muted {
  color: var(--ds-muted);
}
.ds-small {
  font-size: 13px;
  line-height: 18px;
}

/* ---- Studio shell: sidebar, page header, content ---- */

.ds-shell {
  display: flex;
  min-height: 100vh;
}
.ds-sidebar {
  flex: none;
  width: 216px;
  background: #FFFFFF;
  border-right: 1px solid var(--ds-line);
}
.ds-sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  height: 100%;
}
@media (min-width: 992px) {
  .ds-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}
.ds-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 16px;
  color: var(--ds-navy-900);
  text-decoration: none;
}
.ds-lockup b {
  display: block;
  font-size: 15px;
  letter-spacing: .08em;
  line-height: 18px;
}
.ds-lockup small {
  display: block;
  font-size: 12px;
  color: var(--ds-muted);
  line-height: 16px;
}
.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ds-navy-900);
  text-decoration: none;
  font-size: 14px;
}
.ds-nav-link .bi {
  font-size: 16px;
  width: 18px;
}
.ds-nav-link:hover {
  background: var(--ds-bg);
  color: var(--ds-navy-900);
}
.ds-nav-link.active {
  background: var(--ds-navy-50);
  color: var(--ds-navy-700);
  font-weight: 700;
}
.ds-nav-link.disabled {
  color: #8E959C;
  height: 36px;
  pointer-events: none;
}
.ds-nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ds-problem-bg);
  color: var(--ds-problem);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-nav-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ds-faint);
  padding: 16px 10px 4px;
  text-transform: uppercase;
}
.ds-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--ds-line-soft);
  font-size: 13px;
  line-height: 18px;
}
.ds-sidebar-foot a.ds-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ds-navy-900);
  text-decoration: none;
}
.ds-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ds-bg);
}
.ds-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 8px 0 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--ds-line);
}
.ds-appbar .ds-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-icon-btn {
  width: var(--ds-tap);
  height: var(--ds-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ds-navy-900);
  font-size: 22px;
}
.ds-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 18px 28px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--ds-line);
}
.ds-page-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}
.ds-page-head .ds-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ds-crumbs {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ds-muted);
}
.ds-crumbs a {
  text-decoration: none;
}
.ds-crumbs .bi {
  font-size: 11px;
}
.ds-content {
  flex: 1;
  padding: 20px 28px 40px;
}
@media (max-width: 991.98px) {
  .ds-page-head, .ds-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---- Banners, tips, toasts ---- */

.ds-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  font-size: 14px;
  line-height: 20px;
  border-bottom: 1px solid;
}
.ds-banner > .bi {
  font-size: 18px;
}
.ds-banner > div {
  flex: 1;
}
.ds-banner-problem {
  background: var(--ds-problem-bg);
  border-color: var(--ds-problem-line);
  color: var(--ds-problem-text);
}
.ds-banner-progress {
  background: var(--ds-progress-bg);
  border-color: var(--ds-progress-line);
  color: var(--ds-progress);
}
.ds-banner-missing {
  background: var(--ds-missing-bg);
  border-color: var(--ds-missing-line);
  color: var(--ds-missing);
}
.ds-banner-done {
  background: var(--ds-done-bg);
  border-color: var(--ds-done-line);
  color: var(--ds-done);
}
.ds-tip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--ds-radius);
  background: var(--ds-sand-100);
  color: var(--ds-navy-900);
  font-size: 14px;
  line-height: 20px;
}
.ds-tip > .bi {
  color: var(--ds-sand-700);
  font-size: 16px;
}
.ds-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ds-navy-900);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(28, 44, 62, .3);
  font-size: 14px;
}
.ds-toast button {
  border: 0;
  background: none;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
}

/* ---- Cards, lists, tiles ---- */

.ds-card {
  background: #FFFFFF;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  padding: 16px 20px;
}
.ds-card h2, .ds-card h3 {
  font-size: 17px;
  line-height: 24px;
  margin: 0 0 8px;
}
.ds-list {
  background: #FFFFFF;
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  overflow: hidden;
}
.ds-row {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ds-line-soft);
  color: inherit;
  text-decoration: none;
}
.ds-row:last-child {
  border-bottom: 0;
}
a.ds-row:hover {
  background: #FBFAF8;
  color: inherit;
}
.ds-row-head {
  padding: 9px 20px;
  background: #FAF9F7;
  border-bottom: 1px solid var(--ds-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-muted);
}
.ds-row-title {
  font-size: 15px;
  font-weight: 700;
}
.ds-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.ds-tile {
  padding: 8px 10px;
  background: var(--ds-bg);
  border-radius: 8px;
}
.ds-tile b {
  display: block;
  font-size: 17px;
  line-height: 24px;
}
.ds-tile span {
  font-size: 12px;
  color: var(--ds-muted);
}
.ds-empty {
  max-width: 460px;
  margin: 48px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ds-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ds-navy-50);
  color: var(--ds-navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.ds-empty h2 {
  font-size: 20px;
  line-height: 26px;
  margin: 0;
}
.ds-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ds-step-n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ds-navy-50);
  color: var(--ds-navy-700);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Chips and progress ---- */

.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #FFFFFF;
  color: var(--ds-strong);
  box-shadow: inset 0 0 0 1.5px #8E959C;
}
.ds-chip-sm {
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
}
.ds-chip-done {
  background: var(--ds-done-bg);
  color: var(--ds-done);
  box-shadow: none;
}
.ds-chip-progress {
  background: var(--ds-progress-bg);
  color: var(--ds-progress);
  box-shadow: none;
}
.ds-chip-problem {
  background: var(--ds-problem-bg);
  color: var(--ds-problem);
  box-shadow: none;
}
.ds-chip-refused {
  background: var(--ds-refused-bg);
  color: var(--ds-refused);
  box-shadow: none;
}
.ds-chip-missing {
  background: var(--ds-missing-bg);
  color: var(--ds-missing);
  box-shadow: none;
}
.ds-chip-quiet {
  background: #EFEDE9;
  color: var(--ds-strong);
  box-shadow: none;
}
.ds-chip-solid {
  background: var(--ds-navy-700);
  color: #FFFFFF;
  box-shadow: none;
}
.ds-pipeline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ds-pipeline > .bi-chevron-right {
  color: var(--ds-border);
  font-size: 12px;
}
.ds-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--ds-line);
  overflow: hidden;
}
.ds-bar > div {
  height: 100%;
  background: var(--ds-progress);
  transition: width .3s;
}
.ds-bar-done > div {
  background: var(--ds-done);
}
.ds-bar-thin {
  height: 6px;
}

/* ---- Photos ---- */

.ds-thumb {
  display: block;
  width: 52px;
  height: 60px;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-photo);
  object-fit: cover;
}
.ds-photo-grey {
  background: var(--ds-photo);
}

/* ---- Sign-in ---- */

.ds-signin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--ds-bg);
}
.ds-signin .ds-card {
  width: 100%;
  max-width: 380px;
  padding: 28px;
}

/* ---- Shoots ---- */

.ds-shoot-row {
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .ds-shoot-row {
    grid-template-columns: minmax(0, 1.25fr) 140px 230px minmax(0, 1.7fr) 20px;
    gap: 16px;
  }
}
.ds-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 992px) {
  .ds-upload-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
.ds-drop {
  border: 2px dashed var(--ds-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: #FFFFFF;
}
.ds-drop.over {
  border-color: var(--ds-navy-700);
  background: var(--ds-navy-50);
}
.ds-sending {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 70px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.ds-stage {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ds-line-soft);
}
.ds-stage:last-child {
  border-bottom: 0;
}
.ds-stage-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFEDE9;
  color: var(--ds-muted);
}
.ds-stage-done .ds-stage-icon {
  background: var(--ds-done-bg);
  color: var(--ds-done);
}
.ds-stage-running .ds-stage-icon {
  background: var(--ds-progress-bg);
  color: var(--ds-progress);
}

/* ---- Groups & sections ---- */

.ds-groups-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.ds-segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #EFEDE9;
}
.ds-segmented button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ds-navy-900);
  font-size: 13px;
  font-weight: 700;
}
.ds-segmented button.active {
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(28, 44, 62, .18);
}
/* The tabs of the Printing pages: To print, Printed, Handover. */
.ds-print-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #EFEDE9;
}
.ds-print-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--ds-navy-900);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ds-print-tabs a.active {
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(28, 44, 62, .18);
}
.ds-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--ds-missing-line);
  border-radius: 999px;
  background: var(--ds-missing-bg);
  color: var(--ds-missing);
  font-size: 12px;
}
.ds-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #D6D1C9;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ds-navy-900);
  font-size: 13px;
  text-decoration: none;
}
.ds-keys {
  margin-left: auto;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ds-muted);
}
.ds-keys > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ds-key-dark {
  border-color: rgba(255, 255, 255, .5);
  background: none;
  color: #FFFFFF;
}
/* Nothing is clipped, so that the ⋯ menu of the last group opens whole: the first and the last
   row round their own corners instead. */
.ds-groups {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
}
.ds-groups > :first-child {
  border-top-left-radius: calc(var(--ds-radius) - 1px);
  border-top-right-radius: calc(var(--ds-radius) - 1px);
}
.ds-groups > :last-child {
  border-bottom: 0;
  border-bottom-left-radius: calc(var(--ds-radius) - 1px);
  border-bottom-right-radius: calc(var(--ds-radius) - 1px);
}
.ds-groups-head, .ds-group-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 320px 176px;
  gap: 16px;
  padding: 8px 16px;
}
.ds-groups-head {
  padding-top: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ds-line);
  background: #FAF9F7;
  color: var(--ds-muted);
  font-size: 12px;
  font-weight: 700;
}
.ds-group-row {
  position: relative;
  align-items: center;
  border-bottom: 1px solid var(--ds-line-soft);
  background: #FFFFFF;
}
.ds-group-row.is-stray {
  background: #FAF9F7;
}
.ds-group-row.is-focused {
  background: var(--ds-navy-50);
  box-shadow: inset 0 0 0 2px var(--ds-navy-700);
}
.ds-group-no b {
  display: block;
  font-size: 15px;
  line-height: 20px;
}
.ds-group-no span {
  display: block;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 16px;
}
.ds-group-frames {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ds-frame {
  position: relative;
  flex: none;
  width: 52px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  background: var(--ds-photo);
  outline-offset: 2px;
}
.ds-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-frame.is-flagged {
  outline: 2px solid var(--ds-problem);
}
.ds-frame.is-selected {
  outline: 3px solid var(--ds-navy-700);
}
.ds-frame-flag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 3px;
  background: var(--ds-problem);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
}
.ds-frame-check {
  position: absolute;
  top: 3px;
  left: 3px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-navy-700);
  color: #FFFFFF;
  font-size: 12px;
  box-shadow: 0 0 0 1.5px #FFFFFF;
}
.ds-frame.is-selected .ds-frame-check {
  display: flex;
}
/* A note inside a card or a panel: what a page says about its state, in the state's tone. */
.ds-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ds-line);
  border-radius: 9px;
  background: #FAF9F7;
  color: var(--ds-strong);
  font-size: 13px;
  line-height: 18px;
}
.ds-note > .bi {
  flex: none;
  font-size: 15px;
  line-height: 18px;
}
.ds-note.is-progress {
  background: var(--ds-progress-bg);
  border-color: var(--ds-progress-line);
  color: var(--ds-progress);
}
.ds-note.is-missing {
  background: var(--ds-missing-bg);
  border-color: var(--ds-missing-line);
  color: var(--ds-missing);
}
.ds-note.is-problem {
  background: var(--ds-problem-bg);
  border-color: var(--ds-problem-line);
  color: var(--ds-problem-text);
}
.ds-note.is-done {
  background: var(--ds-done-bg);
  border-color: var(--ds-done-line);
  color: var(--ds-done);
}
.ds-hint {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-hint-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 18px;
}
.ds-hint-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ds-missing-line);
  border-radius: 6px;
  background: var(--ds-missing-bg);
  color: var(--ds-missing);
  font-size: 13px;
}
.ds-hint-title {
  font-size: 14px;
  font-weight: 700;
}
.ds-hint-sub {
  color: var(--ds-muted);
  font-size: 12px;
  text-wrap: pretty;
}
.ds-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 32px;
}
.ds-group-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.ds-icon-only {
  width: 32px;
  padding: 0;
  justify-content: center;
}
.ds-band {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 44px;
  padding: 6px 16px;
  border-top: 1px solid #E2D6C5;
  border-bottom: 1px solid #E2D6C5;
  background: var(--ds-sand-100);
  scroll-margin-top: 8px;
}
.ds-band > .bi {
  color: var(--ds-sand-700);
}
.ds-band strong {
  font-size: 15px;
}
.ds-band-meta {
  color: #5E5345;
  font-size: 13px;
}
.ds-menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 6px;
  border: 1px solid #D6D1C9;
  border-radius: var(--ds-radius);
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(28, 44, 62, .18);
}
.ds-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ds-navy-900);
  font-size: 14px;
  text-align: left;
}
.ds-menu button:hover {
  background: var(--ds-navy-50);
}
.ds-menu button.is-danger {
  color: var(--ds-problem);
}
.ds-menu hr {
  margin: 4px 0;
  border-color: var(--ds-line-soft);
  opacity: 1;
}
.ds-selbar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--ds-radius);
  background: var(--ds-navy-900);
  color: #FFFFFF;
  font-size: 14px;
}
.ds-selbar label {
  font-size: 13px;
}
.ds-selbar .form-control {
  width: 58px;
  height: 32px;
  min-height: 0;
  padding: 0 8px;
}
.ds-selbar-sep {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(255, 255, 255, .25);
}
.ds-btn-on-dark {
  --bs-btn-color: #FFFFFF;
  --bs-btn-border-color: rgba(255, 255, 255, .5);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: rgba(255, 255, 255, .1);
  --bs-btn-hover-border-color: #FFFFFF;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: rgba(255, 255, 255, .15);
}
.ds-btn-danger-on-dark {
  --bs-btn-color: #FFD9CB;
  --bs-btn-border-color: #F0A58A;
  --bs-btn-hover-color: #FFD9CB;
}
.ds-toast.is-error {
  background: var(--ds-problem);
}
.ds-toast.is-raised {
  bottom: 84px;
}
.ds-toast button {
  padding: 4px 10px;
  border-radius: 7px;
  background: #FFFFFF;
  color: var(--ds-navy-700);
  text-decoration: none;
}
.ds-picker {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(28, 44, 62, .35);
}
.ds-picker-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(460px, 100%);
  max-height: 85vh;
  overflow: auto;
  padding: 20px;
  border-radius: var(--ds-radius);
  background: #FFFFFF;
  box-shadow: 0 14px 36px rgba(28, 44, 62, .25);
}
.ds-picker-card h2 {
  margin: 0;
  font-size: 18px;
}
.ds-picker-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-picker-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
}
.ds-picker-option input[type=radio] {
  margin-top: 4px;
}
.ds-picker-option small {
  display: block;
  color: var(--ds-muted);
}
.ds-picker-new {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ds-picker-new .form-select {
  width: auto;
}
/* "Link to order…": the orders found, and the order a linked group is the photo of. */
.ds-link-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
}
.ds-link-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  background: #FFFFFF;
  text-align: left;
}
.ds-link-result:hover, .ds-link-result:focus-visible {
  border-color: var(--ds-navy-700);
  background: var(--ds-navy-50);
}
.ds-link-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 42px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ds-navy-50);
  color: var(--ds-muted);
  font-size: 20px;
}
.ds-link-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-link-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.ds-link-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-link-text small {
  color: var(--ds-muted);
}
.ds-link-text .ds-link-replace {
  color: var(--ds-sand-700);
}
.ds-group-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ds-done-bg);
  color: var(--ds-navy-900);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-group-order:hover {
  text-decoration: underline;
}
.ds-menu-note {
  margin: 4px 10px;
  color: var(--ds-muted);
  font-size: 12px;
}
@media (max-width: 1199.98px) {
  .ds-groups-head {
    display: none;
  }
  .ds-groups-head + * {
    border-top-left-radius: calc(var(--ds-radius) - 1px);
    border-top-right-radius: calc(var(--ds-radius) - 1px);
  }
  .ds-group-row {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .ds-group-hint, .ds-group-actions {
    grid-column: 2;
  }
  .ds-group-actions {
    justify-content: flex-start;
  }
  .ds-menu {
    left: 0;
    right: auto;
  }
}

/* ---- Sections and entries ---- */

.ds-school + .ds-school {
  margin-top: 28px;
}
.ds-school-name {
  font-size: 17px;
  line-height: 24px;
  margin: 0 0 10px;
}
.ds-school-name span {
  font-weight: 400;
  color: var(--ds-muted);
  font-size: 14px;
}
.ds-sections-row {
  grid-template-columns: minmax(0, 1.6fr) 80px minmax(0, 1fr) 90px 90px 130px 20px;
}
.ds-portraits-row {
  grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1fr) 150px 130px 20px;
}
.ds-sections-done {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-link-state.is-none {
  background: #FFFFFF;
}
.ds-link-state.is-sent {
  background: #EFEDE9;
  box-shadow: none;
}
.ds-link-state.is-progress {
  background: var(--ds-progress-bg);
  color: var(--ds-progress);
  box-shadow: none;
}
.ds-link-state.is-submitted {
  background: var(--ds-done-bg);
  color: var(--ds-done);
  box-shadow: none;
}
@media (max-width: 767.98px) {
  .ds-sections-row, .ds-portraits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .ds-sections-name {
    flex-basis: 100%;
  }
  .ds-sections-done .ds-bar {
    display: none;
  }
}

.ds-counters {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--ds-border);
  background: #FFFFFF;
  color: var(--ds-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ds-counter b {
  font-size: 15px;
}
.ds-counter:hover {
  color: var(--ds-navy-900);
  border-color: var(--ds-navy-700);
}
.ds-counter.is-identified {
  background: var(--ds-done-bg);
  border-color: var(--ds-done-line);
  color: var(--ds-done);
}
.ds-counter.is-problem {
  background: var(--ds-problem-bg);
  border-color: var(--ds-problem-line);
  color: var(--ds-problem);
}
.ds-counter.is-refused {
  background: var(--ds-refused-bg);
  border-color: var(--ds-refused-line);
  color: var(--ds-refused);
}
.ds-counter.is-accepted {
  background: var(--ds-navy-50);
  border-color: #B9CCDD;
  color: var(--ds-navy-700);
}
.ds-counter.is-missing {
  background: var(--ds-missing-bg);
  border-color: var(--ds-missing-line);
  color: var(--ds-missing);
}
.ds-counter.active {
  box-shadow: 0 0 0 2px var(--ds-navy-700);
}
.ds-counter.is-all.active {
  background: var(--ds-navy-700);
  border-color: var(--ds-navy-700);
  color: #FFFFFF;
  box-shadow: none;
}

.ds-section-layout, .ds-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.ds-entry-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.ds-section-main, .ds-section-side, .ds-entry-main, .ds-entry-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ds-section-side .ds-card, .ds-entry-side .ds-card {
  padding: 14px 16px;
}
.ds-section-side h3, .ds-entry-side h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
@media (max-width: 991.98px) {
  .ds-section-layout, .ds-entry-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ds-needs-you h2 .bi {
  color: var(--ds-problem);
}
.ds-needs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--ds-line-soft);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 19px;
}
.ds-needs-row > span {
  flex: 1;
}
.ds-needs-row:hover {
  color: var(--ds-navy-700);
}

.ds-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 16px 12px;
}
@media (max-width: 575.98px) {
  .ds-entry-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}
.ds-entry-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.ds-entry-tile:hover .ds-entry-photo {
  box-shadow: 0 0 0 3px var(--ds-navy-700);
}
.ds-entry-photo {
  position: relative;
  display: block;
  aspect-ratio: 7 / 8;
  border-radius: 7px;
  overflow: hidden;
  background: var(--ds-photo);
  margin-bottom: 3px;
}
.ds-entry-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-entry-photo img.is-waiting {
  opacity: .55;
}
.ds-status-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #FFFFFF;
  color: var(--ds-strong);
  box-shadow: inset 0 0 0 1.5px #8E959C;
}
.ds-status-dot.is-identified {
  background: var(--ds-done-bg);
  color: var(--ds-done);
  box-shadow: none;
}
.ds-status-dot.is-problem {
  background: var(--ds-problem-bg);
  color: var(--ds-problem);
  box-shadow: none;
}
.ds-status-dot.is-refused {
  background: var(--ds-refused-bg);
  color: var(--ds-refused);
  box-shadow: none;
}
.ds-status-dot.is-accepted {
  background: var(--ds-navy-700);
  color: #FFFFFF;
  box-shadow: none;
}
.ds-entry-name {
  font-size: 12px;
  line-height: 16px;
  max-height: 32px;
  overflow: hidden;
}
.ds-entry-badge {
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  color: var(--ds-strong);
}
.ds-entry-badge.is-problem {
  color: var(--ds-problem);
}
.ds-entry-badge.is-missing {
  color: var(--ds-missing);
}
.ds-entry-badge.is-refused {
  color: var(--ds-refused);
}
.ds-entry-badge.is-progress {
  color: var(--ds-progress);
}

.ds-status-chip.is-identified {
  background: var(--ds-done-bg);
  color: var(--ds-done);
  box-shadow: none;
}
.ds-status-chip.is-problem {
  background: var(--ds-problem-bg);
  color: var(--ds-problem);
  box-shadow: none;
}
.ds-status-chip.is-refused {
  background: var(--ds-refused-bg);
  color: var(--ds-refused);
  box-shadow: none;
}
.ds-status-chip.is-accepted {
  background: var(--ds-navy-700);
  color: #FFFFFF;
  box-shadow: none;
}

.ds-entry-frames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.ds-entry-frame {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ds-entry-frame-photo {
  position: relative;
  display: block;
  aspect-ratio: 7 / 8;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ds-photo);
}
.ds-entry-frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-entry-frame.is-chosen .ds-entry-frame-photo {
  box-shadow: 0 0 0 3px var(--ds-done);
}
.ds-entry-frame-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px;
  background: var(--ds-done);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}
.ds-entry-mark {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ds-problem);
}
.ds-entry-frame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ds-entry-frame-actions .btn.active {
  background: var(--ds-problem-bg);
  border-color: var(--ds-problem-line);
  color: var(--ds-problem);
}
.ds-entry-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 16px;
}
.ds-entry-field.is-wide {
  grid-column: 1 / -1;
}
.ds-field-error {
  font-size: 12px;
  color: var(--ds-problem);
  margin-top: 3px;
}
.ds-field-warning {
  font-size: 12px;
  color: var(--ds-missing);
  margin-top: 3px;
}
.ds-field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  border: 1px dashed var(--ds-progress-line);
  border-radius: 6px;
  background: var(--ds-progress-bg);
  color: var(--ds-progress);
  font-size: 12px;
  text-align: left;
}
.ds-field-hint em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
}
.ds-entry-mark-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--ds-line-soft);
}
.ds-entry-mark-row > div {
  flex: 1;
}
.ds-entry-problem, .ds-entry-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.ds-entry-problem .form-select {
  flex: 1 1 160px;
}
.ds-entry-inline + form {
  margin-top: 10px;
}
.ds-entry-inline .form-select {
  flex: 1 1 140px;
}
.ds-entry-history {
  font-size: 12px;
  line-height: 18px;
  padding: 3px 0;
  border-top: 1px solid var(--ds-line-soft);
}

/* ---- Portraits ---- */

.ds-portraits-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.ds-portraits-accept-all {
  margin-left: auto;
}
.ds-segmented-n {
  font-weight: 400;
  color: var(--ds-muted);
}
.ds-portraits-bar .ds-segmented {
  max-width: 100%;
  overflow-x: auto;
}
.ds-portraits-bar .ds-segmented button {
  flex: none;
  white-space: nowrap;
}
.ds-portraits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  align-items: start;
}
.ds-portraits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 16px 12px;
  align-content: start;
}
.ds-portraits-none {
  grid-column: 1 / -1;
  padding: 32px 0;
  text-align: center;
  color: var(--ds-muted);
}
.ds-portrait-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.ds-portrait-tile b {
  padding-top: 4px;
  font-size: 13px;
}
.ds-portrait-name {
  overflow: hidden;
  color: var(--ds-strong);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ds-portrait-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ds-window, 0.875);
  overflow: hidden;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-photo);
}
.ds-portrait-tile.is-selected .ds-portrait-photo {
  outline: 3px solid var(--ds-navy-700);
  outline-offset: 2px;
}
.ds-portrait-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-portrait-photo img.is-waiting {
  filter: grayscale(1);
  opacity: .6;
}
.ds-portrait-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: repeating-linear-gradient(45deg, rgba(154, 154, 154, .8) 0 8px,
    rgba(166, 166, 166, .8) 8px 16px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.ds-portrait-busy .bi {
  font-size: 18px;
}
.ds-portrait-busy.is-error {
  background: rgba(163, 58, 15, .78);
}
.ds-portrait-check {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ds-done-bg);
  color: var(--ds-done);
  font-size: 13px;
}
.ds-portrait-own {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ds-navy-700);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}
.ds-portrait-flag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 4px;
  background: var(--ds-missing);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}
.ds-portrait-panel {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 16px 20px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: #FFFFFF;
}
.ds-portrait-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ds-portrait-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-portrait-title > div {
  flex: 1;
  min-width: 0;
  line-height: 20px;
}
.ds-portrait-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.ds-keys {
  flex: none;
  align-items: center;
  gap: 4px;
}
.ds-portrait-views button {
  flex: 1;
  justify-content: center;
}
.ds-portrait-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 10px;
  border-radius: var(--ds-radius);
  background: #EFEDE9;
}
.ds-portrait-window {
  position: relative;
  width: 250px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ds-photo);
  user-select: none;
}
.ds-portrait-window.is-editable {
  cursor: grab;
  touch-action: none;
}
.ds-portrait-window.is-dragging {
  cursor: grabbing;
}
.ds-portrait-cutout {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.ds-portrait-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ds-portrait-final.is-waiting {
  filter: grayscale(1);
  opacity: .6;
}
.ds-portrait-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ds-guide {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, .9);
}
.ds-guide b {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #FFFFFF;
  font-size: 10px;
  text-shadow: 0 0 3px rgba(0, 0, 0, .5);
}
.ds-portrait-ba {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ds-portrait-ba figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 160px;
  margin: 0;
}
.ds-portrait-ba figcaption {
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.ds-portrait-before {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}
.ds-portrait-before.is-own {
  background: repeating-conic-gradient(#D9D5CF 0 25%, #F2F0EC 0 50%) 0 0 / 16px 16px;
}
.ds-portrait-before img {
  display: block;
  width: 100%;
}
.ds-portrait-box {
  position: absolute;
  border: 1.5px dashed #FFFFFF;
  outline: 1.5px dashed var(--ds-navy-700);
  box-shadow: 0 0 0 999px rgba(28, 44, 62, .35);
}
.ds-portrait-after {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 4px;
  background: #FFFFFF;
}
.ds-portrait-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-portrait-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #B9CCDD;
  border-radius: var(--ds-radius);
  background: var(--ds-navy-50);
  font-size: 13px;
  line-height: 19px;
}
.ds-portrait-note > .bi {
  line-height: 19px;
}
.ds-portrait-note.is-flag {
  border-color: var(--ds-missing-line);
  background: var(--ds-missing-bg);
  color: #4A3500;
}
.ds-portrait-note.is-error {
  border-color: var(--ds-problem-line);
  background: var(--ds-problem-bg);
  color: var(--ds-problem-text);
}
.ds-portrait-note.is-own > .bi {
  color: var(--ds-navy-700);
}
.ds-portrait-adjust {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.ds-portrait-adjust label, .ds-portrait-adjust > span:nth-child(4) {
  font-weight: 700;
}
.ds-portrait-adjust > span:nth-child(3) {
  text-align: right;
}
.ds-portrait-saving {
  color: var(--ds-muted);
  text-align: right;
}
.ds-portrait-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 991.98px) {
  .ds-portraits-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ds-portrait-panel {
    position: static;
    order: -1;
    max-height: none;
    padding: 14px 16px;
  }
  .ds-portrait-stage {
    min-height: 0;
  }
  .ds-portraits-accept-all {
    margin-left: 0;
  }
  .ds-portraits-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

/* ---- Issues ---- */

.ds-issues-group + .ds-issues-group {
  margin-top: 28px;
}
.ds-issues-group h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
}
.ds-issues-group h2 span {
  font-weight: 400;
}
.ds-issue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ds-line-soft);
}
.ds-issue-row:last-child {
  border-bottom: 0;
}
.ds-issue-photos {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-issue-photo {
  display: block;
  width: 56px;
  aspect-ratio: 7 / 8;
  overflow: hidden;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-photo);
}
.ds-issue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-issue-what {
  min-width: 0;
  line-height: 20px;
}
.ds-issue-what .ds-row-title {
  text-decoration: none;
}
.ds-issue-name {
  margin-left: 6px;
  color: var(--ds-strong);
}
.ds-issue-offline {
  color: var(--ds-problem);
}
.ds-issue-actions, .ds-issue-move, .ds-issue-merge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ds-issue-move .form-select {
  width: auto;
  max-width: 220px;
}
@media (max-width: 767.98px) {
  .ds-issue-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ds-issue-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* ---- Acceptance ---- */

.ds-accept {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1060px;
}
.ds-accept-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.ds-accept-bulk > div {
  flex: 1 1 360px;
}
.ds-accept-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ds-accept-who {
  flex: 1;
  min-width: 0;
  line-height: 20px;
}
.ds-accept-who .ds-row-title {
  text-decoration: none;
}
.ds-accept-diff {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 12px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  overflow: hidden;
  font-size: 14px;
}
.ds-accept-diff-head, .ds-accept-diff-row {
  display: contents;
}
.ds-accept-diff-head span {
  padding: 8px 12px;
  background: var(--ds-bg);
  color: var(--ds-muted);
  font-size: 12px;
  font-weight: 700;
}
.ds-accept-diff-row > * {
  padding: 8px 12px;
  border-top: 1px solid var(--ds-line-soft);
}
.ds-accept-diff-row > span {
  font-weight: 700;
}
.ds-accept-diff-row label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.ds-accept-diff-row .form-check-input {
  flex: none;
  margin-top: 3px;
}
.ds-accept-note {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ds-problem-line);
  border-radius: var(--ds-radius);
  background: var(--ds-problem-bg);
  color: var(--ds-problem-text);
  font-size: 14px;
}
.ds-accept-similar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ds-line-soft);
}
.ds-accept-candidate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
}
.ds-accept-candidate > div {
  flex: 1;
  min-width: 0;
  line-height: 18px;
}
.ds-accept-clean {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 16px;
  font-size: 14px;
}
.ds-accept-clean a {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .ds-accept-diff {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ds-accept-diff-head span:first-child {
    display: none;
  }
  .ds-accept-diff-row > span {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .ds-accept-diff-row label {
    border-top: 0;
  }
  .ds-accept-head {
    flex-wrap: wrap;
  }
}

/* ---- Class list ---- */

.ds-list-row {
  grid-template-columns: minmax(0, 1.6fr) 130px 110px minmax(0, 1.4fr) 100px;
  padding: 10px 20px;
  font-size: 14px;
}
.ds-list-tie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.ds-list-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--ds-line-soft);
  font-size: 14px;
  line-height: 18px;
}
.ds-list-upload > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ds-map-column {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 200px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--ds-line-soft);
  font-size: 14px;
  line-height: 18px;
}
.ds-map-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ds-navy-50);
  color: var(--ds-navy-700);
  font-weight: 700;
}
.ds-map-column .is-choose {
  border-color: var(--ds-missing-line);
  background-color: var(--ds-missing-bg);
}
.ds-map-sample {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 2px 10px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--ds-line-soft);
  font-size: 13px;
}
.ds-map-sample dt {
  color: var(--ds-muted);
  font-weight: 400;
}
.ds-map-sample dd {
  margin: 0;
}
@media (max-width: 767.98px) {
  .ds-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .ds-list-row > div:first-child {
    flex-basis: 100%;
  }
  .ds-list-row .ds-list-none {
    display: none;
  }
  .ds-map-column {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .ds-map-column > select, .ds-map-column > .ds-chip {
    grid-column: 2;
  }
}

/* ---- Backup and system ---- */

.ds-card-state {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ds-muted);
}
.ds-card-state.is-safe {
  color: var(--ds-done);
}
.ds-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1040px;
}
.ds-system-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ds-system-head h2 {
  margin: 0;
}
.ds-system-head h2 .bi {
  margin-right: 6px;
  color: var(--ds-navy-700);
}
.ds-system-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  margin: 0;
  font-size: 14px;
}
.ds-system-facts dt {
  color: var(--ds-muted);
  font-weight: 400;
}
.ds-system-facts dd {
  margin: 0;
  text-align: right;
}
.ds-system-problem {
  color: var(--ds-problem);
}
.ds-system-keep {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}
