/* Organizer dashboard. Light workspace under the app's sky header. Built from the approved mockups. */

/* Layout: sky header (the app's world) over a calm light workspace; sidebar left, a 12-column grid of panels right.
   Single deliberate light look; team colors are the app's team colors and always carry a text label. */
:root {
  color-scheme: light;
  --sky-top: #2A6296; --sky-low: #163C62; --track: #0C243D; --lane: #2F6A9C;
  --page: #EEF3F8; --panel: #FFFFFF; --ink: #0B1B2B; --ink-2: #4A5F74; --ink-3: #7A8CA0; --line: #DCE5EE; --grid: #E8EEF4;
  --green: #52D93C; --green-d: #2E9E1C; --green-ink: #0B1B2B; --mint: #8EF07B;
  --blue: #3D9BFF; --red: #FF5A4E; --purple: #9B7BFF; --gold: #E0A21A; --teal: #14A383;
  --warn: #B26A00; --warn-bg: #FFF4DF;
  --display: 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
aside { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 16px; padding: 4px 8px 16px; }
.brand .ic { width: 32px; height: 32px; border-radius: 9px; background: #0B1B2B; display: flex; align-items: center; justify-content: center; }
.brand .ic i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--green); }
.org { border-radius: 14px; padding: 10px 12px; background: var(--page); margin-bottom: 14px; }
.org b { display: block; font-family: var(--display); font-weight: 900; }
.org span { font-size: 13px; color: var(--ink-2); }
.org span.small { display: block; margin-top: 4px; font-weight: 700; color: var(--green-d); }
.org .org-logo { display: block; max-width: 100%; max-height: 48px; object-fit: contain; margin-bottom: 8px; }
.logo-preview { display: block; max-width: 260px; max-height: 90px; object-fit: contain; margin: 0 0 12px; padding: 10px; border-radius: 12px; background: #F6F9FC; }
nav.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 800; font-size: 14.5px; }
nav.side a.on { background: #E3F6DE; color: #1E5A12; }
nav.side a .n { margin-left: auto; font-size: 12px; background: var(--page); border-radius: 999px; padding: 1px 8px; color: var(--ink-2); }
nav.side .sep { height: 1px; background: var(--line); margin: 12px 6px; }
.privacy-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-2); background: var(--page); border-radius: 12px; padding: 10px 12px; }
.privacy-note b { color: var(--ink); }

