/* REDACT tool page — iLovePDF-style workspace (client 2026-10-17: "need same
   ui for readct with our fucntion check ilobepdf").

   Layout: page thumbnails rail | document stage (mini tools, zoom bar, add
   button) | Redact options panel (improved detection = Smart redact, basic
   detection = search + auto-find chips, red Redact button). Every class is
   redact-scoped so nothing leaks into the shared pages. */

/* The app wants the full window, not the 860px tool column. */
.redact-page.tool-page { max-width: none; padding: 20px 22px 26px; }
.redact-page .tool-form { max-width: 860px; margin: 0 auto; }
.redact-page .dropzone { border-radius: 16px; }

/* ------------------------------------------------------------- the shell -- */
.rd-app {
  position: relative;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 356px;
  /* One row that never exceeds the shell: without this the row is sized by
     the tallest page, so the document stage grew past the window and the
     scroll box had nothing to scroll. */
  grid-template-rows: minmax(0, 1fr);
  /* The shell ends above the window edge: 121px of header, breadcrumb and
     page padding sit above it, so 100vh alone pushed the zoom bar and the
     Redact button off-screen. */
  height: calc(100vh - var(--header-h, 64px) - 84px);
  min-height: 540px;
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid #e3e8ee;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(23, 43, 66, .08);
}
.rd-app.is-railless { grid-template-columns: minmax(0, 1fr) 356px; }
.rd-app.is-railless .rd-rail { display: none; }
.rd-app.is-railless .rd-rail-toggle { left: 0; transform: translate(-50%, -50%) rotate(180deg); }

