@font-face { font-family: "Karla"; src: url("/assets/fonts/Karla.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/Karla-Italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --bubblegum: oklch(74.31% .0983 187.2);
  --bubblegum-deep: oklch(58.85% .0862 187.2);
  --bubblegum-soft: oklch(85.34% .0602 187.2);
  --cream: oklch(94.26% .0318 62.5);
  --cream-deep: oklch(90% .04 62.5);
  --yolk: oklch(82.02% .1247 85.6);
  --berry: oklch(72% .14 10);
  --berry-soft: oklch(90% .05 10);
  --ink: oklch(23.74% .0245 187.2);
  --ink-soft: color-mix(in oklab, var(--ink) 68%, white);
  --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --white: #fff;
  --ok: oklch(62% .13 155);
  --radius: 22px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18);
  font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); min-height: 100vh; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.proto-bar { background: var(--yolk); color: var(--ink); font-size: .8rem; font-weight: 700; text-align: center; padding: 6px 16px; }

/* Header */
.top { background: var(--bubblegum); color: var(--white); position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo span { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; border-left: 1.5px solid rgb(255 255 255 / .5); padding-left: 10px; line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; }
.nav a:hover { background: rgb(255 255 255 / .15); }
.nav a.on { background: var(--white); color: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--yolk); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.who-menu { position: relative; }
.who-btn { background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 10px; color: var(--white); text-align: left; }
.who-btn small { display: block; font-size: .72rem; opacity: .85; }
.who-btn b { display: block; font-size: .9rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; display: none; }
.dropdown.open { display: block; }
.dropdown button, .dropdown a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.dropdown button:hover, .dropdown a:hover { background: var(--cream); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

@media (max-width: 1140px) { .who-btn .who-text { display: none; } .nav a { padding: 9px 10px; letter-spacing: .06em; } .top-in { gap: 14px; } }
/* Mobile tab bar */
.tabs { display: none; }
@media (max-width: 860px) {
  .nav, .who-btn .who-text { display: none; }
  .top-in { padding: 10px 16px; }
  .who { margin-left: auto; }
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: .68rem; font-weight: 700; padding: 4px 0; color: var(--ink-soft); border-radius: 12px; }
  .tabs a.on { color: var(--ink); }
  .tabs a.on svg { background: var(--bubblegum-soft); }
  .tabs svg { width: 44px; height: 28px; padding: 3px 10px; border-radius: 999px; }
  main { padding-bottom: 96px !important; }
}

main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; }
@media (max-width: 600px) { main { padding: 22px 16px 64px; } }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: .9rem; text-decoration: none; background: var(--ink); color: var(--white); white-space: nowrap; }
.btn:hover { filter: brightness(1.15); }
.btn.light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.yolk { background: var(--yolk); color: var(--ink); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: .8rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; background: var(--cream); white-space: nowrap; }
.chip.ok { background: color-mix(in oklab, var(--ok) 18%, white); color: color-mix(in oklab, var(--ok) 70%, black); }
.chip.draft { background: var(--cream-deep); color: var(--ink-soft); }
.chip.req { background: var(--berry-soft); color: color-mix(in oklab, var(--berry) 60%, black); }
.tbc { background: var(--yolk); border-radius: 6px; padding: 0 6px; font-weight: 800; font-size: .85em; white-space: nowrap; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head p { margin: 8px 0 0; max-width: 60ch; }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 16px; }

/* Login */
.login-wrap { min-height: calc(100vh - 31px); display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--bubblegum) url("/assets/img/hero-cabinet.webp") center/cover; position: relative; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / .45)); }
.login-art .cap { position: absolute; left: 32px; bottom: 32px; right: 32px; color: var(--white); z-index: 1; font-size: 1.6rem; font-weight: 800; line-height: 1.15; max-width: 22ch; }
.login-side { background: var(--bubblegum); color: var(--white); display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 80px); }
.login-side .logo img { height: 44px; }
.login-box { background: var(--white); color: var(--ink); border-radius: 28px; padding: 28px; margin-top: 28px; box-shadow: var(--shadow); max-width: 440px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .8rem; font-weight: 800; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bubblegum); outline-offset: 1px; border-color: transparent; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { min-height: 220px; } .login-art .cap { font-size: 1.25rem; left: 20px; bottom: 20px; } .login-side { padding: 32px 16px 48px; } }

