:root {
  --navy: #0A3D6E; --deep: #00437A; --blue: #00ACEE; --orange: #E98923; --green: #3BB273; --red: #D64545; --purple: #7B5EA7;
  --bg: #F4F8FB; --card: #FFFFFF; --light: #EAF6FD; --lighto: #FDF0E2; --text: #1F2933; --muted: #5A6470; --line: #D8E2EC;
  --radius: 16px; --shadow: 0 6px 24px rgba(10, 61, 110, .08);
  --font: Calibri, 'Tajawal', 'Segoe UI', Tahoma, sans-serif; --head: 'Tajawal', Calibri, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.3; margin: 0; color: var(--navy); }
a { color: var(--deep); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 12px; padding: .7rem 1.2rem;
  font: 700 1rem var(--head); cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(10, 61, 110, .25); }
.btn-primary:hover { background: var(--deep); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(233, 137, 35, .3); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid #F2C4C4; }
.btn-disabled { background: #E7ECF1; color: #8A97A5; cursor: not-allowed; }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- brand bar ---------- */
.brand-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand-logos { height: 50px; width: auto; }
.brand-title { display: flex; flex-direction: column; line-height: 1.15; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.brand-title strong { font-family: var(--head); color: var(--navy); font-size: 1.05rem; }
.brand-title small { color: var(--blue); font-weight: 700; font-size: .75rem; }
.brand-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; padding: .35rem .8rem; border-radius: 999px; background: var(--light); font-weight: 700; color: var(--navy); }
.team-chip i, .team-opt i, .peer-name i { width: 12px; height: 12px; border-radius: 50%; background: var(--team); display: inline-block; flex: none; }

/* ---------- landing ---------- */
.hero { margin: 22px 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0B4F8F 55%, #0A86C8 100%); color: #fff; border-radius: 26px; padding: 34px; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(233, 137, 35, .55); }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
.hero-en { color: #9EDCF7; font-weight: 700; margin: .3rem 0 1rem; font-size: 1.02rem; direction: ltr; text-align: right; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; color: #FFD3A1; background: rgba(255, 255, 255, .08); padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 1rem 0 1.4rem; }
.meta-item { display: flex; gap: 10px; align-items: center; }
.meta-item svg { width: 36px; height: 36px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; flex: none; }
.meta-item b { display: block; font-family: var(--head); }
.meta-item span { color: #D6EEFA; font-size: .88rem; direction: ltr; display: block; text-align: right; }
.hero-art img { width: 100%; max-height: 330px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.hero .btn-primary { background: var(--orange); box-shadow: 0 6px 18px rgba(233, 137, 35, .4); }
.welcome { background: rgba(255, 255, 255, .1); padding: .6rem 1rem; border-radius: 12px; display: inline-block; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.section-head h2 { font-size: 1.5rem; }
.section-head span { color: var(--blue); font-weight: 700; font-size: .9rem; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.day-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.day-card.is-open { border-color: rgba(0, 172, 238, .5); }
.day-img { background: linear-gradient(180deg, #EAF6FD, #fff); padding: 14px; height: 150px; display: grid; place-items: center; }
.day-img img { max-height: 125px; object-fit: contain; }
.day-card.is-locked .day-img img { filter: grayscale(.6) opacity(.75); }
.day-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.day-top { display: flex; gap: 10px; align-items: center; }
.day-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 1.15rem var(--head); }
.is-open .day-num { background: var(--orange); }
.day-top small { display: block; color: var(--blue); font-weight: 700; font-size: .75rem; direction: ltr; text-align: right; }
.day-card h3 { font-size: 1.12rem; margin: 10px 0 4px; }
.day-card p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.day-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status { font-size: .8rem; font-weight: 700; color: var(--muted); }
.is-open .status { color: var(--green); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.how-step { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; border: 1px dashed var(--line); }
.how-step span { width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--navy); display: grid; place-items: center; font: 800 1.1rem var(--head); flex: none; }
.how-step b { display: block; font-family: var(--head); color: var(--navy); }
.how-step small { color: var(--muted); }
.admin-link { text-align: center; margin-top: 26px; font-size: .85rem; }
.admin-link a { color: var(--muted); }
.site-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px; border-top: 1px solid var(--line); background: #fff; }
.site-foot .dot { margin: 0 8px; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 140px); padding-top: 20px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.auth-art { width: 170px; margin: -6px auto 6px; }
.auth-card h1 { text-align: center; font-size: 1.6rem; }
.auth-card > .muted { text-align: center; margin: 0 0 16px; font-weight: 700; color: var(--blue); }
.lbl { display: block; font-weight: 700; color: var(--navy); margin: 14px 0 8px; font-family: var(--head); }
.lbl small { color: var(--blue); font-family: var(--font); }
.team-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.team-opt input { position: absolute; opacity: 0; pointer-events: none; }
.team-opt span { display: flex; align-items: center; gap: 8px; padding: .7rem .8rem; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-weight: 700; color: var(--navy); background: #fff; }
.team-opt input:checked + span { border-color: var(--team); background: color-mix(in srgb, var(--team) 12%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--team) 20%, transparent); }
.team-opt input:focus-visible + span { outline: 3px solid var(--blue); }
.pin-input, input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
.pin-input { text-align: center; font-size: 1.6rem; letter-spacing: .5rem; direction: ltr; margin-bottom: 16px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 172, 238, .18); }
.alert { background: #FDECEC; color: #9B2C2C; border-radius: 12px; padding: .7rem 1rem; margin: 10px 0; font-weight: 700; }
.alert-info { background: var(--light); color: var(--navy); }
.alert.big { margin: 14px 0; padding: 1rem 1.2rem; }
.back { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* ---------- workshop ---------- */
.ws-hero { margin: 18px 0 14px; display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: center; background: #fff; border-radius: 22px; padding: 22px 24px;
  box-shadow: var(--shadow); border-top: 6px solid var(--team, var(--blue)); }
.ws-hero .eyebrow { color: var(--orange); background: var(--lighto); }
.ws-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.ws-hero .hero-en { color: var(--blue); margin: .2rem 0 .6rem; }
.ws-intro { margin: 0; color: var(--muted); }
.ws-hero img { max-height: 150px; object-fit: contain; justify-self: center; }
.stepper { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; position: sticky; top: 63px; z-index: 10; background: var(--bg); }
.stepper button { flex: none; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .5rem .8rem; cursor: pointer; font: 700 .88rem var(--head); color: var(--navy); }
.stepper .n { width: 24px; height: 24px; border-radius: 50%; background: var(--light); display: grid; place-items: center; font-size: .8rem; }
.stepper small { color: var(--muted); font-family: var(--font); font-weight: 400; }
.stepper .done .n { background: var(--green); color: #fff; }
.stepper .done .n::after { content: '✓'; }
.stepper .done .n { font-size: 0; }
.stepper .done .n::after { font-size: .8rem; }
.stepper .active { border-color: var(--navy); background: var(--navy); color: #fff; }
.stepper .active small { color: #9EDCF7; }
.ws-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 10px; }
.sync { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.sync i { width: 9px; height: 9px; border-radius: 50%; background: #B8C4CF; }
.sync.ok i { background: var(--green); } .sync.busy i { background: var(--orange); } .sync.bad i { background: var(--red); }
.timer { display: flex; align-items: center; gap: 10px; }
.timer b { font: 800 1.35rem var(--head); color: var(--navy); direction: ltr; min-width: 70px; text-align: center; }
.timer.late b { color: var(--red); }
.step { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.step-n { width: 44px; height: 44px; border-radius: 14px; background: var(--orange); color: #fff; display: grid; place-items: center; font: 800 1.3rem var(--head); flex: none; }
.step-head h2 { font-size: 1.35rem; }
.step-head small { color: var(--blue); font-weight: 700; }
.hint { background: var(--lighto); border-radius: 14px; padding: .8rem 1rem; margin-bottom: 16px; color: #6B4A1E; }
.ws-nav { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; }

.brief-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.brief-card { border-radius: 16px; padding: 16px; background: var(--light); border-inline-start: 0; }
.brief-card b { display: block; font: 800 1.15rem var(--head); color: var(--navy); }
.brief-card span { color: var(--muted); }
.brief-card.c1 { background: var(--lighto); } .brief-card.c2 { background: #EEF0FA; } .brief-card.c3 { background: #E9F7EF; }

.fields { display: grid; gap: 14px; }
.field span { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: var(--head); }
.field small { color: var(--blue); font-family: var(--font); margin-inline-start: 8px; font-size: .8rem; }
textarea { resize: vertical; min-height: 48px; }

.board { display: grid; gap: 12px; }
.board.cols-1 { grid-template-columns: 1fr; } .board.cols-2 { grid-template-columns: repeat(2, 1fr); }
.board.cols-3 { grid-template-columns: repeat(3, 1fr); } .board.cols-4 { grid-template-columns: repeat(4, 1fr); }
.col { background: color-mix(in srgb, var(--c) 7%, #fff); border-radius: 18px; padding: 12px; border-top: 5px solid var(--c); display: flex; flex-direction: column; min-height: 220px; }
.col-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.col-head b { font-family: var(--head); color: var(--navy); font-size: 1.05rem; }
.col-head small { color: var(--muted); font-size: .78rem; }
.count { margin-inline-start: auto; background: #fff; border-radius: 999px; padding: .1rem .6rem; font-weight: 800; color: var(--muted); font-size: .85rem; border: 1px solid var(--line); }
.count.met { background: var(--green); color: #fff; border-color: var(--green); }
.notes { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.note { position: relative; background: #fff; border-radius: 12px; padding: .6rem .8rem; padding-inline-end: 3.6rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  border-inline-start: 5px solid var(--c); animation: pop .25s ease; word-break: break-word; }
.note p { margin: 0; }
.note.starred { background: #FFF8E6; box-shadow: 0 0 0 2px #F2B233 inset, 0 2px 8px rgba(0, 0, 0, .06); }
.note .del, .note .star { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 1.15rem; color: var(--muted); padding: 4px; }
.note .del { inset-inline-end: 6px; } .note .star { inset-inline-end: 30px; color: #E0A21B; font-size: 1.3rem; }
.note:not(:has(.del)) { padding-inline-end: 2.4rem; }
.note:not(:has(.del)) .star { inset-inline-end: 8px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.add { display: flex; gap: 6px; margin-top: 10px; }
.add input { flex: 1; min-width: 0; }
.star-hint { font-weight: 800; color: #B7791F; margin: 0 0 10px; }
.prio { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.prio .note { cursor: default; }

.choices { display: grid; gap: 12px; }
.choice-row { background: var(--light); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.choice-title { font-family: var(--head); color: var(--navy); font-size: 1.05rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font: 700 .95rem var(--head); color: var(--navy); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.pill small { font: 600 .7rem var(--font); color: var(--blue); }
.pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill.on small { color: #9EDCF7; }

.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th { background: var(--navy); color: #fff; font: 700 .92rem var(--head); padding: .6rem; text-align: center; }
.tbl td { padding: 6px; border-top: 1px solid var(--line); }
.tbl tr:nth-child(even) td { background: #FAFCFE; }
.tbl td input, .tbl td select { padding: .5rem .6rem; border-radius: 9px; }
.tbl td.fixed { font-weight: 800; color: var(--navy); background: var(--light) !important; text-align: center; }
.matrix th.rowh { background: var(--light); color: var(--navy); text-align: start; white-space: nowrap; }
.matrix th.corner { background: var(--deep); font-size: .8rem; }
.matrix td { text-align: center; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.m { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; padding: .3rem .7rem; background: #EEF2F6; color: #9AA6B2; }
.m.ok { background: #E3F5EA; color: #23824A; } .m.no { background: #FBE5E5; color: #B03030; } .m.cond { background: #FFF2D9; color: #A86A08; }
.mcell { width: 100%; min-width: 64px; height: 46px; border: 0; cursor: pointer; font-size: 1.3rem; }

.rank { display: grid; gap: 10px; }
.rank-row { display: flex; align-items: center; gap: 14px; background: var(--light); padding: 12px 14px; border-radius: 14px; flex-wrap: wrap; }
.rank-row.dup { background: #FDECEC; }
.rank-row b { font-family: var(--head); color: var(--navy); }
.rank-nums { display: flex; gap: 6px; }
.rn { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 800 1.1rem var(--head); color: var(--navy); cursor: pointer; }
.rn.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.warn { color: var(--red); font-weight: 800; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.check-group { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; }
.check-group.met { border-color: rgba(59, 178, 115, .6); }
.cg-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.cg-head b { font-family: var(--head); color: var(--navy); }
.cg-head small { color: var(--blue); font-weight: 700; font-size: .78rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: .45rem .85rem; cursor: pointer; font: 700 .9rem var(--font); color: var(--navy); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.on::before { content: '✓ '; }

.peer { display: grid; gap: 10px; }
.peer-row { display: grid; grid-template-columns: 170px auto 1fr; gap: 12px; align-items: center; background: var(--light); border-radius: 14px; padding: 12px 14px; border-inline-start: 6px solid var(--team); }
.peer-name { display: flex; align-items: center; gap: 8px; font-family: var(--head); color: var(--navy); }
.stars { display: flex; gap: 2px; direction: ltr; }
.st { border: 0; background: transparent; font-size: 1.8rem; color: #CBD5DF; cursor: pointer; padding: 0 2px; line-height: 1; }
.st.on { color: #F2B233; }

.submit-box { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: var(--lighto); border: 2px dashed var(--orange); }
.submit-box.sent { background: #E9F7EF; border-color: var(--green); }
.submit-box.sent .btn-accent { background: var(--green); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: .7rem 1.2rem; border-radius: 12px; font-weight: 700; opacity: 0; transition: .25s; z-index: 99; box-shadow: var(--shadow); max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.readonly .pill, body.readonly .chip, body.readonly .mcell, body.readonly .rn, body.readonly .st { pointer-events: none; }

/* ---------- admin ---------- */
.admin main { max-width: 1280px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tabs a { padding: .55rem 1rem; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font: 700 .95rem var(--head); color: var(--navy); }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 18px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 12px; }
.panel h2 small { color: var(--blue); font-family: var(--font); font-size: .8rem; margin-inline-start: 8px; }
.grid-form { display: grid; grid-template-columns: 2fr 1fr 110px 3fr auto; gap: 8px; align-items: end; }
.grid-form label { font-weight: 700; font-size: .85rem; color: var(--navy); display: grid; gap: 4px; }
input[type=color] { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; background: #fff; }
.atbl { width: 100%; border-collapse: collapse; }
.atbl th { text-align: start; background: var(--light); color: var(--navy); padding: .6rem; font-family: var(--head); font-size: .9rem; }
.atbl td { padding: .55rem .6rem; border-top: 1px solid var(--line); vertical-align: middle; }
.atbl input, .atbl select { padding: .45rem .6rem; }
.swatch { width: 18px; height: 18px; border-radius: 6px; display: inline-block; vertical-align: middle; }
.day-toggles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.toggle-card { border: 2px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.toggle-card.open { border-color: var(--green); background: #F2FBF5; }
.toggle-card b { font-family: var(--head); color: var(--navy); }
.pbar { height: 10px; background: #EEF2F6; border-radius: 999px; overflow: hidden; min-width: 90px; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 999px; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge.ok { background: #E3F5EA; color: #23824A; } .badge.wait { background: #EEF2F6; color: var(--muted); }
.qr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.qr-card { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.qr-card img { width: 100%; max-width: 180px; margin: 0 auto 8px; }
.qr-card b { display: block; font-family: var(--head); color: var(--navy); }
.qr-card code { font-size: .72rem; color: var(--muted); direction: ltr; display: block; word-break: break-all; }
.leader { display: grid; gap: 10px; }
.leader-row { display: grid; grid-template-columns: 46px 1fr 90px 90px 90px; gap: 10px; align-items: center; background: var(--light); padding: 10px 14px; border-radius: 14px; }
.leader-row .rank-pos { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 1.1rem var(--head); }
.leader-row:first-child .rank-pos { background: #E9A23B; }
.leader-row b { font-family: var(--head); color: var(--navy); }
.leader-row .num { text-align: center; font-weight: 800; color: var(--navy); }
.leader-row .num small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.inline { display: inline; }
.flash { background: #E3F5EA; color: #23824A; padding: .7rem 1rem; border-radius: 12px; font-weight: 700; margin: 12px 0; }

/* ---------- board (projector) ---------- */
.boardpage { background: #EEF3F8; }
.boardpage main { max-width: none; padding: 0 24px 30px; }
.bp-head { display: flex; align-items: center; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.bp-head h1 { font-size: 1.8rem; }
.bp-head .daysw { display: flex; gap: 6px; margin-inline-start: auto; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.bp-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); border-top: 8px solid var(--team); }
.bp-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.bp-card h2 .badge { margin-inline-start: auto; }
.bp-sec { margin-top: 12px; }
.bp-sec h3 { font-size: .95rem; color: var(--blue); margin-bottom: 6px; }
.bp-sec ul { margin: 0; padding-inline-start: 18px; }
.bp-sec li { margin: 2px 0; }
.bp-sec .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.bp-sec .kv b { color: var(--navy); }
.bp-sec table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bp-sec td, .bp-sec th { border: 1px solid var(--line); padding: 3px 6px; text-align: center; }
.bp-sec th { background: var(--light); color: var(--navy); }
.focus-mode .bp-card { font-size: 1.15rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .board.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .board.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .day-toggles, .qr-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .hero { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 20px; }
  .hero-art { order: -1; } .hero-art img { max-height: 170px; }
  .day-grid, .how, .board.cols-2, .board.cols-3, .board.cols-4 { grid-template-columns: 1fr; }
  .ws-hero { grid-template-columns: 1fr; } .ws-hero img { display: none; }
  .brand-logos { height: 42px; } .brand-title { display: none; }
  .step { padding: 16px; border-radius: 18px; }
  .peer-row { grid-template-columns: 1fr; }
  .stepper { top: 55px; }
  .stepper .t { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .leader-row { grid-template-columns: 40px 1fr 70px; }
  .leader-row .hide-sm { display: none; }
  .day-toggles, .qr-grid { grid-template-columns: 1fr; }
}
