/* Fawatim PD Studio v2 - Google-inspired styles */
:root {
  --blue: #4285F4; --red: #EA4335; --yellow: #FBBC05; --green: #34A853; --blue-d: #1A73E8; --red-d: #C5221F; --yellow-d: #F29900; --green-d: #188038;
  --tb: #E8F0FE; --tr: #FCE8E6; --ty: #FEF7E0; --tg: #E6F4EA;
  --bg: #F4F6FA; --card: #FFFFFF; --card2: #F7F9FC; --ink: #1B2A4A; --ink2: #3C4E72; --muted: #5F6C83; --line: #E2E7EF;
  --primary: #1A73E8; --on-primary: #FFFFFF; --ok: #34A853; --bad: #EA4335;
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27,42,74,.06), 0 6px 18px rgba(27,42,74,.06);
  --font: "Google Sans", "Google Sans Text", "Product Sans", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
}
[data-theme="night"] { --bg: #0B1222; --card: #141E33; --card2: #1B2741; --ink: #EEF3FB; --ink2: #C6D2E6; --muted: #93A3BF; --line: #263452; --tb: #18294A; --tr: #3A1E22; --ty: #3A3218; --tg: #173322; --shadow: 0 6px 24px rgba(0,0,0,.35); }
[data-theme="whiteboard"] { --bg: #F1F1EC; --font: "Patrick Hand", "Google Sans", cursive; }
[data-theme="whiteboard"] body { font-size: 18px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); } h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); } h3 { font-size: 1.12rem; }
p { margin: 0 0 .8em; } a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .hidden { display: none !important; }
.hl-b { color: var(--blue); } .hl-r { color: var(--red); } .hl-y { color: var(--yellow-d); } .hl-g { color: var(--green); }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; }
main.narrow { max-width: 560px; } main.wide { max-width: 1520px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar .inner { max-width: 1520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; }
.gbar { display: flex; height: 4px; } .gbar i { flex: 1; } .gbar i:nth-child(1) { background: var(--blue); } .gbar i:nth-child(2) { background: var(--red); } .gbar i:nth-child(3) { background: var(--yellow); } .gbar i:nth-child(4) { background: var(--green); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .logo { height: 24px; width: auto; flex: none; }
[data-theme="night"] .brand .logo { filter: brightness(0) invert(1); }
.brand .bdiv { width: 1px; height: 22px; background: var(--line); flex: none; }
.brand .bt { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .sub { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--muted); min-height: 30px; }
.seg button.on { background: var(--primary); color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; min-height: 44px; text-decoration: none; transition: transform .08s ease, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(26,115,232,.15); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.red { background: var(--red); color: #fff; border-color: var(--red); } .btn.green { background: var(--green); color: #fff; border-color: var(--green); } .btn.yellow { background: var(--yellow); color: #1B2A4A; border-color: var(--yellow); }
.btn.tint { background: var(--tb); color: var(--blue-d); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 12px; min-height: 36px; font-size: .85rem; }
.btn.icon { padding: 0; width: 44px; } .btn.sm.icon { width: 36px; }
.btn.block { width: 100%; } .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.pad-lg { padding: 28px; }
.card.tb { background: var(--tb); border-color: transparent; } .card.tr { background: var(--tr); border-color: transparent; } .card.ty { background: var(--ty); border-color: transparent; } .card.tg { background: var(--tg); border-color: transparent; }
.grid { display: grid; gap: 16px; } .grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tbadge { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.tbadge svg { width: 20px; height: 20px; }
.tbadge.c0 { background: var(--blue); } .tbadge.c1 { background: var(--red); } .tbadge.c2 { background: var(--yellow); } .tbadge.c3 { background: var(--green); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.badge.blue { background: var(--tb); color: var(--blue-d); border-color: transparent; } .badge.green { background: var(--tg); color: var(--green-d); border-color: transparent; } .badge.red { background: var(--tr); color: var(--red-d); border-color: transparent; } .badge.yellow { background: var(--ty); color: #B06000; border-color: transparent; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; flex: none; }

/* forms */
label.f { display: block; font-size: .85rem; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.field { position: relative; }
.field + .field, .field + .row, .row + .field, .grid + .field, .field + .grid { margin-top: 14px; }
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=url], input[type=time], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 1rem; min-height: 46px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66,133,244,.18); }
input[type=range] { width: 100%; accent-color: var(--blue); height: 32px; }
.field.has-mic input, .field.has-mic textarea { padding-right: 52px; }
.mic { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--tb); display: grid; place-items: center; cursor: pointer; color: var(--blue-d); }
.mic.rec { background: var(--red); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.code-input { font-size: 2.2rem !important; text-align: center; letter-spacing: .3em; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .88rem; cursor: pointer; min-height: 38px; }
.chip.on { background: var(--tb); border-color: var(--blue); color: var(--blue-d); }

/* answer options (phone) */
.opts { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; min-height: 66px; border-radius: 18px; border: 0; background: var(--c, var(--blue)); color: #fff; cursor: pointer; font-weight: 700; font-size: 1.05rem; box-shadow: 0 4px 0 rgba(0,0,0,.14); transition: transform .08s; }
.opt:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.14); }
.opt .k { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; background: rgba(255,255,255,.25); font-size: 1.1rem; }
.opt:nth-child(4n+1) { --c: #4285F4; } .opt:nth-child(4n+2) { --c: #EA4335; } .opt:nth-child(4n+3) { --c: #F29900; } .opt:nth-child(4n+4) { --c: #34A853; }
.opt.sel { outline: 4px solid var(--ink); outline-offset: 2px; }
.opt.dim { opacity: .35; }
.opt.right { outline: 4px solid var(--green); outline-offset: 2px; }
.opt.wrong { opacity: .45; }
.opt[disabled] { cursor: default; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.scale button { min-width: 52px; height: 56px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-size: 1.15rem; cursor: pointer; padding: 0 10px; }
.scale button.sel { background: var(--blue); color: #fff; border-color: var(--blue); }
.scale.big { gap: 4px; flex-wrap: nowrap; }
.scale.big button { font-size: 2rem; min-width: 52px; height: 64px; padding: 0 4px; border: 0; background: transparent; filter: grayscale(1); opacity: .55; }
.scale.big button.sel, .scale.big button.lit { filter: none; opacity: 1; transform: scale(1.12); }
.scale.stars button { color: #C9D1DC; } .scale.stars button.lit { color: var(--yellow); filter: none; }
.scale.hearts button { color: #C9D1DC; } .scale.hearts button.lit { color: var(--red); filter: none; }
.scale-labels { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: 8px; gap: 10px; }
.slider-val { text-align: center; font-size: 3rem; font-weight: 800; color: var(--blue); }

/* charts */
.res { position: relative; }
.ch-bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.bar .lbl { font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.bar .val { color: var(--muted); font-weight: 700; }
.bar .track { grid-column: 1 / -1; height: 18px; background: var(--card2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.9,.3,1.2); }
.oe { font-size: 1.2em; }
.tick { color: var(--green); display: inline-flex; } .tick svg { width: 1em; height: 1em; stroke-width: 3; }
.ch-cols { display: flex; gap: 14px; align-items: flex-end; min-height: 240px; padding-top: 10px; }
.ch-cols .cc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ch-cols .cbar { width: 100%; max-width: 110px; height: 200px; display: flex; align-items: flex-end; background: var(--card2); border-radius: 14px; overflow: hidden; }
.ch-cols .cbar div { width: 100%; border-radius: 14px 14px 0 0; transition: height .6s cubic-bezier(.2,.9,.3,1.2); }
.ch-cols .cv { font-weight: 800; font-size: 1.2rem; } .ch-cols .cl { font-size: .85rem; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.ch-pie { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ch-pie svg { width: min(260px, 70vw); height: auto; flex: none; }
.ch-pie .dn { font-size: 34px; font-weight: 800; fill: var(--ink); } .ch-pie .dl { font-size: 12px; fill: var(--muted); }
.ch-pie .legend { display: grid; gap: 10px; min-width: 200px; flex: 1; }
.ch-pie .lg { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-weight: 600; }
.ch-pie .lg i { width: 14px; height: 14px; border-radius: 4px; }
.ch-emoji { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.ch-emoji .ce { background: var(--card2); border-radius: 20px; padding: 16px 10px; text-align: center; border-bottom: 6px solid var(--c); }
.ch-emoji .big { font-size: 3rem; line-height: 1.1; } .ch-emoji .nm { font-weight: 600; margin: 6px 0; overflow-wrap: anywhere; } .ch-emoji .pc { font-size: 2rem; font-weight: 800; color: var(--c); } .ch-emoji .ct { color: var(--muted); font-size: .8rem; }
.ch-big .lead { background: var(--c); color: #fff; border-radius: 24px; padding: 22px 26px; margin-bottom: 14px; }
.ch-big .lead .pc { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: 1; } .ch-big .lead .nm { font-size: 1.3rem; font-weight: 700; }
.ch-big .rest { display: grid; gap: 8px; } .ch-big .r { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--card2); border-radius: 12px; font-weight: 600; }
.bigstat { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--blue); } .bigstat.sm { font-size: 1.6rem; } .bigstat small { font-size: .4em; color: var(--muted); }
.waitcount { text-align: center; padding: 20px 0; }
.rating-res .hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.stars span { font-size: 2.6rem; color: #D5DBE4; } .stars span.on { color: var(--yellow); } .stars.hearts span.on { color: var(--red); }
.face { font-size: 4rem; line-height: 1; }
.gauge { flex: 1; min-width: 200px; height: 22px; background: var(--card2); border-radius: 999px; overflow: hidden; } .gauge div { height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); border-radius: 999px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .thumbs > div { border-radius: 20px; padding: 18px; text-align: center; display: grid; gap: 4px; } .thumbs span { font-size: 3rem; } .thumbs b { font-size: 2.2rem; } .thumbs .tu { background: var(--tg); } .thumbs .td { background: var(--tr); }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; padding: 14px; min-height: 140px; }
.cloud span { font-weight: 700; line-height: 1.1; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .pills span { border-radius: 999px; padding: 8px 16px; font-weight: 700; } .pills b { opacity: .7; font-size: .8em; }
.bubbles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; } .bubbles span { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; text-align: center; padding: 8px; overflow-wrap: anywhere; line-height: 1.1; }
.answers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.answer { background: var(--card); border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); border-top: 5px solid var(--blue); overflow-wrap: anywhere; box-shadow: var(--shadow); }
.answer .who { font-size: .78rem; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }

/* whiteboard style for results */
.st-whiteboard { font-family: var(--marker); background: #fff; border-radius: 16px; padding: 10px; color: #1B2A4A; }
.st-whiteboard .bar .track, .st-whiteboard .ch-cols .cbar { background: transparent; border: 2.5px solid #1B2A4A; border-radius: 8px 14px 10px 12px; }
.st-whiteboard .bar .fill, .st-whiteboard .ch-cols .cbar div { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px) !important; border-radius: 4px 10px 6px 8px; }
.st-whiteboard .bar .lbl, .st-whiteboard .cl, .st-whiteboard .val { font-size: 1.3em; }
.st-whiteboard .cloud span, .st-whiteboard .pills span { font-family: var(--marker); }
.st-calm .bar .fill, .st-calm .ch-cols .cbar div { opacity: .8; }

/* idea wall */
.wall { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 1), minmax(220px, 1fr)); }
.wall-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c); margin: 0 0 10px; display: flex; justify-content: space-between; border-bottom: 3px solid var(--c); padding-bottom: 6px; }
.wall-col .notes { display: grid; gap: 10px; }
.wall[style*="--cols:1"] .notes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.note { border-radius: 16px; padding: 12px 14px 10px; color: #1B2A4A; position: relative; overflow-wrap: anywhere; border-left: 6px solid; box-shadow: 0 2px 6px rgba(27,42,74,.08); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.note .nt { font-weight: 500; }
.note.featured { box-shadow: 0 0 0 3px var(--yellow), 0 6px 16px rgba(27,42,74,.12); }
.note .star { position: absolute; top: -10px; right: -6px; background: var(--yellow); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 15px; }
.note .rx { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .note .rx span { background: rgba(255,255,255,.75); border-radius: 999px; padding: 1px 8px; font-size: .85rem; } .note .rx span.on { background: #1B2A4A; color: #fff; }
.note .cm { margin-top: 8px; font-size: .82rem; display: grid; gap: 3px; color: #3C4E72; } .note .cm div { background: rgba(255,255,255,.6); border-radius: 8px; padding: 3px 8px; }
.note .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .75rem; color: #3C4E72; gap: 6px; flex-wrap: wrap; }
.note .au { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.note .act { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.note .cc { display: inline-flex; gap: 3px; align-items: center; } .note .cc svg { width: 14px; height: 14px; }
.note .mini { border: 0; background: rgba(255,255,255,.8); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .78rem; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: #1B2A4A; min-height: 30px; }
.note .mini svg { width: 14px; height: 14px; } .note .mini.on { background: var(--red); color: #fff; }
.note.is-hidden { opacity: .4; outline: 2px dashed rgba(0,0,0,.35); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; } .swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches button.on { border-color: var(--ink); }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.emojis button { font-size: 1.6rem; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.emojis button.on { background: var(--tb); border-color: var(--blue); }
.thread { display: grid; gap: 8px; max-height: 40vh; overflow: auto; margin: 12px 0; } .thread .c { background: var(--card2); border-radius: 12px; padding: 8px 12px; } .thread .c b { font-size: .8rem; color: var(--ink2); display: block; }
.topideas { display: grid; gap: 12px; } .ti { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--c); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.ti .rk { width: 48px; height: 48px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; } .ti .tx { font-weight: 600; font-size: 1.1rem; } .ti .tm { font-size: .82rem; color: var(--muted); font-weight: 500; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .ti .tm svg { width: 14px; height: 14px; }

/* leaderboard */
.lbwrap { display: grid; gap: 16px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding-top: 30px; }
.pd { display: flex; flex-direction: column; align-items: center; width: min(180px, 30vw); }
.pd .pa { position: relative; margin-bottom: 6px; } .pd .crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 28px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-5px) rotate(-6deg); } }
.pd .pn { font-weight: 700; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd .ps { font-weight: 800; color: var(--muted); }
.pd .pb { width: 100%; border-radius: 18px 18px 0 0; display: grid; place-items: start center; padding-top: 10px; font-size: 2rem; margin-top: 6px; }
.pd.p1 .pb { height: 150px; background: var(--yellow); } .pd.p2 .pb { height: 110px; background: var(--blue); } .pd.p3 .pb { height: 80px; background: var(--red); }
.pd.me .pn { color: var(--blue); }
.lbwrap.big .pd { width: min(260px, 26vw); } .lbwrap.big .pd .pn { font-size: 1.6rem; } .lbwrap.big .pd .ps { font-size: 1.4rem; } .lbwrap.big .pd.p1 .pb { height: 26vh; } .lbwrap.big .pd.p2 .pb { height: 19vh; } .lbwrap.big .pd.p3 .pb { height: 13vh; } .lbwrap.big .pd .pb { font-size: 3.4rem; }
.lb { display: grid; gap: 8px; }
.lb .r { display: grid; grid-template-columns: 36px 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 8px 14px; border: 1px solid var(--line); }
.lb .r.me { border-color: var(--blue); background: var(--tb); }
.lb .r .pos { font-weight: 800; color: var(--muted); text-align: center; } .lb .r .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb .r .sc { font-weight: 800; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { top: 110vh; transform: rotate(720deg) translateX(40px); } }

/* toast, modal, sheet */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
#toast .t { background: #1B2A4A; color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: pop .2s ease; text-align: center; }
#toast .t.err { background: var(--red); }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(27,42,74,.45); display: grid; place-items: center; padding: 16px; }
.modal .box { width: min(640px, 100%); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal .box.wide { width: min(1100px, 100%); }
@media (max-width: 640px) { .modal { place-items: end center; padding: 0; } .modal .box { border-radius: 24px 24px 0 0; max-height: 88vh; } }

/* host layout */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1.5px solid var(--line); background: var(--card); padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink2); min-height: 40px; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.tabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs .dot { background: var(--red); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; }
.act-list { display: grid; gap: 8px; }
.act-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; }
.act-item:hover { border-color: var(--blue); }
.act-item.on { border-color: var(--blue); background: var(--tb); }
.act-item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .act-item .ty { font-size: .75rem; color: var(--muted); }
.act-item img.th { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.run { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .run { grid-template-columns: 330px minmax(0, 1fr); } }
.sess-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.qr { background: #fff; border-radius: 14px; padding: 8px; display: inline-block; line-height: 0; border: 1px solid var(--line); }
.qr svg { width: 100%; height: auto; display: block; }
.joinbox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.codebig { font-weight: 800; font-size: 2.3rem; letter-spacing: .1em; color: var(--blue-d); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; } .empty svg { width: 36px; height: 36px; opacity: .6; }
pre.ai { white-space: pre-wrap; font-family: var(--font); background: var(--card2); border-radius: 14px; padding: 14px; border: 1px solid var(--line); margin: 0; }
.tpl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tpl { border: 1.5px solid var(--line); border-radius: 18px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.tpl:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.tpl .pv { background: var(--card2); border-radius: 12px; padding: 10px; height: 150px; overflow: hidden; font-size: 10px; pointer-events: none; position: relative; }
.tpl .pv .slide { transform-origin: top left; }
.tpl .nm { font-weight: 700; } .tpl .ds { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preview-box { background: var(--bg); border-radius: 20px; padding: 14px; border: 1px solid var(--line); }
.sounds { display: grid; gap: 14px; } .sgrp h4 { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.sbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sbtn { border: 0; border-radius: 16px; padding: 10px 8px; cursor: pointer; display: grid; gap: 2px; justify-items: center; font-weight: 600; font-size: .8rem; background: var(--card2); color: var(--ink); min-height: 72px; }
.sbtn .e { font-size: 1.7rem; line-height: 1.1; } .sbtn:active { transform: scale(.95); }
.sgrp:nth-child(4n+1) .sbtn { background: var(--tb); } .sgrp:nth-child(4n+2) .sbtn { background: var(--tg); } .sgrp:nth-child(4n+3) .sbtn { background: var(--ty); } .sgrp:nth-child(4n+4) .sbtn { background: var(--tr); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.inbox { display: grid; gap: 12px; } .conv { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--card); }
.conv .msgs { display: grid; gap: 6px; margin: 8px 0; } .bub { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--card2); justify-self: start; overflow-wrap: anywhere; } .bub.t { background: var(--tb); justify-self: end; } .bub small { display: block; color: var(--muted); font-size: .7rem; }

/* slides */
.slide { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); min-height: 100%; display: flex; align-items: center; gap: 4%; padding: 5% 6%; }
.slide .sbody { flex: 1 1 55%; min-width: 0; }
.slide .sart { flex: 0 1 40%; max-width: 40%; max-height: 70%; object-fit: contain; }
.slide .sart.photo { border-radius: 18px; max-height: 80%; }
.slide .sem { font-size: 3rem; margin-bottom: 8px; }
.slide h1 { font-size: clamp(1.8rem, 4.6vw, 4.2rem); } .slide h2 { font-size: clamp(1.4rem, 3.2vw, 3rem); }
.slide .lead { font-size: clamp(1rem, 1.9vw, 1.8rem); color: var(--ink2); }
.slide ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.slide ul li { font-size: clamp(1rem, 1.9vw, 1.8rem); display: flex; align-items: center; gap: 14px; }
.slide ul .bul { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.slide ul.agenda li { background: var(--card2); border-radius: 14px; padding: 10px 16px; border-left: 8px solid var(--c); } .slide ul.agenda b { min-width: 4.5em; color: var(--c); }
.slide .twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; } .slide .twocol > div { border-radius: 20px; padding: 18px 22px; background: var(--card2); border-top: 8px solid var(--c); } .slide .twocol h3 { font-size: clamp(1.2rem, 2.4vw, 2.2rem); color: var(--c); } .slide .twocol p { font-size: clamp(.95rem, 1.6vw, 1.5rem); border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.slide .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; } .slide .stp { background: var(--card2); border-radius: 20px; padding: 16px; display: grid; gap: 6px; border-top: 8px solid var(--c); } .slide .stp .n { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; } .slide .stp b { font-size: clamp(1rem, 1.8vw, 1.6rem); } .slide .stp span { color: var(--ink2); font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.slide .quote { position: relative; padding-left: 3%; } .slide .qm { font-size: 8rem; line-height: .6; color: var(--blue); font-family: Georgia, serif; } .slide blockquote { margin: 0; font-size: clamp(1.6rem, 3.6vw, 3.4rem); font-weight: 700; line-height: 1.2; } .slide cite { display: block; margin-top: 16px; color: var(--muted); font-style: normal; font-size: clamp(1rem, 1.6vw, 1.5rem); }
.slide.c-blue { background: var(--blue); color: #fff; } .slide.c-red { background: var(--red); color: #fff; } .slide.c-green { background: var(--green); color: #fff; } .slide.c-yellow { background: var(--yellow); color: #1B2A4A; }
.slide.c-blue .lead, .slide.c-red .lead, .slide.c-green .lead { color: rgba(255,255,255,.9); }
.slide.c-blue ul.agenda li, .slide.c-red ul.agenda li, .slide.c-green ul.agenda li { background: rgba(255,255,255,.15); }
.slide.s-image { padding: 0; background: #fff; justify-content: center; } .slide.s-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide.s-statement h1 { font-size: clamp(2rem, 5.4vw, 5rem); }

/* overlays */
.ov { border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 4%; padding: 4% 5%; text-align: left; min-height: 100%; position: relative; }
.ov.c-blue { background: var(--tb); } .ov.c-red { background: var(--tr); } .ov.c-yellow { background: var(--ty); } .ov.c-green { background: var(--tg); }
.ov-art { flex: 0 1 38%; max-width: 38%; } .ov-art svg, .ov-art img { width: 100%; height: auto; display: block; }
.ov-in { flex: 1 1 55%; min-width: 0; }
.ov-t { font-weight: 800; font-size: clamp(2rem, 5vw, 5rem); line-height: 1.05; color: #1B2A4A; }
.ov.c-blue .ov-t { color: var(--blue-d); } .ov.c-red .ov-t { color: var(--red-d); } .ov.c-green .ov-t { color: var(--green-d); }
.ov-l2 { font-size: clamp(1.1rem, 2.2vw, 2rem); color: #3C4E72; margin-top: 10px; font-weight: 500; }
.ov-clock { font-weight: 800; font-size: clamp(3.5rem, 11vw, 11rem); line-height: 1; color: #1B2A4A; margin-top: 16px; }
.ov-clock.hurry { color: var(--red); animation: pulse .8s infinite; } .ov-clock.done { color: var(--red); font-size: clamp(2.5rem, 7vw, 7rem); animation: shake .5s 4; }
@keyframes shake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.ov-prog { height: 14px; background: rgba(27,42,74,.08); border-radius: 999px; overflow: hidden; margin-top: 14px; max-width: 760px; } .ov-prog div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 999px; transition: width .3s linear; }
.ov-wis { margin-top: 22px; background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: 0 4px 0 rgba(27,42,74,.08); max-width: 820px; }
.ov-wis .tag { font-weight: 800; color: var(--red); font-size: .9rem; letter-spacing: .04em; } .ov-wis p { margin: 6px 0 0; font-size: clamp(1.05rem, 2vw, 1.9rem); font-weight: 600; color: #1B2A4A; }
.ov-big { font-size: clamp(1.6rem, 4vw, 4rem); font-weight: 700; color: #1B2A4A; line-height: 1.2; margin-top: 12px; }
.ov-timer { flex-direction: column; text-align: center; } .ov-timer .ov-prog, .ov-timer .ov-wis { margin-left: auto; margin-right: auto; }
.phone-ov { margin-bottom: 16px; } .phone-ov .ov { min-height: auto; flex-direction: column; text-align: center; padding: 20px; } .phone-ov .ov-art { max-width: 160px; } .phone-ov .ov-t { font-size: 1.8rem; } .phone-ov .ov-clock { font-size: 3.4rem; } .phone-ov .ov-l2 { font-size: 1rem; } .phone-ov .ov-wis p { font-size: 1rem; } .phone-ov .ov-big { font-size: 1.3rem; }

/* projector: whiteboard frame on a light grey backdrop */
body.screen { background: #E9ECF1; overflow: hidden; }
[data-theme="night"] body.screen { background: #060B16; }
body.screen main { max-width: none; padding: 0; height: 100vh; display: flex; }
.frame { flex: 1; margin: 2.4vh 2vw; background: var(--card); border-radius: 34px; box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(27,42,74,.06), 0 18px 40px rgba(27,42,74,.12), 0 40px 90px rgba(27,42,74,.10); position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(27,42,74,.06); }
.frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); }
.fhead { display: flex; justify-content: space-between; align-items: center; gap: 2vw; padding: 2.6vh 3vw 0; }
.fhead .lft { display: flex; align-items: center; gap: 14px; min-width: 0; } .fhead .logo { height: 3vh; min-height: 20px; }
.fbody { flex: 1; padding: 2vh 3vw 2.6vh; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.fbody > .slide, .fbody > .ov { flex: 1; }
.corner { display: flex; gap: 14px; align-items: center; }
.corner .qr { width: 9vh; min-width: 64px; padding: 5px; }
.corner .qr.sm { width: 6.5vh; min-width: 48px; }
.corner .cd { text-align: right; line-height: 1.1; } .corner .cd .u { font-size: .85rem; color: var(--muted); } .corner .cd .c { font-weight: 800; font-size: 2.4vh; letter-spacing: .08em; color: var(--blue-d); } .corner .cd .m { font-size: .72rem; color: var(--muted); }
.s-q { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 3.8rem); line-height: 1.12; margin: 0 0 2.4vh; }
.s-q .qe { margin-right: .3em; }
.screen .bar .lbl { font-size: clamp(1rem, 1.9vw, 2rem); } .screen .bar .val { font-size: clamp(1rem, 1.6vw, 1.7rem); } .screen .bar .track { height: clamp(18px, 3vh, 38px); }
.screen .ch-cols .cbar { height: 42vh; max-width: 200px; } .screen .ch-cols .cl { font-size: clamp(.9rem, 1.5vw, 1.6rem); } .screen .ch-cols .cv { font-size: 2.4vw; }
.screen .ch-pie svg { width: min(48vh, 40vw); } .screen .ch-pie .lg { font-size: clamp(1rem, 1.7vw, 1.8rem); }
.screen .ch-emoji .big { font-size: 7vh; } .screen .ch-emoji .pc { font-size: 5vh; } .screen .ch-emoji .nm { font-size: 1.6vw; }
.screen .cloud { font-size: clamp(1rem, 2.2vw, 2.4rem); flex: 1; } .screen .pills { font-size: 1.6vw; } .screen .bubbles span { transform: scale(1.4); margin: 14px; }
.screen .note { font-size: clamp(.95rem, 1.25vw, 1.4rem); animation: none; } .screen .answer { font-size: 1.3vw; }
.screen .opts { gap: 2vh; } .screen .opt { font-size: clamp(1.1rem, 2.2vw, 2.4rem); min-height: 11vh; border-radius: 26px; cursor: default; } .screen .opt .k { width: 6vh; height: 6vh; font-size: 3vh; }
.screen .ti .tx { font-size: 1.8vw; }
.screen .bigstat { font-size: 9vh; }
.sound-gate { position: fixed; right: 2vw; bottom: 2vh; z-index: 50; }
.lobby { display: grid; gap: 4vw; grid-template-columns: auto 1fr; align-items: center; flex: 1; }
.lobby .qr { width: min(40vh, 34vw); padding: 2vh; border-radius: 28px; }
.names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2vh; max-height: 26vh; overflow: hidden; }
.names span { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: 1.3vw; }
.qhead { display: flex; gap: 2vw; align-items: flex-start; } .qhead .qimg { max-height: 30vh; max-width: 30vw; border-radius: 18px; }
.qemoji { font-size: 9vh; line-height: 1; }

/* phone */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; border-radius: 999px; box-shadow: 0 8px 24px rgba(26,115,232,.35); }
.fab .dotn { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.pmenu { position: absolute; right: 16px; top: 62px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 6px; z-index: 50; display: grid; min-width: 210px; }
.pmenu button { border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.pmenu button:hover { background: var(--card2); }
.hero-art { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* footer */
footer.credit { text-align: center; padding: 18px 16px 22px; font-size: .72rem; color: color-mix(in srgb, var(--muted) 75%, transparent); }
footer.credit a { color: inherit; text-decoration: none; } footer.credit .staff { margin-left: 8px; opacity: .6; }

@media (max-width: 640px) {
  .wall { grid-template-columns: 1fr; }
  .slide { flex-direction: column; padding: 22px; } .slide .sart { max-width: 70%; } .slide .twocol { grid-template-columns: 1fr; }
  .ch-cols .cbar { height: 150px; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; } .brand .sub, .brand .bdiv { display: none; }
  .card { padding: 16px; } .topbar .inner { gap: 8px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

body:has(.fab) footer.credit { padding-bottom: 84px; }
.badge:empty { display: none; }
.scaled { position: relative; overflow: hidden; width: 100%; }
.scaled > .sc-in { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: top left; display: flex; }
.scaled > .sc-in > * { flex: 1; }
.lbrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6vh; }
.lbrow .r { display: flex; align-items: center; gap: 10px; background: var(--card2); border-radius: 999px; padding: 6px 16px 6px 8px; font-weight: 700; font-size: 1.2vw; }

/* ===== v3 ===== */
.avsvg { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; line-height: 0; box-shadow: 0 0 0 2px #fff; }
.avsvg svg { width: 100%; height: 100%; }
.micwrap { position: relative; display: block; width: 100%; }
.micwrap.has-mic input, .micwrap.has-mic textarea { padding-right: 52px; }
.stks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stk { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: var(--c); border: 2.5px solid var(--c); border-radius: 12px; padding: 2px 10px; font-weight: 800; font-size: .82rem; box-shadow: 2px 2px 0 var(--c); white-space: nowrap; }
.badgecard { display: inline-flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; width: 108px; }
.badgecard .bn { font-weight: 700; font-size: .82rem; line-height: 1.15; } .badgecard .bd { font-size: .72rem; color: var(--muted); }
.badgecard.sm { width: 74px; } .badgecard.sm .bn { font-size: .7rem; }
.badgegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; justify-items: center; }
.badgegrid button { border: 2px solid transparent; background: transparent; border-radius: 16px; padding: 6px 2px; cursor: pointer; }
.badgegrid button.on { border-color: var(--blue); background: var(--tb); }
.stkgrid { display: flex; flex-wrap: wrap; gap: 10px; } .stkgrid button { border: 0; background: transparent; cursor: pointer; padding: 4px; }
.splash { position: fixed; inset: 0; display: grid; place-items: center; z-index: 95; pointer-events: none; }
.splash .stk { font-size: clamp(2rem, 7vw, 6rem); border-width: 6px; box-shadow: 8px 8px 0 var(--c); border-radius: 28px; padding: 12px 40px; animation: splash 2.6s ease forwards; }
@keyframes splash { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 15% { transform: scale(1.15) rotate(-6deg); opacity: 1; } 25% { transform: scale(1) rotate(-6deg); } 85% { opacity: 1; } 100% { transform: scale(1.1) rotate(-6deg); opacity: 0; } }
/* match / order */
.matchgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.matchgrid .ml, .matchgrid .mr { display: grid; gap: 8px; align-content: start; }
.mbtn { display: flex; gap: 8px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px; min-height: 52px; font-weight: 600; cursor: pointer; font-size: .92rem; }
.mbtn.sel { border-color: var(--blue); background: var(--tb); }
.mbtn .tag { width: 26px; height: 26px; border-radius: 8px; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-size: .8rem; }
.mbtn .tag.empty { background: var(--card2); border: 2px dashed var(--line); }
.ordlist { display: grid; gap: 8px; }
.ordrow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.ordrow .n { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.ordrow .tx { flex: 1; font-weight: 600; } .ordrow.ok { border-color: var(--green); background: var(--tg); } .ordrow.bad { border-color: var(--red); background: var(--tr); }
/* survey */
.svform, .svres { display: grid; gap: 12px; } .svres { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.svq { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: 16px; padding: 12px 14px; }
.svq .qq { font-weight: 700; margin-bottom: 10px; } .svq .qt { font-size: .9rem; color: var(--ink2); padding: 4px 0; border-bottom: 1px dashed var(--line); }
/* bingo */
.bcard { display: grid; grid-template-columns: repeat(var(--s), 1fr); gap: 6px; }
.bc { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 800; font-size: clamp(.75rem, 4vw, 1.4rem); cursor: pointer; padding: 2px; overflow-wrap: anywhere; line-height: 1.1; color: var(--ink); }
.bc.called { border-color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.bc.on { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(-3deg); }
.bc.free { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.ballsm { background: var(--red); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 800; }
.bingoboard { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: center; }
.bingoboard .ball { width: min(30vh, 26vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--red) 13% 100%); display: grid; place-items: center; box-shadow: 0 14px 30px rgba(234,67,53,.35); animation: pop .5s; }
.bingoboard .ball span { background: #fff; border-radius: 50%; width: 58%; aspect-ratio: 1; display: grid; place-items: center; font-weight: 800; font-size: clamp(1.2rem, 5vw, 5rem); color: var(--ink); text-align: center; line-height: 1; padding: 4px; overflow-wrap: anywhere; }
.bingoboard .ball.empty { background: var(--card2); box-shadow: none; }
.bpool { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; } .bpool.words { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.bpool span { border-radius: 10px; background: var(--card2); color: #A9B3C2; text-align: center; padding: 6px 2px; font-weight: 700; font-size: clamp(.7rem, 1.1vw, 1.2rem); }
.bpool span.on { background: var(--blue); color: #fff; } .bpool span.last { background: var(--red); transform: scale(1.12); }
/* wheel */
.wheelwrap { position: relative; width: min(64vh, 90%); aspect-ratio: 1; margin: 0 auto; }
.wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 12px 40px rgba(27,42,74,.2), 0 0 0 10px #fff, 0 0 0 14px var(--line); }
.wheel svg { width: 100%; height: 100%; display: block; }
.pointer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 44px solid var(--ink); z-index: 3; filter: drop-shadow(0 3px 2px rgba(0,0,0,.2)); }
.wheelwin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 22px; padding: 14px 26px; font-weight: 800; font-size: clamp(1.2rem, 3vw, 3rem); box-shadow: 0 16px 40px rgba(0,0,0,.25); white-space: nowrap; z-index: 4; animation: pop .4s; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
/* avatar picker */
.avpick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .avbig { line-height: 0; border-radius: 50%; box-shadow: 0 8px 20px rgba(27,42,74,.15); }
.avside { flex: 1; min-width: 200px; } .avside .chip { font-size: .8rem; padding: 5px 10px; min-height: 32px; }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin-top: 12px; }
.avgrid button { border: 2px solid transparent; background: transparent; border-radius: 50%; padding: 0; cursor: pointer; line-height: 0; aspect-ratio: 1; font-size: 1.6rem; }
.avgrid button:hover { border-color: var(--blue); }
.avcust { margin-top: 12px; } .avcust summary { cursor: pointer; font-weight: 600; color: var(--blue-d); } .avparts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* personal page */
.mehero { display: flex; gap: 16px; align-items: center; } .mehero .greet { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.fortune { background: var(--ty); border-radius: 20px; padding: 14px 18px; position: relative; } .fortune .tag { font-weight: 800; color: var(--red); font-size: .8rem; letter-spacing: .04em; } .fortune p { margin: 4px 0 0; font-weight: 600; font-size: 1.1rem; }
.mtabs { position: sticky; top: 64px; z-index: 20; background: var(--bg); padding: 8px 0; }
.tl { display: grid; gap: 6px; } .tl .ti2 { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 12px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); } .tl b { color: var(--blue-d); }
.res-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.res-item:hover { border-color: var(--blue); }
.taskrow { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); }
.taskrow.done { border-color: var(--green); background: var(--tg); }
.members { display: flex; flex-wrap: wrap; gap: 8px; } .members span { display: inline-flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: .9rem; }
.bottomnav { display: none; }
@media (max-width: 760px) {
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottomnav button { border: 0; background: transparent; display: grid; justify-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 4px 6px; min-width: 56px; cursor: pointer; }
  .bottomnav button.on { color: var(--blue-d); } .bottomnav svg { width: 22px; height: 22px; }
  body.has-bnav { padding-bottom: 70px; } body.has-bnav .mtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; top: 56px; } body.has-bnav .mtabs button { flex: none; }
}
/* inbox */
.inboxgrid { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 1000px) { .inboxgrid { grid-template-columns: 340px 1fr; } }
.convlist { display: grid; gap: 6px; max-height: 70vh; overflow: auto; } .convitem { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; }
.convitem.on { border-color: var(--blue); background: var(--tb); } .convitem .pv { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .convitem .nw { background: var(--red); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .72rem; font-weight: 700; }
.thread2 { display: grid; gap: 8px; max-height: 52vh; overflow: auto; padding: 4px; } .bub .lk { display: block; margin-top: 4px; font-size: .85rem; }
.presetlist { display: grid; gap: 6px; max-height: 50vh; overflow: auto; } .presetlist button { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 12px; cursor: pointer; } .presetlist button:hover { border-color: var(--blue); } .presetlist small { display: block; color: var(--muted); }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .kpi .k { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; border-top: 5px solid var(--c); } .kpi .k b { display: block; font-size: 2rem; font-weight: 800; color: var(--c); } .kpi .k span { color: var(--muted); font-size: .85rem; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } table.tbl th { text-align: center; background: var(--tb); color: var(--blue-d); padding: 8px; font-weight: 700; } table.tbl td { padding: 8px; border-bottom: 1px solid var(--line); } .tblwrap { overflow-x: auto; }
.cert { width: 1123px; height: 794px; background: #fff; position: relative; padding: 60px 80px; color: #1B2A4A; font-family: var(--font); border: 14px solid #fff; box-shadow: inset 0 0 0 4px #E8F0FE; }
.stkpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; max-height: 60vh; overflow: auto; }
.stkbtn { border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 4px; cursor: pointer; display: flex; justify-content: center; }
.stkbtn:hover { border-color: var(--blue); background: var(--tb); }
.grid.three { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.badgecard.big svg { width: 150px; height: auto; }
@media print { header, .tabs, #i_ai, #i_csv, #i_pr { display: none !important; } }
input[type="search"] { width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--card); color: var(--ink); -webkit-appearance: none; }
input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tb); }
.names span.avsvg { padding: 0; border: 0; background: none; border-radius: 50%; width: 2.4vw !important; height: 2.4vw !important; min-width: 30px; min-height: 30px; }
.names span.avsvg svg { width: 100%; height: 100%; }
.bpool.words span { font-size: clamp(.9rem, 1.5vw, 1.7rem); padding: 1vh 4px; }

/* ===================== v4 · Phase 1 ===================== */
.jhead { margin: -4px 0 16px; }
.jbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 8px 0 6px; }
.jbar i { height: 8px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); }
.jbar i.on:nth-child(4n+1) { background: var(--blue); border-color: var(--blue); } .jbar i.on:nth-child(4n+2) { background: var(--red); border-color: var(--red); }
.jbar i.on:nth-child(4n+3) { background: var(--yellow); border-color: var(--yellow); } .jbar i.on:nth-child(4n) { background: var(--green); border-color: var(--green); }
.nudge { margin: 0; font-size: .9rem; color: var(--ink2); font-weight: 500; }
.coursecard { position: relative; overflow: hidden; margin-top: 14px; padding-top: 26px; }
.coursecard .cc-band { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-top: 12px; cursor: pointer; background: var(--card2); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.linkish { background: none; border: 0; color: var(--primary); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
.adsteps { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; }
.adsteps li { background: var(--card2); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.adsteps li.done { background: var(--tg); border-color: transparent; }
.adsteps li:nth-child(2) { border-color: var(--blue); background: var(--tb); }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px auto 10px; max-width: 420px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; z-index: 2; cursor: text; }
.otp .cell { height: 60px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.otp .cell.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tb); }
.otp:focus-within .cell.on { animation: otpblink 1s step-end infinite; }
.otp.shake { animation: shake .4s; }
@keyframes otpblink { 50% { border-color: var(--line); box-shadow: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.popdemo { width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--blue) 0 25%, var(--red) 0 50%, var(--yellow) 0 75%, var(--green) 0); position: relative; margin: 0 auto; }
.popdemo span { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); font-size: 96px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.avphoto { border-radius: 50%; object-fit: cover; background: var(--card2); flex: none; display: inline-block; vertical-align: middle; }

/* photo studio */
.modal.studio .studio-box { max-width: 880px; }
.studio-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.studio-steps span { padding: 5px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.studio-steps span.on { background: var(--blue); color: #fff; border-color: var(--blue); } .studio-steps span.done { background: var(--tg); color: var(--green-d); border-color: transparent; }
.tipwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tipcard { border-radius: 18px; padding: 12px; } .tipcard.good { background: var(--tg); } .tipcard.bad { background: var(--tr); }
.tiphead { font-weight: 800; margin-bottom: 8px; }
.tipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: .85rem; font-weight: 600; }
.pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.pickbtn { border: 2px dashed var(--line); border-radius: 20px; padding: 26px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; background: var(--card2); text-align: center; }
.pickbtn:hover { border-color: var(--blue); background: var(--tb); }
.cropwrap { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1; border-radius: 18px; overflow: hidden; touch-action: none; }
.cropwrap canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.cropguide { position: absolute; left: 22%; top: 12%; width: 56%; height: 60%; border: 3px dashed rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.18); pointer-events: none; }
.stylegrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.prevwrap { background: repeating-conic-gradient(#EEF1F5 0 25%, #fff 0 50%) 0 0/24px 24px; border-radius: 18px; padding: 8px; }
.prevwrap canvas { width: 100%; height: auto; display: block; }
.stylepanel { max-height: 62vh; overflow: auto; padding-right: 4px; }
.sswatch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sswatch .sw { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line); padding: 0; background: #fff; cursor: pointer; overflow: hidden; display: grid; place-items: center; }
.sw canvas { width: 44px; height: 44px; display: block; } .sw.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tb); }
.sswatch .sw.dot { width: 36px; height: 36px; border-radius: 50%; } .sswatch .sw[data-v="white"], .sswatch .sw.dot[data-v="#FFFFFF"] { box-shadow: inset 0 0 0 1px var(--line); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 680px) { .stylegrid { grid-template-columns: 1fr; } .stylepanel { max-height: none; } .tipwrap { grid-template-columns: 1fr; } }

/* reveal and ID tag */
.tagcanvas { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; cursor: zoom-in; }
.tagcanvas.big { max-width: min(420px, 80vw); cursor: default; }
.rvgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin-top: 10px; }
.reveal .rv1 { animation: rvup .6s both; } .reveal .rv2 { animation: rvtag 1s .3s both; } .reveal .rv3 { animation: rvup .6s .9s both; }
@keyframes rvup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rvtag { 0% { opacity: 0; transform: translateY(-60px) rotate(-8deg); } 60% { opacity: 1; transform: translateY(8px) rotate(3deg); } 100% { transform: none; } }
.cookie { font-size: 88px; cursor: pointer; display: inline-block; transition: transform .3s; animation: wob 1.2s ease-in-out infinite; }
.cookie.open { transform: scale(1.4) rotate(20deg); opacity: 0; transition: all .45s; }
@keyframes wob { 50% { transform: rotate(-8deg); } }
@media (max-width: 640px) { .rvgrid { grid-template-columns: 1fr; } }
.keepgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.keep { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--card2); border: 1.5px solid var(--line); text-decoration: none; color: inherit; }
.keep > span { font-size: 1.6rem; } .keep small { color: var(--muted); line-height: 1.35; }
.keep.wa { background: #E7F8EE; border-color: #25D366; } .keep.wa b { color: #128C4B; }

/* personal page */
.hello .greet { font-size: clamp(1.15rem, 3.6vw, 1.5rem) !important; }
.homegrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.tagcard { padding: 14px; }
.progcard { display: flex; gap: 16px; align-items: center; }
.pring { width: 104px; height: 104px; flex: none; color: var(--ink); }
.attcard { border: 2px solid var(--yellow); background: var(--ty); } .attcard.in { border-color: var(--green); background: var(--tg); }
.ann { display: flex; gap: 12px; align-items: flex-start; border-radius: 18px; padding: 14px 16px; }
.ann .ae { font-size: 1.8rem; line-height: 1; } .ann .at b { display: block; } .ann .at p { margin: 2px 0 0; }
.ann-sunny { background: linear-gradient(135deg, #FFF4C2, #FFE08A); color: #3D2E00; }
.ann-groovy { background: linear-gradient(135deg, #F8C8DC, #C9B6FF); color: #2A1640; }
.ann-calm { background: linear-gradient(135deg, #D2E3FC, #CEEAD6); color: #0D2B4A; }
.ann-headsup { background: #FCE8E6; border: 2px solid var(--red); color: #5C1410; }
.ann-chalk { background: #1F3A2E; color: #F1F7EF; font-family: var(--marker); font-size: 1.1rem; }
.ann a { color: inherit; font-weight: 700; }
.nexttask { margin-bottom: 14px; border: 2px solid var(--blue); }
.nt { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; } .nt:first-of-type { border-top: 0; }
.nti { font-size: 1.8rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--tb); border-radius: 14px; flex: none; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 1.05rem; }
.pulse { animation: pulse 1.4s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(66,133,244,.18); } }
.playcard { width: 100%; text-align: left; cursor: pointer; background: var(--blue); color: #fff; border: 0; margin: 14px 0; }
.groupcard .memgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mem { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: var(--card2); }
.mem.me { background: var(--tb); outline: 2px solid var(--blue); }
.checklist { display: grid; gap: 6px; max-height: 50vh; overflow: auto; } .checklist div { padding: 8px 10px; border-radius: 10px; background: var(--card2); } .checklist .ok { background: var(--tg); }
.outline h4 { margin: 14px 0 4px; color: var(--blue-d); }
@media (max-width: 760px) { .homegrid { grid-template-columns: 1fr; } .tagcard .tagcanvas { max-width: 220px; } }
.row:has(> select[id$="cc"]) { flex-wrap: nowrap; }
select#cc, select#lcc { flex: 0 0 auto; width: 128px; min-width: 128px; }
select#cc + input, select#lcc + input { flex: 1; min-width: 0; }
.jhead > .row { flex-wrap: nowrap; align-items: flex-start; } .jhead .eyebrow { min-width: 0; line-height: 1.5; } .jhead > .row > b { flex: none; }
.playcard .row { flex-wrap: nowrap; } .playcard .row > div { min-width: 0; }
.ov-groups { display: flex; flex-direction: column; gap: 2vh; padding: 3vh 3vw; background: var(--card); height: 100%; overflow: hidden; }
.ov-groups .gc-head h2 { margin: .3em 0 0; font-size: clamp(1.2rem, 2.6vw, 2.4rem); }
.gcall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.4vw; overflow: auto; }
.gcx { border-radius: 20px; border: 3px solid var(--gc); background: #fff; overflow: hidden; }
.gcx-h { background: var(--gc); color: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: clamp(1rem, 1.5vw, 1.4rem); }
.gcx-m { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 600; font-size: clamp(.85rem, 1.1vw, 1.1rem); }
.gcx-m span { display: inline-flex; gap: 6px; align-items: center; }
.gnum { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 800; flex: none; }
.gcard .gnum { background: var(--gc); color: #fff; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.gcard { border: 2px solid var(--gc); border-radius: 16px; padding: 10px 12px; background: var(--card); }
.gcard .gname { border: 0; background: transparent; font-weight: 700; padding: 4px 6px; min-height: 0; flex: 1; min-width: 0; }
.gmem { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: .88rem; } .gmem span { display: inline-flex; gap: 5px; align-items: center; }
.gmake { background: var(--card2); border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.seg2 { display: flex; gap: 6px; flex-wrap: wrap; } .seg2 button { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 600; } .seg2 button.on { border-color: var(--blue); background: var(--tb); color: var(--blue-d); }
.tseq { display: grid; gap: 6px; margin-top: 12px; }
.tsrow { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.tsrow.off { opacity: .55; background: var(--card2); } .tsrow.drag { opacity: .4; outline: 2px dashed var(--blue); }
.tsrow .grip { cursor: grab; color: var(--muted); font-weight: 800; letter-spacing: -2px; } .tsrow .tsk { font-size: 1.3rem; }
.tsrow .t { font-weight: 700; } .tsrow .ty { font-size: .82rem; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 26px; transition: .2s; cursor: pointer; } .switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); } .switch input:checked + span::before { transform: translateX(18px); }
.attswitch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card2); border: 2px solid var(--line); margin: 14px 0 6px; } .attswitch.on { background: var(--tg); border-color: var(--green); }
table.tbl.att td:first-child { text-align: left; }
@media (max-width: 640px) { .tsrow { flex-wrap: wrap; } }
.grid.two > *, .grid.three > * { min-width: 0; }
.tsrow { flex-wrap: wrap; } .tsrow > div { flex: 1 1 160px; }
.attswitch { flex-wrap: wrap; }
.btn { max-width: 100%; } #ahere, #aoff { white-space: normal; text-align: left; height: auto; min-height: 44px; }

/* ===== Phase 2a: learning tabs, chat, stickers ===== */
.stkx { display: inline-block; width: 92px; height: 92px; transform: rotate(var(--r, 0deg)); }
.stkx svg, svg.stk2 { width: 100%; height: 100%; display: block; overflow: visible; }
.stkcats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.stkcats button { flex: none; border: 1px solid var(--line); background: var(--card2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.stkcats button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.stkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.stkgrid button { border: 0; background: transparent; padding: 4px; border-radius: 14px; cursor: pointer; aspect-ratio: 1; }
.stkgrid button:hover, .stkgrid button:focus-visible { background: var(--card2); }
.stkwall { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tabhead { margin: 4px 0 12px; } .tabhead h2 { margin: 0 0 8px; }
.daychips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .daychips .chip { flex: none; }
.rescard { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.rescard:last-child { border-bottom: 0; } .rescard > svg { flex: none; color: var(--muted); width: 18px; }
.rtext { flex: 1; min-width: 0; display: grid; } .rtext b { overflow-wrap: anywhere; }
.ricon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; font-size: 1.3rem; }
.rthumb { flex: none; position: relative; width: 96px; height: 54px; border-radius: 10px; overflow: hidden; background: #000; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; } .rplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px #000; }
.outline h4 { margin: 12px 0 4px; } .outline p { margin: 0; }
.actrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.actrow:last-child { border-bottom: 0; } .actrow b { overflow-wrap: anywhere; }
.svres2 { margin: 4px 0 10px; padding: 12px; border-radius: 14px; background: var(--card2); display: grid; gap: 10px; }
.rq { display: grid; gap: 4px; } .rq .qt { display: block; font-size: .85rem; font-style: italic; }
.rbar { display: grid; grid-template-columns: minmax(60px, 34%) 1fr 44px; align-items: center; gap: 8px; font-size: .85rem; }
.rbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rbar i { display: block; height: 10px; border-radius: 6px; background: var(--blue); min-width: 4px; } .rbar b { text-align: right; }
.chatlist { padding: 6px; }
.convitem2 { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 10px 8px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.convitem2:hover { background: var(--card2); } .convitem2 .dot, .bottomnav .dot { background: var(--red); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.bottomnav button { position: relative; } .bottomnav .dot { position: absolute; top: 0; right: 8px; }
.cav { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue); }
.cav.t { background: var(--card2); font-size: 1.2rem; }
.ell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peoplegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.pp { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; cursor: pointer; font: inherit; color: inherit; text-align: center; }
.pp b { font-size: .82rem; overflow-wrap: anywhere; } .pp.mate { border-color: var(--blue); }
button.mem { border: 0; font: inherit; color: inherit; cursor: pointer; } button.mem:hover { outline: 2px solid var(--line); }
.chathead { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; min-width: 0; } .chathead > div { flex: 1; }
.chatbox { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.thread3 { height: min(62vh, 560px); overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--card2); }
.msg { max-width: 82%; align-self: flex-start; display: grid; gap: 3px; } .msg.me { align-self: flex-end; justify-items: end; }
.msg .who { font-size: .75rem; font-weight: 700; color: var(--muted); }
.rolepill { display: inline-block; background: var(--gold, #F4B400); color: #222; border-radius: 999px; padding: 0 7px; font-size: .68rem; font-weight: 800; }
.bub2 { background: var(--card); border: 1px solid var(--line); padding: 8px 12px; border-radius: 16px 16px 16px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me .bub2 { background: var(--blue); color: #fff; border-color: var(--blue); border-radius: 16px 16px 4px 16px; } .msg.me .bub2 a { color: #fff; }
.bub2 .lk { display: block; margin-top: 4px; font-size: .85rem; }
.bigstk .stkx { width: 110px; height: 110px; }
.msg .meta { display: flex; gap: 8px; align-items: center; font-size: .7rem; color: var(--muted); }
.rxbtn { border: 0; background: transparent; font-size: .75rem; cursor: pointer; padding: 2px 4px; border-radius: 8px; color: var(--muted); } .rxbtn:hover { background: var(--card); }
.rxs { display: flex; flex-wrap: wrap; gap: 4px; }
.rx { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 1px 8px; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; color: var(--ink); }
.rx.mine { border-color: var(--blue); background: var(--tb); } .rxs-stk { display: inline-block; width: 24px; height: 24px; } .rxs-stk svg { width: 100%; height: 100%; }
.composer { display: flex; gap: 6px; align-items: flex-end; padding: 8px; border-top: 1px solid var(--line); background: var(--card); }
.composer textarea { min-height: 44px; max-height: 120px; resize: none; }
.rxbar { display: flex; justify-content: space-between; gap: 4px; } .rxbar button, .emogrid button { border: 0; background: var(--card2); border-radius: 12px; font-size: 1.5rem; min-width: 44px; min-height: 44px; cursor: pointer; }
.emogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin-top: 8px; max-height: 40vh; overflow-y: auto; } .emogrid button { font-size: 1.3rem; background: transparent; }
.mprow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .mprow:last-child { border-bottom: 0; } .mprow b { overflow-wrap: anywhere; }
.bub .bigstk .stkx { width: 90px; height: 90px; }

/* ===== Phase 2b: photo wall, spotlight, leaderboard, certificate ===== */
.spotcard { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; width: 100%; background: linear-gradient(120deg, #FFF6D6, #FFE9F3); }
.spotimg { position: relative; width: 112px; height: 112px; border-radius: 16px; overflow: visible; }
.spotimg img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 3px solid #151515; }
.spotstk { position: absolute; right: -14px; bottom: -14px; } .spotstk .stkx { width: 64px; height: 64px; }
.rankcard, .certcard { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; }
.rankno { font-family: stk-bowlby, system-ui; font-size: 1.5rem; color: #8E5CF7; min-width: 56px; text-align: center; }
.certcard.ok { background: linear-gradient(120deg, #E5F4E4, #E7F1FB); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.pcell { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--card2); }
.pcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; color: #fff; font-size: .72rem; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnum { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.92); color: #E8336D; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 1px 7px; }
.pcar { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.pslide { flex: 0 0 min(86%, 420px); scroll-snap-align: center; background: var(--card); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.pslimg { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; aspect-ratio: 4/5; background: #000; } .pslimg img { width: 100%; height: 100%; object-fit: cover; }
.pslmeta { padding: 12px; }
.spotwide { position: relative; padding: 0; overflow: visible; cursor: pointer; margin-bottom: 12px; }
.spotwide img { width: 100%; max-height: 320px; object-fit: cover; display: block; border-radius: 20px; }
.spotwide .spotstk { right: 10px; bottom: 40px; } .spotwide .spotstk .stkx { width: 92px; height: 92px; }
.spotcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.7)); border-radius: 0 0 20px 20px; }
.pickph { display: grid; place-items: center; text-align: center; min-height: 180px; border: 2px dashed var(--line); border-radius: 18px; margin: 12px 0; cursor: pointer; color: var(--muted); overflow: hidden; }
.pickph img { max-width: 100%; max-height: 300px; display: block; }
.capchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .capchips .chip { flex: none; }
.pmodal .modal, .pmodal > div { max-width: 720px; }
.pview { position: relative; } .pvx { position: absolute; top: -6px; right: -6px; z-index: 2; background: var(--card); }
.pvimg { position: relative; background: #000; border-radius: 16px; overflow: hidden; display: grid; place-items: center; min-height: 240px; }
.pvimg img { max-width: 100%; max-height: 64vh; display: block; }
.pvnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.pvnav.l { left: 8px; } .pvnav.r { right: 8px; }
.pvmeta { padding: 12px 2px 0; }
.mebar { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #EFE7FF, #E7F7F6); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; text-align: center; padding-bottom: 0; overflow: hidden; }
.pod { display: grid; justify-items: center; gap: 4px; min-width: 0; } .pod b { font-size: .85rem; max-width: 100%; } .pod > .num { font-weight: 800; }
.podbar { width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center; border: 3px solid #151515; border-bottom: 0; }
.p1 .podbar { height: 96px; background: #FFD23F; } .p2 .podbar { height: 70px; background: #C9CED6; } .p3 .podbar { height: 52px; background: #FF9F5A; }
.podno { font-family: stk-bowlby, system-ui; font-size: 1.7rem; color: #151515; }
.lblist { padding: 6px 12px; }
.lbrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.lbrow:last-child { border-bottom: 0; } .lbrow.mine { background: var(--tb); border-radius: 12px; }
.lbno { width: 26px; text-align: center; font-weight: 800; color: var(--muted); }
.pp2 { display: inline-block; margin-right: 8px; white-space: nowrap; }
.ptsgrid { display: grid; gap: 8px; margin-top: 10px; }
.certprev { overflow: hidden; margin: 0 auto; border-radius: 6px; box-shadow: 0 6px 20px rgba(20,30,60,.15); }
.chkrow { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .chkrow:last-child { border-bottom: 0; }
.ov-wall, .ov-board { display: flex; flex-direction: column; gap: 18px; padding: 3vh 4vw; overflow: hidden; }
.wallgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2vw; align-content: start; }
.wf { margin: 0; background: #fff; padding: .7vw .7vw 1vw; border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.25); transform: rotate(var(--r)); position: relative; color: #151515; }
.wf img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 3px; }
.wf figcaption { font-family: stk-marker, system-ui; font-size: 1.1vw; margin-top: .6vw; line-height: 1.25; } .wf figcaption small { display: block; font-family: system-ui; opacity: .6; font-size: .85vw; }
.wf.spot { outline: .4vw solid #FFD23F; } .wfstk { position: absolute; right: -1.6vw; top: -1.6vw; } .wfstk .stkx { width: 6vw; height: 6vw; }
.bdlist { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2vw 3vw; }
.bdrow { display: flex; align-items: center; gap: 1vw; background: rgba(255,255,255,.92); color: #151515; border-radius: 1.2vw; padding: .8vw 1.4vw; font-size: 1.8vw; border: .25vw solid #151515; }
.bdrow b { flex: 1; min-width: 0; } .bdno { font-family: stk-bowlby, system-ui; width: 3vw; text-align: center; }
.bdpts { font-weight: 800; } .bdrow.r1 { background: #FFD23F; } .bdrow.r2 { background: #E3E7EE; } .bdrow.r3 { background: #FFC7A0; }
.releasebar { border-radius: 14px; padding: 2px 12px 12px; background: var(--card2); margin-bottom: 12px; } .releasebar.on { background: #E5F4E4; }
.tplpick { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.tplthumb { flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 14px rgba(20,30,60,.16); }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 14px; max-height: 70vh; overflow-y: auto; padding: 4px; }
.tplcard { border: 2px solid transparent; background: var(--card2); border-radius: 14px; padding: 7px; cursor: pointer; display: grid; gap: 6px; justify-items: center; font: inherit; color: inherit; }
.tplcard.on { border-color: var(--blue); } .tplcard:hover { border-color: var(--line); } .tplcard b { font-size: .82rem; }
.tplimg { border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(20,30,60,.12); }
.sigbox { border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.sigprev { flex: 1; min-width: 120px; height: 52px; display: grid; place-items: center; background: #fff; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; } .sigprev img { max-height: 48px; max-width: 100%; }
.sigpad { width: 100%; height: auto; background: #fff; border: 2px dashed var(--line); border-radius: 14px; touch-action: none; display: block; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wcell { display: grid; gap: 4px; font-size: .82rem; background: var(--card2); padding: 8px 10px; border-radius: 12px; } .wcell input { padding: 6px 8px; }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 8px; }
.modcell { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: visible; background: var(--card); }
.modcell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 13px 13px 0 0; }
.modcell.hid img { opacity: .35; filter: grayscale(1); } .modcell.spot { outline: 3px solid #FFD23F; }
.modcell .spotstk { right: -10px; top: -14px; bottom: auto; } .modcell .spotstk .stkx { width: 54px; height: 54px; }
.modmeta { padding: 8px 10px 10px; } .modmeta .small b { overflow-wrap: anywhere; }

/* ===== UX pass: section hub, crumb bar, badge avatar, bottom nav, pressed states ===== */
button, .btn, .chip, .htile, .stile { -webkit-tap-highlight-color: transparent; }
.btn { transition: transform .08s ease, box-shadow .15s ease, background .15s ease; }
.btn:active, .chip:active, .htile:active, .stile:active, .mybadge:active { transform: translateY(1px) scale(.97); }
.btn.primary { box-shadow: 0 3px 0 rgba(20,40,120,.28), 0 6px 14px rgba(62,123,250,.22); } .btn.primary:active { box-shadow: 0 1px 0 rgba(20,40,120,.3); }
.mehero { align-items: center; }
.mybadge { position: relative; border: 0; background: transparent; padding: 0 0 14px; cursor: pointer; flex: none; display: grid; justify-items: center; }
.mybadge .avatar, .mybadge img, .mybadge > span:first-child { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #3E7BFA, 0 6px 16px rgba(30,60,160,.25); border-radius: 50%; }
.mbchip { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #151515; color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.25); animation: mbpulse 2.4s ease-in-out 3; }
@keyframes mbpulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }
.hub { margin: 12px 0 4px; }
.hubmain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.htile { position: relative; border: 0; border-radius: 18px; padding: 12px 10px; min-height: 92px; cursor: pointer; font: inherit; text-align: left; color: #fff; background: var(--c); display: grid; gap: 6px; align-content: space-between; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000), 0 8px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.htile .tic { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 1.35rem; }
.htile .tlb b { display: block; font-size: .92rem; line-height: 1.15; } .htile .tlb small { display: block; opacity: .88; font-size: .7rem; line-height: 1.2; margin-top: 2px; }
.htile.on { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--c), 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.hubhint { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 6px; }
.hubgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stile { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 4px 8px; cursor: pointer; font: inherit; color: var(--ink); display: grid; justify-items: center; gap: 5px; text-align: center; box-shadow: 0 2px 0 var(--line); min-width: 0; }
.stile .tic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--c) 14%, #fff); }
.stile .tlb b { font-size: .7rem; font-weight: 700; line-height: 1.15; display: block; overflow-wrap: anywhere; }
.stile.on { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000); } .stile.on .tic { background: rgba(255,255,255,.25); }
.htile .dot, .stile .dot { position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff; border-radius: 999px; font-size: .66rem; font-weight: 800; padding: 1px 6px; }
.crumb { position: sticky; top: 56px; z-index: 20; display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 16px rgba(20,30,60,.08); }
.crhome { border: 0; background: var(--card2); border-radius: 12px; padding: 8px 10px; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); flex: none; }
.crhome svg { width: 16px; height: 16px; }
.crcur { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--c); color: #fff; font-weight: 800; border-radius: 12px; padding: 8px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.crmore { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 10px; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.crmore.on { background: var(--ink); color: #fff; } .crmore .chev { display: inline-block; transition: transform .2s; } .crmore.on .chev { transform: rotate(180deg); }
.crpanel { position: sticky; top: 118px; z-index: 19; margin-top: 8px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(20,30,60,.22); animation: crdrop .16s ease-out; }
@keyframes crdrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.homestack { display: flex; flex-direction: column; gap: 12px; } .homestack > .card, .homestack > button.card, .homestack > .fortune { margin: 0; }
.homepair { display: grid; grid-template-columns: 1fr; gap: 12px; } @media (min-width: 720px) { .homepair { grid-template-columns: 1fr 1fr; } }
.bottomnav button { transition: color .15s; } .bottomnav .bni { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 999px; margin: 0 auto 2px; transition: background .15s, transform .15s; }
.bottomnav button.on { color: var(--c) !important; font-weight: 800; } .bottomnav button.on .bni { background: var(--c); color: #fff; font-size: 1.05rem; transform: translateY(-2px); box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 40%, transparent); }
.bottomnav button:active .bni { transform: scale(.92); }
/* photo wall steps */
.howto { background: linear-gradient(120deg, #FFF0F7, #FFF8E7); }
.howsteps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .howsteps > div { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; background: #fff; border-radius: 12px; padding: 8px; }
.pnum2 { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F0438F; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; box-shadow: 0 2px 0 #b42d69; }
.pstep { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; } .pstep b { font-size: .95rem; }
.capwrap { display: flex; flex-wrap: wrap; gap: 6px; } .capwrap .chip { font-size: .78rem; }
.pskv { min-width: 64px; min-height: 40px; display: grid; place-items: center; } .pskv .stkx { width: 60px; height: 60px; }
.pstk { position: absolute; right: -6px; bottom: -6px; pointer-events: none; } .pstk .stkx { width: 52px; height: 52px; } .pstk.big .stkx { width: 84px; height: 84px; } .pstk.big { right: 6px; bottom: 6px; }
.pslimg { position: relative; } .pcell { overflow: visible; } .pcell img { border-radius: 14px; }
/* profile question cards */
.qstack { display: grid; gap: 12px; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: 0 3px 0 var(--line); transition: border-color .2s; }
.qcard.done { border-color: color-mix(in srgb, #2DB36B 55%, var(--line)); }
.qcard header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.qcard h4 { margin: 2px 0 0; font-size: 1rem; } .qcard header p { margin: 2px 0 0; }
.qn { flex: none; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, #3E7BFA, #8E5CF7); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 0 #2B4CC9; }
.qcount { flex: none; font-size: .72rem; font-weight: 800; color: #2DB36B; background: #E5F4E4; border-radius: 999px; padding: 3px 8px; display: none; } .qcount.on { display: inline-block; }
.qcard .chips { gap: 6px; } .qcard .chip { border-radius: 14px; padding: 8px 12px; text-align: left; line-height: 1.25; }
.qcard .chip.on { box-shadow: 0 2px 0 rgba(30,60,160,.35); }
.qcard .chip.on::after { content: " ✓"; font-weight: 800; }
.savebar { position: sticky; bottom: 76px; z-index: 15; margin-top: 12px; padding: 8px; background: color-mix(in srgb, var(--bg, #F3F5FA) 85%, transparent); backdrop-filter: blur(6px); border-radius: 18px; }
.capwrap .morecap { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Phase 3a · mood check ===== */
.ov-mood { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2.4vh; padding: 3vh 4vw; background: linear-gradient(160deg, #FFF8E6, #EAF2FF 60%, #F3EAFF); color: #1B2440; }
.ov-mood .gc-head h2 { margin: .25em 0 0; font-size: clamp(1.3rem, 3vw, 2.8rem); }
.mood-sub { margin: 0; color: #4A5670; font-weight: 600; }
.moodpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mface { border: 0; border-radius: 18px; padding: 12px 4px 10px; background: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--mc) 55%, #000 0%), 0 6px 16px rgba(27,42,74,.10); display: grid; justify-items: center; gap: 4px; font: inherit; font-size: .78rem; font-weight: 700; color: #1B2440; cursor: pointer; transition: transform .12s; border-top: 5px solid var(--mc); }
.mface .me { font-size: 2.2rem; line-height: 1; } .mface:active, .mface.on { transform: translateY(3px); box-shadow: 0 1px 0 var(--mc); background: color-mix(in srgb, var(--mc) 16%, #fff); }
.mood-word input { text-align: center; }
.moodres { display: grid; grid-template-columns: minmax(140px, 1fr) 2.2fr; gap: 3vw; align-items: center; }
.moodavg { display: grid; justify-items: center; gap: 4px; background: #fff; border-radius: 22px; padding: 18px 10px; box-shadow: 0 8px 24px rgba(27,42,74,.10); }
.moodavg .me.big { font-size: clamp(3rem, 8vw, 7rem); line-height: 1; } .moodavg b { font-size: clamp(1.6rem, 3.4vw, 3rem); font-family: var(--display, inherit); }
.moodmine { background: #1B2440; color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .85rem; }
.moodbars { display: grid; gap: 1.2vh; }
.mbar { display: grid; grid-template-columns: 2.4em 1fr 2.4em; align-items: center; gap: 10px; font-size: clamp(1rem, 2vw, 1.8rem); }
.mtrack { height: 1.1em; background: rgba(27,42,74,.08); border-radius: 999px; overflow: hidden; } .mtrack div { height: 100%; border-radius: 999px; transition: width .6s; min-width: 4px; }
.moodwords { display: flex; flex-wrap: wrap; gap: .3em .8em; justify-content: center; font-weight: 800; color: #3B4BC8; font-size: clamp(.9rem, 1.6vw, 1.6rem); text-transform: capitalize; }
.phone-ov .ov-mood { text-align: left; padding: 16px; } .phone-ov .moodres { grid-template-columns: 1fr; } .phone-ov .mbar { font-size: 1rem; } .phone-ov .moodwords { font-size: 1rem; }

/* ===== Phase 3a · commitment card ===== */
.ccard { position: relative; border-radius: 24px; padding: 20px 18px 16px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #FF7A1A 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #8E5CF7 0%, transparent 60%), linear-gradient(140deg, #3E7BFA, #1E2A78); box-shadow: 0 12px 30px rgba(30,42,120,.25); overflow: hidden; }
.ccard::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(255,255,255,.12); }
.ccard .cc-n { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ccard h3 { color: #fff; font-size: 1.35rem; line-height: 1.25; margin: 10px 0 12px; position: relative; z-index: 1; }
.cc-rows { display: grid; gap: 8px; position: relative; z-index: 1; }
.cc-row { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px 10px; font-size: .9rem; } .cc-row .ci { font-size: 1.1rem; } .cc-row small { display: block; opacity: .75; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cc-conf { display: flex; gap: 4px; margin-top: 3px; } .cc-conf i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); } .cc-conf i.on { background: #FFD23F; }
.cc-line { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 4px; position: relative; z-index: 1; }
.cc-line::before { content: ""; position: absolute; left: 16%; right: 16%; top: 13px; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; }
.cc-pt { display: grid; justify-items: center; gap: 3px; font-size: .72rem; font-weight: 700; position: relative; text-align: center; }
.cc-pt span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1E2A78; border: 3px solid rgba(255,255,255,.55); font-size: .85rem; }
.cc-pt.done span { background: #2DB36B; border-color: #fff; } .cc-pt.partly span { background: #E8B400; border-color: #fff; } .cc-pt.notyet span { background: #FF7A1A; border-color: #fff; } .cc-pt.due span { background: #fff; color: #1E2A78; animation: pdpulse 1.4s infinite; }
@keyframes pdpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .7rem; opacity: .8; position: relative; z-index: 1; }
.cc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.duecard { border: 2px solid #FF7A1A; background: linear-gradient(135deg, #FFF3E8, #fff); }
.duecard h3 { margin: 0 0 4px; }
.ckpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; }
.ckpick button { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 6px; font: inherit; font-weight: 700; display: grid; justify-items: center; gap: 4px; cursor: pointer; color: inherit; box-shadow: 0 3px 0 var(--line); }
.ckpick button span { font-size: 1.8rem; } .ckpick button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); box-shadow: 0 1px 0 var(--c); transform: translateY(2px); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.confpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.confpick button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 2px; font: inherit; font-size: .72rem; font-weight: 700; display: grid; justify-items: center; gap: 2px; cursor: pointer; color: inherit; }
.confpick button b { font-size: 1.2rem; } .confpick button.on { border-color: #3E7BFA; background: #EAF2FF; }

/* ===== Phase 3a · My Insights ===== */
.inshero { border-radius: 24px; padding: 18px; color: #fff; background: linear-gradient(135deg, #0FA3B8, #3E7BFA 55%, #8E5CF7); }
.inshero h3 { color: #fff; margin: 0 0 4px; } .inshero p { margin: 0; opacity: .92; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.kpi { background: rgba(255,255,255,.16); border-radius: 16px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; } .kpi b { font-size: 1.5rem; line-height: 1.1; } .kpi span { font-size: .75rem; font-weight: 700; opacity: .9; }
.vsrow { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .vsrow:last-child { border-bottom: 0; }
.vsrow .vl { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; }
.vsbar { position: relative; height: 12px; background: var(--card2); border-radius: 999px; }
.vsbar .mine { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--c, #3E7BFA); }
.vsbar .avg { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: #1B2440; }
.legend { display: flex; gap: 14px; font-size: .75rem; color: var(--muted); margin-top: 6px; } .legend i { display: inline-block; width: 12px; height: 8px; border-radius: 4px; margin-right: 4px; vertical-align: middle; }
.dumb { padding: 10px 0; border-bottom: 1px dashed var(--line); } .dumb:last-child { border-bottom: 0; }
.dumb .dq { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.dtrack { position: relative; height: 26px; margin: 0 10px; } .dtrack::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 3px; background: var(--card2); border-radius: 2px; }
.dline { position: absolute; top: 11px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #FF7A1A, #2DB36B); }
.ddot { position: absolute; top: 4px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(27,42,74,.25); }
.ddot.pre { background: #FF7A1A; } .ddot.post { background: #2DB36B; } .ddot.cls { width: 10px; height: 10px; margin-left: -5px; top: 9px; background: #1B2440; border-width: 2px; }
.dlab { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin: 2px 10px 0; }
.dgain { display: inline-block; background: #E5F4E4; color: #17803E; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 800; margin-left: 6px; }
.dgain.down { background: #FDE8E6; color: #B42318; }
.moodline svg { width: 100%; height: auto; display: block; }
.insnote { background: var(--card2); border-radius: 14px; padding: 10px 12px; font-size: .9rem; margin-top: 8px; }

/* ===== Phase 3a · staff follow-up ===== */
.fu-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0; }
.fu-tile { background: var(--card2); border-radius: 16px; padding: 12px; text-align: center; } .fu-tile b { display: block; font-size: 1.6rem; } .fu-tile span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.ckchip { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: .75rem; font-weight: 800; background: var(--card2); color: var(--muted); white-space: nowrap; }
.ckchip.done { background: #E5F4E4; color: #17803E; } .ckchip.partly { background: #FFF4D6; color: #8A6100; } .ckchip.notyet { background: #FFE9DA; color: #B3530B; } .ckchip.due { background: #EAF2FF; color: #1D4ED8; }
.moodhist { display: grid; gap: 8px; }
.mh { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--card2); }
.mh .mstack { grid-column: 1 / -1; display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(27,42,74,.06); }
.mface { min-width: 0; } .mface span:last-child { font-size: .66rem; overflow-wrap: anywhere; line-height: 1.15; }
#cmdue:empty { display: none; }

/* ===== Live view: projector + phone previews for the trainer ===== */
body.pvmode::after { content: ""; position: fixed; inset: 0; z-index: 999; }
body.pvmode .topbar .seg, body.pvmode #menuBtn, body.pvmode footer { display: none; }
body.mini #sg { display: none !important; }
.liveview .lvhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.nowon { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.nowon .dotlive { width: 10px; height: 10px; border-radius: 50%; background: #E8453C; box-shadow: 0 0 0 0 rgba(232,69,60,.6); animation: pdlive 1.6s infinite; }
@keyframes pdlive { 0% { box-shadow: 0 0 0 0 rgba(232,69,60,.6); } 70% { box-shadow: 0 0 0 9px rgba(232,69,60,0); } 100% { box-shadow: 0 0 0 0 rgba(232,69,60,0); } }
.lvframes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; align-items: end; }
.lvf { display: grid; gap: 6px; } .lvf .lvl { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.lvbox { position: relative; overflow: hidden; border-radius: 12px; background: #0F172A; border: 3px solid #1B2440; }
.lvbox.proj { aspect-ratio: 16 / 9; } .lvbox.phone { aspect-ratio: 9 / 18; border-radius: 22px; border-width: 5px; }
.lvbox iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.lvbox .lvoff { position: absolute; inset: 0; display: grid; place-items: center; color: #9AA3B5; font-size: .8rem; text-align: center; padding: 10px; }
.switcher { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.swb { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 6px 8px; display: grid; justify-items: center; gap: 3px; font: inherit; font-size: .78rem; font-weight: 700; color: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .1s; }
.swb span { font-size: 1.5rem; line-height: 1; } .swb:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.swb.on { border-color: #E8453C; background: #FFF1F0; box-shadow: 0 3px 0 #E8453C; } .swb.on::after { content: "ON SCREEN"; font-size: .58rem; letter-spacing: .06em; color: #E8453C; font-weight: 800; }
.swb:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 999px) { .run > section { order: -1; } .lvframes { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .lvf .lvl span:last-child { display: none; } .lvhead .row { width: 100%; } .lvhead .row .btn { flex: 1; } }

/* ===== Several screens at once (projector + phones) ===== */
.ov-multi { position: relative; display: block; padding: 0; height: 100%; min-height: 100%; background: var(--card); }
.ov-multi .mvtrack { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; } .ov-multi .mvtrack::-webkit-scrollbar { display: none; }
.mpanel { height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; } .mpanel > .ov { flex: 1; min-height: 0; border-radius: 0; }
.mp-join, .mp-lb, .mp-res { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2vh; padding: 3vh 4vw; text-align: left; }
.mp-h { margin-bottom: .5vh; } .mp-jrow { display: flex; gap: 4vw; align-items: center; justify-content: center; flex: 1; } .mp-jrow .qr { width: min(32vh, 26vw); } .mp-code { font-size: clamp(2.6rem, 9vw, 9rem); font-weight: 800; color: var(--blue); letter-spacing: .08em; line-height: 1; margin: 1vh 0; }
.mdots { position: absolute; right: 1.2vw; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 2; }
.mdots i { width: 10px; height: 10px; border-radius: 5px; background: rgba(27,42,74,.22); transition: height .3s, background .3s; } .mdots i.on { background: #E8453C; height: 28px; }
.phone-ov .ov-multi { height: auto; min-height: 0; background: none; } .phone-ov .ov-multi .mvtrack { position: static; overflow: visible; }
.phone-ov .mpanel { height: auto; margin-bottom: 12px; border-radius: 22px; overflow: hidden; border: 2px solid transparent; scroll-margin-top: 80px; } .phone-ov .mpanel.on { border-color: #E8453C; }
.phone-ov .mdots { display: none; } .phone-ov .mp-jrow .qr { width: 140px; } .phone-ov .mp-code { font-size: 2.6rem; }
/* trainer: back-to-console chip on the projector page, enlarged preview, multi builder and scroll control */
.backchip { position: fixed; left: 10px; top: 10px; z-index: 50; background: rgba(27,36,64,.85); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: opacity .4s; } .backchip.fade { opacity: 0; pointer-events: none; }
.lvbox { cursor: zoom-in; } .lvbox .lvzoom { position: absolute; right: 6px; bottom: 6px; z-index: 2; background: rgba(27,36,64,.8); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: .7rem; font-weight: 700; }
.lvbig { position: fixed; inset: 0; z-index: 900; background: rgba(10,15,30,.92); display: flex; flex-direction: column; }
.lvbig-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; }
.lvbig-bar .x { background: #fff; color: #1B2440; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; min-height: 44px; }
.lvbig-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 6px 10px; overflow: hidden; }
.lvbig-stage .lvbox { cursor: default; width: 100%; } .lvbig-stage .lvbox.phone { width: min(100%, 360px); }
.lvbig .switcher { background: var(--card); margin: 0; padding: 10px; border-radius: 18px 18px 0 0; max-height: 40vh; overflow-y: auto; }
.mpick { display: grid; gap: 8px; margin: 10px 0; }
.mpick button { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left; }
.mpick button .ord { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--muted); font-size: .8rem; }
.mpick button.on { border-color: #3E7BFA; background: #EAF2FF; } .mpick button.on .ord { background: #3E7BFA; color: #fff; }
.mscroll { margin-top: 12px; border: 2px solid #E8453C; border-radius: 18px; padding: 10px; background: #FFF8F7; }
.mscroll .mlist { position: relative; height: 210px; overflow-y: auto; scroll-snap-type: y mandatory; display: grid; gap: 8px; padding: 70px 0; border-radius: 12px; background: var(--card); }
.mscroll .mitem { scroll-snap-align: center; margin: 0 10px; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card2); font-weight: 800; transition: transform .2s, background .2s; }
.mscroll .mitem span { font-size: 1.6rem; } .mscroll .mitem.on { background: #E8453C; color: #fff; transform: scale(1.03); }
.ov-multi .mp-h .eyebrow { font-size: clamp(.9rem, 1.7vw, 1.5rem); }
.phone-ov .mpanel > .ov { overflow: visible; padding: 14px 10px; } .phone-ov .mp-lb, .phone-ov .mp-res { align-items: stretch; }
.crow { display: flex; align-items: center; gap: 10px; width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 12px; margin: 6px 0; font: inherit; color: inherit; cursor: pointer; }
.crow .ce { font-size: 1.4rem; } .crow.on { border-color: #2DB36B; background: #F1FAF3; }

/* ===== My page top strip: attendance checkpoints + Chup & PK ===== */
.topstrip { display: grid; gap: 10px; margin: 10px 0 4px; }
.attstrip { padding: 14px 16px; border: 2px solid #3E7BFA22; }
.attsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ast { display: flex; align-items: center; gap: 6px; background: var(--card2); border-radius: 14px; padding: 8px; min-width: 0; font-size: .82rem; }
.ast .an { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: .72rem; font-weight: 800; }
.ast .ae { font-size: 1.1rem; } .ast small { display: block; color: var(--muted); font-size: .7rem; } .ast b { display: block; line-height: 1.1; }
.ast.ok { background: #E5F4E4; } .ast.ok .an { background: #2DB36B; color: #fff; }
.ast.now { background: #EAF2FF; box-shadow: inset 0 0 0 2px #3E7BFA; } .ast.now .an { background: #3E7BFA; color: #fff; }
.profnudge { display: flex; gap: 12px; align-items: center; width: 100%; border: 2px dashed #FF7A1A; background: #FFF6EE; font: inherit; color: inherit; cursor: pointer; }
.homebtn { font-size: 1.1rem; }
.swb.modeb.on::after { content: "✓ IN USE"; }
.ast { flex-direction: column; text-align: center; gap: 3px; padding: 8px 4px; position: relative; } .ast .an { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; } .ast .ae { font-size: 1.4rem; } .ast b { font-size: .8rem; }

/* ===== Console: grouped section tiles, compact build starters ===== */
.cnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cgrp { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 8px; }
.cgl { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 4px 6px; }
.cgt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ctile { position: relative; border: 0; background: var(--card2); border-radius: 14px; padding: 9px 4px 7px; display: grid; justify-items: center; gap: 4px; font: inherit; font-size: .74rem; font-weight: 700; color: var(--ink2); cursor: pointer; box-shadow: 0 2px 0 var(--line); transition: transform .1s; min-width: 0; }
.ctile svg { width: 20px; height: 20px; color: var(--c); } .ctile span { line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.ctile:active { transform: translateY(2px); box-shadow: none; }
.ctile.on { background: var(--c); color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000); } .ctile.on svg { color: #fff; }
.cbub { position: absolute; top: 3px; right: 6px; background: #E8453C; color: #fff; font-style: normal; font-size: .66rem; font-weight: 800; border-radius: 999px; padding: 1px 6px; min-width: 18px; border: 2px solid var(--card); }
@media (max-width: 1100px) { .cnav { grid-template-columns: 1fr; gap: 8px; } .cgrp { padding: 6px 8px 8px; } }
.qstart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.qbtn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 6px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink2); cursor: pointer; box-shadow: 0 2px 0 var(--line); min-width: 0; }
.qbtn svg { color: var(--c); flex: none; } .qbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .qbtn { flex-direction: column; gap: 3px; font-size: .76rem; } }
.addbox { margin-bottom: 14px; } .addbox summary { cursor: pointer; font-weight: 800; margin-bottom: 8px; list-style: none; display: flex; align-items: center; gap: 6px; } .addbox summary::-webkit-details-marker { display: none; }
.addgrid { display: flex; flex-wrap: wrap; gap: 6px; }
/* projector page opened on a phone: stack the header instead of overlapping */
@media (max-width: 760px) { .fhead { flex-wrap: wrap; row-gap: 8px; padding: 12px 12px 0; } .fhead .lft { width: 100%; flex-wrap: wrap; } .fhead .lft .badge { white-space: normal; border-radius: 12px; } .corner { width: 100%; justify-content: space-between; } .corner .qr.sm, .corner .qr.sm + .cd { display: none; } }
.unb, .fab .dotn { display: inline-flex; align-items: center; justify-content: center; background: #E8453C; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 800; line-height: 1.5; border: 2px solid #fff; margin-left: 4px; white-space: nowrap; }

/* ===== Team inbox (console) ===== */
.msgfab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: #1B2440; color: #fff; font: inherit; font-weight: 800; box-shadow: 0 8px 24px rgba(27,36,64,.35); cursor: pointer; }
.msgfab.hot { background: #3E7BFA; animation: pdpulse2 2s infinite; } @keyframes pdpulse2 { 0%, 100% { box-shadow: 0 8px 24px rgba(62,123,250,.35); } 50% { box-shadow: 0 8px 30px rgba(62,123,250,.7); } }
.msgfab .mfc { font-style: normal; background: #E8453C; border-radius: 999px; padding: 1px 8px; font-size: .78rem; border: 2px solid #fff; }
body.ibx-on .msgfab { display: none; }
.ibx-shade { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 880; display: none; } body.ibx-on .ibx-shade { display: block; }
.ibx { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 890; background: var(--bg, #F4F6FA); box-shadow: -10px 0 40px rgba(15,23,42,.25); display: none; flex-direction: column; }
body.ibx-on .ibx { display: flex; }
.ibx-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.ibx-sub, .ibx-f { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px 0; }
.ibx-list { flex: 1; overflow-y: auto; padding: 8px 10px 20px; display: grid; gap: 6px; align-content: start; }
.ibx-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px; font: inherit; color: inherit; cursor: pointer; }
.ibx-row.un { border-color: #3E7BFA; background: #F3F7FF; }
.ibx-mid { flex: 1; min-width: 0; display: grid; gap: 1px; } .ibx-top { display: flex; justify-content: space-between; gap: 6px; } .ibx-top small { color: var(--muted); }
.ibx-course { font-size: .72rem; font-weight: 700; color: #3E7BFA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx-last { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx-n { font-style: normal; background: #E8453C; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 800; }
.ibx-person { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.ibx-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ibx-thread .bub { max-width: 85%; }
.ibx-comp { background: var(--card); border-top: 1px solid var(--line); padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
.ibx-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .ibx-quick .chip { flex: none; }
.bub.del { opacity: .65; text-decoration: line-through; text-decoration-color: rgba(232,69,60,.6); } .bub.del .delmark, .bub.del small { text-decoration: none; }
.delmark { display: block; font-size: .7rem; font-weight: 800; color: #B42318; text-decoration: none; margin-bottom: 2px; }
.bdel { border: 0; background: none; cursor: pointer; font-size: .8rem; opacity: .55; padding: 0 2px; } .bdel:hover { opacity: 1; }
.bub .delnote { font-style: italic; color: var(--muted); }
body:has(.msgfab) #app { padding-bottom: 90px; }
.urgsw { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 8px 12px; border-radius: 12px; background: #FFF1F0; color: #B42318; font-weight: 700; font-size: .84rem; cursor: pointer; }
.urgsw input { width: 18px; height: 18px; accent-color: #E8453C; }
.chatbox .urgsw { margin: 6px 10px 0; }
.bub.urg, .ibx-row.urg { border: 2px solid #E8453C !important; background: #FFF1F0 !important; }
.urgtag { display: inline-block; background: #E8453C; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .68rem; font-weight: 800; margin-right: 4px; }
.msgfab.urgent { background: #E8453C; }
.arbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; } .arbar select { width: auto; min-height: 36px; }

/* ===== Build: bricks, decks, insert lines ===== */
.act-list .brick { position: relative; }
.act-list .brick.indeck { margin-left: 14px; border-left: 3px solid #3E7BFA33; padding-left: 6px; }
.deckhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #EAF2FF; border-radius: 14px; padding: 6px 8px; margin-top: 6px; }
.deckhead .dkt { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; min-width: 0; }
.nhint { font-size: .74rem; color: var(--muted); margin: -2px 0 4px 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insln { display: block; width: 100%; border: 0; background: none; height: 14px; position: relative; cursor: pointer; padding: 0; opacity: .35; transition: opacity .15s, height .15s; }
.insln::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; border-top: 2px dashed #3E7BFA; }
.insln span { position: relative; background: var(--bg, #F4F6FA); color: #3E7BFA; font-weight: 800; font-size: .7rem; padding: 0 8px; }
.insln:hover, .insln:focus { opacity: 1; height: 22px; }
@media (hover: none) { .insln { opacity: .6; } }

/* ===== Projector: floating answer avatars + discreet controls ===== */
.flo { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.flb { position: absolute; bottom: 2vh; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 12px 3px 3px; box-shadow: 0 4px 14px rgba(27,42,74,.18); font-weight: 700; font-size: clamp(.7rem, 1.1vw, 1rem); color: #1B2440; opacity: 0; animation: flup 4.8s ease-out forwards; }
.flb .av, .flb img { width: clamp(26px, 2.6vw, 40px) !important; height: clamp(26px, 2.6vw, 40px) !important; }
@keyframes flup { 0% { opacity: 0; transform: translate(0, 20px) scale(.6); } 12% { opacity: 1; transform: translate(0, 0) scale(1); } 80% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 0), -38vh) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .flb { animation-duration: 2s; } }
.sdock { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 2px; background: rgba(27,36,64,.82); border-radius: 999px; padding: 4px 6px; transition: opacity .5s; backdrop-filter: blur(4px); }
.sdock.fade { opacity: .06; } .sdock:hover { opacity: 1; }
.sdock button { border: 0; background: none; color: #fff; font-size: 1rem; width: 36px; height: 32px; border-radius: 999px; cursor: pointer; } .sdock button:hover { background: rgba(255,255,255,.15); }
.sdock i { width: 1px; height: 18px; background: rgba(255,255,255,.3); margin: 0 4px; }
.sblank { position: fixed; inset: 0; background: #000; z-index: 55; cursor: pointer; }
.notesbox { margin-top: 12px; } .notesbox summary { cursor: pointer; font-weight: 700; margin-bottom: 6px; }

/* ===== Phase 3b · profile test (know.html) ===== */
.knwrap { max-width: 640px; }
.kprog { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; } .kprog > div:first-child { white-space: nowrap; font-size: 14px; }
.kbar { flex: 1; height: 10px; border-radius: 6px; background: #ECEFF5; overflow: hidden; } .kbar i { display: block; height: 100%; background: var(--kc, #8E5CF7); border-radius: 6px; transition: width .3s; }
.kpart { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 2px solid #E3E7EE; border-left: 6px solid var(--kc); border-radius: 18px; padding: 12px; margin-bottom: 10px; cursor: pointer; font: inherit; color: inherit; }
.kpart:active { transform: scale(.99); } .kpart .kic { font-size: 28px; } .kpart .kt b { display: block; font-size: 16px; } .kpart .kt small { display: block; color: #6B7590; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.kchip { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: #F1F3F8; color: #4A5670; white-space: nowrap; } .kchip.ok { background: #E3F7EC; color: #1E8F52; } .kchip.mid { background: #FFF3E0; color: #B26200; }
@media (max-width: 420px) { .kpart { grid-template-columns: auto 1fr auto; } .kpart .pnum2 { display: none; } }
.ktg { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid #EEF1F6; cursor: pointer; }
.ktg input { position: absolute; opacity: 0; } .ktg .sw { width: 44px; height: 26px; border-radius: 99px; background: #D5DAE3; position: relative; transition: .2s; margin-top: 2px; } .ktg .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.ktg input:checked + .sw { background: #2DB36B; } .ktg input:checked + .sw::after { left: 21px; } .ktg input:focus-visible + .sw { outline: 3px solid #9DB8F0; }
.ktg b { display: block; font-size: 14.5px; } .ktg small { color: #6B7590; font-size: 12.5px; }
.kdos .btn.disabled { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; color: #6B7590; text-decoration: underline; font: inherit; cursor: pointer; padding: 8px; }
.kq { max-width: 560px; margin: 0 auto; } .kqh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kqcard { background: #fff; border-radius: 22px; padding: 18px 16px; margin: 14px 0; border: 2px solid #EEF1F6; }
.kgrp { display: inline-block; font-size: 12px; font-weight: 800; color: var(--kc); background: color-mix(in srgb, var(--kc) 12%, #fff); padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
.kask { font-size: 13px; color: #6B7590; font-weight: 700; } .kitem { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 6px 0 16px; min-height: 2.6em; }
.kopts { display: grid; gap: 8px; } .kopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 2px solid #E3E7EE; background: #fff; font: inherit; font-size: 15.5px; font-weight: 700; text-align: left; cursor: pointer; color: inherit; }
.kopt .kdot { width: 28px; height: 28px; border-radius: 50%; background: #F1F3F8; display: grid; place-items: center; font-size: 13px; flex: none; }
.kopt.on { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 10%, #fff); } .kopt.on .kdot { background: var(--kc); color: #fff; }
.kqnav { display: flex; justify-content: space-between; gap: 8px; }
.kdone { text-align: center; } .kconf { font-size: 48px; } .kbig { font-size: 18px; } .krow { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kres { display: grid; grid-template-columns: 46% 1fr 32px; gap: 8px; align-items: center; text-align: left; margin: 7px 0; font-size: 14px; } .kres .kt2 { height: 12px; border-radius: 6px; background: #EEF1F6; overflow: hidden; } .kres .kt2 i { display: block; height: 100%; border-radius: 6px; } .kres b { text-align: right; }
/* ===== Phase 3c · educator profile journey ===== */
.kjourney { padding: 14px; } .kpct { font-weight: 800; color: #8E5CF7; }
.kstops { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; position: relative; }
.kstop { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.kstop .kdisc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #F1F3F8; border: 2px solid #E3E7EE; }
.kstop.ok .kdisc { background: var(--kc); color: #fff; border-color: var(--kc); font-weight: 900; } .kstop.now .kdisc { border-color: var(--kc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kc) 22%, transparent); animation: kpulse 1.8s infinite; }
.kstop .kname { font-size: 9.5px; font-weight: 700; line-height: 1.15; text-align: center; color: #4A5670; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kmini { width: 30px; height: 4px; border-radius: 3px; background: #E3E7EE; overflow: hidden; } .kmini i { display: block; height: 100%; background: var(--kc); }
@keyframes kpulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--kc) 10%, transparent); } }
.kwis { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #FFF8E6, #FFFDF6); border: 1.5px solid #F3DFA2; border-radius: 18px; padding: 12px 14px; margin: 12px 0; } .kwis .kwi { font-size: 30px; line-height: 1; } .kwis p { margin: 0; font-size: 14.5px; font-weight: 600; color: #5A4300; line-height: 1.45; }
.kun { color: #8E5CF7 !important; font-weight: 700; }
.kintro { text-align: center; padding: 22px 18px; } .kch { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kc); } .kbigic { font-size: 64px; line-height: 1.1; margin: 8px 0; }
.kwhy { background: color-mix(in srgb, var(--kc) 9%, #fff); border-radius: 16px; padding: 12px; text-align: left; margin: 12px 0; } .kwhy p { margin: 4px 0 0; }
.kmeta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #4A5670; margin-bottom: 14px; }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; } .kpick { border: 2px solid #E3E7EE; background: #fff; border-radius: 99px; padding: 9px 13px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: inherit; min-height: 44px; } .kpick.on { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 12%, #fff); } .kpick.on::before { content: "✓ "; }
.kslide { margin: 10px 0; } .kslide label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .kslide output { font-weight: 800; color: var(--kc); white-space: nowrap; } .kslide input { width: 100%; accent-color: var(--kc); height: 30px; }
.kcare { text-align: center; } .khelp { display: grid; gap: 8px; margin: 12px 0; text-align: left; } .khelp div { background: #E9F8EF; border-radius: 12px; padding: 10px 12px; } .khelp b { display: block; font-size: 16px; } .khelp span { font-size: 13px; color: #3C4E72; }
/* ===== Chop & PK wisdom card: bigger, clearer ===== */
.fortune.big { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 16px 44px 16px 14px; background: linear-gradient(135deg, #FFF4D6 0%, #FFE7B3 100%); border: 2px solid #F2C86B; box-shadow: none; }
.fortune.big .fic { width: 74px; height: 74px; display: grid; place-items: center; font-size: 58px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.06)); }
.fortune.big .fic svg { width: 74px; height: 74px; }
.fortune.big .tag { display: block; font-size: .9rem; color: #B23A12; letter-spacing: .05em; } .fortune.big .tag small { display: block; font-weight: 700; color: #8A5A00; letter-spacing: 0; font-size: .78rem; margin-top: 1px; }
.fortune.big p { font-size: 1.05rem; font-weight: 700; color: #3A2A00; }
/* ===== Break screens: bigger art and title ===== */
.ov-screen .ov-art { flex: 0 1 46%; max-width: 46%; }
.ov-screen .ov-t { font-size: clamp(2.8rem, 7.5vw, 8rem); font-weight: 900; letter-spacing: -.01em; }
.ov-screen .ov-l2, .ov-timer .ov-l2 { font-size: clamp(1.3rem, 2.8vw, 2.6rem); font-weight: 700; }
.ov-timer .ov-t { font-size: clamp(2.8rem, 7.5vw, 8rem); font-weight: 900; }
.phone-ov .ov-screen .ov-art { max-width: 200px; } .phone-ov .ov-screen .ov-t, .phone-ov .ov-timer .ov-t { font-size: 2.2rem; }
.ksamp { padding: 14px; } .ksl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ksc { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid #DADCE0; border-radius: 14px; padding: 10px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #E8F0FE, #fff); } .ksc span { font-size: 22px; } .ksc b { font-size: 13.5px; } .ksc small { font-size: 11.5px; color: #5F6368; line-height: 1.25; }

/* discreet footer links on every page: Kenali Diri + staff login */
.credit .fnav { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; } .credit .fnav a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border-radius: 99px; font-size: 12px; font-weight: 700; padding: 0 12px; opacity: .8; }
.credit .kdlink { background: #E8F0FE; color: #1A73E8; padding: 0 10px !important; font-size: 15px !important; } .credit .stafflg { background: #3C4043; color: #fff !important; } .credit .fnav a:hover { opacity: 1; }
.kdadm { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; margin-bottom: 14px; background: linear-gradient(135deg, #E8F0FE, #fff); } .kdadm span { font-size: 30px; } .kdadm small { display: block; color: #5F6368; } .kdadm i { margin-left: auto; font-style: normal; background: #D93025; color: #fff; border-radius: 99px; padding: 2px 9px; font-weight: 800; } .kdadm i:empty { display: none; }
.kdcta { display: block; text-decoration: none; color: inherit; margin-top: 16px; border: 2px solid #1A73E8; background: linear-gradient(180deg, #F3F8FF, #fff); position: relative; }
.kdcta .kdor { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); } .kdcta .kdor span { background: #fff; color: #5F6368; border: 1px solid #DADCE0; border-radius: 99px; padding: 2px 12px; font-size: .8rem; font-weight: 700; }
.kdcta .kdrow { display: flex; gap: 14px; align-items: flex-start; } .kdcta h2 { margin: 2px 0 4px; font-size: 1.25rem; } .kdcta p { margin: 0 0 12px; }
.kdring { flex: none; width: 52px; height: 52px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid #1A73E8; display: grid; place-items: center; font-size: 24px; }
.kdcta .kdgo { margin-top: 4px; } .kdcta:hover { box-shadow: 0 4px 14px rgba(26,115,232,.18); }
.qsrc { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; } .qnote { display: block; margin-top: 4px; }
.swb[data-sw="brkgo"] { background: #FEF7E0; border-color: #F29900; box-shadow: 0 3px 0 #F29900; } .swb[data-sw="dlang"] { background: #E8F0FE; border-color: #1A73E8; }
.deckcont { margin: 2px 0 2px 18px; padding: 2px 10px; border-left: 3px solid #C6DAFC; font-weight: 600; }
.opt:nth-child(4n+3) { --c: #FBBC04; color: #202124; } .opt:nth-child(4n+3) .k, .opt:nth-child(4n+3) span:first-child { color: #202124; }
