/**
 * Investor home composition styles.
 *
 * WHY: keep the RE first screen as one brand-led composition without pulling
 * mileage dashboard KPI-card patterns into the Investor entry point.
 */

.re-home {
  max-width: 720px;
  padding: 8px 0 32px;
}

.re-home-plate {
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}

/* Soft atmosphere behind the plate — not a second competing visual. */
.re-home-plate::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at 70% 20%, color-mix(in srgb, var(--red) 22%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.re-home-plate > * { position: relative; z-index: 1; }

.re-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  line-height: 1.15;
}

.re-brand b { color: var(--red); }

.re-headline {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 8px;
  line-height: 1.05;
  color: var(--text);
}

.re-headline.is-pos { color: var(--money); }
.re-headline.is-neg { color: var(--warn-t); }
.re-headline.is-muted { color: var(--text3); }

.re-sub {
  color: var(--text3);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 22px;
  max-width: 36em;
}

.re-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.re-ctas .btn { min-height: 42px; }
.re-ctas .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.re-gate {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  color: var(--text3);
  font-size: 13px;
  line-height: 1.5;
}

.re-gate .btn { margin-top: 10px; }

.re-rail {
  margin-top: 22px;
}

.re-rail-label {
  color: var(--text4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.re-rail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin: 0 0 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass2);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}

.re-rail-row:hover {
  background: var(--hover);
  border-color: color-mix(in srgb, var(--red) 35%, var(--border));
}

.re-rail-row ion-icon {
  font-size: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.re-rail-row .chev {
  margin-left: auto;
  color: var(--text4);
  font-size: 16px;
}

.re-rail-empty {
  color: var(--text4);
  font-size: 13px;
  padding: 4px 0;
}

/* Motions — disabled when user prefers reduced motion */
@keyframes re-cta-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes re-rail-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes re-profit-settle {
  from { opacity: 0.35; letter-spacing: -0.4px; }
  to { opacity: 1; letter-spacing: -1.2px; }
}

@media (prefers-reduced-motion: no-preference) {
  .re-home.re-anim .re-ctas { animation: re-cta-in .45s ease both; }
  .re-home.re-anim .re-headline { animation: re-profit-settle .55s ease both; }
  .re-home.re-anim .re-rail-row {
    animation: re-rail-in .4s ease both;
  }
  .re-home.re-anim .re-rail-row:nth-child(2) { animation-delay: .06s; }
  .re-home.re-anim .re-rail-row:nth-child(3) { animation-delay: .12s; }
  .re-home.re-anim .re-rail-row:nth-child(4) { animation-delay: .18s; }
}

@media (max-width: 720px) {
  .re-home-plate { padding: 22px 18px; }
  .re-ctas { flex-direction: column; }
  .re-ctas .btn { width: 100%; }
  .re-brand { font-size: 20px; }
}

/*
 * Shell + public landing. These live here so investor-app.html and
 * investor-landing.html do not depend on mileage dashboard styles in app.html.
 * The landing must stay readable without any third-party script.
 */
.hidden { display: none !important; }
.muted-note { color: var(--text3); font-size: 13px; line-height: 1.5; }
.sec-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.field { display: block; margin-bottom: 13px; }
.field > span, .field label { display: block; color: var(--text3); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border-radius: 11px;
  background: var(--glass2); border: 1px solid var(--border); color: var(--text);
  font-size: 15px; font-family: var(--font); outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.table-wrap { overflow: auto; border-radius: var(--radius); }
/*
 * Documents list. The actions cell sticks to the right edge of this scroller
 * so Delete/Archive is on screen while the date columns scroll. Under 800px
 * each row becomes a card, because a sticky cell still sits beside columns
 * that do not fit a phone.
 */
.esign-doc-table table.t th,
.esign-doc-table table.t td { padding: 8px 8px; }
.esign-doc-table td.esign-row-actions {
  position: sticky;
  right: 0;
  z-index: 1;
  background: var(--bg);
  white-space: nowrap;
  box-shadow: -8px 0 8px color-mix(in srgb, var(--bg) 70%, transparent);
}
.esign-doc-table .esign-move { max-width: 110px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; color: var(--text3); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 13px 14px; border-bottom: 1px solid var(--divider); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.kpis { display: grid; gap: 16px; margin-bottom: 18px; }
.kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 18px 20px; }
.kpi .lab { color: var(--text3); font-size: 12px; font-weight: 600; }
.kpi .val { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.8px; margin-top: 8px; }
.row-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--divider); }
.login-err, .inv-msg[data-state="error"], .inv-msg[data-state="invalid"] { color: var(--warn-t); }
.inv-msg[data-state="success"], .inv-msg[data-state="duplicate"] { color: var(--text); }

