/* Konkour desk, student page and family report (ts_konkur). Loaded after ts_app/app.css on pages that set k_css; uses
   its tokens (--brand, --card, --ink...) and its classes. Phone first: the desk side bar becomes a bottom tab bar under
   980 px. Plain CSS, logical properties, no framework. */

/* ------------------------------------------------------------------ frame */
[data-mode="konkur"] .ta-main { max-width: 1180px; padding-bottom: calc(var(--tabbar) + var(--safe-b) + 28px); }
.k-app { display: block; }
.k-body { min-width: 0; }
.k-side { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 0 8px var(--safe-b);
          background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(16px);
          -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.k-side .k-brand, .k-side__cal { display: none; }
.k-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tabbar); max-width: 560px; margin: 0 auto; }
.k-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3);
           font-size: 12px; font-weight: 700; min-height: 44px; }
.k-nav svg { width: 24px; height: 24px; }
.k-nav a[aria-current="page"] { color: var(--brand); }

.k-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.k-brand__mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; font-weight: 900;
                 font-size: 20px; color: #fff; background: conic-gradient(from 210deg, var(--brand), var(--brand-2), #ffb36b, var(--brand)); }
.k-brand__mark--lg { width: 72px; height: 72px; border-radius: 24px; font-size: 34px; margin: 0 auto; box-shadow: 0 20px 40px -18px var(--glow); }
.k-brand__t { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.k-brand__t b { font-size: 15px; font-weight: 800; }
.k-brand__t small { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 980px) {
    [data-mode="konkur"] .ta-main { padding: 24px 24px 40px; }
    .k-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; }
    .k-side { position: sticky; top: 24px; inset: auto; padding: 18px; border-radius: var(--r); border: 0; background: var(--card);
              box-shadow: var(--sh); backdrop-filter: none; display: flex; flex-direction: column; gap: 18px; }
    .k-side .k-brand, .k-side__cal { display: flex; }
    .k-nav { grid-auto-flow: row; height: auto; gap: 4px; max-width: none; margin: 0; }
    .k-nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; color: var(--ink-2); }
    .k-nav a:hover { background: var(--bg); color: var(--ink); }
    .k-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
    .k-nav svg { width: 20px; height: 20px; }
    .k-side__cal { flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-sm); background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
    .k-side__weeks b { color: var(--brand); font-size: 18px; }
}

/* ------------------------------------------------------------------ page head */
.k-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.k-head__t { flex: 1; min-width: 0; }
.k-head h1 { font-size: 24px; font-weight: 900; }
.k-head .ta-sub, .k-paper .ta-sub { color: var(--ink-2); font-size: 14px; }
.k-head__cta { min-height: 46px; padding: 0 16px; font-size: 15px; }
@media (max-width: 520px) { .k-head__cta { position: fixed; inset-inline-end: 16px; bottom: calc(var(--tabbar) + var(--safe-b) + 14px); z-index: 41;
                                          border-radius: 999px; box-shadow: 0 14px 30px -12px var(--glow); } }
.k-eyebrow { font-size: 13px; font-weight: 700; color: var(--brand); }
.k-eyebrow a { text-decoration: underline; }

