/* Omilon clinician app. Mobile first (380 px and up). Controls use var(--om-touch): 44 px with touch, 36 px with a mouse
   (shared/theme.css, SPEC-NFR-DESIGN-002).
   ONE scroll surface: only main.om-main scrolls. Nothing inside it may set overflow auto/scroll;
   text areas grow with their content instead (see lib/dom.ts autoGrow). */

omilon-app-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  /* UT-287: while a receipt is shown, the frame ends above it (shared/receipt.ts sets --om-receipt-space). */
  height: calc(100dvh - var(--om-receipt-space, 0px));
  max-width: 100vw;
}
omilon-app-root *, omilon-app-root *::before, omilon-app-root *::after { box-sizing: border-box; }

/* Focus on the dark chrome (the header and the Bar): the accent is too dark there, so the chrome's text colour. */
:where(.om-top, .om-bar) :focus-visible { outline-color: var(--om-focus-on-chrome); }

/* The header (SPEC-MOBILE-019, PW-75): dark blue, the Omilon mark (white with a red accent), the name of the view and,
   in a session, the session's patient in a quiet chip. As a panel in the Windows client also «Utvid» and «Lukk». */
.om-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--om-space-2);
  padding: 6px var(--om-space-2) 6px var(--om-space-4);
  background: var(--om-chrome);
  color: var(--om-on-chrome);
  min-height: 56px;
  min-width: 0;
}
.om-top-mark { flex: 0 0 auto; display: block; width: 22px; height: 22px; color: var(--om-on-chrome); }
.om-brand { flex: 0 1 auto; min-width: 0; font-weight: 600; font-size: var(--om-text-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-top-patient { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--om-text-sm); padding: 2px 10px; border-radius: var(--om-radius-pill); background: var(--om-chrome-soft); color: var(--om-on-chrome); }
.om-top-patient[hidden] { display: none; }
/* Kilde 3 (fase 0 deviations 1 and 4): the session's patient with name and id and when it started. The name is never
   cut: on a narrow screen (side panel, phone) the patient gets a line of its own under the view's name and may wrap. */
.om-top-name { font-weight: 600; }
/* rc4 (DA-23): a session without a patient says so in plain words, not as a name. */
.om-top-none .om-top-name { font-weight: 400; }
.om-top-id { margin-left: var(--om-space-2); font-variant-numeric: tabular-nums; }
.om-top-started { margin-left: var(--om-space-2); color: var(--om-on-chrome-muted); }
@media (max-width: 720px) {
  .om-top.om-top-has-patient { flex-wrap: wrap; row-gap: var(--om-space-1); }
  .om-top-has-patient .om-top-patient { order: 10; flex: 1 1 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere;
    background: transparent; padding: 0 0 var(--om-space-1); font-size: var(--om-text-md); }
  .om-top-has-patient .om-top-id, .om-top-has-patient .om-top-started { display: inline-block; }
  /* rc4 (DA-23): on a narrow screen «Ingen pasient valgt» is left out, so the header keeps one line, as before. */
  .om-top-patient.om-top-none { display: none; }
}
/* Release 1.1, job J8: the same on a wider screen when the view's name or the patient would be cut on one line (a long
   name of the session on an iPad; main.ts measures it). The patient is never cut. */
.om-top.om-top-has-patient.om-top-stacked { flex-wrap: wrap; row-gap: var(--om-space-1); }
.om-top-stacked .om-top-patient { order: 10; flex: 1 1 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere;
  background: transparent; padding: 0 0 var(--om-space-1); font-size: var(--om-text-md); }
.om-top-stacked .om-top-id, .om-top-stacked .om-top-started { display: inline-block; }
.om-top-gap { flex: 1 1 0; }
/* NEXUS order 15 (job 6): the patient's line. On a wide header the chip and «Endre» are items of the header; where the
   patient has a line of its own (narrow, or stacked), the name is semibold on its own line and never cut, «Endre» at the
   right of it, and the id on the line under it. «Endre» has white text: the light blue #9CCBF5 has only 3.8:1 against the
   header's right end (#35628B), enough for its icon but not for text. */
.om-top-who { display: contents; }
.om-top-edit { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--om-space-1); min-height: var(--om-touch);
  padding: 0 var(--om-space-2); background: transparent; border-color: transparent; color: var(--om-on-chrome); font-size: var(--om-text-sm); font-weight: 400; }
.om-top-edit .om-icon { flex: none; color: var(--om-chrome-accent); }
.om-top-edit:hover { background: var(--om-chrome-hover); }
.om-top.om-top-has-patient.om-top-stacked .om-top-who { order: 10; flex: 1 1 100%; display: flex; align-items: flex-start; gap: var(--om-space-2); min-width: 0; }
.om-top-stacked .om-top-who .om-top-patient { order: 0; flex: 1 1 0; } /* the chip first, «Endre» at its right */
.om-top-stacked .om-top-who .om-top-name { display: block; }
.om-top-stacked .om-top-who .om-top-id { margin-left: 0; }
/* The real mark file in the Windows panel, on the same blue gradient as the Bar. */
.om-top-logo { display: none; width: 22px; height: 22px; }
omilon-app-root.om-panel .om-top-mark .om-mark { display: none; }
omilon-app-root.om-panel .om-top-logo { display: block; }
omilon-app-root.om-panel .om-top { background: var(--om-chrome-gradient); }
@media (max-width: 720px) {
  .om-top.om-top-has-patient .om-top-who { order: 10; flex: 1 1 100%; display: flex; align-items: flex-start; gap: var(--om-space-2); min-width: 0; }
  .om-top-has-patient .om-top-who .om-top-patient { order: 0; flex: 1 1 0; }
  .om-top-has-patient .om-top-who .om-top-name { display: block; }
  .om-top-has-patient .om-top-who .om-top-id { margin-left: 0; }
}
.om-user { font-size: var(--om-text-sm); opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }
/* Release 1.2, job 11 (NF-16, UX checklist point 33): the user's name and the view's name are never cut. A name that
   would be cut on the header's line gets a line of its own at the bottom of the header (main.ts measures it), where it
   may wrap; on a narrow screen the view's name wraps instead of being cut. */
.om-top.om-top-user-below { flex-wrap: wrap; row-gap: var(--om-space-1); }
.om-top-user-below .om-user { order: 11; flex: 1 1 100%; max-width: none; white-space: normal; overflow: visible; overflow-wrap: anywhere;
  text-align: right; }
@media (max-width: 720px) {
  .om-brand { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
}
.om-back { background: transparent; color: var(--om-on-chrome); border: 0; font-size: var(--om-text-2xl); line-height: 1; border-radius: var(--om-radius-control); cursor: pointer; }
.om-top-icon { flex: 0 0 auto; display: grid; place-items: center; width: var(--om-touch); height: var(--om-touch); padding: 0;
  background: transparent; border-color: transparent; color: var(--om-on-chrome); border-radius: var(--om-radius-control); }
.om-top-icon[hidden] { display: none; }
.om-top-icon:hover, .om-back:hover { background: var(--om-chrome-hover); }
.om-top-icon[aria-pressed="true"] { background: var(--om-chrome-soft); }

.om-notice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  font-size: var(--om-text-sm);
  background: var(--om-soft);
  color: var(--om-on-soft);
}
.om-notice[hidden] { display: none; }
.om-notice span { flex: 1 1 auto; overflow-wrap: anywhere; }
.om-notice-error { background: var(--om-err-bg); color: var(--om-err-text); }
.om-notice-warn { background: var(--om-warn-bg); color: var(--om-warn-text); }
.om-notice-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.om-notice-body span { overflow-wrap: anywhere; }
/* No opacity: small red text needs the full colour for 4.5:1 (WCAG 2.1 AA; found by LV-20's axe check, release 1.1 job J4). */
.om-error-id { font-size: var(--om-text-xs); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.om-notice-report { background: var(--om-soft); color: var(--om-on-soft); padding: 8px 16px; }
.om-report { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.om-report-title { font-size: var(--om-text-md); margin: 0; }
.om-report p { margin: 0; }
.om-report-message { color: var(--om-err-text); }

/* Release 1.1 job KV (ADR-0050): a confirmation in Omilon's own window (app/lib/confirm-dialog.ts), only where something
   must be checked first and cannot be undone: the patient before Dragon Copilot opens. A short dialog, so the main
   button stands right under the text (design guidelines 3.2), with the patient's name and id on a line of its own. */
.om-dialog { box-sizing: border-box; width: min(28rem, calc(100vw - 32px)); max-width: none; padding: var(--om-space-5);
  border: 1px solid var(--om-line); border-radius: var(--om-radius); background: var(--om-surface); color: var(--om-text);
  box-shadow: var(--om-shadow-raised); }
.om-dialog::backdrop { background: var(--om-chrome); opacity: 0.5; }
.om-dialog-form { display: flex; flex-direction: column; gap: var(--om-space-3); margin: 0; }
.om-dialog-title { margin: 0; font-size: var(--om-text-xl); line-height: var(--om-leading-subtitle); }
.om-dialog-title:focus { outline: none; }
.om-dialog-title:focus-visible { outline: 3px solid var(--om-focus); outline-offset: 2px; }
.om-dialog-patient { margin: 0; padding: var(--om-space-2) var(--om-space-3); border-radius: var(--om-radius-control);
  background: var(--om-soft); color: var(--om-on-soft); overflow-wrap: anywhere; }
.om-dialog-label { color: var(--om-muted); }
.om-dialog-id { font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-dialog-text { margin: 0; }
.om-dialog-buttons { display: flex; flex-wrap: wrap; gap: var(--om-space-2); margin-top: var(--om-space-1); }
.om-dialog-buttons button { min-height: var(--om-touch); }
/* Release 1.2, job 11 (JQ-29): a form's own «Lagre» alone at the bottom, under a line, apart from the form's last group. */
.om-form-foot { display: flex; flex-wrap: wrap; gap: var(--om-space-2); margin-top: var(--om-space-5); padding-top: var(--om-space-4);
  border-top: 1px solid var(--om-line); }

.om-main {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px 32px;
  -webkit-overflow-scrolling: touch;
  /* JQ-19 (job 9, 3.12.2026): the scroll surface is also where absolutely placed text inside it is placed (the labels
     only screen readers read, .om-sr). Without it such a label escaped main, made the page itself taller than the window,
     and «Juster» brought into view moved the whole page: the header went out of sight and an empty band came under the
     bottom line. */
  position: relative;
}
.om-main > * { display: block; max-width: 960px; margin: 0 auto; }

.om-card {
  background: var(--om-surface);
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow);
  padding: 16px;
  margin: 0 0 12px;
}
.om-h1 { font-size: var(--om-text-xl); margin: 0 auto 0 0; }
.om-h2 { font-size: var(--om-text-lg); margin: 0 0 8px; }
.om-h3 { font-size: var(--om-text-md); margin: 8px 0; }
.om-h4 { font-size: var(--om-text-sm); margin: 10px 0 4px; }
.om-approve-part + .om-approve-part { margin-top: 8px; }
.om-muted { color: var(--om-muted); }
.om-empty { padding: 24px 0; text-align: center; }

.om-row { display: flex; align-items: center; gap: 8px; }
.om-wrap { flex-wrap: wrap; }
.om-row > .om-input { flex: 1 1 160px; min-width: 0; }

button {
  border-radius: var(--om-radius-control);
  border: 1px solid var(--om-line);
  background: var(--om-surface);
  color: var(--om-text);
  padding: 8px 14px;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled { opacity: 0.55; cursor: default; }
.om-primary { background: var(--om-primary); border-color: var(--om-primary); color: var(--om-on-primary); font-weight: 600; }
.om-big { min-height: 52px; padding: 10px 22px; font-size: var(--om-text-md); }
.om-ghost { background: transparent; border-color: transparent; }
.om-danger { color: var(--om-err-text); border-color: var(--om-err-text); }

.om-input, select.om-input, textarea.om-input {
  display: block;
  width: 100%;
  min-height: var(--om-touch);
  font: inherit;
  color: var(--om-text);
  background: var(--om-surface);
  border: 1px solid var(--om-field-line);
  border-radius: var(--om-radius-control);
  padding: 10px 12px;
}
textarea.om-input { resize: none; overflow: hidden; line-height: 1.45; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
.om-fieldset { border: 0; padding: 0; margin: 12px 0; }
.om-fieldset legend { font-weight: 600; padding: 0; }

.om-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.om-tab { border-radius: var(--om-radius-pill); }
.om-tab[aria-selected="true"] { background: var(--om-selected); color: var(--om-on-selected); border-color: var(--om-selected); }
.om-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.om-seg-btn[aria-pressed="true"] { background: var(--om-selected); color: var(--om-on-selected); border-color: var(--om-selected); }
/* On and off (UT-289; WCAG 1.4.1, design guidelines 5.2 and 8), never by colour alone (app/lib/toggle.ts). A setting says
   «På» or «Av» beside a switch whose knob is left (off) or right (on), as Windows does; a statement the user ticks has a
   box with a check mark only when chosen. Both follow aria-pressed, so code that sets it needs nothing more. */
.om-toggle { display: flex; align-items: center; gap: var(--om-space-3); width: 100%; text-align: start; }
.om-toggle-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.om-toggle-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--om-space-2); }
.om-toggle[aria-pressed="true"] .om-toggle-off, .om-toggle:not([aria-pressed="true"]) .om-toggle-on { display: none; }
.om-switch { position: relative; flex: 0 0 auto; box-sizing: border-box; width: 40px; height: 20px; border: 1px solid var(--om-field-line);
  border-radius: var(--om-radius-pill); background: var(--om-surface); }
.om-switch-knob { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--om-field-line);
  transition: transform var(--om-dur-fast) var(--om-ease); }
.om-toggle[aria-pressed="true"] .om-switch { background: var(--om-selected); border-color: var(--om-selected); }
.om-toggle[aria-pressed="true"] .om-switch-knob { transform: translateX(20px); background: var(--om-on-selected); }
.om-tick { display: inline-flex; align-items: center; gap: var(--om-space-2); text-align: start; }
.om-tick-box { flex: 0 0 auto; box-sizing: border-box; display: inline-grid; place-items: center; width: 20px; height: 20px;
  border: 1px solid var(--om-field-line); border-radius: var(--om-radius-s); background: var(--om-surface); color: var(--om-on-selected); }
.om-tick-box .om-icon { width: 16px; height: 16px; visibility: hidden; }
.om-tick[aria-pressed="true"] .om-tick-box { background: var(--om-selected); border-color: var(--om-selected); }
.om-tick[aria-pressed="true"] .om-tick-box .om-icon { visibility: visible; }

.om-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.om-item {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--om-radius);
  box-shadow: var(--om-shadow);
}
.om-item-main { font-weight: 600; overflow-wrap: anywhere; }
.om-item-meta { color: var(--om-muted); font-size: var(--om-text-sm); }
.om-badge { display: inline-block; padding: 1px 8px; border-radius: var(--om-radius-pill); font-size: var(--om-text-xs); background: var(--om-soft); color: var(--om-on-soft); }
.om-status-InProgress { background: var(--om-err-bg); color: var(--om-err-text); }
.om-status-Completed { background: var(--om-ok-bg); color: var(--om-ok-text); }
.om-status-Failed { background: var(--om-danger-strong); color: var(--om-on-strong); }

