/* ── /app2 preview — sidebar shell (emerald → charcoal) ─────────────────── */
body.app2 { padding-left: 252px; }

/* Hide the old top bar + landing top nav in the preview */
body.app2 #topbar { display: none !important; }
body.app2 #landingNav { display: none !important; }

/* Left navigation sidebar */
#app2Sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 252px;
  z-index: 1900000005;
  background: linear-gradient(180deg, #0a5c4a 0%, #0e3f3a 34%, #13303c 62%, #131c2b 100%);
  color: #e7edf3;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 6px 0 26px -14px rgba(0,0,0,.55);
}
#app2Sidebar .app2-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 6px; }
#app2Sidebar .app2-scroll::-webkit-scrollbar { width: 6px; }
#app2Sidebar .app2-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }

/* Brand at the very top */
#app2Sidebar .app2-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  flex: 0 0 auto;
}
#app2Sidebar .app2-brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg,#34d399,#059669);
  color: #fff; font-size: 12px; font-weight: 900; flex: 0 0 auto;
}
#app2Sidebar .app2-brand-name { font-size: 15.5px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
#app2Sidebar .app2-brand { text-decoration: none; cursor: pointer; }
#app2Sidebar .app2-brand:hover .app2-brand-name { opacity: .82; }
#app2Sidebar .app2-ez { color: #34d399; }
#app2Sidebar .app2-pdf { color: #fff; }

/* Section headings */
#app2Sidebar .app2-sec-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(231,237,243,.5); padding: 14px 18px 5px; font-family: inherit;
}
#app2Sidebar .app2-sec-title:hover { color: rgba(231,237,243,.85); }
#app2Sidebar .app2-sec-chev { font-size: 11px; color: rgba(231,243,237,.55); transition: transform .18s ease; }
.app2-sec.collapsed .app2-sec-chev { transform: rotate(-90deg); }
.app2-sec-body { display: grid; grid-template-rows: 1fr; overflow: hidden; transition: grid-template-rows .25s ease; }
.app2-sec.collapsed .app2-sec-body { grid-template-rows: 0fr; }
/* grid-template-rows: 0fr zeroes the item's CONTENT box, not its padding — a
   child with padding-bottom kept the track at 8px, leaving a sliver of the
   highlighted row peeking out from under a collapsed section header. Zero the
   padding on collapse as well, and match ANY child rather than only a div, so a
   section whose body is not wrapped in one cannot reintroduce this. */
.app2-sec-body > * { min-height: 0; overflow: hidden; }
/* Needs the #app2Sidebar prefix to outrank "#app2Sidebar .app2-tools" below,
   which sets padding-bottom: 8px — that was the exact 8px sliver. */
#app2Sidebar .app2-sec.collapsed .app2-sec-body > * { padding-top: 0; padding-bottom: 0; }

/* Nav items */
#app2Sidebar .app2-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 8px; }
#app2Sidebar .app2-nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  background: transparent; border: none; border-left: 3px solid transparent;
  color: #dbe6ef; font-size: 13.5px; font-weight: 600; font-family: inherit;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
#app2Sidebar .app2-nav-item .app2-ni-ic { font-size: 15px; line-height: 1; width: 20px; text-align: center; flex: 0 0 auto; }
#app2Sidebar .app2-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
#app2Sidebar .app2-nav-item.active { background: rgba(52,211,153,.14); border-left-color: #34d399; color: #fff; }
.app2-pro-tag { margin-left: auto; flex: 0 0 auto; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; padding: 1px 6px; border-radius: 999px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }

/* Tools section buttons */
#app2Sidebar .app2-tools { padding-bottom: 8px; }
#app2ToolsWrap.hidden { display: none !important; }