/* ------------------------------------------------------------------ calendar */
.k-cal { margin-bottom: 16px; }
.k-cal__top { display: flex; align-items: center; gap: 12px; }
.k-cal__top > div { flex: 1; min-width: 0; }
.k-cal__top h2 { font-size: 19px; font-weight: 800; }
.k-cal__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.k-cal__ic svg { width: 22px; height: 22px; }
.k-cal__weeks { display: flex; flex-direction: column; align-items: center; line-height: 1.3; text-align: center; }
.k-cal__weeks b { font-size: 26px; font-weight: 900; color: var(--brand); }
.k-cal__weeks small { font-size: 11.5px; color: var(--ink-2); max-width: 8em; }
.k-steps { list-style: none; margin: 14px 0 10px; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.k-steps::-webkit-scrollbar { display: none; }
.k-steps li { flex: 1 0 auto; padding: 6px 10px 4px; border-top: 4px solid var(--line-2); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.k-steps li.is-now { border-top-color: var(--brand); color: var(--ink); font-weight: 800; }
.k-cal__line { font-size: 14px; color: var(--ink-2); }
.k-cal__line b { color: var(--ink); }
.k-cal--app { padding: 12px 16px; border-radius: var(--r-sm); background: var(--brand-soft); margin-bottom: 14px; font-size: 14px; }

/* ------------------------------------------------------------------ kpis, rows, chips */
.k-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 720px) { .k-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.k-kpi { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--sh); padding: 14px 16px; display: flex; flex-direction: column; }
.k-kpi b { font-size: 28px; font-weight: 900; line-height: 1.3; }
.k-kpi span { font-size: 13px; color: var(--ink-2); }
.k-kpi--warn b { color: var(--warn); }
.k-rows { padding: 4px 16px; }
.k-rows a { gap: 12px; justify-content: flex-start; }
.k-rows a > svg { margin-inline-start: auto; }
.k-row__av { width: 40px; height: 40px; font-size: 16px; }
.k-row__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; text-align: start; }
.k-row__t b { font-weight: 800; }
.k-row__t small { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.k-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.k-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.k-chips--scroll::-webkit-scrollbar { display: none; }
.k-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
          background: var(--brand-soft); color: var(--brand); white-space: nowrap; line-height: 1.9; }
.k-chip svg { width: 14px; height: 14px; }
.k-chip--ok { background: var(--ok-soft); color: var(--ok); }
.k-chip--warn { background: var(--warn-soft); color: var(--warn); }
.k-chip--muted { background: var(--bg-2); color: var(--ink-2); }
a.k-chip { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
a.k-chip.is-on { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.k-flags { margin: 0 0 12px; }
.k-filter { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.k-filter .ta-input { min-height: 48px; font-size: 16px; }
.k-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; }
.k-empty__ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.k-empty h3 { font-size: 18px; font-weight: 800; }
.k-empty p { color: var(--ink-2); max-width: 30em; }
.k-month { display: flex; flex-direction: column; gap: 12px; }
.k-month h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.k-month p { font-size: 14px; color: var(--ink-2); }
@media (min-width: 720px) { .k-month { flex-direction: row; align-items: center; justify-content: space-between; } .k-month form { flex: none; } }

/* ------------------------------------------------------------------ forms */
.k-form { display: flex; flex-direction: column; gap: 14px; }
.k-form--wide { max-width: 860px; }
.k-form__h { font-size: 17px; font-weight: 800; }
.k-grid2, .k-grid3 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .k-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ta-select { width: 100%; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 16px; padding: 0 14px; }
.k-fieldset { border: 0; padding: 0; margin-inline: 0; }
.k-fieldset legend { font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.k-choice { display: grid; gap: 8px; }
@media (min-width: 520px) { .k-choice { grid-template-columns: 1fr 1fr; } }
.k-choice__i { position: relative; cursor: pointer; }
.k-choice__i input { position: absolute; opacity: 0; inset: 0; }
.k-choice__i span { display: block; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); }
.k-choice__i b { display: block; }
.k-choice__i small { display: block; color: var(--ink-2); font-size: 13px; }
.k-choice__i input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.k-choice__i input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.k-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.k-scale__i { position: relative; cursor: pointer; }
.k-scale__i input { position: absolute; opacity: 0; inset: 0; }
.k-scale__i span { display: grid; place-items: center; min-height: 48px; padding: 4px; border-radius: 12px; text-align: center; font-size: 12.5px;
                   font-weight: 700; line-height: 1.4; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.k-scale__i input:checked + span { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.k-scale__i input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.k-week .ta-input { min-height: 52px; font-size: 17px; }
.k-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.k-link--bad { color: var(--bad); }
.k-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; font-size: 14px; }
.k-more svg { width: 18px; height: 18px; }
.k-disclose { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.k-disclose > summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; color: var(--brand); cursor: pointer; list-style: none; }
.k-disclose > summary::-webkit-details-marker { display: none; }
.k-disclose > summary::after { content: '+'; margin-inline-start: auto; font-size: 22px; }
.k-disclose[open] > summary::after { content: '−'; }
.k-consent { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); font-size: 14px; }
.k-consent p { display: flex; gap: 8px; align-items: flex-start; }
.k-consent svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--brand); }

