/* ==========================================================================
   Be Track — acompanhamento semanal v2 (check in, relatório, painel, anamnese)
   Layout do protótipo v2 com a paleta da Be Track: tudo deriva de --bt-primary e
   --bt-accent, então a marca própria de cada organização continua valendo.
   Alvos de toque de no mínimo 44px; telas do aluno pensadas para celular.
   ========================================================================== */

:root {
    --tk-deep: color-mix(in srgb, var(--bt-primary) 78%, #000);
    --tk-deep-2: color-mix(in srgb, var(--bt-primary) 62%, #000);
    --tk-soft: color-mix(in srgb, var(--bt-primary) 10%, var(--bt-surface));
    --tk-soft-2: color-mix(in srgb, var(--bt-primary) 18%, var(--bt-surface));
    --tk-accent-soft: color-mix(in srgb, var(--bt-accent) 12%, var(--bt-surface));
    --tk-accent-ink: color-mix(in srgb, var(--bt-accent) 70%, #000);
    --tk-red: #b3261e;
    --tk-red-soft: #fbe9e7;
    --tk-yellow: #b98900;
    --tk-yellow-soft: #fdf3d6;
    --tk-green: #2e7d4f;
    --tk-gray: #8a918b;
    --tk-line: var(--bt-border);
    --tk-radius: 16px;
}

/* ---------- Assistente (check in e anamnese) ---------- */
.tk-wizard { max-width: 680px; margin: 0 auto; padding: 22px 16px 64px; }
.tk-wizard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 12px; }
.tk-wizard__top h1 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin: 0; letter-spacing: -.01em; }
.tk-wizard__top span { color: var(--bt-text-muted); white-space: nowrap; }
.tk-steps { display: flex; gap: 6px; margin: 4px 0 22px; }
.tk-steps > span { flex: 1; height: 7px; border-radius: 99px; background: var(--tk-soft-2); }
.tk-steps > span.is-done { background: var(--bt-primary); }
.tk-steps > span.is-current { background: var(--bt-accent); }
.tk-eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--tk-accent-ink); margin: 0 0 6px; }
.tk-q { margin: 26px 0; border: 0; padding: 0; min-width: 0; }
.tk-q > legend, .tk-q__title { font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 700; line-height: 1.25; margin: 0 0 6px; padding: 0; color: var(--bt-text); }
.tk-q__hint { color: var(--bt-text-muted); margin: 0 0 12px; font-size: .95rem; }
.tk-opts { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.tk-opts--wide { grid-template-columns: 1fr; }
.tk-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-opts--n { grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); }
.tk-opt {
    min-height: 50px; padding: 11px 14px; border: 1px solid var(--tk-line); border-radius: 13px;
    background: var(--bt-surface); color: var(--bt-text); font: inherit; font-weight: 600; cursor: pointer; text-align: center;
    transition: background-color .12s ease, border-color .12s ease;
}
.tk-opts--wide .tk-opt { text-align: left; }
.tk-opt:hover { border-color: var(--bt-primary); }
.tk-opt.is-on { background: var(--tk-deep); border-color: var(--tk-deep); color: #fff; }
.tk-opt small { display: block; font-weight: 500; opacity: .8; font-size: .8rem; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips .tk-opt { flex: 0 0 auto; min-height: 46px; }
.tk-reveal { border: 2px solid color-mix(in srgb, var(--bt-primary) 35%, var(--bt-surface)); border-radius: 18px; background: var(--bt-surface); padding: 16px; margin: 16px 0; }
.tk-reveal > .tk-reveal__label { font-size: .85rem; font-weight: 700; color: var(--bt-text-muted); margin: 0 0 4px; }
.tk-reveal .tk-q { margin: 10px 0 4px; }
.tk-tip { background: var(--tk-soft); border-radius: 12px; padding: 10px 12px; color: var(--bt-text); font-size: .92rem; margin: 10px 0; }
.tk-field { display: block; margin: 12px 0; }
.tk-field > span { display: block; font-weight: 650; margin-bottom: 6px; }
.tk-field input, .tk-field textarea, .tk-field select {
    width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--tk-line); border-radius: 12px;
    background: var(--bt-surface); color: var(--bt-text); font: inherit;
}
.tk-field textarea { min-height: 96px; resize: vertical; }
.tk-two { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-line { border: 1px solid var(--tk-line); border-radius: 18px; background: var(--bt-surface); padding: 14px; margin: 12px 0; }
.tk-line__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tk-line__head strong { font-size: 1.05rem; }
.tk-stepper { display: inline-flex; align-items: center; gap: 8px; color: var(--bt-text-muted); }
.tk-stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--tk-line); background: var(--bt-surface); color: var(--bt-text); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.tk-stepper strong { min-width: 1.6em; text-align: center; color: var(--bt-text); font-size: 1.15rem; }
.tk-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tk-scale .tk-opt { padding: 10px 0; }
.tk-scale__ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--bt-text-muted); margin-top: 6px; }
.tk-scale-row { margin: 18px 0; }
.tk-scale-row > strong { display: block; margin-bottom: 8px; }
.tk-actions { display: flex; gap: 10px; margin: 30px 0 10px; }
.tk-actions > .bt-btn { flex: 1; min-height: 52px; }
.tk-actions > .bt-btn + .bt-btn { margin-left: 0; }
.tk-cta { background: var(--bt-accent); color: #1c1005; border-color: var(--bt-accent); }
.tk-cta:hover { filter: brightness(1.05); }
.tk-link-btn { background: none; border: 0; color: var(--bt-text-muted); text-decoration: underline; font: inherit; cursor: pointer; min-height: 44px; padding: 0 6px; }
.tk-error { background: var(--tk-red-soft); color: #7a1912; border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.tk-ok { background: var(--tk-soft); color: var(--bt-text); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.tk-welcome { background: var(--tk-deep); color: #fff; border-radius: 22px; padding: 22px; margin: 6px 0 18px; }
.tk-welcome h2 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.tk-welcome p { margin: 0; opacity: .92; }
.tk-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; background: var(--tk-soft); color: var(--bt-text); }
.tk-tag--accent { background: var(--tk-accent-soft); color: var(--tk-accent-ink); }
.tk-tag--red { background: var(--tk-red-soft); color: var(--tk-red); }
.tk-tag--yellow { background: var(--tk-yellow-soft); color: #7d5d00; }
.tk-tag--deep { background: var(--tk-deep); color: #fff; }

/* ---------- Relatório do aluno ---------- */
.tk-report { max-width: 720px; margin: 0 auto; padding: 18px 16px 48px; }
.tk-report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 6px 0 16px; }
.tk-report__head h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); margin: 2px 0 0; letter-spacing: -.02em; }
.tk-muted { color: var(--bt-text-muted); }
.tk-streak { display: inline-flex; align-items: center; gap: 6px; background: var(--tk-deep); color: #fff; padding: 9px 14px; border-radius: 99px; font-weight: 700; white-space: nowrap; }
.tk-hero { background: var(--tk-deep); color: #fff; border-radius: 24px; padding: 22px; }
.tk-hero__top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.tk-hero__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .78; margin: 0 0 6px; }
.tk-hero__text { font-size: 1.05rem; margin: 0; }
.tk-hero hr { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 18px 0; }
.tk-ring { position: relative; width: 132px; height: 132px; }
.tk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tk-ring__value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tk-ring__value strong { font-size: 2.2rem; line-height: 1; }
.tk-ring__value small { font-size: .75rem; opacity: .8; }
.tk-level { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-level__badge { background: var(--bt-accent); color: #1c1005; border-radius: 99px; padding: 5px 12px; font-weight: 750; font-size: .9rem; }
.tk-level__name { font-size: 1.35rem; font-weight: 750; flex: 1; }
.tk-level__xp { color: color-mix(in srgb, var(--bt-accent) 55%, #fff); font-weight: 750; }
.tk-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin: 12px 0 6px; }
.tk-bar > span { display: block; height: 100%; background: var(--bt-accent); border-radius: 99px; }
.tk-bar--light { background: var(--tk-soft-2); }
.tk-bar--light > span { background: var(--bt-primary); }
.tk-bar--warn > span { background: var(--bt-accent); }
.tk-bar__ends { display: flex; justify-content: space-between; font-size: .85rem; opacity: .85; gap: 10px; }
.tk-msg { border: 2px solid var(--bt-accent); background: var(--tk-accent-soft); border-radius: 20px; padding: 18px; margin: 16px 0; }
.tk-msg--calm { border-color: color-mix(in srgb, var(--bt-primary) 35%, var(--bt-surface)); background: var(--tk-soft); }
.tk-msg h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.tk-msg p { margin: 0; line-height: 1.6; }
.tk-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 24px 0 10px; }
.tk-section-title h2 { font-size: 1.35rem; margin: 0; }
.tk-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-pillar { display: block; border: 1px solid var(--tk-line); border-radius: 18px; background: var(--bt-surface); padding: 14px; text-decoration: none; color: inherit; }
.tk-pillar:hover { border-color: var(--bt-primary); }
.tk-pillar__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 28px; }
.tk-pillar__value { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 2px; }
.tk-pillar__value strong { font-size: 1.9rem; letter-spacing: -.02em; }
.tk-pillar.is-attention { border: 2px solid var(--bt-accent); background: var(--tk-accent-soft); }
.tk-pillar.is-attention .tk-pillar__value strong { color: var(--tk-accent-ink); }
.tk-trend { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.tk-trend--up { color: var(--tk-green); }
.tk-trend--down { color: var(--tk-accent-ink); }
.tk-card { border: 1px solid var(--tk-line); background: var(--bt-surface); border-radius: 20px; padding: 18px; margin: 14px 0; }
.tk-card h2, .tk-card h3 { margin-top: 0; }
.tk-bullets { list-style: none; padding: 0; margin: 0; }
.tk-bullets li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--tk-line); }
.tk-bullets li:last-child { border-bottom: 0; }
.tk-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; margin-top: .45em; background: var(--tk-gray); display: inline-block; }
.tk-dot--accent { background: var(--bt-accent); }
.tk-dot--primary { background: var(--bt-primary); }
.tk-dot--red { background: var(--tk-red); }
.tk-dot--yellow { background: var(--tk-yellow); }
.tk-dot--green { background: var(--tk-green); }
.tk-dot--gray { background: var(--tk-gray); }
.tk-dot--dashed { background: transparent; border: 2px dashed var(--tk-green); }
.tk-big-link { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 56px; border: 2px solid var(--tk-deep); border-radius: 18px; color: var(--bt-text); font-weight: 750; text-decoration: none; margin: 18px 0 8px; }
.tk-center { text-align: center; }
.tk-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--bt-text); font-weight: 650; text-decoration: none; }
.tk-detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 12px 0; }
.tk-detail-head h1 { font-size: clamp(2rem, 7vw, 2.6rem); margin: 0; }
.tk-detail-head .tk-big { font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tk-item { border: 1px solid var(--tk-line); border-radius: 16px; padding: 12px 14px; margin: 8px 0; background: var(--bt-surface); }
.tk-item__row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-top: 2px; }
.tk-up { background: var(--tk-deep); color: #fff; border-radius: 22px; padding: 18px; margin: 16px 0; }
.tk-up h3 { color: color-mix(in srgb, var(--bt-accent) 70%, #fff); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.tk-up ul { list-style: none; padding: 0; margin: 0; }
.tk-up li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.tk-up li:last-child { border-bottom: 0; }
.tk-up strong { white-space: nowrap; }
.tk-range { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 14px; }
.tk-range .tk-opt { min-height: 44px; padding: 6px 4px; font-size: .85rem; white-space: nowrap; }

/* Gráficos de barras (SVG simples, com texto alternativo). */
.tk-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 22px; position: relative; }
.tk-bars__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.tk-bars__bar { width: 100%; max-width: 88px; border-radius: 10px 10px 4px 4px; background: var(--tk-soft-2); min-height: 4px; position: relative; }
.tk-bars__bar.is-low { background: color-mix(in srgb, var(--bt-accent) 35%, var(--bt-surface)); }
.tk-bars__bar.is-current { background: var(--bt-primary); }
.tk-bars__bar.is-current.is-low { background: var(--bt-accent); }
.tk-bars__bar.is-blank { background: transparent; border: 2px dashed var(--tk-line); }
.tk-bars__val { font-size: .8rem; font-weight: 700; color: var(--bt-text-muted); }
.tk-bars__lbl { font-size: .78rem; color: var(--bt-text-muted); white-space: nowrap; }
.tk-chart { width: 100%; height: auto; display: block; }
.tk-chart text { fill: var(--bt-text-muted); font-size: 11px; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--bt-text-muted); margin-top: 8px; }
.tk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tk-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--tk-soft-2); }

