/* Workshop site: same look as the slide deck.
   Deep teal and warm paper, orange for action, Domine headings over DM Sans. */
:root {
  --dark: #12303a;
  --dark2: #1c4452;
  --dark-line: #2a5866;
  --light: #f6f3ec;
  --card: #fcfaf5;
  --line: #e2ddd1;
  --teal: #1b6f80;
  --teal-tint: #dceBec;
  --teal-light: #8ed0db;
  --orange: #f08a4b;
  --orange-ink: #8f3e0e;
  --orange-tint: #fbe6d8;
  --ink: #12303a;
  --muted: #4b5b61;
  --muted-dark: #b9cdd0;
  --display: 'Domine', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--teal); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Header band ---------- */
.hero { background: var(--dark); color: var(--light); padding: 28px 0 30px; }
.hero.slim { padding: 18px 0 22px; }
.hero .rule { width: 72px; height: 8px; background: var(--orange); margin-bottom: 18px; }
.hero h1 { font-size: 30px; color: var(--light); }
.hero.slim h1 { font-size: 26px; }
.hero .sub { color: var(--muted-dark); margin-top: 10px; font-size: 17px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.back { display: inline-block; color: var(--muted-dark); text-decoration: none; font-size: 15px; margin-bottom: 14px; }
.back:hover { color: var(--light); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.teal { background: var(--teal-tint); border-color: transparent; }
.card.orange { background: var(--orange-tint); border-color: transparent; }
.card h2 { font-size: 22px; }
.card h3 { font-size: 19px; }
.lead { color: var(--muted); font-size: 18px; }
.small { font-size: 14px; color: var(--muted); }
.note { background: var(--orange-tint); color: #4a3426; border-radius: 12px; padding: 12px 14px; font-size: 15px; }

/* ---------- Forms ---------- */
label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 6px; }
input[type='text'], input[type='number'], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: 400 16px var(--body);
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--teal-light); border-color: var(--teal); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.field { display: flex; flex-direction: column; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--orange); color: var(--ink);
  font: 700 17px var(--body); cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.04); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.secondary { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.danger { background: var(--orange-tint); color: var(--orange-ink); border-color: var(--orange-ink); }
.btn.dark { background: var(--ink); color: var(--light); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font: 700 16px var(--body); color: var(--ink); cursor: pointer;
}
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--light); border-color: var(--ink); }
.seg.four { grid-template-columns: 1fr 1fr; }

.msg { min-height: 20px; font-size: 15px; color: var(--teal); font-weight: 700; }
.msg.error { color: var(--orange-ink); }