.om-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--om-soft);
  color: var(--om-on-soft);
  border-radius: var(--om-radius);
  padding: 8px 12px;
  margin: 0 0 12px;
}
.om-banner-main { flex: 1 1 200px; overflow-wrap: anywhere; }

/* ── The listening view (acceptance/track-r-recording.md, SPEC-REC-006, SPEC-REC-010) ──
   One calm panel: the state in words, a large clock, the sound line from the real input, and a line that says the
   audio is safe. The red dot breathes slowly; in a pause everything turns grey and still. «Reduce motion» stops all. */
.om-rec { display: grid; gap: var(--om-space-4); padding: var(--om-space-5); animation: om-rise var(--om-dur) var(--om-ease); }
@keyframes om-rise { from { opacity: 0; transform: translateY(var(--om-space-1)); } }
.om-rec > * { margin: 0; }
.om-rec-top { display: flex; align-items: center; gap: var(--om-space-3); min-width: 0; }
.om-rec-label { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: var(--om-leading-tight); }
.om-rec-state { font-size: var(--om-text-lg); font-weight: 600; }
.om-rec-mode { font-size: var(--om-text-sm); color: var(--om-muted); }
.om-clock { font-variant-numeric: tabular-nums; font-size: var(--om-text-lg); font-weight: 600; }
.om-rec-clock { font-size: var(--om-text-2xl); letter-spacing: 0.02em; }
.om-rec-paused .om-rec-clock, .om-rec-paused .om-bar-clock { color: var(--om-muted); }
.om-bar.om-rec-paused .om-bar-clock { color: var(--om-on-chrome-muted); }