/* Medalhas e trilha. */
.tk-medals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-medals--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-medal { background: var(--tk-soft); border-radius: 18px; padding: 14px 10px; text-align: center; }
.tk-medal h4 { margin: 8px 0 4px; font-size: 1rem; }
.tk-medal p { margin: 0; font-size: .85rem; color: var(--bt-text-muted); }
.tk-medal strong { display: block; margin-top: 6px; font-size: .88rem; }
.tk-medal__badge { width: 76px; height: 76px; margin: 0 auto; position: relative; }
.tk-medal__badge svg { width: 100%; height: 100%; }
.tk-medal__badge span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.tk-tier--bronze { color: #9a5b2c; }
.tk-tier--silver { color: #7c8186; }
.tk-tier--gold { color: #b98900; }
.tk-trail { list-style: none; padding: 0; margin: 0; }
.tk-trail li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; }
.tk-trail li.is-current { background: var(--tk-accent-soft); font-weight: 750; }
.tk-trail li > span:first-child { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tk-soft-2); font-weight: 750; }
.tk-trail li.is-reached > span:first-child { background: var(--bt-primary); color: #fff; }
.tk-trail li.is-current > span:first-child { background: var(--bt-accent); color: #1c1005; }
.tk-trail li > span:nth-child(2) { flex: 1; }
.tk-kv { list-style: none; margin: 0; padding: 0; }
.tk-kv li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--tk-line); }
.tk-kv li:last-child { border-bottom: 0; }
.tk-kv li > span:first-child { color: var(--bt-text-muted); }
.tk-kv li > strong, .tk-kv li > span:last-child { text-align: right; }
.tk-rank { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tk-rank__pos { font-size: 3rem; font-weight: 800; line-height: 1; }

/* Comemoração. */
.tk-celebrate { background: var(--tk-deep); color: #fff; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; }
.tk-celebrate__inner { max-width: 440px; width: 100%; }
.tk-celebrate h1 { color: #fff; font-size: clamp(2rem, 8vw, 2.6rem); margin: 18px 0 10px; }
.tk-celebrate__medal { width: 170px; height: 170px; border-radius: 50%; margin: 18px auto; display: grid; place-items: center; background: var(--bt-accent); box-shadow: 0 0 0 22px rgba(255,255,255,.08); color: var(--tk-deep); }
.tk-celebrate__xp { font-size: 2.4rem; font-weight: 800; color: color-mix(in srgb, var(--bt-accent) 60%, #fff); margin: 18px 0; }
.tk-celebrate .tk-eyebrow { color: color-mix(in srgb, var(--bt-accent) 70%, #fff); }

/* ---------- Painel do profissional ---------- */
.tk-panel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 140px); }
.tk-side { background: var(--bt-surface-2); border-right: 1px solid var(--tk-line); padding: 20px 16px; }
.tk-side h2 { font-size: 1.3rem; }
.tk-main { padding: 22px clamp(14px, 3vw, 32px) 48px; min-width: 0; container-type: inline-size; }
.tk-filter-label { font-weight: 700; font-size: .85rem; margin: 14px 0 8px; }
.tk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--tk-line); background: var(--bt-surface); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; color: var(--bt-text); }
.tk-pill.is-on { background: var(--tk-deep); border-color: var(--tk-deep); color: #fff; }
.tk-legend-box { background: var(--bt-surface); border-radius: 14px; padding: 10px 12px; margin: 14px 0; font-size: .84rem; }
.tk-legend-box div { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.tk-group-title { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tk-accent-ink); margin: 18px 0 8px; }
.tk-student { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px; border: 1px solid var(--tk-line); border-radius: 14px; background: var(--bt-surface); margin: 6px 0; color: var(--bt-text); text-decoration: none; min-height: 56px; }
.tk-student:hover { border-color: var(--bt-primary); }
.tk-student.is-selected { background: var(--tk-deep); border-color: var(--tk-deep); color: #fff; }
.tk-student.is-pending, .tk-student.is-vacation { border-style: dashed; }
.tk-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tk-soft-2); color: var(--bt-text); font-weight: 750; font-size: .9rem; }
.tk-student.is-selected .tk-avatar { background: rgba(255,255,255,.2); color: #fff; }
.tk-student__body { flex: 1; min-width: 0; }
.tk-student__body strong { display: block; }
.tk-student__body small { display: block; color: var(--bt-text-muted); font-size: .8rem; line-height: 1.3; }
.tk-student.is-selected .tk-student__body small { color: rgba(255,255,255,.8); }
.tk-student__num { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.tk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tk-stat { border: 1px solid var(--tk-line); border-radius: 18px; background: var(--bt-surface); padding: 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tk-stat.is-on { border: 2px solid var(--tk-deep); }
.tk-stat span { display: block; color: var(--bt-text-muted); font-size: .85rem; }
.tk-stat strong { display: block; font-size: 1.9rem; letter-spacing: -.02em; margin: 2px 0; }
.tk-stat small { font-weight: 650; font-size: .8rem; }
.tk-chipbox { border: 2px solid var(--tk-deep); border-radius: 18px; padding: 12px; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bt-surface); }
.tk-chipbox > strong { margin-right: 4px; }
.tk-chipbox a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tk-line); border-radius: 99px; padding: 6px 12px; text-decoration: none; color: var(--bt-text); font-size: .88rem; }
.tk-milestones { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--tk-soft); border-radius: 16px; padding: 12px 14px; margin: 10px 0; flex-wrap: wrap; }
.tk-student-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-top: 2px solid var(--tk-deep); padding-top: 18px; margin-top: 18px; flex-wrap: wrap; }
.tk-student-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.tk-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--tk-line); margin: 16px 0; scrollbar-width: thin; }
.tk-tabs a { padding: 11px 13px; white-space: nowrap; text-decoration: none; color: var(--bt-text-muted); font-weight: 650; border-bottom: 3px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.tk-tabs a.is-on { color: var(--bt-text); border-bottom-color: var(--tk-deep); }
.tk-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 16px; }
.tk-quick > strong { margin-right: 4px; }
.tk-blocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tk-block { border: 1px solid var(--tk-line); border-top: 5px solid var(--tk-green); border-radius: 16px; background: var(--bt-surface); padding: 12px; min-width: 0; }
.tk-block--yellow { border-top-color: var(--tk-yellow); }
.tk-block--red { border-top-color: var(--tk-red); }
.tk-block--gray { border-top-color: var(--tk-gray); }
.tk-block span { display: block; color: var(--bt-text-muted); font-size: .85rem; }
.tk-block strong { display: block; font-size: 1.45rem; margin: 2px 0; overflow-wrap: anywhere; }
.tk-block small { display: block; font-size: .8rem; font-weight: 650; }
.tk-alert { border: 2px solid var(--tk-line); border-radius: 18px; padding: 14px; margin: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; background: var(--bt-surface); }
.tk-alert--red { border-color: var(--tk-red); background: var(--tk-red-soft); }
.tk-alert--yellow { border-color: var(--tk-yellow); background: var(--tk-yellow-soft); }
.tk-alert--info { border-color: color-mix(in srgb, var(--bt-primary) 25%, var(--bt-surface)); background: var(--tk-soft); grid-template-columns: 1fr; }
.tk-alert h4 { margin: 8px 0 6px; font-size: 1.08rem; }
.tk-alert p { margin: 4px 0; }
.tk-alert__status { display: flex; flex-direction: column; gap: 6px; }
.tk-alert__status .bt-btn { min-height: 40px; width: 100%; }
.tk-alert__status .bt-btn + .bt-btn { margin-left: 0; }
.tk-copy { display: flex; gap: 10px; align-items: flex-start; background: var(--bt-surface); border-radius: 12px; padding: 10px; margin-top: 8px; border: 1px solid var(--tk-line); }
.tk-copy p { flex: 1; margin: 0; font-size: .92rem; }
.tk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tk-pillar-rows { list-style: none; padding: 0; margin: 0; }
.tk-pillar-rows li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 46px 40px; gap: 10px; align-items: center; padding: 6px 0; }
.tk-pillar-rows .tk-bar { margin: 0; }
.tk-pillar-rows li.is-attention { color: var(--tk-accent-ink); font-weight: 700; }
.tk-hooper { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, #7fc8b6, #d9de7a 45%, #f0c95a 55%, #e88b4e 80%, #c4432f); margin: 22px 0 8px; }
.tk-hooper__band { position: absolute; top: -5px; bottom: -5px; border: 2px solid var(--bt-text); border-radius: 8px; }
.tk-hooper__now { position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--bt-text); }
.tk-hooper__now span { position: absolute; top: -20px; left: -6px; font-size: .78rem; font-weight: 750; }
.tk-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tk-mini > div { background: var(--tk-soft); border-radius: 12px; padding: 10px; }
.tk-mini > div.is-worst { background: var(--tk-yellow-soft); }
.tk-mini strong { display: block; font-size: 1.4rem; }
.tk-mini span, .tk-mini small { display: block; font-size: .82rem; color: var(--bt-text-muted); }
.tk-table { width: 100%; border-collapse: separate; border-spacing: 6px 6px; font-size: .9rem; }
.tk-table th { text-align: left; font-weight: 650; color: var(--bt-text); }
.tk-table thead th { text-align: center; color: var(--bt-text-muted); font-weight: 600; }
.tk-table td { text-align: center; padding: 6px; border-radius: 8px; }
.tk-table td.is-ok { background: var(--tk-soft); }
.tk-table td.is-miss { background: var(--tk-accent-soft); }
.tk-table td.is-tag { background: var(--bt-surface-2); }
.tk-scroll { overflow-x: auto; }
.tk-notes { list-style: none; padding: 0; margin: 0 0 10px; }
.tk-notes li { background: var(--tk-soft); border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.tk-modal { position: fixed; inset: 0; background: rgba(15,20,16,.45); display: grid; place-items: center; z-index: 90; padding: 16px; }
.tk-modal__box { background: var(--bt-surface); border-radius: 22px; padding: 22px; max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; }
.tk-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-modal__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tk-line); background: var(--bt-surface); font-size: 1.3rem; cursor: pointer; }
.tk-timeline { width: 100%; border-collapse: separate; border-spacing: 5px; }
.tk-timeline th { text-align: left; font-weight: 650; white-space: nowrap; padding-right: 8px; }
.tk-timeline thead th { text-align: center; color: var(--bt-text-muted); font-weight: 600; font-size: .8rem; }
.tk-timeline td { height: 38px; min-width: 42px; border-radius: 8px; background: var(--bt-surface-2); text-align: center; font-weight: 700; font-size: .85rem; }
.tk-timeline td.i1 { background: #e7ecb8; } .tk-timeline td.i3 { background: #f2d36a; } .tk-timeline td.i4 { background: #e8954f; color: #fff; } .tk-timeline td.i7 { background: var(--tk-red); color: #fff; }
.tk-timeline td.free { background: var(--tk-soft); color: var(--tk-green); font-weight: 600; font-size: .75rem; }
.tk-timeline td.ill { background: #dde2f3; font-size: .75rem; }
.tk-episodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.tk-episode { border: 2px solid var(--tk-line); border-radius: 18px; padding: 16px; background: var(--bt-surface); }
.tk-episode.is-active { border-color: var(--tk-yellow); }
.tk-episode.is-returned { border-color: var(--tk-red); }
.tk-episode__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-steps-list { list-style: none; padding: 0; counter-reset: s; }
.tk-steps-list li { counter-increment: s; display: flex; gap: 12px; margin: 10px 0; }
.tk-steps-list li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--tk-deep); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .85rem; }
.tk-patterns { background: var(--tk-accent-soft); border: 1px solid color-mix(in srgb, var(--bt-accent) 35%, var(--bt-surface)); border-radius: 16px; padding: 14px; margin-top: 12px; }
.tk-rules-table { width: 100%; border-collapse: collapse; }
.tk-rules-table th, .tk-rules-table td { padding: 8px; border-bottom: 1px solid var(--tk-line); text-align: left; vertical-align: top; }
.tk-rules-table input { width: 72px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--tk-line); border-radius: 10px; background: var(--bt-surface); color: var(--bt-text); font: inherit; }
.tk-rules-table textarea { width: 100%; min-height: 84px; padding: 8px; border: 1px solid var(--tk-line); border-radius: 10px; font: inherit; background: var(--bt-surface); color: var(--bt-text); }
.tk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

