/* ============================================================================
   OFCO Observation Portal -- crew site
   Branding from the complaint register (CMP): navy header with the white
   logo, teal accents, document-style fieldsets (a navy bar over a bordered
   box, like the paper form's tables).

   Mobile first. Logical properties (inline-start / inline-end) throughout,
   so Arabic and Urdu mirror without a second set of rules.

   An explicit display in a class rule beats the browser's own
   [hidden] { display: none } -- CMP shipped that bug three times. The rule
   just below settles it once for every element on the page.
   ============================================================================ */

[hidden] { display: none !important; }

:root {
  --navy: #2D3955;
  --navy-dark: #232D42;
  --navy-soft: #EEF1F6;
  --teal: #13C5BD;
  --teal-dark: #0FA69F;
  --teal-ink: #0B6F6A;
  --teal-soft: #E6F8F7;
  --green: #2E7D32;
  --green-ink: #1F5E23;
  --green-soft: #EAF6EC;
  --amber: #B26A00;
  --amber-ink: #7A4A00;
  --amber-soft: #FFF4E0;
  --red: #B03A2E;
  --red-soft: #FDEDEC;
  --ink: #1F2633;
  --grey: #5F6B7A;
  --border: #D5DBE3;
  --bg: #F5F7FA;
  --focus: 0 0 0 3px rgba(19, 197, 189, .45);
  --tap: 44px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  background: #FFFFFF;
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { cursor: not-allowed; }

/* One focus ring everywhere, visible on navy and on white. */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.view-title:focus { outline: none; }
.view-title:focus-visible { outline: 2px dashed var(--teal); outline-offset: 4px; }

svg { flex-shrink: 0; }

/* Arrows that point "back" turn round in right-to-left languages. */
html[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ============================================================
   Header
   ============================================================ */
.doc-title-block {
  background: var(--navy);
  padding: 14px 16px;
}

.doc-title-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.brand-logo {
  height: 44px;
  width: auto;
  aspect-ratio: 709 / 285;
  object-fit: contain;
  display: block;
}

.doc-title-text { min-width: 0; }

.doc-title-eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #A9BBD4;
}

.doc-title-main {
  margin: 0;
  overflow-wrap: anywhere;   /* build 00064: a long word (German "Sicherheitsbeobachtung") wraps instead of running off */
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.15;
}

.doc-title-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #C3D3E8;
}

@media (min-width: 768px) {
  .doc-title-block { padding: 20px; }
  .brand-logo { height: 62px; }
  .doc-title-main { font-size: 23px; }
  .doc-title-eyebrow { font-size: 10.5px; }
}

/* ============================================================
   Top bar: Home on one side, language on the other
   ============================================================ */
.top-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.top-bar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}

.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--tap);
  padding: 0 12px 0 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.nav-home svg { width: 22px; height: 22px; }
.nav-home:hover { background: var(--navy-soft); }

.lang-picker {
  position: relative;
  margin-inline-start: auto;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  max-width: 200px;
}
.lang-button svg { width: 18px; height: 18px; }
.lang-button span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-caret { font-size: 10px; color: var(--grey); }

.lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  width: 240px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(45, 57, 85, .2);
  z-index: 60;
  overflow: hidden;
}