/* header */
.top { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); padding: 22px 28px 70px; }
.top::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(82,217,60,.28), transparent); }
.top .row1 { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.top h1 { font-family: var(--display); font-weight: 900; font-size: 32px; margin: 0; letter-spacing: -.01em; }
.top .sub { color: #CFE6FA; font-weight: 600; }
.top .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 0; cursor: pointer; border-radius: 12px; padding: 10px 14px; font-family: var(--display); font-weight: 900; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn.go { background: var(--green); color: var(--green-ink); }
.btn.glass { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.filters { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; color: #D7ECFF; border-radius: 999px; padding: 6px 12px; font-family: var(--display); font-weight: 800; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; line-height: 1; background: rgba(255,255,255,.1); color: #D7ECFF; border: 0; border-radius: 999px; padding: 0 16px; font-family: var(--display); font-weight: 800; font-size: 13px; cursor: pointer; }
.pill::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.seg { height: 38px; align-items: center; }
.top .track { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--track); }
.top .track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lane); }
.runner { position: absolute; bottom: 14px; height: 74px; z-index: 3; }

main { padding: 0 28px 40px; margin-top: -40px; position: relative; z-index: 4; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--panel); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -26px rgba(15,34,53,.45); min-width: 0; }
.panel h2 { font-family: var(--display); font-weight: 900; font-size: 17px; margin: 0; }
.panel .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel .hd .meta { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.panel .hd .right { margin-left: auto; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; grid-column: span 12; }
.kpi { padding: 16px 18px; }
.kpi .lbl { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.kpi .val { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 15px; color: var(--ink-3); font-weight: 800; }
.kpi .ctx { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.delta.up { background: #E3F6DE; color: #1E5A12; }
.delta.down { background: #FDE9E7; color: #9A2A20; }
.spark { display: block; margin-top: 8px; width: 100%; height: 30px; }

/* live challenge */
.live { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #1D4A76, #12273B 70%); }
.live .tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 900; font-size: 12.5px; color: #FF9A90; }
.live .tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,90,78,.25); }
.live h2 { color: #fff; font-size: 22px; margin: 4px 0 2px; }
.live .meta2 { color: #BFD3E6; font-size: 13.5px; font-weight: 600; }
.face { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; margin: 16px 0 10px; }
.face .side { text-align: center; }
.face img { height: 92px; display: block; margin: 0 auto 4px; }
.face .tn { font-family: var(--display); font-weight: 900; }
.face .pct { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.face .of { font-size: 12px; color: #BFD3E6; font-weight: 700; }
.face .vs { font-family: var(--display); font-weight: 900; color: #7E95AB; padding-bottom: 30px; }
.split { height: 10px; border-radius: 6px; display: flex; gap: 2px; overflow: hidden; }
.split b { display: block; height: 100%; }
.days { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.day { flex: 1 1 0; min-width: 38px; text-align: center; font-size: 11.5px; font-weight: 800; color: #BFD3E6; }
.day i { display: block; height: 26px; border-radius: 8px; margin-bottom: 4px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-style: normal; color: #fff; font-size: 11px; }
.live .acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* insights */
.ins { display: grid; gap: 12px; }
.in { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: #F6F9FC; }
.in .ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 15px; }
.in p { margin: 0; font-weight: 700; }
.in .why { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.in .act { margin-top: 8px; display: inline-flex; font-family: var(--display); font-weight: 900; color: var(--green-d); font-size: 13.5px; background: transparent; border: 0; padding: 0; cursor: pointer; }

/* charts */
svg.chart text { font-family: var(--body); }
svg.chart { display: block; width: 100%; height: auto; overflow: visible; }
.axis text { font-size: 11px; fill: var(--ink-3); font-weight: 700; font-family: var(--body); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.segl { display: inline-flex; background: var(--page); border-radius: 999px; padding: 3px; }
.segl button { border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font-family: var(--display); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.segl button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: #0B1B2B; color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.tip[hidden] { display: none; }
.tip b { font-family: var(--display); font-weight: 900; font-size: 14px; }

/* teams table */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--grid); font-weight: 700; }
td .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.mini { display: flex; align-items: center; gap: 8px; }
.mini .b { flex: 1; height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; min-width: 80px; }
.mini .b i { display: block; height: 100%; border-radius: 4px; background: var(--green-d); }
tr.prot td { color: var(--ink-3); background: #F6F9FC; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: var(--page); border-radius: 999px; padding: 2px 10px; }
.sync-warn { color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; font-weight: 800; }

/* recap */
.recap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mail { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.mail .mh { background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); color: #fff; padding: 16px; }
.mail .mh b { font-family: var(--display); font-weight: 900; font-size: 18px; display: block; }
.mail .mh span { font-size: 12.5px; color: #CFE6FA; }
.mail .mb { padding: 14px 16px; display: grid; gap: 10px; font-size: 14px; }
.mail .mb .r { display: flex; justify-content: space-between; border-bottom: 1px solid var(--grid); padding-bottom: 8px; font-weight: 700; }
.mail .mb .r b { font-family: var(--display); font-weight: 900; }
.set { display: grid; gap: 12px; }
.set .row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px; border-radius: 12px; background: #F6F9FC; font-weight: 700; }
.sw2 { width: 44px; height: 26px; border-radius: 999px; background: var(--green); position: relative; flex: none; }
.sw2::after { content: ""; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }

.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.stat3 div { background: #F6F9FC; border-radius: 12px; padding: 10px; }
.stat3 b { display: block; font-family: var(--display); font-weight: 900; font-size: 20px; }
.stat3 span { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; font-weight: 600; }


/* challenge page */
.crumb { position: relative; z-index: 2; font-family: var(--display); font-weight: 800; font-size: 14px; color: #BFE3FF; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,90,78,.18); color: #FFB3AC; border-radius: 999px; padding: 4px 10px; font-family: var(--display); font-weight: 900; font-size: 12.5px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; color: #D7ECFF; font-weight: 700; font-size: 14px; }
.facts b { color: #fff; font-family: var(--display); font-weight: 900; }
.code { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 10px; padding: 4px 6px 4px 10px; font-family: var(--display); font-weight: 900; letter-spacing: .12em; color: #fff; }
.code button { border: 0; background: #fff; color: var(--ink); border-radius: 7px; padding: 3px 8px; font-family: var(--display); font-weight: 900; font-size: 12px; cursor: pointer; letter-spacing: 0; }

.board { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #1D4A76, #12273B 70%); }
.board .vsrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.board .tm { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: end; }
.board .tm.r { grid-template-columns: minmax(0,1fr) auto; text-align: right; }
.board .tm img { height: 120px; }
.board .nm { font-family: var(--display); font-weight: 900; font-size: 20px; }
.board .big { font-family: var(--display); font-weight: 900; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.board .small { color: #BFD3E6; font-size: 13px; font-weight: 700; }
.board .mid { text-align: center; }
.board .mid .wins { font-family: var(--display); font-weight: 900; font-size: 30px; }
.board .mid .lbl { color: #BFD3E6; font-size: 12.5px; font-weight: 800; }
.board .callout { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.board .callout span { background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; color: #DDEBF7; }

.cmp { display: grid; grid-template-columns: minmax(0,1fr) 110px minmax(0,1fr); gap: 0; }
.cmp div { padding: 10px 6px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.cmp .l { text-align: right; font-family: var(--display); font-weight: 900; font-size: 18px; }
.cmp .r { font-family: var(--display); font-weight: 900; font-size: 18px; }
.cmp .k { text-align: center; color: var(--ink-3); font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.cmp .win { color: var(--green-d); }
.cmp .hdr { border-bottom: 2px solid var(--line); font-size: 14px !important; }

.feed { display: grid; gap: 10px; }
.mom { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #F6F9FC; }
.mom .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; color: #fff; }
.mom p { margin: 0; font-weight: 700; }
.mom time { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }

.tools { display: grid; gap: 10px; }
.tool { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: #F6F9FC; }
.tool b { font-family: var(--display); font-weight: 900; display: block; }
.tool span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.tmpl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tmpl button { border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); padding: 6px 12px; font-family: var(--display); font-weight: 800; font-size: 13px; cursor: pointer; color: var(--ink); }
.tmpl button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.msgbox { margin-top: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px; font-weight: 600; color: var(--ink); min-height: 64px; }
.to { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 800; color: var(--ink-2); }

.daytbl td.w { font-family: var(--display); font-weight: 900; }
@media (max-width: 760px) {
  .board .vsrow { grid-template-columns: 1fr; text-align: center; }
  .board .tm, .board .tm.r { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .board .tm.r img { order: -1; }
}

/* RESPONSIVE */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } .c3, .c4, .c5 { grid-column: span 6; } .c7, .c8 { grid-column: span 12; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  nav.side { display: flex; overflow-x: auto; gap: 4px; }
  nav.side .sep, .privacy-note, .org { display: none; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .recap { grid-template-columns: 1fr; }
  .top, main { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .runner { display: none; } }

/* ---------- real app additions ---------- */
a { color: inherit; }
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.brand { text-decoration: none; color: var(--ink); }
.org select { margin-top: 6px; width: 100%; border: 0; background: #fff; border-radius: 8px; padding: 6px 8px; font: inherit; font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
nav.side a:hover { background: #F2F6FA; }
nav.side a.on:hover { background: #E3F6DE; }
.side-foot { margin-top: 14px; display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.side-foot a, .side-foot button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 4px 10px; text-align: left; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; }
.side-foot a:hover, .side-foot button:hover { color: var(--green-d); }
.top a.btn { text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn[aria-busy="true"] { opacity: .85; cursor: progress; }
.btn[aria-busy="true"]::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: btnspin .7s linear infinite; flex: none; }
@keyframes btnspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"]::before { animation-duration: 2s; } }
.btn.line.small, .btn.small { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: #fff; color: #9A2A20; box-shadow: inset 0 0 0 1.5px #F2C9C4; }
.link { color: var(--green-d); font-weight: 800; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 800; }
.link:hover { text-decoration: underline; }
.pillsel { position: relative; display: inline-flex; }
.pillsel select { appearance: none; -webkit-appearance: none; height: 38px; background: rgba(255,255,255,.1); color: #D7ECFF; border: 0; border-radius: 999px; padding: 0 38px 0 16px; font-family: var(--display); font-weight: 800; font-size: 13px; cursor: pointer; max-width: 260px; }
.pillsel select option { color: var(--ink); }
.pillsel::after { content: ""; position: absolute; right: 16px; top: 14px; width: 7px; height: 7px; border-right: 2px solid #D7ECFF; border-bottom: 2px solid #D7ECFF; transform: rotate(45deg); pointer-events: none; }
.empty { text-align: center; padding: 26px 16px; color: var(--ink-2); font-weight: 600; }
.empty b { display: block; font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.muted { color: var(--ink-2); font-weight: 600; }
.small { font-size: 13px; }
.dash-val { color: var(--ink-3); }
.loading { padding: 40px; text-align: center; color: var(--ink-3); font-weight: 800; }
.skel { background: linear-gradient(90deg, #EEF3F8, #F7FAFC, #EEF3F8); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* characters: the app's two-layer art, tinted with CSS masks */
.char { position: relative; display: block; margin: 0 auto; }
.char i { position: absolute; inset: 0; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center bottom; mask-position: center bottom; }
.board .tm .char { margin: 0; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
input[type=text], input[type=email], input[type=number], input[type=date], select.in, textarea {
  font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 0; border-radius: 10px; padding: 10px 12px; box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; }
input:focus, select.in:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-d); }
select.in { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.row-form .field { margin: 0; flex: 1 1 200px; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #F6F9FC; cursor: pointer; flex: 1 1 200px; font-weight: 700; color: var(--ink); font-size: 14px; }
.radios label span { display: block; font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.radios input { margin-top: 3px; accent-color: var(--green-d); }

/* lists */
.rows { display: grid; gap: 10px; }
.rowi { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #F6F9FC; flex-wrap: wrap; }
.rowi .grow { flex: 1 1 220px; min-width: 0; }
.rowi b { font-family: var(--display); font-weight: 900; }
.rowi .sub { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; font-family: var(--display); border-radius: 999px; padding: 2px 10px; background: var(--page); color: var(--ink-2); }
.badge.live { background: #FDE9E7; color: #9A2A20; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.badge.up { background: #E8F1FF; color: #1E5FA8; }
.badge.done { background: #EEF3F8; color: var(--ink-2); }
.badge.owner { background: #E3F6DE; color: #1E5A12; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }

/* challenge cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ccard { display: block; text-decoration: none; color: var(--ink); }
.ccard:hover { box-shadow: 0 0 0 2px var(--green-d), 0 18px 30px -26px rgba(15,34,53,.45); }
.ccard h3 { font-family: var(--display); font-weight: 900; font-size: 18px; margin: 8px 0 2px; }
.ccard .meta { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.ccard .foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--ink-2); }

/* QR */
.qr { background: #fff; padding: 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); display: inline-block; line-height: 0; }
.qr img, .qr canvas { width: 100%; height: auto; display: block; }
.qrcard { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 16px; align-items: center; }
.bigcode { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .14em; }

/* modal + toast */
.scrim { position: fixed; inset: 0; background: rgba(9,22,36,.55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 20px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.modal h2 { font-family: var(--display); font-weight: 900; font-size: 20px; margin: 0 0 6px; }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; top: 16px; z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
/* Confirmation messages (Rich, Oct 29, option B): a white card with dark text and a colored edge, so it reads on the blue header and the page. */
.toast { background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: 14px; display: flex; gap: 10px; align-items: center;
  box-shadow: inset 4px 0 0 var(--ink-3), 0 14px 30px -12px rgba(0,0,0,.45); }
.toast.ok { box-shadow: inset 4px 0 0 #2E9E1E, 0 14px 30px -12px rgba(0,0,0,.45); }
.toast.err { box-shadow: inset 4px 0 0 #D93A2B, 0 14px 30px -12px rgba(0,0,0,.45); }
.toast.ok::before, .toast.err::before { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.toast.ok::before { content: "\2713"; background: #52D93C; color: #0B1B2B; }
.toast.err::before { content: "!"; background: #FFE1DD; color: #9A2A20; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: #6B4200; font-weight: 700; font-size: 14px; flex-wrap: wrap; grid-column: span 12; }
.banner.info { background: #E8F1FF; color: #17497F; }
.banner .link { margin-left: auto; }

/* signed out */
.gate { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.gate .top { padding-bottom: 110px; }
.gate .top .row1 { max-width: 980px; margin: 0 auto; }
.gate main { max-width: 520px; width: 100%; margin: -80px auto 0; }
.gate .panel { padding: 24px; }
.gate h2 { font-size: 22px !important; }
.gbtn { width: 100%; justify-content: center; padding: 12px 14px; font-size: 15px; }
.or { text-align: center; color: var(--ink-3); font-weight: 800; font-size: 13px; margin: 14px 0; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.plancard { border-radius: 14px; padding: 14px; background: #F6F9FC; display: grid; gap: 6px; align-content: start; }
.plancard.current { box-shadow: inset 0 0 0 2px var(--green-d); background: #fff; }
.plancard h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 16px; }
.plancard .price { font-family: var(--display); font-weight: 900; font-size: 24px; }
.plancard .price small { font-size: 13px; color: var(--ink-3); }
.plancard .feats { margin: 2px 0 6px; padding-left: 18px; color: var(--ink-2); display: grid; gap: 2px; }
/* Wiring for Design's upgrade-marker kit on this dashboard (the lines KIT.md lists; the kit itself is the sync-design block at the end). */
.modal.hm-upgrade-window .acts.hm-upgrade-window__actions{justify-content:flex-start}
.btn .hm-lock-chip{margin-left:2px}
label .hm-lock-chip{margin-left:6px;vertical-align:middle}
.panel.logo-card{align-self:start}
.hm-logo-card__head h2{font-family:var(--display);font-weight:900;font-size:17px;margin:0}
.hm-newmenu{position:fixed;z-index:60;box-sizing:border-box}
.hm-menu__txt b,.hm-tile__title{font-family:var(--display)}
.tool:has(.hm-lock-chip){grid-template-columns:minmax(0,1fr)}
.tool:has(.hm-lock-chip) > .btn{justify-self:start}
.tool .hm-lock-chip span{font-size:12px;color:inherit;font-weight:900}
.upgrade-offer { border-radius: 14px; padding: 12px 14px; background: #F6F9FC; box-shadow: inset 0 0 0 1px var(--line); }
.upgrade-offer b { font-family: var(--display); font-weight: 900; font-size: 17px; }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; font-family: var(--display); font-weight: 900; color: var(--green-d); }

@media print {
  aside, .top .actions, .filters, .tools-panel, .no-print, .toasts, .tip { display: none !important; }
  .shell { display: block; }
  .top { padding-bottom: 24px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main { margin-top: 12px; }
  .panel { break-inside: avoid; box-shadow: 0 0 0 1px var(--line); }
  .board, .live { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
}

/* phone fixes */
@media (max-width: 700px) {
  .set .row { flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
  .set .row > span { min-width: 0; overflow-wrap: anywhere; }
  .tbl table.people, .tbl.people table { min-width: 0; }
}
/* Sign-in buttons: clear hover and press feedback */
.gbtn { transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease; }
.gbtn:not([disabled]):hover { transform: translateY(-2px); }
.gbtn:not([disabled]):active { transform: translateY(0); }
.btn.line.gbtn:not([disabled]):hover { background: #E3F6DE; color: #1E5A12; box-shadow: inset 0 0 0 2px var(--green), 0 6px 14px rgba(46,158,28,.18); }
.btn.go.gbtn:not([disabled]):hover { box-shadow: 0 6px 14px rgba(46,158,28,.3); }
@media (prefers-reduced-motion: reduce) { .gbtn, .gbtn:hover { transition: none; transform: none; } }
/* Narrow screens: a tidy top bar (brand, org, links on one row, menu scrolls sideways) */
@media (max-width: 900px) {
  aside { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px 8px; }
  aside .brand { padding: 0; order: 1; }
  aside .org { display: block; order: 2; flex: 1 1 0; min-width: 0; padding: 0; margin: 0; background: none; text-align: right; }
  aside .org b { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  aside .org span, aside .org .org-logo { display: none; }
  aside .org select { max-width: 100%; }
  .side-foot { order: 3; margin: 0; display: flex; gap: 0; flex: none; }
  .side-foot a, .side-foot button { padding: 4px 8px; }
  nav.side { order: 4; width: 100%; flex-wrap: nowrap; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav.side::-webkit-scrollbar { display: none; }
  nav.side a { flex: none; white-space: nowrap; padding: 8px 12px; }
  .top { padding-top: 16px; }
  .top h1 { font-size: 26px; }
  .top .actions { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .top .actions .btn { font-size: 13px; padding: 8px 10px; }
  .filters { gap: 6px; }
}
@media (max-width: 560px) { aside .org:not(:has(select)) { display: none; } }
/* Lists of rows (activity, invites, settings) stay inside their panel at any width */
.set { grid-template-columns: minmax(0, 1fr); }
.set .row { min-width: 0; flex-wrap: wrap; gap: 4px 12px; }
.set .row > span { min-width: 0; overflow-wrap: anywhere; }
.set .row > span.note { margin-left: auto; }
/* Sign-in header: the logo leads, the words step back */
.gate-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.gate-brand img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(142,240,123,.55), 0 0 22px rgba(82,217,60,.45); }
.gate-brand .gb-text { display: flex; flex-direction: column; line-height: 1.15; }
.gate-brand .gb-name { font-family: var(--display); font-weight: 900; font-size: 19px; color: #fff; }
.gate-brand .gb-sub { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }

/* challenge people and teams */
.teamchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #F6F9FC; font-size: 13px; }
.teamchip i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(10,30,60,.12); }
.teamchip .muted { font-weight: 600; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #E9F2FA; color: #0F63A6; font-size: 12px; font-weight: 800; }
.tag.ok { background: rgba(43,196,160,.16); color: #127A5F; }
.tag.muted { background: #F1F3F6; color: var(--ink-2); }
table.ppl { min-width: 0; width: 100%; }
table.ppl td { vertical-align: middle; }
table.ppl select.in { padding: 7px 34px 7px 10px; background-position: right 12px center; font-size: 13px; max-width: 190px; display: block; }
.panel input[type="search"] { font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 0; border-radius: 10px; padding: 9px 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.panel input[type="search"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-d); }
.segl { flex-wrap: wrap; }
@media (max-width: 640px) {
  table.ppl thead { display: none; }
  table.ppl tr { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 4px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.ppl td { padding: 0; border: 0; }
  table.ppl td:nth-child(4) { grid-column: 2 / 4; }
  table.ppl td div { overflow-wrap: anywhere; }
  .segl { border-radius: 14px; }
}

/* sidebar logo matches the sign-in header */
.side-brand { gap: 12px; }
.side-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(82,217,60,.45), 0 0 16px rgba(82,217,60,.35); }
.side-brand .gb-text { display: flex; flex-direction: column; line-height: 1.15; }
.side-brand .gb-name { font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--ink); }
.side-brand .gb-sub { font-family: var(--display); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-top: 2px; }
@media (max-width: 900px) { .side-brand img { width: 36px; height: 36px; border-radius: 10px; } .side-brand .gb-name { font-size: 15px; } .side-brand .gb-sub { font-size: 10px; } }

/* ---------- platform admin (admin.js) ---------- */
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--page); color: var(--ink-2); text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qchip b { font-family: var(--display); font-weight: 900; color: var(--ink); }
.qchip.on { background: #E3F6DE; color: #1E5A12; box-shadow: inset 0 0 0 1.5px #A9DFA0; }
.qcard { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.qcard + .qcard { margin-top: 10px; }
.qtitle { font-family: var(--display); font-weight: 900; font-size: 17px; overflow-wrap: anywhere; }
.qmeta { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.qlabel { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.qnote { background: #F6F9FC; border-radius: 10px; padding: 8px 10px; font-size: 14px; margin-bottom: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.qnote a { color: var(--green-d); font-weight: 700; }
.qtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.qcard textarea { font: inherit; font-weight: 600; width: 100%; color: var(--ink); background: #fff; border: 0; border-radius: 10px; padding: 9px 12px; box-shadow: inset 0 0 0 1.5px var(--line); resize: vertical; min-height: 56px; }
.qcard textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-d); }
.qacts { display: flex; gap: 8px; flex-wrap: wrap; }
.qrow { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.qrow:first-of-type { border-top: 0; }
.qrow > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.qcount { text-align: right; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; flex: none; }
.qcount b { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--ink); }
@media (max-width: 640px) {
  .qacts .btn { flex: 1 1 100%; justify-content: center; padding: 12px 14px; font-size: 15px; }
  .qcard select.in { max-width: 100%; }
  .qrow { flex-direction: column; gap: 4px; }
  .qcount { text-align: left; white-space: normal; }
}

/* Platform admin, stage 3: stats, charts, tables */
.tag.warn { background: #FFF1D6; color: #8A5A00; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.ktile { background: #F6F9FC; border-radius: 12px; padding: 12px; display: grid; gap: 2px; align-content: start; }
.ktile .kl { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.ktile b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.15; }
.ktile .ks { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.vtools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.vtools select, .vtools input[type="date"] { padding: 7px 9px; border: 1px solid #D5DEE8; border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.rangebar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-right: auto; }
.vwrap { width: 100%; }
.vchart { width: 100%; height: auto; display: block; }
.vchart .vgrid { stroke: #E3EAF1; stroke-width: 1; }
.vchart .vtick { fill: #5B6B7B; font-size: 11px; font-weight: 700; }
.vlegend { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.vlegend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: grid; gap: 8px; }
.hrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.hrow .hl { color: var(--ink-2); }
.hrow .hb { background: #EEF3F8; border-radius: 6px; height: 14px; overflow: hidden; display: block; }
.hrow .hb i { display: block; height: 100%; border-radius: 6px; }
@media (max-width: 640px) { .hrow { grid-template-columns: 1fr auto; } .hrow .hb { grid-column: 1 / -1; order: 3; } }
.rangebar input[type="date"], .rangebar select, .vtools select { width: auto; flex: 0 0 auto; }
.row-form select { padding: 10px 12px; border: 1px solid #D5DEE8; border-radius: 12px; font: inherit; font-size: 14px; background: #fff; }

/* Demo (migration 0054): the banner that stays on every page, and the picker */
.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 16px; background: #FFF4DB; color: #5C3D00; border-bottom: 1px solid #F0D79A; font-size: 14px; }
.demo-bar b { font-weight: 900; }
.demo-bar-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-bar-links a:not(.btn) { color: #5C3D00; font-weight: 800; }
body.has-demo-bar aside { top: 44px; height: calc(100vh - 44px); }
@media (max-width: 900px) { body.has-demo-bar aside { top: auto; height: auto; } }
.demo-pick { max-width: 880px; margin: 0 auto; padding: 36px 16px 48px; text-align: center; }
.demo-pick h1 { font-family: var(--display); font-weight: 900; font-size: 28px; margin: 10px 0 6px; }
.demo-pick .banner { text-align: left; margin: 12px 0; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 22px 0; text-align: left; }
.demo-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.demo-card:hover, .demo-card:focus-visible { border-color: #52D93C; box-shadow: 0 6px 18px -10px rgba(15, 34, 53, .35); }
.demo-card b { font-family: var(--display); font-weight: 900; font-size: 17px; }
.demo-card span { color: var(--ink-2); font-size: 14px; }

/* Sidebar logo (Rich, Oct 17): the stacked "for Organizations" logo, centered; the one-line logo on narrow screens. No glow. */
.side-brand { flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 20px; text-align: center; }
.side-brand img { width: auto; height: auto; border-radius: 0; box-shadow: none; }
.side-brand .lg-stack { width: 176px; display: block; }
.side-brand .lg-line { display: none; }
@media (max-width: 900px) {
  .side-brand { align-items: flex-start; padding: 0; }
  .side-brand .lg-stack { display: none; }
  .side-brand .lg-line { display: block; width: auto; height: 18px; }
}

/* Header lockup, plan chips and the sample-data chip (Design system chat, Oct 20; family-rules.md section 3, design 0b58f01).
   Green stays only on progress bars, up arrows and the primary button. */
.hdr-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hdr-brand img { height: 30px; width: auto; display: block; }
.hdr-role { color: #CFE0F0; font-family: var(--display); font-weight: 800; font-size: 14px; padding-left: 12px; border-left: 1px solid rgba(207, 224, 240, .4); line-height: 22px; }
@media (max-width: 900px) { .hdr-brand { display: none; } } /* narrow screens: the sidebar's top bar already carries the lockup */
.planchip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-family: var(--display); font-weight: 900; font-size: 12px; background: #DCEBFA; color: #17497F; }
.planchip.free { background: #EAF1F8; color: #4A5F74; }
.samplechip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-family: var(--display); font-weight: 900; font-size: 11.5px; letter-spacing: .06em; background: #F5A623; color: #0B1B2B; }

/* ===== Boards, Oct 24 (Design rule 5q): Overview, Challenges list, challenge page ===== */
.sechd { font-family: var(--display); font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ttile { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; flex: none; }
.rcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.rhead { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.rhead .rt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rhead .rt b { font-family: var(--display); font-weight: 900; font-size: 17px; }
.rhead .rt span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.rhead .chev { color: var(--ink-3); font-size: 26px; line-height: 1; }
.daybar .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.daybar .row b { color: var(--ink); font-family: var(--display); font-weight: 900; }
.daybar .track, .ggprog .track { height: 9px; border-radius: 6px; background: var(--grid); overflow: hidden; margin-top: 6px; }
.daybar .track i, .ggprog .track i { display: block; height: 100%; border-radius: 6px; background: #17497F; }
.ppl { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.ppl b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.underchip { display: inline-block; background: #FFF1CF; color: #7A5200; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; }
.invbox { display: flex; gap: 10px; align-items: center; background: var(--page); border-radius: 12px; padding: 10px; }
.qrmini { width: 56px; height: 56px; flex: none; background: #fff; border-radius: 6px; overflow: hidden; }
.invtxt { display: flex; flex-direction: column; min-width: 0; }
.invtxt .lbl { font-size: 10.5px; letter-spacing: .08em; font-weight: 900; color: var(--ink-3); text-transform: uppercase; }
.invtxt .url { font-size: 13px; font-weight: 800; color: #17497F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk { border: 0; background: none; color: var(--green-d); font-family: var(--display); font-weight: 900; font-size: 13px; cursor: pointer; padding: 2px 10px 0 0; }
.bigtiles, .kpis4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.bigtiles > div, .bigtile { background: #F4F8FC; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 0 0 1px var(--line); }
.kpis4 .bigtile { background: var(--panel); }
.bigtile .lbl, .bigtiles .lbl { font-size: 11.5px; letter-spacing: .08em; font-weight: 900; color: var(--ink-2); text-transform: uppercase; }
.bigtiles b, .bigtile b { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1.15; color: var(--ink); }
.bigtiles .ctx, .bigtile .ctx { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.irows { display: grid; gap: 12px; margin-top: 10px; }
.irow { display: grid; grid-template-columns: 34px minmax(160px, 1.1fr) 3fr 52px; gap: 12px; align-items: center; }
.itile { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; flex: none; }
.itile i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.itx { font-weight: 800; }
.ibar { height: 12px; border-radius: 7px; background: var(--grid); overflow: hidden; }
.ibar i { display: block; height: 100%; border-radius: 7px; }
.ipc { text-align: right; font-weight: 900; font-family: var(--display); }
.nrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.nrow .nt { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.nrow .nt span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.seeres { color: var(--green-d); font-family: var(--display); font-weight: 900; text-decoration: none; font-size: 14px; background: none; border: 0; cursor: pointer; padding: 8px 6px; }
.ann { display: flex; flex-direction: column; gap: 2px; }
.ann p { margin: 8px 0 0; line-height: 1.5; }
.gg { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.gg b { display: block; font-family: var(--display); font-weight: 900; }
.gg > div > span { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.gg > div > :not(b):not(span) { margin-top: 10px; }
.gg .tick { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px #9FB0C2; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.gg.done .tick { background: var(--green); box-shadow: none; color: #0B1B2B; }
.gg.done b { color: var(--ink-2); font-weight: 800; }
.ggprog { display: flex; align-items: center; gap: 10px; max-width: 380px; } .ggprog .track { flex: 1; margin: 0; }
.fchips { display: flex; justify-content: flex-end; gap: 4px; }
.fchips button { border: 0; background: none; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.fchips button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.ccard2 { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; padding: 18px; }
.chead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ctitle { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.ctitle a { font-family: var(--display); font-weight: 900; font-size: 19px; color: var(--ink); text-decoration: none; }
.ctitle span { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.cacts { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 62px; }
.ichip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 800; }
.ichip i { width: 9px; height: 9px; border-radius: 50%; }
.cfoot { display: grid; grid-template-columns: minmax(200px, 1.2fr) auto minmax(0, 1fr); gap: 18px; align-items: center; padding-left: 62px; }
.cnum { text-align: right; font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.cnum b { color: var(--ink); }
.passline { color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }
.sample-chip { display: inline-block; background: #F5A623; color: #3A2500; font-family: var(--display); font-weight: 900; font-size: 10.5px; letter-spacing: .05em; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.cap { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.dchart { display: flex; gap: 4px; align-items: stretch; height: 170px; }
.dcol { flex: 1 1 0; min-width: 6px; position: relative; padding-bottom: 16px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.dcol i { display: block; width: 100%; max-width: 18px; border-radius: 5px 5px 0 0; }
.dcol span { position: absolute; bottom: 0; font-size: 10.5px; font-weight: 800; color: var(--ink-3); }
.wkhead, .wkrow { display: grid; align-items: center; gap: 0; }
.wkhead { font-size: 11px; letter-spacing: .08em; font-weight: 900; color: var(--ink-3); text-align: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wkrow { padding: 12px 0; border-bottom: 1px solid var(--grid); }
.witem { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.wkcell { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 56px; gap: 4px; }
.wkcell i { width: 24px; border-radius: 5px 5px 0 0; display: block; }
.wkcell b { font-size: 11.5px; font-family: var(--display); }
.trow { display: grid; grid-template-columns: 20px minmax(110px, 1fr) 2fr 70px; gap: 10px; align-items: center; padding: 6px 0; }
.trow .tn { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.trow .tn i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.tbar { height: 11px; border-radius: 7px; background: var(--grid); overflow: hidden; }
.tbar i { display: block; height: 100%; border-radius: 7px; }
.tbar.run i { background: #FF8A3D; }
.tpc { text-align: right; font-weight: 900; font-family: var(--display); font-size: 13.5px; }
.flame { color: #FF8A3D; font-size: 11px; }
.whoin { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.names { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 240px; }
.nchip { background: var(--page); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 800; }
.nchip.more { color: var(--ink-3); }
.whoin .invbox { min-width: 300px; }
@media (max-width: 1180px) { .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rcards, .bigtiles, .kpis4 { grid-template-columns: 1fr; }
  .irow { grid-template-columns: 34px 1fr 48px; } .irow .ibar { grid-column: 1 / -1; order: 5; }
  .chips, .cfoot { padding-left: 0; } .cfoot { grid-template-columns: 1fr; } .cnum { text-align: left; }
  .cacts { margin-left: 0; } .trow { grid-template-columns: 20px 1fr 60px; } .trow .tbar { grid-column: 1 / -1; order: 5; }
}
@media print { .fchips, .cacts, .invbox { display: none; } }

main.flat { margin-top: 0; padding-top: 22px; }

/* Organization kind in the header sub-line and the header switcher (Design rule 5q, Oct 24) */
header.top .sub.orgline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.orgswbox { position: relative; }
.btn.orgsw { gap: 8px; max-width: 260px; }
.btn.orgsw .chev { font-size: 14px; line-height: 1; margin-top: -4px; }
.orgmenu { position: fixed; z-index: 200; width: 300px; max-width: calc(100vw - 32px); background: #fff; color: var(--ink); border-radius: 16px; padding: 8px; box-shadow: 0 24px 48px -16px rgba(4,12,24,.45), 0 0 0 1px var(--line); text-align: left; }
.orgmenu .omh { font-family: var(--display); font-weight: 900; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 6px 10px 8px; }
.orgmenu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; border-radius: 12px; padding: 10px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.orgmenu button:hover, .orgmenu button.on { background: var(--page); }
.orgmenu .omt { flex: 1; min-width: 0; }
.orgmenu .omt b { display: block; font-family: var(--display); font-weight: 900; }
.orgmenu .omt span { display: block; font-size: 13px; color: var(--ink-2); }
.orgmenu .omk { color: var(--green-d); font-weight: 900; }
body.has-demo-bar aside { top: var(--barh, 44px); height: calc(100vh - var(--barh, 44px)); }
@media (max-width: 900px) {
  body.has-demo-bar aside { top: auto; height: auto; }
  aside .org { display: none !important; }
  .btn.orgsw { max-width: 200px; }
  .btn.orgsw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Sample bar on phones: one short line with Start free beside it (Design, Oct 24). */
.demo-bar .bar-short { display: none; }
@media (max-width: 600px) {
  .demo-bar { flex-wrap: nowrap; padding: 8px 12px; font-size: 13px; }
  .demo-bar .bar-long { display: none; }
  .demo-bar .bar-short { display: inline; }
  .demo-bar .demo-bar-links { flex: none; }
}
/* The sidebar column keeps its background down a tall page, so a full-page capture does not show it cut off. */
@media (min-width: 901px) { .shell { background: linear-gradient(to right, var(--panel) 235px, var(--line) 235px, var(--line) 236px, transparent 236px); } }

/* Four tiles in a row on the partner report when it has both steps and check-ins (0110). */
.stat3.stat4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 600px) { .stat3.stat4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Partner Clients and Earnings on phones: each tile and each row stacks, nothing clips (Design, Oct 24). */
@media (max-width: 600px) {
  .stat3.pstack { grid-template-columns: 1fr; }
  .stat3.pstack div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stat3.pstack b { font-size: 22px; order: 2; }
  .stat3.pstack span { order: 1; }
  .tbl.pstack { overflow: visible; }
  .tbl.pstack table { min-width: 0 !important; width: 100%; display: block; }
  .tbl.pstack thead { display: none; }
  .tbl.pstack tbody { display: block; }
  .tbl.pstack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.pstack td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; border: 0; text-align: right; }
  .tbl.pstack td:first-child { display: block; text-align: left; padding-bottom: 6px; }
  .tbl.pstack td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-size: 13px; font-weight: 700; text-align: left; flex: none; max-width: 55%; }
  .tbl.pstack td:empty { display: none; }
  .tbl.pstack td:last-child:not([data-label]) { display: block; text-align: left; padding-top: 6px; }
}

/* sync-design:upgrade-marker start */
/* sync-design: design/web/approved/upgrade-marker-oct28/source/upgrade-marker.css. Do not edit; run npm run sync-design. */
/* ===== Health Movement for Organizations: upgrade marker and upgrade button (approved Oct 29, option 2) =====
   Tokens: ink navy #0B1B2B, sunset #FF8A3D to #FF5FB0 (HM+ gradient). Text on sunset is always ink navy.
   Never white or sunset-colored text ON the sunset gradient (family rules, section 4). */
:root{
  --hm-ink:#0B1B2B; --hm-soft:#4A5F74; --hm-line:#DCE5EE; --hm-page:#EEF3F8;
  --hm-green:#52D93C; --hm-sunset-a:#FF8A3D; --hm-sunset-b:#FF5FB0; --hm-lock-tint:#FF9A5A;
  --hm-sunset:linear-gradient(90deg,var(--hm-sunset-a),var(--hm-sunset-b));
}
/* --- the lock chip: on every locked feature; names the plan from plans.js --- */
.hm-lock-chip{display:inline-flex;align-items:center;gap:5px;flex:none;
  background:var(--hm-sunset);color:var(--hm-ink);border:0;border-radius:999px;
  padding:3px 10px 3px 8px;font:900 12px/1.3 Nunito,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.hm-lock-chip svg{color:var(--hm-ink);width:12px;height:12px}
.hm-lock-chip:focus-visible{outline:2px solid var(--hm-ink);outline-offset:2px}
/* As a <span> inside a locked button, menu row or link, the chip is not its own tap target; the parent opens the upgrade window. */
span.hm-lock-chip{cursor:inherit}
/* --- the upgrade button: "See Plus" and upgrade links only; every other main button stays green.
   Mostly orange with the pink only at the right edge (keeps it apart from Movement orange), navy text, no icon. --- */
.hm-upgrade-btn{display:inline-flex;align-items:center;border:0;border-radius:999px;cursor:pointer;white-space:nowrap;
  background:linear-gradient(90deg,var(--hm-sunset-a) 0%,var(--hm-sunset-a) 55%,#FF6E8E 100%);color:var(--hm-ink);
  padding:11.5px 22px;font:900 16.5px/1.2 Nunito,system-ui,sans-serif;letter-spacing:.2px;
  box-shadow:0 6px 14px -6px rgba(255,138,61,.7)}
.hm-upgrade-btn:hover{filter:brightness(1.04)}
.hm-upgrade-btn:active{transform:translateY(1px)}
.hm-upgrade-btn:focus-visible{outline:2px solid var(--hm-ink);outline-offset:3px}
/* --- the upgrade window --- */
.hm-upgrade-window{box-sizing:border-box;width:100%;max-width:420px;background:#fff;border-radius:24px;padding:24px 24px 20px;
  box-shadow:0 24px 50px -20px rgba(11,27,43,.4);font-family:Nunito,system-ui,sans-serif;color:var(--hm-ink)}
.hm-upgrade-window__top{display:flex;align-items:center;gap:10px}
.hm-upgrade-window__plan{font-size:13.5px;font-weight:700;color:var(--hm-soft)}
.hm-upgrade-window h2{font-size:22px;font-weight:900;margin:12px 0 6px}
.hm-upgrade-window p{font-size:14.5px;font-weight:700;color:var(--hm-soft);line-height:1.45;margin:0}
.hm-upgrade-window__actions{display:flex;gap:10px;margin-top:18px;align-items:center;flex-wrap:wrap}
.hm-upgrade-window__actions .btn{border-radius:999px} /* the app's own Not now button, made a pill to match See Plus */
/* --- where the chip sits: every class below is the kit's own (hm- prefix) and sits on top of the app's .btn, .panel and so on --- */
/* locked button: the app's outline button + .hm-locked-btn; label, then the chip inside */
.hm-locked-btn{gap:8px;border-radius:999px}
.hm-locked-btn .hm-lock-chip{margin-left:2px}
/* Settings Logo card (inside the app's .panel) */
.hm-logo-card__head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.hm-logo-card__cap,.hm-tile__cap{font-size:13.5px;font-weight:700;color:var(--hm-soft);line-height:1.45;margin:4px 0 0}
.hm-logo-card__row{display:flex;gap:14px;align-items:center;margin-top:14px}
.hm-logo-card__drop{width:76px;height:76px;border-radius:16px;border:2px dashed #C9D6E3;background:#F7FAFC;display:flex;align-items:center;justify-content:center;flex:none;color:#9AABBD}
/* New challenge menu: rows are buttons */
.hm-menu{box-sizing:border-box;background:#fff;border-radius:18px;border:1px solid var(--hm-line);box-shadow:0 18px 40px -14px rgba(11,27,43,.35);padding:6px;font-family:Nunito,system-ui,sans-serif}
.hm-menu__title{padding:8px 12px 4px;font-size:12px;font-weight:900;letter-spacing:.06em;color:#6B7F94;text-transform:uppercase}
.hm-menu__row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:12px;background:none;text-align:left;font:inherit;color:var(--hm-ink);cursor:pointer}
.hm-menu__row:hover,.hm-menu__row:focus-visible{background:#F3F7FB;outline:none}
.hm-menu__ic{width:34px;height:34px;border-radius:10px;background:#EEF3F8;display:flex;align-items:center;justify-content:center;flex:none;color:#17497F}
.hm-menu__txt{flex:1;min-width:0}.hm-menu__txt b{display:block;font-size:15px;font-weight:900}.hm-menu__txt span{font-size:12.5px;font-weight:700;color:var(--hm-soft)}
/* sidebar / phone menu row */
.hm-side-row{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:12px;font:800 15px/1.2 Nunito,system-ui,sans-serif;color:var(--hm-soft);text-decoration:none}
.hm-side-row > svg{color:#6B7F94;flex:none}.hm-side-row > span:not(.hm-lock-chip){flex:1}
/* locked tile (inside the app's .panel): the chip top right, a faded preview */
.hm-tile{background:#FBFCFE;cursor:pointer}
.hm-tile__head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.hm-tile__title{display:flex;align-items:center;gap:10px;font-size:16.5px;font-weight:900}
.hm-tile__ic{width:38px;height:38px;border-radius:11px;background:#EEF3F8;display:flex;align-items:center;justify-content:center;color:#17497F}
.hm-tile__preview{display:block;opacity:.35;margin-top:10px;width:100%;height:54px}
/* sync-design:upgrade-marker end */

/* sync-design:under5-preview start */
/* sync-design: design/web/approved/under5-preview-oct29/under5-preview.css. Do not edit; run npm run sync-design. */
/* from design/web/approved/under5-preview-oct29/under5-preview.css, do not edit here; change it in design/ and run sync-design.
   Under-5 preview on a real organization's challenge (rule 5q, amended Oct 28; org-site-test item 8).
   Uses the dashboard's own variables (dash.css :root). Append to dash.css as is. */

/* Top tiles: no numbers. "People in" keeps "Under 5 so far"; the other three wait. */
.kpis4 .bigtile.u5-wait b { font-size: 19px; line-height: 1.25; color: var(--ink-3); padding: 9px 0 6px; }
.kpis4 .bigtile.u5-wait .ctx { display: none; }
.kpis4 .bigtile.u5-people b .underchip { font-family: var(--display); font-size: 15px; padding: 6px 14px; vertical-align: middle; }

/* The preview: real chart layouts, faded, with one label across them and no numbers anywhere. */
.u5preview { grid-column: span 12; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; padding-top: 38px; }
.u5preview > .u5label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 14px; border-radius: 999px; padding: 7px 16px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(11, 27, 43, .25); white-space: nowrap; }
.u5preview > .u5label svg { color: var(--ink-2); flex: none; }
.u5preview > .panel { opacity: .5; filter: saturate(.35); pointer-events: none; user-select: none; }
.u5preview .hd .meta, .u5preview .hd .right { display: none; }
.u5preview .dcol span, .u5preview .wkcell b, .u5preview .irow .pct, .u5preview .trow .tv { display: none; }
.u5preview .u5rows { display: grid; gap: 12px; margin-top: 10px; }
.u5preview .u5row { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 12px; align-items: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.u5preview .u5row .tn { display: flex; align-items: center; gap: 8px; }
.u5preview .u5row .tn i { width: 12px; height: 12px; border-radius: 50%; display: block; flex: none; }
.u5preview .u5bar { height: 12px; border-radius: 7px; background: var(--grid); overflow: hidden; }
.u5preview .u5bar i { display: block; height: 100%; border-radius: 7px; }

@media (max-width: 900px) {
  .u5preview { grid-template-columns: 1fr; gap: 14px; padding-top: 64px; }
  .u5preview > .panel { grid-column: 1 / -1; }
  .u5preview > .u5label { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 16px); font-size: 13px; }
  .u5preview .u5row { grid-template-columns: 1fr; gap: 6px; }
}
/* sync-design:under5-preview end */

/* Create a challenge in two steps, every kind (Design, approved Nov 15: design/web/approved/create-a-challenge-nov15).
   600 wide on a laptop; a full-screen sheet with the button pinned on a phone. Values from the board's source (cf.py). */
.cf-scrim { padding: 16px; }
.cf { background: #fff; border-radius: 22px; width: min(600px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(11,27,43,.18); font-family: var(--display); color: var(--ink); }
.cf-dh { display: flex; align-items: center; gap: 10px; padding: 20px 26px 0; }
.cf-xb { width: 34px; height: 34px; border-radius: 50%; background: var(--page); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.cf-dk { font-weight: 800; font-size: 14px; color: var(--ink-2); flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-st { font-weight: 800; font-size: 13px; color: var(--ink-3); flex: none; }
.cf-body { overflow: auto; padding: 0 26px 4px; flex: 1 1 auto; }
.cf h2 { font-weight: 900; font-size: 26px; margin: 14px 0 2px; letter-spacing: -.01em; }
.cf-sub { font-size: 14.5px; font-weight: 700; color: var(--ink-2); line-height: 1.45; margin-bottom: 4px; }
.cf-lab { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin: 18px 0 8px; }
.cf-sec { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin: 16px 0 0; }
.cf-ln { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 7px; line-height: 1.4; }
.cf-ln a, .cf-link, .cf-more { color: var(--green-d); font-weight: 900; text-decoration: none; }
.cf-link, .cf-more, .cf-link2 { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.cf-link { font-size: 13px; }
.cf-more { margin-top: 10px; font-size: 14px; display: block; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--display); font-weight: 800; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.cf-chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.cf-seg { display: flex; background: var(--page); border-radius: 999px; padding: 4px; }
.cf-seg button { flex: 1; border: 0; background: transparent; height: 34px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 13.5px; color: var(--ink-2); cursor: pointer; padding: 0 8px; }
.cf-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(11,27,43,.14); }
.cf input[type=text], .cf input[type=number], .cf input[type=date] { height: 44px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 14px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); width: 100%; background: #fff; }
.cf input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-d); }
.cf input.cf-days, .cf input.cf-miles { width: 120px; }
.cf input.cf-date { width: auto; margin-top: 10px; }
.cf-custom { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.cf-df { display: flex; align-items: center; gap: 12px; margin: 18px 26px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cf-fl { flex: 1; font-weight: 800; font-size: 14px; color: var(--ink-2); text-align: left; }
.cf-go { border-radius: 999px; height: 46px; padding: 0 26px; font-size: 15px; justify-content: center; }
.cf-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); margin-top: 8px; background: #fff; width: 100%; text-align: left; font-family: var(--display); color: var(--ink); cursor: pointer; }
.cf-opt.on { box-shadow: inset 0 0 0 2px var(--green); }
.cf-opt.cf-static { cursor: default; margin-top: 0; }
.cf-oi { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.cf-rt .cf-oi { background: #EAF3FF !important; }
.cf-ot { flex: 1; min-width: 0; }
.cf-ot b { display: block; font-weight: 900; font-size: 15px; }
.cf-ot span { display: block; font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.cf-ot span.meta { font-weight: 800; }
.cf-ck { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C3CFDB; flex: none; display: flex; align-items: center; justify-content: center; }
.cf-ck.on { background: var(--green); box-shadow: none; }
.cf-rd { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C3CFDB; flex: none; display: flex; align-items: center; justify-content: center; }
.cf-rd.on { box-shadow: inset 0 0 0 2px var(--green-d); }
.cf-rd.on i { width: 12px; height: 12px; border-radius: 50%; background: var(--green-d); }
.cf-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cf-fc { position: relative; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px 14px 13px; background: #fff; text-align: left; font-family: var(--display); color: var(--ink); cursor: pointer; }
.cf-fc.on { box-shadow: inset 0 0 0 2px var(--green); background: #F4FCF2; }
.cf-fc b { display: block; font-weight: 900; font-size: 17px; margin-top: 4px; }
.cf-fc > span:not(.cf-fl1):not(.cf-ckf) { display: block; font-weight: 700; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.cf-fl1 { display: flex; align-items: center; gap: 6px; }
.cf-len { font-size: 11.5px; font-weight: 900; color: var(--ink-2); letter-spacing: .02em; }
.cf-sides { display: inline-flex; gap: 3px; margin-left: 2px; }
.cf-sides i { width: 9px; height: 9px; border-radius: 50%; }
.cf-ckf { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.cf-tms { border-radius: 16px; border: 1.5px solid var(--line); overflow: hidden; }
.cf-tm { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); width: 100%; background: #fff; border-left: 0; border-right: 0; border-bottom: 0; font-family: var(--display); color: var(--ink); text-align: left; }
.cf-tm:first-child { border-top: 0; }
.cf-tm i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.cf-tm b { flex: 1; font-weight: 900; font-size: 15px; }
.cf-tm input.cf-tin { flex: 1; height: 34px; }
.cf-rn { color: var(--green-d); font-weight: 900; font-size: 13.5px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--display); }
.cf-rm { color: var(--ink-3); }
.cf-tm.add { cursor: pointer; }
.cf-tm.add span:first-child { flex: 1; color: var(--ink-2); font-weight: 800; font-size: 14px; }
.cf-an { font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.cf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.cf-tabs button { height: 30px; padding: 0 12px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 13px; border: 0; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.cf-tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }
.cf-pre { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-pc { flex: 0 0 168px; border-radius: 16px; padding: 11px 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-top: 5px solid; background: #fff; text-align: left; font-family: var(--display); color: var(--ink); cursor: pointer; }
.cf-pc b { display: block; font-weight: 900; font-size: 14.5px; line-height: 1.2; }
.cf-pc span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
.cf-mk { margin-top: 10px; height: 44px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); font-weight: 900; font-size: 14.5px; width: 100%; background: #fff; color: var(--ink); cursor: pointer; }
.cf-own { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cf-own input { flex: 1 1 240px; }
.cf-own .btn { border-radius: 999px; }
.cf-own .cf-ln { flex-basis: 100%; margin-top: 0; }
.cf-ownroute { margin-top: 4px; }
.cf-stp { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.cf-stp b { font-size: 18px; color: var(--ink); min-width: 14px; text-align: center; }
.cf-sbx { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cf-sbx:disabled { opacity: .4; cursor: default; }
.cf-pfl { font-size: 13px; font-weight: 800; color: var(--ink-2); text-align: center; margin-bottom: 8px; }
@media (max-width: 640px) {
  .cf-scrim { padding: 0; align-items: stretch; }
  .cf { width: 100%; max-height: none; height: 100%; border-radius: 0; box-shadow: none; }
  .cf-dh { padding: 14px 18px 0; }
  .cf-body { padding: 0 18px 8px; }
  .cf-fgrid { grid-template-columns: 1fr; }
  .cf-fc { padding: 10px 12px; }
  .cf-fc b { font-size: 16px; }
  .cf-df { margin: 0; padding: 12px 18px 22px; display: block; background: #fff; }
  .cf-go { width: 100%; }
  .cf-pc { flex: 1 1 140px; }
}

/* The Challenge created banner and the invite card under it (rule 5t, first visit only). */
.cf-ban { display: flex; gap: 14px; align-items: flex-start; background: #E3F8DF; border-radius: 16px; padding: 14px 16px; font-family: var(--display); }
.cf-ban .cb { width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.cf-ban b { font-weight: 900; font-size: 16.5px; display: block; }
.cf-ban span { font-weight: 700; font-size: 13.5px; color: #1E5A12; }
.cf-ib { display: flex; gap: 16px; align-items: center; margin-top: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 14px; flex-wrap: wrap; font-family: var(--display); }
.cf-ib .qr { width: 86px; height: 86px; flex: none; }
.cf-ib .qr canvas, .cf-ib .qr img { width: 86px !important; height: 86px !important; }
.cf-code { font-weight: 900; font-size: 26px; letter-spacing: .18em; }
.cf-lbtn { height: 36px; padding: 0 13px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 900; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.cf-btnrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cf-ib .qr { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.cf h2 + .cf-tabs { margin-top: 14px; }

/* Which app a challenge runs in (Design dbd85fe, Nov 16: design/web/approved/which-app-label-nov16). */
.al-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px 5px 6px; font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 1.2; }
.al-pill b { font-weight: 900; }
.al-ic { display: block; flex: none; object-fit: cover; }
.al-glass { background: rgba(255,255,255,.12); color: #fff; }
.al-light { background: var(--page); color: var(--ink); }
.al-band { background: var(--page); color: var(--ink); border-radius: 10px; padding: 7px 12px 7px 8px; font-size: 11.5px; }
.al-under { margin-top: 10px; }
.al-menu { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.cf .ip-pillrow, .cf .al-steprow { margin: 2px 0 4px; }

/* Invite people (Design f499d69, Nov 16: design/web/approved/invite-people-nov16). The window uses the create flow's .cf shell. */
.ip .cf-sub { margin-bottom: 10px; }
.ip-tabs { margin-top: 12px; }
.ip-seg2 { margin-top: 12px; max-width: 320px; }
.ip-ta { width: 100%; min-height: 104px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px 12px; font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.6; color: var(--ink); resize: vertical; background: #fff; }
.ip-ta:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-d); }
.ip-ta:disabled { background: #F6F9FC; color: var(--ink-3); }
.ip-count { margin-top: 10px; font-family: var(--display); font-weight: 900; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 20px; }
.ip-ok { color: var(--green-d); display: inline-flex; align-items: center; gap: 6px; }
.ip-amber { color: var(--warn); font-weight: 800; }
.ip-muted { color: var(--ink-3); font-weight: 800; }
.banner.ip-warn { display: block; background: var(--warn-bg); color: #6B4200; border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 13.5px; line-height: 1.45; box-shadow: none; }
.banner.ip-warn b { font-weight: 900; }
.ip-see { color: #6B4200; font-weight: 900; text-decoration: underline; }
.ip-ban { margin-top: 14px; }
.ip-created { margin: 4px 0 12px; }
.ip-rows { margin-top: 12px; }
.ip-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 14px; }
.ip-row:first-child { border-top: 0; }
.ip-em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-tag { margin-left: auto; font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 999px; flex: none; }
.ip-t-sent { background: #E3F8DF; color: #1E5A12; }
.ip-t-grey { background: #EAF0F6; color: var(--ink-2); }
.ip-t-amber { background: var(--warn-bg); color: var(--warn); }
.ip-msg { margin-top: 12px; background: #F6F9FC; border-radius: 14px; padding: 14px; font-family: var(--display); font-weight: 600; font-size: 13.5px; line-height: 1.55; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.ip-qrwrap { display: flex; gap: 18px; margin-top: 14px; align-items: flex-start; }
.ip-poster { width: 210px; border-radius: 12px; box-shadow: 0 2px 10px rgba(11,27,43,.18); overflow: hidden; background: #fff; flex: none; font-family: var(--display); }
.ip-ph { background: linear-gradient(180deg,#2A6296,#163C62); color: #fff; padding: 14px 12px; text-align: center; }
.ip-eyebrow { font-size: 9px; font-weight: 900; letter-spacing: .1em; color: #CFE6FA; }
.ip-pn { font-weight: 900; font-size: 17px; margin-top: 4px; line-height: 1.15; }
.ip-pd { font-size: 10.5px; font-weight: 800; color: #CFE6FA; margin-top: 2px; }
.ip-pb { padding: 12px; text-align: center; }
.ip-pb .al-band { margin-bottom: 8px; }
.ip-qr { width: 132px; height: 132px; margin: 4px auto 0; padding: 0; box-shadow: none; background: none; }
.ip-qr canvas, .ip-qr img { width: 132px !important; height: 132px !important; }
.ip-scan { font-size: 10px; font-weight: 800; color: var(--ink-2); margin-top: 6px; }
.ip-or { font-size: 10px; font-weight: 700; color: var(--ink-3); margin-top: 2px; }
.ip-pcode { font-weight: 900; font-size: 16px; letter-spacing: .14em; }
.ip-vol { font-size: 8.5px; font-weight: 700; color: var(--ink-3); margin-top: 6px; line-height: 1.35; }
.ip-side { flex: 1; min-width: 0; }
.ip-h3 { font-weight: 900; font-size: 15px; }
.ip-btns { display: grid; gap: 8px; margin-top: 14px; justify-items: start; }
.ip-codeln { margin-top: 14px; font-weight: 800; font-size: 13px; color: var(--ink-2); font-family: var(--display); }
.ip-codeln b { font-size: 18px; letter-spacing: .14em; color: var(--ink); margin-left: 6px; }
.ip-mail { border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 16px; font-size: 14px; color: #1f2937; }
.ip-mail h3 { margin: 6px 0 8px; font-size: 18px; }
.ip-mail-sub { font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.ip-mail-btn { display: inline-block; padding: 10px 20px; background: var(--green); color: var(--ink); border-radius: 999px; font-weight: 800; }
.ip-mail-small { font-size: 13px; color: #6b7280; }
@media (max-width: 640px) {
  .ip-qrwrap { flex-direction: column; align-items: center; }
  .ip-side { width: 100%; }
}

/* The challenge page before anyone joins (Design f499d69, section 1). */
.btn.go.ip-invite { box-shadow: 0 6px 18px rgba(82,217,60,.35); gap: 6px; }
.ip-prompt { text-align: center; padding: 34px 24px; box-shadow: inset 0 0 0 2px var(--green), 0 18px 30px -26px rgba(15,34,53,.45); }
.ip-prompt .ip-mi { width: 54px; height: 54px; border-radius: 50%; background: #E3F8DF; display: inline-flex; align-items: center; justify-content: center; }
.ip-prompt h2 { font-weight: 900; font-size: 24px; margin: 10px 0 0; }
.ip-prompt p { font-weight: 700; font-size: 14px; color: var(--ink-2); margin: 6px auto 0; line-height: 1.45; max-width: 520px; }
.ip-prompt .ip-pa { margin-top: 16px; }
.ip-prompt .ip-pm { font-weight: 700; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.ip-ghost { opacity: .45; }
.ip-ghost .skel2 { height: 10px; border-radius: 5px; background: #E3E9EF; margin-top: 10px; }
.ip-more { display: none; }
@media (max-width: 640px) {
  .ip-prompt { padding: 22px 16px; }
  .ip-prompt h2 { font-size: 20px; }
  .actions .ip-wide { display: none; }
  .ip-more { display: inline-flex; }
}

.ip-prompt .ip-mi svg { width: 26px; height: 26px; }
.ip-tabs button { white-space: nowrap; }
@media (max-width: 640px) { .ip-tabs button { font-size: 12.5px; padding: 0 4px; } }
