/* Skill Lab kit. Tokens, reset, marketing components, app components. Prefix k-. See KIT.md. */

@font-face { font-family: "Gilroy"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gilroy-400.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/gilroy-500.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/gilroy-600.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/gilroy-700.woff2") format("woff2"); }
@font-face { font-family: "Gilroy"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/gilroy-800.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
:root {
	--ink: #0A0A0A;
	--paper: #FFFFFF;
	--canvas: #F5F5F1;
	--line: #E3E3DD;
	--line-strong: #C9C9C1;
	--text: #0A0A0A;
	--text-2: #55554F;
	--text-3: #8C8C84;
	--lime: #C8F031;
	--lime-ink: #1D2600;
	--danger: #E5341A;
	--ok: #12A150;
	--warn: #F2A900;

	/* derived, flat */
	--lime-hover: #BAE322;
	--ink-hover: #2A2A28;
	--fill: #EDEDE7;          /* quiet hover and active fill */
	--fill-soft: #FAFAF8;     /* row hover */
	--danger-ink: #B4250F;
	--danger-bg: #FDEDEA;
	--ok-ink: #0B7A3B;
	--ok-bg: #E6F5EC;
	--warn-ink: #7A5600;
	--warn-bg: #FEF4D9;

	/* cover colours */
	--cv-lime: #C8F031;
	--cv-violet: #6A4DFF;
	--cv-coral: #FF5A3C;
	--cv-sun: #FFC42E;
	--cv-mint: #2FE0A2;
	--cv-pink: #FF8AD0;
	--cv-ink: #0A0A0A;
	--cv-grey: #E9E9E3;

	--font: "Gilroy", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1200px;
	--gutter: 24px;
	--section: 120px;
	--header-h: 68px;
	--r-card: 24px;
	--r-btn: 14px;
	--r-ctl: 6px;
	--r-panel: 8px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--top: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 760px) {
	:root { --gutter: 20px; --section: 64px; --header-h: 60px; }
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.k-body--app { font-size: 14px; line-height: 1.45; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--ink); }
table { border-collapse: collapse; }
.k-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.k-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-ctl); font-size: 14px; text-decoration: none; }
.k-skip:focus { top: calc(var(--top) + 12px); }
.k-icon { width: 16px; height: 16px; flex: none; }
.k-glyph { flex: none; }
.k-num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================================================ MARKETING */

