:root {
  --navy: #161E6F; --ink: #221F5D; --teal: #3FAEA7; --teal2: #75BDA7; --grey: #7A8C8E;
  --card: #EEF3F6; --white: #FFFFFF; --body: #3A4250; --red: #C8553D; --line: #D5DEE5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--body);
  font-family: "Segoe UI", Calibri, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ------------------------------------------------ phone */
.phone { max-width: 560px; margin: 0 auto; padding: 16px 16px 96px; }
.phone header { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 14px;
  border-bottom: 3px solid var(--teal); margin-bottom: 18px; }
.phone header b { color: var(--navy); font-size: 17px; }
.phone header span { color: var(--grey); font-size: 13px; }
.phone h1 { color: var(--navy); font-size: 24px; line-height: 1.2; margin: 6px 0 8px; }
.phone .kicker { color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.phone p { font-size: 16px; line-height: 1.45; margin: 6px 0 14px; }
.phone .note { color: var(--grey); font-size: 14px; }
.opt { display: block; width: 100%; text-align: left; padding: 16px 18px; margin: 10px 0; border-radius: 12px;
  border: 2px solid var(--card); background: var(--card); color: var(--navy); font-size: 18px; font-weight: 600; }
.opt.sel { background: var(--navy); border-color: var(--navy); color: var(--white); }
.primary { display: block; width: 100%; padding: 16px; margin: 18px 0 6px; border: 0; border-radius: 12px;
  background: var(--teal); color: var(--white); font-size: 18px; font-weight: 700; }
.primary:disabled { background: var(--line); color: var(--grey); }
.link { background: none; border: 0; color: var(--teal); font-size: 15px; padding: 8px 0; text-decoration: underline; }
.item { background: var(--card); border-radius: 12px; padding: 14px 14px 12px; margin: 12px 0; }
.item .t { color: var(--navy); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.item .x { font-size: 15px; line-height: 1.4; margin-bottom: 10px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1 1 0; min-width: 0; padding: 11px 6px; border-radius: 9px; border: 2px solid var(--line);
  background: var(--white); color: var(--navy); font-size: 15px; font-weight: 600; }
.seg.col button { flex: 1 1 100%; text-align: left; padding: 10px 12px; }
.seg button.sel { background: var(--navy); border-color: var(--navy); color: var(--white); }
.slider { width: 100%; accent-color: var(--teal); height: 36px; }
.big { font-size: 44px; font-weight: 700; color: var(--navy); }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.split-row .t { flex: 1; margin: 0; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--line); background: var(--white);
  color: var(--navy); font-size: 22px; font-weight: 700; }
.stepper .v { width: 54px; text-align: center; font-size: 20px; font-weight: 700; color: var(--navy); }
.sticky { position: sticky; top: 0; background: var(--white); padding: 8px 0; z-index: 2; color: var(--navy); font-weight: 600; }
.alarm-list { background: #10151F; border-radius: 12px; padding: 6px; min-height: 300px; }
.alarm-list button { display: block; width: 100%; text-align: left; margin: 4px 0; padding: 12px; border-radius: 8px;
  border: 0; background: #1E2633; color: #F0C75E; font-family: Consolas, "Courier New", monospace; font-size: 14px; }
.alarm-list button .tg { color: #8FA3B8; margin-right: 8px; }
.alarm-list button.sel { background: var(--teal); color: var(--white); }
.result { background: var(--navy); color: var(--white); border-radius: 14px; padding: 18px; margin: 12px 0; }
.result h2 { margin: 0 0 6px; font-size: 26px; }
.result p { color: #CEDBE6; margin: 0; }
.review { font-size: 15px; }
.review .ok { color: var(--teal); font-weight: 700; }
.review .no { color: var(--red); font-weight: 700; }
.group-h { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 18px 0 4px; }
.task { border-left: 4px solid var(--teal); padding: 8px 12px; margin: 8px 0; background: var(--card); border-radius: 0 10px 10px 0; }
.task b { color: var(--navy); }
.task .s { color: var(--grey); font-size: 14px; }
input[type=text], textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 2px solid var(--line); border-radius: 10px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 528px; margin: 0 auto; background: var(--ink); color: var(--white);
  padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.argo-btn { position: fixed; right: 16px; bottom: 16px; border: 0; border-radius: 26px; padding: 13px 18px; background: var(--navy);
  color: var(--white); font-weight: 700; box-shadow: 0 4px 14px rgba(22,30,111,.25); }

/* ------------------------------------------------ big screen (designed for 1920x1080, scales with the window) */
.screen { width: 100vw; height: 100vh; overflow: hidden; padding: 4.5vh 5vw; display: flex; flex-direction: column; font-size: 1.1vw; }
.screen .kicker { color: var(--teal); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 1.05vw; }
.screen h1 { color: var(--navy); font-size: 2.9vw; margin: .6vh 0 1.4vh; line-height: 1.15; }
.screen .prompt { font-size: 1.5vw; color: var(--body); margin-bottom: 2.4vh; max-width: 70vw; }
.screen .foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--grey); font-size: .95vw; border-top: 2px solid var(--card); padding-top: 1.2vh; }
.screen .body { flex: 1; min-height: 0; display: flex; gap: 2.5vw; }
.join { display: flex; align-items: center; gap: 5vw; height: 100%; }
.join img { width: 34vh; height: 34vh; }
.join .url { font-size: 2.6vw; color: var(--navy); font-weight: 700; }
.count { font-size: 7vw; color: var(--navy); font-weight: 700; line-height: 1; }
.bars { flex: 1; display: flex; flex-direction: column; gap: 1.6vh; }
.bar { display: grid; grid-template-columns: 22vw 1fr 6vw; align-items: center; gap: 1vw; font-size: 1.4vw; color: var(--navy); font-weight: 600; }
.tile .bar { grid-template-columns: 7vw 1fr 4.5vw; font-size: 1.15vw; }
.tile .bars { margin-top: 1.4vh; gap: 1.1vh; }
.tile .bar .track { height: 3vh; }
.bar .track { background: var(--card); height: 4.6vh; border-radius: .6vh; overflow: hidden; }
.bar .fill { background: var(--teal); height: 100%; }
.bar .fill.n { background: var(--navy); }
.bar .v { text-align: right; }
.tiles { display: flex; gap: 1.6vw; width: 100%; }
.tile { flex: 1; background: var(--card); border-radius: 1.2vh; padding: 3vh 1.8vw; }
.tile.dark { background: var(--navy); color: var(--white); }
.tile .n { font-size: 5.2vw; font-weight: 700; color: var(--teal); line-height: 1.05; }
.tile.dark .n { color: var(--white); }
.tile .l { font-size: 1.45vw; font-weight: 600; color: var(--navy); margin-top: 1vh; }
.tile.dark .l { color: #CEDBE6; }
.tile .s { font-size: 1.15vw; color: var(--grey); margin-top: 1.2vh; }
.tile.dark .s { color: #CEDBE6; }
table.heat { border-collapse: separate; border-spacing: .3vw .5vh; width: 100%; font-size: 1.15vw; }
table.heat th { color: var(--teal); text-transform: uppercase; font-size: .95vw; letter-spacing: .06em; text-align: center; }
table.heat td { padding: .7vh .8vw; border-radius: .5vh; text-align: center; font-weight: 600; }
table.heat td.name { text-align: left; color: var(--navy); background: var(--card); }
table.plain { border-collapse: collapse; width: 100%; font-size: 1.5vw; }
table.plain th { color: var(--teal); text-transform: uppercase; font-size: 1vw; letter-spacing: .06em; text-align: left; padding: 1vh 1vw; }
table.plain td { padding: 1.5vh 1vw; color: var(--navy); font-weight: 600; border-top: 2px solid var(--card); }
table.plain td.hl { background: var(--navy); color: var(--white); text-align: center; border-radius: .5vh; }
.hit { color: var(--teal); } .miss { color: var(--red); }
.muted { color: var(--grey); }
.ecr { background: #10151F; color: #F0C75E; border-radius: 1vh; padding: 1.5vh 1.2vw; flex: 1; overflow: hidden;
  font-family: Consolas, "Courier New", monospace; font-size: 1.35vw; }
.ecr .row { display: grid; grid-template-columns: 7vw 8vw 1fr; padding: .55vh 0; border-bottom: 1px solid #222B38; }
.ecr .row .tg { color: #8FA3B8; }
.ecr .row:first-child { background: #3A2F12; }
.clock { font-size: 6vw; font-weight: 700; color: var(--navy); }

/* ------------------------------------------------ presenter */
.pres { padding: 16px; max-width: 1500px; margin: 0 auto; font-size: 14px; }
.pres h1 { color: var(--navy); font-size: 20px; margin: 0 0 4px; }
.pres .grid { display: grid; grid-template-columns: 1fr 640px; gap: 18px; align-items: start; }
.pres table { width: 100%; border-collapse: collapse; }
.pres td, .pres th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.pres th { color: var(--grey); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.pres tr.open td { background: #E3F4F2; }
.pres button { border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 7px; padding: 5px 9px; margin: 1px; font-size: 13px; }
.pres button.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pres button.warn { border-color: var(--red); color: var(--red); }
.pres .box { background: var(--card); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.pres .box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin: 0 0 8px; }
.pres iframe { width: 640px; height: 360px; border: 2px solid var(--navy); border-radius: 6px; background: var(--white); }
.pres input[type=text], .pres input[type=number] { width: auto; padding: 5px 8px; font-size: 13px; border-width: 1px; }
.pres details.settings > summary { cursor: pointer; color: var(--grey); font-weight: 600; padding: 10px 12px;
  border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 14px; }
.pres details.settings[open] > summary { color: var(--navy); }
.pres .argo div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pres .argo .done { color: var(--grey); text-decoration: line-through; }
