/* @ekm-tags: style, misc, patient */
/* @ekm-tags+: patient */
/* EKM Sign → Edit: PDF projects, folders and sharing, Finished PDFs (js/ekm-studio-pdf.js). Owner 2026-11-26: mockup approved
   ("build it"): a library with a folder list, the folder's name in large type, folders drawn as folders with the name written on
   them (Cookie), page-1 previews, a calm dark look. The accent follows the person's own portal theme (--c-accent), as the rest of
   EKM Sign does. Self-contained tokens on .stu-x, so the dialogs (opened at the end of <body>) look the same. */
.stu-x {
  --sx-bg: #0A0A0C; --sx-bg2: #0E0E11; --sx-panel: #131316; --sx-glass: rgba(255, 255, 255, .035); --sx-glass2: rgba(255, 255, 255, .065); --sx-glass3: rgba(255, 255, 255, .1);
  --sx-line: rgba(255, 255, 255, .075); --sx-line2: rgba(255, 255, 255, .13); --sx-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --sx-ink: #F6F5F2; --sx-ink2: #E2E0DB; --sx-muted: #A3A19B; --sx-faint: #74726D;
  --sx-acc: var(--c-accent, #C8A97A); --sx-acc-ink: var(--c-accent-text, #1C150C);
  --sx-acc-hi: color-mix(in srgb, var(--sx-acc) 70%, #fff); --sx-acc-lo: color-mix(in srgb, var(--sx-acc) 80%, #000);
  --sx-acc-text: color-mix(in srgb, var(--sx-acc) 62%, #fff); --sx-acc-soft: color-mix(in srgb, var(--sx-acc) 14%, transparent); --sx-acc-line: color-mix(in srgb, var(--sx-acc) 45%, transparent);
  --sx-ok: #7DDDB4; --sx-ok-bg: rgba(52, 211, 153, .12); --sx-warn: #F7D06B; --sx-warn-bg: rgba(251, 191, 36, .12); --sx-bad: #F6A3A3; --sx-bad-bg: rgba(248, 113, 113, .12);
  --sx-ui: "Geist", "Inter", "DM Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sx-disp: "Instrument Serif", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sx-script: "Cookie", "Segoe Script", "Brush Script MT", cursive;
  /* the portal's disabled-button look (css/ekm-buttons.css: muted solid, never faded), in this dark frame's colours */
  --btn-dis-bg: rgba(255, 255, 255, .05); --btn-dis-ink: #8A8882; --btn-dis-rule: transparent;
  color-scheme: dark; color: var(--sx-ink); font-family: var(--sx-ui);
}
.stu-x svg { width: 16px; height: 16px; flex: none; }
.stu-x :focus-visible { outline: 2px solid var(--sx-acc-text); outline-offset: 2px; }
.stu { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: var(--sx-bg); position: relative; isolation: isolate; }
.stu::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 420px at 30% -120px, color-mix(in srgb, var(--sx-acc) 10%, transparent), transparent 70%), radial-gradient(700px 400px at 110% 0%, rgba(142, 166, 216, .05), transparent 70%); }
.stu-scroll { flex: 1; min-height: 0; overflow: auto; }
.stu-lwrap { padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 24px; max-width: 1240px; }

/* controls */
.stu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 14px; border-radius: 10px; border: 0; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--sx-ink2); background: var(--sx-glass2); box-shadow: 0 0 0 1px var(--sx-line) inset, var(--sx-hi); transition: background .15s; }
.stu-btn:hover:not(:disabled) { background: var(--sx-glass3); color: var(--sx-ink); }
.stu-btn:disabled { cursor: default; }
.stu-btn--pri { color: var(--sx-acc-ink); font-weight: 600; background: linear-gradient(180deg, var(--sx-acc-hi), var(--sx-acc) 55%, var(--sx-acc-lo));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 1px 0 rgba(255, 255, 255, .4) inset, 0 10px 24px -12px var(--sx-acc); }
.stu-btn--pri:hover:not(:disabled) { color: var(--sx-acc-ink); background: linear-gradient(180deg, var(--sx-acc-hi), var(--sx-acc) 55%, var(--sx-acc-lo)); filter: brightness(1.05); }
.stu-btn--ghost { background: transparent; box-shadow: none; color: var(--sx-muted); }
.stu-btn--ico { width: 34px; padding: 0; }
.stu-btn--sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.stu-danger { color: var(--sx-bad) !important; }
.stu-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset; }
.stu-seg button { border: 0; background: transparent; height: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer; color: var(--sx-muted); display: inline-flex; align-items: center; }
.stu-seg button[aria-pressed="true"] { background: var(--sx-glass3); color: var(--sx-ink); box-shadow: 0 0 0 1px var(--sx-line2) inset; }
.stu-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--sx-ink2); background: var(--sx-glass2); box-shadow: 0 0 0 1px var(--sx-line) inset; }
.stu-pill svg { width: 13px; height: 13px; }
.stu-pill--acc { background: var(--sx-acc-soft); color: var(--sx-acc-text); box-shadow: 0 0 0 1px var(--sx-acc-line) inset; }
.stu-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--sx-glass2); color: var(--sx-muted); }
.stu-chip svg { width: 12px; height: 12px; }
.stu-chip--ok { background: var(--sx-ok-bg); color: var(--sx-ok); } .stu-chip--bad { background: var(--sx-bad-bg); color: var(--sx-bad); } .stu-chip--acc { background: var(--sx-acc-soft); color: var(--sx-acc-text); }
.stu-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stu-alert { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sx-bad-bg); color: var(--sx-bad); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stu-alert[hidden] { display: none; }
.stu-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(142, 166, 216, .08); box-shadow: 0 0 0 1px rgba(142, 166, 216, .2) inset; color: #C9D4EE; font-size: 12.5px; line-height: 1.5; }
.stu-note svg { margin-top: 1px; color: #8EA6D8; }
.stu-empty { margin: 0; color: var(--sx-faint); font-size: 13px; }
.stu-sub { margin: 0; color: var(--sx-muted); font-size: 13px; line-height: 1.5; }
.stu-m { color: var(--sx-muted); }
.stu-nowrap { white-space: nowrap; }
.stu-emptybox { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 14px; border: 1.5px dashed var(--sx-line2); color: var(--sx-muted); font-size: 13px; }
.stu-emptybox b { color: var(--sx-ink); font-size: 14px; }
.stu-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px; font-weight: 600; color: #121214; box-shadow: 0 0 0 2px var(--sx-bg); flex: none; }
.stu-avs { display: inline-flex; flex: none; } .stu-avs .stu-av + .stu-av { margin-left: -7px; }
.stu-av--more { background: #2A2A30; color: var(--sx-ink2); }
.stu-fico { width: 18px; height: 14px; border-radius: 3px; position: relative; flex: none; display: inline-block; }
.stu-fico::before { content: ""; position: absolute; left: 0; top: -2px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: inherit; filter: brightness(.8); }
.stu-fico--sm { width: 12px; height: 9px; } .stu-fico--sm::before { width: 5px; height: 3px; }
.stu-lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; }
.stu-inp, .stu-sel { font: inherit; color: var(--sx-ink); border: 0; border-radius: 10px; background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 1px var(--sx-line2) inset; }
.stu-inp { height: 38px; padding: 0 12px; font-size: 13.5px; min-width: 0; }
.stu-sel { height: 32px; padding: 0 8px; font-size: 12.5px; background: var(--sx-glass2); }
.stu-inp:focus, .stu-sel:focus { outline: none; box-shadow: 0 0 0 1.5px var(--sx-acc) inset; }
.stu-field { display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------- library */
.stu-lib { flex: 1; min-height: 0; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.stu-fpane { border-right: 1px solid var(--sx-line); padding: 16px 12px; overflow: auto; display: flex; flex-direction: column; gap: 3px; background: rgba(8, 8, 10, .55); }
.stu-fsearch { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset; color: var(--sx-faint); margin-bottom: 8px; }
.stu-fsearch input { all: unset; flex: 1; min-width: 0; color: var(--sx-ink); font-size: 13px; }
.stu-fhead { display: flex; align-items: center; justify-content: space-between; margin: 14px 8px 4px; }
.stu-fhead span { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; }
.stu-fhead span svg { width: 11px; height: 11px; }
.stu-fhead button { border: 0; background: transparent; color: var(--sx-faint); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.stu-fhead button:hover { background: var(--sx-glass2); color: var(--sx-ink); }
.stu-frow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 13.5px; color: var(--sx-ink2); }
.stu-frow:hover { background: var(--sx-glass); }
.stu-frow.is-on { background: var(--sx-glass2); box-shadow: 0 0 0 1px var(--sx-line) inset; color: var(--sx-ink); }
.stu-frow--sub { padding-left: 30px; font-size: 13px; color: var(--sx-muted); }
.stu-frow-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-frow-ct { font-size: 11.5px; color: var(--sx-faint); font-variant-numeric: tabular-nums; }
.stu-frow-gl { color: var(--sx-faint); display: inline-grid; } .stu-frow-gl svg { width: 13px; height: 13px; }
.stu-lico { width: 18px; display: grid; place-items: center; color: var(--sx-muted); }
.stu-fnone { margin: 2px 10px 4px; font-size: 12px; color: var(--sx-faint); }
.stu-fnote { margin: auto 0 0; padding: 14px 8px 2px; font-size: 11.5px; line-height: 1.5; color: var(--sx-faint); }

.stu-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.stu-h1 { margin: 6px 0 0; font-family: var(--sx-disp); font-weight: 400; font-size: 46px; line-height: 1.04; letter-spacing: -.01em; color: var(--sx-ink); text-wrap: balance; overflow-wrap: anywhere; }
.stu-h1 em { font-style: italic; color: var(--sx-acc-text); }
.stu-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sx-faint); }
.stu-crumb a { cursor: pointer; } .stu-crumb a:hover { color: var(--sx-ink2); }
.stu-crumb svg { width: 12px; height: 12px; }
.stu-crumb-here { color: var(--sx-ink2); }
.stu-fmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; color: var(--sx-muted); font-size: 13px; }
.stu-facts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stu-sect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stu-h3 { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.stu-h3 b { letter-spacing: 0; font-weight: 500; color: var(--sx-muted); }
.stu-collapse { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--sx-faint); border-radius: 8px; padding: 5px 8px; margin-left: -8px; }
.stu-collapse:hover { background: var(--sx-glass); }
.stu-collapse > svg { width: 14px; height: 14px; transition: transform .15s; } .stu-collapse[aria-expanded="true"] > svg { transform: rotate(90deg); }
.stu-hint { font-size: 12px; color: var(--sx-faint); }

