/* SafetyUnit Film & Television platform. The Loch design, approved 7 November 2026.
   Mist ground, floating white panels. Deep petrol for primary buttons and the active
   menu item. A soft colour family (sky, sun, sage, clay and lilac, with a dusk blue
   for backgrounds) gives each area of the platform its own colour.
   Amber appears only in the logo. Status is a dot beside plain text. */

:root {
  --ground: #EEF2F3;
  --side: #FFFFFF;
  --side-line: #E1E8EA;
  --panel: #FFFFFF;
  --shadow: 0 1px 2px rgba(15, 53, 64, 0.05), 0 14px 36px rgba(15, 53, 64, 0.08);
  --ink: #14262B;
  --ink-2: #55666B;
  --ink-3: #5E7075;
  --line: #E6ECEE;
  --petrol: #0F3540;
  --petrol-line: #26505B;
  --on-petrol: #FFFFFF;
  --on-petrol-muted: #A9C4C9;
  --glass: #8FD3CF;
  --glass-deep: #2F8F9D;
  --field-line: #D3DDE0;
  --ok: #2E9E5B;
  --warn: #C7861B;
  --stop: #C4321F;
  --neutral: #8A9A9E;
  --display: 'Outfit', Arial, sans-serif;
  --body: 'Inter', Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --radius: 18px;
  /* The colour family, from the home screen: soft colours for areas, icons and figures.
     They never stand for a status. Status keeps its own green, amber and red dots. */
  --sky: #7FA7C9; --sky-tint: #E7EFF6; --sky-deep: #3D6A90;
  --sun: #E9C46A; --sun-tint: #FBF2DA; --sun-deep: #82601A;
  --sage: #9BC5A3; --sage-tint: #E7F2E9; --sage-deep: #3E7048;
  --clay: #D98C7A; --clay-tint: #F8E6E1; --clay-deep: #96483A;
  --lilac: #B9A6D6; --lilac-tint: #EFEAF7; --lilac-deep: #634F96;
  --dusk-a: #7896B0; --dusk-b: #B3C3D0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* The page width never shifts when a scroll bar appears or goes */
html { scrollbar-gutter: stable; }
body { background: var(--ground); color: var(--ink); font: 400 15px/22px var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: #000; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.logo { height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--field-line); background: #FFFFFF; color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--petrol); border-color: var(--petrol); color: #FFFFFF; font-weight: 600; }
.btn-primary:hover { background: #0B2A33; color: #FFFFFF; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible, .field:focus-visible, .nav a:focus-visible, .link:focus-visible { outline: 3px solid var(--glass-deep); outline-offset: 2px; }
.link { background: none; border: none; padding: 0; cursor: pointer; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--glass-deep); color: var(--ink); }
label.lbl { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.field { height: 46px; border: 1px solid var(--field-line); border-radius: 12px; padding: 0 14px; background: #FFFFFF; width: 100%; outline: none; }
.field:focus { border-color: var(--glass-deep); }
.hint { font-size: 13px; line-height: 19px; color: var(--ink-2); }
.problem { font-size: 14px; color: var(--stop); font-weight: 500; }
.notice { font-size: 14px; color: var(--ink); font-weight: 500; }
.test-only { margin: 0; padding: 10px 14px; border: 1px solid #E6D3A3; background: #FBF5E6; border-radius: 10px; font-size: 14px; color: var(--ink); }
.test-only a { margin-left: 4px; }
@media print { .test-only { display: none; } }

/* Status: a dot beside plain text */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--neutral); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.stop { background: var(--stop); }
.dot.glass { background: var(--glass); }

/* Sign-in */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(180deg, var(--dusk-a) 0%, var(--dusk-b) 100%); }
.gate-card { width: 100%; max-width: 440px; background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); padding: 36px 34px 30px; display: flex; flex-direction: column; gap: 20px; }
.gate-card .logo { width: 190px; height: auto; }
.gate-card h1 { margin: 0; font: 500 30px/36px var(--display); letter-spacing: -0.01em; }
.gate-help { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.qr { width: 200px; height: 200px; align-self: center; border-radius: 12px; border: 1px solid var(--line); padding: 8px; background: #FFFFFF; }
.secret { font: 500 13px/18px var(--mono); word-break: break-all; color: var(--ink-2); }
.code-field { font: 500 24px/28px var(--mono); letter-spacing: 0.3em; text-align: center; height: 58px; }

/* App shell */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 1 1 248px; max-width: 280px; min-width: 232px; background: var(--side); border-right: 1px solid var(--side-line); padding: 28px 18px 24px; display: flex; flex-direction: column; gap: 24px; }
.side .logo { width: 172px; height: auto; margin: 0 4px 4px; }
@media (min-width: 861px) {
  .side { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow: hidden; padding: 22px 18px 16px; gap: 16px; }
  .side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; gap: 14px; margin: 0 -6px; padding: 0 6px; }
  .side .nav a { padding: 8px 10px; }
  .side .side-help { margin-top: 0; }
}
.nav { display: flex; flex-direction: column; gap: 22px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { padding: 4px 10px; font: 600 12px/16px var(--body); color: var(--ink-3); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 14px; color: #2E4146; }
.nav a:hover { background: #F2F6F7; color: var(--ink); }
.nav a.on { background: var(--petrol); color: #FFFFFF; }
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.nav-ico svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nav a.on .nav-ico { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.tone-sky { background: var(--sky-tint); color: var(--sky-deep); }
.tone-sun { background: var(--sun-tint); color: var(--sun-deep); }
.tone-sage { background: var(--sage-tint); color: var(--sage-deep); }
.tone-clay { background: var(--clay-tint); color: var(--clay-deep); }
.tone-lilac { background: var(--lilac-tint); color: var(--lilac-deep); }
.side .nav a { padding: 6px 10px 6px 6px; }

/* Each area of the platform washes the top of the page in its own colour */
.main { position: relative; }
.main::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 340px; z-index: 0; pointer-events: none; }
.main > * { position: relative; z-index: 1; }
.area-sky::before { background: linear-gradient(180deg, #DCE8F2 0%, rgba(238, 242, 243, 0) 100%); }
.area-sun::before { background: linear-gradient(180deg, #F8EBC8 0%, rgba(238, 242, 243, 0) 100%); }
.area-sage::before { background: linear-gradient(180deg, #DCEEDF 0%, rgba(238, 242, 243, 0) 100%); }
.area-clay::before { background: linear-gradient(180deg, #F5DDD6 0%, rgba(238, 242, 243, 0) 100%); }
.area-lilac::before { background: linear-gradient(180deg, #E7E0F3 0%, rgba(238, 242, 243, 0) 100%); }
.side-foot { margin-top: auto; padding: 10px 4px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.side-foot .me-menu { flex: 1 1 auto; min-width: 0; }
.side-foot summary { padding: 4px 6px; border-radius: 10px; }
.side-foot summary:hover { background: #F2F6F7; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text .small { color: var(--ink-2); font-size: 12px; font-weight: 400; }
.side-foot .me-pop { top: auto; bottom: 48px; left: 0; right: auto; z-index: 30; }
.me-pop .phone { font-weight: 600; font-size: 15px; text-decoration: none; }
.me-pop .small { color: var(--ink-3); }

.main { flex: 999 1 560px; min-width: 0; padding: 26px 40px 48px; display: flex; flex-direction: column; gap: 24px; max-width: 1220px; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mobile-bar { display: none; }

.panel { background: var(--panel); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 28px; }
.panel h2 { margin: 0; font: 500 24px/30px var(--display); letter-spacing: -0.01em; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.meta { font: 500 13px/18px var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.cols > * { flex: 1 1 420px; min-width: 0; }

.page-title { margin: 0; font: 500 36px/42px var(--display); letter-spacing: -0.015em; }
.page-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 24px; max-width: 720px; }

/* Tonight panel */
.tonight { background: linear-gradient(135deg, #E3ECF4 0%, #F7F9FB 70%); color: var(--ink); border: 1px solid var(--side-line); border-radius: 22px; padding: 34px 38px 18px; display: flex; flex-direction: column; gap: 28px; box-shadow: var(--shadow); }
.tonight-top { font: 500 14px/20px var(--body); color: var(--ink-3); }
.tonight-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.tonight h1 { margin: 0; font: 500 46px/50px var(--display); letter-spacing: -0.02em; color: var(--petrol); }
.tonight .lead { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; line-height: 24px; max-width: 460px; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; flex: 1 1 520px; }
.figure { display: flex; flex-direction: column; gap: 4px; min-width: 96px; padding: 16px 18px; border-radius: 16px; }
.figure.tone-sky .n, .figure.tone-sky .l { color: var(--sky-deep); }
.figure.tone-sun .n, .figure.tone-sun .l { color: var(--sun-deep); }
.figure.tone-sage .n, .figure.tone-sage .l { color: var(--sage-deep); }
.figure.tone-lilac .n, .figure.tone-lilac .l { color: var(--lilac-deep); }
.figure.tone-clay .n, .figure.tone-clay .l { color: var(--clay-deep); }
.figure .n { font: 300 58px/58px var(--display); letter-spacing: -0.03em; }
.figure .n { color: var(--petrol); }
.figure .n.act { color: var(--glass-deep); }
.figure .l { font-size: 13px; line-height: 18px; color: var(--ink-3); }

/* Tables */
.table-wrap { overflow-x: auto; position: relative; }
table.t { width: 100%; border-collapse: collapse; min-width: 600px; }
table.t th { text-align: left; padding: 10px 12px; font: 500 13px/18px var(--body); color: var(--ink-3); border-bottom: 1px solid var(--line); }
table.t td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
table.t td.strong { font-weight: 600; font-size: 15px; }
table.t td.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t th:first-child, table.t td:first-child { padding-left: 0; }
table.t th:last-child, table.t td:last-child { padding-right: 0; }
.tonight table.t th { color: var(--ink-3); border-bottom: none; border-top: 1px solid var(--line); }
.tonight table.t td { border-bottom: none; border-top: 1px solid var(--line); color: var(--ink); }
.tonight table.t td.soft { color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-2); }

/* Lists */
.rows > div { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.rows > div:last-child { border-bottom: none; }
.rows .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rows .title { font-weight: 600; }
.empty { padding: 18px 0 6px; color: var(--ink-2); }

/* Forms in panels */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: none; }

.footer { color: var(--ink-2); font-size: 12px; line-height: 18px; }

/* Phone */
@media (max-width: 860px) {
  .shell { align-content: flex-start; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0; z-index: 20; max-width: none; overflow-y: auto; }
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--side); border-bottom: 1px solid var(--side-line); width: 100%; position: sticky; top: 0; z-index: 10; }
  .mobile-bar .logo { width: 128px; height: auto; }
  .main { padding: 18px 16px 40px; gap: 18px; }
  .tonight { padding: 24px 20px 12px; border-radius: 18px; }
  .tonight h1 { font-size: 34px; line-height: 38px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .figure .n { font-size: 44px; line-height: 46px; }
  .panel { padding: 20px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .setting { grid-template-columns: minmax(0, 1fr); }
  .page-title { font-size: 30px; line-height: 36px; }
}

.stack { display: flex; flex-direction: column; gap: 24px; }
.strong { font-weight: 600; }
.side-help .small, .side-me .small { color: var(--ink-2); }
.btn svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* People and compliance */
.rows > div > .dot { margin-top: 7px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 6px; }
.actions .field { width: auto; height: 38px; }
.field-small { height: 38px; width: auto; }
label.lbl.inline { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.add-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.add-form h3 { margin: 0; font: 500 19px/26px var(--display); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.tick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--petrol); flex: 0 0 18px; }
fieldset.ticks { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
fieldset.ticks legend { padding: 0 6px; font-weight: 500; font-size: 14px; }
input[type=file].field { padding: 10px 14px; height: auto; }
.finding-head { margin: 18px 0 4px; }
.finding-head .status { font-size: 15px; }
.findings .rows .title { font-size: 14px; }
.figure-line { margin: 4px 0 6px; font-size: 15px; }
.figure-line strong { font: 500 22px/26px var(--display); }
@media (max-width: 860px) {
  .form-grid.three, fieldset.ticks { grid-template-columns: minmax(0, 1fr); }
}
.rows a.title, td a.strong { text-decoration: none; }
.rows a.title:hover, td a.strong:hover { text-decoration: underline; }
textarea.field.area { height: auto; padding: 12px 14px; resize: vertical; font: inherit; }

/* Sales, productions, locations and suppliers */
.figures-row { display: flex; flex-wrap: wrap; gap: 18px 48px; margin: 8px 0 14px; }
.figures-row > div { display: flex; flex-direction: column; gap: 2px; }
.figures-row .big { font: 400 30px/36px var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.group { margin-top: 18px; }
.group h3, .location h3 { margin: 0 0 4px; font: 500 19px/26px var(--display); }
.location { border-top: 1px solid var(--line); padding: 18px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.location:first-of-type { border-top: none; }
.location h4 { margin: 12px 0 0; font: 600 14px/20px var(--body); }
.location p { margin: 0; }
.head-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; }
.stage-list { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 16px; }
.stage-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-3); }
.stage-list .n { font: 500 15px/20px var(--display); min-width: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stage-list li.done { color: var(--ink-2); }
.stage-list li.now { color: var(--ink); font-weight: 600; }
.stage-list li.now .n { color: var(--glass-deep); }
dl.facts { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 24px; margin: 6px 0 10px; font-size: 14px; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; }
dl.sums { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; margin: 4px 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
dl.sums dd { margin: 0; text-align: right; }
dl.sums.internal { border-top: 1px solid var(--line); padding-top: 12px; color: var(--ink-2); font-size: 14px; }
.field-num { width: 110px; text-align: right; }
.pair { display: flex; gap: 8px; align-items: center; }
table.quote-lines td { vertical-align: middle; }
table.quote-lines td .field { height: 40px; }
.review-item p { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.actions select.field { max-width: 340px; }

/* The printable quote */
.print-page { max-width: 820px; margin: 0 auto; padding: 32px 40px 48px; background: #FFFFFF; min-height: 100vh; }
.print-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.print-head .logo { width: 200px; height: auto; }
.print-contact { text-align: right; font-size: 10pt; line-height: 15pt; color: var(--ink-2); }
.print-page h1 { font: 500 24pt/30pt var(--display); margin: 28px 0 12px; }
.print-page h2 { font: 500 14pt/18pt var(--display); margin: 26px 0 6px; }
.print-page p, .print-page dl.facts { font-size: 11pt; line-height: 16pt; }
.print-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 11pt; }
.print-table th { text-align: left; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--ink); }
.print-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.print-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.print-table tfoot td { font-weight: 600; border-bottom: none; }
.print-foot { margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 9pt; line-height: 13pt; color: var(--ink-2); }
@media print {
  body { background: #FFFFFF; }
  .print-bar, .alert-note, .toast, .skip { display: none !important; }
  .print-page { padding: 0; max-width: none; }
  @page { size: A4; margin: 18mm 16mm; }
  /* A heading never prints at the foot of a page without what follows it */
  h1, h2, h3, h4, .print-page dt { break-after: avoid; page-break-after: avoid; }
  .print-page p, .print-page li { orphans: 4; widows: 3; }
  .print-page thead { display: table-header-group; }
  .print-page tr { break-inside: avoid; }
}
@media (max-width: 860px) {
  .stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  dl.facts dd { margin-bottom: 8px; }
  .print-page { padding: 20px 16px; }
}
table.t.pipe { table-layout: fixed; }
table.t.pipe th:nth-child(1) { width: 36%; }
table.t.pipe th:nth-child(2) { width: 22%; }
table.t.pipe th:nth-child(3) { width: 27%; }
table.t.pipe th:nth-child(4) { width: 15%; }
table.t.pipe td.mono { white-space: normal; }

/* Set safety */
.hazards { display: flex; flex-direction: column; gap: 14px; margin: 8px 0; }
.hazard { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.hazard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hazard h3 { margin: 0; font: 500 17px/22px var(--display); }
.pair-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; }
.pair-row .lbl { min-width: 160px; }
ul.controls { margin: 6px 0 4px; padding-left: 20px; font-size: 14px; line-height: 21px; }
ul.controls li { margin-bottom: 3px; }
.notice-box { border: 1px solid var(--glass-deep); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.notice-box p { margin: 0; }
.ticks-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 16px; }
.pre { white-space: pre-wrap; }
.gate-card.wide { max-width: 620px; }
.rows .radios { margin: 8px 0 6px; }
.print-hazard { border-top: 1px solid var(--line); padding: 10px 0 4px; break-inside: avoid; }
.print-hazard h3 { margin: 0 0 4px; font: 600 12pt/16pt var(--body); }
.print-hazard p, .print-hazard li { font-size: 11pt; line-height: 16pt; margin: 2px 0; }
.print-table.sign td { height: 28pt; vertical-align: bottom; }

/* The library: review and edit, two panes */
.lib-figs { gap: 10px 14px; }
.lib-fig { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left; }
.lib-fig:hover { border-color: var(--ink-3); }
.lib-fig .big { font: 400 26px/32px var(--display); font-variant-numeric: tabular-nums; }
.lib { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.lib-side { position: sticky; top: 16px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); }
.lib-filters { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.lib-filters .field { width: 100%; }
.lib-list { overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 12px; }
.lib-group h3 { margin: 14px 10px 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lib-item { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.lib-item:hover { background: var(--ground); }
.lib-item.on { background: var(--petrol); color: var(--on-petrol); }
.lib-ref { font-size: 12px; color: var(--ink-3); }
.lib-title { font-weight: 500; line-height: 20px; }
.lib-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.lib-item.on .lib-ref, .lib-item.on .lib-meta { color: var(--on-petrol-muted); }
.lib-doc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lib-blank { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 32px; color: var(--ink-2); text-align: center; }
.lib-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; }
.lib-bar .head-line { margin: 0; }
.lib-bar .actions { margin: 0; }
.lib-form { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.lib-form h3 { margin: 0 0 6px; font: 500 18px/24px var(--display); }
.lib-findings { background: #FBF4E6; border: 1px solid #EBD3A6; border-radius: 14px; padding: 14px 18px; }
.lib-findings h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.lib-findings ul { margin: 0 0 6px; padding-left: 20px; }
.lib-findings li { margin: 4px 0; }

/* A document laid out as it prints */
.doc-paper { background: #FFFFFF; border-radius: 6px; box-shadow: var(--shadow); padding: 48px 56px 56px; font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: var(--ink); }
.doc-cover { border-bottom: 1px solid var(--field-line); padding-bottom: 26px; margin-bottom: 8px; }
.doc-logo { width: 190px; height: auto; display: block; margin-bottom: 28px; }
.doc-titlebox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.doc-title { margin: 0; font: 700 28px/34px Arial, sans-serif; color: var(--petrol); }
.doc-paper .doc-ref { margin: 6px 0 18px; color: var(--ink-2); }
.doc-facts { display: grid; grid-template-columns: 160px 1fr; margin: 0; border: 1px solid var(--field-line); max-width: 560px; }
.doc-facts dt, .doc-facts dd { margin: 0; padding: 5px 10px; border-bottom: 1px solid var(--field-line); }
.doc-facts dt { background: var(--ground); color: var(--ink-2); font-weight: 700; }
.doc-facts dt:nth-last-of-type(1), .doc-facts dd:last-child { border-bottom: 0; }
.doc-paper .doc-prop { margin: 16px 0 0; color: var(--ink-2); }
.doc-sec { padding: 18px 0 6px; border-top: 1px solid transparent; }
.doc-sec.is-edited { border-top-color: #EBD3A6; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sec-head h3 { margin: 0 0 8px; font: 700 19px/25px Arial, sans-serif; color: var(--petrol); }
.sec-tools { display: inline-flex; gap: 14px; align-items: baseline; font-family: var(--body); font-size: 14px; }
.sec-mark { font-size: 12px; font-weight: 600; color: #8A5A0B; background: #FBF4E6; border-radius: 6px; padding: 1px 8px; }
.doc-paper p { margin: 0 0 10px; }
.doc-paper ul, .doc-paper ol { margin: 0 0 12px; padding-left: 22px; }
.doc-paper li { margin: 3px 0; }
.doc-paper h4 { margin: 14px 0 6px; font-size: 15px; }
.doc-box { background: var(--ground); border: 1px solid var(--field-line); padding: 10px 14px; margin: 6px 0 12px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 14px; line-height: 20px; }
.doc-table th, .doc-table td { border: 1px solid var(--field-line); padding: 5px 8px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--petrol); color: #FFFFFF; font-weight: 700; }
.doc-intro { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.doc-intro p { margin: 0 0 8px; }
.sec-edit { display: flex; flex-direction: column; gap: 10px; font-family: var(--body); padding: 6px 0 12px; }
.sec-edit textarea { font-family: var(--body); font-size: 15px; line-height: 22px; }
@media (max-width: 900px) {
  .lib { grid-template-columns: 1fr; }
  .lib-side { position: static; max-height: 420px; }
  .doc-paper { padding: 24px 18px 30px; }
  .doc-facts { grid-template-columns: 120px 1fr; }
}

/* Deployment and the staff app */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--field-line); }
.tab { border: 0; background: transparent; padding: 10px 14px; font-weight: 500; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.on { color: var(--ink); border-bottom-color: var(--petrol); }
.tab:focus-visible { outline: 2px solid var(--glass-deep); outline-offset: 2px; }
.alert-panel { background: #FDF0EE; border: 1px solid #F0C4BC; }
/* Open alerts, shown over the page at the foot of the screen so nothing under it moves */
.alert-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; background: #FDF0EE; border: 1px solid #F0C4BC; border-radius: 14px; box-shadow: var(--shadow); }
.alert-note[hidden] { display: none; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 31; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--field-line); border-radius: 14px; box-shadow: var(--shadow); }
.toast .grow { flex: 1 1 260px; }
.toast-signin { top: 16px; bottom: auto; background: #FBF4E4; border-color: #E9D6A8; }
.load-problem { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; background: #FFFFFF; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); }
.skip:focus { top: 12px; }
.alert-note .grow { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
/* A small form opened under a button to ask for a reason or a date */
.ask { display: inline-flex; flex-direction: column; align-items: flex-start; }
.ask-form { margin-top: 8px; width: min(440px, 80vw); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.inline-form .field { flex: 1 1 220px; }
.week-nav { align-items: center; gap: 12px; }
.shift-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.shift-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.shift-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--panel); }
.shift-card:hover { border-color: var(--ink-3); }
.shift-card .when { font-weight: 600; }
.shift-card .what { font-weight: 500; }
.emergency { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FDF0EE; border: 1px solid #F0C4BC; font-weight: 500; }
.emergency a { font-weight: 700; }
.shift-main h2 { margin: 0 0 6px; font: 500 22px/28px var(--display); }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-danger { background: var(--stop); border-color: var(--stop); color: #FFFFFF; font-weight: 600; }
.btn-danger:hover { background: #A72A1A; border-color: #A72A1A; }
.done-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: #EAF6EF; border: 1px solid #BFE3CC; }
.doc-light { font-size: 15px; line-height: 23px; }
.doc-light p { margin: 0 0 10px; }
.doc-light ul, .doc-light ol { margin: 0 0 12px; padding-left: 22px; }
.doc-paper.doc-light { padding: 32px 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 18px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); }
.steps .step-title { font-weight: 600; }
.steps .small { grid-column: 1; }
.steps .status { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.steps li.done .step-title { color: var(--ink-2); }
.next-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.next-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.next-card:hover { outline: 1px solid var(--ink-3); }
fieldset.ticks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
fieldset.ticks legend { font-size: 14px; color: var(--ink-2); padding: 0 6px; }
@media (max-width: 860px) {
  .doc-paper.doc-light { padding: 20px 16px; }
  .steps li { grid-template-columns: 1fr; }
  .steps .status { grid-column: 1; grid-row: auto; }
}

.link-start { align-self: flex-start; }
.shift-actions .inline-form { margin-top: 4px; }
.shift-actions .inline-form .field { flex: 0 1 240px; }
.grow > div > .link, .grow > div > .btn { align-self: flex-start; }
.grow > .link { align-self: flex-start; }

/* The internal hub */
.notice-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.notice-card .hazard-head { width: 100%; }
.notice-card h3 { margin: 0; font: 500 17px/22px var(--display); }
.hazard p, .hazard ul { margin: 0; }
/* Assurance */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi .big { font: 400 28px/34px var(--display); }
.answer p { margin: 0 0 8px; }

/* Working with no signal */
.offline-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FBF4E4; border: 1px solid #E9D6A8; font-size: 14px; line-height: 20px; }

/* Shift checks and the one-tap log */
.check-list { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.check-row:first-child { border-top: none; }
.check-row .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.check-mark { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 2px solid var(--field-line); display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; }
.check-mark svg { width: 20px; height: 20px; }
.check-row.is-done .check-mark { background: var(--ok); border-color: var(--ok); }
.quick-log { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 14px; }
.chip-btn { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--glass-deep); background: #F1F8F8; color: var(--petrol); font-weight: 500; cursor: pointer; }
.chip-btn:hover { background: #E3F2F1; }
.chip-btn:disabled { opacity: 0.6; cursor: default; }
.is-waiting { opacity: 0.85; }
.check-edit { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.check-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px 130px; gap: 10px; align-items: center; }
.check-edit-row .actions { justify-content: flex-end; }
@media (max-width: 640px) { .check-edit-row { grid-template-columns: 1fr; } }

/* The site plan */
.plan-box { display: flex; flex-direction: column; gap: 12px; }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; }
.plan-head h3 { margin: 0; font: 500 20px/26px var(--display); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.plan-legend li { display: inline-flex; align-items: center; gap: 6px; }
.plan-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; background: var(--neutral); }
.rows .plan-key { align-self: center; }
.plan-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #F4F7F8; }
.plan-stage img { display: block; width: 100%; height: auto; }
.plan-stage.is-placing { cursor: crosshair; outline: 3px solid var(--glass-deep); outline-offset: -3px; }
.plan-dot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; }
.plan-pin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 1px 4px rgba(15, 53, 64, 0.35); background: var(--neutral); flex: 0 0 22px; }
.plan-tag { display: flex; flex-direction: column; padding: 4px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 4px rgba(15, 53, 64, 0.18); font-size: 12px; line-height: 16px; white-space: nowrap; color: var(--ink); }
.plan-tag strong { font-weight: 600; }
.plan-dot.tag-left { flex-direction: row-reverse; }
.state-on .plan-pin, .plan-key.state-on { background: var(--ok); }
.state-soon .plan-pin, .plan-key.state-soon { background: var(--glass-deep); }
.state-late .plan-pin, .plan-key.state-late { background: var(--warn); }
.state-alert .plan-pin, .plan-key.state-alert { background: var(--stop); }
.state-alert .plan-pin { animation: plan-pulse 1.4s ease-out infinite; }
@keyframes plan-pulse { 0% { box-shadow: 0 0 0 0 rgba(196, 50, 31, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(196, 50, 31, 0); } }
@media (prefers-reduced-motion: reduce) { .state-alert .plan-pin { animation: none; } }
.state-none .plan-pin, .plan-key.state-none { background: #C9D3D6; }
.plan-tools { display: flex; flex-direction: column; gap: 10px; }
.plan-place { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan-place select { max-width: 320px; }
@media (max-width: 640px) { .plan-tag span { display: none; } .plan-tag { padding: 3px 7px; } }

/* The verified team on set */
.team-panel { gap: 16px; }
.assure-lead { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: #F1F6F7; }
.assure-lead > div { display: flex; flex-direction: column; gap: 4px; }
.assure-lead strong { font: 500 20px/26px var(--display); color: var(--petrol); }
.assure-mark { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--petrol); color: #FFFFFF; }
.assure-mark svg { width: 26px; height: 26px; }
.assure-lead.is-clear { background: #EAF6EF; }
.assure-lead.is-clear .assure-mark { background: var(--ok); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.team-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.team-top { display: flex; align-items: center; gap: 12px; }
.team-top .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #E3EEF0; color: var(--petrol); font: 600 15px/40px var(--body); text-align: center; }
.verified { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.verified li { display: flex; align-items: center; gap: 8px; }
.verified svg { width: 18px; height: 18px; color: var(--ok); flex: 0 0 18px; }

/* The daily set report */
.report-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.report-pick .lbl { min-width: 200px; }
.report-out:empty { display: none; }
.report-out { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }

/* First steps for a new platform */
.start-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.start-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.start-list li:first-child { border-top: none; }
.start-list .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.start-list .is-done .title { color: var(--ink-2); }
.start-list .is-done .check-mark { background: var(--ok); border-color: var(--ok); }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--glass-deep); border-radius: 4px; }
.plans-panel .plan-box + .plan-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.team-top { align-items: flex-start; }
.team-top .status { margin-top: 4px; }

/* Colour on people and kinds of work */
.avatar.tone-sky, .avatar.tone-sun, .avatar.tone-sage, .avatar.tone-clay, .avatar.tone-lilac { font-weight: 600; }
.family-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.quick-log .chip-btn.tone-sky { background: var(--sky-tint); border-color: var(--sky); color: var(--sky-deep); }
.quick-log .chip-btn.tone-sun { background: var(--sun-tint); border-color: var(--sun); color: var(--sun-deep); }
.quick-log .chip-btn.tone-sage { background: var(--sage-tint); border-color: var(--sage); color: var(--sage-deep); }

/* Top links and the phone tab bar, for roles with a few screens */
.shell-top { display: block; }
.shell-top .main { max-width: 1220px; margin: 0 auto; }
.topnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 12px 40px; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--side-line); backdrop-filter: blur(6px); }
.topnav-logo .logo { width: 132px; height: auto; display: block; }
.topnav-links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topnav-links a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.topnav-links a:hover { color: var(--ink); background: #F2F6F7; }
.topnav-links a.on { color: var(--petrol); background: #E7EFF6; font-weight: 600; }
.topnav-end { display: flex; align-items: center; gap: 18px; }
.topnav-help { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.topnav-help .small { color: var(--ink-3); font-weight: 500; }
.me-menu { position: relative; }
.me-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.me-menu summary::-webkit-details-marker { display: none; }
.avatar.small { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12px; line-height: 30px; }
.me-pop { position: absolute; right: 0; top: 40px; min-width: 210px; background: #FFFFFF; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-help { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.tabbar { display: none; }
@media (max-width: 860px) {
  .topnav { padding: 10px 16px; gap: 12px; }
  .topnav-links, .me-name { display: none; }
  .topnav-logo .logo { width: 120px; }
  .topnav-end { margin-left: auto; gap: 12px; }
  .shell-top .main { padding-bottom: 96px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; justify-content: space-around; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--side-line); box-shadow: 0 -4px 14px rgba(15, 53, 64, 0.06); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; text-decoration: none; color: var(--ink-2); font-size: 11px; font-weight: 500; min-width: 0; }
  .tabbar a.on { color: var(--petrol); font-weight: 700; }
  .tabbar .nav-ico { width: 34px; height: 30px; border-radius: 10px; }
  .tabbar a.on .nav-ico { background: var(--petrol); color: #FFFFFF; }
  .shell-top ~ .alert-note, body:has(.shell-top) .alert-note { bottom: 84px; }
}

/* The side panel shrunk to its coloured icons */
.shrink-btn { display: none; }
.logo-mark { display: none; }
@media (min-width: 861px) {
  .shrink-btn { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border: none; background: none; color: var(--ink-3); font: 500 13px/1 var(--body); cursor: pointer; padding: 0; border-radius: 8px; }
  .shrink-btn:hover { background: #F2F6F7; color: var(--ink); }
  .shrink-ico { font-size: 16px; }
  .is-narrow .side { flex: 0 0 76px; max-width: 76px; min-width: 76px; padding-left: 10px; padding-right: 10px; }
  .is-narrow .side .logo { display: none; }
  .is-narrow .side .logo-mark { display: block; width: 44px; height: 44px; border-radius: 12px; margin: 0 auto; }
  .is-narrow .nav a { justify-content: center; padding: 6px; }
  .is-narrow .nav a > span:last-child, .is-narrow .nav-title, .is-narrow .me-text { display: none; }
  .is-narrow .side-foot { flex-direction: column; padding-left: 0; padding-right: 0; }
  .is-narrow .side-foot .me-menu { flex: 0 0 auto; }
  .is-narrow .shrink-ico { display: inline-block; transform: rotate(180deg); }
  .is-narrow .shrink-btn { justify-content: center; }
}
.shell-top .main::before { left: calc(50% - 50vw); right: calc(50% - 50vw); }
.shell-top { overflow-x: clip; }

/* Me: three parts on one page */
.jump { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; }
.jump a { padding: 6px 14px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.jump a:hover { color: var(--ink); border-color: var(--field-line); }
.me-part { scroll-margin-top: 80px; padding-top: 6px; }
.me-part + .me-part { border-top: 1px solid var(--side-line); padding-top: 22px; }
.me-part .page-title { font-size: 26px; line-height: 32px; }

/* The rota week: posts down the side, days across */
.rota-grid th[scope="row"] { font-weight: 500; white-space: nowrap; }
.rota-grid th, .rota-grid td { text-align: left; }
.rota-cell { padding: 6px; min-width: 76px; }
.rota-pill { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); line-height: 1.2; }
.rota-pill .small { color: var(--ink-2); }
.rota-full { background: var(--sage-tint); }
.rota-wait { background: var(--sky-tint); }
.rota-gap { background: var(--sun-tint); }
.rota-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.rota-key.rota-full { background: var(--sage-tint); border: 1px solid var(--sage-deep); }
.rota-key.rota-wait { background: var(--sky-tint); border: 1px solid var(--sky-deep); }
.rota-key.rota-gap { background: var(--sun-tint); border: 1px solid var(--sun-deep); }
.tick-quick { flex-basis: 100%; font-size: 14px; }
.panel[id^="rota-"] { scroll-margin-top: 80px; }

/* Offering a run of shifts */
.run-ticks { max-height: 320px; overflow-y: auto; flex-direction: column; flex-wrap: nowrap; }
.run-results .small { display: block; }
.stop-text { color: var(--stop, #B42318); }
.problem-text { color: var(--stop, #B42318); font-size: 14px; }
.stack-tight { display: flex; flex-direction: column; gap: 12px; }

/* Training in Getting started */
.sub-head { font: 600 15px/20px var(--body); margin: 14px 0 4px; color: var(--ink); }

/* Recruitment */
.share-box { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: #F4F8F9; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.share-box code { font-family: inherit; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.crit { display: flex; flex-direction: column; gap: 14px; }
.crit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.crit-row:last-child { border-bottom: none; }
.crit-row .strong { display: block; }
.crit-row .small { display: block; font-size: 13px; }
.crit-row .field { grid-column: 1 / -1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { padding: 7px 12px; min-width: 40px; font: inherit; font-size: 14px; border: none; border-left: 1px solid var(--line); background: #FFFFFF; color: var(--ink); cursor: pointer; }
.seg button:first-child { border-left: none; }
.seg button.on { background: var(--petrol); color: #FFFFFF; font-weight: 600; }
.seg button:disabled { cursor: default; }
.seg button:disabled:not(.on) { color: #8A989C; }
.seg button:focus-visible { outline: 2px solid var(--petrol); outline-offset: -2px; }
.total-line { font-size: 14px; }
.total { font-size: 28px; line-height: 1; font-weight: 500; }
.crit-edit { display: flex; flex-direction: column; gap: 12px; }
.crit-edit-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto auto; gap: 8px 14px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.start-list.plain li { padding-left: 0; }
details.privacy { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14px; }
details.privacy summary { cursor: pointer; font-weight: 600; }
details.privacy h3 { font-size: 15px; margin: 14px 0 4px; }
details.privacy p { margin: 0; }
@media (max-width: 700px) {
  .crit-row { grid-template-columns: 1fr; }
  .crit-row .seg { justify-self: start; }
  .crit-edit-row { grid-template-columns: 1fr; }
}
.crit-edit > .btn { align-self: flex-start; }

/* Employment history for screening */
.note-warn { background: var(--sun-tint); color: var(--ink); border-radius: 12px; padding: 12px 16px; }
.note-warn p { margin: 0 0 6px; }
.note-warn ul { margin: 0; padding-left: 20px; }
.history-row { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
