/* LeapWise Team — blue, yellow and white only. Minimal: white page, thin lines, yellow as small accents. */
:root {
  --blue: #1546b8;
  --blue-2: #3d64c7;   /* softer blue for secondary text */
  --blue-3: #8fa6dd;   /* faint blue for hints */
  --line: #cfdaf3;     /* thin blue lines */
  --yellow: #f5c518;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--blue); }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#app { max-width: 1040px; margin: 0 auto; padding: 0 20px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 40px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 12px; }
b { font-weight: 700; }
em { color: var(--blue-3); font-style: normal; }
.muted { color: var(--blue-2); }
.small { font-size: 13px; }
.mt { margin-top: 36px; }
.loading { padding: 80px 0; text-align: center; color: var(--blue-2); }

.demo { margin: 0 -20px; padding: 8px 20px; font-size: 13px; color: var(--blue); border-bottom: 2px solid var(--yellow); text-align: center; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.brand-mark { height: 28px; width: auto; display: block; }
.signin-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.signin-logo img:first-child { height: 52px; width: auto; }
.signin-logo img:last-child { height: 30px; width: auto; }
.brand span { font-weight: 500; color: var(--blue-2); position: relative; }
.brand span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--yellow); }
.right { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.who { font-weight: 600; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 14px 0 12px; font: inherit; font-size: 15px; color: var(--blue-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--blue); font-weight: 700; border-bottom-color: var(--yellow); }

.hello { padding: 32px 0 20px; }
.btn { display: inline-block; background: var(--blue); color: var(--white); border: 1px solid var(--blue); border-radius: 999px; padding: 12px 26px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: #0f3a9e; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost { background: var(--white); color: var(--blue); }
.btn.ghost:hover { border-color: var(--yellow); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }

.signin { padding: 70px 0 40px; max-width: 520px; }
.signin .accent { width: 44px; height: 3px; background: var(--yellow); margin-bottom: 22px; }
.signin h1 { font-size: 34px; margin-bottom: 14px; }
.signin p { color: var(--blue-2); margin-bottom: 24px; }
.people { display: flex; flex-wrap: wrap; gap: 10px; }

/* status chips — no filled boxes; dot + text */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--blue-3); }
.chip.done::before { background: var(--blue); border-color: var(--blue); }
.chip.late::before { background: var(--yellow); border-color: var(--yellow); }
.chip.missing { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chip.missing::before { border-color: var(--yellow); border-width: 2px; }
.chip.due::before { border-color: var(--blue); }

.strip { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.strip > div { display: flex; flex-direction: column; gap: 4px; }
.k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2); font-weight: 600; }
.warn { padding-left: 12px; border-left: 3px solid var(--yellow); font-size: 14px; }