/* ------------------------------------------------------------------ student file */
.k-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.k-jump::-webkit-scrollbar { display: none; }
.k-jump a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px;
            font-weight: 700; color: var(--ink-2); background: var(--card); box-shadow: var(--sh); }
.k-cols { display: grid; gap: 16px; }
.k-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.k-col > .ta-sec, .k-cols .ta-card + .ta-card { margin-top: 0; }
@media (min-width: 1100px) { .k-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } .k-jump { display: none; } }
.k-box { scroll-margin-top: 16px; }
.k-box h2 { font-size: 18px; font-weight: 800; }
.k-box__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.k-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k-plain li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border-inline-start: 4px solid var(--ok); }
.k-plain li.is-watch { border-inline-start-color: var(--warn); }
.k-plain li b { font-weight: 800; margin-inline-end: 6px; }
.k-plain li p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.k-prog + .k-prog { margin-top: 12px; }

.k-trend { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.k-trend__i { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); min-width: 0; }
.k-trend__i > span { font-size: 12.5px; color: var(--ink-2); }
.k-trend__i b { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; }
.k-trend__i b small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.k-way { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; }
.k-way svg { width: 15px; height: 15px; }
.k-way--up { background: var(--ok-soft); color: var(--ok); }
.k-way--down { background: var(--warn-soft); color: var(--warn); }
.k-way--same { background: var(--bg-2); color: var(--ink-2); }
.k-spark { width: 100%; height: 44px; color: var(--brand); margin-top: 6px; overflow: visible; }
.k-tablewrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.k-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
.k-table th, .k-table td { padding: 8px 6px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.k-table thead th { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.k-table tbody th { font-weight: 700; }
.k-notes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.k-notes b { color: var(--ink); margin-inline-end: 6px; }

.k-fit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k-fit__i { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border-inline-start: 4px solid var(--brand); }
.k-fit__i--extra, .k-fit__i--other { border-inline-start-color: var(--brand-2); }
.k-fit__i--skill { border-inline-start-color: var(--ink-3); }
.k-fit__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.k-fit__t b { font-weight: 800; }
.k-fit__m { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.k-fit__r { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.k-fit__r svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.k-planb { margin-top: 14px; padding: 14px; border-radius: var(--r-sm); background: var(--ok-soft); }
.k-planb h3 { font-size: 15px; font-weight: 800; color: var(--ok); }
.k-planb p, .k-planb li { font-size: 14px; }
.k-planb ul { margin: 6px 0 0; padding-inline-start: 18px; }

.k-tests { list-style: none; margin: 0; padding: 0; }
.k-tests li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.k-tests li:last-child { border-bottom: 0; }
.k-tests__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-tests__t b { font-size: 14.5px; font-weight: 700; }
.k-tests__t small { font-size: 12.5px; color: var(--ink-3); }
.k-send { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.k-note textarea, .k-box textarea.ta-input { min-height: 110px; padding: 12px 16px; font-size: 16px; line-height: 1.8; resize: vertical; }

/* ------------------------------------------------------------------ start, sent, plans */
.k-start { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.k-start__head { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.k-start__head h1 { font-size: 28px; font-weight: 900; }
.ta-lead { color: var(--ink-2); font-size: 16px; }
.k-sent { text-align: center; }
.k-plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 14px 0; }
.k-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh); }
.k-plan--pick { box-shadow: 0 0 0 2px var(--brand), var(--sh-lg); }
.k-plan__tag { align-self: flex-start; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--brand); color: var(--brand-ink); }
.k-plan h3 { font-size: 18px; font-weight: 900; }
.k-plan__for { font-size: 13.5px; color: var(--ink-2); }
.k-plan__price { font-size: 15px; }
.k-plan__price s { color: var(--ink-3); font-weight: 700; }
.k-plan__price b { font-size: 22px; font-weight: 900; }
.k-plan__now { color: var(--ok); font-weight: 900; font-size: 18px; }
.k-plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.k-plan li { display: flex; gap: 8px; align-items: flex-start; }
.k-plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--ok); }
.k-plan__cta { margin-top: auto; }
.k-why { margin: 8px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------------ family report */
.k-paper { display: flex; flex-direction: column; gap: 16px; }
.k-paper__head { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.k-paper__head h1 { font-size: 26px; font-weight: 900; margin-top: 10px; }
.k-msg { border-inline-start: 4px solid var(--brand); }
.k-tips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.k-tips li { display: flex; gap: 8px; align-items: flex-start; }
.k-tips svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--ok); }
.k-paper__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13.5px; color: var(--ink-2); padding: 8px 0 20px; }