/* O detalhe do aluno se adapta à largura que sobra ao lado da lista (não só à tela). */
@container (max-width: 760px) {
    .tk-grid2 { grid-template-columns: 1fr; }
    .tk-alert { grid-template-columns: 1fr; }
    .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
    .tk-panel { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 1100px) {
    .tk-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .tk-panel { grid-template-columns: 1fr; }
    .tk-side { border-right: 0; border-bottom: 1px solid var(--tk-line); }
    .tk-side__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
    .tk-side__list .tk-student { min-width: 220px; margin: 0; }
    .tk-side__list .tk-group-title { display: none; }
    .tk-grid2 { grid-template-columns: 1fr; }
    .tk-alert { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .tk-blocks, .tk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tk-hero__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .tk-two { grid-template-columns: 1fr; }
    .tk-pillar-rows li { grid-template-columns: 96px minmax(0, 1fr) 42px; }
    .tk-pillar-rows li > :last-child { display: none; }
    .tk-medals--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
    .tk-side, .tk-quick, .tk-alert__status, .tk-tabs { display: none !important; }
    .tk-panel { display: block; }
}

/* Caixas de marcar dentro dos cartões do acompanhamento: texto legível e alvo de toque maior. */
.tk-card .bt-check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--bt-text); line-height: 1.45; margin: 10px 0; cursor: pointer; }
.tk-card .bt-check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--bt-primary); }
