/* חתימה ברגע — שפת עיצוב: כחול-נייבי, זהב מאופק,
   כרטיסים לבנים על רקע אפרפר, כפתורים בשלושה גוונים, נגישות ת"י 5568. */
:root {
  --navy: #1f3a5f; --navy-dark: #16293f;
  --accent: #a07f36; --accent-dark: #8a6b2e; --accent-lite: #d9b45c;
  --bg: #f2f4f7; --card: #fff; --line: #d5dce4; --text: #1d2733; --muted: #5b6a80;
  --ok: #157042; --err: #b3373d; --warn-bg: #fdf3e3; --warn-line: #e2c186;
  --focus: #8a6b2e;
  --topbar-h: 56px;   /* גובה הסרגל העליון — כל אלמנט דביק מתחתיו נסמך עליו */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", "Arial Hebrew", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--navy); text-decoration: underline; }
.topbar nav a, .btn, .gate, .skip-link, .nav-plain, .stepper a, .sitefoot .sep, .card-link { text-decoration: none; }
:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.topbar :focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-lite); outline-offset: 2px; }
.skip-link { position: absolute; inset-inline-end: 12px; top: 0; z-index: 500; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px; font-weight: 600; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* מוסתר ללא גלילה אופקית מדומה */
.skip-link:focus { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; direction: ltr; unicode-bidi: isolate; word-break: break-all; }

/* ---------- סרגל עליון ---------- */
header.topbar { background: var(--navy); color: #fff; padding: 0 22px; display: flex; align-items: center; gap: 18px; min-height: 56px; position: sticky; top: 0; z-index: 120; flex-wrap: wrap; }   /* לא נעלם בגלילה */
.topbar .brand { font-size: 19px; font-weight: 700; letter-spacing: .3px; color: #fff; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.topbar .brand span { color: var(--accent-lite); }
.topbar .brand svg { width: 26px; height: 26px; }
.topbar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar nav a { color: #dce6f2; padding: 6px 12px; border-radius: 6px; font-size: 14px; }
.topbar nav a:hover, .topbar nav a.active { background: var(--navy-dark); color: #fff; }
.topbar .end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.topbar .co { color: #c8d4e2; font-size: 13px; text-decoration: none; }
.topbar .co b { color: #fff; }
.topbar .logout { color: #c8d4e2; font-size: 13px; }
.navtoggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 5px 10px; font: inherit; cursor: pointer; }
.topbar .topnav-desktop { display: flex; gap: 4px; flex: 1; }
@media (max-width: 900px) {
  .topbar .topnav-desktop, .topbar .co { display: none; }
  .topbar { gap: 10px; }
}
/* ---------- מגירת ניווט (כל הניווט המשני) ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(22,41,63,.45); z-index: 349; }
.backdrop[hidden] { display: none; }
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(320px, 92vw); background: var(--navy); color: #fff; z-index: 350; overflow-y: auto; padding: 14px 16px 24px; border-inline-end: 2px solid var(--accent-lite); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 30px rgba(16,30,54,.4); }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 4px; }
.drawer .who { flex: 1; color: #c8d4e2; font-size: 13px; line-height: 1.4; }
.drawer .who a { color: #fff; font-weight: 600; }
.drawer .who span { color: #fff; font-weight: 600; }
.drawer h3 { font-size: 12px; color: #c8d4e2; margin: 12px 0 2px; font-weight: 600; letter-spacing: .3px; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a, .drawer .linkbtn { color: #dce6f2; padding: 8px 12px; border-radius: 6px; font-size: 14px; text-decoration: none; background: none; border: 0; font-family: inherit; text-align: start; cursor: pointer; width: 100%; display: block; }
.drawer nav a:hover, .drawer nav a.active, .drawer .linkbtn:hover { background: var(--navy-dark); color: #fff; }
.drawer nav a.gold-text { color: var(--accent-lite); font-weight: 600; }
.drawer form.inline { display: block; }
.drawer a:focus-visible, .drawer button:focus-visible { outline: 3px solid var(--accent-lite); outline-offset: 1px; }
body.drawer-open { overflow: hidden; }
body.a11y-contrast .drawer { border-inline-end: 3px solid #fff; }
/* ---------- שליחה מהירה ---------- */
.filedrop.lg { min-height: 120px; justify-content: center; }
.quick .rcpts, .quick .placement { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin-top: 12px; }
.quick .rcpts legend, .quick .placement legend { font-weight: 600; color: var(--navy); padding: 0 6px; }
#rcpts { list-style: none; padding: 0; margin: 0 0 8px; }
.rcpt-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto auto minmax(3.5rem, auto); gap: 8px; margin-bottom: 6px; align-items: center; }
.rcpt-row .kind, .rcpt-row [data-remove-row], .rcpt-row [data-remove-party] { justify-self: start; }
.rcpt-row > .corp-fields { grid-column: 1 / -1; }
@media (max-width: 760px) { .rcpt-row { grid-template-columns: 1fr; } }
.quick .formactions { gap: 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 10px; }
.checklist li { padding: 3px 0; }
.checklist .bad { color: var(--err); font-weight: 600; }
.checklist .good { color: var(--ok); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.chips a.badge { text-decoration: none; padding: 4px 12px; font-size: 13px; }
.chips a.badge.active { background: var(--navy); color: #fff; border-color: var(--navy); }
main { max-width: 1180px; margin: 24px auto 60px; padding: 0 18px; }
main.narrow { max-width: 720px; }
main.wide { max-width: 1440px; }

/* ---------- הודעות ---------- */
.flash { padding-block: 10px; padding-inline: 16px 44px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; position: fixed; top: calc(var(--topbar-h) + 12px); inset-inline: 0; margin-inline: auto; width: fit-content; z-index: 130; max-width: min(680px, 92vw); box-shadow: 0 6px 20px rgba(16,30,54,.25); }
.flash + .flash { top: calc(var(--topbar-h) + 68px); }
.flash .x { position: absolute; top: 4px; inset-inline-end: 8px; background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; padding: 4px 6px; border-radius: 5px; font-family: inherit; }
.flash.ok { background: #e5f3ec; border: 1px solid #bcdccb; color: var(--ok); }
.flash.err { background: #fbe9ea; border: 1px solid #ecc4c6; color: var(--err); }
.flash.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #8a6118; }
.warnbox { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 10px 16px; margin-bottom: 14px; font-size: 14px; color: #7a5614; }
.warnbox ul { margin: 6px 0 0; padding-inline-start: 18px; }
.infobox { background: #eaf1fa; border: 1px solid #c3d4ea; border-radius: 8px; padding: 10px 16px; margin-bottom: 14px; font-size: 14px; color: #21436b; }
.errbox { background: #fbe9ea; border: 1px solid #ecc4c6; border-radius: 8px; padding: 10px 16px; margin-bottom: 14px; font-size: 14px; color: var(--err); }

/* ---------- כרטיסים וכותרות ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,30,54,.05); }
.card.center { text-align: center; }
.card h2 { margin: 0 0 12px; font-size: 17px; color: var(--navy); }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.pagehead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead h1 { margin: 0; font-size: 22px; color: var(--navy); }
.pagehead .spacer, .spacer { flex: 1; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.section { margin-top: 22px; }
.section > h2 { font-size: 16px; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section > h2 .sec-actions { margin-inline-start: auto; display: flex; gap: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.cards > .card { display: flex; flex-direction: column; margin-bottom: 0; }
.card-body { flex: 1; }
.small { font-size: 13px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 28px; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis .card { margin: 0; padding: 14px 16px; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--navy); color: #fff; border: 1px solid var(--navy); padding: 0 18px; min-height: 38px; border-radius: 7px; font-size: 14px; line-height: 1.25; font-family: inherit; font-weight: 600; text-align: center; cursor: pointer; vertical-align: middle; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn.sec { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.sec:hover { background: #eef2f7; color: var(--navy); }
.btn.gold { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.gold:hover { background: #745a26; border-color: #745a26; }
.btn.danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn.danger:hover { background: #fbe9ea; color: var(--err); }
.btn.danger.solid { background: var(--err); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn.sm { min-height: 28px; padding: 0 11px; font-size: 13px; font-weight: 500; }
.btn.xs { min-height: 24px; padding: 0 8px; font-size: 12px; font-weight: 500; gap: 4px; }
.copyrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.signlink { margin-top: 6px; flex-wrap: nowrap; }
.signlink input { flex: 1; min-width: 0; max-width: 360px; font-size: 12px; padding: 4px 8px; }
.btn.lg { min-height: 48px; padding: 0 30px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* ---------- טבלאות ---------- */
.tscroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { background: #e8edf2; color: var(--navy); text-align: start; padding: 7px 10px; border: 1px solid var(--line); font-size: 13px; }
table.grid td { padding: 7px 10px; border: 1px solid var(--line); vertical-align: middle; }
table.grid tr:nth-child(even) td { background: #fafbfc; }
.badge { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 12px; white-space: nowrap; border: 1px solid var(--line); background: #eef1f5; color: var(--muted); }
.badge.ok, .badge.completed { background: #e5f3ec; border-color: #bcdccb; color: var(--ok); }
.badge.warn, .badge.sent, .badge.opened, .badge.filling, .badge.awaiting_next, .badge.awaiting_auth, .badge.delivered, .badge.scheduled { background: var(--warn-bg); border-color: var(--warn-line); color: #8a6118; }
.badge.err, .badge.declined, .badge.cancelled, .badge.expired, .badge.delivery_failed, .badge.returned { background: #fbe9ea; border-color: #ecc4c6; color: var(--err); }
.badge.draft { background: #eef1f5; }
.badge.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge.demo { background: #ece9f7; border-color: #c8c0e8; color: #5b4a9e; }

/* ---------- טפסים ---------- */
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px 16px; }
.formgrid.wide { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.formgrid .full { grid-column: 1 / -1; }
label.f { display: block; font-size: 13px; color: var(--muted); }
label.f b { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; font-size: 13px; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text); }
input[type=email], input[type=tel], input[type=url] { direction: ltr; text-align: start; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.formactions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 60; padding-block: 10px; background: var(--card); }   /* לחצני המשימה גלויים בלי גלילה */
.formactions.pinned { border-top: 1px solid var(--line); box-shadow: 0 -5px 14px rgba(22,41,63,.07); }
/* באשף יש סרגל אחד בתחתית — סרגל האשף. סרגל הכרטיס אינו נדבק לאותו קו. */
main:has(> .wiznav) .formactions, .formactions.bar-static { position: static; }
main:has(> .wiznav) .formactions.pinned { border-top: 0; box-shadow: none; }
.checkline { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 3px 0; }
.checkline input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
details.adder { margin-top: 10px; }
details.adder summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 14px; padding: 6px 0; list-style: none; }
details.adder summary::before { content: "+ "; color: var(--accent-dark); font-weight: 700; }
details.adder .inner { border: 1px dashed var(--line); border-radius: 8px; padding: 14px; margin-top: 6px; background: #fafbfd; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.login-wrap { max-width: 440px; margin: 60px auto; }
.brandbig { text-align: center; font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.brandbig span { color: var(--accent); }
.sub { text-align: center; color: var(--muted); margin-bottom: 20px; font-size: 14px; }

/* ---------- עמוד הבית ---------- */
.hero { text-align: center; padding: 34px 18px 26px; }
.hero h1 { margin: 14px 0 10px; font-size: 27px; color: var(--navy); }
.hero .lead { max-width: 760px; margin: 0 auto 10px; font-size: 17px; line-height: 1.7; }
.gates { display: grid; gap: 18px; margin: 26px 0 22px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.gate { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 18px; color: var(--text); box-shadow: 0 1px 3px rgba(16,30,54,.06); transition: box-shadow .18s, transform .18s, border-color .18s; border-top: 3px solid var(--navy); }
.gate:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,30,54,.13); border-color: var(--accent); }
.gate-ico { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.gate h2 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.gate p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.gate-cta { font-weight: 700; color: var(--navy); }
.soon-grid { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.soon-grid > div { border: 1px dashed var(--line); border-radius: 8px; padding: 11px 13px; background: #fafbfd; }
.soon-grid b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 3px; }
.soon-grid span { font-size: 12.5px; color: var(--muted); }

/* ---------- כותרת תחתונה ---------- */
.sitefoot { border-top: 1px solid var(--line); background: #eef1f5; color: var(--muted); font-size: 13px; padding: 12px 18px; margin-top: 20px; }
.sitefoot .inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.sitefoot a { color: var(--navy); }
.sitefoot .sep { color: var(--line); }
.sitefoot .note { flex-basis: 100%; line-height: 1.5; }

/* ---------- אשף המעטפה ---------- */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; counter-reset: st; position: sticky; top: var(--topbar-h); z-index: 90; background: var(--bg); padding-top: 10px; }   /* סרגל השלבים נשאר גלוי */
.stepper a, .stepper span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); }
.stepper a::before, .stepper span::before { counter-increment: st; content: counter(st); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e8edf2; color: var(--navy); font-size: 11px; font-weight: 700; }
.stepper .cur { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.stepper .cur::before { background: var(--navy); color: #fff; }
.stepper .done { color: var(--ok); }
.stepper .done::before { background: #e5f3ec; color: var(--ok); content: "✓"; }
.wiznav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 95; padding: 12px; background: var(--bg); }   /* "המשך" זמין בלי גלילה */
.wiznav.pinned { border-top: 1px solid var(--line); }
.wiznav .btn { min-width: 150px; }
@media (max-width: 600px) { .wiznav .btn { flex: 1; min-width: 0; } }
.doclist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doclist { list-style: none; padding: 0; margin: 0; }
.doclist[data-sortable] li { cursor: grab; }
.doclist .grip { color: var(--muted); font-size: 18px; line-height: 1; letter-spacing: -3px; padding: 4px 2px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.doclist.sorting, .doclist.sorting li { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.doclist li.dragging { background: #f5f7fa; opacity: .7; outline: 2px dashed var(--accent-lite); outline-offset: -2px; border-radius: 8px; }
/* ---------- העלאת קבצים: אזור גרירה, לחצן בחירה ותגיות קובץ ---------- */
.filedrop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px 22px; background: linear-gradient(180deg, #f5f7fa 0%, #fff 100%); transition: border-color .18s, box-shadow .18s; }
.filedrop:hover, .filedrop.over { border-color: var(--accent-lite); box-shadow: 0 0 0 4px rgba(217,180,92,.14); }
.filedrop:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.filedrop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.filedrop label { display: block; color: var(--navy); }
.filedrop label b { display: block; font-size: 16px; }
.filedrop .sub { display: block; color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.filedrop .help { display: block; margin-top: 12px; font-size: 12.5px; }
.drop-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; background: #fbf6ea; color: var(--accent-dark); border: 1px solid var(--accent-lite); }
.drop-ic .icon { width: 26px; height: 26px; }
.upload-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 12px; box-shadow: inset 0 -3px var(--accent); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; cursor: pointer; text-decoration: none; transition: background .18s, box-shadow .18s, transform .12s; }
.upload-btn .icon { width: 20px; height: 20px; }
.upload-btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.upload-btn:hover, .filedrop:hover .upload-btn { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; box-shadow: inset 0 -3px var(--accent-lite), 0 4px 12px rgba(22,41,63,.2); }
.upload-btn:active { transform: translateY(1px); }
.file-pick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sr-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-file:focus-visible + .upload-btn { outline: 3px solid var(--focus); outline-offset: 3px; }
.filechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filechips:empty { display: none; }
.filechip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: #eef2f7; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px 5px 14px; font-size: 13px; color: var(--text); }
.filechip .icon { width: 16px; height: 16px; color: var(--accent-dark); }
.filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip .x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 16px; line-height: 1; padding: 0 5px; border-radius: 50%; }
.filechip .x:hover { color: var(--text); background: var(--line); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.timeline .when { color: var(--muted); font-size: 12.5px; }
.timeline .who { color: var(--navy); font-weight: 600; }
.timeline code { font-size: 11.5px; color: var(--muted); }
.policy-note { font-size: 13px; padding: 8px 12px; border-inline-start: 3px solid var(--accent-dark); background: #fdf8ee; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } .timeline li { grid-template-columns: 1fr; } }

/* ---------- עורך השדות ---------- */
.editor { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.editor.editor-3 { grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr); }   /* בונה המסמכים: תפריט · עריכה · תצוגה מקדימה */
.editor > aside { position: sticky; top: calc(var(--topbar-h) + 10px); max-height: calc(100vh - var(--topbar-h) - 20px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 2px; }   /* תפריט העורך נשאר במקום גם במסמך ארוך */
.editor-next { position: sticky; top: 0; z-index: 3; background: var(--bg); padding-bottom: 8px; }   /* "המשך" גלוי תמיד בראש התפריט */
.editor-next .btn { display: flex; width: 100%; justify-content: center; }
@media (max-width: 1100px) { .editor.editor-3 { grid-template-columns: 230px minmax(0, 1fr); } }
@media (max-width: 900px) { .editor, .editor.editor-3 { grid-template-columns: minmax(0, 1fr); } .editor > aside { position: static; max-height: none; overflow: visible; } }
.palette .tile { display: flex; align-items: center; gap: 8px; width: 100%; text-align: start; padding: 7px 10px; margin-bottom: 4px; background: #fff; border: 1px solid var(--line); border-radius: 7px; cursor: grab; font: inherit; font-size: 13px; color: var(--text); }
.palette .tile:hover { border-color: var(--navy); background: #eef2f7; }
.palette .tile .ico { width: 22px; height: 22px; border-radius: 5px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.pages { display: flex; flex-direction: column; gap: 18px; }
.page { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16,30,54,.12); margin: 0 auto; max-width: 100%; direction: ltr; }
.page img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.docrail { position: fixed; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); z-index: 200; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 16px rgba(16,30,54,.12); }
.docrail a { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; background: #eef2f7; }
.docrail a:hover, .docrail a:focus-visible { background: var(--accent-lite); color: #fff; }
.docrail a.cur { background: var(--navy); color: #fff; }
.docrail a::after { content: attr(data-name); position: absolute; inset-inline-start: 36px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--navy-dark); color: #fff; font-size: 12px; font-weight: 400; padding: 4px 10px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .12s; }
.docrail a:hover::after, .docrail a:focus-visible::after { opacity: 1; }
.doc-anchor { scroll-margin-top: 12px; }
@media (max-width: 900px), print { .docrail { display: none; } }
.page .pn { position: absolute; top: -22px; inset-inline-start: 0; font-size: 12px; color: var(--muted); direction: rtl; }
.fld { position: absolute; border: 2px solid var(--navy); background: rgba(31,58,95,.12); border-radius: 4px; font-size: 11px; color: var(--navy); overflow: visible; cursor: move; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px; }
.fld.sel { border-color: var(--accent-dark); background: rgba(160,127,54,.18); box-shadow: 0 0 0 3px rgba(160,127,54,.35); }
.fld .rs { position: absolute; right: -5px; bottom: -5px; width: 12px; height: 12px; background: var(--navy); border-radius: 2px; cursor: nwse-resize; }
.fld.p0 { border-color: #1f3a5f; } .fld.p1 { border-color: #157042; background: rgba(21,112,66,.12); color: #157042; }
.fld.p2 { border-color: #8a6b2e; background: rgba(138,107,46,.14); color: #8a6b2e; } .fld.p3 { border-color: #5b4a9e; background: rgba(91,74,158,.12); color: #5b4a9e; }
.fld.p4 { border-color: #b3373d; background: rgba(179,55,61,.1); color: #b3373d; }
.fld .lbl { max-width: 100%; max-height: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fld.kin { border-style: dashed; box-shadow: 0 0 0 3px rgba(160,127,54,.2); }   /* עותקי הקבוצה של השדה הנבחר בעמודים אחרים */
.fld .x { position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--err); border: 1.5px solid var(--err); font: 700 13px/1 Arial, sans-serif; padding: 0; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2; }
.fld:hover .x, .fld.sel .x, .fld:focus-within .x { display: flex; }
.fld .x:hover, .fld .x:focus-visible { background: var(--err); color: #fff; }
.spread { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px 10px; margin: 12px 0 0; min-width: 0; }
.spread.prominent { border: 2px solid var(--accent); background: #fbf7ee; margin-top: 4px; }
.spread.prominent legend { font-size: 14px; background: #fff; border-radius: 4px; }
.spread.prominent label { font-size: 14px; font-weight: 600; color: var(--navy); }
.spread.prominent input[type=radio] { width: 17px; height: 17px; accent-color: var(--navy); }
.fldbar { position: absolute; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: #fff; border: 1.5px solid var(--navy); border-radius: 7px; box-shadow: 0 4px 14px rgba(16,30,54,.22); font-size: 12px; direction: rtl; white-space: nowrap; }
.fldbar[hidden] { display: none; }
.fldbar .t { color: var(--navy); font-weight: 600; margin-inline-end: 4px; }
.fldbar button { font: inherit; font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--text); cursor: pointer; }
.fldbar button:hover { border-color: var(--navy); background: #eef2f7; }
.fldbar button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.fld .n { position: absolute; top: -9px; left: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-dark); color: #fff; font: 700 10.5px/18px Arial, sans-serif; direction: rtl; white-space: nowrap; }
.spread legend { font-size: 13px; font-weight: 600; color: var(--navy); padding: 0 6px; }
.spread label { display: flex; gap: 6px; align-items: center; font-size: 13.5px; margin: 4px 0; cursor: pointer; }
.spread .help { margin: 6px 0 8px; }
.pagepick { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0; max-height: 120px; overflow: auto; padding: 4px 2px; }
.pagepick label { display: inline-flex; gap: 3px; font-size: 13px; margin: 0; }
.delpop { position: fixed; z-index: 400; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(16,30,54,.25); padding: 12px 14px; width: min(300px, calc(100vw - 24px)); direction: rtl; text-align: start; }
.delpop[hidden] { display: none; }
.delpop h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.delpop .acts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.props { margin-top: 10px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-inline-end: 4px; }

/* ---------- תפריט נגישות ---------- */
.a11y-btn { position: fixed; bottom: calc(18px + var(--sbar-h, 0px)); inset-inline-start: 18px; z-index: 300; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: var(--navy); color: #fff; font-size: 23px; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(16,30,54,.35); font-family: inherit; }
.a11y-menu { position: fixed; bottom: calc(72px + var(--sbar-h, 0px)); inset-inline-start: 18px; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(16,30,54,.25); padding: 14px 16px; width: min(310px, calc(100vw - 36px)); }
.a11y-menu[hidden] { display: none; }
.a11y-menu h2 { font-size: 15px; color: var(--navy); margin: 0 0 10px; }
.a11y-menu .grp { margin-bottom: 12px; }
.a11y-menu .grp > b { display: block; font-size: 13px; margin-bottom: 5px; }
.a11y-menu button.opt { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 6px 11px; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--text); margin-inline-end: 5px; margin-bottom: 5px; }
.a11y-menu button.opt[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-menu .foot { font-size: 12px; color: var(--muted); line-height: 1.6; }
body.a11y-contrast, body.a11y-contrast * { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
body.a11y-contrast a, body.a11y-contrast .gate-cta, body.a11y-contrast .brandbig span { color: #ffea00 !important; }
body.a11y-contrast .btn, body.a11y-contrast .upload-btn, body.a11y-contrast .a11y-btn, body.a11y-contrast button.opt { color: #ffea00 !important; border: 2px solid #ffea00 !important; }
body.a11y-contrast .page img { filter: invert(1) hue-rotate(180deg); }
body.a11y-links a { text-decoration: underline !important; }
body.a11y-nomotion *, body.a11y-nomotion *::before, body.a11y-nomotion *::after { transition: none !important; animation: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } .gate:hover { transform: none; } }

/* ---------- מסע החותם (מובייל תחילה) ---------- */
body.signer { background: #eef1f5; }
.s-wrap { max-width: 720px; margin: 0 auto; padding: 0 12px 40px; }
.s-wrap.wide { max-width: 1100px; }
.s-head { background: var(--navy); color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: 0; z-index: 30; }
.s-head .s-home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.s-head .brand { font-weight: 700; font-size: 17px; }
.s-head .brand span { color: var(--accent-lite); }
.s-head .org { font-size: 13px; color: #dce6f2; }
.s-head form { margin-inline-start: auto; }
/* Crop only the transparent logo margins in the layout; keep the approved artwork intact. */
.platform-logo { display: block; width: 248px; height: 48px; max-width: 100%; object-fit: cover; object-position: center; flex: none; }
body.a11y-contrast .platform-logo { filter: brightness(0) invert(1); }
.brandbig .platform-logo { margin-inline: auto; }
@media (max-width: 600px) {
  .platform-logo { width: 180px; height: 36px; }
  header.topbar { padding-inline: 16px; gap: 12px; }
}
.s-head select { padding: 4px 6px; font-size: 13px; border-radius: 6px; width: auto; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; margin-top: 16px; box-shadow: 0 1px 3px rgba(16,30,54,.06); }
.s-card h1 { font-size: 21px; color: var(--navy); margin: 0 0 10px; }
.s-card h2 { font-size: 16px; color: var(--navy); margin: 14px 0 6px; }
.s-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
.s-facts div { background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.s-facts b { display: block; color: var(--navy); font-size: 14px; }
.s-progress { position: sticky; top: var(--shead-h, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.s-progress .bar { flex: 1; min-width: 120px; height: 8px; background: #e8edf2; border-radius: 4px; overflow: hidden; }
.s-progress .bar i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .2s; }
.s-doc { margin-top: 18px; }
.s-doc h2 { font-size: 15px; margin: 0 0 6px; color: var(--navy); }
.s-doc h2 .s-dl { font-weight: 400; font-size: 12.5px; margin-inline-start: 10px; white-space: nowrap; }
.s-page { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16,30,54,.1); margin: 0 auto 14px; direction: ltr; }
.s-page img { display: block; width: 100%; height: auto; }
.sf { position: absolute; font-size: 12px; }
.sf input, .sf select, .sf textarea { width: 100%; height: 100%; padding: 1px 4px; border: 2px solid var(--accent-dark); border-radius: 3px; background: #fffbea; font-size: inherit; min-height: 0; resize: none; }
.sf.done input, .sf.done select, .sf.done textarea { border-color: var(--ok); background: #f0faf4; }
.sf.sig button { width: 100%; height: 100%; border: 2px dashed var(--accent-dark); background: #fffbea; border-radius: 4px; font: inherit; font-size: 12px; cursor: pointer; color: var(--accent-dark); font-weight: 600; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.sf.sig.done button { border-style: solid; border-color: var(--ok); background: #f0faf4; }
.sf.sig img { max-width: 100%; max-height: 100%; }
.s-offpage { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.s-off button { border: 2px dashed var(--accent-dark); background: #fffbea; border-radius: 8px; padding: 10px 16px; font: inherit; cursor: pointer; color: var(--accent-dark); font-weight: 600; }
.s-off.done button { border-style: solid; border-color: var(--ok); background: #f0faf4; color: var(--ok); }
.sf.other { border: 1px dashed #b7c1cc; background: rgba(215,222,230,.35); color: #7b8794; display: flex; align-items: center; justify-content: center; font-size: 10px; pointer-events: none; }
.sf.other.val { color: #1d2733; background: rgba(255,255,255,.7); justify-content: flex-start; padding: 1px 4px; font-size: 11px; }
.sf.ro { display: flex; align-items: center; padding: 1px 4px; background: rgba(255,255,255,.75); border: 1px solid #c9d2dc; font-size: 11px; }
.sf.req::after { content: "*"; position: absolute; top: -8px; inset-inline-end: -4px; color: var(--err); font-weight: 700; font-size: 14px; }
.sf.done.req::after { content: ""; }
.sf.flash-focus { outline: 4px solid var(--accent-lite); }
.s-fieldlist { list-style: none; padding: 0; margin: 0; }
.s-fieldlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.s-fieldlist button { font: inherit; background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 0; }
.s-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 20; margin-top: 16px; }
.s-actions .btn { flex: 1; min-width: 140px; }
.modal { position: fixed; inset: 0; background: rgba(16,30,54,.55); z-index: 400; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal .box { background: #fff; width: min(560px, 100%); border-radius: 14px 14px 0 0; padding: 16px; max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .modal { align-items: center; } .modal .box { border-radius: 14px; } }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { flex: 1; font: inherit; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sigpad { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: 8px; background: #fff; touch-action: none; display: block; }
.sig-preview { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; min-height: 70px; display: flex; align-items: center; justify-content: center; }
.otp { font-size: 24px; letter-spacing: 8px; text-align: center; direction: ltr; }
.done-ico { font-size: 54px; color: var(--ok); text-align: center; }
.s-note { font-size: 12.5px; color: var(--muted); border-inline-start: 3px solid var(--accent-dark); padding: 6px 10px; background: #fdf8ee; margin: 10px 0; }
@media print { .topbar, .sitefoot, .a11y-btn, .a11y-menu, .s-actions, .flash, .drawer, .backdrop, .navtoggle { display: none !important; } }

/* ---------- ניהול המערכת (Super Admin) ---------- */
.admin-topbar { border-top-color: var(--err); }
.admin-topbar .admin-tag { background: rgba(255,255,255,.12); color: var(--accent-lite); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.admin-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-head h1 { margin: 4px 0 0; font-size: 1.6rem; color: var(--navy); letter-spacing: -.5px; }
.admin-head h1 .badge { vertical-align: middle; font-size: 13px; }
.admin-nav.chips { margin-bottom: 18px; }
.filters.card { padding: 12px 16px; margin-bottom: 14px; }
.stat.alert b { color: var(--err); }
.stat b small { font-size: 15px; color: var(--muted); font-weight: 400; }
.health { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.health .badge { min-width: 64px; text-align: center; margin-inline-end: 6px; }
.flagrow { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.err-text { color: var(--err); }
.two.compact { gap: 14px; }
table.grid td .adder { margin: 0; }
table.grid td .adder .inner { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; }
.announce { margin: 0 0 14px; }
/* מסע החותם — פתיח ודיאלוג חתימה פשוטים */
.s-intro .s-lead { font-size: 16px; margin: 4px 0 10px; }
.s-doclist { list-style: none; padding: 0; margin: 10px 0; }
.s-doclist li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fb; margin-bottom: 6px; }
.s-consent { color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.s-more summary { cursor: pointer; color: var(--navy); font-size: 13px; margin-top: 14px; }
.s-applyall { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fb; }
.s-applyall input, .s-final input { width: 22px; height: 22px; }
.s-final { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fb; font-size: 15px; }
/* אימות חתימה בעסקאות מקרקעין (את/163/22) */
.re-card { border-inline-start: 4px solid var(--accent); }
.re-toggle { font-size: 15px; }
.re-toggle input { width: 20px; height: 20px; }
.re-parties { display: grid; gap: 8px; margin-top: 6px; }
.re-party { display: grid; grid-template-columns: minmax(120px, 1fr) 130px 160px; gap: 8px; align-items: center; }
.re-parties.multi .re-party { grid-template-columns: minmax(120px, 1fr) 130px 160px minmax(140px, 180px); }
.re-lawyer { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 8px 0; }
.re-lawyer legend { font-weight: 600; padding: 0 4px; }
.re-lw-rows { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.re-lw-rows > li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px dashed var(--line); }
.re-party .nm { font-weight: 600; }
@media (max-width: 640px) { .re-party, .re-parties.multi .re-party { grid-template-columns: 1fr; } }
.re-sign-list { list-style: none; padding: 0; margin: 0; }
.re-sign-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.re-steps { padding-inline-start: 22px; margin: 0 0 12px; }
.re-steps li { margin-bottom: 8px; }
.re-check { margin: 0 0 12px; }
.re-text { margin: 8px 0 0; padding: 10px 14px; background: #fdf8ee; border-inline-start: 3px solid var(--accent-dark); border-radius: 6px; font-size: 14.5px; line-height: 1.8; }
.re-upload { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.re-attest { display: grid; gap: 2px; }
.re-quick input { width: 20px; height: 20px; }
.re-qr { max-width: 560px; margin: 0 auto; text-align: center; }
.re-qr .qr { width: min(320px, 80vw); height: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; margin: 10px auto; display: block; }
.re-qr h1 { margin: 6px 0; }
.re-modes { display: grid; gap: 8px; margin-top: 6px; }
.re-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; }
.re-mode:has(input:checked) { border-color: var(--navy); background: #eef2f7; }
.re-mode input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.re-doc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.re-doc .re-kind select { width: auto; }
.re-identity { display: grid; gap: 6px; min-width: 260px; }
.verify-tiles .launch-tile .badge { align-self: flex-start; }
.verify-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verify-banner .icon { width: 20px; height: 20px; color: var(--accent-dark); }
.verify-banner .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.launch-tile.verify-tile .badge { align-self: flex-start; }
.fixlist li { margin: 4px 0; }
.fixlink { font-weight: 600; white-space: nowrap; margin-inline-start: 6px; }
.field-err { display: block; color: var(--err); font-size: 12.5px; margin-top: 3px; font-weight: 600; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 2px #fbe9ea; }
.re-switch { margin-top: 10px; }
.re-switch form { display: inline; }
.re-switch .linkbtn, .verify-banner .linkbtn, .re-lawyer .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.ts-status { font-weight: 600; margin: 8px 0; }
.ts-status.ok { color: var(--ok); } .ts-status.err { color: var(--err); } .ts-status.warn { color: #8a6118; }
.ts-cert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.ts-cert:has(input:checked) { border-color: var(--navy); background: #eef2f7; }
.ts-cert input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.ts-cert.off { opacity: .6; cursor: not-allowed; }
.rcpt-id { display: none; }
.verify-on .rcpt-id { display: inline-block; }
.verify-on .rcpt-row .rcpt-id { max-width: 150px; }
.party-row .kind, .rcpt-row .kind { width: auto; }
.corp-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px 12px; padding: 8px 10px 4px; margin-top: 4px; border-inline-start: 3px solid var(--accent); background: #fdf8ee; border-radius: 6px; }
.corp-fields .help { grid-column: 1 / -1; margin: 0; }
.party-group { margin-bottom: 12px; }