@media print {
    .k-noprint, .k-side, .ta-tabbar, .skip { display: none !important; }
    body { background: #fff; color: #000; }
    .ta-main { max-width: none; padding: 0; }
    .ta-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .k-plain li, .k-fit__i, .k-trend__i { background: #f6f6f6; }
}
/* plans (models/plan.py) */
.k-planbar a { font-weight: 800; }
.k-plan--mine { box-shadow: 0 0 0 2px var(--ok), var(--sh-lg); }
.k-plan__year { font-size: 13px; color: var(--ink-3); }
.k-plan__cta { display: flex; flex-direction: column; gap: 8px; }
.k-usage__list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 10px 0 0; }
.k-usage__list div { padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2, rgba(0,0,0,.03)); }
.k-usage__list dt { font-size: 13px; color: var(--ink-2); }
.k-usage__list dd { margin: 2px 0 0; font-size: 15px; }

/* ------------------------------------------------------------------ konkur4: lean desk (2026-10-26) */
.k-nav__add svg { color: var(--brand); }
@media (max-width: 979px) { .k-nav__add svg { width: 30px; height: 30px; padding: 4px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); } }
.k-side .k-trial { display: none; }
@media (min-width: 980px) {
    .k-side .k-trial { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg);
                       font-size: 13px; color: var(--ink-2); }
    .k-trial b { color: var(--ink); }
    .k-trial--soon b { color: var(--warn); }
}
.k-trial__bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.k-trial__bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.k-trial--soon .k-trial__bar i { background: var(--warn); }

.k-onb { margin-bottom: 14px; }
.k-onb__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.k-onb__h h2 { font-size: 17px; font-weight: 800; }
.k-onb__n { font-size: 13px; font-weight: 700; color: var(--brand); }
.k-onb__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.k-onb__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.k-onb__ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--ink-3);
             box-shadow: inset 0 0 0 1.5px var(--line-2); }
