/* The new design's components and pages (TENDER_UI3). Loaded only on pages
   of the new design (body.u3-new), which do not load style.css, so the
   mockup's own short class names are safe here. Values are the mockup's.
   Pieces of today's base also appear on these pages (#flash and the
   server's flash partial, the #dialog overlay, the technical disclosure):
   they are styled at the end of this file. */

/* :where keeps these at zero weight, so a component's own colour wins. */
.u3-new :where(button, input, textarea, select) { font: inherit; color: inherit; }
/* :where keeps this at zero weight, so a button-link or the rail keeps its own colour. */
.u3-new :where(a) { color: var(--u-pen); }

/* ---- buttons ----
   Three kinds that differ at a glance, not only by colour:
   primary  the pen's ink: solid blue, white words, its own blue shadow, so it
            stands up off the paper; one per place, the next step;
   (plain)  a key: white, a visible edge and a bottom shadow;
   ghost    quiet: no box at all until the pointer comes.
   Every kind presses in (scale .97, 120 ms) and shows a spinner while busy.
   Heights come from the control tokens in ui3.css (--u-ctl, --u-ctl-s). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--u-ctl); padding: 0 14px;
  border-radius: var(--u-r-s); border: 1px solid var(--u-line-2); background: var(--u-white); color: var(--u-ink);
  font-weight: 500; font-size: var(--u-fs-m); line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--u-sh-key);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform var(--u-t-1) var(--u-ease);
}
.btn:hover { background: var(--u-paper); border-color: var(--u-line-3); text-decoration: none; }
.btn:active { transform: scale(.97); box-shadow: none; background: var(--u-paper-2); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: saturate(.5);
}
.btn-primary { background: var(--u-pen); border-color: var(--u-pen-2); color: #fff; font-weight: 600; box-shadow: var(--u-sh-pen); }
.btn-primary:hover { background: var(--u-pen-2); border-color: var(--u-pen-3); color: #fff; }
.btn-primary:active { background: var(--u-pen-3); border-color: var(--u-pen-3); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--u-ink-2); box-shadow: none; }
.btn-ghost:hover { background: rgba(20, 27, 45, .06); border-color: transparent; color: var(--u-ink); }
.btn-ghost:active { background: rgba(20, 27, 45, .1); }
.btn-small { min-height: var(--u-ctl-s); padding: 0 10px; font-size: var(--u-fs-s); }
.btn-icon { padding: 0; width: var(--u-ctl); }
.btn-small.btn-icon { width: var(--u-ctl-s); }
/* Busy: the words stay, a small ring turns beside them (a form being sent). */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-block-start-color: transparent; opacity: .8;
  animation: u3-spin .7s linear infinite;
}
@keyframes u3-spin { to { transform: rotate(360deg); } }

/* ---- marks: the highlighter ----
   A stroke of a highlighter, not a pill: slightly uneven ends (each corner its
   own radius), the ink a touch deeper at the bottom where a marker pools. */