/* folders drawn as folders: back, page previews peeking out, front with the name written on it */
.stu-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.stu-ftile { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 10px; min-width: 0; font: inherit; color: inherit; }
.stu-fart { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .05), transparent 60%), var(--sx-bg2); box-shadow: 0 0 0 1px var(--sx-line) inset, var(--sx-hi); }
.stu-ftile:hover .stu-fart { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--sx-line2) inset, var(--sx-hi), 0 24px 40px -26px #000; }
.stu-fback { position: absolute; left: 10%; right: 10%; top: 18%; bottom: 9%; border-radius: 6px 10px 10px 10px; background: var(--fc); filter: brightness(.55) saturate(.9); }
.stu-fback::before { content: ""; position: absolute; left: 0; top: -9px; width: 38%; height: 12px; border-radius: 6px 10px 0 0; background: inherit; }
.stu-fsheets { position: absolute; left: 18%; right: 18%; top: 10%; bottom: 20%; }
.stu-fsheets .stu-thumb { position: absolute; top: 0; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); transition: transform .25s; }
.stu-fsheets .stu-thumb:nth-child(1) { left: 6%; transform: rotate(-5deg); }
.stu-fsheets .stu-thumb:nth-child(2) { left: 30%; transform: rotate(2deg) translateY(-4px); }
.stu-fsheets .stu-thumb:nth-child(3) { left: 52%; transform: rotate(6deg) translateY(4px); }
.stu-ftile:hover .stu-fsheets .stu-thumb:nth-child(1) { transform: rotate(-8deg) translateY(-6px); }
.stu-ftile:hover .stu-fsheets .stu-thumb:nth-child(3) { transform: rotate(9deg) translateY(-3px); }
.stu-ffront { position: absolute; left: 10%; right: 10%; bottom: 9%; height: 58%; border-radius: 8px 8px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 92%, #fff) 0%, var(--fc) 40%, color-mix(in srgb, var(--fc) 70%, #000) 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .35) inset, 0 -12px 24px -14px rgba(0, 0, 0, .6); }
/* the folder's name, handwritten in black on the front (owner 2026-11-26: "use cookie font", centred) */
.stu-fink { position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%); text-align: center; font-family: var(--sx-script); font-weight: 400; line-height: 1.25;
  color: #111014; white-space: nowrap; overflow: hidden; padding: 2px 6px; }
.stu-fcap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stu-fcap-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stu-fcap b { font-size: 14px; font-weight: 600; color: var(--sx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-fcap small { display: flex; align-items: center; gap: 5px; color: var(--sx-faint); font-size: 12px; } .stu-fcap small svg { width: 12px; height: 12px; }
.stu-ftile--new .stu-fart { display: grid; place-items: center; background: transparent; box-shadow: none; border: 1.5px dashed var(--sx-line2); }
.stu-ftile--new:hover .stu-fart { border-color: var(--sx-acc-line); box-shadow: none; }
.stu-plus { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sx-acc-soft); color: var(--sx-acc-text); box-shadow: 0 0 0 1px var(--sx-acc-line) inset; }
.stu-plus svg { width: 20px; height: 20px; }

/* project cards */
.stu-thumb { display: inline-block; position: relative; aspect-ratio: 8.5 / 11; background: #fff; overflow: hidden; flex: none; border-radius: 2px; }
.stu-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stu-thumb img:not([src]) { visibility: hidden; }
.stu-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 22px 18px; }
.stu-pcard { display: flex; flex-direction: column; gap: 11px; min-width: 0; cursor: pointer; outline-offset: 4px; }
.stu-part { position: relative; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 4 / 4.4; border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s;
  background: radial-gradient(80% 60% at 50% 30%, rgba(255, 255, 255, .07), transparent 70%), linear-gradient(180deg, #16161A, #0F0F12); box-shadow: 0 0 0 1px var(--sx-line) inset, var(--sx-hi); }
.stu-pcard:hover .stu-part, .stu-pcard:focus-visible .stu-part { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--sx-acc-line) inset, var(--sx-hi), 0 30px 50px -30px #000; }
.stu-thumbwrap { margin-bottom: -18px; transition: transform .3s; }
.stu-pcard:hover .stu-thumbwrap { transform: translateY(-8px); }
.stu-thumbwrap .stu-thumb { box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .95); border-radius: 3px 3px 0 0; }
.stu-tl { position: absolute; left: 10px; top: 10px; z-index: 2; }
.stu-tl .stu-chip { background: rgba(10, 10, 12, .8); box-shadow: 0 0 0 1px var(--sx-line2); }
.stu-hov { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; gap: 5px; opacity: 0; transform: translateY(-4px); transition: .18s; }
.stu-pcard:hover .stu-hov, .stu-pcard:focus-within .stu-hov { opacity: 1; transform: none; }
.stu-hov button { width: 30px; height: 30px; border-radius: 9px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(14, 14, 17, .9); color: var(--sx-ink2); box-shadow: 0 0 0 1px var(--sx-line2); }
.stu-hov button:hover { background: #26262C; color: var(--sx-ink); }
.stu-ptitle { margin: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sx-ink); }
.stu-psub { display: flex; align-items: center; gap: 7px; color: var(--sx-faint); font-size: 12px; min-width: 0; }
.stu-psub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-pcard--new .stu-part { background: transparent; box-shadow: none; border: 1.5px dashed var(--sx-line2); align-items: center; flex-direction: column; justify-content: center; gap: 10px; text-align: center; padding: 16px; }
.stu-pcard--new:hover .stu-part { border-color: var(--sx-acc-line); box-shadow: none; }
.stu-pcard--new b { font-size: 13.5px; color: var(--sx-ink); } .stu-pcard--new small { color: var(--sx-faint); font-size: 12px; }
.stu-plist { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--sx-line) inset; background: rgba(255, 255, 255, .015); }
.stu-prow { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, 1fr) 130px 80px 34px; gap: 14px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--sx-line); cursor: pointer; font-size: 13px; }
.stu-prow:first-child { border-top: 0; } .stu-prow:hover { background: var(--sx-glass); }
.stu-prow--head { cursor: default; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; } .stu-prow--head:hover { background: none; }
.stu-prow--plain { cursor: default; }
.stu-prow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu-prow .stu-m { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* move menu */
.stu-menu { position: fixed; z-index: 2147483000; min-width: 250px; max-height: 70vh; overflow: auto; padding: 6px; border-radius: 13px; background: #16161A; box-shadow: 0 0 0 1px var(--sx-line2), 0 24px 60px -20px #000; }
.stu-menu h6 { margin: 6px 10px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; }
.stu-menu button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; color: var(--sx-ink2); text-align: left; }
.stu-menu button:hover { background: var(--sx-glass2); color: var(--sx-ink); }
.stu-menu button.is-sub { padding-left: 26px; }
.stu-menu button > svg { width: 15px; height: 15px; color: var(--sx-faint); }
.stu-menu em { font-style: normal; color: var(--sx-faint); }
.stu-menu .stu-gl { margin-left: auto; color: var(--sx-faint); display: grid; } .stu-menu .stu-gl svg { width: 13px; height: 13px; }
.stu-menu hr { border: 0; border-top: 1px solid var(--sx-line); margin: 6px 4px; }

/* dialogs */
.stu-dialog { margin: auto; /* the app resets every margin to 0, which pins a dialog to the top-left corner */ border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; color: var(--sx-ink);
  background: linear-gradient(180deg, #19191D, #131316); box-shadow: 0 0 0 1px var(--sx-line2), var(--sx-hi), 0 40px 80px -30px #000; }
.stu-dialog::backdrop { background: rgba(5, 5, 7, .6); backdrop-filter: blur(6px); }
.stu-dlg { display: flex; flex-direction: column; }
.stu-dlg > .stu-alert { margin: 0 22px; }
.stu-dlg-h { display: flex; gap: 14px; align-items: center; padding: 20px 22px 6px; }
.stu-dlg-h h3 { margin: 0; font-family: var(--sx-disp); font-weight: 400; font-size: 27px; line-height: 1.1; color: var(--sx-ink); }
.stu-dlg-h p { margin: 2px 0 0; color: var(--sx-muted); font-size: 13px; }
.stu-bigf { width: 46px; height: 36px; border-radius: 6px; position: relative; flex: none; background: linear-gradient(180deg, color-mix(in srgb, var(--fc, #D2B58A) 90%, #fff), var(--fc, #D2B58A)); }
.stu-bigf::before { content: ""; position: absolute; left: 0; top: -5px; width: 18px; height: 7px; border-radius: 4px 4px 0 0; background: var(--fc, #D2B58A); filter: brightness(.75); }
.stu-bigf--doc { display: grid; place-items: center; background: var(--sx-acc-soft); color: var(--sx-acc-text); } .stu-bigf--doc::before { display: none; }
.stu-dlg-b { padding: 14px 22px 6px; display: flex; flex-direction: column; gap: 14px; }
.stu-dlg-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 22px 20px; }
.stu-dlg-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.stu-acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stu-acc button { border: 0; cursor: pointer; text-align: left; padding: 12px; border-radius: 12px; background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset; display: flex; flex-direction: column; gap: 6px; color: var(--sx-ink2); font: inherit; }
.stu-acc button:hover { background: var(--sx-glass2); }
.stu-acc button[aria-checked="true"] { background: var(--sx-acc-soft); box-shadow: 0 0 0 1.5px var(--sx-acc) inset; color: var(--sx-ink); }
.stu-acc svg { width: 18px; height: 18px; color: var(--sx-acc-text); }
.stu-acc b { font-size: 13px; font-weight: 600; } .stu-acc small { color: var(--sx-muted); font-size: 11.5px; line-height: 1.35; }
.stu-addp { display: flex; gap: 8px; } .stu-addp .stu-inp { flex: 1; }
.stu-people { display: flex; flex-direction: column; gap: 2px; }
.stu-person { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; }
.stu-person:hover { background: var(--sx-glass); }
.stu-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .stu-who b { font-size: 13.5px; font-weight: 500; } .stu-who small { color: var(--sx-faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.stu-own { font-size: 12.5px; color: var(--sx-faint); padding-right: 8px; }
.stu-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.stu-sw { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--fc); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.stu-sw[aria-checked="true"] { box-shadow: 0 0 0 2px #131316, 0 0 0 4px var(--fc); }
.stu-checks { list-style: none; margin: 0; padding: 0 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.stu-checks li { padding: 8px 10px; border-radius: 8px; }
.stu-checks .is-ok { background: var(--sx-ok-bg); color: var(--sx-ok); } .stu-checks .is-bad { background: var(--sx-bad-bg); color: var(--sx-bad); }
.stu-result { margin: 8px 22px 0; border-radius: 12px; padding: 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 10px; background: var(--sx-ok-bg); box-shadow: 0 0 0 1px rgba(125, 221, 180, .35) inset; }
.stu-vers { list-style: none; margin: 0; padding: 0 22px; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.stu-vers li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; box-shadow: 0 0 0 1px var(--sx-line) inset; }
.stu-label { width: 170px; height: 32px; }
.stu-rowacts { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* the editor's older dialogs (versions, export) share the frame */
.stu-dialog > .stu-dlg > .stu-h3 { padding: 20px 22px 0; font-family: var(--sx-disp); font-size: 27px; letter-spacing: 0; text-transform: none; color: var(--sx-ink); font-weight: 400; }
.stu-dialog > .stu-dlg > .stu-sub, .stu-dialog > .stu-dlg > [data-v-body] > .stu-empty { padding: 6px 22px 10px; }
.stu-dialog > .stu-dlg > .stu-dlg-acts { justify-content: flex-end; padding: 16px 22px 20px; }
.stu-dialog [data-x-res] { padding: 0 0 4px; }

/* ---------------------------------------------------------------- Finished PDFs */
.stu-tablewrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--sx-line) inset; background: rgba(255, 255, 255, .015); }
.stu-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 13px; }
.stu-table th { text-align: left; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--sx-line); }
.stu-table td { padding: 12px 16px; border-bottom: 1px solid var(--sx-line); vertical-align: middle; }
.stu-table tr:last-child td { border-bottom: 0; } .stu-table tbody tr:hover td { background: var(--sx-glass); }
.stu-r { text-align: right !important; }
.stu-fname { display: flex; gap: 12px; align-items: center; } .stu-fname b { display: block; font-weight: 600; } .stu-fname small { color: var(--sx-faint); font-size: 12px; }
.stu-fileico { width: 34px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: #fff; color: #555; flex: none; box-shadow: 0 6px 14px -8px #000; }
.stu-infold { display: inline-flex; align-items: center; gap: 7px; color: var(--sx-muted); white-space: nowrap; }
.stu-ract { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* ---------------------------------------------------------------- editor */
.stu-ed { height: 100%; }
/* the name, save status and any save problem stay in view while the pages scroll */
.stu-head { position: sticky; top: 0; z-index: 6; flex: none; background: rgba(10, 10, 12, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sx-line); }
.stu-head [data-stu-msg]:not(:empty) { padding: 0 16px 10px; }
.stu-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; }
/* zoom: − 100% + (100% = the page fits the window) */
.stu-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 11px; background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset; }
.stu-zoom button { border: 0; background: transparent; color: var(--sx-ink2); min-width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 15px; }
.stu-zoom button:hover { background: var(--sx-glass3); }
.stu-zoom .stu-zoom-v { min-width: 46px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--sx-muted); }
.stu-zoom button[data-stu="zpage"], .stu-zoom button[data-stu="zwidth"] { font-size: 12.5px; padding: 0 9px; white-space: nowrap; }
.stu-zoom button.is-on { background: var(--sx-glass3); color: var(--sx-ink); box-shadow: 0 0 0 1px var(--sx-line2) inset; }
.stu-btn.is-on { background: var(--sx-acc-soft); color: var(--sx-acc-text); box-shadow: 0 0 0 1px var(--sx-acc-line) inset; }
.stu-vsep { width: 1px; height: 22px; background: var(--sx-line2); }
.stu-edtitle { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.stu-edtitle .stu-crumb { font-size: 11.5px; gap: 6px; } .stu-edtitle .stu-crumb .stu-chip { height: 18px; font-size: 10.5px; }
.stu-title { all: unset; font-size: 15.5px; font-weight: 600; color: var(--sx-ink); padding: 1px 6px; margin-left: -6px; border-radius: 6px; min-width: 0; text-overflow: ellipsis; }
.stu-title:hover:not(:disabled), .stu-title:focus { background: var(--sx-glass); }
.stu-save { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--sx-muted); background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset; white-space: nowrap; }
.stu-save i { width: 7px; height: 7px; border-radius: 50%; background: var(--sx-ok); box-shadow: 0 0 0 3px var(--sx-ok-bg); }
.stu-save--unsaved i { background: var(--sx-warn); box-shadow: 0 0 0 3px var(--sx-warn-bg); }
.stu-save--saving i, .stu-save--wait i { background: var(--sx-acc-text); box-shadow: 0 0 0 3px var(--sx-acc-soft); }
.stu-save--saving i { animation: stu-pulse 1s infinite; }
.stu-save--bad { color: var(--sx-bad); } .stu-save--bad i { background: var(--sx-bad); box-shadow: 0 0 0 3px var(--sx-bad-bg); }
@keyframes stu-pulse { 50% { opacity: .35; } }
.stu-msg { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.stu-msg > span { flex: 1 1 260px; }
/* the editor (owner 2026-11-26, roomier layout approved: "build it"): page list | the page area | details (hidden until asked for) */
.stu-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.stu-ed.no-pages .stu-shell { grid-template-columns: minmax(0, 1fr); } .stu-ed.no-pages .stu-pages { display: none; }
.stu-ed.with-details .stu-shell { grid-template-columns: 150px minmax(0, 1fr) 262px; }
.stu-ed.with-details.no-pages .stu-shell { grid-template-columns: minmax(0, 1fr) 262px; }
.stu-ed:not(.with-details) .stu-insp { display: none; }
/* while editing, EKM Sign's own menu and top bar fold away: the whole window is the editor */
.esg-ws.stu-editing .esgx-side, .esg-ws.stu-editing .esgx-top { display: none !important; }
.esg-ws.stu-editing .esgx-content { padding: 0 !important; overflow: hidden !important; }
.esg-ws.stu-editing .esgx-content > div { max-width: none !important; height: 100%; margin: 0 !important; }
.stu-stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
/* tools float in one bar over the page */
.stu-dock { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 24px); overflow-x: auto; padding: 5px; border-radius: 14px;
  background: rgba(20, 20, 24, .94); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--sx-line2), 0 18px 40px -18px #000; }
.stu-dock:empty { display: none; }
.stu-dock > div { display: flex; align-items: center; gap: 2px; }
.stu-dsep { width: 1px; height: 22px; background: var(--sx-line2); margin: 0 4px; flex: none; }
.stu-tool { position: relative; border: 0; background: transparent; cursor: pointer; border-radius: 10px; height: 36px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; color: var(--sx-muted); font: inherit; font-size: 12.5px; white-space: nowrap; }
.stu-tool svg { width: 17px; height: 17px; }
.stu-tool--ico { padding: 0 9px; }
.stu-tool:hover { background: var(--sx-glass); color: var(--sx-ink); }
.stu-tool.is-on { background: linear-gradient(180deg, color-mix(in srgb, var(--sx-acc) 22%, transparent), color-mix(in srgb, var(--sx-acc) 8%, transparent)); color: var(--sx-acc-text); box-shadow: 0 0 0 1px var(--sx-acc-line) inset, var(--sx-hi); }
.stu-kbd { font-size: 10px; line-height: 15px; padding: 0 4px; border: 1px solid var(--sx-line2); border-radius: 4px; color: var(--sx-faint); }
/* which page is in view, with arrows; and what the chosen tool does */
.stu-pnav { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 11px;
  background: rgba(20, 20, 24, .94); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--sx-line2), 0 14px 30px -14px #000; }
.stu-pnav button { border: 0; background: transparent; color: var(--sx-ink2); width: 30px; height: 28px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 17px; }
.stu-pnav button:hover:not(:disabled) { background: var(--sx-glass3); }
.stu-pnav span { min-width: 96px; text-align: center; font-size: 12.5px; color: var(--sx-muted); font-variant-numeric: tabular-nums; }
.stu-hint { position: absolute; left: 14px; bottom: 16px; z-index: 4; max-width: min(42%, 380px); padding: 7px 11px; border-radius: 10px; font-size: 12px; line-height: 1.4; color: var(--sx-muted); background: rgba(20, 20, 24, .9); box-shadow: 0 0 0 1px var(--sx-line); }
.stu-hint:empty { display: none; } .stu-hint.is-warn { color: var(--sx-warn); }
/* the small tool bar next to what is selected */
.stu-ctx { position: absolute; z-index: 7; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: #18181C; box-shadow: 0 0 0 1px var(--sx-line2), 0 12px 30px -10px #000; transform: translateY(calc(-100% - 10px)); white-space: nowrap; color: var(--sx-ink2); font-family: var(--sx-ui); cursor: default; }
.stu-ctx.is-below { transform: translateY(10px); }
.stu-ctx button { border: 0; background: transparent; color: var(--sx-ink2); height: 28px; min-width: 28px; padding: 0 8px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.stu-ctx button:hover { background: var(--sx-glass3); } .stu-ctx .stu-del { color: var(--sx-bad); } .stu-ctx svg { width: 14px; height: 14px; }
.stu-ctx .is-on { background: var(--sx-glass3); box-shadow: 0 0 0 1px var(--sx-line2) inset; }
.stu-sws { display: inline-flex; gap: 3px; padding: 0 4px; }
.stu-ctx button.stu-sw2 { min-width: 0; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.stu-ctx button.stu-sw2.is-on { box-shadow: 0 0 0 2px #18181C, 0 0 0 3.5px #fff; }
.stu-ctx button.stu-wd { min-width: 26px; padding: 0 5px; } .stu-wd i { display: block; width: 16px; background: currentColor; border-radius: 2px; }
.stu-ctx-sel { height: 26px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .08); color: var(--sx-ink); font: inherit; font-size: 12px; padding: 0 4px; }
.stu-ctx em { font-style: normal; font-size: 11.5px; color: var(--sx-muted); padding: 0 4px; font-variant-numeric: tabular-nums; }
.stu-side { min-width: 0; overflow: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; background: rgba(10, 10, 12, .5); }
.stu-pages { border-right: 1px solid var(--sx-line); }
.stu-insp { border-left: 1px solid var(--sx-line); padding: 16px; gap: 14px; }
.stu-h6 { margin: 0; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sx-faint); font-weight: 600; display: flex; justify-content: space-between; }
.stu-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stu-tcard { position: relative; border-radius: 12px; padding: 8px 6px 6px; }
.stu-tcard:hover { background: var(--sx-glass); } .stu-tcard.is-cur { background: var(--sx-glass2); box-shadow: 0 0 0 1px var(--sx-line) inset; }
.stu-thumb-go { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.stu-thumb-go:focus-visible { outline: 2px solid var(--sx-acc-text); outline-offset: 2px; border-radius: 6px; }
.stu-pthumb { width: 104px; min-height: 60px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 10px 20px -10px #000; display: block; }
.stu-pthumb img { display: block; width: 100%; } .stu-pthumb img:not([src]) { aspect-ratio: 8.5 / 11; visibility: hidden; }
.stu-tcard.is-cur .stu-pthumb { box-shadow: 0 0 0 2px var(--sx-acc); }
.stu-tcap { font-size: 11.5px; color: var(--sx-muted); display: flex; flex-direction: column; align-items: center; }
.stu-tcap em { font-style: normal; color: var(--sx-faint); font-size: 10.5px; }
.stu-tops { position: absolute; top: 12px; right: 8px; display: flex; flex-direction: column; gap: 3px; opacity: 0; transition: opacity .12s; }
.stu-tcard:hover .stu-tops, .stu-tcard:focus-within .stu-tops, .stu-tcard.is-cur .stu-tops { opacity: 1; }
.stu-tops button { width: 24px; height: 24px; border-radius: 7px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(17, 17, 20, .94); color: var(--sx-ink2); box-shadow: 0 0 0 1px var(--sx-line2); }
.stu-tops button:hover:not(:disabled) { background: #26262C; } .stu-tops button.stu-del:hover { color: var(--sx-bad); } .stu-tops button:disabled { opacity: .35; }
.stu-tops svg { width: 13px; height: 13px; }
.stu-addpg { border: 1.5px dashed var(--sx-line2); border-radius: 12px; background: transparent; color: var(--sx-muted); padding: 12px 8px; cursor: pointer; font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stu-addpg:hover { border-color: var(--sx-acc-line); color: var(--sx-acc-text); } .stu-addpg b { font-size: 18px; font-weight: 300; line-height: 1; }
/* page tools (owner 2026-11-26): a blank page, the page menu, the pull / split dialog */
.stu-addrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .stu-addrow .stu-addpg { padding: 10px 6px; font-size: 11.5px; text-align: center; }
.stu-addpg > svg { width: 18px; height: 18px; }
.stu-pthumb--blank { min-height: 0; background: #fff; background-image: linear-gradient(135deg, transparent 47%, rgba(0, 0, 0, .06) 48%, rgba(0, 0, 0, .06) 52%, transparent 53%); }
.stu-page.is-blank > canvas { display: none; }
.stu-menu[data-stu-pagemenu] { min-width: 290px; }
.stu-menu[data-stu-pagemenu] em { margin-left: 2px; font-size: 12px; }
.stu-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 8px 2px 2px; }
.stu-pickpg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px 6px; border-radius: 10px; cursor: pointer; background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset; }
.stu-pickpg:has(input:checked) { background: var(--sx-acc-soft); box-shadow: 0 0 0 1.5px var(--sx-acc) inset; }
.stu-pickpg input { position: absolute; top: 6px; left: 6px; margin: 0; accent-color: var(--c-accent, #D2B58A); width: 15px; height: 15px; }
.stu-pickpg .stu-pthumb { width: 54px; min-height: 70px; } .stu-pickpg .stu-pthumb--blank { aspect-ratio: 8.5 / 11; min-height: 0; }
.stu-pickpg b { font-size: 12px; font-weight: 600; color: var(--sx-ink2); } .stu-pickpg em { font-style: normal; font-weight: 400; color: var(--sx-faint); }
.stu-chkrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--sx-glass); cursor: pointer; }
.stu-chkrow input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--c-accent, #D2B58A); }
.stu-chkrow span { display: flex; flex-direction: column; gap: 2px; } .stu-chkrow b { font-size: 13.5px; font-weight: 500; } .stu-chkrow small { color: var(--sx-muted); font-size: 12px; }
.stu-ibox { display: flex; flex-direction: column; gap: 11px; padding: 14px; border-radius: 14px; background: var(--sx-glass); box-shadow: 0 0 0 1px var(--sx-line) inset, var(--sx-hi); }
.stu-k { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--sx-muted); }
.stu-k b { display: inline-flex; align-items: center; gap: 6px; color: var(--sx-ink2); font-weight: 500; text-align: right; }
.stu-typ { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stu-typ span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sx-acc-soft); color: var(--sx-acc-text); box-shadow: 0 0 0 1px var(--sx-acc-line) inset; }
.stu-help { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sx-faint); }

/* pages */
.stu-canvas { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: safe center; gap: 8px; padding: 70px 32px 80px;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .055) 1px, transparent 0) 0 0 / 22px 22px, radial-gradient(60% 50% at 50% 20%, color-mix(in srgb, var(--sx-acc) 5%, transparent), transparent 70%), #0B0B0E; }
.stu-page { position: relative; width: min(100%, 820px); max-width: none; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 40px 70px -30px #000; flex: none; }
.stu-page > canvas { display: block; width: 100%; height: 100%; }
.stu-page.is-missing { aspect-ratio: auto; padding: 18px; background: var(--sx-panel); }
.stu-pagenum { font-size: 10.5px; color: var(--sx-faint); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.stu-layer { position: absolute; inset: 0; touch-action: none; }
.stu-layer.stu-tool-text, .stu-layer.stu-tool-check, .stu-layer.stu-tool-signature, .stu-layer.stu-tool-highlight { cursor: crosshair; }
.stu-item { position: absolute; box-sizing: border-box; color: #141418; outline: 1px dashed transparent; outline-offset: 1px; }
.stu-layer:not(.is-ro) .stu-item { cursor: move; }
.stu-layer:not(.is-ro) .stu-item:hover, .stu-item.is-sel { outline: 1.5px solid color-mix(in srgb, var(--sx-acc) 80%, #000); }
/* text: Helvetica metrics (Arial is the same width), the font the exported PDF uses */
.stu-item--text { font-family: Helvetica, Arial, sans-serif; line-height: 1.2; white-space: pre-wrap; overflow-wrap: anywhere; padding: 0 1px; cursor: text !important; }
.stu-item--text:focus { outline: 1.5px solid color-mix(in srgb, var(--sx-acc) 80%, #000); background: color-mix(in srgb, var(--sx-acc) 8%, transparent); }
.stu-item--text:empty::before { content: "Type here"; color: #8a8f99; }
.stu-item--check svg { width: 100%; height: 100%; display: block; }
.stu-item--signature img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.stu-sigph { display: grid; place-items: center; height: 100%; font-size: 11px; color: #8a8f99; border: 1px dashed #8a8f99; }
.stu-item--highlight { background: rgba(255, 219, 51, .4); }
/* markup (owner 2026-11-26) */
.stu-item--whiteout { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.stu-item--ellipse { border-radius: 50%; }
.stu-item--line, .stu-item--arrow, .stu-item--pen { min-width: 10px; min-height: 10px; }
.stu-ink { position: absolute; overflow: visible; pointer-events: none; }
.stu-item--note { background: #FFF3A8; color: #3B3200; font-family: var(--sx-ui); font-size: calc(var(--stu-pt, 1) * 10px); line-height: 1.3; padding: calc(var(--stu-pt, 1) * 5px);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); white-space: pre-wrap; overflow: hidden; cursor: text !important; border-radius: 2px; }
.stu-item--note:empty::before { content: "Note for staff (not printed)"; color: #8A7A2A; }
.stu-item--note:focus { outline: 1.5px solid #C9A800; }
.stu-item--stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; border: calc(var(--stu-pt, 1) * 2px) solid currentColor; border-radius: 3px;
  font-family: Helvetica, Arial, sans-serif; font-weight: 700; line-height: 1; text-align: center; overflow: hidden; }
.stu-stamp-w { font-size: calc(var(--stu-pt, 1) * var(--hpt, 40) * .42px); letter-spacing: .02em; white-space: nowrap; }
.stu-stamp-d { font-size: calc(var(--stu-pt, 1) * var(--hpt, 40) * .2px); margin-top: .25em; white-space: nowrap; }
.stu-drawpv { position: absolute; pointer-events: none; }
.stu-drawpv.stu-item--whiteout { background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
/* the PDF's own form fields: light blue boxes you can type in or tick (only while Select is the tool) */
.stu-flayer { position: absolute; inset: 0; pointer-events: none; z-index: 2; color-scheme: light; }
.stu-fin { position: absolute; box-sizing: border-box; margin: 0; padding: 0 2px; border: 0; border-radius: 2px; color: #111014; font-family: Helvetica, Arial, sans-serif; line-height: 1.15;
  background: rgba(66, 133, 244, .1); box-shadow: inset 0 0 0 1px rgba(66, 133, 244, .4); pointer-events: none; }
.stu-layer.stu-tool-select ~ .stu-flayer .stu-fin { pointer-events: auto; }
.stu-fin:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px rgba(66, 133, 244, .8); }
.stu-fin:focus { outline: none; background: rgba(66, 133, 244, .05); box-shadow: inset 0 0 0 2px #4285F4; }
textarea.stu-fin { resize: none; padding-top: 1px; }
.stu-fin--check, .stu-fin--radio { appearance: auto; accent-color: #1A1A1E; background: transparent; box-shadow: none; cursor: pointer; }
select.stu-fin { appearance: auto; padding: 0; }
.stu-fin:disabled { background: transparent; box-shadow: none; color: #111014; opacity: 1; }
/* the page is white paper: the portal theme's own input colours (light ink, dark fills, rounded borders) must not apply here */
.stu-x .stu-flayer .stu-fin { color: #111014 !important; -webkit-text-fill-color: #111014 !important; caret-color: #111014; border: 0 !important; border-radius: 2px !important;
  min-height: 0 !important; height: auto; font-family: Helvetica, Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
/* Solid boxes: whatever the PDF itself has printed or painted under a field (an earlier answer, its own tick) is hidden, so each
   answer shows once (owner 2026-11-26: on the Emblem Health form every answer showed twice, slightly offset). */
.stu-x .stu-flayer .stu-fin--text, .stu-x .stu-flayer select.stu-fin { background: #EEF3FD !important; }
.stu-x .stu-flayer .stu-fin--text:focus, .stu-x .stu-flayer select.stu-fin:focus { background: #fff !important; }
.stu-x .stu-flayer .stu-fin--check, .stu-x .stu-flayer .stu-fin--radio { appearance: none !important; -webkit-appearance: none !important; padding: 0 !important; cursor: pointer;
  background: #fff !important; box-shadow: inset 0 0 0 1.5px #3A3A40 !important; }
.stu-x .stu-flayer .stu-fin--radio { border-radius: 50% !important; }
.stu-x .stu-flayer .stu-fin--check:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' fill='none' stroke='%23111014' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat !important; }
.stu-x .stu-flayer .stu-fin--radio:checked { background: radial-gradient(circle, #111014 0 36%, #fff 41%) !important; }
.stu-x .stu-flayer select.stu-fin option { color: #111014; background: #fff; }
.stu-x .stu-flayer .stu-fin--text:disabled, .stu-x .stu-flayer select.stu-fin:disabled { background: #fff !important; box-shadow: none !important; }
.stu-grip { position: absolute; right: -6px; bottom: -6px; width: 10px; height: 10px; border-radius: 2px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--sx-acc) 80%, #000); cursor: nwse-resize; display: none; }
.stu-item.is-sel .stu-grip, .stu-item:hover .stu-grip { display: block; }

/* narrow screens */
@media (max-width: 1100px) { .stu-ed.with-details .stu-shell { grid-template-columns: minmax(0, 1fr) 262px; } .stu-ed.with-details .stu-pages { display: none; } .stu-zoom button[data-stu="zpage"], .stu-zoom button[data-stu="zwidth"] { padding: 0 6px; } }
@media (max-width: 860px) {
  .stu-lib { grid-template-columns: minmax(0, 1fr); }
  .stu-fpane { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--sx-line); padding: 10px 12px; gap: 6px; }
  .stu-fpane .stu-fsearch, .stu-fpane .stu-fhead, .stu-fpane .stu-fnote, .stu-fpane .stu-fnone { display: none; }
  .stu-frow { width: auto; flex: none; white-space: nowrap; } .stu-frow-ct, .stu-frow--sub { display: none; }
  .stu-lwrap { padding: 20px 16px 40px; } .stu-h1 { font-size: 36px; }
  .stu-acc { grid-template-columns: minmax(0, 1fr); }
  .stu-prow { grid-template-columns: 34px minmax(0, 1fr) 34px; } .stu-c3, .stu-c4, .stu-c5 { display: none !important; }
  .stu-shell, .stu-ed.with-details .stu-shell { grid-template-columns: minmax(0, 1fr) !important; } .stu-pages, .stu-insp { display: none !important; } .stu-tlbl, .stu-tool .stu-kbd, .stu-hint { display: none; }
  .stu-canvas { padding: 16px 12px 60px; }
}
@media (prefers-reduced-motion: reduce) { .stu-x *, .stu-x { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