.k-onb__ic svg { width: 17px; height: 17px; }
.k-onb__list li.is-done { color: var(--ink-3); text-decoration: line-through; }
.k-onb__list li.is-done .k-onb__ic { background: var(--ok); color: #fff; box-shadow: none; }

.k-season { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.k-season svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.k-season b { color: var(--ink); }
.k-row__av--warn { background: var(--warn-soft); color: var(--warn); }
.k-row__av--warn svg { width: 20px; height: 20px; }
.k-row__st { flex: none; }
@media (max-width: 420px) { .k-rows a > svg { display: none; } }
.k-month { flex-direction: row; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; }
.k-month p { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; color: var(--ink); }
.k-month p small { font-size: 13px; color: var(--ink-2); }
.k-month__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.k-month__ic svg { width: 20px; height: 20px; }
.k-search { position: relative; display: block; }
.k-search svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.k-search .ta-input { padding-inline-start: 44px; }

.k-form--narrow { max-width: 620px; }
.k-new:has(input[name="age"][value="adult"]:checked) .k-guardian { display: none; }
.k-switch { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: var(--r-sm);
            background: var(--bg); cursor: pointer; }
.k-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.k-switch__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-switch__t b { font-weight: 800; }
.k-switch__t small { font-size: 13px; color: var(--ink-2); }
.k-switch i { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.k-switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
                     box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.k-switch input:checked ~ i { background: var(--brand); }
.k-switch input:checked ~ i::after { inset-inline-start: 23px; }
.k-switch input:focus-visible ~ i { outline: 3px solid var(--brand-2); outline-offset: 2px; }

.k-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.k-acts a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r-sm); background: var(--card);
            box-shadow: var(--sh); font-size: 12.5px; font-weight: 700; color: var(--ink-2); min-height: 64px; justify-content: center; }
.k-acts svg { width: 22px; height: 22px; color: var(--brand); }
@media (min-width: 1100px) { .k-acts { display: none; } }
.k-box { scroll-margin-top: 16px; scroll-margin-bottom: calc(var(--tabbar) + 16px); }
.k-disclose--table { margin-top: 4px; }
.k-linkbox { font-size: 14px; min-height: 48px; }
.k-parentform { margin-top: 8px; }
.k-private { display: inline-flex; align-items: center; gap: 4px; }
.k-private svg { width: 15px; height: 15px; }
.k-archive { display: flex; justify-content: center; margin: 20px 0 8px; }
.k-start__gift { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; color: var(--ok); }
.k-start__gift svg { width: 20px; height: 20px; }
.k-sent__sms { margin: 4px 0 14px; color: var(--ink-2); font-size: 14px; }

.k-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.k-plan__price small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.k-usage { display: flex; flex-direction: column; gap: 8px; }
.k-usage__big { font-size: 17px; }
.k-usage__big b { font-weight: 900; }
.k-period { display: inline-flex; gap: 4px; padding: 4px; margin: 16px 0 0; border-radius: 999px; background: var(--card); box-shadow: var(--sh); }
.k-period a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.k-period a.is-on { background: var(--brand); color: var(--brand-ink); }
.k-period small { font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }

.k-setrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.k-setrow > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.k-setrow__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.k-setrow__ic svg { width: 20px; height: 20px; }
.k-settings .k-box + .k-box, .k-body > .k-box + .k-box, .k-body > [data-ts-screen] > .k-box + .k-box { margin-top: 14px; }
.k-inline { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.k-inline .ta-input { flex: 1; min-width: 0; margin: 0; }
.k-inline .ta-btn { flex: none; }
.k-team { list-style: none; margin: 0; padding: 0; }
.k-team li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.k-team li:last-child { border-bottom: 0; }
.k-team li.is-pending .k-row__av { background: var(--bg-2); color: var(--ink-3); }
.k-team li.is-pending .k-row__av svg { width: 18px; height: 18px; }
.k-invited { margin-top: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--ok-soft); display: flex; flex-direction: column; gap: 8px; }
.k-invited p { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.k-invited p svg { width: 18px; height: 18px; }
.k-setlinks { padding: 4px 16px; }
.k-setlinks a, .k-setlinks button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0; border: 0; background: none;
                                    font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; text-align: start; }
.k-setlinks a + a, .k-setlinks form { border-top: 1px solid var(--line); }
.k-setlinks svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.k-setlinks span { flex: 1; }
.k-setlinks button { color: var(--bad); }
.k-setlinks button svg { color: var(--bad); }

/* ------------------------------------------------------------------ konkur5: sample students, tour, profile, «از نگاه …» */
.k-demo-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
              vertical-align: middle; background: var(--warn-soft); color: var(--warn); }
