/* ---- Rename: their landing band, the page picker, the amber bar ---------
   Same family as OCR's screen: grey band + split green upload button, then
   "Selected: <file>" over the pages ("Select with your mouse an area of the
   page." / Reset selection), and the fixed bar with the Rename pattern and
   the one green action. */
.rn-head { text-align: center; align-items: center; }
.tool-page.rename-page { max-width: none; }

.rn-band {
  background: var(--canvas);
  padding: 30px 20px 46px;
  text-align: center;
}
.rn-band.dragover { outline: 2px dashed var(--accent); outline-offset: -10px; }

.rn-split-holder { position: relative; display: inline-block; }
.rn-split { display: inline-flex; }
.rn-band .rn-pick {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 6px 0 0 6px;
  font-size: 1.3rem; font-weight: 700; padding: 9px 24px 10px;
}
.rn-band .rn-pick i { font-size: 1.35rem; }
.rn-band .rn-caret {
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(255, 255, 255, .38);
  padding: 9px 12px 10px; font-size: 1.15rem;
}

.rn-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  min-width: 230px; padding: 6px 0; text-align: left;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 12px 34px rgba(20, 30, 35, .16);
}
.rn-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 16px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--ink);
}
.rn-menu-item i { width: 18px; font-size: 1.05rem; color: var(--muted); }
.rn-menu-item:hover { background: var(--accent-soft); color: var(--accent-dark); }

.rn-note { color: var(--muted); font-size: .95rem; margin: 26px 0 0; }
.rn-note + .rn-note { margin-top: 6px; }
.rn-terms { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.rn-link { text-decoration: none; cursor: default; }

.rn-pills { display: flex; justify-content: center; margin: 26px 0 6px; }
.rn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 27px; padding: 0 12px; border-radius: 10px;
  background: rgba(37, 144, 102, .06);
  color: rgba(37, 144, 102, .85); font-size: 1.06rem;
}
.rn-pill i { font-size: .85rem; color: rgba(37, 144, 102, .7); }
.rn-off {
  display: inline-block; padding: 1px 8px 2px; border-radius: 9px;
  background: #259066; color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}

/* ---- the pages and their mouse selection ---*/
.rn-work { padding-bottom: 230px; }   /* room for the fixed bar */
.rn-selected { text-align: center; color: var(--muted); font-size: 1.06rem; margin: 0 0 6px; }
.rn-selected strong { color: var(--ink); font-weight: 600; }
.rn-doc { display: flex; flex-direction: column; gap: 30px; margin-top: 14px; }
.rn-page { max-width: 1180px; width: 100%; margin: 0 auto; }
.rn-pagebar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 0 4px 8px; color: #9aa5aa; font-size: 1.02rem;
}
.rn-reset { color: var(--muted); font-size: .95rem; text-decoration: none; cursor: pointer; }
.rn-reset:hover { color: var(--ink); }
.rn-sheet-wrap { position: relative; line-height: 0; }
.rn-canvas { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 3px 12px -2px rgba(50, 50, 50, .3); }
/* Their selection: a light blue fill inside a dashed blue border, tagged
   with the [TEXTn] it fills in the pattern. */
.rn-sel {
  position: absolute; z-index: 3;
  background: rgba(2, 130, 229, .1);
  border: 1px dashed #0282e5;
  pointer-events: none;
}
.rn-badge {
  position: absolute; top: -10px; left: -1px; z-index: 4;
  background: #0282e5; color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .4px; padding: 1px 6px 2px; border-radius: 4px;
}
.rn-marquee {
  position: absolute; z-index: 3;
  background: rgba(2, 130, 229, .1);
  border: 1px dashed #0282e5;
  pointer-events: none;
}
.rn-sheet-wrap.is-picking { cursor: crosshair; }

/* ---- their fixed amber bar ---*/
.rn-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(253, 246, 231, .97); border-top: 1px solid var(--amber-line);
  padding: 16px 16px 18px; text-align: center;
}
.rn-bar-inner { max-width: 760px; margin: 0 auto; }
.rn-bar-label { display: block; font-weight: 700; font-size: 1.06rem; color: var(--ink); margin-bottom: 10px; }
.rn-pattern-row { display: flex; justify-content: center; align-items: center; gap: 0; }
.rn-pattern-row input {
  width: min(558px, 72vw); height: 40px; padding: 6px 13px;
  border: 1px solid var(--line-strong); border-right: 0;
  border-radius: 6px 0 0 6px;
  font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--white);
}
.rn-pattern-row input::placeholder { color: #a7b0b5; }
.rn-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line-strong);
  border-radius: 0 6px 6px 0; background: var(--white);
  color: var(--muted); font-size: 1rem; font-weight: 700; text-decoration: none;
}
.rn-help:hover { color: var(--accent); }
.rn-bar-actions { margin-top: 14px; }
.rn-bar-actions .btn { font-size: 1.125rem; font-weight: 700; border-radius: 4px; padding: 8px 26px; }