.om-dot { position: relative; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--om-rec); }
.om-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--om-rec); opacity: 0;
  animation: om-breathe var(--om-dur-breath) var(--om-ease) infinite;
}
@keyframes om-breathe { 0% { transform: scale(0.5); opacity: 0.8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.om-rec-paused .om-dot { background: var(--om-field-line); }
.om-rec-paused .om-dot::after { animation: none; }
.om-rec-top .om-dot { width: 14px; height: 14px; }

.om-wave { display: flex; align-items: center; gap: 3px; }
.om-wave-large { height: calc(var(--om-space-7) + var(--om-space-6)); mask-image: linear-gradient(90deg, transparent, black 30%); -webkit-mask-image: linear-gradient(90deg, transparent, black 30%); }
.om-wave-small { flex: 0 0 auto; height: var(--om-space-5); gap: 2px; }
.om-wave-bar {
  flex: 1 1 0; min-width: 2px; height: 100%; border-radius: var(--om-radius-pill); background: var(--om-link);
  transform: scaleY(var(--h, 0.08)); transition: transform var(--om-dur-fast) var(--om-ease);
}
.om-wave-large { gap: 4px; overflow: hidden; justify-content: flex-end; }
.om-wave-large .om-wave-bar { flex: 0 0 3px; }
.om-wave-small .om-wave-bar { flex: 0 0 3px; }
.om-bar .om-wave-bar { background: var(--om-chrome-rec); }
.om-wave-paused .om-wave-bar, .om-bar .om-wave-paused .om-wave-bar { background: var(--om-field-line); }

.om-rec-safe { font-size: var(--om-text-sm); color: var(--om-ok-text); }
.om-rec-safe-warn { color: var(--om-warn-text); background: var(--om-warn-bg); padding: var(--om-space-2) var(--om-space-3); border-radius: var(--om-radius-control); }
.om-rec-text { border-top: 1px solid var(--om-line); padding-top: var(--om-space-3); }
.om-rec-text-head { justify-content: space-between; }
.om-rec-text-head .om-h2 { margin: 0; }
.om-rec-toggle { color: var(--om-link); font-weight: 600; }
.om-rec-hint { margin: var(--om-space-2) 0 0; color: var(--om-muted); font-size: var(--om-text-lg); }
.om-note { background: var(--om-soft); color: var(--om-on-soft); border-radius: var(--om-radius-control); padding: 8px 12px; margin: 8px 0; overflow-wrap: anywhere; }
.om-warn { background: var(--om-warn-bg); color: var(--om-warn-text); }
.om-ok { background: var(--om-ok-bg); color: var(--om-ok-text); }
.om-transcript { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; padding: 8px 0; }
/* Release 1.1, job J8: the transcript in the basis, one paragraph per turn with the time and the speaker. */
.om-turn { margin: 0 0 var(--om-space-2); white-space: normal; }
.om-turn::before { content: attr(data-head); display: block; color: var(--om-muted); font-size: var(--om-text-sm); font-weight: 600; }

.om-facts { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.om-fact { display: flex; gap: 6px; align-items: flex-start; }
.om-fact .om-input { flex: 1 1 auto; }
.om-discarded .om-input { text-decoration: line-through; opacity: 0.6; }
.om-details { margin: 10px 0; }
.om-details summary { min-height: var(--om-touch); padding: 11px 0; cursor: pointer; font-weight: 600; }

.om-preview ol { margin: 4px 0 12px; padding-left: 22px; }
.om-sections { display: grid; gap: 4px; }
.om-section-head { font-weight: 600; }
.om-edited { font-weight: 400; color: var(--om-link); font-size: var(--om-text-sm); }
/* U4: the document's main actions (send, copy) stay at the bottom of the screen while the document scrolls. Sticky,
   not a scroller of its own: main.om-main stays the only scroll surface. */
.om-actions {
  /* main.om-main has 32px bottom padding, and sticky stops at the padding edge: -32px puts the row on the screen's edge. */
  position: sticky; bottom: -32px; z-index: 2;
  margin: 12px -16px 0; padding: 10px 16px;
  background: var(--om-surface);
  box-shadow: var(--om-shadow-up);
}
.om-actions:empty { display: none; }
.om-actions-more { margin-top: 4px; }
.om-fold > summary {
  min-height: var(--om-touch); padding: 11px 16px; margin: 0 0 12px; cursor: pointer; font-weight: 600;
  background: var(--om-surface); border-radius: var(--om-radius); box-shadow: var(--om-shadow);
}
.om-proposal { border: 2px dashed var(--om-link); border-radius: var(--om-radius); padding: 12px; margin: 0 0 12px; }
.om-proposal-item { padding: 8px 0; border-bottom: 1px solid var(--om-line); }
.om-diff { overflow-wrap: anywhere; line-height: 1.5; }
/* JQ-33 (job 9): new text is underlined as well as coloured, so the colour is never the only sign (5.2); the text
   against its background meets AA in both themes (PU-02: --om-ok-text on --om-ok-bg). Struck text as before. */
.om-diff ins { background: var(--om-ok-bg); color: var(--om-ok-text); text-decoration: underline; }
.om-diff del { background: var(--om-err-bg); color: var(--om-err-text); }
.om-codes ul { padding-left: 18px; }
.om-footer-actions { justify-content: flex-end; margin-top: 4px; }
.om-done { border-left: 4px solid var(--om-ok-text); }

/* ── Windows client (acceptance/track-w.md) ── */
.om-ehr-note { flex: 1 1 100%; }
.om-banner .om-note { flex: 1 1 100%; margin: 0; }
.om-approve { border-color: var(--om-primary); }
/* Release 1.1 job J4: the fields that are not filled in the box, and the result of a write that was not delivered in full
   (SPEC-TRANSFER-011). The result is a fact, not a proposal: a calm solid line, the status in words. */
.om-not-filled .om-list { margin: 8px 0; }
.om-delivery-result { border-style: solid; border-color: var(--om-line); }
.om-delivery-result .om-list { margin: 8px 0; }
.om-result-field { font-weight: var(--om-weight-semibold); }
.om-preview-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; background: var(--om-surface); border: 1px solid var(--om-line); border-radius: var(--om-radius-control); padding: 10px 12px; margin: 8px 0; }

/* ── The main window as a side panel beside the EHR (SPEC-MOBILE-019, PW-75 … PW-78) ──
   The MVP's panel, calmer: the page on the theme's background, cards without shadows, one red action fixed at the
   bottom. The client draws the window's shape (window region). Only with the class om-panel, which the client sets
   through panel.state; an ordinary browser and a phone never get it. */
.om-panel-only { display: none; }
omilon-app-root.om-panel { background: var(--om-bg); }
omilon-app-root.om-panel .om-panel-only { display: block; }
omilon-app-root.om-panel .om-user, omilon-app-root.om-panel .om-signout { display: none; }
omilon-app-root.om-panel .om-top { padding-left: var(--om-space-3); }
omilon-app-root.om-panel .om-main { padding: var(--om-space-3) var(--om-space-3) 32px; }
omilon-app-root.om-panel .om-card, omilon-app-root.om-panel .om-item, omilon-app-root.om-panel .om-fold > summary { box-shadow: none; }
omilon-app-root.om-panel .om-banner { background: transparent; padding-left: 0; padding-right: 0; }
/* The document's other actions are quiet text buttons, so the red one is the only strong action. */
omilon-app-root.om-panel .om-actions-more button { background: transparent; border-color: transparent; color: var(--om-link); }
omilon-app-root.om-panel .om-actions-more button:hover { background: var(--om-soft); }
/* The delivery action is fixed at the bottom of the panel (PW-76), as in the MVP, also when the document is short; the
   scroll surface keeps room under its content so nothing hides behind it. */
/* UT-287: above the space the page leaves for a receipt (--om-receipt-space, shared/receipt.ts), so the receipt never lies over it. */
omilon-app-root.om-panel .om-actions { position: fixed; left: 0; right: 0; bottom: var(--om-receipt-space, 0px); margin: 0; padding: var(--om-space-3); }
omilon-app-root.om-panel .om-main:has(.om-actions:not(:empty)) { padding-bottom: calc(var(--om-touch) + var(--om-space-8) + var(--om-space-4)); }
omilon-app-root.om-panel .om-actions .om-primary { flex: 1 1 12rem; min-height: var(--om-touch); }
/* The panel's start page (PW-85, PW-86): the EHR's patient, one main action, the list as a quiet link below. */
.om-home { display: flex; flex-direction: column; align-items: flex-start; gap: var(--om-space-3); }
.om-home > * { margin: 0; }
.om-home-caption { font-size: var(--om-text-sm); }
.om-home-patient { display: flex; flex-direction: column; gap: var(--om-space-1); font-size: var(--om-text-xl); line-height: var(--om-leading-tight); overflow-wrap: anywhere; }
.om-home-id { font-size: var(--om-text-md); font-weight: 400; color: var(--om-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.om-home-actions { margin-top: var(--om-space-2); }
/* «Alle økter» and «Hjelp og support» as tools with the icon above the text (5.5, release 1.2 step 4 part 2). */
.om-home-tools { display: flex; flex-wrap: wrap; gap: var(--om-space-2); margin: var(--om-space-2) 0 0; }
.om-with-icon { display: inline-flex; align-items: center; gap: var(--om-space-2); }
.om-with-icon .om-icon { width: 24px; height: 24px; flex: none; }

/* A tool: the icon above a short text (plan/design-retningslinjer.md 5.5: under the icon in narrow side panels and
   toolbars). Quiet like a link, the icon in the link colour; at least the touch size (SPEC-NFR-DESIGN-002). */
.om-tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--om-space-1);
  min-width: var(--om-touch); min-height: var(--om-touch); padding: 6px 10px; background: transparent; border-color: transparent;
  color: var(--om-text); font-size: var(--om-text-sm); font-weight: 400; line-height: var(--om-leading-tight); text-align: center; }
.om-tool .om-icon { color: var(--om-link); flex: none; }
.om-tool:hover:not(:disabled) { background: var(--om-soft); }
.om-tool[aria-pressed="true"] { background: var(--om-soft); border-color: var(--om-line); }
/* Job 10 (JQ-21): a tool with nothing to do says why in its text («Ingen nye fakta»), in the muted colour; it can still
   take the focus and be pressed (the receipt says why), so it is greyed with aria-disabled, not disabled. */
.om-tool[aria-disabled="true"], .om-tool[aria-disabled="true"] .om-icon { color: var(--om-muted); cursor: default; }
.om-tool[aria-disabled="true"]:hover { background: transparent; }
.om-tool-label { max-width: 8rem; }

/* The left edge: drag it (the client follows the pointer) or use the arrow keys. A short bar shows it can be gripped. */
.om-panel-edge { position: fixed; z-index: 5; left: 0; top: 0; bottom: 0; width: 12px; cursor: ew-resize; touch-action: none; }
.om-panel-edge[hidden] { display: none; }
.om-panel-edge::after { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: var(--om-space-8); margin-top: calc(-1 * var(--om-space-5));
  border-radius: var(--om-radius-pill); background: var(--om-field-line); opacity: 0; transition: opacity var(--om-dur-fast) var(--om-ease); }
.om-panel-edge:hover::after, .om-panel-edge:focus-visible::after { opacity: 1; background: var(--om-focus); }
.om-panel-edge:focus-visible { outline: 2px solid var(--om-focus); outline-offset: -2px; }

/* Surface "bar": a window of 420 × 56 DIP, only its buttons. Nothing scrolls. The Windows client draws only the pill
   (it gets the pill's size, PW-47), so what lies outside the pill is never seen there. */
omilon-app-root.om-surface-bar { background: transparent; }
omilon-app-root.om-surface-bar .om-main { padding: 0; overflow: hidden; }
omilon-app-root.om-surface-bar .om-main > * { max-width: none; margin: 0; }
omilon-app-root.om-surface-bar .om-card { margin: 0; padding: 6px 10px; border-radius: 0; font-size: var(--om-text-xs); }
/* The Bar (PW-45, SPEC-MOBILE-016), only as wide as its content: the Omilon mark, the patient in a quiet chip (none without
   a patient), a thin divider, icon tiles. Nothing in it can be selected by dragging. In the skins (NEXUS skin job 1,
   plan/nexus-skin/oppdrag.md points 2–8; design guidelines 4.2, 5.4): the blend from the left end to the right end, a
   1 px edge and 12 px corners in every skin (= BarShape.CornerRadiusCss, PW-47). */
.om-bar { display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100vw; height: 100vh; padding: 0 10px 0 6px;
  box-sizing: border-box; color: var(--om-on-chrome); border-radius: var(--om-radius-bar-corner); /* = BarShape.CornerRadiusCss (PW-47) */
  background: var(--om-chrome-gradient); border: 1px solid var(--om-chrome-border); overflow: hidden; user-select: none; -webkit-user-select: none;
  /* Drag the pill itself (the Windows client turns this into a window move, PW-48); every control stays clickable. */
  app-region: drag; -webkit-app-region: drag; }
.om-bar button { app-region: no-drag; -webkit-app-region: no-drag; }
.om-bar-mark { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: var(--om-touch); height: var(--om-touch); padding: 0;
  border: 0; border-radius: var(--om-radius-control); background: transparent; color: var(--om-on-chrome); cursor: pointer; }
.om-bar-mark-tile { display: grid; place-items: center; width: var(--om-touch); height: var(--om-touch); padding: 5px; box-sizing: border-box; flex: 0 0 auto; }
/* The link to the EHR in the mark (4.2, 5.8): the ring's segment in colour with a link, dark without; the words are in the
   mark's name and hint, and with the names on under the mark («DIPS Arena» or «Ikke koblet»). */
.om-bar .om-mark-accent { fill: var(--om-chrome-mark-off); }
.om-bar [data-ehr="on"] .om-mark-accent { fill: var(--om-chrome-mark-on); }
/* While recording the mark stands first, as a picture that names the mode (PW-57); no red dot (order point 7). */
.om-bar .om-bar-rec-mode { display: grid; place-items: center; flex: 0 0 auto; width: var(--om-space-7); height: var(--om-space-7); color: var(--om-on-chrome); }
button.om-bar-mark:hover { background: var(--om-chrome-hover); }
.om-mark { display: block; width: 100%; height: 100%; }
.om-mark-ring { fill: currentColor; }
/* NEXUS: on a dark background the mark is white with a red accent. */
.om-mark-accent { fill: var(--nx-red); }
.om-bar-sep { flex: 0 0 auto; width: 1px; height: 26px; background: var(--om-chrome-sep); }
.om-bar .om-bar-tool { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: var(--om-touch); padding: 0; background: transparent; border-color: transparent;
  color: var(--om-on-chrome); font-weight: 400; border-radius: var(--om-radius-control); }
.om-bar-tile { display: grid; place-items: center; width: var(--om-touch); height: var(--om-touch); flex: 0 0 auto;
  border-radius: var(--om-radius-control); background: var(--om-chrome-soft); transition: background var(--om-dur-fast) var(--om-ease); }
.om-bar .om-bar-tool:hover .om-bar-tile { background: var(--om-chrome-hover); }
/* Icons only by default: the name is the button's accessible name, not shown (PW-45). */
.om-bar-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  font-size: var(--om-text-bar-label); line-height: 1; color: var(--om-on-chrome-label); }
/* The names are 11 px and 75 % of the Bar's text (design guidelines 4.2, 5.8); the last name stands on the right, lightest
   end of the blend, where 75 % white is under 4.5:1, so it has the Bar's own text colour (5.2; NB-01, NB-03). */
.om-bar > .om-bar-tool:last-child .om-bar-label { color: var(--om-on-chrome); }
.om-bar .om-bar-tool:hover .om-bar-label { color: var(--om-on-chrome); }
/* By choice in the profile (PW-46), with a mouse: the name under the icon, on a slightly smaller tile so it fits. */
@media (pointer: fine) {
  .om-bar-labels .om-bar-tile { width: var(--om-space-7); height: var(--om-space-7); }
  .om-bar-labels .om-bar-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .om-bar-labels .om-bar-mark-tile { width: var(--om-space-7); height: var(--om-space-7); padding: var(--om-space-1); }
}
/* The mark on a button (4.2, order point 4): an arrow = opens a window, a dot = works straight in the record, a grey filled
   dot and a dimmed icon = not ready (also in words: the button's hint). The mark follows what is open and stands still
   while recording (the buttons give way to the recording then). */
.om-bar-tile { position: relative; }
.om-bar-badge { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: var(--om-space-3); height: var(--om-space-3);
  color: var(--om-chrome-accent); pointer-events: none; }
.om-bar-badge svg { width: 100%; height: 100%; }
.om-bar-badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--om-chrome-accent); }
.om-bar-badge-not-ready::before { background: var(--om-chrome-not-ready); }
.om-bar-tool[data-mark="not-ready"] .om-bar-tile > svg { opacity: 0.5; }
/* The Bar follows the patient (acceptance/track-w.md PW-40 … PW-44, SPEC-MOBILE-018): a caption («Pasient i EPJ · id»,
   «Opptak for · id» or the warning) above the name. A new patient fades in; a mismatch while recording gets a mark,
   a border and words, not colour alone. */
.om-bar-who { flex: 0 1 auto; min-width: 0; max-width: 15rem; display: flex; flex-direction: column; justify-content: center; line-height: var(--om-leading-tight);
  overflow: hidden; white-space: nowrap; font-weight: 600; font-size: var(--om-text-sm);
  padding: var(--om-space-1) var(--om-space-3); border-radius: var(--om-radius-control); background: var(--om-chrome-soft); }
.om-bar-who > * { overflow: hidden; text-overflow: ellipsis; }
.om-bar-caption { font-weight: 400; font-size: var(--om-text-xs); color: var(--om-on-chrome-muted); font-variant-numeric: tabular-nums; }
.om-bar-name { font-size: var(--om-text-md); }
/* A long name is never cut (UX checklist point 1 and 33): it wraps onto two lines in the small text, the id above it
   (bar.ts fitName; the idea of the design branch, proposal 1). */
.om-bar-who-long .om-bar-name { font-size: var(--om-text-xs); white-space: normal; overflow-wrap: break-word; line-height: var(--om-leading-tight); }
.om-bar-warning { color: var(--om-on-chrome-error); font-weight: 600; }
.om-bar-changed .om-bar-name, .om-bar-changed .om-bar-caption { animation: om-arrive var(--om-dur-slow) var(--om-ease); }
@keyframes om-arrive { from { opacity: 0; transform: translateY(var(--om-space-1)); } }
.om-bar.om-bar-mismatch { outline: 2px solid var(--om-on-chrome-error); outline-offset: -2px; }
.om-bar-live .om-wave, .om-bar-live .om-bar-clock { animation: om-rise var(--om-dur) var(--om-ease); }
.om-bar-error { color: var(--om-on-chrome-error); font-weight: 400; font-size: var(--om-text-xs); white-space: normal; line-height: 1.2; max-height: 100%; }
.om-bar-info { font-weight: 400; font-size: var(--om-text-xs); white-space: normal; line-height: 1.2; }
.om-bar-btn { flex: 0 0 auto; height: var(--om-touch); padding: 0 12px; background: var(--om-info-strong); border-color: var(--om-info-strong); color: var(--om-on-strong); font-weight: 600; border-radius: var(--om-radius-pill); }
/* «Stopp» (4.3, order point 7, UT-299): NEXUS red with white text. Red and NEXUS blue have the same lightness, so it has a
   1 px border in the Bar's text colour (variant A, the default). Variant B (html[data-bar-stop="dark"]) lets the blend
   turn dark again under it instead; both are shown to the product owner. */
