@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #e87820;
  --ink: #161616;
  --muted: #5c564e;
  --line: #e6dfd6;
  --paper: #ffffff;
  --wash: #f6f3ee;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  min-height: 100vh;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.noscript {
  padding: 32px;
  font-size: 24px;
}

.screen.tv {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: end;
  padding: 22px 36px 16px;
}

.brand {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.where {
  margin-top: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.strap {
  color: var(--orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 6px;
}

.clock-block { text-align: right; }

.clock {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 0.8;
}

.updated, .desk-link {
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.desk-link { display: inline-block; color: var(--ink); }

.screen.tv .brand { font-size: 52px; }
.screen.tv .clock { font-size: 78px; }
.screen.tv .strap { font-size: 18px; letter-spacing: 0.24em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 14px 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }

.livery {
  height: 8px;
  background: var(--orange);
}

.urgent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 16px 36px 0;
  padding: 14px 18px 14px 22px;
  background: var(--ink);
  color: white;
  animation: bench 1.2s ease-in-out infinite;
}

.urgent .pick {
  color: var(--orange);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

.urgent strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.9;
}

.urgent ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  justify-items: end;
}

@keyframes bench {
  0%, 100% { box-shadow: inset 10px 0 0 var(--orange); }
  50% { box-shadow: inset 10px 0 0 var(--orange), 0 0 0 6px rgba(232, 120, 32, 0.28); }
}

.banner, .full-error {
  margin: 18px 36px 0;
  padding: 16px 18px;
  background: var(--wash);
  border-left: 8px solid var(--orange);
}

.full-error {
  flex: 1;
  margin: 0;
  border-left: 0;
  background: white;
  display: grid;
  align-content: center;
  padding: 48px 36px 64px;
}

.full-error h2, .banner h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.banner h2 { font-size: 32px; }
.full-error h2 { font-size: clamp(48px, 7vw, 92px); max-width: 16ch; }
.banner p, .full-error p { margin-top: 10px; font-size: 18px; max-width: 62ch; }

.jobs {
  padding: 18px 36px 28px;
  display: grid;
  gap: 26px;
}

.screen.tv .jobs { flex: 1; align-content: start; }

.job-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.num {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  color: var(--orange);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}

.num .flag { color: var(--ink); }

.client {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}

.job-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-size: 44px;
  line-height: 0.9;
  margin-top: 4px;
}

.screen.tv .job-name { font-size: 56px; }

.job-hours { text-align: right; min-width: 9ch; }
.job-hours .logged {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.job-hours .of, .job-hours .missing {
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}
.job-hours.over .logged { color: var(--orange); }

.tasks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.task {
  border: 1px solid var(--line);
  border-left: 8px solid var(--orange);
  min-height: 142px;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  background: white;
}

.task.done { border-left-color: var(--ink); }
.task.hold {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.task-top, .split {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.state, .who {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.task h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 700;
  margin: 8px 0;
}

.why {
  color: var(--orange);
  font-size: 20px;
  font-weight: 500;
}

.split { margin-top: auto; font-variant-numeric: tabular-nums; }
.split b {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 700;
}
.split span { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.task.hold .split span { color: #f3e6da; }

.you { margin-top: 4px; font-size: 13px; letter-spacing: 0.04em; }

.materials {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.materials li {
  font-size: 14px;
  color: var(--muted);
}

.materials strong { color: var(--ink); font-weight: 500; }

.note-line { display: block; }

.pages {
  padding: 0 36px 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.sample-bar {
  margin-top: auto;
  background: var(--ink);
  color: white;
  padding: 12px 36px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

.sample-bar span { color: var(--orange); margin-right: 10px; }

.wrap { padding: 22px 36px 72px; display: grid; gap: 22px; }

.panel {
  display: grid;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.panel h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.lede { max-width: 62ch; font-size: 18px; }

.names { display: flex; flex-wrap: wrap; gap: 12px; }

.names button, .action, .ghost {
  border: 1px solid var(--ink);
  background: white;
}

.names button {
  min-width: 168px;
  text-align: left;
  padding: 16px 16px 12px;
}

.names button span {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
}

.names button small {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.action, .ghost {
  padding: 12px 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.action { background: var(--orange); color: white; border-color: var(--orange); }
.action.dark { background: var(--ink); border-color: var(--ink); }

.hours-form, .delivery-form, .hold-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: end;
}

.field { display: grid; gap: 6px; }
.field span, .check {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.hours-input, .line-input {
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 2px 0 4px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  border-radius: 0;
}

.hours-input { width: 4.5ch; font-size: 42px; }
.line-input { width: min(100%, 420px); font-size: 32px; }

.help { color: var(--muted); font-size: 14px; max-width: 46ch; }

.source-text {
  white-space: pre-wrap;
  color: var(--muted);
  max-width: 70ch;
  font-size: 15px;
}

.task-edit {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 8px 18px;
  align-items: end;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.checks { display: flex; gap: 16px; align-items: center; }

.delivery {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.delivery.urgent-row { animation: bench 1.2s ease-in-out infinite; padding-left: 12px; }
.delivery.done-row { color: var(--muted); }
.delivery .who-line {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.staff-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-picks label {
  border: 1px solid var(--line);
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.meta-list { display: grid; gap: 8px; max-width: 70ch; }
.meta-list div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.meta-list dt { letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

.warn { color: var(--muted); }

.empty {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

@media (max-width: 980px) {
  .mast, .jobs, .wrap, .nav, .urgent, .banner, .sample-bar { padding-left: 18px; padding-right: 18px; }
  .mast { grid-template-columns: 1fr auto; }
  .strap { display: none; }
  .screen.pc .strap { display: block; grid-column: 1 / -1; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .job-name, .screen.tv .job-name { font-size: 36px; }
  .job-head { grid-template-columns: 1fr; }
  .job-hours { text-align: left; }
  .delivery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .urgent, .delivery.urgent-row { animation: none; box-shadow: inset 10px 0 0 var(--orange); }
}