/* layout */
.k-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.k-wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }
.k-section { padding: var(--section) 0; }
.k-section--tight { padding: calc(var(--section) * .6) 0; }
.k-section--canvas { background: var(--canvas); }
.k-section--ink { background: var(--ink); color: var(--paper); }
.k-section--ink .k-lead, .k-section--ink .k-small { color: #B5B5AD; }
.k-section--line { border-top: 1px solid var(--line); }
.k-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.k-section__head > :first-child { max-width: 720px; }
.k-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.k-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
@media (max-width: 760px) {
	.k-section__head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
	.k-grid-cards { gap: 16px; }
}

/* type */
.k-display { font-size: clamp(44px, 7vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.k-h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.k-h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.k-h3 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; }
.k-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 640px; margin-top: 20px; text-wrap: pretty; }
.k-small { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.k-meta { font-size: 13px; line-height: 1.4; color: var(--text-3); }
.k-mark { background: var(--lime); color: var(--ink); padding: 0 .12em; border-radius: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.k-prose { font-size: 17px; line-height: 1.65; }
.k-prose > * + * { margin-top: 1em; }
.k-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.k-link:hover { text-decoration-color: var(--ink); }

/* buttons */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 600 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.k-btn:active:not(:disabled) { transform: translateY(1px); }
.k-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.k-btn--primary { background: var(--lime); color: var(--ink); }
.k-btn--primary:hover:not(:disabled) { background: var(--lime-hover); }
.k-btn--secondary { background: var(--ink); color: var(--paper); }
.k-btn--secondary:hover:not(:disabled) { background: var(--ink-hover); }
.k-btn--ghost { background: transparent; color: var(--ink); }
.k-btn--ghost:hover:not(:disabled) { background: var(--fill); }
.k-btn--line { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.k-btn--line:hover:not(:disabled) { border-color: var(--ink); }
.k-btn--danger { background: var(--paper); border-color: var(--line-strong); color: var(--danger-ink); }
.k-btn--danger:hover:not(:disabled) { border-color: var(--danger); background: var(--danger-bg); }
.k-btn:disabled, .k-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.k-btn--md { height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.k-btn--sm { height: 32px; padding: 0 12px; gap: 6px; border-radius: var(--r-ctl); font-size: 13px; letter-spacing: 0; }
.k-btn--sm .k-icon { width: 14px; height: 14px; }
.k-btn--block { display: flex; width: 100%; }
.k-btn--icon { width: 52px; padding: 0; }
.k-btn--md.k-btn--icon { width: 44px; }
.k-btn--sm.k-btn--icon { width: 32px; }
.k-btn .k-spinner { width: 16px; height: 16px; }
.k-section--ink .k-btn--ghost { color: var(--paper); }
.k-section--ink .k-btn--ghost:hover:not(:disabled) { background: #1E1E1C; }
.k-section--ink .k-btn--secondary { background: var(--paper); color: var(--ink); }
.k-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: k-spin .7s linear infinite; }
@keyframes k-spin { to { transform: rotate(360deg); } }

/* brand */
.k-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; }
.k-brand__mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--lime); flex: none; }
.k-brand__mark .k-glyph { width: 18px; height: 18px; stroke-width: 2.25; fill: currentColor; }
.k-brand--inverse { color: var(--paper); }
.k-brand--inverse .k-brand__mark { background: var(--lime); color: var(--ink); }
/* logo files from assets/brand/ (lain_kit_logo); the wordmark paths fill currentColor */
.k-logo { display: inline-flex; align-items: center; line-height: 0; }
.k-logo__svg { display: block; flex: none; max-width: 100%; overflow: visible; }
.k-brand__mark--art, .k-brand--inverse .k-brand__mark--art { background: none; border-radius: 0; }
.k-brand__mark--art .k-logo__svg { width: 100%; height: 100%; }

/* site header */
.k-header { position: sticky; top: var(--top); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); container: kheader / inline-size; }
.k-header--demo { position: relative; top: auto; z-index: auto; }
.k-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.k-nav { display: flex; align-items: center; gap: 2px; }
.k-nav a, .k-nav__link { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s; }
.k-nav a:hover, .k-nav__link:hover { color: var(--ink); background: var(--fill); }
.k-nav a[aria-current="page"], .k-nav__link[aria-current="page"] { color: var(--ink); }
.k-header__end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.k-header__menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.k-header__menu-btn .k-icon { width: 22px; height: 22px; }
.k-header__menu-btn:hover { background: var(--fill); }
.k-balance { display: inline-flex; align-items: baseline; gap: 5px; height: 36px; padding: 0 12px; margin-right: 6px; border: 1px solid var(--line); border-radius: 10px; line-height: 34px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.k-balance:hover { border-color: var(--line-strong); }
.k-balance__value { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.k-balance__label { font-size: 13px; color: var(--text-3); }
@container kheader (max-width: 880px) {
	.k-nav, .k-header__end { display: none; }
	.k-header__menu-btn { display: inline-flex; }
	.k-brand { font-size: 18px; }
}

/* account menu */
.k-menu { position: relative; }
.k-menu__trigger { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px 0 4px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); }
.k-menu__trigger:hover, .k-menu.is-open .k-menu__trigger { background: var(--fill); }
.k-menu__trigger .k-icon { width: 14px; height: 14px; }
.k-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: none; min-width: 248px; padding: 6px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; }
.k-menu.is-open .k-menu__panel { display: block; animation: k-pop .14s var(--ease); }
.k-menu__head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.k-menu__name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.k-menu__email { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.k-menu__item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-ctl); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.k-menu__item .k-icon { color: var(--text-3); }
.k-menu__item:hover, .k-menu__item:focus-visible { background: var(--fill); outline: none; }
.k-menu__sep { display: block; height: 1px; margin: 6px 0; background: var(--line); }
@keyframes k-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* phone menu sheet */
.k-mnav { position: fixed; inset: var(--top) 0 0 0; z-index: 120; display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.k-mnav.is-open { animation: k-sheet-in .22s var(--ease); }
.k-mnav--demo { position: relative; inset: auto; z-index: auto; min-height: 640px; animation: none; }
.k-mnav__top { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 10px 0 20px; flex: none; }
.k-mnav__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.k-mnav__close .k-icon { width: 22px; height: 22px; }
.k-mnav__close:hover { background: var(--fill); }
.k-mnav__body { flex: 1; padding: 8px 20px 24px; }
.k-mnav__me { display: flex; align-items: center; gap: 14px; padding: 12px 0 20px; }
.k-mnav__me > span:last-child { display: flex; flex-direction: column; }
.k-mnav__me-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.k-mnav__me-meta { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.k-mnav__primary { border-top: 1px solid var(--line); }
.k-mnav__link { display: flex; align-items: center; justify-content: space-between; min-height: 68px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 32px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.k-mnav__link .k-icon { width: 20px; height: 20px; color: var(--text-3); }
.k-mnav__list { margin-top: 24px; }
.k-mnav__row { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.k-mnav__row .k-icon { color: var(--text-3); width: 18px; height: 18px; }
.k-mnav__row .k-mnav__chev { margin-left: auto; width: 16px; height: 16px; }
.k-mnav__actions { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); flex: none; }
.k-mnav--demo .k-mnav__actions { position: relative; }
@keyframes k-sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.k-lock { overflow: hidden; }

/* footer */
.k-footer { background: var(--ink); color: var(--paper); padding: 88px 0 32px; }
.k-footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.k-footer__line { margin-top: 16px; color: #A3A39B; font-size: 15px; max-width: 280px; }
.k-footer__col { display: flex; flex-direction: column; gap: 10px; }
.k-footer__head { font-size: 13px; color: #8C8C84; margin-bottom: 4px; }
.k-footer__col a { color: var(--paper); font-size: 15px; text-decoration: none; width: fit-content; }
.k-footer__col a:hover { color: var(--lime); }
.k-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 80px; padding-top: 24px; border-top: 1px solid #262624; color: #8C8C84; font-size: 13px; }
@media (max-width: 760px) {
	.k-footer { padding: 56px 0 28px; }
	.k-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.k-footer__brand { grid-column: 1 / -1; }
	.k-footer__col a { min-height: 32px; display: inline-flex; align-items: center; }
	.k-footer__bottom { flex-direction: column; margin-top: 48px; }
}

/* cover */
.k-cover { --cv-bg: var(--cv-grey); --cv-fg: var(--ink); position: relative; display: block; overflow: hidden; background: var(--cv-bg); color: var(--cv-fg); isolation: isolate; }
.k-cover[data-color="lime"] { --cv-bg: var(--cv-lime); }
.k-cover[data-color="violet"] { --cv-bg: var(--cv-violet); --cv-fg: #FFFFFF; }
.k-cover[data-color="coral"] { --cv-bg: var(--cv-coral); }
.k-cover[data-color="sun"] { --cv-bg: var(--cv-sun); }
.k-cover[data-color="mint"] { --cv-bg: var(--cv-mint); }
.k-cover[data-color="pink"] { --cv-bg: var(--cv-pink); }
.k-cover[data-color="ink"] { --cv-bg: var(--cv-ink); --cv-fg: var(--lime); }
.k-cover[data-color="grey"] { --cv-bg: var(--cv-grey); }
.k-cover__glyph { position: absolute; transition: transform .35s var(--ease); }
.k-cover__name { position: absolute; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 800; line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.k-cover--card { aspect-ratio: 16 / 10; border-radius: var(--r-card); container-type: inline-size; }
.k-cover--card .k-cover__glyph { top: 8cqi; right: 7cqi; width: 30cqi; height: 30cqi; }
.k-cover--card .k-cover__name { left: 7cqi; right: 7cqi; bottom: 6.5cqi; font-size: clamp(22px, 9cqi, 40px); padding-bottom: .04em; }
@container (max-width: 240px) {
	.k-cover--card .k-cover__glyph { top: 7cqi; width: 22cqi; height: 22cqi; }
	.k-cover--card .k-cover__name { font-size: clamp(15px, 10cqi, 22px); }
}
.k-cover--lg { aspect-ratio: 1 / 1; border-radius: var(--r-card); container-type: inline-size; }
.k-cover--lg .k-cover__glyph { top: 8cqi; right: 8cqi; width: 34cqi; height: 34cqi; }
.k-cover--lg .k-cover__name { left: 8cqi; right: 8cqi; bottom: 7cqi; font-size: clamp(28px, 9.6cqi, 64px); -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.k-cover--tiny { display: inline-grid; place-items: center; width: var(--cv-size, 40px); height: var(--cv-size, 40px); border-radius: calc(var(--cv-size, 40px) * .24); flex: none; }
.k-cover--tiny .k-cover__glyph { position: static; width: 56%; height: 56%; }
.k-cover--tiny.k-cover--28 { --cv-size: 28px; }
.k-cover--tiny.k-cover--56 { --cv-size: 56px; }

/* tutor card */
.k-tcard { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.k-tcard:hover { border-color: var(--line-strong); }
.k-tcard:hover .k-cover__glyph { transform: rotate(-8deg) scale(1.06); }
.k-tcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.k-tcard .k-cover { border-radius: 0; }
.k-tcard__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 22px 0; }
.k-tcard__tagline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.k-tcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--text-2); }
.k-tcard__topic { color: var(--text-2); font-size: 13px; font-weight: 500; }
.k-tcard__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; }
.k-tcard__teacher { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-weight: 500; }
.k-tcard__teacher > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-tcard__end { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }

/* topic chip */
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 500 14px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.k-chip:hover { border-color: var(--line-strong); }
.k-chip.is-active, .k-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.k-chip__count { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.k-chip:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 760px) { .k-chip { height: 44px; } }

/* level tag */
.k-level { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.k-level__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.k-level__bars i { display: block; width: 3px; border-radius: 1px; background: var(--line-strong); }
.k-level__bars i:nth-child(1) { height: 5px; }
.k-level__bars i:nth-child(2) { height: 8px; }
.k-level__bars i:nth-child(3) { height: 11px; }
.k-level[data-level="beginner"] i:nth-child(-n+1),
.k-level[data-level="intermediate"] i:nth-child(-n+2),
.k-level[data-level="advanced"] i { background: var(--ink); }
.k-level[data-level="all"] i { height: 8px; background: var(--text-3); }

/* price tag */
.k-price { display: inline-flex; align-items: baseline; gap: 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-price__unit { color: var(--text-3); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.k-price--free { align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 13px; }
.k-price--lg { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; }
.k-price--lg .k-price__unit { font-size: 15px; }
.k-price--lg.k-price--free { height: 36px; padding: 0 12px; font-size: 18px; border-radius: 8px; letter-spacing: -0.01em; }

/* rating */
.k-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-rating .k-icon { width: 14px; height: 14px; color: var(--ink); }
.k-rating__count { color: var(--text-3); font-weight: 500; }
.k-rating--new, .k-rating__new { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.k-rating--lg { gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.k-rating--lg .k-icon { width: 20px; height: 20px; }
.k-rating--lg .k-rating__count { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.k-rating--none { gap: 12px; font-size: 15px; }
.k-rating--none .k-rating__new { font-size: 15px; }

/* initials disc */
.k-avatar { --av: 36px; display: inline-grid; place-items: center; flex: none; width: var(--av); height: var(--av); border-radius: 50%; background: var(--cv-grey); color: var(--ink); font-size: max(12px, calc(var(--av) * .36)); font-weight: 700; letter-spacing: -0.02em; line-height: 1; user-select: none; }
.k-avatar--sm { --av: 28px; }
.k-avatar--md { --av: 36px; }
.k-avatar--lg { --av: 48px; }
.k-avatar--xl { --av: 72px; letter-spacing: -0.04em; }
.k-avatar--ink { background: var(--ink); color: var(--lime); }

/* forms (shared by both surfaces) */
.k-form { display: flex; flex-direction: column; gap: 18px; }
.k-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k-label { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.k-label__opt { color: var(--text-3); font-weight: 500; }
.k-hint { color: var(--text-3); font-size: 13px; line-height: 1.4; }
.k-error { display: flex; align-items: center; gap: 6px; color: var(--danger-ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
.k-error .k-icon { width: 14px; height: 14px; }
.k-input, .k-select, .k-textarea { display: block; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font: 400 14px/1.4 var(--font); transition: border-color .15s; }
.k-input::placeholder, .k-textarea::placeholder { color: var(--text-3); }
.k-input:hover, .k-select:hover, .k-textarea:hover { border-color: #A9A9A0; }
.k-input:focus, .k-select:focus, .k-textarea:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
.k-input:disabled, .k-select:disabled, .k-textarea:disabled { background: var(--canvas); color: var(--text-3); border-color: var(--line); cursor: not-allowed; }
.k-input[aria-invalid="true"], .k-select[aria-invalid="true"], .k-textarea[aria-invalid="true"], .k-field.is-error .k-input, .k-field.is-error .k-select, .k-field.is-error .k-textarea { border-color: var(--danger); }
.k-input[aria-invalid="true"]:focus, .k-textarea[aria-invalid="true"]:focus, .k-field.is-error .k-input:focus, .k-field.is-error .k-textarea:focus { outline-color: var(--danger); }
.k-textarea { height: auto; min-height: 96px; padding: 8px 10px; line-height: 1.5; resize: vertical; }
.k-select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2355554F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
.k-field--lg .k-label { font-size: 14px; }
.k-field--lg .k-input, .k-field--lg .k-select { height: 52px; padding: 0 16px; border-radius: 12px; font-size: 16px; }
.k-field--lg .k-select { padding-right: 40px; background-position: right 14px center; }
.k-field--lg .k-textarea { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
.k-input-group { display: flex; gap: 8px; }
.k-input-group .k-input { flex: 1; }
.k-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.k-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
@media (max-width: 760px) {
	.k-input, .k-select { height: 44px; font-size: 16px; }
	.k-textarea { font-size: 16px; }
	.k-check { min-height: 44px; }
}

/* alert and notice */
.k-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.45; }
.k-alert .k-icon { margin-top: 2px; }
.k-alert--danger { background: var(--danger-bg); border-color: #F6CBC2; color: #7F1C0B; }
.k-alert--ok { background: var(--ok-bg); border-color: #BFE5CD; color: #0A5C2E; }
.k-alert--warn { background: var(--warn-bg); border-color: #F4DE9E; color: var(--warn-ink); }
.k-alert--lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 500; }
.k-notice { padding: 10px var(--gutter); background: var(--warn-bg); border-bottom: 1px solid #F4DE9E; color: var(--warn-ink); font-size: 14px; text-align: center; }
.k-notice a { color: inherit; font-weight: 600; }

/* empty state */
.k-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 24px; text-align: center; }
.k-empty__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 10px; background: var(--canvas); color: var(--text-2); }
.k-empty__icon .k-icon { width: 20px; height: 20px; }
.k-empty__icon .k-glyph { width: 24px; height: 24px; }
.k-empty__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.k-empty__text { max-width: 380px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.k-empty__action { margin-top: 14px; }
.k-empty--lg { gap: 12px; padding: 88px 24px; }
.k-empty--lg .k-empty__icon { width: 72px; height: 72px; border-radius: 18px; background: var(--ink); color: var(--lime); margin-bottom: 16px; }
.k-empty--lg .k-empty__icon .k-glyph { width: 40px; height: 40px; }
.k-empty--lg .k-empty__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.k-empty--lg .k-empty__text { font-size: 17px; max-width: 460px; }
.k-empty--lg .k-empty__action { margin-top: 20px; }

/* placeholder and 404 */
.k-hero-placeholder { padding-top: clamp(72px, 12vw, 160px); }
.k-404__code { font-size: 15px; font-weight: 600; color: var(--text-3); margin-bottom: 16px; font-variant-numeric: tabular-nums; }

/* ===================================================================== APP */

.k-app { container: kapp / inline-size; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.45; }
.k-app__frame { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - var(--top)); min-height: calc(100dvh - var(--top)); }
.k-app__side { position: sticky; top: var(--top); display: flex; flex-direction: column; height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); padding: 12px 10px; background: var(--canvas); border-right: 1px solid var(--line); overflow-y: auto; }
.k-app__brand { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 6px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.k-app__brand .k-brand__mark { width: 24px; height: 24px; border-radius: 7px; }
.k-app__brand .k-brand__mark .k-glyph { width: 15px; height: 15px; }
.k-app__context { padding: 2px 8px 0 39px; margin-top: -6px; margin-bottom: 14px; color: var(--text-3); font-size: 12px; font-weight: 500; }
.k-side { display: flex; flex-direction: column; gap: 1px; }
.k-side__heading { padding: 16px 8px 6px; color: var(--text-3); font-size: 12px; font-weight: 500; }
.k-side__link { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--r-ctl); color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color .12s, color .12s; }
.k-side__link .k-icon { color: var(--text-3); }
.k-side__link:hover { background: var(--fill); color: var(--ink); }
.k-side__link[aria-current="page"] { background: #E6E6DF; color: var(--ink); font-weight: 600; }
.k-side__link[aria-current="page"] .k-icon { color: var(--ink); }
.k-side__count { margin-left: auto; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.k-app__foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.k-app__me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 0; }
.k-app__me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.k-app__me-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-app__me-meta { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.k-app__main { min-width: 0; padding: 0 40px 72px; }
.k-app__inner { max-width: 1080px; }
.k-app__band, .k-sections { display: none; }
.k-app--demo .k-app__frame { min-height: 0; }
.k-app--demo .k-app__side { position: relative; top: auto; height: auto; }


/* page header */
.k-phead { display: flex; align-items: flex-end; gap: 16px; padding: 28px 0 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.k-phead__text { min-width: 0; }
.k-phead__crumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--text-3); font-size: 13px; font-weight: 500; text-decoration: none; }
.k-phead__crumb:hover { color: var(--ink); }
.k-phead__crumb .k-icon { width: 12px; height: 12px; }
.k-phead__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.k-phead__meta { margin-top: 3px; color: var(--text-2); font-size: 13px; }
.k-phead__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* panel heading inside app pages */
.k-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 10px; }
.k-subhead__title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.k-subhead__link { color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.k-subhead__link:hover { color: var(--ink); }

/* stat cell row */
.k-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.k-stat { padding: 14px 16px 16px; background: var(--paper); min-width: 0; }
.k-stat__label { color: var(--text-3); font-size: 12px; font-weight: 500; }
.k-stat__value { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.k-stat__sub { margin-top: 4px; color: var(--text-2); font-size: 12px; }

/* tabs */
.k-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.k-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0; border: 0; background: none; color: var(--text-2); font: 500 13px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.k-tab:hover { color: var(--ink); }
.k-tab[aria-selected="true"], .k-tab[aria-current="page"] { color: var(--ink); font-weight: 600; }
.k-tab[aria-selected="true"]::after, .k-tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 1px; }
.k-tab__count { color: var(--text-3); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.k-tab:disabled { opacity: .4; cursor: not-allowed; }

/* table */
.k-table-wrap { border: 1px solid var(--line); border-radius: var(--r-panel); overflow-x: auto; }
.k-table { width: 100%; font-size: 13px; }
.k-table th { height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--fill-soft); color: var(--text-3); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.k-table td { height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.k-table tbody tr:last-child td { border-bottom: 0; }
.k-table tbody tr:hover td { background: var(--fill-soft); }
.k-table .k-num, .k-table th.k-num { text-align: right; font-variant-numeric: tabular-nums; }
.k-table .k-muted { color: var(--text-2); }
.k-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.k-cell__title { font-weight: 600; }

/* hairline row list */
.k-rows { border-top: 1px solid var(--line); }
.k-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.k-row:hover, button.k-row:hover { background: var(--fill-soft); }
button.k-row { width: 100%; border-width: 0 0 1px; background: none; text-align: left; font: inherit; }
.k-row__main { flex: 1; min-width: 0; }
.k-row__title { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-row__sub { display: block; margin-top: 1px; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-row__end { display: flex; align-items: center; gap: 14px; flex: none; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.k-row__chev { width: 16px; height: 16px; color: var(--text-3); }
.k-amount--in { color: var(--ok-ink); }

/* status dot and badge */
.k-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.k-dot--ok { background: var(--ok); }
.k-dot--warn { background: var(--warn); }
.k-dot--danger { background: var(--danger); }
.k-dot--idle { background: var(--line-strong); }
.k-dot--live { background: var(--lime); outline: 1px solid rgba(29, 38, 0, .35); outline-offset: -1px; }
.k-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.k-badge .k-dot { width: 6px; height: 6px; }
.k-badge--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.k-badge--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.k-badge--danger { background: var(--danger-bg); border-color: #F6CBC2; color: var(--danger-ink); }

/* switch */
.k-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; cursor: pointer; user-select: none; }
.k-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.k-switch__track { position: relative; flex: none; width: 32px; height: 18px; border-radius: 9px; background: var(--line-strong); transition: background-color .15s; }
.k-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .18s var(--ease); }
.k-switch:hover .k-switch__track { background: #B5B5AC; }
.k-switch input:checked + .k-switch__track { background: var(--ink); }
.k-switch input:checked + .k-switch__track::after { transform: translateX(14px); }
.k-switch input:focus-visible + .k-switch__track { outline: 2px solid var(--ink); outline-offset: 2px; }
.k-switch input:disabled + .k-switch__track { opacity: .4; }
.k-switch:has(input:disabled) { cursor: not-allowed; color: var(--text-3); }

/* sticky phone action bar (static on desktop) */
.k-actionbar { display: flex; gap: 8px; margin-top: 24px; }

/* modal and sheet: use <dialog class="k-modal"> */
.k-modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; overflow: auto; }
.k-modal::backdrop { background: rgba(10, 10, 10, .45); }
.k-modal[open] { animation: k-pop .16s var(--ease); }
.k-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.k-modal__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.k-modal__x { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--text-2); }
.k-modal__x:hover { background: var(--fill); color: var(--ink); }
.k-modal__body { padding: 20px; }
.k-modal__body > * + * { margin-top: 14px; }
.k-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.k-modal--demo { position: relative; display: block; margin: 0; width: 100%; max-width: 440px; animation: none; }
@media (max-width: 640px) {
	.k-modal:not(.k-modal--demo) { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; animation: k-sheet-up .22s var(--ease); }
	.k-modal__foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
	.k-modal__foot .k-btn { flex: 1; height: 44px; }
	.k-modal__x { width: 44px; height: 44px; }
}
@keyframes k-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* toast */
.k-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); pointer-events: none; }
.k-toast { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; line-height: 1.35; pointer-events: auto; animation: k-toast-in .2s var(--ease); }
.k-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.k-toast--error .k-dot { background: #FF6B52; }
.k-toast--ok .k-dot { background: var(--lime); }
.k-toast--demo { animation: none; display: inline-flex; }
@keyframes k-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .k-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* skeleton */
.k-skel { display: block; border-radius: var(--r-ctl); background: #EDEDE7; animation: k-pulse 1.4s ease-in-out infinite; }
.k-skel--text { height: 12px; margin: 6px 0; }
.k-skel--title { height: 20px; width: 40%; }
.k-skel--circle { border-radius: 50%; width: 28px; height: 28px; flex: none; }
.k-skel--block { height: 120px; border-radius: var(--r-panel); }
@keyframes k-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* markdown output of LainKit.md() */
.k-md { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.k-md > * + * { margin-top: .7em; }
.k-md strong { font-weight: 700; }
.k-md ul, .k-md ol { padding-left: 1.3em; }
.k-md li + li { margin-top: .3em; }
.k-md code { padding: .1em .35em; border-radius: 4px; background: var(--canvas); font-family: var(--mono); font-size: .88em; }
.k-code { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.k-code__bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 4px 0 12px; background: var(--fill-soft); border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; font-weight: 500; }
.k-code__copy { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 0; border-radius: 5px; background: none; color: var(--text-2); font: 500 12px/1 var(--font); }
.k-code__copy:hover { background: var(--fill); color: var(--ink); }
.k-code__copy .k-icon { width: 13px; height: 13px; }
.k-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; background: var(--paper); font: 13px/1.6 var(--mono); }
.k-code pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }

/* app phone layout: last so it wins over the base app rules above */
@container kapp (max-width: 760px) {
	.k-app__frame { grid-template-columns: minmax(0, 1fr); }
	.k-app__side { display: none; }
	.k-app__main { padding: 0 20px 112px; }
	.k-app__band { display: block; margin: 0 -20px; padding: 0 20px; background: var(--paper); }
	.k-app__band-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
	.k-app__band-me { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 12px; }
	.k-app__back { display: inline-flex; align-items: center; gap: 2px; height: 44px; margin-left: -6px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
	.k-app__back .k-icon { width: 18px; height: 18px; }
	.k-app__title { padding: 2px 0 18px; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
	.k-sections { display: block; margin: 0 -20px 8px; border-top: 1px solid var(--line); border-bottom: 8px solid var(--canvas); }
	.k-sections__row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
	.k-sections__row:last-child { border-bottom: 0; }
	.k-sections__row:active { background: var(--fill-soft); }
	.k-sections__row .k-icon { width: 18px; height: 18px; color: var(--text-3); }
	.k-sections__row .k-sections__chev { margin-left: auto; width: 16px; height: 16px; }
	.k-phead { padding-top: 4px; border-bottom: 0; flex-direction: column; align-items: stretch; }
	.k-phead__title, .k-phead__crumb { display: none; }
	.k-phead__meta { margin-top: 0; }
	.k-phead__actions { margin-left: 0; }
	.k-phead__actions .k-btn { flex: 1; height: 44px; font-size: 15px; }
	.k-btn--sm { height: 44px; padding: 0 16px; font-size: 14px; }
	.k-btn--sm.k-btn--icon { width: 44px; padding: 0; }
	.k-tabs { gap: 20px; }
	.k-tab { height: 44px; font-size: 14px; }
	.k-stats { grid-template-columns: 1fr 1fr; }
	.k-row { min-height: 56px; }
	.k-table--stack thead { display: none; }
	.k-table--stack, .k-table--stack tbody, .k-table--stack tr, .k-table--stack td { display: block; width: 100%; }
	.k-table--stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
	.k-table--stack tr:last-child { border-bottom: 0; }
	.k-table--stack td { display: flex; justify-content: space-between; gap: 12px; height: auto; padding: 3px 0; border: 0; text-align: right; }
	.k-table--stack td::before { content: attr(data-label); color: var(--text-3); font-size: 12px; text-align: left; }
	.k-table--stack td:first-child { padding-bottom: 6px; font-weight: 600; text-align: left; }
	.k-table--stack td:first-child::before { content: none; }
	.k-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
	.k-actionbar .k-btn { flex: 1; }
	.k-app--demo .k-actionbar { position: sticky; }
	.k-switch { min-height: 44px; }
}

/* ------------------------------------------------- round 2: chrome additions */
/* Header with five links: the end links (My lessons, Studio) live in the account menu below 1140px. */
@container kheader (max-width: 1140px) {
	.k-header__end .k-nav__link { display: none; }
}
.k-nav a { white-space: nowrap; }

/* Sample tag: marks seeded ratings, reviews and lesson counts while the demo layer is on. */
.k-sample { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--text-2); font: 600 12px/1 var(--font); letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.k-sample--inverse { border-color: #3A3A36; background: transparent; color: #B5B5AD; }

/* Slim preview line above the header, in the page flow. */
.k-demoline { background: var(--canvas); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.4; }
.k-demoline__in { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 8px var(--gutter); text-align: center; }
@media (max-width: 760px) {
	.k-demoline__in { justify-content: flex-start; text-align: left; }
}

/* Footer with four link columns. */
.k-footer__top--4 { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) and (min-width: 761px) {
	.k-footer__top--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.k-footer__top--4 .k-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.k-footer__top--4 { grid-template-columns: 1fr 1fr; }
}