.om-bar-stop { background: var(--om-danger-strong); border-color: var(--om-danger-strong); color: var(--om-on-strong); }
.om-bar .om-bar-btn.om-bar-stop { border: 1px solid var(--om-on-chrome); }
:root[data-bar-stop="dark"] .om-bar.om-bar-live { background: var(--om-chrome-gradient-stop-dark); }
:root[data-bar-stop="dark"] .om-bar .om-bar-btn.om-bar-stop { border-color: var(--om-danger-strong); }
/* Waiting for the note (4.3): a pulse and «Skriver notatet» in words, in place of «Stopp». */
.om-bar .om-bar-waiting { display: inline-flex; align-items: center; gap: var(--om-space-2); flex: 0 0 auto; height: var(--om-touch);
  padding: 0 var(--om-space-1); font-weight: 600; white-space: nowrap; color: var(--om-on-chrome); }
.om-bar-pulse { position: relative; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--om-chrome-waiting); }
.om-bar-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--om-chrome-waiting); opacity: 0;
  animation: om-breathe var(--om-dur-breath) var(--om-ease) infinite; }
.om-bar-icon { display: grid; place-items: center; padding: 0; width: var(--om-touch); background: var(--om-chrome-soft); border-color: transparent;
  color: var(--om-on-chrome); border-radius: var(--om-radius-control); }
.om-bar-icon:hover { background: var(--om-chrome-hover); }
.om-bar-clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.om-bar .om-dot { flex: 0 0 auto; }
/* Paused: the word «Pause» stands where the sound line was (status in words, not only colour; R0 #3). */
.om-bar .om-bar-state { font-weight: 600; color: var(--om-on-chrome); white-space: nowrap; }
.om-bar.om-rec-paused .om-wave { display: none; }
.om-bar.om-bar-live { gap: var(--om-space-1); }
.om-bar .om-sr-only { position: absolute; }
.om-bar.om-bar-live .om-bar-stop { padding: 0 var(--om-space-1); }
/* While recording the patient chip has a narrower inner margin, so the id and the name keep room to spare (PW-42, PW-44). */
.om-bar.om-bar-live .om-bar-who { padding-inline: var(--om-space-1); }
@media (pointer: coarse) { .om-bar { gap: var(--om-space-1); } }
/* The icon buttons need no (invisible) border, and with touch the patient chip has a narrower inner margin: the 44 px
   targets then still leave the id room in full, also with a long name and without Arial (PW-40, PW-44). */
.om-bar .om-bar-tool { border-width: 0; }
@media (pointer: coarse) { .om-bar .om-bar-who { padding-inline: var(--om-space-2); } }
/* Recording with touch: 44 px controls leave little room, so a smaller gap keeps the patient uncut (PW-42, PW-44). */
/* With touch the sound line gives way too, so «EPJ ·» and the id keep room (R0 #5); the clock and the recording dot
   still show that it records. */
@media (pointer: coarse) { .om-bar.om-bar-live { gap: var(--om-space-1); } .om-bar.om-bar-live .om-wave { display: none; } }
/* Recording, also where the text is wider than with Arial: «Stopp» keeps the control size with a narrow inner margin
   (above), no invisible border, and with touch the clock is the small text size, so the id and the name keep room to
   spare (PW-42, PW-44). */
.om-bar .om-bar-btn { border-width: 0; }
@media (pointer: coarse) { .om-bar.om-bar-live .om-bar-clock { font-size: var(--om-text-sm); } }
/* No recording dot since 4.12.2026 (order point 7) and no connection dot (decision 2026-11-25): the wave, the time and
   «Stopp» show that it records; the state is in words for screen readers, and «Pause» in visible words. */
/* The settings panel on the Omilon mark (release 1 job B7, RG-07 … RG-10): it folds out from the mark, below the pill, or
   above it near the bottom of the screen (the Windows client grows the Bar window inside the work area and says which).
   A calm light card with the app's own fields and buttons; the client draws the pill and this card only. */
om-bar.om-bar-open { display: flex; flex-direction: column; align-items: flex-start; gap: var(--om-space-2); }
om-bar.om-bar-open.om-bar-above { flex-direction: column-reverse; }
om-bar.om-bar-open .om-bar { flex: 0 0 auto; }
.om-bar-settings { box-sizing: border-box; width: 18rem; max-width: 100vw; display: flex; flex-direction: column; gap: var(--om-space-1);
  padding: var(--om-space-3); color: var(--om-text); background: var(--om-surface); border: 1px solid var(--om-field-line);
  border-radius: var(--om-radius); font-size: var(--om-text-sm); user-select: none; -webkit-user-select: none; }
.om-bar-settings label { margin: var(--om-space-2) 0 0; font-size: var(--om-text-xs); }
.om-bar-me { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--om-space-2); border-bottom: 1px solid var(--om-line);
  overflow-wrap: anywhere; line-height: var(--om-leading-tight); }
.om-bar-me .om-muted { font-size: var(--om-text-xs); }
/* The lines of the panel are quiet menu lines (no border); the toggle keeps the app's segmented look (pressed = navy). */
.om-bar-item { width: 100%; text-align: left; background: transparent; border-color: transparent; }
/* «Mikrofon og mal»: the rarely used part of the menu behind an arrow (4.2). */
.om-bar-more { display: flex; align-items: center; justify-content: space-between; gap: var(--om-space-2); }
/* Release 1.2, DT2: «Meld feil» has its icon beside the words (design guidelines 5.5). */
.om-bar-item-label { display: inline-flex; align-items: center; gap: var(--om-space-2); }
.om-dict-error-id { color: var(--om-muted); font-size: var(--om-text-xs); }
.om-bar-more-body { display: flex; flex-direction: column; gap: var(--om-space-1); padding: 0 0 0 var(--om-space-3); }
.om-bar-item:hover { background: var(--om-soft); color: var(--om-on-soft); }
.om-bar-settings .om-seg-btn { width: 100%; text-align: left; margin-top: var(--om-space-2); }
.om-bar-settings .om-toggle { margin-top: var(--om-space-2); }
button.om-bar-mark[aria-expanded="true"] { background: var(--om-chrome-hover); }
.om-bar-version { margin: var(--om-space-1) 0 0; font-size: var(--om-text-xs); }
.om-bar-rule { width: 100%; margin: var(--om-space-1) 0; border: 0; border-top: 1px solid var(--om-line); }
/* Release 1.1 job J13: the assistant's menu at the Bar, one line per function with the assistant's icon (4.2). */
.om-bar-task { display: flex; align-items: center; gap: var(--om-space-2); min-height: var(--om-touch); }
.om-bar-task-icon { display: inline-flex; color: var(--om-link); }
.om-bar-task-icon svg { width: 1.25rem; height: 1.25rem; }

/* Surface "dictate": 400 × 240 DIP window. Only the text area scrolls (the one scroll surface). */
omilon-app-root.om-surface-dictate .om-main { padding: 0; overflow: hidden; display: flex; }
omilon-app-root.om-surface-dictate .om-main > * { max-width: none; margin: 0; flex: 1 1 auto; min-width: 0; }
.om-dict { display: flex; flex-direction: column; height: 100%; padding: 8px 12px; gap: 6px; }
.om-dict p { margin: 0; }
.om-dict-head { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.om-dict-head .om-primary { margin-left: auto; }
.om-dict-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }

/* ── Sign-in (PL-*; job EV, design guidelines 4.1: one small window) ── */
.om-login { display: block; max-width: 520px; margin: 0 auto; }
.om-login-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.om-login-more[hidden], .om-login-bottom [hidden], .om-login-top:empty { display: none; }
.om-login-form .om-row .om-input { flex: 1 1 180px; min-width: 0; }
.om-login-email { margin-top: var(--om-space-4); }
.om-login-providers { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.om-login-msg { padding: 10px 12px; border-radius: var(--om-radius-control); margin: 8px 0; }
/* A message by the field it is about (4.7), in the form's own rhythm. */
.om-login-form > .om-login-msg { margin: 0; }
.om-login-title { display: flex; align-items: center; gap: var(--om-space-3); }
.om-login-mark { flex: 0 0 auto; display: block; width: 24px; height: 24px; color: var(--om-on-chrome); }
.om-login-server { display: flex; flex-direction: column; gap: var(--om-space-2); padding-bottom: var(--om-space-4); margin-bottom: var(--om-space-4); border-bottom: 1px solid var(--om-chrome-sep); }
/* «Husk passordet»: the label is the touch area (44 × 44 with touch, 36 with a mouse), the box 20 px. */
.om-login-remember { display: flex; align-items: center; gap: var(--om-space-2); min-height: var(--om-touch); font-weight: 400; cursor: pointer; }
.om-login-remember input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--om-primary-on-chrome); }
.om-login-form > .om-primary { margin-top: var(--om-space-1); }
.om-login-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: var(--om-space-1); margin-top: var(--om-space-4);
  padding-top: var(--om-space-3); border-top: 1px solid var(--om-chrome-sep); }
.om-login-bottom > .om-login-more, .om-login-bottom > p { align-self: stretch; }
.om-login-bottom > .om-login-toggle { padding-left: 0; padding-right: 0; }
/* Release 1.2 (ADR-0077): BankID and MitID under the organisation's account, one button each, the width of the window. */
.om-login-eid { display: flex; flex-direction: column; gap: var(--om-space-2); align-self: stretch; margin: var(--om-space-1) 0; }
/* «Innlogging» on «Min profil»: the state of each eID in words, its button beside it (under it when narrow). */
.om-eid-row { align-items: center; justify-content: space-between; }
.om-eid-row > p { margin: 0; }
/* The window (job EV): a small box in the middle of the page, without the app's top bar. Only main scrolls when it is
   taller than the screen. In the Windows client the window is the box, so the box has no frame of its own. */
omilon-app-root.om-signin .om-top, omilon-app-root.om-signin .om-panel-edge, omilon-app-root.om-signin .om-expired { display: none; }
omilon-app-root.om-signin .om-main { display: flex; flex-direction: column; padding: var(--om-space-4); background: var(--om-chrome-gradient); }
omilon-app-root.om-signin .om-main > .om-login { width: 100%; max-width: 400px; margin: auto; }
omilon-app-root.om-signin .om-login .om-card { margin: 0; padding: var(--om-space-5); border: 1px solid var(--om-chrome-border); }
omilon-app-root.om-signin.om-client .om-main { padding: 0; background: var(--om-chrome); }
omilon-app-root.om-signin.om-client .om-main > .om-login { max-width: none; margin: 0; }
omilon-app-root.om-signin.om-client .om-login .om-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
/* NEXUS (job 2, order decision 10, ADR-0095): the window is the skin's dark surface, the Bar's colour on the Bar's blend.
   Its text in the Bar's text colour, the main button on a dark surface (NEXUS: white with navy text), links and focus in
   the accent on a dark surface (NEXUS: light blue), second buttons quiet with a thin line, the logo «nexus / omilon» at the
   bottom (white and red; black and red on Papir's light surface, shared/skin.ts). The fields keep their own surface, and
   the content and the flow are as before (4.1). Every value is a role of the skin, so «Omilon» and «Papir» get theirs. */