.lang-list {
  max-height: min(340px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lang-option {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: start;
  font-size: 15px;
  color: var(--ink);
}
.lang-option:hover { background: var(--bg); }
.lang-option.selected { color: var(--navy); font-weight: 700; background: var(--teal-soft); }
.lang-option:focus-visible { outline-offset: -3px; }

/* Group heading inside a picker -- "Owned Vessels", "Managed Vessels".
   Sticky, so the answer to "which group am I in" stays on screen while the
   group scrolls (CMP). */
.lang-option-group {
  position: sticky;
  top: 0;
  padding: 9px 14px 5px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #586273;
  user-select: none;
}
.lang-option-group:first-child { border-top: none; }

.lang-no-results {
  padding: 16px 14px;
  font-size: 14px;
  color: var(--grey);
  text-align: center;
}

/* ============================================================
   First-visit language chooser
   ============================================================ */
.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(35, 45, 66, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lang-gate-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px 16px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}

.lang-gate-globe { color: var(--navy); margin-bottom: 14px; }
.lang-gate-globe svg { width: 40px; height: 40px; }

.lang-row-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lang-chip {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.lang-chip:hover { border-color: var(--teal); background: var(--teal-soft); }

@media (min-width: 480px) {
  .lang-row-gate { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   Banners
   ============================================================ */
.banner {
  max-width: 728px;
  margin: 12px auto;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14.5px;
}

body > .banner { margin: 10px 16px; }
@media (min-width: 760px) {
  body > .banner { margin: 10px auto; }
}

.banner-text { margin: 0; }
.banner-text + .banner-text { margin-top: 4px; }
.banner-text-small { font-size: 13px; }

.banner-error {
  background: var(--red-soft);
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 600;
}

.banner-warn {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber-ink);
}

.banner-offline {
  background: #FCF3D6;
  border: 1px solid #8A6D3B;
  color: #5C4520;
}

.banner-maintenance {
  background: #EEF2FA;
  border: 1px solid var(--navy);
  border-inline-start: 5px solid var(--navy);
  color: var(--navy);
}
.banner-maintenance-title { font-weight: 700; }
.banner-maintenance.is-closed { background: var(--red-soft); border-color: var(--red); color: #7A1F17; }
.big-button:disabled { opacity: .55; cursor: not-allowed; }
.queued-maintenance { font-weight: 600; color: var(--navy); }

.banner-queued {
  background: var(--teal-soft);
  border: 1px solid var(--teal-dark);
  color: var(--navy);
}

.banner-update,
.banner-success-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.banner-update { background: var(--teal-soft); border: 1px solid var(--teal-dark); color: var(--navy); }
.banner-success-slim { background: var(--green-soft); border: 1px solid var(--green); color: var(--green-ink); }

.banner-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }

.banner-button {
  min-height: var(--tap);
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}
.banner-button:hover { background: var(--navy-dark); }
.banner-queued .banner-button,
.banner-warn .banner-button { margin-top: 10px; }
.banner-button-quiet { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.banner-button-quiet:hover { background: rgba(45, 57, 85, .08); }
.banner-button-danger { background: #FFFFFF; color: var(--red); border: 1px solid var(--red); }
.banner-button-danger:hover { background: var(--red-soft); }

@keyframes banner-flash {
  0% { box-shadow: 0 0 0 5px rgba(176, 58, 46, .35); }
  100% { box-shadow: 0 0 0 0 rgba(176, 58, 46, 0); }
}
.banner-flash { animation: banner-flash 1s ease-out; }

/* ============================================================
   Layout
   ============================================================ */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

.view-title {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy);
}

.home-purpose {
  margin: 0 0 4px;
  font-size: 16px;
  color: #3A4556;
}

.home-target {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--grey);
}

.home-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.big-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: start;
  border: 2px solid var(--navy);
}
.big-primary { background: var(--navy); color: #FFFFFF; }
.big-primary:hover { background: var(--navy-dark); }
.big-secondary { background: #FFFFFF; color: var(--navy); }
.big-secondary:hover { background: var(--navy-soft); }

.big-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.big-primary .big-icon { background: rgba(255, 255, 255, .12); color: var(--teal); }
.big-secondary .big-icon { background: var(--navy-soft); color: var(--navy); }
.big-icon svg { width: 28px; height: 28px; }

.big-text { display: flex; flex-direction: column; min-width: 0; }
.big-label { font-size: 18px; font-weight: 700; line-height: 1.25; }
.big-sub { font-size: 13.5px; opacity: .85; margin-top: 2px; }

@media (min-width: 768px) {
  .home-actions { grid-template-columns: 1fr 1fr; }
  .big-button { min-height: 120px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

/* ============================================================
   Form: fieldsets styled after the document's tables
   ============================================================ */
.doc-fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.doc-fieldset legend {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 6px 6px 0 0;
}

.legend-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #C3D3E8;
  font-size: 12.5px;
}

.fieldset-body {
  padding: 6px 14px 16px;
  border: 1px solid var(--navy);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.fieldset-body.has-error { border-color: var(--red); }

.fieldset-note {
  margin: 8px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--grey);
}

.field { margin-top: 14px; min-width: 0; }

.field-label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.field > .field-label:first-child { margin-top: 0; }

.req {
  color: var(--red);
  font-weight: 700;
  margin-inline-start: 3px;
}

.opt {
  color: var(--grey);
  font-weight: 400;
  font-size: 13px;
  margin-inline-start: 6px;
}

.field-hint {
  margin: -2px 0 6px;
  font-size: 13px;
  color: var(--grey);
}

input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  /* 16px or iOS Safari zooms into the field and stays zoomed (CMP). */
  font-size: 16px;
  border: 1px solid #B9C2CE;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
}

input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: var(--focus);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
.field-picker-button[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(176, 58, 46, .14);
}

::placeholder { color: #8792A2; opacity: 1; }

.input-upper { text-transform: uppercase; }
.input-upper::placeholder { text-transform: none; }
.input-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5px; }

textarea { resize: vertical; }

/* Grows with what is written, from three lines up to most of the screen,
   then scrolls rather than pushing Submit out of reach (CMP). */
textarea.auto-grow {
  resize: none;
  overflow-y: hidden;
  max-height: 60vh;
}

.char-counter {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--grey);
  text-align: end;
}
.char-counter.at-limit { color: var(--amber-ink); font-weight: 700; }

.field-error {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
}
.field-error::before {
  content: "! ";
  font-weight: 800;
}

.datetime-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 8px;
}

.grid-2 > .field { margin-top: 14px; }

@media (min-width: 768px) {
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    align-items: start;
  }
}

/* ---- Searchable picker (CMP) ---- */
.field-picker { position: relative; }

.field-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid #B9C2CE;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 16px;
  text-align: start;
  color: var(--ink);
}
.field-picker-button:focus-visible { outline: none; border-color: var(--teal-dark); box-shadow: var(--focus); }
.field-picker-button > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.picker-placeholder { color: #6B7686; }

.field-panel {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(45, 57, 85, .2);
  z-index: 40;
  overflow: hidden;
}

.panel-search {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.panel-search:focus-visible { background: var(--bg); }

/* ---- Check rows (remember me, immediate actions) ---- */
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 6px 0;
  font-size: 15px;
  cursor: pointer;
}
.check-row input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--teal-dark);
}
.remember-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  color: #3A4556;
}

