/* The sector scenes (sectors.js). Chrome from ou-base.css, shared parts (inputs, approve button, the teal labelled
   cursor) from roles.css; everything here is scoped under .ou--sector and named .sc-*. */
.ou--sector .ou-view { font-size: clamp(11px, 1.85cqi, 14px); }
.ou--sector .sc-two { grid-template-columns: 1fr 1fr; }
.ou--sector .sc-two > .rl-pane { overflow: clip; }
.ou--sector .sc-two > .rl-pane + .rl-pane { border-inline-start: 1px solid var(--line); }
.ou--sector .sc-agent { transform-origin: 0 0; }
.ou--sector .sc-rest { visibility: hidden; }
.ou--sector .sc-tv { white-space: pre-wrap; }

.ou--sector .sc-count {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.82em; padding: 0 0.5em; border-radius: 4px; white-space: nowrap;
  color: var(--accent-soft); border: 1px solid rgba(20, 184, 166, 0.5);
  transition: color 200ms ease, border-color 200ms ease;
}
.ou--sector .sc-count.is-warn { color: var(--amber); border-color: rgba(217, 164, 65, 0.45); }
.ou--sector .sc-count.is-bad { color: var(--red); border-color: rgba(224, 100, 92, 0.5); }

/* chat */
.ou--sector .sc-chatpane { background: #0a0d0d; }
.ou--sector .sc-chat { position: relative; overflow: clip; min-height: 0; }   /* older messages fade out whole before they reach the top (sectors.js stack), so none is shown cut */
.ou--sector .sc-chat-list { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 0.7em 0.9em; }
.ou--sector .sc-b {
  position: relative; align-self: flex-start; max-width: 86%;
  display: grid; gap: 0.15em;
  padding: 0.4em 0.65em 0.3em; font-size: 0.9em; line-height: 1.45;
  background: #161c1d; border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.ou--sector .sc-b.is-old { opacity: 0.55; }
.ou--sector .sc-b.is-read { box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.55); }
.ou--sector .sc-b.is-me { align-self: flex-end; background: rgba(20, 184, 166, 0.12); border-color: rgba(20, 184, 166, 0.32); }
.ou--sector .sc-b.is-draft { background: #0e1213; border: 1px dashed rgba(94, 234, 212, 0.55); }
.ou--sector .sc-b.is-draft.is-sent { background: rgba(20, 184, 166, 0.12); border: 1px solid rgba(20, 184, 166, 0.32); }
.ou--sector .sc-b-from { font-size: 0.82em; color: var(--accent-soft); }
.ou--sector .sc-b-tag { position: absolute; top: -0.75em; inset-inline-end: 0.6em; padding: 0 0.4em; font-size: 0.72em; color: var(--accent-soft); background: #0a0d0d; border: 1px dashed rgba(94, 234, 212, 0.55); border-radius: 3px; }
.ou--sector .sc-b-meta { display: flex; justify-content: flex-end; align-items: center; gap: 0.35em; min-height: 1em; }
.ou--sector .sc-b-time { font: 500 0.78em/1.4 var(--font-mono); color: var(--dim); }
.ou--sector .sc-ticks { display: inline-flex; color: var(--accent-soft); opacity: 0; }
.ou--sector .sc-ticks svg { width: 1.05em; height: 1.05em; }
.ou--sector .sc-att, .ou--sector .sc-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 0.2em; padding: 0.15em 0.5em; font-size: 0.86em; white-space: nowrap;
  color: var(--text); background: #111617; border: 1px solid var(--line-2); border-radius: 4px;
}
.ou--sector .sc-att svg { width: 1.05em; height: 1.05em; color: var(--accent); }
.ou--sector .sc-chip { color: var(--accent-soft); border-color: rgba(20, 184, 166, 0.5); background: transparent; opacity: 0; }
.ou--sector .sc-chip svg { width: 1em; height: 1em; }
.ou--sector .sc-note { opacity: 0; justify-self: start; margin-top: 0.25em;
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.2em 0.6em; font-size: 0.84em; color: #04211d; background: var(--accent-soft); border-radius: 4px;
}
.ou--sector .sc-note svg { width: 1em; height: 1em; }

/* the approval strip */
.ou--sector .sc-appr {
  position: absolute; inset-inline: 0.8em; bottom: 0.8em; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8em;
  padding: 0.55em 0.7em 0.55em 0.8em;
  background: #15130d; border: 1px solid rgba(217, 164, 65, 0.55); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.ou--sector .sc-appr.is-ok { border-color: rgba(20, 184, 166, 0.55); background: #0d1413; }
.ou--sector .sc-appr-t { display: grid; gap: 0.1em; min-width: 0; }
.ou--sector .sc-appr-t b { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 500; color: var(--amber); }
.ou--sector .sc-appr.is-ok .sc-appr-t b { color: var(--accent-soft); }
.ou--sector .sc-appr-t b svg { width: 1.05em; height: 1.05em; }
.ou--sector .sc-appr-s { font-size: 0.86em; color: var(--text); }
.ou--sector .sc-appr .rl-btn svg { display: none; }
.ou--sector .sc-appr .rl-btn.is-done svg { display: inline; }

/* ---------------------------------------------------------------- 1. clinic */
.sc-clinic .sc-two { grid-template-columns: 1.05fr 0.95fr; }
.sc-clinic .sc-calpane { background: #090b0c; }
.sc-clinic .sc-calbody { display: grid; align-content: start; gap: 0.7em; padding: 0.7em 0.9em; }
.sc-clinic .sc-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7em; }
.sc-clinic .sc-day { display: grid; align-content: start; gap: 0.3em; }
.sc-clinic .sc-day-h { font-size: 0.82em; color: var(--dim); padding-bottom: 0.2em; border-bottom: 1px solid var(--line); }
.sc-clinic .sc-slot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.45em;
  height: 2em; padding: 0 0.45em; font-size: 0.88em;
  background: #0e1213; border: 1px solid var(--line-2); border-radius: 5px;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.sc-clinic .sc-slot-t { font: 500 0.88em/1 var(--font-mono); color: var(--muted); }
.sc-clinic .sc-slot-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-clinic .sc-slot.is-busy { color: var(--dim); background: transparent; }
.sc-clinic .sc-slot.is-free { color: var(--accent-soft); border-style: dashed; border-color: rgba(94, 234, 212, 0.45); background: transparent; }
.sc-clinic .sc-slot.is-sel { border-color: var(--accent); background: rgba(20, 184, 166, 0.14); }
.sc-clinic .sc-slot.is-moved .sc-slot-n { color: var(--amber); }
.sc-clinic .sc-slot.is-moved { border-style: dashed; border-color: rgba(217, 164, 65, 0.5); }
.sc-clinic .sc-slot.is-freed { color: var(--dim); background: transparent; border-style: dashed; }
.sc-clinic .sc-slot.is-pend { color: var(--text); border: 1px dashed rgba(217, 164, 65, 0.7); background: rgba(217, 164, 65, 0.08); }
.sc-clinic .sc-slot.is-booked { color: var(--text); border: 1px solid rgba(20, 184, 166, 0.6); background: rgba(20, 184, 166, 0.14); }
.sc-clinic .sc-bell { display: inline-flex; width: 1.05em; height: 1.05em; color: var(--dim); opacity: 0.55; }
.sc-clinic .sc-bell svg { width: 100%; height: 100%; }
.sc-clinic .sc-bell svg + svg { display: none; }
.sc-clinic .sc-day.is-b .sc-bell { display: none; }
.sc-clinic .sc-day.is-a .sc-slot:nth-child(3) .sc-bell { visibility: hidden; }
.sc-clinic .sc-bell.is-ready { color: var(--accent-soft); opacity: 1; }
.sc-clinic .sc-bell.is-sent { color: var(--accent-soft); opacity: 1; }
.sc-clinic .sc-bell.is-sent svg { display: none; }
.sc-clinic .sc-bell.is-sent svg + svg { display: block; }
.sc-clinic .sc-remind {
  display: flex; align-items: center; gap: 0.45em; padding: 0.4em 0.6em; font-size: 0.86em;
  border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted);
  transition: color 200ms ease, border-color 200ms ease;
}
.sc-clinic .sc-remind svg { width: 1.05em; height: 1.05em; flex: none; }
.sc-clinic .sc-remind.is-warn { color: var(--amber); border-color: rgba(217, 164, 65, 0.45); }
.sc-clinic .sc-remind.is-ok { color: var(--accent-soft); border-color: rgba(20, 184, 166, 0.5); }

/* ---------------------------------------------------------------- 2. accountant's office */
.ou--sector .sc-acc { grid-template-columns: 1.15fr 0.85fr; }
.sc-accountant .sc-listpane { grid-template-rows: auto auto 1fr; background: #090b0c; }
.sc-accountant .sc-tools { display: flex; align-items: center; gap: 0.5em; padding: 0.6em 0.9em 0.45em; }
.sc-accountant .sc-fgap { flex: 1; }
.sc-accountant .sc-tally { display: flex; align-items: baseline; gap: 0.5em; }
.sc-accountant .sc-tally-n { font: 500 2.1em/1 var(--font-mono); color: var(--red); min-width: 1.3em; }
.sc-accountant .sc-tally-l { font-size: 0.86em; color: var(--muted); max-width: 16em; line-height: 1.3; }
.sc-accountant .sc-filter {
  padding: 0.1em 0.6em; font-size: 0.84em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 4px;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.sc-accountant .sc-filter.is-hover { border-color: var(--accent); color: var(--text); }
.sc-accountant .sc-filter.is-on { color: #04211d; background: var(--accent-soft); border-color: var(--accent-soft); }
.sc-accountant .sc-tbl { display: grid; align-content: start; align-self: start; padding: 0 0.9em; }
.sc-accountant .sc-crow {
  display: grid; grid-template-columns: 5.6em minmax(0, 1fr) 4.4em; gap: 0.7em; align-items: center;
  height: 2.05em; padding: 0 0.4em; font-size: 0.88em; overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--line); border-radius: 3px;
  transition: background-color 300ms ease;
}
.sc-accountant .sc-crow.is-head { height: 1.8em; font-size: 0.8em; color: var(--dim); }
.sc-accountant .sc-crow.is-lit { background: rgba(20, 184, 166, 0.14); }
.sc-accountant .sc-crow.is-ok .sc-cname { color: var(--muted); }
.sc-accountant .sc-miss { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.sc-accountant .sc-miss > span { opacity: 0; }
.sc-accountant .sc-crow.is-ok .sc-miss > span { opacity: 0 !important; }
.sc-accountant .sc-st {
  justify-self: start; padding: 0 0.45em; font-size: 0.86em; border-radius: 3px; border: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.sc-accountant .sc-st.is-miss { color: var(--red); border-color: rgba(224, 100, 92, 0.5); }
.sc-accountant .sc-st.is-ok { color: var(--accent-soft); border-color: rgba(20, 184, 166, 0.5); }
.sc-accountant .sc-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.86em; color: var(--dim); }
.sc-accountant .sc-more { align-self: flex-end; font-size: 0.82em; color: var(--muted); padding: 0.1em 0.2em; }
.sc-accountant .sc-day-div { align-self: center; padding: 0.1em 0.7em; font-size: 0.78em; color: var(--muted); background: #121718; border: 1px solid var(--line); border-radius: 4px; }
.sc-accountant .sc-b-t { font-size: 0.96em; }

/* ---------------------------------------------------------------- 3. customs and freight */
.ou--sector .sc-cus { grid-template-columns: 1.08fr 0.92fr; }
.sc-customs .sc-formpane { grid-template-rows: auto 1fr; background: #090b0c; }
.sc-customs .sc-form { display: grid; align-content: start; gap: 0.38em; padding: 0.6em 0.9em; }
.sc-customs .sc-frow { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); align-items: center; gap: 0.6em; }
.sc-customs .sc-flabel { font-size: 0.86em; color: var(--dim); white-space: nowrap; }
.sc-customs .rl-input { height: 1.95em; }
.sc-customs .sc-extra { margin-top: 0.3em; }
.sc-customs .sc-extra-h { font-size: 0.78em; color: var(--dim); margin-bottom: 0.25em; }
.sc-customs .sc-extra-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3em; }
.sc-customs .sc-ex { display: grid; gap: 0.05em; padding: 0.2em 0.45em; background: #0a0d0e; border: 1px solid var(--line); border-radius: 4px; min-width: 0; transition: border-color 200ms ease; }
.sc-customs .sc-ex.is-on { border-color: rgba(20, 184, 166, 0.38); }
.sc-customs .sc-ex-l { font-size: 0.72em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-customs .sc-ex-v { font: 500 0.8em/1.4 var(--font-mono-he); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; justify-self: start; }
.sc-customs .sc-docs { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.35em; }
.sc-customs .sc-doc {
  display: inline-flex; align-items: center; gap: 0.3em; padding: 0.1em 0.45em; font-size: 0.8em; white-space: nowrap;
  color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.sc-customs .sc-doc svg { width: 1em; height: 1em; visibility: hidden; }
.sc-customs .sc-doc.is-ok { color: var(--accent-soft); border-color: rgba(20, 184, 166, 0.5); }
.sc-customs .sc-doc.is-ok svg { visibility: visible; }
.sc-customs .sc-doc-miss { visibility: hidden; }   /* room held, so the chip never changes size */
.sc-customs .sc-doc.is-bad { color: var(--red); border-color: rgba(224, 100, 92, 0.6); background: rgba(224, 100, 92, 0.08); }
.sc-customs .sc-doc.is-bad svg { visibility: visible; }
.sc-customs .sc-doc.is-bad .sc-doc-miss { visibility: visible; }
.sc-customs .sc-invpane { grid-template-rows: auto 1fr; background: #0a0d0d; }
.sc-customs .sc-desk { position: relative; min-height: 0; padding: 0.7em 0.8em; }
.sc-customs .sc-paper {
  position: relative; display: grid; gap: 0.18em; align-content: start;
  padding: 0.7em 0.8em 0.8em; color: var(--ink); background: var(--paper); border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono); text-align: left; overflow: hidden;
}
.sc-customs .sc-paper-h { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; padding-bottom: 0.35em; margin-bottom: 0.15em; border-bottom: 1.5px solid #2c3532; }
.sc-customs .sc-paper-h b { font-weight: 500; font-size: 0.86em; letter-spacing: 0.02em; }
.sc-customs .sc-paper-h span { font-size: 0.7em; color: var(--ink-2); white-space: nowrap; }
.sc-customs .sc-pl { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 0.4em; align-items: baseline; padding: 0.12em 0; font-size: 0.78em; border-bottom: 1px solid rgba(16, 24, 22, 0.1); border-radius: 2px; transition: background-color 200ms ease; }
.sc-customs .sc-pl.is-seen { background: rgba(20, 184, 166, 0.10); }
.sc-customs .sc-pk { color: var(--ink-2); }
.sc-customs .sc-pv { justify-self: start; padding: 0 0.2em; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; transition: background-color 150ms ease, box-shadow 150ms ease; }
.sc-customs .sc-pv.is-hot { background: rgba(20, 184, 166, 0.28); box-shadow: 0 0 0 1.5px #0f766e; }
.sc-customs .sc-pskel { display: block; height: 0.4em; margin-top: 0.45em; border-radius: 2px; background: rgba(16, 24, 22, 0.12); }
.sc-customs .sc-pskel.is-s { width: 60%; margin-top: 0.3em; }
.sc-customs .sc-scan { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 8px rgba(20, 184, 166, 0.8); opacity: 0; }
.sc-customs .sc-req {
  position: absolute; inset-inline: 0.8em; bottom: 5.2em; z-index: 3;
  display: grid; gap: 0.25em; padding: 0.5em 0.7em 0.35em;
  font-size: 0.92em; line-height: 1.45;
  background: #0e1213; border: 1px dashed rgba(94, 234, 212, 0.55); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
}
.sc-customs .sc-req.is-sent { border-style: solid; border-color: rgba(20, 184, 166, 0.45); background: #0f1716; }
.sc-customs .sc-req-h { font-size: 0.8em; color: var(--accent-soft); }

/* the agent's name tag on the other side of the cursor, near the window's edge (sectors.js) */
.ou--sector .rl-agent.is-flip .rl-agent-l { left: auto; right: calc(100% - 6px); }

/* the close-up spotlight (sectors.js): a hole the size of the framed element, the rest covered in the window colour */
.ou--sector .sc-spot {
  position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0;
  border-radius: 8px; box-shadow: 0 0 0 4000px var(--win, #0b0e0f), inset 0 0 0 1px rgba(94, 234, 212, 0.18);
}

/* English: the site's mono face throughout, like the role windows */
.ou--sector[lang="en"] .sc-b-t, .ou--sector[lang="en"] .sc-req-t { font-family: var(--font-mono); }

/* ---------------------------------------------------------------- narrow windows (phones): one fixed height, panes stack */
@container (max-width: 480px) {
  .ou--sector .ou-view { height: 38em; font-size: 13px; }
  .ou--sector .ou-tag, .ou--sector .sc-b-tag, .ou--sector .sc-b-time, .ou--sector .rl-agent-l, .sc-customs .sc-pl, .sc-customs .sc-paper-h span,
  .sc-customs .sc-req-h, .sc-accountant .sc-day-div, .sc-accountant .sc-crow.is-head { font-size: 0.84em; }
  .ou--sector .ou-win { height: 100%; grid-template-columns: minmax(0, 1fr); }
  .ou--sector .ou-app { display: inline; max-width: 64%; overflow: hidden; text-overflow: ellipsis; }
  .ou--sector .ou-app-x { display: none; }
  .ou--sector .sc-two { grid-template-columns: minmax(0, 1fr) !important; }
  .ou--sector .sc-two > .rl-pane + .rl-pane { border-inline-start: 0; border-top: 1px solid var(--line); }
  .ou--sector .sc-b { max-width: 92%; }
  .ou--sector .sc-appr { inset-inline: 0.6em; bottom: 0.6em; padding: 0.45em 0.55em; }
  .sc-clinic .sc-two { grid-template-rows: 15.5em 1fr; }
  .sc-clinic .sc-calbody { padding: 0.4em 0.8em; gap: 0.4em; }
  .sc-clinic .sc-calpane .ou-pane-h { display: none; }
  .sc-clinic .sc-calpane { grid-template-rows: 1fr; }
  .sc-clinic .sc-slot { height: 1.65em; }
  .sc-accountant .sc-two { grid-template-rows: 19em 1fr; }
  .sc-accountant .sc-tools { padding: 0.4em 0.8em 0.25em; }
  .sc-accountant .sc-tbl { padding: 0 0.8em; }
  .sc-accountant .sc-crow { height: 1.85em; grid-template-columns: 5.6em minmax(0, 1fr) max-content; }   /* 4.8em let "Michal R." run into the next column */
  .sc-accountant .sc-crow:nth-child(n+9) { display: none; }
  .sc-accountant .sc-wapane .ou-pane-h { display: none; }
  .sc-accountant .sc-wapane { grid-template-rows: 1fr; }
  .sc-customs .sc-two { grid-template-rows: auto 1fr; }
  .sc-customs .sc-formpane .ou-pane-h { height: 2.1em; white-space: nowrap; }
  .sc-customs .sc-form { gap: 0.28em; padding: 0.45em 0.8em; }
  .sc-customs .sc-extra { display: none; }
  .sc-customs .rl-input { height: 1.8em; }
  .sc-customs .sc-invpane .ou-pane-h { display: none; }
  .sc-customs .sc-invpane { grid-template-rows: 1fr; }
  .sc-customs .sc-desk { padding: 0.5em 0.8em; }
  .sc-customs .sc-pskel { display: none; }
  .sc-customs .sc-req { top: 0.35em; bottom: 0.1em; inset-inline: 0.6em; align-content: start; box-shadow: none; }
}

/* >>> phone text floor (tools/floor-demo-text.py, generated) */
@container (max-width: 480px) {
  .ou--sector .sc-count { font-size: max(11px, 0.82em); }
  .ou--sector .sc-b { font-size: max(11px, 0.9em); }
  .ou--sector .sc-b-from { font-size: max(11px, 0.82em); }
  .ou--sector .sc-b-tag { font-size: max(11px, 0.72em); }
  .ou--sector .sc-b-time { font-size: max(11px, 0.78em); }
  .ou--sector .sc-att, .ou--sector .sc-chip { font-size: max(11px, 0.86em); }
  .ou--sector .sc-note { font-size: max(11px, 0.84em); }
  .ou--sector .sc-appr-s { font-size: max(11px, 0.86em); }
  .sc-clinic .sc-day-h { font-size: max(11px, 0.82em); }
  .sc-clinic .sc-slot { font-size: max(11px, 0.88em); }
  .sc-clinic .sc-slot-t { font-size: max(11px, 0.88em); }
  .sc-clinic .sc-remind { font-size: max(11px, 0.86em); }
  .sc-accountant .sc-tally-l { font-size: max(11px, 0.86em); }
  .sc-accountant .sc-filter { font-size: max(11px, 0.84em); }
  .sc-accountant .sc-crow { font-size: max(11px, 0.88em); }
  .sc-accountant .sc-crow.is-head { font-size: max(11px, 0.8em); }
  .sc-accountant .sc-st { font-size: max(11px, 0.86em); }
  .sc-accountant .sc-empty { font-size: max(11px, 0.86em); }
  .sc-accountant .sc-more { font-size: max(11px, 0.82em); }
  .sc-accountant .sc-day-div { font-size: max(11px, 0.78em); }
  .sc-accountant .sc-b-t { font-size: max(11px, 0.96em); }
  .sc-customs .sc-flabel { font-size: max(11px, 0.86em); }
  .sc-customs .sc-extra-h { font-size: max(11px, 0.78em); }
  .sc-customs .sc-ex-l { font-size: max(11px, 0.72em); }
  .sc-customs .sc-ex-v { font-size: max(11px, 0.8em); }
  .sc-customs .sc-doc { font-size: max(11px, 0.8em); }
  .sc-customs .sc-paper-h b { font-size: max(11px, 0.86em); }
  .sc-customs .sc-paper-h span { font-size: max(11px, 0.7em); }
  .sc-customs .sc-pl { font-size: max(11px, 0.78em); }
  .sc-customs .sc-req { font-size: max(11px, 0.92em); }
  .sc-customs .sc-req-h { font-size: max(11px, 0.8em); }
  @container (max-width: 480px) { .ou--sector .ou-tag, .ou--sector .sc-b-tag, .ou--sector .sc-b-time, .ou--sector .rl-agent-l, .sc-customs .sc-pl, .sc-customs .sc-paper-h span,
  .sc-customs .sc-req-h, .sc-accountant .sc-day-div, .sc-accountant .sc-crow.is-head { font-size: max(11px, 0.84em); } }
}
/* <<< phone text floor */

/* the hero sector window's tabs bar (demos.js wraps the tabs group in it): the tabs, then the narration button on the
   empty end side (left in Hebrew, right in English), outside the tabs group and outside the scene. The bar draws the
   line under the row; the tabs box reaches over it (margin -1px), so the active tab's mark lands on that line. */
.biz-tabbar { display: flex; align-items: stretch; gap: 16px; border-bottom: 1px solid var(--line); }
.biz-tabbar > .biz-tabs { flex: 1 1 auto; min-width: 0; margin-bottom: -1px; border-bottom: 0; }
/* the active tab's mark inside the tabs box (it reaches over the bar's line through the -1px margin), so the tabs
   row, which scrolls sideways on phones, never also scrolls up and down by that pixel */
.biz-tabbar .biz-tab::after { bottom: 0; }
.biz-tabbar > .ou-voice { position: relative; inset: auto; align-self: center; flex: none; }
/* phones (site.css: the tabs scroll below 701px): the button shows its icon only, its words stay for screen readers */
@media (max-width: 700px) {
  .biz-tabbar { gap: 12px; }
  .biz-tabbar > .ou-voice { padding-inline: 8px; }
  .biz-tabbar > .ou-voice span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.biz-tabbar { min-width: 0; }
.biz-tabbar > .biz-tabs { min-width: 0; }