h1 .k-demo-tag { font-size: 12.5px; }
.k-demobar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm);
             background: var(--warn-soft); color: var(--ink); }
.k-demobar p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.k-demobar small { font-size: 13px; color: var(--ink-2); }
.k-demobar__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--card); color: var(--warn); }
.k-demobar__ic svg { width: 20px; height: 20px; }
@media (max-width: 420px) { .k-demobar { flex-wrap: wrap; } .k-demobar form { width: 100%; } .k-demobar .ta-btn { width: 100%; } }
.k-help { background: var(--card); box-shadow: var(--sh); color: var(--brand); }

.k-profcard, .k-asrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.k-profcard > svg, .k-asrow > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.k-ring { position: relative; width: 44px; height: 44px; flex: none; color: var(--brand); display: inline-grid; place-items: center; }
.k-ring svg { position: absolute; inset: 0; }
.k-ring b { font-size: 13px; font-weight: 900; line-height: 1; color: var(--ink); }
.k-ring b small { font-size: 11px; }
.k-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.k-meter > div { flex: 1; min-width: 0; }
.k-meter .k-ring { width: 56px; height: 56px; }
.k-meter .k-ring svg { width: 56px; height: 56px; }
.k-meter__t { margin-bottom: 8px; }
.k-steplist li.is-done .k-onb__ic { background: var(--ok-soft); color: var(--ok); }
.k-steplist li:not(.is-done) small { color: var(--ink-3); }
.k-mestep__acts { display: flex; gap: 10px; margin-top: 18px; }
.k-mestep__acts .ta-btn { flex: 1; }
.k-stepdots { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; }
.k-stepdots a { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.k-stepdots li.is-done a { background: var(--ok); }
.k-stepdots li.is-now a { width: 30px; border-radius: 999px; background: var(--brand); }
.k-head .k-ring { margin-inline-start: auto; }

/* the tour: a card at the bottom (phone) or the bottom corner (desktop); the first step is a centred welcome */
.k-tour { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); display: flex; justify-content: center;
          pointer-events: none; }
.k-tour__card { pointer-events: auto; width: min(420px, 100%); padding: 18px 18px 16px; border-radius: var(--r); background: var(--card);
                box-shadow: 0 24px 60px -18px rgba(20, 16, 50, .45), 0 0 0 1px var(--line); animation: k-tour-in .22s ease-out; }
@keyframes k-tour-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-tour__card { animation: none; } }
.k-tour__top { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 6px 0; }
.k-tour__n { font-size: 12.5px; font-weight: 800; color: var(--brand); }
.k-tour__ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.k-tour h2 { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.k-tour p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.k-tour__dots { display: flex; gap: 5px; margin: 12px 0 0; }
.k-tour__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.k-tour__dots i.is-on { background: var(--brand); }
.k-tour__acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.k-tour__acts > .ta-btn, .k-tour__acts > form { flex: 1; min-height: 46px; }
.k-tour__later { margin-top: 10px; font-size: 12.5px !important; color: var(--ink-3) !important; }
.k-tour__later svg { width: 14px; height: 14px; vertical-align: -2px; }
.k-tour--hello { inset: 0; bottom: 0; align-items: center; padding: 16px; background: rgba(20, 16, 50, .45); pointer-events: auto; }
.k-tour--hello .k-tour__card { text-align: center; padding: 24px 22px 20px; }
.k-tour--hello .k-tour__top { justify-content: center; position: relative; }
.k-tour--hello .k-tour__x { position: absolute; inset-inline-end: 0; top: 0; }
.k-tour--hello .k-tour__ic { width: 56px; height: 56px; border-radius: 18px; }
.k-tour--hello .k-tour__acts { flex-direction: column; }
@media (min-width: 980px) { .k-tour:not(.k-tour--hello) { inset-inline: auto 24px; inset-inline-start: auto; bottom: 24px; justify-content: flex-end; } }
.k-spot { position: relative; z-index: 55; border-radius: var(--r); box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgba(20, 16, 50, .32) !important;
          transition: box-shadow .2s; scroll-margin: 16px 0 260px; }
body:has(.k-tour:not(.k-tour--hello)) .ta-main { padding-bottom: 300px; }

/* «از نگاه دانش‌آموز و والدین»: the page in a phone frame and the switches beside it */
.k-astabs { margin: 0 0 14px; }
.k-as { display: grid; gap: 16px; }
.k-as__device { position: relative; border-radius: 30px; padding: 10px; background: var(--ink); box-shadow: var(--sh); }
.k-as__cap { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 8px; padding: 4px 12px;
             border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--warn-soft); color: var(--warn); }