.check-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 12px;
  background: #FCFDFE;
}
.check-list .check-row + .check-row { border-top: 1px solid #EDF0F4; }

/* ---- No Name, No Blame ---- */
.nnnb-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 12px 14px;
  background: var(--navy-soft);
  border-inline-start: 4px solid var(--teal-dark);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
}
.nnnb-note svg { width: 24px; height: 24px; color: var(--teal-ink); }
.nnnb-note p { margin: 0; }

/* ---- 1. Type cards ----
   The radio stays in the page, clipped rather than display:none, so it is
   still what a screen reader announces and what the keyboard moves between
   (CMP). The card is only its appearance. */
.card-input,
.chip-input,
.segment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.type-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.type-card {
  --accent: var(--navy);
  --accent-ink: var(--navy);
  --accent-soft: var(--navy-soft);
  position: relative;
  display: block;
  cursor: pointer;
}
.type-card.kind-positive { --accent: var(--green); --accent-ink: var(--green-ink); --accent-soft: var(--green-soft); }
.type-card.kind-substandard { --accent: var(--amber); --accent-ink: var(--amber-ink); --accent-soft: var(--amber-soft); }

.card-face {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 12px 40px 12px 12px;
  padding-inline: 12px 40px;
  border: 1px solid var(--border);
  border-inline-start: 5px solid var(--accent);
  border-radius: 10px;
  background: #FFFFFF;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.type-card:hover .card-face { background: var(--accent-soft); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card-icon svg { width: 22px; height: 22px; }

.card-text { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-weight: 700; font-size: 16px; color: var(--accent-ink); line-height: 1.3; overflow-wrap: anywhere; }
.card-desc { font-size: 13.5px; color: #4A5565; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }

.card-tick {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
}
.card-tick svg { width: 14px; height: 14px; }

/* Chosen: colour AND a tick, because colour alone is not a signal
   everybody gets. */
.card-input:checked + .card-face {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.card-input:checked + .card-face .card-tick { display: inline-flex; }
.card-input:checked + .card-face .card-icon { background: var(--accent); color: #FFFFFF; }
.card-input:focus-visible + .card-face { outline: 3px solid var(--teal); outline-offset: 2px; }

@media (min-width: 768px) {
  .type-cards { grid-template-columns: repeat(3, 1fr); }
  .card-face { flex-direction: column; height: 100%; }
}

/* ---- 2. Category chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip { display: inline-flex; cursor: pointer; max-width: 100%; }

.chip-face {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid #B9C2CE;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
  transition: background-color .12s ease, border-color .12s ease;
}
.chip:hover .chip-face { border-color: var(--teal-dark); }

.chip-tick {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-ink);
  color: #FFFFFF;
}
.chip-tick svg { width: 12px; height: 12px; }

.chip-input:checked + .chip-face {
  background: var(--teal-soft);
  border-color: var(--teal-ink);
  color: var(--teal-ink);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--teal-ink) inset;
}
.chip-input:checked + .chip-face .chip-tick { display: inline-flex; }
.chip-input:focus-visible + .chip-face { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---- 4. Yes / No ---- */
.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  overflow: hidden;
}

.segment { display: block; cursor: pointer; }
.segment + .segment .segment-face { border-inline-start: 1px solid var(--navy); }

.segment-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  background: #FFFFFF;
}
.segment:hover .segment-face { background: var(--navy-soft); }
.segment-input:checked + .segment-face { background: var(--navy); color: #FFFFFF; }
.segment-input:focus-visible + .segment-face { outline: 3px solid var(--teal); outline-offset: -3px; }

#iaListWrap { margin-top: 4px; }

/* ---- 5. Files ---- */
.add-file-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px dashed var(--navy);
  border-radius: 10px;
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.add-file-button svg { width: 22px; height: 22px; }
.add-file-button:hover { background: var(--navy-soft); }
.add-file-button.is-full { opacity: .55; }

.file-count { margin: 8px 0 0; font-size: 13px; color: var(--grey); }

.file-grid {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.file-grid:empty { display: none; }

.file-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  min-width: 0;
}

.file-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.file-thumb img,
.file-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-icon { width: 40px; height: 40px; }
.file-badge {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 6px;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(35, 45, 66, .75);
  color: #FFFFFF;
}

.file-tile.is-preparing .file-thumb { opacity: .55; }
.file-tile.is-preparing .file-size { color: var(--teal-ink); font-weight: 700; }

.file-meta {
  display: flex;
  flex-direction: column;
  padding: 6px 8px 8px;
  font-size: 12px;
  min-width: 0;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.file-size { color: var(--grey); }

.file-remove {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  padding: 0;
}
/* The visible dot is smaller than the 44px target around it. */
.file-remove svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(176, 58, 46, .92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.file-remove:hover svg { background: var(--red); }

/* ---- Submit and progress ---- */
.primary-button,
.outline-button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.primary-button { border: none; background: var(--navy); color: #FFFFFF; }
.primary-button:hover { background: var(--navy-dark); }
.primary-button:disabled { background: #8E99AD; }
.outline-button { margin-top: 10px; border: 2px solid var(--navy); background: #FFFFFF; color: var(--navy); }
.outline-button:hover { background: var(--navy-soft); }

#formError { margin: 20px 0 0; }

.progress-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.progress-text { margin: 0 0 8px; font-size: 14px; color: var(--navy); font-weight: 600; }
.progress-box progress {
  display: block;
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #DDE3EA;
  overflow: hidden;
  accent-color: var(--teal-dark);
}
.progress-box progress::-webkit-progress-bar { background: #DDE3EA; border-radius: 999px; }
.progress-box progress::-webkit-progress-value { background: var(--teal-dark); border-radius: 999px; }
.progress-box progress::-moz-progress-bar { background: var(--teal-dark); border-radius: 999px; }

/* ============================================================
   Results: success, saved, sent
   ============================================================ */
.result-hero { text-align: center; margin: 8px 0 18px; }
.result-sub { margin: 0; color: #3A4556; }

.big-tick { width: 84px; height: 84px; display: block; margin: 8px auto 4px; }
.big-tick-circle { fill: var(--green-soft); stroke: var(--green); stroke-width: 3; }
.big-tick-check {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 0;
  animation: tick-draw .45s ease-out .1s both;
}
@keyframes tick-draw {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}

.big-save { width: 80px; height: 80px; display: block; margin: 8px auto 4px; color: var(--teal-ink); }
.result-hero-queued .view-title { color: var(--teal-ink); }

.ticket-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: #FFFFFF;
}
.ticket-label { font-size: 13px; color: var(--grey); text-transform: uppercase; letter-spacing: .6px; }
.ticket-value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--navy);
  direction: ltr;
  unicode-bidi: isolate;
}

.hint { margin: 10px 0 0; font-size: 13.5px; color: var(--grey); text-align: center; }

.month-line { margin: 18px 0 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--navy); }

.target-met {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 10px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 14.5px;
}
.target-met svg { width: 18px; height: 18px; }

.file-outcome { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--green-ink); }
.file-outcome.is-warn { color: var(--amber-ink); }

.also-sent { margin-top: 22px; }
.also-sent-title { margin: 0 0 8px; font-size: 14px; color: var(--grey); text-transform: uppercase; letter-spacing: .6px; }

.sent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sent-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 14px;
  border: 1px solid var(--navy);
  border-radius: 10px;
}
.sent-item-warn { border-color: var(--amber); background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
.sent-reportno {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  direction: ltr;
  unicode-bidi: isolate;
}
.sent-month { font-size: 13.5px; color: var(--grey); }

/* ============================================================
   Check an observation
   ============================================================ */
.recent { margin-top: 10px; }
.recent-label { margin: 0 0 6px; font-size: 13px; color: var(--grey); }
.recent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-chip {
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--navy);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
}
.recent-chip:hover { border-color: var(--teal-dark); }

.status-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: #FFFFFF;
}

.status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.status-reportno {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  direction: ltr;
  unicode-bidi: isolate;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  background: var(--navy);
  color: #FFFFFF;
}
.status-badge.status-new { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--amber); }
.status-badge.status-reviewed { background: var(--teal-soft); color: var(--teal-ink); border: 1px solid var(--teal-dark); }
.status-badge.status-closed { background: var(--green-soft); color: var(--green-ink); border: 1px solid var(--green); }
.status-badge.status-invalid { background: #ECEFF3; color: #4A5565; border: 1px solid #A9B2BE; }

.status-grid { margin: 12px 0 0; display: grid; gap: 10px; }
.status-grid > div { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 8px; }
.status-grid dt { margin: 0; font-size: 13.5px; color: var(--grey); }
.status-grid dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .status-grid { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .status-grid > div { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   Wider screens: the views sit in a card
   ============================================================ */
@media (min-width: 768px) {
  main { padding: 24px 24px 64px; }
  .view {
    padding: 28px 32px 32px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(45, 57, 85, .06);
  }
  .view-title { margin-top: 0; font-size: 26px; }
  .primary-button { max-width: 420px; margin-inline: auto; }
  .outline-button { max-width: 420px; margin-inline: auto; }
  #statusForm .primary-button { margin-inline: 0; }
}

/* ============================================================
   Build marker: confirms at a glance whether the copy on screen is
   the current deploy or a stale cached one.
   ============================================================ */
.build-marker {
  text-align: center;
  font-size: 10px;
  color: #8A94A3;
  padding: 12px 16px 24px;
  letter-spacing: .5px;
}

/* ============================================================
   Less motion for those who ask for it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Policy (once per phone, after the language)
   ============================================================ */
.policy-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px 18px 18px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}
.policy-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--teal-ink); }
.policy-heading { margin: 4px 0 14px; font-size: 20px; line-height: 1.25; color: var(--navy); }
/* Build 00020: the office changed who sees names since this phone agreed. */
.policy-changed { margin: -6px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #6b4a00; font-weight: 600; line-height: 1.4; }
.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.policy-list li { display: flex; gap: 12px; align-items: flex-start; }
.policy-num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-soft); color: var(--navy);
  font-size: 13px; font-weight: 800;
}
.policy-list h3 { margin: 4px 0 2px; font-size: 15.5px; color: var(--navy); }
.policy-list p { margin: 0; font-size: 14px; color: #4A5565; line-height: 1.5; }
.policy-agree {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  font-weight: 600; color: var(--ink); cursor: pointer;
}
.policy-agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.policy-card .primary-button { margin-top: 14px; }
.policy-once { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--grey); }
/* Build 00015: choose your name from the crew list; send the crew list */
.crew-pick-note { color: var(--ink); margin-top: 6px; }
.crew-list-link { margin-top: 4px; font-weight: 500; font-size: 14px; }
.native-select, .native-file {
  width: 100%; min-height: var(--tap); padding: 10px 12px; font-size: 16px;
  border: 1px solid #B9C2CE; border-radius: 8px; background: #FFFFFF; color: var(--ink);
}
.native-file { padding: 9px 10px; }
#crewListForm .primary-button { margin-top: 8px; }
.crew-found { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #E6F4EA; color: #183F1E; font-size: 14px; }
.crew-found.is-warn { background: #FFF4E0; color: #5A3700; }
.crew-found.is-bad { background: #FDECEA; color: #6E1D14; font-weight: 600; }
.code-from-link { color: #1E6B2D; font-weight: 600; }
#clCode[readonly] { background: #F2F5F8; }
#reporterName[readonly], #reporterRank[readonly] { background: #F2F5F8; color: var(--ink); }

.policy-link {
  display: block; margin: 18px auto 0; padding: 8px 12px; min-height: var(--tap);
  border: none; background: none; color: var(--teal-ink);
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ============================================================
   Marine / Land
   ============================================================ */
.workplace-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Three choices: one per row on a phone (icon, then name and description), side by side on a wide screen. */
.workplace-cards.has-visitor { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.workplace-cards.has-visitor .workplace-card .card-face { flex-direction: row; align-items: center; }
@media (min-width: 768px) {
  .workplace-cards.has-visitor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workplace-cards.has-visitor .workplace-card .card-face { flex-direction: column; align-items: flex-start; }
}
.workplace-card.wp-visitor { --accent: #6B3FA0; --accent-ink: #5B2A86; --accent-soft: #F3E8FB; }
/* Build 00018: categories as a dropdown */
.chips.is-dropdown { display: block; position: relative; }
.cat-panel .cat-options { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; padding: 8px; }
.cat-panel .chip { width: 100%; }
.cat-panel .chip-face { width: 100%; }
.chip[hidden] { display: none; }
.workplace-card.wp-marine { --accent: var(--navy); --accent-ink: var(--navy); --accent-soft: var(--navy-soft); }
.workplace-card.wp-land { --accent: var(--teal-dark); --accent-ink: var(--teal-ink); --accent-soft: var(--teal-soft); }
.workplace-card .card-face { flex-direction: column; align-items: flex-start; height: 100%; }
.workplace-hint { margin: 10px 0 0; }

/* ============================================================
   Voice notes
   ============================================================ */
.voice-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.voice-button .stop-icon { display: none; }
.voice-button.is-recording { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.voice-button.is-recording .mic-icon { display: none; }
.voice-button.is-recording .stop-icon { display: inline-block; }
.voice-button.is-full { opacity: .55; }
.recording-status {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 0; font-weight: 700; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.recording-status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  animation: rec-pulse 1s ease-in-out infinite;
}
@keyframes rec-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .recording-status::before { animation: none; } }
.voice-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.voice-list:empty { display: none; }
.voice-item {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 10px; padding-inline-end: 52px;
  border: 1px solid var(--border); border-radius: 10px; background: #FFFFFF;
}
.voice-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink);
}
.voice-badge svg { width: 20px; height: 20px; }
.voice-meta { flex: 1 1 auto; min-width: 0; padding: 0; }
.voice-player { display: block; width: 100%; height: 36px; margin-top: 6px; }
.voice-item .file-remove { top: 6px; }

/* ============================================================
   No ID given: tracking code
   ============================================================ */
.ticket-box-second { margin-top: 10px; border-style: dashed; }
.no-id-note {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; text-align: center;
}

.files-block { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }

/* ============================================================
   Fields set from the admin panel (Settings → Form fields)
   ============================================================ */
.details-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: start; }
@media (min-width: 768px) { .details-grid { grid-template-columns: 1fr 1fr; } }
.what-body { display: flex; flex-direction: column; }
.what-body > .what-item { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.what-body > .what-item.is-first { margin-top: 0; padding-top: 0; border-top: none; }
.voice-block, .files-block { border-top: none; margin-top: 0; padding-top: 0; }
.voice-req, .files-req { margin-top: 0; }

/* "Submit & add another": the line that confirms what was just sent */
.just-sent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--green-soft); border: 1px solid var(--green); color: var(--green-ink);
  scroll-margin-top: 12px;
}
.just-sent[hidden] { display: none; }
.just-sent:focus { outline: none; }
.just-sent-tick { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; color: var(--green); }
.just-sent-body { min-width: 0; }
.just-sent-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.just-sent-line { margin: 2px 0 0; font-weight: 600; }
.just-sent-line[hidden], .just-sent-next[hidden] { display: none; }
.just-sent-next { margin: 4px 0 0; font-size: 0.92em; color: var(--ink, #1B2333); }
.just-sent.is-queued { background: #FFF6E0; border-color: #C98A00; color: #6B4A00; }
.just-sent.is-queued .just-sent-tick { color: #C98A00; }

/* Build 00021: the trap field for automatic form-fillers — never seen, never focused.
   Build 00004: clipped in place instead of moved 10000px left, which in Arabic and
   Urdu (right to left) made the page 10000px wide and scrolled the form away. */
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Build 00022: test mode (a phone opened with a test link from Settings → Testing). */
.test-banner { position: sticky; top: 0; z-index: 60; background: #F59E0B; color: #1F2937; border-bottom: 2px solid #B45309; }
.test-banner-inner { max-width: 720px; margin: 0 auto; padding: 6px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; }
.test-banner-title { letter-spacing: 0.06em; white-space: nowrap; }
.test-banner-text { flex: 1 1 auto; min-width: 0; }
.test-banner-button { flex: 0 0 auto; background: #1F2937; color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; font: inherit; font-weight: 600; cursor: pointer; min-height: 32px; }
.test-banner.test-banner-error { background: #FDE68A; }
.test-note { background: #FEF3C7; border: 1px solid #F59E0B; color: #78350F; border-radius: 8px; padding: 10px 12px; font-weight: 600; }

/* ---- Build 00016: the reporter confirms his own words ---------------------- */
.voice-check { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--navy-soft); border: 1px solid var(--border); }
.voice-check.is-ready { background: var(--teal-soft); border-color: #9FE3DF; }
.voice-check.is-confirmed { background: var(--green-soft); border-color: #B5DDB9; }
.voice-check.is-failed { background: var(--amber-soft); border-color: #F1D29A; }
.voice-check-label { display: block; font-size: 12px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: .4px; }
.voice-check-text { margin: 2px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.voice-check-back .voice-check-text { font-size: 17px; font-weight: 600; }
.voice-check-english .voice-check-text { font-size: 14px; color: var(--grey); }
.voice-check-wait .voice-check-text { margin: 0; font-size: 14px; color: var(--grey); }
.voice-check.is-failed .voice-check-wait .voice-check-text { color: var(--amber-ink); }
/* Build 00066: a very quiet voice note */
.voice-quiet { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); border: 1px solid #F1D29A; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.voice-quiet-text { flex: 1 1 220px; font-size: 14px; line-height: 1.45; color: var(--amber-ink); overflow-wrap: anywhere; }
.voice-quiet-again { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--amber-ink); background: #fff; color: var(--amber-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.voice-quiet-again:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.voice-check-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.voice-check-actions button, .voice-check > .voice-check-again {
  min-height: 44px; padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  border: 2px solid var(--navy); background: #FFFFFF; color: var(--navy);
}
.voice-check-actions .voice-check-yes { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.voice-check-actions button:focus-visible, .voice-check > .voice-check-again:focus-visible { outline: none; box-shadow: var(--focus); }
.voice-check-actions button:disabled { opacity: .6; }
.voice-check-done { margin: 0; font-weight: 700; color: var(--green-ink); }
.confirm-reminder { margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }

.text-check-card { text-align: start; }
.text-check-title { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.text-check-hint { margin: 0 0 12px; color: var(--grey); font-size: 14px; }
.text-check-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.text-check-item { padding: 10px 12px; border-radius: 10px; background: var(--teal-soft); border: 1px solid #9FE3DF; }
.text-check-item h3 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
/* Build 00016, after Jose's review: short to read, Listen first. */
.voice-check-text.is-clamped { display: -webkit-box; -webkit-line-clamp: var(--lines, 3); line-clamp: var(--lines, 3); -webkit-box-orient: vertical; overflow: hidden; }
.voice-check-link { display: inline-block; margin: -4px 0 8px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--teal-ink); text-decoration: underline; cursor: pointer; min-height: 32px; }
.voice-check-more { margin: 0 0 8px; }
.voice-check-more summary { cursor: pointer; font-size: 14px; color: var(--grey); min-height: 32px; display: flex; align-items: center; }
.voice-check-english-text { font-size: 14px; color: var(--grey); }
.voice-check-actions .voice-check-listen { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }

/* Build 00047 (W39): "Voice notes in: Same as the form ▾" under Record. */
.voice-lang { margin-top: 10px; max-width: 100%; }
.voice-lang-label { display: block; font-size: 13px; color: var(--muted, #5b6577); margin: 0 0 4px; }
.voice-lang .field-picker { max-width: 100%; }
.voice-lang-button { min-height: 40px; font-size: 15px; }

/* Build 00049 (W44): another kind of file, and the red warning on a held one. */
.other-file-button { display: inline-block; margin: 8px 0 0; font-size: 14px; }
.file-held { display: block; color: #fff; background: #b42318; border-radius: 6px; padding: 6px 8px; margin-top: 6px; font-size: 13px; line-height: 1.35; font-weight: 600; }
.file-tile.is-held { border-color: #b42318; }
.other-file-button { background: none; border: none; padding: 4px 0; color: var(--navy, #2D3955); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

/* Build 00050 (W42): descriptions under the choices -- small, or behind an ⓘ. */
.card-desc.is-small { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: .85; }
.card-desc.is-popped { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; }
.info-button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; border: 1.5px solid currentColor;
  background: transparent; color: inherit; font: italic 700 13px/1 Georgia, serif; padding: 0; margin-left: 4px; vertical-align: middle; cursor: pointer; opacity: .8; }
.info-button.is-open { background: var(--navy, #2D3955); border-color: var(--navy, #2D3955); color: #fff; opacity: 1; }
.check-row:has(.row-desc) { flex-wrap: wrap; }
.chip.has-info { flex-wrap: wrap; }
.chip-desc, .row-desc { display: block; flex-basis: 100%; font-size: 13px; line-height: 1.4; color: var(--muted, #5b6577); margin: 4px 0 0; }

/* ---- Build 00057 (W43): the admin panel's phone preview ---- */
.is-preview [data-field] { cursor: pointer; }
.is-preview [data-field]:hover { outline: 2px dashed #14A3A3; outline-offset: 2px; border-radius: 4px; }
.is-preview .preview-focus { outline: 3px solid #14A3A3; outline-offset: 3px; border-radius: 4px; }
.is-preview .site-footer, .is-preview #testBanner, .is-preview #maintenanceBanner, .is-preview #updateBanner { display: none !important; }
