:root {
  /* Crispel Sign palette: yellow · black · white */
  --yellow: #ffcc00;
  --yellow-dark: #e0b000;
  --yellow-soft: #fff6cc;
  --black: #111111;
  --blue: var(--yellow);
  --blue-dark: var(--black);
  --green: var(--black);
  --green-dark: var(--black);
  --navy: var(--black);
  --text: #111;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #ffffff;
  --card: #fff;
  --info-bg: #fff8d6;
  --info-line: #f3d75c;
  --info-text: #3a3000;
  --danger: #d93a3a;
  --radius: 14px;
  --font: Arial, "Segoe UI", "Rubik", "Heebo", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
  font-size: 16px;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; flex: none; }
svg.i.fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.view {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.overlay {
  position: fixed; inset: 0; background: rgba(20, 28, 38, .35);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.drawer-open .overlay { opacity: 1; pointer-events: auto; }

/* ---------- drawer (side menu, picture 1) ---------- */
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0;
  width: min(90vw, 360px);
  background: #f4f4f4;
  box-shadow: -8px 0 24px rgba(0,0,0,.12);
  transform: translateX(105%);
  transition: transform .25s ease;
  z-index: 50;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-head { padding: 22px 18px 0; }
.menu-toggle {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; color: var(--navy); font-weight: 700; font-size: 15px; padding: 4px;
}
.menu-toggle svg.i { font-size: 34px; stroke-width: 2.6; }
.drawer .logo-box {
  margin: 14px auto 10px; width: 78%; aspect-ratio: 2.7 / 1;
  background: #0b0b0b; color: #f2b01e; border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  overflow: hidden;
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-box .lb-name { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.logo-box .lb-sub { font-size: 10px; color: #ddd; }
.drawer .office-title { text-align: center; font-size: 24px; font-weight: 700; color: var(--navy); margin: 6px 0 16px; }
.drawer nav { border-top: 1px solid var(--line); padding: 10px 0; }
.drawer nav a {
  display: flex; align-items: center; gap: 18px;
  padding: 13px 24px; color: #1d1d1d; text-decoration: none; font-size: 17px;
}
.drawer nav a svg.i { font-size: 30px; color: var(--navy); stroke-width: 2.2; }
.drawer nav a:hover, .drawer nav a.active { background: #e8eef3; }
.drawer nav a .count { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.drawer .art { border-top: 1px solid var(--line); margin-top: auto; padding: 14px 20px 4px; text-align: center; }
.drawer .art svg { width: 82%; max-width: 280px; height: auto; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 18px; }
.drawer-foot a { display: inline-flex; align-items: center; gap: 8px; color: #1d1d1d; text-decoration: none; font-size: 17px; }
.drawer-foot a svg.i { font-size: 26px; color: var(--navy); }
.drawer-foot .ver { color: #8a93a0; font-weight: 700; font-size: 14px; }

/* ---------- top bars ---------- */
.topbar {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 24px 16px 10px;
}
.topbar .menu-toggle { font-size: 14px; }
.topbar .menu-toggle svg.i { font-size: 26px; }
.brand { flex: 1; min-width: 0; }
.brand h1 { margin: 0; color: var(--blue); font-size: 30px; font-weight: 400; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand p { margin: 2px 0 0; font-size: 13px; color: #333; }
.top-actions { display: flex; gap: 14px; align-items: flex-start; }
.top-actions button {
  background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px; color: #333; padding: 0; position: relative; min-width: 46px;
}
.top-actions svg.i { font-size: 28px; }
.top-actions .fb { color: #1f8f22; }
.top-actions .fb svg.i { color: #3bb53e; }
.top-actions .badge {
  position: absolute; top: -4px; left: 4px; background: var(--danger); color: #fff; border-radius: 10px;
  font-size: 11px; padding: 1px 6px; font-weight: 700;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: #111; color: #f2b01e;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.top-actions .av-label { line-height: 1.15; text-align: center; max-width: 84px; }

.pagebar { display: flex; align-items: flex-start; gap: 16px; padding: 22px 16px 8px; }
.pagebar .back {
  background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 14px; color: #333; padding: 4px 6px; min-width: 52px;
}
.pagebar .back svg.i { font-size: 26px; stroke-width: 2.8; color: #222; }
.pagebar .title h1 { margin: 0; font-size: 32px; font-weight: 400; color: var(--blue); line-height: 1.1; }
.pagebar .title p { margin: 4px 0 0; font-size: 14px; color: #333; }
.pagebar .spacer { flex: 1; }

/* ---------- buttons ---------- */
.pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border-radius: 40px; border: 1.5px solid var(--blue);
  background: #fff; color: #1d1d1d; font-size: 20px; padding: 13px 22px; min-height: 58px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12); text-align: center; line-height: 1.3;
}
.pill svg.i { color: var(--blue); font-size: 20px; }
.pill.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.pill.green { background: var(--green); color: #fff; border-color: var(--green); }
.pill.blue svg.i, .pill.green svg.i { color: #fff; }
.pill.big { font-size: 25px; min-height: 76px; }
.pill:active { transform: translateY(1px); }
.pill:disabled { opacity: .5; cursor: not-allowed; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 30px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue-dark);
  padding: 9px 18px; font-size: 16px;
}
.btn.solid { background: var(--blue); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.ghost { border-color: transparent; background: none; }
.btn.small { padding: 5px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- home (picture 4) ---------- */
.home-actions { padding: 34px 9% 0; display: flex; flex-direction: column; gap: 18px; }
.ask { padding: 40px 6% 0; }
.ask label { display: block; font-size: 20px; margin: 0 8px 8px; }
.searchbar {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #9a9a9a;
  border-radius: 40px; padding: 0 22px; height: 64px; box-shadow: 0 3px 6px rgba(0,0,0,.18);
}
.searchbar input { flex: 1; border: 0; outline: 0; font-size: 18px; background: none; min-width: 0; }
.searchbar input::placeholder { color: #9b9b9b; }
.searchbar svg.i { color: var(--blue); font-size: 20px; stroke-width: 3; }
.results { margin: 14px 6% 0; display: flex; flex-direction: column; gap: 8px; }
.result {
  background: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit; border: 1px solid #e3e3e3;
}
.result .k { font-size: 12px; color: #fff; background: var(--blue); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.result .t { font-weight: 700; }
.result .s { font-size: 13px; color: var(--muted); }
.tiles {
  margin-top: auto; padding: 60px 8% 10px;
  display: grid; grid-template-columns: 1fr 1fr; row-gap: 26px; column-gap: 12px;
}
.tile { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1d1d1d; }
.tile .circle {
  width: 118px; height: 118px; border-radius: 50%; background: var(--blue); color: #fff;
  border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
}
.tile .circle svg.i { font-size: 52px; stroke-width: 1.8; }
.tile .lbl { font-size: 25px; margin-top: 10px; }
.tile .num { font-size: 19px; font-weight: 700; color: #444; margin-top: 8px; }

/* ---------- choose type (picture 6) ---------- */
.groups { padding: 18px 16px 30px; }
.group h2 { font-size: 30px; font-weight: 400; margin: 26px 4px 16px; }
.group .stack { padding: 0 8%; gap: 18px; }
.group .pill { min-height: 64px; font-size: 22px; }

/* ---------- form (pictures 3 & 5) ---------- */
.form { padding: 4px 0 110px; }
.block { padding: 0 16px; margin-top: 30px; }
.block-title { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 4px 16px; }
.block-title .help { background: none; border: 0; padding: 0; color: #222; font-size: 22px; display: inline-flex; }
.block-title .help svg.i { fill: #222; stroke: #fff; }
.picker {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #222;
  border-radius: 22px; padding: 10px 18px; box-shadow: 0 2px 5px rgba(0,0,0,.18); position: relative;
}
.picker input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 20px; padding: 14px 0; background: none; }
.picker input::placeholder { color: #a3a3a3; }
.picker .pbtn {
  background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 15px; color: #222; padding: 4px 8px;
}
.picker .pbtn svg.i { font-size: 24px; stroke-width: 3; }
.dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); z-index: 20; max-height: 300px; overflow-y: auto; padding: 6px;
}
.dropdown button {
  display: block; width: 100%; text-align: right; background: none; border: 0; padding: 10px 12px;
  border-radius: 10px; font-size: 16px;
}
.dropdown button:hover { background: #eef7fc; }
.dropdown .s { display: block; font-size: 13px; color: var(--muted); }
.dropdown .empty { padding: 12px; color: var(--muted); font-size: 15px; }
.info {
  margin: 22px 8px 0; background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info-text);
  border-radius: 4px; padding: 12px 16px; font-size: 16px; line-height: 1.7; box-shadow: 0 2px 4px rgba(0,0,0,.08);
  display: flex; gap: 8px; align-items: flex-start;
}
.info svg.i { margin-top: 5px; fill: var(--info-text); stroke: var(--info-bg); flex: none; }
.chips { display: flex; flex-direction: column; gap: 10px; margin: 14px 8px 0; }
.chip {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--blue);
  border-radius: 14px; padding: 10px 14px;
}
.chip .t { font-weight: 700; }
.chip .s { font-size: 13px; color: var(--muted); }
.chip .grow { flex: 1; min-width: 0; }
.chip .x { background: none; border: 0; color: var(--danger); font-size: 20px; padding: 4px; }
.chip .role { font-size: 12px; background: var(--green); color: #fff; border-radius: 8px; padding: 2px 8px; }

.section { margin-top: 34px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; border-bottom: 1.5px solid #bdbdbd; padding: 8px 16px 12px 12px;
  font-size: 20px; font-weight: 700; color: #222;
}
.section-head svg.i { font-size: 26px; stroke-width: 3; transition: transform .2s; }
.section.closed .section-head svg.i { transform: rotate(180deg); }
.section.closed .section-body { display: none; }
.section-body { padding: 18px 0 0; }
.section-body .grid2 { padding: 0; }
.info.warn { background: #fff6dc; border-color: #f0d27a; color: #6b5000; }
.info.warn svg.i { fill: #6b5000; stroke: #fff6dc; }
.saved-sig { text-align: center; background: #fbfdff; border: 1px solid #dbe6ee; border-radius: 12px; padding: 8px; }
.saved-sig img { max-height: 96px; max-width: 100%; }
.logo-box.small { width: 220px; aspect-ratio: 2.7 / 1; background: #0b0b0b; color: #f2b01e; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 4px; overflow: hidden; }
.row.pad { padding: 6px 16px; }
.item.focus { outline: 2px solid var(--blue); }
.item.link, .pill.link { text-decoration: none; color: inherit; }
.share-grid a {
  background: #fff; border: 1.5px solid #dbe6ee; border-radius: 16px; padding: 14px 6px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px;
}
.share-grid a svg.i { font-size: 30px; color: var(--blue); }
.share-grid a.wa svg.i { color: #25a244; }
.tb-btn:disabled { opacity: .4; cursor: not-allowed; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
.field { min-width: 0; }
.field .ctl { min-width: 0; max-width: 100%; }
.field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.field .ctl {
  width: 100%; background: #fff; border: 1.5px solid #c9c9c9; border-radius: 10px; padding: 12px 14px;
  font-size: 22px; min-height: 64px; outline: 0; box-shadow: 0 2px 3px rgba(0,0,0,.12);
}
.field .ctl:focus { border-color: var(--blue); }
.field textarea.ctl { font-size: 19px; min-height: 118px; resize: vertical; line-height: 1.5; }
.field input[type=date].ctl { text-align: right; }
.field .ctl::placeholder { color: #9b9b9b; }
.field.span2 { grid-column: span 2; }
.note { font-size: 14px; margin: 18px 0 0; color: #333; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.finish { padding: 30px 16px 0; font-size: 20px; }
.finish em { font-style: italic; }
.fab {
  position: fixed; bottom: 18px; z-index: 30;
  inset-inline-end: max(14px, calc((100vw - 760px) / 2 + 14px));
  width: auto; min-width: 268px; min-height: 58px; font-size: 21px;
}

/* ---------- preview (picture 2) ---------- */
.toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 18px 12px 10px; border-bottom: 1px solid #d7d7d7;
}
.tb-btn {
  background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 15px; color: #333; padding: 0 6px;
}
.tb-btn svg.i { font-size: 28px; color: #222; }
.tb-btn.dim { color: #9aa1aa; }
.tb-btn.dim svg.i { color: #9aa1aa; }
.tb-btn.pdf svg.i { color: #d93a3a; }
.sizes { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sizes .opts { display: flex; gap: 4px; align-items: center; }
.sizes button {
  background: none; border: 0; padding: 6px 0; width: 104px; border-radius: 22px; color: #222; height: 42px;
}
.sizes button.on { background: var(--blue); color: #fff; }
.sizes span { font-size: 16px; }
.paper {
  margin: 0 8px; background: #fff; border: 1px solid #cfcfcf; border-top: 0;
  padding: 26px 8px 40px; line-height: 1.32; color: #000; font-size: 17px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.paper.fs-2 { font-size: 20px; }
.paper.fs-3 { font-size: 23px; }
.paper[contenteditable=true] { outline: 2px dashed var(--blue); }
.paper h1 { font-size: 2.35em; font-weight: 400; margin: 0 0 4px; line-height: 1.25; }
.paper .law { font-size: .95em; padding-bottom: 2px; border-bottom: 1.5px solid #555; margin-bottom: 18px; }
.paper p { margin: 0 0 4px; }
.paper .box { border: 1.5px solid #999; border-radius: 18px; padding: 18px 12px 18px; margin: 18px 0 30px; }
.paper .box h2 { font-size: 2.1em; font-weight: 400; margin: 0 0 18px; }
.paper .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.paper .kv div { display: flex; gap: 6px; align-items: flex-end; font-weight: 700; }
.paper .kv div { white-space: nowrap; }
.paper .kv div span.v { white-space: normal; min-width: 0; }
.paper .kv div span.v { flex: 1; border-bottom: 1.3px solid #333; min-height: 1.3em; font-weight: 400; padding: 0 4px; }
.paper .kv div.wide { grid-column: span 2; }
.paper h3 { font-size: 1.8em; font-weight: 400; margin: 10px 0 10px; }
.paper ol { margin: 0; padding-right: 1.6em; line-height: 1.75; }
.paper ol li { margin-bottom: 4px; }
.paper .blank { display: inline-block; min-width: 7em; border-bottom: 1.2px solid #333; background: #fff6d6; }
.paper .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.paper .sig { text-align: center; }
.paper .sig .im { height: 90px; border-bottom: 1.3px solid #333; display: flex; align-items: flex-end; justify-content: center; }
.paper .sig img { max-height: 86px; max-width: 100%; }
.paper .sig .cap { font-size: .85em; margin-top: 4px; }
.paper .disclaimer { margin-top: 26px; font-size: .78em; color: #7a5a00; background: #fff8e1; border: 1px solid #f1d98a; padding: 8px 10px; border-radius: 6px; }
.paper .audit { margin-top: 24px; border-top: 1.5px dashed #888; padding-top: 12px; font-size: .78em; color: #333; }
.paper .audit code { direction: ltr; unicode-bidi: embed; word-break: break-all; font-size: .95em; }
.paper table.props { width: 100%; border-collapse: collapse; font-size: .9em; margin-top: 8px; }
.paper table.props th, .paper table.props td { border: 1px solid #aaa; padding: 4px 6px; text-align: right; }
.edited-banner { margin: 10px 8px 0; }
.bottombar {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 30;
  display: flex; gap: 14px; padding: 14px 14px 18px; background: linear-gradient(transparent, rgba(244,244,244,.96) 30%);
  max-width: 760px; margin: 0 auto; justify-content: flex-end;
}
.bottombar .pill { width: 268px; flex: none; }
.preview-pad { height: 110px; }

/* ---------- sign / done ---------- */
.card {
  background: #fff; border-radius: var(--radius); margin: 16px 16px 0; padding: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.card h2 { margin: 0 0 12px; font-size: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.sigpad-wrap { border: 2px dashed #b5c7d3; border-radius: 12px; background: #fbfdff; position: relative; }
.sigpad-wrap canvas { width: 100%; height: 190px; display: block; touch-action: none; border-radius: 12px; }
.sigpad-wrap .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b0bcc6; pointer-events: none; font-size: 20px; }
.sigpad-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.share-grid button {
  background: #fff; border: 1.5px solid #dbe6ee; border-radius: 16px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px;
}
.share-grid button svg.i { font-size: 30px; color: var(--blue); }
.share-grid button.wa svg.i { color: #25a244; }
.done-hero { text-align: center; padding: 26px 16px 4px; }
.done-hero .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.done-hero .ok svg.i { font-size: 46px; stroke-width: 3; }
.done-hero h1 { font-size: 28px; font-weight: 400; margin: 14px 0 4px; }
.muted { color: var(--muted); }
.mono { direction: ltr; unicode-bidi: embed; font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }

/* ---------- lists ---------- */
.list { padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; }
.item {
  background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex; gap: 12px; align-items: center;
}
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 700; font-size: 17px; }
.item .s { font-size: 14px; color: var(--muted); margin-top: 3px; }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status { font-size: 12px; border-radius: 10px; padding: 3px 10px; color: #fff; white-space: nowrap; }
.st-draft { background: #9aa3ad; }
.st-sent { background: #f0a020; }
.st-signed { background: var(--green-dark); }
.st-cancelled { background: var(--danger); }
.empty-state { text-align: center; color: var(--muted); padding: 50px 24px; font-size: 17px; line-height: 1.6; }
.empty-state svg.i { font-size: 54px; color: #b9c4cd; display: block; margin: 0 auto 10px; }
.tabs { display: flex; gap: 8px; padding: 8px 16px 4px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--blue); color: var(--blue-dark); font-size: 15px; }
.tabs a.on { background: var(--blue); color: #fff; }
.list-head { display: flex; gap: 10px; padding: 10px 16px; align-items: center; }
.list-head .searchbar { flex: 1; height: 50px; box-shadow: none; }

/* ---------- forms in cards / settings ---------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .field .ctl { font-size: 17px; min-height: 48px; padding: 10px 12px; box-shadow: none; }
.fgrid .field textarea.ctl { min-height: 80px; font-size: 16px; }
.fgrid .field.span2 { grid-column: span 2; }
.prose { line-height: 1.75; font-size: 16px; }
.prose ol { padding-right: 1.3em; }
.open-tag { display: inline-block; font-size: 12px; background: #fff1c7; color: #7a5a00; border: 1px solid #f0d27a; border-radius: 8px; padding: 1px 8px; }

/* ---------- modal + toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal {
  background: #f7f7f7; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 18px 18px 22px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 22px; font-weight: 400; color: var(--blue); }
.modal-head button { background: none; border: 0; font-size: 26px; color: #333; }
.modal-foot { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-start; }
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: #243447; color: #fff; border-radius: 24px; padding: 11px 22px; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); max-width: 90vw; text-align: center;
}

/* ---------- wide screens: menu stays open on the right ---------- */
@media (min-width: 1100px) {
  .drawer { transform: none; box-shadow: none; border-left: 1px solid #e0e0e0; width: 320px; }
  .overlay { display: none; }
  .view { margin-right: calc(320px + max(0px, (100vw - 320px - 760px) / 2)); margin-left: auto; }
  .drawer .close-only { visibility: hidden; }
  .topbar .menu-toggle, .pagebar .menu-only { display: none; }
  .fab { inset-inline-end: calc(320px + max(14px, (100vw - 320px - 760px) / 2 + 14px)); }
  .bottombar { right: 320px; }
  .modal-wrap { align-items: center; }
  .modal { border-radius: 22px; }
}

@media (max-width: 420px) {
  .brand h1 { font-size: 24px; }
  .top-actions { gap: 8px; }
  .tile .circle { width: 104px; height: 104px; }
  .tile .lbl { font-size: 21px; }
  .pill.big { font-size: 22px; min-height: 68px; }
  .group .pill { font-size: 19px; }
  .sizes button { width: 54px; height: 38px; }
  .toolbar { padding: 14px 4px 10px; gap: 2px; }
  .tb-btn { padding: 0 2px; font-size: 13px; }
  .tb-btn svg.i { font-size: 24px; }
  .group h2 { font-size: 25px; }
  .group .stack { padding: 0 4%; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid .field.span2 { grid-column: auto; }
  .bottombar .pill { width: auto; flex: 1; }
  .fab { min-width: 0; width: 64%; }
  .paper .kv { gap: 14px 12px; }
}

/* ---------- print: only the agreement ---------- */
@media print {
  body { background: #fff; }
  .drawer, .overlay, .toolbar, .bottombar, .pagebar, .topbar, .fab, .no-print, .toast, .modal-wrap, .edited-banner { display: none !important; }
  .view { margin: 0 !important; max-width: none; padding: 0; }
  .paper { border: 0; box-shadow: none; margin: 0; padding: 0; }
  .paper .blank { background: none; }
  .card { box-shadow: none; }
}

/* ================= Crispel Sign theme: yellow · black · white ================= */
a { color: var(--black); }
.drawer { background: #fff; }
.drawer nav a:hover, .drawer nav a.active { background: var(--yellow-soft); box-shadow: inset -4px 0 0 var(--yellow); }
.drawer-foot .ver { color: #777; }
.brand h1, .pagebar .title h1, .modal-head h2 { color: var(--black); font-weight: 700; }
.brand h1 .hl, .pagebar .title h1 { position: relative; }
.brand h1 .hl { background: var(--yellow); color: var(--black); border-radius: 8px; padding: 0 8px; }
.pagebar .title h1 { box-shadow: inset 0 -0.32em 0 var(--yellow); display: inline; padding: 0 2px; }
.top-actions button, .top-actions .fb { color: var(--black); }
.top-actions .fb svg.i { color: var(--black); fill: var(--yellow); }
.top-actions .badge { background: var(--black); color: var(--yellow); }

.pill { border-color: var(--black); color: var(--black); background: #fff; }
.pill svg.i { color: var(--black); }
.pill.blue { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.pill.blue svg.i { color: var(--black); }
.pill.green { background: var(--black); border-color: var(--black); color: var(--yellow); }
.pill.green svg.i { color: var(--yellow); }
.btn { border-color: var(--black); color: var(--black); }
.btn.solid { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn.green { background: var(--black); border-color: var(--black); color: var(--yellow); }
.btn.danger { border-color: #c62828; color: #c62828; }

.searchbar { border-color: var(--black); }
.searchbar svg.i { color: var(--black); }
.result { border-color: #e6e6e6; }
.result .k { background: var(--yellow); color: var(--black); }

.tile .circle { background: var(--black); color: var(--yellow); border-color: var(--yellow); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.tile .num { color: var(--black); }

.picker { border-color: var(--black); }
.dropdown button:hover { background: var(--yellow-soft); }
.info svg.i { fill: var(--black); stroke: var(--info-bg); }
.chip { border-color: var(--yellow); }
.chip .role { background: var(--black); color: var(--yellow); }
.chip .x { color: var(--black); }
.section-head { border-bottom-color: var(--black); }
.section-head svg.i { color: var(--black); }
.field .ctl { border-color: #bdbdbd; }
.field .ctl:focus { border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow); }
.item.focus { outline: 3px solid var(--yellow); }

.toolbar { border-bottom-color: var(--black); }
.tb-btn.pdf svg.i { color: var(--black); }
.sizes button.on { background: var(--yellow); color: var(--black); }
.paper { border-color: #d0d0d0; }
.paper[contenteditable=true] { outline: 2px dashed var(--yellow-dark); }

.card, .item { border: 1px solid #ececec; }
.sigpad-wrap { border-color: #bdbdbd; background: #fff; }
.sigpad-wrap .ph { color: #b5b5b5; }
.saved-sig { background: #fff; border-color: #e2e2e2; }
.share-grid button, .share-grid a { border-color: #e2e2e2; }
.share-grid button svg.i, .share-grid a svg.i, .share-grid button.wa svg.i, .share-grid a.wa svg.i { color: var(--black); }
.share-grid button:hover, .share-grid a:hover { background: var(--yellow-soft); border-color: var(--yellow); }
.done-hero .ok { background: var(--yellow); color: var(--black); }

.status.st-draft { background: #9e9e9e; color: #fff; }
.status.st-sent { background: var(--yellow); color: var(--black); }
.status.st-signed { background: var(--black); color: var(--yellow); }
.tabs a { border-color: var(--black); color: var(--black); }
.tabs a.on { background: var(--black); color: var(--yellow); }
.empty-state svg.i { color: #c9c9c9; }
.modal { background: #fff; }
.toast { background: var(--black); color: var(--yellow); }
.drawer .logo-box, .logo-box.small, .avatar { color: var(--yellow); }

/* exclusivity wording: numbered sub-clauses, marketing checkboxes */
.paper .subl { margin: 4px 0 2px; }
.paper .subl > div { display: flex; gap: 8px; }
.paper .subl .n { flex: none; font-size: .9em; padding-top: .1em; }
.paper .law-s { font-size: .95em; margin-bottom: 12px; }
.paper ol.sub { padding-right: 1.4em; }
.paper .cb { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; border: 1.3px solid #333; border-radius: 3px; margin-left: 6px; font-size: .85em; line-height: 1; vertical-align: -.1em; }
.paper .cb.on { background: #14233a; color: #fff; border-color: #14233a; }

/* form: marketing checklist, sale/rent switch, signing-steps banner */
.mkt-list { display: grid; gap: 8px; }
.mkt-list .check { font-size: 15px; }
.mkt-list .subs { display: grid; gap: 6px; padding-right: 30px; }
.mkt-count { font-size: 14px; font-weight: 700; }
.mkt-count.bad { color: var(--danger); }
.seg { display: flex; gap: 0; margin: 12px 16px 0; border: 1.5px solid var(--black); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; background: #fff; border: 0; padding: 10px; font: inherit; font-weight: 700; color: var(--black); }
.seg button.on { background: var(--black); color: var(--yellow); }
.steps { display: flex; gap: 8px; align-items: center; margin: 12px 16px 0; font-size: 14px; flex-wrap: wrap; }
.steps .st { padding: 4px 12px; border-radius: 999px; background: #eef2f6; color: #555; }
.steps .st.cur { background: var(--black); color: var(--yellow); font-weight: 700; }
.steps .st.ok { background: #e3f6e8; color: #17702f; }

/* login, roles */
.login { max-width: 420px; margin: 40px auto; padding: 0 16px; text-align: center; }
.login .logo-box { margin: 0 auto 14px; }
.login h1 { margin: 6px 0 2px; }
.login .card { text-align: right; margin: 16px 0; }
.login .field { margin-bottom: 10px; }
.role-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 2px 8px; vertical-align: middle; background: #eee; color: #333; }
.role-tag.admin { background: var(--black); color: var(--yellow); }
.role-tag.off { background: #fde8e8; color: #b42318; }
.item.off { opacity: .6; }
.me-line { font-size: 13px; opacity: .8; margin-top: 2px; }

/* ---------- property catalog for buyers / tenants (catalog.js) ---------- */
.cat-card { border: 2px solid #f2b32e; }
.cat-card h2 { display: flex; align-items: center; gap: 8px; }
.cat-card h2 .i { width: 22px; height: 22px; }
.pill.gold { background: linear-gradient(90deg, #d99a17, #f2b32e); color: #1b1a17; border-color: transparent; }
.cat-mini { margin: 0 0 12px; padding: 0 18px 0 0; color: #4a463d; font-size: 15px; }
.cat-mini li { padding: 2px 0; }
.cat-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-row2 .field { margin: 0; }
.cat-stat { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.item .cat-stat { margin: 8px 0 0; }
.cat-bdg { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; border-radius: 10px; padding: 5px 10px; background: #f5f3ee; color: #4a463d; border: 0; text-decoration: none; cursor: pointer; }
.cat-bdg .i { width: 15px; height: 15px; }
.cat-bdg.cat-in { background: #e7f0fb; color: #1d4f8a; font-weight: 700; }
.cat-bdg.cat-note { background: #fdf3dc; color: #6b4a07; font-weight: 700; }
.cat-bdg.cat-fresh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0592a; }
.cat-item { position: relative; }
.cat-item h3 { padding-left: 44px; margin-bottom: 2px; }
.cat-rm { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f5f3ee; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #b3261e; }
.cat-rm .i { width: 18px; height: 18px; }
.cat-photos { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; padding: 6px 6px 4px 0; }
.cat-ph { position: relative; flex: none; }
.cat-ph img { width: 96px; height: 74px; border-radius: 10px; object-fit: cover; display: block; }
.cat-ph button { position: absolute; top: -6px; left: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #1b1a17; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.cat-wait { width: 96px; height: 74px; border-radius: 10px; background: #ebe7de; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #8a8373; }
.cat-addph { flex: none; width: 96px; height: 74px; border-radius: 10px; border: 2px dashed #d9cfb8; background: #fffdf8; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #8a6a12; font-weight: 700; cursor: pointer; gap: 2px; }
.cat-addph .i { width: 22px; height: 22px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-chips button { border: 1.5px solid #e6e1d6; background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; min-height: 38px; color: inherit; }
.cat-chips button.on { background: #1b1a17; border-color: #1b1a17; color: #fff; }
.cat-addmore { margin: 6px 16px 0; border: 2px dashed #d9cfb8; background: none; border-radius: 16px; padding: 14px; width: calc(100% - 32px); font: inherit; font-weight: 700; color: #8a6a12; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cat-addmore .i { width: 20px; height: 20px; }
.cat-sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, #f5f3ee 22%); padding: 22px 16px calc(14px + env(safe-area-inset-bottom)); z-index: 5; }
.cat-pick { display: flex; gap: 12px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px solid #ebe7de; width: 100%; background: none; font: inherit; text-align: right; cursor: pointer; color: inherit; }
.cat-pick b { display: block; } .cat-pick small { color: #6f6a60; }
.cat-plus { margin-right: auto; color: #d99a17; font-weight: 800; font-size: 22px; }
.cat-sheet { padding: 0 16px 16px; }
.cat-sheet h3 { margin: 16px 0 8px; }
.cat-visits { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; }
.cat-visits li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ebe7de; font-size: 15px; }
.cat-visits .i { width: 16px; height: 16px; color: #1d4f8a; }
.cat-nb { border-top: 1px solid #ebe7de; padding: 12px 0; }
.cat-tg { display: inline-block; background: #fdf3dc; border: 1.5px solid #d99a17; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; margin: 0 0 6px 6px; }
.cat-paper { border: 1px solid #e6e1d6; border-radius: 12px; padding: 12px; font-size: 15px; line-height: 1.7; background: #fffefb; white-space: pre-wrap; }

/* ---------- profile photos ---------- */
.photo-row { display: flex; gap: 16px; align-items: center; }
.avatar.big { width: 92px; height: 92px; font-size: 28px; flex: none; }
.agent-av { flex: none; cursor: pointer; margin-left: 12px; }
.crop-wrap { padding: 0 16px 16px; }
.crop-view { position: relative; width: 260px; height: 260px; margin: 4px auto 0; border-radius: 50%; overflow: hidden; background: #ebe7de; touch-action: none; cursor: grab; box-shadow: 0 0 0 3px #f2b32e; }
.crop-view img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; max-width: 260px; margin: 0 auto; font-size: 22px; font-weight: 700; color: #6f6a60; }
.crop-zoom input { flex: 1; accent-color: #d99a17; }

/* ---------- REdox archive (archive.js) ---------- */
.arch-kinds { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.arch-kinds button { flex: none; border: 1.5px solid #e6e1d6; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.arch-kinds button.on { background: #1b1a17; border-color: #1b1a17; color: #fff; }
.arch-kinds { flex-wrap: wrap; overflow: visible; }

/* required field star */
.req { color: #c62828; font-weight: 800; margin-inline-start: 3px; }

/* ---------- buyer needs (buyers.js) ---------- */
.dollar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #1b1a17; color: #f2b32e; font-weight: 900; font-size: 17px; flex: none; }
.home-actions .buy-home { grid-column: 1 / -1; position: relative; }
.buy-home .badge { margin-inline-start: 8px; background: #c62828; color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 8px; }
.buy-needs { white-space: pre-line; background: #f5f3ee; border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; line-height: 1.6; }
.buy-match { margin-top: 8px; font-size: 14px; line-height: 1.7; }

/* ---------- all catalogs, manager (officecat.js) ---------- */
.oc-bar { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.oc-seg { margin: 12px 0 0; }
.oc-filters { background: #fff; border: 1.5px solid #e6e1d6; border-radius: 14px; padding: 10px 12px; }
.oc-filters summary { font-weight: 700; cursor: pointer; }
.oc-f { margin-top: 10px; } .oc-f b { display: block; font-size: 14px; margin-bottom: 6px; }
.oc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; } .oc-row label { font-size: 13px; color: #4a463d; }
.oc-count { margin: 14px 16px 6px; color: #6f6a60; font-size: 14px; }
.oc-st { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.oc-st.on { background: #e5f4ea; color: #14522f; } .oc-st.excl { background: #fdf3dc; color: #6b4a07; } .oc-st.off { background: #eee; color: #6f6a60; }
.oc-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ctl.small { padding: 6px 8px; font-size: 14px; width: auto; min-height: 38px; }
.oc-agent { padding: 0; overflow: hidden; }
.oc-agent summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.oc-agent summary::-webkit-details-marker { display: none; }
.oc-agent .avatar { width: 44px; height: 44px; font-size: 14px; flex: none; }
.oc-nums { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.oc-total { background: #1b1a17; color: #f2b32e; font-weight: 800; border-radius: 999px; min-width: 34px; text-align: center; padding: 4px 10px; }
.oc-item { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid #ebe7de; }
.oc-item .t { font-weight: 700; } .oc-item .s { color: #6f6a60; font-size: 14px; }
.oc-table-wrap { margin: 0 16px; }
.oc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 14px; }
.oc-table th { background: #1b1a17; color: #f2b32e; text-align: right; padding: 10px 8px; font-weight: 700; white-space: nowrap; }
.oc-table td { padding: 9px 8px; border-top: 1px solid #ebe7de; vertical-align: top; }
.oc-table .muted { font-size: 12px; }
@media (max-width: 760px) { /* phones: each row becomes a card */
  .oc-table, .oc-table tbody, .oc-table tr, .oc-table td { display: block; width: 100%; }
  .oc-table thead { display: none; }
  .oc-table { background: none; }
  .oc-table tr { background: #fff; border-radius: 14px; margin-bottom: 10px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(27,26,23,.06), 0 2px 8px rgba(27,26,23,.06); }
  .oc-table td { border: 0; padding: 3px 0; display: flex; gap: 8px; }
  .oc-table td[data-l]::before { content: attr(data-l); color: #6f6a60; min-width: 64px; flex: none; }
  .oc-td-acts { padding-top: 8px !important; }
}
.oc-bar .ctl, #arch-q, .oc-acts .ctl, .oc-row .ctl { border: 1.5px solid #e6e1d6; border-radius: 12px; background: #fff; font: inherit; }
.oc-bar > .ctl, #arch-q { padding: 11px 12px; font-size: 16px; width: 100%; }
.oc-acts .ctl.small { padding: 6px 10px; }

.oc-wa { color: #1faa53; border-color: #bfe5cc; }
.oc-pick { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; cursor: pointer; }
.oc-pick input { width: 22px; height: 22px; accent-color: #1faa53; cursor: pointer; }
.oc-table tr.sel, .oc-item.sel { background: #effaf2; }
.oc-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oc-selbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  background: #1b1a17; color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
.oc-selbar .pill { width: auto; min-height: 46px; padding: 0 18px; }
.oc-selbar .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
#oc-out { padding-bottom: 90px; }
@media (max-width: 760px) { .oc-table td.oc-pick-td { position: absolute; left: 6px; top: 6px; width: auto; padding: 0; } .oc-table tr { position: relative; } }

/* property description */
.desc-box { min-height: 150px; line-height: 1.6; }
.desc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.desc-src { font-size: 13px; color: #6f6a60; }

.prop-photos { margin: 4px 0 0; }
.oc-thumb { position: relative; display: inline-flex; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: #ebe7de; vertical-align: middle; margin-inline-end: 8px; flex: none; align-items: center; justify-content: center; color: #9a9384; }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oc-thumb small { position: absolute; bottom: 2px; left: 2px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; border-radius: 6px; padding: 0 5px; }
.oc-thumb .i { width: 18px; height: 18px; }

/* duplicate property warning */
.dup-warn { margin: 0 16px 12px; background: #fdecea; border: 1.5px solid #e5a29b; color: #6d1b14; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.dup-warn b { display: inline-flex; align-items: center; gap: 6px; }
.dup-warn p { margin: 6px 0 0; }
.dup-warn .i { width: 18px; height: 18px; }

/* a newer version is available */
.new-version { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px;
  background: #1b1a17; color: #f2b32e; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; max-width: calc(100% - 32px); }
.new-version .i { width: 18px; height: 18px; }

.oc-thumb.oc-nophoto { flex-direction: column; gap: 2px; background: #f5f3ee; border: 1.5px dashed #d9cfb8; color: #8a8373; font-size: 11px; text-align: center; line-height: 1.2; }
.oc-thumb.oc-nophoto[data-act] { color: #8a6a12; cursor: pointer; background: #fffdf8; }
.oc-thumb.oc-nophoto .i { width: 16px; height: 16px; }

/* Yad2 publishing station */
.y2-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 9px; margin-top: 4px; white-space: nowrap; }
.y2-tag:empty { display: none; }
.y2-tag.on { background: #e5f4ea; color: #14522f; } .y2-tag.wait { background: #fdf3dc; color: #6b4a07; }
.y2-tag.fail { background: #fbe9e4; color: #8a2c17; } .y2-tag.off { background: #eee; color: #6f6a60; }
.col-acts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.y2-miss { margin: 8px 0; padding-inline-start: 22px; line-height: 1.8; font-weight: 600; }
.y2-how p { line-height: 1.6; }

/* office catalog: a closer look at one property */
.oc-view .oc-gal { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.oc-view .oc-gal img { width: 100%; border-radius: 12px; display: block; background: #ebe7de; }
.oc-view .oc-price { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-view .oc-addr { color: #6f6a60; margin: 2px 0 10px; }
.oc-view .oc-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.oc-view .oc-kv > div { background: #f5f3ee; border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; }
.oc-view .oc-kv .muted { font-size: 12px; }
.oc-view .oc-desc { white-space: pre-wrap; line-height: 1.6; background: #fff; border: 1px solid #e6e1d6; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.oc-view .oc-agentline { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.oc-view .oc-agentline .avatar { width: 32px; height: 32px; }
.oc-thumb[data-act="oc-view"] { cursor: pointer; }

/* interface language */
.lang-pick { justify-content: center; margin-top: 12px; }
.lang-pick button { min-height: 36px; font-size: 14px; }
/* English / French: the screens read left to right (the agreement itself stays as written) */
html.ui-ltr body { direction: ltr; }
html.ui-ltr #paper, html.ui-ltr .paper { direction: rtl; }
html.ui-ltr .drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 8px 0 24px rgba(0,0,0,.12); }
html.ui-ltr.drawer-open .drawer, html.ui-ltr .drawer-open .drawer { transform: none; }
/* the office logo at the top left of every agreement */
.paper .doc-logo { float: left; margin: 0 0 10px 14px; }
.paper .doc-logo img { display: block; max-height: 72px; max-width: 170px; border-radius: 8px; }
/* English / French: arrows point the other way */
html.ui-ltr svg.i-left, html.ui-ltr svg.i-right { transform: scaleX(-1); }
/* the translation of an agreement (English / French) under the binding Hebrew text */
.paper .translation { direction: ltr; text-align: left; margin-top: 28px; padding-top: 16px; border-top: 2px dashed #999; }
.paper .translation .tr-head { background: #fdf3dc; border: 1px solid #efd79b; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: .9em; }
.paper .translation .tr-head p { margin: 4px 0 0; }
.paper .translation .kv div { direction: ltr; }