/* Dashboard */
.hero { background: var(--bubblegum); color: var(--white); border-radius: 28px; padding: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 240px; height: 240px; background: url("/assets/brand/mark-white.svg") center/contain no-repeat; opacity: .12; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.hero p { margin: 10px 0 20px; font-size: 1.05rem; opacity: .95; }
.hero .next { background: var(--white); color: var(--ink); border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; position: relative; z-index: 1; }
.hero .next img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 24px; } }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--yolk) calc(var(--p) * 1%), rgb(255 255 255 / .25) 0); display: grid; place-items: center; flex: none; }
.ring div { width: 92px; height: 92px; border-radius: 50%; background: var(--bubblegum); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.6rem; line-height: 1; }
.ring small { display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat b { font-size: 2rem; font-weight: 800; line-height: 1; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.list li:first-child { border-top: 0; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick a { background: var(--cream); border-radius: 18px; padding: 16px; text-decoration: none; font-weight: 800; display: flex; flex-direction: column; gap: 8px; }
.quick a:hover { background: var(--bubblegum-soft); }
.quick svg { width: 26px; height: 26px; }

/* Training */
.track { margin-top: 36px; }
.track-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.track-head .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.track-head p { margin: 2px 0 0; }
.mod { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; }
.mod:hover { transform: translateY(-3px); }
.mod-img { aspect-ratio: 16 / 9; background: var(--bubblegum-soft) center/cover; position: relative; }
.mod-img .chip { position: absolute; left: 12px; top: 12px; background: var(--white); }
.mod-img .done-badge { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: var(--white); display: grid; place-items: center; }
.mod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mod-body p { margin: 0; font-size: .92rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--cream-deep); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bubblegum-deep); border-radius: 999px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter button { border: 0; background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: .85rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.filter button.on { background: var(--ink); color: var(--white); box-shadow: none; }

/* Lesson */
.lesson-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .lesson-wrap { grid-template-columns: minmax(0, 1fr); } .lesson-side { position: static !important; } }
.lesson-side { position: sticky; top: 92px; }
.lesson-side ol { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: l; }
.lesson-side li a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: .93rem; }
.lesson-side li a:hover { background: var(--cream); }
.lesson-side li a.on { background: var(--bubblegum-soft); }
.lesson-side .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-size: .8rem; font-weight: 800; flex: none; }
.lesson-side .n.done { background: var(--ok); color: var(--white); }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.lesson { padding: clamp(22px, 4vw, 44px); }
.lesson h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 6px 0 22px; }
.lesson p { font-size: 1.08rem; max-width: 68ch; }
.lesson .steps { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: s; max-width: 70ch; }
.lesson .steps li { counter-increment: s; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--line); font-size: 1.04rem; }
.lesson .steps li:first-child { border-top: 0; }
.lesson .steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--yolk); display: grid; place-items: center; font-weight: 800; }
.tip, .callout { border-radius: 18px; padding: 16px 18px 16px 56px; margin: 0 0 1.4em; position: relative; font-weight: 600; max-width: 70ch; }
.tip { background: var(--bubblegum-soft); }
.callout { background: var(--berry-soft); }
.tip::before, .callout::before { position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.tip::before { content: "✓"; background: var(--white); }
.callout::before { content: "!"; background: var(--berry); color: var(--white); }
.quote { border-left: 4px solid var(--yolk); padding: 4px 0 4px 18px; margin: 0 0 1.4em; font-size: 1.15rem; font-style: italic; max-width: 64ch; }
.quote small { display: block; font-style: normal; font-weight: 800; font-size: .8rem; margin-top: 6px; }
.video { aspect-ratio: 16 / 9; border-radius: 18px; background: var(--ink); color: var(--white); display: grid; place-items: center; text-align: center; margin: 0 0 1.4em; padding: 20px; position: relative; overflow: hidden; }
.video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--yolk); display: grid; place-items: center; margin: 0 auto 12px; color: var(--ink); }
.video small { display: block; opacity: .7; margin-top: 4px; }
.pdf { display: flex; align-items: center; gap: 14px; background: var(--cream); border-radius: 18px; padding: 14px 16px; margin: 0 0 1.4em; text-decoration: none; max-width: 520px; }
.pdf .ic { width: 44px; height: 52px; border-radius: 8px; background: var(--berry); color: var(--white); font-weight: 800; font-size: .7rem; display: grid; place-items: center; flex: none; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.values div { background: var(--cream); border-radius: 18px; padding: 18px; }
.values b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.4em; }
.swatches div { width: 110px; }
.swatches i { display: block; height: 70px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 6px; }
.swatches span { font-size: .8rem; font-weight: 800; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 1.4em; max-width: 760px; }
.compare div { border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.compare .no { background: var(--cream); text-decoration: line-through; text-decoration-color: var(--berry); color: var(--ink-soft); }
.compare .yes { background: var(--bubblegum-soft); }
.compare .h { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: none; padding: 0 2px; }
.tagkey { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2em; }
.tagkey span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.tag { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: .72rem; font-weight: 800; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.fgrid div { background: var(--cream); border-radius: 16px; overflow: hidden; }
.fgrid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.fgrid p { margin: 0; padding: 8px 10px 0; font-weight: 800; font-size: .88rem; }
.fgrid .t { padding: 6px 10px 10px; display: flex; gap: 4px; flex-wrap: wrap; min-height: 40px; }
.outline { background: var(--cream); border-radius: 18px; padding: 20px 24px; }
.outline ul { margin: 10px 0 0; padding-left: 20px; }
.outline li { padding: 4px 0; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Quiz */
.q { margin-bottom: 26px; }
.q h3 { margin-bottom: 12px; font-size: 1.1rem; }
.opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--cream); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; font-weight: 600; }
.opt:hover { border-color: var(--bubblegum); }
.opt.sel { border-color: var(--ink); background: var(--white); }
.opt.right { border-color: var(--ok); background: color-mix(in oklab, var(--ok) 12%, white); }
.opt.wrong { border-color: var(--berry); background: var(--berry-soft); }
.opt i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.opt.sel i { border: 7px solid var(--ink); }
.result { border-radius: 22px; padding: 24px; text-align: center; margin-bottom: 24px; }
.result.pass { background: color-mix(in oklab, var(--ok) 15%, white); }
.result.fail { background: var(--berry-soft); }
.result b { font-size: 2.4rem; display: block; line-height: 1.1; }

/* Shop */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .shop { grid-template-columns: minmax(0, 1fr); } }
.prod { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prod-art { height: 130px; display: grid; place-items: center; }
.prod-art svg { width: 84px; height: 84px; }
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { font-size: 1.02rem; }
.price { font-size: 1.3rem; font-weight: 800; }
.price small { font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.2rem; font-weight: 800; border-radius: 50%; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.prod-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.cart { position: sticky; top: 92px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.cart-line:first-of-type { border-top: 0; }
.cart-line .ctl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
.tot { display: flex; justify-content: space-between; padding: 4px 0; }
.tot.big { font-size: 1.25rem; font-weight: 800; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.cat-pills { margin-bottom: 20px; }
.cart-fab { display: none; }
@media (max-width: 980px) {
  .cart { position: static; }
  .cart-fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 25; justify-content: space-between; box-shadow: var(--shadow); padding: 14px 22px; }
}
@media (min-width: 861px) and (max-width: 980px) { .cart-fab { bottom: 20px; } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--white); border-radius: 26px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; }
.sq-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sq-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.sq-logo i { width: 22px; height: 22px; border: 4px solid var(--ink); border-radius: 5px; position: relative; }
.sq-logo i::after { content: ""; position: absolute; inset: 3px; background: var(--ink); border-radius: 1px; }
.card-mock { background: var(--cream); border-radius: 14px; padding: 14px; font-family: ui-monospace, Menlo, monospace; color: var(--ink-soft); margin-bottom: 14px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 0 12px 10px 0; }
.table td { padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.person { display: flex; align-items: center; gap: 12px; }
.person .avatar { width: 36px; height: 36px; font-size: .85rem; background: var(--bubblegum-soft); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (max-width: 860px) { .toast { bottom: 96px; } }
.empty { text-align: center; padding: 28px 12px; color: var(--ink-soft); }
@media (max-width: 900px) { .lesson-side ol { display: none; } .lesson-side .card { padding: 16px 18px; } }
.prod .chip { white-space: normal; line-height: 1.3; padding: 4px 10px; }
.deliv { background: var(--cream); border-radius: 14px; padding: 10px 14px; font-size: .88rem; margin: 6px 0 12px; }
.deliv.ok { background: color-mix(in oklab, var(--ok) 15%, white); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 1.4em; max-width: 760px; }
.facts div { background: var(--bubblegum-soft); border-radius: 18px; padding: 16px; }
.facts b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { display: block; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.tbl-wrap { overflow-x: auto; margin: 0 0 1.4em; max-width: 760px; }
.lesson-table td, .lesson-table th { font-size: .95rem; }
.lesson-table td:first-child { font-weight: 700; white-space: nowrap; }
.lesson-h { margin: 1.6em 0 .6em; font-size: 1.2rem; }
.lesson-table td:not(:last-child) { white-space: nowrap; }
.cardguide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 0 1.4em; max-width: 640px; }
.cg-card { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cg-card img { width: 100%; height: auto; }
.cg-pin, .cg-num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.cg-pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--white); }
.cg-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; }
.cg-legend li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
.cg-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.4em; }
@media (max-width: 600px) { .cg-key { grid-template-columns: minmax(0, 1fr); } }
.cg-key figure { margin: 0; }
.cg-key img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.cg-key figcaption { margin-top: 8px; font-size: .92rem; }

/* goal: highlighted target, green outline */
.goal { border: 2.5px solid var(--ok); background: color-mix(in oklab, var(--ok) 10%, var(--white)); border-radius: 18px; padding: 16px 18px 16px 56px; margin: 0 0 1.4em; position: relative; font-weight: 700; font-size: 1.05em; max-width: 70ch; }
.goal::before { content: "★"; position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--white); font-size: 15px; }

/* flavour glazing card */
.flav { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; background: var(--cream); border-radius: 22px; padding: 18px; margin: 0 0 1.2em; }
.flav img, .flav-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.flav-noimg { display: grid; place-items: center; background: var(--cream-deep); color: var(--ink-soft); font-weight: 700; font-size: .85rem; text-align: center; padding: 8px; }
.flav h3 { margin: 0; font-size: 1.3rem; }
.flav dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 12px 0; }
.flav dt { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding-top: 2px; }
.flav dd { margin: 0; }
.flav .steps { margin: 0; }
.flav-note { margin: 10px 0 0; font-weight: 700; color: color-mix(in oklab, var(--berry) 70%, var(--ink)); }
@media (max-width: 600px) { .flav { grid-template-columns: 1fr; } .flav img, .flav-noimg { max-width: 220px; } }
