/* Docs Studio's PDF editor (dp-). It fills the studio's work area: a
   toolbar, a strip of settings for what is chosen, then the pages down the
   left beside one scrolling column of pages, white sheets on the dark
   stage. On a phone the toolbar and the strip scroll sideways and the pages
   list is a drawer. Chunky like the rest of the site: square corners, 2px
   near-black edges, hard shadows, purple for what is on, gold only under
   the pointer and on press. */

.dp-app {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg-deep);
  font: 13px/1.35 var(--body);
  text-align: left;
  container: dp / inline-size;
}
.dp-app button { font: inherit; }
.dp-app :is(button, input, select, textarea):focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- Opening, and a PDF that cannot be opened ---- */
.dp-loading, .dp-failed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 1; padding: 24px; color: var(--muted); text-align: center; }
.dp-failed h2 { margin: 0; color: var(--text); font-size: 1.2rem; }
.dp-failed p { max-width: 460px; margin: 0; color: var(--danger); }
.dp-spinner { width: 26px; height: 26px; border: 3px solid var(--surface-2); border-top-color: var(--accent-strong); animation: dp-spin 800ms linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }

/* ---- Toolbar ---- */
.dp-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-height: 50px;
  padding: 5px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  background: var(--surface);
  border-bottom: 2px solid var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}
.dp-sep { flex: none; width: 2px; height: 26px; margin: 0 6px; background: var(--edge); }
.dp-grow { flex: 1 1 auto; min-width: 8px; }
.dp-group { display: inline-flex; align-items: center; gap: 2px; flex: none; margin-left: 8px; }
.dp-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 36px;
  padding: 0 9px;
  color: var(--muted);
  background: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 160ms var(--spring, ease), box-shadow 160ms ease;
}
.dp-tool svg { flex: none; }
.dp-tool span { font-weight: 600; }
.dp-tool.is-active { color: var(--fill-text); background: var(--fill); border-color: var(--edge); box-shadow: var(--hard); }
.dp-ib {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 160ms ease;
}
.dp-ib[aria-pressed="true"], .dp-ib.is-on { color: var(--tint-text); background: var(--tint); border-color: var(--edge); }
.dp-ib:disabled { opacity: 0.4; cursor: default; }
.dp-zoom { min-width: 48px; color: var(--text); font-family: var(--mono); font-size: 0.74rem; text-align: center; font-variant-numeric: tabular-nums; }
.dp-num {
  width: 56px;
  padding: 5px 6px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--edge);
  border-radius: 0;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.dp-pagein { width: 46px; text-align: center; }
.dp-count { padding: 0 4px; color: var(--muted); font-family: var(--mono); font-size: 0.74rem; }
.dp-flatten { margin: 0 6px; }

/* ---- The settings strip ---- */
.dp-props {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex: none;
  min-height: 44px;
  padding: 5px 12px;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--surface);
  border-bottom: 2px solid var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}
.dp-props > * { flex: none; }
.dp-props-what { padding-right: 12px; border-right: 2px solid var(--edge); color: var(--accent-strong); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dp-props-what:empty { display: none; }
.dp-opt { display: inline-flex; align-items: center; gap: 6px; }
.dp-opt-label { color: var(--muted); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dp-hint { color: var(--faint); white-space: normal; min-width: 200px; flex: 1 1 auto !important; }
.dp-props .dp-num { width: 64px; }
.dp-select { min-width: 110px; padding-top: 5px; padding-bottom: 5px; background-color: var(--bg); border: 2px solid var(--edge); }
.dp-color { width: 38px; height: 30px; padding: 2px; background: var(--bg); border: 2px solid var(--edge); border-radius: 0; cursor: pointer; }
.dp-color::-webkit-color-swatch-wrapper { padding: 0; }
.dp-color::-webkit-color-swatch { border: 0; border-radius: 0; }
.dp-color::-moz-color-swatch { border: 0; border-radius: 0; }
.dp-ob {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 32px;
  height: 32px;
  justify-content: center;
  padding: 0 10px;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--edge);
  border-radius: 0;
  box-shadow: var(--hard);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.dp-ob.is-on { color: var(--fill-text); background: var(--fill); }
.dp-b { font-weight: 900; }
.dp-i { font-style: italic; font-family: Georgia, "Times New Roman", serif !important; }
.dp-del { color: var(--danger); }
.dp-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg); border: 2px solid var(--edge); }
.dp-seg-btn { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; color: var(--muted); background: none; border: 0; border-radius: 0; cursor: pointer; transition: background 140ms ease, color 140ms ease; }
.dp-seg-btn.is-active { color: var(--fill-text); background: var(--fill); }
.dp-chip { display: block; width: 16px; height: 16px; border: 2px solid var(--edge); }