/* ---------- Chips ---------- */
.chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #ece7da; color: var(--muted); white-space: nowrap; }
.chip.received { background: #ece7da; color: var(--muted); }
.chip.triggered { background: var(--teal-tint); color: var(--teal); }
.chip.done { background: var(--teal); color: #fff; }
.chip.error { background: var(--orange-tint); color: var(--orange-ink); }
.chip.AI { background: var(--teal-tint); color: var(--teal); }
.chip.RPA { background: var(--orange-tint); color: var(--orange-ink); }
.chip.Both { background: var(--ink); color: var(--light); }
.chip.Human-only { background: #ece7da; color: var(--muted); }
.chip.core { background: var(--orange); color: var(--ink); }
.chip.extra { background: #ece7da; color: var(--muted); }

/* ---------- Hub tiles ---------- */
.tiles { display: grid; gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
}
.tile h3 { font-size: 21px; }
.tile .meta { display: flex; gap: 8px; align-items: center; }
.tile.open { border: 2px solid var(--ink); background: #fff; }
.tile.open h3::after { content: ' \2192'; color: var(--orange-ink); }
.tile.locked { opacity: 0.55; pointer-events: none; }
.tile .state { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.tile.locked .state { color: var(--muted); }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.item .body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.item.picked { border: 2px solid var(--orange-ink); background: var(--orange-tint); }
.item.answered .body { color: var(--muted); text-decoration: line-through; }
.vote { min-width: 56px; min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font: 700 16px var(--body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.vote[aria-pressed='true'] { background: var(--ink); color: var(--light); border-color: var(--ink); }
.vote small { font-size: 11px; font-weight: 500; }

.stat { display: flex; gap: 14px; }
.stat > div { flex: 1; background: var(--teal-tint); border-radius: 14px; padding: 12px 14px; }
.stat strong { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }

.cloud { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 6px 0; }
.word { font-weight: 700; color: var(--teal); line-height: 1.1; }
.word:nth-child(3n) { color: var(--orange-ink); }
.word:nth-child(3n + 1) { color: var(--ink); }

.preview { background: var(--ink); color: var(--light); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.preview em { font-style: normal; color: var(--orange); }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options button { min-height: 64px; font-size: 18px; }
.options button[disabled] { opacity: 0.6; }

.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.logos a { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 84px; padding: 8px; }
.logos img { max-width: 100%; max-height: 100%; object-fit: contain; }

.stars { display: flex; gap: 8px; }
.stars button { flex: 1; min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 700 20px var(--body); cursor: pointer; }
.stars button[aria-pressed='true'] { background: var(--ink); color: var(--light); border-color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 17px; margin: 0; }
.checklist input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--teal); }

.plan { display: flex; gap: 14px; }
.plan .num { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--orange-ink); line-height: 1; }

.closed { text-align: center; padding: 28px 18px; }

footer.site { text-align: center; color: var(--muted); font-size: 13px; padding: 0 20px 36px; }

/* ---------- Big screen ---------- */
body.present { background: var(--dark); color: var(--light); height: 100vh; overflow: hidden; font-size: clamp(18px, 1.6vw, 30px); }
.stage { height: 100vh; display: flex; flex-direction: column; padding: 3vh 4vw 4vh; gap: 2.5vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted-dark); font-size: 0.8em; }
.topbar .brand { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.topbar .join { display: flex; align-items: center; gap: 14px; }
.topbar .join img { width: 7vh; height: 7vh; background: #fff; border-radius: 8px; padding: 4px; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2.5vh; }
.screen h1 { font-size: 3.2em; color: var(--light); }
.screen .eyebrow { margin-bottom: 0.6vh; font-size: 0.8em; }
.pcard { background: var(--dark2); border: 1px solid var(--dark-line); border-radius: 18px; padding: 1.8vh 1.6vw; }
.plist { display: flex; flex-direction: column; gap: 1.4vh; }
.prow { display: flex; align-items: center; gap: 1.4vw; background: var(--dark2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 1.6vh 1.4vw; }
.prow .txt { flex: 1; font-size: 1.15em; overflow-wrap: anywhere; }
.prow .who { color: var(--muted-dark); font-size: 0.75em; }
.badge { min-width: 3.4em; text-align: center; background: var(--orange); color: var(--ink); font-weight: 700; border-radius: 12px; padding: 0.4em 0.7em; font-size: 1.1em; }
.pipe { display: flex; align-items: center; gap: 0.6em; font-size: 0.7em; color: var(--muted-dark); }
.pipe .step { padding: 0.3em 0.8em; border-radius: 999px; border: 1px solid var(--dark-line); }
.pipe .step.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.pipe .step.now { background: var(--orange); color: var(--ink); border-color: var(--orange); font-weight: 700; }
.big-number { font-family: var(--display); font-weight: 700; font-size: 9em; line-height: 1; color: var(--orange); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3vw; flex: 1; min-height: 0; }
.bars { display: flex; flex-direction: column; gap: 1.6vh; }
.bar { display: grid; grid-template-columns: 7em 1fr 5em; align-items: center; gap: 1vw; }
.bar .track { height: 3.4vh; background: var(--dark2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--teal-light); border-radius: 999px; transition: width 0.6s ease; }
.bar.RPA .fill { background: var(--orange); }
.bar.Both .fill { background: var(--light); }
.bar.Human-only .fill { background: #7f9aa0; }
.bar.correct { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 12px; }
.screen .cloud .word { color: var(--teal-light); }
.screen .cloud .word:nth-child(3n) { color: var(--orange); }
.screen .cloud .word:nth-child(3n + 1) { color: var(--light); }
.join-hero { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 5vw; align-items: center; }
.join-hero .qr { width: 52vh; height: 52vh; background: #fff; border-radius: 20px; padding: 14px; }
.hint { position: fixed; right: 12px; bottom: 8px; font-size: 12px; color: var(--dark-line); }

/* ---------- Admin ---------- */
#slideshow { position: fixed; inset: 0; visibility: hidden; pointer-events: none; background: #12303a; }
#slideshow.deck-active { visibility: visible; pointer-events: auto; }
.deck-frame { display: block; width: 100%; height: 100%; border: 0; background: white; }
.deck-message { padding: 8vh 6vw; display: flex; flex-direction: column; gap: 24px; }

body.admin main.wrap, body.admin .wrap.wide { max-width: 980px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.table th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.switch { display: inline-block; position: relative; width: 52px; height: 30px; vertical-align: middle; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .knob { position: absolute; inset: 0; border-radius: 999px; background: #cfc9b9; transition: background 0.15s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + .knob { background: var(--teal); }
.switch input:checked + .knob::after { transform: translateX(22px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 38px; border-radius: 999px; border: 2px solid var(--line); background: #fff; padding: 0 14px; font: 700 14px var(--body); cursor: pointer; }
.tabs button[aria-pressed='true'] { background: var(--ink); color: var(--light); border-color: var(--ink); }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: #ece7da; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- QR page ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; break-inside: avoid; }
.qr-card img { width: 100%; max-width: 240px; }
.qr-card h3 { font-size: 20px; }
.qr-card.main { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 36px; padding: 28px; }
.qr-card.main img { max-width: 320px; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

@media (min-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