/* Recently Opened (collapsible, under OPEN) */
.app2-rec-wrap { padding: 0 8px; }
.app2-rec-wrap.collapsed .app2-rec-list { display: none; }
#app2Sidebar .app2-chev { margin-left: auto; font-size: 11px; color: rgba(231,237,243,.6); transition: transform .15s ease; }
.app2-rec-wrap.collapsed .app2-chev { transform: rotate(-90deg); }
.app2-rec-list { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 8px; }
.app2-rec-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: none; border-left: 3px solid transparent; color: #cbd8e2; font-size: 12.5px; font-weight: 500; font-family: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; overflow: hidden; }
.app2-rec-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.app2-rec-item.active { background: rgba(52,211,153,.16); border-left-color: #34d399; color: #fff; }
.app2-rec-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app2-rec-main { display: flex; flex-direction: column; min-width: 0; }
.app2-rec-when { font-size: 10px; font-weight: 400; color: rgba(231,243,237,.55); margin-top: 1px; line-height: 1.3; }
.ez-hdbhint { position: fixed; transform: translateX(-50%) translateY(-6px); z-index: 9997;
  display: flex; align-items: center; gap: 8px; background: #0f1b2e; color: #e7edf3;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px 10px 14px;
  font-size: 13px; box-shadow: 0 20px 44px -16px rgba(0,0,0,.6); max-width: min(86vw, 320px);
  opacity: 0; transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
.ez-hdbhint.in { opacity: 1; transform: translateX(-50%) translateY(0); }
.ez-hdbhint b { color: #fff; }
.ez-hdbhint-x { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #cdd7e2; cursor: pointer; font-size: 11px; line-height: 1; display: grid; place-items: center; }
.ez-hdbhint-x:hover { background: rgba(255,255,255,.16); color: #fff; }
#app2Sidebar .sync-note { padding: 0 14px 6px; margin: 0; font-size: 11px; font-weight: 600; color: rgba(231,243,237,.7); }
#app2Sidebar .sync-note .sync-ic { width: 15px; height: 15px; font-size: 9px; background: rgba(255,255,255,.12); color: #6ee7b7; }
#app2Sidebar .sync-note .sync-ic.local { background: rgba(255,255,255,.1); color: rgba(231,243,237,.65); }
.app2-rec-empty { font-size: 12px; color: rgba(231,237,243,.5); padding: 4px 13px 8px; line-height: 1.45; }

/* Workspace indicator (bottom) */
#app2Sidebar .app2-ws {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 11.5px; color: rgba(231,237,243,.62);
  flex: 0 0 auto;
}
#app2Sidebar .app2-ws b { color: #34d399; font-weight: 700; }

/* Footer with maple leaf */
#app2Sidebar .app2-foot {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 18px 15px;
  font-size: 12px; color: rgba(231,237,243,.55);
  flex: 0 0 auto;
}

/* ── Header bar (top of the content area) ─────────────────────────────── */
#app2Header {
  position: sticky; top: 0; z-index: 1900000004;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e7ecef;
  box-shadow: 0 4px 16px -12px rgba(15,23,42,.2);
}
#app2Header .app2-greet { font-size: 17px; font-weight: 800; color: #0f1b2e; }
#app2Header .app2-head-right { display: flex; align-items: center; gap: 10px; }
/* Back to Editing / Save / Close read as ONE matched family: tinted outline
   that inverts to a solid fill on hover, teal for the two document actions
   and red only for Close (kept distinct on purpose — it's the exit). All
   three sit dimmed (idle) and only reach full strength under the cursor, so
   the eye lands on the profile avatar first — deliberately the biggest,
   full-opacity element in the row. */
/* Passive autosave status. Deliberately quiet — no toast, no icon, no colour
   until something actually needs attention — but it never fades out, because a
   reassurance that disappears is exactly why users kept hunting for a Save
   button. Wording distinguishes device-only from account-synced saves. */
/* Left column: the document's name, with its save status directly beneath.
   min-width:0 so a long filename ellipsises instead of pushing the header's
   buttons off the right edge. */
#app2Header .app2-head-left {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; min-width: 0; flex: 0 1 auto;
}
#app2Header .app2-head-left .app2-greet { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app2Header .app2-savestate {
  /* Small and quiet: a subtitle to the filename, not a second headline. */
  font-size: 10.5px; font-weight: 600; color: #94a3b8; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; cursor: default;
  padding: 0; margin: 0; line-height: 1.25; transition: color .2s ease;
}
#app2Header .app2-savestate::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #10b981; flex: 0 0 auto;
}
#app2Header .app2-savestate.saving { color: #b45309; }
#app2Header .app2-savestate.saving::before { background: #f59e0b; }
#app2Header .app2-savestate.failed { color: #b91c1c; font-weight: 700; }
#app2Header .app2-savestate.failed::before { background: #dc2626; }
@media (max-width: 900px) { #app2Header .app2-savestate { display: none; } }
#app2Header .app2-profile {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid #cbd5e1; background: #eef2f7; color: #0f1b2e;
  font-size: 19px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .12s ease; position: relative;
  box-shadow: 0 4px 14px -6px rgba(15,23,42,.25);
}
#app2Header .app2-profile:hover { border-color: #0f766e; }