/* ---- Body: pages list and stage ---- */
.dp-body { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.dp-side {
  display: none;
  flex-direction: column;
  flex: none;
  width: 184px;
  min-height: 0;
  background: var(--surface);
  border-right: 2px solid var(--edge);
}
.dp-app.is-side-open .dp-side { display: flex; }
.dp-side-head { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 2px solid var(--edge); }
.dp-side-head .dp-ib { width: 32px; height: 32px; }
.dp-side-note { margin: 0; padding: 6px 10px; color: var(--faint); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.dp-thumbs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 12px 18px 24px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}
.dp-thumb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 2px solid transparent; cursor: pointer; outline: none; -webkit-user-select: none; user-select: none; transition: border-color 140ms ease, background 140ms ease; }
.dp-thumb-box { position: relative; width: 100%; overflow: hidden; background: #fff; border: 2px solid var(--edge); box-shadow: var(--hard); }
.dp-thumb-sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dp-thumb-sheet canvas { display: block; width: 100%; height: 100%; }
.dp-thumb-num { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.dp-thumb-grip { position: absolute; top: 10px; right: 10px; display: none; place-items: center; width: 24px; height: 24px; color: var(--edge); background: rgba(255, 255, 255, 0.8); touch-action: none; }
.dp-thumb.is-current .dp-thumb-num { color: var(--text); font-weight: 700; }
.dp-thumb.is-current .dp-thumb-box { box-shadow: 4px 4px 0 var(--accent); }
.dp-thumb.is-picked { background: var(--tint); border-color: var(--edge); }
.dp-thumb.is-picked .dp-thumb-num { color: var(--tint-text); }
.dp-thumb:focus-visible { box-shadow: var(--focus-ring); }
.dp-thumb.is-dragging { z-index: 2; background: var(--surface-2); border-color: var(--gold); transition: none; }
.dp-thumbs.is-sorting .dp-thumb:not(.is-dragging) { transition: transform 180ms ease; }
.dp-scrim { display: none; }

.dp-stage { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; background: #0b0914; outline: none; scrollbar-color: var(--surface-2) transparent; }
.dp-pages { display: flex; flex-direction: column; align-items: center; gap: 24px; width: max-content; min-width: 100%; padding: 24px 24px 64px; }
.dp-page { position: relative; flex: none; background: #fff; border: 2px solid var(--edge); box-shadow: var(--hard-big); box-sizing: content-box; }
.dp-sheet, .dp-sheet canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.dp-page.is-broken .dp-sheet::after { content: "This page could not be drawn"; position: absolute; inset: 0; display: grid; place-items: center; color: #666; }
.dp-marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dp-mark { position: absolute; white-space: pre; font-family: Helvetica, Arial, "Liberation Sans", sans-serif; }
.dp-layer { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; }

/* Things placed on a page */
.dp-item { position: absolute; box-sizing: border-box; outline: none; cursor: move; touch-action: none; -webkit-user-select: none; user-select: none; }
.dp-item:hover { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.7); }
.dp-item.is-on { box-shadow: 0 0 0 2px var(--accent); }
.dp-item.is-on:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgba(163, 127, 248, 0.45); }
.dp-item.is-moving { opacity: 0.85; }
.dp-item img, .dp-item svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.dp-item svg { overflow: visible; }
.dp-item.is-highlight { mix-blend-mode: multiply; }
.dp-item.is-highlight.is-on, .dp-item.is-highlight:hover { opacity: 0.6 !important; }
.dp-item.is-whiteout { background: #fff; }
.dp-item.is-whiteout:not(.is-on):not(:hover) { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.dp-text {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  white-space: pre;
  pointer-events: none;
  cursor: move;
  caret-color: var(--accent);
}
.dp-item.is-editing .dp-text { pointer-events: auto; cursor: text; }
.dp-item.is-editing { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(139, 92, 246, 0.25); cursor: text; }
.dp-app .dp-text:focus-visible { box-shadow: none; }
.dp-item.is-edit.is-on, .dp-item.is-edit.is-editing { background: rgba(255, 255, 255, 0.0); }
.dp-cover { position: absolute; cursor: text; }
.dp-h { position: absolute; display: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; border: 2px solid var(--accent); touch-action: none; z-index: 1; }
.dp-item.is-on:not(.is-editing) .dp-h { display: block; }
.dp-h-nw { left: var(--pad, 0); top: var(--pad, 0); cursor: nwse-resize; }
.dp-h-ne { left: calc(100% - var(--pad, 0px)); top: var(--pad, 0); cursor: nesw-resize; }
.dp-h-sw { left: var(--pad, 0); top: calc(100% - var(--pad, 0px)); cursor: nesw-resize; }
.dp-h-se { left: calc(100% - var(--pad, 0px)); top: calc(100% - var(--pad, 0px)); cursor: nwse-resize; }
.dp-h-p1, .dp-h-p2 { cursor: move; border-radius: 50%; }
@media (pointer: coarse) {
  .dp-h { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
}

/* The PDF's own text, ready to edit or highlight */
.dp-run { position: absolute; display: none; }
.dp-app[data-tool="edittext"] .dp-run { display: block; cursor: text; background: rgba(139, 92, 246, 0.07); box-shadow: inset 0 -1px 0 rgba(139, 92, 246, 0.35); }
.dp-app[data-tool="edittext"] .dp-run:hover { background: rgba(139, 92, 246, 0.16); box-shadow: 0 0 0 1px var(--accent); }
.dp-app[data-tool="highlight"] .dp-run { display: block; cursor: text; }
.dp-app[data-tool="highlight"] .dp-run:hover { background: rgba(255, 235, 59, 0.3); }
.dp-app:is([data-tool="draw"], [data-tool="whiteout"], [data-tool="highlight"], [data-tool="shape"]) .dp-page { cursor: crosshair; touch-action: none; }
.dp-app:is([data-tool="text"], [data-tool="date"], [data-tool="stamp"], [data-tool="image"], [data-tool="signature"], [data-tool="initials"]) .dp-page { cursor: copy; }
.dp-draft { position: absolute; left: 0; top: 0; pointer-events: none; }
.dp-draft svg { display: block; overflow: visible; }
.dp-band { box-sizing: border-box; border: 1px dashed var(--accent); }
.dp-band.is-whiteout { background: rgba(255, 255, 255, 0.9); border-color: #999; }
.dp-band.is-highlight { background: rgba(255, 235, 59, 0.4); border: 0; }
.dp-band.is-line, .dp-band.is-arrow { border: 0; }

/* Form fields */
.dp-field {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0 3px;
  color: #000;
  background: rgba(204, 215, 255, 0.55);
  border: 1px solid rgba(60, 80, 200, 0.5);
  border-radius: 0;
  font-family: Helvetica, Arial, sans-serif;
  outline: none;
  resize: none;
}
.dp-field:hover { border-color: var(--accent); }
.dp-field:focus { background: rgba(225, 232, 255, 0.85); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35); }
.dp-field-check { accent-color: var(--accent); cursor: pointer; }

/* ---- Dialogs: signature, page numbers ---- */
.dp-sig-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dp-sig .seg { margin: 0; }
.dp-sig-panel { display: flex; flex-direction: column; gap: 10px; }
.dp-sig-panel[hidden] { display: none; }
.dp-sig-padwrap { position: relative; height: 200px; background: #fff; border: 2px solid var(--edge); box-shadow: var(--hard); }
.dp-sig-pad { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.dp-sig-line { position: absolute; left: 8%; right: 8%; bottom: 28%; height: 1px; background: #c8c4d6; pointer-events: none; }
.dp-sig-hint { position: absolute; left: 8%; bottom: calc(28% + 6px); color: #9a95ad; font-size: 0.8rem; pointer-events: none; }
.dp-sig-padwrap.is-inked .dp-sig-hint { display: none; }
.dp-sig-row { display: flex; gap: 8px; }
.dp-sig-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dp-sig-font { height: 72px; padding: 0 10px; overflow: hidden; color: #111; background: #fff; border: 2px solid var(--edge); border-radius: 0; box-shadow: var(--hard); cursor: pointer; font-size: 30px !important; white-space: nowrap; text-overflow: ellipsis; }
.dp-sig-font.is-active { box-shadow: 0 0 0 3px var(--accent), var(--hard); }
.dp-sig-preview { display: grid; place-items: center; min-height: 90px; padding: 10px; color: var(--muted); background: #fff; border: 2px solid var(--edge); }
.dp-sig-preview img { max-width: 100%; max-height: 140px; }
.dp-sig-remember { margin-top: 2px; }

.dp-marksform .st-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.dp-marks-on { margin-top: 4px; font-size: 0.95rem; }
.dp-marks-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.dp-marksform .st-field-num { width: 100%; }
.dp-marksform .dp-select { width: 100%; }
.dp-marksform .input { padding: 8px 10px; }
.dp-pos { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: 26px 26px; gap: 4px; padding: 8px; background: #fff; border: 2px solid var(--edge); box-shadow: var(--hard); align-content: space-between; height: 108px; }
.dp-pos-cell { width: 26px; height: 18px; padding: 0; background: #e4e1ee; border: 2px solid var(--edge); border-radius: 0; cursor: pointer; }
.dp-pos-cell:nth-child(n + 4) { align-self: end; }
.dp-pos-cell.is-active { background: var(--fill); }

/* ---- Compare ---- */
.dp-cmp { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg-deep); }
.dp-cmp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 12px; background: var(--surface); border-bottom: 2px solid var(--edge); }
.dp-cmp-title { margin: 0; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.dp-cmp-files { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.dp-cmp-files b { font-weight: 600; text-decoration: none; }
.dp-cmp-sum { flex: 1 1 auto; color: var(--text); font-family: var(--mono); font-size: 0.74rem; text-align: right; }
.dp-cmp-x { margin-left: 4px; }
.dp-cmp-body { flex: 1 1 auto; min-height: 0; padding: 16px; overflow: auto; }
.dp-cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 12px; color: var(--muted); }
.dp-cmp-page { margin: 0 0 16px; background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--hard); }
.dp-cmp-page.is-changed { border-left: 6px solid var(--gold); }
.dp-cmp-ph { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 12px; font-size: 0.85rem; border-bottom: 1px solid var(--rule); }
.dp-cmp-ph span { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.dp-cmp-page.is-changed .dp-cmp-ph span { color: var(--gold); }
.dp-cmp-cols { display: grid; grid-template-columns: 1fr 1fr; }
.dp-cmp-col { min-width: 0; padding: 12px 14px; color: #1d1a26; background: #fff; font: 13px/1.6 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.dp-cmp-col + .dp-cmp-col { border-left: 2px solid var(--edge); }
.dp-cmp-none { color: #8c879c; }
.dp-del-word { color: #c5221f; text-decoration: line-through; text-decoration-thickness: 2px; background: rgba(217, 48, 37, 0.12); }
.dp-add-word { color: #137333; text-decoration: none; background: rgba(24, 128, 56, 0.16); }
.dp-cmp-files .dp-del-word, .dp-cmp-files .dp-add-word { background: none; text-decoration: none; }
.dp-cmp-files .dp-del-word { color: #ff8a80; }
.dp-cmp-files .dp-add-word { color: #8be3a5; }
.dp-cmp-legend .dp-del-word { color: #ff8a80; background: rgba(217, 48, 37, 0.25); }
.dp-cmp-legend .dp-add-word { color: #8be3a5; background: rgba(24, 128, 56, 0.3); }
.dp-cmp-pick { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.dp-cmp-pick label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.dp-cmp-visual { display: flex; justify-content: center; }
.dp-cmp-canvas { display: block; max-width: 100%; height: auto; border: 2px solid var(--edge); box-shadow: var(--hard-big); }
.dp-swatch { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; border: 2px solid var(--edge); }

/* ---- Gold under the pointer, and on press ---- */
@media (hover: hover) {
  :is(.dp-tool, .dp-tool.is-active, .dp-ib, .dp-ib[aria-pressed="true"], .dp-ob, .dp-ob.is-on, .dp-seg-btn, .dp-seg-btn.is-active, .dp-pos-cell):not(:disabled):hover {
    color: var(--edge);
    background: var(--gold);
    border-color: var(--edge);
  }
  :is(.dp-tool, .dp-ob):not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: var(--hard-lift); }
  .dp-del:hover { color: #fff !important; background: #b9524e !important; }
  .dp-thumb:hover { border-color: var(--gold); }
  :is(.dp-num, .dp-select, .dp-color):hover { border-color: var(--gold); }
  .dp-sig-font:hover { border-color: var(--gold); }
}
:is(.dp-tool, .dp-ib, .dp-ob, .dp-seg-btn, .dp-pos-cell):not(:disabled):active {
  color: var(--edge);
  background: var(--gold);
  border-color: var(--edge);
  transform: translate(2px, 2px);
  box-shadow: none;
  transition-duration: 60ms;
}

/* Narrower: the tools keep their icons and lose their words (the names are
   still in their tooltips and labels), the main three last. */
@container dp (max-width: 1880px) {
  .dp-tool:not([data-tool="edittext"]):not([data-tool="text"]):not([data-tool="signature"]) span { display: none; }
  .dp-tool:not([data-tool="edittext"]):not([data-tool="text"]):not([data-tool="signature"]) { padding: 0 7px; }
}
@container dp (max-width: 1100px) {
  .dp-tool span { display: none; }
  .dp-tool { padding: 0 7px; }
}

/* ---- Phones ---- */
@media (max-width: 760px) {
  .dp-bar { min-height: 46px; padding: 4px 6px; }
  .dp-tool { height: 36px; padding: 0 7px; }
  .dp-tool span { font-size: 0.78rem; }
  .dp-props { padding: 4px 8px; gap: 8px; }
  .dp-hint { min-width: 240px; }
  .dp-side {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 12;
    display: flex;
    width: min(240px, 78%);
    box-shadow: var(--hard-big);
    transform: translateX(calc(-100% - 10px));
    transition: transform 240ms var(--settle, ease);
  }
  .dp-app.is-side-open .dp-side { transform: none; }
  .dp-app.is-side-open .dp-scrim { position: absolute; inset: 0; z-index: 11; display: block; background: rgba(8, 6, 16, 0.55); }
  .dp-thumb-grip { display: grid; }
  .dp-pages { gap: 14px; padding: 12px 10px 48px; }
  .dp-page { box-shadow: var(--hard); }
  .dp-cmp-cols { grid-template-columns: 1fr; }
  .dp-cmp-col + .dp-cmp-col { border-left: 0; border-top: 2px solid var(--edge); }
  .dp-cmp-sum { flex-basis: 100%; text-align: left; order: 5; }
  .dp-marks-grid { grid-template-columns: 1fr; }
  .dp-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-app *, .dp-app *::before { transition: none !important; animation: none !important; }
}