.mark {
  padding: .1em .45em; border-radius: .25em .5em .3em .45em / .45em .3em .5em .3em;
  background-color: var(--u-hl); background-image: linear-gradient(to top, rgba(20, 27, 45, .05), transparent 45%);
  color: var(--u-ink); font-weight: 500;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: nowrap;
}
/* background-color only: the pooling gradient above stays on every tone. */
.mark.soft { background-color: var(--u-hl-soft); }
.mark.ok { background-color: var(--u-ok); color: var(--u-ok-ink); }
.mark.stop { background-color: var(--u-stop); color: var(--u-stop-ink); }
.mark.busy { background-color: var(--u-busy); color: var(--u-busy-ink); }
.mark.plain { background-color: var(--u-paper-3); background-image: none; color: var(--u-ink-2); }
.fresh { position: relative; isolation: isolate; }
.fresh::before {
  content: ""; position: absolute; inset: -1px -5px; border-radius: 3px; background: var(--u-ok); z-index: -1;
  transform-origin: 100% 50%; animation: u3-stroke .45s var(--u-ease) both, u3-fade .7s ease 2.4s forwards;
}
@keyframes u3-stroke { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes u3-fade { to { opacity: 0; } }
.link {
  background: none; border: 0; padding: 0; color: var(--u-pen); cursor: pointer; font-size: inherit;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.link:hover { text-decoration-color: currentColor; }
/* ---- small parts: a file's name, a chip, a key ----
   A file's name is a paper tag (a tint, no edge), so it is never taken for a
   button; a chip is a pill that leads somewhere and turns the pen's colour
   under the pointer. */
.file {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px;
  border: 1px solid transparent; border-radius: 6px; background: var(--u-paper-3); font-size: var(--u-fs-s); color: var(--u-ink-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
.file bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .u3-i { width: 15px; height: 15px; color: var(--u-pen); }
/* A tender's name the conversation holds (web/mentions.py): a link to the
   file, and a code name's few words beside it, visible, not only on hover. */
.ref { color: var(--u-pen); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ref:hover { color: var(--u-pen-2); }
a.file.ref { color: var(--u-ink-2); text-decoration: none; }
a.file.ref:hover { border-color: var(--u-pen); background: var(--u-pen-tint); color: var(--u-pen-2); }
.ref-w { font-size: var(--u-fs-s); font-weight: 400; color: var(--u-ink-3); }
.flist li:has(.ref-w) { flex-wrap: wrap; }
.flist .ref-w { flex-basis: 100%; padding-inline-start: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--u-ctl-s); padding: 0 12px;
  border: 1px solid var(--u-line); border-radius: 999px; background: var(--u-white); font-size: var(--u-fs-s);
  color: var(--u-ink-2); text-decoration: none; cursor: pointer; box-shadow: var(--u-sh-key);
  transition: background-color .15s, border-color .15s, color .15s, transform var(--u-t-1) var(--u-ease);
}
.chip .u3-i { color: var(--u-pen); }
.chip:hover { background: var(--u-pen-tint); border-color: var(--u-pen-tint-2); color: var(--u-pen-2); text-decoration: none; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--u-pen-tint); border-color: var(--u-pen); color: var(--u-pen-2); font-weight: 500; }
.hint { font-size: var(--u-fs-s); color: var(--u-ink-3); }
.empty { font-size: var(--u-fs-m); color: var(--u-ink-3); margin: 0; }
kbd {
  font-family: inherit; font-size: .75rem; padding: 1px 6px; border: 1px solid var(--u-line-2); border-bottom-width: 2px;
  border-radius: 5px; background: var(--u-white); color: var(--u-ink-2); direction: ltr; unicode-bidi: isolate;
}

/* ---- ordinary pages: home, bin, cases ----
   A page title with presence (26 px, bold, tight), the lead under it at
   reading size, and section headings a clear step above the body. The space
   between the sheets (44 px above a section) is the rhythm Alon liked; it
   shrank with the type (it was 52) so the proportion holds. */
.page-in { max-width: 58rem; margin-inline: auto; padding: 36px 28px 96px; }
.page-in h1 {
  font-size: var(--u-fs-xl); font-weight: 700; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.02em; text-wrap: balance;
}
.page-in .sub { color: var(--u-ink-2); font-size: var(--u-fs-b); line-height: 1.6; margin: 0 0 22px; max-width: 62ch; }
.page-in h2 {
  display: flex; align-items: center; gap: 10px; font-size: var(--u-fs-h); font-weight: 650; letter-spacing: -.01em;
  margin: 44px 0 12px;
}

/* ---- the home: two columns (version B, Alon's choice of 2026-11-30) ----
   The main column beside the rail (the reading start): what waits for the
   lawyer, then every tender. Beside it a 380-wide raised sheet, "מכרז חדש".
   The pair is at most 1160 wide, as drawn: at Alon's 1500 x 814 (150%) it
   fills the work area and the main column starts 32 from the rail. Under a
   900-wide work area the columns stack, the start sheet on top, as the home
   has it today on a phone. The rows answer their own
   column's width (a container), not the window's, since the rail and the
   side sheet take a share of it. */
/* 96 below, as .page-in: when the columns stack the table reaches the
   bottom corner where the feedback helper's button rests (52 high, 16 in).
   At 1500 x 814 the page still ends inside the screen. */
.home { container: u3-home / inline-size; padding: 28px 32px 96px; }
/* The pair stays beside the rail at every width (Alon: the old page's sheets
   sat "a bit in the middle"); up to about 1500 it fills the work area anyway. */
.home-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; max-width: 1160px; }
.home-main { min-width: 0; container: u3-home-main / inline-size; }
.home-sec + .home-sec { margin-top: 28px; }
.home-h1, .home-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.3; }
.home-h1 { font-size: var(--u-fs-l); font-weight: 700; }
.home-h1 .mark { padding: .05em .45em; font-size: var(--u-fs-b); font-weight: 600; }
.home-h2 { font-size: var(--u-fs-h); font-weight: 650; }
.home-lead { margin: 8px 0 0; max-width: 62ch; font-size: var(--u-fs-m); line-height: 1.6; color: var(--u-ink-2); }
.more-link { margin: 14px 0 0; }

/* What waits: one sheet, a row per tender in three parts — the title with
   the authority it is written for under it; its stage as a line of six; the
   highlighter on what it waits for and the open button. About 72 high. */
.wait-rows {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--u-line); border-radius: var(--u-r); background: var(--u-white); box-shadow: var(--u-sh-1);
}
.wait-rows li {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 232px; grid-template-areas: "t s a";
  column-gap: 24px; row-gap: 8px; align-items: center; padding: 13px 18px;
  border-block-end: 1px solid var(--u-line); transition: background-color .15s;
}
.wait-rows li:last-child { border-block-end: 0; }
.wait-rows li:hover { background: var(--u-paper); }
/* Two lines' room, the title's (1lh: the box is the title's size) and the
   name's (--u-fs-s at the body's 1.55), with the title centred in it: a
   tender with no authority keeps its row as high as the others. */
.wr-t {
  grid-area: t; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  font-size: var(--u-fs-b); min-block-size: calc(1lh + var(--u-fs-s) * 1.55);
}
.wr-t a {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--u-fs-b); font-weight: 600; color: var(--u-ink); text-decoration: none;
}
.wr-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The line under a tender's name: the authority it is written for, and for
   a tender the authority opened itself "· שיחה של רשות". In the waiting rows
   it is one line, as the title is: too long for its column, the name gives
   way (an ellipsis; the whole name is its tooltip) and the mark stays whole.
   The space before the mark draws nothing in this flex line; the gap does. */
.home .org { display: flex; gap: .3em; white-space: nowrap; font-size: var(--u-fs-s); font-weight: 400; color: var(--u-ink-3); }
.home .org > bdi { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home .org-own { flex: none; white-space: nowrap; }
.wr-a { grid-area: a; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--u-fs-s); }
/* The stage line: done in the pen's blue; the stage that waits in its
   highlighter with a dark edge, so it differs from an empty segment in more
   than hue; not reached in the line's grey; all six green once delivered. */