/* ---------------------------------------------------------------- rail --- */
.rd-rail {
  overflow-y: auto;
  padding: 16px 10px;
  background: #f7f8fa;
  border-right: 1px solid #e3e8ee;
}
.rd-rail-toggle {
  position: absolute;
  left: 172px; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: 22px; height: 46px;
  border: 1px solid #e3e8ee; border-radius: 8px;
  background: #fff; color: #5d6f83;
  font-size: 16px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 35, 60, .1);
}
.rd-rail-toggle:hover { color: #e5322d; border-color: #f0c9c7; }
.rd-thumbs { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rd-thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 35, 60, .12);
  transition: border-color .15s, transform .15s;
}
.rd-thumb:hover { transform: translateY(-1px); }
.rd-thumb canvas { display: block; border-radius: 5px; }
.rd-thumb.is-on { border-color: #e5322d; }
.rd-thumb-num {
  display: block; padding: 3px 0 1px;
  font-size: 11.5px; font-weight: 600; color: #66788b; text-align: center;
}
.rd-thumb.is-on .rd-thumb-num { color: #e5322d; }

/* --------------------------------------------------------------- stage --- */
.rd-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;                   /* let the scroll row shrink, not grow */
  background: #eef1f5;
}
.rd-stage-top {
  display: flex; align-items: stretch; gap: 0;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
}
/* Labeled tool tabs like iLovePDF's: Pan · Redact · Redact page · Remove,
   with the active tab tinted pink and the tool red. */
.rd-tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; min-height: 54px;
  border: 0; border-right: 1px solid #eef1f5;
  background: none; color: #5d6f83;
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.rd-tool:hover { color: #33475b; background: #f8fafc; }
.rd-tool i { font-size: 17px; }
.rd-tool.is-on { color: #e5322d; background: #fff1f0; }
.rd-scroll { overflow: auto; padding: 22px 20px 30px; min-height: 0; }
.rd-add {
  position: absolute;
  top: 62px; right: 16px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: #e5322d; color: #fff;
  font-size: 22px; line-height: 1; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(229, 50, 45, .38);
  z-index: 6;
}
.rd-add:hover { background: #d42b26; }
.rd-add-count {
  position: absolute; top: -4px; left: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: #1d2b3a; color: #fff;
  border: 2px solid #eef1f5;
  font-size: 10.5px; font-weight: 700; line-height: 15px;
}
.rd-zoombar {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  padding: 8px 12px 12px;
  background: #fff;
  border-top: 1px solid #e3e8ee;
}
/* The dark zoom pill, exactly iLovePDF's bottom control. */
.rd-zoom-pill {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 10px;
  background: #3b3b3b;
  box-shadow: 0 6px 16px rgba(15, 35, 60, .22);
}
.rd-nav {
  width: 26px; height: 30px; border-radius: 7px;
  border: 0; background: none; color: #f2f2f2;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.rd-nav:hover { background: rgba(255, 255, 255, .12); }
.rd-zoom {
  height: 30px; padding: 0 6px;
  border: 1px solid #fff; border-radius: 6px;
  background: transparent; color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.rd-zoom option { color: #1f2d3d; }
/* The zoom rocker: minus, the percentage, plus — the control the editor's
   page bar already uses, in this screen's own dark pill. */
.rd-zoom-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .26); }
.rd-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 7px;
  background: none; color: #f2f2f2;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.rd-step:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.rd-step:disabled { opacity: .38; cursor: default; }
.rd-zoom-read {
  min-width: 60px; height: 30px; padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 6px;
  background: transparent; color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.rd-zoom-read:hover { background: rgba(255, 255, 255, .12); }
/* The eye in the pill: the magnifier switch sits with the view controls, not
   in the tool row — a fifth labelled tab there wrapped "Redact page". */
.rd-eye { color: #9fb0c0; }
/* Enabled reads as a lifted key of the pill, not as the red "redact" colour —
   this is a view aid, not a destructive tool. */
.rd-eye.is-on { color: #fff; background: rgba(255, 255, 255, .17); }
.rd-eye.is-on:hover { background: rgba(255, 255, 255, .26); }

/* The magnifier that follows the pointer while a redaction box is dragged.
   Fixed, so clientX/Y place it directly; pointer-events off, so it never
   steals the drag it belongs to. */
.rd-loupe {
  position: fixed; z-index: 70;
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 35, 60, .34), 0 0 0 1px rgba(15, 35, 60, .16);
  overflow: hidden; pointer-events: none;
}
.rd-loupe canvas { display: block; width: 100%; height: 100%; }
.rd-loupe[hidden] { display: none; }
@media (max-width: 640px) {
  .rd-loupe { width: 108px; height: 108px; border-width: 2px; }
  .rd-zoom-read { min-width: 52px; padding: 0 6px; }
}
.rd-file {
  display: inline-flex; align-items: baseline; gap: 6px;
  max-width: 42ch; margin-left: 6px;
  font-size: 12.5px; color: #5d6f83;
}
#redact-name {
  max-width: 30ch; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 600;
}
.rd-filemeta { color: #93a1b1; }

/* --------------------------------------------------------------- panel --- */
.rd-panel {
  display: flex; flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  padding: 20px 20px 16px;
  background: #fff;
  border-left: 1px solid #e3e8ee;
}
.rd-title {
  margin: 0 0 16px;
  font-size: 1.62rem; color: #1f2d3d; text-align: center;
}
.rd-info {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px; padding: 13px 14px;
  border: 1px solid #bcd9f5; border-radius: 10px;
  background: #eaf4ff; color: #21578c;
  font-size: 13.5px; line-height: 1.55;
}
.rd-info-ico { flex: 0 0 auto; margin-top: 1px; color: #3d84d6; font-size: 17px; }
.rd-change {
  display: inline-block; margin-top: 8px; padding: 0;
  border: 0; background: none; color: #17599c;
  font: inherit; font-size: 12.6px; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.rd-info { flex-wrap: wrap; }
.rd-info .rd-change { flex: 1 1 100%; margin-top: 6px; }
.rd-block { margin-bottom: 20px; }
.rd-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #33475b; }
.rd-smart {
  display: flex; align-items: center; gap: 10px;
  width: fit-content; min-width: 210px;
  padding: 10px 16px;
  border: 2px solid #7c5cd6; border-radius: 10px;
  background: #fff; color: #6d4bc0;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.rd-smart:hover { background: #f6f2ff; box-shadow: 0 4px 14px rgba(109, 75, 192, .16); }
.rd-smart:disabled { opacity: .5; cursor: not-allowed; }
.rd-searchrow { display: flex; gap: 8px; }
.rd-searchrow input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid #dbe3ec; border-radius: 10px;
  background: #fff; font: inherit; font-size: 13.5px; color: #2f3f52;
  transition: border-color .15s, box-shadow .15s;
}
.rd-searchrow input::placeholder { color: #9aa9ba; }
.rd-searchrow input:focus {
  outline: none; border-color: #f0a6a3;
  box-shadow: 0 0 0 3px rgba(229, 50, 45, .12);
}
.rd-searchgo {
  flex: 0 0 auto; height: 40px; padding: 0 14px;
  border: 1px solid #e5322d; border-radius: 10px;
  background: #fff; color: #e5322d;
  font: inherit; font-size: 12.8px; font-weight: 700;
  cursor: pointer;
}
.rd-searchgo:hover { background: #fff3f3; }
.rd-searchgo:disabled { opacity: .5; cursor: not-allowed; }
.rd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rd-chips-label {
  margin-right: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #93a1b1;
}
.rd-chip {
  height: 28px; padding: 0 11px;
  border: 1px solid #e0e7ef; border-radius: 999px;
  background: #f7f9fb; color: #45566b;
  font: inherit; font-size: 12.3px; font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.rd-chip:hover { background: #fff; color: #e5322d; border-color: #f0c9c7; }
.rd-chip:disabled { opacity: .5; cursor: not-allowed; }
.redact-count {
  display: inline-block; margin-top: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: #eef3f8; border: 1px solid #e2eaf3;
  color: #5a6d83;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.redact-count.has { background: #1d2b3a; border-color: #1d2b3a; color: #fff; }

/* What the finders marked, word by word. A Smart sweep can drop dozens of
   boxes on a long document; the list says which words they cover, and a
   click jumps to the page with the mark flashed. */
.rd-finds { margin-top: 12px; }
.rd-findlist {
  margin: 0; padding: 0; list-style: none;
  max-height: 168px; overflow-y: auto;
  border: 1px solid #e6ecf3; border-radius: 10px; background: #fbfcfe;
}
.rd-findlist li + li { border-top: 1px solid #eef2f7; }
.rd-find {
  display: flex; align-items: baseline; gap: 8px;
  width: 100%; padding: 7px 10px;
  border: 0; background: none; text-align: left;
  font: inherit; cursor: pointer;
}
.rd-find:hover { background: #fff1f0; }
.rd-find-kind {
  flex: 0 0 auto; padding: 1px 6px; border-radius: 5px;
  background: #eef3f8; color: #5a6d83;
  font-size: 10.5px; font-weight: 700; text-transform: capitalize;
}
.rd-find-text {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #25364a; font-size: 12.4px; font-weight: 600;
}
.rd-find-page { flex: 0 0 auto; color: #93a1b1; font-size: 11px; font-weight: 600; }
.rx-box.is-flash { outline: 3px solid #ffd400; outline-offset: 1px; }
.rd-rowactions { display: flex; gap: 8px; margin: 4px 0 2px; }
.rd-act {
  flex: 1 1 0; height: 34px;
  border: 1px solid #e0e7ef; border-radius: 9px;
  background: #fff; color: #45566b;
  font: inherit; font-size: 12.6px; font-weight: 600;
  cursor: pointer;
}
.rd-act:hover { border-color: #c9d6e3; background: #f7fafc; color: #32445a; }
.rd-act:disabled { opacity: .5; cursor: not-allowed; }
.rd-hint { margin: 12px 0 0; color: #7a8894; font-size: 12.3px; line-height: 1.55; }

/* The working strip — what the page shows while a scan runs (the AI pass is
   ~15s a page against the free model; without this the button looked dead). */
.redact-working {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 11px 13px;
  background: #fff; border: 1px solid #dbe7f2; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 35, 60, .06);
  font-size: 13px; color: #37474f;
}
.redact-working[hidden] { display: none; }
.redact-working.rw-ok { border-color: #c3e5cf; background: #f4fbf6; color: #1e6b3f; }
.redact-working.rw-err { border-color: #f0c4c4; background: #fff7f7; color: #a94442; }
.rw-spin {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid #cfe0f0; border-top-color: var(--brand, #1f7a6d);
  animation: rwspin .8s linear infinite;
}
.redact-working.rw-ok .rw-spin, .redact-working.rw-err .rw-spin { display: none; }
.redact-working.rw-ok::before { content: "\2713"; font-weight: 700; }
.redact-working.rw-err::before { content: "\26a0"; font-weight: 700; }
.rw-text { flex: 1 1 140px; }
.rw-bar {
  flex: 1 1 100%; height: 6px;
  border-radius: 3px; background: #e3e9f0; overflow: hidden;
}
.rw-bar[hidden] { display: none; }
.rw-bar i {
  display: block; height: 100%; width: 0;
  background: var(--brand, #1f7a6d); border-radius: 3px;
  transition: width .25s ease;
}
@keyframes rwspin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- pages --- */
/* The page is the picture, and zoom has to magnify it. The global
   `img, canvas { max-width: 100% }` shrank a zoomed page back to the column
   width: 125%, 150% and 200% all rendered the same 539px sheet, so zoom
   looked dead — and, worse, the marks are measured in points against the
   scale the canvas was RENDERED at, which no longer matched the picture on
   screen (client: "when u zoom and use redact it missplace"). The stage
   scrolls sideways instead, which is what a zoom is for. */
.redact-pages .redact-page canvas { max-width: none; }
.redact-pages {
  display: flex; flex-direction: column; align-items: center;
  gap: 26px; padding: 4px 0 10px;
  /* As wide as the widest sheet, so a zoomed page stays centred and reaches
     neither edge with a stray margin. */
  min-width: max-content;
}
.redact-page {
  position: relative; background: #fff; border-radius: 6px;
  box-shadow: 0 10px 26px rgba(15, 35, 60, .14), 0 1px 3px rgba(15, 35, 60, .08);
  overflow: visible;
}
.redact-page canvas { display: block; border-radius: 6px; }
.rp-badge {
  position: absolute; top: -11px; left: 12px; z-index: 2;
  padding: 3px 9px; border-radius: 999px;
  background: #1d2b3a; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 10px rgba(23, 43, 66, .28);
}
.rx-overlay {
  position: absolute; inset: 0; cursor: crosshair;
  touch-action: none;              /* pointer drags, not scrolls, on touch */
}
/* Hand mode: drawing pauses and a drag pans the stage. */
.redact-pages.is-hand .rx-overlay { cursor: grab; }
.redact-pages.is-hand .rx-box { cursor: pointer; }
.redact-pages.is-panning .rx-overlay { cursor: grabbing; }
.redact-pages.is-panning .rx-box { pointer-events: none; }
/* Deep black, fully opaque: what the mark shows is what the file will look
   like after the run (client: "darken the black sheet"). */
.rx-box {
  position: absolute; background: #000; opacity: 1;
  border: 1px solid #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
/* The words inside the mark, so a Smart-detect sweep can be reviewed before
   the run (client: "cant see which word redacted"). The chip sits on the
   mark itself, white on red, so it never covers neighbouring text; a mark
   too small to hold it grows the chip upwards instead. Pointer-transparent,
   so a click still removes the mark. */
.rx-tag {
  position: absolute; left: 0; top: 0;
  max-width: calc(100% + 8px);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 4px; border-radius: 0 3px 3px 0;
  background: #e5322d; color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 14px;
  letter-spacing: .01em; pointer-events: none;
  box-shadow: 0 1px 4px rgba(23, 43, 66, .3);
}
.rx-box.is-tagout .rx-tag { top: -17px; max-width: 190px; }
.rx-box:hover .rx-tag { background: #c22823; }
.rx-box::after {
  content: "\00d7"; color: #fff; font-size: 14px; line-height: 1;
  opacity: 0; transition: opacity .12s;
}
.rx-box:hover::after { opacity: .9; }
.rx-live { position: absolute; background: rgba(0, 0, 0, .5); border: 1.5px dashed #000; }

/* --------------------------------------------------------------- footer --- */
.redact-bar { margin-top: auto; padding-top: 16px; }
.redact-bar[hidden] { display: none; }
.redact-bar-inner {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid #eef2f7; padding-top: 14px;
}
.rb-summary { font-size: 12.6px; color: #5d6f83; line-height: 1.45; }
.redact-bar-inner .redact-run {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 15px 0;
  border-radius: 10px;
  background: #e5322d; border-color: #e5322d; color: #fff;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 12px 26px rgba(229, 50, 45, .28);
}
.redact-bar-inner .redact-run:hover { background: #d42b26; border-color: #d42b26; }
.redact-bar-inner .redact-run:disabled { opacity: .55; }
.rd-run-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, .9);
  font-size: 13px;
}

/* Results inside the panel stay narrow and tidy. */
.rd-panel .results { margin-top: 12px; }

/* ----------------------------------------------------- Smart redact dialog -- */
/* iLovePDF's Improved detection flow: pick what to detect, add an
   "Anything else?" line, then the AI marks suggestions for review. */
.rd-smartdialog {
  border: 0; border-radius: 14px; padding: 0;
  max-width: 560px; width: calc(100vw - 32px);
  box-shadow: 0 30px 80px rgba(16, 32, 56, .35);
}
.rd-smartdialog::backdrop { background: rgba(15, 23, 42, .42); }
.rd-smartbox { padding: 24px 28px 20px; }
.rd-smartbox h3 { margin: 0 0 8px; font-size: 1.35rem; text-align: center; color: #1f2d3d; }
.rd-smartlead {
  margin: 0 0 10px; color: #5d6f83;
  font-size: 13.5px; line-height: 1.5; text-align: center;
}
.rd-smartcost {
  margin: 0 0 16px; padding: 9px 12px;
  border-radius: 9px; background: #f4f7fb;
  color: #46596e; font-size: 12.8px; line-height: 1.45; text-align: center;
}
.rd-smartcost.is-low { background: #fff3f3; color: #a94442; }
.rd-costbadge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; margin-left: 8px; padding: 0 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .22);
  font-size: 11.5px; font-weight: 700;
}
.rd-smarthead {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  font-size: 13px; font-weight: 700; color: #33475b;
}
.rd-smartlinks { display: inline-flex; gap: 6px; font-size: 12.5px; color: #93a1b1; }
.rd-smartlinks button {
  padding: 0; border: 0; background: none;
  color: #17599c; font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.rd-smartgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
  padding: 12px 14px;
  border: 1px solid #e6ecf3; border-radius: 10px; background: #fafbfd;
}
.rd-smartgrid label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #33475b; cursor: pointer;
}
.rd-smartgrid input { width: 16px; height: 16px; accent-color: #7c5cd6; }
.rd-smartextra { display: block; margin: 16px 0 20px; }
.rd-smartextra span {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 700; color: #33475b;
}
.rd-smartextra input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #dbe3ec; border-radius: 10px;
  font: inherit; font-size: 13.5px;
}
.rd-smartextra input:focus {
  outline: none; border-color: #b9a4ea;
  box-shadow: 0 0 0 3px rgba(124, 92, 214, .14);
}
.rd-smartactions { display: flex; justify-content: flex-end; gap: 10px; }
.rd-smartactions .btn { min-width: 130px; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
  .rd-app { grid-template-columns: minmax(0, 1fr) 330px; }
  .rd-rail { display: none; }
}
@media (max-width: 900px) {
  .redact-page.tool-page { padding: 12px 10px 20px; }
  .rd-app { display: block; height: auto; min-height: 0; }
  .rd-stage { display: block; }
  .rd-scroll { max-height: 62vh; }
  .rd-add { position: static; margin: 10px 0 0 12px; }
  .rd-panel { border-left: 0; border-top: 1px solid #e3e8ee; }
  .rd-title { font-size: 1.18rem; }
}

/* Fill the screen like iLovePDF's redact workspace. The page template now
   sets main.tool-wide (see redact.html), so the shell is no longer capped at
   the 1160px site container; on phones the page stage also gets more of the
   viewport than the old 62vh. */
@media (max-width: 900px) {
  .rd-scroll { max-height: 68vh; max-height: 68dvh; }
}