.inv-app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.inv-side { display: flex; flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--divider); background: var(--glass); }
.inv-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; padding: 6px 8px 16px; }
.inv-logo b { color: var(--red); }
.inv-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.inv-sec { color: var(--text4); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; cursor: pointer; color: var(--text2); font-size: 14px; font-weight: 500; border: none; background: transparent; width: 100%; text-align: left; font-family: var(--font); }
.nav-item ion-icon { font-size: 19px; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--glass2); color: var(--text); font-weight: 600; }
.nav-item.active ion-icon { color: var(--red); }
.inv-main { display: flex; flex-direction: column; min-width: 0; }
.inv-top { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 26px; border-bottom: 1px solid var(--divider); }
.inv-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.inv-menu ion-icon { font-size: 26px; }
.inv-backdrop { display: none; }
.inv-top h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.inv-view { flex: 1; overflow-y: auto; overflow-x: clip; padding: 26px; min-width: 0; }
.inv-view .maxw { max-width: 1120px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 420px; padding: 28px 26px; }
.login-card h1 { font-size: 22px; margin: 0 0 8px; }
.login-card .btn { width: 100%; }

.inv-landing { max-width: 720px; margin: 0 auto; padding: 48px 20px 32px; }
.inv-landing h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -1px; line-height: 1.05; margin: 0 0 12px; }
.inv-landing .lede { color: var(--text2); font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
.inv-landing form { margin-top: 22px; }
.inv-footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--divider); color: var(--text3); font-size: 13px; line-height: 1.5; }
.inv-todo { border: 1px dashed var(--warn-bd); background: var(--warn-bg); color: var(--warn-t); padding: 12px 14px; border-radius: 12px; }

/*
 * PDF envelope editor. The overlay sits on the rendered page so a field's
 * top-left percentages match the box the server stores. touch-action: none
 * keeps a finger drag from scrolling away mid-stroke; the gap between pages
 * is how a phone moves down the document.
 */
