/* PLANS & PDF WORKSPACE (2026-10-08). The drawing is the biggest thing on the
   screen; everything else is a panel that folds away. Tokens on .pl-app, dark
   by default, html.light below. */
.pl-app, .pl-pick, .pl-upl {
    --pl-bg: #0d0d10; --pl-panel: #16161a; --pl-panel2: #1d1d22; --pl-line: rgba(255,255,255,.08); --pl-line2: rgba(255,255,255,.14);
    --pl-ink: #ececf1; --pl-ink2: #a6a6b0; --pl-ink3: #74747e; --pl-accent: #c41717; --pl-sel: #0b84f3; --pl-canvas: #2a2a30; --pl-hover: rgba(255,255,255,.06);
}
html.light .pl-app, html.light .pl-pick, html.light .pl-upl {
    --pl-bg: #f3f3f6; --pl-panel: #ffffff; --pl-panel2: #f7f7f9; --pl-line: rgba(0,0,0,.08); --pl-line2: rgba(0,0,0,.14);
    --pl-ink: #111114; --pl-ink2: #4a4a52; --pl-ink3: #7a7a84; --pl-canvas: #d9dae0; --pl-hover: rgba(0,0,0,.05);
}
[data-plans-shell] { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pl-i { width: 18px; height: 18px; flex: none; }
.pl-big { width: 44px; height: 44px; }
.pl-dim { color: var(--pl-ink3); font-size: 12.5px; }
.pl-pad { padding: 12px; }
.pl-bad { color: #ff6b6b; }

/* job picker */
.pl-pick { display: flex; flex-direction: column; gap: 14px; }
.pl-lede { margin: 0; color: var(--pl-ink2); font-size: 14px; max-width: 760px; line-height: 1.6; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pl-card { text-align: left; border: 1px solid var(--pl-line); border-radius: 14px; background: var(--pl-panel); padding: 14px 16px; color: var(--pl-ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .16s, border-color .16s; }
.pl-card:hover { border-color: rgba(196,23,23,.5); transform: translateY(-1px); }
.pl-card-n { font-weight: 650; font-size: 15px; }
.pl-card-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--pl-ink2); }

/* the home: open a PDF, or pick up a folder */
.pl-homedrop { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 20px; border: 2px dashed var(--pl-line2); border-radius: 18px; background: var(--pl-panel); color: var(--pl-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.pl-homedrop:hover, .pl-homedrop.is-over { border-color: var(--pl-accent); background: rgba(196,23,23,.05); }
.pl-homedrop b { font-size: 16px; }
.pl-homedrop small { color: var(--pl-ink2); font-size: 13px; max-width: 560px; line-height: 1.5; }
.pl-homedrop .pl-empty-i { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(196,23,23,.12); color: var(--pl-accent); }
.pl-h3 { margin: 6px 0 0; font-size: 14px; color: var(--pl-ink2); font-weight: 650; }
.pl-fname { font: inherit; font-size: 15px; font-weight: 700; color: var(--pl-ink); background: none; border: 0; padding: 2px 4px; border-radius: 6px; cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.pl-fname:hover { background: var(--pl-hover); }
.pl-jobchip { font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(196,23,23,.4); background: rgba(196,23,23,.1); color: var(--pl-ink); cursor: pointer; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pl-title { align-items: center; }

/* the app frame */
.pl-app { flex: 1 1 auto; min-height: 520px; display: flex; flex-direction: column; background: var(--pl-bg); color: var(--pl-ink); border: 1px solid var(--pl-line); border-radius: 14px; overflow: hidden; }
.pl-top { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--pl-panel); border-bottom: 1px solid var(--pl-line); }
.pl-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pl-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.pl-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pl-accent); white-space: nowrap; }
.pl-tabs { display: flex; gap: 2px; margin-left: 10px; background: var(--pl-panel2); border: 1px solid var(--pl-line); border-radius: 10px; padding: 3px; }
.pl-tab { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--pl-ink2); background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.pl-tab.is-on { background: var(--pl-panel); color: var(--pl-ink); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pl-top-r { margin-left: auto; display: flex; gap: 8px; }
.pl-tb { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--pl-ink2); cursor: pointer; }
.pl-tb:hover { background: var(--pl-hover); color: var(--pl-ink); }
.pl-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--pl-line2); background: var(--pl-panel2); color: var(--pl-ink); cursor: pointer; }
.pl-btn:hover { border-color: var(--pl-accent); }
.pl-btn .pl-i { width: 15px; height: 15px; }
.pl-btn.is-primary { background: linear-gradient(180deg, #d92222, #c41717 55%, #9e1010); border-color: #9e1010; color: #fff; }
.pl-btn.is-danger { color: #ff7a7a; }
html.light .pl-btn.is-danger { color: #c41717; }
.pl-btn.is-lg { padding: 12px 18px; font-size: 14px; }
.pl-link { font: inherit; font-size: 12.5px; color: var(--pl-sel); background: none; border: 0; padding: 0; cursor: pointer; }
.pl-link.is-danger { color: #ff6b6b; } html.light .pl-link.is-danger { color: #c41717; }
.pl-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* the bars keep their height; only the drawing gives way */
.pl-top, .pl-ribbon, .pl-propbar, .pl-sheetbar, .pl-status, .pl-lh { flex: none; }

/* the ribbon */
/* The tools scroll on their own (the wheel scrolls them sideways); undo, zoom, split and compare and
   the panel switches stay pinned at the right, so a narrow workspace never pushes them out of reach. */
.pl-ribbon { display: flex; align-items: stretch; gap: 4px; padding: 5px 8px; background: var(--pl-panel); border-bottom: 1px solid var(--pl-line); overflow: hidden; }
.pl-rtools { display: flex; align-items: stretch; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--pl-line2) transparent; }
.pl-rfixed { display: flex; align-items: stretch; gap: 4px; flex: none; padding-left: 4px; border-left: 1px solid var(--pl-line); }
.pl-rgrp { display: flex; flex-direction: column; justify-content: center; padding: 0 6px; border-right: 1px solid var(--pl-line); }
.pl-rgrp:last-child { border-right: 0; }
.pl-rlbl { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pl-ink3); margin: 0 0 2px 2px; }
.pl-rbtns { display: flex; gap: 1px; align-items: center; }
.pl-tool { display: inline-grid; place-items: center; width: 32px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--pl-ink2); cursor: pointer; }
.pl-tool:hover { background: var(--pl-hover); color: var(--pl-ink); }
.pl-tool.is-on { background: rgba(196,23,23,.16); border-color: rgba(196,23,23,.5); color: var(--pl-ink); }
.pl-tool:disabled { opacity: .35; cursor: default; }
.pl-zlbl { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--pl-ink2); min-width: 46px; text-align: center; }
.pl-panes { margin-left: auto; }

/* the three panels and the drawing */
/* SIZED BY THE ROOM IT HAS (2026-10-13). The panels follow the workspace's own width (a container
   query), not the window's: beside the RMPAC ONE menu, at 125-150% Windows scaling, the window is
   wide while the workspace is not. The user's own sizes (dragged on the dividers) arrive as
   --pl-lw / --pl-rw / --pl-bh on .pl-app and win over the defaults. */
.pl-app { container-type: inline-size; container-name: plapp; }
.pl-main { flex: 1 1 auto; min-height: 0; display: grid; position: relative;
  --pl-lw-def: 250px; --pl-rw-def: 290px;
  --pl-lw-eff: var(--pl-lw, var(--pl-lw-def)); --pl-rw-eff: var(--pl-rw, var(--pl-rw-def));
  grid-template-columns: var(--pl-lw-eff) minmax(0, 1fr) var(--pl-rw-eff); }
.pl-app.no-left .pl-main { --pl-lw-eff: 0px; }
.pl-app.no-right .pl-main { --pl-rw-eff: 0px; }
.pl-left, .pl-right { min-height: 0; overflow: hidden; background: var(--pl-panel); display: flex; flex-direction: column; }
.pl-left { border-right: 1px solid var(--pl-line); }
.pl-right { border-left: 1px solid var(--pl-line); overflow-y: auto; }
.pl-app.no-left .pl-left, .pl-app.no-right .pl-right { border: 0; }
.pl-center { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.pl-sheetbar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--pl-panel2); border-bottom: 1px solid var(--pl-line); min-height: 42px; flex-wrap: wrap; }
.pl-sheetid { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pl-sheetid b { font-size: 15px; }
.pl-sheetid span { font-size: 13px; color: var(--pl-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.pl-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--pl-hover); color: var(--pl-ink2); }
.pl-pill.is-ok { background: rgba(55,194,122,.15); color: #37c27a; } .pl-pill.is-bad { background: rgba(255,92,92,.15); color: #ff6b6b; }
html.light .pl-pill.is-ok { color: #178a4f; } html.light .pl-pill.is-bad { color: #c41717; }
.pl-cmpbar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; font-size: 12.5px; color: var(--pl-ink2); }
.pl-cmpbar select { font: inherit; font-size: 12.5px; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel); color: var(--pl-ink); }
.pl-chip { font: inherit; font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--pl-line2); background: none; color: var(--pl-ink2); cursor: pointer; }
.pl-chip.is-on { border-color: var(--pl-accent); color: var(--pl-ink); background: rgba(196,23,23,.12); }
.pl-chip.is-primary { background: var(--pl-accent); border-color: var(--pl-accent); color: #fff; }

.pl-stages { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr; }
.pl-stages.is-split { grid-template-columns: 1fr 1fr; gap: 2px; background: var(--pl-line2); }
.pl-stages.is-split.is-hsplit { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.pl-stage { position: relative; overflow: hidden; background: var(--pl-canvas); cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.pl-stage[data-tool="select"] { cursor: default; } .pl-stage[data-tool="pan"], .pl-stage.is-space, .pl-stage.is-second { cursor: grab; } .pl-stage.is-panning { cursor: grabbing; }
.pl-stage[data-tool="text"], .pl-stage[data-tool="typewriter"], .pl-stage[data-tool="seltext"] { cursor: text; }
.pl-stage[data-tool="zoom"] { cursor: zoom-in; }
/* over something a press will pick up (a text box under a text tool, any markup under a markup tool) */
.pl-stage.is-overtext { cursor: move; }
.pl-stage.is-overtext.is-panning { cursor: grabbing; }
.pl-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pl-layer > canvas, .pl-layer > img { position: absolute; left: 0; top: 0; box-shadow: 0 2px 18px rgba(0,0,0,.35); background: #fff; }
.pl-detail { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .12s; }
.pl-inkl { pointer-events: none; }
.pl-ink { position: absolute; left: 0; top: 0; overflow: visible; }
.pl-ink .pl-hdl { fill: #fff; stroke: var(--pl-sel); pointer-events: all; cursor: move; }
.pl-ink .pl-hdl.is-anchor { fill: var(--pl-sel); }
.pl-ink .pl-hdl.is-nwse { cursor: nwse-resize; } .pl-ink .pl-hdl.is-nesw { cursor: nesw-resize; }
.pl-ink .pl-hdl.is-ns { cursor: ns-resize; } .pl-ink .pl-hdl.is-ew { cursor: ew-resize; }
/* a picture being dropped on the sheet */
.pl-stage.is-drop { box-shadow: inset 0 0 0 3px rgba(11,132,243,.6); }
/* the picture section of the panel */
.pl-imgsec .pl-acts { flex-wrap: wrap; }
.pl-chk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--pl-ink2); margin: 2px 0 8px; cursor: pointer; }
.pl-chk input { margin: 0; }
/* typing on the sheet: the box sits in the ink layer at the size the saved text will be */
.pl-inline { position: absolute; z-index: 2; box-sizing: border-box; margin: 0; min-width: 0; pointer-events: auto; resize: none; overflow: hidden; white-space: pre;
  background-color: rgba(255,255,255,.94); border-style: dashed; border-radius: 0; outline: none; box-shadow: 0 0 0 3px rgba(11,132,243,.22);
  font-family: Arial, Helvetica, sans-serif; cursor: text; user-select: text; -webkit-user-select: text; }
.pl-inline.is-plain { background-color: transparent; }
.pl-ink .pl-selbox { fill: none; stroke: var(--pl-sel); }
.pl-ink .pl-hit { fill: #ffd400; fill-opacity: .45; stroke: #e6a700; stroke-width: .6; mix-blend-mode: multiply; }
.pl-ink .pl-vp rect { fill: rgba(11,132,243,.04); stroke: #0b84f3; }
.pl-ink .pl-cmpcloud { fill: rgba(229,37,27,.06); stroke: #e5251b; }
.pl-ink .pl-lbl { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
/* Arial has Helvetica's metrics: boxes are sized from them and a PDF written in Helvetica matches the screen */
.pl-ink .pl-txt:not([font-family]), .pl-ink .pl-mtxt { font-family: Arial, Helvetica, sans-serif; }
.pl-ink .pl-stamp { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .04em; }
.pl-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; z-index: 3; pointer-events: none; }
.pl-loading[hidden] { display: none; }

/* THE BOTTOM BAR (2026-10-13), laid out as Bluebeam's: page layout at the left, navigation in the
   middle, snap / magnifier / page size / scale at the right. One line always; what does not fit at
   a narrow width steps aside (a container query on the bar itself). */
.pl-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 8px; background: var(--pl-panel); border-top: 1px solid var(--pl-line); font-size: 12px; min-height: 32px; container-type: inline-size; container-name: plnav; white-space: nowrap; }
/* three fixed columns: the navigation stays dead centre whatever the two sides hold, so nothing in
   the bar moves when a label changes */
.pl-nb { display: flex; align-items: center; gap: 1px; min-width: 0; }
.pl-nbl, .pl-nbr { flex: 1 1 0; min-width: max-content; }
.pl-nbm { flex: none; justify-content: center; }
.pl-nbr { gap: 6px; justify-content: flex-end; }
/* THE CROSSHAIR: a hairline across the whole view each way through the pointer */
.pl-xh { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pl-xh[hidden] { display: none; }
.pl-xh-h, .pl-xh-v { position: absolute; display: block; background-color: rgba(11,132,243,.9); box-shadow: 0 0 0 .5px rgba(255,255,255,.55); will-change: transform; }
.pl-xh-h { left: 0; right: 0; top: 0; height: 1px; }
.pl-xh-v { top: 0; bottom: 0; left: 0; width: 1px; }
.pl-nbb { display: inline-grid; place-items: center; width: 27px; height: 25px; border-radius: 6px; border: 1px solid transparent; background-color: transparent; color: var(--pl-ink2); cursor: pointer; padding: 0; }
.pl-nbb .pl-i { width: 17px; height: 17px; }
.pl-nbb:hover:not(:disabled) { background-color: var(--pl-hover); color: var(--pl-ink); }
.pl-nbb.is-on { background-color: rgba(11,132,243,.16); border-color: rgba(11,132,243,.5); color: var(--pl-ink); }
.pl-nbb:disabled { opacity: .3; cursor: default; }
.pl-nbsep { width: 1px; height: 17px; margin: 0 5px; background-color: var(--pl-line2); flex: none; }
.pl-pgin { width: 128px; height: 24px; box-sizing: border-box; margin: 0 3px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel2); color: var(--pl-ink); font: inherit; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.pl-pgin:focus { outline: 2px solid rgba(11,132,243,.35); border-color: #0b84f3; }
.pl-psize { color: var(--pl-ink2); font-variant-numeric: tabular-nums; }
.pl-cur { font-variant-numeric: tabular-nums; }
.pl-status .pl-scale span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.pl-status { overflow: hidden; }
@container plnav (max-width: 1220px) { .pl-status .pl-stog span { display: none; } .pl-status .pl-stog { padding: 3px 6px; } }
@container plnav (max-width: 900px) { .pl-psize { display: none; } .pl-status .pl-scale span { max-width: 120px; } }
@container plnav (max-width: 760px) { .pl-nbb[data-pl-go="first"], .pl-nbb[data-pl-go="last"], .pl-nbb[data-pl-view], .pl-nbm .pl-nbsep:last-of-type { display: none; } .pl-pgin { width: 116px; } }
@container plnav (max-width: 620px) { .pl-status .pl-scale span, .pl-status .pl-scale em { display: none; } .pl-status .pl-scale { padding: 3px 7px; } .pl-nbr { gap: 4px; } .pl-nbb { width: 24px; } .pl-nbsep { margin: 0 3px; } .pl-pgin { width: 108px; padding: 0 3px; font-size: 11.5px; } }
@container plnav (max-width: 520px) { .pl-nbb[data-pl-mode], .pl-nbl .pl-nbsep, .pl-status .pl-scale span { display: none; } }
.pl-scale { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; border: 1px solid rgba(55,194,122,.4); background: rgba(55,194,122,.1); color: #37c27a; cursor: pointer; }
.pl-scale.is-off { border-color: rgba(230,167,0,.5); background: rgba(230,167,0,.12); color: #e6a700; }
html.light .pl-scale { color: #178a4f; } html.light .pl-scale.is-off { color: #9a6a00; }
.pl-scale .pl-i { width: 14px; height: 14px; }
.pl-scale em { font-style: normal; font-weight: 500; opacity: .8; }
/* one line, always: a long tool hint wrapping would shrink the sheet and move the page under the pointer */
.pl-hint { color: var(--pl-ink2); flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-status > * { flex-shrink: 0; } .pl-status > .pl-hint { flex-shrink: 1; }
.pl-status [data-pl-cursor] { white-space: nowrap; }
/* snap and magnifier switches in the status bar */
.pl-stog { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--pl-line2); background-color: transparent; color: var(--pl-ink3); cursor: pointer; }
.pl-stog .pl-i { width: 14px; height: 14px; }
.pl-stog.is-on { border-color: rgba(0,168,107,.45); background-color: rgba(0,168,107,.1); color: #00a86b; }
html.light .pl-stog.is-on { color: #00804f; }

/* the snap marker sits above the markups and never takes the pointer */
.pl-ink.pl-mark { pointer-events: none; }
/* the magnifier: 4x around the pointer while calibrating and measuring */
.pl-loupe { position: absolute; z-index: 4; border-radius: 50%; border: 2px solid #0b84f3; box-shadow: 0 6px 22px rgba(0,0,0,.35); background-color: #fff; pointer-events: none; }
.pl-loupe[hidden] { display: none; }
/* the calibration line's ends: see-through, so the exact point under them stays visible */
.pl-ink .pl-calhdl { fill: rgba(11,132,243,.1); stroke: #0b84f3; cursor: crosshair; }
/* the calibration bar over the sheet */
.pl-calbar { position: absolute; z-index: 5; left: 50%; top: 10px; transform: translateX(-50%); width: min(760px, calc(100% - 20px)); padding: 10px 12px; border-radius: 12px;
  background-color: var(--pl-panel); color: var(--pl-ink); border: 1px solid rgba(11,132,243,.45); box-shadow: 0 10px 30px rgba(0,0,0,.28); cursor: default; user-select: none; }
.pl-calhead { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.pl-calhead .pl-i { width: 16px; height: 16px; color: #0b84f3; }
.pl-calhead span { color: var(--pl-ink2); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.pl-calrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.pl-calf { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--pl-ink2); font-weight: 600; }
.pl-calf input, .pl-calf select { height: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel2); color: var(--pl-ink); font: inherit; font-size: 13px; font-weight: 500; }
.pl-calf input { width: 150px; user-select: text; }
.pl-calf input:focus, .pl-calf select:focus { outline: 2px solid rgba(11,132,243,.35); border-color: #0b84f3; }
.pl-calbtns { display: flex; gap: 6px; margin-left: auto; }
.pl-calnote { margin-top: 7px; font-size: 12px; color: var(--pl-ink2); line-height: 1.45; }
.pl-calnote.is-bad { color: #e5251b; }
@media (max-width: 700px) { .pl-calbtns { margin-left: 0; } .pl-calf input { width: 120px; } }
.pl-right-s { margin-left: auto; white-space: nowrap; }

/* bottom: markups list */
.pl-bottom { height: var(--pl-bh, 230px); flex: none; border-top: 1px solid var(--pl-line2); background: var(--pl-panel); display: flex; flex-direction: column; min-height: 0; }
.pl-app.no-bottom .pl-bottom { display: none; }
/* folded down to its title bar */
.pl-app.is-bottom-min .pl-bottom { height: auto; }
.pl-app.is-bottom-min .pl-bottom .pl-tablewrap, .pl-app.is-bottom-min .pl-bottom .pl-lh > :not(.pl-lh-keep) { display: none; }
.pl-bmin { width: 26px; height: 26px; margin-right: 2px; }
.pl-bmin .pl-i { width: 16px; height: 16px; transition: transform .15s; }
.pl-app.is-bottom-min .pl-bmin .pl-i { transform: rotate(180deg); }
.pl-lh b em { font-style: normal; font-weight: 600; color: var(--pl-ink3); margin-left: 4px; }

/* THE DIVIDERS: drag to size the panels and the list; double-click hides or shows one; a hidden
   panel is dragged back open from its edge */
.pl-grip { position: absolute; z-index: 6; touch-action: none; }
.pl-grip::after { content: ""; position: absolute; background-color: transparent; transition: background-color .12s; }
.pl-grip-v { top: 0; bottom: 0; width: 10px; cursor: col-resize; }
.pl-grip-v::after { top: 0; bottom: 0; left: 4px; width: 2px; }
.pl-grip-l { left: calc(var(--pl-lw-eff) - 5px); }
.pl-grip-r { right: calc(var(--pl-rw-eff) - 5px); }
.pl-app.no-left .pl-grip-l { left: 0; } .pl-app.no-right .pl-grip-r { right: 0; }
.pl-grip-h { position: relative; flex: none; height: 10px; margin: -5px 0; cursor: row-resize; }
.pl-grip-h::after { left: 0; right: 0; top: 4px; height: 2px; }
.pl-grip:hover::after, .pl-grip.is-drag::after { background-color: var(--pl-sel); }
.pl-app.no-bottom .pl-grip-h { display: none; }
body.pl-resizing, body.pl-resizing * { user-select: none !important; -webkit-user-select: none !important; }
body.pl-resizing.is-col, body.pl-resizing.is-col * { cursor: col-resize !important; }
body.pl-resizing.is-row, body.pl-resizing.is-row * { cursor: row-resize !important; }

/* FULL SCREEN: the workspace takes the whole window, the RMPAC ONE menu and header step aside.
   Under the app's notices (60) and dialogs (9998), so those still show over it. */
.pl-app.is-full { position: fixed; inset: 0; z-index: 55; border: 0; border-radius: 0; min-height: 0; }
body.pl-full-open, html:has(body.pl-full-open) { overflow: hidden; }
body.pl-full-open .up-topbar, body.pl-full-open .up-sidebar { visibility: hidden; }
.pl-fulllist { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--pl-panel); }
.pl-lh { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--pl-line); flex-wrap: wrap; font-size: 12.5px; }
.pl-lh b { font-size: 13px; margin-right: 4px; }
.pl-lh select, .pl-lh input[type="search"] { font: inherit; font-size: 12.5px; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel2); color: var(--pl-ink); }
.pl-lh input[type="search"] { width: 150px; }
.pl-sp { flex: 1 1 auto; }
.pl-seg { display: inline-flex; border: 1px solid var(--pl-line2); border-radius: 8px; overflow: hidden; }
.pl-seg button { font: inherit; font-size: 12px; padding: 4px 10px; border: 0; background: none; color: var(--pl-ink2); cursor: pointer; }
.pl-seg button.is-on { background: var(--pl-accent); color: #fff; }
.pl-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--pl-ink2); cursor: pointer; }
.pl-tablewrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pl-table th { position: sticky; top: 0; background: var(--pl-panel2); text-align: left; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pl-ink3); padding: 6px 8px; border-bottom: 1px solid var(--pl-line); cursor: pointer; white-space: nowrap; z-index: 1; }
.pl-table td { padding: 5px 8px; border-bottom: 1px solid var(--pl-line); white-space: nowrap; }
.pl-table td.pl-cm { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.pl-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.pl-table tbody tr { cursor: pointer; }
.pl-table tbody tr:hover { background: var(--pl-hover); }
.pl-table tr.is-sel { background: rgba(11,132,243,.14); }
.pl-table tr.pl-sum td { font-weight: 700; border-top: 1px solid var(--pl-line2); }
.pl-table tr.is-old td { opacity: .55; }
.pl-tsw { display: inline-flex; vertical-align: -4px; margin-right: 6px; }
.pl-tsw .pl-i { width: 15px; height: 15px; }
.pl-st { font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: transparent; color: inherit; }
.pl-st.is-completed, .pl-st.is-accepted { color: #37c27a; } .pl-st.is-rejected { color: #ff6b6b; } .pl-st.is-cancelled { color: var(--pl-ink3); }

/* left panel */
.pl-ltabs { display: flex; border-bottom: 1px solid var(--pl-line); }
.pl-ltab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; font: inherit; font-size: 11px; font-weight: 600; color: var(--pl-ink3); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.pl-ltab.is-on { color: var(--pl-ink); border-bottom-color: var(--pl-accent); }
.pl-lfilter { padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; border-bottom: 1px solid var(--pl-line); }
.pl-lfilter input[type="search"] { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel2); color: var(--pl-ink); width: 100%; box-sizing: border-box; }
.pl-discs { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-thumbs, .pl-results, .pl-chest { flex: 1 1 auto; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.pl-thumb { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; padding: 5px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--pl-ink); font: inherit; cursor: pointer; }
.pl-thumb:hover { background: var(--pl-hover); }
.pl-thumb.is-on { border-color: var(--pl-accent); background: rgba(196,23,23,.08); }
.pl-thumb.is-old { opacity: .55; }
.pl-thumb-img { width: 74px; height: 52px; border-radius: 5px; background: #fff; overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pl-thumb-img img { max-width: 100%; max-height: 100%; display: block; }
.pl-thumb-t { display: flex; flex-direction: column; min-width: 0; }
.pl-thumb-t b { font-size: 13px; } .pl-thumb-t small { font-size: 11.5px; color: var(--pl-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-thumb-n { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--pl-hover); color: var(--pl-ink2); }
.pl-res { text-align: left; padding: 8px 9px; border-radius: 8px; border: 1px solid var(--pl-line); background: none; color: var(--pl-ink); font: inherit; font-size: 12.5px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 3px 6px; }
.pl-res:hover { border-color: var(--pl-accent); }
.pl-res em { font-style: normal; margin-left: auto; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgba(255,212,0,.25); }
.pl-res small { flex-basis: 100%; color: var(--pl-ink3); font-size: 11.5px; }
.pl-col h4 { margin: 8px 6px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-ink3); }
.pl-col h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .8; }
.pl-ctools { display: flex; flex-direction: column; gap: 2px; }
.pl-ctool { display: flex; align-items: center; }
.pl-ctbtn { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; color: var(--pl-ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.pl-ctbtn:hover { background: var(--pl-hover); }
.pl-sw { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--pl-panel2); border: 1px solid var(--pl-line); flex: none; }
.pl-sw .pl-i { width: 16px; height: 16px; }
.pl-x { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 0; background: none; color: var(--pl-ink3); cursor: pointer; }
.pl-x:hover { color: #ff6b6b; } .pl-x .pl-i { width: 14px; height: 14px; }

/* right panel */
.pl-props { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pl-props h3 { margin: 0; font-size: 14px; }
.pl-ph { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--pl-line); }
.pl-ph b { display: block; font-size: 14px; } .pl-ph small { font-size: 11.5px; color: var(--pl-ink3); }
.pl-meas { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(196,23,23,.1); border: 1px solid rgba(196,23,23,.3); }
.pl-meas span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-ink3); }
.pl-meas b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pl-meas em { font-style: normal; font-weight: 700; color: #37c27a; }
.pl-f { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--pl-ink3); font-weight: 600; min-width: 0; }
.pl-f input, .pl-f textarea, .pl-f select { font: inherit; font-size: 13px; font-weight: 400; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel2); color: var(--pl-ink); width: 100%; box-sizing: border-box; outline: none; }
.pl-f input:focus, .pl-f textarea:focus, .pl-f select:focus { border-color: var(--pl-accent); }
.pl-f input[type="range"] { padding: 0; accent-color: var(--pl-accent); }
.pl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-sws { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pl-swb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.pl-swb.is-on { border-color: var(--pl-ink); }
.pl-swb.is-none { background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,92,92,.7) 4px 5px); }
.pl-sws input[type="color"] { width: 26px; height: 22px; padding: 0; border: 0; background: none; }
.pl-cost { border: 1px solid var(--pl-line); border-radius: 10px; padding: 8px 10px; }
.pl-cost summary { cursor: pointer; font-size: 12.5px; font-weight: 600; }
.pl-cost[open] summary { margin-bottom: 8px; }
.pl-cost .pl-f { margin-top: 6px; }
.pl-total { margin-top: 8px; font-size: 12.5px; color: var(--pl-ink2); }
.pl-total b { color: #37c27a; font-size: 14px; }
.pl-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--pl-ink3); }
.pl-acts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px solid var(--pl-line); }
.pl-sec { border-top: 1px solid var(--pl-line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pl-sec h4 { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-ink3); }
.pl-keys { line-height: 1.7; }
.pl-vps { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--pl-ink3); }
.pl-vprow { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: var(--pl-panel2); color: var(--pl-ink); }
.pl-vprow small { color: var(--pl-ink3); margin-left: auto; }

/* register */
.pl-reg { flex: 1 1 auto; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.pl-regsec header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pl-regsec h2 { margin: 0; font-size: 16px; } .pl-regsec h2 small { color: var(--pl-ink3); font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.pl-regsec .pl-table { background: var(--pl-panel); border: 1px solid var(--pl-line); border-radius: 10px; }
.pl-ra { text-align: right; }

/* empty and upload */
.pl-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 20px; }
.pl-empty-i { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: rgba(196,23,23,.12); color: var(--pl-accent); }
.pl-empty h2 { margin: 0; font-size: 22px; } .pl-empty p { margin: 0; max-width: 560px; color: var(--pl-ink2); line-height: 1.6; font-size: 14px; }
.pl-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed rgba(127,127,140,.45); border-radius: 14px; cursor: pointer; text-align: center; margin-bottom: 12px; }
.pl-drop b { color: #c41717; } .pl-drop small { color: #8a8a94; font-size: 12.5px; }
.pl-drop.is-over, .pl-drop:hover { border-color: #c41717; }
.pl-uprog { display: flex; flex-direction: column; gap: 6px; font-size: 13px; margin-top: 8px; }
.pl-uprog[hidden] { display: none; }
.pl-ubar { display: block; height: 6px; border-radius: 3px; background: rgba(127,127,140,.25); overflow: hidden; } .pl-ubar i { display: block; height: 100%; width: 0; background: #c41717; transition: width .2s; }

/* combine: the modal sits on document.body, outside the workspace tokens, so neutrals that read on both themes.
   The modal body is a two-column form grid; everything here runs the full width. */
.pl-cb .xf-body > * { grid-column: 1 / -1; min-width: 0; }
.pl-cb .pl-drop { margin-bottom: 0; }
.pl-cb-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.pl-cb-add select { flex: 1 1 260px; min-width: 0; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(127,127,140,.4); background-color: transparent; color: inherit; font: inherit; font-size: 13.5px; }
.pl-cb-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.pl-cb-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.pl-cb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(127,127,140,.32); border-radius: 10px; background-color: rgba(127,127,140,.06); }
.pl-cb-row.is-drag { opacity: .45; } .pl-cb-row.is-target { border-color: #c41717; box-shadow: 0 0 0 2px rgba(196,23,23,.18); }
.pl-cb-grip { cursor: grab; color: #8a8a94; letter-spacing: -2px; user-select: none; }
.pl-cb-no { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background-color: rgba(196,23,23,.12); color: #c41717; font-size: 12px; font-weight: 700; }
.pl-cb-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-cb-n b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-cb-n small { color: #8a8a94; font-size: 12px; }
.pl-cb-pg { width: 130px; flex: none; height: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid rgba(127,127,140,.4); background-color: transparent; color: inherit; font: inherit; font-size: 13px; }
.pl-cb-pg.is-bad { border-color: #e5251b; box-shadow: 0 0 0 2px rgba(229,37,27,.15); }
.pl-cb-btns { display: flex; gap: 2px; flex: none; }
.pl-cb-btns .pl-tb { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background-color: transparent; color: inherit; cursor: pointer; font-size: 15px; }
.pl-cb-btns .pl-tb:hover:not(:disabled) { background-color: rgba(127,127,140,.16); } .pl-cb-btns .pl-tb:disabled { opacity: .3; cursor: default; }
.pl-cb-btns .pl-i { width: 15px; height: 15px; }
.pl-cb-sum { font-size: 12.5px; color: #8a8a94; margin: 2px 0 12px; } .pl-cb-sum.is-bad { color: #e5251b; }
.pl-cb .xf-foot .pl-btn { margin-left: auto; }
@media (max-width: 560px) { .pl-cb-row { flex-wrap: wrap; } .pl-cb-pg { flex: 1 1 120px; } }

/* one line each, always: the tabs, and the sheet bar (its set name shortens with an ellipsis; a
   split or compare bar may still wrap below it) */
.pl-tab { white-space: nowrap; }
.pl-title { min-width: 0; flex: 0 1 auto; }
.pl-sheetbar { flex-wrap: nowrap; }
.pl-sheetbar:has(.pl-cmpbar) { flex-wrap: wrap; }
.pl-sheetbar > * { flex-shrink: 0; }
.pl-sheetbar > .pl-sheetid, .pl-sheetbar > .pl-setname { flex-shrink: 1; min-width: 0; }
.pl-setname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* narrower workspaces: slimmer panels and tools, so the drawing keeps the room */
@container plapp (max-width: 1300px) {
    .pl-main { --pl-lw-def: 210px; --pl-rw-def: 250px; }
    .pl-tabs { margin-left: 0; }
    .pl-title b { max-width: 180px; }
    .pl-tool { width: 29px; height: 28px; }
    .pl-top-r .pl-btn span { display: none; }   /* Combine, Download, Add drawings, Full screen: icons, titles on hover */
    .pl-top-r .pl-btn { padding: 7px 9px; }
}
@container plapp (max-width: 1040px) {
    .pl-main { --pl-lw-def: 185px; --pl-rw-def: 220px; }
    .pl-eyebrow { display: none; }
    .pl-tab { padding: 6px 9px; }
    .pl-fname { max-width: 220px; }
    .pl-jobchip { max-width: 150px; }
    .pl-tabs { flex-shrink: 0; }
}
/* 900 px and under (a phone, a tablet in portrait, a tablet in landscape beside the menu), 2026-10-28:
   the drawing keeps the whole width and the side panels open OVER it from their edge, from the ribbon's
   panel buttons, instead of squeezing it to a strip. They used to be display:none below 780 px, where
   the panel buttons did nothing; plans.js starts them shut at this width (plNarrow). The drawing is
   placed in its column by name: with the left panel out of the flow it was the grid's first item and
   fell into the 0 px left column, a sliver with the markups list crushed into it. */
@container plapp (max-width: 900px) {
    .pl-main { --pl-lw-eff: 0px; --pl-rw-eff: 0px; }
    .pl-center { grid-column: 2; }
    .pl-grip-v { display: none; }
    .pl-left, .pl-right {
        position: absolute; top: 0; bottom: 0; z-index: 8;
        width: min(300px, 86%);
        box-shadow: 0 18px 50px -10px rgba(0,0,0,.5);
    }
    .pl-left { left: 0; border-right: 1px solid var(--pl-line); }
    .pl-right { right: 0; border-left: 1px solid var(--pl-line); }
    .pl-app.no-left .pl-left, .pl-app.no-right .pl-right { display: none; }
}
/* a phone: the top bar wraps, the three tabs on a row of their own */
@container plapp (max-width: 600px) {
    .pl-top { flex-wrap: wrap; row-gap: 6px; padding: 6px 8px; }
    .pl-title { flex: 1 1 auto; }
    .pl-tabs { order: 3; flex: 1 1 100%; margin-left: 0; }
    .pl-tab { flex: 1 1 0; text-align: center; padding: 7px 6px; }
    .pl-sheetid span { max-width: 140px; }
    /* the ribbon in two rows that each scroll sideways: the pinned group (undo, zoom, split, panels) is
       wider than a phone, and beside it the markup tools had no width left at all */
    .pl-ribbon { flex-wrap: wrap; row-gap: 4px; }
    .pl-rtools { flex: 1 1 100%; }
    .pl-rfixed { flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; border-left: 0; padding-left: 0; padding-top: 4px; border-top: 1px solid var(--pl-line); }
    .pl-rfixed::-webkit-scrollbar { display: none; }
}
/* short screens: slimmer bars and a shorter list by default (a dragged height still wins) */
@media (max-height: 880px) {
    .pl-top { padding: 5px 10px; }
    .pl-rlbl { display: none; }
    .pl-ribbon { padding: 3px 6px; }
    .pl-sheetbar { min-height: 34px; padding: 3px 10px; }
    .pl-status { min-height: 28px; padding: 1px 8px; }
    .pl-nbb { height: 23px; }
    .pl-propbar { min-height: 30px; padding: 2px 8px; }
    .pl-bottom { height: var(--pl-bh, 170px); }
    .pl-lh { padding: 4px 10px; }
}

/* THE PROPERTIES BAR (2026-10-13): under the ribbon, the look of the selection or of what the tool
   draws next. One line; on a narrow workspace it scrolls sideways (the hint gives way first). */
.pl-propbar { display: flex; align-items: center; gap: 4px; min-height: 34px; padding: 3px 8px; background: var(--pl-panel2); border-bottom: 1px solid var(--pl-line); font-size: 12px; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--pl-line2) transparent; }
.pl-pbwho { flex: none; font-weight: 700; font-size: 11.5px; color: var(--pl-ink); padding: 3px 9px; border-radius: 999px; background-color: var(--pl-hover); margin-right: 4px; }
.pl-pbwho.is-idle { font-weight: 500; color: var(--pl-ink3); background-color: transparent; padding-left: 2px; }
.pl-pbg { display: flex; align-items: center; gap: 4px; flex: none; padding: 0 8px; border-left: 1px solid var(--pl-line); }
.pl-pbl { color: var(--pl-ink2); font-weight: 600; margin-right: 1px; }
.pl-pcol { display: inline-flex; align-items: center; gap: 1px; height: 24px; padding: 0 2px 0 3px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel); color: var(--pl-ink2); cursor: pointer; }
.pl-pcol i { display: block; width: 16px; height: 16px; border-radius: 3px; background-color: var(--c, transparent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.pl-pcol.is-none i { background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(229,37,27,.85) 5px 6.5px); }
.pl-pcol .pl-chev, .pl-pdrop .pl-chev { width: 12px; height: 12px; }
.pl-pnum { display: inline-flex; align-items: center; height: 24px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel); padding-right: 5px; }
.pl-pnum input { width: 50px; height: 22px; box-sizing: border-box; border: 0; background-color: transparent; color: var(--pl-ink); font: inherit; font-size: 12px; padding: 0 2px 0 6px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.pl-pnum i { font-style: normal; color: var(--pl-ink3); font-size: 11px; }
.pl-pnum:focus-within { border-color: #0b84f3; box-shadow: 0 0 0 2px rgba(11,132,243,.2); }
.pl-pdrop { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 3px 0 6px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel); color: var(--pl-ink); cursor: pointer; }
.pl-lsw { width: 46px; height: 12px; display: block; }
.pl-hsw { width: 18px; height: 15px; display: block; }
.pl-psel { height: 24px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel); color: var(--pl-ink); font: inherit; font-size: 12px; padding: 0 4px; }
.pl-ptog { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--pl-line2); background-color: var(--pl-panel); color: var(--pl-ink); cursor: pointer; font: inherit; font-size: 13px; padding: 0; font-family: Georgia, "Times New Roman", serif; }
.pl-ptog-bold { font-weight: 800; } .pl-ptog-italic { font-style: italic; } .pl-ptog-underline { text-decoration: underline; }
.pl-ptog.is-on { background-color: rgba(11,132,243,.18); border-color: rgba(11,132,243,.6); }
.pl-pbhint { flex: 1 1 auto; min-width: 60px; text-align: right; color: var(--pl-ink3); overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }

/* MENUS that drop from a button, on the page body (the workspace's tokens come with .pl-upl) */
.pl-pop { position: fixed; z-index: 9990; min-width: 160px; max-height: min(72vh, 600px); overflow: auto; padding: 5px; border-radius: 10px; background-color: var(--pl-panel); color: var(--pl-ink); border: 1px solid var(--pl-line2); box-shadow: 0 12px 34px rgba(0,0,0,.32); font-size: 12.5px; scrollbar-width: thin; }
.pl-menu { display: flex; flex-direction: column; gap: 1px; }
.pl-mi { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 7px; border: 0; background-color: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; white-space: nowrap; }
.pl-mi .pl-i { width: 15px; height: 15px; color: var(--pl-ink2); }
.pl-mi:hover:not(:disabled) { background-color: var(--pl-hover); }
.pl-mi.is-on { background-color: rgba(11,132,243,.14); }
.pl-mi:disabled { opacity: .4; cursor: default; }
.pl-mi .pl-lsw { color: var(--pl-ink); }
.pl-msep { height: 1px; margin: 4px 2px; background-color: var(--pl-line2); }
.pl-mh { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-ink3); padding: 4px 9px 2px; }
.pl-mscroll { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.pl-mrow { display: flex; gap: 4px; padding: 3px 9px 5px; }
.pl-cpal { display: grid; grid-template-columns: repeat(6, 22px); gap: 5px; padding: 4px; }
.pl-cpal .pl-swb { width: 22px; height: 22px; }
.pl-cmore { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 2px; color: var(--pl-ink2); font-size: 12px; cursor: pointer; }
.pl-cmore input[type="color"] { width: 32px; height: 22px; padding: 0; border: 0; background-color: transparent; cursor: pointer; }
/* the stamp menu: a picture of each stamp beside its name */
.pl-smenu { display: flex; flex-direction: column; gap: 1px; min-width: 300px; }
.pl-srow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 7px; border: 0; background-color: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pl-srow:hover { background-color: var(--pl-hover); }
.pl-srow.is-on { background-color: rgba(11,132,243,.14); }
.pl-srow kbd { font: inherit; font-size: 11px; color: var(--pl-ink3); padding: 0 4px; }
.pl-sname { overflow: hidden; text-overflow: ellipsis; }
.pl-sprev { width: 84px; height: 28px; display: grid; place-items: center; border-radius: 4px; background-color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; }
.pl-sprev svg, .pl-sprev img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pl-sprev .pl-stamp { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.pl-sprev .pl-i { width: 16px; height: 16px; color: #6b7280; }
/* My stamps */
.pl-ms .xf-body > * { grid-column: 1 / -1; min-width: 0; }
.pl-mstamps { display: flex; flex-direction: column; gap: 8px; }
.pl-msrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; border: 1px solid rgba(127,127,140,.3); border-radius: 10px; }
.pl-msrow .pl-sprev { width: 110px; height: 36px; }
/* the stamp button's arrow, as in Bluebeam */
.pl-tsplit { display: inline-flex; align-items: center; }
.pl-tsplit .pl-tool { width: 28px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pl-tchev { display: inline-grid; place-items: center; width: 13px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 0 7px 7px 0; background-color: transparent; color: var(--pl-ink3); cursor: pointer; }
.pl-tchev .pl-i { width: 11px; height: 11px; }
.pl-tchev:hover { background-color: var(--pl-hover); color: var(--pl-ink); }

/* THE RIGHT-CLICK MENU (2026-10-26): each item's shortcut at its right */
.pl-ctx { min-width: 250px; }
.pl-ctx .pl-mi span { flex: 1 1 auto; }
.pl-mi kbd { font: inherit; font-size: 11px; color: var(--pl-ink3); padding-left: 14px; }
.pl-ctx .pl-mh { padding-top: 2px; }
/* the Document menu's button on the top bar. The top bar's buttons never wrap (a two-line "Add drawings"
   made the bar taller and moved the drawing down); the folder's name and job chip shorten instead. */
.pl-docbtn .pl-chev { width: 12px; height: 12px; margin-left: -2px; color: var(--pl-ink3); }
.pl-top-r { flex: none; }
.pl-top-r .pl-btn { white-space: nowrap; }
@container plapp (max-width: 1300px) { .pl-top-r .pl-docbtn .pl-chev { display: none; } }

/* EXTRACT PAGES (2026-10-26): on document.body, so neutrals that read on both themes, as Combine */
.pl-ex-modes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.pl-ex-mode { display: grid; grid-template-columns: 18px 150px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px; border: 1px solid rgba(127,127,140,.32); border-radius: 10px; background-color: rgba(127,127,140,.05); cursor: pointer; font-size: 13.5px; }
.pl-ex-mode:has(input[type="radio"]:checked) { border-color: #c41717; background-color: rgba(196,23,23,.07); }
.pl-ex-mode input[type="radio"] { margin: 0; accent-color: #c41717; }
.pl-ex-mode b { font-weight: 650; }
.pl-ex-mode small { color: #8a8a94; font-size: 12.5px; }
.pl-ex-mode.is-off { opacity: .5; cursor: default; }
.pl-ex-mode .pl-cb-pg { width: 100%; max-width: 260px; }
.pl-ex-mode .pl-ex-one { max-width: 90px; }
@media (max-width: 560px) { .pl-ex-mode { grid-template-columns: 18px minmax(0, 1fr); } .pl-ex-mode > :last-child { grid-column: 2; } }

/* SIGNATURE (2026-10-26): draw, type or upload; the pad is paper white in both themes */
.pl-sig-tabs { display: inline-flex; gap: 2px; justify-self: start; padding: 3px; border-radius: 10px; border: 1px solid rgba(127,127,140,.32); background-color: rgba(127,127,140,.08); }
.pl-sig-tab { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 7px; border: 0; background-color: transparent; color: inherit; opacity: .75; cursor: pointer; }
.pl-sig-tab.is-on { background-color: #c41717; color: #fff; opacity: 1; }
.pl-sig-pane { display: flex; flex-direction: column; gap: 10px; }
.pl-sig-pane[hidden] { display: none; }
.pl-sig-pad { display: block; width: 100%; height: 190px; border-radius: 12px; background-color: #fff; box-shadow: inset 0 0 0 1px rgba(127,127,140,.45); cursor: crosshair; touch-action: none; }
.pl-sig-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-sig-hint { flex: 1 1 200px; color: #8a8a94; font-size: 12.5px; }
.pl-sig-ink { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(127,127,140,.35); background-color: transparent; color: inherit; cursor: pointer; }
.pl-sig-ink i { width: 12px; height: 12px; border-radius: 50%; background-color: var(--c); }
.pl-sig-ink.is-on { border-color: #c41717; box-shadow: 0 0 0 2px rgba(196,23,23,.15); }
.pl-sig-fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.pl-sig-font { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 84px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(127,127,140,.35); background-color: #fff; cursor: pointer; overflow: hidden; text-align: left; }
.pl-sig-font span { font-size: 30px; line-height: 1.3; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pl-sig-font small { font-family: Arial, sans-serif; font-size: 11px; color: #6b7280; }
.pl-sig-font.is-on { border-color: #c41717; box-shadow: 0 0 0 2px rgba(196,23,23,.18); }
.pl-sig-prev { display: grid; place-items: center; min-height: 90px; max-height: 200px; padding: 10px; border-radius: 12px; background-color: #fff; box-shadow: inset 0 0 0 1px rgba(127,127,140,.45); overflow: hidden; }
.pl-sig-prev[hidden] { display: none; }
.pl-sig-prev canvas { max-width: 100%; max-height: 180px; height: auto; }
.pl-sig-keep { margin-top: 2px; }
.pl-sigm .xf-foot [data-sig-forget] { margin-left: 0; margin-right: auto; }
.pl-sigmenu .pl-srow { grid-template-columns: 110px minmax(0, 1fr) auto; }
.pl-sigmenu .pl-sprev { width: 110px; height: 36px; }

/* SELECT TEXT: the words picked, a box while one is dragged, the Copy button by them */
.pl-ink .pl-tsel { fill: #0b84f3; fill-opacity: .3; mix-blend-mode: multiply; }
.pl-ink .pl-zoombox { fill: rgba(11,132,243,.08); stroke: #0b84f3; }
.pl-tcopy { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; border: 0; background-color: #0b84f3; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pl-tcopy .pl-i { width: 14px; height: 14px; }

/* CONTINUOUS PAGES: the sheets above and below the one being worked on */
.pl-nbrs { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.pl-nbrs > .pl-nbpage { position: absolute; display: block; background-color: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.35); }
.pl-nbrs > .pl-nbph { opacity: .9; }

/* Fingers, not a mouse (2026-10-28): ribbon tools, the page bar and the toolbar buttons at a size a
   thumb can hit on a tablet or a phone. Last in the file so the short-screen rules above (an iPad in
   landscape is 820 px tall) do not shrink them back. */
@media (pointer: coarse) {
    .pl-tool { width: 38px; height: 36px; }
    .pl-tb { width: 36px; height: 36px; }
    .pl-nbb { width: 34px; height: 32px; }
    .pl-status { min-height: 40px; }
}