.om-login .om-card { background: var(--om-chrome); color: var(--om-on-chrome); }
.om-login .om-card :focus-visible { outline-color: var(--om-focus-on-chrome); }
.om-login .om-muted { color: var(--om-on-chrome-muted); }
.om-login .om-primary { background: var(--om-primary-on-chrome); border-color: var(--om-primary-on-chrome); color: var(--om-on-primary-on-chrome); }
.om-login button:not(.om-primary):not(.om-link-btn), .om-login a.om-button { background: transparent; border-color: var(--om-chrome-line); color: var(--om-on-chrome); }
.om-login button:not(.om-primary):not(.om-link-btn):hover, .om-login a.om-button:hover, .om-login .om-link-btn:hover { background: var(--om-chrome-hover); }
.om-login .om-link-btn { color: var(--om-chrome-accent); }
.om-login-logo { display: block; width: auto; height: 20px; max-width: 100%; margin-top: var(--om-space-5); }
/* Day job 3 (help.start-pack): the test version's badge over the header never shrinks; not behind the sign-in window. */
omilon-app-root > .om-testbadge { flex: 0 0 auto; }
omilon-app-root.om-signin > .om-testbadge { display: none; }
.om-login-error { background: var(--om-err-bg); color: var(--om-err-text); }
.om-login-ok { background: var(--om-ok-bg); color: var(--om-ok-text); }
.om-wide { width: 100%; }
a.om-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--om-touch); padding: 8px 16px; box-sizing: border-box;
  border-radius: var(--om-radius-control); border: 1px solid var(--om-line); background: var(--om-surface); color: inherit; text-decoration: none; font-weight: 600;
}
.om-secret { display: block; font-size: var(--om-text-lg); letter-spacing: 0.05em; overflow-wrap: anywhere; padding: 8px; background: var(--om-soft); color: var(--om-on-soft); border-radius: var(--om-radius-s); }
/* The authenticator's QR code (PL-24): drawn on the page, dark on light in both themes, never wider than the screen. */
.om-qr-frame { display: flex; justify-content: center; margin: var(--om-space-2) 0 var(--om-space-3); }
.om-qr { display: block; width: min(240px, 100%); height: auto; aspect-ratio: 1 / 1; background: var(--om-qr-light); color: var(--om-qr-dark); border-radius: var(--om-radius-s); }
.om-code { font-size: var(--om-text-xl); letter-spacing: 0.3em; max-width: 12ch; }
/* The account name on the invite and new password screens (PL-74): shown for password managers, not to be changed. */
.om-login .om-input[readonly] { background: var(--om-soft); color: var(--om-on-soft); }
.om-expired { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--om-err-bg); color: var(--om-err-text); }
.om-expired[hidden] { display: none; }
.om-expired span { flex: 1 1 200px; }
.om-signout { background: transparent; color: var(--om-on-chrome); border-color: var(--om-chrome-line); font-size: var(--om-text-xs); padding: 4px 10px; min-height: var(--om-touch); min-width: var(--om-touch); flex: 0 0 auto; }

/* Sources per sentence (OA-062, PH-20) */
.om-sentence { display: inline-block; min-height: var(--om-touch); text-align: left; border: 0; background: none; padding: 4px 2px; font: inherit; color: inherit; text-decoration: underline dotted; cursor: pointer; }
.om-unsourced { background: var(--om-err-bg); color: var(--om-err-text); text-decoration: underline wavy currentColor; }
.om-source { display: block; margin: 4px 0 8px; padding: 8px; border-left: 3px solid var(--om-link); background: var(--om-soft); color: var(--om-on-soft); }
.om-source-fact { display: block; margin-top: var(--om-space-1); }
.om-selection-source { margin: var(--om-space-1) 0 var(--om-space-2); }
.om-selection-source .om-source { margin: var(--om-space-1) 0; }
.om-error { color: var(--om-err-text); font-weight: 600; }

/* ── The assistant (acceptance/track-x-assistant.md, SPEC-AGENT-019, -020) ──
   The MVP's assistant functions, calmer: few frames, status in words (never colour alone), one main button per step.
   Works from 380 px; at panel width (about 440 px) everything is one column. Nothing here scrolls on its own. */
.om-as { display: block; }
.om-as-head { display: grid; gap: var(--om-space-2); }
.om-as-head .om-h1 { margin: 0; }
.om-as-title { display: flex; align-items: center; gap: var(--om-space-2); }
.om-as-icon { flex: 0 0 auto; color: var(--om-link); }
.om-as-where { display: grid; gap: var(--om-space-1); }
.om-as-where p, .om-as-where label { margin: 0; }
.om-as-patient { font-weight: 600; font-size: var(--om-text-md); overflow-wrap: anywhere; margin: 0; }
.om-as-docname { color: var(--om-muted); font-size: var(--om-text-sm); }
.om-as-small { font-size: var(--om-text-sm); font-weight: 400; }
.om-as-menu .om-as-entry { flex-direction: row; align-items: center; gap: var(--om-space-3); }
.om-as-entry-icon { display: grid; place-items: center; flex: 0 0 auto; width: var(--om-space-8); height: var(--om-space-8);
  border-radius: var(--om-radius-control); background: var(--om-soft); color: var(--om-link); }
.om-as-entry-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.om-as-items, .om-as-sentences, .om-as-pairs { list-style: none; margin: 0; padding: 0; }
.om-as-item, .om-as-pair { padding: var(--om-space-3) 0; border-top: 1px solid var(--om-line); }
.om-as-item:first-child, .om-as-pair:first-child { border-top: 0; }
.om-as-item > p, .om-as-pair > p { margin: var(--om-space-1) 0 0; }
.om-as-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--om-space-2); }
.om-as-item-label { font-weight: 600; overflow-wrap: anywhere; }
.om-as-status { display: inline-block; padding: 1px 8px; border-radius: var(--om-radius-pill); font-size: var(--om-text-xs); font-weight: 600;
  background: var(--om-soft); color: var(--om-on-soft); }
.om-as-status-present { background: var(--om-ok-bg); color: var(--om-ok-text); }
.om-as-status-missing { background: var(--om-warn-bg); color: var(--om-warn-text); }
.om-as-evidence { overflow-wrap: anywhere; }
.om-as-evidence q + q { margin-left: var(--om-space-2); }
.om-as-add { margin-top: var(--om-space-2); display: grid; gap: var(--om-space-1); }
.om-as-add label { margin: 0; }
.om-as-source { display: grid; grid-template-columns: max-content 1fr; gap: var(--om-space-1) var(--om-space-3); margin: var(--om-space-3) 0; }
.om-as-source dt { color: var(--om-muted); }
.om-as-source dd { margin: 0; overflow-wrap: anywhere; }
.om-as-source a { color: var(--om-link); }
.om-as-pick { display: flex; align-items: center; gap: var(--om-space-2); }
.om-as-pick input, .om-as-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.om-as-code { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--om-space-1); min-height: var(--om-touch); margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.om-as-check { display: flex; align-items: center; gap: var(--om-space-2); min-height: var(--om-touch); margin: 0; font-weight: 400; }
.om-as-question { margin-top: var(--om-space-2); padding-left: var(--om-space-3); border-left: 3px solid var(--om-line); }
/* Release 1.1 job J3 (KG-30): a section per code system, and adding a code by hand. */
.om-as-system + .om-as-system { margin-top: var(--om-space-4); padding-top: var(--om-space-3); border-top: 1px solid var(--om-line); }
.om-as-system > .om-h3 { margin-bottom: 0; }
.om-as-system > p { margin: var(--om-space-1) 0; }
.om-as-addcode { display: grid; gap: var(--om-space-1); margin-top: var(--om-space-3); }
.om-as-addcode label { margin: 0; }
.om-as-addcode .om-row .om-input { flex: 1 1 12rem; min-width: 0; }
.om-as-addcode > .om-link-btn { justify-self: start; }
.om-as-hits { list-style: none; margin: 0; padding: 0; }
.om-as-hits .om-link-btn { text-align: left; }
.om-as-q { margin: 0 0 var(--om-space-2); }
.om-as-section + .om-as-section { margin-top: var(--om-space-3); }
.om-as-sentence { padding: var(--om-space-2) 0; }
.om-as-sentence-text { margin: 0; line-height: var(--om-leading); overflow-wrap: anywhere; }
/* Day build 3.12.2026, job 12 (JQ-32): a section of the patient letter is one paragraph, as in the print. */
.om-as-para { margin: var(--om-space-2) 0; line-height: var(--om-leading); overflow-wrap: anywhere; }
.om-as-card-head { justify-content: space-between; }
.om-as-card-head .om-h2 { margin: 0; }
.om-as-sentence-actions { margin-top: var(--om-space-1); gap: var(--om-space-1); }
.om-as-flagged { padding-left: var(--om-space-3); border-left: 3px solid var(--om-warn-text); }
.om-as-flag { margin: var(--om-space-1) 0 0; color: var(--om-warn-text); font-size: var(--om-text-sm); font-weight: 600; }
.om-as-orig { color: var(--om-muted); }
.om-as-trans { font-size: var(--om-text-md); }
.om-as-dev { margin-top: var(--om-space-1); }
.om-as-after { margin-top: var(--om-space-3); }
/* The printed patient summary: only in print (SPEC-AGENT-016). */
.om-as-print { display: none; }

@media print {
  body.om-as-printing > *:not(.om-as-print) { display: none !important; }
  body.om-as-printing .om-as-print { display: block; color: #000; background: #fff; font-size: 12pt; }
  .om-as-page { break-after: page; }
  .om-as-page:last-child { break-after: auto; }
  .om-as-page h1 { font-size: 18pt; margin: 0 0 12pt; }
  .om-as-page h2 { font-size: 13pt; margin: 12pt 0 4pt; }
  .om-as-page p { margin: 0 0 6pt; line-height: 1.45; }
  .om-as-notice { margin-top: 16pt; }
}

/* ── The calm session screen (kilde 3, Decision 2026-11-25; sketch plan/release-1-rolig-okt.png) ──
   While recording: one calm card in the middle. After the recording: the documents as tabs and «Vis grunnlaget» in
   one row, the note alone in one centred column, and a fixed line at the bottom (Forkast, the state in words, the main
   action). The basis panel is closed by default; on a wide screen it opens to the left of the note and the panel and
   the note scroll each on their own (decision 11b, the one exception to one scroll surface); on a narrow screen it is a
   layer in the note's place, and the view keeps one scroll surface. */
.om-link-btn { background: transparent; border-color: transparent; color: var(--om-link); padding: 4px 8px; text-decoration: underline;
  text-underline-offset: 3px; font-weight: 600; }
.om-link-btn:hover { background: var(--om-soft); }
.om-link-btn[aria-pressed="true"] { text-decoration: none; background: var(--om-soft); }
.om-gap { flex: 1 1 0; }
.om-banner-quiet { background: transparent; padding: 0; margin: 0 0 var(--om-space-2); }
.om-banner-quiet[hidden] { display: none; }

/* While recording: nearly nothing to look at. */
.om-rec-calm { justify-items: center; text-align: center; max-width: 34rem; margin: var(--om-space-6) auto var(--om-space-4);
  padding: var(--om-space-7) var(--om-space-5); }
.om-rec-calm .om-rec-top { justify-content: center; }
.om-rec-calm .om-rec-clock { font-size: var(--om-text-clock); line-height: 1; letter-spacing: 0.02em; }
.om-rec-calm .om-wave-large { width: 100%; max-width: 22rem; }
.om-rec-calm .om-rec-actions { justify-content: center; }
.om-rec-calm .om-rec-actions button { min-width: 8rem; }
.om-rec-calm .om-rec-text { width: 100%; text-align: left; }
.om-rec-template { color: var(--om-muted); font-size: var(--om-text-sm); }
.om-template-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--om-space-1); min-height: var(--om-touch);
  margin: var(--om-space-3) 0; color: var(--om-muted); }
/* Release 1.2, job 2 (NF-38): why the recording could not start, under «Start opptak» (nothing above it moves). The
   warning icon and the words say it, not only the colour; «Prøv igjen» and «Meld feil» at the touch size. */
.om-start-problem { display: flex; flex-direction: column; gap: var(--om-space-2); margin-top: var(--om-space-4);
  padding: var(--om-space-3); border: 1px solid var(--om-line); border-radius: var(--om-radius-control); }
.om-start-problem-text { display: flex; align-items: flex-start; gap: var(--om-space-2); margin: 0; color: var(--om-err-text);
  font-weight: 600; overflow-wrap: anywhere; }
.om-start-problem-text .om-icon { flex: none; }
.om-start-problem button { min-height: var(--om-touch); }

/* After the recording. */
.om-calm > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.om-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2); padding: 0 0 var(--om-space-2);
  margin-bottom: var(--om-space-3); border-bottom: 1px solid var(--om-line); }
.om-doc-head[hidden] { display: none; }
/* The tab row stays at the top while the note or the basis scrolls, so it is never half hidden under the message line
   (product owner 26.11.2026). main.om-main has 12px top padding; sticky stops at the padding edge. */
.om-calm .om-doc-head { position: sticky; top: -12px; z-index: 3; background: var(--om-bg); padding-top: var(--om-space-2); }
omilon-app-root.om-panel .om-calm .om-doc-head { top: calc(var(--om-space-3) * -1); }
.om-doc-head .om-tabs { margin: 0; }
.om-doc-tabs .om-tab { border-radius: 0; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 600; }
.om-doc-tabs .om-tab[aria-selected="true"] { background: transparent; color: var(--om-text); border-bottom-color: var(--om-text); }
.om-new-doc { text-decoration: none; }
.om-basis-toggle { font-weight: 600; }
.om-basis-toggle[aria-expanded="true"] { background: var(--om-soft); }
.om-calm-body { display: block; }
.om-note-col { max-width: 46rem; margin: 0 auto; }
.om-note-doc { padding: var(--om-space-2) 0; }
.om-note-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2); }
.om-note-title { flex: 1 1 12rem; margin: 0; font-size: var(--om-text-xl); }
.om-note-tools { display: flex; flex-wrap: wrap; gap: var(--om-space-1); }
/* The ⋯ menu of the note (plan/design-retningslinjer.md 4.4): «Kopier notatet», then «Forkast utkastet» in red. A light
   card with the faint menu shadow (5.4). */