/* Profile dropdown */
#app2ProfileDD {
  position: fixed; top: 62px; right: 18px; width: 262px;
  background: #fff; border: 1px solid #e2e7ee; border-radius: 14px;
  box-shadow: 0 22px 54px -18px rgba(15,23,42,.4);
  padding: 8px; z-index: 1900000012;
}
#app2ProfileDD.hidden { display: none; }
#app2ProfileDD .app2-pd-user { padding: 10px 12px 11px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
#app2ProfileDD .app2-pd-name { font-size: 14px; font-weight: 800; color: #0f172a; }
#app2ProfileDD .app2-pd-email { font-size: 12px; color: #64748b; margin-top: 1px; word-break: break-all; }
#app2ProfileDD .app2-pd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  background: none; border: none; border-radius: 9px;
  padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: #0f172a; cursor: pointer; font-family: inherit;
}
#app2ProfileDD .app2-pd-item:hover { background: #f1f5f4; }
#app2ProfileDD .app2-pd-signout { color: #b91c1c; }
#app2ProfileDD .app2-pd-sep { height: 1px; background: #eef1f5; margin: 6px 4px; }

/* Pages panel sits back on the LEFT, immediately next to the nav sidebar */
/* #app2Header's z-index (1900000004) is far above .page-sidebar's (60), so wherever they
   overlap on screen the header always paints on top — and .page-sidebar started at a naive top:0,
   never accounting for the header's real height. That height is NOT constant (a long document name
   wraps the header from one line to two: measured 44px vs 63px in headless Chrome before this was
   written), so the offset is a CSS custom property kept in sync by a ResizeObserver (see app.js),
   not a hard-coded pixel value that would just move the bug to a different title length. Every
   descendant that positions itself top:0/bottom:0 relative to .page-sidebar (.sb-resize, the
   thumb/Contents lists) adjusts automatically since the box's own height shrinks with it. */
body.app2 .page-sidebar { top: var(--app2-hdr-h, 58px); left: 252px; right: auto; transform: translateX(-100%); border-right: 1px solid var(--line); border-left: none; }
body.app2.sidebar-open .page-sidebar { transform: none; }
body.app2.sidebar-open #viewer { margin-left: var(--sbw) !important; }
body.app2.sidebar-open #topbar { padding-left: 0; }

/* Small screens: collapse the sidebar for the preview */
@media (max-width: 900px) {
  body.app2 { padding-left: 0; }
  #app2Sidebar { display: none; }
  body.app2 .page-sidebar { left: 0; }
  body.app2.sidebar-open #viewer { margin-left: var(--sbw) !important; }
}

/* VSR guests get the clean signing room — no app sidebar / header chrome */
body.app2.vsr-live.vsr-guest #app2Sidebar,
body.app2.vsr-live.vsr-guest #app2Header,
body.app2.vsr-live.vsr-guest #app2ProfileDD { display: none !important; }
body.app2.vsr-live.vsr-guest { padding-left: 0; }

