:root {
  --band: #21242A; --band-2: #2C3038; --band-line: #3A3F48; --on-band: #ECEEF0; --muted-band: #AEB5BD;
  --canvas: #F1F2EF; --card: #fff; --line: #DDE0D9; --text: #14181B; --muted: #4D575E;
  --hvac: #F07820; --hvac-ink: #1A1A2E; --hvac-soft: #FDEBDB; --hvac-deep: #A8500F;
  --pm: #B6F23C; --pm-ink: #101214; --pm-soft: #ECF8D2; --pm-deep: #4F6B12;
  --red: #C0392B; --red-bg: #FBE2DF; --amber: #7D5200; --amber-bg: #FBEED0; --green: #1B6B36; --green-bg: #E2F3E6;
  --font: 'Manrope', system-ui, sans-serif; --num: 'Barlow Condensed', 'Manrope', sans-serif; --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 15px/1.5 var(--font); }
h1, h2, h3, p, ul, ol { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 5px var(--hvac); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.btn-light { background: var(--on-band); color: var(--band); }
.btn-dark { background: var(--band); color: var(--on-band); }
.btn-dark:hover { background: var(--band-2); }
.btn-ghost { background: none; border-color: var(--band-line); color: var(--on-band); }
.btn-ghost:hover { background: var(--band-2); }
.btn-ghost-dark { background: var(--card); border-color: var(--line); color: var(--text); }
.btn-ghost-dark:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Company tags: the only colour on the page */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 2px 9px 2px 7px; border-radius: 999px; white-space: nowrap; }
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.co-hvac { background: var(--hvac-soft); color: var(--hvac-deep); }
.tag.co-pm { background: var(--pm-soft); color: var(--pm-deep); }
.tag.co-both { background: #E8EAEC; color: var(--muted); }

/* Top band with the two clocks */
.band { background: var(--band); color: var(--on-band); padding: 20px clamp(16px, 3vw, 40px) 18px; }
.band-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.who h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.who p { color: var(--muted-band); margin-top: 2px; }
.band-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-band); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-band); }
.live.is-on .dot { background: var(--pm); }
.live.is-off .dot { background: var(--hvac); }
.signin { display: flex; gap: 6px; align-items: center; }
.signin input { width: 150px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--band-line); background: var(--band-2); color: var(--on-band); }
.signin-msg { font-size: 13px; color: var(--hvac); }

.clocks { margin-top: 18px; display: grid; gap: 6px; position: relative; }
.lane { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 14px; }
.lane-label { display: grid; line-height: 1.15; }
.lane-time { font-family: var(--num); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.lane-sub { font-size: 12.5px; color: var(--muted-band); }
.lane-co-hvac .lane-time { color: var(--hvac); }
.lane-co-pm .lane-time { color: var(--pm); }
.strip { position: relative; height: 22px; border-radius: 6px; background: var(--band-2); overflow: hidden; }
.open { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.lane-co-hvac .open { background: color-mix(in srgb, var(--hvac) 70%, transparent); }
.lane-co-pm .open { background: color-mix(in srgb, var(--pm) 62%, transparent); }
.tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--band-line); }
.tick-label { position: absolute; top: 3px; font-size: 11px; color: var(--muted-band); transform: translateX(4px); white-space: nowrap; }
.axis { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; font-size: 12px; color: var(--muted-band); }
.axis-note { grid-column: 2; display: flex; justify-content: space-between; }
.overlap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 4px, transparent 4px 8px); }
.now-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; border-radius: 2px; animation: now-pulse 2.4s ease-in-out infinite; }
@keyframes now-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .now-line { animation: none; } }

.mode-banner { background: var(--amber-bg); color: var(--amber); padding: 10px clamp(16px, 3vw, 40px); font-weight: 600; font-size: 14px; }