.esign-editor { margin-top: 8px; }
.esign-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.esign-bar strong { font-size: 16px; }
.esign-status-pill { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text3); }
.esign-palette { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 0; z-index: 3; padding: 8px 0; background: var(--bg); }
.esign-palette .btn { min-height: 44px; }
.esign-palette .btn.is-on { outline: 2px solid var(--red); }
.esign-radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.esign-pages { display: flex; flex-direction: column; gap: 16px; margin: 14px 0; min-width: 0; max-width: 100%; }
.esign-page { width: 100%; min-width: 0; max-width: 100%; }
.esign-page-label { font-size: 12px; font-weight: 700; color: var(--text3); margin-bottom: 6px; }
.esign-stage { position: relative; width: 100%; max-width: 100%; min-width: 0; background: #fff; }
.esign-canvas { display: block; width: 100%; max-width: 100%; min-width: 0; height: auto; }
.esign-overlay { position: absolute; inset: 0; touch-action: none; z-index: 3; }
/* The layer sits above the field overlay so a text box can be typed in, but
   the layer itself does not take hits. Empty page clicks fall through to
   the overlay, which is how a new field is dragged on. */
.esign-text-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.esign-text-layer.is-on { pointer-events: none; z-index: 4; }
.esign-run {
  position: absolute; box-sizing: border-box; margin: 0; padding: 0 1px;
  border: 1px dashed #1d6fbf; border-radius: 2px;
  background: rgba(255, 255, 255, 0.78); color: #111;
  line-height: 1.1; resize: none; overflow: hidden;
  font-family: Helvetica, Arial, sans-serif;
  pointer-events: auto;
}
.esign-field, .esign-ghost, .esign-hit {
  position: absolute; box-sizing: border-box; border: 1.5px solid var(--red);
  background: color-mix(in srgb, var(--red) 16%, transparent);
  color: #1a1a1a; touch-action: none;
  user-select: none; -webkit-user-select: none; -moz-user-select: none;
  -webkit-touch-callout: none;
}
.esign-field.is-selected { outline: 2px solid #111; outline-offset: 1px; z-index: 2; }
.esign-field-name {
  display: block; font-size: 11px; font-weight: 700; padding: 2px 4px; pointer-events: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.esign-field.is-selected .esign-field-name { padding-right: 16px; }
.esign-mini, .esign-req { font-size: 12px; }
.esign-mini { position: absolute; right: 2px; bottom: 2px; min-height: 28px; min-width: 44px; border: 0; border-radius: 8px; background: var(--glass2); color: var(--text); }
.esign-req { display: flex; align-items: center; gap: 4px; color: var(--text); background: var(--glass2); border-radius: 8px; padding: 2px 6px; }
.esign-initials {
  display: inline-block; margin-right: 4px; padding: 0 3px; border-radius: 4px;
  background: #fff; color: #111; font-size: 9px; font-weight: 800; line-height: 1.4;
  pointer-events: none;
}
/* Inside the field. A control above the box (negative top) is clipped by
   .inv-view, which scrolls vertically and therefore clips horizontally too. */
.esign-x {
  position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; touch-action: none;
  z-index: 3; padding: 0;
}
.esign-resize {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--red);
  touch-action: none; z-index: 2;
}
/* Only the selected field shows the delete and resize controls. On a phone
   the default boxes are 16–23px, so a 28px control sticks out of the box. */
.esign-field:not(.is-selected) .esign-x,
.esign-field:not(.is-selected) .esign-resize { display: none; }
.esign-resize-nw { left: 0; top: 0; cursor: nwse-resize; }
.esign-resize-ne { right: 0; top: 0; cursor: nesw-resize; }
.esign-resize-sw { left: 0; bottom: 0; cursor: nesw-resize; }
.esign-resize-se { right: 0; bottom: 0; cursor: nwse-resize; }
.esign-resize-n { left: 50%; top: 0; margin-left: -4px; cursor: ns-resize; }
.esign-resize-s { left: 50%; bottom: 0; margin-left: -4px; cursor: ns-resize; }
.esign-resize-e { right: 0; top: 50%; margin-top: -4px; cursor: ew-resize; }
.esign-resize-w { left: 0; top: 50%; margin-top: -4px; cursor: ew-resize; }
.esign-switcher, .esign-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.esign-group { min-width: 160px; }
.esign-group ul { list-style: none; margin: 4px 0 0; padding: 0; }
.esign-group-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.esign-doc-link { color: var(--text); font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.esign-folders, .esign-recipient-add, .esign-rich-bar, .esign-dialog-actions, .esign-selection { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0 12px; }
.esign-selection {
  position: fixed; z-index: 8; background: var(--bg);
  border: 2px solid var(--red); border-radius: 12px; padding: 10px 12px;
  max-width: calc(100vw - 16px); box-sizing: border-box;
}
.esign-selection-title { font-weight: 800; font-size: 13px; align-self: center; }
.esign-folder-form { flex: 1 1 220px; }
.esign-recipient { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.esign-swatch { width: 14px; height: 14px; border-radius: 999px; flex: 0 0 auto; margin-top: 4px; }
/* Palette slots. A style attribute would be blocked by style-src 'self'. */
.esign-swatch-0 { background: #c43131; }
.esign-swatch-1 { background: #1d6fbf; }
.esign-swatch-2 { background: #1f8a4c; }
.esign-swatch-3 { background: #b86e00; }
.esign-swatch-4 { background: #6b3fa0; }
.esign-swatch-5 { background: #0e7490; }
.esign-swatch-6 { background: #9d174d; }
.esign-swatch-7 { background: #3f6212; }
.esign-swatch-none { background: #888; }
.esign-demo-stage { height: 420px; background: #fff; }
.esign-demo-a { left: 10%; top: 18%; width: 32%; height: 8%; border-color: #c43131; }
.esign-demo-b { left: 10%; top: 32%; width: 36%; height: 6%; border-color: #1d6fbf; }
.esign-rich { margin: 8px 0 14px; }
.esign-rich-box {
  min-height: 160px; padding: 12px 14px; border-radius: 12px; background: #fff; color: #1a1a1a;
  border: 1px solid var(--border); line-height: 1.45;
}
.esign-rich-box h1 { font-size: 1.4rem; margin: 0 0 8px; }
.esign-rich-bar .btn { min-height: 44px; }
.esign-draft-surface { min-height: 320px; }
.esign-draft-surface h2 { font-size: 1.25rem; margin: 0.6em 0 0.3em; }
.esign-draft-surface h3 { font-size: 1.1rem; margin: 0.6em 0 0.3em; }
.esign-draft-surface p { margin: 0.35em 0; }
/* The toolbar must not rely on a style attribute. style-src is 'self', so
   bold, italic, and underline are these tags. */
.esign-draft-surface strong,
.esign-draft-surface b { font-weight: 700; }
.esign-draft-surface em,
.esign-draft-surface i { font-style: italic; }
.esign-draft-surface u { text-decoration: underline; }
.esign-draft-surface:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.esign-draft-surface[contenteditable="false"] { background: var(--glass2); }
.esign-save-state { font-size: 13px; font-weight: 700; color: var(--text3); }
.esign-save-state[data-state="error"] { color: var(--red); }
/* The file input stays in the tab order through its label. A style attribute
   would be blocked by style-src 'self', so the clip lives in this file. */
.esign-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.esign-cert, .esign-versions { margin: 8px 0 14px; }
.esign-hash { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.esign-dialog { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.esign-dialog-card { width: min(460px, 100%); background: var(--bg); color: var(--text); border-radius: 16px; padding: 16px; border: 1px solid var(--border); }
.esign-field-value { display: block; font-size: 11px; padding: 0 4px 2px; pointer-events: none; }
.esign-move { max-width: 140px; min-height: 36px; }
.esign-assign-new { margin: 0; min-width: 180px; }
.esign-shot { margin: 0 0 28px; }
.esign-shot h2 { margin: 0 0 8px; }
.esign-actions, .esign-send, .esign-confirm { margin-top: 14px; }
.esign-send { padding: 18px; }
.esign-confirm { padding: 12px 0; }
.esign-audit { list-style: none; padding: 0; margin: 0 0 14px; }
.esign-audit li { padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.esign-audit span { font-weight: 700; margin-right: 8px; }
@media (max-width: 720px) {
  .esign-radio-row { grid-template-columns: 1fr; }
  .esign-palette .btn { flex: 1 1 40%; }
}

/*
 * Drive upload sits under the file input. On a phone the account row stacks
 * so Disconnect is not clipped off the right edge. A Google return
 * (?google=connected / ?google=error) is written into .gdrive-msg on this
 * control only, after the query string is removed.
 */
.gdrive-slot { margin: 0 0 12px; max-width: 100%; }
.gdrive-open, .gdrive-add, .gdrive-use, .gdrive-disconnect, .gdrive-confirm { min-height: 44px; }
.gdrive-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.gdrive-account { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gdrive-account.is-on .gdrive-use { outline: 2px solid var(--red); }
.gdrive-use { flex: 1 1 180px; text-align: left; overflow-wrap: anywhere; }
.gdrive-confirm-copy { margin: 0; flex: 1 1 100%; }
.gdrive-msg { margin-top: 6px; min-height: 0; }
.gdrive-msg[data-state="error"] { color: var(--warn-t); }
.inv-toast {
  position: fixed;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
}
.inv-toast[data-state="error"] { color: var(--warn-t); }
@media (max-width: 720px) {
  .gdrive-open, .gdrive-add, .gdrive-use, .gdrive-disconnect, .gdrive-confirm { width: 100%; }
  .gdrive-account { flex-direction: column; align-items: stretch; }
}

@media (max-width: 800px) {
  .inv-app { grid-template-columns: 1fr; }
  .inv-menu { display: inline-flex; }
  .inv-top { padding: 0 12px; }
  .inv-view { padding: 12px; }
  .esign-pages { gap: 10px; }
  /*
   * The nav used to stack above the page, so after sign-in the logo and
   * every item looked like a second window. It is a drawer now: off-screen
   * until the menu button opens it.
   */
  .inv-side {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    border-right: 1px solid var(--divider);
    border-bottom: none;
    overflow-y: auto;
  }
  .inv-app.is-nav-open .inv-side { transform: none; }
  .inv-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.45);
  }
  .inv-app.is-nav-open .inv-backdrop { display: block; }
  .kpis.k3, .kpis.k4 { grid-template-columns: 1fr; }
  .esign-doc-table { overflow: visible; }
  .esign-doc-table table.t { min-width: 0; }
  .esign-doc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .esign-doc-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
  }
  .esign-doc-table td {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    padding: 4px 0;
    border-bottom: 0;
    white-space: normal;
  }
  .esign-doc-table td::before {
    content: attr(data-label);
    color: var(--text3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }
  .esign-doc-table td.esign-row-actions {
    position: static;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .esign-doc-table td.esign-row-actions::before { content: none; }
}

/* Layout that used to be style attributes. style-src is 'self' only. */
.re-mark { color: var(--red); }
.inv-panel { padding: 18px; }
.inv-panel-mt { margin-top: 14px; }
.inv-panel-mb { margin-bottom: 14px; }
.inv-panel-my { margin: 14px 0; }
.inv-actions { position: static; }
.inv-kpis-mb { margin-bottom: 14px; }
.inv-kpis-mt { margin-top: 14px; }
.inv-note-mt { margin-top: 8px; }
.inv-note-mt10 { margin-top: 10px; }
.inv-note-mb { margin-bottom: 12px; }
.inv-note-pre { margin-top: 14px; white-space: pre-wrap; }
.inv-check { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.re-basis-total { font-weight: 700; }
.re-basis-parts { color: var(--text3); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.re-basis-panel { margin: 0 0 14px; }
td .inv-check { margin: 4px 0; }
.inv-row-btns { display: flex; gap: 6px; }
.inv-grow { flex: 1; }
.inv-amt { margin-left: 16px; font-weight: 700; }
.inv-photo { padding: 12px; margin-bottom: 8px; }
.inv-owner-row { flex-wrap: wrap; align-items: flex-end; }
.inv-owner-grow { flex: 1 1 160px; margin-bottom: 0; }
.inv-owner-gp { flex: 0 1 110px; margin-bottom: 0; }
.inv-owner-share { flex: 0 1 120px; margin-bottom: 0; }
.inv-stack-mt { margin-top: 14px; }
.re-thread-msg { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.re-thread-who { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.re-thread-photo { display: inline-block; max-width: 160px; max-height: 120px; margin: 6px 6px 0 0; border-radius: 8px; }

/*
 * Signer and verify pages. These rules used to be <style> blocks. A strict
 * style-src drops those, so they live in this file with the rest of Investor.
 */
@font-face {
  font-family: CyberDeductScript;
  src: url('/fonts/GreatVibes-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.sign-wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 120px; }
.sign-card { padding: 20px 16px; }
.sign-wrap pre { white-space: pre-wrap; background: var(--glass2); padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.sign-wrap .err, .verify-wrap .err { color: var(--warn-t); margin: 12px 0; }
.sign-wrap #go { display: block; width: 100%; margin-top: 12px; min-height: 48px; }
.sign-wrap .esign-hit.is-done { background: color-mix(in srgb, #1f8a4c 28%, transparent); border-color: #1f8a4c; }
.sign-wrap .esign-hit.is-readonly { border-style: dashed; cursor: default; }
.sign-wrap .esign-initials { position: static; margin-left: 4px; pointer-events: none; font: 800 9px/1.4 var(--font); }
.esign-script { font-family: CyberDeductScript, cursive; font-style: normal; font-weight: 400; font-size: 28px; line-height: 1; color: #0b1b4a; }
.esign-text-input {
  user-select: text; -webkit-user-select: text; font: 600 14px/1.3 var(--font);
  background: #fff; resize: none; touch-action: manipulation;
}
.esign-dock {
  position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px 16px;
  background: var(--bg); border-top: 1px solid var(--border);
}
.esign-dock .btn { width: 100%; min-height: 48px; margin-top: 8px; }
.esign-progress { font-weight: 700; margin: 0 0 8px; }
.esign-consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.esign-consent input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.esign-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 5; }
.esign-sheet { width: min(560px, 100%); background: var(--bg); color: var(--text); border-radius: 16px 16px 0 0; padding: 16px; max-height: 92vh; overflow: auto; }
.esign-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.esign-tabs button { flex: 1; min-height: 44px; }
.esign-draw { width: 100%; height: 180px; touch-action: none; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.esign-preview { min-height: 72px; margin: 8px 0; padding: 8px 4px; font-family: CyberDeductScript, cursive; font-style: normal; font-weight: 400; font-size: 32px; color: #0b1b4a; }
.sign-actions { display: flex; gap: 8px; margin-top: 10px; }
.sign-actions .btn { flex: 1; min-height: 44px; }
.esign-stage-fallback { height: 640px; background: #fff; }
.sign-brand, .verify-brand { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.verify-wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px 48px; }
.verify-card { padding: 22px 18px; }
.verify-card h1 { font-size: 22px; margin: 0 0 8px; }
/* The shared shell still contains the investor name in its HTML. On the
   tenant host the head script sets this class before the body is shown,
   then removes it after the title and logo are replaced. */
html.tenant-pending body { visibility: hidden; }