/* Contacts & Signees */
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eef2f1; border-radius: 10px; margin-bottom: 8px; }
.contact-main { flex: 1; min-width: 0; }
.contact-name { font-weight: 700; color: #0f172a; font-size: 13.5px; }
.contact-sub { font-size: 12px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-del { background: none; border: none; font-size: 16px; cursor: pointer; padding: 6px; border-radius: 8px; flex: 0 0 auto; }
.contact-del:hover { background: #fef2f2; }

/* Contacts typeahead dropdown */
.vsr-typeahead {
  position: fixed; z-index: 2000000020; background: #fff; border: 1px solid #e2e7ee;
  border-radius: 12px; box-shadow: 0 18px 44px -16px rgba(15,23,42,.4);
  padding: 5px; max-height: 230px; overflow-y: auto;
}
.vsr-typeahead-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-family: inherit;
}
.vsr-typeahead-item:hover { background: #f1f5f4; }
.vsr-typeahead-item b { display: block; font-size: 13px; color: #0f172a; }
.vsr-typeahead-item span { display: block; font-size: 11.5px; color: #64748b; }

/* New AI Document wizard */
.ai-step { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.ai-field label { display: block; margin-bottom: 4px; }
.ai-field select, .ai-field input, .ai-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 13.5px; font-family: inherit; box-sizing: border-box; background: #fff; color: #0f172a;
}
.ai-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-parties { max-height: 170px; overflow-y: auto; border: 1px solid #eef2f1; border-radius: 10px; padding: 6px; }
.ai-party { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.ai-party:hover { background: #f6faf9; }
.ai-party input { margin-top: 3px; }
.ai-party b { display: block; font-size: 13px; color: #0f172a; }
.ai-party i { display: block; font-size: 11.5px; color: #64748b; font-style: normal; }

/* Header document title (click-to-rename) */
#app2Header .app2-greet.doc-name { cursor: text; font-size: 15px; font-weight: 800; }
#app2Header .app2-greet.doc-name:hover { color: #0f766e; }
#app2Header .app2-greet.doc-name::after { content: " ✎"; font-size: 12px; color: #94a3b8; }
#app2Header .app2-greet.doc-resume { cursor: pointer; font-size: 15px; font-weight: 700; color: #0f766e; }
#app2Header .app2-greet.doc-resume:hover { color: #065f46; text-decoration: underline; }
#app2GreetInput {
  font: inherit; font-weight: 800; color: #0f1b2e; border: 1px solid #cbd5e1;
  border-radius: 8px; padding: 2px 6px; width: min(42vw, 320px); outline: none;
  background: #fff;
}
#app2GreetInput:focus { border-color: #0f766e; }

/* My Work section screens */
#app2SectionScreen { position: fixed; top: 0; left: 252px; right: 0; bottom: 0; z-index: 1900000006; background: #f4f7f6; overflow-y: auto; }
#app2SectionScreen.hidden { display: none; }
.a2sec-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: #fff; border-bottom: 1px solid #e7ecef; }
.a2sec-back { background: none; border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px 14px; font-weight: 700; cursor: pointer; color: #0f1b2e; font-family: inherit; transition: background .15s ease, border-color .15s ease; }
.a2sec-back:hover { background: #f1f5f4; border-color: #94a3b8; }
.a2sec-arch.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.a2sec-arch.on:hover { background: #0d6b63; }
.a2sec-info {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%;
  border: 1.5px solid #cbd5e1; background: #fff; color: #64748b;
  font-weight: 800; font-size: 12.5px; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.a2sec-info:hover { background: #10b981; border-color: #10b981; color: #fff; transform: scale(1.08); }
.a2sec-title { margin: 0; font-size: 20px; color: #0f1b2e; }
/* Live filter, on the title's own line. */
.a2sec-find { margin-left: auto; flex: 0 1 340px; min-width: 200px; display: flex; align-items: center; gap: 7px;
  background: #f4f7f8; border: 1px solid #e2e8ec; border-radius: 999px; padding: 6px 11px;
  transition: background .15s, border-color .15s, box-shadow .15s; }
.a2sec-find:focus-within { background: #fff; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.a2sec-find svg { flex: none; width: 15px; height: 15px; color: #94a3b8; }
.a2sec-find input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: 13.5px; color: #0f1b2e; }
.a2sec-find input::placeholder { color: #9aa8b5; }
.a2sec-findx { flex: none; width: 19px; height: 19px; border-radius: 50%; border: none; background: #d7e0e5; color: #46596b;
  font-size: 10px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .13s, color .13s; }
.a2sec-findx:hover { background: #b91c1c; color: #fff; }
.a2sec-findcount { flex: none; font-size: 12px; font-weight: 700; color: #64748b; white-space: nowrap; }
/* Yellow, and heavier, so a hit is findable at a glance in a long list. */
mark.a2hl { background: #fde68a; color: inherit; font-weight: 800; border-radius: 3px; padding: 0 1px; }
.a2-filtered-out { display: none !important; }
.a2sec-nomatch { padding: 30px 22px; text-align: center; color: #64748b; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .a2sec-head { flex-wrap: wrap; row-gap: 10px; }
  .a2sec-find { order: 5; flex: 1 1 100%; margin-left: 0; }
  .a2sec-findcount { order: 6; }
}
.a2sec-body { padding: 22px; max-width: 1000px; margin: 0 auto; }
.a2sec-body > .lcard-scroll, .a2sec-body > .hist-list { max-height: none; overflow: visible; }
.a2sec-loading { color: #64748b; font-size: 14px; padding: 30px; text-align: center; }
.a2sec-empty { color: #64748b; font-size: 14px; padding: 30px; text-align: center; }
.a2sec-actionbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.a2sec-addbtn { background: #10b981; color: #fff; border: none; border-radius: 10px; padding: 9px 16px; font-weight: 800; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: background .12s ease; }
.a2sec-addbtn:hover { background: #0d9a6d; }
/* enlarge rows inside the screen for readability */
.a2sec-body .recent, .a2sec-body .hist-item, .a2sec-body .esr-row, .a2sec-body .ad-row { padding: 14px 16px; font-size: 15px; }
.a2sec-body .rname { font-size: 15px; }
/* contacts rows */
.a2sec-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 4px 14px -10px rgba(15,23,42,.15); }
.a2row-main { flex: 1; min-width: 0; }
.a2row-title { font-size: 16px; font-weight: 800; color: #0f172a; }
.a2row-sub { font-size: 13.5px; color: #475569; margin-top: 4px; line-height: 1.5; }
.a2row-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.a2row-edit { background: #eef2ff; color: #3730a3; border: none; border-radius: 9px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.a2row-del { background: #fef2f2; color: #b91c1c; border: none; border-radius: 9px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) { #app2SectionScreen { left: 0; } }

/* PRO badge over the profile icon (body.is-pro is toggled from billing.status) */
body.app2.is-pro #app2Header .app2-profile::after {
  content: "PRO";
  position: absolute; top: -6px; right: -8px;
  background: #f59e0b; color: #fff; font-size: 8.5px; font-weight: 800;
  letter-spacing: .04em; padding: 1px 5px; border-radius: 999px;
  line-height: 1.3; box-shadow: 0 2px 6px -2px rgba(0,0,0,.4);
}

/* AI wizard custom dropdowns */
.ai-dd { position: relative; }
.ai-dd-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: #0f172a; cursor: pointer;
}
.ai-dd-btn:hover { border-color: #0f766e; }
.ai-dd-caret { font-size: 11px; color: #64748b; transition: transform .15s ease; }
.ai-dd-btn.open .ai-dd-caret { transform: rotate(180deg); }
.ai-dd-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 18px 44px -16px rgba(15,23,42,.35); padding: 6px;
  max-height: 240px; overflow-y: auto;
}
.ai-dd-list.hidden { display: none; }
.ai-dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; background: none; border: none; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font-family: inherit; font-size: 13px; color: #0f172a;
}
.ai-dd-item:hover { background: #f1f5f4; }
.ai-dd-q {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%;
  background: #e0eef7; color: #0e7490; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-dd-item:hover .ai-dd-q { background: #0e7490; color: #fff; }

/* LIVE badge while hosting a signing session */
#app2Header .app2-live {
  align-self: center; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(220,38,38,.55); animation: app2LivePulse 1.8s infinite;
}
#app2Header .app2-live.hidden { display: none; }
@keyframes app2LivePulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); }
  70% { box-shadow: 0 0 0 7px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* Divider between tool groups in the sidebar */
#app2Sidebar .app2-sep{height:1px;background:rgba(255,255,255,.14);margin:5px 12px;flex:0 0 auto}

/* Quick-action icons above Recent Activity. */
.app2-quick { display: flex; gap: 6px; padding: 10px 10px 8px; flex-wrap: wrap; }
.a2q { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(255,255,255,.05);
  color: #cfe6dd; cursor: pointer; padding: 0; transition: background .14s, color .14s, border-color .14s; }
.a2q:hover { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.45); color: #fff; }
.a2q:active { transform: translateY(1px); }
.a2q svg { width: 17px; height: 17px; }
.a2q.hidden { display: none; }

/* Third line of a Recent Activity row: where this document actually lives. */
.app2-rec-kind { font-size: 9.5px; font-weight: 400; letter-spacing: .01em;
  color: #e7f3ed; margin-top: 1px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The file-type glyph is gone — at 14px a red or blue rectangle could not be
   read reliably, and line 3 now says the same thing in words. */
.app2-rec-item .ezfi { display: none; }

/* New-page chooser under the quick bar. */
.a2q-menu { position: fixed; z-index: 1900000010; min-width: 232px; padding: 5px;
  background: #10221c; border: 1px solid rgba(255,255,255,.14); border-radius: 11px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 2px; }
.a2q-menu.hidden { display: none; }
.a2q-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-family: inherit; text-align: left; }
.a2q-menu button:hover { background: rgba(52,211,153,.16); }
.a2q-menu button b { font-size: 13px; font-weight: 700; color: #eaf6f1; }
.a2q-menu button span { font-size: 11px; font-weight: 400; color: rgba(231,243,237,.5); }

/* The two document-only actions are inverted — solid off-white with a dark
   green glyph — so they read as available actions against the five-icon row
   rather than blending into the three that are always there. */
.a2q.a2q-doc { background: #f4f8f6; border-color: #f4f8f6; color: #0f5132; }
.a2q.a2q-doc:hover { background: #fff; border-color: #34d399; color: #064e3b; }