.stage-line { grid-area: s; min-width: 0; }
.segs { display: flex; gap: 4px; }
.seg { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--u-line-2); }
.seg.done { background: var(--u-pen); }
.seg.now { background: var(--u-hl); box-shadow: inset 0 0 0 1.5px var(--u-ink); }
.seg.now.stop { background: var(--u-stop); box-shadow: inset 0 0 0 1.5px var(--u-stop-ink); }
.seg.now.busy { background: var(--u-busy); box-shadow: inset 0 0 0 1.5px var(--u-busy-ink); }
.seg.now.plain { background: var(--u-paper-3); box-shadow: inset 0 0 0 1.5px var(--u-ink-3); }
.segs.ok .seg { background: #2E9E55; box-shadow: none; }   /* the delivery card's green tab */
.stage-cap { display: block; margin-top: 5px; font-size: var(--u-fs-xs); color: var(--u-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The table: the authority a tender is written for sits under its name, in
   the same cell. When any row has a name (the table is .named) every name
   cell keeps that line's room, the title centred in it, as the waiting rows
   do. The delete action is a quiet icon at the row's end. */
.home .table .nm { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.home .table.named .nm { min-block-size: calc(1lh + 1px + var(--u-fs-s) * 1.55); }
/* In the table the line wraps as the title there does: between the name's
   words, and at the space before the mark, which moves whole to the next
   line. One unbreakable line would set the column's least width (a marked
   council's 248 px pushed the table past its wrap at 1280 x 720). */
.home .table td.name .org { display: block; margin-top: 1px; white-space: normal; }
.home .table td.end { width: 1%; padding-block: 4px; text-align: end; }
.del { color: var(--u-ink-3); }
.del:hover { color: var(--u-stop-ink); background: var(--u-stop-tint); }

/* The start sheet is the one raised sheet on the desk: the pen's edge and its
   tint around it, always, as the product's main action; a file dragged over
   it tints it. Its fields are fields (an edge, a hollow); its tools' footer
   strip carries the library line and the start button. */
.starter {
  border: 1px solid var(--u-pen); border-radius: var(--u-r-l); background: var(--u-white);
  box-shadow: 0 0 0 4px var(--u-pen-tint), var(--u-sh-lift);
  overflow: clip; /* the footer strip's tint follows the rounded corners */
  transition: background-color var(--u-t-2);
}
.starter.over { border-style: dashed; background: var(--u-pen-tint); }
.starter-b { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
.starter .home-h2 { margin: 0; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > label:not(.attach) { font-size: var(--u-fs-s); font-weight: 500; color: var(--u-ink-2); }
.starter textarea, .starter select {
  width: 100%; border: 1px solid var(--u-line-field); border-radius: var(--u-r-s); background-color: var(--u-white); color: var(--u-ink);
  box-shadow: inset 0 1px 2px rgba(20, 27, 45, .05); transition: border-color .15s, box-shadow .15s;
}
.starter textarea {
  display: block; min-height: 116px; max-height: 16rem; padding: 9px 12px; resize: vertical;
  font-size: var(--u-fs-m); line-height: 1.6; field-sizing: content;
}
.starter select { height: var(--u-ctl-field); padding: 0 10px; font-size: var(--u-fs-s); cursor: pointer; }
.starter textarea:hover, .starter select:hover { border-color: var(--u-ink-3); }
.starter textarea:focus, .starter select:focus { outline: 0; border-color: var(--u-pen); box-shadow: 0 0 0 3px var(--u-pen-tint); }
.starter textarea::placeholder { color: var(--u-ink-3); }
/* The files box is the file input's label: a dashed tray with the clip, its
   name and, while nothing is picked, the hint as its second line. Scoped to
   the start sheet: the message box's clip button is a label.attach too
   (partials/_ui3_composer.html), and keeps its ghost-icon look. */
.starter .attach {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px dashed var(--u-line-3); border-radius: var(--u-r-s);
  background: var(--u-paper); color: var(--u-ink-2); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.starter .attach:hover { border-color: var(--u-pen); background: var(--u-pen-tint); }
.starter .attach .u3-i { width: 20px; height: 20px; color: var(--u-pen); }
.attach-t { display: flex; flex-direction: column; min-width: 0; }
.attach-t b { font-size: var(--u-fs-s); font-weight: 600; color: var(--u-ink); }
.starter-hint { line-height: 1.45; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked:empty { display: none; }
.start-err { margin: 0; font-size: var(--u-fs-s); font-weight: 500; color: var(--u-stop-ink); }
.starter-f {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  border-block-start: 1px solid var(--u-line); background: var(--u-paper);
}
.starter-f .hint { flex: 1 1 0; min-width: 0; margin: 0; line-height: 1.45; }
.starter-f .btn-primary { flex: none; min-height: var(--u-ctl-field); padding: 0 24px; font-size: var(--u-fs-m); }

/* A narrower main column (1280 x 720 at 150% leaves it about 530 wide): the
   stage line moves under the title and the table's cells come closer. The
   end column keeps one width (the longest mark, "ממתין להודעה שלך", and the
   button), so every row's line is as long as the next. */
@container u3-home-main (width < 640px) {
  .wait-rows li { grid-template-columns: minmax(0, 1fr) 204px; grid-template-areas: "t a" "s a"; }
  .home .table th, .home .table td { padding-inline: 10px; }
  /* A long mark ("גרסה 1 · נמסרה …") may take two lines, so the names keep room. */
  .home .table .mark { white-space: normal; }
}
/* A phone: each row's three parts one under another. The table scrolls in
   its own box there (as it always has); a name keeps room for two words a line. */
@container u3-home-main (width < 440px) {
  .wait-rows li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "s" "a"; }
  .home .table td.name { min-width: 9.5rem; }
}
/* Too narrow for two columns: one column, the start sheet first. 900, not
   the drawn 520 + 28 + 380: at 1280 x 720 (150%) the page scrolls, and its
   scrollbar leaves the work area 925 wide, where two columns still read. */
@container u3-home (width < 900px) {
  .home-in { grid-template-columns: minmax(0, 1fr); }
  .starter { order: -1; }
}
/* relative: a hidden label inside (.u3-sr is absolute) must stay in the
   scroll box, or it widens the whole page on a phone. The table is a sheet
   too; its head is a quiet band. */
.tablewrap {
  position: relative; overflow-x: auto;
  border: 1px solid var(--u-line); border-radius: var(--u-r); background: var(--u-white); box-shadow: var(--u-sh-1);
}
.table { width: 100%; border-collapse: collapse; font-size: var(--u-fs-m); }
.table th {
  text-align: start; font-weight: 600; color: var(--u-ink-2); font-size: var(--u-fs-xs); letter-spacing: .02em;
  padding: 9px 14px; background: var(--u-paper-2); border-bottom: 1px solid var(--u-line); white-space: nowrap;
}
.table td { padding: 9px 14px; border-bottom: 1px solid var(--u-line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--u-paper); }
.table tr[data-href] { cursor: pointer; }
.table td.name { font-weight: 500; }
.table td.name a { color: var(--u-ink); text-decoration: none; }
.table td.name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.table .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.table .acts form { margin: 0; }
.table .row-sub { display: block; font-weight: 400; }
/* The same segmented control as the library's shelves (ui3.css .u3-tabs). */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--u-desk-2); border-radius: 11px; margin-bottom: 14px;
  box-shadow: inset 0 1px 2px rgba(20, 27, 45, .08);
}
.tabs a {
  display: inline-flex; align-items: center; min-height: var(--u-ctl); padding: 0 14px; border-radius: var(--u-r-s);
  font-size: var(--u-fs-m); color: var(--u-ink-2); text-decoration: none; transition: background-color .15s, color .15s;
}
.tabs a:hover { color: var(--u-ink); background: rgba(255, 255, 255, .5); }
.tabs a[aria-current="page"] { background: var(--u-white); color: var(--u-ink); font-weight: 600; box-shadow: var(--u-sh-key); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.toolbar .sp { flex: 1; }
/* A notice is a tinted slip in its highlighter's colour, its icon in the
   colour's ink: green done, yellow wait, pink blocks. */
.notice {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 9px 12px; border-radius: var(--u-r);
  border: 1px solid var(--u-line-2); background: var(--u-white); font-size: var(--u-fs-m); line-height: 1.55;
}
.notice .u3-i { margin-top: 2px; }
.notice.ok { background: var(--u-ok-tint); border-color: var(--u-ok-line); color: var(--u-ok-ink); }
.notice.wait { background: var(--u-hl-tint); border-color: var(--u-hl-line); }
.notice.wait .u3-i { color: #8A6400; }
.notice.stop { background: var(--u-stop-tint); border-color: var(--u-stop); color: var(--u-stop-ink); }

/* ---- today's pieces on a new page: the flash partial, the dialog, the
   technical disclosure (partials/_flash.html, _dialog_flash.html, dialogs.js) ---- */
.flash {
  margin: 12px 0; padding: 9px 12px; border-radius: var(--u-r); border: 1px solid var(--u-line-2);
  background: var(--u-white); font-size: var(--u-fs-m);
}
.flash-ok { background: var(--u-ok-tint); border-color: var(--u-ok-line); color: var(--u-ok-ink); }
.flash-warn { background: var(--u-hl-tint); border-color: var(--u-hl-line); color: var(--u-ink); }
.flash-error { background: var(--u-stop-tint); border-color: var(--u-stop); color: var(--u-stop-ink); }
.flash-msg { font-weight: 600; }
.flash-detail, .technical pre {
  margin: 8px 0 0; font-size: var(--u-fs-xs); white-space: pre-wrap; overflow-x: auto; color: var(--u-ink);
  background: rgba(255, 255, 255, .7); border-radius: 6px; padding: 8px; direction: ltr; unicode-bidi: isolate;
}
/* A dialog rises from just below its place (it is centred, not anchored to a
   button, so it grows from the centre). */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20, 27, 45, .42);
}
.dialog-box {
  width: 100%; max-width: 30rem; padding: 22px; border-radius: var(--u-r-l); background: var(--u-white); box-shadow: var(--u-sh-2);
  animation: u3-rise var(--u-t-2) var(--u-ease) both;
}
@keyframes u3-rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-box h3 { margin: 0 0 10px; font-size: var(--u-fs-l); font-weight: 700; letter-spacing: -.01em; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toast {
  position: fixed; inset-block-end: 26px; left: 50%; z-index: 80; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 10px; background: var(--u-ink); color: #fff; font-size: var(--u-fs-m);
  transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s var(--u-ease), visibility 0s .2s;
}
.toast.u3-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s var(--u-ease); }

/* ---- the sign-in page ----
   The rail's navy fills the top of the page and the card, a raised sheet,
   stands across its edge: the product's own colours before anyone is in. */
body.u3.login-page { background: var(--u-desk) linear-gradient(to bottom, var(--u-rail) 0, var(--u-rail-0) 42%, var(--u-desk) 42%) no-repeat; }
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: min(100%, 25rem); padding: 28px 24px 22px; border: 1px solid var(--u-line); border-radius: var(--u-r-l);
  background: var(--u-white); box-shadow: var(--u-sh-lift), 0 30px 60px -30px rgba(10, 18, 36, .45);
}
.login-brand { display: grid; justify-items: center; gap: 12px; margin-bottom: 8px; }
.login-brand h1 { margin: 0; font-size: var(--u-fs-l); font-weight: 700; letter-spacing: -.01em; }
.login-sub { margin: 0 0 8px; text-align: center; font-size: var(--u-fs-s); color: var(--u-ink-2); }
.login-card .notice { margin: 12px 0 0; }
.login-field { display: grid; gap: 6px; margin-top: 16px; }
.login-field label { font-weight: 500; font-size: var(--u-fs-m); }
.login-field .field-in { width: 100%; }
.login-field .code { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.login-go { width: 100%; margin-top: 20px; min-height: 40px; }
.login-links { display: grid; gap: 6px; justify-items: center; margin: 16px 0 0; font-size: var(--u-fs-s); }

/* ---- the conversation as a workspace ----
   The panel is 320 wide (it was 340): on a 1280-wide screen at 150% the
   thread keeps room for a card beside it. */
.conv { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: minmax(0, 1fr); min-height: 0; height: 100%; }
.conv.sheet-closed { grid-template-columns: minmax(0, 1fr); }
.conv.sheet-closed .sheet { display: none; }
.conv-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
/* The header lies on the desk, above the thread: the title at a title's
   size, and the six stages as a line of progress (done ones ticked in green
   and joined by a green line, the current one highlighted, the rest grey). */
.conv-h {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center;
  padding: 14px 24px 12px; border-bottom: 1px solid var(--u-line-2); background: var(--u-desk);
}
.conv-h h1 {
  margin: 0; font-size: var(--u-fs-l); font-weight: 700; letter-spacing: -.015em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-h p { margin: 2px 0 0; font-size: var(--u-fs-s); color: var(--u-ink-3); }
/* Always in the grid (an empty one is 0 high): hiding it would shift the
   thread into the header's auto row. */
.conv-flash { padding: 0 24px; }
.stages { grid-column: 1 / -1; }
.steps-short { display: none; margin: 0; font-size: var(--u-fs-s); color: var(--u-ink-2); }
.steps { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 0; padding: 0; font-size: var(--u-fs-s); color: var(--u-ink-3); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ""; width: 22px; height: 2px; border-radius: 1px; background: var(--u-line-2); margin-inline: 8px; }
.steps .done + li::before { background: var(--u-ok-line); }
.steps .done { color: var(--u-ink-2); }
.steps .done .u3-i {
  width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--u-ok); color: var(--u-ok-ink); stroke-width: 2.6;
}
.steps .now { color: var(--u-ink); font-weight: 600; }
.steps .now .mark { padding-block: .2em; }

.thread { overflow: auto; min-height: 0; scrollbar-gutter: stable; padding: 24px 24px 14px; overscroll-behavior: contain; }
.thread-in, .u3-log { display: flex; flex-direction: column; gap: 20px; }
.thread-in { max-width: 46rem; margin-inline: auto; }
.u3-log:empty { display: none; }
.u3-log > .live-item[data-group="card"], .u3-log > .live-item[data-group="line"],
.u3-log > .live-item[data-group="notice"], .u3-log > .steps-fold, .thread-in > .working { margin-inline-start: 40px; }
.u3-log > .live-item[data-kind="user"] { align-self: flex-end; max-width: min(85%, 36rem); }
.u3-log > .live-item[data-group="step"]:not(.u3-shown) { display: none; }
.u3-log .u3-arrive { animation: u3-arrive .28s var(--u-ease) both; }
@keyframes u3-arrive { from { opacity: 0; transform: translateY(6px); } }
.thread-empty { padding: 40px 0; text-align: center; color: var(--u-ink-2); }
.thread-empty h2 { margin: 0 0 8px; font-size: var(--u-fs-l); font-weight: 700; letter-spacing: -.01em; color: var(--u-ink); }
.thread-empty p { margin: 0 auto; max-width: 52ch; line-height: 1.65; }

/* Messages: the brain's words lie on the desk at reading size; the lawyer's
   own message is a note in the desk's deeper tone, its corner toward them. */
.msg { font-size: var(--u-fs-b); line-height: 1.7; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-text ul, .msg-text ol { margin: .2em 0; padding-inline-start: 1.3em; white-space: normal; }
.msg.user { background: var(--u-desk-2); padding: 9px 15px; border-radius: 18px; border-end-end-radius: 6px; }
.msg.user p { margin: 0; }
.msg .who { display: block; font-size: var(--u-fs-xs); color: var(--u-ink-3); }
/* On the note's deeper tone the lightest grey falls under 4.5:1; the next one up. */
.msg.user .who, .msg.user .answers-h { color: var(--u-ink-2); }
/* The lawyer's answers in their message and in the panel (Q5a): each question, its value under it. */
.msg .answers { margin-top: 2px; }
.msg-text + .answers { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--u-line); }
.answers-h { font-size: var(--u-fs-xs); color: var(--u-ink-3); }
.answers dl, .facts.answered { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 4px 0 0; }
.answers dt, .facts.answered dt { font-size: var(--u-fs-s); color: var(--u-ink-2); }
.answers dt:not(:first-child), .facts.answered dt:not(:first-child) { margin-top: 6px; }
.answers dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.msg.brain { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.msg.brain .mk { width: 30px; height: 30px; margin-top: 2px; border-radius: 8px; box-shadow: var(--u-sh-key); }
.msg.brain .msg-text { max-width: 68ch; }

/* ---- the three cards ----
   A card is a sheet on the desk. Its kind shows before a word is read: a
   coloured tab before its title and a head tinted in that colour.
     questions  yellow: the lawyer's turn to answer;
     plan       the pen's blue: the brain's proposal, its steps numbered in blue;
     delivery   green: a version is done (pink if the brain stopped early).
   An answered or closed card is filed away: grey head, grey tab, flat.
   The kinds are found by what each card holds (templates_ui3/partials/
   _ui3_cards.html): the questions' body is .card-b.ask, the plan has the .kv
   list of its base, a delivery's id starts "delivery-". */
.card {
  --u-card-tab: var(--u-line-3); --u-card-head: var(--u-white); --u-card-edge: var(--u-line);
  border: 1px solid var(--u-line); border-radius: 14px; background: var(--u-white); box-shadow: var(--u-sh-1);
  overflow: clip; transition: box-shadow var(--u-t-2);
}
.card:has(.card-b.ask) { --u-card-tab: var(--u-hl); --u-card-head: var(--u-hl-tint); --u-card-edge: #F3E3A0; }
.card:has(.kv) { --u-card-tab: var(--u-pen); --u-card-head: #F1F4FE; --u-card-edge: var(--u-pen-tint-2); }
.card[id^="delivery-"] { --u-card-tab: #2E9E55; --u-card-head: var(--u-ok-tint); --u-card-edge: #CDEBD5; }
.card[id^="delivery-"]:has(.card-b > .line.stop) { --u-card-tab: #D6456A; --u-card-head: var(--u-stop-tint); --u-card-edge: var(--u-stop); }
.card[data-state="answered"], .card[data-state="closed"] {
  --u-card-tab: var(--u-line-3); --u-card-head: var(--u-paper-2); --u-card-edge: var(--u-line);
  box-shadow: var(--u-sh-key);
}
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px;
  border-bottom: 1px solid var(--u-card-edge); background: var(--u-card-head);
}
.card-h h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--u-fs-b); font-weight: 650; letter-spacing: -.005em; }
.card-h h3::before { content: ""; flex: none; width: 9px; height: 16px; border-radius: 3px; background: var(--u-card-tab); }
.card-b { padding: 16px 18px; }
.card-f {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px;
  border-top: 1px solid var(--u-line); background: var(--u-paper);
}
.card[data-state="answered"] .card-b, .card[data-state="closed"] .card-b { color: var(--u-ink-2); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0 0 14px; font-size: var(--u-fs-m); align-items: center; }
.kv dt { color: var(--u-ink-3); }
.kv dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* The plan's steps, numbered in the pen's blue: the numbers are counters in
   a tinted disc, the text at reading size. */
.plan-steps { margin: 0; padding: 0; list-style: none; counter-reset: u3-step; display: grid; gap: 8px; font-size: 1rem; line-height: 1.6; }
.plan-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: u3-step; }
.plan-steps li::before {
  content: counter(u3-step); display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; background: var(--u-pen-tint); color: var(--u-pen-2); font-size: var(--u-fs-s); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card[data-state="answered"] .plan-steps li::before, .card[data-state="closed"] .plan-steps li::before {
  background: var(--u-paper-3); color: var(--u-ink-2);
}
/* A question: its label, why it is asked, the answer, and the line that says
   where a filled answer came from. The lines sit 4 px apart; the line under
   the answer (a <p class="hint">) loses the paragraph's own 14 px margins, or
   each question carried 28 px of air nobody asked for. 18 px between
   questions keeps each one a group (four times the space inside it). */
.inq { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--u-line-2); display: grid; gap: 16px; }
.ask { display: grid; gap: 18px; }
.q { display: grid; gap: 4px; justify-items: start; }
.q .lbl { font-weight: 600; font-size: 1rem; line-height: 1.5; }
.q > .hint { margin: 0; line-height: 1.45; }
.q.note { margin-top: 6px; }
.why { margin: 0; font-size: var(--u-fs-s); font-weight: 400; line-height: 1.45; color: var(--u-ink-3); }

/* ---- fields ----
   A field is a slight hollow in the paper (an inner shadow) with an edge
   that still reads when it is empty (3.3:1); the edge darkens under the
   pointer, and writing in it rings it in the pen's blue. */
.field-in, .money {
  border: 1px solid var(--u-line-field); border-radius: var(--u-r-s); background: var(--u-white); font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(20, 27, 45, .05);
  transition: border-color .15s, box-shadow .15s;
}
.field-in:hover, .money:hover { border-color: var(--u-ink-3); }
/* The answer keeps 16 px: smaller, a phone's browser zooms into the field. */
.field-in { width: min(100%, 30rem); padding: 7px 11px; line-height: 1.5; resize: vertical; }
input.field-in { height: var(--u-ctl-field); }
.field-in.date { width: 11rem; text-align: end; font-variant-numeric: tabular-nums; }
/* A date answer: the box and, with the script, a calendar that fills it. */
.date-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field-in.cal { width: 11rem; padding-block: 0; color: var(--u-ink-2); font-variant-numeric: tabular-nums; }
.field-in:focus, .money:focus-within { outline: 0; border-color: var(--u-pen); box-shadow: 0 0 0 3px var(--u-pen-tint); }
.field-in::placeholder, .money input::placeholder { color: var(--u-ink-3); }
.money { display: inline-flex; align-items: center; gap: 8px; width: 13rem; height: var(--u-ctl-field); padding: 0 11px; }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; text-align: end; font-variant-numeric: tabular-nums; }
/* The box rings itself (above); no second, square ring on the number inside. */
.money input:focus-visible { outline: none; }
.money > span { color: var(--u-ink-3); font-weight: 500; }
/* A short quote from the document, in a book face on a slip of paper. */
.quote {
  margin: 0 0 4px; padding: 8px 12px; background: var(--u-paper); border: 1px solid var(--u-line); border-radius: var(--u-r-s);
  font-family: "David Libre", "David", "Frank Ruhl Libre", "Times New Roman", serif; font-size: 1.0625rem; line-height: 1.55; color: var(--u-ink-2);
}
.quote small { display: block; font-family: var(--u-font); font-size: var(--u-fs-xs); color: var(--u-ink-3); }
/* Choices: pills; the chosen one takes the pen's blue, a double edge and a tick. */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--u-ctl); padding: 0 14px; border: 1px solid var(--u-line-2);
  border-radius: 999px; background: var(--u-white); color: var(--u-ink-2); box-shadow: var(--u-sh-key);
  transition: background-color .15s, border-color .15s, color .15s, transform var(--u-t-1) var(--u-ease);
}
.opt:hover span { background: var(--u-paper); border-color: var(--u-line-3); color: var(--u-ink); }
.opt:active span { transform: scale(.97); }
.opt input:checked + span {
  background: var(--u-pen-tint); border-color: var(--u-pen); color: var(--u-pen-2); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--u-pen);
}
/* The tick is drawn by two borders turned 45 degrees; a tick is never mirrored. */
.opt input:checked + span::before {
  content: ""; width: 5px; height: 10px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.opt input:focus-visible + span { outline: 2px solid var(--u-pen); outline-offset: 2px; }

/* ---- the brain at work ----
   The light-blue highlighter is the brain's colour. While it works, its line
   is tinted blue, a soft light passes along it in the reading direction (right
   to left: translateX from +100% to -100%, the document is always RTL), and
   the pen's dot sends out a ring (u3-ping, in ui3.css): alive without moving
   any layout, transform and opacity only. */
.working {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px;
  padding: 10px 14px; border: 1px solid var(--u-busy); border-radius: var(--u-r); background: var(--u-busy-tint);
}
.working::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  transform: translateX(100%); animation: u3-sweep 2.4s var(--u-ease) infinite;
}
@keyframes u3-sweep { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.working form { margin: 0; }
.pulse {
  position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--u-pen);
  animation: u3-pulse 1.4s ease-in-out infinite;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--u-pen);
  animation: u3-ping 1.4s var(--u-ease) infinite;
}
@keyframes u3-pulse { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.w-t { min-width: 0; font-size: var(--u-fs-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-t strong { font-weight: 600; margin-inline-end: 8px; color: var(--u-busy-ink); }
.w-t span { color: var(--u-ink-2); }
.w-time { font-size: var(--u-fs-s); color: var(--u-busy-ink); }
.w-log { grid-column: 1 / -1; font-size: var(--u-fs-s); color: var(--u-ink-2); }
.w-log summary { cursor: pointer; color: var(--u-ink-2); width: fit-content; }
.w-log ol { margin: 6px 0 2px; padding-inline-start: 1.4em; display: grid; gap: 2px; }
.line { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--u-fs-s); color: var(--u-ink-3); }
.line .u3-i { width: 15px; height: 15px; margin-top: 3px; }
.line.ok { color: var(--u-ok-ink); }
.line.ok .u3-i { color: var(--u-ok-ink); }
.line.wait { color: var(--u-ink-2); }
.line.wait .u3-i { color: #8A6400; }
.line.stop { color: var(--u-stop-ink); font-weight: 500; }
.steps-fold {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none;
  font-size: var(--u-fs-s); color: var(--u-ink-3); cursor: pointer;
}
.steps-fold:hover { color: var(--u-ink); text-decoration: underline; text-underline-offset: 3px; }
.steps-fold::after { content: "▾"; font-size: .8em; transition: transform .18s var(--u-ease); }
.steps-fold[aria-expanded="true"]::after { transform: rotate(180deg); }
.lead { margin: 0 0 14px; font-size: var(--u-fs-b); line-height: 1.65; max-width: 66ch; white-space: pre-wrap; }
/* The delivered tender: a document lying on the card, its icon on a blue
   tile, the download as the card's one primary action. */
.mainfile {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--u-line); border-radius: var(--u-r); background: var(--u-paper); box-shadow: var(--u-sh-key);
}
.mainfile > .u3-i {
  width: 40px; height: 40px; padding: 9px; border-radius: 9px; background: var(--u-pen-tint); color: var(--u-pen); stroke-width: 1.5;
}
.mainfile div { flex: 1; min-width: 0; }
.mainfile strong { display: block; font-weight: 650; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mainfile div span { font-size: var(--u-fs-s); color: var(--u-ink-3); }
.morefiles { list-style: none; margin: 8px 0 0; padding: 0; }
.morefiles li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
/* On a phone a long name shortens (its ellipsis), the download stays whole. */
.morefiles .file, .morefiles .file bdi { min-width: 0; }
.morefiles .btn { flex: none; }
.stats { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; padding: 0; font-size: var(--u-fs-m); }
.stats b { font-weight: 700; }
.blocking {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 10px 14px;
  border-radius: var(--u-r); background: var(--u-stop-tint); border: 1px solid var(--u-stop);
}
.blocking div { flex: 1; min-width: 12rem; }
.blocking strong { display: block; color: var(--u-stop-ink); font-size: var(--u-fs-s); font-weight: 600; }
.blocking ul { margin: 2px 0 0; padding-inline-start: 1.1em; }
.card-b > .line { margin-top: 12px; }
.more { border-top: 1px solid var(--u-line); }
.blocking + .more, .stats + .more, .card-b > .line + .more { margin-top: 14px; }
.more summary {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 0; cursor: pointer; font-weight: 500; list-style: none;
  transition: color .15s;
}
.more summary:hover { color: var(--u-pen-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary .u3-i { color: var(--u-ink-3); transition: transform .18s var(--u-ease); }
.more[open] summary .u3-i { transform: rotate(180deg); }
.more ul { margin: 0 0 12px; padding-inline-start: 1.2em; color: var(--u-ink-2); display: grid; gap: 4px; }

/* ---- the message box ----
   A raised sheet at the foot of the thread, like the start box; the text
   inside it never draws its own ring (the box does). While the brain works,
   the box becomes the brain's blue bar with the stop button. */
.composer { padding: 8px 24px 12px; }
.composer-in { max-width: 46rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.composer .notice { margin: 0; }
.box {
  display: flex; align-items: flex-end; gap: 6px; padding: 6px; border: 1px solid var(--u-line); border-radius: var(--u-r-l);
  background: var(--u-white); box-shadow: var(--u-sh-lift); transition: border-color var(--u-t-2), box-shadow var(--u-t-2);
}
.box:focus-within { border-color: var(--u-pen); box-shadow: 0 0 0 4px var(--u-pen-tint), var(--u-sh-lift); }
.box textarea {
  flex: 1; min-width: 0; max-height: 200px; padding: 6px; border: 0; outline: 0; resize: none;
  background: transparent; font-size: var(--u-fs-b); line-height: 1.5;
}
.box textarea:focus-visible { outline: none; }
.box textarea::placeholder { color: var(--u-ink-3); }
.box .attach { color: var(--u-ink-2); }
.box .send { border-radius: 10px; }
.box-busy {
  align-items: center; gap: 10px; padding: 6px; padding-inline-start: 14px;
  background: var(--u-busy-tint); border-color: var(--u-busy); box-shadow: var(--u-sh-1);
}
.box-busy .busy-t { flex: 1; font-size: var(--u-fs-m); color: var(--u-busy-ink); font-weight: 500; }
/* Stop interrupts the brain: under the pointer it takes the pink of what blocks. */
.box-busy .btn:hover { background: var(--u-stop-tint); border-color: var(--u-stop); color: var(--u-stop-ink); }
.box-busy form, .resume { margin: 0; }
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upload { margin: 0; }
/* With the script, a chosen file is sent at once: the form's own button goes. */
.u3-js .upload { display: none; }
/* The file input is visually hidden; its label wears the focus ring. */
.attach-in:focus-visible + label, .attach-in:focus-visible + .btn { outline: 2px solid var(--u-pen); outline-offset: 2px; }
.keys { margin-inline: 6px; }
.composer-ro { display: flex; align-items: center; gap: 8px; margin: 0; }

/* ---- the panel "דף המכרז" ----
   The front plane: a white sheet beside the desk, with a soft shadow falling
   on the thread (to the right: the panel is on the left in this always-RTL
   document). Its sections read like a file's cover: a title, then small
   headings in the ink's grey, facts as label and value. */
.sheet {
  background: var(--u-white); border-inline-start: 1px solid var(--u-line); overflow: auto; padding: 16px 18px 90px; min-height: 0;
  box-shadow: 6px 0 20px -14px rgba(20, 27, 45, .22);
}
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet h2 { font-size: var(--u-fs-h); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.sheet-x { display: none; }
.sheet section + section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--u-line); }
.sheet h3 { font-size: var(--u-fs-xs); font-weight: 600; letter-spacing: .03em; color: var(--u-ink-3); margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: var(--u-fs-m); }
.facts dt { color: var(--u-ink-3); }
.facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.facts dd.stack { display: grid; gap: 2px; }
.facts dd.marks { display: flex; flex-wrap: wrap; gap: 6px; }
.await p { margin: 0 0 10px; }
/* The authority's page (slice 4): what a conversation learned, under the authority's name. */
.page-offers { margin-top: 6px; font-weight: 400; font-size: var(--u-fs-s); }
.page-offers summary { cursor: pointer; color: var(--u-pen); width: fit-content; }
.page-offers ul { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 10px; }
.page-offers label { display: flex; align-items: baseline; gap: 6px; }
.page-offers bdi { font-weight: 500; }
.page-offers .hint { margin: 2px 0 0; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.flist li { display: flex; align-items: center; gap: 8px; font-size: var(--u-fs-s); min-width: 0; }
.flist a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-ink); text-decoration: none; }
.flist a:hover { color: var(--u-pen); text-decoration: underline; text-underline-offset: 3px; }
.flist form { margin: 0; }
.flist .u3-i { width: 16px; height: 16px; color: var(--u-pen); }
.flist .ver { display: grid; gap: 6px; }
.flist .ver ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cost { margin: 0; font-size: var(--u-fs-s); color: var(--u-ink-2); font-weight: 500; text-align: end; }
/* The cost against its ceiling: a sunk track, the spent part in the pen's blue. */
.meter {
  display: block; width: 100%; height: 6px; margin-top: 8px; border: 0; border-radius: 3px; background: var(--u-paper-3);
  -webkit-appearance: none; appearance: none;
}
.meter::-webkit-progress-bar { background: var(--u-paper-3); border-radius: 3px; box-shadow: inset 0 1px 1px rgba(20, 27, 45, .08); }
.meter::-webkit-progress-value { background: var(--u-pen); border-radius: 3px; }
.meter::-moz-progress-bar { background: var(--u-pen); border-radius: 3px; }
.link.quiet { display: inline-flex; align-items: center; gap: 6px; color: var(--u-ink-3); text-decoration: none; }
.link.quiet:hover { color: var(--u-stop-ink); }
.u3-flash { outline: 3px solid var(--u-hl); outline-offset: 3px; border-radius: 14px; transition: outline-color .4s; }

/* ---- narrower screens: the panel, then the rail, become drawers ---- */
@media (max-width: 1180px) {
  .conv, .conv.sheet-closed { grid-template-columns: minmax(0, 1fr); }
  .conv .sheet, .conv.sheet-closed .sheet {
    display: block; position: fixed; inset-block: 0; inset-inline-end: 0; width: min(92vw, 360px); z-index: 50;
    transform: translateX(-100%); visibility: hidden; box-shadow: var(--u-sh-2);
    transition: transform .22s var(--u-ease), visibility 0s .22s;
  }
  .conv .sheet.u3-open { transform: none; visibility: visible; transition: transform .22s var(--u-ease); }
  .sheet-x { display: inline-flex; }
}
@media (max-width: 900px) {
  .page-in { padding: 24px 16px 96px; }
  /* The home's gutters as a phone page's; the request at 16 px, or a phone's browser zooms into it. */
  .home { padding: 20px 16px 96px; }
  .starter textarea { font-size: 1rem; }
  .conv-h { padding: 12px 16px 10px; }
  .conv-h .panel-btn { display: none; }
  .conv-flash { padding: 0 16px; }
  .thread { padding: 18px 14px 8px; }
  .thread-in > *, .u3-log > * { margin-inline-start: 0 !important; }
  .composer { padding: 6px 12px 12px; }
  .keys { display: none; }
  .card-h { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .steps { display: none; }
  .steps-short { display: block; }
}
@media (hover: none) and (pointer: coarse) {
  .keys { display: none; }
}

/* The feedback helper's button (TENDER_FEEDBACK: its script is in the head)
   rests 16px from the bottom inline-end corner and is 52px wide. It moves
   itself clear of the message box only on the window's scroll and resize;
   this thread scrolls inside the page and the box grows as it is written in.
   So where the conversation reaches that corner (the panel is a drawer), the
   message box leaves the button a lane, and above 900px the thread too. */
@media (max-width: 1180px) {
  :root:has(script[data-fbk-shared]) .composer { padding-inline-end: 80px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  :root:has(script[data-fbk-shared]) .thread { padding-inline-end: 80px; }
}
