:root {
  --ink: #1c2733;
  --muted: #5b6b7b;
  --line: #d8dfe6;
  --bg: #f2f5f8;
  --card: #ffffff;
  --accent: #175ddc;
  --accent-dark: #124ab0;
  --ok: #1e7d3c;
  --warn: #a15c00;
  --bad: #b3261e;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }

.topbar { background: #12233b; color: #fff; }
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.mainnav { display: flex; gap: .9rem; flex-wrap: wrap; }
.mainnav a { color: #c7d3e4; font-size: .95rem; }
.mainnav a:hover { color: #fff; text-decoration: none; }
.logout-form { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.whoami { color: #c7d3e4; font-size: .9rem; }

.container { max-width: 1080px; margin: 1.25rem auto 3rem; padding: 0 1rem; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 0 2rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.1rem;
}
.card h2:first-child { margin-top: 0; }

.flashes { margin-bottom: 1rem; }
.flash {
  background: #fff7e0; border: 1px solid #eeda9a; color: #6b5200;
  padding: .6rem .9rem; border-radius: 8px; margin-bottom: .4rem; font-size: .95rem;
}
.error-box {
  background: #fdecea; border: 1px solid #f2b8b5; color: var(--bad);
  padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem;
}

label { display: block; font-weight: 600; font-size: .9rem; margin: .8rem 0 .25rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], textarea, select {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(23, 93, 220, .35); border-color: var(--accent);
}

.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px;
  padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #f3f6fa; }
.btn-danger { background: #fff; color: var(--bad); border-color: #f2b8b5; }
.btn-danger:hover { background: #fdecea; }
.btn-ghost { background: transparent; color: #c7d3e4; border-color: #3a4f6e; padding: .35rem .8rem; }
.btn-ghost:hover { color: #fff; background: #1d3357; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th, table.list td {
  text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.list th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }

.badge {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.badge-sent { background: #e4edfd; color: var(--accent-dark); }
.badge-completed { background: #e2f3e7; color: var(--ok); }
.badge-declined { background: #fdecea; color: var(--bad); }
.badge-voided { background: #eceff2; color: var(--muted); }
.badge-pending { background: #fff3d6; color: var(--warn); }
.badge-viewed { background: #e4edfd; color: var(--accent-dark); }
.badge-signed { background: #e2f3e7; color: var(--ok); }
.badge-inactive { background: #eceff2; color: var(--muted); }
.badge-admin { background: #eee6fb; color: #5a34a3; }

.filterbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filterbar a {
  padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: .88rem;
}
.filterbar a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filterbar a:hover { text-decoration: none; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.auth-card { max-width: 420px; margin: 8vh auto 0; }
.auth-card .brand-line { text-align: center; font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; }

/* -------- document view -------- */
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2.2rem; font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem; line-height: 1.65;
}
.doc h3 { font-size: 1.02rem; margin: 1.3rem 0 .4rem; }
.doc p { margin: 0 0 .8rem; text-align: justify; }
.doc p.clause { padding-left: 2.3em; }
.doc p.clause .cnum {
  display: inline-block; width: 2.3em; margin-left: -2.3em; text-indent: 0;
}
.doc p.clause-sub { padding-left: 4.6em; }
.doc p.clause-sub .cnum { width: 2.3em; margin-left: -2.3em; }
.doc .fillme {
  background: #fff3d6; border-bottom: 1.5px solid #d8a94a; padding: 0 .18em;
  border-radius: 2px; font-style: italic; color: #6b5200;
}
.doc .fillme.filled {
  background: #e2f3e7; border-bottom-color: #7bb98e; font-style: normal;
  color: inherit; font-weight: 600;
}
.doc .doc-logo { display: block; max-width: 260px; margin: 0 auto 1.4rem; }
.doc .doc-title {
  text-align: center; font-size: 1.25rem; font-weight: 700; margin: 0 0 1.2rem;
}
@media (max-width: 640px) {
  .doc { padding: 1.1rem 1rem; }
  .doc p { text-align: left; }
  .doc p.clause { padding-left: 1.9em; }
  .doc p.clause .cnum { width: 1.9em; margin-left: -1.9em; }
  .doc p.clause-sub { padding-left: 3.4em; }
}

/* -------- signing page -------- */
.sign-header {
  background: #12233b; color: #fff; padding: .9rem 1rem;
}
.sign-header-inner { max-width: 860px; margin: 0 auto; }
.sign-header .t { font-weight: 700; }
.sign-header .s { color: #c7d3e4; font-size: .88rem; }
.sign-page .container { max-width: 860px; }

.sigtabs { display: flex; gap: .5rem; margin: .6rem 0; }
.sigtabs button {
  flex: 1; padding: .5rem; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted);
}
.sigtabs button.active { border-color: var(--accent); color: var(--accent); background: #eef4ff; }

.sigpad-wrap { position: relative; }
canvas#sigpad {
  width: 100%; height: 180px; border: 1.5px dashed var(--line); border-radius: 8px;
  background: #fff; touch-action: none; display: block;
}
.sigpad-hintline {
  position: absolute; left: 8%; right: 8%; bottom: 44px;
  border-bottom: 1px solid #c4ccd4; pointer-events: none;
}
.sigpad-hint {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  color: #aab4be; font-size: .85rem; pointer-events: none;
}
.sig-actions { display: flex; gap: .6rem; margin-top: .5rem; }

.typed-preview {
  height: 110px; border: 1.5px dashed var(--line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 2.1rem; color: #14213d; overflow: hidden; padding: 0 1rem; white-space: nowrap;
}

.consent-row { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; }
.consent-row input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.consent-row span { font-size: .92rem; color: var(--ink); }

.status-icon { font-size: 2.6rem; line-height: 1; }
.center { text-align: center; }

details.decline { margin-top: 1.4rem; }
details.decline summary { cursor: pointer; color: var(--muted); font-size: .92rem; }

.kv { font-size: .93rem; }
.kv dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .6rem; }
.kv dd { margin: 0; }

.copylink {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem;
  background: #f3f6fa; padding: .3rem .5rem; border-radius: 6px; word-break: break-all;
}

.field-editor table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.field-editor th, .field-editor td { padding: .3rem .35rem; text-align: left; }
.field-editor input[type=text], .field-editor select { padding: .35rem .5rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.mt0 { margin-top: 0; }
.actions-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.right { margin-left: auto; }

.danger-zone { border-color: #f2b8b5; }
.danger-zone summary {
  cursor: pointer; font-weight: 600; color: var(--bad);
}
.danger-zone p { color: var(--muted); }


/* ==================== users page ==================== */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.page-head h1 { margin-bottom: .15rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Disclosure panels whose summary looks like a button. */
.panel { position: relative; }
.panel > summary {
  list-style: none; display: inline-block; user-select: none;
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: " +"; font-weight: 400; opacity: .8; }
.panel[open] > summary::after { content: " ×"; }
.panel-body {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20;
  width: min(620px, calc(100vw - 2.5rem));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.25rem; box-shadow: 0 12px 32px rgba(18, 35, 59, .16);
}
.panel-body h2 { font-size: 1.05rem; }
@media (max-width: 720px) {
  .page-actions { width: 100%; }
  .panel { position: static; }
  .panel-body { position: static; width: auto; margin-top: .6rem; }
}

.listbar {
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  margin-bottom: .9rem;
}
.searchbox {
  flex: 1 1 240px; max-width: 340px; padding: .5rem .8rem;
  border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff;
}
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip {
  padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font: inherit; font-size: .87rem;
  font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.userlist { display: flex; flex-direction: column; gap: .55rem; }
.usercard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.usercard:hover { border-color: #c3cedb; box-shadow: 0 2px 10px rgba(18, 35, 59, .06); }
.usercard.is-inactive { background: #fafbfc; }
.usercard.is-inactive .uc-name, .usercard.is-inactive .avatar { opacity: .6; }

.uc-main {
  display: grid; align-items: center; gap: .9rem;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: .85rem 1.1rem;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #e4edfd; color: var(--accent-dark);
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.avatar-admin { background: #eee6fb; color: #5a34a3; }
.uc-id { min-width: 0; }
.uc-name { font-weight: 600; }
.uc-name .you {
  font-weight: 500; font-size: .75rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 .45rem; margin-left: .2rem;
}
.uc-email {
  display: block; font-size: .87rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-badges { display: flex; gap: .35rem; }
.badge-plain { background: #eef2f6; color: var(--muted); }
.uc-actions { display: flex; align-items: center; gap: .9rem; }
.uc-actions form { display: inline; }

.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; font-size: .88rem;
  font-weight: 600; color: var(--accent); cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; }
.linkbtn.open { color: var(--ink); text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }

.uc-drawer {
  border-top: 1px solid var(--line); padding: .9rem 1.1rem 1.1rem;
  background: #f8fafc; border-radius: 0 0 var(--radius) var(--radius);
}
.uc-drawer label { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; }
.grid-3 select { min-width: 130px; }

.empty-note {
  color: var(--muted); font-size: .93rem; text-align: center;
  padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius);
}

@media (max-width: 780px) {
  .uc-main { grid-template-columns: auto minmax(0, 1fr); row-gap: .6rem; }
  .uc-badges { grid-column: 2; }
  .uc-actions { grid-column: 1 / -1; gap: 1.1rem; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* -------- PDF templates: page views and the field placement editor -------- */
.pdfdoc { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.pdfpage-wrap { width: 100%; }
.pdfpage-num {
  font-size: .78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin: 0 0 .25rem;
}
.pdfpage {
  position: relative; width: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(20, 33, 61, .08); touch-action: none;
}
.pdfpage img { display: block; width: 100%; height: auto; user-select: none; }

/* A placed field, in the editor and over a page being reviewed. */
.ph {
  position: absolute; border: 1.5px solid; border-radius: 3px;
  display: flex; align-items: center; overflow: hidden; cursor: move;
  font-size: .72rem; line-height: 1.1; padding: 0 .2rem;
}
.ph-label {
  pointer-events: none; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-weight: 600;
}
/* Kept out of the way until wanted, so that a box as small as a tick box
   stays easy to grab and move. */
.ph-handle {
  position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px;
  background: currentColor; cursor: nwse-resize; border-radius: 2px;
  opacity: 0; transition: opacity .1s;
}
.ph:hover .ph-handle, .ph.selected .ph-handle { opacity: 1; }
.ph.selected { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 3; }
.ph-initiator { border-color: #1d4ed8; background: rgba(29, 78, 216, .12); color: #1d4ed8; }
.ph-partner   { border-color: #047857; background: rgba(4, 120, 87, .12); color: #047857; }
.ph-company   { border-color: #b45309; background: rgba(180, 83, 9, .12); color: #b45309; }
.ph-sig { border-style: dashed; }

.palette {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  padding: .6rem; background: #f7f9fc; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: .9rem;
}
.palette-label {
  font-size: .8rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; margin-left: .3rem;
}
.palette .pal {
  padding: .35rem .7rem; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer;
}
.palette .pal.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.palette select { width: auto; padding: .35rem .5rem; font-size: .88rem; }

.designer { display: flex; gap: 1.2rem; align-items: flex-start; }
.designer-pages { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.designer-panel {
  width: 280px; flex: none; position: sticky; top: 1rem;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem 1rem; max-height: 88vh; overflow-y: auto;
}
.designer-panel h3 { margin: 0 0 .3rem; font-size: 1rem; }
.designer-panel label { margin-top: .6rem; }
.designer-panel .actions-row { margin-top: 1rem; }
.check-row { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.check-row input { width: auto; }
.legend { line-height: 1.9; }
.legend .key {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid; vertical-align: -1px; margin-right: .35rem;
}
.legend .key-initiator { border-color: #1d4ed8; background: rgba(29, 78, 216, .3); }
.legend .key-partner { border-color: #047857; background: rgba(4, 120, 87, .3); }
.legend .key-company { border-color: #b45309; background: rgba(180, 83, 9, .3); }

/* -------- a PDF agreement being reviewed or signed -------- */
.pv { position: absolute; display: flex; align-items: center; overflow: hidden; }
.pv-value {
  font-family: Helvetica, Arial, sans-serif; color: #14213d;
  white-space: pre-wrap; width: 100%; line-height: 1.28; overflow: hidden;
}
/* A box the person reading the page still has to fill in. */
.pv-edit {
  border: 1.5px solid #d8a94a; background: #fff3d6; border-radius: 3px;
  padding: 0 .1rem;
}
.pv-edit:has(.fillme.filled) { border-color: #7bb98e; background: rgba(226, 243, 231, .8); }
.pv-edit .fillme { color: #6b5200; font-style: italic; }
.pv-edit .fillme.filled { color: #14213d; font-style: normal; font-weight: 600; }
.pv-sig img { width: 100%; height: 100%; object-fit: contain; }
.pv-waiting {
  border: 1.5px dashed #c4ccd4; border-radius: 3px; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--muted); font-style: italic;
}
.pv-sign-here {
  border: 1.5px dashed #d8a94a; background: #fff3d6; border-radius: 3px;
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: .72rem; font-weight: 600; color: #6b5200;
}

@media (max-width: 820px) {
  .designer { flex-direction: column; }
  .designer-panel { width: 100%; position: static; max-height: none; order: -1; }
}

/* A check box placement: only the mark is drawn, centred in its box. */
.pv-box { justify-content: center; }
.pv-tick {
  text-align: center; line-height: 1; font-weight: 700; color: #14213d;
  font-family: -apple-system, "Segoe UI Symbol", "DejaVu Sans", sans-serif;
}
.pv-edit[data-for] { cursor: pointer; }
.pv-edit.pv-box .fillme { font-style: normal; color: #14213d; }
.ph-box { border-style: dashed; padding: 0; justify-content: center; }
.ph-box .ph-label { font-size: .62rem; line-height: 1; }

/* An either/or question on a form: its answers, one of which is chosen. */
.choice-row {
  display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; padding: .2rem 0;
}
.choice-row .check-row { margin: 0; font-weight: 500; }
.choice-row .muted { color: var(--muted); }

/* -------- signing: fill in and sign on the document itself -------- */

/* What is still outstanding, always in view. */
.signbar {
  position: sticky; top: 0; z-index: 20;
  background: #1d3357; color: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
}
.signbar-inner {
  max-width: 860px; margin: 0 auto; padding: .5rem 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.signbar-text { font-size: .92rem; font-weight: 600; flex: 1; }
.signbar .btn { padding: .35rem .9rem; font-size: .9rem; }
.signbar .btn-secondary { background: transparent; color: #fff; border-color: #4a6489; }
.signbar .btn-secondary:hover { background: #24406b; }

/* The editor, opened beside whatever was clicked. */
.editpop {
  position: fixed; z-index: 40; width: min(340px, calc(100vw - 16px));
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(20, 33, 61, .22); overflow: hidden;
}
.editpop.sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: 100%;
  border-radius: 12px 12px 0 0; max-height: 80vh; overflow-y: auto;
}
.editpop-veil {
  position: fixed; inset: 0; z-index: 35; background: rgba(20, 33, 61, .35);
}
.editpop-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-bottom: 1px solid var(--line);
  background: #f7f9fc; font-weight: 700; font-size: .92rem;
}
.editpop-head span { flex: 1; }
.editpop-x {
  border: 0; background: transparent; cursor: pointer; font-size: .95rem;
  color: var(--muted); padding: .1rem .3rem; line-height: 1;
}
.editpop-body { padding: .75rem; }
.editpop-body label:first-child { margin-top: 0; }
.editpop-body input[type=text], .editpop-body input[type=date],
.editpop-body textarea { margin-top: 0; }
.editpop-foot {
  display: flex; justify-content: flex-end; gap: .5rem;
  padding: .6rem .75rem; border-top: 1px solid var(--line); background: #f7f9fc;
}
.editpop-foot .btn { padding: .4rem 1rem; font-size: .92rem; }
.editpop .sigpad-wrap canvas#sigpad { height: 150px; }

/* A spot on the document that this signer fills in. */
.pv-edit[data-for] { cursor: pointer; }
.pv-edit[data-for]:hover { box-shadow: 0 0 0 2px rgba(23, 93, 220, .35); }
.doc .fillme.clickable { cursor: pointer; }
.doc .fillme.clickable:hover { box-shadow: 0 0 0 2px rgba(23, 93, 220, .3); }
.pulse { animation: pulse 1.1s ease-out 1; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 93, 220, 0); }
  30% { box-shadow: 0 0 0 4px rgba(23, 93, 220, .45); }
}

/* The signature, shown where it will land and in the card at the bottom. */
.sigcard-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.sigcard-preview {
  width: 240px; height: 84px; border: 1.5px dashed var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.sigcard-preview img { max-width: 92%; max-height: 76px; object-fit: contain; }

/* The field that names the partner company, called out in the editor. */
.ph-partyname { border-width: 2.5px; }