/* Ask bar */
.ask { padding: 18px clamp(16px, 3vw, 40px) 6px; display: grid; gap: 12px; }
.ask-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mic { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--band); color: var(--on-band); display: grid; place-items: center; flex: none; transition: transform 160ms ease, background 160ms ease; }
.mic:hover:not(:disabled) { background: var(--band-2); }
.mic[aria-pressed="true"] { background: var(--red); transform: scale(1.06); }
.mic:disabled { background: #C9CDD2; color: #6B737B; cursor: not-allowed; }
#ask-input { flex: 1 1 260px; min-width: 0; padding: 13px 16px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); font-size: 16px; }
.try { display: flex; gap: 8px; flex-wrap: wrap; }
.try-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.try-chip:hover { border-color: var(--text); }

/* Main area */
.main { padding: 12px clamp(16px, 3vw, 40px) 28px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.panel h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.tile-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.tile-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; border-top: 4px solid var(--hvac); }
.tile-group.co-pm { border-top-color: var(--pm); }
.tile-group h2 { font-size: 15px; font-weight: 800; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; }
.tile { display: grid; gap: 1px; min-width: 0; }
.tile-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile-value { font-family: var(--num); font-weight: 800; font-size: 32px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile-unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.tile-trend { font-size: 12.5px; color: var(--muted); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.ov-grid .wide { grid-column: span 1; }
.foot { margin-top: 18px; color: var(--muted); font-size: 13px; max-width: 80ch; }

.pins { display: grid; gap: 14px; margin-bottom: 14px; }
.pinned { position: relative; }
.pinned .unpin { position: absolute; top: 12px; right: 12px; }

/* Answer */
.answer { display: grid; gap: 12px; }
.answer-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.answer-tools { display: flex; gap: 8px; }
.asked { color: var(--muted); font-size: 14px; }
.spoken { font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.35; max-width: 60ch; }
.how { color: var(--muted); font-size: 13.5px; }
.how summary { cursor: pointer; font-weight: 700; color: var(--text); }
.how ul { margin: 6px 0 0; padding-left: 20px; }

/* Views */
.view { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.view h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px 8px 0; border-bottom: 1px solid #EEF0EC; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.wrap { min-width: 220px; color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.cards { display: grid; gap: 10px; }
.card { border: 1px solid var(--line); border-left: 4px solid var(--hvac); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.card.co-pm { border-left-color: var(--pm); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-title { font-weight: 700; }
.card-detail { color: var(--muted); font-size: 14px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions .btn { padding: 6px 11px; font-size: 13px; }
.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #EEF0EC; }
.timeline li:last-child { border-bottom: 0; }
.tl-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.tl-who { color: var(--muted); font-size: 13.5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.slot:first-child { border-color: var(--text); }
.slot-et { font-weight: 800; }
.slot-syd { color: var(--muted); }
.slot-ok { color: var(--green); font-size: 13.5px; font-weight: 600; }
.slot-busy { color: var(--amber); font-size: 13.5px; }
.confirm { border: 2px solid var(--text); }
.confirm ul { margin: 6px 0 12px; padding-left: 18px; }
.confirm-buttons { display: flex; gap: 8px; }
.confirm-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.text-only { font-size: 16px; }
.chart-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.chart-panel h4 { margin: 0 0 4px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-in-hvac { fill: var(--hvac); }
.chart .bar-out-hvac { fill: var(--hvac-ink); opacity: .55; }
.chart .bar-in-pm { fill: #8FC21F; }
.chart .bar-out-pm { fill: var(--pm-ink); opacity: .55; }
.chart .bar-hvac { fill: var(--hvac); }
.chart .bar-pm { fill: #8FC21F; }
.chart text { font: 600 10px var(--font); fill: var(--muted); }
.chart .grid { stroke: #E6E8E3; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.team-list { display: grid; gap: 6px; }
.team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: 14px; }
.team-row .st { color: var(--muted); text-align: right; }
.empty { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .tile-groups, .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .lane, .axis { grid-template-columns: 120px minmax(0, 1fr); }
  .lane-time { font-size: 24px; }
}
@media (max-width: 520px) {
  .lane, .axis { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .axis-note { grid-column: 1; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .signin input { width: 120px; }
  .try { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .try-chip { flex: none; }
}