.om-more { position: relative; margin-left: auto; }
.om-more-btn { display: grid; place-items: center; padding: 0; width: var(--om-touch); }
.om-menu { position: absolute; right: 0; top: 100%; z-index: 2; display: flex; flex-direction: column; min-width: 14rem;
  padding: var(--om-space-1); background: var(--om-surface); border: 1px solid var(--om-line); border-radius: var(--om-radius);
  box-shadow: var(--om-shadow-raised); }
.om-menu-item { width: 100%; text-align: left; background: transparent; border-color: transparent; }
.om-menu-item:hover { background: var(--om-soft); }
.om-menu-danger { color: var(--om-err-text); }
.om-menu-rule { width: 100%; margin: var(--om-space-1) 0; border: 0; border-top: 1px solid var(--om-line); }
.om-ai-time { font-variant-numeric: tabular-nums; }
/* NEXUS order 15: the state under the title is one line of muted text, no badge («AI-utkast, redigert av deg · 23:04»). */
.om-ai-label { display: block; margin: var(--om-space-1) 0 var(--om-space-4); color: var(--om-muted); font-size: var(--om-text-sm); }
/* The assistant's star without a name, in the accent colour, beside ⋯ (a written exception from names on icons). */
.om-star-btn { display: grid; place-items: center; padding: 0; width: var(--om-touch); color: var(--om-link); }
.om-star-btn:hover:not(:disabled) { background: var(--om-soft); }
/* An edited section: a 2 px line in the accent colour along it in the left margin, «Redigert av deg» as its tooltip
   (a wider invisible edge takes the pointer); «· redigert» after the heading is for screen readers only. */
.om-calm .om-section { position: relative; }
.om-edit-line { position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--om-space-2)); width: 2px; background: var(--om-link); }
.om-edit-line::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--om-space-1)); }
.om-calm .om-sections { gap: var(--om-space-3); }
.om-section-head { display: flex; align-items: center; gap: var(--om-space-2); }
.om-section-label { flex: 1 1 auto; margin: 0; font-weight: 600; }
/* The section's own tools (B2: dictation and copy) show with the pointer or the focus in the section; they stay in the
   tab order, so the keyboard always reaches them (kilde 3). */
.om-section-tools { display: inline-flex; gap: var(--om-space-1); opacity: 0; transition: opacity var(--om-dur-fast) var(--om-ease); }
.om-section-tools[hidden] { display: none; }
.om-section:hover .om-section-tools, .om-section:focus-within .om-section-tools { opacity: 1; }
@media (hover: none) { .om-section-tools { opacity: 1; } }
/* B2 (release 1): the microphone and copy per section, and «Dikter et tillegg»; while dictating the tools stay shown and
   say so in words (status with words, not only colour). */
.om-section-btns, .om-section-dictation, .om-addition { display: inline-flex; align-items: center; gap: var(--om-space-1); }
.om-section-btn { display: inline-grid; place-items: center; padding: 0; color: var(--om-muted); }
.om-section-btn:hover:not(:disabled) { color: var(--om-text); background: var(--om-soft); }
.om-section-btn[aria-pressed="true"], .om-addition-btn[aria-pressed="true"] { color: var(--om-on-soft); background: var(--om-soft); border-color: var(--om-rec); }
.om-section-status { color: var(--om-muted); font-size: var(--om-text-sm); font-weight: 400; }
.om-section-status[hidden] { display: none; }
.om-section-tools:has(.om-section-status:not([hidden])) { opacity: 1; }
.om-addition-btn { display: inline-flex; align-items: center; gap: var(--om-space-1); }
/* JQ-20 (job 9, 3.12.2026): while «Legg til med tale» listens, one line under the recording view says what it is for.
   The line is as wide as the recording view and wraps under it, so the bottom line keeps its one row on a PC. */
.om-addition .om-section-status:not([hidden]) { display: inline-grid; gap: var(--om-space-1); }
.om-addition-say { width: 0; min-width: 100%; }
/* The button that started a recording gives its place to the recording view, with the one «Stopp» (DJ-13). */
.om-addition-btn[hidden], .om-section-btn[hidden] { display: none; }
/* The note reads as text; the field shows its frame with the pointer or the focus on it. Only colours change then, never
   the size or the padding (JQ-06, night build step 2): a padding that changed with the pointer made the lines wrap again,
   the field grew or shrank under the pointer, and the text flickered. The frame stands in the margin instead. */
.om-calm .om-section-text { border-color: transparent; background: transparent; padding: 4px var(--om-space-3);
  margin-inline: calc(-1 * var(--om-space-3)); width: calc(100% + 2 * var(--om-space-3)); }
/* Day job S (NF-21): one line and its padding fill the touch size exactly (36 px with a mouse, 44 px with touch), so the
   smallest height never adds space under a short text: every field has the same space under its last line. */
.om-calm .om-section-text { padding-block: max(var(--om-space-1), calc((var(--om-touch) - 1lh - 2px) / 2)); }
.om-calm .om-section-text:hover, .om-calm .om-section-text:focus { border-color: var(--om-field-line); background: var(--om-surface); }
.om-calm .om-section-text::placeholder { color: var(--om-muted); opacity: 1; }
.om-reset { margin: var(--om-space-1) 0 0; font-size: var(--om-text-sm); }
/* Release 1.2, night build step 2 (ADR-0082, note.one-document): the note as one document. The headings in the interface
   font, the text in the note's serif (5.3); a typed field stands in the text as «Heading: value», its type after it. */
.om-calm .om-one-doc { gap: var(--om-space-2); }
.om-one-doc .om-doc-heading { margin: var(--om-space-3) 0 0; font-size: var(--om-text-md); font-weight: 600; }
.om-one-doc .om-doc-heading .om-section-label { margin: 0; }
.om-one-doc .om-section-text { font-family: var(--om-font-note); font-size: var(--om-text-note); line-height: var(--om-leading-note); }
.om-one-doc .om-doc-field { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--om-space-2); }
.om-one-doc .om-doc-field .om-section-head { display: contents; }
.om-one-doc .om-doc-field .om-section-label { flex: 0 0 auto; margin: 0; }
.om-one-doc .om-doc-field .om-section-text { order: 1; flex: 1 1 8rem; width: auto; margin-inline: 0; }
.om-one-doc .om-doc-field .om-section-tools { order: 2; }
.om-one-doc .om-doc-field .om-field-type, .om-one-doc .om-doc-field .om-section-extra, .om-one-doc .om-doc-field .om-reset { order: 3; flex: 1 1 100%; }
.om-field-type { color: var(--om-muted); font-size: var(--om-text-sm); }
.om-section-btn[aria-disabled="true"] { opacity: 0.4; }
.om-section-extra { margin-top: var(--om-space-1); }
.om-note-empty { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* The fixed line at the bottom (kilde 3): sticky inside the one scroll surface, as the actions before it (U4). */
.om-bottom { position: sticky; bottom: -32px; z-index: 2; margin: var(--om-space-4) -16px 0; padding: var(--om-space-2) 16px;
  background: var(--om-surface); border-top: 1px solid var(--om-line); }
.om-bottom-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2) var(--om-space-3); max-width: 960px; margin: 0 auto; }
.om-bottom .om-note { margin: 0 auto var(--om-space-2); max-width: 960px; }
.om-discard { color: var(--om-link); padding-left: 0; }
.om-bottom-state { color: var(--om-muted); font-size: var(--om-text-sm); }
.om-bottom-state:empty { display: none; }
/* NEXUS order 15: one row of actions, each the icon over a short name and no box (the frame shows with the pointer and
   the focus); under it the main button over the whole width, the only filled button in the panel. With large text the
   row may wrap; a name is never cut. «Legg til» takes a row of its own while it listens (its recording view). */
.om-bottom-tools { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: flex-start; gap: var(--om-space-1);
  max-width: 960px; margin: 0 auto; }
.om-bottom-tools[hidden] { display: none; }
.om-bottom-tools > .om-tool, .om-bottom-tools > .om-addition { flex: 1 1 auto; min-width: var(--om-touch); max-width: 10rem; }
.om-bottom-tools .om-tool:hover:not(:disabled) { border-color: var(--om-line); }
.om-bottom-tools .om-tool { padding-inline: var(--om-space-1); }
.om-bottom-tools .om-addition { display: flex; flex-direction: column; align-items: stretch; }
.om-bottom-tools .om-addition:has(.om-section-status:not([hidden])) { flex-basis: 100%; max-width: none; }
.om-bottom-actions { display: flex; gap: var(--om-space-2); max-width: 960px; margin: var(--om-space-2) auto 0; }
.om-bottom-actions .om-primary { flex: 1 1 100%; min-height: var(--om-touch); }
.om-main-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--om-space-2); }
.om-main-btn .om-icon { flex: none; }
/* Release 1, job B1: writing help (views/session/writing-help.ts): the field in the note, under the section it is for. */
.om-help-place { display: flex; flex-direction: column; align-items: flex-start; gap: var(--om-space-1); }
.om-help-place > .om-help-panel { align-self: stretch; }
.om-help-panel { display: grid; gap: var(--om-space-2); margin: var(--om-space-2) 0 var(--om-space-3); padding: var(--om-space-3);
  border: 1px solid var(--om-line); border-radius: var(--om-radius); background: var(--om-surface); }
.om-help-head, .om-help-chips, .om-help-row, .om-help-actions { display: flex; align-items: center; gap: var(--om-space-2); }
.om-help-chips, .om-help-row { flex-wrap: wrap; }
.om-help-scope-label { flex: 0 0 auto; font-weight: 600; }
select.om-input.om-help-scope { width: 0; min-width: 0; flex: 1 1 8rem; max-width: 22rem; }
.om-help-close { flex: 0 0 auto; margin-left: auto; }
.om-help-row { align-items: flex-end; }
.om-help-text { flex: 1 1 16rem; min-width: 0; }
.om-help-actions { flex: 0 0 auto; margin-left: auto; }
.om-help-actions button { min-height: var(--om-touch); }
.om-help-mic[aria-pressed="true"] { border-color: var(--om-link); color: var(--om-link); font-weight: 600; }
.om-help-line { margin: 0; font-size: var(--om-text-sm); }
.om-help-section { font-weight: 400; font-size: var(--om-text-sm); justify-self: start; }
/* Release 1.2, night build step 2 (JQ-11, UX point 46): the shared recording view in the note (lib/rec-indicator.ts) – the
   red dot, «Tar opp …» in words, the sound line and «Stopp», the same pieces as Omilon Ambient's listening view. */
.om-rec-indicator { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--om-space-2); color: var(--om-text); font-weight: 600; }
.om-rec-indicator .om-dot { width: 10px; height: 10px; }
.om-rec-indicator-stop { display: inline-flex; align-items: center; gap: var(--om-space-1); min-height: var(--om-touch); font-weight: 600; }
/* JQ-15 and JQ-13: the languages in words, and the line that says new facts have come (the note's info, under the AI line). */
.om-doc-langs { margin: 0 0 var(--om-space-3); color: var(--om-muted); font-size: var(--om-text-sm); }
.om-new-facts { margin: 0 0 var(--om-space-3); }
/* JQ-14: «+ Nytt dokument» also offers the patient-friendly letter. */
.om-new-letter { display: grid; gap: var(--om-space-1); margin-top: var(--om-space-3); padding-top: var(--om-space-3); border-top: 1px solid var(--om-line); }
.om-new-letter p { margin: 0; }
.om-new-letter .om-link-btn { justify-self: start; display: inline-flex; align-items: center; gap: var(--om-space-2); }
/* Release 1.1, job J1: the note made again (views/session/remake-panel.ts), a small panel at the top of the note with
   «Mal», «Notatspråk», the warning about the clinician's own text and «Lag på nytt» under the fields (a short dialog,
   design guidelines 3.2); and in «Ny økt» the template and the conversation's language behind «Bytt». */