.card { padding: 6px 0 8px; margin: 22px 0; }
.formhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.formhead h2 { margin: 0; }
.statusline { margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.datepick { font-size: 13px; color: var(--blue-2); display: flex; gap: 8px; align-items: center; }
.datepick input { width: auto; padding: 4px 0; }

.field { display: block; margin: 0 0 22px; border: 0; padding: 0; }
.field > span, .field > legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 0; padding: 0; }
.field small { display: block; color: var(--blue-3); font-size: 13px; margin-top: 4px; }
input, textarea, select { width: 100%; font: inherit; color: var(--blue); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0; outline: none; }
input:focus, textarea:focus, select:focus { border-bottom: 2px solid var(--yellow); padding-bottom: 5px; }
input::placeholder, textarea::placeholder { color: var(--blue-3); }
textarea { resize: vertical; min-height: 44px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 22px; }
.yesno { display: flex; gap: 12px; margin-top: 6px; }
.yesno label { cursor: pointer; }
.yesno input { position: absolute; opacity: 0; width: 1px; }
.yesno span { display: inline-block; min-width: 72px; text-align: center; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.yesno input:checked + span { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
.yesno input:focus-visible + span { outline: 2px solid var(--yellow); }

.posts { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.post { display: grid; grid-template-columns: 110px 1fr 90px 24px; gap: 10px; align-items: end; }
.rm { text-decoration: none; font-size: 20px; line-height: 1; color: var(--blue-3); }
.add { margin-top: 10px; font-size: 14px; }

.cycle { font-size: 14px; color: var(--blue-2); margin: 4px 0 18px; }
.metrics { display: flex; flex-direction: column; gap: 20px; }
.mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.mlabel { font-weight: 600; }
.mval { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.mval b { font-size: 17px; }
.of { color: var(--blue-2); font-size: 14px; }
.tgt { width: 92px; text-align: right; font-size: 15px; padding: 2px 0; }
.bar { position: relative; height: 10px; background: #eef2fb; border-radius: 5px; }
.bar.thin { height: 6px; border-radius: 3px; }
.fill { height: 100%; background: var(--blue); border-radius: inherit; transition: width .4s; }
.fill.behind { background: var(--blue-3); }
.pace { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--yellow); border-radius: 2px; }
.msub { font-size: 12px; color: var(--blue-2); margin-top: 6px; }
.legend { font-size: 12px; color: var(--blue-2); margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.pace-key { display: inline-block; width: 2px; height: 12px; background: var(--yellow); }

.chart { margin: 30px 0 10px; }
.clabel { font-weight: 600; margin-bottom: 8px; }
.clabel span { font-weight: 400; color: var(--blue-2); font-size: 13px; }
.chart svg { width: 100%; height: 120px; display: block; }
.chart .b { fill: var(--blue); }
.chart .gap { stroke: var(--yellow); stroke-width: 2; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.cfoot { display: flex; justify-content: space-between; font-size: 12px; color: var(--blue-3); }

.wsum { border-left: 3px solid var(--yellow); padding: 2px 0 2px 14px; margin-bottom: 22px; }
.wsum-title { font-size: 13px; color: var(--blue-2); margin-bottom: 8px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 20px; font-size: 14px; }
.wgrid div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 3px 0; }

.feedback { border-left: 3px solid var(--yellow); padding: 4px 0 4px 14px; margin: 14px 0; }
.feedback p { margin: 4px 0 0; }
.report { border-bottom: 1px solid var(--line); padding: 12px 0; }
.report summary { cursor: pointer; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 600; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary::before { content: "+"; width: 14px; color: var(--blue-2); }
.report[open] summary::before { content: "–"; }
.rv { margin: 14px 0 0 26px; }
.rv p { margin: 2px 0 0; white-space: pre-wrap; }
.fbform { margin: 18px 0 6px 26px; }

.hist { border-top: 1px solid var(--line); }
.hrow { display: grid; grid-template-columns: 110px 120px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 14px; }
.hd { font-weight: 600; }

.mcards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mcard { all: unset; display: block; cursor: pointer; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mcard:hover .mname, .mcard:focus-visible .mname { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mcard:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.mtop { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.mname { font-size: 20px; font-weight: 700; }
.arrow { font-size: 20px; color: var(--blue-2); }
.mstats { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.mstats > div { display: flex; flex-direction: column; gap: 4px; }
.flag, .todo, .okline { margin-top: 14px; font-size: 14px; padding-left: 12px; border-left: 3px solid var(--yellow); }
.okline { border-left-color: var(--blue); }
.back { margin-top: 22px; font-size: 14px; }

.teamlist { border-top: 1px solid var(--line); margin-bottom: 20px; }
.trow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tact { display: flex; gap: 16px; font-size: 14px; }

footer { padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.logo span { border-bottom: 2px solid var(--yellow); }
.tag { font-size: 12px; color: var(--blue-3); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--white); color: var(--blue); border: 1px solid var(--blue); border-bottom: 3px solid var(--yellow); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; z-index: 10; box-shadow: 0 6px 24px rgba(21, 70, 184, .12); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- forms keep a comfortable width on wide screens ---------- */
form[data-form="daily"], form[data-form="weekly"], form[data-form="member"], .teamlist, .hist, .report { max-width: 760px; }
form[data-form="targets"] .metrics { max-width: 760px; }
.tgtl { font-size: 12px; color: var(--blue-2); display: inline-flex; align-items: baseline; gap: 6px; }
.pctl { font-size: 13px; font-weight: 700; min-width: 42px; text-align: right; }
.pctl.behind { color: var(--blue-2); }

/* ---------- section headings ---------- */
.sechead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.sechead.first { margin-top: 8px; }
.sechead h2 { margin: 0; position: relative; }
.sechead h2::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 26px; height: 2px; background: var(--yellow); }

/* ---------- chart grid ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 40px; }
.cbox { margin: 0; min-width: 0; }
.cbox figcaption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-bottom: 6px; }
.ctitle { font-weight: 700; font-size: 15px; }
.cbig { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.csub { grid-column: 1 / -1; font-size: 12px; color: var(--blue-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.csub b.up, .tchg b.up { color: var(--blue); }
.csub b.down, .tchg b.down { color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.refkey { display: inline-block; width: 14px; border-top: 2px dashed var(--yellow); }
.cbox svg { width: 100%; height: auto; display: block; overflow: visible; }
.cbox .gl { stroke: var(--line); stroke-width: 1; }
.cbox .axl { stroke: var(--blue-3); stroke-width: 1; }
.cbox .ax { fill: var(--blue-3); font-size: 10px; font-family: inherit; }
.cbox .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cbox .pt { fill: var(--white); stroke: var(--blue); stroke-width: 1.6; }
.cbox .pt.last { fill: var(--blue); }
.cbox .pt:hover { fill: var(--yellow); }
.cbox .ref { stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 5 4; }
.cbox .tl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.cbox .miss { stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; }
.cbox .wb { fill: var(--blue); }
.cbox .wb.cur { fill: var(--blue-3); }
.cbox .wb:hover { fill: #0f3a9e; }
.cbox .vl { fill: var(--blue); font-size: 10.5px; font-weight: 700; font-family: inherit; }
.cbox .empty { fill: var(--blue-3); font-size: 12px; font-family: inherit; }

/* ---------- logging calendar ---------- */
.cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.cal { border-collapse: collapse; font-size: 12px; }
.cal thead th { font-weight: 600; color: var(--blue-2); padding: 0 1px 6px; text-align: center; min-width: 22px; line-height: 1.2; }
.cal thead th span { display: block; font-size: 9px; color: var(--blue-3); font-weight: 500; }
.cal thead th.fri { box-shadow: inset 0 -2px 0 var(--yellow); }
.cal thead th.today { color: var(--blue); }
.cal th.who { text-align: left; font-weight: 700; padding-right: 14px; white-space: nowrap; position: sticky; left: 0; background: var(--white); font-size: 14px; }
.cal td { text-align: center; padding: 5px 1px; border-top: 1px solid var(--line); }
.cal td.sum { text-align: left; padding-left: 14px; white-space: nowrap; color: var(--blue-2); font-size: 12px; }
.cal td.sum u { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); vertical-align: middle; }
.dot.done { background: var(--blue); border-color: var(--blue); }
.dot.late { background: var(--yellow); border-color: var(--yellow); }
.dot.missing { border: 2.5px solid var(--yellow); }
.dot.due { border: 2px solid var(--blue); }
.dot.future { border-style: dashed; }
.dot.none { border-color: transparent; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--blue-2); margin-top: 10px; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key .dot { width: 11px; height: 11px; }

/* ---------- overview tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; }
.tile { all: unset; align-self: start; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.tile:hover .tval, .tile:focus-visible .tval { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tile:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.tlabel { font-size: 13px; font-weight: 600; }
.tlabel span { font-weight: 400; color: var(--blue-2); }
.tval { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.spark { width: 100%; height: 36px; display: block; margin: 4px 0; }
.spark path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.tchg { font-size: 12px; color: var(--blue-2); }

/* ---------- person cards on overview ---------- */
.mcards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 40px; border-top: 0; }
.mcard { border-top: 1px solid var(--line); border-bottom: 0; align-self: start; }
.arrow { font-size: 13px; color: var(--blue-2); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.cbars { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cbar { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 13px; }
.cbar .bar { grid-column: 1 / -1; }
.cbl { color: var(--blue); }
.cbv { font-weight: 700; }
.cbv em { font-weight: 400; color: var(--blue-2); }

/* ---------- students ---------- */
.connect { max-width: 620px; }
.connect p { margin-bottom: 14px; }
.sstats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 36px; margin: 6px 0 22px; }
.sstats > div:not(.subjcounts) { display: flex; flex-direction: column; }
.subjcounts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; }
.subj { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 0 4px 4px 0; background: var(--white); font-family: inherit; white-space: nowrap; }
button.subj { cursor: pointer; }
button.subj b { color: var(--blue-2); margin-left: 2px; }
button.subj:hover, button.subj.on { border-color: var(--blue); box-shadow: inset 0 -2px 0 var(--yellow); }
.sfilters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px 22px; margin-bottom: 10px; }
.stable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.stable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.stable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-2); font-weight: 600; padding: 12px 12px 8px 0; border-bottom: 1px solid var(--line); }
.stable td { vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.stable tbody tr:hover td { box-shadow: inset 0 -2px 0 var(--yellow); }
.stable a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.stable a:hover { text-decoration-color: var(--yellow); }
.faint { color: var(--blue-3); }
.sechead .link.small { margin-left: auto; font-size: 13px; }

/* ---------- finance ---------- */
.fintiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 32px; margin-bottom: 8px; }
.fintile { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.fintile.total .tval { box-shadow: inset 0 -3px 0 var(--yellow); align-self: flex-start; }
.tval.neg { color: var(--blue-2); text-decoration: underline; text-decoration-color: var(--yellow); }
.finform { max-width: 760px; }
.fintype { margin: 0 0 18px; flex-wrap: wrap; }
.fingrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.fingrid .wide { grid-column: 1 / -1; }
.hide { display: none !important; }
select.inline { width: auto; font-size: 14px; padding: 2px 22px 2px 0; }
.fintable .num { text-align: right; white-space: nowrap; }
.fintable td.num b { font-weight: 700; }

@media (max-width: 560px) {
  .fingrid { grid-template-columns: 1fr; }
  .sfilters { grid-template-columns: 1fr 1fr; }
  .sfilters input { grid-column: 1 / -1; }
  #app { padding: 0 16px; }
  .demo { margin: 0 -16px; }
  h1 { font-size: 24px; }
  .signin h1 { font-size: 28px; }
  .post { grid-template-columns: 1fr 80px 24px; }
  .post select { grid-column: 1 / -1; }
  .hrow { grid-template-columns: 1fr auto; }
  .hrow .hx { grid-column: 1 / -1; }
  .hrow .hs { justify-self: end; }
  .hrow > .link { grid-column: 1 / -1; justify-self: start; }
  .mrow { flex-direction: column; gap: 2px; }
  .tgt { text-align: left; }
}