.k-as__cap svg { width: 14px; height: 14px; }
.k-as__frame { display: block; width: 100%; height: max(560px, min(80vh, 780px)); border: 0; border-radius: 22px; background: var(--bg); }
.k-as__ctl .k-switch:first-of-type { margin-top: 10px; }
@media (min-width: 980px) { .k-as { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
                            .k-as__frame { height: 760px; } .k-as__ctl { position: sticky; top: 24px; } }
[data-mode="preview"] .ta-main { padding-top: 12px; padding-bottom: 24px; }
.k-preview a, .k-preview button, .k-preview input, .k-preview select, .k-preview textarea, .k-preview label { pointer-events: none; }
.k-preview .k-preview__bar { display: none; }
.js-autosave .k-as__save { display: none; }

/* career1: the career test and the family's package on the desk, the package request, the full report */
.k-row__pkg { margin-inline-start: 4px; }
.k-pkgs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.k-pkgs li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg); font-size: 14.5px; }
.k-pkgs li.is-on { box-shadow: inset 0 0 0 1.5px var(--ok); }
.k-pkgs li span { color: var(--ink-2); white-space: nowrap; }
.k-pkgask__list { margin: 0 0 16px; }
.k-rparts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14.5px; color: var(--ink-2); }
.k-rparts li { display: inline-flex; gap: 6px; align-items: center; }
.k-rparts li.is-done { color: var(--ink); font-weight: 700; }
.k-rparts svg { width: 16px; height: 16px; }
.k-rbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k-rbars li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.k-rbars small { grid-column: 1 / -1; color: var(--ink-2); }
.k-rbar { display: block; height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.k-rbar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.k-rfam + .k-rfam { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.k-rfam h3 { font-size: 16px; font-weight: 800; }
.k-rfam p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.k-rrungs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.k-rrungs li.is-here b { color: var(--ok); }
.k-rpath { margin-top: 10px; }
.k-rpath h3 { font-size: 15px; font-weight: 800; }
.k-rjobs { margin: 0; padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.k-rjobs small { color: var(--ink-2); }
.k-report form.k-chips { margin-bottom: 10px; }
.k-report form.k-chips button.k-chip { min-height: 36px; padding: 0 14px; font-size: 13.5px; border: 0; background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; }
.k-report form.k-chips button.k-chip.is-on { box-shadow: inset 0 0 0 2px var(--ok); color: var(--ink); }
@media print { .k-report .ta-card { break-inside: avoid; } }

/* F-RPT-11 active sharing choice on the counselor's career link */
.k-choice { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; min-inline-size: 0; }
.k-choice legend { font-weight: 700; font-size: inherit; padding: 0 6px; float: none; inline-size: auto; margin: 0; }
.k-choice__opt { display: flex; gap: 10px; align-items: center; min-block-size: 44px; cursor: pointer; margin: 0; }
.k-choice__opt input { inline-size: 22px; block-size: 22px; flex: none; margin: 0; }
.k-choice[aria-invalid='true'] { border-color: var(--bad); }
.k-choice__err { color: var(--bad); font-weight: 700; margin: 0 0 8px; }