.om-remake-panel { display: grid; gap: var(--om-space-3); margin: 0 0 var(--om-space-4); padding: var(--om-space-3);
  border: 1px solid var(--om-line); border-radius: var(--om-radius); background: var(--om-surface); }
.om-remake-head { display: flex; align-items: center; gap: var(--om-space-2); }
.om-remake-head .om-h3 { flex: 1 1 auto; margin: 0; }
.om-remake-close { flex: 0 0 auto; }
.om-remake-fields { display: grid; gap: var(--om-space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.om-remake-field { display: grid; gap: var(--om-space-1); min-width: 0; }
.om-remake-warning { display: grid; gap: var(--om-space-1); margin: 0; }
.om-remake-warning p { margin: 0; }
.om-remake-actions { display: flex; flex-wrap: wrap; gap: var(--om-space-2); }
.om-remake-actions .om-primary { min-height: var(--om-touch); }
/* While the panel is open, its «Lag på nytt» is the one main button (design guidelines 3.2: one main button; in a short
   dialog it stands under the fields): the bottom line's main button steps back until the panel closes. */
om-session:has(.om-remake-panel) .om-bottom-actions .om-primary { background: var(--om-surface); border-color: var(--om-line); color: var(--om-text); font-weight: 400; }
.om-remake-done { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 var(--om-space-1); }
/* Release 1.1, job J17: «Last ned første utkast» (views/session/first-draft-panel.ts), the same small panel at the top of
   the note: the facts of the locked copy as a list of terms, then «Last ned» under them (a short dialog, 3.2). */
.om-first-draft-panel { display: grid; gap: var(--om-space-3); margin: 0 0 var(--om-space-4); padding: var(--om-space-3);
  border: 1px solid var(--om-line); border-radius: var(--om-radius); background: var(--om-surface); }
.om-first-draft-panel p { margin: 0; }
.om-first-draft-head { display: flex; align-items: center; gap: var(--om-space-2); }
.om-first-draft-head .om-h3 { flex: 1 1 auto; margin: 0; }
.om-first-draft-close { flex: 0 0 auto; }
.om-first-draft-facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: var(--om-space-1) var(--om-space-3); margin: 0; }
.om-first-draft-facts dt { color: var(--om-muted); }
.om-first-draft-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.om-first-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2); }
.om-first-draft-actions .om-primary { min-height: var(--om-touch); }
/* While the panel is open, its «Last ned» is the one main button (3.2), as with «Lag på nytt». */
om-session:has(.om-first-draft-panel) .om-bottom-actions .om-primary { background: var(--om-surface); border-color: var(--om-line); color: var(--om-text); font-weight: 400; }
@media (max-width: 520px) { .om-first-draft-facts { grid-template-columns: minmax(0, 1fr); } .om-first-draft-facts dd { margin-bottom: var(--om-space-2); } }
.om-template-choice { display: grid; gap: var(--om-space-3); margin: var(--om-space-3) 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.om-template-choice .om-field { display: grid; gap: var(--om-space-1); min-width: 0; }
/* A proposal brought into view stands below the tab row, which stays at the top. */
.om-calm .om-proposal { scroll-margin-top: calc(var(--om-space-8) * 3); }

/* The basis panel (kilde 3): facts by theme, what the clinician changed marked, «Legg til», the transcript. */
.om-basis { display: grid; gap: var(--om-space-3); align-content: start; }
.om-basis-head { display: flex; align-items: center; gap: var(--om-space-2); }
.om-basis-head .om-h2 { flex: 1 1 auto; margin: 0; }
.om-basis-hint { margin: 0 0 var(--om-space-3); font-size: var(--om-text-sm); }
.om-fact-groups { display: grid; gap: var(--om-space-3); }
.om-fact-group-head { display: flex; align-items: center; gap: var(--om-space-2); margin: 0 0 var(--om-space-1); font-size: var(--om-text-sm);
  font-weight: 600; color: var(--om-muted); }
.om-fact-rule { flex: 1 1 auto; border-top: 1px solid var(--om-line); }
.om-fact-count { font-variant-numeric: tabular-nums; }
.om-calm .om-facts { gap: 0; }
.om-fact-body { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-1); }
.om-calm .om-fact-text { flex: 1 1 100%; border-color: transparent; background: transparent; padding: 4px var(--om-space-3);
  margin-inline: calc(-1 * var(--om-space-3)); }
.om-calm .om-fact-text:hover, .om-calm .om-fact-text:focus { border-color: var(--om-field-line); background: var(--om-surface); }
.om-fact-mark { flex: 0 0 auto; margin: 0 0 var(--om-space-1); padding: 0 8px; border: 1px solid var(--om-field-line); border-radius: var(--om-radius-pill); font-size: var(--om-text-xs);
  color: var(--om-text); }
.om-fact-mark[hidden] { display: none; }
.om-discarded .om-fact-text { text-decoration: line-through; color: var(--om-muted); }
.om-fact-add { align-items: stretch; }
.om-basis-transcript { display: grid; gap: var(--om-space-2); }
.om-basis-transcript .om-details summary { color: var(--om-link); }
/* B5 (release 1): questions about the session, under the transcript in the basis panel. Calm: one quiet field, the
   answers as plain text with the transcript's own words as quotes. */
.om-ask { display: grid; gap: var(--om-space-2); padding-top: var(--om-space-3); border-top: 1px solid var(--om-line); }
.om-ask-title { margin: 0; font-size: var(--om-text-md); }
.om-ask-hint { margin: 0; font-size: var(--om-text-sm); }
.om-ask-form { flex-wrap: wrap; }
.om-ask-form > .om-input { flex: 1 1 12rem; }
.om-ask-selection { justify-self: start; font-weight: 400; }
.om-ask-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--om-space-4); }
.om-ask-answers[hidden] { display: none; }
.om-ask-item { display: grid; gap: var(--om-space-1); }
.om-ask-q { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.om-ask-a { margin: 0; overflow-wrap: anywhere; }
.om-ask-quote { display: grid; justify-items: start; gap: 0; }
.om-quote { margin: var(--om-space-1) 0 0; padding: 0 0 0 var(--om-space-3); border-left: 3px solid var(--om-field-line); overflow-wrap: anywhere; }
.om-ask-quote .om-link-btn { font-weight: 400; font-size: var(--om-text-sm); }

/* Narrow (side panel, phone, 380 px): the open panel is a layer in the note's place; one scroll surface. */
.om-basis-open .om-basis { padding: var(--om-space-2) 0; }
.om-basis-open .om-note-col, .om-basis-open .om-bottom { display: none; }
/* Wide: the panel to the left of the note, each scrolling on its own (decision 11b). main.om-main does not scroll then. */
@media (min-width: 960px) {
  .om-main:has(> .om-basis-open) { overflow-y: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
  .om-main > .om-basis-open { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; }
  .om-basis-open > * { width: 100%; max-width: 1200px; }
  .om-basis-open .om-calm-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); }
  .om-basis-open .om-basis { overflow-y: auto; padding: 0 var(--om-space-4) var(--om-space-6) 0; border-right: 1px solid var(--om-line); }
  .om-basis-open .om-note-col { display: block; overflow-y: auto; padding: 0 var(--om-space-2) var(--om-space-6) var(--om-space-5); max-width: none; margin: 0; }
  /* Each of the two scroll surfaces keeps what is placed inside it, as main does (JQ-19). */
  .om-basis-open .om-basis, .om-basis-open .om-note-col { position: relative; }
  .om-basis-open .om-bottom { display: block; position: static; margin: 0 auto; box-shadow: none; border-top: 1px solid var(--om-line); }
  .om-basis-open .om-bottom-row, .om-basis-open .om-bottom .om-note { max-width: none; }
}

/* The session list: «Arkiver» and «Slett økten» on each session (Decision 2026-11-25). */
.om-list-row { display: grid; gap: 0; }
.om-item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--om-space-1); margin-top: calc(var(--om-space-1) * -1); }
.om-item-actions .om-link-btn { font-size: var(--om-text-sm); font-weight: 400; }
.om-danger-link { color: var(--om-err-text); }
/* Release 1.1, job J8 (PU-01): red on the soft hover background was 4.21:1; the hover shows a red outline on paper instead. */
.om-link-btn.om-danger-link:hover { background: var(--om-err-bg); border-color: var(--om-err-text); }
/* Release 1.1, job J8: the clinician's own name first in the row, and the field for it in place of the row's actions. */
.om-item-name { font-weight: 600; overflow-wrap: anywhere; }
.om-item-patient { font-weight: 400; }
/* Day job S (NF-23, design guidelines 4.6): the product's icon at the left of each session, in the link colour (the
   whole row is the link), and the texts beside it as before. */
.om-item.om-item-iconed { flex-direction: row; align-items: flex-start; gap: var(--om-space-3); }
.om-item-icon { flex: none; display: inline-grid; place-items: center; color: var(--om-link); }
.om-item-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--om-space-1); }
/* Day job S (NF-23, 5.5): an action in a quiet place is a button with an icon and a short text, not an underlined link. */
.om-link-btn.om-icon-link { display: inline-flex; align-items: center; gap: var(--om-space-1); text-decoration: none; }
.om-link-btn.om-icon-link .om-icon { flex: none; }
/* A hidden one stays hidden: «Legg til med tale» gives its place to the recording view (DJ-13). */
.om-link-btn.om-icon-link[hidden] { display: none; }
.om-rename { padding: var(--om-space-2) var(--om-space-3) var(--om-space-3); }
.om-rename-label { margin: 0 0 var(--om-space-1); }
.om-rename-row { align-items: center; flex-wrap: wrap; }
.om-rename-row > .om-input { flex: 1 1 240px; min-width: 0; }

/* The side panel: the bottom line is fixed at the bottom of the panel, as the delivery action before it (PW-76). */
/* UT-287: above the space the page leaves for a receipt (--om-receipt-space, shared/receipt.ts), so the receipt never lies over it. */
omilon-app-root.om-panel .om-bottom { position: fixed; left: 0; right: 0; bottom: var(--om-receipt-space, 0px); margin: 0; padding: var(--om-space-2) var(--om-space-3); }
/* NEXUS order job 6: the scroll surface ends above the fixed bottom line (its height from note-editor.ts), so nothing in
   the note lies under the line at rest; the fallback is the line with one row and the main button. */
omilon-app-root.om-panel .om-main:has(.om-bottom) { margin-bottom: var(--om-bottom-line-h, calc(var(--om-touch) * 3 + var(--om-space-8) * 2)); padding-bottom: var(--om-space-4); }

/* «Hjelp og support» (release 1.1 job J12, SPEC-HELP-001): the conversation in the one scroll surface; status in words. */
.om-help { display: flex; flex-direction: column; gap: var(--om-space-3); }
.om-help-status { margin: 0; font-weight: 600; }
.om-help-state { margin: 0; color: var(--om-muted); }
.om-help-warning { margin: 0; padding: var(--om-space-2) var(--om-space-3); border-radius: var(--om-radius-s); font-size: var(--om-text-sm); }
.om-help-actions { gap: var(--om-space-2); }
.om-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--om-space-3); }
.om-chat-msg { display: flex; flex-direction: column; gap: var(--om-space-1); max-width: 40rem; padding: var(--om-space-3);
  border-radius: var(--om-radius); background: var(--om-soft); color: var(--om-on-soft); overflow-wrap: anywhere; }
.om-chat-user { align-self: flex-end; background: var(--om-surface); color: var(--om-text); border: 1px solid var(--om-line); }
.om-chat-support { border-left: 4px solid var(--om-primary); }
.om-chat-who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2); font-size: var(--om-text-sm); font-weight: 600; }
.om-chat-ai { font-weight: 400; }
.om-chat-text { margin: 0; white-space: pre-wrap; line-height: var(--om-leading); }
.om-chat-source { margin: 0; font-size: var(--om-text-sm); color: var(--om-muted); }
.om-chat-system { align-self: center; font-size: var(--om-text-sm); color: var(--om-muted); }
.om-chat-system:empty { display: none; }
.om-top-help { flex: 0 0 auto; min-height: var(--om-touch); padding: 0 var(--om-space-3); border-radius: var(--om-radius-pill);
  background: var(--om-chrome-soft); color: var(--om-on-chrome); border: 1px solid var(--om-chrome-line); font-size: var(--om-text-sm); }
.om-top-help[hidden] { display: none; }
.om-bar-mark { position: relative; }
.om-bar-unread { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--om-on-chrome); border: 2px solid var(--om-chrome); }

/* Satisfaction questions and tips (release 1.1 jobs NS and TP, ADR-0049; plan/design-retningslinjer.md 4.2 and 4.9): the
   fold-out under the Bar after a finished task (the same calm card as the settings panel), at the bottom of the app in the
   browser and on mobile, below the one scroll surface so it covers nothing. One question or one tip, never both. */
om-bar:has(> .om-fold) { display: flex; flex-direction: column; align-items: flex-start; gap: var(--om-space-2); }
om-bar:has(> .om-fold) > .om-bar { flex: 0 0 auto; height: var(--bar-pill-height, 100vh); }
.om-fold { box-sizing: border-box; width: 26rem; max-width: 100%; padding: var(--om-space-3); color: var(--om-text);
  background: var(--om-surface); border: 1px solid var(--om-field-line); border-radius: var(--om-radius); box-shadow: var(--om-shadow);
  font-size: var(--om-text-sm); animation: om-arrive var(--om-dur) var(--om-ease); }
/* Once arrived, a redraw of the Bar (which puts the same fold-out back) does not let it arrive again. */
.om-fold.om-arrived { animation: none; }
.om-fold-body { display: flex; flex-direction: column; gap: var(--om-space-2); }
.om-fold-head { display: flex; align-items: flex-start; gap: var(--om-space-2); }
.om-fold-title { flex: 1 1 auto; margin: 0; font-weight: 600; line-height: var(--om-leading-tight); overflow-wrap: anywhere; }
.om-fold-x { flex: 0 0 auto; display: grid; place-items: center; width: var(--om-touch); min-height: var(--om-touch); padding: 0; }
/* The scale in even columns: 1–5 on one row, 0–10 on two rows of six and five, so every button keeps its touch size. */
.om-scale { display: grid; grid-template-columns: repeat(5, minmax(var(--om-touch), 1fr)); gap: var(--om-space-1); }
.om-scale[data-count="11"] { grid-template-columns: repeat(6, minmax(var(--om-touch), 1fr)); }
.om-scale-btn { min-width: var(--om-touch); min-height: var(--om-touch); padding: 0; font-variant-numeric: tabular-nums; }
.om-scale-btn[aria-checked="true"] { background: var(--om-selected); color: var(--om-on-selected); border-color: var(--om-selected); font-weight: 600; }
.om-scale-ends { display: flex; justify-content: space-between; gap: var(--om-space-2); font-size: var(--om-text-xs); color: var(--om-muted); }
.om-fold-more { display: flex; flex-direction: column; gap: var(--om-space-1); }
.om-fold-more[hidden] { display: none; }
.om-fold-more label { font-size: var(--om-text-xs); }
.om-fold-more .om-primary { align-self: flex-end; }
.om-fold-error { margin: 0; color: var(--om-err-text); }
.om-fold-hint { margin: 0; font-size: var(--om-text-sm); }
.om-tip-actions { display: flex; align-items: center; gap: var(--om-space-2); flex-wrap: wrap; }
.om-tip-more { display: grid; place-items: center; width: var(--om-touch); min-height: var(--om-touch); padding: 0; }
.om-tip-menu { display: flex; flex-direction: column; gap: var(--om-space-1); padding: var(--om-space-1); border: 1px solid var(--om-line);
  border-radius: var(--om-radius-control); background: var(--om-surface); box-shadow: var(--om-shadow); }
.om-tip-menu[hidden] { display: none; }
.om-engage-strip { flex: 0 0 auto; display: flex; justify-content: center; padding: var(--om-space-2) var(--om-space-4) var(--om-space-3);
  background: var(--om-bg); border-top: 1px solid var(--om-line); }
.om-engage-strip .om-fold { width: 100%; max-width: 40rem; box-shadow: none; }
/* The tip on the Omilon mark (4.2): a small ring, apart from the dot of an answer from support; said in the mark's name. */
.om-bar-tipmark { position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--om-chrome); border: 2px solid var(--om-on-chrome); }
.om-bar-tip { padding-bottom: var(--om-space-2); border-bottom: 1px solid var(--om-line); }
.om-bar-tip .om-fold-title { font-weight: 400; }
.om-suggest { display: flex; flex-direction: column; gap: var(--om-space-1); }
.om-suggest .om-check { display: flex; align-items: center; gap: var(--om-space-2); }
.om-suggest p:empty { display: none; }
/* ── The secretary's work list (release 1.1 job AL, ADR-0052): the list and one dictation. Rows, not cards (4.6); the
   uncertain places yellow with a dotted line, never colour alone (4.4, 4.8); one scroll surface (main). ── */
.om-wl-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2); }
.om-wl-head .om-h1 { flex: 1 1 12rem; }
.om-wl-summary { margin: var(--om-space-2) 0 0; color: var(--om-muted); font-size: var(--om-text-sm); }
.om-wl-summary strong { color: var(--om-text); font-weight: 600; }
.om-wl-filters { display: flex; flex-wrap: wrap; gap: var(--om-space-2) var(--om-space-5); margin: 0 0 12px; }
.om-wl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-1); }
.om-wl-filter-label { margin: 0 var(--om-space-1) 0 0; font-weight: 600; font-size: var(--om-text-sm); }
.om-wl-filter-toggle { display: none; margin: 0 0 12px; }
@media (max-width: 600px) {
  .om-wl-filter-toggle { display: inline-flex; }
  .om-wl-filters[data-open="false"] { display: none; }
  .om-wl-filter { width: 100%; }
}
.om-wl-filter select.om-input { width: auto; min-width: 12rem; max-width: 100%; }
.om-wl-filter .om-seg-btn { min-height: var(--om-touch); }
.om-wl-row { display: flex; align-items: flex-start; gap: var(--om-space-3); }
.om-wl-row > .om-wl-icon { flex: 0 0 auto; margin-top: 2px; color: var(--om-link); }
.om-wl-row-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.om-wl-patient { font-weight: 600; overflow-wrap: anywhere; }
.om-wl-patient-id { font-weight: 400; color: var(--om-muted); margin-left: var(--om-space-2); }
.om-wl-flags { display: flex; flex-wrap: wrap; gap: var(--om-space-1); align-items: center; }
.om-wl-pri-urgent { background: var(--om-warn-bg); color: var(--om-warn-text); font-weight: 600; }
.om-wl-overdue { color: var(--om-warn-text); font-weight: 600; }
.om-wl-state-failed { background: var(--om-danger-strong); color: var(--om-on-strong); }
.om-wl-state-ready { background: var(--om-ok-bg); color: var(--om-ok-text); }
.om-wl-held { color: var(--om-muted); font-size: var(--om-text-sm); }
.om-wl-item[aria-disabled="true"] { cursor: default; background: var(--om-bg); box-shadow: none; border-style: dashed; }
.om-wl-upload { display: grid; gap: 0; }
.om-wl-upload .om-row { margin-top: var(--om-space-3); justify-content: flex-end; }
.om-wl-field-error { color: var(--om-err-text); font-size: var(--om-text-sm); margin: var(--om-space-1) 0 0; }

.om-wl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2); }
.om-wl-toolbar .om-note-title { flex: 1 1 10rem; }
.om-wl-state { margin: var(--om-space-1) 0 0; color: var(--om-muted); font-size: var(--om-text-sm); }
.om-wl-meta { margin: var(--om-space-1) 0 0; color: var(--om-muted); font-size: var(--om-text-sm); overflow-wrap: anywhere; }
.om-wl-player { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-2);
  background: var(--om-surface); border: 1px solid var(--om-line); border-radius: var(--om-radius); padding: var(--om-space-2) var(--om-space-3);
  margin: 0 0 12px; }
.om-wl-player button { min-width: var(--om-touch); min-height: var(--om-touch); }
.om-wl-player .om-wl-play { font-weight: 600; display: inline-flex; align-items: center; gap: var(--om-space-1); }
.om-wl-position { flex: 1 1 10rem; display: flex; align-items: center; gap: var(--om-space-2); min-width: 0; }
.om-wl-position input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--om-primary); min-height: var(--om-touch); }
.om-wl-time { font-variant-numeric: tabular-nums; color: var(--om-muted); font-size: var(--om-text-sm); white-space: nowrap; }
.om-wl-speed { display: inline-flex; align-items: center; gap: var(--om-space-1); }
.om-wl-speed-value { min-width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.om-wl-places { display: flex; flex-wrap: wrap; align-items: center; gap: var(--om-space-1); margin: 0 0 var(--om-space-3); }
.om-wl-places-title { margin: 0; font-size: var(--om-text-sm); font-weight: 600; }
.om-wl-place { background: var(--om-uncertain-bg); color: var(--om-uncertain-text); border: 1px dashed var(--om-uncertain-text);
  border-radius: var(--om-radius-pill); font-size: var(--om-text-sm); padding: 2px 10px; min-height: var(--om-touch); }
.om-wl-section { margin: 0 0 var(--om-space-3); }
.om-wl-field { position: relative; }
.om-wl-field textarea.om-input, .om-wl-mirror { font-family: var(--om-font-note); font-size: var(--om-text-note); line-height: var(--om-leading-note);
  padding: 10px 12px; border: 1px solid var(--om-field-line); border-radius: var(--om-radius-control); white-space: pre-wrap;
  overflow-wrap: break-word; word-break: normal; letter-spacing: normal; }
.om-wl-field textarea.om-input { position: relative; z-index: 1; background: transparent; }
.om-wl-mirror { position: absolute; inset: 0; color: transparent; border-color: transparent; pointer-events: none; overflow: hidden; margin: 0;
  background: var(--om-surface); }
.om-wl-mark { background: var(--om-uncertain-bg); border-bottom: 2px dotted var(--om-uncertain-text); color: transparent; }
.om-wl-diff { font-family: var(--om-font-note); font-size: var(--om-text-note); line-height: var(--om-leading-note); white-space: pre-wrap;
  overflow-wrap: break-word; margin: 0; padding: 10px 12px; border: 1px solid var(--om-line); border-radius: var(--om-radius-control); }
.om-wl-diff del { color: var(--om-muted); text-decoration: line-through; }
.om-wl-diff ins { color: var(--om-ok-text); text-decoration: none; border-bottom: 2px solid var(--om-ok-text); }
.om-wl-panel { margin: 0 0 12px; }
.om-wl-panel .om-row { justify-content: flex-end; margin-top: var(--om-space-2); }
.om-wl-foot { display: flex; flex-wrap: wrap; gap: var(--om-space-1); justify-content: space-between; margin: var(--om-space-2) 0 var(--om-space-6); }
@media (max-width: 600px) {
  .om-wl-position { flex-basis: 100%; order: 3; }
}

/* Release 1.1 job J13 (SPEC-MOBILE-022, BS-09): the start row at the top of the start page in a browser and on a phone,
   with the Bar's names and order. Icon and word on one line, the control size, the open menu shown on «Assistent». */
.om-start-row { display: flex; flex-wrap: wrap; gap: var(--om-space-2); margin-bottom: var(--om-space-3); }
.om-start-btn { display: inline-flex; align-items: center; gap: var(--om-space-2); min-height: var(--om-touch); font-weight: 600; }
.om-start-icon { display: inline-grid; place-items: center; line-height: 0; }
.om-start-icon svg { width: 18px; height: 18px; }
.om-start-btn[aria-expanded="true"] { background: var(--om-selected); color: var(--om-on-selected); border-color: var(--om-selected); }
.om-start-menu { margin-bottom: var(--om-space-5); }
@media (max-width: 480px) {
  .om-start-btn { flex: 1 1 0; justify-content: center; }
}

/* Release 1.2, day job 4 (NF-37, ADR-0092): a recording that stopped without «Stopp». Not red (it does not record); the
   state in words; the two buttons with their icons. */
.om-rec-stopped .om-rec-top .om-icon { color: var(--om-muted); }
.om-rec-stopped .om-rec-actions { justify-content: center; }
.om-rec-stopped .om-rec-actions button { display: inline-flex; align-items: center; justify-content: center; gap: var(--om-space-2); }
